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 i, j, n, m, max = 0;
	int game[1000], judge[1000], ticket[1000] = { 0 };
	scanf("%d %d", &n, &m);
	for( i = 0; i < n; i++) scanf("%d", &game[i]);
	for( i = 0; i < m; i++) scanf("%d", &judge[i]);
	for( i = 0; i < m; i++){
		for( j = 0; j < n; j++) {
			if( game[j] <= judge[i] ) {
				ticket[j]++;
				break;
			}
		}
	}
	for( i = 1; i < n; i++) {
		if( ticket[max] < ticket[i] ) max = i;
	}
	printf("%d\n", max + 1);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3856, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12020(%rbp)
	leaq	-4016(%rbp), %rdx
	movl	$0, %eax
	movl	$500, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-12032(%rbp), %rdx
	leaq	-12036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12028(%rbp)
	jmp	.L2
.L3:
	leaq	-12016(%rbp), %rdx
	movl	-12028(%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, -12028(%rbp)
.L2:
	movl	-12036(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L3
	movl	$0, -12028(%rbp)
	jmp	.L4
.L5:
	leaq	-8016(%rbp), %rdx
	movl	-12028(%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, -12028(%rbp)
.L4:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L5
	movl	$0, -12028(%rbp)
	jmp	.L6
.L11:
	movl	$0, -12024(%rbp)
	jmp	.L7
.L10:
	movl	-12024(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %edx
	movl	-12028(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L8
	movl	-12024(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-12024(%rbp), %eax
	cltq
	movl	%edx, -4016(%rbp,%rax,4)
	jmp	.L9
.L8:
	addl	$1, -12024(%rbp)
.L7:
	movl	-12036(%rbp), %eax
	cmpl	%eax, -12024(%rbp)
	jl	.L10
.L9:
	addl	$1, -12028(%rbp)
.L6:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L11
	movl	$1, -12028(%rbp)
	jmp	.L12
.L14:
	movl	-12020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-12028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L13
	movl	-12028(%rbp), %eax
	movl	%eax, -12020(%rbp)
.L13:
	addl	$1, -12028(%rbp)
.L12:
	movl	-12036(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L14
	movl	-12020(%rbp), %eax
	addl	$1, %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	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8240
	orq	$0, (%rsp)
	subq	$3840, %rsp
	.cfi_def_cfa_offset 12080
	movl	$500, %ecx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 12024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	8016(%rsp), %rbx
	leaq	16(%rsp), %r12
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebp, 8(%rsp)
	jg	.L5
.L6:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L27
	leaq	4016(%rsp), %r14
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%r14, %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L7
	movslq	8(%rsp), %r9
	testl	%eax, %eax
	jle	.L8
	subl	$1, %eax
	leaq	4(%r14), %r8
	leaq	16(%rsp), %rsi
	movslq	%r9d, %rdi
	leaq	(%r8,%rax,4), %r10
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%r9d, %r9d
	jle	.L11
	movl	(%r14), %ecx
	xorl	%eax, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rax
	cmpq	%rdi, %rax
	je	.L11
.L12:
	movslq	%eax, %rdx
	cmpl	%ecx, (%rsi,%rax,4)
	jg	.L10
	addl	$1, 8016(%rsp,%rdx,4)
.L11:
	movq	%r8, %r14
	cmpq	%r10, %r8
	je	.L8
	addq	$4, %r8
	jmp	.L9
.L27:
	movslq	8(%rsp), %r9
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$1, %r9d
	jle	.L18
	movl	8016(%rsp), %ecx
	movl	$1, %eax
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rbx,%rax,4), %edx
	cmpl	%ecx, %edx
	jle	.L15
	movl	%edx, %ecx
	movl	%eax, %esi
.L15:
	addq	$1, %rax
	cmpq	%rax, %r9
	jne	.L16
.L14:
	leal	1(%rsi), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	12024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$12032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	xorl	%esi, %esi
	jmp	.L14
.L28:
	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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8240
	orq	$0, (%rsp)
	subq	$3840, %rsp
	.cfi_def_cfa_offset 12080
	movl	$500, %ecx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 12024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	8016(%rsp), %rbx
	leaq	16(%rsp), %r12
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebp, 8(%rsp)
	jg	.L5
.L6:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L27
	leaq	4016(%rsp), %r14
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%r14, %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L7
	movslq	8(%rsp), %r9
	testl	%eax, %eax
	jle	.L8
	subl	$1, %eax
	leaq	4(%r14), %r8
	leaq	16(%rsp), %rsi
	movslq	%r9d, %rdi
	leaq	(%r8,%rax,4), %r10
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%r9d, %r9d
	jle	.L11
	movl	(%r14), %ecx
	xorl	%eax, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rax
	cmpq	%rdi, %rax
	je	.L11
.L12:
	movslq	%eax, %rdx
	cmpl	%ecx, (%rsi,%rax,4)
	jg	.L10
	addl	$1, 8016(%rsp,%rdx,4)
.L11:
	movq	%r8, %r14
	cmpq	%r10, %r8
	je	.L8
	addq	$4, %r8
	jmp	.L9
.L27:
	movslq	8(%rsp), %r9
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$1, %r9d
	jle	.L18
	movl	8016(%rsp), %ecx
	movl	$1, %eax
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rbx,%rax,4), %edx
	cmpl	%ecx, %edx
	jle	.L15
	movl	%edx, %ecx
	movl	%eax, %esi
.L15:
	addq	$1, %rax
	cmpq	%rax, %r9
	jne	.L16
.L14:
	leal	1(%rsi), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	12024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$12032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	xorl	%esi, %esi
	jmp	.L14
.L28:
	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 i, j, n, m, max = 0;
	int game[1000], judge[1000], ticket[1000] = { 0 };
	scanf("%d %d", &n, &m);
	for( i = 0; i < n; i++) scanf("%d", &game[i]);
	for( i = 0; i < m; i++) scanf("%d", &judge[i]);
	for( i = 0; i < m; i++){
		for( j = 0; j < n; j++) {
			if( game[j] <= judge[i] ) {
				ticket[j]++;
				break;
			}
		}
	}
	for( i = 1; i < n; i++) {
		if( ticket[max] < ticket[i] ) max = i;
	}
	printf("%d\n", max + 1);
	return 0;
}
4 3
5
3
1
4
4
3
2

2

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 i, j, n, m, max = 0;
	int game[1000], judge[1000], ticket[1000] = { 0 };
	scanf("%d %d", &n, &m);
	for( i = 0; i < n; i++) scanf("%d", &game[i]);
	for( i = 0; i < m; i++) scanf("%d", &judge[i]);
	for( i = 0; i < m; i++){
		for( j = 0; j < n; j++) {
			if( game[j] <= judge[i] ) {
				ticket[j]++;
				break;
			}
		}
	}
	for( i = 1; i < n; i++) {
		if( ticket[max] < ticket[i] ) max = i;
	}
	printf("%d\n", max + 1);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3856, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12020(%rbp)
	leaq	-4016(%rbp), %rdx
	movl	$0, %eax
	movl	$500, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-12032(%rbp), %rdx
	leaq	-12036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12028(%rbp)
	jmp	.L2
.L3:
	leaq	-12016(%rbp), %rdx
	movl	-12028(%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, -12028(%rbp)
.L2:
	movl	-12036(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L3
	movl	$0, -12028(%rbp)
	jmp	.L4
.L5:
	leaq	-8016(%rbp), %rdx
	movl	-12028(%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, -12028(%rbp)
.L4:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L5
	movl	$0, -12028(%rbp)
	jmp	.L6
.L11:
	movl	$0, -12024(%rbp)
	jmp	.L7
.L10:
	movl	-12024(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %edx
	movl	-12028(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L8
	movl	-12024(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-12024(%rbp), %eax
	cltq
	movl	%edx, -4016(%rbp,%rax,4)
	jmp	.L9
.L8:
	addl	$1, -12024(%rbp)
.L7:
	movl	-12036(%rbp), %eax
	cmpl	%eax, -12024(%rbp)
	jl	.L10
.L9:
	addl	$1, -12028(%rbp)
.L6:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L11
	movl	$1, -12028(%rbp)
	jmp	.L12
.L14:
	movl	-12020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-12028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L13
	movl	-12028(%rbp), %eax
	movl	%eax, -12020(%rbp)
.L13:
	addl	$1, -12028(%rbp)
.L12:
	movl	-12036(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L14
	movl	-12020(%rbp), %eax
	addl	$1, %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	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"%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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3856, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12020(%rbp)
	leaq	-4016(%rbp), %rdx
	movl	$0, %eax
	movl	$500, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-12032(%rbp), %rdx
	leaq	-12036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12028(%rbp)
	jmp	.L2
.L3:
	leaq	-12016(%rbp), %rdx
	movl	-12028(%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, -12028(%rbp)
.L2:
	movl	-12036(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L3
	movl	$0, -12028(%rbp)
	jmp	.L4
.L5:
	leaq	-8016(%rbp), %rdx
	movl	-12028(%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, -12028(%rbp)
.L4:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L5
	movl	$0, -12028(%rbp)
	jmp	.L6
.L11:
	movl	$0, -12024(%rbp)
	jmp	.L7
.L10:
	movl	-12024(%rbp), %eax
	cltq
	movl	-12016(%rbp,%rax,4), %edx
	movl	-12028(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L8
	movl	-12024(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-12024(%rbp), %eax
	cltq
	movl	%edx, -4016(%rbp,%rax,4)
	jmp	.L9
.L8:
	addl	$1, -12024(%rbp)
.L7:
	movl	-12036(%rbp), %eax
	cmpl	%eax, -12024(%rbp)
	jl	.L10
.L9:
	addl	$1, -12028(%rbp)
.L6:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L11
	movl	$1, -12028(%rbp)
	jmp	.L12
.L14:
	movl	-12020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-12028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L13
	movl	-12028(%rbp), %eax
	movl	%eax, -12020(%rbp)
.L13:
	addl	$1, -12028(%rbp)
.L12:
	movl	-12036(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L14
	movl	-12020(%rbp), %eax
	addl	$1, %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	.L16
	call	__stack_chk_fail@PLT
.L16:
	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:
