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>
int main (void)
{
	char s[10];
	scanf("%s",s);
	if (s[0] == 'M')
		printf("6\n");
	else if(s[0] =='T' && s[1] == 'U')
		printf("5\n");
	else if(s[0] == 'W')
		printf("4\n");
	else if(s[0] == 'T')
		printf("3\n");
	else if(s[0] == 'F')
		printf("2\n");
	else if(s[0] == 'S' && s[1] == 'A')
		printf("1\n");
	else
		printf("7\n");
	return(0);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"6"
.LC2:
	.string	"5"
.LC3:
	.string	"4"
.LC4:
	.string	"3"
.LC5:
	.string	"2"
.LC6:
	.string	"1"
.LC7:
	.string	"7"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movzbl	14(%rsp), %eax
	cmpb	$77, %al
	je	.L15
	cmpb	$84, %al
	je	.L16
	cmpb	$87, %al
	je	.L17
	cmpb	$70, %al
	je	.L18
	cmpb	$83, %al
	jne	.L7
	cmpb	$65, 15(%rsp)
	je	.L19
.L7:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	cmpb	$85, 15(%rsp)
	je	.L21
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L15:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L17:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L18:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L21:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L19:
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"6"
.LC2:
	.string	"5"
.LC3:
	.string	"4"
.LC4:
	.string	"3"
.LC5:
	.string	"2"
.LC6:
	.string	"1"
.LC7:
	.string	"7"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movzbl	14(%rsp), %eax
	cmpb	$77, %al
	je	.L15
	cmpb	$84, %al
	je	.L16
	cmpb	$87, %al
	je	.L17
	cmpb	$70, %al
	je	.L18
	cmpb	$83, %al
	jne	.L7
	cmpb	$65, 15(%rsp)
	je	.L19
.L7:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	cmpb	$85, 15(%rsp)
	je	.L21
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L15:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L17:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L18:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L21:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L19:
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"6"
.LC2:
	.string	"5"
.LC3:
	.string	"4"
.LC4:
	.string	"3"
.LC5:
	.string	"2"
.LC6:
	.string	"1"
.LC7:
	.string	"7"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movzbl	14(%rsp), %eax
	cmpb	$77, %al
	je	.L15
	cmpb	$84, %al
	je	.L16
	cmpb	$87, %al
	je	.L17
	cmpb	$70, %al
	je	.L18
	cmpb	$83, %al
	jne	.L7
	cmpb	$65, 15(%rsp)
	je	.L19
.L7:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	cmpb	$85, 15(%rsp)
	je	.L21
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L15:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L17:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L18:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L21:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L19:
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```
```c
#include <stdio.h>
#include <string.h>
int main (void)
{
	char s[10];
	scanf("%s",s);
	if (s[0] == 'M')
		printf("6\n");
	else if(s[0] =='T' && s[1] == 'U')
		printf("5\n");
	else if(s[0] == 'W')
		printf("4\n");
	else if(s[0] == 'T')
		printf("3\n");
	else if(s[0] == 'F')
		printf("2\n");
	else if(s[0] == 'S' && s[1] == 'A')
		printf("1\n");
	else
		printf("7\n");
	return(0);
}
```
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>
int main (void)
{
	char s[10];
	scanf("%s",s);
	if (s[0] == 'M')
		printf("6\n");
	else if(s[0] =='T' && s[1] == 'U')
		printf("5\n");
	else if(s[0] == 'W')
		printf("4\n");
	else if(s[0] == 'T')
		printf("3\n");
	else if(s[0] == 'F')
		printf("2\n");
	else if(s[0] == 'S' && s[1] == 'A')
		printf("1\n");
	else
		printf("7\n");
	return(0);
}
```

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>
int main (void)
{
	char s[10];
	scanf("%s",s);
	if (s[0] == 'M')
		printf("6\n");
	else if(s[0] =='T' && s[1] == 'U')
		printf("5\n");
	else if(s[0] == 'W')
		printf("4\n");
	else if(s[0] == 'T')
		printf("3\n");
	else if(s[0] == 'F')
		printf("2\n");
	else if(s[0] == 'S' && s[1] == 'A')
		printf("1\n");
	else
		printf("7\n");
	return(0);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"6"
.LC2:
	.string	"5"
.LC3:
	.string	"4"
.LC4:
	.string	"3"
.LC5:
	.string	"2"
.LC6:
	.string	"1"
.LC7:
	.string	"7"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movzbl	14(%rsp), %eax
	cmpb	$77, %al
	je	.L15
	cmpb	$84, %al
	je	.L16
	cmpb	$87, %al
	je	.L17
	cmpb	$70, %al
	je	.L18
	cmpb	$83, %al
	jne	.L7
	cmpb	$65, 15(%rsp)
	je	.L19
.L7:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	cmpb	$85, 15(%rsp)
	je	.L21
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L15:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L17:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L18:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L21:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L19:
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"6"
.LC2:
	.string	"5"
.LC3:
	.string	"4"
.LC4:
	.string	"3"
.LC5:
	.string	"2"
.LC6:
	.string	"1"
.LC7:
	.string	"7"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	14(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movzbl	14(%rsp), %eax
	cmpb	$77, %al
	je	.L15
	cmpb	$84, %al
	je	.L16
	cmpb	$87, %al
	je	.L17
	cmpb	$70, %al
	je	.L18
	cmpb	$83, %al
	jne	.L7
	cmpb	$65, 15(%rsp)
	je	.L19
.L7:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	cmpb	$85, 15(%rsp)
	je	.L21
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L15:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L17:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L18:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L21:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L19:
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```