Given the following C code and 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;
}
```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}
```
Given the following C 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;
}
```

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.
Optimized Assembly Code:

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 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;
}
```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```