Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void) {
	long long i,j,n,d[128][32]={0},m;
	scanf("%lld",&n);
	scanf("%lld",&m);
	d[1][m] = 1;
	for(i = 2;i <= n-1;i++){
		scanf("%lld",&m);
		for(j = 0;j <= 20;j++){
			if(0 <= j + m && j + m <= 20){d[i][j+m]+=d[i-1][j];}
			if(0 <= j - m && j - m <= 20){d[i][j-m]+=d[i-1][j];}
		}
	}
	scanf("%lld",&m);
	printf("%lld\n",d[n-1][m]);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32824
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 32864
	movl	$32768, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 32792(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r15
	movq	%r13, %rdi
	call	memset@PLT
	movq	%rsp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	cmpq	$2, (%rsp)
	movq	$1, 272(%rsp,%rax,8)
	jle	.L2
	leaq	528(%rsp), %rbx
	movl	$512, %ebp
	movl	$2, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	movq	%rax, %rcx
	leaq	21(%rax), %r8
	negq	%rcx
	leaq	0(%rbp,%rcx,8), %rsi
	leaq	(%rcx,%rcx), %rdi
	salq	$4, %rcx
	addq	%rbp, %rcx
	addq	%r13, %rsi
	addq	%r13, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpq	$20, %rax
	ja	.L3
	movq	-256(%rsi,%rax,8), %rdx
	addq	%rdx, (%rbx,%rax,8)
.L3:
	leaq	(%rax,%rdi), %rdx
	cmpq	$20, %rdx
	ja	.L4
	movq	-256(%rsi,%rax,8), %rdx
	addq	%rdx, (%rcx,%rax,8)
.L4:
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L5
	addq	$1, %r12
	addq	$256, %rbp
	addq	$256, %rbx
	cmpq	%r12, (%rsp)
	jg	.L6
.L2:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	subq	$1, %rax
	salq	$5, %rax
	addq	8(%rsp), %rax
	movq	16(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	32792(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$32808, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32824
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 32864
	movl	$32768, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 32792(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r15
	movq	%r13, %rdi
	call	memset@PLT
	movq	%rsp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	cmpq	$2, (%rsp)
	movq	$1, 272(%rsp,%rax,8)
	jle	.L2
	leaq	528(%rsp), %rbx
	movl	$512, %ebp
	movl	$2, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	movq	%rax, %rcx
	leaq	21(%rax), %r8
	negq	%rcx
	leaq	0(%rbp,%rcx,8), %rsi
	leaq	(%rcx,%rcx), %rdi
	salq	$4, %rcx
	addq	%rbp, %rcx
	addq	%r13, %rsi
	addq	%r13, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpq	$20, %rax
	ja	.L3
	movq	-256(%rsi,%rax,8), %rdx
	addq	%rdx, (%rbx,%rax,8)
.L3:
	leaq	(%rax,%rdi), %rdx
	cmpq	$20, %rdx
	ja	.L4
	movq	-256(%rsi,%rax,8), %rdx
	addq	%rdx, (%rcx,%rax,8)
.L4:
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L5
	addq	$1, %r12
	addq	$256, %rbp
	addq	$256, %rbx
	cmpq	%r12, (%rsp)
	jg	.L6
.L2:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	subq	$1, %rax
	salq	$5, %rax
	addq	8(%rsp), %rax
	movq	16(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	32792(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$32808, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32824
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 32864
	movl	$32768, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 32792(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r15
	movq	%r13, %rdi
	call	memset@PLT
	movq	%rsp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	cmpq	$2, (%rsp)
	movq	$1, 272(%rsp,%rax,8)
	jle	.L2
	leaq	528(%rsp), %rbx
	movl	$512, %ebp
	movl	$2, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	movq	%rax, %rcx
	leaq	21(%rax), %r8
	negq	%rcx
	leaq	0(%rbp,%rcx,8), %rsi
	leaq	(%rcx,%rcx), %rdi
	salq	$4, %rcx
	addq	%rbp, %rcx
	addq	%r13, %rsi
	addq	%r13, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpq	$20, %rax
	ja	.L3
	movq	-256(%rsi,%rax,8), %rdx
	addq	%rdx, (%rbx,%rax,8)
.L3:
	leaq	(%rax,%rdi), %rdx
	cmpq	$20, %rdx
	ja	.L4
	movq	-256(%rsi,%rax,8), %rdx
	addq	%rdx, (%rcx,%rax,8)
.L4:
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L5
	addq	$1, %r12
	addq	$256, %rbp
	addq	$256, %rbx
	cmpq	%r12, (%rsp)
	jg	.L6
.L2:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	subq	$1, %rax
	salq	$5, %rax
	addq	8(%rsp), %rax
	movq	16(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	32792(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$32808, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.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:
```
```c
#include <stdio.h>

int main(void) {
	long long i,j,n,d[128][32]={0},m;
	scanf("%lld",&n);
	scanf("%lld",&m);
	d[1][m] = 1;
	for(i = 2;i <= n-1;i++){
		scanf("%lld",&m);
		for(j = 0;j <= 20;j++){
			if(0 <= j + m && j + m <= 20){d[i][j+m]+=d[i-1][j];}
			if(0 <= j - m && j - m <= 20){d[i][j-m]+=d[i-1][j];}
		}
	}
	scanf("%lld",&m);
	printf("%lld\n",d[n-1][m]);
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void) {
	long long i,j,n,d[128][32]={0},m;
	scanf("%lld",&n);
	scanf("%lld",&m);
	d[1][m] = 1;
	for(i = 2;i <= n-1;i++){
		scanf("%lld",&m);
		for(j = 0;j <= 20;j++){
			if(0 <= j + m && j + m <= 20){d[i][j+m]+=d[i-1][j];}
			if(0 <= j - m && j - m <= 20){d[i][j-m]+=d[i-1][j];}
		}
	}
	scanf("%lld",&m);
	printf("%lld\n",d[n-1][m]);
	return 0;
}```

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.
Optimized Assembly Code:

11
8 3 2 4 8 7 2 4 0 8 8

10

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void) {
	long long i,j,n,d[128][32]={0},m;
	scanf("%lld",&n);
	scanf("%lld",&m);
	d[1][m] = 1;
	for(i = 2;i <= n-1;i++){
		scanf("%lld",&m);
		for(j = 0;j <= 20;j++){
			if(0 <= j + m && j + m <= 20){d[i][j+m]+=d[i-1][j];}
			if(0 <= j - m && j - m <= 20){d[i][j-m]+=d[i-1][j];}
		}
	}
	scanf("%lld",&m);
	printf("%lld\n",d[n-1][m]);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32824
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 32864
	movl	$32768, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 32792(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r15
	movq	%r13, %rdi
	call	memset@PLT
	movq	%rsp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	cmpq	$2, (%rsp)
	movq	$1, 272(%rsp,%rax,8)
	jle	.L2
	leaq	528(%rsp), %rbx
	movl	$512, %ebp
	movl	$2, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	movq	%rax, %rcx
	leaq	21(%rax), %r8
	negq	%rcx
	leaq	0(%rbp,%rcx,8), %rsi
	leaq	(%rcx,%rcx), %rdi
	salq	$4, %rcx
	addq	%rbp, %rcx
	addq	%r13, %rsi
	addq	%r13, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpq	$20, %rax
	ja	.L3
	movq	-256(%rsi,%rax,8), %rdx
	addq	%rdx, (%rbx,%rax,8)
.L3:
	leaq	(%rax,%rdi), %rdx
	cmpq	$20, %rdx
	ja	.L4
	movq	-256(%rsi,%rax,8), %rdx
	addq	%rdx, (%rcx,%rax,8)
.L4:
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L5
	addq	$1, %r12
	addq	$256, %rbp
	addq	$256, %rbx
	cmpq	%r12, (%rsp)
	jg	.L6
.L2:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	subq	$1, %rax
	salq	$5, %rax
	addq	8(%rsp), %rax
	movq	16(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	32792(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$32808, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32824
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 32864
	movl	$32768, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 32792(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r15
	movq	%r13, %rdi
	call	memset@PLT
	movq	%rsp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	cmpq	$2, (%rsp)
	movq	$1, 272(%rsp,%rax,8)
	jle	.L2
	leaq	528(%rsp), %rbx
	movl	$512, %ebp
	movl	$2, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	movq	%rax, %rcx
	leaq	21(%rax), %r8
	negq	%rcx
	leaq	0(%rbp,%rcx,8), %rsi
	leaq	(%rcx,%rcx), %rdi
	salq	$4, %rcx
	addq	%rbp, %rcx
	addq	%r13, %rsi
	addq	%r13, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpq	$20, %rax
	ja	.L3
	movq	-256(%rsi,%rax,8), %rdx
	addq	%rdx, (%rbx,%rax,8)
.L3:
	leaq	(%rax,%rdi), %rdx
	cmpq	$20, %rdx
	ja	.L4
	movq	-256(%rsi,%rax,8), %rdx
	addq	%rdx, (%rcx,%rax,8)
.L4:
	addq	$1, %rax
	cmpq	%rax, %r8
	jne	.L5
	addq	$1, %r12
	addq	$256, %rbp
	addq	$256, %rbx
	cmpq	%r12, (%rsp)
	jg	.L6
.L2:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	subq	$1, %rax
	salq	$5, %rax
	addq	8(%rsp), %rax
	movq	16(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	32792(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$32808, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.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:
```