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

```c
#include <stdio.h>

int main(void){
	int W,H,N,i,j,ans=0;
	scanf("%d %d %d",&W,&H,&N);
	int x[N],y[N];
	for(i=0;i<N;i++){
		scanf("%d %d",&x[i],&y[i]);
	}
	int nx=x[0],ny=y[0];
	
	for(i=1;i<N;i++){
		while(!(nx==x[i]&&ny==y[i])){
		if(nx<x[i]&&ny<y[i]){
			ans++;
			nx++;
			ny++;
		}
		
		else if(nx<x[i]&&ny==y[i]){
			ans++;
			nx++;
		}
		
		else if(nx<x[i]&&ny>y[i]){
			ans++;
			nx++;
//			ny--;
		}
		
		else if(nx==x[i]&&ny<y[i]){
			ans++;
			ny++;
		}
		
		else if(nx==x[i]&&ny>y[i]){
			ans++;
			ny--;
		}
		
		else if(nx>x[i]&&ny<y[i]){
			ans++;
			nx--;
//			ny++;
		}
		
		else if(nx>x[i]&&ny==y[i]){
			ans++;
			nx--;
		}
		
		else if(nx>x[i]&&ny>y[i]){
			ans++;
			nx--;
			ny--;
		}
		}
	}
	
	printf("%d\n",ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -100(%rbp)
	leaq	-108(%rbp), %rcx
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L8
.L9:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-80(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -104(%rbp)
.L8:
	movl	-108(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L9
	movq	-80(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movl	$1, -104(%rbp)
	jmp	.L10
.L19:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jge	.L12
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jge	.L12
	addl	$1, -100(%rbp)
	addl	$1, -96(%rbp)
	addl	$1, -92(%rbp)
	jmp	.L11
.L12:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jge	.L13
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L13
	addl	$1, -100(%rbp)
	addl	$1, -96(%rbp)
	jmp	.L11
.L13:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jge	.L14
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jle	.L14
	addl	$1, -100(%rbp)
	addl	$1, -96(%rbp)
	jmp	.L11
.L14:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jne	.L15
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jge	.L15
	addl	$1, -100(%rbp)
	addl	$1, -92(%rbp)
	jmp	.L11
.L15:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jne	.L16
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jle	.L16
	addl	$1, -100(%rbp)
	subl	$1, -92(%rbp)
	jmp	.L11
.L16:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jle	.L17
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jge	.L17
	addl	$1, -100(%rbp)
	subl	$1, -96(%rbp)
	jmp	.L11
.L17:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jle	.L18
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L18
	addl	$1, -100(%rbp)
	subl	$1, -96(%rbp)
	jmp	.L11
.L18:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jle	.L11
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jle	.L11
	addl	$1, -100(%rbp)
	subl	$1, -96(%rbp)
	subl	$1, -92(%rbp)
.L11:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jne	.L19
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L19
	addl	$1, -104(%rbp)
.L10:
	movl	-108(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L11
	movl	-100(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	%rbx, %rsp
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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 %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB3:
	.section	.text.startup,"ax",@progbits
.LHOTB3:
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %rdx
	pushq	%r13
	leaq	-68(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rdx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rcx
	andq	$-4096, %rdi
	andq	$-16, %rcx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L3
.L43:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L43
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L44
.L4:
	leaq	3(%rsp), %rbx
	movq	%rax, %rcx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%rbx, %rdi
	andq	$-4, %rbx
	andq	$-16, %rcx
	subq	%rax, %rsi
	shrq	$2, %rdi
	movq	%rbx, -88(%rbp)
	movq	%rdi, -96(%rbp)
.L5:
	cmpq	%rsi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L44:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L6:
	movq	%rcx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L45
.L7:
	leaq	3(%rsp), %r12
	movq	%r12, %rax
	andq	$-4, %r12
	shrq	$2, %rax
	movq	%rax, -104(%rbp)
	testl	%edx, %edx
	jle	.L29
	movq	-88(%rbp), %rbx
	movq	%r12, %r15
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edx
	addl	$1, %r14d
	addq	$4, %rbx
	addq	$4, %r15
	cmpl	%r14d, %edx
	jg	.L9
	movq	-96(%rbp), %rax
	movq	-104(%rbp), %rbx
	movl	0(,%rax,4), %eax
	movl	0(,%rbx,4), %ecx
	cmpl	$1, %edx
	jle	.L29
	movslq	%edx, %r9
	movl	$1, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	-88(%rbp), %rbx
	movl	%ecx, %edx
	movl	(%r12,%rdi,4), %ecx
	movl	(%rbx,%rdi,4), %esi
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	%eax, %esi
	je	.L46
.L24:
	jle	.L11
	cmpl	%ecx, %edx
	jge	.L12
	addl	$1, %eax
	addl	$1, %r8d
	addl	$1, %edx
	cmpl	%eax, %esi
	jne	.L24
.L46:
	cmpl	%ecx, %edx
	je	.L23
	jge	.L15
	addl	$1, %r8d
	addl	$1, %edx
.L16:
	cmpl	%edx, %ecx
	jne	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rdi
	cmpq	%r9, %rdi
	jne	.L10
.L8:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L47
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	je	.L40
	jle	.L26
.L40:
	addl	$1, %r8d
	addl	$1, %eax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L11:
	jge	.L26
	cmpl	%ecx, %edx
	jl	.L41
	je	.L41
	jle	.L26
	addl	$1, %r8d
	subl	$1, %eax
	subl	$1, %edx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L15:
	jle	.L22
	addl	$1, %r8d
	subl	$1, %edx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L41:
	addl	$1, %r8d
	subl	$1, %eax
	jmp	.L26
.L29:
	xorl	%r8d, %r8d
	jmp	.L8
.L45:
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	main.cold, @function
main.cold:
.LFSB23:
.L20:
	.cfi_def_cfa 6, 16
	.cfi_offset 3, -56
	.cfi_offset 6, -16
	.cfi_offset 12, -48
	.cfi_offset 13, -40
	.cfi_offset 14, -32
	.cfi_offset 15, -24
	jle	.L21
	addl	$1, %r8d
	subl	$1, %edx
.L21:
	cmpl	%ecx, %edx
	je	.L48
.L22:
	cmpl	%ecx, %edx
	jge	.L20
	addl	$1, %r8d
	addl	$1, %edx
	jmp	.L21
.L48:
	jmp	.L23
	.cfi_endproc
.LFE23:
	.section	.text.startup
	.size	main, .-main
	.section	.text.unlikely
	.size	main.cold, .-main.cold
.LCOLDE3:
	.section	.text.startup
.LHOTE3:
	.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 %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB3:
	.section	.text.startup,"ax",@progbits
.LHOTB3:
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %rdx
	pushq	%r13
	leaq	-68(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rdx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rcx
	andq	$-4096, %rdi
	andq	$-16, %rcx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L3
.L43:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L43
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L44
.L4:
	leaq	3(%rsp), %rbx
	movq	%rax, %rcx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%rbx, %rdi
	andq	$-4, %rbx
	andq	$-16, %rcx
	subq	%rax, %rsi
	shrq	$2, %rdi
	movq	%rbx, -88(%rbp)
	movq	%rdi, -96(%rbp)
.L5:
	cmpq	%rsi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L44:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L6:
	movq	%rcx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L45
.L7:
	leaq	3(%rsp), %r12
	movq	%r12, %rax
	andq	$-4, %r12
	shrq	$2, %rax
	movq	%rax, -104(%rbp)
	testl	%edx, %edx
	jle	.L29
	movq	-88(%rbp), %rbx
	movq	%r12, %r15
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edx
	addl	$1, %r14d
	addq	$4, %rbx
	addq	$4, %r15
	cmpl	%r14d, %edx
	jg	.L9
	movq	-96(%rbp), %rax
	movq	-104(%rbp), %rbx
	movl	0(,%rax,4), %eax
	movl	0(,%rbx,4), %ecx
	cmpl	$1, %edx
	jle	.L29
	movslq	%edx, %r9
	movl	$1, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	-88(%rbp), %rbx
	movl	%ecx, %edx
	movl	(%r12,%rdi,4), %ecx
	movl	(%rbx,%rdi,4), %esi
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	%eax, %esi
	je	.L46
.L24:
	jle	.L11
	cmpl	%ecx, %edx
	jge	.L12
	addl	$1, %eax
	addl	$1, %r8d
	addl	$1, %edx
	cmpl	%eax, %esi
	jne	.L24
.L46:
	cmpl	%ecx, %edx
	je	.L23
	jge	.L15
	addl	$1, %r8d
	addl	$1, %edx
.L16:
	cmpl	%edx, %ecx
	jne	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rdi
	cmpq	%r9, %rdi
	jne	.L10
.L8:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L47
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	je	.L40
	jle	.L26
.L40:
	addl	$1, %r8d
	addl	$1, %eax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L11:
	jge	.L26
	cmpl	%ecx, %edx
	jl	.L41
	je	.L41
	jle	.L26
	addl	$1, %r8d
	subl	$1, %eax
	subl	$1, %edx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L15:
	jle	.L22
	addl	$1, %r8d
	subl	$1, %edx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L41:
	addl	$1, %r8d
	subl	$1, %eax
	jmp	.L26
.L29:
	xorl	%r8d, %r8d
	jmp	.L8
.L45:
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	main.cold, @function
main.cold:
.LFSB23:
.L20:
	.cfi_def_cfa 6, 16
	.cfi_offset 3, -56
	.cfi_offset 6, -16
	.cfi_offset 12, -48
	.cfi_offset 13, -40
	.cfi_offset 14, -32
	.cfi_offset 15, -24
	jle	.L21
	addl	$1, %r8d
	subl	$1, %edx
.L21:
	cmpl	%ecx, %edx
	je	.L48
.L22:
	cmpl	%ecx, %edx
	jge	.L20
	addl	$1, %r8d
	addl	$1, %edx
	jmp	.L21
.L48:
	jmp	.L23
	.cfi_endproc
.LFE23:
	.section	.text.startup
	.size	main, .-main
	.section	.text.unlikely
	.size	main.cold, .-main.cold
.LCOLDE3:
	.section	.text.startup
.LHOTE3:
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>

int main(void){
	int W,H,N,i,j,ans=0;
	scanf("%d %d %d",&W,&H,&N);
	int x[N],y[N];
	for(i=0;i<N;i++){
		scanf("%d %d",&x[i],&y[i]);
	}
	int nx=x[0],ny=y[0];
	
	for(i=1;i<N;i++){
		while(!(nx==x[i]&&ny==y[i])){
		if(nx<x[i]&&ny<y[i]){
			ans++;
			nx++;
			ny++;
		}
		
		else if(nx<x[i]&&ny==y[i]){
			ans++;
			nx++;
		}
		
		else if(nx<x[i]&&ny>y[i]){
			ans++;
			nx++;
//			ny--;
		}
		
		else if(nx==x[i]&&ny<y[i]){
			ans++;
			ny++;
		}
		
		else if(nx==x[i]&&ny>y[i]){
			ans++;
			ny--;
		}
		
		else if(nx>x[i]&&ny<y[i]){
			ans++;
			nx--;
//			ny++;
		}
		
		else if(nx>x[i]&&ny==y[i]){
			ans++;
			nx--;
		}
		
		else if(nx>x[i]&&ny>y[i]){
			ans++;
			nx--;
			ny--;
		}
		}
	}
	
	printf("%d\n",ans);
}
4 3 3
1 1
3 3
4 1

5

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

```c
#include <stdio.h>

int main(void){
	int W,H,N,i,j,ans=0;
	scanf("%d %d %d",&W,&H,&N);
	int x[N],y[N];
	for(i=0;i<N;i++){
		scanf("%d %d",&x[i],&y[i]);
	}
	int nx=x[0],ny=y[0];
	
	for(i=1;i<N;i++){
		while(!(nx==x[i]&&ny==y[i])){
		if(nx<x[i]&&ny<y[i]){
			ans++;
			nx++;
			ny++;
		}
		
		else if(nx<x[i]&&ny==y[i]){
			ans++;
			nx++;
		}
		
		else if(nx<x[i]&&ny>y[i]){
			ans++;
			nx++;
//			ny--;
		}
		
		else if(nx==x[i]&&ny<y[i]){
			ans++;
			ny++;
		}
		
		else if(nx==x[i]&&ny>y[i]){
			ans++;
			ny--;
		}
		
		else if(nx>x[i]&&ny<y[i]){
			ans++;
			nx--;
//			ny++;
		}
		
		else if(nx>x[i]&&ny==y[i]){
			ans++;
			nx--;
		}
		
		else if(nx>x[i]&&ny>y[i]){
			ans++;
			nx--;
			ny--;
		}
		}
	}
	
	printf("%d\n",ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -100(%rbp)
	leaq	-108(%rbp), %rcx
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L8
.L9:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-80(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -104(%rbp)
.L8:
	movl	-108(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L9
	movq	-80(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movl	$1, -104(%rbp)
	jmp	.L10
.L19:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jge	.L12
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jge	.L12
	addl	$1, -100(%rbp)
	addl	$1, -96(%rbp)
	addl	$1, -92(%rbp)
	jmp	.L11
.L12:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jge	.L13
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L13
	addl	$1, -100(%rbp)
	addl	$1, -96(%rbp)
	jmp	.L11
.L13:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jge	.L14
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jle	.L14
	addl	$1, -100(%rbp)
	addl	$1, -96(%rbp)
	jmp	.L11
.L14:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jne	.L15
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jge	.L15
	addl	$1, -100(%rbp)
	addl	$1, -92(%rbp)
	jmp	.L11
.L15:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jne	.L16
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jle	.L16
	addl	$1, -100(%rbp)
	subl	$1, -92(%rbp)
	jmp	.L11
.L16:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jle	.L17
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jge	.L17
	addl	$1, -100(%rbp)
	subl	$1, -96(%rbp)
	jmp	.L11
.L17:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jle	.L18
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L18
	addl	$1, -100(%rbp)
	subl	$1, -96(%rbp)
	jmp	.L11
.L18:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jle	.L11
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jle	.L11
	addl	$1, -100(%rbp)
	subl	$1, -96(%rbp)
	subl	$1, -92(%rbp)
.L11:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jne	.L19
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L19
	addl	$1, -104(%rbp)
.L10:
	movl	-108(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L11
	movl	-100(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	%rbx, %rsp
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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.
val
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -100(%rbp)
	leaq	-108(%rbp), %rcx
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L8
.L9:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-80(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -104(%rbp)
.L8:
	movl	-108(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L9
	movq	-80(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	-64(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movl	$1, -104(%rbp)
	jmp	.L10
.L19:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jge	.L12
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jge	.L12
	addl	$1, -100(%rbp)
	addl	$1, -96(%rbp)
	addl	$1, -92(%rbp)
	jmp	.L11
.L12:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jge	.L13
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L13
	addl	$1, -100(%rbp)
	addl	$1, -96(%rbp)
	jmp	.L11
.L13:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jge	.L14
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jle	.L14
	addl	$1, -100(%rbp)
	addl	$1, -96(%rbp)
	jmp	.L11
.L14:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jne	.L15
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jge	.L15
	addl	$1, -100(%rbp)
	addl	$1, -92(%rbp)
	jmp	.L11
.L15:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jne	.L16
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jle	.L16
	addl	$1, -100(%rbp)
	subl	$1, -92(%rbp)
	jmp	.L11
.L16:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jle	.L17
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jge	.L17
	addl	$1, -100(%rbp)
	subl	$1, -96(%rbp)
	jmp	.L11
.L17:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jle	.L18
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L18
	addl	$1, -100(%rbp)
	subl	$1, -96(%rbp)
	jmp	.L11
.L18:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jle	.L11
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jle	.L11
	addl	$1, -100(%rbp)
	subl	$1, -96(%rbp)
	subl	$1, -92(%rbp)
.L11:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -96(%rbp)
	jne	.L19
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L19
	addl	$1, -104(%rbp)
.L10:
	movl	-108(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L11
	movl	-100(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	%rbx, %rsp
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
