Given the following C code and 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);
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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);
}```
Given the following C 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);
}```

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.
Optimized Assembly Code:

SUN
 SAT
 SAT

7 1 1
Given the following C code and 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);
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```