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(){
	int n, m, i, j;
	int now_x, now_y;
	int r;
	char direc;
	int x[3][20];
	while(1){

		for(i=0; i<20; i++){
			for(j=0; j<3; j++)
				x[j][i] = 0;
		}
		n=0;
		m=0;
		now_x=10;
		now_y=10;
		scanf("%d", &n);
		if(n==0)
			return 0;
		for(i=0; i<n; i++)
			scanf("%d %d", &x[0][i], &x[1][i]);
		scanf("%d", &m);
		for(j=0; j<m; j++){
			scanf("%s %d", &direc, &r);
			switch (direc){
				case 'N':
					for(i=0; i<n; i++){
						if((now_x == x[0][i])&&(now_y <= x[1][i])&&(x[1][i] <= now_y+r))
							x[2][i]=1;
					}
					now_y += r;
					break;
				case 'E':
					for(i=0; i<n; i++){
						if((now_y == x[1][i])&&(now_x <= x[0][i])&&(x[0][i] <= now_x+r))
							x[2][i]=1;
					}
					now_x += r;
					break;
				case 'S':
					for(i=0; i<n; i++){
						if((now_x == x[0][i])&&(now_y-r <= x[1][i])&&(x[1][i] <= now_y))
							x[2][i]=1;
					}
					now_y -= r;
					break;
				case 'W':
					for(i=0; i<n; i++){
						if((now_y == x[1][i])&&(now_x-r <= x[0][i])&&(x[0][i] <= now_x))
							x[2][i]=1;
					}
					now_x -= r;
					break;
			}
		}
		for(i=0; i<n; i++){
			if(x[2][i] == 0){
				printf("No\n");
		         	break;
                        }

		}
		if(i == n)
			printf("Yes\n");
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%s %d"
.LC3:
	.string	"No"
.LC4:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$288, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L33:
	movl	$0, -272(%rbp)
	jmp	.L2
.L5:
	movl	$0, -268(%rbp)
	jmp	.L3
.L4:
	movl	-272(%rbp), %eax
	movslq	%eax, %rcx
	movl	-268(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -256(%rbp,%rax,4)
	addl	$1, -268(%rbp)
.L3:
	cmpl	$2, -268(%rbp)
	jle	.L4
	addl	$1, -272(%rbp)
.L2:
	cmpl	$19, -272(%rbp)
	jle	.L5
	movl	$0, -284(%rbp)
	movl	$0, -280(%rbp)
	movl	$10, -264(%rbp)
	movl	$10, -260(%rbp)
	leaq	-284(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-284(%rbp), %eax
	testl	%eax, %eax
	jne	.L6
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	jmp	.L35
.L6:
	movl	$0, -272(%rbp)
	jmp	.L8
.L9:
	leaq	-256(%rbp), %rdx
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-256(%rbp), %rcx
	movl	-272(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -272(%rbp)
.L8:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L9
	leaq	-280(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -268(%rbp)
	jmp	.L10
.L27:
	leaq	-276(%rbp), %rdx
	leaq	-285(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-285(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$87, %eax
	je	.L11
	cmpl	$87, %eax
	jg	.L12
	cmpl	$83, %eax
	je	.L13
	cmpl	$83, %eax
	jg	.L12
	cmpl	$69, %eax
	je	.L14
	cmpl	$78, %eax
	jne	.L12
	movl	$0, -272(%rbp)
	jmp	.L15
.L17:
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jne	.L16
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jg	.L16
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	movl	-276(%rbp), %ecx
	movl	-260(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jg	.L16
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L16:
	addl	$1, -272(%rbp)
.L15:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L17
	movl	-276(%rbp), %eax
	addl	%eax, -260(%rbp)
	jmp	.L12
.L14:
	movl	$0, -272(%rbp)
	jmp	.L18
.L20:
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jne	.L19
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jg	.L19
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	movl	-276(%rbp), %ecx
	movl	-264(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jg	.L19
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L19:
	addl	$1, -272(%rbp)
.L18:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L20
	movl	-276(%rbp), %eax
	addl	%eax, -264(%rbp)
	jmp	.L12
.L13:
	movl	$0, -272(%rbp)
	jmp	.L21
.L23:
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jne	.L22
	movl	-276(%rbp), %ecx
	movl	-260(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L22
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jl	.L22
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L22:
	addl	$1, -272(%rbp)
.L21:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L23
	movl	-276(%rbp), %eax
	subl	%eax, -260(%rbp)
	jmp	.L12
.L11:
	movl	$0, -272(%rbp)
	jmp	.L24
.L26:
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jne	.L25
	movl	-276(%rbp), %ecx
	movl	-264(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L25
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jl	.L25
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L25:
	addl	$1, -272(%rbp)
.L24:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L26
	movl	-276(%rbp), %eax
	subl	%eax, -264(%rbp)
	nop
.L12:
	addl	$1, -268(%rbp)
.L10:
	movl	-280(%rbp), %eax
	cmpl	%eax, -268(%rbp)
	jl	.L27
	movl	$0, -272(%rbp)
	jmp	.L28
.L31:
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	-256(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L29
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L30
.L29:
	addl	$1, -272(%rbp)
.L28:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L31
.L30:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jne	.L33
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L33
.L35:
	call	__stack_chk_fail@PLT
.L34:
	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	"%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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$312, %rsp
	.cfi_def_cfa_offset 368
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	52(%rsp), %rax
	movq	%rax, 16(%rsp)
.L35:
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L34:
	movq	8(%rsp), %rdi
	xorl	%eax, %eax
	movl	$30, %ecx
	movq	24(%rsp), %rsi
	movl	$0, 36(%rsp)
	rep stosq
	leaq	.LC0(%rip), %rdi
	movl	$0, 40(%rsp)
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %edi
	testl	%edi, %edi
	je	.L2
	movq	8(%rsp), %rbx
	movl	$0, %ebp
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	80(%rbx), %rdx
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 36(%rsp)
	jg	.L6
.L7:
	leaq	40(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %esi
	testl	%esi, %esi
	jle	.L5
	xorl	%r15d, %r15d
	movl	$10, %r14d
	movl	$10, %r12d
	movl	%r15d, %eax
	leaq	44(%rsp), %rbp
	leaq	35(%rsp), %rbx
	movl	%r14d, %r15d
	movl	%eax, %r14d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	35(%rsp), %eax
	cmpb	$83, %al
	je	.L10
	jg	.L11
	cmpb	$69, %al
	je	.L12
	cmpb	$78, %al
	jne	.L14
	movl	36(%rsp), %edx
	movl	44(%rsp), %edi
	testl	%edx, %edx
	jle	.L65
	movq	16(%rsp), %rsi
	subl	$1, %edx
	movq	8(%rsp), %rax
	addl	%r12d, %edi
	leaq	(%rsi,%rdx,4), %rdx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L21
.L20:
	cmpl	%r15d, (%rax)
	jne	.L19
	movl	80(%rax), %ecx
	cmpl	%r12d, %ecx
	jl	.L19
	cmpl	%edi, %ecx
	jg	.L19
	movl	$1, 160(%rax)
	addq	$4, %rax
	cmpq	%rdx, %rax
	jne	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%edi, %r12d
.L14:
	addl	$1, %r14d
	cmpl	%r14d, 40(%rsp)
	jg	.L4
.L5:
	movl	36(%rsp), %edx
	leaq	208(%rsp), %rax
	xorl	%ebx, %ebx
	testl	%edx, %edx
	jg	.L32
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L31:
	addl	$1, %ebx
	addq	$4, %rax
	cmpl	%edx, %ebx
	je	.L33
.L32:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jne	.L31
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	movl	36(%rsp), %edx
.L9:
	cmpl	%edx, %ebx
	jne	.L34
.L33:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L11:
	cmpb	$87, %al
	jne	.L14
	movl	36(%rsp), %edx
	movl	44(%rsp), %edi
	testl	%edx, %edx
	jle	.L30
	movq	16(%rsp), %rsi
	movl	%r15d, %r9d
	subl	$1, %edx
	movq	8(%rsp), %rax
	subl	%edi, %r9d
	leaq	(%rsi,%rdx,4), %rdx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L28:
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L30
.L29:
	cmpl	%r12d, 80(%rax)
	jne	.L28
	movl	(%rax), %ecx
	cmpl	%r15d, %ecx
	jg	.L28
	cmpl	%ecx, %r9d
	jg	.L28
	movl	$1, 160(%rax)
	addq	$4, %rax
	cmpq	%rdx, %rax
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	subl	%edi, %r15d
	addl	$1, %r14d
	cmpl	%r14d, 40(%rsp)
	jg	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	movl	36(%rsp), %edx
	movl	44(%rsp), %edi
	testl	%edx, %edx
	jle	.L66
	movq	16(%rsp), %rsi
	subl	$1, %edx
	movq	8(%rsp), %rax
	addl	%r15d, %edi
	leaq	(%rsi,%rdx,4), %rdx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L24
.L23:
	cmpl	%r12d, 80(%rax)
	jne	.L22
	movl	(%rax), %ecx
	cmpl	%r15d, %ecx
	jl	.L22
	cmpl	%edi, %ecx
	jg	.L22
	movl	$1, 160(%rax)
	addq	$4, %rax
	cmpq	%rdx, %rax
	jne	.L23
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%edi, %r15d
.L67:
	addl	$1, %r14d
	cmpl	%r14d, 40(%rsp)
	jg	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	movl	36(%rsp), %edx
	movl	44(%rsp), %r9d
	testl	%edx, %edx
	jle	.L27
	movq	16(%rsp), %rsi
	movl	%r12d, %edi
	subl	$1, %edx
	movq	8(%rsp), %rax
	subl	%r9d, %edi
	leaq	(%rsi,%rdx,4), %rdx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L27
.L26:
	cmpl	%r15d, (%rax)
	jne	.L25
	movl	80(%rax), %ecx
	cmpl	%ecx, %edi
	jg	.L25
	cmpl	%r12d, %ecx
	jg	.L25
	movl	$1, 160(%rax)
	addq	$4, %rax
	cmpq	%rdx, %rax
	jne	.L26
	.p2align 4,,10
	.p2align 3
.L27:
	subl	%r9d, %r12d
	addl	$1, %r14d
	cmpl	%r14d, 40(%rsp)
	jg	.L4
	jmp	.L5
.L66:
	addl	%r15d, %edi
	movl	%edi, %r15d
	jmp	.L67
.L65:
	addl	%r12d, %edi
	movl	%edi, %r12d
	jmp	.L14
.L2:
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L68
	addq	$312, %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
.L68:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$312, %rsp
	.cfi_def_cfa_offset 368
	movq	%fs:40, %rax
	movq	%rax, 296(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	52(%rsp), %rax
	movq	%rax, 16(%rsp)
.L35:
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L34:
	movq	8(%rsp), %rdi
	xorl	%eax, %eax
	movl	$30, %ecx
	movq	24(%rsp), %rsi
	movl	$0, 36(%rsp)
	rep stosq
	leaq	.LC0(%rip), %rdi
	movl	$0, 40(%rsp)
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %edi
	testl	%edi, %edi
	je	.L2
	movq	8(%rsp), %rbx
	movl	$0, %ebp
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	80(%rbx), %rdx
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, 36(%rsp)
	jg	.L6
.L7:
	leaq	40(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %esi
	testl	%esi, %esi
	jle	.L5
	xorl	%r15d, %r15d
	movl	$10, %r14d
	movl	$10, %r12d
	movl	%r15d, %eax
	leaq	44(%rsp), %rbp
	leaq	35(%rsp), %rbx
	movl	%r14d, %r15d
	movl	%eax, %r14d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	35(%rsp), %eax
	cmpb	$83, %al
	je	.L10
	jg	.L11
	cmpb	$69, %al
	je	.L12
	cmpb	$78, %al
	jne	.L14
	movl	36(%rsp), %edx
	movl	44(%rsp), %edi
	testl	%edx, %edx
	jle	.L65
	movq	16(%rsp), %rsi
	subl	$1, %edx
	movq	8(%rsp), %rax
	addl	%r12d, %edi
	leaq	(%rsi,%rdx,4), %rdx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L21
.L20:
	cmpl	%r15d, (%rax)
	jne	.L19
	movl	80(%rax), %ecx
	cmpl	%r12d, %ecx
	jl	.L19
	cmpl	%edi, %ecx
	jg	.L19
	movl	$1, 160(%rax)
	addq	$4, %rax
	cmpq	%rdx, %rax
	jne	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%edi, %r12d
.L14:
	addl	$1, %r14d
	cmpl	%r14d, 40(%rsp)
	jg	.L4
.L5:
	movl	36(%rsp), %edx
	leaq	208(%rsp), %rax
	xorl	%ebx, %ebx
	testl	%edx, %edx
	jg	.L32
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L31:
	addl	$1, %ebx
	addq	$4, %rax
	cmpl	%edx, %ebx
	je	.L33
.L32:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jne	.L31
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	movl	36(%rsp), %edx
.L9:
	cmpl	%edx, %ebx
	jne	.L34
.L33:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L11:
	cmpb	$87, %al
	jne	.L14
	movl	36(%rsp), %edx
	movl	44(%rsp), %edi
	testl	%edx, %edx
	jle	.L30
	movq	16(%rsp), %rsi
	movl	%r15d, %r9d
	subl	$1, %edx
	movq	8(%rsp), %rax
	subl	%edi, %r9d
	leaq	(%rsi,%rdx,4), %rdx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L28:
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L30
.L29:
	cmpl	%r12d, 80(%rax)
	jne	.L28
	movl	(%rax), %ecx
	cmpl	%r15d, %ecx
	jg	.L28
	cmpl	%ecx, %r9d
	jg	.L28
	movl	$1, 160(%rax)
	addq	$4, %rax
	cmpq	%rdx, %rax
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	subl	%edi, %r15d
	addl	$1, %r14d
	cmpl	%r14d, 40(%rsp)
	jg	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	movl	36(%rsp), %edx
	movl	44(%rsp), %edi
	testl	%edx, %edx
	jle	.L66
	movq	16(%rsp), %rsi
	subl	$1, %edx
	movq	8(%rsp), %rax
	addl	%r15d, %edi
	leaq	(%rsi,%rdx,4), %rdx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L24
.L23:
	cmpl	%r12d, 80(%rax)
	jne	.L22
	movl	(%rax), %ecx
	cmpl	%r15d, %ecx
	jl	.L22
	cmpl	%edi, %ecx
	jg	.L22
	movl	$1, 160(%rax)
	addq	$4, %rax
	cmpq	%rdx, %rax
	jne	.L23
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%edi, %r15d
.L67:
	addl	$1, %r14d
	cmpl	%r14d, 40(%rsp)
	jg	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	movl	36(%rsp), %edx
	movl	44(%rsp), %r9d
	testl	%edx, %edx
	jle	.L27
	movq	16(%rsp), %rsi
	movl	%r12d, %edi
	subl	$1, %edx
	movq	8(%rsp), %rax
	subl	%r9d, %edi
	leaq	(%rsi,%rdx,4), %rdx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L27
.L26:
	cmpl	%r15d, (%rax)
	jne	.L25
	movl	80(%rax), %ecx
	cmpl	%ecx, %edi
	jg	.L25
	cmpl	%r12d, %ecx
	jg	.L25
	movl	$1, 160(%rax)
	addq	$4, %rax
	cmpq	%rdx, %rax
	jne	.L26
	.p2align 4,,10
	.p2align 3
.L27:
	subl	%r9d, %r12d
	addl	$1, %r14d
	cmpl	%r14d, 40(%rsp)
	jg	.L4
	jmp	.L5
.L66:
	addl	%r15d, %edi
	movl	%edi, %r15d
	jmp	.L67
.L65:
	addl	%r12d, %edi
	movl	%edi, %r12d
	jmp	.L14
.L2:
	movq	296(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L68
	addq	$312, %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
.L68:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>

int main(){
	int n, m, i, j;
	int now_x, now_y;
	int r;
	char direc;
	int x[3][20];
	while(1){

		for(i=0; i<20; i++){
			for(j=0; j<3; j++)
				x[j][i] = 0;
		}
		n=0;
		m=0;
		now_x=10;
		now_y=10;
		scanf("%d", &n);
		if(n==0)
			return 0;
		for(i=0; i<n; i++)
			scanf("%d %d", &x[0][i], &x[1][i]);
		scanf("%d", &m);
		for(j=0; j<m; j++){
			scanf("%s %d", &direc, &r);
			switch (direc){
				case 'N':
					for(i=0; i<n; i++){
						if((now_x == x[0][i])&&(now_y <= x[1][i])&&(x[1][i] <= now_y+r))
							x[2][i]=1;
					}
					now_y += r;
					break;
				case 'E':
					for(i=0; i<n; i++){
						if((now_y == x[1][i])&&(now_x <= x[0][i])&&(x[0][i] <= now_x+r))
							x[2][i]=1;
					}
					now_x += r;
					break;
				case 'S':
					for(i=0; i<n; i++){
						if((now_x == x[0][i])&&(now_y-r <= x[1][i])&&(x[1][i] <= now_y))
							x[2][i]=1;
					}
					now_y -= r;
					break;
				case 'W':
					for(i=0; i<n; i++){
						if((now_y == x[1][i])&&(now_x-r <= x[0][i])&&(x[0][i] <= now_x))
							x[2][i]=1;
					}
					now_x -= r;
					break;
			}
		}
		for(i=0; i<n; i++){
			if(x[2][i] == 0){
				printf("No\n");
		         	break;
                        }

		}
		if(i == n)
			printf("Yes\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
Yes
Yes
 Yes
Yes
Yes
 Yes
Yes
Yes
 Yes
 Yes
Yes
 Yes
Yes
Yes
 Yes
Yes
Yes
 Yes
Yes
Yes
 Yes
Yes
Yes
 Yes
Yes
Yes

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int main(){
	int n, m, i, j;
	int now_x, now_y;
	int r;
	char direc;
	int x[3][20];
	while(1){

		for(i=0; i<20; i++){
			for(j=0; j<3; j++)
				x[j][i] = 0;
		}
		n=0;
		m=0;
		now_x=10;
		now_y=10;
		scanf("%d", &n);
		if(n==0)
			return 0;
		for(i=0; i<n; i++)
			scanf("%d %d", &x[0][i], &x[1][i]);
		scanf("%d", &m);
		for(j=0; j<m; j++){
			scanf("%s %d", &direc, &r);
			switch (direc){
				case 'N':
					for(i=0; i<n; i++){
						if((now_x == x[0][i])&&(now_y <= x[1][i])&&(x[1][i] <= now_y+r))
							x[2][i]=1;
					}
					now_y += r;
					break;
				case 'E':
					for(i=0; i<n; i++){
						if((now_y == x[1][i])&&(now_x <= x[0][i])&&(x[0][i] <= now_x+r))
							x[2][i]=1;
					}
					now_x += r;
					break;
				case 'S':
					for(i=0; i<n; i++){
						if((now_x == x[0][i])&&(now_y-r <= x[1][i])&&(x[1][i] <= now_y))
							x[2][i]=1;
					}
					now_y -= r;
					break;
				case 'W':
					for(i=0; i<n; i++){
						if((now_y == x[1][i])&&(now_x-r <= x[0][i])&&(x[0][i] <= now_x))
							x[2][i]=1;
					}
					now_x -= r;
					break;
			}
		}
		for(i=0; i<n; i++){
			if(x[2][i] == 0){
				printf("No\n");
		         	break;
                        }

		}
		if(i == n)
			printf("Yes\n");
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%s %d"
.LC3:
	.string	"No"
.LC4:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$288, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L33:
	movl	$0, -272(%rbp)
	jmp	.L2
.L5:
	movl	$0, -268(%rbp)
	jmp	.L3
.L4:
	movl	-272(%rbp), %eax
	movslq	%eax, %rcx
	movl	-268(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -256(%rbp,%rax,4)
	addl	$1, -268(%rbp)
.L3:
	cmpl	$2, -268(%rbp)
	jle	.L4
	addl	$1, -272(%rbp)
.L2:
	cmpl	$19, -272(%rbp)
	jle	.L5
	movl	$0, -284(%rbp)
	movl	$0, -280(%rbp)
	movl	$10, -264(%rbp)
	movl	$10, -260(%rbp)
	leaq	-284(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-284(%rbp), %eax
	testl	%eax, %eax
	jne	.L6
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	jmp	.L35
.L6:
	movl	$0, -272(%rbp)
	jmp	.L8
.L9:
	leaq	-256(%rbp), %rdx
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-256(%rbp), %rcx
	movl	-272(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -272(%rbp)
.L8:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L9
	leaq	-280(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -268(%rbp)
	jmp	.L10
.L27:
	leaq	-276(%rbp), %rdx
	leaq	-285(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-285(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$87, %eax
	je	.L11
	cmpl	$87, %eax
	jg	.L12
	cmpl	$83, %eax
	je	.L13
	cmpl	$83, %eax
	jg	.L12
	cmpl	$69, %eax
	je	.L14
	cmpl	$78, %eax
	jne	.L12
	movl	$0, -272(%rbp)
	jmp	.L15
.L17:
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jne	.L16
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jg	.L16
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	movl	-276(%rbp), %ecx
	movl	-260(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jg	.L16
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L16:
	addl	$1, -272(%rbp)
.L15:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L17
	movl	-276(%rbp), %eax
	addl	%eax, -260(%rbp)
	jmp	.L12
.L14:
	movl	$0, -272(%rbp)
	jmp	.L18
.L20:
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jne	.L19
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jg	.L19
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	movl	-276(%rbp), %ecx
	movl	-264(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jg	.L19
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L19:
	addl	$1, -272(%rbp)
.L18:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L20
	movl	-276(%rbp), %eax
	addl	%eax, -264(%rbp)
	jmp	.L12
.L13:
	movl	$0, -272(%rbp)
	jmp	.L21
.L23:
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jne	.L22
	movl	-276(%rbp), %ecx
	movl	-260(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L22
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jl	.L22
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L22:
	addl	$1, -272(%rbp)
.L21:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L23
	movl	-276(%rbp), %eax
	subl	%eax, -260(%rbp)
	jmp	.L12
.L11:
	movl	$0, -272(%rbp)
	jmp	.L24
.L26:
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jne	.L25
	movl	-276(%rbp), %ecx
	movl	-264(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L25
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jl	.L25
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L25:
	addl	$1, -272(%rbp)
.L24:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L26
	movl	-276(%rbp), %eax
	subl	%eax, -264(%rbp)
	nop
.L12:
	addl	$1, -268(%rbp)
.L10:
	movl	-280(%rbp), %eax
	cmpl	%eax, -268(%rbp)
	jl	.L27
	movl	$0, -272(%rbp)
	jmp	.L28
.L31:
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	-256(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L29
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L30
.L29:
	addl	$1, -272(%rbp)
.L28:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L31
.L30:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jne	.L33
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L33
.L35:
	call	__stack_chk_fail@PLT
.L34:
	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	"%s %d"
.LC3:
	.string	"No"
.LC4:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$288, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L33:
	movl	$0, -272(%rbp)
	jmp	.L2
.L5:
	movl	$0, -268(%rbp)
	jmp	.L3
.L4:
	movl	-272(%rbp), %eax
	movslq	%eax, %rcx
	movl	-268(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	$0, -256(%rbp,%rax,4)
	addl	$1, -268(%rbp)
.L3:
	cmpl	$2, -268(%rbp)
	jle	.L4
	addl	$1, -272(%rbp)
.L2:
	cmpl	$19, -272(%rbp)
	jle	.L5
	movl	$0, -284(%rbp)
	movl	$0, -280(%rbp)
	movl	$10, -264(%rbp)
	movl	$10, -260(%rbp)
	leaq	-284(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-284(%rbp), %eax
	testl	%eax, %eax
	jne	.L6
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	jmp	.L35
.L6:
	movl	$0, -272(%rbp)
	jmp	.L8
.L9:
	leaq	-256(%rbp), %rdx
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-256(%rbp), %rcx
	movl	-272(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -272(%rbp)
.L8:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L9
	leaq	-280(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -268(%rbp)
	jmp	.L10
.L27:
	leaq	-276(%rbp), %rdx
	leaq	-285(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-285(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$87, %eax
	je	.L11
	cmpl	$87, %eax
	jg	.L12
	cmpl	$83, %eax
	je	.L13
	cmpl	$83, %eax
	jg	.L12
	cmpl	$69, %eax
	je	.L14
	cmpl	$78, %eax
	jne	.L12
	movl	$0, -272(%rbp)
	jmp	.L15
.L17:
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jne	.L16
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jg	.L16
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	movl	-276(%rbp), %ecx
	movl	-260(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jg	.L16
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L16:
	addl	$1, -272(%rbp)
.L15:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L17
	movl	-276(%rbp), %eax
	addl	%eax, -260(%rbp)
	jmp	.L12
.L14:
	movl	$0, -272(%rbp)
	jmp	.L18
.L20:
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jne	.L19
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jg	.L19
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	movl	-276(%rbp), %ecx
	movl	-264(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jg	.L19
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L19:
	addl	$1, -272(%rbp)
.L18:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L20
	movl	-276(%rbp), %eax
	addl	%eax, -264(%rbp)
	jmp	.L12
.L13:
	movl	$0, -272(%rbp)
	jmp	.L21
.L23:
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jne	.L22
	movl	-276(%rbp), %ecx
	movl	-260(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L22
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jl	.L22
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L22:
	addl	$1, -272(%rbp)
.L21:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L23
	movl	-276(%rbp), %eax
	subl	%eax, -260(%rbp)
	jmp	.L12
.L11:
	movl	$0, -272(%rbp)
	jmp	.L24
.L26:
	movl	-272(%rbp), %eax
	cltq
	addq	$20, %rax
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -260(%rbp)
	jne	.L25
	movl	-276(%rbp), %ecx
	movl	-264(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L25
	movl	-272(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, -264(%rbp)
	jl	.L25
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	$1, -256(%rbp,%rax,4)
.L25:
	addl	$1, -272(%rbp)
.L24:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L26
	movl	-276(%rbp), %eax
	subl	%eax, -264(%rbp)
	nop
.L12:
	addl	$1, -268(%rbp)
.L10:
	movl	-280(%rbp), %eax
	cmpl	%eax, -268(%rbp)
	jl	.L27
	movl	$0, -272(%rbp)
	jmp	.L28
.L31:
	movl	-272(%rbp), %eax
	cltq
	addq	$40, %rax
	movl	-256(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L29
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L30
.L29:
	addl	$1, -272(%rbp)
.L28:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jl	.L31
.L30:
	movl	-284(%rbp), %eax
	cmpl	%eax, -272(%rbp)
	jne	.L33
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L33
.L35:
	call	__stack_chk_fail@PLT
.L34:
	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:
