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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b)	(((a) > (b)) ? (a) : (b))		/* ２個の値の最大値 */
#define min(a, b)	(((a) < (b)) ? (a) : (b))		/* ２個の値の最小値 */
#define ENTER		printf("\n")					/* 改行プリント */
/********************************************************************************************************************************/
/* main *************************************************************************************************************************/
/********************************************************************************************************************************/
int DEBUG = 1;										/* デバッグプリント 提出時は0 */
int main()
{
	int		i,j,n,m,x[2020]={0},ans = 0;
	int		k[101] = {0};
	
	scanf("%d", &n);
	for(i=1;i<=n;i++) {
		scanf("%d", &j);
		x[j] = 1;
		k[i] = j;
	}
	scanf("%d", &m);
	for(j=0;j<m;j++) {
		scanf("%d", &i);
		if ((k[i] != 2019)&&(x[k[i]+1]==0)) {
			x[k[i]] = 0;
			x[k[i]+1] = 1;
			k[i]++;
		}
	}
	for(i=1;i<=n;i++) {
		printf("%d\n",k[i]);
	}

	return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8232
	orq	$0, (%rsp)
	subq	$344, %rsp
	.cfi_def_cfa_offset 8576
	movl	$1010, %ecx
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 8520(%rsp)
	xorl	%eax, %eax
	leaq	432(%rsp), %rbp
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	rep stosq
	leaq	16(%rsp), %rdi
	movl	$50, %ecx
	rep stosq
	movl	$0, (%rdi)
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r8d
	movl	$1, (%rsp)
	testl	%r8d, %r8d
	jle	.L2
	leaq	4(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	movslq	(%rsp), %rcx
	movl	$1, 432(%rsp,%rax,4)
	movq	%rax, %rdx
	movq	%rcx, %rax
	addl	$1, %eax
	movl	%edx, 16(%rsp,%rcx,4)
	movl	%eax, (%rsp)
	cmpl	8(%rsp), %eax
	jle	.L3
.L2:
	movq	%rbx, %rdi
	leaq	12(%rsp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	movl	$0, 4(%rsp)
	testl	%edi, %edi
	jle	.L4
	movq	.LC1(%rip), %r13
	movq	%rsp, %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rdx
	movslq	16(%rsp,%rdx,4), %rax
	cmpl	$2019, %eax
	je	.L5
	leal	1(%rax), %ecx
	movslq	%ecx, %rsi
	movl	432(%rsp,%rsi,4), %esi
	testl	%esi, %esi
	jne	.L5
	movq	%r13, 0(%rbp,%rax,4)
	movl	%ecx, 16(%rsp,%rdx,4)
.L5:
	movl	4(%rsp), %eax
	addl	$1, %eax
	movl	%eax, 4(%rsp)
	cmpl	12(%rsp), %eax
	jl	.L6
.L4:
	movl	8(%rsp), %eax
	movl	$1, (%rsp)
	testl	%eax, %eax
	jle	.L7
	movl	$1, %eax
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	cltq
	movq	%rbx, %rsi
	movl	$1, %edi
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	addl	$1, %eax
	movl	%eax, (%rsp)
	cmpl	8(%rsp), %eax
	jle	.L8
.L7:
	movq	8520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$8536, %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
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	DEBUG
	.data
	.align 4
	.type	DEBUG, @object
	.size	DEBUG, 4
DEBUG:
	.long	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1
	.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"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8232
	orq	$0, (%rsp)
	subq	$344, %rsp
	.cfi_def_cfa_offset 8576
	movl	$1010, %ecx
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 8520(%rsp)
	xorl	%eax, %eax
	leaq	432(%rsp), %rbp
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	rep stosq
	leaq	16(%rsp), %rdi
	movl	$50, %ecx
	rep stosq
	movl	$0, (%rdi)
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r8d
	movl	$1, (%rsp)
	testl	%r8d, %r8d
	jle	.L2
	leaq	4(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	movslq	(%rsp), %rcx
	movl	$1, 432(%rsp,%rax,4)
	movq	%rax, %rdx
	movq	%rcx, %rax
	addl	$1, %eax
	movl	%edx, 16(%rsp,%rcx,4)
	movl	%eax, (%rsp)
	cmpl	8(%rsp), %eax
	jle	.L3
.L2:
	movq	%rbx, %rdi
	leaq	12(%rsp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	movl	$0, 4(%rsp)
	testl	%edi, %edi
	jle	.L4
	movq	.LC1(%rip), %r13
	movq	%rsp, %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rdx
	movslq	16(%rsp,%rdx,4), %rax
	cmpl	$2019, %eax
	je	.L5
	leal	1(%rax), %ecx
	movslq	%ecx, %rsi
	movl	432(%rsp,%rsi,4), %esi
	testl	%esi, %esi
	jne	.L5
	movq	%r13, 0(%rbp,%rax,4)
	movl	%ecx, 16(%rsp,%rdx,4)
.L5:
	movl	4(%rsp), %eax
	addl	$1, %eax
	movl	%eax, 4(%rsp)
	cmpl	12(%rsp), %eax
	jl	.L6
.L4:
	movl	8(%rsp), %eax
	movl	$1, (%rsp)
	testl	%eax, %eax
	jle	.L7
	movl	$1, %eax
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	cltq
	movq	%rbx, %rsi
	movl	$1, %edi
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	addl	$1, %eax
	movl	%eax, (%rsp)
	cmpl	8(%rsp), %eax
	jle	.L8
.L7:
	movq	8520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$8536, %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
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	DEBUG
	.data
	.align 4
	.type	DEBUG, @object
	.size	DEBUG, 4
DEBUG:
	.long	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1
	.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"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8232
	orq	$0, (%rsp)
	subq	$344, %rsp
	.cfi_def_cfa_offset 8576
	movl	$1010, %ecx
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 8520(%rsp)
	xorl	%eax, %eax
	leaq	432(%rsp), %rbp
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	rep stosq
	leaq	16(%rsp), %rdi
	movl	$50, %ecx
	rep stosq
	movl	$0, (%rdi)
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r8d
	movl	$1, (%rsp)
	testl	%r8d, %r8d
	jle	.L2
	leaq	4(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	movslq	(%rsp), %rcx
	movl	$1, 432(%rsp,%rax,4)
	movq	%rax, %rdx
	movq	%rcx, %rax
	addl	$1, %eax
	movl	%edx, 16(%rsp,%rcx,4)
	movl	%eax, (%rsp)
	cmpl	8(%rsp), %eax
	jle	.L3
.L2:
	movq	%rbx, %rdi
	leaq	12(%rsp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	movl	$0, 4(%rsp)
	testl	%edi, %edi
	jle	.L4
	movq	.LC1(%rip), %r13
	movq	%rsp, %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rdx
	movslq	16(%rsp,%rdx,4), %rax
	cmpl	$2019, %eax
	je	.L5
	leal	1(%rax), %ecx
	movslq	%ecx, %rsi
	movl	432(%rsp,%rsi,4), %esi
	testl	%esi, %esi
	jne	.L5
	movq	%r13, 0(%rbp,%rax,4)
	movl	%ecx, 16(%rsp,%rdx,4)
.L5:
	movl	4(%rsp), %eax
	addl	$1, %eax
	movl	%eax, 4(%rsp)
	cmpl	12(%rsp), %eax
	jl	.L6
.L4:
	movl	8(%rsp), %eax
	movl	$1, (%rsp)
	testl	%eax, %eax
	jle	.L7
	movl	$1, %eax
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	cltq
	movq	%rbx, %rsi
	movl	$1, %edi
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	addl	$1, %eax
	movl	%eax, (%rsp)
	cmpl	8(%rsp), %eax
	jle	.L8
.L7:
	movq	8520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$8536, %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
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	DEBUG
	.data
	.align 4
	.type	DEBUG, @object
	.size	DEBUG, 4
DEBUG:
	.long	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1
	.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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b)	(((a) > (b)) ? (a) : (b))		/* ２個の値の最大値 */
#define min(a, b)	(((a) < (b)) ? (a) : (b))		/* ２個の値の最小値 */
#define ENTER		printf("\n")					/* 改行プリント */
/********************************************************************************************************************************/
/* main *************************************************************************************************************************/
/********************************************************************************************************************************/
int DEBUG = 1;										/* デバッグプリント 提出時は0 */
int main()
{
	int		i,j,n,m,x[2020]={0},ans = 0;
	int		k[101] = {0};
	
	scanf("%d", &n);
	for(i=1;i<=n;i++) {
		scanf("%d", &j);
		x[j] = 1;
		k[i] = j;
	}
	scanf("%d", &m);
	for(j=0;j<m;j++) {
		scanf("%d", &i);
		if ((k[i] != 2019)&&(x[k[i]+1]==0)) {
			x[k[i]] = 0;
			x[k[i]+1] = 1;
			k[i]++;
		}
	}
	for(i=1;i<=n;i++) {
		printf("%d\n",k[i]);
	}

	return 0;
}

```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b)	(((a) > (b)) ? (a) : (b))		/* ２個の値の最大値 */
#define min(a, b)	(((a) < (b)) ? (a) : (b))		/* ２個の値の最小値 */
#define ENTER		printf("\n")					/* 改行プリント */
/********************************************************************************************************************************/
/* main *************************************************************************************************************************/
/********************************************************************************************************************************/
int DEBUG = 1;										/* デバッグプリント 提出時は0 */
int main()
{
	int		i,j,n,m,x[2020]={0},ans = 0;
	int		k[101] = {0};
	
	scanf("%d", &n);
	for(i=1;i<=n;i++) {
		scanf("%d", &j);
		x[j] = 1;
		k[i] = j;
	}
	scanf("%d", &m);
	for(j=0;j<m;j++) {
		scanf("%d", &i);
		if ((k[i] != 2019)&&(x[k[i]+1]==0)) {
			x[k[i]] = 0;
			x[k[i]+1] = 1;
			k[i]++;
		}
	}
	for(i=1;i<=n;i++) {
		printf("%d\n",k[i]);
	}

	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:

3
2 3 6
2
1 3

2
3
7

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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b)	(((a) > (b)) ? (a) : (b))		/* ２個の値の最大値 */
#define min(a, b)	(((a) < (b)) ? (a) : (b))		/* ２個の値の最小値 */
#define ENTER		printf("\n")					/* 改行プリント */
/********************************************************************************************************************************/
/* main *************************************************************************************************************************/
/********************************************************************************************************************************/
int DEBUG = 1;										/* デバッグプリント 提出時は0 */
int main()
{
	int		i,j,n,m,x[2020]={0},ans = 0;
	int		k[101] = {0};
	
	scanf("%d", &n);
	for(i=1;i<=n;i++) {
		scanf("%d", &j);
		x[j] = 1;
		k[i] = j;
	}
	scanf("%d", &m);
	for(j=0;j<m;j++) {
		scanf("%d", &i);
		if ((k[i] != 2019)&&(x[k[i]+1]==0)) {
			x[k[i]] = 0;
			x[k[i]+1] = 1;
			k[i]++;
		}
	}
	for(i=1;i<=n;i++) {
		printf("%d\n",k[i]);
	}

	return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8232
	orq	$0, (%rsp)
	subq	$344, %rsp
	.cfi_def_cfa_offset 8576
	movl	$1010, %ecx
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 8520(%rsp)
	xorl	%eax, %eax
	leaq	432(%rsp), %rbp
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	rep stosq
	leaq	16(%rsp), %rdi
	movl	$50, %ecx
	rep stosq
	movl	$0, (%rdi)
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r8d
	movl	$1, (%rsp)
	testl	%r8d, %r8d
	jle	.L2
	leaq	4(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	movslq	(%rsp), %rcx
	movl	$1, 432(%rsp,%rax,4)
	movq	%rax, %rdx
	movq	%rcx, %rax
	addl	$1, %eax
	movl	%edx, 16(%rsp,%rcx,4)
	movl	%eax, (%rsp)
	cmpl	8(%rsp), %eax
	jle	.L3
.L2:
	movq	%rbx, %rdi
	leaq	12(%rsp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	movl	$0, 4(%rsp)
	testl	%edi, %edi
	jle	.L4
	movq	.LC1(%rip), %r13
	movq	%rsp, %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rdx
	movslq	16(%rsp,%rdx,4), %rax
	cmpl	$2019, %eax
	je	.L5
	leal	1(%rax), %ecx
	movslq	%ecx, %rsi
	movl	432(%rsp,%rsi,4), %esi
	testl	%esi, %esi
	jne	.L5
	movq	%r13, 0(%rbp,%rax,4)
	movl	%ecx, 16(%rsp,%rdx,4)
.L5:
	movl	4(%rsp), %eax
	addl	$1, %eax
	movl	%eax, 4(%rsp)
	cmpl	12(%rsp), %eax
	jl	.L6
.L4:
	movl	8(%rsp), %eax
	movl	$1, (%rsp)
	testl	%eax, %eax
	jle	.L7
	movl	$1, %eax
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	cltq
	movq	%rbx, %rsi
	movl	$1, %edi
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	addl	$1, %eax
	movl	%eax, (%rsp)
	cmpl	8(%rsp), %eax
	jle	.L8
.L7:
	movq	8520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$8536, %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
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	DEBUG
	.data
	.align 4
	.type	DEBUG, @object
	.size	DEBUG, 4
DEBUG:
	.long	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1
	.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"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8232
	orq	$0, (%rsp)
	subq	$344, %rsp
	.cfi_def_cfa_offset 8576
	movl	$1010, %ecx
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 8520(%rsp)
	xorl	%eax, %eax
	leaq	432(%rsp), %rbp
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	rep stosq
	leaq	16(%rsp), %rdi
	movl	$50, %ecx
	rep stosq
	movl	$0, (%rdi)
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r8d
	movl	$1, (%rsp)
	testl	%r8d, %r8d
	jle	.L2
	leaq	4(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	movslq	(%rsp), %rcx
	movl	$1, 432(%rsp,%rax,4)
	movq	%rax, %rdx
	movq	%rcx, %rax
	addl	$1, %eax
	movl	%edx, 16(%rsp,%rcx,4)
	movl	%eax, (%rsp)
	cmpl	8(%rsp), %eax
	jle	.L3
.L2:
	movq	%rbx, %rdi
	leaq	12(%rsp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	movl	$0, 4(%rsp)
	testl	%edi, %edi
	jle	.L4
	movq	.LC1(%rip), %r13
	movq	%rsp, %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rdx
	movslq	16(%rsp,%rdx,4), %rax
	cmpl	$2019, %eax
	je	.L5
	leal	1(%rax), %ecx
	movslq	%ecx, %rsi
	movl	432(%rsp,%rsi,4), %esi
	testl	%esi, %esi
	jne	.L5
	movq	%r13, 0(%rbp,%rax,4)
	movl	%ecx, 16(%rsp,%rdx,4)
.L5:
	movl	4(%rsp), %eax
	addl	$1, %eax
	movl	%eax, 4(%rsp)
	cmpl	12(%rsp), %eax
	jl	.L6
.L4:
	movl	8(%rsp), %eax
	movl	$1, (%rsp)
	testl	%eax, %eax
	jle	.L7
	movl	$1, %eax
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	cltq
	movq	%rbx, %rsi
	movl	$1, %edi
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	addl	$1, %eax
	movl	%eax, (%rsp)
	cmpl	8(%rsp), %eax
	jle	.L8
.L7:
	movq	8520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$8536, %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
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	DEBUG
	.data
	.align 4
	.type	DEBUG, @object
	.size	DEBUG, 4
DEBUG:
	.long	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1
	.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:
```