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 ans[ 100 + 1 - 2 ][ 20 + 1 ] ;



int main()
{
	int n ;
	scanf( "%d" ,&n ) ;


	int kale[ 100 ] ;


	int i ,j ,pp ,mp ;
	for( i = 0 ; i < n ; ++i )
	{
		scanf( "%d" ,&kale[ i ] ) ;
	}

	ans[ 0 ][ kale[ 0 ] ] = 1 ;

	for( i = 0 ; i < n - 2 ; ++i )
	{
		for( j = 0 ; j <= 20 ; ++j )
		{
			if( ans[ i ][ j ] > 0 )
			{
				pp = j + kale[ i + 1 ] ;
				mp = j - kale[ i + 1 ] ;

				if( pp < 21 )
					ans[ i + 1 ][ pp ] += ans[ i ][ j ] ;

				if( mp >= 0 )
					ans[ i + 1 ][ mp ] += ans[ i ][ j ] ;
			}
		}	
	}

	printf( "%lld\n" ,ans[ i ][ kale[ n - 1 ] ] ) ;


	return 0 ;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ans
	.bss
	.align 32
	.type	ans, @object
	.size	ans, 16632
ans:
	.zero	16632
	.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	$448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -432(%rbp)
	jmp	.L2
.L3:
	leaq	-416(%rbp), %rdx
	movl	-432(%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, -432(%rbp)
.L2:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L3
	movl	-416(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	ans(%rip), %rax
	movq	$1, (%rdx,%rax)
	movl	$0, -432(%rbp)
	jmp	.L4
.L9:
	movl	$0, -428(%rbp)
	jmp	.L5
.L8:
	movl	-428(%rbp), %eax
	movslq	%eax, %rcx
	movl	-432(%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	ans(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	jle	.L6
	movl	-432(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-428(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -424(%rbp)
	movl	-432(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-428(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -420(%rbp)
	cmpl	$20, -424(%rbp)
	jg	.L7
	movl	-432(%rbp), %eax
	leal	1(%rax), %edx
	movl	-424(%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
	leaq	0(,%rax,8), %rdx
	leaq	ans(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-428(%rbp), %eax
	movslq	%eax, %rcx
	movl	-432(%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	ans(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-432(%rbp), %eax
	leal	1(%rax), %edx
	addq	%rsi, %rcx
	movl	-424(%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
	leaq	0(,%rax,8), %rdx
	leaq	ans(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L7:
	cmpl	$0, -420(%rbp)
	js	.L6
	movl	-432(%rbp), %eax
	leal	1(%rax), %edx
	movl	-420(%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
	leaq	0(,%rax,8), %rdx
	leaq	ans(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-428(%rbp), %eax
	movslq	%eax, %rcx
	movl	-432(%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	ans(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-432(%rbp), %eax
	leal	1(%rax), %edx
	addq	%rsi, %rcx
	movl	-420(%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
	leaq	0(,%rax,8), %rdx
	leaq	ans(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L6:
	addl	$1, -428(%rbp)
.L5:
	cmpl	$20, -428(%rbp)
	jle	.L8
	addl	$1, -432(%rbp)
.L4:
	movl	-436(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -432(%rbp)
	jl	.L9
	movl	-436(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movl	-432(%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	ans(%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	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %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), %ebx
	testl	%ebx, %ebx
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L3
.L2:
	movslq	16(%rsp), %rax
	leaq	ans(%rip), %r8
	leal	-2(%rbx), %ebp
	movq	$1, (%r8,%rax,8)
	testl	%ebp, %ebp
	jle	.L12
	movq	%r8, %rdi
	leaq	20(%rsp), %r9
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %r11d
	xorl	%eax, %eax
	movslq	%r11d, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %r10
	.p2align 4,,10
	.p2align 3
.L9:
	movq	(%rdi,%rax,8), %rsi
	testq	%rsi, %rsi
	jle	.L6
	movl	(%r9), %ecx
	movl	%eax, %edx
	subl	(%r9), %edx
	addl	%eax, %ecx
	cmpl	$20, %ecx
	jg	.L7
	movslq	%ecx, %rcx
	addq	%r10, %rcx
	addq	%rsi, (%r8,%rcx,8)
.L7:
	testl	%edx, %edx
	js	.L6
	movslq	%edx, %rdx
	movq	(%rdi,%rax,8), %rcx
	addq	%r10, %rdx
	addq	%rcx, (%r8,%rdx,8)
.L6:
	addq	$1, %rax
	cmpq	$21, %rax
	jne	.L9
	addq	$168, %rdi
	addq	$4, %r9
	cmpl	%r11d, %ebp
	jne	.L10
.L4:
	leal	-1(%rbx), %eax
	movslq	%r11d, %r11
	movl	$1, %edi
	cltq
	leaq	.LC1(%rip), %rsi
	movslq	16(%rsp,%rax,4), %rdx
	leaq	(%r11,%r11,4), %rax
	leaq	(%r11,%rax,4), %rax
	addq	%rdx, %rax
	movq	(%r8,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$440, %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
.L12:
	.cfi_restore_state
	xorl	%r11d, %r11d
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	ans
	.bss
	.align 32
	.type	ans, @object
	.size	ans, 16632
ans:
	.zero	16632
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %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), %ebx
	testl	%ebx, %ebx
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L3
.L2:
	movslq	16(%rsp), %rax
	leaq	ans(%rip), %r8
	leal	-2(%rbx), %ebp
	movq	$1, (%r8,%rax,8)
	testl	%ebp, %ebp
	jle	.L12
	movq	%r8, %rdi
	leaq	20(%rsp), %r9
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %r11d
	xorl	%eax, %eax
	movslq	%r11d, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %r10
	.p2align 4,,10
	.p2align 3
.L9:
	movq	(%rdi,%rax,8), %rsi
	testq	%rsi, %rsi
	jle	.L6
	movl	(%r9), %ecx
	movl	%eax, %edx
	subl	(%r9), %edx
	addl	%eax, %ecx
	cmpl	$20, %ecx
	jg	.L7
	movslq	%ecx, %rcx
	addq	%r10, %rcx
	addq	%rsi, (%r8,%rcx,8)
.L7:
	testl	%edx, %edx
	js	.L6
	movslq	%edx, %rdx
	movq	(%rdi,%rax,8), %rcx
	addq	%r10, %rdx
	addq	%rcx, (%r8,%rdx,8)
.L6:
	addq	$1, %rax
	cmpq	$21, %rax
	jne	.L9
	addq	$168, %rdi
	addq	$4, %r9
	cmpl	%r11d, %ebp
	jne	.L10
.L4:
	leal	-1(%rbx), %eax
	movslq	%r11d, %r11
	movl	$1, %edi
	cltq
	leaq	.LC1(%rip), %rsi
	movslq	16(%rsp,%rax,4), %rdx
	leaq	(%r11,%r11,4), %rax
	leaq	(%r11,%rax,4), %rax
	addq	%rdx, %rax
	movq	(%r8,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$440, %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
.L12:
	.cfi_restore_state
	xorl	%r11d, %r11d
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	ans
	.bss
	.align 32
	.type	ans, @object
	.size	ans, 16632
ans:
	.zero	16632
	.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 ans[ 100 + 1 - 2 ][ 20 + 1 ] ;



int main()
{
	int n ;
	scanf( "%d" ,&n ) ;


	int kale[ 100 ] ;


	int i ,j ,pp ,mp ;
	for( i = 0 ; i < n ; ++i )
	{
		scanf( "%d" ,&kale[ i ] ) ;
	}

	ans[ 0 ][ kale[ 0 ] ] = 1 ;

	for( i = 0 ; i < n - 2 ; ++i )
	{
		for( j = 0 ; j <= 20 ; ++j )
		{
			if( ans[ i ][ j ] > 0 )
			{
				pp = j + kale[ i + 1 ] ;
				mp = j - kale[ i + 1 ] ;

				if( pp < 21 )
					ans[ i + 1 ][ pp ] += ans[ i ][ j ] ;

				if( mp >= 0 )
					ans[ i + 1 ][ mp ] += ans[ i ][ j ] ;
			}
		}	
	}

	printf( "%lld\n" ,ans[ i ][ kale[ 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>


long long ans[ 100 + 1 - 2 ][ 20 + 1 ] ;



int main()
{
	int n ;
	scanf( "%d" ,&n ) ;


	int kale[ 100 ] ;


	int i ,j ,pp ,mp ;
	for( i = 0 ; i < n ; ++i )
	{
		scanf( "%d" ,&kale[ i ] ) ;
	}

	ans[ 0 ][ kale[ 0 ] ] = 1 ;

	for( i = 0 ; i < n - 2 ; ++i )
	{
		for( j = 0 ; j <= 20 ; ++j )
		{
			if( ans[ i ][ j ] > 0 )
			{
				pp = j + kale[ i + 1 ] ;
				mp = j - kale[ i + 1 ] ;

				if( pp < 21 )
					ans[ i + 1 ][ pp ] += ans[ i ][ j ] ;

				if( mp >= 0 )
					ans[ i + 1 ][ mp ] += ans[ i ][ j ] ;
			}
		}	
	}

	printf( "%lld\n" ,ans[ i ][ kale[ n - 1 ] ] ) ;


	return 0 ;
}```

Unoptimized Assembly Code:

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