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>
#define Max(a, b) ((a) > (b) ? (a) : (b))

int
main(int argc, char *argv[])
{
  int n, a[2][100];
  scanf("%d", &n);
  for(int i = 0; i < n; i++) scanf("%d", &a[0][i]);
  for(int i = 0; i < n; i++) scanf("%d", &a[1][i]);

  int ca; int max = 0;

for(int i = 0; i < n; i++){
ca = 0;
for(int j = 0; j <= i; j++) ca += a[0][j];
for(int j = i; j < n; j++) ca += a[1][j];
max = Max(max, ca);
}

printf("%d\n", max);

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
	movl	%edi, -852(%rbp)
	movq	%rsi, -864(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -844(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-844(%rbp), %eax
	cltq
	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)
.L2:
	movl	-848(%rbp), %eax
	cmpl	%eax, -844(%rbp)
	jl	.L3
	movl	$0, -840(%rbp)
	jmp	.L4
.L5:
	leaq	-816(%rbp), %rdx
	movl	-840(%rbp), %eax
	cltq
	addq	$100, %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, -840(%rbp)
.L4:
	movl	-848(%rbp), %eax
	cmpl	%eax, -840(%rbp)
	jl	.L5
	movl	$0, -832(%rbp)
	movl	$0, -828(%rbp)
	jmp	.L6
.L11:
	movl	$0, -836(%rbp)
	movl	$0, -824(%rbp)
	jmp	.L7
.L8:
	movl	-824(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -824(%rbp)
.L7:
	movl	-824(%rbp), %eax
	cmpl	-828(%rbp), %eax
	jle	.L8
	movl	-828(%rbp), %eax
	movl	%eax, -820(%rbp)
	jmp	.L9
.L10:
	movl	-820(%rbp), %eax
	cltq
	addq	$100, %rax
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -820(%rbp)
.L9:
	movl	-848(%rbp), %eax
	cmpl	%eax, -820(%rbp)
	jl	.L10
	movl	-832(%rbp), %edx
	movl	-836(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -832(%rbp)
	addl	$1, -828(%rbp)
.L6:
	movl	-848(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L11
	movl	-832(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	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	$832, %rsp
	.cfi_def_cfa_offset 880
	movq	%fs:40, %rax
	movq	%rax, 824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L5
	leaq	416(%rsp), %rbp
	xorl	%r12d, %r12d
	movq	%rbp, %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r12d, %esi
	jg	.L4
	testl	%esi, %esi
	jle	.L5
	movl	$1, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	leaq	16(%rbx), %r10
	.p2align 4,,10
	.p2align 3
.L12:
	cmpl	$2, %ecx
	jle	.L15
	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
.L7:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L7
	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	.L8
.L6:
	movslq	%eax, %r11
	addl	16(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%r11d, %ecx
	jl	.L8
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	16(%rsp,%r11,4), %edx
	cmpl	%eax, %ecx
	jl	.L8
	cltq
	addl	16(%rsp,%rax,4), %edx
.L8:
	movl	%esi, %r12d
	movl	%esi, %eax
	subl	%ecx, %r12d
	cmpl	%ecx, %esi
	cmovle	%r9d, %r12d
	subl	%edi, %eax
	cmpl	$2, %eax
	jbe	.L16
	cmpl	%ecx, %esi
	jle	.L16
	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
.L10:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %r11
	jne	.L10
	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	.L11
.L9:
	movslq	%eax, %r11
	addl	416(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%r11d, %esi
	jle	.L11
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	416(%rsp,%r11,4), %edx
	cmpl	%eax, %esi
	jle	.L11
	cltq
	addl	416(%rsp,%rax,4), %edx
.L11:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addl	$1, %ecx
	addl	$1, %edi
	addq	$4, %rbp
	cmpl	%ecx, %esi
	jne	.L12
.L13:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$832, %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
.L16:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L6
.L5:
	xorl	%r8d, %r8d
	jmp	.L13
.L25:
	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
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	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	$832, %rsp
	.cfi_def_cfa_offset 880
	movq	%fs:40, %rax
	movq	%rax, 824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L5
	leaq	416(%rsp), %rbp
	xorl	%r12d, %r12d
	movq	%rbp, %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r12d, %esi
	jg	.L4
	testl	%esi, %esi
	jle	.L5
	movl	$1, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	leaq	16(%rbx), %r10
	.p2align 4,,10
	.p2align 3
.L12:
	cmpl	$2, %ecx
	jle	.L15
	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
.L7:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L7
	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	.L8
.L6:
	movslq	%eax, %r11
	addl	16(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%r11d, %ecx
	jl	.L8
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	16(%rsp,%r11,4), %edx
	cmpl	%eax, %ecx
	jl	.L8
	cltq
	addl	16(%rsp,%rax,4), %edx
.L8:
	movl	%esi, %r12d
	movl	%esi, %eax
	subl	%ecx, %r12d
	cmpl	%ecx, %esi
	cmovle	%r9d, %r12d
	subl	%edi, %eax
	cmpl	$2, %eax
	jbe	.L16
	cmpl	%ecx, %esi
	jle	.L16
	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
.L10:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %r11
	jne	.L10
	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	.L11
.L9:
	movslq	%eax, %r11
	addl	416(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%r11d, %esi
	jle	.L11
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	416(%rsp,%r11,4), %edx
	cmpl	%eax, %esi
	jle	.L11
	cltq
	addl	416(%rsp,%rax,4), %edx
.L11:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addl	$1, %ecx
	addl	$1, %edi
	addq	$4, %rbp
	cmpl	%ecx, %esi
	jne	.L12
.L13:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$832, %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
.L16:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L6
.L5:
	xorl	%r8d, %r8d
	jmp	.L13
.L25:
	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>
#define Max(a, b) ((a) > (b) ? (a) : (b))

int
main(int argc, char *argv[])
{
  int n, a[2][100];
  scanf("%d", &n);
  for(int i = 0; i < n; i++) scanf("%d", &a[0][i]);
  for(int i = 0; i < n; i++) scanf("%d", &a[1][i]);

  int ca; int max = 0;

for(int i = 0; i < n; i++){
ca = 0;
for(int j = 0; j <= i; j++) ca += a[0][j];
for(int j = i; j < n; j++) ca += a[1][j];
max = Max(max, ca);
}

printf("%d\n", max);

return 0;
}

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

30
 8
 14
 5
 32
 4
 31
 9
 12
 37

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>
#define Max(a, b) ((a) > (b) ? (a) : (b))

int
main(int argc, char *argv[])
{
  int n, a[2][100];
  scanf("%d", &n);
  for(int i = 0; i < n; i++) scanf("%d", &a[0][i]);
  for(int i = 0; i < n; i++) scanf("%d", &a[1][i]);

  int ca; int max = 0;

for(int i = 0; i < n; i++){
ca = 0;
for(int j = 0; j <= i; j++) ca += a[0][j];
for(int j = i; j < n; j++) ca += a[1][j];
max = Max(max, ca);
}

printf("%d\n", max);

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
	movl	%edi, -852(%rbp)
	movq	%rsi, -864(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -844(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-844(%rbp), %eax
	cltq
	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)
.L2:
	movl	-848(%rbp), %eax
	cmpl	%eax, -844(%rbp)
	jl	.L3
	movl	$0, -840(%rbp)
	jmp	.L4
.L5:
	leaq	-816(%rbp), %rdx
	movl	-840(%rbp), %eax
	cltq
	addq	$100, %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, -840(%rbp)
.L4:
	movl	-848(%rbp), %eax
	cmpl	%eax, -840(%rbp)
	jl	.L5
	movl	$0, -832(%rbp)
	movl	$0, -828(%rbp)
	jmp	.L6
.L11:
	movl	$0, -836(%rbp)
	movl	$0, -824(%rbp)
	jmp	.L7
.L8:
	movl	-824(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -824(%rbp)
.L7:
	movl	-824(%rbp), %eax
	cmpl	-828(%rbp), %eax
	jle	.L8
	movl	-828(%rbp), %eax
	movl	%eax, -820(%rbp)
	jmp	.L9
.L10:
	movl	-820(%rbp), %eax
	cltq
	addq	$100, %rax
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -820(%rbp)
.L9:
	movl	-848(%rbp), %eax
	cmpl	%eax, -820(%rbp)
	jl	.L10
	movl	-832(%rbp), %edx
	movl	-836(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -832(%rbp)
	addl	$1, -828(%rbp)
.L6:
	movl	-848(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L11
	movl	-832(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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
	movl	%edi, -852(%rbp)
	movq	%rsi, -864(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -844(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-844(%rbp), %eax
	cltq
	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)
.L2:
	movl	-848(%rbp), %eax
	cmpl	%eax, -844(%rbp)
	jl	.L3
	movl	$0, -840(%rbp)
	jmp	.L4
.L5:
	leaq	-816(%rbp), %rdx
	movl	-840(%rbp), %eax
	cltq
	addq	$100, %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, -840(%rbp)
.L4:
	movl	-848(%rbp), %eax
	cmpl	%eax, -840(%rbp)
	jl	.L5
	movl	$0, -832(%rbp)
	movl	$0, -828(%rbp)
	jmp	.L6
.L11:
	movl	$0, -836(%rbp)
	movl	$0, -824(%rbp)
	jmp	.L7
.L8:
	movl	-824(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -824(%rbp)
.L7:
	movl	-824(%rbp), %eax
	cmpl	-828(%rbp), %eax
	jle	.L8
	movl	-828(%rbp), %eax
	movl	%eax, -820(%rbp)
	jmp	.L9
.L10:
	movl	-820(%rbp), %eax
	cltq
	addq	$100, %rax
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	addl	$1, -820(%rbp)
.L9:
	movl	-848(%rbp), %eax
	cmpl	%eax, -820(%rbp)
	jl	.L10
	movl	-832(%rbp), %edx
	movl	-836(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -832(%rbp)
	addl	$1, -828(%rbp)
.L6:
	movl	-848(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L11
	movl	-832(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
