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){

  int n,m;
  int a,b;
  int i,j;

  for(;;){

    int map[21][21]={0},goable[21][21]={0};

    scanf("%d",&n);
    if(n==0)break;
    
    for(i=0;i<n;i++){
      scanf("%d %d",&a,&b); /*(a,b)???????????§?¨?(x,y)*/
      map[a][b]=1;
    }

    scanf("%d",&m);

    int x=10,y=10;
    char d;
    int l;
    (void)getchar();

    for(i=0;i<m;i++){
      scanf("%c %d",&d,&l);
      (void)getchar();
      if(d=='N'){
	for(j=0;j<=l;j++)goable[x][y+j]=1;
	y+=l;
      }
      else if(d=='E'){
	for(j=0;j<=l;j++)goable[x+j][y]=1;
	x+=l;
      }
      else if(d=='S'){
	for(j=0;j<=l;j++)goable[x][y-j]=1;
	y-=l;
      }
      else if(d=='W'){
	for(j=0;j<=l;j++)goable[x-j][y]=1;
	x-=l;
      }
    }

 
    int get=0;

    for(i=0;i<21;i++)
      for(j=0;j<21;j++)
	if(map[i][j]*goable[i][j]==1)
	  get++;

    if(get==n)puts("Yes");
    else puts("No");

  }

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.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	$3600, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L27:
	leaq	-3552(%rbp), %rdx
	movl	$0, %eax
	movl	$220, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-1776(%rbp), %rdx
	movl	$0, %eax
	movl	$220, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-3592(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3592(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	jmp	.L29
.L2:
	movl	$0, -3572(%rbp)
	jmp	.L4
.L5:
	leaq	-3580(%rbp), %rdx
	leaq	-3584(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3584(%rbp), %eax
	movl	-3580(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -3552(%rbp,%rax,4)
	addl	$1, -3572(%rbp)
.L4:
	movl	-3592(%rbp), %eax
	cmpl	%eax, -3572(%rbp)
	jl	.L5
	leaq	-3588(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$10, -3564(%rbp)
	movl	$10, -3560(%rbp)
	call	getchar@PLT
	movl	$0, -3572(%rbp)
	jmp	.L6
.L19:
	leaq	-3576(%rbp), %rdx
	leaq	-3593(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movzbl	-3593(%rbp), %eax
	cmpb	$78, %al
	jne	.L7
	movl	$0, -3568(%rbp)
	jmp	.L8
.L9:
	movl	-3560(%rbp), %edx
	movl	-3568(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movl	-3564(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L8:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L9
	movl	-3576(%rbp), %eax
	addl	%eax, -3560(%rbp)
	jmp	.L10
.L7:
	movzbl	-3593(%rbp), %eax
	cmpb	$69, %al
	jne	.L11
	movl	$0, -3568(%rbp)
	jmp	.L12
.L13:
	movl	-3564(%rbp), %edx
	movl	-3568(%rbp), %eax
	addl	%eax, %edx
	movl	-3560(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L12:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L13
	movl	-3576(%rbp), %eax
	addl	%eax, -3564(%rbp)
	jmp	.L10
.L11:
	movzbl	-3593(%rbp), %eax
	cmpb	$83, %al
	jne	.L14
	movl	$0, -3568(%rbp)
	jmp	.L15
.L16:
	movl	-3560(%rbp), %eax
	subl	-3568(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3564(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L15:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L16
	movl	-3576(%rbp), %eax
	subl	%eax, -3560(%rbp)
	jmp	.L10
.L14:
	movzbl	-3593(%rbp), %eax
	cmpb	$87, %al
	jne	.L10
	movl	$0, -3568(%rbp)
	jmp	.L17
.L18:
	movl	-3564(%rbp), %eax
	subl	-3568(%rbp), %eax
	movl	-3560(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L17:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L18
	movl	-3576(%rbp), %eax
	subl	%eax, -3564(%rbp)
.L10:
	addl	$1, -3572(%rbp)
.L6:
	movl	-3588(%rbp), %eax
	cmpl	%eax, -3572(%rbp)
	jl	.L19
	movl	$0, -3556(%rbp)
	movl	$0, -3572(%rbp)
	jmp	.L20
.L24:
	movl	$0, -3568(%rbp)
	jmp	.L21
.L23:
	movl	-3568(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3572(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-3552(%rbp,%rax,4), %ecx
	movl	-3568(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3572(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	imull	%ecx, %eax
	cmpl	$1, %eax
	jne	.L22
	addl	$1, -3556(%rbp)
.L22:
	addl	$1, -3568(%rbp)
.L21:
	cmpl	$20, -3568(%rbp)
	jle	.L23
	addl	$1, -3572(%rbp)
.L20:
	cmpl	$20, -3572(%rbp)
	jle	.L24
	movl	-3592(%rbp), %eax
	cmpl	%eax, -3556(%rbp)
	jne	.L25
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L27
.L25:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L27
.L29:
	call	__stack_chk_fail@PLT
.L28:
	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	"%d %d"
.LC2:
	.string	"%c %d"
.LC4:
	.string	"Yes"
.LC5:
	.string	"No"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$3640, %rsp
	.cfi_def_cfa_offset 3696
	movq	%fs:40, %rax
	movq	%rax, 3624(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	1856(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	60(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	1772(%rsp), %rax
	movq	%rax, 24(%rsp)
.L29:
	movq	8(%rsp), %rdi
	xorl	%eax, %eax
	movl	$220, %ecx
	movq	16(%rsp), %rsi
	rep stosq
	movl	$220, %ecx
	movl	$0, (%rdi)
	movq	(%rsp), %rdi
	rep stosq
	movl	$0, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %edx
	testl	%edx, %edx
	je	.L2
	jle	.L3
	xorl	%r13d, %r13d
	leaq	72(%rsp), %r12
	leaq	68(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	68(%rsp), %rax
	movslq	72(%rsp), %rdx
	addl	$1, %r13d
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rdx, %rax
	movl	$1, 80(%rsp,%rax,4)
	cmpl	%r13d, 60(%rsp)
	jg	.L4
.L3:
	leaq	64(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	64(%rsp), %eax
	movdqa	.LC3(%rip), %xmm2
	testl	%eax, %eax
	jle	.L5
	movdqa	.LC3(%rip), %xmm2
	movl	$10, %ebx
	xorl	%r15d, %r15d
	leaq	76(%rsp), %r13
	movl	$10, %r14d
	leaq	59(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	movaps	%xmm2, 32(%rsp)
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$69, %al
	je	.L66
	cmpb	$83, %al
	je	.L67
	cmpb	$87, %al
	je	.L68
.L11:
	addl	$1, %r15d
	cmpl	%r15d, 64(%rsp)
	jle	.L69
.L22:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movzbl	59(%rsp), %eax
	cmpb	$78, %al
	jne	.L6
	movl	76(%rsp), %esi
	testl	%esi, %esi
	js	.L7
	leal	1(%rsi), %edi
	cmpl	$2, %esi
	jle	.L31
	movslq	%r14d, %rax
	movq	(%rsp), %rcx
	movslq	%ebx, %r9
	movl	%edi, %r8d
	leaq	(%rax,%rax,4), %rdx
	movdqa	.LC3(%rip), %xmm7
	shrl	$2, %r8d
	leaq	(%rax,%rdx,4), %rdx
	addq	%r9, %rdx
	leaq	(%rcx,%rdx,4), %rdx
	movups	%xmm7, (%rdx)
	cmpl	$1, %r8d
	je	.L9
	movups	%xmm7, 16(%rdx)
	cmpl	$2, %r8d
	je	.L9
	movups	%xmm7, 32(%rdx)
	cmpl	$3, %r8d
	je	.L9
	movups	%xmm7, 48(%rdx)
	cmpl	$4, %r8d
	je	.L9
	movups	%xmm7, 64(%rdx)
.L9:
	movl	%edi, %edx
	andl	$-4, %edx
	andl	$3, %edi
	je	.L7
.L8:
	leaq	(%rax,%rax,4), %rdi
	leal	(%rbx,%rdx), %r8d
	movslq	%r8d, %r8
	leaq	(%rax,%rdi,4), %rdi
	leaq	(%rdi,%r8), %rax
	movl	$1, 1856(%rsp,%rax,4)
	leal	1(%rdx), %eax
	cmpl	%eax, %esi
	jl	.L7
	addl	%ebx, %eax
	addl	$2, %edx
	cltq
	addq	%rdi, %rax
	movl	$1, 1856(%rsp,%rax,4)
	cmpl	%edx, %esi
	jl	.L7
	addl	%ebx, %edx
	movslq	%edx, %rax
	addq	%rax, %rdi
	movl	$1, 1856(%rsp,%rdi,4)
.L7:
	addl	%esi, %ebx
	addl	$1, %r15d
	cmpl	%r15d, 64(%rsp)
	jg	.L22
.L69:
	movdqa	32(%rsp), %xmm2
.L5:
	movq	8(%rsp), %rax
	movq	(%rsp), %rdx
	leaq	1844(%rsp), %rdi
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L24:
	movdqu	(%rdx), %xmm0
	movdqu	(%rax), %xmm1
	movdqu	(%rax), %xmm5
	movdqu	(%rdx), %xmm3
	psrlq	$32, %xmm1
	psrlq	$32, %xmm0
	movdqu	16(%rax), %xmm4
	movdqu	16(%rax), %xmm6
	pmuludq	%xmm5, %xmm3
	pmuludq	%xmm1, %xmm0
	movdqu	16(%rdx), %xmm1
	movdqu	32(%rdx), %xmm7
	psrlq	$32, %xmm4
	movdqu	48(%rax), %xmm5
	psrlq	$32, %xmm1
	pmuludq	%xmm4, %xmm1
	movdqu	32(%rdx), %xmm4
	pshufd	$8, %xmm0, %xmm0
	psrlq	$32, %xmm4
	pshufd	$8, %xmm3, %xmm3
	punpckldq	%xmm0, %xmm3
	movdqu	16(%rdx), %xmm0
	pcmpeqd	%xmm2, %xmm3
	pmuludq	%xmm6, %xmm0
	pshufd	$8, %xmm1, %xmm1
	movdqu	64(%rdx), %xmm6
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm1, %xmm0
	movdqu	32(%rax), %xmm1
	pcmpeqd	%xmm2, %xmm0
	psrlq	$32, %xmm1
	pmuludq	%xmm4, %xmm1
	movdqu	48(%rax), %xmm4
	pand	%xmm2, %xmm0
	psubd	%xmm3, %xmm0
	movdqu	32(%rax), %xmm3
	psrlq	$32, %xmm4
	pmuludq	%xmm7, %xmm3
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm3, %xmm3
	punpckldq	%xmm1, %xmm3
	movdqa	%xmm3, %xmm1
	movdqu	48(%rdx), %xmm3
	pcmpeqd	%xmm2, %xmm1
	pmuludq	%xmm5, %xmm3
	psubd	%xmm1, %xmm0
	movdqu	48(%rdx), %xmm1
	psrlq	$32, %xmm1
	pmuludq	%xmm4, %xmm1
	pshufd	$8, %xmm3, %xmm3
	movdqu	64(%rdx), %xmm4
	psrlq	$32, %xmm4
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm3
	movdqu	64(%rax), %xmm1
	pcmpeqd	%xmm2, %xmm3
	psrlq	$32, %xmm1
	pmuludq	%xmm4, %xmm1
	psubd	%xmm3, %xmm0
	movdqu	64(%rax), %xmm3
	pmuludq	%xmm6, %xmm3
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm3, %xmm3
	punpckldq	%xmm1, %xmm3
	pcmpeqd	%xmm2, %xmm3
	psubd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	addl	%esi, %ecx
	movl	80(%rdx), %esi
	imull	80(%rax), %esi
	cmpl	$1, %esi
	sete	%sil
	addq	$84, %rax
	addq	$84, %rdx
	movzbl	%sil, %esi
	addl	%esi, %ecx
	cmpq	%rax, %rdi
	jne	.L24
	cmpl	60(%rsp), %ecx
	je	.L70
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L29
.L66:
	movl	76(%rsp), %r8d
	testl	%r8d, %r8d
	js	.L13
	movslq	%r14d, %rdi
	movslq	%r8d, %rdx
	movslq	%ebx, %rsi
	movq	(%rsp), %rcx
	leaq	(%rdi,%rdi,4), %rax
	addq	%rdi, %rdx
	leaq	(%rdi,%rax,4), %rax
	leaq	(%rdx,%rdx,4), %rdi
	leaq	(%rdx,%rdi,4), %rdx
	addq	%rsi, %rax
	addq	%rsi, %rdx
	leaq	(%rcx,%rax,4), %rax
	leaq	1940(%rsp,%rdx,4), %rdx
	.p2align 4,,10
	.p2align 3
.L14:
	movl	$1, (%rax)
	addq	$84, %rax
	cmpq	%rdx, %rax
	jne	.L14
.L13:
	addl	%r8d, %r14d
	jmp	.L11
.L67:
	movl	76(%rsp), %edx
	testl	%edx, %edx
	js	.L16
	leal	1(%rdx), %r8d
	cmpl	$2, %edx
	jle	.L32
	movslq	%r14d, %rax
	movq	(%rsp), %rcx
	movslq	%ebx, %r9
	movl	%r8d, %edi
	leaq	(%rax,%rax,4), %rsi
	movdqa	.LC3(%rip), %xmm7
	shrl	$2, %edi
	leaq	(%rax,%rsi,4), %rsi
	addq	%r9, %rsi
	leaq	-12(%rcx,%rsi,4), %rsi
	movups	%xmm7, (%rsi)
	cmpl	$1, %edi
	je	.L18
	movups	%xmm7, -16(%rsi)
	cmpl	$2, %edi
	je	.L18
	movups	%xmm7, -32(%rsi)
	cmpl	$3, %edi
	je	.L18
	movups	%xmm7, -48(%rsi)
	cmpl	$4, %edi
	je	.L18
	movups	%xmm7, -64(%rsi)
.L18:
	movl	%r8d, %esi
	andl	$-4, %esi
	andl	$3, %r8d
	je	.L16
.L17:
	movl	%ebx, %edi
	leaq	(%rax,%rax,4), %r8
	subl	%esi, %edi
	leaq	(%rax,%r8,4), %rax
	leal	1(%rsi), %r8d
	movslq	%edi, %rdi
	addq	%rax, %rdi
	movl	$1, 1856(%rsp,%rdi,4)
	cmpl	%r8d, %edx
	jl	.L16
	movl	%ebx, %edi
	addl	$2, %esi
	subl	%r8d, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	movl	$1, 1856(%rsp,%rdi,4)
	cmpl	%esi, %edx
	jl	.L16
	movl	%ebx, %edi
	subl	%esi, %edi
	movslq	%edi, %rsi
	addq	%rsi, %rax
	movl	$1, 1856(%rsp,%rax,4)
.L16:
	subl	%edx, %ebx
	jmp	.L11
.L68:
	movl	76(%rsp), %edi
	testl	%edi, %edi
	js	.L20
	movslq	%r14d, %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,4), %rsi
	movslq	%edi, %rdx
	movslq	%ebx, %rax
	leaq	(%rdx,%rdx,4), %r8
	addq	%rax, %rsi
	movq	(%rsp), %rax
	leaq	(%rdx,%r8,4), %r8
	movq	24(%rsp), %rdx
	salq	$2, %rsi
	salq	$2, %r8
	addq	%rsi, %rax
	subq	%r8, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L21:
	movl	$1, (%rax)
	subq	$84, %rax
	cmpq	%rax, %rdx
	jne	.L21
.L20:
	subl	%edi, %r14d
	jmp	.L11
.L70:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L29
.L2:
	movq	3624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L71
	addq	$3640, %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
.L31:
	.cfi_restore_state
	xorl	%edx, %edx
	movslq	%r14d, %rax
	jmp	.L8
.L32:
	xorl	%esi, %esi
	movslq	%r14d, %rax
	jmp	.L17
.L71:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	1
	.long	1
	.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	"%d %d"
.LC2:
	.string	"%c %d"
.LC4:
	.string	"Yes"
.LC5:
	.string	"No"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$3640, %rsp
	.cfi_def_cfa_offset 3696
	movq	%fs:40, %rax
	movq	%rax, 3624(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	1856(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	60(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	1772(%rsp), %rax
	movq	%rax, 24(%rsp)
.L29:
	movq	8(%rsp), %rdi
	xorl	%eax, %eax
	movl	$220, %ecx
	movq	16(%rsp), %rsi
	rep stosq
	movl	$220, %ecx
	movl	$0, (%rdi)
	movq	(%rsp), %rdi
	rep stosq
	movl	$0, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %edx
	testl	%edx, %edx
	je	.L2
	jle	.L3
	xorl	%r13d, %r13d
	leaq	72(%rsp), %r12
	leaq	68(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	68(%rsp), %rax
	movslq	72(%rsp), %rdx
	addl	$1, %r13d
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rdx, %rax
	movl	$1, 80(%rsp,%rax,4)
	cmpl	%r13d, 60(%rsp)
	jg	.L4
.L3:
	leaq	64(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	64(%rsp), %eax
	movdqa	.LC3(%rip), %xmm2
	testl	%eax, %eax
	jle	.L5
	movdqa	.LC3(%rip), %xmm2
	movl	$10, %ebx
	xorl	%r15d, %r15d
	leaq	76(%rsp), %r13
	movl	$10, %r14d
	leaq	59(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	movaps	%xmm2, 32(%rsp)
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$69, %al
	je	.L66
	cmpb	$83, %al
	je	.L67
	cmpb	$87, %al
	je	.L68
.L11:
	addl	$1, %r15d
	cmpl	%r15d, 64(%rsp)
	jle	.L69
.L22:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movzbl	59(%rsp), %eax
	cmpb	$78, %al
	jne	.L6
	movl	76(%rsp), %esi
	testl	%esi, %esi
	js	.L7
	leal	1(%rsi), %edi
	cmpl	$2, %esi
	jle	.L31
	movslq	%r14d, %rax
	movq	(%rsp), %rcx
	movslq	%ebx, %r9
	movl	%edi, %r8d
	leaq	(%rax,%rax,4), %rdx
	movdqa	.LC3(%rip), %xmm7
	shrl	$2, %r8d
	leaq	(%rax,%rdx,4), %rdx
	addq	%r9, %rdx
	leaq	(%rcx,%rdx,4), %rdx
	movups	%xmm7, (%rdx)
	cmpl	$1, %r8d
	je	.L9
	movups	%xmm7, 16(%rdx)
	cmpl	$2, %r8d
	je	.L9
	movups	%xmm7, 32(%rdx)
	cmpl	$3, %r8d
	je	.L9
	movups	%xmm7, 48(%rdx)
	cmpl	$4, %r8d
	je	.L9
	movups	%xmm7, 64(%rdx)
.L9:
	movl	%edi, %edx
	andl	$-4, %edx
	andl	$3, %edi
	je	.L7
.L8:
	leaq	(%rax,%rax,4), %rdi
	leal	(%rbx,%rdx), %r8d
	movslq	%r8d, %r8
	leaq	(%rax,%rdi,4), %rdi
	leaq	(%rdi,%r8), %rax
	movl	$1, 1856(%rsp,%rax,4)
	leal	1(%rdx), %eax
	cmpl	%eax, %esi
	jl	.L7
	addl	%ebx, %eax
	addl	$2, %edx
	cltq
	addq	%rdi, %rax
	movl	$1, 1856(%rsp,%rax,4)
	cmpl	%edx, %esi
	jl	.L7
	addl	%ebx, %edx
	movslq	%edx, %rax
	addq	%rax, %rdi
	movl	$1, 1856(%rsp,%rdi,4)
.L7:
	addl	%esi, %ebx
	addl	$1, %r15d
	cmpl	%r15d, 64(%rsp)
	jg	.L22
.L69:
	movdqa	32(%rsp), %xmm2
.L5:
	movq	8(%rsp), %rax
	movq	(%rsp), %rdx
	leaq	1844(%rsp), %rdi
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L24:
	movdqu	(%rdx), %xmm0
	movdqu	(%rax), %xmm1
	movdqu	(%rax), %xmm5
	movdqu	(%rdx), %xmm3
	psrlq	$32, %xmm1
	psrlq	$32, %xmm0
	movdqu	16(%rax), %xmm4
	movdqu	16(%rax), %xmm6
	pmuludq	%xmm5, %xmm3
	pmuludq	%xmm1, %xmm0
	movdqu	16(%rdx), %xmm1
	movdqu	32(%rdx), %xmm7
	psrlq	$32, %xmm4
	movdqu	48(%rax), %xmm5
	psrlq	$32, %xmm1
	pmuludq	%xmm4, %xmm1
	movdqu	32(%rdx), %xmm4
	pshufd	$8, %xmm0, %xmm0
	psrlq	$32, %xmm4
	pshufd	$8, %xmm3, %xmm3
	punpckldq	%xmm0, %xmm3
	movdqu	16(%rdx), %xmm0
	pcmpeqd	%xmm2, %xmm3
	pmuludq	%xmm6, %xmm0
	pshufd	$8, %xmm1, %xmm1
	movdqu	64(%rdx), %xmm6
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm1, %xmm0
	movdqu	32(%rax), %xmm1
	pcmpeqd	%xmm2, %xmm0
	psrlq	$32, %xmm1
	pmuludq	%xmm4, %xmm1
	movdqu	48(%rax), %xmm4
	pand	%xmm2, %xmm0
	psubd	%xmm3, %xmm0
	movdqu	32(%rax), %xmm3
	psrlq	$32, %xmm4
	pmuludq	%xmm7, %xmm3
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm3, %xmm3
	punpckldq	%xmm1, %xmm3
	movdqa	%xmm3, %xmm1
	movdqu	48(%rdx), %xmm3
	pcmpeqd	%xmm2, %xmm1
	pmuludq	%xmm5, %xmm3
	psubd	%xmm1, %xmm0
	movdqu	48(%rdx), %xmm1
	psrlq	$32, %xmm1
	pmuludq	%xmm4, %xmm1
	pshufd	$8, %xmm3, %xmm3
	movdqu	64(%rdx), %xmm4
	psrlq	$32, %xmm4
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm3
	movdqu	64(%rax), %xmm1
	pcmpeqd	%xmm2, %xmm3
	psrlq	$32, %xmm1
	pmuludq	%xmm4, %xmm1
	psubd	%xmm3, %xmm0
	movdqu	64(%rax), %xmm3
	pmuludq	%xmm6, %xmm3
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm3, %xmm3
	punpckldq	%xmm1, %xmm3
	pcmpeqd	%xmm2, %xmm3
	psubd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	addl	%esi, %ecx
	movl	80(%rdx), %esi
	imull	80(%rax), %esi
	cmpl	$1, %esi
	sete	%sil
	addq	$84, %rax
	addq	$84, %rdx
	movzbl	%sil, %esi
	addl	%esi, %ecx
	cmpq	%rax, %rdi
	jne	.L24
	cmpl	60(%rsp), %ecx
	je	.L70
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L29
.L66:
	movl	76(%rsp), %r8d
	testl	%r8d, %r8d
	js	.L13
	movslq	%r14d, %rdi
	movslq	%r8d, %rdx
	movslq	%ebx, %rsi
	movq	(%rsp), %rcx
	leaq	(%rdi,%rdi,4), %rax
	addq	%rdi, %rdx
	leaq	(%rdi,%rax,4), %rax
	leaq	(%rdx,%rdx,4), %rdi
	leaq	(%rdx,%rdi,4), %rdx
	addq	%rsi, %rax
	addq	%rsi, %rdx
	leaq	(%rcx,%rax,4), %rax
	leaq	1940(%rsp,%rdx,4), %rdx
	.p2align 4,,10
	.p2align 3
.L14:
	movl	$1, (%rax)
	addq	$84, %rax
	cmpq	%rdx, %rax
	jne	.L14
.L13:
	addl	%r8d, %r14d
	jmp	.L11
.L67:
	movl	76(%rsp), %edx
	testl	%edx, %edx
	js	.L16
	leal	1(%rdx), %r8d
	cmpl	$2, %edx
	jle	.L32
	movslq	%r14d, %rax
	movq	(%rsp), %rcx
	movslq	%ebx, %r9
	movl	%r8d, %edi
	leaq	(%rax,%rax,4), %rsi
	movdqa	.LC3(%rip), %xmm7
	shrl	$2, %edi
	leaq	(%rax,%rsi,4), %rsi
	addq	%r9, %rsi
	leaq	-12(%rcx,%rsi,4), %rsi
	movups	%xmm7, (%rsi)
	cmpl	$1, %edi
	je	.L18
	movups	%xmm7, -16(%rsi)
	cmpl	$2, %edi
	je	.L18
	movups	%xmm7, -32(%rsi)
	cmpl	$3, %edi
	je	.L18
	movups	%xmm7, -48(%rsi)
	cmpl	$4, %edi
	je	.L18
	movups	%xmm7, -64(%rsi)
.L18:
	movl	%r8d, %esi
	andl	$-4, %esi
	andl	$3, %r8d
	je	.L16
.L17:
	movl	%ebx, %edi
	leaq	(%rax,%rax,4), %r8
	subl	%esi, %edi
	leaq	(%rax,%r8,4), %rax
	leal	1(%rsi), %r8d
	movslq	%edi, %rdi
	addq	%rax, %rdi
	movl	$1, 1856(%rsp,%rdi,4)
	cmpl	%r8d, %edx
	jl	.L16
	movl	%ebx, %edi
	addl	$2, %esi
	subl	%r8d, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	movl	$1, 1856(%rsp,%rdi,4)
	cmpl	%esi, %edx
	jl	.L16
	movl	%ebx, %edi
	subl	%esi, %edi
	movslq	%edi, %rsi
	addq	%rsi, %rax
	movl	$1, 1856(%rsp,%rax,4)
.L16:
	subl	%edx, %ebx
	jmp	.L11
.L68:
	movl	76(%rsp), %edi
	testl	%edi, %edi
	js	.L20
	movslq	%r14d, %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,4), %rsi
	movslq	%edi, %rdx
	movslq	%ebx, %rax
	leaq	(%rdx,%rdx,4), %r8
	addq	%rax, %rsi
	movq	(%rsp), %rax
	leaq	(%rdx,%r8,4), %r8
	movq	24(%rsp), %rdx
	salq	$2, %rsi
	salq	$2, %r8
	addq	%rsi, %rax
	subq	%r8, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L21:
	movl	$1, (%rax)
	subq	$84, %rax
	cmpq	%rax, %rdx
	jne	.L21
.L20:
	subl	%edi, %r14d
	jmp	.L11
.L70:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L29
.L2:
	movq	3624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L71
	addq	$3640, %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
.L31:
	.cfi_restore_state
	xorl	%edx, %edx
	movslq	%r14d, %rax
	jmp	.L8
.L32:
	xorl	%esi, %esi
	movslq	%r14d, %rax
	jmp	.L17
.L71:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	1
	.long	1
	.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){

  int n,m;
  int a,b;
  int i,j;

  for(;;){

    int map[21][21]={0},goable[21][21]={0};

    scanf("%d",&n);
    if(n==0)break;
    
    for(i=0;i<n;i++){
      scanf("%d %d",&a,&b); /*(a,b)???????????§?¨?(x,y)*/
      map[a][b]=1;
    }

    scanf("%d",&m);

    int x=10,y=10;
    char d;
    int l;
    (void)getchar();

    for(i=0;i<m;i++){
      scanf("%c %d",&d,&l);
      (void)getchar();
      if(d=='N'){
	for(j=0;j<=l;j++)goable[x][y+j]=1;
	y+=l;
      }
      else if(d=='E'){
	for(j=0;j<=l;j++)goable[x+j][y]=1;
	x+=l;
      }
      else if(d=='S'){
	for(j=0;j<=l;j++)goable[x][y-j]=1;
	y-=l;
      }
      else if(d=='W'){
	for(j=0;j<=l;j++)goable[x-j][y]=1;
	x-=l;
      }
    }

 
    int get=0;

    for(i=0;i<21;i++)
      for(j=0;j<21;j++)
	if(map[i][j]*goable[i][j]==1)
	  get++;

    if(get==n)puts("Yes");
    else puts("No");

  }

  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
No
No
 No
No
No
 No
Yes
No
 No
 No
No
 No
No
Yes
 Yes
No
No
 Yes
No
No
 Yes
No
No
 No
No
No

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){

  int n,m;
  int a,b;
  int i,j;

  for(;;){

    int map[21][21]={0},goable[21][21]={0};

    scanf("%d",&n);
    if(n==0)break;
    
    for(i=0;i<n;i++){
      scanf("%d %d",&a,&b); /*(a,b)???????????§?¨?(x,y)*/
      map[a][b]=1;
    }

    scanf("%d",&m);

    int x=10,y=10;
    char d;
    int l;
    (void)getchar();

    for(i=0;i<m;i++){
      scanf("%c %d",&d,&l);
      (void)getchar();
      if(d=='N'){
	for(j=0;j<=l;j++)goable[x][y+j]=1;
	y+=l;
      }
      else if(d=='E'){
	for(j=0;j<=l;j++)goable[x+j][y]=1;
	x+=l;
      }
      else if(d=='S'){
	for(j=0;j<=l;j++)goable[x][y-j]=1;
	y-=l;
      }
      else if(d=='W'){
	for(j=0;j<=l;j++)goable[x-j][y]=1;
	x-=l;
      }
    }

 
    int get=0;

    for(i=0;i<21;i++)
      for(j=0;j<21;j++)
	if(map[i][j]*goable[i][j]==1)
	  get++;

    if(get==n)puts("Yes");
    else puts("No");

  }

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.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	$3600, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L27:
	leaq	-3552(%rbp), %rdx
	movl	$0, %eax
	movl	$220, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-1776(%rbp), %rdx
	movl	$0, %eax
	movl	$220, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-3592(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3592(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	jmp	.L29
.L2:
	movl	$0, -3572(%rbp)
	jmp	.L4
.L5:
	leaq	-3580(%rbp), %rdx
	leaq	-3584(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3584(%rbp), %eax
	movl	-3580(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -3552(%rbp,%rax,4)
	addl	$1, -3572(%rbp)
.L4:
	movl	-3592(%rbp), %eax
	cmpl	%eax, -3572(%rbp)
	jl	.L5
	leaq	-3588(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$10, -3564(%rbp)
	movl	$10, -3560(%rbp)
	call	getchar@PLT
	movl	$0, -3572(%rbp)
	jmp	.L6
.L19:
	leaq	-3576(%rbp), %rdx
	leaq	-3593(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movzbl	-3593(%rbp), %eax
	cmpb	$78, %al
	jne	.L7
	movl	$0, -3568(%rbp)
	jmp	.L8
.L9:
	movl	-3560(%rbp), %edx
	movl	-3568(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movl	-3564(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L8:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L9
	movl	-3576(%rbp), %eax
	addl	%eax, -3560(%rbp)
	jmp	.L10
.L7:
	movzbl	-3593(%rbp), %eax
	cmpb	$69, %al
	jne	.L11
	movl	$0, -3568(%rbp)
	jmp	.L12
.L13:
	movl	-3564(%rbp), %edx
	movl	-3568(%rbp), %eax
	addl	%eax, %edx
	movl	-3560(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L12:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L13
	movl	-3576(%rbp), %eax
	addl	%eax, -3564(%rbp)
	jmp	.L10
.L11:
	movzbl	-3593(%rbp), %eax
	cmpb	$83, %al
	jne	.L14
	movl	$0, -3568(%rbp)
	jmp	.L15
.L16:
	movl	-3560(%rbp), %eax
	subl	-3568(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3564(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L15:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L16
	movl	-3576(%rbp), %eax
	subl	%eax, -3560(%rbp)
	jmp	.L10
.L14:
	movzbl	-3593(%rbp), %eax
	cmpb	$87, %al
	jne	.L10
	movl	$0, -3568(%rbp)
	jmp	.L17
.L18:
	movl	-3564(%rbp), %eax
	subl	-3568(%rbp), %eax
	movl	-3560(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L17:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L18
	movl	-3576(%rbp), %eax
	subl	%eax, -3564(%rbp)
.L10:
	addl	$1, -3572(%rbp)
.L6:
	movl	-3588(%rbp), %eax
	cmpl	%eax, -3572(%rbp)
	jl	.L19
	movl	$0, -3556(%rbp)
	movl	$0, -3572(%rbp)
	jmp	.L20
.L24:
	movl	$0, -3568(%rbp)
	jmp	.L21
.L23:
	movl	-3568(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3572(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-3552(%rbp,%rax,4), %ecx
	movl	-3568(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3572(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	imull	%ecx, %eax
	cmpl	$1, %eax
	jne	.L22
	addl	$1, -3556(%rbp)
.L22:
	addl	$1, -3568(%rbp)
.L21:
	cmpl	$20, -3568(%rbp)
	jle	.L23
	addl	$1, -3572(%rbp)
.L20:
	cmpl	$20, -3572(%rbp)
	jle	.L24
	movl	-3592(%rbp), %eax
	cmpl	%eax, -3556(%rbp)
	jne	.L25
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L27
.L25:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L27
.L29:
	call	__stack_chk_fail@PLT
.L28:
	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	"%d %d"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.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	$3600, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L27:
	leaq	-3552(%rbp), %rdx
	movl	$0, %eax
	movl	$220, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-1776(%rbp), %rdx
	movl	$0, %eax
	movl	$220, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	leaq	-3592(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3592(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	jmp	.L29
.L2:
	movl	$0, -3572(%rbp)
	jmp	.L4
.L5:
	leaq	-3580(%rbp), %rdx
	leaq	-3584(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3584(%rbp), %eax
	movl	-3580(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -3552(%rbp,%rax,4)
	addl	$1, -3572(%rbp)
.L4:
	movl	-3592(%rbp), %eax
	cmpl	%eax, -3572(%rbp)
	jl	.L5
	leaq	-3588(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$10, -3564(%rbp)
	movl	$10, -3560(%rbp)
	call	getchar@PLT
	movl	$0, -3572(%rbp)
	jmp	.L6
.L19:
	leaq	-3576(%rbp), %rdx
	leaq	-3593(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movzbl	-3593(%rbp), %eax
	cmpb	$78, %al
	jne	.L7
	movl	$0, -3568(%rbp)
	jmp	.L8
.L9:
	movl	-3560(%rbp), %edx
	movl	-3568(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movl	-3564(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L8:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L9
	movl	-3576(%rbp), %eax
	addl	%eax, -3560(%rbp)
	jmp	.L10
.L7:
	movzbl	-3593(%rbp), %eax
	cmpb	$69, %al
	jne	.L11
	movl	$0, -3568(%rbp)
	jmp	.L12
.L13:
	movl	-3564(%rbp), %edx
	movl	-3568(%rbp), %eax
	addl	%eax, %edx
	movl	-3560(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L12:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L13
	movl	-3576(%rbp), %eax
	addl	%eax, -3564(%rbp)
	jmp	.L10
.L11:
	movzbl	-3593(%rbp), %eax
	cmpb	$83, %al
	jne	.L14
	movl	$0, -3568(%rbp)
	jmp	.L15
.L16:
	movl	-3560(%rbp), %eax
	subl	-3568(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3564(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L15:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L16
	movl	-3576(%rbp), %eax
	subl	%eax, -3560(%rbp)
	jmp	.L10
.L14:
	movzbl	-3593(%rbp), %eax
	cmpb	$87, %al
	jne	.L10
	movl	$0, -3568(%rbp)
	jmp	.L17
.L18:
	movl	-3564(%rbp), %eax
	subl	-3568(%rbp), %eax
	movl	-3560(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -1776(%rbp,%rax,4)
	addl	$1, -3568(%rbp)
.L17:
	movl	-3576(%rbp), %eax
	cmpl	%eax, -3568(%rbp)
	jle	.L18
	movl	-3576(%rbp), %eax
	subl	%eax, -3564(%rbp)
.L10:
	addl	$1, -3572(%rbp)
.L6:
	movl	-3588(%rbp), %eax
	cmpl	%eax, -3572(%rbp)
	jl	.L19
	movl	$0, -3556(%rbp)
	movl	$0, -3572(%rbp)
	jmp	.L20
.L24:
	movl	$0, -3568(%rbp)
	jmp	.L21
.L23:
	movl	-3568(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3572(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-3552(%rbp,%rax,4), %ecx
	movl	-3568(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3572(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	imull	%ecx, %eax
	cmpl	$1, %eax
	jne	.L22
	addl	$1, -3556(%rbp)
.L22:
	addl	$1, -3568(%rbp)
.L21:
	cmpl	$20, -3568(%rbp)
	jle	.L23
	addl	$1, -3572(%rbp)
.L20:
	cmpl	$20, -3572(%rbp)
	jle	.L24
	movl	-3592(%rbp), %eax
	cmpl	%eax, -3556(%rbp)
	jne	.L25
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L27
.L25:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L27
.L29:
	call	__stack_chk_fail@PLT
.L28:
	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:
