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 map[22][22],N,M,ii,jj;
int xy[4][2]={{0,-1},{1,0},{0,1},{-1,0}};
void move(int,int);
int main()
{
  int i,j,s,t;
  char ch,ch1;
  while(1){
    scanf("%d",&N);
    if(N==0)break;
    for(i=0;i<21;i++){
      for(j=0;j<21;j++){
         map[i][j]=0;
      }
    }
    ii=10;jj=10;
    for(i=0;i<N;i++){
      scanf("%d%d",&s,&t);
      map[t][s]=1;
    }
    scanf("%d",&M);
    for(i=0;i<M;i++){
      scanf("%c%c%d",&ch,&ch1,&s);
      switch(ch1){
      case 'W':
	move(0,s);
        break;
      case 'N':
        move(1,s);
	break;
      case 'E':
	move(2,s);
	break;
      default:
	move(3,s);
	break;
      }
    }
    /*map[10][10]=7;
    for(i=0;i<20;i++){
      for(j=0;j<20;j++){
        printf("%d ",map[i][j]);
      }
      printf("\n");
      }*/
    if(N==0)printf("Yes\n");
    else printf("No\n");
  }
  return 0;
}

void move(int s,int t)
{
  int i;
  for(i=0;i<t;i++){
    ii+=xy[s][0];
    jj+=xy[s][1];
    // map[ii][jj]=2;
     if(map[ii][jj]==1){
      map[ii][jj]=0;
      N--;
      }
  }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	map
	.bss
	.align 32
	.type	map, @object
	.size	map, 1936
map:
	.zero	1936
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	ii
	.align 4
	.type	ii, @object
	.size	ii, 4
ii:
	.zero	4
	.globl	jj
	.align 4
	.type	jj, @object
	.size	jj, 4
jj:
	.zero	4
	.globl	xy
	.data
	.align 32
	.type	xy, @object
	.size	xy, 32
xy:
	.long	0
	.long	-1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	-1
	.long	0
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%c%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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L19:
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	je	.L23
	movl	$0, -16(%rbp)
	jmp	.L4
.L7:
	movl	$0, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L5:
	cmpl	$20, -12(%rbp)
	jle	.L6
	addl	$1, -16(%rbp)
.L4:
	cmpl	$20, -16(%rbp)
	jle	.L7
	movl	$10, ii(%rip)
	movl	$10, jj(%rip)
	movl	$0, -16(%rbp)
	jmp	.L8
.L9:
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L8:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L9
	leaq	M(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L10
.L16:
	leaq	-24(%rbp), %rcx
	leaq	-25(%rbp), %rdx
	leaq	-26(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-25(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$87, %eax
	je	.L11
	cmpl	$87, %eax
	jg	.L12
	cmpl	$69, %eax
	je	.L13
	cmpl	$78, %eax
	je	.L14
	jmp	.L12
.L11:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$0, %edi
	call	move
	jmp	.L15
.L14:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$1, %edi
	call	move
	jmp	.L15
.L13:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$2, %edi
	call	move
	jmp	.L15
.L12:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$3, %edi
	call	move
	nop
.L15:
	addl	$1, -16(%rbp)
.L10:
	movl	M(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L16
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L17
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L17:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L23:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	move
	.type	move, @function
move:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L25
.L27:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	xy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	ii(%rip), %eax
	addl	%edx, %eax
	movl	%eax, ii(%rip)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+xy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	jj(%rip), %eax
	addl	%edx, %eax
	movl	%eax, jj(%rip)
	movl	ii(%rip), %eax
	movl	jj(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L26
	movl	ii(%rip), %eax
	movl	jj(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	N(%rip), %eax
	subl	$1, %eax
	movl	%eax, N(%rip)
.L26:
	addl	$1, -4(%rbp)
.L25:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L27
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	move, .-move
	.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%c%d"
.LC3:
	.string	"Yes"
.LC4:
	.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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
.L2:
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %esi
	testl	%esi, %esi
	je	.L3
	leaq	map(%rip), %rdx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	8(%rdx), %rdi
	movq	%rdx, %rcx
	movq	$0, (%rdx)
	leaq	1848+map(%rip), %rbx
	andq	$-8, %rdi
	movq	$0, 76(%rdx)
	addq	$88, %rdx
	subq	%rdi, %rcx
	addl	$84, %ecx
	shrl	$3, %ecx
	rep stosq
	cmpq	%rbx, %rdx
	jne	.L4
	movl	$10, ii(%rip)
	movl	$10, jj(%rip)
	testl	%esi, %esi
	jle	.L8
	xorl	%ebp, %ebp
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rax
	addl	$1, %ebp
	movslq	16(%rsp), %rdx
	leaq	map(%rip), %rsi
	cmpl	%ebp, N(%rip)
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	leaq	(%rdx,%rax,2), %rax
	movl	$1, (%rsi,%rax,4)
	jg	.L5
.L8:
	leaq	M(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	M(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	xorl	%r12d, %r12d
	leaq	16(%rsp), %rbx
	leaq	15(%rsp), %rbp
	leaq	14(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbx, %rcx
	movq	%rbp, %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movzbl	15(%rsp), %eax
	cmpb	$78, %al
	je	.L11
	cmpb	$87, %al
	je	.L12
	cmpb	$69, %al
	je	.L78
	movl	16(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	28+xy(%rip), %r8d
	movl	24+xy(%rip), %edi
	movl	ii(%rip), %r15d
	movl	jj(%rip), %r10d
	cmpl	$1, %r8d
	movl	N(%rip), %ecx
	setne	%sil
	cmpl	$1, %edi
	setne	%al
	orb	%al, %sil
	jne	.L79
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r10d, %rax
	leaq	(%rax,%r9,2), %r11
	leal	-1(%rdx), %r9d
	leaq	(%r9,%r9,2), %r14
	leaq	map(%rip), %rax
	movq	%r9, %rdx
	leaq	(%rax,%r11,4), %rax
	leaq	(%r11,%r14,8), %r11
	subq	%r9, %r11
	leaq	92+map(%rip), %r14
	leaq	(%r14,%r11,4), %r9
	.p2align 4,,10
	.p2align 3
.L41:
	cmpl	$1, 92(%rax)
	jne	.L40
	movl	$0, 92(%rax)
	subl	$1, %ecx
	movl	$1, %esi
.L40:
	addq	$92, %rax
	cmpq	%r9, %rax
	jne	.L41
.L75:
	addl	%edi, %r15d
	addl	%r8d, %r10d
.L39:
	imull	%edx, %r8d
	imull	%edx, %edi
	addl	%r8d, %r10d
	leal	(%r15,%rdi), %eax
	movl	%r10d, jj(%rip)
	movl	%eax, ii(%rip)
	testb	%sil, %sil
	je	.L16
.L72:
	movl	%ecx, N(%rip)
.L16:
	addl	$1, %r12d
	cmpl	%r12d, M(%rip)
	jg	.L6
.L7:
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L80
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L12:
	movl	16(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	xy(%rip), %edi
	movl	4+xy(%rip), %r8d
	movl	ii(%rip), %r15d
	movl	jj(%rip), %r10d
	cmpl	$1, %edi
	movl	N(%rip), %ecx
	setne	%sil
	cmpl	$1, %r8d
	setne	%al
	orb	%al, %sil
	jne	.L81
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r10d, %rax
	leaq	(%rax,%r9,2), %r11
	leal	-1(%rdx), %r9d
	leaq	(%r9,%r9,2), %r14
	leaq	map(%rip), %rax
	movq	%r9, %rdx
	leaq	(%rax,%r11,4), %rax
	leaq	(%r11,%r14,8), %r11
	subq	%r9, %r11
	leaq	92+map(%rip), %r14
	leaq	(%r14,%r11,4), %r9
	.p2align 4,,10
	.p2align 3
.L22:
	cmpl	$1, 92(%rax)
	jne	.L21
	movl	$0, 92(%rax)
	subl	$1, %ecx
	movl	$1, %esi
.L21:
	addq	$92, %rax
	cmpq	%r9, %rax
	jne	.L22
	jmp	.L75
.L78:
	movl	16(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	16+xy(%rip), %r8d
	movl	20+xy(%rip), %edi
	movl	ii(%rip), %r15d
	movl	jj(%rip), %r10d
	cmpl	$1, %r8d
	movl	N(%rip), %ecx
	setne	%sil
	cmpl	$1, %edi
	setne	%al
	orb	%al, %sil
	jne	.L82
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r10d, %rax
	leaq	(%rax,%r9,2), %r11
	leal	-1(%rdx), %r9d
	leaq	(%r9,%r9,2), %r14
	leaq	map(%rip), %rax
	movq	%r9, %rdx
	leaq	(%rax,%r11,4), %rax
	leaq	(%r11,%r14,8), %r11
	subq	%r9, %r11
	leaq	92+map(%rip), %r14
	leaq	(%r14,%r11,4), %r9
	.p2align 4,,10
	.p2align 3
.L35:
	cmpl	$1, 92(%rax)
	jne	.L34
	movl	$0, 92(%rax)
	subl	$1, %ecx
	movl	$1, %esi
.L34:
	addq	$92, %rax
	cmpq	%r9, %rax
	jne	.L35
.L73:
	addl	%r8d, %r15d
	addl	%edi, %r10d
.L33:
	imull	%edx, %edi
	imull	%edx, %r8d
	leal	(%rdi,%r10), %eax
	movl	%eax, jj(%rip)
	leal	(%r15,%r8), %eax
	movl	%eax, ii(%rip)
	testb	%sil, %sil
	jne	.L72
	jmp	.L16
.L11:
	movl	16(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	8+xy(%rip), %r8d
	movl	12+xy(%rip), %edi
	movl	ii(%rip), %r15d
	movl	jj(%rip), %r10d
	cmpl	$1, %r8d
	movl	N(%rip), %ecx
	setne	%sil
	cmpl	$1, %edi
	setne	%al
	orb	%al, %sil
	jne	.L83
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r10d, %rax
	leaq	(%rax,%r9,2), %r11
	leal	-1(%rdx), %r9d
	leaq	(%r9,%r9,2), %r14
	leaq	map(%rip), %rax
	movq	%r9, %rdx
	leaq	(%rax,%r11,4), %rax
	leaq	(%r11,%r14,8), %r11
	subq	%r9, %r11
	leaq	92+map(%rip), %r14
	leaq	(%r14,%r11,4), %r9
	.p2align 4,,10
	.p2align 3
.L29:
	cmpl	$1, 92(%rax)
	jne	.L28
	movl	$0, 92(%rax)
	subl	$1, %ecx
	movl	$1, %esi
.L28:
	addq	$92, %rax
	cmpq	%r9, %rax
	jne	.L29
	jmp	.L73
.L80:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L83:
	movslq	%r8d, %rax
	addl	%r8d, %r15d
	leaq	map(%rip), %r14
	addl	%edi, %r10d
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%edi, %rax
	leaq	(%rax,%r9,2), %r11
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	salq	$2, %r11
	leaq	(%rax,%r9,2), %rax
	movslq	%r10d, %r9
	leaq	(%r9,%rax,2), %rax
	xorl	%r9d, %r9d
	leaq	(%r14,%rax,4), %rax
	xorl	%r14d, %r14d
.L26:
	cmpl	$1, (%rax)
	jne	.L25
	movl	$0, (%rax)
	subl	$1, %ecx
	movl	%esi, %r14d
.L25:
	addl	$1, %r9d
	addq	%r11, %rax
	cmpl	%r9d, %edx
	jne	.L26
	movl	%r14d, %esi
	subl	$1, %edx
	jmp	.L33
.L82:
	movslq	%r8d, %rax
	addl	%r8d, %r15d
	leaq	map(%rip), %r14
	addl	%edi, %r10d
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%edi, %rax
	leaq	(%rax,%r9,2), %r11
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	salq	$2, %r11
	leaq	(%rax,%r9,2), %rax
	movslq	%r10d, %r9
	leaq	(%r9,%rax,2), %rax
	xorl	%r9d, %r9d
	leaq	(%r14,%rax,4), %rax
	xorl	%r14d, %r14d
.L32:
	cmpl	$1, (%rax)
	jne	.L31
	movl	$0, (%rax)
	subl	$1, %ecx
	movl	%esi, %r14d
.L31:
	addl	$1, %r9d
	addq	%r11, %rax
	cmpl	%r9d, %edx
	jne	.L32
	movl	%r14d, %esi
	subl	$1, %edx
	jmp	.L33
.L79:
	movslq	%edi, %rax
	addl	%edi, %r15d
	leaq	map(%rip), %r14
	addl	%r8d, %r10d
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r8d, %rax
	leaq	(%rax,%r9,2), %r11
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	salq	$2, %r11
	leaq	(%rax,%r9,2), %rax
	movslq	%r10d, %r9
	leaq	(%r9,%rax,2), %rax
	xorl	%r9d, %r9d
	leaq	(%r14,%rax,4), %rax
	xorl	%r14d, %r14d
.L38:
	cmpl	$1, (%rax)
	jne	.L37
	movl	$0, (%rax)
	subl	$1, %ecx
	movl	%esi, %r14d
.L37:
	addl	$1, %r9d
	addq	%r11, %rax
	cmpl	%r9d, %edx
	jne	.L38
	movl	%r14d, %esi
	subl	$1, %edx
	jmp	.L39
.L81:
	movslq	%edi, %rax
	addl	%edi, %r15d
	leaq	map(%rip), %r14
	addl	%r8d, %r10d
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r8d, %rax
	leaq	(%rax,%r9,2), %r11
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	salq	$2, %r11
	leaq	(%rax,%r9,2), %rax
	movslq	%r10d, %r9
	leaq	(%r9,%rax,2), %rax
	xorl	%r9d, %r9d
	leaq	(%r14,%rax,4), %rax
	xorl	%r14d, %r14d
.L19:
	cmpl	$1, (%rax)
	jne	.L18
	movl	$0, (%rax)
	subl	$1, %ecx
	movl	%esi, %r14d
.L18:
	addl	$1, %r9d
	addq	%r11, %rax
	cmpl	%r9d, %edx
	jne	.L19
	movl	%r14d, %esi
	subl	$1, %edx
	jmp	.L39
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L84
	addq	$40, %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
.L84:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	move
	.type	move, @function
move:
.LFB24:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L101
	leaq	xy(%rip), %rax
	movslq	%edi, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%esi, %edx
	movl	ii(%rip), %r8d
	movl	jj(%rip), %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	(%rax,%rdi,8), %r10d
	movl	4(%rax,%rdi,8), %r11d
	movl	N(%rip), %edi
	cmpl	$1, %r10d
	setne	%sil
	cmpl	$1, %r11d
	setne	%al
	orb	%al, %sil
	jne	.L104
	movslq	%r8d, %rax
	leal	-1(%rdx), %ebx
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rbx,%rbx,2), %rdx
	leaq	(%rax,%rcx,2), %rcx
	movslq	%r9d, %rax
	leaq	(%rax,%rcx,2), %rbp
	leaq	map(%rip), %rax
	movq	%rbx, %rcx
	leaq	0(%rbp,%rdx,8), %rdx
	leaq	(%rax,%rbp,4), %rax
	subq	%rbx, %rdx
	leaq	92+map(%rip), %rbx
	leaq	(%rbx,%rdx,4), %rdx
	.p2align 4,,10
	.p2align 3
.L93:
	cmpl	$1, 92(%rax)
	jne	.L92
	movl	$0, 92(%rax)
	subl	$1, %edi
	movl	$1, %esi
.L92:
	addq	$92, %rax
	cmpq	%rdx, %rax
	jne	.L93
	addl	%r10d, %r8d
	addl	%r11d, %r9d
.L91:
	movl	%r11d, %edx
	movl	%r10d, %eax
	imull	%ecx, %edx
	imull	%ecx, %eax
	addl	%edx, %r9d
	addl	%eax, %r8d
	movl	%r9d, jj(%rip)
	movl	%r8d, ii(%rip)
	testb	%sil, %sil
	je	.L85
	movl	%edi, N(%rip)
.L85:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L104:
	.cfi_restore_state
	movslq	%r10d, %rax
	addl	%r10d, %r8d
	addl	%r11d, %r9d
	xorl	%ebp, %ebp
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rcx
	movslq	%r11d, %rax
	leaq	(%rax,%rcx,2), %rbx
	movslq	%r8d, %rax
	leaq	(%rax,%rax,4), %rcx
	salq	$2, %rbx
	leaq	(%rax,%rcx,2), %rcx
	movslq	%r9d, %rax
	leaq	(%rax,%rcx,2), %rcx
	leaq	map(%rip), %rax
	leaq	(%rax,%rcx,4), %rax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L90:
	cmpl	$1, (%rax)
	jne	.L89
	movl	$0, (%rax)
	subl	$1, %edi
	movl	%esi, %ebp
.L89:
	addl	$1, %ecx
	addq	%rbx, %rax
	cmpl	%ecx, %edx
	jne	.L90
	movl	%ebp, %esi
	leal	-1(%rdx), %ecx
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L101:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE24:
	.size	move, .-move
	.globl	xy
	.data
	.align 32
	.type	xy, @object
	.size	xy, 32
xy:
	.long	0
	.long	-1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	-1
	.long	0
	.globl	jj
	.bss
	.align 4
	.type	jj, @object
	.size	jj, 4
jj:
	.zero	4
	.globl	ii
	.align 4
	.type	ii, @object
	.size	ii, 4
ii:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 1936
map:
	.zero	1936
	.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%c%d"
.LC3:
	.string	"Yes"
.LC4:
	.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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
.L2:
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %esi
	testl	%esi, %esi
	je	.L3
	leaq	map(%rip), %rdx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	8(%rdx), %rdi
	movq	%rdx, %rcx
	movq	$0, (%rdx)
	leaq	1848+map(%rip), %rbx
	andq	$-8, %rdi
	movq	$0, 76(%rdx)
	addq	$88, %rdx
	subq	%rdi, %rcx
	addl	$84, %ecx
	shrl	$3, %ecx
	rep stosq
	cmpq	%rbx, %rdx
	jne	.L4
	movl	$10, ii(%rip)
	movl	$10, jj(%rip)
	testl	%esi, %esi
	jle	.L8
	xorl	%ebp, %ebp
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rax
	addl	$1, %ebp
	movslq	16(%rsp), %rdx
	leaq	map(%rip), %rsi
	cmpl	%ebp, N(%rip)
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	leaq	(%rdx,%rax,2), %rax
	movl	$1, (%rsi,%rax,4)
	jg	.L5
.L8:
	leaq	M(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	M(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	xorl	%r12d, %r12d
	leaq	16(%rsp), %rbx
	leaq	15(%rsp), %rbp
	leaq	14(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbx, %rcx
	movq	%rbp, %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movzbl	15(%rsp), %eax
	cmpb	$78, %al
	je	.L11
	cmpb	$87, %al
	je	.L12
	cmpb	$69, %al
	je	.L78
	movl	16(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	28+xy(%rip), %r8d
	movl	24+xy(%rip), %edi
	movl	ii(%rip), %r15d
	movl	jj(%rip), %r10d
	cmpl	$1, %r8d
	movl	N(%rip), %ecx
	setne	%sil
	cmpl	$1, %edi
	setne	%al
	orb	%al, %sil
	jne	.L79
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r10d, %rax
	leaq	(%rax,%r9,2), %r11
	leal	-1(%rdx), %r9d
	leaq	(%r9,%r9,2), %r14
	leaq	map(%rip), %rax
	movq	%r9, %rdx
	leaq	(%rax,%r11,4), %rax
	leaq	(%r11,%r14,8), %r11
	subq	%r9, %r11
	leaq	92+map(%rip), %r14
	leaq	(%r14,%r11,4), %r9
	.p2align 4,,10
	.p2align 3
.L41:
	cmpl	$1, 92(%rax)
	jne	.L40
	movl	$0, 92(%rax)
	subl	$1, %ecx
	movl	$1, %esi
.L40:
	addq	$92, %rax
	cmpq	%r9, %rax
	jne	.L41
.L75:
	addl	%edi, %r15d
	addl	%r8d, %r10d
.L39:
	imull	%edx, %r8d
	imull	%edx, %edi
	addl	%r8d, %r10d
	leal	(%r15,%rdi), %eax
	movl	%r10d, jj(%rip)
	movl	%eax, ii(%rip)
	testb	%sil, %sil
	je	.L16
.L72:
	movl	%ecx, N(%rip)
.L16:
	addl	$1, %r12d
	cmpl	%r12d, M(%rip)
	jg	.L6
.L7:
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L80
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L12:
	movl	16(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	xy(%rip), %edi
	movl	4+xy(%rip), %r8d
	movl	ii(%rip), %r15d
	movl	jj(%rip), %r10d
	cmpl	$1, %edi
	movl	N(%rip), %ecx
	setne	%sil
	cmpl	$1, %r8d
	setne	%al
	orb	%al, %sil
	jne	.L81
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r10d, %rax
	leaq	(%rax,%r9,2), %r11
	leal	-1(%rdx), %r9d
	leaq	(%r9,%r9,2), %r14
	leaq	map(%rip), %rax
	movq	%r9, %rdx
	leaq	(%rax,%r11,4), %rax
	leaq	(%r11,%r14,8), %r11
	subq	%r9, %r11
	leaq	92+map(%rip), %r14
	leaq	(%r14,%r11,4), %r9
	.p2align 4,,10
	.p2align 3
.L22:
	cmpl	$1, 92(%rax)
	jne	.L21
	movl	$0, 92(%rax)
	subl	$1, %ecx
	movl	$1, %esi
.L21:
	addq	$92, %rax
	cmpq	%r9, %rax
	jne	.L22
	jmp	.L75
.L78:
	movl	16(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	16+xy(%rip), %r8d
	movl	20+xy(%rip), %edi
	movl	ii(%rip), %r15d
	movl	jj(%rip), %r10d
	cmpl	$1, %r8d
	movl	N(%rip), %ecx
	setne	%sil
	cmpl	$1, %edi
	setne	%al
	orb	%al, %sil
	jne	.L82
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r10d, %rax
	leaq	(%rax,%r9,2), %r11
	leal	-1(%rdx), %r9d
	leaq	(%r9,%r9,2), %r14
	leaq	map(%rip), %rax
	movq	%r9, %rdx
	leaq	(%rax,%r11,4), %rax
	leaq	(%r11,%r14,8), %r11
	subq	%r9, %r11
	leaq	92+map(%rip), %r14
	leaq	(%r14,%r11,4), %r9
	.p2align 4,,10
	.p2align 3
.L35:
	cmpl	$1, 92(%rax)
	jne	.L34
	movl	$0, 92(%rax)
	subl	$1, %ecx
	movl	$1, %esi
.L34:
	addq	$92, %rax
	cmpq	%r9, %rax
	jne	.L35
.L73:
	addl	%r8d, %r15d
	addl	%edi, %r10d
.L33:
	imull	%edx, %edi
	imull	%edx, %r8d
	leal	(%rdi,%r10), %eax
	movl	%eax, jj(%rip)
	leal	(%r15,%r8), %eax
	movl	%eax, ii(%rip)
	testb	%sil, %sil
	jne	.L72
	jmp	.L16
.L11:
	movl	16(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	8+xy(%rip), %r8d
	movl	12+xy(%rip), %edi
	movl	ii(%rip), %r15d
	movl	jj(%rip), %r10d
	cmpl	$1, %r8d
	movl	N(%rip), %ecx
	setne	%sil
	cmpl	$1, %edi
	setne	%al
	orb	%al, %sil
	jne	.L83
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r10d, %rax
	leaq	(%rax,%r9,2), %r11
	leal	-1(%rdx), %r9d
	leaq	(%r9,%r9,2), %r14
	leaq	map(%rip), %rax
	movq	%r9, %rdx
	leaq	(%rax,%r11,4), %rax
	leaq	(%r11,%r14,8), %r11
	subq	%r9, %r11
	leaq	92+map(%rip), %r14
	leaq	(%r14,%r11,4), %r9
	.p2align 4,,10
	.p2align 3
.L29:
	cmpl	$1, 92(%rax)
	jne	.L28
	movl	$0, 92(%rax)
	subl	$1, %ecx
	movl	$1, %esi
.L28:
	addq	$92, %rax
	cmpq	%r9, %rax
	jne	.L29
	jmp	.L73
.L80:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L83:
	movslq	%r8d, %rax
	addl	%r8d, %r15d
	leaq	map(%rip), %r14
	addl	%edi, %r10d
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%edi, %rax
	leaq	(%rax,%r9,2), %r11
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	salq	$2, %r11
	leaq	(%rax,%r9,2), %rax
	movslq	%r10d, %r9
	leaq	(%r9,%rax,2), %rax
	xorl	%r9d, %r9d
	leaq	(%r14,%rax,4), %rax
	xorl	%r14d, %r14d
.L26:
	cmpl	$1, (%rax)
	jne	.L25
	movl	$0, (%rax)
	subl	$1, %ecx
	movl	%esi, %r14d
.L25:
	addl	$1, %r9d
	addq	%r11, %rax
	cmpl	%r9d, %edx
	jne	.L26
	movl	%r14d, %esi
	subl	$1, %edx
	jmp	.L33
.L82:
	movslq	%r8d, %rax
	addl	%r8d, %r15d
	leaq	map(%rip), %r14
	addl	%edi, %r10d
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%edi, %rax
	leaq	(%rax,%r9,2), %r11
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	salq	$2, %r11
	leaq	(%rax,%r9,2), %rax
	movslq	%r10d, %r9
	leaq	(%r9,%rax,2), %rax
	xorl	%r9d, %r9d
	leaq	(%r14,%rax,4), %rax
	xorl	%r14d, %r14d
.L32:
	cmpl	$1, (%rax)
	jne	.L31
	movl	$0, (%rax)
	subl	$1, %ecx
	movl	%esi, %r14d
.L31:
	addl	$1, %r9d
	addq	%r11, %rax
	cmpl	%r9d, %edx
	jne	.L32
	movl	%r14d, %esi
	subl	$1, %edx
	jmp	.L33
.L79:
	movslq	%edi, %rax
	addl	%edi, %r15d
	leaq	map(%rip), %r14
	addl	%r8d, %r10d
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r8d, %rax
	leaq	(%rax,%r9,2), %r11
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	salq	$2, %r11
	leaq	(%rax,%r9,2), %rax
	movslq	%r10d, %r9
	leaq	(%r9,%rax,2), %rax
	xorl	%r9d, %r9d
	leaq	(%r14,%rax,4), %rax
	xorl	%r14d, %r14d
.L38:
	cmpl	$1, (%rax)
	jne	.L37
	movl	$0, (%rax)
	subl	$1, %ecx
	movl	%esi, %r14d
.L37:
	addl	$1, %r9d
	addq	%r11, %rax
	cmpl	%r9d, %edx
	jne	.L38
	movl	%r14d, %esi
	subl	$1, %edx
	jmp	.L39
.L81:
	movslq	%edi, %rax
	addl	%edi, %r15d
	leaq	map(%rip), %r14
	addl	%r8d, %r10d
	leaq	(%rax,%rax,4), %r9
	leaq	(%rax,%r9,2), %r9
	movslq	%r8d, %rax
	leaq	(%rax,%r9,2), %r11
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r9
	salq	$2, %r11
	leaq	(%rax,%r9,2), %rax
	movslq	%r10d, %r9
	leaq	(%r9,%rax,2), %rax
	xorl	%r9d, %r9d
	leaq	(%r14,%rax,4), %rax
	xorl	%r14d, %r14d
.L19:
	cmpl	$1, (%rax)
	jne	.L18
	movl	$0, (%rax)
	subl	$1, %ecx
	movl	%esi, %r14d
.L18:
	addl	$1, %r9d
	addq	%r11, %rax
	cmpl	%r9d, %edx
	jne	.L19
	movl	%r14d, %esi
	subl	$1, %edx
	jmp	.L39
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L84
	addq	$40, %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
.L84:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	move
	.type	move, @function
move:
.LFB24:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L101
	leaq	xy(%rip), %rax
	movslq	%edi, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%esi, %edx
	movl	ii(%rip), %r8d
	movl	jj(%rip), %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	(%rax,%rdi,8), %r10d
	movl	4(%rax,%rdi,8), %r11d
	movl	N(%rip), %edi
	cmpl	$1, %r10d
	setne	%sil
	cmpl	$1, %r11d
	setne	%al
	orb	%al, %sil
	jne	.L104
	movslq	%r8d, %rax
	leal	-1(%rdx), %ebx
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rbx,%rbx,2), %rdx
	leaq	(%rax,%rcx,2), %rcx
	movslq	%r9d, %rax
	leaq	(%rax,%rcx,2), %rbp
	leaq	map(%rip), %rax
	movq	%rbx, %rcx
	leaq	0(%rbp,%rdx,8), %rdx
	leaq	(%rax,%rbp,4), %rax
	subq	%rbx, %rdx
	leaq	92+map(%rip), %rbx
	leaq	(%rbx,%rdx,4), %rdx
	.p2align 4,,10
	.p2align 3
.L93:
	cmpl	$1, 92(%rax)
	jne	.L92
	movl	$0, 92(%rax)
	subl	$1, %edi
	movl	$1, %esi
.L92:
	addq	$92, %rax
	cmpq	%rdx, %rax
	jne	.L93
	addl	%r10d, %r8d
	addl	%r11d, %r9d
.L91:
	movl	%r11d, %edx
	movl	%r10d, %eax
	imull	%ecx, %edx
	imull	%ecx, %eax
	addl	%edx, %r9d
	addl	%eax, %r8d
	movl	%r9d, jj(%rip)
	movl	%r8d, ii(%rip)
	testb	%sil, %sil
	je	.L85
	movl	%edi, N(%rip)
.L85:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L104:
	.cfi_restore_state
	movslq	%r10d, %rax
	addl	%r10d, %r8d
	addl	%r11d, %r9d
	xorl	%ebp, %ebp
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rcx
	movslq	%r11d, %rax
	leaq	(%rax,%rcx,2), %rbx
	movslq	%r8d, %rax
	leaq	(%rax,%rax,4), %rcx
	salq	$2, %rbx
	leaq	(%rax,%rcx,2), %rcx
	movslq	%r9d, %rax
	leaq	(%rax,%rcx,2), %rcx
	leaq	map(%rip), %rax
	leaq	(%rax,%rcx,4), %rax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L90:
	cmpl	$1, (%rax)
	jne	.L89
	movl	$0, (%rax)
	subl	$1, %edi
	movl	%esi, %ebp
.L89:
	addl	$1, %ecx
	addq	%rbx, %rax
	cmpl	%ecx, %edx
	jne	.L90
	movl	%ebp, %esi
	leal	-1(%rdx), %ecx
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L101:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE24:
	.size	move, .-move
	.globl	xy
	.data
	.align 32
	.type	xy, @object
	.size	xy, 32
xy:
	.long	0
	.long	-1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	-1
	.long	0
	.globl	jj
	.bss
	.align 4
	.type	jj, @object
	.size	jj, 4
jj:
	.zero	4
	.globl	ii
	.align 4
	.type	ii, @object
	.size	ii, 4
ii:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 1936
map:
	.zero	1936
	.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 map[22][22],N,M,ii,jj;
int xy[4][2]={{0,-1},{1,0},{0,1},{-1,0}};
void move(int,int);
int main()
{
  int i,j,s,t;
  char ch,ch1;
  while(1){
    scanf("%d",&N);
    if(N==0)break;
    for(i=0;i<21;i++){
      for(j=0;j<21;j++){
         map[i][j]=0;
      }
    }
    ii=10;jj=10;
    for(i=0;i<N;i++){
      scanf("%d%d",&s,&t);
      map[t][s]=1;
    }
    scanf("%d",&M);
    for(i=0;i<M;i++){
      scanf("%c%c%d",&ch,&ch1,&s);
      switch(ch1){
      case 'W':
	move(0,s);
        break;
      case 'N':
        move(1,s);
	break;
      case 'E':
	move(2,s);
	break;
      default:
	move(3,s);
	break;
      }
    }
    /*map[10][10]=7;
    for(i=0;i<20;i++){
      for(j=0;j<20;j++){
        printf("%d ",map[i][j]);
      }
      printf("\n");
      }*/
    if(N==0)printf("Yes\n");
    else printf("No\n");
  }
  return 0;
}

void move(int s,int t)
{
  int i;
  for(i=0;i<t;i++){
    ii+=xy[s][0];
    jj+=xy[s][1];
    // map[ii][jj]=2;
     if(map[ii][jj]==1){
      map[ii][jj]=0;
      N--;
      }
  }
}
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 map[22][22],N,M,ii,jj;
int xy[4][2]={{0,-1},{1,0},{0,1},{-1,0}};
void move(int,int);
int main()
{
  int i,j,s,t;
  char ch,ch1;
  while(1){
    scanf("%d",&N);
    if(N==0)break;
    for(i=0;i<21;i++){
      for(j=0;j<21;j++){
         map[i][j]=0;
      }
    }
    ii=10;jj=10;
    for(i=0;i<N;i++){
      scanf("%d%d",&s,&t);
      map[t][s]=1;
    }
    scanf("%d",&M);
    for(i=0;i<M;i++){
      scanf("%c%c%d",&ch,&ch1,&s);
      switch(ch1){
      case 'W':
	move(0,s);
        break;
      case 'N':
        move(1,s);
	break;
      case 'E':
	move(2,s);
	break;
      default:
	move(3,s);
	break;
      }
    }
    /*map[10][10]=7;
    for(i=0;i<20;i++){
      for(j=0;j<20;j++){
        printf("%d ",map[i][j]);
      }
      printf("\n");
      }*/
    if(N==0)printf("Yes\n");
    else printf("No\n");
  }
  return 0;
}

void move(int s,int t)
{
  int i;
  for(i=0;i<t;i++){
    ii+=xy[s][0];
    jj+=xy[s][1];
    // map[ii][jj]=2;
     if(map[ii][jj]==1){
      map[ii][jj]=0;
      N--;
      }
  }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	map
	.bss
	.align 32
	.type	map, @object
	.size	map, 1936
map:
	.zero	1936
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	ii
	.align 4
	.type	ii, @object
	.size	ii, 4
ii:
	.zero	4
	.globl	jj
	.align 4
	.type	jj, @object
	.size	jj, 4
jj:
	.zero	4
	.globl	xy
	.data
	.align 32
	.type	xy, @object
	.size	xy, 32
xy:
	.long	0
	.long	-1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	-1
	.long	0
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%c%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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L19:
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	je	.L23
	movl	$0, -16(%rbp)
	jmp	.L4
.L7:
	movl	$0, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L5:
	cmpl	$20, -12(%rbp)
	jle	.L6
	addl	$1, -16(%rbp)
.L4:
	cmpl	$20, -16(%rbp)
	jle	.L7
	movl	$10, ii(%rip)
	movl	$10, jj(%rip)
	movl	$0, -16(%rbp)
	jmp	.L8
.L9:
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L8:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L9
	leaq	M(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L10
.L16:
	leaq	-24(%rbp), %rcx
	leaq	-25(%rbp), %rdx
	leaq	-26(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-25(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$87, %eax
	je	.L11
	cmpl	$87, %eax
	jg	.L12
	cmpl	$69, %eax
	je	.L13
	cmpl	$78, %eax
	je	.L14
	jmp	.L12
.L11:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$0, %edi
	call	move
	jmp	.L15
.L14:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$1, %edi
	call	move
	jmp	.L15
.L13:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$2, %edi
	call	move
	jmp	.L15
.L12:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$3, %edi
	call	move
	nop
.L15:
	addl	$1, -16(%rbp)
.L10:
	movl	M(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L16
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L17
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L17:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L23:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	move
	.type	move, @function
move:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L25
.L27:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	xy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	ii(%rip), %eax
	addl	%edx, %eax
	movl	%eax, ii(%rip)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+xy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	jj(%rip), %eax
	addl	%edx, %eax
	movl	%eax, jj(%rip)
	movl	ii(%rip), %eax
	movl	jj(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L26
	movl	ii(%rip), %eax
	movl	jj(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	N(%rip), %eax
	subl	$1, %eax
	movl	%eax, N(%rip)
.L26:
	addl	$1, -4(%rbp)
.L25:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L27
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	move, .-move
	.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
	.globl	map
	.bss
	.align 32
	.type	map, @object
	.size	map, 1936
map:
	.zero	1936
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	ii
	.align 4
	.type	ii, @object
	.size	ii, 4
ii:
	.zero	4
	.globl	jj
	.align 4
	.type	jj, @object
	.size	jj, 4
jj:
	.zero	4
	.globl	xy
	.data
	.align 32
	.type	xy, @object
	.size	xy, 32
xy:
	.long	0
	.long	-1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	-1
	.long	0
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%c%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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L19:
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	je	.L23
	movl	$0, -16(%rbp)
	jmp	.L4
.L7:
	movl	$0, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L5:
	cmpl	$20, -12(%rbp)
	jle	.L6
	addl	$1, -16(%rbp)
.L4:
	cmpl	$20, -16(%rbp)
	jle	.L7
	movl	$10, ii(%rip)
	movl	$10, jj(%rip)
	movl	$0, -16(%rbp)
	jmp	.L8
.L9:
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L8:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L9
	leaq	M(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L10
.L16:
	leaq	-24(%rbp), %rcx
	leaq	-25(%rbp), %rdx
	leaq	-26(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-25(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$87, %eax
	je	.L11
	cmpl	$87, %eax
	jg	.L12
	cmpl	$69, %eax
	je	.L13
	cmpl	$78, %eax
	je	.L14
	jmp	.L12
.L11:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$0, %edi
	call	move
	jmp	.L15
.L14:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$1, %edi
	call	move
	jmp	.L15
.L13:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$2, %edi
	call	move
	jmp	.L15
.L12:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	$3, %edi
	call	move
	nop
.L15:
	addl	$1, -16(%rbp)
.L10:
	movl	M(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L16
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L17
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L17:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L23:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	move
	.type	move, @function
move:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L25
.L27:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	xy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	ii(%rip), %eax
	addl	%edx, %eax
	movl	%eax, ii(%rip)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+xy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	jj(%rip), %eax
	addl	%edx, %eax
	movl	%eax, jj(%rip)
	movl	ii(%rip), %eax
	movl	jj(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L26
	movl	ii(%rip), %eax
	movl	jj(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	N(%rip), %eax
	subl	$1, %eax
	movl	%eax, N(%rip)
.L26:
	addl	$1, -4(%rbp)
.L25:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L27
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	move, .-move
	.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:
