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>
#include <string.h>
#define MAX 21

void init(int);
void move(int);

int n, x, y;
char fld[MAX][MAX];

int main(void) {
    int m;
    while(~scanf("%d", &n), n) {
        init(n);
        scanf("%d", &m);
        move(m);
        printf("%s\n", n ? "No" : "Yes");
    }
    return 0;
}

void init(int i) {
    int a, b;
    x = y = 10;
    memset(fld, 0, sizeof(fld));
    while(i--) {
        scanf("%d %d", &a, &b);
        fld[b][a] = 1;
    }
}

void move(int i) {
    int a, d;
    char buf[2];
    while(i--) {
        scanf("%1s %d", buf, &a);
        switch(buf[0]) {
          case 'N':
            d = 0;
            break;
          case 'E':
            d = 1;
            break;
          case 'S':
            d = 2;
            break;
          case 'W':
            d = 3;
            break;
        }
        while(a--) {
            d % 2 ? ~-d ? x-- : x++ : d ? y-- : y++;
            if(fld[y][x]) {
                fld[y][x] = 0;
                n--;
            }
        }
    }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	fld
	.align 32
	.type	fld, @object
	.size	fld, 441
fld:
	.zero	441
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.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	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L5:
	movl	n(%rip), %eax
	movl	%eax, %edi
	call	init
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	move
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L3
	leaq	.LC1(%rip), %rax
	jmp	.L4
.L3:
	leaq	.LC2(%rip), %rax
.L4:
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	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
	jne	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"%d %d"
	.text
	.globl	init
	.type	init, @function
init:
.LFB1:
	.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
	movl	%edi, -20(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10, y(%rip)
	movl	y(%rip), %eax
	movl	%eax, x(%rip)
	movl	$441, %edx
	movl	$0, %esi
	leaq	fld(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L9
.L10:
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	fld(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
.L9:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -20(%rbp)
	testl	%eax, %eax
	jne	.L10
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	init, .-init
	.section	.rodata
.LC4:
	.string	"%1s %d"
	.text
	.globl	move
	.type	move, @function
move:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L13
.L26:
	leaq	-20(%rbp), %rdx
	leaq	-10(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-10(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$87, %eax
	je	.L14
	cmpl	$87, %eax
	jg	.L18
	cmpl	$83, %eax
	je	.L16
	cmpl	$83, %eax
	jg	.L18
	cmpl	$69, %eax
	je	.L17
	cmpl	$78, %eax
	jne	.L18
	movl	$0, -16(%rbp)
	jmp	.L15
.L17:
	movl	$1, -16(%rbp)
	jmp	.L15
.L16:
	movl	$2, -16(%rbp)
	jmp	.L15
.L14:
	movl	$3, -16(%rbp)
	nop
.L15:
	jmp	.L18
.L25:
	movl	-16(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L19
	cmpl	$1, -16(%rbp)
	je	.L20
	movl	x(%rip), %eax
	subl	$1, %eax
	movl	%eax, x(%rip)
	jmp	.L22
.L20:
	movl	x(%rip), %eax
	addl	$1, %eax
	movl	%eax, x(%rip)
	jmp	.L22
.L19:
	cmpl	$0, -16(%rbp)
	je	.L23
	movl	y(%rip), %eax
	subl	$1, %eax
	movl	%eax, y(%rip)
	jmp	.L22
.L23:
	movl	y(%rip), %eax
	addl	$1, %eax
	movl	%eax, y(%rip)
.L22:
	movl	y(%rip), %eax
	movl	x(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	fld(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L18
	movl	y(%rip), %eax
	movl	x(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	fld(%rip), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
.L18:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -20(%rbp)
	testl	%eax, %eax
	jne	.L25
.L13:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -36(%rbp)
	testl	%eax, %eax
	jne	.L26
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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 %d"
	.text
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$55, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	fld(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%edi, %ebx
	movq	%rbp, %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movl	$10, y(%rip)
	movl	$10, x(%rip)
	rep stosq
	movb	$0, (%rdi)
	testl	%ebx, %ebx
	je	.L1
	leaq	4(%rsp), %r14
	movq	%rsp, %r13
	leaq	.LC0(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	movslq	(%rsp), %rdx
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rbp, %rax
	movb	$1, (%rax,%rdx)
	subl	$1, %ebx
	jne	.L3
.L1:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.size	init, .-init
	.section	.rodata.str1.1
.LC1:
	.string	"%1s %d"
	.text
	.p2align 4
	.globl	move
	.type	move, @function
move:
.LFB37:
	.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
	testl	%edi, %edi
	je	.L12
	leaq	16(%rsp), %rax
	movl	%edi, %ebx
	leaq	fld(%rip), %r12
	movq	%rax, (%rsp)
	leaq	22(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L27:
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	22(%rsp), %eax
	cmpb	$83, %al
	je	.L30
	jg	.L15
	cmpb	$69, %al
	je	.L31
	cmpb	$78, %al
	jne	.L16
	xorl	%r10d, %r10d
	xorl	%ebp, %ebp
.L14:
	movl	16(%rsp), %r9d
	xorl	%r15d, %r15d
	xorl	%r11d, %r11d
	xorl	%r13d, %r13d
	movl	y(%rip), %esi
	movl	x(%rip), %edi
	movl	n(%rip), %r14d
.L22:
	leal	-1(%r9), %edx
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L48:
	cmpl	$1, %ebp
	je	.L18
	subl	$1, %edi
	movl	$1, %r13d
.L19:
	movslq	%esi, %rax
	movslq	%edi, %rcx
	subl	$1, %edx
	leaq	(%rax,%rax,4), %r8
	leaq	(%rax,%r8,4), %rax
	addq	%r12, %rax
	addq	%rcx, %rax
	cmpb	$0, (%rax)
	jne	.L46
.L21:
	movl	%edx, %r9d
	cmpl	$-1, %edx
	je	.L47
	testl	%r10d, %r10d
	jne	.L48
	testl	%ebp, %ebp
	je	.L20
	subl	$1, %esi
	movl	$1, %r11d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L20:
	addl	$1, %esi
	movl	$1, %r11d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %edi
	movl	$1, %r13d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L47:
	movl	$-1, 16(%rsp)
	testb	%r15b, %r15b
	je	.L24
	movl	%r14d, n(%rip)
.L24:
	testb	%r11b, %r11b
	je	.L25
	movl	%esi, y(%rip)
.L25:
	testb	%r13b, %r13b
	je	.L26
	movl	%edi, x(%rip)
.L26:
	subl	$1, %ebx
	jne	.L27
.L12:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	cmpb	$87, %al
	jne	.L16
	movl	$1, %r10d
	movl	$3, %ebp
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L46:
	movb	$0, (%rax)
	subl	$1, %r14d
	movl	$1, %r15d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L31:
	movl	$1, %r10d
	movl	$1, %ebp
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%ebp, %r10d
	andl	$1, %r10d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L30:
	xorl	%r10d, %r10d
	movl	$2, %ebp
	jmp	.L14
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	move, .-move
	.section	.rodata.str1.1
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC4(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	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
	leaq	fld(%rip), %rbp
	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
	.p2align 4,,10
	.p2align 3
.L51:
	leaq	n(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %ebx
	testl	%ebx, %ebx
	je	.L59
	movl	$55, %ecx
	xorl	%eax, %eax
	leaq	20(%rsp), %r13
	movq	%rbp, %rdi
	rep stosq
	leaq	16(%rsp), %r12
	movl	$10, y(%rip)
	movl	$10, x(%rip)
	movb	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L52:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rax
	movslq	16(%rsp), %rdx
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rbp, %rax
	movb	$1, (%rax,%rdx)
	subl	$1, %ebx
	jne	.L52
	leaq	12(%rsp), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	call	move
	movl	n(%rip), %eax
	leaq	.LC3(%rip), %rdi
	testl	%eax, %eax
	leaq	.LC2(%rip), %rax
	cmovne	%rax, %rdi
	call	puts@PLT
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L59:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	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
.L60:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	fld
	.bss
	.align 32
	.type	fld, @object
	.size	fld, 441
fld:
	.zero	441
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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 %d"
	.text
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$55, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	fld(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%edi, %ebx
	movq	%rbp, %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movl	$10, y(%rip)
	movl	$10, x(%rip)
	rep stosq
	movb	$0, (%rdi)
	testl	%ebx, %ebx
	je	.L1
	leaq	4(%rsp), %r14
	movq	%rsp, %r13
	leaq	.LC0(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	movslq	(%rsp), %rdx
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rbp, %rax
	movb	$1, (%rax,%rdx)
	subl	$1, %ebx
	jne	.L3
.L1:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.size	init, .-init
	.section	.rodata.str1.1
.LC1:
	.string	"%1s %d"
	.text
	.p2align 4
	.globl	move
	.type	move, @function
move:
.LFB37:
	.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
	testl	%edi, %edi
	je	.L12
	leaq	16(%rsp), %rax
	movl	%edi, %ebx
	leaq	fld(%rip), %r12
	movq	%rax, (%rsp)
	leaq	22(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L27:
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	22(%rsp), %eax
	cmpb	$83, %al
	je	.L30
	jg	.L15
	cmpb	$69, %al
	je	.L31
	cmpb	$78, %al
	jne	.L16
	xorl	%r10d, %r10d
	xorl	%ebp, %ebp
.L14:
	movl	16(%rsp), %r9d
	xorl	%r15d, %r15d
	xorl	%r11d, %r11d
	xorl	%r13d, %r13d
	movl	y(%rip), %esi
	movl	x(%rip), %edi
	movl	n(%rip), %r14d
.L22:
	leal	-1(%r9), %edx
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L48:
	cmpl	$1, %ebp
	je	.L18
	subl	$1, %edi
	movl	$1, %r13d
.L19:
	movslq	%esi, %rax
	movslq	%edi, %rcx
	subl	$1, %edx
	leaq	(%rax,%rax,4), %r8
	leaq	(%rax,%r8,4), %rax
	addq	%r12, %rax
	addq	%rcx, %rax
	cmpb	$0, (%rax)
	jne	.L46
.L21:
	movl	%edx, %r9d
	cmpl	$-1, %edx
	je	.L47
	testl	%r10d, %r10d
	jne	.L48
	testl	%ebp, %ebp
	je	.L20
	subl	$1, %esi
	movl	$1, %r11d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L20:
	addl	$1, %esi
	movl	$1, %r11d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %edi
	movl	$1, %r13d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L47:
	movl	$-1, 16(%rsp)
	testb	%r15b, %r15b
	je	.L24
	movl	%r14d, n(%rip)
.L24:
	testb	%r11b, %r11b
	je	.L25
	movl	%esi, y(%rip)
.L25:
	testb	%r13b, %r13b
	je	.L26
	movl	%edi, x(%rip)
.L26:
	subl	$1, %ebx
	jne	.L27
.L12:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	cmpb	$87, %al
	jne	.L16
	movl	$1, %r10d
	movl	$3, %ebp
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L46:
	movb	$0, (%rax)
	subl	$1, %r14d
	movl	$1, %r15d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L31:
	movl	$1, %r10d
	movl	$1, %ebp
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%ebp, %r10d
	andl	$1, %r10d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L30:
	xorl	%r10d, %r10d
	movl	$2, %ebp
	jmp	.L14
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	move, .-move
	.section	.rodata.str1.1
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC4(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	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
	leaq	fld(%rip), %rbp
	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
	.p2align 4,,10
	.p2align 3
.L51:
	leaq	n(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %ebx
	testl	%ebx, %ebx
	je	.L59
	movl	$55, %ecx
	xorl	%eax, %eax
	leaq	20(%rsp), %r13
	movq	%rbp, %rdi
	rep stosq
	leaq	16(%rsp), %r12
	movl	$10, y(%rip)
	movl	$10, x(%rip)
	movb	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L52:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rax
	movslq	16(%rsp), %rdx
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rbp, %rax
	movb	$1, (%rax,%rdx)
	subl	$1, %ebx
	jne	.L52
	leaq	12(%rsp), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	call	move
	movl	n(%rip), %eax
	leaq	.LC3(%rip), %rdi
	testl	%eax, %eax
	leaq	.LC2(%rip), %rax
	cmovne	%rax, %rdi
	call	puts@PLT
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L59:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	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
.L60:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	fld
	.bss
	.align 32
	.type	fld, @object
	.size	fld, 441
fld:
	.zero	441
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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>
#include <string.h>
#define MAX 21

void init(int);
void move(int);

int n, x, y;
char fld[MAX][MAX];

int main(void) {
    int m;
    while(~scanf("%d", &n), n) {
        init(n);
        scanf("%d", &m);
        move(m);
        printf("%s\n", n ? "No" : "Yes");
    }
    return 0;
}

void init(int i) {
    int a, b;
    x = y = 10;
    memset(fld, 0, sizeof(fld));
    while(i--) {
        scanf("%d %d", &a, &b);
        fld[b][a] = 1;
    }
}

void move(int i) {
    int a, d;
    char buf[2];
    while(i--) {
        scanf("%1s %d", buf, &a);
        switch(buf[0]) {
          case 'N':
            d = 0;
            break;
          case 'E':
            d = 1;
            break;
          case 'S':
            d = 2;
            break;
          case 'W':
            d = 3;
            break;
        }
        while(a--) {
            d % 2 ? ~-d ? x-- : x++ : d ? y-- : y++;
            if(fld[y][x]) {
                fld[y][x] = 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

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>
#include <string.h>
#define MAX 21

void init(int);
void move(int);

int n, x, y;
char fld[MAX][MAX];

int main(void) {
    int m;
    while(~scanf("%d", &n), n) {
        init(n);
        scanf("%d", &m);
        move(m);
        printf("%s\n", n ? "No" : "Yes");
    }
    return 0;
}

void init(int i) {
    int a, b;
    x = y = 10;
    memset(fld, 0, sizeof(fld));
    while(i--) {
        scanf("%d %d", &a, &b);
        fld[b][a] = 1;
    }
}

void move(int i) {
    int a, d;
    char buf[2];
    while(i--) {
        scanf("%1s %d", buf, &a);
        switch(buf[0]) {
          case 'N':
            d = 0;
            break;
          case 'E':
            d = 1;
            break;
          case 'S':
            d = 2;
            break;
          case 'W':
            d = 3;
            break;
        }
        while(a--) {
            d % 2 ? ~-d ? x-- : x++ : d ? y-- : y++;
            if(fld[y][x]) {
                fld[y][x] = 0;
                n--;
            }
        }
    }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	fld
	.align 32
	.type	fld, @object
	.size	fld, 441
fld:
	.zero	441
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.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	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L5:
	movl	n(%rip), %eax
	movl	%eax, %edi
	call	init
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	move
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L3
	leaq	.LC1(%rip), %rax
	jmp	.L4
.L3:
	leaq	.LC2(%rip), %rax
.L4:
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	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
	jne	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"%d %d"
	.text
	.globl	init
	.type	init, @function
init:
.LFB1:
	.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
	movl	%edi, -20(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10, y(%rip)
	movl	y(%rip), %eax
	movl	%eax, x(%rip)
	movl	$441, %edx
	movl	$0, %esi
	leaq	fld(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L9
.L10:
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	fld(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
.L9:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -20(%rbp)
	testl	%eax, %eax
	jne	.L10
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	init, .-init
	.section	.rodata
.LC4:
	.string	"%1s %d"
	.text
	.globl	move
	.type	move, @function
move:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L13
.L26:
	leaq	-20(%rbp), %rdx
	leaq	-10(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-10(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$87, %eax
	je	.L14
	cmpl	$87, %eax
	jg	.L18
	cmpl	$83, %eax
	je	.L16
	cmpl	$83, %eax
	jg	.L18
	cmpl	$69, %eax
	je	.L17
	cmpl	$78, %eax
	jne	.L18
	movl	$0, -16(%rbp)
	jmp	.L15
.L17:
	movl	$1, -16(%rbp)
	jmp	.L15
.L16:
	movl	$2, -16(%rbp)
	jmp	.L15
.L14:
	movl	$3, -16(%rbp)
	nop
.L15:
	jmp	.L18
.L25:
	movl	-16(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L19
	cmpl	$1, -16(%rbp)
	je	.L20
	movl	x(%rip), %eax
	subl	$1, %eax
	movl	%eax, x(%rip)
	jmp	.L22
.L20:
	movl	x(%rip), %eax
	addl	$1, %eax
	movl	%eax, x(%rip)
	jmp	.L22
.L19:
	cmpl	$0, -16(%rbp)
	je	.L23
	movl	y(%rip), %eax
	subl	$1, %eax
	movl	%eax, y(%rip)
	jmp	.L22
.L23:
	movl	y(%rip), %eax
	addl	$1, %eax
	movl	%eax, y(%rip)
.L22:
	movl	y(%rip), %eax
	movl	x(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	fld(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L18
	movl	y(%rip), %eax
	movl	x(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	fld(%rip), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
.L18:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -20(%rbp)
	testl	%eax, %eax
	jne	.L25
.L13:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -36(%rbp)
	testl	%eax, %eax
	jne	.L26
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	fld
	.align 32
	.type	fld, @object
	.size	fld, 441
fld:
	.zero	441
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.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	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L5:
	movl	n(%rip), %eax
	movl	%eax, %edi
	call	init
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	move
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L3
	leaq	.LC1(%rip), %rax
	jmp	.L4
.L3:
	leaq	.LC2(%rip), %rax
.L4:
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	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
	jne	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"%d %d"
	.text
	.globl	init
	.type	init, @function
init:
.LFB1:
	.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
	movl	%edi, -20(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10, y(%rip)
	movl	y(%rip), %eax
	movl	%eax, x(%rip)
	movl	$441, %edx
	movl	$0, %esi
	leaq	fld(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L9
.L10:
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	fld(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
.L9:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -20(%rbp)
	testl	%eax, %eax
	jne	.L10
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	init, .-init
	.section	.rodata
.LC4:
	.string	"%1s %d"
	.text
	.globl	move
	.type	move, @function
move:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L13
.L26:
	leaq	-20(%rbp), %rdx
	leaq	-10(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-10(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$87, %eax
	je	.L14
	cmpl	$87, %eax
	jg	.L18
	cmpl	$83, %eax
	je	.L16
	cmpl	$83, %eax
	jg	.L18
	cmpl	$69, %eax
	je	.L17
	cmpl	$78, %eax
	jne	.L18
	movl	$0, -16(%rbp)
	jmp	.L15
.L17:
	movl	$1, -16(%rbp)
	jmp	.L15
.L16:
	movl	$2, -16(%rbp)
	jmp	.L15
.L14:
	movl	$3, -16(%rbp)
	nop
.L15:
	jmp	.L18
.L25:
	movl	-16(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L19
	cmpl	$1, -16(%rbp)
	je	.L20
	movl	x(%rip), %eax
	subl	$1, %eax
	movl	%eax, x(%rip)
	jmp	.L22
.L20:
	movl	x(%rip), %eax
	addl	$1, %eax
	movl	%eax, x(%rip)
	jmp	.L22
.L19:
	cmpl	$0, -16(%rbp)
	je	.L23
	movl	y(%rip), %eax
	subl	$1, %eax
	movl	%eax, y(%rip)
	jmp	.L22
.L23:
	movl	y(%rip), %eax
	addl	$1, %eax
	movl	%eax, y(%rip)
.L22:
	movl	y(%rip), %eax
	movl	x(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	fld(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L18
	movl	y(%rip), %eax
	movl	x(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	fld(%rip), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
.L18:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -20(%rbp)
	testl	%eax, %eax
	jne	.L25
.L13:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -36(%rbp)
	testl	%eax, %eax
	jne	.L26
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
