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 rep(i,l,r) for(int i=l;i<r;i++)
typedef long long ll;

ll max(ll x, ll y) { return (x > y) ? x : y; }

int main() {
    ll n, m, k,sumA[200001], sumB[200001];
    scanf("%lld%lld%lld", &n, &m, &k);
    ll a, b;
    sumA[0] = sumB[0] = 0;
    rep(i, 0, n) {
        scanf("%lld", &a);
        sumA[i + 1] = sumA[i] + a;
    }
    rep(i, 0, m) {
        scanf("%lld", &b);
        sumB[i + 1] = sumB[i] + b;
    }
    ll ans = 0,j=m;
    rep(i,0,n + 1) {
        if (k<sumA[i]) {
            break;
        }
        while (sumA[i]+sumB[j]>k) {
            j--;
        }
        ans = max(ans, i + j);
    }
    printf("%lld\n", ans);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1136, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3200072(%rbp), %rcx
	leaq	-3200080(%rbp), %rdx
	leaq	-3200088(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -1600016(%rbp)
	movq	-1600016(%rbp), %rax
	movq	%rax, -3200032(%rbp)
	movl	$0, -3200100(%rbp)
	jmp	.L4
.L5:
	leaq	-3200064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200100(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rcx
	movq	-3200064(%rbp), %rdx
	movl	-3200100(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -3200032(%rbp,%rax,8)
	addl	$1, -3200100(%rbp)
.L4:
	movl	-3200100(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200088(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movl	$0, -3200096(%rbp)
	jmp	.L6
.L7:
	leaq	-3200056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200096(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movq	-3200056(%rbp), %rdx
	movl	-3200096(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -1600016(%rbp,%rax,8)
	addl	$1, -3200096(%rbp)
.L6:
	movl	-3200096(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200080(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L7
	movq	$0, -3200048(%rbp)
	movq	-3200080(%rbp), %rax
	movq	%rax, -3200040(%rbp)
	movl	$0, -3200092(%rbp)
	jmp	.L8
.L13:
	movl	-3200092(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movq	-3200072(%rbp), %rax
	cmpq	%rax, %rdx
	jg	.L16
	jmp	.L11
.L12:
	subq	$1, -3200040(%rbp)
.L11:
	movl	-3200092(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movq	-3200040(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movq	-3200072(%rbp), %rax
	cmpq	%rax, %rdx
	jg	.L12
	movl	-3200092(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200040(%rbp), %rax
	addq	%rax, %rdx
	movq	-3200048(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, -3200048(%rbp)
	addl	$1, -3200092(%rbp)
.L8:
	movl	-3200092(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200088(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L13
	jmp	.L10
.L16:
	nop
.L10:
	movq	-3200048(%rbp), %rax
	movq	%rax, %rsi
	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	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovge	%rsi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1112, %rsp
	.cfi_def_cfa_offset 3200128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200072(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, 8(%rsp)
	movq	$0, 1600064(%rsp)
	movq	$0, 48(%rsp)
	jle	.L4
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r13
	leaq	48(%rsp), %rbp
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rax
	addq	0(%rbp,%rbx,8), %rax
	movq	%rax, 8(%rbp,%rbx,8)
	addq	$1, %rbx
	cmpq	%rbx, 8(%rsp)
	jg	.L5
.L4:
	movq	16(%rsp), %rax
	testq	%rax, %rax
	jle	.L6
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	leaq	40(%rsp), %r13
	leaq	1600064(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rax
	addq	(%rbx,%rbp,8), %rax
	movq	%rax, 8(%rbx,%rbp,8)
	movq	16(%rsp), %rax
	addq	$1, %rbp
	cmpq	%rbp, %rax
	jg	.L7
.L6:
	movq	8(%rsp), %r9
	testq	%r9, %r9
	js	.L13
	movq	24(%rsp), %rsi
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	leaq	48(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	0(%rbp,%rdi,8), %rcx
	cmpq	%rsi, %rcx
	jg	.L8
	movq	1600064(%rsp,%rax,8), %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rsi
	jge	.L9
	leaq	1600064(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	subq	$1, %rax
	movq	(%rbx,%rax,8), %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rsi
	jl	.L10
.L9:
	leaq	(%rdi,%rax), %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$1, %rdi
	cmpq	%rdi, %r9
	jge	.L11
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	3200072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$3200088, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovge	%rsi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1112, %rsp
	.cfi_def_cfa_offset 3200128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200072(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, 8(%rsp)
	movq	$0, 1600064(%rsp)
	movq	$0, 48(%rsp)
	jle	.L4
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r13
	leaq	48(%rsp), %rbp
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rax
	addq	0(%rbp,%rbx,8), %rax
	movq	%rax, 8(%rbp,%rbx,8)
	addq	$1, %rbx
	cmpq	%rbx, 8(%rsp)
	jg	.L5
.L4:
	movq	16(%rsp), %rax
	testq	%rax, %rax
	jle	.L6
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	leaq	40(%rsp), %r13
	leaq	1600064(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rax
	addq	(%rbx,%rbp,8), %rax
	movq	%rax, 8(%rbx,%rbp,8)
	movq	16(%rsp), %rax
	addq	$1, %rbp
	cmpq	%rbp, %rax
	jg	.L7
.L6:
	movq	8(%rsp), %r9
	testq	%r9, %r9
	js	.L13
	movq	24(%rsp), %rsi
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	leaq	48(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	0(%rbp,%rdi,8), %rcx
	cmpq	%rsi, %rcx
	jg	.L8
	movq	1600064(%rsp,%rax,8), %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rsi
	jge	.L9
	leaq	1600064(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	subq	$1, %rax
	movq	(%rbx,%rax,8), %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rsi
	jl	.L10
.L9:
	leaq	(%rdi,%rax), %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$1, %rdi
	cmpq	%rdi, %r9
	jge	.L11
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	3200072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$3200088, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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 rep(i,l,r) for(int i=l;i<r;i++)
typedef long long ll;

ll max(ll x, ll y) { return (x > y) ? x : y; }

int main() {
    ll n, m, k,sumA[200001], sumB[200001];
    scanf("%lld%lld%lld", &n, &m, &k);
    ll a, b;
    sumA[0] = sumB[0] = 0;
    rep(i, 0, n) {
        scanf("%lld", &a);
        sumA[i + 1] = sumA[i] + a;
    }
    rep(i, 0, m) {
        scanf("%lld", &b);
        sumB[i + 1] = sumB[i] + b;
    }
    ll ans = 0,j=m;
    rep(i,0,n + 1) {
        if (k<sumA[i]) {
            break;
        }
        while (sumA[i]+sumB[j]>k) {
            j--;
        }
        ans = max(ans, i + j);
    }
    printf("%lld\n", ans);
    return 0;
}

5 4 1
1000000000 1000000000 1000000000 1000000000 1000000000
1000000000 1000000000 1000000010 1000000000
 3 4 194
60 90 120
80 150 80 150
 3 4 730
60 9 120
80 150 80 150
 3 4 194
60 90 120
80 34 80 150
 3 4 376
60 9 120
80 150 80 150
 3 4 449
60 9 120
80 150 80 150
 3 3 100
96 16 120
30 94 80 150
 3 4 730
60 90 120
85 150 80 150
 3 4 194
60 90 120
80 35 80 150
 3 4 100
60 9 120
80 150 80 150

0
 2
 7
 3
 4
 5
 1
 6
 3
 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>
#define rep(i,l,r) for(int i=l;i<r;i++)
typedef long long ll;

ll max(ll x, ll y) { return (x > y) ? x : y; }

int main() {
    ll n, m, k,sumA[200001], sumB[200001];
    scanf("%lld%lld%lld", &n, &m, &k);
    ll a, b;
    sumA[0] = sumB[0] = 0;
    rep(i, 0, n) {
        scanf("%lld", &a);
        sumA[i + 1] = sumA[i] + a;
    }
    rep(i, 0, m) {
        scanf("%lld", &b);
        sumB[i + 1] = sumB[i] + b;
    }
    ll ans = 0,j=m;
    rep(i,0,n + 1) {
        if (k<sumA[i]) {
            break;
        }
        while (sumA[i]+sumB[j]>k) {
            j--;
        }
        ans = max(ans, i + j);
    }
    printf("%lld\n", ans);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1136, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3200072(%rbp), %rcx
	leaq	-3200080(%rbp), %rdx
	leaq	-3200088(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -1600016(%rbp)
	movq	-1600016(%rbp), %rax
	movq	%rax, -3200032(%rbp)
	movl	$0, -3200100(%rbp)
	jmp	.L4
.L5:
	leaq	-3200064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200100(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rcx
	movq	-3200064(%rbp), %rdx
	movl	-3200100(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -3200032(%rbp,%rax,8)
	addl	$1, -3200100(%rbp)
.L4:
	movl	-3200100(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200088(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movl	$0, -3200096(%rbp)
	jmp	.L6
.L7:
	leaq	-3200056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200096(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movq	-3200056(%rbp), %rdx
	movl	-3200096(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -1600016(%rbp,%rax,8)
	addl	$1, -3200096(%rbp)
.L6:
	movl	-3200096(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200080(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L7
	movq	$0, -3200048(%rbp)
	movq	-3200080(%rbp), %rax
	movq	%rax, -3200040(%rbp)
	movl	$0, -3200092(%rbp)
	jmp	.L8
.L13:
	movl	-3200092(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movq	-3200072(%rbp), %rax
	cmpq	%rax, %rdx
	jg	.L16
	jmp	.L11
.L12:
	subq	$1, -3200040(%rbp)
.L11:
	movl	-3200092(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movq	-3200040(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movq	-3200072(%rbp), %rax
	cmpq	%rax, %rdx
	jg	.L12
	movl	-3200092(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200040(%rbp), %rax
	addq	%rax, %rdx
	movq	-3200048(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, -3200048(%rbp)
	addl	$1, -3200092(%rbp)
.L8:
	movl	-3200092(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200088(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L13
	jmp	.L10
.L16:
	nop
.L10:
	movq	-3200048(%rbp), %rax
	movq	%rax, %rsi
	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	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1136, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3200072(%rbp), %rcx
	leaq	-3200080(%rbp), %rdx
	leaq	-3200088(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -1600016(%rbp)
	movq	-1600016(%rbp), %rax
	movq	%rax, -3200032(%rbp)
	movl	$0, -3200100(%rbp)
	jmp	.L4
.L5:
	leaq	-3200064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200100(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rcx
	movq	-3200064(%rbp), %rdx
	movl	-3200100(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -3200032(%rbp,%rax,8)
	addl	$1, -3200100(%rbp)
.L4:
	movl	-3200100(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200088(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movl	$0, -3200096(%rbp)
	jmp	.L6
.L7:
	leaq	-3200056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200096(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movq	-3200056(%rbp), %rdx
	movl	-3200096(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -1600016(%rbp,%rax,8)
	addl	$1, -3200096(%rbp)
.L6:
	movl	-3200096(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200080(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L7
	movq	$0, -3200048(%rbp)
	movq	-3200080(%rbp), %rax
	movq	%rax, -3200040(%rbp)
	movl	$0, -3200092(%rbp)
	jmp	.L8
.L13:
	movl	-3200092(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movq	-3200072(%rbp), %rax
	cmpq	%rax, %rdx
	jg	.L16
	jmp	.L11
.L12:
	subq	$1, -3200040(%rbp)
.L11:
	movl	-3200092(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movq	-3200040(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movq	-3200072(%rbp), %rax
	cmpq	%rax, %rdx
	jg	.L12
	movl	-3200092(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200040(%rbp), %rax
	addq	%rax, %rdx
	movq	-3200048(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, -3200048(%rbp)
	addl	$1, -3200092(%rbp)
.L8:
	movl	-3200092(%rbp), %eax
	movslq	%eax, %rdx
	movq	-3200088(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L13
	jmp	.L10
.L16:
	nop
.L10:
	movq	-3200048(%rbp), %rax
	movq	%rax, %rsi
	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	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
