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)
{
    int n;
    int array[128];
    unsigned long long dp[128][32] = {0};
    int i, j;

    scanf("%d", &n);
    for (i = 0; i < n; i++) scanf("%d", array + i);
    dp[0][*array] = 1;
    for (i = 1; i < n - 1; i++){
        for (j = 0; j <= 20; j++){
            if (dp[i - 1][j] > 0){
                if (j + array[i] <= 20) dp[i][j + array[i]] += dp[i - 1][j];
                if (j - array[i] >= 0) dp[i][j - array[i]] += dp[i - 1][j];
            }
        }
    }
    printf("%llu\n", dp[n - 2][array[n - 1]]);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%llu\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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32808
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$552, %rsp
	.cfi_def_cfa_offset 33360
	movl	$32768, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 33304(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %r13
	movq	%r13, %rdi
	call	memset@PLT
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	addq	$4, %rbp
	cmpl	%ebx, %r11d
	jg	.L3
.L2:
	movslq	16(%rsp), %rax
	leal	-1(%r11), %ebx
	movq	%r13, %rdi
	leaq	20(%rsp), %r9
	movl	$1, %r10d
	movq	$1, 528(%rsp,%rax,8)
	cmpl	$1, %ebx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%r10d, %r8
	xorl	%eax, %eax
	salq	$5, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	(%rdi,%rax,8), %rsi
	movl	%eax, %edx
	testq	%rsi, %rsi
	je	.L6
	movl	(%r9), %ebp
	leal	0(%rbp,%rax), %ecx
	cmpl	$20, %ecx
	jg	.L7
	movslq	%ecx, %rcx
	addq	%r8, %rcx
	addq	%rsi, 528(%rsp,%rcx,8)
.L7:
	subl	%ebp, %edx
	js	.L6
	movslq	%edx, %rdx
	movq	(%rdi,%rax,8), %rcx
	addq	%r8, %rdx
	addq	%rcx, 528(%rsp,%rdx,8)
.L6:
	addq	$1, %rax
	cmpq	$21, %rax
	jne	.L9
	addl	$1, %r10d
	addq	$256, %rdi
	addq	$4, %r9
	cmpl	%ebx, %r10d
	jne	.L10
.L11:
	movslq	%ebx, %rbx
	leal	-2(%r11), %eax
	movl	$1, %edi
	movslq	16(%rsp,%rbx,4), %rdx
	cltq
	leaq	.LC1(%rip), %rsi
	salq	$5, %rax
	addq	%rdx, %rax
	movq	528(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	33304(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$33320, %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
.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:
```

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	"%d"
.LC1:
	.string	"%llu\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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32808
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$552, %rsp
	.cfi_def_cfa_offset 33360
	movl	$32768, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 33304(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %r13
	movq	%r13, %rdi
	call	memset@PLT
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	addq	$4, %rbp
	cmpl	%ebx, %r11d
	jg	.L3
.L2:
	movslq	16(%rsp), %rax
	leal	-1(%r11), %ebx
	movq	%r13, %rdi
	leaq	20(%rsp), %r9
	movl	$1, %r10d
	movq	$1, 528(%rsp,%rax,8)
	cmpl	$1, %ebx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%r10d, %r8
	xorl	%eax, %eax
	salq	$5, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	(%rdi,%rax,8), %rsi
	movl	%eax, %edx
	testq	%rsi, %rsi
	je	.L6
	movl	(%r9), %ebp
	leal	0(%rbp,%rax), %ecx
	cmpl	$20, %ecx
	jg	.L7
	movslq	%ecx, %rcx
	addq	%r8, %rcx
	addq	%rsi, 528(%rsp,%rcx,8)
.L7:
	subl	%ebp, %edx
	js	.L6
	movslq	%edx, %rdx
	movq	(%rdi,%rax,8), %rcx
	addq	%r8, %rdx
	addq	%rcx, 528(%rsp,%rdx,8)
.L6:
	addq	$1, %rax
	cmpq	$21, %rax
	jne	.L9
	addl	$1, %r10d
	addq	$256, %rdi
	addq	$4, %r9
	cmpl	%ebx, %r10d
	jne	.L10
.L11:
	movslq	%ebx, %rbx
	leal	-2(%r11), %eax
	movl	$1, %edi
	movslq	16(%rsp,%rbx,4), %rdx
	cltq
	leaq	.LC1(%rip), %rsi
	salq	$5, %rax
	addq	%rdx, %rax
	movq	528(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	33304(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$33320, %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
.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%llu\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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32808
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$552, %rsp
	.cfi_def_cfa_offset 33360
	movl	$32768, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 33304(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %r13
	movq	%r13, %rdi
	call	memset@PLT
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	addq	$4, %rbp
	cmpl	%ebx, %r11d
	jg	.L3
.L2:
	movslq	16(%rsp), %rax
	leal	-1(%r11), %ebx
	movq	%r13, %rdi
	leaq	20(%rsp), %r9
	movl	$1, %r10d
	movq	$1, 528(%rsp,%rax,8)
	cmpl	$1, %ebx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%r10d, %r8
	xorl	%eax, %eax
	salq	$5, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	(%rdi,%rax,8), %rsi
	movl	%eax, %edx
	testq	%rsi, %rsi
	je	.L6
	movl	(%r9), %ebp
	leal	0(%rbp,%rax), %ecx
	cmpl	$20, %ecx
	jg	.L7
	movslq	%ecx, %rcx
	addq	%r8, %rcx
	addq	%rsi, 528(%rsp,%rcx,8)
.L7:
	subl	%ebp, %edx
	js	.L6
	movslq	%edx, %rdx
	movq	(%rdi,%rax,8), %rcx
	addq	%r8, %rdx
	addq	%rcx, 528(%rsp,%rdx,8)
.L6:
	addq	$1, %rax
	cmpq	$21, %rax
	jne	.L9
	addl	$1, %r10d
	addq	$256, %rdi
	addq	$4, %r9
	cmpl	%ebx, %r10d
	jne	.L10
.L11:
	movslq	%ebx, %rbx
	leal	-2(%r11), %eax
	movl	$1, %edi
	movslq	16(%rsp,%rbx,4), %rdx
	cltq
	leaq	.LC1(%rip), %rsi
	salq	$5, %rax
	addq	%rdx, %rax
	movq	528(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	33304(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$33320, %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
.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:
```
```c
#include <stdio.h>

int main(void)
{
    int n;
    int array[128];
    unsigned long long dp[128][32] = {0};
    int i, j;

    scanf("%d", &n);
    for (i = 0; i < n; i++) scanf("%d", array + i);
    dp[0][*array] = 1;
    for (i = 1; i < n - 1; i++){
        for (j = 0; j <= 20; j++){
            if (dp[i - 1][j] > 0){
                if (j + array[i] <= 20) dp[i][j + array[i]] += dp[i - 1][j];
                if (j - array[i] >= 0) dp[i][j - array[i]] += dp[i - 1][j];
            }
        }
    }
    printf("%llu\n", dp[n - 2][array[n - 1]]);

    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)
{
    int n;
    int array[128];
    unsigned long long dp[128][32] = {0};
    int i, j;

    scanf("%d", &n);
    for (i = 0; i < n; i++) scanf("%d", array + i);
    dp[0][*array] = 1;
    for (i = 1; i < n - 1; i++){
        for (j = 0; j <= 20; j++){
            if (dp[i - 1][j] > 0){
                if (j + array[i] <= 20) dp[i][j + array[i]] += dp[i - 1][j];
                if (j - array[i] >= 0) dp[i][j - array[i]] += dp[i - 1][j];
            }
        }
    }
    printf("%llu\n", dp[n - 2][array[n - 1]]);

    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)
{
    int n;
    int array[128];
    unsigned long long dp[128][32] = {0};
    int i, j;

    scanf("%d", &n);
    for (i = 0; i < n; i++) scanf("%d", array + i);
    dp[0][*array] = 1;
    for (i = 1; i < n - 1; i++){
        for (j = 0; j <= 20; j++){
            if (dp[i - 1][j] > 0){
                if (j + array[i] <= 20) dp[i][j + array[i]] += dp[i - 1][j];
                if (j - array[i] >= 0) dp[i][j - array[i]] += dp[i - 1][j];
            }
        }
    }
    printf("%llu\n", dp[n - 2][array[n - 1]]);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%llu\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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32808
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$552, %rsp
	.cfi_def_cfa_offset 33360
	movl	$32768, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 33304(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %r13
	movq	%r13, %rdi
	call	memset@PLT
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	addq	$4, %rbp
	cmpl	%ebx, %r11d
	jg	.L3
.L2:
	movslq	16(%rsp), %rax
	leal	-1(%r11), %ebx
	movq	%r13, %rdi
	leaq	20(%rsp), %r9
	movl	$1, %r10d
	movq	$1, 528(%rsp,%rax,8)
	cmpl	$1, %ebx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%r10d, %r8
	xorl	%eax, %eax
	salq	$5, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	(%rdi,%rax,8), %rsi
	movl	%eax, %edx
	testq	%rsi, %rsi
	je	.L6
	movl	(%r9), %ebp
	leal	0(%rbp,%rax), %ecx
	cmpl	$20, %ecx
	jg	.L7
	movslq	%ecx, %rcx
	addq	%r8, %rcx
	addq	%rsi, 528(%rsp,%rcx,8)
.L7:
	subl	%ebp, %edx
	js	.L6
	movslq	%edx, %rdx
	movq	(%rdi,%rax,8), %rcx
	addq	%r8, %rdx
	addq	%rcx, 528(%rsp,%rdx,8)
.L6:
	addq	$1, %rax
	cmpq	$21, %rax
	jne	.L9
	addl	$1, %r10d
	addq	$256, %rdi
	addq	$4, %r9
	cmpl	%ebx, %r10d
	jne	.L10
.L11:
	movslq	%ebx, %rbx
	leal	-2(%r11), %eax
	movl	$1, %edi
	movslq	16(%rsp,%rbx,4), %rdx
	cltq
	leaq	.LC1(%rip), %rsi
	salq	$5, %rax
	addq	%rdx, %rax
	movq	528(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	33304(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$33320, %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
.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:
```

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	"%d"
.LC1:
	.string	"%llu\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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-32768(%rsp), %r11
	.cfi_def_cfa 11, 32808
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$552, %rsp
	.cfi_def_cfa_offset 33360
	movl	$32768, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 33304(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %r13
	movq	%r13, %rdi
	call	memset@PLT
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	addq	$4, %rbp
	cmpl	%ebx, %r11d
	jg	.L3
.L2:
	movslq	16(%rsp), %rax
	leal	-1(%r11), %ebx
	movq	%r13, %rdi
	leaq	20(%rsp), %r9
	movl	$1, %r10d
	movq	$1, 528(%rsp,%rax,8)
	cmpl	$1, %ebx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%r10d, %r8
	xorl	%eax, %eax
	salq	$5, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	(%rdi,%rax,8), %rsi
	movl	%eax, %edx
	testq	%rsi, %rsi
	je	.L6
	movl	(%r9), %ebp
	leal	0(%rbp,%rax), %ecx
	cmpl	$20, %ecx
	jg	.L7
	movslq	%ecx, %rcx
	addq	%r8, %rcx
	addq	%rsi, 528(%rsp,%rcx,8)
.L7:
	subl	%ebp, %edx
	js	.L6
	movslq	%edx, %rdx
	movq	(%rdi,%rax,8), %rcx
	addq	%r8, %rdx
	addq	%rcx, 528(%rsp,%rdx,8)
.L6:
	addq	$1, %rax
	cmpq	$21, %rax
	jne	.L9
	addl	$1, %r10d
	addq	$256, %rdi
	addq	$4, %r9
	cmpl	%ebx, %r10d
	jne	.L10
.L11:
	movslq	%ebx, %rbx
	leal	-2(%r11), %eax
	movl	$1, %edi
	movslq	16(%rsp,%rbx,4), %rdx
	cltq
	leaq	.LC1(%rip), %rsi
	salq	$5, %rax
	addq	%rdx, %rax
	movq	528(%rsp,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	33304(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$33320, %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
.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:
```