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) {
	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;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.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	-32768(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32784(%rbp), %rax
	movl	$32768, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-32816(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-32808(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-32808(%rbp), %rax
	addq	$32, %rax
	movq	$1, -32784(%rbp,%rax,8)
	movq	$2, -32800(%rbp)
	jmp	.L2
.L7:
	leaq	-32808(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -32792(%rbp)
	jmp	.L3
.L6:
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	addq	%rdx, %rax
	testq	%rax, %rax
	js	.L4
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	addq	%rdx, %rax
	cmpq	$20, %rax
	jg	.L4
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	addq	%rax, %rdx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rdx, %rax
	movq	-32784(%rbp,%rax,8), %rdx
	movq	-32800(%rbp), %rax
	subq	$1, %rax
	salq	$5, %rax
	movq	%rax, %rcx
	movq	-32792(%rbp), %rax
	addq	%rcx, %rax
	movq	-32784(%rbp,%rax,8), %rax
	movq	-32808(%rbp), %rsi
	movq	-32792(%rbp), %rcx
	addq	%rsi, %rcx
	addq	%rax, %rdx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rcx, %rax
	movq	%rdx, -32784(%rbp,%rax,8)
.L4:
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	js	.L5
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	subq	%rdx, %rax
	cmpq	$20, %rax
	jg	.L5
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rcx, %rax
	movq	-32784(%rbp,%rax,8), %rcx
	movq	-32800(%rbp), %rax
	subq	$1, %rax
	salq	$5, %rax
	movq	%rax, %rdx
	movq	-32792(%rbp), %rax
	addq	%rdx, %rax
	movq	-32784(%rbp,%rax,8), %rdx
	movq	-32808(%rbp), %rsi
	movq	-32792(%rbp), %rax
	subq	%rsi, %rax
	movq	%rax, %rdi
	addq	%rcx, %rdx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rdi, %rax
	movq	%rdx, -32784(%rbp,%rax,8)
.L5:
	addq	$1, -32792(%rbp)
.L3:
	cmpq	$20, -32792(%rbp)
	jle	.L6
	addq	$1, -32800(%rbp)
.L2:
	movq	-32816(%rbp), %rax
	cmpq	%rax, -32800(%rbp)
	jl	.L7
	leaq	-32808(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-32816(%rbp), %rax
	subq	$1, %rax
	movq	-32808(%rbp), %rdx
	salq	$5, %rax
	addq	%rdx, %rax
	movq	-32784(%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	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"%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
	.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:

#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;
}
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) {
	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;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.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	-32768(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32784(%rbp), %rax
	movl	$32768, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-32816(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-32808(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-32808(%rbp), %rax
	addq	$32, %rax
	movq	$1, -32784(%rbp,%rax,8)
	movq	$2, -32800(%rbp)
	jmp	.L2
.L7:
	leaq	-32808(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -32792(%rbp)
	jmp	.L3
.L6:
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	addq	%rdx, %rax
	testq	%rax, %rax
	js	.L4
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	addq	%rdx, %rax
	cmpq	$20, %rax
	jg	.L4
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	addq	%rax, %rdx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rdx, %rax
	movq	-32784(%rbp,%rax,8), %rdx
	movq	-32800(%rbp), %rax
	subq	$1, %rax
	salq	$5, %rax
	movq	%rax, %rcx
	movq	-32792(%rbp), %rax
	addq	%rcx, %rax
	movq	-32784(%rbp,%rax,8), %rax
	movq	-32808(%rbp), %rsi
	movq	-32792(%rbp), %rcx
	addq	%rsi, %rcx
	addq	%rax, %rdx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rcx, %rax
	movq	%rdx, -32784(%rbp,%rax,8)
.L4:
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	js	.L5
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	subq	%rdx, %rax
	cmpq	$20, %rax
	jg	.L5
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rcx, %rax
	movq	-32784(%rbp,%rax,8), %rcx
	movq	-32800(%rbp), %rax
	subq	$1, %rax
	salq	$5, %rax
	movq	%rax, %rdx
	movq	-32792(%rbp), %rax
	addq	%rdx, %rax
	movq	-32784(%rbp,%rax,8), %rdx
	movq	-32808(%rbp), %rsi
	movq	-32792(%rbp), %rax
	subq	%rsi, %rax
	movq	%rax, %rdi
	addq	%rcx, %rdx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rdi, %rax
	movq	%rdx, -32784(%rbp,%rax,8)
.L5:
	addq	$1, -32792(%rbp)
.L3:
	cmpq	$20, -32792(%rbp)
	jle	.L6
	addq	$1, -32800(%rbp)
.L2:
	movq	-32816(%rbp), %rax
	cmpq	%rax, -32800(%rbp)
	jl	.L7
	leaq	-32808(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-32816(%rbp), %rax
	subq	$1, %rax
	movq	-32808(%rbp), %rdx
	salq	$5, %rax
	addq	%rdx, %rax
	movq	-32784(%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	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"%lld"
.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	-32768(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32784(%rbp), %rax
	movl	$32768, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-32816(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-32808(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-32808(%rbp), %rax
	addq	$32, %rax
	movq	$1, -32784(%rbp,%rax,8)
	movq	$2, -32800(%rbp)
	jmp	.L2
.L7:
	leaq	-32808(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -32792(%rbp)
	jmp	.L3
.L6:
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	addq	%rdx, %rax
	testq	%rax, %rax
	js	.L4
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	addq	%rdx, %rax
	cmpq	$20, %rax
	jg	.L4
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	addq	%rax, %rdx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rdx, %rax
	movq	-32784(%rbp,%rax,8), %rdx
	movq	-32800(%rbp), %rax
	subq	$1, %rax
	salq	$5, %rax
	movq	%rax, %rcx
	movq	-32792(%rbp), %rax
	addq	%rcx, %rax
	movq	-32784(%rbp,%rax,8), %rax
	movq	-32808(%rbp), %rsi
	movq	-32792(%rbp), %rcx
	addq	%rsi, %rcx
	addq	%rax, %rdx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rcx, %rax
	movq	%rdx, -32784(%rbp,%rax,8)
.L4:
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	js	.L5
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	subq	%rdx, %rax
	cmpq	$20, %rax
	jg	.L5
	movq	-32808(%rbp), %rdx
	movq	-32792(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rcx, %rax
	movq	-32784(%rbp,%rax,8), %rcx
	movq	-32800(%rbp), %rax
	subq	$1, %rax
	salq	$5, %rax
	movq	%rax, %rdx
	movq	-32792(%rbp), %rax
	addq	%rdx, %rax
	movq	-32784(%rbp,%rax,8), %rdx
	movq	-32808(%rbp), %rsi
	movq	-32792(%rbp), %rax
	subq	%rsi, %rax
	movq	%rax, %rdi
	addq	%rcx, %rdx
	movq	-32800(%rbp), %rax
	salq	$5, %rax
	addq	%rdi, %rax
	movq	%rdx, -32784(%rbp,%rax,8)
.L5:
	addq	$1, -32792(%rbp)
.L3:
	cmpq	$20, -32792(%rbp)
	jle	.L6
	addq	$1, -32800(%rbp)
.L2:
	movq	-32816(%rbp), %rax
	cmpq	%rax, -32800(%rbp)
	jl	.L7
	leaq	-32808(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-32816(%rbp), %rax
	subq	$1, %rax
	movq	-32808(%rbp), %rdx
	salq	$5, %rax
	addq	%rdx, %rax
	movq	-32784(%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	.L9
	call	__stack_chk_fail@PLT
.L9:
	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:
