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 200000

typedef unsigned long long ULL;
int main(){
    ULL a_sum[MAX+1],b_sum[MAX+1];
    int a,b;
    int read_time;
    int *readed;
    int N,M,K;
    ULL time = 0;
    int max;
    int i,j;


    scanf("%d%d%d",&N,&M,&K);

    a_sum[0] = b_sum[0] = 0;
    for(i=0;i<N;i++){
        scanf("%d",&a);
        a_sum[i+1] = a_sum[i] + a;
    }
    for(i=0;i<M;i++){
        scanf("%d",&b);
        b_sum[i+1] = b_sum[i] + b;
    }

    max = 0;
    for(i=0;i<=N;i++){
        if( a_sum[i] > K){
            break;
        }
        for(j = max - i ;j<=M; j++){
            time = a_sum[i] + b_sum[j];
            if(time > K){
                break;
            }
            if( time <= K){
                if( max < i + j){
                    max = i + j;
                }
            }
        }
    }
    printf("%d\n",max);
    
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.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
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1104, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -3200040(%rbp)
	leaq	-3200056(%rbp), %rcx
	leaq	-3200060(%rbp), %rdx
	leaq	-3200064(%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, -3200048(%rbp)
	jmp	.L2
.L3:
	leaq	-3200072(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rcx
	movl	-3200072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-3200048(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -3200032(%rbp,%rax,8)
	addl	$1, -3200048(%rbp)
.L2:
	movl	-3200064(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jl	.L3
	movl	$0, -3200048(%rbp)
	jmp	.L4
.L5:
	leaq	-3200068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200068(%rbp), %eax
	movslq	%eax, %rdx
	movl	-3200048(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -1600016(%rbp,%rax,8)
	addl	$1, -3200048(%rbp)
.L4:
	movl	-3200060(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jl	.L5
	movl	$0, -3200052(%rbp)
	movl	$0, -3200048(%rbp)
	jmp	.L6
.L14:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	ja	.L17
	movl	-3200052(%rbp), %eax
	subl	-3200048(%rbp), %eax
	movl	%eax, -3200044(%rbp)
	jmp	.L9
.L13:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	addq	%rdx, %rax
	movq	%rax, -3200040(%rbp)
	movl	-3200056(%rbp), %eax
	cltq
	cmpq	%rax, -3200040(%rbp)
	ja	.L18
	movl	-3200056(%rbp), %eax
	cltq
	cmpq	%rax, -3200040(%rbp)
	ja	.L12
	movl	-3200048(%rbp), %edx
	movl	-3200044(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -3200052(%rbp)
	jge	.L12
	movl	-3200048(%rbp), %edx
	movl	-3200044(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -3200052(%rbp)
.L12:
	addl	$1, -3200044(%rbp)
.L9:
	movl	-3200060(%rbp), %eax
	cmpl	%eax, -3200044(%rbp)
	jle	.L13
	jmp	.L11
.L18:
	nop
.L11:
	addl	$1, -3200048(%rbp)
.L6:
	movl	-3200064(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jle	.L14
	jmp	.L8
.L17:
	nop
.L8:
	movl	-3200052(%rbp), %eax
	movl	%eax, %esi
	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	.L16
	call	__stack_chk_fail@PLT
.L16:
	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%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$1096, %rsp
	.cfi_def_cfa_offset 3200112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200056(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	movq	$0, 1600048(%rsp)
	movq	$0, 32(%rsp)
	testl	%eax, %eax
	jle	.L6
	leaq	40(%rsp), %rbx
	xorl	%r12d, %r12d
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addq	-8(%rbx), %rax
	addq	$8, %rbx
	movq	%rax, -8(%rbx)
	cmpl	20(%rsp), %r12d
	jl	.L5
.L6:
	movl	24(%rsp), %edi
	testl	%edi, %edi
	jle	.L4
	leaq	1600056(%rsp), %rbx
	xorl	%r13d, %r13d
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edi
	movslq	16(%rsp), %rax
	addq	$8, %rbx
	addq	-16(%rbx), %rax
	movq	%rax, -8(%rbx)
	cmpl	%edi, %r13d
	jl	.L7
.L4:
	movl	20(%rsp), %ebx
	xorl	%edx, %edx
	testl	%ebx, %ebx
	js	.L9
	movslq	28(%rsp), %r9
	leaq	40(%rsp), %r11
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%edx, %eax
	subl	%esi, %eax
	cmpl	%edi, %eax
	jg	.L10
	cltq
	leaq	1600048(%rsp), %r10
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L21:
	leal	(%rsi,%rax), %ecx
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	addq	$1, %rax
	cmpl	%eax, %edi
	jl	.L10
.L11:
	movq	(%r10,%rax,8), %rcx
	addq	%r8, %rcx
	cmpq	%rcx, %r9
	jnb	.L21
.L10:
	addl	$1, %esi
	cmpl	%esi, %ebx
	jl	.L9
	movq	(%r11), %r8
	addq	$8, %r11
	cmpq	%r9, %r8
	jbe	.L13
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	3200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$3200072, %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
.L22:
	.cfi_restore_state
	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%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$1096, %rsp
	.cfi_def_cfa_offset 3200112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200056(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	movq	$0, 1600048(%rsp)
	movq	$0, 32(%rsp)
	testl	%eax, %eax
	jle	.L6
	leaq	40(%rsp), %rbx
	xorl	%r12d, %r12d
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addq	-8(%rbx), %rax
	addq	$8, %rbx
	movq	%rax, -8(%rbx)
	cmpl	20(%rsp), %r12d
	jl	.L5
.L6:
	movl	24(%rsp), %edi
	testl	%edi, %edi
	jle	.L4
	leaq	1600056(%rsp), %rbx
	xorl	%r13d, %r13d
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edi
	movslq	16(%rsp), %rax
	addq	$8, %rbx
	addq	-16(%rbx), %rax
	movq	%rax, -8(%rbx)
	cmpl	%edi, %r13d
	jl	.L7
.L4:
	movl	20(%rsp), %ebx
	xorl	%edx, %edx
	testl	%ebx, %ebx
	js	.L9
	movslq	28(%rsp), %r9
	leaq	40(%rsp), %r11
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%edx, %eax
	subl	%esi, %eax
	cmpl	%edi, %eax
	jg	.L10
	cltq
	leaq	1600048(%rsp), %r10
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L21:
	leal	(%rsi,%rax), %ecx
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	addq	$1, %rax
	cmpl	%eax, %edi
	jl	.L10
.L11:
	movq	(%r10,%rax,8), %rcx
	addq	%r8, %rcx
	cmpq	%rcx, %r9
	jnb	.L21
.L10:
	addl	$1, %esi
	cmpl	%esi, %ebx
	jl	.L9
	movq	(%r11), %r8
	addq	$8, %r11
	cmpq	%r9, %r8
	jbe	.L13
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	3200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$3200072, %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
.L22:
	.cfi_restore_state
	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 200000

typedef unsigned long long ULL;
int main(){
    ULL a_sum[MAX+1],b_sum[MAX+1];
    int a,b;
    int read_time;
    int *readed;
    int N,M,K;
    ULL time = 0;
    int max;
    int i,j;


    scanf("%d%d%d",&N,&M,&K);

    a_sum[0] = b_sum[0] = 0;
    for(i=0;i<N;i++){
        scanf("%d",&a);
        a_sum[i+1] = a_sum[i] + a;
    }
    for(i=0;i<M;i++){
        scanf("%d",&b);
        b_sum[i+1] = b_sum[i] + b;
    }

    max = 0;
    for(i=0;i<=N;i++){
        if( a_sum[i] > K){
            break;
        }
        for(j = max - i ;j<=M; j++){
            time = a_sum[i] + b_sum[j];
            if(time > K){
                break;
            }
            if( time <= K){
                if( max < i + j){
                    max = i + j;
                }
            }
        }
    }
    printf("%d\n",max);
    
}
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 MAX 200000

typedef unsigned long long ULL;
int main(){
    ULL a_sum[MAX+1],b_sum[MAX+1];
    int a,b;
    int read_time;
    int *readed;
    int N,M,K;
    ULL time = 0;
    int max;
    int i,j;


    scanf("%d%d%d",&N,&M,&K);

    a_sum[0] = b_sum[0] = 0;
    for(i=0;i<N;i++){
        scanf("%d",&a);
        a_sum[i+1] = a_sum[i] + a;
    }
    for(i=0;i<M;i++){
        scanf("%d",&b);
        b_sum[i+1] = b_sum[i] + b;
    }

    max = 0;
    for(i=0;i<=N;i++){
        if( a_sum[i] > K){
            break;
        }
        for(j = max - i ;j<=M; j++){
            time = a_sum[i] + b_sum[j];
            if(time > K){
                break;
            }
            if( time <= K){
                if( max < i + j){
                    max = i + j;
                }
            }
        }
    }
    printf("%d\n",max);
    
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.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
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1104, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -3200040(%rbp)
	leaq	-3200056(%rbp), %rcx
	leaq	-3200060(%rbp), %rdx
	leaq	-3200064(%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, -3200048(%rbp)
	jmp	.L2
.L3:
	leaq	-3200072(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rcx
	movl	-3200072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-3200048(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -3200032(%rbp,%rax,8)
	addl	$1, -3200048(%rbp)
.L2:
	movl	-3200064(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jl	.L3
	movl	$0, -3200048(%rbp)
	jmp	.L4
.L5:
	leaq	-3200068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200068(%rbp), %eax
	movslq	%eax, %rdx
	movl	-3200048(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -1600016(%rbp,%rax,8)
	addl	$1, -3200048(%rbp)
.L4:
	movl	-3200060(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jl	.L5
	movl	$0, -3200052(%rbp)
	movl	$0, -3200048(%rbp)
	jmp	.L6
.L14:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	ja	.L17
	movl	-3200052(%rbp), %eax
	subl	-3200048(%rbp), %eax
	movl	%eax, -3200044(%rbp)
	jmp	.L9
.L13:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	addq	%rdx, %rax
	movq	%rax, -3200040(%rbp)
	movl	-3200056(%rbp), %eax
	cltq
	cmpq	%rax, -3200040(%rbp)
	ja	.L18
	movl	-3200056(%rbp), %eax
	cltq
	cmpq	%rax, -3200040(%rbp)
	ja	.L12
	movl	-3200048(%rbp), %edx
	movl	-3200044(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -3200052(%rbp)
	jge	.L12
	movl	-3200048(%rbp), %edx
	movl	-3200044(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -3200052(%rbp)
.L12:
	addl	$1, -3200044(%rbp)
.L9:
	movl	-3200060(%rbp), %eax
	cmpl	%eax, -3200044(%rbp)
	jle	.L13
	jmp	.L11
.L18:
	nop
.L11:
	addl	$1, -3200048(%rbp)
.L6:
	movl	-3200064(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jle	.L14
	jmp	.L8
.L17:
	nop
.L8:
	movl	-3200052(%rbp), %eax
	movl	%eax, %esi
	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	.L16
	call	__stack_chk_fail@PLT
.L16:
	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%d%d"
.LC1:
	.string	"%d"
.LC2:
	.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
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1104, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -3200040(%rbp)
	leaq	-3200056(%rbp), %rcx
	leaq	-3200060(%rbp), %rdx
	leaq	-3200064(%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, -3200048(%rbp)
	jmp	.L2
.L3:
	leaq	-3200072(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rcx
	movl	-3200072(%rbp), %eax
	movslq	%eax, %rdx
	movl	-3200048(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -3200032(%rbp,%rax,8)
	addl	$1, -3200048(%rbp)
.L2:
	movl	-3200064(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jl	.L3
	movl	$0, -3200048(%rbp)
	jmp	.L4
.L5:
	leaq	-3200068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3200048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rcx
	movl	-3200068(%rbp), %eax
	movslq	%eax, %rdx
	movl	-3200048(%rbp), %eax
	addl	$1, %eax
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -1600016(%rbp,%rax,8)
	addl	$1, -3200048(%rbp)
.L4:
	movl	-3200060(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jl	.L5
	movl	$0, -3200052(%rbp)
	movl	$0, -3200048(%rbp)
	jmp	.L6
.L14:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movl	-3200056(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	ja	.L17
	movl	-3200052(%rbp), %eax
	subl	-3200048(%rbp), %eax
	movl	%eax, -3200044(%rbp)
	jmp	.L9
.L13:
	movl	-3200048(%rbp), %eax
	cltq
	movq	-3200032(%rbp,%rax,8), %rdx
	movl	-3200044(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	addq	%rdx, %rax
	movq	%rax, -3200040(%rbp)
	movl	-3200056(%rbp), %eax
	cltq
	cmpq	%rax, -3200040(%rbp)
	ja	.L18
	movl	-3200056(%rbp), %eax
	cltq
	cmpq	%rax, -3200040(%rbp)
	ja	.L12
	movl	-3200048(%rbp), %edx
	movl	-3200044(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -3200052(%rbp)
	jge	.L12
	movl	-3200048(%rbp), %edx
	movl	-3200044(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -3200052(%rbp)
.L12:
	addl	$1, -3200044(%rbp)
.L9:
	movl	-3200060(%rbp), %eax
	cmpl	%eax, -3200044(%rbp)
	jle	.L13
	jmp	.L11
.L18:
	nop
.L11:
	addl	$1, -3200048(%rbp)
.L6:
	movl	-3200064(%rbp), %eax
	cmpl	%eax, -3200048(%rbp)
	jle	.L14
	jmp	.L8
.L17:
	nop
.L8:
	movl	-3200052(%rbp), %eax
	movl	%eax, %esi
	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	.L16
	call	__stack_chk_fail@PLT
.L16:
	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:
