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;
	scanf("%d", &n);
	int i, j;
	int a[2][102];
	for (i = 0; i < 2; i++)
		for (j = 0; j < n; j++)
			scanf("%d", &a[i][j]);
	int ans = 0, x;
	for (i = 0; i < n; i++)
	{
		x = 0;
		for (j = 0; j <= i; j++)
			x += a[0][j];
		for (j = i; j < n; j++)
			x += a[1][j];
		if (ans < x)
			ans = x;
	}
	printf("%d\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-852(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -848(%rbp)
	jmp	.L2
.L5:
	movl	$0, -844(%rbp)
	jmp	.L3
.L4:
	leaq	-832(%rbp), %rdx
	movl	-844(%rbp), %eax
	movslq	%eax, %rcx
	movl	-848(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -844(%rbp)
.L3:
	movl	-852(%rbp), %eax
	cmpl	%eax, -844(%rbp)
	jl	.L4
	addl	$1, -848(%rbp)
.L2:
	cmpl	$1, -848(%rbp)
	jle	.L5
	movl	$0, -840(%rbp)
	movl	$0, -848(%rbp)
	jmp	.L6
.L12:
	movl	$0, -836(%rbp)
	movl	$0, -844(%rbp)
	jmp	.L7
.L8:
	movl	-844(%rbp), %eax
	cltq
	movl	-832(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -844(%rbp)
.L7:
	movl	-844(%rbp), %eax
	cmpl	-848(%rbp), %eax
	jle	.L8
	movl	-848(%rbp), %eax
	movl	%eax, -844(%rbp)
	jmp	.L9
.L10:
	movl	-844(%rbp), %eax
	cltq
	addq	$102, %rax
	movl	-832(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -844(%rbp)
.L9:
	movl	-852(%rbp), %eax
	cmpl	%eax, -844(%rbp)
	jl	.L10
	movl	-840(%rbp), %eax
	cmpl	-836(%rbp), %eax
	jge	.L11
	movl	-836(%rbp), %eax
	movl	%eax, -840(%rbp)
.L11:
	addl	$1, -848(%rbp)
.L6:
	movl	-852(%rbp), %eax
	cmpl	%eax, -848(%rbp)
	jl	.L12
	movl	-840(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%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"
.LC1:
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$848, %rsp
	.cfi_def_cfa_offset 896
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	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	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	424(%rsp), %rbp
	xorl	%r12d, %r12d
	movq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r14
	cmpl	%r12d, %esi
	jg	.L9
	testl	%esi, %esi
	jle	.L8
	movl	$1, %edi
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	movl	$1, %r9d
	leaq	16(%rbx), %r10
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$2, %ecx
	jle	.L20
	movl	%edi, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %edx
	movq	%rbx, %rax
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L12
	movdqa	%xmm0, %xmm1
	movl	%edi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %dil
	je	.L13
.L11:
	movslq	%eax, %r11
	addl	16(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%r11d, %ecx
	jl	.L13
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	16(%rsp,%r11,4), %edx
	cmpl	%eax, %ecx
	jl	.L13
	cltq
	addl	16(%rsp,%rax,4), %edx
.L13:
	movl	%esi, %r12d
	movl	%esi, %eax
	subl	%ecx, %r12d
	cmpl	%esi, %ecx
	cmovge	%r9d, %r12d
	subl	%edi, %eax
	cmpl	$2, %eax
	jbe	.L21
	cmpl	%esi, %ecx
	jge	.L21
	movl	%r12d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbp,%rax), %r11
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L15:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %r11
	jne	.L15
	movdqa	%xmm0, %xmm1
	movl	%r12d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	leal	(%r11,%rcx), %eax
	cmpl	%r12d, %r11d
	je	.L16
.L14:
	movslq	%eax, %r11
	addl	424(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%esi, %r11d
	jge	.L16
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	424(%rsp,%r11,4), %edx
	cmpl	%esi, %eax
	jge	.L16
	cltq
	addl	424(%rsp,%rax,4), %edx
.L16:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addl	$1, %ecx
	addl	$1, %edi
	addq	$4, %rbp
	cmpl	%esi, %ecx
	jne	.L7
.L17:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$848, %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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L11
.L8:
	xorl	%r8d, %r8d
	jmp	.L17
.L34:
	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"
.LC1:
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$848, %rsp
	.cfi_def_cfa_offset 896
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	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	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	424(%rsp), %rbp
	xorl	%r12d, %r12d
	movq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r14
	cmpl	%r12d, %esi
	jg	.L9
	testl	%esi, %esi
	jle	.L8
	movl	$1, %edi
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	movl	$1, %r9d
	leaq	16(%rbx), %r10
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$2, %ecx
	jle	.L20
	movl	%edi, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %edx
	movq	%rbx, %rax
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L12
	movdqa	%xmm0, %xmm1
	movl	%edi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %dil
	je	.L13
.L11:
	movslq	%eax, %r11
	addl	16(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%r11d, %ecx
	jl	.L13
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	16(%rsp,%r11,4), %edx
	cmpl	%eax, %ecx
	jl	.L13
	cltq
	addl	16(%rsp,%rax,4), %edx
.L13:
	movl	%esi, %r12d
	movl	%esi, %eax
	subl	%ecx, %r12d
	cmpl	%esi, %ecx
	cmovge	%r9d, %r12d
	subl	%edi, %eax
	cmpl	$2, %eax
	jbe	.L21
	cmpl	%esi, %ecx
	jge	.L21
	movl	%r12d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbp,%rax), %r11
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L15:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %r11
	jne	.L15
	movdqa	%xmm0, %xmm1
	movl	%r12d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	leal	(%r11,%rcx), %eax
	cmpl	%r12d, %r11d
	je	.L16
.L14:
	movslq	%eax, %r11
	addl	424(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%esi, %r11d
	jge	.L16
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	424(%rsp,%r11,4), %edx
	cmpl	%esi, %eax
	jge	.L16
	cltq
	addl	424(%rsp,%rax,4), %edx
.L16:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addl	$1, %ecx
	addl	$1, %edi
	addq	$4, %rbp
	cmpl	%esi, %ecx
	jne	.L7
.L17:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$848, %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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L11
.L8:
	xorl	%r8d, %r8d
	jmp	.L17
.L34:
	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;
	scanf("%d", &n);
	int i, j;
	int a[2][102];
	for (i = 0; i < 2; i++)
		for (j = 0; j < n; j++)
			scanf("%d", &a[i][j]);
	int ans = 0, x;
	for (i = 0; i < n; i++)
	{
		x = 0;
		for (j = 0; j <= i; j++)
			x += a[0][j];
		for (j = i; j < n; j++)
			x += a[1][j];
		if (ans < x)
			ans = x;
	}
	printf("%d\n", ans);
	return 0;
}
5
3 2 2 4 1
1 2 2 2 1

14

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;
	scanf("%d", &n);
	int i, j;
	int a[2][102];
	for (i = 0; i < 2; i++)
		for (j = 0; j < n; j++)
			scanf("%d", &a[i][j]);
	int ans = 0, x;
	for (i = 0; i < n; i++)
	{
		x = 0;
		for (j = 0; j <= i; j++)
			x += a[0][j];
		for (j = i; j < n; j++)
			x += a[1][j];
		if (ans < x)
			ans = x;
	}
	printf("%d\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-852(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -848(%rbp)
	jmp	.L2
.L5:
	movl	$0, -844(%rbp)
	jmp	.L3
.L4:
	leaq	-832(%rbp), %rdx
	movl	-844(%rbp), %eax
	movslq	%eax, %rcx
	movl	-848(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -844(%rbp)
.L3:
	movl	-852(%rbp), %eax
	cmpl	%eax, -844(%rbp)
	jl	.L4
	addl	$1, -848(%rbp)
.L2:
	cmpl	$1, -848(%rbp)
	jle	.L5
	movl	$0, -840(%rbp)
	movl	$0, -848(%rbp)
	jmp	.L6
.L12:
	movl	$0, -836(%rbp)
	movl	$0, -844(%rbp)
	jmp	.L7
.L8:
	movl	-844(%rbp), %eax
	cltq
	movl	-832(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -844(%rbp)
.L7:
	movl	-844(%rbp), %eax
	cmpl	-848(%rbp), %eax
	jle	.L8
	movl	-848(%rbp), %eax
	movl	%eax, -844(%rbp)
	jmp	.L9
.L10:
	movl	-844(%rbp), %eax
	cltq
	addq	$102, %rax
	movl	-832(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -844(%rbp)
.L9:
	movl	-852(%rbp), %eax
	cmpl	%eax, -844(%rbp)
	jl	.L10
	movl	-840(%rbp), %eax
	cmpl	-836(%rbp), %eax
	jge	.L11
	movl	-836(%rbp), %eax
	movl	%eax, -840(%rbp)
.L11:
	addl	$1, -848(%rbp)
.L6:
	movl	-852(%rbp), %eax
	cmpl	%eax, -848(%rbp)
	jl	.L12
	movl	-840(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%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"
.LC1:
	.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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-852(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -848(%rbp)
	jmp	.L2
.L5:
	movl	$0, -844(%rbp)
	jmp	.L3
.L4:
	leaq	-832(%rbp), %rdx
	movl	-844(%rbp), %eax
	movslq	%eax, %rcx
	movl	-848(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -844(%rbp)
.L3:
	movl	-852(%rbp), %eax
	cmpl	%eax, -844(%rbp)
	jl	.L4
	addl	$1, -848(%rbp)
.L2:
	cmpl	$1, -848(%rbp)
	jle	.L5
	movl	$0, -840(%rbp)
	movl	$0, -848(%rbp)
	jmp	.L6
.L12:
	movl	$0, -836(%rbp)
	movl	$0, -844(%rbp)
	jmp	.L7
.L8:
	movl	-844(%rbp), %eax
	cltq
	movl	-832(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -844(%rbp)
.L7:
	movl	-844(%rbp), %eax
	cmpl	-848(%rbp), %eax
	jle	.L8
	movl	-848(%rbp), %eax
	movl	%eax, -844(%rbp)
	jmp	.L9
.L10:
	movl	-844(%rbp), %eax
	cltq
	addq	$102, %rax
	movl	-832(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -844(%rbp)
.L9:
	movl	-852(%rbp), %eax
	cmpl	%eax, -844(%rbp)
	jl	.L10
	movl	-840(%rbp), %eax
	cmpl	-836(%rbp), %eax
	jge	.L11
	movl	-836(%rbp), %eax
	movl	%eax, -840(%rbp)
.L11:
	addl	$1, -848(%rbp)
.L6:
	movl	-852(%rbp), %eax
	cmpl	%eax, -848(%rbp)
	jl	.L12
	movl	-840(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%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:
