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

Assembly Code:

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

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

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

Assembly Code:

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

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