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

```c
long long t[21][2],a,d;main(b){scanf("%d%d",&a,&b),t[b][a&1]=1;for(;(d%=21)||--a-1&&scanf("%d",&b);t[d++][a&1]=((b>d?0:t[d-b][!(a&1)])+((b<(21-d))?t[b+d][!(a&1)]:0)));scanf("%d",&b);a=!printf("%lld\n",t[b][0]);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 336
t:
	.zero	336
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	d
	.align 8
	.type	d, @object
	.size	d, 8
d:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	leaq	-4(%rbp), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	movq	a(%rip), %rdx
	andl	$1, %edx
	cltq
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L2
.L7:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	d(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L3
	movq	d(%rip), %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	a(%rip), %rax
	andl	$1, %eax
	testq	%rax, %rax
	sete	%al
	movzbl	%al, %eax
	cltq
	addq	%rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rsi
	jmp	.L4
.L3:
	movl	$0, %esi
.L4:
	movl	-4(%rbp), %eax
	cltq
	movq	d(%rip), %rcx
	movl	$21, %edx
	subq	%rcx, %rdx
	cmpq	%rdx, %rax
	jge	.L5
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	d(%rip), %rax
	addq	%rax, %rdx
	movq	a(%rip), %rax
	andl	$1, %eax
	testq	%rax, %rax
	sete	%al
	movzbl	%al, %eax
	cltq
	addq	%rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rcx
	jmp	.L6
.L5:
	movl	$0, %ecx
.L6:
	movq	d(%rip), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, d(%rip)
	movq	a(%rip), %rdx
	andl	$1, %edx
	addq	%rsi, %rcx
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L2:
	movq	d(%rip), %rcx
	movabsq	$-4392081922311798003, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$4, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	%rdx, d(%rip)
	movq	d(%rip), %rax
	testq	%rax, %rax
	jne	.L7
	movq	a(%rip), %rax
	subq	$1, %rax
	movq	%rax, a(%rip)
	movq	a(%rip), %rax
	cmpq	$1, %rax
	je	.L8
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	testl	%eax, %eax
	jne	.L7
.L8:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movq	%rax, a(%rip)
	movl	$0, %eax
	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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	a(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movabsq	$-4392081922311798003, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	leaq	12(%rsp), %r12
	movl	%edi, 12(%rsp)
	leaq	.LC0(%rip), %rdi
	movq	%r12, %rdx
	call	scanf@PLT
	movq	a(%rip), %rsi
	movslq	12(%rsp), %rdi
	movq	d(%rip), %rcx
	movq	%rsi, %rax
	andl	$1, %eax
	leaq	(%rax,%rdi,2), %rax
	movq	$1, 0(%rbp,%rax,8)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	scanf@PLT
	testl	%eax, %eax
	je	.L6
	movq	d(%rip), %rdx
	movq	a(%rip), %rsi
	movslq	12(%rsp), %rdi
.L5:
	xorl	%r8d, %r8d
	cmpq	%rdx, %rdi
	jg	.L3
	movq	%rsi, %rax
	movq	%rdx, %rcx
	notq	%rax
	subq	%rdi, %rcx
	andl	$1, %eax
	leaq	(%rax,%rcx,2), %rax
	movq	0(%rbp,%rax,8), %r8
.L3:
	movl	$21, %eax
	subq	%rdx, %rax
	cmpq	%rax, %rdi
	jge	.L4
	movq	%rsi, %rax
	leaq	(%rdi,%rdx), %rcx
	notq	%rax
	andl	$1, %eax
	leaq	(%rax,%rcx,2), %rax
	addq	0(%rbp,%rax,8), %r8
.L4:
	movq	%rsi, %rax
	leaq	1(%rdx), %rcx
	andl	$1, %eax
	leaq	(%rax,%rdx,2), %rax
	movq	%r8, 0(%rbp,%rax,8)
.L2:
	movq	%rcx, %rax
	imulq	%rbx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$4, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	leaq	(%rdx,%rax,4), %rax
	subq	%rax, %rcx
	movq	%rcx, d(%rip)
	movq	%rcx, %rdx
	jne	.L5
	subq	$1, %rsi
	movq	%rsi, a(%rip)
	cmpq	$1, %rsi
	jne	.L16
.L6:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	12(%rsp), %rax
	leaq	.LC2(%rip), %rdi
	salq	$4, %rax
	movq	0(%rbp,%rax), %rsi
	xorl	%eax, %eax
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movq	%rax, a(%rip)
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	d
	.bss
	.align 8
	.type	d, @object
	.size	d, 8
d:
	.zero	8
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 336
t:
	.zero	336
	.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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	a(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movabsq	$-4392081922311798003, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	leaq	12(%rsp), %r12
	movl	%edi, 12(%rsp)
	leaq	.LC0(%rip), %rdi
	movq	%r12, %rdx
	call	scanf@PLT
	movq	a(%rip), %rsi
	movslq	12(%rsp), %rdi
	movq	d(%rip), %rcx
	movq	%rsi, %rax
	andl	$1, %eax
	leaq	(%rax,%rdi,2), %rax
	movq	$1, 0(%rbp,%rax,8)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	scanf@PLT
	testl	%eax, %eax
	je	.L6
	movq	d(%rip), %rdx
	movq	a(%rip), %rsi
	movslq	12(%rsp), %rdi
.L5:
	xorl	%r8d, %r8d
	cmpq	%rdx, %rdi
	jg	.L3
	movq	%rsi, %rax
	movq	%rdx, %rcx
	notq	%rax
	subq	%rdi, %rcx
	andl	$1, %eax
	leaq	(%rax,%rcx,2), %rax
	movq	0(%rbp,%rax,8), %r8
.L3:
	movl	$21, %eax
	subq	%rdx, %rax
	cmpq	%rax, %rdi
	jge	.L4
	movq	%rsi, %rax
	leaq	(%rdi,%rdx), %rcx
	notq	%rax
	andl	$1, %eax
	leaq	(%rax,%rcx,2), %rax
	addq	0(%rbp,%rax,8), %r8
.L4:
	movq	%rsi, %rax
	leaq	1(%rdx), %rcx
	andl	$1, %eax
	leaq	(%rax,%rdx,2), %rax
	movq	%r8, 0(%rbp,%rax,8)
.L2:
	movq	%rcx, %rax
	imulq	%rbx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$4, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	leaq	(%rdx,%rax,4), %rax
	subq	%rax, %rcx
	movq	%rcx, d(%rip)
	movq	%rcx, %rdx
	jne	.L5
	subq	$1, %rsi
	movq	%rsi, a(%rip)
	cmpq	$1, %rsi
	jne	.L16
.L6:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	12(%rsp), %rax
	leaq	.LC2(%rip), %rdi
	salq	$4, %rax
	movq	0(%rbp,%rax), %rsi
	xorl	%eax, %eax
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movq	%rax, a(%rip)
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	d
	.bss
	.align 8
	.type	d, @object
	.size	d, 8
d:
	.zero	8
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 336
t:
	.zero	336
	.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:

long long t[21][2],a,d;main(b){scanf("%d%d",&a,&b),t[b][a&1]=1;for(;(d%=21)||--a-1&&scanf("%d",&b);t[d++][a&1]=((b>d?0:t[d-b][!(a&1)])+((b<(21-d))?t[b+d][!(a&1)]:0)));scanf("%d",&b);a=!printf("%lld\n",t[b][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
long long t[21][2],a,d;main(b){scanf("%d%d",&a,&b),t[b][a&1]=1;for(;(d%=21)||--a-1&&scanf("%d",&b);t[d++][a&1]=((b>d?0:t[d-b][!(a&1)])+((b<(21-d))?t[b+d][!(a&1)]:0)));scanf("%d",&b);a=!printf("%lld\n",t[b][0]);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 336
t:
	.zero	336
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	d
	.align 8
	.type	d, @object
	.size	d, 8
d:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	leaq	-4(%rbp), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	movq	a(%rip), %rdx
	andl	$1, %edx
	cltq
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L2
.L7:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	d(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L3
	movq	d(%rip), %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	a(%rip), %rax
	andl	$1, %eax
	testq	%rax, %rax
	sete	%al
	movzbl	%al, %eax
	cltq
	addq	%rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rsi
	jmp	.L4
.L3:
	movl	$0, %esi
.L4:
	movl	-4(%rbp), %eax
	cltq
	movq	d(%rip), %rcx
	movl	$21, %edx
	subq	%rcx, %rdx
	cmpq	%rdx, %rax
	jge	.L5
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	d(%rip), %rax
	addq	%rax, %rdx
	movq	a(%rip), %rax
	andl	$1, %eax
	testq	%rax, %rax
	sete	%al
	movzbl	%al, %eax
	cltq
	addq	%rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rcx
	jmp	.L6
.L5:
	movl	$0, %ecx
.L6:
	movq	d(%rip), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, d(%rip)
	movq	a(%rip), %rdx
	andl	$1, %edx
	addq	%rsi, %rcx
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L2:
	movq	d(%rip), %rcx
	movabsq	$-4392081922311798003, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$4, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	%rdx, d(%rip)
	movq	d(%rip), %rax
	testq	%rax, %rax
	jne	.L7
	movq	a(%rip), %rax
	subq	$1, %rax
	movq	%rax, a(%rip)
	movq	a(%rip), %rax
	cmpq	$1, %rax
	je	.L8
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	testl	%eax, %eax
	jne	.L7
.L8:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movq	%rax, a(%rip)
	movl	$0, %eax
	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	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 336
t:
	.zero	336
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	d
	.align 8
	.type	d, @object
	.size	d, 8
d:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	leaq	-4(%rbp), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	movq	a(%rip), %rdx
	andl	$1, %edx
	cltq
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L2
.L7:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	d(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L3
	movq	d(%rip), %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	a(%rip), %rax
	andl	$1, %eax
	testq	%rax, %rax
	sete	%al
	movzbl	%al, %eax
	cltq
	addq	%rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rsi
	jmp	.L4
.L3:
	movl	$0, %esi
.L4:
	movl	-4(%rbp), %eax
	cltq
	movq	d(%rip), %rcx
	movl	$21, %edx
	subq	%rcx, %rdx
	cmpq	%rdx, %rax
	jge	.L5
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	d(%rip), %rax
	addq	%rax, %rdx
	movq	a(%rip), %rax
	andl	$1, %eax
	testq	%rax, %rax
	sete	%al
	movzbl	%al, %eax
	cltq
	addq	%rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rcx
	jmp	.L6
.L5:
	movl	$0, %ecx
.L6:
	movq	d(%rip), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, d(%rip)
	movq	a(%rip), %rdx
	andl	$1, %edx
	addq	%rsi, %rcx
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L2:
	movq	d(%rip), %rcx
	movabsq	$-4392081922311798003, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$4, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	%rdx, d(%rip)
	movq	d(%rip), %rax
	testq	%rax, %rax
	jne	.L7
	movq	a(%rip), %rax
	subq	$1, %rax
	movq	%rax, a(%rip)
	movq	a(%rip), %rax
	cmpq	$1, %rax
	je	.L8
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	testl	%eax, %eax
	jne	.L7
.L8:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movq	%rax, a(%rip)
	movl	$0, %eax
	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:
