Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<string.h>
char s[9];
char aa[9][9]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
int main(){
	scanf("%s",s);
	for(int i=0;i<7;i++)if(strcmp(aa[i],s)==0)printf("%d",7-i);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 8
	.type	s, @object
	.size	s, 9
s:
	.zero	9
	.globl	aa
	.data
	.align 32
	.type	aa, @object
	.size	aa, 81
aa:
	.string	"SUN"
	.zero	5
	.string	"MON"
	.zero	5
	.string	"TUE"
	.zero	5
	.string	"WED"
	.zero	5
	.string	"THU"
	.zero	5
	.string	"FRI"
	.zero	5
	.string	"SAT"
	.zero	5
	.zero	18
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L2
.L4:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	aa(%rip), %rdx
	addq	%rdx, %rax
	leaq	s(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L3
	movl	$7, %eax
	subl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L3:
	addl	$1, -4(%rbp)
.L2:
	cmpl	$6, -4(%rbp)
	jle	.L4
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	s(%rip), %rbp
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	leaq	aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
.L2:
	movq	%rbp, %rsi
	leaq	9+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L12
.L3:
	movq	%rbp, %rsi
	leaq	18+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L13
.L4:
	movq	%rbp, %rsi
	leaq	27+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L14
.L5:
	movq	%rbp, %rsi
	leaq	36+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L15
.L6:
	movq	%rbp, %rsi
	leaq	45+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L16
.L7:
	movq	%rbp, %rsi
	leaq	54+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L17
.L8:
	xorl	%eax, %eax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	movl	$7, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L2
.L17:
	movl	$1, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L8
.L16:
	movl	$2, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L7
.L15:
	movl	$3, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L6
.L14:
	movl	$4, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L5
.L13:
	movl	$5, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L4
.L12:
	movl	$6, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L3
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	aa
	.data
	.align 32
	.type	aa, @object
	.size	aa, 81
aa:
	.string	"SUN"
	.zero	5
	.string	"MON"
	.zero	5
	.string	"TUE"
	.zero	5
	.string	"WED"
	.zero	5
	.string	"THU"
	.zero	5
	.string	"FRI"
	.zero	5
	.string	"SAT"
	.zero	5
	.zero	18
	.globl	s
	.bss
	.align 8
	.type	s, @object
	.size	s, 9
s:
	.zero	9
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	s(%rip), %rbp
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	leaq	aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
.L2:
	movq	%rbp, %rsi
	leaq	9+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L12
.L3:
	movq	%rbp, %rsi
	leaq	18+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L13
.L4:
	movq	%rbp, %rsi
	leaq	27+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L14
.L5:
	movq	%rbp, %rsi
	leaq	36+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L15
.L6:
	movq	%rbp, %rsi
	leaq	45+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L16
.L7:
	movq	%rbp, %rsi
	leaq	54+aa(%rip), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L17
.L8:
	xorl	%eax, %eax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	movl	$7, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L2
.L17:
	movl	$1, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L8
.L16:
	movl	$2, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L7
.L15:
	movl	$3, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L6
.L14:
	movl	$4, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L5
.L13:
	movl	$5, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L4
.L12:
	movl	$6, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L3
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	aa
	.data
	.align 32
	.type	aa, @object
	.size	aa, 81
aa:
	.string	"SUN"
	.zero	5
	.string	"MON"
	.zero	5
	.string	"TUE"
	.zero	5
	.string	"WED"
	.zero	5
	.string	"THU"
	.zero	5
	.string	"FRI"
	.zero	5
	.string	"SAT"
	.zero	5
	.zero	18
	.globl	s
	.bss
	.align 8
	.type	s, @object
	.size	s, 9
s:
	.zero	9
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
#include<string.h>
char s[9];
char aa[9][9]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
int main(){
	scanf("%s",s);
	for(int i=0;i<7;i++)if(strcmp(aa[i],s)==0)printf("%d",7-i);
}
SUN
 SAT
 SAT

7 1 1
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<string.h>
char s[9];
char aa[9][9]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
int main(){
	scanf("%s",s);
	for(int i=0;i<7;i++)if(strcmp(aa[i],s)==0)printf("%d",7-i);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 8
	.type	s, @object
	.size	s, 9
s:
	.zero	9
	.globl	aa
	.data
	.align 32
	.type	aa, @object
	.size	aa, 81
aa:
	.string	"SUN"
	.zero	5
	.string	"MON"
	.zero	5
	.string	"TUE"
	.zero	5
	.string	"WED"
	.zero	5
	.string	"THU"
	.zero	5
	.string	"FRI"
	.zero	5
	.string	"SAT"
	.zero	5
	.zero	18
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L2
.L4:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	aa(%rip), %rdx
	addq	%rdx, %rax
	leaq	s(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L3
	movl	$7, %eax
	subl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L3:
	addl	$1, -4(%rbp)
.L2:
	cmpl	$6, -4(%rbp)
	jle	.L4
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 8
	.type	s, @object
	.size	s, 9
s:
	.zero	9
	.globl	aa
	.data
	.align 32
	.type	aa, @object
	.size	aa, 81
aa:
	.string	"SUN"
	.zero	5
	.string	"MON"
	.zero	5
	.string	"TUE"
	.zero	5
	.string	"WED"
	.zero	5
	.string	"THU"
	.zero	5
	.string	"FRI"
	.zero	5
	.string	"SAT"
	.zero	5
	.zero	18
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L2
.L4:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	aa(%rip), %rdx
	addq	%rdx, %rax
	leaq	s(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L3
	movl	$7, %eax
	subl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L3:
	addl	$1, -4(%rbp)
.L2:
	cmpl	$6, -4(%rbp)
	jle	.L4
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
