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

```c
/* Coached by rainboy */
#include <stdio.h>

#define H 100
#define W 8
#define MD 1000000007

int main() {
	static int ff[W + 1], dp[H + 1][W];
	int h, w, k, i, j;

	scanf("%d%d%d", &h, &w, &k), k--;
	ff[0] = ff[1] = 1;
	for (i = 2; i <= w; i++)
		ff[i] = (ff[i - 1] + ff[i - 2]) % MD;
	dp[0][0] = 1;
	for (i = 0; i < h; i++)
		for (j = 0; j < w; j++) {
			long long x = dp[i][j];

			dp[i + 1][j] = (dp[i + 1][j]
					+ x * ff[j] % MD * ff[w - 1 - j]) % MD;
			if (j > 0)
				dp[i + 1][j - 1] = (dp[i + 1][j - 1]
						+ x * ff[j - 1] % MD * ff[w - 1 - j]) % MD;
			if (j + 1 < w)
				dp[i + 1][j + 1] = (dp[i + 1][j + 1]
						+ x * ff[j] % MD * ff[w - 1 - j - 1]) % MD;
		}
	printf("%d\n", dp[h][k]);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -28(%rbp)
	movl	$1, 4+ff.1(%rip)
	movl	4+ff.1(%rip), %eax
	movl	%eax, ff.1(%rip)
	movl	$2, -24(%rbp)
	jmp	.L2
.L3:
	movl	-24(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movslq	%edx, %rax
	imulq	$1152921497, %rax, %rax
	shrq	$32, %rax
	sarl	$28, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$1000000007, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -24(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jle	.L3
	movl	$1, dp.0(%rip)
	movl	$0, -24(%rbp)
	jmp	.L4
.L9:
	movl	$0, -20(%rbp)
	jmp	.L5
.L8:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	movq	%rax, -16(%rbp)
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	subl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	addl	$1, %edx
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	cmpl	$0, -20(%rbp)
	jle	.L6
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	subl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	leal	1(%rdx), %ecx
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movslq	%edx, %rdx
	movslq	%ecx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	%esi, (%rdx,%rax)
.L6:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L7
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	subl	-20(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	leal	1(%rdx), %ecx
	movl	-20(%rbp), %edx
	addl	$1, %edx
	movl	%eax, %esi
	movslq	%edx, %rdx
	movslq	%ecx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	%esi, (%rdx,%rax)
.L7:
	addl	$1, -20(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L8
	addl	$1, -24(%rbp)
.L4:
	movl	-36(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L9
	movl	-36(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	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	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.local	ff.1
	.comm	ff.1,36,32
	.local	dp.0
	.comm	dp.0,3232,32
	.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%d"
.LC5:
	.string	"%d\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
	leaq	.LC0(%rip), %rdi
	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
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	132(%rsp), %rcx
	leaq	124(%rsp), %rsi
	leaq	128(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	132(%rsp), %eax
	movl	128(%rsp), %r11d
	subl	$1, %eax
	movl	%eax, 68(%rsp)
	movl	%eax, 132(%rsp)
	movq	.LC1(%rip), %rax
	movq	%rax, ff.1(%rip)
	cmpl	$1, %r11d
	jle	.L38
	cmpl	$3, %r11d
	jle	.L11
	movq	.LC2(%rip), %rax
	movl	$4, %ecx
	movq	%rax, 8+ff.1(%rip)
	cmpl	$5, %r11d
	jle	.L6
	movq	.LC3(%rip), %rax
	movq	%rax, 16+ff.1(%rip)
	cmpl	$7, %r11d
	jle	.L13
	movq	.LC4(%rip), %rax
	movl	$8, %ecx
	movq	%rax, 24+ff.1(%rip)
.L6:
	leal	-1(%rcx), %edi
	leal	-2(%rcx), %edx
	movl	$1000000007, %esi
	movslq	%ecx, %r9
	leaq	ff.1(%rip), %r12
	movslq	%edx, %rdx
	leal	1(%rcx), %r8d
	movslq	%edi, %rdi
	movl	(%r12,%rdi,4), %eax
	addl	(%r12,%rdx,4), %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%r9,4)
	cmpl	%r8d, %r11d
	jl	.L7
	movl	(%r12,%rdi,4), %eax
	movslq	%r8d, %r8
	leal	2(%rcx), %edi
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%r8,4)
	cmpl	%edi, %r11d
	jl	.L7
	movl	(%r12,%r9,4), %eax
	movslq	%edi, %rdi
	leal	3(%rcx), %r9d
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%rdi,4)
	cmpl	%r9d, %r11d
	jl	.L7
	movl	(%r12,%r8,4), %eax
	movslq	%r9d, %r9
	leal	4(%rcx), %r8d
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%r9,4)
	cmpl	%r8d, %r11d
	jl	.L7
	movl	(%r12,%rdi,4), %eax
	movslq	%r8d, %rdi
	leal	5(%rcx), %r8d
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%rdi,4)
	cmpl	%r8d, %r11d
	jl	.L7
	movl	(%r12,%r9,4), %eax
	movslq	%r8d, %r8
	addl	$6, %ecx
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%r8,4)
	cmpl	%ecx, %r11d
	jl	.L7
	movl	(%r12,%rdi,4), %eax
	movslq	%ecx, %rcx
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%rcx,4)
.L7:
	movl	$1, dp.0(%rip)
	movl	124(%rsp), %eax
	movl	%eax, 64(%rsp)
	testl	%eax, %eax
	jg	.L9
	leaq	dp.0(%rip), %rax
	movq	%rax, 56(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	64(%rsp), %rdx
	movslq	68(%rsp), %rax
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movq	56(%rsp), %rbx
	leaq	(%rax,%rdx,8), %rax
	movl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$152, %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
.L38:
	.cfi_restore_state
	movl	124(%rsp), %eax
	leaq	dp.0(%rip), %rbx
	movl	$1, dp.0(%rip)
	movq	%rbx, 56(%rsp)
	movl	%eax, 64(%rsp)
	testl	%eax, %eax
	jle	.L3
	cmpl	$1, %r11d
	jne	.L3
	leaq	ff.1(%rip), %r12
.L9:
	leaq	dp.0(%rip), %rax
	movslq	ff.1(%rip), %r13
	movslq	4+ff.1(%rip), %r14
	movq	%rax, %rcx
	movq	%rax, 56(%rsp)
	movl	64(%rsp), %eax
	leal	-1(%rax), %ebx
	leaq	32(%rcx), %rax
	salq	$5, %rbx
	addq	%rax, %rbx
	leal	-1(%r11), %eax
	cltq
	movslq	(%r12,%rax,4), %rax
	movq	%rax, (%rsp)
	movslq	8+ff.1(%rip), %rax
	movq	%rax, 8(%rsp)
	movslq	12+ff.1(%rip), %rax
	movq	%rax, 24(%rsp)
	movslq	16+ff.1(%rip), %rax
	movq	%rax, 40(%rsp)
	movslq	20+ff.1(%rip), %rax
	movq	%rax, 72(%rsp)
	movslq	24+ff.1(%rip), %rax
	movq	%rax, 80(%rsp)
	movslq	28+ff.1(%rip), %rax
	movq	%rax, 96(%rsp)
	leal	-2(%r11), %eax
	cltq
	movq	%rax, 16(%rsp)
	leal	-3(%r11), %eax
	cltq
	movq	%rax, 32(%rsp)
	leal	-4(%r11), %eax
	cltq
	movq	%rax, 48(%rsp)
	leal	-7(%r11), %eax
	cltq
	movq	%rax, 88(%rsp)
	leal	-8(%r11), %eax
	cltq
	movq	%rax, 104(%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	movabsq	$-8543223828751151131, %r9
	movslq	(%rcx), %rsi
	imulq	%r13, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rsi
	movslq	32(%rcx), %rax
	movq	%rsi, %r8
	movq	(%rsp), %rsi
	imulq	%r8, %rsi
	addq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %r10
	sarq	$29, %r10
	subq	%rax, %r10
	imulq	$1000000007, %r10, %rax
	subq	%rax, %rsi
	movl	%esi, 32(%rcx)
	movq	%rsi, %r10
	cmpl	$1, %r11d
	jle	.L8
	movslq	4(%rcx), %rdi
	movq	16(%rsp), %rax
	movq	%rdi, %r15
	movslq	(%r12,%rax,4), %rbp
	imulq	%r13, %rdi
	imulq	%r14, %r15
	imulq	%rbp, %r8
	movq	%r15, %rax
	imulq	%r9
	movq	%r15, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r15), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r15, %rsi
	subq	%rax, %rsi
	movslq	36(%rcx), %rax
	addq	%rax, %r8
	movq	%r8, %rax
	movq	%r8, %r15
	imulq	%r9
	sarq	$63, %r15
	leaq	(%rdx,%r8), %rax
	sarq	$29, %rax
	subq	%r15, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %r8
	movq	%rbp, %rax
	imulq	%rsi, %rax
	addq	%rax, %r8
	movq	%r8, %rax
	imulq	%r9
	movq	%r8, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r8), %r15
	sarq	$29, %r15
	subq	%rax, %r15
	imulq	$1000000007, %r15, %rax
	movq	%r8, %r15
	movq	%rdi, %r8
	sarq	$63, %r8
	subq	%rax, %r15
	movq	%rdi, %rax
	imulq	%r9
	movl	%r15d, 36(%rcx)
	leaq	(%rdx,%rdi), %rax
	sarq	$29, %rax
	subq	%r8, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdi
	imulq	%rbp, %rdi
	addq	%r10, %rdi
	movq	%rdi, %rax
	movq	%rdi, %r8
	imulq	%r9
	sarq	$63, %r8
	leaq	(%rdx,%rdi), %rax
	sarq	$29, %rax
	subq	%r8, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdi
	movl	%edi, 32(%rcx)
	cmpl	$2, %r11d
	je	.L8
	movslq	8(%rcx), %r8
	movq	8(%rsp), %r10
	imulq	%r8, %r10
	imulq	%r14, %r8
	movq	%r10, %rax
	imulq	%r9
	movq	%r10, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r10), %rdi
	movq	32(%rsp), %rdx
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%r10, %rdi
	movslq	(%r12,%rdx,4), %r10
	imulq	%r10, %rsi
	subq	%rax, %rdi
	movslq	40(%rcx), %rax
	addq	%rax, %rsi
	movq	%rsi, %rax
	movq	%rsi, %rbp
	imulq	%r9
	sarq	$63, %rbp
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	subq	%rbp, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movq	%rdi, %rax
	imulq	%r10, %rax
	addq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rbp
	sarq	$29, %rbp
	subq	%rax, %rbp
	imulq	$1000000007, %rbp, %rax
	subq	%rax, %rsi
	movq	%r8, %rax
	imulq	%r9
	movl	%esi, 40(%rcx)
	movq	%rsi, %rbp
	movq	%r8, %rsi
	sarq	$63, %rsi
	leaq	(%rdx,%r8), %rax
	sarq	$29, %rax
	subq	%rsi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %r8
	imulq	%r10, %r8
	leaq	(%r8,%r15), %rsi
	movq	%rsi, %rax
	movq	%rsi, %r8
	imulq	%r9
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	sarq	$63, %r8
	subq	%r8, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movl	%esi, 36(%rcx)
	cmpl	$3, %r11d
	je	.L8
	movslq	12(%rcx), %r10
	movq	24(%rsp), %rsi
	imulq	%r10, %rsi
	imulq	8(%rsp), %r10
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %r8
	movq	48(%rsp), %rdx
	sarq	$29, %r8
	subq	%rax, %r8
	movslq	(%r12,%rdx,4), %r15
	imulq	$1000000007, %r8, %rax
	movq	%rsi, %r8
	imulq	%r15, %rdi
	subq	%rax, %r8
	movslq	44(%rcx), %rax
	leaq	(%rdi,%rax), %rsi
	movq	%rsi, %rax
	movq	%rsi, %rdi
	imulq	%r9
	sarq	$63, %rdi
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	subq	%rdi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movq	%r8, %rax
	imulq	%r15, %rax
	addq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rdi
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%rsi, %rdi
	subq	%rax, %rdi
	movq	%r10, %rax
	imulq	%r9
	movl	%edi, 44(%rcx)
	leaq	(%rdx,%r10), %rax
	movq	%r10, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %r10
	imulq	%r15, %r10
	leaq	(%r10,%rbp), %rsi
	movq	%rsi, %rax
	movq	%rsi, %r10
	imulq	%r9
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	sarq	$63, %r10
	subq	%r10, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movl	%esi, 40(%rcx)
	cmpl	$4, %r11d
	je	.L8
	movslq	16(%rcx), %rbp
	movq	40(%rsp), %rax
	imulq	%rbp, %rax
	imulq	24(%rsp), %rbp
	movq	%rax, %rsi
	imulq	%r9
	leaq	(%rdx,%rsi), %r10
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %r10
	subq	%rdx, %r10
	imulq	$1000000007, %r10, %rax
	movq	%rsi, %r10
	subq	%rax, %r10
	leal	-5(%r11), %eax
	cltq
	movslq	(%r12,%rax,4), %r15
	movslq	48(%rcx), %rax
	imulq	%r15, %r8
	leaq	(%r8,%rax), %rsi
	movq	%rsi, %rax
	movq	%rsi, %r8
	imulq	%r9
	sarq	$63, %r8
	leaq	(%rdx,%rsi), %rax
	movq	%r10, %rdx
	sarq	$29, %rax
	imulq	%r15, %rdx
	subq	%r8, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	addq	%rdx, %rsi
	movq	%rsi, %rax
	imulq	%r9
	leaq	(%rdx,%rsi), %r8
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %r8
	subq	%rdx, %r8
	imulq	$1000000007, %r8, %rax
	movq	%rsi, %r8
	movq	%rbp, %rsi
	sarq	$63, %rsi
	subq	%rax, %r8
	movq	%rbp, %rax
	imulq	%r9
	movl	%r8d, 48(%rcx)
	leaq	(%rdx,%rbp), %rax
	sarq	$29, %rax
	subq	%rsi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rbp
	imulq	%r15, %rbp
	leaq	0(%rbp,%rdi), %rsi
	movq	%rsi, %rax
	movq	%rsi, %rdi
	imulq	%r9
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	sarq	$63, %rdi
	subq	%rdi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movl	%esi, 44(%rcx)
	cmpl	$5, %r11d
	je	.L8
	movslq	20(%rcx), %rdi
	movq	72(%rsp), %rsi
	imulq	%rdi, %rsi
	imulq	40(%rsp), %rdi
	movq	%rsi, %rax
	movq	%rsi, %r15
	imulq	%r9
	sarq	$63, %r15
	leaq	(%rdx,%rsi), %rbp
	sarq	$29, %rbp
	subq	%r15, %rbp
	imulq	$1000000007, %rbp, %rax
	movq	%rsi, %rbp
	subq	%rax, %rbp
	leal	-6(%r11), %eax
	cltq
	movslq	(%r12,%rax,4), %r15
	movslq	52(%rcx), %rax
	imulq	%r15, %r10
	leaq	(%r10,%rax), %rsi
	movq	%rsi, %rax
	movq	%rsi, %r10
	imulq	%r9
	sarq	$63, %r10
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	subq	%r10, %rax
	movq	%rbp, %r10
	imulq	$1000000007, %rax, %rax
	imulq	%r15, %r10
	subq	%rax, %rsi
	addq	%r10, %rsi
	movq	%rsi, %rax
	imulq	%r9
	leaq	(%rdx,%rsi), %r10
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %r10
	subq	%rdx, %r10
	imulq	$1000000007, %r10, %rax
	movq	%rsi, %r10
	movq	%rdi, %rsi
	sarq	$63, %rsi
	subq	%rax, %r10
	movq	%rdi, %rax
	imulq	%r9
	movl	%r10d, 52(%rcx)
	leaq	(%rdx,%rdi), %rax
	sarq	$29, %rax
	subq	%rsi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdi
	imulq	%r15, %rdi
	leaq	(%rdi,%r8), %rsi
	movq	%rsi, %rax
	movq	%rsi, %rdi
	imulq	%r9
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	sarq	$63, %rdi
	subq	%rdi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movl	%esi, 48(%rcx)
	cmpl	$6, %r11d
	je	.L8
	movq	80(%rsp), %r15
	movslq	24(%rcx), %rdi
	movl	$1000000007, %esi
	movq	%r15, %rax
	imulq	%rdi, %rax
	cqto
	idivq	%rsi
	movq	88(%rsp), %rax
	movslq	(%r12,%rax,4), %r9
	movslq	56(%rcx), %rax
	imulq	%r9, %rbp
	addq	%rbp, %rax
	movq	%rdx, %r8
	cqto
	idivq	%rsi
	movq	%r8, %rax
	imulq	%r9, %rax
	addq	%rdx, %rax
	cqto
	idivq	%rsi
	movq	72(%rsp), %rax
	imulq	%rdi, %rax
	movl	%edx, 56(%rcx)
	movq	%rdx, %rbp
	cqto
	idivq	%rsi
	imulq	%r9, %rdx
	leaq	(%rdx,%r10), %rax
	cqto
	idivq	%rsi
	movl	%edx, 52(%rcx)
	cmpl	$7, %r11d
	je	.L8
	movq	104(%rsp), %rax
	movslq	28(%rcx), %rdi
	movslq	(%r12,%rax,4), %r9
	movslq	60(%rcx), %rax
	imulq	%r9, %r8
	addq	%r8, %rax
	cqto
	idivq	%rsi
	movq	96(%rsp), %rax
	imulq	%rdi, %rax
	movq	%rdx, %r8
	cqto
	idivq	%rsi
	imulq	%r9, %rdx
	leaq	(%r8,%rdx), %rax
	cqto
	idivq	%rsi
	movq	%rdi, %rax
	imulq	%r15, %rax
	movl	%edx, 60(%rcx)
	cqto
	idivq	%rsi
	imulq	%r9, %rdx
	leaq	(%rdx,%rbp), %rax
	cqto
	idivq	%rsi
	movl	%edx, 56(%rcx)
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$32, %rcx
	cmpq	%rbx, %rcx
	jne	.L5
	jmp	.L3
.L13:
	movl	$6, %ecx
	jmp	.L6
.L11:
	movl	$2, %ecx
	jmp	.L6
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.local	dp.0
	.comm	dp.0,3232,32
	.local	ff.1
	.comm	ff.1,36,32
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1
	.long	1
	.align 8
.LC2:
	.long	2
	.long	3
	.align 8
.LC3:
	.long	5
	.long	8
	.align 8
.LC4:
	.long	13
	.long	21
	.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%d"
.LC5:
	.string	"%d\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
	leaq	.LC0(%rip), %rdi
	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
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	132(%rsp), %rcx
	leaq	124(%rsp), %rsi
	leaq	128(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	132(%rsp), %eax
	movl	128(%rsp), %r11d
	subl	$1, %eax
	movl	%eax, 68(%rsp)
	movl	%eax, 132(%rsp)
	movq	.LC1(%rip), %rax
	movq	%rax, ff.1(%rip)
	cmpl	$1, %r11d
	jle	.L38
	cmpl	$3, %r11d
	jle	.L11
	movq	.LC2(%rip), %rax
	movl	$4, %ecx
	movq	%rax, 8+ff.1(%rip)
	cmpl	$5, %r11d
	jle	.L6
	movq	.LC3(%rip), %rax
	movq	%rax, 16+ff.1(%rip)
	cmpl	$7, %r11d
	jle	.L13
	movq	.LC4(%rip), %rax
	movl	$8, %ecx
	movq	%rax, 24+ff.1(%rip)
.L6:
	leal	-1(%rcx), %edi
	leal	-2(%rcx), %edx
	movl	$1000000007, %esi
	movslq	%ecx, %r9
	leaq	ff.1(%rip), %r12
	movslq	%edx, %rdx
	leal	1(%rcx), %r8d
	movslq	%edi, %rdi
	movl	(%r12,%rdi,4), %eax
	addl	(%r12,%rdx,4), %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%r9,4)
	cmpl	%r8d, %r11d
	jl	.L7
	movl	(%r12,%rdi,4), %eax
	movslq	%r8d, %r8
	leal	2(%rcx), %edi
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%r8,4)
	cmpl	%edi, %r11d
	jl	.L7
	movl	(%r12,%r9,4), %eax
	movslq	%edi, %rdi
	leal	3(%rcx), %r9d
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%rdi,4)
	cmpl	%r9d, %r11d
	jl	.L7
	movl	(%r12,%r8,4), %eax
	movslq	%r9d, %r9
	leal	4(%rcx), %r8d
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%r9,4)
	cmpl	%r8d, %r11d
	jl	.L7
	movl	(%r12,%rdi,4), %eax
	movslq	%r8d, %rdi
	leal	5(%rcx), %r8d
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%rdi,4)
	cmpl	%r8d, %r11d
	jl	.L7
	movl	(%r12,%r9,4), %eax
	movslq	%r8d, %r8
	addl	$6, %ecx
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%r8,4)
	cmpl	%ecx, %r11d
	jl	.L7
	movl	(%r12,%rdi,4), %eax
	movslq	%ecx, %rcx
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%edx, (%r12,%rcx,4)
.L7:
	movl	$1, dp.0(%rip)
	movl	124(%rsp), %eax
	movl	%eax, 64(%rsp)
	testl	%eax, %eax
	jg	.L9
	leaq	dp.0(%rip), %rax
	movq	%rax, 56(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	64(%rsp), %rdx
	movslq	68(%rsp), %rax
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movq	56(%rsp), %rbx
	leaq	(%rax,%rdx,8), %rax
	movl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$152, %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
.L38:
	.cfi_restore_state
	movl	124(%rsp), %eax
	leaq	dp.0(%rip), %rbx
	movl	$1, dp.0(%rip)
	movq	%rbx, 56(%rsp)
	movl	%eax, 64(%rsp)
	testl	%eax, %eax
	jle	.L3
	cmpl	$1, %r11d
	jne	.L3
	leaq	ff.1(%rip), %r12
.L9:
	leaq	dp.0(%rip), %rax
	movslq	ff.1(%rip), %r13
	movslq	4+ff.1(%rip), %r14
	movq	%rax, %rcx
	movq	%rax, 56(%rsp)
	movl	64(%rsp), %eax
	leal	-1(%rax), %ebx
	leaq	32(%rcx), %rax
	salq	$5, %rbx
	addq	%rax, %rbx
	leal	-1(%r11), %eax
	cltq
	movslq	(%r12,%rax,4), %rax
	movq	%rax, (%rsp)
	movslq	8+ff.1(%rip), %rax
	movq	%rax, 8(%rsp)
	movslq	12+ff.1(%rip), %rax
	movq	%rax, 24(%rsp)
	movslq	16+ff.1(%rip), %rax
	movq	%rax, 40(%rsp)
	movslq	20+ff.1(%rip), %rax
	movq	%rax, 72(%rsp)
	movslq	24+ff.1(%rip), %rax
	movq	%rax, 80(%rsp)
	movslq	28+ff.1(%rip), %rax
	movq	%rax, 96(%rsp)
	leal	-2(%r11), %eax
	cltq
	movq	%rax, 16(%rsp)
	leal	-3(%r11), %eax
	cltq
	movq	%rax, 32(%rsp)
	leal	-4(%r11), %eax
	cltq
	movq	%rax, 48(%rsp)
	leal	-7(%r11), %eax
	cltq
	movq	%rax, 88(%rsp)
	leal	-8(%r11), %eax
	cltq
	movq	%rax, 104(%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	movabsq	$-8543223828751151131, %r9
	movslq	(%rcx), %rsi
	imulq	%r13, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rsi
	movslq	32(%rcx), %rax
	movq	%rsi, %r8
	movq	(%rsp), %rsi
	imulq	%r8, %rsi
	addq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %r10
	sarq	$29, %r10
	subq	%rax, %r10
	imulq	$1000000007, %r10, %rax
	subq	%rax, %rsi
	movl	%esi, 32(%rcx)
	movq	%rsi, %r10
	cmpl	$1, %r11d
	jle	.L8
	movslq	4(%rcx), %rdi
	movq	16(%rsp), %rax
	movq	%rdi, %r15
	movslq	(%r12,%rax,4), %rbp
	imulq	%r13, %rdi
	imulq	%r14, %r15
	imulq	%rbp, %r8
	movq	%r15, %rax
	imulq	%r9
	movq	%r15, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r15), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r15, %rsi
	subq	%rax, %rsi
	movslq	36(%rcx), %rax
	addq	%rax, %r8
	movq	%r8, %rax
	movq	%r8, %r15
	imulq	%r9
	sarq	$63, %r15
	leaq	(%rdx,%r8), %rax
	sarq	$29, %rax
	subq	%r15, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %r8
	movq	%rbp, %rax
	imulq	%rsi, %rax
	addq	%rax, %r8
	movq	%r8, %rax
	imulq	%r9
	movq	%r8, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r8), %r15
	sarq	$29, %r15
	subq	%rax, %r15
	imulq	$1000000007, %r15, %rax
	movq	%r8, %r15
	movq	%rdi, %r8
	sarq	$63, %r8
	subq	%rax, %r15
	movq	%rdi, %rax
	imulq	%r9
	movl	%r15d, 36(%rcx)
	leaq	(%rdx,%rdi), %rax
	sarq	$29, %rax
	subq	%r8, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdi
	imulq	%rbp, %rdi
	addq	%r10, %rdi
	movq	%rdi, %rax
	movq	%rdi, %r8
	imulq	%r9
	sarq	$63, %r8
	leaq	(%rdx,%rdi), %rax
	sarq	$29, %rax
	subq	%r8, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdi
	movl	%edi, 32(%rcx)
	cmpl	$2, %r11d
	je	.L8
	movslq	8(%rcx), %r8
	movq	8(%rsp), %r10
	imulq	%r8, %r10
	imulq	%r14, %r8
	movq	%r10, %rax
	imulq	%r9
	movq	%r10, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r10), %rdi
	movq	32(%rsp), %rdx
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%r10, %rdi
	movslq	(%r12,%rdx,4), %r10
	imulq	%r10, %rsi
	subq	%rax, %rdi
	movslq	40(%rcx), %rax
	addq	%rax, %rsi
	movq	%rsi, %rax
	movq	%rsi, %rbp
	imulq	%r9
	sarq	$63, %rbp
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	subq	%rbp, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movq	%rdi, %rax
	imulq	%r10, %rax
	addq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rbp
	sarq	$29, %rbp
	subq	%rax, %rbp
	imulq	$1000000007, %rbp, %rax
	subq	%rax, %rsi
	movq	%r8, %rax
	imulq	%r9
	movl	%esi, 40(%rcx)
	movq	%rsi, %rbp
	movq	%r8, %rsi
	sarq	$63, %rsi
	leaq	(%rdx,%r8), %rax
	sarq	$29, %rax
	subq	%rsi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %r8
	imulq	%r10, %r8
	leaq	(%r8,%r15), %rsi
	movq	%rsi, %rax
	movq	%rsi, %r8
	imulq	%r9
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	sarq	$63, %r8
	subq	%r8, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movl	%esi, 36(%rcx)
	cmpl	$3, %r11d
	je	.L8
	movslq	12(%rcx), %r10
	movq	24(%rsp), %rsi
	imulq	%r10, %rsi
	imulq	8(%rsp), %r10
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %r8
	movq	48(%rsp), %rdx
	sarq	$29, %r8
	subq	%rax, %r8
	movslq	(%r12,%rdx,4), %r15
	imulq	$1000000007, %r8, %rax
	movq	%rsi, %r8
	imulq	%r15, %rdi
	subq	%rax, %r8
	movslq	44(%rcx), %rax
	leaq	(%rdi,%rax), %rsi
	movq	%rsi, %rax
	movq	%rsi, %rdi
	imulq	%r9
	sarq	$63, %rdi
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	subq	%rdi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movq	%r8, %rax
	imulq	%r15, %rax
	addq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rdi
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%rsi, %rdi
	subq	%rax, %rdi
	movq	%r10, %rax
	imulq	%r9
	movl	%edi, 44(%rcx)
	leaq	(%rdx,%r10), %rax
	movq	%r10, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %r10
	imulq	%r15, %r10
	leaq	(%r10,%rbp), %rsi
	movq	%rsi, %rax
	movq	%rsi, %r10
	imulq	%r9
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	sarq	$63, %r10
	subq	%r10, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movl	%esi, 40(%rcx)
	cmpl	$4, %r11d
	je	.L8
	movslq	16(%rcx), %rbp
	movq	40(%rsp), %rax
	imulq	%rbp, %rax
	imulq	24(%rsp), %rbp
	movq	%rax, %rsi
	imulq	%r9
	leaq	(%rdx,%rsi), %r10
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %r10
	subq	%rdx, %r10
	imulq	$1000000007, %r10, %rax
	movq	%rsi, %r10
	subq	%rax, %r10
	leal	-5(%r11), %eax
	cltq
	movslq	(%r12,%rax,4), %r15
	movslq	48(%rcx), %rax
	imulq	%r15, %r8
	leaq	(%r8,%rax), %rsi
	movq	%rsi, %rax
	movq	%rsi, %r8
	imulq	%r9
	sarq	$63, %r8
	leaq	(%rdx,%rsi), %rax
	movq	%r10, %rdx
	sarq	$29, %rax
	imulq	%r15, %rdx
	subq	%r8, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	addq	%rdx, %rsi
	movq	%rsi, %rax
	imulq	%r9
	leaq	(%rdx,%rsi), %r8
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %r8
	subq	%rdx, %r8
	imulq	$1000000007, %r8, %rax
	movq	%rsi, %r8
	movq	%rbp, %rsi
	sarq	$63, %rsi
	subq	%rax, %r8
	movq	%rbp, %rax
	imulq	%r9
	movl	%r8d, 48(%rcx)
	leaq	(%rdx,%rbp), %rax
	sarq	$29, %rax
	subq	%rsi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rbp
	imulq	%r15, %rbp
	leaq	0(%rbp,%rdi), %rsi
	movq	%rsi, %rax
	movq	%rsi, %rdi
	imulq	%r9
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	sarq	$63, %rdi
	subq	%rdi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movl	%esi, 44(%rcx)
	cmpl	$5, %r11d
	je	.L8
	movslq	20(%rcx), %rdi
	movq	72(%rsp), %rsi
	imulq	%rdi, %rsi
	imulq	40(%rsp), %rdi
	movq	%rsi, %rax
	movq	%rsi, %r15
	imulq	%r9
	sarq	$63, %r15
	leaq	(%rdx,%rsi), %rbp
	sarq	$29, %rbp
	subq	%r15, %rbp
	imulq	$1000000007, %rbp, %rax
	movq	%rsi, %rbp
	subq	%rax, %rbp
	leal	-6(%r11), %eax
	cltq
	movslq	(%r12,%rax,4), %r15
	movslq	52(%rcx), %rax
	imulq	%r15, %r10
	leaq	(%r10,%rax), %rsi
	movq	%rsi, %rax
	movq	%rsi, %r10
	imulq	%r9
	sarq	$63, %r10
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	subq	%r10, %rax
	movq	%rbp, %r10
	imulq	$1000000007, %rax, %rax
	imulq	%r15, %r10
	subq	%rax, %rsi
	addq	%r10, %rsi
	movq	%rsi, %rax
	imulq	%r9
	leaq	(%rdx,%rsi), %r10
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %r10
	subq	%rdx, %r10
	imulq	$1000000007, %r10, %rax
	movq	%rsi, %r10
	movq	%rdi, %rsi
	sarq	$63, %rsi
	subq	%rax, %r10
	movq	%rdi, %rax
	imulq	%r9
	movl	%r10d, 52(%rcx)
	leaq	(%rdx,%rdi), %rax
	sarq	$29, %rax
	subq	%rsi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdi
	imulq	%r15, %rdi
	leaq	(%rdi,%r8), %rsi
	movq	%rsi, %rax
	movq	%rsi, %rdi
	imulq	%r9
	leaq	(%rdx,%rsi), %rax
	sarq	$29, %rax
	sarq	$63, %rdi
	subq	%rdi, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movl	%esi, 48(%rcx)
	cmpl	$6, %r11d
	je	.L8
	movq	80(%rsp), %r15
	movslq	24(%rcx), %rdi
	movl	$1000000007, %esi
	movq	%r15, %rax
	imulq	%rdi, %rax
	cqto
	idivq	%rsi
	movq	88(%rsp), %rax
	movslq	(%r12,%rax,4), %r9
	movslq	56(%rcx), %rax
	imulq	%r9, %rbp
	addq	%rbp, %rax
	movq	%rdx, %r8
	cqto
	idivq	%rsi
	movq	%r8, %rax
	imulq	%r9, %rax
	addq	%rdx, %rax
	cqto
	idivq	%rsi
	movq	72(%rsp), %rax
	imulq	%rdi, %rax
	movl	%edx, 56(%rcx)
	movq	%rdx, %rbp
	cqto
	idivq	%rsi
	imulq	%r9, %rdx
	leaq	(%rdx,%r10), %rax
	cqto
	idivq	%rsi
	movl	%edx, 52(%rcx)
	cmpl	$7, %r11d
	je	.L8
	movq	104(%rsp), %rax
	movslq	28(%rcx), %rdi
	movslq	(%r12,%rax,4), %r9
	movslq	60(%rcx), %rax
	imulq	%r9, %r8
	addq	%r8, %rax
	cqto
	idivq	%rsi
	movq	96(%rsp), %rax
	imulq	%rdi, %rax
	movq	%rdx, %r8
	cqto
	idivq	%rsi
	imulq	%r9, %rdx
	leaq	(%r8,%rdx), %rax
	cqto
	idivq	%rsi
	movq	%rdi, %rax
	imulq	%r15, %rax
	movl	%edx, 60(%rcx)
	cqto
	idivq	%rsi
	imulq	%r9, %rdx
	leaq	(%rdx,%rbp), %rax
	cqto
	idivq	%rsi
	movl	%edx, 56(%rcx)
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$32, %rcx
	cmpq	%rbx, %rcx
	jne	.L5
	jmp	.L3
.L13:
	movl	$6, %ecx
	jmp	.L6
.L11:
	movl	$2, %ecx
	jmp	.L6
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.local	dp.0
	.comm	dp.0,3232,32
	.local	ff.1
	.comm	ff.1,36,32
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1
	.long	1
	.align 8
.LC2:
	.long	2
	.long	3
	.align 8
.LC3:
	.long	5
	.long	8
	.align 8
.LC4:
	.long	13
	.long	21
	.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:

/* Coached by rainboy */
#include <stdio.h>

#define H 100
#define W 8
#define MD 1000000007

int main() {
	static int ff[W + 1], dp[H + 1][W];
	int h, w, k, i, j;

	scanf("%d%d%d", &h, &w, &k), k--;
	ff[0] = ff[1] = 1;
	for (i = 2; i <= w; i++)
		ff[i] = (ff[i - 1] + ff[i - 2]) % MD;
	dp[0][0] = 1;
	for (i = 0; i < h; i++)
		for (j = 0; j < w; j++) {
			long long x = dp[i][j];

			dp[i + 1][j] = (dp[i + 1][j]
					+ x * ff[j] % MD * ff[w - 1 - j]) % MD;
			if (j > 0)
				dp[i + 1][j - 1] = (dp[i + 1][j - 1]
						+ x * ff[j - 1] % MD * ff[w - 1 - j]) % MD;
			if (j + 1 < w)
				dp[i + 1][j + 1] = (dp[i + 1][j + 1]
						+ x * ff[j] % MD * ff[w - 1 - j - 1]) % MD;
		}
	printf("%d\n", dp[h][k]);
	return 0;
}

4 3 1
 1 2 2
 1 5 1
 16 8 5
 4 6 1
 1 9 1
 16 8 3
 8 6 1
 1 9 2
 15 8 3

35
 1
 5
 698231265
 12371
 34
 59172019
 276953291
 21
 978283490

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

```c
/* Coached by rainboy */
#include <stdio.h>

#define H 100
#define W 8
#define MD 1000000007

int main() {
	static int ff[W + 1], dp[H + 1][W];
	int h, w, k, i, j;

	scanf("%d%d%d", &h, &w, &k), k--;
	ff[0] = ff[1] = 1;
	for (i = 2; i <= w; i++)
		ff[i] = (ff[i - 1] + ff[i - 2]) % MD;
	dp[0][0] = 1;
	for (i = 0; i < h; i++)
		for (j = 0; j < w; j++) {
			long long x = dp[i][j];

			dp[i + 1][j] = (dp[i + 1][j]
					+ x * ff[j] % MD * ff[w - 1 - j]) % MD;
			if (j > 0)
				dp[i + 1][j - 1] = (dp[i + 1][j - 1]
						+ x * ff[j - 1] % MD * ff[w - 1 - j]) % MD;
			if (j + 1 < w)
				dp[i + 1][j + 1] = (dp[i + 1][j + 1]
						+ x * ff[j] % MD * ff[w - 1 - j - 1]) % MD;
		}
	printf("%d\n", dp[h][k]);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -28(%rbp)
	movl	$1, 4+ff.1(%rip)
	movl	4+ff.1(%rip), %eax
	movl	%eax, ff.1(%rip)
	movl	$2, -24(%rbp)
	jmp	.L2
.L3:
	movl	-24(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movslq	%edx, %rax
	imulq	$1152921497, %rax, %rax
	shrq	$32, %rax
	sarl	$28, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$1000000007, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -24(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jle	.L3
	movl	$1, dp.0(%rip)
	movl	$0, -24(%rbp)
	jmp	.L4
.L9:
	movl	$0, -20(%rbp)
	jmp	.L5
.L8:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	movq	%rax, -16(%rbp)
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	subl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	addl	$1, %edx
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	cmpl	$0, -20(%rbp)
	jle	.L6
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	subl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	leal	1(%rdx), %ecx
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movslq	%edx, %rdx
	movslq	%ecx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	%esi, (%rdx,%rax)
.L6:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L7
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	subl	-20(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	leal	1(%rdx), %ecx
	movl	-20(%rbp), %edx
	addl	$1, %edx
	movl	%eax, %esi
	movslq	%edx, %rdx
	movslq	%ecx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	%esi, (%rdx,%rax)
.L7:
	addl	$1, -20(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L8
	addl	$1, -24(%rbp)
.L4:
	movl	-36(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L9
	movl	-36(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	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	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.local	ff.1
	.comm	ff.1,36,32
	.local	dp.0
	.comm	dp.0,3232,32
	.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%d%d"
.LC1:
	.string	"%d\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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -28(%rbp)
	movl	$1, 4+ff.1(%rip)
	movl	4+ff.1(%rip), %eax
	movl	%eax, ff.1(%rip)
	movl	$2, -24(%rbp)
	jmp	.L2
.L3:
	movl	-24(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movslq	%edx, %rax
	imulq	$1152921497, %rax, %rax
	shrq	$32, %rax
	sarl	$28, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$1000000007, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -24(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jle	.L3
	movl	$1, dp.0(%rip)
	movl	$0, -24(%rbp)
	jmp	.L4
.L9:
	movl	$0, -20(%rbp)
	jmp	.L5
.L8:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	movq	%rax, -16(%rbp)
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	subl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	addl	$1, %edx
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	cmpl	$0, -20(%rbp)
	jle	.L6
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	subl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	leal	1(%rdx), %ecx
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movslq	%edx, %rdx
	movslq	%ecx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	%esi, (%rdx,%rax)
.L6:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L7
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ff.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	subl	-20(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ff.1(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	imulq	%rdx, %rax
	leaq	(%rsi,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	leal	1(%rdx), %ecx
	movl	-20(%rbp), %edx
	addl	$1, %edx
	movl	%eax, %esi
	movslq	%edx, %rdx
	movslq	%ecx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	%esi, (%rdx,%rax)
.L7:
	addl	$1, -20(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L8
	addl	$1, -24(%rbp)
.L4:
	movl	-36(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L9
	movl	-36(%rbp), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	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	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.local	ff.1
	.comm	ff.1,36,32
	.local	dp.0
	.comm	dp.0,3232,32
	.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:
