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>
   
   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;
  }       ```

Assembly Code:

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

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

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:

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 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;
  }       ```

Assembly Code:

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

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	"%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:
```