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

```c
// AOJ 2025: Eight Princes
// 2017.11.8 bal4u@uu

#include <stdio.h>

long long dp1[10][101][2][2];
long long dp2[10][101][3][3];

int main()
{
	int n, i, j, k;
	long long ans;

	dp1[0][1][0][0] = dp1[1][1][1][1] = 1;
	for (i = 0; i < 9; i++) for (j = 1; j < 100; j++) {
		for (k = 0; k < 2; k++) {
			dp1[i][j+1][k][0] += dp1[i][j][k][0] + dp1[i][j][k][1];
			dp1[i+1][j+1][k][1] += dp1[i][j][k][0];
		}
	}
	dp2[0][1][0][0] = dp2[1][1][1][1] = dp2[1][1][2][2] = 1;
	for (i = 0; i < 9; i++) for (j = 1; j < 100; j++) {
		for (k = 0; k < 3; k++) {
			dp2[i][j+1][k][0] += dp2[i][j][k][0] + dp2[i][j][k][1] + dp2[i][j][k][2];
			dp2[i+1][j+1][k][1] += dp2[i][j][k][0] + dp2[i][j][k][2];
			dp2[i+1][j+1][k][2] += dp2[i][j][k][0] + dp2[i][j][k][1];
		}
	}

	while (scanf("%d", &n) && n > 0) {
		if (n & 1) ans = dp1[8][n][0][0] + dp1[8][n][0][1] + dp1[8][n][1][0];
		else {
			for (ans = 0, i = 0; i < 3; i++) for (j = 0; j < 3; j++)
				if (i*j != 2) ans += dp2[8][n/2][i][j];
		}
		printf("%lld\n", ans * 40320);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp1
	.bss
	.align 32
	.type	dp1, @object
	.size	dp1, 32320
dp1:
	.zero	32320
	.globl	dp2
	.align 32
	.type	dp2, @object
	.size	dp2, 72720
dp2:
	.zero	72720
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%d"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1, 3288+dp1(%rip)
	movq	3288+dp1(%rip), %rax
	movq	%rax, 32+dp1(%rip)
	movl	$0, -28(%rbp)
	jmp	.L2
.L7:
	movl	$1, -24(%rbp)
	jmp	.L3
.L6:
	movl	$0, -20(%rbp)
	jmp	.L4
.L5:
	movl	-24(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	movslq	%eax, %r8
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp1(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rsi,%rax), %rdx
	movl	-24(%rbp), %eax
	leal	1(%rax), %esi
	addq	%rdx, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movslq	%esi, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movslq	%ecx, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp1(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	leal	1(%rax), %esi
	addq	%rdi, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rdx
	movslq	%esi, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp1(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L4:
	cmpl	$1, -20(%rbp)
	jle	.L5
	addl	$1, -24(%rbp)
.L3:
	cmpl	$99, -24(%rbp)
	jle	.L6
	addl	$1, -28(%rbp)
.L2:
	cmpl	$8, -28(%rbp)
	jle	.L7
	movq	$1, 7408+dp2(%rip)
	movq	7408+dp2(%rip), %rax
	movq	%rax, 7376+dp2(%rip)
	movq	7376+dp2(%rip), %rax
	movq	%rax, 72+dp2(%rip)
	movl	$0, -28(%rbp)
	jmp	.L8
.L13:
	movl	$1, -24(%rbp)
	jmp	.L9
.L12:
	movl	$0, -20(%rbp)
	jmp	.L10
.L11:
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movl	-20(%rbp), %eax
	cltq
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %r8
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	addq	%rax, %r8
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	(%r8,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	leaq	(%rdi,%rcx), %rsi
	movl	-20(%rbp), %eax
	cltq
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rdi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	%rsi, (%rax)
	movl	-28(%rbp), %eax
	leal	1(%rax), %esi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%esi, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %r8
	movl	-20(%rbp), %eax
	cltq
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	(%rdi,%rax), %rcx
	movl	-28(%rbp), %eax
	leal	1(%rax), %edi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	leaq	(%r8,%rcx), %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%edi, %rdi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rdi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	%rsi, (%rax)
	movl	-28(%rbp), %eax
	leal	1(%rax), %esi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%esi, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %r8
	movl	-20(%rbp), %eax
	cltq
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	(%rdi,%rax), %rcx
	movl	-28(%rbp), %eax
	leal	1(%rax), %edi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	leaq	(%r8,%rcx), %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%edi, %rdi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rdi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	%rsi, (%rax)
	addl	$1, -20(%rbp)
.L10:
	cmpl	$2, -20(%rbp)
	jle	.L11
	addl	$1, -24(%rbp)
.L9:
	cmpl	$99, -24(%rbp)
	jle	.L12
	addl	$1, -28(%rbp)
.L8:
	cmpl	$8, -28(%rbp)
	jle	.L13
	jmp	.L14
.L23:
	movl	-32(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L15
	movl	-32(%rbp), %eax
	cltq
	addq	$808, %rax
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-32(%rbp), %eax
	cltq
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	25864+dp1(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movl	-32(%rbp), %eax
	cltq
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	25872+dp1(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L16
.L15:
	movq	$0, -16(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L17
.L21:
	movl	$0, -24(%rbp)
	jmp	.L18
.L20:
	movl	-28(%rbp), %eax
	imull	-24(%rbp), %eax
	cmpl	$2, %eax
	je	.L19
	movl	-32(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rcx
	movq	%rax, %rdx
	salq	$3, %rdx
	addq	%rax, %rdx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$7272, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp2(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -16(%rbp)
.L19:
	addl	$1, -24(%rbp)
.L18:
	cmpl	$2, -24(%rbp)
	jle	.L20
	addl	$1, -28(%rbp)
.L17:
	cmpl	$2, -28(%rbp)
	jle	.L21
.L16:
	movq	-16(%rbp), %rax
	imulq	$40320, %rax, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L22
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jg	.L23
.L22:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	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\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	40+dp1(%rip), %rsi
	xorl	%r10d, %r10d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-40(%rsi), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	$1, 3288+dp1(%rip)
	movq	$1, 32+dp1(%rip)
.L2:
	movq	8(%rsi), %r8
	movq	-8(%rsi), %rdi
	movl	%r10d, %edx
	movq	%rsi, %rax
	addl	$1, %r10d
	leaq	3264(%rsi), %rcx
	movl	$1, %ebp
.L4:
	movq	(%rax), %r11
	addl	$2, %ebp
	addq	$64, %rax
	addq	%rdi, %r11
	addq	-40(%rax), %r11
	movq	%r11, -40(%rax)
	addq	%rdi, (%rcx)
	movq	-48(%rax), %r9
	addq	%r8, %r9
	addq	-24(%rax), %r9
	movq	%r9, -24(%rax)
	addq	%r8, 16(%rcx)
	movq	-32(%rax), %rdi
	addq	%r11, %rdi
	addq	-8(%rax), %rdi
	movq	%rdi, -8(%rax)
	addq	%r11, 32(%rcx)
	movq	-16(%rax), %r8
	addq	%r9, %r8
	addq	8(%rax), %r8
	movq	%r8, 8(%rax)
	addq	%r9, 48(%rcx)
	addq	$64, %rcx
	cmpl	$99, %ebp
	jne	.L4
	movslq	%edx, %rax
	imulq	$3232, %rax, %rax
	addq	%rbx, %rax
	movq	3176(%rax), %rdx
	addq	3168(%rax), %rdx
	addq	%rdx, 3160(%rsi)
	movq	3168(%rax), %rdx
	addq	%rdx, 6400(%rsi)
	movq	3192(%rax), %rdx
	addq	3184(%rax), %rdx
	addq	%rdx, 3176(%rsi)
	movq	3184(%rax), %rax
	addq	%rax, 6416(%rsi)
	addq	$3232, %rsi
	cmpl	$9, %r10d
	jne	.L2
	movq	$1, 7408+dp2(%rip)
	leaq	80+dp2(%rip), %rdx
	xorl	%r9d, %r9d
	movq	$1, 7376+dp2(%rip)
	leaq	-80(%rdx), %rbp
	movq	$1, 72+dp2(%rip)
.L6:
	movq	40(%rdx), %r8
	movq	16(%rdx), %rdi
	movl	%r9d, %ecx
	movq	%rdx, %rax
	movq	-8(%rdx), %rsi
	addl	$1, %r9d
	movl	$1, %r10d
.L8:
	movdqu	(%rax), %xmm1
	movq	%rsi, %xmm0
	addq	(%rax), %rsi
	addl	$2, %r10d
	movdqu	7344(%rax), %xmm2
	punpcklqdq	%xmm0, %xmm0
	movq	8(%rax), %r11
	addq	$144, %rax
	paddq	%xmm1, %xmm0
	movdqu	-120(%rax), %xmm3
	movdqu	7224(%rax), %xmm4
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm2, %xmm0
	movdqu	-96(%rax), %xmm5
	addq	%r11, %rsi
	movups	%xmm0, 7200(%rax)
	movq	%rdi, %xmm0
	movq	-112(%rax), %r11
	addq	-120(%rax), %rdi
	punpcklqdq	%xmm0, %xmm0
	addq	-80(%rax), %rsi
	movdqu	7248(%rax), %xmm6
	paddq	%xmm3, %xmm0
	addq	%r11, %rdi
	movq	-88(%rax), %r11
	movdqu	-72(%rax), %xmm7
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm4, %xmm0
	movq	%rsi, -80(%rax)
	movdqu	7272(%rax), %xmm1
	movups	%xmm0, 7224(%rax)
	movq	%r8, %xmm0
	addq	-96(%rax), %r8
	addq	-56(%rax), %rdi
	punpcklqdq	%xmm0, %xmm0
	addq	%r11, %r8
	movq	-64(%rax), %r11
	movq	%rdi, -56(%rax)
	paddq	%xmm5, %xmm0
	addq	-32(%rax), %r8
	movdqu	-48(%rax), %xmm2
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm6, %xmm0
	movq	%r8, -32(%rax)
	movups	%xmm0, 7248(%rax)
	movq	%rsi, %xmm0
	addq	-72(%rax), %rsi
	punpcklqdq	%xmm0, %xmm0
	addq	%r11, %rsi
	movq	-40(%rax), %r11
	addq	-8(%rax), %rsi
	paddq	%xmm7, %xmm0
	movq	%rsi, -8(%rax)
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm1, %xmm0
	movups	%xmm0, 7272(%rax)
	movq	%rdi, %xmm0
	addq	-48(%rax), %rdi
	addq	%r11, %rdi
	addq	16(%rax), %rdi
	punpcklqdq	%xmm0, %xmm0
	movq	%rdi, 16(%rax)
	movdqu	7296(%rax), %xmm3
	paddq	%xmm2, %xmm0
	shufpd	$1, %xmm0, %xmm0
	movdqu	-24(%rax), %xmm4
	movdqu	7320(%rax), %xmm5
	paddq	%xmm3, %xmm0
	movq	-16(%rax), %r11
	movups	%xmm0, 7296(%rax)
	movq	%r8, %xmm0
	addq	-24(%rax), %r8
	punpcklqdq	%xmm0, %xmm0
	addq	%r11, %r8
	addq	40(%rax), %r8
	paddq	%xmm4, %xmm0
	movq	%r8, 40(%rax)
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm5, %xmm0
	movups	%xmm0, 7320(%rax)
	cmpl	$99, %r10d
	jne	.L8
	movslq	%ecx, %rax
	imulq	$7272, %rax, %rax
	addq	%rbp, %rax
	movq	7144(%rax), %rsi
	movq	7136(%rax), %rcx
	addq	7128(%rax), %rcx
	addq	%rsi, %rcx
	addq	%rcx, 7120(%rdx)
	movq	7128(%rax), %rcx
	addq	%rcx, %rsi
	addq	%rsi, 14400(%rdx)
	addq	7136(%rax), %rcx
	addq	%rcx, 14408(%rdx)
	movq	7168(%rax), %rsi
	movq	7160(%rax), %rcx
	addq	7152(%rax), %rcx
	addq	%rsi, %rcx
	addq	%rcx, 7144(%rdx)
	movq	7152(%rax), %rcx
	addq	%rcx, %rsi
	addq	%rsi, 14424(%rdx)
	addq	7160(%rax), %rcx
	addq	%rcx, 14432(%rdx)
	movq	7192(%rax), %rsi
	movq	7184(%rax), %rcx
	addq	7176(%rax), %rcx
	addq	%rsi, %rcx
	addq	%rcx, 7168(%rdx)
	movq	7176(%rax), %rcx
	addq	%rcx, %rsi
	addq	%rsi, 14448(%rdx)
	addq	7184(%rax), %rcx
	addq	%rcx, 14456(%rdx)
	addq	$7272, %rdx
	cmpl	$9, %r9d
	jne	.L6
	leaq	4(%rsp), %r14
	leaq	.LC1(%rip), %r13
	leaq	.LC0(%rip), %r12
	jmp	.L7
.L10:
	movq	%rax, %rcx
	salq	$5, %rcx
	movq	%rcx, %rax
	addq	%rbx, %rax
	movq	25864(%rax), %rdx
	addq	25856(%rbx,%rcx), %rdx
	addq	25872(%rax), %rdx
.L11:
	imulq	$40320, %rdx, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L12
	movslq	4(%rsp), %rax
	testl	%eax, %eax
	jle	.L12
	testb	$1, %al
	jne	.L10
	sarl	%eax
	cltq
	leaq	(%rax,%rax,8), %rax
	leaq	0(%rbp,%rax,8), %rax
	movq	58184(%rax), %rdx
	addq	58176(%rax), %rdx
	addq	58192(%rax), %rdx
	addq	58200(%rax), %rdx
	addq	58208(%rax), %rdx
	addq	58224(%rax), %rdx
	addq	58240(%rax), %rdx
	jmp	.L11
.L12:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp2
	.bss
	.align 32
	.type	dp2, @object
	.size	dp2, 72720
dp2:
	.zero	72720
	.globl	dp1
	.align 32
	.type	dp1, @object
	.size	dp1, 32320
dp1:
	.zero	32320
	.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\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	40+dp1(%rip), %rsi
	xorl	%r10d, %r10d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-40(%rsi), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	$1, 3288+dp1(%rip)
	movq	$1, 32+dp1(%rip)
.L2:
	movq	8(%rsi), %r8
	movq	-8(%rsi), %rdi
	movl	%r10d, %edx
	movq	%rsi, %rax
	addl	$1, %r10d
	leaq	3264(%rsi), %rcx
	movl	$1, %ebp
.L4:
	movq	(%rax), %r11
	addl	$2, %ebp
	addq	$64, %rax
	addq	%rdi, %r11
	addq	-40(%rax), %r11
	movq	%r11, -40(%rax)
	addq	%rdi, (%rcx)
	movq	-48(%rax), %r9
	addq	%r8, %r9
	addq	-24(%rax), %r9
	movq	%r9, -24(%rax)
	addq	%r8, 16(%rcx)
	movq	-32(%rax), %rdi
	addq	%r11, %rdi
	addq	-8(%rax), %rdi
	movq	%rdi, -8(%rax)
	addq	%r11, 32(%rcx)
	movq	-16(%rax), %r8
	addq	%r9, %r8
	addq	8(%rax), %r8
	movq	%r8, 8(%rax)
	addq	%r9, 48(%rcx)
	addq	$64, %rcx
	cmpl	$99, %ebp
	jne	.L4
	movslq	%edx, %rax
	imulq	$3232, %rax, %rax
	addq	%rbx, %rax
	movq	3176(%rax), %rdx
	addq	3168(%rax), %rdx
	addq	%rdx, 3160(%rsi)
	movq	3168(%rax), %rdx
	addq	%rdx, 6400(%rsi)
	movq	3192(%rax), %rdx
	addq	3184(%rax), %rdx
	addq	%rdx, 3176(%rsi)
	movq	3184(%rax), %rax
	addq	%rax, 6416(%rsi)
	addq	$3232, %rsi
	cmpl	$9, %r10d
	jne	.L2
	movq	$1, 7408+dp2(%rip)
	leaq	80+dp2(%rip), %rdx
	xorl	%r9d, %r9d
	movq	$1, 7376+dp2(%rip)
	leaq	-80(%rdx), %rbp
	movq	$1, 72+dp2(%rip)
.L6:
	movq	40(%rdx), %r8
	movq	16(%rdx), %rdi
	movl	%r9d, %ecx
	movq	%rdx, %rax
	movq	-8(%rdx), %rsi
	addl	$1, %r9d
	movl	$1, %r10d
.L8:
	movdqu	(%rax), %xmm1
	movq	%rsi, %xmm0
	addq	(%rax), %rsi
	addl	$2, %r10d
	movdqu	7344(%rax), %xmm2
	punpcklqdq	%xmm0, %xmm0
	movq	8(%rax), %r11
	addq	$144, %rax
	paddq	%xmm1, %xmm0
	movdqu	-120(%rax), %xmm3
	movdqu	7224(%rax), %xmm4
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm2, %xmm0
	movdqu	-96(%rax), %xmm5
	addq	%r11, %rsi
	movups	%xmm0, 7200(%rax)
	movq	%rdi, %xmm0
	movq	-112(%rax), %r11
	addq	-120(%rax), %rdi
	punpcklqdq	%xmm0, %xmm0
	addq	-80(%rax), %rsi
	movdqu	7248(%rax), %xmm6
	paddq	%xmm3, %xmm0
	addq	%r11, %rdi
	movq	-88(%rax), %r11
	movdqu	-72(%rax), %xmm7
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm4, %xmm0
	movq	%rsi, -80(%rax)
	movdqu	7272(%rax), %xmm1
	movups	%xmm0, 7224(%rax)
	movq	%r8, %xmm0
	addq	-96(%rax), %r8
	addq	-56(%rax), %rdi
	punpcklqdq	%xmm0, %xmm0
	addq	%r11, %r8
	movq	-64(%rax), %r11
	movq	%rdi, -56(%rax)
	paddq	%xmm5, %xmm0
	addq	-32(%rax), %r8
	movdqu	-48(%rax), %xmm2
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm6, %xmm0
	movq	%r8, -32(%rax)
	movups	%xmm0, 7248(%rax)
	movq	%rsi, %xmm0
	addq	-72(%rax), %rsi
	punpcklqdq	%xmm0, %xmm0
	addq	%r11, %rsi
	movq	-40(%rax), %r11
	addq	-8(%rax), %rsi
	paddq	%xmm7, %xmm0
	movq	%rsi, -8(%rax)
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm1, %xmm0
	movups	%xmm0, 7272(%rax)
	movq	%rdi, %xmm0
	addq	-48(%rax), %rdi
	addq	%r11, %rdi
	addq	16(%rax), %rdi
	punpcklqdq	%xmm0, %xmm0
	movq	%rdi, 16(%rax)
	movdqu	7296(%rax), %xmm3
	paddq	%xmm2, %xmm0
	shufpd	$1, %xmm0, %xmm0
	movdqu	-24(%rax), %xmm4
	movdqu	7320(%rax), %xmm5
	paddq	%xmm3, %xmm0
	movq	-16(%rax), %r11
	movups	%xmm0, 7296(%rax)
	movq	%r8, %xmm0
	addq	-24(%rax), %r8
	punpcklqdq	%xmm0, %xmm0
	addq	%r11, %r8
	addq	40(%rax), %r8
	paddq	%xmm4, %xmm0
	movq	%r8, 40(%rax)
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm5, %xmm0
	movups	%xmm0, 7320(%rax)
	cmpl	$99, %r10d
	jne	.L8
	movslq	%ecx, %rax
	imulq	$7272, %rax, %rax
	addq	%rbp, %rax
	movq	7144(%rax), %rsi
	movq	7136(%rax), %rcx
	addq	7128(%rax), %rcx
	addq	%rsi, %rcx
	addq	%rcx, 7120(%rdx)
	movq	7128(%rax), %rcx
	addq	%rcx, %rsi
	addq	%rsi, 14400(%rdx)
	addq	7136(%rax), %rcx
	addq	%rcx, 14408(%rdx)
	movq	7168(%rax), %rsi
	movq	7160(%rax), %rcx
	addq	7152(%rax), %rcx
	addq	%rsi, %rcx
	addq	%rcx, 7144(%rdx)
	movq	7152(%rax), %rcx
	addq	%rcx, %rsi
	addq	%rsi, 14424(%rdx)
	addq	7160(%rax), %rcx
	addq	%rcx, 14432(%rdx)
	movq	7192(%rax), %rsi
	movq	7184(%rax), %rcx
	addq	7176(%rax), %rcx
	addq	%rsi, %rcx
	addq	%rcx, 7168(%rdx)
	movq	7176(%rax), %rcx
	addq	%rcx, %rsi
	addq	%rsi, 14448(%rdx)
	addq	7184(%rax), %rcx
	addq	%rcx, 14456(%rdx)
	addq	$7272, %rdx
	cmpl	$9, %r9d
	jne	.L6
	leaq	4(%rsp), %r14
	leaq	.LC1(%rip), %r13
	leaq	.LC0(%rip), %r12
	jmp	.L7
.L10:
	movq	%rax, %rcx
	salq	$5, %rcx
	movq	%rcx, %rax
	addq	%rbx, %rax
	movq	25864(%rax), %rdx
	addq	25856(%rbx,%rcx), %rdx
	addq	25872(%rax), %rdx
.L11:
	imulq	$40320, %rdx, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L12
	movslq	4(%rsp), %rax
	testl	%eax, %eax
	jle	.L12
	testb	$1, %al
	jne	.L10
	sarl	%eax
	cltq
	leaq	(%rax,%rax,8), %rax
	leaq	0(%rbp,%rax,8), %rax
	movq	58184(%rax), %rdx
	addq	58176(%rax), %rdx
	addq	58192(%rax), %rdx
	addq	58200(%rax), %rdx
	addq	58208(%rax), %rdx
	addq	58224(%rax), %rdx
	addq	58240(%rax), %rdx
	jmp	.L11
.L12:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp2
	.bss
	.align 32
	.type	dp2, @object
	.size	dp2, 72720
dp2:
	.zero	72720
	.globl	dp1
	.align 32
	.type	dp1, @object
	.size	dp1, 32320
dp1:
	.zero	32320
	.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:

// AOJ 2025: Eight Princes
// 2017.11.8 bal4u@uu

#include <stdio.h>

long long dp1[10][101][2][2];
long long dp2[10][101][3][3];

int main()
{
	int n, i, j, k;
	long long ans;

	dp1[0][1][0][0] = dp1[1][1][1][1] = 1;
	for (i = 0; i < 9; i++) for (j = 1; j < 100; j++) {
		for (k = 0; k < 2; k++) {
			dp1[i][j+1][k][0] += dp1[i][j][k][0] + dp1[i][j][k][1];
			dp1[i+1][j+1][k][1] += dp1[i][j][k][0];
		}
	}
	dp2[0][1][0][0] = dp2[1][1][1][1] = dp2[1][1][2][2] = 1;
	for (i = 0; i < 9; i++) for (j = 1; j < 100; j++) {
		for (k = 0; k < 3; k++) {
			dp2[i][j+1][k][0] += dp2[i][j][k][0] + dp2[i][j][k][1] + dp2[i][j][k][2];
			dp2[i+1][j+1][k][1] += dp2[i][j][k][0] + dp2[i][j][k][2];
			dp2[i+1][j+1][k][2] += dp2[i][j][k][0] + dp2[i][j][k][1];
		}
	}

	while (scanf("%d", &n) && n > 0) {
		if (n & 1) ans = dp1[8][n][0][0] + dp1[8][n][0][1] + dp1[8][n][1][0];
		else {
			for (ans = 0, i = 0; i < 3; i++) for (j = 0; j < 3; j++)
				if (i*j != 2) ans += dp2[8][n/2][i][j];
		}
		printf("%lld\n", ans * 40320);
	}
	return 0;
}
8
6
17
0
 8
23
17
0
 8
6
3
0
 8
0
17
0
 8
30
17
0
 8
6
23
0
 8
23
33
0
 8
1
0
0
 8
30
24
0
 8
6
21
0

0
0
685440
 0
397837440
685440
 0
0
0
 0
 0
5175878400
685440
 0
0
397837440
 0
397837440
57564017280
 0
0
 0
5175878400
170311680
 0
0
83825280

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

```c
// AOJ 2025: Eight Princes
// 2017.11.8 bal4u@uu

#include <stdio.h>

long long dp1[10][101][2][2];
long long dp2[10][101][3][3];

int main()
{
	int n, i, j, k;
	long long ans;

	dp1[0][1][0][0] = dp1[1][1][1][1] = 1;
	for (i = 0; i < 9; i++) for (j = 1; j < 100; j++) {
		for (k = 0; k < 2; k++) {
			dp1[i][j+1][k][0] += dp1[i][j][k][0] + dp1[i][j][k][1];
			dp1[i+1][j+1][k][1] += dp1[i][j][k][0];
		}
	}
	dp2[0][1][0][0] = dp2[1][1][1][1] = dp2[1][1][2][2] = 1;
	for (i = 0; i < 9; i++) for (j = 1; j < 100; j++) {
		for (k = 0; k < 3; k++) {
			dp2[i][j+1][k][0] += dp2[i][j][k][0] + dp2[i][j][k][1] + dp2[i][j][k][2];
			dp2[i+1][j+1][k][1] += dp2[i][j][k][0] + dp2[i][j][k][2];
			dp2[i+1][j+1][k][2] += dp2[i][j][k][0] + dp2[i][j][k][1];
		}
	}

	while (scanf("%d", &n) && n > 0) {
		if (n & 1) ans = dp1[8][n][0][0] + dp1[8][n][0][1] + dp1[8][n][1][0];
		else {
			for (ans = 0, i = 0; i < 3; i++) for (j = 0; j < 3; j++)
				if (i*j != 2) ans += dp2[8][n/2][i][j];
		}
		printf("%lld\n", ans * 40320);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp1
	.bss
	.align 32
	.type	dp1, @object
	.size	dp1, 32320
dp1:
	.zero	32320
	.globl	dp2
	.align 32
	.type	dp2, @object
	.size	dp2, 72720
dp2:
	.zero	72720
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%d"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1, 3288+dp1(%rip)
	movq	3288+dp1(%rip), %rax
	movq	%rax, 32+dp1(%rip)
	movl	$0, -28(%rbp)
	jmp	.L2
.L7:
	movl	$1, -24(%rbp)
	jmp	.L3
.L6:
	movl	$0, -20(%rbp)
	jmp	.L4
.L5:
	movl	-24(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	movslq	%eax, %r8
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp1(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rsi,%rax), %rdx
	movl	-24(%rbp), %eax
	leal	1(%rax), %esi
	addq	%rdx, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movslq	%esi, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movslq	%ecx, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp1(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	leal	1(%rax), %esi
	addq	%rdi, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rdx
	movslq	%esi, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp1(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L4:
	cmpl	$1, -20(%rbp)
	jle	.L5
	addl	$1, -24(%rbp)
.L3:
	cmpl	$99, -24(%rbp)
	jle	.L6
	addl	$1, -28(%rbp)
.L2:
	cmpl	$8, -28(%rbp)
	jle	.L7
	movq	$1, 7408+dp2(%rip)
	movq	7408+dp2(%rip), %rax
	movq	%rax, 7376+dp2(%rip)
	movq	7376+dp2(%rip), %rax
	movq	%rax, 72+dp2(%rip)
	movl	$0, -28(%rbp)
	jmp	.L8
.L13:
	movl	$1, -24(%rbp)
	jmp	.L9
.L12:
	movl	$0, -20(%rbp)
	jmp	.L10
.L11:
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movl	-20(%rbp), %eax
	cltq
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %r8
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	addq	%rax, %r8
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	(%r8,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	leaq	(%rdi,%rcx), %rsi
	movl	-20(%rbp), %eax
	cltq
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rdi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	%rsi, (%rax)
	movl	-28(%rbp), %eax
	leal	1(%rax), %esi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%esi, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %r8
	movl	-20(%rbp), %eax
	cltq
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	(%rdi,%rax), %rcx
	movl	-28(%rbp), %eax
	leal	1(%rax), %edi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	leaq	(%r8,%rcx), %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%edi, %rdi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rdi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	%rsi, (%rax)
	movl	-28(%rbp), %eax
	leal	1(%rax), %esi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%esi, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %r8
	movl	-20(%rbp), %eax
	cltq
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	(%rdi,%rax), %rcx
	movl	-28(%rbp), %eax
	leal	1(%rax), %edi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	leaq	(%r8,%rcx), %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%edi, %rdi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rdi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	%rsi, (%rax)
	addl	$1, -20(%rbp)
.L10:
	cmpl	$2, -20(%rbp)
	jle	.L11
	addl	$1, -24(%rbp)
.L9:
	cmpl	$99, -24(%rbp)
	jle	.L12
	addl	$1, -28(%rbp)
.L8:
	cmpl	$8, -28(%rbp)
	jle	.L13
	jmp	.L14
.L23:
	movl	-32(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L15
	movl	-32(%rbp), %eax
	cltq
	addq	$808, %rax
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-32(%rbp), %eax
	cltq
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	25864+dp1(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movl	-32(%rbp), %eax
	cltq
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	25872+dp1(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L16
.L15:
	movq	$0, -16(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L17
.L21:
	movl	$0, -24(%rbp)
	jmp	.L18
.L20:
	movl	-28(%rbp), %eax
	imull	-24(%rbp), %eax
	cmpl	$2, %eax
	je	.L19
	movl	-32(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rcx
	movq	%rax, %rdx
	salq	$3, %rdx
	addq	%rax, %rdx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$7272, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp2(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -16(%rbp)
.L19:
	addl	$1, -24(%rbp)
.L18:
	cmpl	$2, -24(%rbp)
	jle	.L20
	addl	$1, -28(%rbp)
.L17:
	cmpl	$2, -28(%rbp)
	jle	.L21
.L16:
	movq	-16(%rbp), %rax
	imulq	$40320, %rax, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L22
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jg	.L23
.L22:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	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	dp1
	.bss
	.align 32
	.type	dp1, @object
	.size	dp1, 32320
dp1:
	.zero	32320
	.globl	dp2
	.align 32
	.type	dp2, @object
	.size	dp2, 72720
dp2:
	.zero	72720
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%d"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1, 3288+dp1(%rip)
	movq	3288+dp1(%rip), %rax
	movq	%rax, 32+dp1(%rip)
	movl	$0, -28(%rbp)
	jmp	.L2
.L7:
	movl	$1, -24(%rbp)
	jmp	.L3
.L6:
	movl	$0, -20(%rbp)
	jmp	.L4
.L5:
	movl	-24(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	movslq	%eax, %r8
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp1(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rsi,%rax), %rdx
	movl	-24(%rbp), %eax
	leal	1(%rax), %esi
	addq	%rdx, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movslq	%esi, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rdx
	movslq	%ecx, %rcx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp1(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-24(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	leal	1(%rax), %esi
	addq	%rdi, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%edx, %rdx
	movslq	%esi, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp1(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L4:
	cmpl	$1, -20(%rbp)
	jle	.L5
	addl	$1, -24(%rbp)
.L3:
	cmpl	$99, -24(%rbp)
	jle	.L6
	addl	$1, -28(%rbp)
.L2:
	cmpl	$8, -28(%rbp)
	jle	.L7
	movq	$1, 7408+dp2(%rip)
	movq	7408+dp2(%rip), %rax
	movq	%rax, 7376+dp2(%rip)
	movq	7376+dp2(%rip), %rax
	movq	%rax, 72+dp2(%rip)
	movl	$0, -28(%rbp)
	jmp	.L8
.L13:
	movl	$1, -24(%rbp)
	jmp	.L9
.L12:
	movl	$0, -20(%rbp)
	jmp	.L10
.L11:
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movl	-20(%rbp), %eax
	cltq
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %r8
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	addq	%rax, %r8
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	(%r8,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	leaq	(%rdi,%rcx), %rsi
	movl	-20(%rbp), %eax
	cltq
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rdi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	%rsi, (%rax)
	movl	-28(%rbp), %eax
	leal	1(%rax), %esi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%esi, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %r8
	movl	-20(%rbp), %eax
	cltq
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	(%rdi,%rax), %rcx
	movl	-28(%rbp), %eax
	leal	1(%rax), %edi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	leaq	(%r8,%rcx), %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%edi, %rdi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rdi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	%rsi, (%rax)
	movl	-28(%rbp), %eax
	leal	1(%rax), %esi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%esi, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %r8
	movl	-20(%rbp), %eax
	cltq
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rsi
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	leaq	0(,%rdx,8), %rax
	movq	%rax, %rdx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rax, %rdx
	imulq	$7272, %rsi, %rax
	addq	%rax, %rdx
	leaq	dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rsi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	8+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	(%rdi,%rax), %rcx
	movl	-28(%rbp), %eax
	leal	1(%rax), %edi
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	leaq	(%r8,%rcx), %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movslq	%edi, %rdi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	imulq	$7272, %rdi, %rcx
	addq	%rax, %rcx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	16+dp2(%rip), %rax
	addq	%rdx, %rax
	movq	%rsi, (%rax)
	addl	$1, -20(%rbp)
.L10:
	cmpl	$2, -20(%rbp)
	jle	.L11
	addl	$1, -24(%rbp)
.L9:
	cmpl	$99, -24(%rbp)
	jle	.L12
	addl	$1, -28(%rbp)
.L8:
	cmpl	$8, -28(%rbp)
	jle	.L13
	jmp	.L14
.L23:
	movl	-32(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L15
	movl	-32(%rbp), %eax
	cltq
	addq	$808, %rax
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	dp1(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-32(%rbp), %eax
	cltq
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	25864+dp1(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movl	-32(%rbp), %eax
	cltq
	salq	$5, %rax
	movq	%rax, %rdx
	leaq	25872+dp1(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L16
.L15:
	movq	$0, -16(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L17
.L21:
	movl	$0, -24(%rbp)
	jmp	.L18
.L20:
	movl	-28(%rbp), %eax
	imull	-24(%rbp), %eax
	cmpl	$2, %eax
	je	.L19
	movl	-32(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rcx
	movq	%rax, %rdx
	salq	$3, %rdx
	addq	%rax, %rdx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$7272, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp2(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -16(%rbp)
.L19:
	addl	$1, -24(%rbp)
.L18:
	cmpl	$2, -24(%rbp)
	jle	.L20
	addl	$1, -28(%rbp)
.L17:
	cmpl	$2, -28(%rbp)
	jle	.L21
.L16:
	movq	-16(%rbp), %rax
	imulq	$40320, %rax, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L22
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jg	.L23
.L22:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	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:
