Given the following C code and 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,x,y,x2,y2,xx,yy,a=0;
scanf("%d%d%d",&W,&H,&N);
for(i=0;i<N;i++){
scanf("%d%d",&x,&y);
if(i!=0){
xx=x-x2;
yy=y-y2;
if(xx<0){xx*=-1;}if(yy<0){yy*=-1;}
if(x>=x2&&y<=y2||x<=x2&&y>=y2){
a+=xx+yy;
}
else if(x>x2&&y>y2||x<x2&&y<y2){
	if(xx>yy){
	a+=yy+(xx-yy);
	}else if(xx<yy){
	a+=xx+(yy-xx);
	}else{
	a+=xx;
	}

}

}
x2=x;
y2=y;
}
printf("%d\n",a);
return 0;
}```

Assembly Code:

```assembly
	.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.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
	leaq	.LC0(%rip), %rdi
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	xorl	%eax, %eax
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbp
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %ebx
	movl	$0, 12(%rsp)
	movl	36(%rsp), %r15d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%ebx, %edx
	movl	32(%rsp), %ebx
	movl	%r15d, %edi
	movl	%edx, %eax
	movl	%ebx, %ecx
	subl	%ebx, %eax
	subl	%edx, %ecx
	cmovs	%eax, %ecx
	movl	36(%rsp), %eax
	movl	%eax, %esi
	subl	%eax, %edi
	subl	%r15d, %esi
	cmovs	%edi, %esi
	cmpl	%edx, %ebx
	jge	.L6
	cmpl	%r15d, %eax
	jge	.L12
.L7:
	cmpl	%esi, %ecx
	jle	.L9
.L10:
	addl	%ecx, 12(%rsp)
.L8:
	addl	$1, %r14d
	cmpl	%r14d, 28(%rsp)
	jle	.L3
.L15:
	movl	%eax, %r15d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	je	.L12
	cmpl	%r15d, %eax
	jg	.L7
.L12:
	addl	%esi, %ecx
	addl	$1, %r14d
	addl	%ecx, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jg	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L9:
	.cfi_restore_state
	jge	.L10
	addl	%esi, 12(%rsp)
	jmp	.L8
.L21:
	movl	$0, 12(%rsp)
	jmp	.L3
.L22:
	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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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.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
	leaq	.LC0(%rip), %rdi
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	xorl	%eax, %eax
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbp
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %ebx
	movl	$0, 12(%rsp)
	movl	36(%rsp), %r15d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%ebx, %edx
	movl	32(%rsp), %ebx
	movl	%r15d, %edi
	movl	%edx, %eax
	movl	%ebx, %ecx
	subl	%ebx, %eax
	subl	%edx, %ecx
	cmovs	%eax, %ecx
	movl	36(%rsp), %eax
	movl	%eax, %esi
	subl	%eax, %edi
	subl	%r15d, %esi
	cmovs	%edi, %esi
	cmpl	%edx, %ebx
	jge	.L6
	cmpl	%r15d, %eax
	jge	.L12
.L7:
	cmpl	%esi, %ecx
	jle	.L9
.L10:
	addl	%ecx, 12(%rsp)
.L8:
	addl	$1, %r14d
	cmpl	%r14d, 28(%rsp)
	jle	.L3
.L15:
	movl	%eax, %r15d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	je	.L12
	cmpl	%r15d, %eax
	jg	.L7
.L12:
	addl	%esi, %ecx
	addl	$1, %r14d
	addl	%ecx, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jg	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L9:
	.cfi_restore_state
	jge	.L10
	addl	%esi, 12(%rsp)
	jmp	.L8
.L21:
	movl	$0, 12(%rsp)
	jmp	.L3
.L22:
	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
```assembly
	.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.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
	leaq	.LC0(%rip), %rdi
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	xorl	%eax, %eax
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbp
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %ebx
	movl	$0, 12(%rsp)
	movl	36(%rsp), %r15d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%ebx, %edx
	movl	32(%rsp), %ebx
	movl	%r15d, %edi
	movl	%edx, %eax
	movl	%ebx, %ecx
	subl	%ebx, %eax
	subl	%edx, %ecx
	cmovs	%eax, %ecx
	movl	36(%rsp), %eax
	movl	%eax, %esi
	subl	%eax, %edi
	subl	%r15d, %esi
	cmovs	%edi, %esi
	cmpl	%edx, %ebx
	jge	.L6
	cmpl	%r15d, %eax
	jge	.L12
.L7:
	cmpl	%esi, %ecx
	jle	.L9
.L10:
	addl	%ecx, 12(%rsp)
.L8:
	addl	$1, %r14d
	cmpl	%r14d, 28(%rsp)
	jle	.L3
.L15:
	movl	%eax, %r15d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	je	.L12
	cmpl	%r15d, %eax
	jg	.L7
.L12:
	addl	%esi, %ecx
	addl	$1, %r14d
	addl	%ecx, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jg	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L9:
	.cfi_restore_state
	jge	.L10
	addl	%esi, 12(%rsp)
	jmp	.L8
.L21:
	movl	$0, 12(%rsp)
	jmp	.L3
.L22:
	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:
```
```c
#include<stdio.h>
int main(void){
int W,H,N,i,x,y,x2,y2,xx,yy,a=0;
scanf("%d%d%d",&W,&H,&N);
for(i=0;i<N;i++){
scanf("%d%d",&x,&y);
if(i!=0){
xx=x-x2;
yy=y-y2;
if(xx<0){xx*=-1;}if(yy<0){yy*=-1;}
if(x>=x2&&y<=y2||x<=x2&&y>=y2){
a+=xx+yy;
}
else if(x>x2&&y>y2||x<x2&&y<y2){
	if(xx>yy){
	a+=yy+(xx-yy);
	}else if(xx<yy){
	a+=xx+(yy-xx);
	}else{
	a+=xx;
	}

}

}
x2=x;
y2=y;
}
printf("%d\n",a);
return 0;
}```
Given the following C 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,x,y,x2,y2,xx,yy,a=0;
scanf("%d%d%d",&W,&H,&N);
for(i=0;i<N;i++){
scanf("%d%d",&x,&y);
if(i!=0){
xx=x-x2;
yy=y-y2;
if(xx<0){xx*=-1;}if(yy<0){yy*=-1;}
if(x>=x2&&y<=y2||x<=x2&&y>=y2){
a+=xx+yy;
}
else if(x>x2&&y>y2||x<x2&&y<y2){
	if(xx>yy){
	a+=yy+(xx-yy);
	}else if(xx<yy){
	a+=xx+(yy-xx);
	}else{
	a+=xx;
	}

}

}
x2=x;
y2=y;
}
printf("%d\n",a);
return 0;
}```

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.
Optimized Assembly Code:

4 3 3
1 1
3 3
4 1

5

Given the following C code and 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,x,y,x2,y2,xx,yy,a=0;
scanf("%d%d%d",&W,&H,&N);
for(i=0;i<N;i++){
scanf("%d%d",&x,&y);
if(i!=0){
xx=x-x2;
yy=y-y2;
if(xx<0){xx*=-1;}if(yy<0){yy*=-1;}
if(x>=x2&&y<=y2||x<=x2&&y>=y2){
a+=xx+yy;
}
else if(x>x2&&y>y2||x<x2&&y<y2){
	if(xx>yy){
	a+=yy+(xx-yy);
	}else if(xx<yy){
	a+=xx+(yy-xx);
	}else{
	a+=xx;
	}

}

}
x2=x;
y2=y;
}
printf("%d\n",a);
return 0;
}```

Assembly Code:

```assembly
	.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.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
	leaq	.LC0(%rip), %rdi
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	xorl	%eax, %eax
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbp
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %ebx
	movl	$0, 12(%rsp)
	movl	36(%rsp), %r15d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%ebx, %edx
	movl	32(%rsp), %ebx
	movl	%r15d, %edi
	movl	%edx, %eax
	movl	%ebx, %ecx
	subl	%ebx, %eax
	subl	%edx, %ecx
	cmovs	%eax, %ecx
	movl	36(%rsp), %eax
	movl	%eax, %esi
	subl	%eax, %edi
	subl	%r15d, %esi
	cmovs	%edi, %esi
	cmpl	%edx, %ebx
	jge	.L6
	cmpl	%r15d, %eax
	jge	.L12
.L7:
	cmpl	%esi, %ecx
	jle	.L9
.L10:
	addl	%ecx, 12(%rsp)
.L8:
	addl	$1, %r14d
	cmpl	%r14d, 28(%rsp)
	jle	.L3
.L15:
	movl	%eax, %r15d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	je	.L12
	cmpl	%r15d, %eax
	jg	.L7
.L12:
	addl	%esi, %ecx
	addl	$1, %r14d
	addl	%ecx, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jg	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L9:
	.cfi_restore_state
	jge	.L10
	addl	%esi, 12(%rsp)
	jmp	.L8
.L21:
	movl	$0, 12(%rsp)
	jmp	.L3
.L22:
	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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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.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
	leaq	.LC0(%rip), %rdi
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	xorl	%eax, %eax
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbp
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 28(%rsp)
	movl	32(%rsp), %ebx
	movl	$0, 12(%rsp)
	movl	36(%rsp), %r15d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%ebx, %edx
	movl	32(%rsp), %ebx
	movl	%r15d, %edi
	movl	%edx, %eax
	movl	%ebx, %ecx
	subl	%ebx, %eax
	subl	%edx, %ecx
	cmovs	%eax, %ecx
	movl	36(%rsp), %eax
	movl	%eax, %esi
	subl	%eax, %edi
	subl	%r15d, %esi
	cmovs	%edi, %esi
	cmpl	%edx, %ebx
	jge	.L6
	cmpl	%r15d, %eax
	jge	.L12
.L7:
	cmpl	%esi, %ecx
	jle	.L9
.L10:
	addl	%ecx, 12(%rsp)
.L8:
	addl	$1, %r14d
	cmpl	%r14d, 28(%rsp)
	jle	.L3
.L15:
	movl	%eax, %r15d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	je	.L12
	cmpl	%r15d, %eax
	jg	.L7
.L12:
	addl	%esi, %ecx
	addl	$1, %r14d
	addl	%ecx, 12(%rsp)
	cmpl	%r14d, 28(%rsp)
	jg	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L9:
	.cfi_restore_state
	jge	.L10
	addl	%esi, 12(%rsp)
	jmp	.L8
.L21:
	movl	$0, 12(%rsp)
	jmp	.L3
.L22:
	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:
```