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>
int X[2020];
void op(int num,int t){
	if(t<num){
		if(X[t+1]-X[t]>1)
			++X[t];}
	else if(t==num&&X[t]<2019) ++X[t];
}
int main(){

	int N,M;
	int Y[105];
	scanf("%d",&N);
	for(int i=1;i<=N;++i)
		scanf("%d",X+i);
	scanf("%d",&M);
	for(int i=0;i<M;++i){
		scanf("%d",Y+i);
		op(N,Y[i]);}

	for(int i=1;i<=N;++i)
		printf("%d\n",X[i]);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	op
	.type	op, @function
op:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	jge	.L2
	movslq	%esi, %rdi
	addl	$1, %esi
	leaq	X(%rip), %rcx
	movslq	%esi, %rsi
	movl	(%rcx,%rdi,4), %edx
	movl	(%rcx,%rsi,4), %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jle	.L1
	addl	$1, %edx
	movl	%edx, (%rcx,%rdi,4)
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	je	.L5
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	X(%rip), %rdx
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %eax
	cmpl	$2018, %eax
	jg	.L1
	addl	$1, %eax
	movl	%eax, (%rdx,%rsi,4)
	ret
	.cfi_endproc
.LFE23:
	.size	op, .-op
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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
	leaq	4+X(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	movl	$1, %ebx
	subq	$456, %rsp
	.cfi_def_cfa_offset 496
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebx, 8(%rsp)
	jge	.L10
.L11:
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leaq	16(%rsp), %rbx
	leaq	X(%rip), %r12
	testl	%eax, %eax
	jg	.L14
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L31:
	movslq	%eax, %rsi
	addl	$1, %eax
	cltq
	movl	(%r12,%rsi,4), %ecx
	movl	(%r12,%rax,4), %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jle	.L13
	addl	$1, %ecx
	movl	%ecx, (%r12,%rsi,4)
.L13:
	addl	$1, %r13d
	addq	$4, %rbx
	cmpl	%r13d, 12(%rsp)
	jle	.L15
.L14:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	jl	.L31
	jne	.L13
	movslq	%edx, %rcx
	movl	(%r12,%rcx,4), %eax
	cmpl	$2018, %eax
	jg	.L13
	addl	$1, %eax
	addl	$1, %r13d
	addq	$4, %rbx
	movl	%eax, (%r12,%rcx,4)
	cmpl	%r13d, 12(%rsp)
	jg	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	movl	$1, %ebx
	leaq	X(%rip), %r12
	leaq	.LC1(%rip), %rbp
	testl	%edx, %edx
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L16
.L17:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$456, %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
.L30:
	.cfi_restore_state
	movl	8(%rsp), %edx
	jmp	.L15
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	X
	.bss
	.align 32
	.type	X, @object
	.size	X, 8080
X:
	.zero	8080
	.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	op
	.type	op, @function
op:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	jge	.L2
	movslq	%esi, %rdi
	addl	$1, %esi
	leaq	X(%rip), %rcx
	movslq	%esi, %rsi
	movl	(%rcx,%rdi,4), %edx
	movl	(%rcx,%rsi,4), %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jle	.L1
	addl	$1, %edx
	movl	%edx, (%rcx,%rdi,4)
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	je	.L5
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	X(%rip), %rdx
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %eax
	cmpl	$2018, %eax
	jg	.L1
	addl	$1, %eax
	movl	%eax, (%rdx,%rsi,4)
	ret
	.cfi_endproc
.LFE23:
	.size	op, .-op
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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
	leaq	4+X(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	movl	$1, %ebx
	subq	$456, %rsp
	.cfi_def_cfa_offset 496
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebx, 8(%rsp)
	jge	.L10
.L11:
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leaq	16(%rsp), %rbx
	leaq	X(%rip), %r12
	testl	%eax, %eax
	jg	.L14
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L31:
	movslq	%eax, %rsi
	addl	$1, %eax
	cltq
	movl	(%r12,%rsi,4), %ecx
	movl	(%r12,%rax,4), %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jle	.L13
	addl	$1, %ecx
	movl	%ecx, (%r12,%rsi,4)
.L13:
	addl	$1, %r13d
	addq	$4, %rbx
	cmpl	%r13d, 12(%rsp)
	jle	.L15
.L14:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	jl	.L31
	jne	.L13
	movslq	%edx, %rcx
	movl	(%r12,%rcx,4), %eax
	cmpl	$2018, %eax
	jg	.L13
	addl	$1, %eax
	addl	$1, %r13d
	addq	$4, %rbx
	movl	%eax, (%r12,%rcx,4)
	cmpl	%r13d, 12(%rsp)
	jg	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	movl	$1, %ebx
	leaq	X(%rip), %r12
	leaq	.LC1(%rip), %rbp
	testl	%edx, %edx
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L16
.L17:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$456, %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
.L30:
	.cfi_restore_state
	movl	8(%rsp), %edx
	jmp	.L15
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	X
	.bss
	.align 32
	.type	X, @object
	.size	X, 8080
X:
	.zero	8080
	.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	op
	.type	op, @function
op:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	jge	.L2
	movslq	%esi, %rdi
	addl	$1, %esi
	leaq	X(%rip), %rcx
	movslq	%esi, %rsi
	movl	(%rcx,%rdi,4), %edx
	movl	(%rcx,%rsi,4), %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jle	.L1
	addl	$1, %edx
	movl	%edx, (%rcx,%rdi,4)
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	je	.L5
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	X(%rip), %rdx
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %eax
	cmpl	$2018, %eax
	jg	.L1
	addl	$1, %eax
	movl	%eax, (%rdx,%rsi,4)
	ret
	.cfi_endproc
.LFE23:
	.size	op, .-op
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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
	leaq	4+X(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	movl	$1, %ebx
	subq	$456, %rsp
	.cfi_def_cfa_offset 496
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebx, 8(%rsp)
	jge	.L10
.L11:
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leaq	16(%rsp), %rbx
	leaq	X(%rip), %r12
	testl	%eax, %eax
	jg	.L14
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L31:
	movslq	%eax, %rsi
	addl	$1, %eax
	cltq
	movl	(%r12,%rsi,4), %ecx
	movl	(%r12,%rax,4), %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jle	.L13
	addl	$1, %ecx
	movl	%ecx, (%r12,%rsi,4)
.L13:
	addl	$1, %r13d
	addq	$4, %rbx
	cmpl	%r13d, 12(%rsp)
	jle	.L15
.L14:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	jl	.L31
	jne	.L13
	movslq	%edx, %rcx
	movl	(%r12,%rcx,4), %eax
	cmpl	$2018, %eax
	jg	.L13
	addl	$1, %eax
	addl	$1, %r13d
	addq	$4, %rbx
	movl	%eax, (%r12,%rcx,4)
	cmpl	%r13d, 12(%rsp)
	jg	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	movl	$1, %ebx
	leaq	X(%rip), %r12
	leaq	.LC1(%rip), %rbp
	testl	%edx, %edx
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L16
.L17:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$456, %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
.L30:
	.cfi_restore_state
	movl	8(%rsp), %edx
	jmp	.L15
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	X
	.bss
	.align 32
	.type	X, @object
	.size	X, 8080
X:
	.zero	8080
	.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>
int X[2020];
void op(int num,int t){
	if(t<num){
		if(X[t+1]-X[t]>1)
			++X[t];}
	else if(t==num&&X[t]<2019) ++X[t];
}
int main(){

	int N,M;
	int Y[105];
	scanf("%d",&N);
	for(int i=1;i<=N;++i)
		scanf("%d",X+i);
	scanf("%d",&M);
	for(int i=0;i<M;++i){
		scanf("%d",Y+i);
		op(N,Y[i]);}

	for(int i=1;i<=N;++i)
		printf("%d\n",X[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>
int X[2020];
void op(int num,int t){
	if(t<num){
		if(X[t+1]-X[t]>1)
			++X[t];}
	else if(t==num&&X[t]<2019) ++X[t];
}
int main(){

	int N,M;
	int Y[105];
	scanf("%d",&N);
	for(int i=1;i<=N;++i)
		scanf("%d",X+i);
	scanf("%d",&M);
	for(int i=0;i<M;++i){
		scanf("%d",Y+i);
		op(N,Y[i]);}

	for(int i=1;i<=N;++i)
		printf("%d\n",X[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>
int X[2020];
void op(int num,int t){
	if(t<num){
		if(X[t+1]-X[t]>1)
			++X[t];}
	else if(t==num&&X[t]<2019) ++X[t];
}
int main(){

	int N,M;
	int Y[105];
	scanf("%d",&N);
	for(int i=1;i<=N;++i)
		scanf("%d",X+i);
	scanf("%d",&M);
	for(int i=0;i<M;++i){
		scanf("%d",Y+i);
		op(N,Y[i]);}

	for(int i=1;i<=N;++i)
		printf("%d\n",X[i]);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	op
	.type	op, @function
op:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	jge	.L2
	movslq	%esi, %rdi
	addl	$1, %esi
	leaq	X(%rip), %rcx
	movslq	%esi, %rsi
	movl	(%rcx,%rdi,4), %edx
	movl	(%rcx,%rsi,4), %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jle	.L1
	addl	$1, %edx
	movl	%edx, (%rcx,%rdi,4)
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	je	.L5
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	X(%rip), %rdx
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %eax
	cmpl	$2018, %eax
	jg	.L1
	addl	$1, %eax
	movl	%eax, (%rdx,%rsi,4)
	ret
	.cfi_endproc
.LFE23:
	.size	op, .-op
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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
	leaq	4+X(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	movl	$1, %ebx
	subq	$456, %rsp
	.cfi_def_cfa_offset 496
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebx, 8(%rsp)
	jge	.L10
.L11:
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leaq	16(%rsp), %rbx
	leaq	X(%rip), %r12
	testl	%eax, %eax
	jg	.L14
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L31:
	movslq	%eax, %rsi
	addl	$1, %eax
	cltq
	movl	(%r12,%rsi,4), %ecx
	movl	(%r12,%rax,4), %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jle	.L13
	addl	$1, %ecx
	movl	%ecx, (%r12,%rsi,4)
.L13:
	addl	$1, %r13d
	addq	$4, %rbx
	cmpl	%r13d, 12(%rsp)
	jle	.L15
.L14:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	jl	.L31
	jne	.L13
	movslq	%edx, %rcx
	movl	(%r12,%rcx,4), %eax
	cmpl	$2018, %eax
	jg	.L13
	addl	$1, %eax
	addl	$1, %r13d
	addq	$4, %rbx
	movl	%eax, (%r12,%rcx,4)
	cmpl	%r13d, 12(%rsp)
	jg	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	movl	$1, %ebx
	leaq	X(%rip), %r12
	leaq	.LC1(%rip), %rbp
	testl	%edx, %edx
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L16
.L17:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$456, %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
.L30:
	.cfi_restore_state
	movl	8(%rsp), %edx
	jmp	.L15
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	X
	.bss
	.align 32
	.type	X, @object
	.size	X, 8080
X:
	.zero	8080
	.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	op
	.type	op, @function
op:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	jge	.L2
	movslq	%esi, %rdi
	addl	$1, %esi
	leaq	X(%rip), %rcx
	movslq	%esi, %rsi
	movl	(%rcx,%rdi,4), %edx
	movl	(%rcx,%rsi,4), %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jle	.L1
	addl	$1, %edx
	movl	%edx, (%rcx,%rdi,4)
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	je	.L5
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	X(%rip), %rdx
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %eax
	cmpl	$2018, %eax
	jg	.L1
	addl	$1, %eax
	movl	%eax, (%rdx,%rsi,4)
	ret
	.cfi_endproc
.LFE23:
	.size	op, .-op
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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
	leaq	4+X(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	movl	$1, %ebx
	subq	$456, %rsp
	.cfi_def_cfa_offset 496
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebx, 8(%rsp)
	jge	.L10
.L11:
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leaq	16(%rsp), %rbx
	leaq	X(%rip), %r12
	testl	%eax, %eax
	jg	.L14
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L31:
	movslq	%eax, %rsi
	addl	$1, %eax
	cltq
	movl	(%r12,%rsi,4), %ecx
	movl	(%r12,%rax,4), %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jle	.L13
	addl	$1, %ecx
	movl	%ecx, (%r12,%rsi,4)
.L13:
	addl	$1, %r13d
	addq	$4, %rbx
	cmpl	%r13d, 12(%rsp)
	jle	.L15
.L14:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	movl	8(%rsp), %edx
	cmpl	%edx, %eax
	jl	.L31
	jne	.L13
	movslq	%edx, %rcx
	movl	(%r12,%rcx,4), %eax
	cmpl	$2018, %eax
	jg	.L13
	addl	$1, %eax
	addl	$1, %r13d
	addq	$4, %rbx
	movl	%eax, (%r12,%rcx,4)
	cmpl	%r13d, 12(%rsp)
	jg	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	movl	$1, %ebx
	leaq	X(%rip), %r12
	leaq	.LC1(%rip), %rbp
	testl	%edx, %edx
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L16
.L17:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$456, %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
.L30:
	.cfi_restore_state
	movl	8(%rsp), %edx
	jmp	.L15
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	X
	.bss
	.align 32
	.type	X, @object
	.size	X, 8080
X:
	.zero	8080
	.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:
```