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>

int main(void){

char s[3];

scanf("%s",&s);

if(s[0]=='S'&&s[1]=='U'&&s[2]=='N'){printf("7");}
if(s[0]=='M'&&s[1]=='O'&&s[2]=='N'){printf("6");}
if(s[0]=='T'&&s[1]=='U'&&s[2]=='E'){printf("5");}
if(s[0]=='W'&&s[1]=='E'&&s[2]=='D'){printf("4");}
if(s[0]=='T'&&s[1]=='H'&&s[2]=='U'){printf("3");}
if(s[0]=='F'&&s[1]=='R'&&s[2]=='I'){printf("2");}
if(s[0]=='S'&&s[1]=='A'&&s[2]=='T'){printf("1");}


  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-11(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-11(%rbp), %eax
	cmpb	$83, %al
	jne	.L2
	movzbl	-10(%rbp), %eax
	cmpb	$85, %al
	jne	.L2
	movzbl	-9(%rbp), %eax
	cmpb	$78, %al
	jne	.L2
	movl	$55, %edi
	call	putchar@PLT
.L2:
	movzbl	-11(%rbp), %eax
	cmpb	$77, %al
	jne	.L3
	movzbl	-10(%rbp), %eax
	cmpb	$79, %al
	jne	.L3
	movzbl	-9(%rbp), %eax
	cmpb	$78, %al
	jne	.L3
	movl	$54, %edi
	call	putchar@PLT
.L3:
	movzbl	-11(%rbp), %eax
	cmpb	$84, %al
	jne	.L4
	movzbl	-10(%rbp), %eax
	cmpb	$85, %al
	jne	.L4
	movzbl	-9(%rbp), %eax
	cmpb	$69, %al
	jne	.L4
	movl	$53, %edi
	call	putchar@PLT
.L4:
	movzbl	-11(%rbp), %eax
	cmpb	$87, %al
	jne	.L5
	movzbl	-10(%rbp), %eax
	cmpb	$69, %al
	jne	.L5
	movzbl	-9(%rbp), %eax
	cmpb	$68, %al
	jne	.L5
	movl	$52, %edi
	call	putchar@PLT
.L5:
	movzbl	-11(%rbp), %eax
	cmpb	$84, %al
	jne	.L6
	movzbl	-10(%rbp), %eax
	cmpb	$72, %al
	jne	.L6
	movzbl	-9(%rbp), %eax
	cmpb	$85, %al
	jne	.L6
	movl	$51, %edi
	call	putchar@PLT
.L6:
	movzbl	-11(%rbp), %eax
	cmpb	$70, %al
	jne	.L7
	movzbl	-10(%rbp), %eax
	cmpb	$82, %al
	jne	.L7
	movzbl	-9(%rbp), %eax
	cmpb	$73, %al
	jne	.L7
	movl	$50, %edi
	call	putchar@PLT
.L7:
	movzbl	-11(%rbp), %eax
	cmpb	$83, %al
	jne	.L8
	movzbl	-10(%rbp), %eax
	cmpb	$65, %al
	jne	.L8
	movzbl	-9(%rbp), %eax
	cmpb	$84, %al
	jne	.L8
	movl	$49, %edi
	call	putchar@PLT
.L8:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	5(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpb	$83, 5(%rsp)
	je	.L19
.L2:
	cmpb	$77, 5(%rsp)
	je	.L20
.L4:
	cmpb	$84, 5(%rsp)
	jne	.L3
	cmpb	$85, 6(%rsp)
	je	.L21
.L6:
	cmpb	$72, 6(%rsp)
	je	.L22
.L13:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	cmpb	$79, 6(%rsp)
	je	.L24
.L9:
	cmpb	$70, 5(%rsp)
	jne	.L11
	cmpb	$82, 6(%rsp)
	jne	.L13
	cmpb	$73, 7(%rsp)
	jne	.L13
	movl	$50, %edi
	call	putchar@PLT
.L11:
	cmpb	$83, 5(%rsp)
	jne	.L13
	cmpb	$65, 6(%rsp)
	jne	.L13
	cmpb	$84, 7(%rsp)
	jne	.L13
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L13
.L19:
	cmpb	$85, 6(%rsp)
	je	.L25
.L3:
	cmpb	$87, 5(%rsp)
	jne	.L9
.L14:
	cmpb	$69, 6(%rsp)
	jne	.L9
	cmpb	$68, 7(%rsp)
	jne	.L9
	movl	$52, %edi
	call	putchar@PLT
	jmp	.L7
.L25:
	cmpb	$78, 7(%rsp)
	jne	.L3
	movl	$55, %edi
	call	putchar@PLT
	jmp	.L2
.L24:
	cmpb	$78, 7(%rsp)
	jne	.L9
	movl	$54, %edi
	call	putchar@PLT
	jmp	.L4
.L22:
	cmpb	$85, 7(%rsp)
	jne	.L13
	movl	$51, %edi
	call	putchar@PLT
	jmp	.L9
.L21:
	cmpb	$69, 7(%rsp)
	jne	.L6
	movl	$53, %edi
	call	putchar@PLT
	cmpb	$87, 5(%rsp)
	je	.L14
.L7:
	cmpb	$84, 5(%rsp)
	je	.L6
	jmp	.L9
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	5(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpb	$83, 5(%rsp)
	je	.L19
.L2:
	cmpb	$77, 5(%rsp)
	je	.L20
.L4:
	cmpb	$84, 5(%rsp)
	jne	.L3
	cmpb	$85, 6(%rsp)
	je	.L21
.L6:
	cmpb	$72, 6(%rsp)
	je	.L22
.L13:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	cmpb	$79, 6(%rsp)
	je	.L24
.L9:
	cmpb	$70, 5(%rsp)
	jne	.L11
	cmpb	$82, 6(%rsp)
	jne	.L13
	cmpb	$73, 7(%rsp)
	jne	.L13
	movl	$50, %edi
	call	putchar@PLT
.L11:
	cmpb	$83, 5(%rsp)
	jne	.L13
	cmpb	$65, 6(%rsp)
	jne	.L13
	cmpb	$84, 7(%rsp)
	jne	.L13
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L13
.L19:
	cmpb	$85, 6(%rsp)
	je	.L25
.L3:
	cmpb	$87, 5(%rsp)
	jne	.L9
.L14:
	cmpb	$69, 6(%rsp)
	jne	.L9
	cmpb	$68, 7(%rsp)
	jne	.L9
	movl	$52, %edi
	call	putchar@PLT
	jmp	.L7
.L25:
	cmpb	$78, 7(%rsp)
	jne	.L3
	movl	$55, %edi
	call	putchar@PLT
	jmp	.L2
.L24:
	cmpb	$78, 7(%rsp)
	jne	.L9
	movl	$54, %edi
	call	putchar@PLT
	jmp	.L4
.L22:
	cmpb	$85, 7(%rsp)
	jne	.L13
	movl	$51, %edi
	call	putchar@PLT
	jmp	.L9
.L21:
	cmpb	$69, 7(%rsp)
	jne	.L6
	movl	$53, %edi
	call	putchar@PLT
	cmpb	$87, 5(%rsp)
	je	.L14
.L7:
	cmpb	$84, 5(%rsp)
	je	.L6
	jmp	.L9
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

#include<stdio.h>

int main(void){

char s[3];

scanf("%s",&s);

if(s[0]=='S'&&s[1]=='U'&&s[2]=='N'){printf("7");}
if(s[0]=='M'&&s[1]=='O'&&s[2]=='N'){printf("6");}
if(s[0]=='T'&&s[1]=='U'&&s[2]=='E'){printf("5");}
if(s[0]=='W'&&s[1]=='E'&&s[2]=='D'){printf("4");}
if(s[0]=='T'&&s[1]=='H'&&s[2]=='U'){printf("3");}
if(s[0]=='F'&&s[1]=='R'&&s[2]=='I'){printf("2");}
if(s[0]=='S'&&s[1]=='A'&&s[2]=='T'){printf("1");}


  return 0;
}

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>

int main(void){

char s[3];

scanf("%s",&s);

if(s[0]=='S'&&s[1]=='U'&&s[2]=='N'){printf("7");}
if(s[0]=='M'&&s[1]=='O'&&s[2]=='N'){printf("6");}
if(s[0]=='T'&&s[1]=='U'&&s[2]=='E'){printf("5");}
if(s[0]=='W'&&s[1]=='E'&&s[2]=='D'){printf("4");}
if(s[0]=='T'&&s[1]=='H'&&s[2]=='U'){printf("3");}
if(s[0]=='F'&&s[1]=='R'&&s[2]=='I'){printf("2");}
if(s[0]=='S'&&s[1]=='A'&&s[2]=='T'){printf("1");}


  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-11(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-11(%rbp), %eax
	cmpb	$83, %al
	jne	.L2
	movzbl	-10(%rbp), %eax
	cmpb	$85, %al
	jne	.L2
	movzbl	-9(%rbp), %eax
	cmpb	$78, %al
	jne	.L2
	movl	$55, %edi
	call	putchar@PLT
.L2:
	movzbl	-11(%rbp), %eax
	cmpb	$77, %al
	jne	.L3
	movzbl	-10(%rbp), %eax
	cmpb	$79, %al
	jne	.L3
	movzbl	-9(%rbp), %eax
	cmpb	$78, %al
	jne	.L3
	movl	$54, %edi
	call	putchar@PLT
.L3:
	movzbl	-11(%rbp), %eax
	cmpb	$84, %al
	jne	.L4
	movzbl	-10(%rbp), %eax
	cmpb	$85, %al
	jne	.L4
	movzbl	-9(%rbp), %eax
	cmpb	$69, %al
	jne	.L4
	movl	$53, %edi
	call	putchar@PLT
.L4:
	movzbl	-11(%rbp), %eax
	cmpb	$87, %al
	jne	.L5
	movzbl	-10(%rbp), %eax
	cmpb	$69, %al
	jne	.L5
	movzbl	-9(%rbp), %eax
	cmpb	$68, %al
	jne	.L5
	movl	$52, %edi
	call	putchar@PLT
.L5:
	movzbl	-11(%rbp), %eax
	cmpb	$84, %al
	jne	.L6
	movzbl	-10(%rbp), %eax
	cmpb	$72, %al
	jne	.L6
	movzbl	-9(%rbp), %eax
	cmpb	$85, %al
	jne	.L6
	movl	$51, %edi
	call	putchar@PLT
.L6:
	movzbl	-11(%rbp), %eax
	cmpb	$70, %al
	jne	.L7
	movzbl	-10(%rbp), %eax
	cmpb	$82, %al
	jne	.L7
	movzbl	-9(%rbp), %eax
	cmpb	$73, %al
	jne	.L7
	movl	$50, %edi
	call	putchar@PLT
.L7:
	movzbl	-11(%rbp), %eax
	cmpb	$83, %al
	jne	.L8
	movzbl	-10(%rbp), %eax
	cmpb	$65, %al
	jne	.L8
	movzbl	-9(%rbp), %eax
	cmpb	$84, %al
	jne	.L8
	movl	$49, %edi
	call	putchar@PLT
.L8:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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
	.section	.rodata
.LC0:
	.string	"%s"
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-11(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-11(%rbp), %eax
	cmpb	$83, %al
	jne	.L2
	movzbl	-10(%rbp), %eax
	cmpb	$85, %al
	jne	.L2
	movzbl	-9(%rbp), %eax
	cmpb	$78, %al
	jne	.L2
	movl	$55, %edi
	call	putchar@PLT
.L2:
	movzbl	-11(%rbp), %eax
	cmpb	$77, %al
	jne	.L3
	movzbl	-10(%rbp), %eax
	cmpb	$79, %al
	jne	.L3
	movzbl	-9(%rbp), %eax
	cmpb	$78, %al
	jne	.L3
	movl	$54, %edi
	call	putchar@PLT
.L3:
	movzbl	-11(%rbp), %eax
	cmpb	$84, %al
	jne	.L4
	movzbl	-10(%rbp), %eax
	cmpb	$85, %al
	jne	.L4
	movzbl	-9(%rbp), %eax
	cmpb	$69, %al
	jne	.L4
	movl	$53, %edi
	call	putchar@PLT
.L4:
	movzbl	-11(%rbp), %eax
	cmpb	$87, %al
	jne	.L5
	movzbl	-10(%rbp), %eax
	cmpb	$69, %al
	jne	.L5
	movzbl	-9(%rbp), %eax
	cmpb	$68, %al
	jne	.L5
	movl	$52, %edi
	call	putchar@PLT
.L5:
	movzbl	-11(%rbp), %eax
	cmpb	$84, %al
	jne	.L6
	movzbl	-10(%rbp), %eax
	cmpb	$72, %al
	jne	.L6
	movzbl	-9(%rbp), %eax
	cmpb	$85, %al
	jne	.L6
	movl	$51, %edi
	call	putchar@PLT
.L6:
	movzbl	-11(%rbp), %eax
	cmpb	$70, %al
	jne	.L7
	movzbl	-10(%rbp), %eax
	cmpb	$82, %al
	jne	.L7
	movzbl	-9(%rbp), %eax
	cmpb	$73, %al
	jne	.L7
	movl	$50, %edi
	call	putchar@PLT
.L7:
	movzbl	-11(%rbp), %eax
	cmpb	$83, %al
	jne	.L8
	movzbl	-10(%rbp), %eax
	cmpb	$65, %al
	jne	.L8
	movzbl	-9(%rbp), %eax
	cmpb	$84, %al
	jne	.L8
	movl	$49, %edi
	call	putchar@PLT
.L8:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
