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){
           while(1){
                   int count;int x=10,y=10;
                   int locate[40]={0};
                   int mission,sum=0,i,o,p;
                   char hougaku;int kyori;
                 scanf("%d",&count);
                  if(count==0)
                          break;
                        for(i=0;i<count*2;i++)
                                  scanf("%d",&locate[i]);
                          scanf("%d",&mission);
                         for(i=0;i<mission;i++){
                                  scanf("%s%d",&hougaku,&kyori);
                                  for(p=0;p<kyori;p++){
                                  if(hougaku == 'N')
                                          y++;
                                  if(hougaku== 'E')
                                          x++;
                                  if(hougaku == 'S')
                                         y--;
                                 if(hougaku == 'W')
                                          x--;
                                  for(o=0;o<=count*2-2;o+=2){
                                          if(locate[o]==x){
                                                  if(locate[o+1]==y){
                                                          locate[o]=-1;
                                                          locate[o+1]=-1;
                                                          sum++;
                                                  }       
                                          }       
                                  }       
                          }       
                          }       
  if(sum!=count)          printf("No\n");
  else printf("Yes\n");   
          }
          return 0;
  }       ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L19:
	movl	$10, -200(%rbp)
	movl	$10, -196(%rbp)
	leaq	-176(%rbp), %rdx
	movl	$0, %eax
	movl	$20, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -192(%rbp)
	leaq	-212(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-212(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	jmp	.L21
.L2:
	movl	$0, -188(%rbp)
	jmp	.L4
.L5:
	leaq	-176(%rbp), %rdx
	movl	-188(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -188(%rbp)
.L4:
	movl	-212(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -188(%rbp)
	jl	.L5
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -188(%rbp)
	jmp	.L6
.L16:
	leaq	-204(%rbp), %rdx
	leaq	-213(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -180(%rbp)
	jmp	.L7
.L15:
	movzbl	-213(%rbp), %eax
	cmpb	$78, %al
	jne	.L8
	addl	$1, -196(%rbp)
.L8:
	movzbl	-213(%rbp), %eax
	cmpb	$69, %al
	jne	.L9
	addl	$1, -200(%rbp)
.L9:
	movzbl	-213(%rbp), %eax
	cmpb	$83, %al
	jne	.L10
	subl	$1, -196(%rbp)
.L10:
	movzbl	-213(%rbp), %eax
	cmpb	$87, %al
	jne	.L11
	subl	$1, -200(%rbp)
.L11:
	movl	$0, -184(%rbp)
	jmp	.L12
.L14:
	movl	-184(%rbp), %eax
	cltq
	movl	-176(%rbp,%rax,4), %eax
	cmpl	%eax, -200(%rbp)
	jne	.L13
	movl	-184(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-176(%rbp,%rax,4), %eax
	cmpl	%eax, -196(%rbp)
	jne	.L13
	movl	-184(%rbp), %eax
	cltq
	movl	$-1, -176(%rbp,%rax,4)
	movl	-184(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$-1, -176(%rbp,%rax,4)
	addl	$1, -192(%rbp)
.L13:
	addl	$2, -184(%rbp)
.L12:
	movl	-212(%rbp), %eax
	subl	$1, %eax
	addl	%eax, %eax
	cmpl	%eax, -184(%rbp)
	jle	.L14
	addl	$1, -180(%rbp)
.L7:
	movl	-204(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L15
	addl	$1, -188(%rbp)
.L6:
	movl	-208(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jl	.L16
	movl	-212(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	je	.L17
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L17:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L21:
	call	__stack_chk_fail@PLT
.L20:
	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	"%d"
.LC1:
	.string	"%s%d"
.LC3:
	.string	"No"
.LC4:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	.LC2(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	52(%rsp), %rax
	leaq	64(%rsp), %r13
	movq	%rax, 40(%rsp)
	movq	%r13, %r15
.L20:
	xorl	%eax, %eax
	movq	40(%rsp), %rsi
	movl	$20, %ecx
	movq	%r15, %rdi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %edx
	testl	%edx, %edx
	je	.L2
	jle	.L3
	movq	%r15, %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	addq	$4, %rbp
	addl	%eax, %eax
	cmpl	%ebx, %eax
	jg	.L4
.L3:
	leaq	56(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	56(%rsp), %eax
	testl	%eax, %eax
	jle	.L22
	leaq	60(%rsp), %rax
	movl	$10, %r13d
	xorl	%r9d, %r9d
	xorl	%ebp, %ebp
	movq	%rax, 16(%rsp)
	leaq	51(%rsp), %rax
	movl	$10, %ebx
	movq	%rax, 8(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 32(%rsp)
	movq	%r15, 24(%rsp)
	movl	%r13d, %r15d
	movl	%r9d, %r13d
	.p2align 4,,10
	.p2align 3
.L17:
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L6
	movl	52(%rsp), %eax
	movq	32(%rsp), %rcx
	xorl	%esi, %esi
	movzbl	51(%rsp), %edi
	movq	24(%rsp), %r8
	leal	-2(%rax,%rax), %r11d
	movl	%r11d, %eax
	shrl	%eax
	leaq	(%rcx,%rax,8), %rdx
	.p2align 4,,10
	.p2align 3
.L16:
	cmpb	$78, %dil
	je	.L30
	cmpb	$69, %dil
	je	.L9
	cmpb	$83, %dil
	jne	.L31
	subl	$1, %r15d
.L8:
	testl	%r11d, %r11d
	js	.L13
	movq	%r8, %rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$8, %rax
	cmpq	%rax, %rdx
	je	.L13
.L15:
	cmpl	%ebx, (%rax)
	jne	.L14
	cmpl	%r15d, 4(%rax)
	jne	.L14
	movq	%r14, (%rax)
	addq	$8, %rax
	addl	$1, %ebp
	cmpq	%rax, %rdx
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %esi
	cmpl	%r10d, %esi
	jne	.L16
.L6:
	addl	$1, %r13d
	cmpl	%r13d, 56(%rsp)
	jg	.L17
	movq	24(%rsp), %r15
.L5:
	cmpl	%ebp, 52(%rsp)
	je	.L18
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L30:
	addl	$1, %r15d
	jmp	.L8
.L31:
	cmpb	$87, %dil
	jne	.L8
	subl	$1, %ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %ebx
	jmp	.L8
.L18:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L20
.L22:
	xorl	%ebp, %ebp
	jmp	.L5
.L2:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	-1
	.long	-1
	.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	"%d"
.LC1:
	.string	"%s%d"
.LC3:
	.string	"No"
.LC4:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	.LC2(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	52(%rsp), %rax
	leaq	64(%rsp), %r13
	movq	%rax, 40(%rsp)
	movq	%r13, %r15
.L20:
	xorl	%eax, %eax
	movq	40(%rsp), %rsi
	movl	$20, %ecx
	movq	%r15, %rdi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %edx
	testl	%edx, %edx
	je	.L2
	jle	.L3
	movq	%r15, %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	addq	$4, %rbp
	addl	%eax, %eax
	cmpl	%ebx, %eax
	jg	.L4
.L3:
	leaq	56(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	56(%rsp), %eax
	testl	%eax, %eax
	jle	.L22
	leaq	60(%rsp), %rax
	movl	$10, %r13d
	xorl	%r9d, %r9d
	xorl	%ebp, %ebp
	movq	%rax, 16(%rsp)
	leaq	51(%rsp), %rax
	movl	$10, %ebx
	movq	%rax, 8(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 32(%rsp)
	movq	%r15, 24(%rsp)
	movl	%r13d, %r15d
	movl	%r9d, %r13d
	.p2align 4,,10
	.p2align 3
.L17:
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L6
	movl	52(%rsp), %eax
	movq	32(%rsp), %rcx
	xorl	%esi, %esi
	movzbl	51(%rsp), %edi
	movq	24(%rsp), %r8
	leal	-2(%rax,%rax), %r11d
	movl	%r11d, %eax
	shrl	%eax
	leaq	(%rcx,%rax,8), %rdx
	.p2align 4,,10
	.p2align 3
.L16:
	cmpb	$78, %dil
	je	.L30
	cmpb	$69, %dil
	je	.L9
	cmpb	$83, %dil
	jne	.L31
	subl	$1, %r15d
.L8:
	testl	%r11d, %r11d
	js	.L13
	movq	%r8, %rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$8, %rax
	cmpq	%rax, %rdx
	je	.L13
.L15:
	cmpl	%ebx, (%rax)
	jne	.L14
	cmpl	%r15d, 4(%rax)
	jne	.L14
	movq	%r14, (%rax)
	addq	$8, %rax
	addl	$1, %ebp
	cmpq	%rax, %rdx
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %esi
	cmpl	%r10d, %esi
	jne	.L16
.L6:
	addl	$1, %r13d
	cmpl	%r13d, 56(%rsp)
	jg	.L17
	movq	24(%rsp), %r15
.L5:
	cmpl	%ebp, 52(%rsp)
	je	.L18
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L30:
	addl	$1, %r15d
	jmp	.L8
.L31:
	cmpb	$87, %dil
	jne	.L8
	subl	$1, %ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %ebx
	jmp	.L8
.L18:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L20
.L22:
	xorl	%ebp, %ebp
	jmp	.L5
.L2:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	-1
	.long	-1
	.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){
           while(1){
                   int count;int x=10,y=10;
                   int locate[40]={0};
                   int mission,sum=0,i,o,p;
                   char hougaku;int kyori;
                 scanf("%d",&count);
                  if(count==0)
                          break;
                        for(i=0;i<count*2;i++)
                                  scanf("%d",&locate[i]);
                          scanf("%d",&mission);
                         for(i=0;i<mission;i++){
                                  scanf("%s%d",&hougaku,&kyori);
                                  for(p=0;p<kyori;p++){
                                  if(hougaku == 'N')
                                          y++;
                                  if(hougaku== 'E')
                                          x++;
                                  if(hougaku == 'S')
                                         y--;
                                 if(hougaku == 'W')
                                          x--;
                                  for(o=0;o<=count*2-2;o+=2){
                                          if(locate[o]==x){
                                                  if(locate[o+1]==y){
                                                          locate[o]=-1;
                                                          locate[o+1]=-1;
                                                          sum++;
                                                  }       
                                          }       
                                  }       
                          }       
                          }       
  if(sum!=count)          printf("No\n");
  else printf("Yes\n");   
          }
          return 0;
  }       
2
10 11
11 12
2
N 2
E 1
2
10 11
11 12
2
N 2
W 1
3
0 15
5 10
5 15
5
W 20
S 10
N 20
E 10
S 10
0
 2
10 11
15 12
2
N 2
E 1
2
10 15
11 12
2
N 2
W 1
3
0 15
5 10
5 15
5
W 20
S 10
N 20
E 10
S 10
0
 2
10 17
11 12
2
N -1
E 1
2
10 11
10 12
2
N 3
W 1
3
0 15
5 8
5 12
5
W 20
S 9
N 5
E 11
S 10
0
 2
10 11
15 12
2
N 0
E 1
0
10 15
11 12
2
N 3
W 1
3
0 15
5 10
5 15
5
W 20
S 10
N 20
E 10
S 20
0
 2
10 11
11 12
2
N 0
E 1
2
10 11
11 12
2
N 3
W 1
0
0 15
4 10
5 12
5
W 20
S 10
N 5
E 10
S 10
0
 2
6 11
11 12
2
N 2
E 1
2
10 11
11 12
2
N 2
W 1
3
0 15
9 10
5 10
5
W 20
S 10
N 20
E 10
S 10
0
 2
10 11
11 12
2
N 2
E 1
2
10 11
11 12
2
N 3
W 1
3
0 15
5 10
5 15
5
W 20
S 10
N 20
E 10
S 10
0
 2
10 11
11 12
2
N 2
E 1
2
10 15
11 12
2
N 3
W 1
3
0 15
5 10
5 15
5
W 20
S 10
N 20
E 10
S 10
0
 2
10 11
11 12
2
N 2
E 1
2
10 15
11 12
2
N 2
W 1
3
0 15
5 10
5 15
5
W 20
S 10
N 20
E 10
S 10
0
 2
10 11
15 12
2
N 0
E 1
2
10 15
11 12
2
N 2
W 1
3
0 15
5 10
5 15
5
W 20
S 10
N 20
E 10
S 10
0

Yes
Yes
Yes
 Yes
Yes
Yes
 Yes
Yes
Yes
 Yes
 Yes
Yes
 Yes
Yes
Yes
 Yes
Yes
Yes
 Yes
Yes
Yes
 Yes
Yes
Yes
 Yes
Yes
Yes

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){
           while(1){
                   int count;int x=10,y=10;
                   int locate[40]={0};
                   int mission,sum=0,i,o,p;
                   char hougaku;int kyori;
                 scanf("%d",&count);
                  if(count==0)
                          break;
                        for(i=0;i<count*2;i++)
                                  scanf("%d",&locate[i]);
                          scanf("%d",&mission);
                         for(i=0;i<mission;i++){
                                  scanf("%s%d",&hougaku,&kyori);
                                  for(p=0;p<kyori;p++){
                                  if(hougaku == 'N')
                                          y++;
                                  if(hougaku== 'E')
                                          x++;
                                  if(hougaku == 'S')
                                         y--;
                                 if(hougaku == 'W')
                                          x--;
                                  for(o=0;o<=count*2-2;o+=2){
                                          if(locate[o]==x){
                                                  if(locate[o+1]==y){
                                                          locate[o]=-1;
                                                          locate[o+1]=-1;
                                                          sum++;
                                                  }       
                                          }       
                                  }       
                          }       
                          }       
  if(sum!=count)          printf("No\n");
  else printf("Yes\n");   
          }
          return 0;
  }       ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L19:
	movl	$10, -200(%rbp)
	movl	$10, -196(%rbp)
	leaq	-176(%rbp), %rdx
	movl	$0, %eax
	movl	$20, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -192(%rbp)
	leaq	-212(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-212(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	jmp	.L21
.L2:
	movl	$0, -188(%rbp)
	jmp	.L4
.L5:
	leaq	-176(%rbp), %rdx
	movl	-188(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -188(%rbp)
.L4:
	movl	-212(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -188(%rbp)
	jl	.L5
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -188(%rbp)
	jmp	.L6
.L16:
	leaq	-204(%rbp), %rdx
	leaq	-213(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -180(%rbp)
	jmp	.L7
.L15:
	movzbl	-213(%rbp), %eax
	cmpb	$78, %al
	jne	.L8
	addl	$1, -196(%rbp)
.L8:
	movzbl	-213(%rbp), %eax
	cmpb	$69, %al
	jne	.L9
	addl	$1, -200(%rbp)
.L9:
	movzbl	-213(%rbp), %eax
	cmpb	$83, %al
	jne	.L10
	subl	$1, -196(%rbp)
.L10:
	movzbl	-213(%rbp), %eax
	cmpb	$87, %al
	jne	.L11
	subl	$1, -200(%rbp)
.L11:
	movl	$0, -184(%rbp)
	jmp	.L12
.L14:
	movl	-184(%rbp), %eax
	cltq
	movl	-176(%rbp,%rax,4), %eax
	cmpl	%eax, -200(%rbp)
	jne	.L13
	movl	-184(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-176(%rbp,%rax,4), %eax
	cmpl	%eax, -196(%rbp)
	jne	.L13
	movl	-184(%rbp), %eax
	cltq
	movl	$-1, -176(%rbp,%rax,4)
	movl	-184(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$-1, -176(%rbp,%rax,4)
	addl	$1, -192(%rbp)
.L13:
	addl	$2, -184(%rbp)
.L12:
	movl	-212(%rbp), %eax
	subl	$1, %eax
	addl	%eax, %eax
	cmpl	%eax, -184(%rbp)
	jle	.L14
	addl	$1, -180(%rbp)
.L7:
	movl	-204(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L15
	addl	$1, -188(%rbp)
.L6:
	movl	-208(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jl	.L16
	movl	-212(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	je	.L17
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L17:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L21:
	call	__stack_chk_fail@PLT
.L20:
	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	"%d"
.LC1:
	.string	"%s%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L19:
	movl	$10, -200(%rbp)
	movl	$10, -196(%rbp)
	leaq	-176(%rbp), %rdx
	movl	$0, %eax
	movl	$20, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -192(%rbp)
	leaq	-212(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-212(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	jmp	.L21
.L2:
	movl	$0, -188(%rbp)
	jmp	.L4
.L5:
	leaq	-176(%rbp), %rdx
	movl	-188(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -188(%rbp)
.L4:
	movl	-212(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -188(%rbp)
	jl	.L5
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -188(%rbp)
	jmp	.L6
.L16:
	leaq	-204(%rbp), %rdx
	leaq	-213(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -180(%rbp)
	jmp	.L7
.L15:
	movzbl	-213(%rbp), %eax
	cmpb	$78, %al
	jne	.L8
	addl	$1, -196(%rbp)
.L8:
	movzbl	-213(%rbp), %eax
	cmpb	$69, %al
	jne	.L9
	addl	$1, -200(%rbp)
.L9:
	movzbl	-213(%rbp), %eax
	cmpb	$83, %al
	jne	.L10
	subl	$1, -196(%rbp)
.L10:
	movzbl	-213(%rbp), %eax
	cmpb	$87, %al
	jne	.L11
	subl	$1, -200(%rbp)
.L11:
	movl	$0, -184(%rbp)
	jmp	.L12
.L14:
	movl	-184(%rbp), %eax
	cltq
	movl	-176(%rbp,%rax,4), %eax
	cmpl	%eax, -200(%rbp)
	jne	.L13
	movl	-184(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-176(%rbp,%rax,4), %eax
	cmpl	%eax, -196(%rbp)
	jne	.L13
	movl	-184(%rbp), %eax
	cltq
	movl	$-1, -176(%rbp,%rax,4)
	movl	-184(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$-1, -176(%rbp,%rax,4)
	addl	$1, -192(%rbp)
.L13:
	addl	$2, -184(%rbp)
.L12:
	movl	-212(%rbp), %eax
	subl	$1, %eax
	addl	%eax, %eax
	cmpl	%eax, -184(%rbp)
	jle	.L14
	addl	$1, -180(%rbp)
.L7:
	movl	-204(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L15
	addl	$1, -188(%rbp)
.L6:
	movl	-208(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jl	.L16
	movl	-212(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	je	.L17
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L17:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L21:
	call	__stack_chk_fail@PLT
.L20:
	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:
