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>
#include <stdlib.h>
int MAX(int a,int b){
    return a>b?a:b;
}
int main() {
    int n;
    scanf("%d",&n);
    int a[n],b[n],c[n];
    for(int i=0;i<n;i++){
        scanf("%d%d%d",&a[i],&b[i],&c[i]);
    }
    int dp[n+2][3];
    dp[0][0]=a[0];
    dp[0][1]=b[0];
    dp[0][2]=c[0];
    for(int i=1;i<n;i++){
        dp[i][0]=MAX(dp[i-1][1]+a[i],dp[i-1][2]+a[i]);
        dp[i][1]=MAX(dp[i-1][0]+b[i],dp[i-1][2]+b[i]);
        dp[i][2]=MAX(dp[i-1][0]+c[i],dp[i-1][1]+c[i]);
    }
    printf("%d",MAX(dp[n-1][0],MAX(dp[n-1][1],dp[n-1][2])));
        return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	MAX, .-MAX
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L4:
	cmpq	%rcx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L6
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	-132(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L13
.L14:
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-96(%rbp), %rax
	addq	%rax, %rdx
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-112(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -128(%rbp)
.L13:
	movl	-132(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jl	.L14
	movl	-132(%rbp), %eax
	leal	2(%rax), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$96, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$96, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$96, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$96, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L15:
	cmpq	%rdx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L17
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movl	%edx, (%rax)
	movq	-96(%rbp), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-80(%rbp), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movl	%edx, 8(%rax)
	movl	$1, -124(%rbp)
	jmp	.L18
.L19:
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movl	(%rax), %ecx
	movq	-112(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$4, %rax
	movl	(%rax), %esi
	movq	-112(%rbp), %rax
	movl	-124(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%esi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %edx
	movq	-64(%rbp), %rsi
	movl	-124(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%edx, (%rax)
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movl	(%rax), %ecx
	movq	-96(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	(%rax), %esi
	movq	-96(%rbp), %rax
	movl	-124(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%esi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %edx
	movq	-64(%rbp), %rsi
	movl	-124(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$4, %rax
	movl	%edx, (%rax)
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$4, %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rax
	movl	-124(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%esi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %edx
	movq	-64(%rbp), %rsi
	movl	-124(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movl	%edx, (%rax)
	addl	$1, -124(%rbp)
.L18:
	movl	-132(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jl	.L19
	movl	-132(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movl	(%rax), %edx
	movl	-132(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	(%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.p2align 4
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB39:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovge	%esi, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	MAX, .-MAX
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rdx
	movq	%rsp, %rsi
	movq	%rdx, %rax
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rdi
	movq	%rdx, %rcx
	andq	$-4096, %rdi
	andq	$-16, %rcx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L5
.L49:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L49
.L5:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L50
.L6:
	leaq	3(%rsp), %rbx
	movq	%rdx, %rdi
	movq	%rdx, %rcx
	movq	%rbx, %rsi
	andq	$-4096, %rdi
	andq	$-4, %rbx
	andq	$-16, %rcx
	shrq	$2, %rsi
	movq	%rsi, -88(%rbp)
	movq	%rsp, %rsi
	subq	%rdi, %rsi
.L7:
	cmpq	%rsi, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L50:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L6
.L8:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L51
.L9:
	leaq	3(%rsp), %r13
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	movq	%r13, %rsi
	andq	$-16, %rcx
	andq	$-4, %r13
	shrq	$2, %rsi
	movq	%rsi, -96(%rbp)
	movq	%rsp, %rsi
	subq	%rdx, %rsi
.L10:
	cmpq	%rsi, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L51:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L9
.L11:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L12
	orq	$0, -8(%rsp,%rcx)
.L12:
	leaq	3(%rsp), %r15
	movq	%r15, %rsi
	andq	$-4, %r15
	shrq	$2, %rsi
	movq	%rsi, -104(%rbp)
	testl	%eax, %eax
	jle	.L13
	movq	%rbx, %rsi
	movq	%rbx, -72(%rbp)
	xorl	%r12d, %r12d
	movq	%r13, %rbx
	movq	%r13, -80(%rbp)
	movq	%rsi, %r14
	movq	%r15, %r13
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rcx
	movq	%rbx, %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$4, %r14
	addq	$4, %rbx
	addq	$4, %r13
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	cmpl	%r12d, %eax
	jg	.L14
	leal	2(%rax), %edx
	movq	%rsp, %rsi
	movq	-72(%rbp), %rbx
	movq	-80(%rbp), %r13
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	andq	$-16, %rcx
	subq	%rdx, %rsi
.L15:
	cmpq	%rsi, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L17
	orq	$0, -8(%rsp,%rcx)
.L17:
	movq	-88(%rbp), %rsi
	movq	-96(%rbp), %rdx
	leaq	3(%rsp), %r10
	movq	-104(%rbp), %rcx
	movq	%r10, %rdi
	andq	$-4, %r10
	movl	0(,%rsi,4), %esi
	movl	0(,%rdx,4), %edx
	shrq	$2, %rdi
	movq	%r10, %r14
	movl	0(,%rcx,4), %ecx
	movd	%esi, %xmm0
	movd	%edx, %xmm5
	punpckldq	%xmm5, %xmm0
	movl	%ecx, 8(,%rdi,4)
	movq	%xmm0, 0(,%rdi,4)
	cmpl	$1, %eax
	jle	.L22
	cmpl	$3, %eax
	jle	.L28
	leal	-4(%rax), %edi
	leaq	12(%r10), %r9
	shrl	%edi
	leaq	5(%rdi,%rdi), %r11
	movl	$3, %edi
.L20:
	movl	-8(%rbx,%rdi,4), %r12d
	leal	(%r12,%rcx), %r8d
	addl	%edx, %r12d
	cmpl	%r12d, %r8d
	cmovl	%r12d, %r8d
	movl	-8(%r13,%rdi,4), %r12d
	addl	-8(%r13,%rdi,4), %ecx
	addl	%esi, %r12d
	movd	%r8d, %xmm0
	cmpl	%r12d, %ecx
	cmovl	%r12d, %ecx
	addl	-8(%r15,%rdi,4), %esi
	addl	-8(%r15,%rdi,4), %edx
	cmpl	%esi, %edx
	movl	-4(%rbx,%rdi,4), %r12d
	cmovl	%esi, %edx
	movd	%ecx, %xmm3
	punpckldq	%xmm3, %xmm0
	leal	(%rdx,%r12), %esi
	addl	%ecx, %r12d
	movd	%edx, %xmm1
	cmpl	%r12d, %esi
	cmovl	%r12d, %esi
	movl	-4(%r13,%rdi,4), %r12d
	addl	-4(%r13,%rdi,4), %edx
	addl	%r8d, %r12d
	movd	%esi, %xmm2
	cmpl	%r12d, %edx
	punpckldq	%xmm2, %xmm1
	cmovl	%r12d, %edx
	addl	-4(%r15,%rdi,4), %r8d
	addl	-4(%r15,%rdi,4), %ecx
	cmpl	%r8d, %ecx
	punpcklqdq	%xmm1, %xmm0
	cmovl	%r8d, %ecx
	movups	%xmm0, (%r9)
	movd	%edx, %xmm0
	movl	%edi, %r8d
	addq	$2, %rdi
	addq	$24, %r9
	movd	%ecx, %xmm4
	punpckldq	%xmm4, %xmm0
	movq	%xmm0, -8(%r9)
	cmpq	%r11, %rdi
	jne	.L20
.L19:
	movslq	%r8d, %rsi
	imulq	$12, %rsi, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L21:
	movl	(%rbx,%rsi,4), %ecx
	movl	-8(%rdx), %edi
	movl	0(%r13,%rsi,4), %r8d
	addl	%ecx, %edi
	addl	-4(%rdx), %ecx
	cmpl	%ecx, %edi
	cmovl	%ecx, %edi
	movl	-12(%rdx), %ecx
	movl	%edi, (%rdx)
	addl	%ecx, %r8d
	movl	0(%r13,%rsi,4), %edi
	addl	-4(%rdx), %edi
	cmpl	%edi, %r8d
	cmovl	%edi, %r8d
	addl	(%r15,%rsi,4), %ecx
	movl	(%r15,%rsi,4), %edi
	addl	-8(%rdx), %edi
	cmpl	%edi, %ecx
	movl	%r8d, 4(%rdx)
	cmovl	%edi, %ecx
	addq	$1, %rsi
	addq	$12, %rdx
	movl	%ecx, -4(%rdx)
	cmpl	%esi, %eax
	jg	.L21
.L22:
	subl	$1, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%r14,%rax,4), %rax
	movl	8(%rax), %edx
	movl	4(%rax), %ecx
	movl	(%rax), %eax
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L52
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L13:
	.cfi_restore_state
	leal	2(%rax), %edx
	movq	%rsp, %rsi
	movslq	%edx, %rdx
	imulq	$12, %rdx, %rdx
	addq	$15, %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	andq	$-16, %rcx
	subq	%rdx, %rsi
.L23:
	cmpq	%rsi, %rsp
	je	.L24
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L23
.L28:
	movl	$1, %r8d
	jmp	.L19
.L24:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L25
	orq	$0, -8(%rsp,%rcx)
.L25:
	movq	-96(%rbp), %rbx
	leaq	3(%rsp), %rcx
	movq	%rcx, %rdx
	andq	$-4, %rcx
	movq	%rcx, %r14
	movl	0(,%rbx,4), %ecx
	movq	-88(%rbp), %rbx
	shrq	$2, %rdx
	movd	0(,%rbx,4), %xmm0
	movq	-104(%rbp), %rbx
	movd	%ecx, %xmm6
	movl	0(,%rbx,4), %ecx
	punpckldq	%xmm6, %xmm0
	movq	%xmm0, 0(,%rdx,4)
	movl	%ecx, 8(,%rdx,4)
	jmp	.L22
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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
	.p2align 4
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB39:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovge	%esi, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	MAX, .-MAX
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rdx
	movq	%rsp, %rsi
	movq	%rdx, %rax
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rdi
	movq	%rdx, %rcx
	andq	$-4096, %rdi
	andq	$-16, %rcx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L5
.L49:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L49
.L5:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L50
.L6:
	leaq	3(%rsp), %rbx
	movq	%rdx, %rdi
	movq	%rdx, %rcx
	movq	%rbx, %rsi
	andq	$-4096, %rdi
	andq	$-4, %rbx
	andq	$-16, %rcx
	shrq	$2, %rsi
	movq	%rsi, -88(%rbp)
	movq	%rsp, %rsi
	subq	%rdi, %rsi
.L7:
	cmpq	%rsi, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L50:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L6
.L8:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L51
.L9:
	leaq	3(%rsp), %r13
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	movq	%r13, %rsi
	andq	$-16, %rcx
	andq	$-4, %r13
	shrq	$2, %rsi
	movq	%rsi, -96(%rbp)
	movq	%rsp, %rsi
	subq	%rdx, %rsi
.L10:
	cmpq	%rsi, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L51:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L9
.L11:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L12
	orq	$0, -8(%rsp,%rcx)
.L12:
	leaq	3(%rsp), %r15
	movq	%r15, %rsi
	andq	$-4, %r15
	shrq	$2, %rsi
	movq	%rsi, -104(%rbp)
	testl	%eax, %eax
	jle	.L13
	movq	%rbx, %rsi
	movq	%rbx, -72(%rbp)
	xorl	%r12d, %r12d
	movq	%r13, %rbx
	movq	%r13, -80(%rbp)
	movq	%rsi, %r14
	movq	%r15, %r13
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rcx
	movq	%rbx, %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$4, %r14
	addq	$4, %rbx
	addq	$4, %r13
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	cmpl	%r12d, %eax
	jg	.L14
	leal	2(%rax), %edx
	movq	%rsp, %rsi
	movq	-72(%rbp), %rbx
	movq	-80(%rbp), %r13
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	andq	$-16, %rcx
	subq	%rdx, %rsi
.L15:
	cmpq	%rsi, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L17
	orq	$0, -8(%rsp,%rcx)
.L17:
	movq	-88(%rbp), %rsi
	movq	-96(%rbp), %rdx
	leaq	3(%rsp), %r10
	movq	-104(%rbp), %rcx
	movq	%r10, %rdi
	andq	$-4, %r10
	movl	0(,%rsi,4), %esi
	movl	0(,%rdx,4), %edx
	shrq	$2, %rdi
	movq	%r10, %r14
	movl	0(,%rcx,4), %ecx
	movd	%esi, %xmm0
	movd	%edx, %xmm5
	punpckldq	%xmm5, %xmm0
	movl	%ecx, 8(,%rdi,4)
	movq	%xmm0, 0(,%rdi,4)
	cmpl	$1, %eax
	jle	.L22
	cmpl	$3, %eax
	jle	.L28
	leal	-4(%rax), %edi
	leaq	12(%r10), %r9
	shrl	%edi
	leaq	5(%rdi,%rdi), %r11
	movl	$3, %edi
.L20:
	movl	-8(%rbx,%rdi,4), %r12d
	leal	(%r12,%rcx), %r8d
	addl	%edx, %r12d
	cmpl	%r12d, %r8d
	cmovl	%r12d, %r8d
	movl	-8(%r13,%rdi,4), %r12d
	addl	-8(%r13,%rdi,4), %ecx
	addl	%esi, %r12d
	movd	%r8d, %xmm0
	cmpl	%r12d, %ecx
	cmovl	%r12d, %ecx
	addl	-8(%r15,%rdi,4), %esi
	addl	-8(%r15,%rdi,4), %edx
	cmpl	%esi, %edx
	movl	-4(%rbx,%rdi,4), %r12d
	cmovl	%esi, %edx
	movd	%ecx, %xmm3
	punpckldq	%xmm3, %xmm0
	leal	(%rdx,%r12), %esi
	addl	%ecx, %r12d
	movd	%edx, %xmm1
	cmpl	%r12d, %esi
	cmovl	%r12d, %esi
	movl	-4(%r13,%rdi,4), %r12d
	addl	-4(%r13,%rdi,4), %edx
	addl	%r8d, %r12d
	movd	%esi, %xmm2
	cmpl	%r12d, %edx
	punpckldq	%xmm2, %xmm1
	cmovl	%r12d, %edx
	addl	-4(%r15,%rdi,4), %r8d
	addl	-4(%r15,%rdi,4), %ecx
	cmpl	%r8d, %ecx
	punpcklqdq	%xmm1, %xmm0
	cmovl	%r8d, %ecx
	movups	%xmm0, (%r9)
	movd	%edx, %xmm0
	movl	%edi, %r8d
	addq	$2, %rdi
	addq	$24, %r9
	movd	%ecx, %xmm4
	punpckldq	%xmm4, %xmm0
	movq	%xmm0, -8(%r9)
	cmpq	%r11, %rdi
	jne	.L20
.L19:
	movslq	%r8d, %rsi
	imulq	$12, %rsi, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L21:
	movl	(%rbx,%rsi,4), %ecx
	movl	-8(%rdx), %edi
	movl	0(%r13,%rsi,4), %r8d
	addl	%ecx, %edi
	addl	-4(%rdx), %ecx
	cmpl	%ecx, %edi
	cmovl	%ecx, %edi
	movl	-12(%rdx), %ecx
	movl	%edi, (%rdx)
	addl	%ecx, %r8d
	movl	0(%r13,%rsi,4), %edi
	addl	-4(%rdx), %edi
	cmpl	%edi, %r8d
	cmovl	%edi, %r8d
	addl	(%r15,%rsi,4), %ecx
	movl	(%r15,%rsi,4), %edi
	addl	-8(%rdx), %edi
	cmpl	%edi, %ecx
	movl	%r8d, 4(%rdx)
	cmovl	%edi, %ecx
	addq	$1, %rsi
	addq	$12, %rdx
	movl	%ecx, -4(%rdx)
	cmpl	%esi, %eax
	jg	.L21
.L22:
	subl	$1, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%r14,%rax,4), %rax
	movl	8(%rax), %edx
	movl	4(%rax), %ecx
	movl	(%rax), %eax
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	cmpl	%eax, %edx
	cmovl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L52
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L13:
	.cfi_restore_state
	leal	2(%rax), %edx
	movq	%rsp, %rsi
	movslq	%edx, %rdx
	imulq	$12, %rdx, %rdx
	addq	$15, %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	andq	$-16, %rcx
	subq	%rdx, %rsi
.L23:
	cmpq	%rsi, %rsp
	je	.L24
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L23
.L28:
	movl	$1, %r8d
	jmp	.L19
.L24:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L25
	orq	$0, -8(%rsp,%rcx)
.L25:
	movq	-96(%rbp), %rbx
	leaq	3(%rsp), %rcx
	movq	%rcx, %rdx
	andq	$-4, %rcx
	movq	%rcx, %r14
	movl	0(,%rbx,4), %ecx
	movq	-88(%rbp), %rbx
	shrq	$2, %rdx
	movd	0(,%rbx,4), %xmm0
	movq	-104(%rbp), %rbx
	movd	%ecx, %xmm6
	movl	0(,%rbx,4), %ecx
	punpckldq	%xmm6, %xmm0
	movq	%xmm0, 0(,%rdx,4)
	movl	%ecx, 8(,%rdx,4)
	jmp	.L22
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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>
#include <stdlib.h>
int MAX(int a,int b){
    return a>b?a:b;
}
int main() {
    int n;
    scanf("%d",&n);
    int a[n],b[n],c[n];
    for(int i=0;i<n;i++){
        scanf("%d%d%d",&a[i],&b[i],&c[i]);
    }
    int dp[n+2][3];
    dp[0][0]=a[0];
    dp[0][1]=b[0];
    dp[0][2]=c[0];
    for(int i=1;i<n;i++){
        dp[i][0]=MAX(dp[i-1][1]+a[i],dp[i-1][2]+a[i]);
        dp[i][1]=MAX(dp[i-1][0]+b[i],dp[i-1][2]+b[i]);
        dp[i][2]=MAX(dp[i-1][0]+c[i],dp[i-1][1]+c[i]);
    }
    printf("%d",MAX(dp[n-1][0],MAX(dp[n-1][1],dp[n-1][2])));
        return 0;
}

3
1 40 70
20 50 80
30 60 90
 1
100 16 1
 7
6 7 8
8 8 3
2 5 2
7 8 6
4 6 8
2 3 4
7 7 1
 1
000 16 1
 7
6 7 14
8 8 3
2 5 2
7 8 6
4 6 8
2 3 4
7 7 1
 3
1 40 34
20 50 80
30 35 90
 3
1 76 34
20 50 80
30 35 90
 1
000 25 2
 7
5 7 14
7 8 3
2 5 2
7 8 6
4 6 8
2 3 4
7 7 1
 3
0 94 34
20 50 80
30 35 90

210 100 46 16 52 174 191 25 51 209
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>
#include <stdlib.h>
int MAX(int a,int b){
    return a>b?a:b;
}
int main() {
    int n;
    scanf("%d",&n);
    int a[n],b[n],c[n];
    for(int i=0;i<n;i++){
        scanf("%d%d%d",&a[i],&b[i],&c[i]);
    }
    int dp[n+2][3];
    dp[0][0]=a[0];
    dp[0][1]=b[0];
    dp[0][2]=c[0];
    for(int i=1;i<n;i++){
        dp[i][0]=MAX(dp[i-1][1]+a[i],dp[i-1][2]+a[i]);
        dp[i][1]=MAX(dp[i-1][0]+b[i],dp[i-1][2]+b[i]);
        dp[i][2]=MAX(dp[i-1][0]+c[i],dp[i-1][1]+c[i]);
    }
    printf("%d",MAX(dp[n-1][0],MAX(dp[n-1][1],dp[n-1][2])));
        return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	MAX, .-MAX
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L4:
	cmpq	%rcx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L6
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	-132(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L13
.L14:
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-96(%rbp), %rax
	addq	%rax, %rdx
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-112(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -128(%rbp)
.L13:
	movl	-132(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jl	.L14
	movl	-132(%rbp), %eax
	leal	2(%rax), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$96, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$96, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$96, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$96, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L15:
	cmpq	%rdx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L17
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movl	%edx, (%rax)
	movq	-96(%rbp), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-80(%rbp), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movl	%edx, 8(%rax)
	movl	$1, -124(%rbp)
	jmp	.L18
.L19:
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movl	(%rax), %ecx
	movq	-112(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$4, %rax
	movl	(%rax), %esi
	movq	-112(%rbp), %rax
	movl	-124(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%esi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %edx
	movq	-64(%rbp), %rsi
	movl	-124(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%edx, (%rax)
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movl	(%rax), %ecx
	movq	-96(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	(%rax), %esi
	movq	-96(%rbp), %rax
	movl	-124(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%esi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %edx
	movq	-64(%rbp), %rsi
	movl	-124(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$4, %rax
	movl	%edx, (%rax)
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$4, %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rax
	movl	-124(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%esi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %edx
	movq	-64(%rbp), %rsi
	movl	-124(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movl	%edx, (%rax)
	addl	$1, -124(%rbp)
.L18:
	movl	-132(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jl	.L19
	movl	-132(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movl	(%rax), %edx
	movl	-132(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	(%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	MAX
	.type	MAX, @function
MAX:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	MAX, .-MAX
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L4:
	cmpq	%rcx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L6
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	-132(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L13
.L14:
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-96(%rbp), %rax
	addq	%rax, %rdx
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-112(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -128(%rbp)
.L13:
	movl	-132(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jl	.L14
	movl	-132(%rbp), %eax
	leal	2(%rax), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$96, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$96, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$96, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$96, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L15:
	cmpq	%rdx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L17
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movl	%edx, (%rax)
	movq	-96(%rbp), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-80(%rbp), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax
	movl	%edx, 8(%rax)
	movl	$1, -124(%rbp)
	jmp	.L18
.L19:
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movl	(%rax), %ecx
	movq	-112(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$4, %rax
	movl	(%rax), %esi
	movq	-112(%rbp), %rax
	movl	-124(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%esi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %edx
	movq	-64(%rbp), %rsi
	movl	-124(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	%edx, (%rax)
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movl	(%rax), %ecx
	movq	-96(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	(%rax), %esi
	movq	-96(%rbp), %rax
	movl	-124(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%esi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %edx
	movq	-64(%rbp), %rsi
	movl	-124(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$4, %rax
	movl	%edx, (%rax)
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$4, %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-124(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rax
	movl	-124(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%esi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %edx
	movq	-64(%rbp), %rsi
	movl	-124(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movl	%edx, (%rax)
	addl	$1, -124(%rbp)
.L18:
	movl	-132(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jl	.L19
	movl	-132(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movl	(%rax), %edx
	movl	-132(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	(%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	MAX
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
