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

```c
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

// 内部定数
#define D_MOD			1000000007								// 除数(10の9乗+7)
#define D_ARRAY_MAX		105										// 最大配列数
#define D_VAL_MAX		256										// 最大値
#define D_FACT_MAX		D_ARRAY_MAX								// 最大階乗数

// 内部変数
static FILE *szpFpI;											// 入力
static int si3PCnt[D_ARRAY_MAX][D_VAL_MAX][D_ARRAY_MAX];		// パターン数[桁数][値][長さ]
static int si1ModFact[D_FACT_MAX];								// 階乗リスト

// 内部変数 - テスト用
#ifdef D_TEST
	static int siRes;
	static FILE *szpFpA;
	static int siTNo;
#endif

// １行出力
int
fOutLine(
	char *pcpLine				// <I> １行
)
{
	char lc1Buf[1024];

#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, pcpLine)) {
		siRes = -1;
	}
#else
	printf("%s", pcpLine);
#endif

	return 0;
}

// 和 - 取得
int
fGetModSum(
	int piVal1					// <I> 値１
	, int piVal2				// <I> 値２
)
{
	return (piVal1 + piVal2) % D_MOD;
}

// 積 - 取得
int
fGetModMulti(
	int piVal1					// <I> 値１
	, int piVal2				// <I> 値２
)
{
	return (int)((long long)piVal1 * (long long)piVal2 % D_MOD);
}

// 階乗リスト - 作成
int
fMakeModFact(
	int piMax					// <I> 最大値
)
{
	int i;

	si1ModFact[0] = 1;
	si1ModFact[1] = 1;
	for (i = 2; i <= piMax; i++) {
		si1ModFact[i] = fGetModMulti(si1ModFact[i - 1], i);
	}

	return 0;
}

// 実行メイン
int
fMain(
)
{
	int i, j, k;
	char lc1Buf[1024];

	// データ - 初期化
	memset(si3PCnt, 0, sizeof(si3PCnt));
	si3PCnt[0][0][0] = 1;

	// 配列数・k - 取得
	int liACnt, liK;
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d", &liACnt, &liK);

	// 配列 - 取得
	for (i = 0; i < liACnt; i++) {
		int liVal;
		fscanf(szpFpI, "%d", &liVal);

		// 現在値でループ
		for (j = 0; j < D_VAL_MAX; j++) {
			int liXor = j ^ liVal;
			for (k = 0; k <= i; k++) {

				// 値 - 追加
				si3PCnt[i + 1][liXor][k + 1] = fGetModSum(si3PCnt[i + 1][liXor][k + 1], si3PCnt[i][j][k]);

				// 値 - 追加しない
				si3PCnt[i + 1][j][k] = fGetModSum(si3PCnt[i + 1][j][k], si3PCnt[i][j][k]);
			}
		}
	}
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);

	// 階乗リスト - 作成
	fMakeModFact(liACnt);

	// 合計 - 取得
	int liSum = 0;
	for (i = 0; i <= liACnt; i++) {
		int liCnt = fGetModMulti(si3PCnt[liACnt][liK][i], si1ModFact[i]);
		liSum = fGetModSum(liSum, liCnt);
	}

	return liSum;
}

// １回実行
int
fOne(
)
{
	int liRet;
	char lc1Buf[1024];

	// 入力 - セット
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", siTNo);
	szpFpI = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", siTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#else
	szpFpI = stdin;
#endif

	// 実行メイン
	liRet = fMain();

	// 出力
	sprintf(lc1Buf, "%d\n", liRet);
	fOutLine(lc1Buf);

	// 残データ有無
#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, "")) {
		siRes = -1;
	}
#endif

	// テストファイルクローズ
#ifdef D_TEST
	fclose(szpFpI);
	fclose(szpFpA);
#endif

	// テスト結果
#ifdef D_TEST
	if (siRes == 0) {
		printf("OK %d\n", siTNo);
	}
	else {
		printf("NG %d\n", siTNo);
	}
#endif

	return 0;
}

// プログラム開始
int
main()
{

#ifdef D_TEST
	int i;
	for (i = D_TEST_SNO; i <= D_TEST_ENO; i++) {
		siTNo = i;
		fOne();
	}
#else
	fOne();
#endif

	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	szpFpI
	.comm	szpFpI,8,8
	.local	si3PCnt
	.comm	si3PCnt,11289600,32
	.local	si1ModFact
	.comm	si1ModFact,420,32
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%rdi, -1048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fOutLine, .-fOutLine
	.globl	fGetModSum
	.type	fGetModSum, @function
fGetModSum:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %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
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fGetModSum, .-fGetModSum
	.globl	fGetModMulti
	.type	fGetModMulti, @function
fGetModMulti:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fGetModMulti, .-fGetModMulti
	.globl	fMakeModFact
	.type	fMakeModFact, @function
fMakeModFact:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	$1, si1ModFact(%rip)
	movl	$1, 4+si1ModFact(%rip)
	movl	$2, -4(%rbp)
	jmp	.L9
.L10:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1ModFact(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	fGetModMulti
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	si1ModFact(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L9:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L10
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fMakeModFact, .-fMakeModFact
	.section	.rodata
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	subq	$1088, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$11289600, %edx
	movl	$0, %esi
	leaq	si3PCnt(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, si3PCnt(%rip)
	movq	szpFpI(%rip), %rdx
	leaq	-1056(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1088(%rbp), %rcx
	leaq	-1092(%rbp), %rdx
	leaq	-1056(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -1080(%rbp)
	jmp	.L13
.L18:
	movq	szpFpI(%rip), %rax
	leaq	-1084(%rbp), %rdx
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	$0, -1076(%rbp)
	jmp	.L14
.L17:
	movl	-1084(%rbp), %eax
	xorl	-1076(%rbp), %eax
	movl	%eax, -1060(%rbp)
	movl	$0, -1072(%rbp)
	jmp	.L15
.L16:
	movl	-1072(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1080(%rbp), %eax
	cltq
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-1080(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1072(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	movl	-1060(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-1080(%rbp), %edx
	leal	1(%rdx), %ebx
	movl	-1072(%rbp), %edx
	leal	1(%rdx), %r12d
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetModSum
	movl	%eax, %ecx
	movslq	%r12d, %rsi
	movslq	%ebx, %rax
	movl	-1060(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-1072(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1080(%rbp), %eax
	cltq
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-1080(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1072(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-1080(%rbp), %edx
	leal	1(%rdx), %ebx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetModSum
	movl	%eax, %ecx
	movl	-1072(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ebx, %rax
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -1072(%rbp)
.L15:
	movl	-1072(%rbp), %eax
	cmpl	-1080(%rbp), %eax
	jle	.L16
	addl	$1, -1076(%rbp)
.L14:
	cmpl	$255, -1076(%rbp)
	jle	.L17
	addl	$1, -1080(%rbp)
.L13:
	movl	-1092(%rbp), %eax
	cmpl	%eax, -1080(%rbp)
	jl	.L18
	movq	szpFpI(%rip), %rdx
	leaq	-1056(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	-1092(%rbp), %eax
	movl	%eax, %edi
	call	fMakeModFact
	movl	$0, -1068(%rbp)
	movl	$0, -1080(%rbp)
	jmp	.L19
.L20:
	movl	-1080(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1ModFact(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-1092(%rbp), %eax
	movl	-1088(%rbp), %edx
	movl	-1080(%rbp), %esi
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetModMulti
	movl	%eax, -1064(%rbp)
	movl	-1064(%rbp), %edx
	movl	-1068(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	fGetModSum
	movl	%eax, -1068(%rbp)
	addl	$1, -1080(%rbp)
.L19:
	movl	-1092(%rbp), %eax
	cmpl	%eax, -1080(%rbp)
	jle	.L20
	movl	-1068(%rbp), %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	addq	$1088, %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fMain, .-fMain
	.section	.rodata
.LC3:
	.string	"%d\n"
	.text
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC3(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	fOutLine
	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
.LFE11:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %eax
	call	fOne
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"%s"
	.text
	.p2align 4
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdi, %rdx
	leaq	.LC0(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	fOutLine, .-fOutLine
	.p2align 4
	.globl	fGetModSum
	.type	fGetModSum, @function
fGetModSum:
.LFB52:
	.cfi_startproc
	endbr64
	addl	%esi, %edi
	movslq	%edi, %rax
	movl	%edi, %edx
	imulq	$1152921497, %rax, %rax
	sarl	$31, %edx
	sarq	$60, %rax
	subl	%edx, %eax
	imull	$1000000007, %eax, %edx
	movl	%edi, %eax
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	fGetModSum, .-fGetModSum
	.p2align 4
	.globl	fGetModMulti
	.type	fGetModMulti, @function
fGetModMulti:
.LFB53:
	.cfi_startproc
	endbr64
	movabsq	$-8543223828751151131, %rdx
	movslq	%esi, %rsi
	movslq	%edi, %rdi
	imulq	%rsi, %rdi
	movq	%rdi, %rax
	imulq	%rdx
	movq	%rdi, %rax
	sarq	$63, %rax
	addq	%rdi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movl	%edi, %eax
	imulq	$1000000007, %rdx, %rdx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	fGetModMulti, .-fGetModMulti
	.p2align 4
	.globl	fMakeModFact
	.type	fMakeModFact, @function
fMakeModFact:
.LFB54:
	.cfi_startproc
	endbr64
	movq	.LC1(%rip), %rax
	movq	%rax, si1ModFact(%rip)
	cmpl	$1, %edi
	jle	.L7
	leal	1(%rdi), %r9d
	movl	$2, %esi
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdi
	leaq	si1ModFact(%rip), %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	%eax, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, (%r8,%rsi,4)
	addq	$1, %rsi
	movl	%ecx, %eax
	cmpq	%rsi, %r9
	jne	.L8
.L7:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE54:
	.size	fMakeModFact, .-fMakeModFact
	.section	.rodata.str1.1
.LC2:
	.string	"%d%d"
.LC3:
	.string	"%d"
	.text
	.p2align 4
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$11289600, %edx
	xorl	%esi, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	si3PCnt(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	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	$1208, %rsp
	.cfi_def_cfa_offset 1264
	movq	%fs:40, %rax
	movq	%rax, 1192(%rsp)
	xorl	%eax, %eax
	leaq	160(%rsp), %rbx
	call	memset@PLT
	movq	szpFpI(%rip), %rdx
	movl	$1024, %esi
	movq	%rbx, %rdi
	movl	$1, si3PCnt(%rip)
	movq	%rbx, 120(%rsp)
	call	fgets@PLT
	leaq	152(%rsp), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	148(%rsp), %rdx
	leaq	.LC2(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	148(%rsp), %eax
	testl	%eax, %eax
	jle	.L20
	pxor	%xmm3, %xmm3
	movq	$-107520, %r12
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movdqa	.LC4(%rip), %xmm2
	movdqa	%xmm3, %xmm4
	leaq	156(%rsp), %rax
	movq	$0, 48(%rsp)
	movl	$0, 60(%rsp)
	movq	%rax, 112(%rsp)
	pcmpgtd	%xmm2, %xmm4
	movq	%r12, 80(%rsp)
.L11:
	movq	112(%rsp), %rdx
	movq	szpFpI(%rip), %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	leaq	.LC3(%rip), %rsi
	movaps	%xmm4, 128(%rsp)
	call	__isoc99_fscanf@PLT
	movl	60(%rsp), %r15d
	movq	%rbx, 88(%rsp)
	pxor	%xmm3, %xmm3
	movl	156(%rsp), %eax
	movdqa	.LC4(%rip), %xmm2
	movdqa	128(%rsp), %xmm4
	movl	%r15d, %edi
	movl	%r15d, %r8d
	addl	$1, %edi
	movl	%eax, 56(%rsp)
	movq	%r14, %rax
	subq	80(%rsp), %rax
	movl	%edi, %r15d
	movl	%edi, %edx
	movl	%edi, 60(%rsp)
	andl	$-4, %edi
	leal	1(%rdi), %esi
	shrl	$2, %edx
	movl	%edi, 72(%rsp)
	movl	%esi, 12(%rsp)
	movq	48(%rsp), %rsi
	leal	-1(%rdx), %ecx
	leal	2(%rdi), %edx
	addl	$3, %edi
	movl	%edx, 28(%rsp)
	movq	$-107520, %rdx
	addq	$1, %rcx
	movl	%edi, 76(%rsp)
	leaq	1(%rsi), %rdi
	subq	%r14, %rdx
	salq	$4, %rcx
	movl	%esi, 24(%rsp)
	imulq	$107520, %rdi, %rsi
	movq	%rdx, 32(%rsp)
	movl	$16, %edx
	subq	%r14, %rdx
	movq	%rdi, 104(%rsp)
	xorl	%edi, %edi
	leaq	4(%rsi), %rbx
	movq	%rdx, 40(%rsp)
	movslq	%r15d, %rdx
	movq	%rbx, 96(%rsp)
	imulq	$26880, %rdx, %rbx
	movslq	%r8d, %rdx
	movq	%rbx, 16(%rsp)
	imulq	$26880, %rdx, %rbx
	movq	%rbx, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L19:
	movl	56(%rsp), %esi
	movq	32(%rsp), %rbx
	xorl	%edi, %esi
	leaq	(%rbx,%rax), %r10
	movq	40(%rsp), %rbx
	movslq	%esi, %rsi
	imulq	$420, %rsi, %r9
	leaq	(%r9,%r13), %r8
	leaq	107524(%r8), %rdx
	addq	$107540, %r8
	cmpq	%r10, %r8
	leaq	(%rbx,%rax), %r8
	setle	%r10b
	cmpq	%r8, %rdx
	setge	%r8b
	orb	%r10b, %r8b
	je	.L14
	cmpl	$2, 48(%rsp)
	jbe	.L14
	leaq	-107520(%rax), %r9
	addq	%r14, %rdx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L15:
	movdqu	(%rdx,%r8), %xmm7
	movdqu	(%r9,%r8), %xmm5
	movdqa	%xmm3, %xmm6
	paddd	%xmm7, %xmm5
	movdqa	%xmm4, %xmm7
	movdqa	%xmm5, %xmm1
	punpckldq	%xmm5, %xmm1
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm1, %xmm7
	movdqa	%xmm1, %xmm0
	pmuludq	%xmm2, %xmm0
	movdqa	%xmm5, %xmm1
	punpckhdq	%xmm5, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	movdqa	%xmm4, %xmm7
	psllq	$32, %xmm6
	pmuludq	%xmm1, %xmm7
	paddq	%xmm6, %xmm0
	movdqa	%xmm3, %xmm6
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm2, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	psllq	$32, %xmm6
	paddq	%xmm6, %xmm1
	shufps	$221, %xmm1, %xmm0
	movdqa	%xmm5, %xmm1
	psrad	$28, %xmm0
	psrad	$31, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm6
	pslld	$5, %xmm6
	psubd	%xmm0, %xmm6
	pslld	$2, %xmm6
	paddd	%xmm0, %xmm6
	movdqa	%xmm6, %xmm1
	pslld	$5, %xmm1
	psubd	%xmm6, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm0, %xmm1
	pslld	$7, %xmm1
	psubd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm6
	pslld	$6, %xmm6
	psubd	%xmm1, %xmm6
	pslld	$3, %xmm6
	movdqa	%xmm6, %xmm1
	movdqa	%xmm3, %xmm6
	psubd	%xmm0, %xmm1
	psubd	%xmm1, %xmm5
	movups	%xmm5, (%rdx,%r8)
	movdqu	(%rax,%r8), %xmm7
	movdqu	(%r9,%r8), %xmm5
	paddd	%xmm7, %xmm5
	movdqa	%xmm4, %xmm7
	movdqa	%xmm5, %xmm1
	punpckldq	%xmm5, %xmm1
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm1, %xmm7
	movdqa	%xmm1, %xmm0
	pmuludq	%xmm2, %xmm0
	movdqa	%xmm5, %xmm1
	punpckhdq	%xmm5, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	movdqa	%xmm4, %xmm7
	psllq	$32, %xmm6
	pmuludq	%xmm1, %xmm7
	paddq	%xmm6, %xmm0
	movdqa	%xmm3, %xmm6
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm2, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	psllq	$32, %xmm6
	paddq	%xmm6, %xmm1
	shufps	$221, %xmm1, %xmm0
	movdqa	%xmm5, %xmm1
	psrad	$28, %xmm0
	psrad	$31, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm6
	pslld	$5, %xmm6
	psubd	%xmm0, %xmm6
	pslld	$2, %xmm6
	paddd	%xmm0, %xmm6
	movdqa	%xmm6, %xmm1
	pslld	$5, %xmm1
	psubd	%xmm6, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm0, %xmm1
	pslld	$7, %xmm1
	psubd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm6
	pslld	$6, %xmm6
	psubd	%xmm1, %xmm6
	pslld	$3, %xmm6
	movdqa	%xmm6, %xmm1
	psubd	%xmm0, %xmm1
	psubd	%xmm1, %xmm5
	movups	%xmm5, (%rax,%r8)
	addq	$16, %r8
	cmpq	%rcx, %r8
	jne	.L15
	movl	72(%rsp), %r15d
	movl	60(%rsp), %ebx
	cmpl	%ebx, %r15d
	je	.L18
	leaq	(%rsi,%rsi,2), %rdx
	movslq	12(%rsp), %r9
	leaq	(%rsi,%rdx,4), %rdx
	leaq	(%rsi,%rdx,8), %rbx
	movslq	%edi, %rdx
	movslq	%r15d, %rsi
	addq	16(%rsp), %rbx
	leaq	(%rdx,%rdx,2), %r8
	leaq	(%rbx,%r9), %r12
	leaq	(%rdx,%r8,4), %r8
	leaq	(%rdx,%r8,8), %r8
	movq	64(%rsp), %rdx
	leaq	(%rdx,%r8), %r11
	addq	16(%rsp), %r8
	leaq	(%r11,%rsi), %rbp
	addq	%r8, %rsi
	movl	(%r14,%rbp,4), %edx
	addl	(%r14,%r12,4), %edx
	movl	%edx, %r10d
	movslq	%edx, %rdx
	imulq	$1152921497, %rdx, %rdx
	movl	%r10d, %r15d
	sarl	$31, %r15d
	sarq	$60, %rdx
	subl	%r15d, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, (%r14,%r12,4)
	movl	(%r14,%rbp,4), %r10d
	addl	(%r14,%rsi,4), %r10d
	movslq	%r10d, %rdx
	movl	%r10d, %ebp
	imulq	$1152921497, %rdx, %rdx
	sarl	$31, %ebp
	sarq	$60, %rdx
	subl	%ebp, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, (%r14,%rsi,4)
	movl	12(%rsp), %esi
	cmpl	24(%rsp), %esi
	jg	.L18
	movslq	28(%rsp), %rsi
	leaq	(%r11,%r9), %rbp
	addq	%r8, %r9
	leaq	(%rbx,%rsi), %r12
	movl	(%r14,%r12,4), %r10d
	addl	(%r14,%rbp,4), %r10d
	movslq	%r10d, %rdx
	movl	%r10d, %r15d
	imulq	$1152921497, %rdx, %rdx
	sarl	$31, %r15d
	sarq	$60, %rdx
	subl	%r15d, %edx
	movl	28(%rsp), %r15d
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, (%r14,%r12,4)
	movl	(%r14,%rbp,4), %r10d
	addl	(%r14,%r9,4), %r10d
	movslq	%r10d, %rdx
	movl	%r10d, %ebp
	imulq	$1152921497, %rdx, %rdx
	sarl	$31, %ebp
	sarq	$60, %rdx
	subl	%ebp, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, (%r14,%r9,4)
	cmpl	24(%rsp), %r15d
	jg	.L18
	movslq	76(%rsp), %r10
	addq	%rsi, %r11
	addq	%r8, %rsi
	addq	%rbx, %r10
	movl	(%r14,%r10,4), %edx
	addl	(%r14,%r11,4), %edx
	movl	%edx, %r9d
	movslq	%edx, %rdx
	imulq	$1152921497, %rdx, %rdx
	movl	%r9d, %ebx
	sarl	$31, %ebx
	sarq	$60, %rdx
	subl	%ebx, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r9d
	movl	%r9d, (%r14,%r10,4)
	movl	(%r14,%rsi,4), %edx
	addl	(%r14,%r11,4), %edx
	movl	%edx, %r8d
	movslq	%edx, %rdx
	imulq	$1152921497, %rdx, %rdx
	movl	%r8d, %r9d
	sarl	$31, %r9d
	sarq	$60, %rdx
	subl	%r9d, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r8d
	movl	%r8d, (%r14,%rsi,4)
.L18:
	addl	$1, %edi
	addq	$420, %rax
	cmpl	$256, %edi
	jne	.L19
	movq	104(%rsp), %rax
	movq	88(%rsp), %rbx
	addq	$107520, %r13
	subq	$107520, 80(%rsp)
	movq	%rax, 48(%rsp)
	movl	60(%rsp), %eax
	cmpl	%eax, 148(%rsp)
	jg	.L11
.L20:
	movq	120(%rsp), %rdi
	movq	szpFpI(%rip), %rdx
	movl	$1024, %esi
	call	fgets@PLT
	movq	.LC1(%rip), %rax
	movl	148(%rsp), %edi
	movq	%rax, si1ModFact(%rip)
	cmpl	$1, %edi
	jle	.L43
	leal	1(%rdi), %r10d
	movl	$2, %esi
	movl	$1, %eax
	movabsq	$-8543223828751151131, %r8
	leaq	si1ModFact(%rip), %r9
.L21:
	imulq	%rsi, %rax
	movq	%rax, %rcx
	imulq	%r8
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$29, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rcx
	movl	%ecx, (%r9,%rsi,4)
	addq	$1, %rsi
	movslq	%ecx, %rax
	cmpq	%r10, %rsi
	jne	.L21
.L23:
	movslq	152(%rsp), %rsi
	movslq	%edi, %rax
	xorl	%r10d, %r10d
	xorl	%r8d, %r8d
	imulq	$107520, %rax, %rax
	movabsq	$-8543223828751151131, %r11
	imulq	$420, %rsi, %rsi
	addq	%rax, %rsi
	addq	%r14, %rsi
.L22:
	movslq	(%r9,%r10,4), %rax
	movslq	(%rsi,%r10,4), %rcx
	addq	$1, %r10
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%r11
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movq	%rcx, %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rax
	addl	%r8d, %eax
	movslq	%eax, %r8
	cltd
	imulq	$1152921497, %r8, %r8
	sarq	$60, %r8
	subl	%edx, %r8d
	imull	$1000000007, %r8d, %edx
	subl	%edx, %eax
	movl	%eax, %r8d
	cmpl	%r10d, %edi
	jge	.L22
.L10:
	movq	1192(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	addq	$1208, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r8d, %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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movq	88(%rsp), %rbx
	addq	96(%rsp), %r9
	movq	%rax, %rsi
	movq	80(%rsp), %r8
	addq	%r14, %r9
	addq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L17:
	leaq	(%rsi,%r8), %r11
	movl	(%r9), %r10d
	addq	$4, %rsi
	addq	$4, %r9
	addl	(%r11,%r13), %r10d
	movslq	%r10d, %rdx
	movl	%r10d, %ebp
	imulq	$1152921497, %rdx, %rdx
	sarl	$31, %ebp
	sarq	$60, %rdx
	subl	%ebp, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, -4(%r9)
	movl	-4(%rsi), %r10d
	addl	(%r11,%r13), %r10d
	movslq	%r10d, %rdx
	movl	%r10d, %r11d
	imulq	$1152921497, %rdx, %rdx
	sarl	$31, %r11d
	sarq	$60, %rdx
	subl	%r11d, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, -4(%rsi)
	cmpq	%rbx, %rsi
	jne	.L17
	jmp	.L18
.L43:
	testl	%edi, %edi
	jns	.L45
	xorl	%r8d, %r8d
	jmp	.L10
.L45:
	leaq	si1ModFact(%rip), %r9
	jmp	.L23
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	fMain, .-fMain
	.section	.rodata.str1.1
.LC5:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB56:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	subq	$1040, %rsp
	.cfi_def_cfa_offset 1056
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	movq	stdin(%rip), %rax
	movq	%rsp, %r12
	movq	%rax, szpFpI(%rip)
	xorl	%eax, %eax
	call	fMain
	movl	$1024, %edx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%eax, %r8d
	leaq	.LC5(%rip), %rcx
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	1032(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$1040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L49:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE56:
	.size	fOne, .-fOne
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	call	fOne
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.local	si1ModFact
	.comm	si1ModFact,420,32
	.local	si3PCnt
	.comm	si3PCnt,11289600,32
	.local	szpFpI
	.comm	szpFpI,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1
	.long	1
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	1152921497
	.long	1152921497
	.long	1152921497
	.long	1152921497
	.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	"%s"
	.text
	.p2align 4
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdi, %rdx
	leaq	.LC0(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	fOutLine, .-fOutLine
	.p2align 4
	.globl	fGetModSum
	.type	fGetModSum, @function
fGetModSum:
.LFB52:
	.cfi_startproc
	endbr64
	addl	%esi, %edi
	movslq	%edi, %rax
	movl	%edi, %edx
	imulq	$1152921497, %rax, %rax
	sarl	$31, %edx
	sarq	$60, %rax
	subl	%edx, %eax
	imull	$1000000007, %eax, %edx
	movl	%edi, %eax
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	fGetModSum, .-fGetModSum
	.p2align 4
	.globl	fGetModMulti
	.type	fGetModMulti, @function
fGetModMulti:
.LFB53:
	.cfi_startproc
	endbr64
	movabsq	$-8543223828751151131, %rdx
	movslq	%esi, %rsi
	movslq	%edi, %rdi
	imulq	%rsi, %rdi
	movq	%rdi, %rax
	imulq	%rdx
	movq	%rdi, %rax
	sarq	$63, %rax
	addq	%rdi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movl	%edi, %eax
	imulq	$1000000007, %rdx, %rdx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	fGetModMulti, .-fGetModMulti
	.p2align 4
	.globl	fMakeModFact
	.type	fMakeModFact, @function
fMakeModFact:
.LFB54:
	.cfi_startproc
	endbr64
	movq	.LC1(%rip), %rax
	movq	%rax, si1ModFact(%rip)
	cmpl	$1, %edi
	jle	.L7
	leal	1(%rdi), %r9d
	movl	$2, %esi
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdi
	leaq	si1ModFact(%rip), %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	%eax, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, (%r8,%rsi,4)
	addq	$1, %rsi
	movl	%ecx, %eax
	cmpq	%rsi, %r9
	jne	.L8
.L7:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE54:
	.size	fMakeModFact, .-fMakeModFact
	.section	.rodata.str1.1
.LC2:
	.string	"%d%d"
.LC3:
	.string	"%d"
	.text
	.p2align 4
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$11289600, %edx
	xorl	%esi, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	si3PCnt(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	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	$1208, %rsp
	.cfi_def_cfa_offset 1264
	movq	%fs:40, %rax
	movq	%rax, 1192(%rsp)
	xorl	%eax, %eax
	leaq	160(%rsp), %rbx
	call	memset@PLT
	movq	szpFpI(%rip), %rdx
	movl	$1024, %esi
	movq	%rbx, %rdi
	movl	$1, si3PCnt(%rip)
	movq	%rbx, 120(%rsp)
	call	fgets@PLT
	leaq	152(%rsp), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	148(%rsp), %rdx
	leaq	.LC2(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	148(%rsp), %eax
	testl	%eax, %eax
	jle	.L20
	pxor	%xmm3, %xmm3
	movq	$-107520, %r12
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movdqa	.LC4(%rip), %xmm2
	movdqa	%xmm3, %xmm4
	leaq	156(%rsp), %rax
	movq	$0, 48(%rsp)
	movl	$0, 60(%rsp)
	movq	%rax, 112(%rsp)
	pcmpgtd	%xmm2, %xmm4
	movq	%r12, 80(%rsp)
.L11:
	movq	112(%rsp), %rdx
	movq	szpFpI(%rip), %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	leaq	.LC3(%rip), %rsi
	movaps	%xmm4, 128(%rsp)
	call	__isoc99_fscanf@PLT
	movl	60(%rsp), %r15d
	movq	%rbx, 88(%rsp)
	pxor	%xmm3, %xmm3
	movl	156(%rsp), %eax
	movdqa	.LC4(%rip), %xmm2
	movdqa	128(%rsp), %xmm4
	movl	%r15d, %edi
	movl	%r15d, %r8d
	addl	$1, %edi
	movl	%eax, 56(%rsp)
	movq	%r14, %rax
	subq	80(%rsp), %rax
	movl	%edi, %r15d
	movl	%edi, %edx
	movl	%edi, 60(%rsp)
	andl	$-4, %edi
	leal	1(%rdi), %esi
	shrl	$2, %edx
	movl	%edi, 72(%rsp)
	movl	%esi, 12(%rsp)
	movq	48(%rsp), %rsi
	leal	-1(%rdx), %ecx
	leal	2(%rdi), %edx
	addl	$3, %edi
	movl	%edx, 28(%rsp)
	movq	$-107520, %rdx
	addq	$1, %rcx
	movl	%edi, 76(%rsp)
	leaq	1(%rsi), %rdi
	subq	%r14, %rdx
	salq	$4, %rcx
	movl	%esi, 24(%rsp)
	imulq	$107520, %rdi, %rsi
	movq	%rdx, 32(%rsp)
	movl	$16, %edx
	subq	%r14, %rdx
	movq	%rdi, 104(%rsp)
	xorl	%edi, %edi
	leaq	4(%rsi), %rbx
	movq	%rdx, 40(%rsp)
	movslq	%r15d, %rdx
	movq	%rbx, 96(%rsp)
	imulq	$26880, %rdx, %rbx
	movslq	%r8d, %rdx
	movq	%rbx, 16(%rsp)
	imulq	$26880, %rdx, %rbx
	movq	%rbx, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L19:
	movl	56(%rsp), %esi
	movq	32(%rsp), %rbx
	xorl	%edi, %esi
	leaq	(%rbx,%rax), %r10
	movq	40(%rsp), %rbx
	movslq	%esi, %rsi
	imulq	$420, %rsi, %r9
	leaq	(%r9,%r13), %r8
	leaq	107524(%r8), %rdx
	addq	$107540, %r8
	cmpq	%r10, %r8
	leaq	(%rbx,%rax), %r8
	setle	%r10b
	cmpq	%r8, %rdx
	setge	%r8b
	orb	%r10b, %r8b
	je	.L14
	cmpl	$2, 48(%rsp)
	jbe	.L14
	leaq	-107520(%rax), %r9
	addq	%r14, %rdx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L15:
	movdqu	(%rdx,%r8), %xmm7
	movdqu	(%r9,%r8), %xmm5
	movdqa	%xmm3, %xmm6
	paddd	%xmm7, %xmm5
	movdqa	%xmm4, %xmm7
	movdqa	%xmm5, %xmm1
	punpckldq	%xmm5, %xmm1
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm1, %xmm7
	movdqa	%xmm1, %xmm0
	pmuludq	%xmm2, %xmm0
	movdqa	%xmm5, %xmm1
	punpckhdq	%xmm5, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	movdqa	%xmm4, %xmm7
	psllq	$32, %xmm6
	pmuludq	%xmm1, %xmm7
	paddq	%xmm6, %xmm0
	movdqa	%xmm3, %xmm6
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm2, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	psllq	$32, %xmm6
	paddq	%xmm6, %xmm1
	shufps	$221, %xmm1, %xmm0
	movdqa	%xmm5, %xmm1
	psrad	$28, %xmm0
	psrad	$31, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm6
	pslld	$5, %xmm6
	psubd	%xmm0, %xmm6
	pslld	$2, %xmm6
	paddd	%xmm0, %xmm6
	movdqa	%xmm6, %xmm1
	pslld	$5, %xmm1
	psubd	%xmm6, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm0, %xmm1
	pslld	$7, %xmm1
	psubd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm6
	pslld	$6, %xmm6
	psubd	%xmm1, %xmm6
	pslld	$3, %xmm6
	movdqa	%xmm6, %xmm1
	movdqa	%xmm3, %xmm6
	psubd	%xmm0, %xmm1
	psubd	%xmm1, %xmm5
	movups	%xmm5, (%rdx,%r8)
	movdqu	(%rax,%r8), %xmm7
	movdqu	(%r9,%r8), %xmm5
	paddd	%xmm7, %xmm5
	movdqa	%xmm4, %xmm7
	movdqa	%xmm5, %xmm1
	punpckldq	%xmm5, %xmm1
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm1, %xmm7
	movdqa	%xmm1, %xmm0
	pmuludq	%xmm2, %xmm0
	movdqa	%xmm5, %xmm1
	punpckhdq	%xmm5, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	movdqa	%xmm4, %xmm7
	psllq	$32, %xmm6
	pmuludq	%xmm1, %xmm7
	paddq	%xmm6, %xmm0
	movdqa	%xmm3, %xmm6
	pcmpgtd	%xmm1, %xmm6
	pmuludq	%xmm2, %xmm1
	pmuludq	%xmm2, %xmm6
	paddq	%xmm7, %xmm6
	psllq	$32, %xmm6
	paddq	%xmm6, %xmm1
	shufps	$221, %xmm1, %xmm0
	movdqa	%xmm5, %xmm1
	psrad	$28, %xmm0
	psrad	$31, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm6
	pslld	$5, %xmm6
	psubd	%xmm0, %xmm6
	pslld	$2, %xmm6
	paddd	%xmm0, %xmm6
	movdqa	%xmm6, %xmm1
	pslld	$5, %xmm1
	psubd	%xmm6, %xmm1
	pslld	$2, %xmm1
	paddd	%xmm0, %xmm1
	pslld	$7, %xmm1
	psubd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm6
	pslld	$6, %xmm6
	psubd	%xmm1, %xmm6
	pslld	$3, %xmm6
	movdqa	%xmm6, %xmm1
	psubd	%xmm0, %xmm1
	psubd	%xmm1, %xmm5
	movups	%xmm5, (%rax,%r8)
	addq	$16, %r8
	cmpq	%rcx, %r8
	jne	.L15
	movl	72(%rsp), %r15d
	movl	60(%rsp), %ebx
	cmpl	%ebx, %r15d
	je	.L18
	leaq	(%rsi,%rsi,2), %rdx
	movslq	12(%rsp), %r9
	leaq	(%rsi,%rdx,4), %rdx
	leaq	(%rsi,%rdx,8), %rbx
	movslq	%edi, %rdx
	movslq	%r15d, %rsi
	addq	16(%rsp), %rbx
	leaq	(%rdx,%rdx,2), %r8
	leaq	(%rbx,%r9), %r12
	leaq	(%rdx,%r8,4), %r8
	leaq	(%rdx,%r8,8), %r8
	movq	64(%rsp), %rdx
	leaq	(%rdx,%r8), %r11
	addq	16(%rsp), %r8
	leaq	(%r11,%rsi), %rbp
	addq	%r8, %rsi
	movl	(%r14,%rbp,4), %edx
	addl	(%r14,%r12,4), %edx
	movl	%edx, %r10d
	movslq	%edx, %rdx
	imulq	$1152921497, %rdx, %rdx
	movl	%r10d, %r15d
	sarl	$31, %r15d
	sarq	$60, %rdx
	subl	%r15d, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, (%r14,%r12,4)
	movl	(%r14,%rbp,4), %r10d
	addl	(%r14,%rsi,4), %r10d
	movslq	%r10d, %rdx
	movl	%r10d, %ebp
	imulq	$1152921497, %rdx, %rdx
	sarl	$31, %ebp
	sarq	$60, %rdx
	subl	%ebp, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, (%r14,%rsi,4)
	movl	12(%rsp), %esi
	cmpl	24(%rsp), %esi
	jg	.L18
	movslq	28(%rsp), %rsi
	leaq	(%r11,%r9), %rbp
	addq	%r8, %r9
	leaq	(%rbx,%rsi), %r12
	movl	(%r14,%r12,4), %r10d
	addl	(%r14,%rbp,4), %r10d
	movslq	%r10d, %rdx
	movl	%r10d, %r15d
	imulq	$1152921497, %rdx, %rdx
	sarl	$31, %r15d
	sarq	$60, %rdx
	subl	%r15d, %edx
	movl	28(%rsp), %r15d
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, (%r14,%r12,4)
	movl	(%r14,%rbp,4), %r10d
	addl	(%r14,%r9,4), %r10d
	movslq	%r10d, %rdx
	movl	%r10d, %ebp
	imulq	$1152921497, %rdx, %rdx
	sarl	$31, %ebp
	sarq	$60, %rdx
	subl	%ebp, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, (%r14,%r9,4)
	cmpl	24(%rsp), %r15d
	jg	.L18
	movslq	76(%rsp), %r10
	addq	%rsi, %r11
	addq	%r8, %rsi
	addq	%rbx, %r10
	movl	(%r14,%r10,4), %edx
	addl	(%r14,%r11,4), %edx
	movl	%edx, %r9d
	movslq	%edx, %rdx
	imulq	$1152921497, %rdx, %rdx
	movl	%r9d, %ebx
	sarl	$31, %ebx
	sarq	$60, %rdx
	subl	%ebx, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r9d
	movl	%r9d, (%r14,%r10,4)
	movl	(%r14,%rsi,4), %edx
	addl	(%r14,%r11,4), %edx
	movl	%edx, %r8d
	movslq	%edx, %rdx
	imulq	$1152921497, %rdx, %rdx
	movl	%r8d, %r9d
	sarl	$31, %r9d
	sarq	$60, %rdx
	subl	%r9d, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r8d
	movl	%r8d, (%r14,%rsi,4)
.L18:
	addl	$1, %edi
	addq	$420, %rax
	cmpl	$256, %edi
	jne	.L19
	movq	104(%rsp), %rax
	movq	88(%rsp), %rbx
	addq	$107520, %r13
	subq	$107520, 80(%rsp)
	movq	%rax, 48(%rsp)
	movl	60(%rsp), %eax
	cmpl	%eax, 148(%rsp)
	jg	.L11
.L20:
	movq	120(%rsp), %rdi
	movq	szpFpI(%rip), %rdx
	movl	$1024, %esi
	call	fgets@PLT
	movq	.LC1(%rip), %rax
	movl	148(%rsp), %edi
	movq	%rax, si1ModFact(%rip)
	cmpl	$1, %edi
	jle	.L43
	leal	1(%rdi), %r10d
	movl	$2, %esi
	movl	$1, %eax
	movabsq	$-8543223828751151131, %r8
	leaq	si1ModFact(%rip), %r9
.L21:
	imulq	%rsi, %rax
	movq	%rax, %rcx
	imulq	%r8
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$29, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rcx
	movl	%ecx, (%r9,%rsi,4)
	addq	$1, %rsi
	movslq	%ecx, %rax
	cmpq	%r10, %rsi
	jne	.L21
.L23:
	movslq	152(%rsp), %rsi
	movslq	%edi, %rax
	xorl	%r10d, %r10d
	xorl	%r8d, %r8d
	imulq	$107520, %rax, %rax
	movabsq	$-8543223828751151131, %r11
	imulq	$420, %rsi, %rsi
	addq	%rax, %rsi
	addq	%r14, %rsi
.L22:
	movslq	(%r9,%r10,4), %rax
	movslq	(%rsi,%r10,4), %rcx
	addq	$1, %r10
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%r11
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movq	%rcx, %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rax
	addl	%r8d, %eax
	movslq	%eax, %r8
	cltd
	imulq	$1152921497, %r8, %r8
	sarq	$60, %r8
	subl	%edx, %r8d
	imull	$1000000007, %r8d, %edx
	subl	%edx, %eax
	movl	%eax, %r8d
	cmpl	%r10d, %edi
	jge	.L22
.L10:
	movq	1192(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	addq	$1208, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r8d, %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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movq	88(%rsp), %rbx
	addq	96(%rsp), %r9
	movq	%rax, %rsi
	movq	80(%rsp), %r8
	addq	%r14, %r9
	addq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L17:
	leaq	(%rsi,%r8), %r11
	movl	(%r9), %r10d
	addq	$4, %rsi
	addq	$4, %r9
	addl	(%r11,%r13), %r10d
	movslq	%r10d, %rdx
	movl	%r10d, %ebp
	imulq	$1152921497, %rdx, %rdx
	sarl	$31, %ebp
	sarq	$60, %rdx
	subl	%ebp, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, -4(%r9)
	movl	-4(%rsi), %r10d
	addl	(%r11,%r13), %r10d
	movslq	%r10d, %rdx
	movl	%r10d, %r11d
	imulq	$1152921497, %rdx, %rdx
	sarl	$31, %r11d
	sarq	$60, %rdx
	subl	%r11d, %edx
	imull	$1000000007, %edx, %edx
	subl	%edx, %r10d
	movl	%r10d, -4(%rsi)
	cmpq	%rbx, %rsi
	jne	.L17
	jmp	.L18
.L43:
	testl	%edi, %edi
	jns	.L45
	xorl	%r8d, %r8d
	jmp	.L10
.L45:
	leaq	si1ModFact(%rip), %r9
	jmp	.L23
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	fMain, .-fMain
	.section	.rodata.str1.1
.LC5:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB56:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	subq	$1040, %rsp
	.cfi_def_cfa_offset 1056
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	movq	stdin(%rip), %rax
	movq	%rsp, %r12
	movq	%rax, szpFpI(%rip)
	xorl	%eax, %eax
	call	fMain
	movl	$1024, %edx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%eax, %r8d
	leaq	.LC5(%rip), %rcx
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	1032(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$1040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L49:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE56:
	.size	fOne, .-fOne
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	call	fOne
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.local	si1ModFact
	.comm	si1ModFact,420,32
	.local	si3PCnt
	.comm	si3PCnt,11289600,32
	.local	szpFpI
	.comm	szpFpI,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1
	.long	1
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	1152921497
	.long	1152921497
	.long	1152921497
	.long	1152921497
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

// 内部定数
#define D_MOD			1000000007								// 除数(10の9乗+7)
#define D_ARRAY_MAX		105										// 最大配列数
#define D_VAL_MAX		256										// 最大値
#define D_FACT_MAX		D_ARRAY_MAX								// 最大階乗数

// 内部変数
static FILE *szpFpI;											// 入力
static int si3PCnt[D_ARRAY_MAX][D_VAL_MAX][D_ARRAY_MAX];		// パターン数[桁数][値][長さ]
static int si1ModFact[D_FACT_MAX];								// 階乗リスト

// 内部変数 - テスト用
#ifdef D_TEST
	static int siRes;
	static FILE *szpFpA;
	static int siTNo;
#endif

// １行出力
int
fOutLine(
	char *pcpLine				// <I> １行
)
{
	char lc1Buf[1024];

#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, pcpLine)) {
		siRes = -1;
	}
#else
	printf("%s", pcpLine);
#endif

	return 0;
}

// 和 - 取得
int
fGetModSum(
	int piVal1					// <I> 値１
	, int piVal2				// <I> 値２
)
{
	return (piVal1 + piVal2) % D_MOD;
}

// 積 - 取得
int
fGetModMulti(
	int piVal1					// <I> 値１
	, int piVal2				// <I> 値２
)
{
	return (int)((long long)piVal1 * (long long)piVal2 % D_MOD);
}

// 階乗リスト - 作成
int
fMakeModFact(
	int piMax					// <I> 最大値
)
{
	int i;

	si1ModFact[0] = 1;
	si1ModFact[1] = 1;
	for (i = 2; i <= piMax; i++) {
		si1ModFact[i] = fGetModMulti(si1ModFact[i - 1], i);
	}

	return 0;
}

// 実行メイン
int
fMain(
)
{
	int i, j, k;
	char lc1Buf[1024];

	// データ - 初期化
	memset(si3PCnt, 0, sizeof(si3PCnt));
	si3PCnt[0][0][0] = 1;

	// 配列数・k - 取得
	int liACnt, liK;
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d", &liACnt, &liK);

	// 配列 - 取得
	for (i = 0; i < liACnt; i++) {
		int liVal;
		fscanf(szpFpI, "%d", &liVal);

		// 現在値でループ
		for (j = 0; j < D_VAL_MAX; j++) {
			int liXor = j ^ liVal;
			for (k = 0; k <= i; k++) {

				// 値 - 追加
				si3PCnt[i + 1][liXor][k + 1] = fGetModSum(si3PCnt[i + 1][liXor][k + 1], si3PCnt[i][j][k]);

				// 値 - 追加しない
				si3PCnt[i + 1][j][k] = fGetModSum(si3PCnt[i + 1][j][k], si3PCnt[i][j][k]);
			}
		}
	}
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);

	// 階乗リスト - 作成
	fMakeModFact(liACnt);

	// 合計 - 取得
	int liSum = 0;
	for (i = 0; i <= liACnt; i++) {
		int liCnt = fGetModMulti(si3PCnt[liACnt][liK][i], si1ModFact[i]);
		liSum = fGetModSum(liSum, liCnt);
	}

	return liSum;
}

// １回実行
int
fOne(
)
{
	int liRet;
	char lc1Buf[1024];

	// 入力 - セット
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", siTNo);
	szpFpI = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", siTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#else
	szpFpI = stdin;
#endif

	// 実行メイン
	liRet = fMain();

	// 出力
	sprintf(lc1Buf, "%d\n", liRet);
	fOutLine(lc1Buf);

	// 残データ有無
#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, "")) {
		siRes = -1;
	}
#endif

	// テストファイルクローズ
#ifdef D_TEST
	fclose(szpFpI);
	fclose(szpFpA);
#endif

	// テスト結果
#ifdef D_TEST
	if (siRes == 0) {
		printf("OK %d\n", siTNo);
	}
	else {
		printf("NG %d\n", siTNo);
	}
#endif

	return 0;
}

// プログラム開始
int
main()
{

#ifdef D_TEST
	int i;
	for (i = D_TEST_SNO; i <= D_TEST_ENO; i++) {
		siTNo = i;
		fOne();
	}
#else
	fOne();
#endif

	return 0;
}


25 127
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 000 105 110 115 120 125
 3 1
1 3 3
 3 10
7 7 5
 25 127
7 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 000 105 110 115 120 125
 3 7
7 7 5
 25 127
7 10 4 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 000 105 110 115 120 125
 3 7
7 12 5
 25 127
7 10 4 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 000 176 110 115 120 125
 25 127
7 10 4 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 000 176 110 115 120 216
 25 127
7 10 4 20 25 30 35 40 45 50 0 60 65 70 75 80 85 90 95 000 176 110 115 120 216

304424949
 7
 0
 307516362
 2
 51961924
 1
 626983939
 896524892
 156035523

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

```c
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

// 内部定数
#define D_MOD			1000000007								// 除数(10の9乗+7)
#define D_ARRAY_MAX		105										// 最大配列数
#define D_VAL_MAX		256										// 最大値
#define D_FACT_MAX		D_ARRAY_MAX								// 最大階乗数

// 内部変数
static FILE *szpFpI;											// 入力
static int si3PCnt[D_ARRAY_MAX][D_VAL_MAX][D_ARRAY_MAX];		// パターン数[桁数][値][長さ]
static int si1ModFact[D_FACT_MAX];								// 階乗リスト

// 内部変数 - テスト用
#ifdef D_TEST
	static int siRes;
	static FILE *szpFpA;
	static int siTNo;
#endif

// １行出力
int
fOutLine(
	char *pcpLine				// <I> １行
)
{
	char lc1Buf[1024];

#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, pcpLine)) {
		siRes = -1;
	}
#else
	printf("%s", pcpLine);
#endif

	return 0;
}

// 和 - 取得
int
fGetModSum(
	int piVal1					// <I> 値１
	, int piVal2				// <I> 値２
)
{
	return (piVal1 + piVal2) % D_MOD;
}

// 積 - 取得
int
fGetModMulti(
	int piVal1					// <I> 値１
	, int piVal2				// <I> 値２
)
{
	return (int)((long long)piVal1 * (long long)piVal2 % D_MOD);
}

// 階乗リスト - 作成
int
fMakeModFact(
	int piMax					// <I> 最大値
)
{
	int i;

	si1ModFact[0] = 1;
	si1ModFact[1] = 1;
	for (i = 2; i <= piMax; i++) {
		si1ModFact[i] = fGetModMulti(si1ModFact[i - 1], i);
	}

	return 0;
}

// 実行メイン
int
fMain(
)
{
	int i, j, k;
	char lc1Buf[1024];

	// データ - 初期化
	memset(si3PCnt, 0, sizeof(si3PCnt));
	si3PCnt[0][0][0] = 1;

	// 配列数・k - 取得
	int liACnt, liK;
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d", &liACnt, &liK);

	// 配列 - 取得
	for (i = 0; i < liACnt; i++) {
		int liVal;
		fscanf(szpFpI, "%d", &liVal);

		// 現在値でループ
		for (j = 0; j < D_VAL_MAX; j++) {
			int liXor = j ^ liVal;
			for (k = 0; k <= i; k++) {

				// 値 - 追加
				si3PCnt[i + 1][liXor][k + 1] = fGetModSum(si3PCnt[i + 1][liXor][k + 1], si3PCnt[i][j][k]);

				// 値 - 追加しない
				si3PCnt[i + 1][j][k] = fGetModSum(si3PCnt[i + 1][j][k], si3PCnt[i][j][k]);
			}
		}
	}
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);

	// 階乗リスト - 作成
	fMakeModFact(liACnt);

	// 合計 - 取得
	int liSum = 0;
	for (i = 0; i <= liACnt; i++) {
		int liCnt = fGetModMulti(si3PCnt[liACnt][liK][i], si1ModFact[i]);
		liSum = fGetModSum(liSum, liCnt);
	}

	return liSum;
}

// １回実行
int
fOne(
)
{
	int liRet;
	char lc1Buf[1024];

	// 入力 - セット
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", siTNo);
	szpFpI = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", siTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#else
	szpFpI = stdin;
#endif

	// 実行メイン
	liRet = fMain();

	// 出力
	sprintf(lc1Buf, "%d\n", liRet);
	fOutLine(lc1Buf);

	// 残データ有無
#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, "")) {
		siRes = -1;
	}
#endif

	// テストファイルクローズ
#ifdef D_TEST
	fclose(szpFpI);
	fclose(szpFpA);
#endif

	// テスト結果
#ifdef D_TEST
	if (siRes == 0) {
		printf("OK %d\n", siTNo);
	}
	else {
		printf("NG %d\n", siTNo);
	}
#endif

	return 0;
}

// プログラム開始
int
main()
{

#ifdef D_TEST
	int i;
	for (i = D_TEST_SNO; i <= D_TEST_ENO; i++) {
		siTNo = i;
		fOne();
	}
#else
	fOne();
#endif

	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	szpFpI
	.comm	szpFpI,8,8
	.local	si3PCnt
	.comm	si3PCnt,11289600,32
	.local	si1ModFact
	.comm	si1ModFact,420,32
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%rdi, -1048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fOutLine, .-fOutLine
	.globl	fGetModSum
	.type	fGetModSum, @function
fGetModSum:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %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
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fGetModSum, .-fGetModSum
	.globl	fGetModMulti
	.type	fGetModMulti, @function
fGetModMulti:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fGetModMulti, .-fGetModMulti
	.globl	fMakeModFact
	.type	fMakeModFact, @function
fMakeModFact:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	$1, si1ModFact(%rip)
	movl	$1, 4+si1ModFact(%rip)
	movl	$2, -4(%rbp)
	jmp	.L9
.L10:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1ModFact(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	fGetModMulti
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	si1ModFact(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L9:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L10
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fMakeModFact, .-fMakeModFact
	.section	.rodata
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	subq	$1088, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$11289600, %edx
	movl	$0, %esi
	leaq	si3PCnt(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, si3PCnt(%rip)
	movq	szpFpI(%rip), %rdx
	leaq	-1056(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1088(%rbp), %rcx
	leaq	-1092(%rbp), %rdx
	leaq	-1056(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -1080(%rbp)
	jmp	.L13
.L18:
	movq	szpFpI(%rip), %rax
	leaq	-1084(%rbp), %rdx
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	$0, -1076(%rbp)
	jmp	.L14
.L17:
	movl	-1084(%rbp), %eax
	xorl	-1076(%rbp), %eax
	movl	%eax, -1060(%rbp)
	movl	$0, -1072(%rbp)
	jmp	.L15
.L16:
	movl	-1072(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1080(%rbp), %eax
	cltq
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-1080(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1072(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	movl	-1060(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-1080(%rbp), %edx
	leal	1(%rdx), %ebx
	movl	-1072(%rbp), %edx
	leal	1(%rdx), %r12d
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetModSum
	movl	%eax, %ecx
	movslq	%r12d, %rsi
	movslq	%ebx, %rax
	movl	-1060(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-1072(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1080(%rbp), %eax
	cltq
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-1080(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1072(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-1080(%rbp), %edx
	leal	1(%rdx), %ebx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetModSum
	movl	%eax, %ecx
	movl	-1072(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ebx, %rax
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -1072(%rbp)
.L15:
	movl	-1072(%rbp), %eax
	cmpl	-1080(%rbp), %eax
	jle	.L16
	addl	$1, -1076(%rbp)
.L14:
	cmpl	$255, -1076(%rbp)
	jle	.L17
	addl	$1, -1080(%rbp)
.L13:
	movl	-1092(%rbp), %eax
	cmpl	%eax, -1080(%rbp)
	jl	.L18
	movq	szpFpI(%rip), %rdx
	leaq	-1056(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	-1092(%rbp), %eax
	movl	%eax, %edi
	call	fMakeModFact
	movl	$0, -1068(%rbp)
	movl	$0, -1080(%rbp)
	jmp	.L19
.L20:
	movl	-1080(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1ModFact(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-1092(%rbp), %eax
	movl	-1088(%rbp), %edx
	movl	-1080(%rbp), %esi
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetModMulti
	movl	%eax, -1064(%rbp)
	movl	-1064(%rbp), %edx
	movl	-1068(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	fGetModSum
	movl	%eax, -1068(%rbp)
	addl	$1, -1080(%rbp)
.L19:
	movl	-1092(%rbp), %eax
	cmpl	%eax, -1080(%rbp)
	jle	.L20
	movl	-1068(%rbp), %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	addq	$1088, %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fMain, .-fMain
	.section	.rodata
.LC3:
	.string	"%d\n"
	.text
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC3(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	fOutLine
	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
.LFE11:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %eax
	call	fOne
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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
	.local	szpFpI
	.comm	szpFpI,8,8
	.local	si3PCnt
	.comm	si3PCnt,11289600,32
	.local	si1ModFact
	.comm	si1ModFact,420,32
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%rdi, -1048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fOutLine, .-fOutLine
	.globl	fGetModSum
	.type	fGetModSum, @function
fGetModSum:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %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
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fGetModSum, .-fGetModSum
	.globl	fGetModMulti
	.type	fGetModMulti, @function
fGetModMulti:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fGetModMulti, .-fGetModMulti
	.globl	fMakeModFact
	.type	fMakeModFact, @function
fMakeModFact:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	$1, si1ModFact(%rip)
	movl	$1, 4+si1ModFact(%rip)
	movl	$2, -4(%rbp)
	jmp	.L9
.L10:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1ModFact(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	fGetModMulti
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	si1ModFact(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L9:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L10
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fMakeModFact, .-fMakeModFact
	.section	.rodata
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	subq	$1088, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$11289600, %edx
	movl	$0, %esi
	leaq	si3PCnt(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, si3PCnt(%rip)
	movq	szpFpI(%rip), %rdx
	leaq	-1056(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1088(%rbp), %rcx
	leaq	-1092(%rbp), %rdx
	leaq	-1056(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -1080(%rbp)
	jmp	.L13
.L18:
	movq	szpFpI(%rip), %rax
	leaq	-1084(%rbp), %rdx
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	$0, -1076(%rbp)
	jmp	.L14
.L17:
	movl	-1084(%rbp), %eax
	xorl	-1076(%rbp), %eax
	movl	%eax, -1060(%rbp)
	movl	$0, -1072(%rbp)
	jmp	.L15
.L16:
	movl	-1072(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1080(%rbp), %eax
	cltq
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-1080(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1072(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	movl	-1060(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-1080(%rbp), %edx
	leal	1(%rdx), %ebx
	movl	-1072(%rbp), %edx
	leal	1(%rdx), %r12d
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetModSum
	movl	%eax, %ecx
	movslq	%r12d, %rsi
	movslq	%ebx, %rax
	movl	-1060(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-1072(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1080(%rbp), %eax
	cltq
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rsi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-1080(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1072(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rax
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-1080(%rbp), %edx
	leal	1(%rdx), %ebx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetModSum
	movl	%eax, %ecx
	movl	-1072(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ebx, %rax
	movl	-1076(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -1072(%rbp)
.L15:
	movl	-1072(%rbp), %eax
	cmpl	-1080(%rbp), %eax
	jle	.L16
	addl	$1, -1076(%rbp)
.L14:
	cmpl	$255, -1076(%rbp)
	jle	.L17
	addl	$1, -1080(%rbp)
.L13:
	movl	-1092(%rbp), %eax
	cmpl	%eax, -1080(%rbp)
	jl	.L18
	movq	szpFpI(%rip), %rdx
	leaq	-1056(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	-1092(%rbp), %eax
	movl	%eax, %edi
	call	fMakeModFact
	movl	$0, -1068(%rbp)
	movl	$0, -1080(%rbp)
	jmp	.L19
.L20:
	movl	-1080(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1ModFact(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-1092(%rbp), %eax
	movl	-1088(%rbp), %edx
	movl	-1080(%rbp), %esi
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$26880, %rax, %rdi
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	si3PCnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetModMulti
	movl	%eax, -1064(%rbp)
	movl	-1064(%rbp), %edx
	movl	-1068(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	fGetModSum
	movl	%eax, -1068(%rbp)
	addl	$1, -1080(%rbp)
.L19:
	movl	-1092(%rbp), %eax
	cmpl	%eax, -1080(%rbp)
	jle	.L20
	movl	-1068(%rbp), %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	addq	$1088, %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fMain, .-fMain
	.section	.rodata
.LC3:
	.string	"%d\n"
	.text
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC3(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	fOutLine
	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
.LFE11:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %eax
	call	fOne
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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:
