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,num[100],i,j,plus,minus;
    long long int dp[100][21];
    scanf("%d",&n);
    for(i=0; i<n; i++){
        for(j=0; j<21; j++){
            dp[i][j]=0LL;
        }
        scanf("%d",&num[i]);
    }
    dp[0][num[0]]++;
    for(i=1; i<n-1; i++){
        for(j=0; j<21; j++){
            if(dp[i-1][j]!=0){
                plus = j+num[i];
                minus = j-num[i];
                if(plus>-1 && plus<21){
                    dp[i][plus]+=dp[i-1][j];
                }
                if(minus>-1 && minus<21){
                    dp[i][minus]+=dp[i-1][j];
                }
            }
        }
    }
    printf("%lld\n",dp[n-2][num[n-1]]);
    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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-17236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -17232(%rbp)
	jmp	.L2
.L5:
	movl	$0, -17228(%rbp)
	jmp	.L3
.L4:
	movl	-17228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-17232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	$0, -16816(%rbp,%rax,8)
	addl	$1, -17228(%rbp)
.L3:
	cmpl	$20, -17228(%rbp)
	jle	.L4
	leaq	-17216(%rbp), %rdx
	movl	-17232(%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, -17232(%rbp)
.L2:
	movl	-17236(%rbp), %eax
	cmpl	%eax, -17232(%rbp)
	jl	.L5
	movl	-17216(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16816(%rbp,%rdx,8), %rdx
	addq	$1, %rdx
	cltq
	movq	%rdx, -16816(%rbp,%rax,8)
	movl	$1, -17232(%rbp)
	jmp	.L6
.L11:
	movl	$0, -17228(%rbp)
	jmp	.L7
.L10:
	movl	-17232(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-17228(%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	.L8
	movl	-17232(%rbp), %eax
	cltq
	movl	-17216(%rbp,%rax,4), %edx
	movl	-17228(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -17224(%rbp)
	movl	-17232(%rbp), %eax
	cltq
	movl	-17216(%rbp,%rax,4), %edx
	movl	-17228(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -17220(%rbp)
	cmpl	$0, -17224(%rbp)
	js	.L9
	cmpl	$20, -17224(%rbp)
	jg	.L9
	movl	-17224(%rbp), %eax
	movslq	%eax, %rcx
	movl	-17232(%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	-17232(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-17228(%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	-17224(%rbp), %eax
	movslq	%eax, %rsi
	movl	-17232(%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)
.L9:
	cmpl	$0, -17220(%rbp)
	js	.L8
	cmpl	$20, -17220(%rbp)
	jg	.L8
	movl	-17220(%rbp), %eax
	movslq	%eax, %rcx
	movl	-17232(%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	-17232(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-17228(%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	-17220(%rbp), %eax
	movslq	%eax, %rsi
	movl	-17232(%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)
.L8:
	addl	$1, -17228(%rbp)
.L7:
	cmpl	$20, -17228(%rbp)
	jle	.L10
	addl	$1, -17232(%rbp)
.L6:
	movl	-17236(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -17232(%rbp)
	jl	.L11
	movl	-17236(%rbp), %eax
	leal	-2(%rax), %edx
	movl	-17236(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-17216(%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
	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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	$848, %rsp
	.cfi_def_cfa_offset 17280
	leaq	.LC0(%rip), %rbp
	movq	%rbp, %rdi
	movq	%fs:40, %rax
	movq	%rax, 17224(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	leaq	416(%rsp), %rax
	xorl	%r14d, %r14d
	leaq	16(%rsp), %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rax), %rdi
	movq	$0, (%rax)
	leaq	168(%rax), %rbx
	andq	$-8, %rdi
	leaq	0(%r13,%r14,4), %rsi
	addq	$1, %r14
	movq	$0, 160(%rax)
	subq	%rdi, %rax
	leal	168(%rax), %ecx
	movq	%r12, %rax
	shrl	$3, %ecx
	rep stosq
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	movq	%rbx, %rax
	cmpl	%r14d, %r8d
	jg	.L3
.L2:
	movslq	16(%rsp), %rax
	leal	-1(%r8), %ebx
	leaq	20(%rsp), %r9
	movl	$1, %r11d
	leaq	416(%rsp), %rdi
	addq	$1, 416(%rsp,%rax,8)
	cmpl	$1, %ebx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%r11d, %rdx
	xorl	%eax, %eax
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %r10
	.p2align 4,,10
	.p2align 3
.L9:
	movq	(%rdi,%rax,8), %rsi
	testq	%rsi, %rsi
	je	.L6
	movl	(%r9), %ecx
	movl	%eax, %edx
	subl	(%r9), %edx
	addl	%eax, %ecx
	cmpl	$20, %ecx
	ja	.L7
	movslq	%ecx, %rcx
	addq	%r10, %rcx
	addq	%rsi, 416(%rsp,%rcx,8)
.L7:
	cmpl	$20, %edx
	ja	.L6
	movslq	%edx, %rdx
	movq	(%rdi,%rax,8), %rcx
	addq	%r10, %rdx
	addq	%rcx, 416(%rsp,%rdx,8)
.L6:
	addq	$1, %rax
	cmpq	$21, %rax
	jne	.L9
	addl	$1, %r11d
	addq	$168, %rdi
	addq	$4, %r9
	cmpl	%ebx, %r11d
	jne	.L10
.L11:
	leal	-2(%r8), %eax
	movslq	%ebx, %rbx
	movl	$1, %edi
	cltq
	movslq	16(%rsp,%rbx,4), %rdx
	leaq	.LC1(%rip), %rsi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rdx, %rax
	movq	416(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	17224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$17232, %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
.L20:
	.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	$848, %rsp
	.cfi_def_cfa_offset 17280
	leaq	.LC0(%rip), %rbp
	movq	%rbp, %rdi
	movq	%fs:40, %rax
	movq	%rax, 17224(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	leaq	416(%rsp), %rax
	xorl	%r14d, %r14d
	leaq	16(%rsp), %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rax), %rdi
	movq	$0, (%rax)
	leaq	168(%rax), %rbx
	andq	$-8, %rdi
	leaq	0(%r13,%r14,4), %rsi
	addq	$1, %r14
	movq	$0, 160(%rax)
	subq	%rdi, %rax
	leal	168(%rax), %ecx
	movq	%r12, %rax
	shrl	$3, %ecx
	rep stosq
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	movq	%rbx, %rax
	cmpl	%r14d, %r8d
	jg	.L3
.L2:
	movslq	16(%rsp), %rax
	leal	-1(%r8), %ebx
	leaq	20(%rsp), %r9
	movl	$1, %r11d
	leaq	416(%rsp), %rdi
	addq	$1, 416(%rsp,%rax,8)
	cmpl	$1, %ebx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%r11d, %rdx
	xorl	%eax, %eax
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %r10
	.p2align 4,,10
	.p2align 3
.L9:
	movq	(%rdi,%rax,8), %rsi
	testq	%rsi, %rsi
	je	.L6
	movl	(%r9), %ecx
	movl	%eax, %edx
	subl	(%r9), %edx
	addl	%eax, %ecx
	cmpl	$20, %ecx
	ja	.L7
	movslq	%ecx, %rcx
	addq	%r10, %rcx
	addq	%rsi, 416(%rsp,%rcx,8)
.L7:
	cmpl	$20, %edx
	ja	.L6
	movslq	%edx, %rdx
	movq	(%rdi,%rax,8), %rcx
	addq	%r10, %rdx
	addq	%rcx, 416(%rsp,%rdx,8)
.L6:
	addq	$1, %rax
	cmpq	$21, %rax
	jne	.L9
	addl	$1, %r11d
	addq	$168, %rdi
	addq	$4, %r9
	cmpl	%ebx, %r11d
	jne	.L10
.L11:
	leal	-2(%r8), %eax
	movslq	%ebx, %rbx
	movl	$1, %edi
	cltq
	movslq	16(%rsp,%rbx,4), %rdx
	leaq	.LC1(%rip), %rsi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rdx, %rax
	movq	416(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	17224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$17232, %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
.L20:
	.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,num[100],i,j,plus,minus;
    long long int dp[100][21];
    scanf("%d",&n);
    for(i=0; i<n; i++){
        for(j=0; j<21; j++){
            dp[i][j]=0LL;
        }
        scanf("%d",&num[i]);
    }
    dp[0][num[0]]++;
    for(i=1; i<n-1; i++){
        for(j=0; j<21; j++){
            if(dp[i-1][j]!=0){
                plus = j+num[i];
                minus = j-num[i];
                if(plus>-1 && plus<21){
                    dp[i][plus]+=dp[i-1][j];
                }
                if(minus>-1 && minus<21){
                    dp[i][minus]+=dp[i-1][j];
                }
            }
        }
    }
    printf("%lld\n",dp[n-2][num[n-1]]);
    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,num[100],i,j,plus,minus;
    long long int dp[100][21];
    scanf("%d",&n);
    for(i=0; i<n; i++){
        for(j=0; j<21; j++){
            dp[i][j]=0LL;
        }
        scanf("%d",&num[i]);
    }
    dp[0][num[0]]++;
    for(i=1; i<n-1; i++){
        for(j=0; j<21; j++){
            if(dp[i-1][j]!=0){
                plus = j+num[i];
                minus = j-num[i];
                if(plus>-1 && plus<21){
                    dp[i][plus]+=dp[i-1][j];
                }
                if(minus>-1 && minus<21){
                    dp[i][minus]+=dp[i-1][j];
                }
            }
        }
    }
    printf("%lld\n",dp[n-2][num[n-1]]);
    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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-17236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -17232(%rbp)
	jmp	.L2
.L5:
	movl	$0, -17228(%rbp)
	jmp	.L3
.L4:
	movl	-17228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-17232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	$0, -16816(%rbp,%rax,8)
	addl	$1, -17228(%rbp)
.L3:
	cmpl	$20, -17228(%rbp)
	jle	.L4
	leaq	-17216(%rbp), %rdx
	movl	-17232(%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, -17232(%rbp)
.L2:
	movl	-17236(%rbp), %eax
	cmpl	%eax, -17232(%rbp)
	jl	.L5
	movl	-17216(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16816(%rbp,%rdx,8), %rdx
	addq	$1, %rdx
	cltq
	movq	%rdx, -16816(%rbp,%rax,8)
	movl	$1, -17232(%rbp)
	jmp	.L6
.L11:
	movl	$0, -17228(%rbp)
	jmp	.L7
.L10:
	movl	-17232(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-17228(%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	.L8
	movl	-17232(%rbp), %eax
	cltq
	movl	-17216(%rbp,%rax,4), %edx
	movl	-17228(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -17224(%rbp)
	movl	-17232(%rbp), %eax
	cltq
	movl	-17216(%rbp,%rax,4), %edx
	movl	-17228(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -17220(%rbp)
	cmpl	$0, -17224(%rbp)
	js	.L9
	cmpl	$20, -17224(%rbp)
	jg	.L9
	movl	-17224(%rbp), %eax
	movslq	%eax, %rcx
	movl	-17232(%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	-17232(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-17228(%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	-17224(%rbp), %eax
	movslq	%eax, %rsi
	movl	-17232(%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)
.L9:
	cmpl	$0, -17220(%rbp)
	js	.L8
	cmpl	$20, -17220(%rbp)
	jg	.L8
	movl	-17220(%rbp), %eax
	movslq	%eax, %rcx
	movl	-17232(%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	-17232(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-17228(%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	-17220(%rbp), %eax
	movslq	%eax, %rsi
	movl	-17232(%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)
.L8:
	addl	$1, -17228(%rbp)
.L7:
	cmpl	$20, -17228(%rbp)
	jle	.L10
	addl	$1, -17232(%rbp)
.L6:
	movl	-17236(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -17232(%rbp)
	jl	.L11
	movl	-17236(%rbp), %eax
	leal	-2(%rax), %edx
	movl	-17236(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-17216(%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
	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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-17236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -17232(%rbp)
	jmp	.L2
.L5:
	movl	$0, -17228(%rbp)
	jmp	.L3
.L4:
	movl	-17228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-17232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	$0, -16816(%rbp,%rax,8)
	addl	$1, -17228(%rbp)
.L3:
	cmpl	$20, -17228(%rbp)
	jle	.L4
	leaq	-17216(%rbp), %rdx
	movl	-17232(%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, -17232(%rbp)
.L2:
	movl	-17236(%rbp), %eax
	cmpl	%eax, -17232(%rbp)
	jl	.L5
	movl	-17216(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16816(%rbp,%rdx,8), %rdx
	addq	$1, %rdx
	cltq
	movq	%rdx, -16816(%rbp,%rax,8)
	movl	$1, -17232(%rbp)
	jmp	.L6
.L11:
	movl	$0, -17228(%rbp)
	jmp	.L7
.L10:
	movl	-17232(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-17228(%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	.L8
	movl	-17232(%rbp), %eax
	cltq
	movl	-17216(%rbp,%rax,4), %edx
	movl	-17228(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -17224(%rbp)
	movl	-17232(%rbp), %eax
	cltq
	movl	-17216(%rbp,%rax,4), %edx
	movl	-17228(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -17220(%rbp)
	cmpl	$0, -17224(%rbp)
	js	.L9
	cmpl	$20, -17224(%rbp)
	jg	.L9
	movl	-17224(%rbp), %eax
	movslq	%eax, %rcx
	movl	-17232(%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	-17232(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-17228(%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	-17224(%rbp), %eax
	movslq	%eax, %rsi
	movl	-17232(%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)
.L9:
	cmpl	$0, -17220(%rbp)
	js	.L8
	cmpl	$20, -17220(%rbp)
	jg	.L8
	movl	-17220(%rbp), %eax
	movslq	%eax, %rcx
	movl	-17232(%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	-17232(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-17228(%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	-17220(%rbp), %eax
	movslq	%eax, %rsi
	movl	-17232(%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)
.L8:
	addl	$1, -17228(%rbp)
.L7:
	cmpl	$20, -17228(%rbp)
	jle	.L10
	addl	$1, -17232(%rbp)
.L6:
	movl	-17236(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -17232(%rbp)
	jl	.L11
	movl	-17236(%rbp), %eax
	leal	-2(%rax), %edx
	movl	-17236(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-17216(%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
	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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
