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 e,n,m,a[1001],b[1001],i,c=0,max=0,d;
scanf("%d %d\n",&n,&m);
for(i=0;i<m;i++){
scanf("%d %d\n",&a[i],&b[i]);
if(a[i]>=b[i]){
c++;
}
}
if(c>=m-1){
printf("0\n");
}
else{
for(i=0;i<m;i++){
e=b[i]-a[i];
if(e>c){
c=e;
d=i;
}
}
for(i=0;i<m;i++){
if(i!=d && a[i]<b[i]){
max=max+b[i]-n;
}
}
}
printf("%d\n",max);
return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"0"
.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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -8048(%rbp)
	movl	$0, -8044(%rbp)
	leaq	-8056(%rbp), %rdx
	leaq	-8060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8052(%rbp)
	jmp	.L2
.L4:
	leaq	-4016(%rbp), %rdx
	movl	-8052(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-8032(%rbp), %rcx
	movl	-8052(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-8052(%rbp), %eax
	cltq
	movl	-8032(%rbp,%rax,4), %edx
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L3
	addl	$1, -8048(%rbp)
.L3:
	addl	$1, -8052(%rbp)
.L2:
	movl	-8056(%rbp), %eax
	cmpl	%eax, -8052(%rbp)
	jl	.L4
	movl	-8056(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -8048(%rbp)
	jl	.L5
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L6
.L5:
	movl	$0, -8052(%rbp)
	jmp	.L7
.L9:
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-8052(%rbp), %eax
	cltq
	movl	-8032(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8036(%rbp)
	movl	-8036(%rbp), %eax
	cmpl	-8048(%rbp), %eax
	jle	.L8
	movl	-8036(%rbp), %eax
	movl	%eax, -8048(%rbp)
	movl	-8052(%rbp), %eax
	movl	%eax, -8040(%rbp)
.L8:
	addl	$1, -8052(%rbp)
.L7:
	movl	-8056(%rbp), %eax
	cmpl	%eax, -8052(%rbp)
	jl	.L9
	movl	$0, -8052(%rbp)
	jmp	.L10
.L12:
	movl	-8052(%rbp), %eax
	cmpl	-8040(%rbp), %eax
	je	.L11
	movl	-8052(%rbp), %eax
	cltq
	movl	-8032(%rbp,%rax,4), %edx
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L11
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-8044(%rbp), %eax
	addl	%edx, %eax
	movl	-8060(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -8044(%rbp)
.L11:
	addl	$1, -8052(%rbp)
.L10:
	movl	-8056(%rbp), %eax
	cmpl	%eax, -8052(%rbp)
	jl	.L12
.L6:
	movl	-8044(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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 %d\n"
.LC1:
	.string	"0"
.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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$3976, %rsp
	.cfi_def_cfa_offset 8128
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8056(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	32(%rsp), %rax
	leaq	4048(%rsp), %r13
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%rax, (%rsp)
	movq	%rax, %rbp
	movq	%r13, %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	cmpl	%eax, 0(%rbp)
	setge	%al
	addl	$1, %r12d
	addq	$4, %rbp
	addq	$4, %rbx
	movzbl	%al, %eax
	addl	%eax, %r15d
	movl	28(%rsp), %eax
	cmpl	%r12d, %eax
	jg	.L4
	leal	-1(%rax), %edx
	cmpl	%r15d, %edx
	jle	.L2
	testl	%eax, %eax
	jle	.L17
	movslq	%eax, %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rsp), %rdi
	movl	0(%r13,%rax,4), %edx
	subl	(%rdi,%rax,4), %edx
	cmpl	%edx, %r15d
	jge	.L7
	movl	%eax, 12(%rsp)
	movl	%edx, %r15d
.L7:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L8
	movl	24(%rsp), %edi
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	%eax, 12(%rsp)
	je	.L9
	movq	(%rsp), %rbx
	movl	0(%r13,%rax,4), %esi
	cmpl	%esi, (%rbx,%rax,4)
	jge	.L9
	addl	%esi, %edx
	subl	%edi, %edx
.L9:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L10
.L6:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$8072, %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
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L17:
	xorl	%edx, %edx
	jmp	.L6
.L19:
	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 %d\n"
.LC1:
	.string	"0"
.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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$3976, %rsp
	.cfi_def_cfa_offset 8128
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8056(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	32(%rsp), %rax
	leaq	4048(%rsp), %r13
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%rax, (%rsp)
	movq	%rax, %rbp
	movq	%r13, %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	cmpl	%eax, 0(%rbp)
	setge	%al
	addl	$1, %r12d
	addq	$4, %rbp
	addq	$4, %rbx
	movzbl	%al, %eax
	addl	%eax, %r15d
	movl	28(%rsp), %eax
	cmpl	%r12d, %eax
	jg	.L4
	leal	-1(%rax), %edx
	cmpl	%r15d, %edx
	jle	.L2
	testl	%eax, %eax
	jle	.L17
	movslq	%eax, %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rsp), %rdi
	movl	0(%r13,%rax,4), %edx
	subl	(%rdi,%rax,4), %edx
	cmpl	%edx, %r15d
	jge	.L7
	movl	%eax, 12(%rsp)
	movl	%edx, %r15d
.L7:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L8
	movl	24(%rsp), %edi
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	%eax, 12(%rsp)
	je	.L9
	movq	(%rsp), %rbx
	movl	0(%r13,%rax,4), %esi
	cmpl	%esi, (%rbx,%rax,4)
	jge	.L9
	addl	%esi, %edx
	subl	%edi, %edx
.L9:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L10
.L6:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$8072, %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
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L17:
	xorl	%edx, %edx
	jmp	.L6
.L19:
	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 e,n,m,a[1001],b[1001],i,c=0,max=0,d;
scanf("%d %d\n",&n,&m);
for(i=0;i<m;i++){
scanf("%d %d\n",&a[i],&b[i]);
if(a[i]>=b[i]){
c++;
}
}
if(c>=m-1){
printf("0\n");
}
else{
for(i=0;i<m;i++){
e=b[i]-a[i];
if(e>c){
c=e;
d=i;
}
}
for(i=0;i<m;i++){
if(i!=d && a[i]<b[i]){
max=max+b[i]-n;
}
}
}
printf("%d\n",max);
return 0;
}

4 5
1 7
6 2
3 5
4 4
0 8

4

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 e,n,m,a[1001],b[1001],i,c=0,max=0,d;
scanf("%d %d\n",&n,&m);
for(i=0;i<m;i++){
scanf("%d %d\n",&a[i],&b[i]);
if(a[i]>=b[i]){
c++;
}
}
if(c>=m-1){
printf("0\n");
}
else{
for(i=0;i<m;i++){
e=b[i]-a[i];
if(e>c){
c=e;
d=i;
}
}
for(i=0;i<m;i++){
if(i!=d && a[i]<b[i]){
max=max+b[i]-n;
}
}
}
printf("%d\n",max);
return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"0"
.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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -8048(%rbp)
	movl	$0, -8044(%rbp)
	leaq	-8056(%rbp), %rdx
	leaq	-8060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8052(%rbp)
	jmp	.L2
.L4:
	leaq	-4016(%rbp), %rdx
	movl	-8052(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-8032(%rbp), %rcx
	movl	-8052(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-8052(%rbp), %eax
	cltq
	movl	-8032(%rbp,%rax,4), %edx
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L3
	addl	$1, -8048(%rbp)
.L3:
	addl	$1, -8052(%rbp)
.L2:
	movl	-8056(%rbp), %eax
	cmpl	%eax, -8052(%rbp)
	jl	.L4
	movl	-8056(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -8048(%rbp)
	jl	.L5
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L6
.L5:
	movl	$0, -8052(%rbp)
	jmp	.L7
.L9:
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-8052(%rbp), %eax
	cltq
	movl	-8032(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8036(%rbp)
	movl	-8036(%rbp), %eax
	cmpl	-8048(%rbp), %eax
	jle	.L8
	movl	-8036(%rbp), %eax
	movl	%eax, -8048(%rbp)
	movl	-8052(%rbp), %eax
	movl	%eax, -8040(%rbp)
.L8:
	addl	$1, -8052(%rbp)
.L7:
	movl	-8056(%rbp), %eax
	cmpl	%eax, -8052(%rbp)
	jl	.L9
	movl	$0, -8052(%rbp)
	jmp	.L10
.L12:
	movl	-8052(%rbp), %eax
	cmpl	-8040(%rbp), %eax
	je	.L11
	movl	-8052(%rbp), %eax
	cltq
	movl	-8032(%rbp,%rax,4), %edx
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L11
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-8044(%rbp), %eax
	addl	%edx, %eax
	movl	-8060(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -8044(%rbp)
.L11:
	addl	$1, -8052(%rbp)
.L10:
	movl	-8056(%rbp), %eax
	cmpl	%eax, -8052(%rbp)
	jl	.L12
.L6:
	movl	-8044(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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 %d\n"
.LC1:
	.string	"0"
.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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -8048(%rbp)
	movl	$0, -8044(%rbp)
	leaq	-8056(%rbp), %rdx
	leaq	-8060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8052(%rbp)
	jmp	.L2
.L4:
	leaq	-4016(%rbp), %rdx
	movl	-8052(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-8032(%rbp), %rcx
	movl	-8052(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-8052(%rbp), %eax
	cltq
	movl	-8032(%rbp,%rax,4), %edx
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L3
	addl	$1, -8048(%rbp)
.L3:
	addl	$1, -8052(%rbp)
.L2:
	movl	-8056(%rbp), %eax
	cmpl	%eax, -8052(%rbp)
	jl	.L4
	movl	-8056(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -8048(%rbp)
	jl	.L5
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L6
.L5:
	movl	$0, -8052(%rbp)
	jmp	.L7
.L9:
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-8052(%rbp), %eax
	cltq
	movl	-8032(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8036(%rbp)
	movl	-8036(%rbp), %eax
	cmpl	-8048(%rbp), %eax
	jle	.L8
	movl	-8036(%rbp), %eax
	movl	%eax, -8048(%rbp)
	movl	-8052(%rbp), %eax
	movl	%eax, -8040(%rbp)
.L8:
	addl	$1, -8052(%rbp)
.L7:
	movl	-8056(%rbp), %eax
	cmpl	%eax, -8052(%rbp)
	jl	.L9
	movl	$0, -8052(%rbp)
	jmp	.L10
.L12:
	movl	-8052(%rbp), %eax
	cmpl	-8040(%rbp), %eax
	je	.L11
	movl	-8052(%rbp), %eax
	cltq
	movl	-8032(%rbp,%rax,4), %edx
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L11
	movl	-8052(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-8044(%rbp), %eax
	addl	%edx, %eax
	movl	-8060(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -8044(%rbp)
.L11:
	addl	$1, -8052(%rbp)
.L10:
	movl	-8056(%rbp), %eax
	cmpl	%eax, -8052(%rbp)
	jl	.L12
.L6:
	movl	-8044(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
