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(){
	int N;
	scanf("%d",&N);
	int data;
	long long int cast[N-1][21];
	int i,j;
	for(i=0;i<N-1;i++){
		for(j=0;j<21;j++){
			cast[i][j]=0;
			}
	}
	scanf("%d",&data);
	cast[0][data]=1;
	for(i=1;i<N-1;i++){
		scanf("%d",&data);
		for(j=0;j<21;j++){
			if(data+j<21){
				cast[i][j+data]=cast[i][j+data]+cast[i-1][j];
			}
			if(j-data>-1){
				cast[i][j-data]=cast[i][j-data]+cast[i-1][j];
			}
		}
	}
	scanf("%d",&data);
	printf("%lld\n",cast[N-2][data]);
	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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88(%rbp), %eax
	leal	-1(%rax), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$1344, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$1344, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$1344, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$1344, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L5
.L8:
	movl	$0, -76(%rbp)
	jmp	.L6
.L7:
	movq	-64(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rsi
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	$0, (%rcx,%rax,8)
	addl	$1, -76(%rbp)
.L6:
	cmpl	$20, -76(%rbp)
	jle	.L7
	addl	$1, -80(%rbp)
.L5:
	movl	-88(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L8
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	$1, (%rax,%rdx,8)
	movl	$1, -80(%rbp)
	jmp	.L9
.L14:
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -76(%rbp)
	jmp	.L10
.L13:
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	addl	%edx, %eax
	cmpl	$20, %eax
	jg	.L11
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	addl	%edx, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rsi
	movl	-80(%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,%rax,8), %rsi
	movl	-80(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	(%rcx,%rax,8), %rdx
	movl	-84(%rbp), %ecx
	movl	-76(%rbp), %eax
	addl	%ecx, %eax
	addq	%rdx, %rsi
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdi
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	%rsi, (%rcx,%rax,8)
.L11:
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	subl	%edx, %eax
	testl	%eax, %eax
	js	.L12
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	subl	%edx, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rsi
	movl	-80(%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,%rax,8), %rsi
	movl	-80(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	(%rcx,%rax,8), %rdx
	movl	-84(%rbp), %ecx
	movl	-76(%rbp), %eax
	subl	%ecx, %eax
	addq	%rdx, %rsi
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdi
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	%rsi, (%rcx,%rax,8)
.L12:
	addl	$1, -76(%rbp)
.L10:
	cmpl	$20, -76(%rbp)
	jle	.L13
	addl	$1, -80(%rbp)
.L9:
	movl	-88(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L14
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88(%rbp), %eax
	leal	-2(%rax), %edx
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %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
	movq	(%rcx,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC0(%rip), %r14
	leaq	-64(%rbp), %rsi
	pushq	%r13
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %edx
	movq	%rsp, %rdi
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rax
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rax,%rsi,4), %rax
	leaq	15(,%rax,8), %rax
	movq	%rax, %rsi
	andq	$-4096, %rax
	subq	%rax, %rdi
	andq	$-16, %rsi
	cmpq	%rdi, %rsp
	je	.L3
.L19:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L19
.L3:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	jne	.L20
.L4:
	movq	%rsp, %rdi
	movq	%rdi, -80(%rbp)
	testl	%ecx, %ecx
	jle	.L5
	leal	-2(%rdx), %eax
	xorl	%esi, %esi
	addq	$1, %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,4), %rdx
	salq	$3, %rdx
	call	memset@PLT
.L5:
	leaq	-60(%rbp), %r12
	xorl	%eax, %eax
	movq	%r14, %rdi
	movq	%r12, %rsi
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	-80(%rbp), %rbx
	cmpl	$2, -64(%rbp)
	movq	$1, (%rbx,%rax,8)
	jle	.L6
	xorl	%ebx, %ebx
	movq	$-168, %r8
	movl	$21, %r15d
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movq	%r8, -72(%rbp)
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %r8
	leaq	(%rsi,%r15), %rax
	leal	(%rsi,%rsi), %edi
	movq	%rsi, %rdx
	leaq	(%rcx,%rax,8), %rax
	movq	%rsi, %rcx
	leal	21(%rsi), %r11d
	negl	%edi
	negq	%rcx
	leaq	(%r8,%rcx,8), %r10
	movl	%esi, %ecx
	negl	%ecx
	movslq	%ecx, %rcx
	subq	%rsi, %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$20, %edx
	jg	.L7
	leaq	(%rax,%r10), %rsi
	movq	(%rsi,%rbx), %rsi
	addq	%rsi, (%rax)
.L7:
	movl	%edx, %esi
	addl	%edi, %esi
	js	.L8
	leaq	(%rax,%r10), %rsi
	movq	(%rsi,%rbx), %rsi
	addq	%rsi, (%rax,%rcx,8)
.L8:
	addl	$1, %edx
	addq	$8, %rax
	cmpl	%r11d, %edx
	jne	.L9
	movl	-64(%rbp), %eax
	addl	$1, %r13d
	addq	$21, %r15
	subq	$168, %r8
	addq	$168, %rbx
	subl	$1, %eax
	cmpl	%r13d, %eax
	jg	.L10
.L6:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	movslq	-60(%rbp), %rdx
	leaq	.LC1(%rip), %rsi
	movq	-80(%rbp), %rbx
	movl	$1, %edi
	subl	$2, %eax
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rdx, %rax
	movq	(%rbx,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L21
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L20:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rsi)
	jmp	.L4
.L21:
	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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC0(%rip), %r14
	leaq	-64(%rbp), %rsi
	pushq	%r13
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %edx
	movq	%rsp, %rdi
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rax
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rax,%rsi,4), %rax
	leaq	15(,%rax,8), %rax
	movq	%rax, %rsi
	andq	$-4096, %rax
	subq	%rax, %rdi
	andq	$-16, %rsi
	cmpq	%rdi, %rsp
	je	.L3
.L19:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L19
.L3:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	jne	.L20
.L4:
	movq	%rsp, %rdi
	movq	%rdi, -80(%rbp)
	testl	%ecx, %ecx
	jle	.L5
	leal	-2(%rdx), %eax
	xorl	%esi, %esi
	addq	$1, %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,4), %rdx
	salq	$3, %rdx
	call	memset@PLT
.L5:
	leaq	-60(%rbp), %r12
	xorl	%eax, %eax
	movq	%r14, %rdi
	movq	%r12, %rsi
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	-80(%rbp), %rbx
	cmpl	$2, -64(%rbp)
	movq	$1, (%rbx,%rax,8)
	jle	.L6
	xorl	%ebx, %ebx
	movq	$-168, %r8
	movl	$21, %r15d
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movq	%r8, -72(%rbp)
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %r8
	leaq	(%rsi,%r15), %rax
	leal	(%rsi,%rsi), %edi
	movq	%rsi, %rdx
	leaq	(%rcx,%rax,8), %rax
	movq	%rsi, %rcx
	leal	21(%rsi), %r11d
	negl	%edi
	negq	%rcx
	leaq	(%r8,%rcx,8), %r10
	movl	%esi, %ecx
	negl	%ecx
	movslq	%ecx, %rcx
	subq	%rsi, %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$20, %edx
	jg	.L7
	leaq	(%rax,%r10), %rsi
	movq	(%rsi,%rbx), %rsi
	addq	%rsi, (%rax)
.L7:
	movl	%edx, %esi
	addl	%edi, %esi
	js	.L8
	leaq	(%rax,%r10), %rsi
	movq	(%rsi,%rbx), %rsi
	addq	%rsi, (%rax,%rcx,8)
.L8:
	addl	$1, %edx
	addq	$8, %rax
	cmpl	%r11d, %edx
	jne	.L9
	movl	-64(%rbp), %eax
	addl	$1, %r13d
	addq	$21, %r15
	subq	$168, %r8
	addq	$168, %rbx
	subl	$1, %eax
	cmpl	%r13d, %eax
	jg	.L10
.L6:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	movslq	-60(%rbp), %rdx
	leaq	.LC1(%rip), %rsi
	movq	-80(%rbp), %rbx
	movl	$1, %edi
	subl	$2, %eax
	cltq
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rdx, %rax
	movq	(%rbx,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L21
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L20:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rsi)
	jmp	.L4
.L21:
	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(){
	int N;
	scanf("%d",&N);
	int data;
	long long int cast[N-1][21];
	int i,j;
	for(i=0;i<N-1;i++){
		for(j=0;j<21;j++){
			cast[i][j]=0;
			}
	}
	scanf("%d",&data);
	cast[0][data]=1;
	for(i=1;i<N-1;i++){
		scanf("%d",&data);
		for(j=0;j<21;j++){
			if(data+j<21){
				cast[i][j+data]=cast[i][j+data]+cast[i-1][j];
			}
			if(j-data>-1){
				cast[i][j-data]=cast[i][j-data]+cast[i-1][j];
			}
		}
	}
	scanf("%d",&data);
	printf("%lld\n",cast[N-2][data]);
	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(){
	int N;
	scanf("%d",&N);
	int data;
	long long int cast[N-1][21];
	int i,j;
	for(i=0;i<N-1;i++){
		for(j=0;j<21;j++){
			cast[i][j]=0;
			}
	}
	scanf("%d",&data);
	cast[0][data]=1;
	for(i=1;i<N-1;i++){
		scanf("%d",&data);
		for(j=0;j<21;j++){
			if(data+j<21){
				cast[i][j+data]=cast[i][j+data]+cast[i-1][j];
			}
			if(j-data>-1){
				cast[i][j-data]=cast[i][j-data]+cast[i-1][j];
			}
		}
	}
	scanf("%d",&data);
	printf("%lld\n",cast[N-2][data]);
	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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88(%rbp), %eax
	leal	-1(%rax), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$1344, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$1344, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$1344, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$1344, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L5
.L8:
	movl	$0, -76(%rbp)
	jmp	.L6
.L7:
	movq	-64(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rsi
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	$0, (%rcx,%rax,8)
	addl	$1, -76(%rbp)
.L6:
	cmpl	$20, -76(%rbp)
	jle	.L7
	addl	$1, -80(%rbp)
.L5:
	movl	-88(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L8
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	$1, (%rax,%rdx,8)
	movl	$1, -80(%rbp)
	jmp	.L9
.L14:
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -76(%rbp)
	jmp	.L10
.L13:
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	addl	%edx, %eax
	cmpl	$20, %eax
	jg	.L11
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	addl	%edx, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rsi
	movl	-80(%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,%rax,8), %rsi
	movl	-80(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	(%rcx,%rax,8), %rdx
	movl	-84(%rbp), %ecx
	movl	-76(%rbp), %eax
	addl	%ecx, %eax
	addq	%rdx, %rsi
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdi
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	%rsi, (%rcx,%rax,8)
.L11:
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	subl	%edx, %eax
	testl	%eax, %eax
	js	.L12
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	subl	%edx, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rsi
	movl	-80(%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,%rax,8), %rsi
	movl	-80(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	(%rcx,%rax,8), %rdx
	movl	-84(%rbp), %ecx
	movl	-76(%rbp), %eax
	subl	%ecx, %eax
	addq	%rdx, %rsi
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdi
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	%rsi, (%rcx,%rax,8)
.L12:
	addl	$1, -76(%rbp)
.L10:
	cmpl	$20, -76(%rbp)
	jle	.L13
	addl	$1, -80(%rbp)
.L9:
	movl	-88(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L14
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88(%rbp), %eax
	leal	-2(%rax), %edx
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %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
	movq	(%rcx,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88(%rbp), %eax
	leal	-1(%rax), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$1344, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$1344, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$1344, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$1344, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L5
.L8:
	movl	$0, -76(%rbp)
	jmp	.L6
.L7:
	movq	-64(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rsi
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	$0, (%rcx,%rax,8)
	addl	$1, -76(%rbp)
.L6:
	cmpl	$20, -76(%rbp)
	jle	.L7
	addl	$1, -80(%rbp)
.L5:
	movl	-88(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L8
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	$1, (%rax,%rdx,8)
	movl	$1, -80(%rbp)
	jmp	.L9
.L14:
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -76(%rbp)
	jmp	.L10
.L13:
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	addl	%edx, %eax
	cmpl	$20, %eax
	jg	.L11
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	addl	%edx, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rsi
	movl	-80(%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,%rax,8), %rsi
	movl	-80(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	(%rcx,%rax,8), %rdx
	movl	-84(%rbp), %ecx
	movl	-76(%rbp), %eax
	addl	%ecx, %eax
	addq	%rdx, %rsi
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdi
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	%rsi, (%rcx,%rax,8)
.L11:
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	subl	%edx, %eax
	testl	%eax, %eax
	js	.L12
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	subl	%edx, %eax
	movq	-64(%rbp), %rcx
	movslq	%eax, %rsi
	movl	-80(%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,%rax,8), %rsi
	movl	-80(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	(%rcx,%rax,8), %rdx
	movl	-84(%rbp), %ecx
	movl	-76(%rbp), %eax
	subl	%ecx, %eax
	addq	%rdx, %rsi
	movq	-64(%rbp), %rcx
	movslq	%eax, %rdi
	movl	-80(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movq	%rsi, (%rcx,%rax,8)
.L12:
	addl	$1, -76(%rbp)
.L10:
	cmpl	$20, -76(%rbp)
	jle	.L13
	addl	$1, -80(%rbp)
.L9:
	movl	-88(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L14
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88(%rbp), %eax
	leal	-2(%rax), %edx
	movl	-84(%rbp), %eax
	movq	-64(%rbp), %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
	movq	(%rcx,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
