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>
int main(void)
{
int N,a,t;
int i,j,miyaki;
long long dp[100][21]={0};
scanf("%d",&N);
scanf("%d",&a);
dp[0][a]++;
for(i=1;i<N-1;i++){
scanf("%d",&a);
for(j=0;j<21;j++){
if(dp[i-1][j]!=0){
t=a+j;
if(t>=0&&t<21){
dp[i][t]=dp[i][t]+dp[i-1][j];
}
t=j-a;
if(t>=0&&t<21){
dp[i][t]=dp[i][t]+dp[i-1][j];
}
}
}
}
scanf("%d",&a);
printf("%lld\n",dp[N-2][a]);
return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\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	-16384(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$464, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16816(%rbp), %rax
	movl	$16800, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-16836(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-16832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16832(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16816(%rbp,%rdx,8), %rdx
	addq	$1, %rdx
	cltq
	movq	%rdx, -16816(%rbp,%rax,8)
	movl	$1, -16828(%rbp)
	jmp	.L2
.L7:
	leaq	-16832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16824(%rbp)
	jmp	.L3
.L6:
	movl	-16828(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16824(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rax
	testq	%rax, %rax
	je	.L4
	movl	-16832(%rbp), %edx
	movl	-16824(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -16820(%rbp)
	cmpl	$0, -16820(%rbp)
	js	.L5
	cmpl	$20, -16820(%rbp)
	jg	.L5
	movl	-16820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rcx
	movl	-16828(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16824(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	-16816(%rbp,%rax,8), %rax
	addq	%rax, %rcx
	movl	-16820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, -16816(%rbp,%rax,8)
.L5:
	movl	-16832(%rbp), %edx
	movl	-16824(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -16820(%rbp)
	cmpl	$0, -16820(%rbp)
	js	.L4
	cmpl	$20, -16820(%rbp)
	jg	.L4
	movl	-16820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rcx
	movl	-16828(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16824(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	-16816(%rbp,%rax,8), %rax
	addq	%rax, %rcx
	movl	-16820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, -16816(%rbp,%rax,8)
.L4:
	addl	$1, -16824(%rbp)
.L3:
	cmpl	$20, -16824(%rbp)
	jle	.L6
	addl	$1, -16828(%rbp)
.L2:
	movl	-16836(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -16828(%rbp)
	jl	.L7
	leaq	-16832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16836(%rbp), %eax
	leal	-2(%rax), %edx
	movl	-16832(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-16384(%rsp), %r11
	.cfi_def_cfa 11, 16432
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$448, %rsp
	.cfi_def_cfa_offset 16880
	movl	$16800, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r13
	movl	$1, %ebp
	movl	$21, %ebx
	movq	%fs:40, %rax
	movq	%rax, 16824(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %r14
	movq	%r12, %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	cmpl	$2, 8(%rsp)
	movq	$1, 16(%rsp,%rax,8)
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	movslq	%ebp, %rsi
	movl	%ebx, %r8d
	leaq	(%rsi,%rsi,4), %rdi
	movq	%r12, %rdx
	movl	%ecx, %eax
	subl	%ecx, %r8d
	leaq	(%rsi,%rdi,4), %r9
	negl	%eax
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rdx), %rsi
	testq	%rsi, %rsi
	je	.L4
	cmpl	$20, %ecx
	ja	.L5
	movslq	%ecx, %rdi
	addq	%r9, %rdi
	addq	%rsi, 16(%rsp,%rdi,8)
.L5:
	cmpl	$20, %eax
	ja	.L4
	movslq	%eax, %rsi
	movq	(%rdx), %rdi
	addq	%r9, %rsi
	addq	%rdi, 16(%rsp,%rsi,8)
.L4:
	addl	$1, %eax
	addq	$8, %rdx
	addl	$1, %ecx
	cmpl	%eax, %r8d
	jne	.L7
	movl	8(%rsp), %eax
	addl	$1, %ebp
	addq	$168, %r12
	subl	$1, %eax
	cmpl	%ebp, %eax
	jg	.L8
.L9:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	movslq	12(%rsp), %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	subl	$2, %eax
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rdx, %rax
	movq	16(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16832, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.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"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-16384(%rsp), %r11
	.cfi_def_cfa 11, 16432
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$448, %rsp
	.cfi_def_cfa_offset 16880
	movl	$16800, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r13
	movl	$1, %ebp
	movl	$21, %ebx
	movq	%fs:40, %rax
	movq	%rax, 16824(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %r14
	movq	%r12, %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	cmpl	$2, 8(%rsp)
	movq	$1, 16(%rsp,%rax,8)
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	movslq	%ebp, %rsi
	movl	%ebx, %r8d
	leaq	(%rsi,%rsi,4), %rdi
	movq	%r12, %rdx
	movl	%ecx, %eax
	subl	%ecx, %r8d
	leaq	(%rsi,%rdi,4), %r9
	negl	%eax
	.p2align 4,,10
	.p2align 3
.L7:
	movq	(%rdx), %rsi
	testq	%rsi, %rsi
	je	.L4
	cmpl	$20, %ecx
	ja	.L5
	movslq	%ecx, %rdi
	addq	%r9, %rdi
	addq	%rsi, 16(%rsp,%rdi,8)
.L5:
	cmpl	$20, %eax
	ja	.L4
	movslq	%eax, %rsi
	movq	(%rdx), %rdi
	addq	%r9, %rsi
	addq	%rdi, 16(%rsp,%rsi,8)
.L4:
	addl	$1, %eax
	addq	$8, %rdx
	addl	$1, %ecx
	cmpl	%eax, %r8d
	jne	.L7
	movl	8(%rsp), %eax
	addl	$1, %ebp
	addq	$168, %r12
	subl	$1, %eax
	cmpl	%ebp, %eax
	jg	.L8
.L9:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	movslq	12(%rsp), %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	subl	$2, %eax
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rdx, %rax
	movq	16(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16832, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.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>
int main(void)
{
int N,a,t;
int i,j,miyaki;
long long dp[100][21]={0};
scanf("%d",&N);
scanf("%d",&a);
dp[0][a]++;
for(i=1;i<N-1;i++){
scanf("%d",&a);
for(j=0;j<21;j++){
if(dp[i-1][j]!=0){
t=a+j;
if(t>=0&&t<21){
dp[i][t]=dp[i][t]+dp[i-1][j];
}
t=j-a;
if(t>=0&&t<21){
dp[i][t]=dp[i][t]+dp[i-1][j];
}
}
}
}
scanf("%d",&a);
printf("%lld\n",dp[N-2][a]);
return 0;
}
11
8 3 2 4 8 7 2 4 0 8 8

10

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>
int main(void)
{
int N,a,t;
int i,j,miyaki;
long long dp[100][21]={0};
scanf("%d",&N);
scanf("%d",&a);
dp[0][a]++;
for(i=1;i<N-1;i++){
scanf("%d",&a);
for(j=0;j<21;j++){
if(dp[i-1][j]!=0){
t=a+j;
if(t>=0&&t<21){
dp[i][t]=dp[i][t]+dp[i-1][j];
}
t=j-a;
if(t>=0&&t<21){
dp[i][t]=dp[i][t]+dp[i-1][j];
}
}
}
}
scanf("%d",&a);
printf("%lld\n",dp[N-2][a]);
return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\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	-16384(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$464, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16816(%rbp), %rax
	movl	$16800, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-16836(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-16832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16832(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16816(%rbp,%rdx,8), %rdx
	addq	$1, %rdx
	cltq
	movq	%rdx, -16816(%rbp,%rax,8)
	movl	$1, -16828(%rbp)
	jmp	.L2
.L7:
	leaq	-16832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16824(%rbp)
	jmp	.L3
.L6:
	movl	-16828(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16824(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rax
	testq	%rax, %rax
	je	.L4
	movl	-16832(%rbp), %edx
	movl	-16824(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -16820(%rbp)
	cmpl	$0, -16820(%rbp)
	js	.L5
	cmpl	$20, -16820(%rbp)
	jg	.L5
	movl	-16820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rcx
	movl	-16828(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16824(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	-16816(%rbp,%rax,8), %rax
	addq	%rax, %rcx
	movl	-16820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, -16816(%rbp,%rax,8)
.L5:
	movl	-16832(%rbp), %edx
	movl	-16824(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -16820(%rbp)
	cmpl	$0, -16820(%rbp)
	js	.L4
	cmpl	$20, -16820(%rbp)
	jg	.L4
	movl	-16820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rcx
	movl	-16828(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16824(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	-16816(%rbp,%rax,8), %rax
	addq	%rax, %rcx
	movl	-16820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, -16816(%rbp,%rax,8)
.L4:
	addl	$1, -16824(%rbp)
.L3:
	cmpl	$20, -16824(%rbp)
	jle	.L6
	addl	$1, -16828(%rbp)
.L2:
	movl	-16836(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -16828(%rbp)
	jl	.L7
	leaq	-16832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16836(%rbp), %eax
	leal	-2(%rax), %edx
	movl	-16832(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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"
.LC1:
	.string	"%lld\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	-16384(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$464, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16816(%rbp), %rax
	movl	$16800, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-16836(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-16832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16832(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16816(%rbp,%rdx,8), %rdx
	addq	$1, %rdx
	cltq
	movq	%rdx, -16816(%rbp,%rax,8)
	movl	$1, -16828(%rbp)
	jmp	.L2
.L7:
	leaq	-16832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16824(%rbp)
	jmp	.L3
.L6:
	movl	-16828(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16824(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rax
	testq	%rax, %rax
	je	.L4
	movl	-16832(%rbp), %edx
	movl	-16824(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -16820(%rbp)
	cmpl	$0, -16820(%rbp)
	js	.L5
	cmpl	$20, -16820(%rbp)
	jg	.L5
	movl	-16820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rcx
	movl	-16828(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16824(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	-16816(%rbp,%rax,8), %rax
	addq	%rax, %rcx
	movl	-16820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, -16816(%rbp,%rax,8)
.L5:
	movl	-16832(%rbp), %edx
	movl	-16824(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -16820(%rbp)
	cmpl	$0, -16820(%rbp)
	js	.L4
	cmpl	$20, -16820(%rbp)
	jg	.L4
	movl	-16820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rcx
	movl	-16828(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16824(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	-16816(%rbp,%rax,8), %rax
	addq	%rax, %rcx
	movl	-16820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16828(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, -16816(%rbp,%rax,8)
.L4:
	addl	$1, -16824(%rbp)
.L3:
	cmpl	$20, -16824(%rbp)
	jle	.L6
	addl	$1, -16828(%rbp)
.L2:
	movl	-16836(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -16828(%rbp)
	jl	.L7
	leaq	-16832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16836(%rbp), %eax
	leal	-2(%rax), %edx
	movl	-16832(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	-16816(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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:
