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

```c
#include <stdio.h>

int main(){
    int n,m,i,j,a[100000],maxv,tmp;
    while(1){
        scanf("%d %d", &n, &m);
        if(n==0 && m==0) break;
        for(i=0; i<n; i++){
            scanf("%d", &a[i]);
            
        }
        maxv = 0; // answer
        for(i = 0; i < n; i++){
            for( j = 0; j < n; j++){
                // i, j is integers
                if (i!=j) {
                    tmp = a[i] + a[j];
                    if ( tmp > maxv && tmp <= m ) maxv = tmp;
                }
            }
        }
        if (maxv==0){printf("NONE\n");}
        else{printf("%d\n", maxv);}
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"NONE"
.LC3:
	.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-400036(%rbp), %rdx
	leaq	-400040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400040(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-400036(%rbp), %eax
	testl	%eax, %eax
	je	.L17
.L2:
	movl	$0, -400032(%rbp)
	jmp	.L4
.L5:
	leaq	-400016(%rbp), %rdx
	movl	-400032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400032(%rbp)
.L4:
	movl	-400040(%rbp), %eax
	cmpl	%eax, -400032(%rbp)
	jl	.L5
	movl	$0, -400024(%rbp)
	movl	$0, -400032(%rbp)
	jmp	.L6
.L10:
	movl	$0, -400028(%rbp)
	jmp	.L7
.L9:
	movl	-400032(%rbp), %eax
	cmpl	-400028(%rbp), %eax
	je	.L8
	movl	-400032(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	addl	%edx, %eax
	movl	%eax, -400020(%rbp)
	movl	-400020(%rbp), %eax
	cmpl	-400024(%rbp), %eax
	jle	.L8
	movl	-400036(%rbp), %eax
	cmpl	%eax, -400020(%rbp)
	jg	.L8
	movl	-400020(%rbp), %eax
	movl	%eax, -400024(%rbp)
.L8:
	addl	$1, -400028(%rbp)
.L7:
	movl	-400040(%rbp), %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L9
	addl	$1, -400032(%rbp)
.L6:
	movl	-400040(%rbp), %eax
	cmpl	%eax, -400032(%rbp)
	jl	.L10
	cmpl	$0, -400024(%rbp)
	jne	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L11:
	movl	-400024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L17:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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"
.LC1:
	.string	"%d"
.LC2:
	.string	"NONE"
.LC3:
	.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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2744, %rsp
	.cfi_def_cfa_offset 400112
	leaq	.LC1(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 400040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r13
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r13, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	jne	.L23
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L24
.L13:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L23:
	jle	.L13
	movq	%r14, %r15
	movq	%r14, %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r11d
	addq	$4, %r12
	cmpl	%ebp, %r11d
	jg	.L7
	testl	%r11d, %r11d
	jle	.L13
	movl	28(%rsp), %edi
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	movslq	%r11d, %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	%eax, %ecx
	je	.L9
	movl	(%r14,%rax,4), %edx
	addl	(%r15), %edx
	cmpl	%r8d, %edx
	jle	.L9
	cmpl	%edx, %edi
	cmovge	%edx, %r8d
.L9:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L10
	addl	$1, %ecx
	addq	$4, %r15
	cmpl	%ecx, %r11d
	jne	.L8
	testl	%r8d, %r8d
	je	.L13
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L24:
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$400056, %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
.L25:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"NONE"
.LC3:
	.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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2744, %rsp
	.cfi_def_cfa_offset 400112
	leaq	.LC1(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 400040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r13
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r13, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	jne	.L23
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L24
.L13:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L23:
	jle	.L13
	movq	%r14, %r15
	movq	%r14, %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r11d
	addq	$4, %r12
	cmpl	%ebp, %r11d
	jg	.L7
	testl	%r11d, %r11d
	jle	.L13
	movl	28(%rsp), %edi
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	movslq	%r11d, %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	%eax, %ecx
	je	.L9
	movl	(%r14,%rax,4), %edx
	addl	(%r15), %edx
	cmpl	%r8d, %edx
	jle	.L9
	cmpl	%edx, %edi
	cmovge	%edx, %r8d
.L9:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L10
	addl	$1, %ecx
	addq	$4, %r15
	cmpl	%ecx, %r11d
	jne	.L8
	testl	%r8d, %r8d
	je	.L13
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L24:
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$400056, %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
.L25:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>

int main(){
    int n,m,i,j,a[100000],maxv,tmp;
    while(1){
        scanf("%d %d", &n, &m);
        if(n==0 && m==0) break;
        for(i=0; i<n; i++){
            scanf("%d", &a[i]);
            
        }
        maxv = 0; // answer
        for(i = 0; i < n; i++){
            for( j = 0; j < n; j++){
                // i, j is integers
                if (i!=j) {
                    tmp = a[i] + a[j];
                    if ( tmp > maxv && tmp <= m ) maxv = tmp;
                }
            }
        }
        if (maxv==0){printf("NONE\n");}
        else{printf("%d\n", maxv);}
    }
    return 0;
}
3 45
17 20 30
6 10
1 2 5 8 9 11
7 100
11 34 83 47 59 29 70
4 100
80 70 60 50
4 20
10 5 10 16
0 0
 3 45
17 20 30
6 10
1 2 5 8 4 11
7 000
11 34 83 47 59 29 70
4 100
80 70 62 50
4 20
10 5 10 16
0 0
 3 45
2 20 30
6 10
1 2 5 8 4 11
7 100
11 34 83 47 59 29 70
4 100
80 70 62 50
4 20
10 5 10 16
0 0
 3 45
17 20 30
6 10
1 2 5 8 4 11
7 000
11 34 83 47 59 29 70
4 100
80 70 62 50
4 20
10 5 1 16
0 0
 3 45
17 20 30
6 10
1 2 5 8 4 11
7 000
22 34 83 47 59 29 70
4 100
3 70 62 50
4 20
10 5 10 16
0 0
 3 45
17 20 30
6 7
1 2 5 8 4 11
7 000
22 34 102 94 59 29 70
4 100
80 70 80 50
4 20
10 5 10 16
0 0
 3 45
1 20 30
6 10
1 2 8 8 9 11
7 100
11 34 83 47 59 29 70
4 100
80 70 60 50
4 20
10 5 10 16
0 0
 3 45
17 20 30
6 10
1 2 5 8 1 11
7 000
22 34 83 94 59 29 70
4 100
6 70 80 50
4 20
10 5 10 16
0 0
 3 48
17 20 30
6 7
1 2 5 1 4 11
7 000
22 34 102 94 59 39 70
4 100
80 70 119 50
4 20
10 5 10 16
0 0
 3 45
10 20 30
6 10
1 2 5 8 9 11
7 100
11 34 83 47 59 29 70
4 110
80 70 60 50
4 20
10 5 10 16
0 0

37
10
99
NONE
20
 37
10
NONE
NONE
20
 32
10
99
NONE
20
 37
10
NONE
NONE
17
 37
10
NONE
73
20
 37
7
NONE
NONE
20
 31
10
99
NONE
20
 37
10
NONE
86
20
 47
7
NONE
NONE
20
 40
10
99
110
20

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

```c
#include <stdio.h>

int main(){
    int n,m,i,j,a[100000],maxv,tmp;
    while(1){
        scanf("%d %d", &n, &m);
        if(n==0 && m==0) break;
        for(i=0; i<n; i++){
            scanf("%d", &a[i]);
            
        }
        maxv = 0; // answer
        for(i = 0; i < n; i++){
            for( j = 0; j < n; j++){
                // i, j is integers
                if (i!=j) {
                    tmp = a[i] + a[j];
                    if ( tmp > maxv && tmp <= m ) maxv = tmp;
                }
            }
        }
        if (maxv==0){printf("NONE\n");}
        else{printf("%d\n", maxv);}
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"NONE"
.LC3:
	.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-400036(%rbp), %rdx
	leaq	-400040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400040(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-400036(%rbp), %eax
	testl	%eax, %eax
	je	.L17
.L2:
	movl	$0, -400032(%rbp)
	jmp	.L4
.L5:
	leaq	-400016(%rbp), %rdx
	movl	-400032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400032(%rbp)
.L4:
	movl	-400040(%rbp), %eax
	cmpl	%eax, -400032(%rbp)
	jl	.L5
	movl	$0, -400024(%rbp)
	movl	$0, -400032(%rbp)
	jmp	.L6
.L10:
	movl	$0, -400028(%rbp)
	jmp	.L7
.L9:
	movl	-400032(%rbp), %eax
	cmpl	-400028(%rbp), %eax
	je	.L8
	movl	-400032(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	addl	%edx, %eax
	movl	%eax, -400020(%rbp)
	movl	-400020(%rbp), %eax
	cmpl	-400024(%rbp), %eax
	jle	.L8
	movl	-400036(%rbp), %eax
	cmpl	%eax, -400020(%rbp)
	jg	.L8
	movl	-400020(%rbp), %eax
	movl	%eax, -400024(%rbp)
.L8:
	addl	$1, -400028(%rbp)
.L7:
	movl	-400040(%rbp), %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L9
	addl	$1, -400032(%rbp)
.L6:
	movl	-400040(%rbp), %eax
	cmpl	%eax, -400032(%rbp)
	jl	.L10
	cmpl	$0, -400024(%rbp)
	jne	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L11:
	movl	-400024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L17:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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"
.LC1:
	.string	"%d"
.LC2:
	.string	"NONE"
.LC3:
	.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-400036(%rbp), %rdx
	leaq	-400040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400040(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-400036(%rbp), %eax
	testl	%eax, %eax
	je	.L17
.L2:
	movl	$0, -400032(%rbp)
	jmp	.L4
.L5:
	leaq	-400016(%rbp), %rdx
	movl	-400032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400032(%rbp)
.L4:
	movl	-400040(%rbp), %eax
	cmpl	%eax, -400032(%rbp)
	jl	.L5
	movl	$0, -400024(%rbp)
	movl	$0, -400032(%rbp)
	jmp	.L6
.L10:
	movl	$0, -400028(%rbp)
	jmp	.L7
.L9:
	movl	-400032(%rbp), %eax
	cmpl	-400028(%rbp), %eax
	je	.L8
	movl	-400032(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	addl	%edx, %eax
	movl	%eax, -400020(%rbp)
	movl	-400020(%rbp), %eax
	cmpl	-400024(%rbp), %eax
	jle	.L8
	movl	-400036(%rbp), %eax
	cmpl	%eax, -400020(%rbp)
	jg	.L8
	movl	-400020(%rbp), %eax
	movl	%eax, -400024(%rbp)
.L8:
	addl	$1, -400028(%rbp)
.L7:
	movl	-400040(%rbp), %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L9
	addl	$1, -400032(%rbp)
.L6:
	movl	-400040(%rbp), %eax
	cmpl	%eax, -400032(%rbp)
	jl	.L10
	cmpl	$0, -400024(%rbp)
	jne	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L11:
	movl	-400024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L17:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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:
