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

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 16800
dp:
	.zero	16800
	.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
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-428(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -424(%rbp)
	jmp	.L2
.L5:
	movl	$0, -420(%rbp)
	jmp	.L3
.L4:
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -420(%rbp)
.L3:
	cmpl	$20, -420(%rbp)
	jle	.L4
	addl	$1, -424(%rbp)
.L2:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jle	.L5
	movl	$1, -424(%rbp)
	jmp	.L6
.L7:
	leaq	-416(%rbp), %rdx
	movl	-424(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -424(%rbp)
.L6:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jle	.L7
	movl	-412(%rbp), %eax
	cltq
	addq	$42, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$1, (%rdx,%rax)
	movl	$2, -424(%rbp)
	jmp	.L8
.L13:
	movl	$0, -420(%rbp)
	jmp	.L9
.L12:
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L10
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-420(%rbp), %eax
	addl	%edx, %eax
	cmpl	$20, %eax
	jg	.L11
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-420(%rbp), %eax
	addl	%ecx, %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
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edi
	movl	-420(%rbp), %eax
	addl	%edi, %eax
	addq	%rsi, %rcx
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L11:
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-420(%rbp), %eax
	subl	%edx, %eax
	testl	%eax, %eax
	js	.L10
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-420(%rbp), %eax
	subl	%ecx, %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
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edi
	movl	-420(%rbp), %eax
	subl	%edi, %eax
	addq	%rsi, %rcx
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L10:
	addl	$1, -420(%rbp)
.L9:
	cmpl	$20, -420(%rbp)
	jle	.L12
	addl	$1, -424(%rbp)
.L8:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jl	.L13
	movl	-428(%rbp), %edx
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %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
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %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	.L15
	call	__stack_chk_fail@PLT
.L15:
	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
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	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	dp(%rip), %rbx
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	movslq	%ebp, %r12
	testl	%ebp, %ebp
	js	.L2
	leaq	1(%r12), %rax
	leaq	dp(%rip), %rbx
	xorl	%esi, %esi
	leaq	(%rax,%rax,4), %rdx
	movq	%rbx, %rdi
	leaq	(%rax,%rdx,4), %rdx
	salq	$3, %rdx
	call	memset@PLT
	testl	%ebp, %ebp
	jle	.L2
	leaq	20(%rsp), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addq	$4, %r13
	cmpl	%r12d, %ebp
	jge	.L3
	movslq	20(%rsp), %rax
	movq	$1, 336(%rbx,%rax,8)
	cmpl	$2, %ebp
	jle	.L23
	leaq	336+dp(%rip), %rdi
	leaq	24(%rsp), %r8
	movl	$2, %r10d
	.p2align 4,,10
	.p2align 3
.L12:
	addl	$1, %r10d
	xorl	%eax, %eax
	movslq	%r10d, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %r9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rdi,%rax,8), %rsi
	movl	%eax, %edx
	testq	%rsi, %rsi
	je	.L8
	movl	(%r8), %r11d
	leal	(%r11,%rax), %ecx
	cmpl	$20, %ecx
	jg	.L9
	movslq	%ecx, %rcx
	addq	%r9, %rcx
	addq	%rsi, (%rbx,%rcx,8)
.L9:
	subl	%r11d, %edx
	js	.L8
	movslq	%edx, %rdx
	movq	(%rdi,%rax,8), %rcx
	addq	%r9, %rdx
	addq	%rcx, (%rbx,%rdx,8)
.L8:
	addq	$1, %rax
	cmpq	$21, %rax
	jne	.L11
	addq	$168, %rdi
	addq	$4, %r8
	cmpl	%r10d, %ebp
	jne	.L12
.L23:
	movslq	%ebp, %r12
.L13:
	movslq	16(%rsp,%r12,4), %rdx
	leaq	(%r12,%r12,4), %rax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	leaq	(%r12,%rax,4), %rax
	addq	%rdx, %rax
	movq	(%rbx,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$432, %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
.L2:
	.cfi_restore_state
	movslq	20(%rsp), %rax
	movq	$1, 336(%rbx,%rax,8)
	jmp	.L13
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 16800
dp:
	.zero	16800
	.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
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	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	dp(%rip), %rbx
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	movslq	%ebp, %r12
	testl	%ebp, %ebp
	js	.L2
	leaq	1(%r12), %rax
	leaq	dp(%rip), %rbx
	xorl	%esi, %esi
	leaq	(%rax,%rax,4), %rdx
	movq	%rbx, %rdi
	leaq	(%rax,%rdx,4), %rdx
	salq	$3, %rdx
	call	memset@PLT
	testl	%ebp, %ebp
	jle	.L2
	leaq	20(%rsp), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addq	$4, %r13
	cmpl	%r12d, %ebp
	jge	.L3
	movslq	20(%rsp), %rax
	movq	$1, 336(%rbx,%rax,8)
	cmpl	$2, %ebp
	jle	.L23
	leaq	336+dp(%rip), %rdi
	leaq	24(%rsp), %r8
	movl	$2, %r10d
	.p2align 4,,10
	.p2align 3
.L12:
	addl	$1, %r10d
	xorl	%eax, %eax
	movslq	%r10d, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %r9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rdi,%rax,8), %rsi
	movl	%eax, %edx
	testq	%rsi, %rsi
	je	.L8
	movl	(%r8), %r11d
	leal	(%r11,%rax), %ecx
	cmpl	$20, %ecx
	jg	.L9
	movslq	%ecx, %rcx
	addq	%r9, %rcx
	addq	%rsi, (%rbx,%rcx,8)
.L9:
	subl	%r11d, %edx
	js	.L8
	movslq	%edx, %rdx
	movq	(%rdi,%rax,8), %rcx
	addq	%r9, %rdx
	addq	%rcx, (%rbx,%rdx,8)
.L8:
	addq	$1, %rax
	cmpq	$21, %rax
	jne	.L11
	addq	$168, %rdi
	addq	$4, %r8
	cmpl	%r10d, %ebp
	jne	.L12
.L23:
	movslq	%ebp, %r12
.L13:
	movslq	16(%rsp,%r12,4), %rdx
	leaq	(%r12,%r12,4), %rax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	leaq	(%r12,%rax,4), %rax
	addq	%rdx, %rax
	movq	(%rbx,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$432, %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
.L2:
	.cfi_restore_state
	movslq	20(%rsp), %rax
	movq	$1, 336(%rbx,%rax,8)
	jmp	.L13
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 16800
dp:
	.zero	16800
	.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>
long long int dp[100][21];
int main(void)
{
	int i,j,n,suu[101];
	scanf("%d",&n);
	for(i=0;i<=n;i++){
		for(j=0;j<=20;j++) dp[i][j]=0;
	}
	for(i=1;i<=n;i++) scanf("%d",&suu[i]);
	dp[2][suu[1]]=1;
	for(i=2;i<n;i++){
		for(j=0;j<=20;j++){
			if(dp[i][j]!=0){
				if(j+suu[i]<=20) dp[i+1][j+suu[i]]+=dp[i][j];
				if(j-suu[i]>=0) dp[i+1][j-suu[i]]+=dp[i][j];
			}
		}
	}
	printf("%lld\n",dp[n][suu[n]]);
	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>
long long int dp[100][21];
int main(void)
{
	int i,j,n,suu[101];
	scanf("%d",&n);
	for(i=0;i<=n;i++){
		for(j=0;j<=20;j++) dp[i][j]=0;
	}
	for(i=1;i<=n;i++) scanf("%d",&suu[i]);
	dp[2][suu[1]]=1;
	for(i=2;i<n;i++){
		for(j=0;j<=20;j++){
			if(dp[i][j]!=0){
				if(j+suu[i]<=20) dp[i+1][j+suu[i]]+=dp[i][j];
				if(j-suu[i]>=0) dp[i+1][j-suu[i]]+=dp[i][j];
			}
		}
	}
	printf("%lld\n",dp[n][suu[n]]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 16800
dp:
	.zero	16800
	.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
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-428(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -424(%rbp)
	jmp	.L2
.L5:
	movl	$0, -420(%rbp)
	jmp	.L3
.L4:
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -420(%rbp)
.L3:
	cmpl	$20, -420(%rbp)
	jle	.L4
	addl	$1, -424(%rbp)
.L2:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jle	.L5
	movl	$1, -424(%rbp)
	jmp	.L6
.L7:
	leaq	-416(%rbp), %rdx
	movl	-424(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -424(%rbp)
.L6:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jle	.L7
	movl	-412(%rbp), %eax
	cltq
	addq	$42, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$1, (%rdx,%rax)
	movl	$2, -424(%rbp)
	jmp	.L8
.L13:
	movl	$0, -420(%rbp)
	jmp	.L9
.L12:
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L10
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-420(%rbp), %eax
	addl	%edx, %eax
	cmpl	$20, %eax
	jg	.L11
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-420(%rbp), %eax
	addl	%ecx, %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
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edi
	movl	-420(%rbp), %eax
	addl	%edi, %eax
	addq	%rsi, %rcx
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L11:
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-420(%rbp), %eax
	subl	%edx, %eax
	testl	%eax, %eax
	js	.L10
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-420(%rbp), %eax
	subl	%ecx, %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
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edi
	movl	-420(%rbp), %eax
	subl	%edi, %eax
	addq	%rsi, %rcx
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L10:
	addl	$1, -420(%rbp)
.L9:
	cmpl	$20, -420(%rbp)
	jle	.L12
	addl	$1, -424(%rbp)
.L8:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jl	.L13
	movl	-428(%rbp), %edx
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %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
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %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	.L15
	call	__stack_chk_fail@PLT
.L15:
	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
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 16800
dp:
	.zero	16800
	.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
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-428(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -424(%rbp)
	jmp	.L2
.L5:
	movl	$0, -420(%rbp)
	jmp	.L3
.L4:
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -420(%rbp)
.L3:
	cmpl	$20, -420(%rbp)
	jle	.L4
	addl	$1, -424(%rbp)
.L2:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jle	.L5
	movl	$1, -424(%rbp)
	jmp	.L6
.L7:
	leaq	-416(%rbp), %rdx
	movl	-424(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -424(%rbp)
.L6:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jle	.L7
	movl	-412(%rbp), %eax
	cltq
	addq	$42, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$1, (%rdx,%rax)
	movl	$2, -424(%rbp)
	jmp	.L8
.L13:
	movl	$0, -420(%rbp)
	jmp	.L9
.L12:
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L10
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-420(%rbp), %eax
	addl	%edx, %eax
	cmpl	$20, %eax
	jg	.L11
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-420(%rbp), %eax
	addl	%ecx, %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
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edi
	movl	-420(%rbp), %eax
	addl	%edi, %eax
	addq	%rsi, %rcx
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L11:
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-420(%rbp), %eax
	subl	%edx, %eax
	testl	%eax, %eax
	js	.L10
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-420(%rbp), %eax
	subl	%ecx, %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
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-420(%rbp), %eax
	movslq	%eax, %rcx
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edi
	movl	-420(%rbp), %eax
	subl	%edi, %eax
	addq	%rsi, %rcx
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L10:
	addl	$1, -420(%rbp)
.L9:
	cmpl	$20, -420(%rbp)
	jle	.L12
	addl	$1, -424(%rbp)
.L8:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jl	.L13
	movl	-428(%rbp), %edx
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %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
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %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	.L15
	call	__stack_chk_fail@PLT
.L15:
	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:
