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 is[10000];
int main(int argc, char *argv[])
{
    for(;;) {
        int n, m;
        scanf("%d %d", &n, &m);
        if(n == 0 && m == 0) break;
        for(int i = 0; i < n; i++) {
            int c;
            scanf("%d", &c);
            is[i] = c;
        }
        int best = -1;
        for(int i = 0; i < n; i++) {
            for(int j = i+1; j < n; j++) {
                int k = is[i] + is[j];
                if( k <= m && k > best) best = k;
            }
        }
        if(best < 0) printf("NONE\n");
        else printf("%d\n", best);
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	is
	.bss
	.align 32
	.type	is, @object
	.size	is, 40000
is:
	.zero	40000
	.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
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	jmp	.L15
.L2:
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	is(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -28(%rbp)
.L4:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	movl	$-1, -24(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L6
.L10:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L7
.L9:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	is(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	is(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L8
	movl	-12(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L8
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
.L8:
	addl	$1, -16(%rbp)
.L7:
	movl	-40(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L9
	addl	$1, -20(%rbp)
.L6:
	movl	-40(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L10
	cmpl	$0, -24(%rbp)
	jns	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L11:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L15:
	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"
.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
	leaq	is(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	-4(%r12), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	32(%rsp), %r14
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	testl	%edx, %edx
	jne	.L30
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L31
.L6:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L30:
	jle	.L6
	xorl	%r13d, %r13d
	leaq	36(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	movl	28(%rsp), %edi
	movl	%eax, (%r12,%r13,4)
	addq	$1, %r13
	cmpl	%r13d, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L6
	movl	32(%rsp), %r9d
	cmpl	$1, %edi
	je	.L6
	movslq	%edi, %r11
	movl	$1, %r10d
	movl	$-1, %edx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	0(%rbp,%r10,4), %r8d
	movq	%r10, %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rax,4), %ecx
	addl	%r8d, %ecx
	cmpl	%ecx, %edx
	movl	%ecx, %esi
	cmovge	%edx, %esi
	cmpl	%ecx, %r9d
	cmovge	%esi, %edx
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L8
	addq	$1, %r10
	cmpq	%r11, %r10
	jne	.L9
	cmpl	$-1, %edx
	je	.L6
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
.L31:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	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
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	is
	.bss
	.align 32
	.type	is, @object
	.size	is, 40000
is:
	.zero	40000
	.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
	leaq	is(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	-4(%r12), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	32(%rsp), %r14
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	testl	%edx, %edx
	jne	.L30
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L31
.L6:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L30:
	jle	.L6
	xorl	%r13d, %r13d
	leaq	36(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	movl	28(%rsp), %edi
	movl	%eax, (%r12,%r13,4)
	addq	$1, %r13
	cmpl	%r13d, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L6
	movl	32(%rsp), %r9d
	cmpl	$1, %edi
	je	.L6
	movslq	%edi, %r11
	movl	$1, %r10d
	movl	$-1, %edx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	0(%rbp,%r10,4), %r8d
	movq	%r10, %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rax,4), %ecx
	addl	%r8d, %ecx
	cmpl	%ecx, %edx
	movl	%ecx, %esi
	cmovge	%edx, %esi
	cmpl	%ecx, %r9d
	cmovge	%esi, %edx
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L8
	addq	$1, %r10
	cmpq	%r11, %r10
	jne	.L9
	cmpl	$-1, %edx
	je	.L6
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
.L31:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	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
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	is
	.bss
	.align 32
	.type	is, @object
	.size	is, 40000
is:
	.zero	40000
	.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 is[10000];
int main(int argc, char *argv[])
{
    for(;;) {
        int n, m;
        scanf("%d %d", &n, &m);
        if(n == 0 && m == 0) break;
        for(int i = 0; i < n; i++) {
            int c;
            scanf("%d", &c);
            is[i] = c;
        }
        int best = -1;
        for(int i = 0; i < n; i++) {
            for(int j = i+1; j < n; j++) {
                int k = is[i] + is[j];
                if( k <= m && k > best) best = k;
            }
        }
        if(best < 0) printf("NONE\n");
        else printf("%d\n", best);
    }
    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 is[10000];
int main(int argc, char *argv[])
{
    for(;;) {
        int n, m;
        scanf("%d %d", &n, &m);
        if(n == 0 && m == 0) break;
        for(int i = 0; i < n; i++) {
            int c;
            scanf("%d", &c);
            is[i] = c;
        }
        int best = -1;
        for(int i = 0; i < n; i++) {
            for(int j = i+1; j < n; j++) {
                int k = is[i] + is[j];
                if( k <= m && k > best) best = k;
            }
        }
        if(best < 0) printf("NONE\n");
        else printf("%d\n", best);
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	is
	.bss
	.align 32
	.type	is, @object
	.size	is, 40000
is:
	.zero	40000
	.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
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	jmp	.L15
.L2:
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	is(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -28(%rbp)
.L4:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	movl	$-1, -24(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L6
.L10:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L7
.L9:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	is(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	is(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L8
	movl	-12(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L8
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
.L8:
	addl	$1, -16(%rbp)
.L7:
	movl	-40(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L9
	addl	$1, -20(%rbp)
.L6:
	movl	-40(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L10
	cmpl	$0, -24(%rbp)
	jns	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L11:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L15:
	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
	.globl	is
	.bss
	.align 32
	.type	is, @object
	.size	is, 40000
is:
	.zero	40000
	.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
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	jmp	.L15
.L2:
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	is(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -28(%rbp)
.L4:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	movl	$-1, -24(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L6
.L10:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L7
.L9:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	is(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	is(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L8
	movl	-12(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L8
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
.L8:
	addl	$1, -16(%rbp)
.L7:
	movl	-40(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L9
	addl	$1, -20(%rbp)
.L6:
	movl	-40(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L10
	cmpl	$0, -24(%rbp)
	jns	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L11:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L15:
	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:
