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

```c
#include <stdio.h>
#include <string.h>

#define MOD (1000000007)

typedef long long ll;
ll memo[220001];

void initTable(ll n)
{
    ll i;
    memo[1] = 1;
    for (i = 2; i <= n; i++){
        memo[(int)i] = (i * memo[(int)(i - 1)]) % MOD;
    }
}

ll extgcd(ll a, ll b, ll *x, ll *y)
{
    ll d = a;
    if (b != 0){
        d = extgcd(b, a % b, y, x);
        *y -= (a / b) * *x;
    }
    else {
        *x = 1;
        *y = 0;
    }
    return (d);
}

ll mod_inverse(ll a, ll m){
    ll x, y;
    extgcd(a, m, &x, &y);
    return ((m + x % m) % m);
}

ll mod_fact(ll n, ll p, ll *e)
{
    ll res;
    int look;
    *e = 0;
    if (n == 0){
        return (1);
    }
    
    res = mod_fact(n / p, p, e);
    *e += n / p;
    
    if (n / p % 2 != 0){
        return (res * (p - memo[(int)(n % p)]) % p);
    }
    look = n % p;
    return (res * memo[(int)(n % p)] % p);
}

ll mod_comb(ll n, ll k, ll p) {
    ll e1, e2, e3;
    ll a1, a2, a3;
    
    if (n < 0 || k < 0 || n < k){
        return (0);
    }
    
    a1 = mod_fact(n, p, &e1);
    a2 = mod_fact(k, p, &e2);
    a3 = mod_fact(n - k, p, &e3);
    
    if (e1 > e2 + e3){ //divisible
        return (0);
    }
    return (a1 * mod_inverse(a2 * a3 % p, p) % p);
}

int main(void)
{
    int x, y, k;
    int i, j;
    ll res;
    ll xgrid, ygrid;
    
    scanf("%d%d%d", &x, &y, &k);
    
    memset(memo, -1, sizeof(memo));
    initTable(x + y + 2 * k);
    memo[0] = 1;
    res = 0;
    
    for (i = 0; i <= k; i++){ // ãºÉy + 2 * iñ, ¶EÉ x + 2 * k - 2 * iñ®­
        xgrid = (mod_comb(x + 2 * (k - i) , k - i, MOD) - mod_comb(x + 2 * (k - i), k - i - 1, MOD) + MOD) % MOD;
        ygrid = (mod_comb(y + 2 * i, i, MOD) - mod_comb(y + 2 * i, i - 1, MOD) + MOD) % MOD;
        
        res = (res + ((xgrid * ygrid) % MOD) * mod_comb(x + y + 2 * k, y + 2 * i, MOD)) % MOD;
    }
    
    printf("%lld\n", (res + MOD) % MOD);
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	memo
	.bss
	.align 32
	.type	memo, @object
	.size	memo, 1760008
memo:
	.zero	1760008
	.text
	.globl	initTable
	.type	initTable, @function
initTable:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	$1, 8+memo(%rip)
	movq	$2, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	memo(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movq	-8(%rbp), %rax
	movl	%eax, %esi
	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
	movslq	%esi, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	memo(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jle	.L3
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	initTable, .-initTable
	.globl	extgcd
	.type	extgcd, @function
extgcd:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L5
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	movq	-40(%rbp), %rcx
	movq	-48(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	extgcd
	movq	%rax, -8(%rbp)
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	imulq	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, (%rax)
	jmp	.L6
.L5:
	movq	-40(%rbp), %rax
	movq	$1, (%rax)
	movq	-48(%rbp), %rax
	movq	$0, (%rax)
.L6:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	extgcd, .-extgcd
	.globl	mod_inverse
	.type	mod_inverse, @function
mod_inverse:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	movq	-48(%rbp), %rsi
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	extgcd
	movq	-24(%rbp), %rax
	cqto
	idivq	-48(%rbp)
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	cqto
	idivq	-48(%rbp)
	movq	%rdx, %rax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	mod_inverse, .-mod_inverse
	.globl	mod_fact
	.type	mod_fact, @function
mod_fact:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-40(%rbp), %rax
	movq	$0, (%rax)
	cmpq	$0, -24(%rbp)
	jne	.L12
	movl	$1, %eax
	jmp	.L13
.L12:
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rax, %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	mod_fact
	movq	%rax, -8(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	leaq	(%rcx,%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	andl	$1, %eax
	testq	%rax, %rax
	je	.L14
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	memo(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-32(%rbp), %rax
	subq	%rdx, %rax
	imulq	-8(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	jmp	.L13
.L14:
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	memo(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-8(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	mod_fact, .-mod_fact
	.globl	mod_comb
	.type	mod_comb, @function
mod_comb:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpq	$0, -72(%rbp)
	js	.L16
	cmpq	$0, -80(%rbp)
	js	.L16
	movq	-72(%rbp), %rax
	cmpq	-80(%rbp), %rax
	jge	.L17
.L16:
	movl	$0, %eax
	jmp	.L20
.L17:
	leaq	-56(%rbp), %rdx
	movq	-88(%rbp), %rcx
	movq	-72(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_fact
	movq	%rax, -32(%rbp)
	leaq	-48(%rbp), %rdx
	movq	-88(%rbp), %rcx
	movq	-80(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_fact
	movq	%rax, -24(%rbp)
	movq	-72(%rbp), %rax
	subq	-80(%rbp), %rax
	leaq	-40(%rbp), %rdx
	movq	-88(%rbp), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_fact
	movq	%rax, -16(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L19
	movl	$0, %eax
	jmp	.L20
.L19:
	movq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	cqto
	idivq	-88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	mod_inverse
	imulq	-32(%rbp), %rax
	cqto
	idivq	-88(%rbp)
	movq	%rdx, %rax
.L20:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	mod_comb, .-mod_comb
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1760008, %edx
	movl	$-1, %esi
	leaq	memo(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%eax, %edx
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cltq
	movq	%rax, %rdi
	call	initTable
	movq	$1, memo(%rip)
	movq	$0, -48(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L23
.L24:
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rbx
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	leaq	1000000007(%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
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rbx
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	leaq	1000000007(%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
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rax
	imulq	-32(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %rbx
	imulq	$1000000007, %rbx, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	movl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%eax, %edx
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	imulq	%rax, %rbx
	movq	%rbx, %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%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
	movq	%rax, -48(%rbp)
	movq	-48(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	addl	$1, -52(%rbp)
.L23:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jle	.L24
	movq	-48(%rbp), %rax
	leaq	1000000007(%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
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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
	.p2align 4
	.type	mod_fact.part.0.constprop.0, @function
mod_fact.part.0.constprop.0:
.LFB44:
	.cfi_startproc
	movq	%rdi, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	memo(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdx, %r12
	cqto
	idivq	%rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	$0, (%r12)
	movq	%rdx, %r13
	movl	$1, %edx
	testq	%rax, %rax
	jne	.L27
.L2:
	movslq	%r13d, %rax
	imulq	(%r14,%rax,8), %rdx
	movq	%rdx, %rax
	cqto
	idivq	%rsi
.L1:
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%rdx, %rax
	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
.L27:
	.cfi_restore_state
	cqto
	movq	%rax, %rbp
	idivq	%rsi
	movq	%rdx, %rbx
	movq	%rax, %r15
	movq	%rax, %rcx
	movl	$1, %edx
	testq	%rax, %rax
	je	.L3
	cqto
	idivq	%rsi
	movq	%rdx, %r10
	movq	%rax, %r9
	movq	%rax, %rcx
	movl	$1, %edx
	testq	%rax, %rax
	jne	.L28
.L4:
	movslq	%r10d, %r10
	movq	(%r14,%r10,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
.L7:
	addq	%r15, %rcx
	andl	$1, %r15d
	movq	%rcx, (%r12)
	je	.L3
	movslq	%ebx, %r8
	movq	%rsi, %rax
	subq	(%r14,%r8,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	%ebx, %r8
	movq	(%r14,%r8,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
.L8:
	addq	%rbp, %rcx
	andl	$1, %ebp
	movq	%rcx, (%r12)
	je	.L2
	movslq	%r13d, %rax
	movq	%rsi, %rbx
	subq	(%r14,%rax,8), %rbx
	movq	%rbx, %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	cqto
	idivq	%rsi
	movq	%rax, %r11
	movq	%rdx, %rcx
	movl	$1, %eax
	testq	%r11, %r11
	je	.L5
	movq	%r11, %rdi
	movq	%rdx, 40(%rsp)
	movq	%r12, %rdx
	movq	%r10, 32(%rsp)
	movq	%r9, 24(%rsp)
	movq	%rsi, 16(%rsp)
	movq	%r11, 8(%rsp)
	call	mod_fact.part.0.constprop.0
	movq	8(%rsp), %r11
	movq	(%r12), %rdi
	movq	16(%rsp), %rsi
	movq	24(%rsp), %r9
	addq	%r11, %rdi
	andl	$1, %r11d
	movq	32(%rsp), %r10
	movq	40(%rsp), %rcx
	movq	%rdi, (%r12)
	je	.L14
	movslq	%ecx, %rcx
	movq	%rsi, %rdx
	movq	%rdi, %r11
	subq	(%r14,%rcx,8), %rdx
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdi, %r11
.L5:
	leaq	memo(%rip), %r14
	movslq	%ecx, %rcx
	imulq	(%r14,%rcx,8), %rax
	cqto
	idivq	%rsi
.L6:
	leaq	(%r9,%r11), %rcx
	andl	$1, %r9d
	movq	%rcx, (%r12)
	je	.L4
	movslq	%r10d, %r10
	movq	%rsi, %rax
	subq	(%r14,%r10,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L7
	.cfi_endproc
.LFE44:
	.size	mod_fact.part.0.constprop.0, .-mod_fact.part.0.constprop.0
	.p2align 4
	.globl	initTable
	.type	initTable, @function
initTable:
.LFB35:
	.cfi_startproc
	endbr64
	movq	$1, 8+memo(%rip)
	cmpq	$1, %rdi
	jle	.L29
	leaq	1(%rdi), %r9
	movl	$2, %esi
	leaq	memo(%rip), %rdi
	movabsq	$-8543223828751151131, %r10
	.p2align 4,,10
	.p2align 3
.L31:
	leal	-1(%rsi), %eax
	movslq	%esi, %r8
	cltq
	movq	(%rdi,%rax,8), %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%r10
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%rdi,%r8,8)
	cmpq	%r9, %rsi
	jne	.L31
.L29:
	ret
	.cfi_endproc
.LFE35:
	.size	initTable, .-initTable
	.p2align 4
	.globl	extgcd
	.type	extgcd, @function
extgcd:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%rdi, %rax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rcx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	testq	%rsi, %rsi
	jne	.L41
	movq	$1, (%rdx)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rsi, 0(%rbp)
	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
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	cqto
	idivq	%rsi
	movq	%rdx, %r13
	movq	%rax, %r14
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	jne	.L42
	movq	$1, 0(%rbp)
	xorl	%edx, %edx
	movq	%rsi, %rax
.L38:
	movq	%rdx, (%r12)
	movq	0(%rbp), %rsi
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	subq	%rcx, %rsi
	movq	%rsi, 0(%rbp)
	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
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movq	%rsi, %rax
	cqto
	idivq	%r13
	movq	%rdx, %r8
	movq	%rax, %rbx
	testq	%rdx, %rdx
	jne	.L43
	movq	$1, (%r12)
	xorl	%edx, %edx
	movq	%r13, %rax
.L37:
	movq	%rdx, 0(%rbp)
	movq	(%r12), %rdx
	movq	%r14, %rcx
	subq	%r8, %rdx
	imulq	%rdx, %rcx
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L43:
	movq	%r13, %rax
	movq	%r8, %rdi
	movq	%r12, %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	movq	%rbp, %rdx
	movq	%rax, %r13
	call	extgcd
	imulq	(%r12), %r13
	movq	0(%rbp), %rdx
	subq	%r13, %rdx
	imulq	%rdx, %rbx
	movq	%rbx, %r8
	jmp	.L37
	.cfi_endproc
.LFE36:
	.size	extgcd, .-extgcd
	.p2align 4
	.globl	mod_inverse
	.type	mod_inverse, @function
mod_inverse:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r9
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	testq	%rsi, %rsi
	jne	.L67
	movl	$1, %eax
	cqto
	idivq	%rsi
	movq	%rdx, %r8
.L44:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L68
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%r8, %rax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L67:
	.cfi_restore_state
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	movq	%rdx, %r10
	movq	%rdx, %r8
	testq	%rdx, %rdx
	je	.L44
	movq	%rsi, %rax
	cqto
	idivq	%r10
	movq	%rax, %rbx
	movq	%rdx, %r11
	movl	$1, %eax
	testq	%rdx, %rdx
	jne	.L69
.L47:
	cqto
	idivq	%r9
	leaq	(%rdx,%r9), %rax
	cqto
	idivq	%r9
	movq	%rdx, %r8
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L69:
	movq	%r10, %rax
	cqto
	idivq	%r11
	movq	%rdx, %rbp
	movq	%rax, %r10
	movq	%rdx, %rax
	movl	$1, %edx
	testq	%rbp, %rbp
	jne	.L70
.L48:
	imulq	%rdx, %rbx
	subq	%rbx, %rax
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L70:
	movq	%r11, %rax
	cqto
	idivq	%rbp
	movq	%rax, %r11
	movq	%rdx, %r12
	movl	$1, %eax
	testq	%rdx, %rdx
	jne	.L71
.L49:
	movq	%r10, %rcx
	imulq	%rax, %rcx
	subq	%rcx, %rdx
	jmp	.L48
.L71:
	movq	%rbp, %rax
	cqto
	idivq	%r12
	movq	%rdx, %r13
	movq	%rax, %rbp
	movq	%rdx, %rax
	movl	$1, %edx
	testq	%r13, %r13
	jne	.L72
.L50:
	movq	%r11, %rsi
	imulq	%rdx, %rsi
	subq	%rsi, %rax
	jmp	.L49
.L72:
	movq	%r12, %rax
	cqto
	idivq	%r13
	movq	%rdx, %rdi
	movq	%rax, %r12
	testq	%rdx, %rdx
	jne	.L73
	movq	$1, 8(%rsp)
.L52:
	movq	%r12, %rsi
	movq	8(%rsp), %rax
	movq	%rbp, %rcx
	movq	%rdi, %rdx
	imulq	%rdi, %rsi
	subq	%rsi, %rax
	imulq	%rax, %rcx
	subq	%rcx, %rdx
	jmp	.L50
.L68:
	call	__stack_chk_fail@PLT
.L73:
	movq	%r13, %rax
	leaq	8(%rsp), %rcx
	cqto
	idivq	%rdi
	movq	%rdx, %rsi
	leaq	16(%rsp), %rdx
	movq	%rax, %r13
	call	extgcd
	movq	8(%rsp), %rcx
	movq	16(%rsp), %rdi
	imulq	%r13, %rcx
	subq	%rcx, %rdi
	jmp	.L52
	.cfi_endproc
.LFE37:
	.size	mod_inverse, .-mod_inverse
	.p2align 4
	.type	mod_comb.part.0.constprop.0, @function
mod_comb.part.0.constprop.0:
.LFB47:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	testq	%rdi, %rdi
	jne	.L118
	movq	$0, 24(%rsp)
	testq	%rsi, %rsi
	jne	.L119
	movl	$1, %ebp
	movl	$1, %r12d
	movl	$1, %edi
.L92:
	imulq	%r12, %rdi
	movl	$1000000007, %esi
	movabsq	$-8543223828751151131, %rbx
	movq	%rdi, %rax
	imulq	%rbx
	movq	%rdi, %rax
	sarq	$63, %rax
	addq	%rdi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rdi
	call	mod_inverse
	imulq	%rbp, %rax
	movq	%rax, %rcx
	imulq	%rbx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
.L74:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L120
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L119:
	.cfi_restore_state
	xorl	%r13d, %r13d
	movl	$1, %ebp
	leaq	memo(%rip), %r15
.L93:
	movabsq	$-8543223828751151131, %rcx
	movq	%r14, %rax
	imulq	%rcx
	movq	%r14, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r14), %r12
	sarq	$29, %r12
	subq	%rax, %r12
	je	.L80
	movq	%r12, %rax
	movq	%r12, %r9
	movl	$1, %esi
	imulq	%rcx
	movq	%r12, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r12), %rdi
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	subq	%rax, %r9
	testq	%rdi, %rdi
	jne	.L121
.L81:
	movabsq	$-8543223828751151131, %rdx
	movslq	%r9d, %r9
	imulq	(%r15,%r9,8), %rsi
	movq	%rsi, %rax
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	subq	%rax, %rsi
	movq	%rsi, %rcx
.L82:
	movabsq	$-8543223828751151131, %rsi
	movq	%r14, %rax
	addq	%r12, %rdi
	imulq	%rsi
	movq	%rdi, 24(%rsp)
	leaq	(%rdx,%r14), %rax
	movq	%r14, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%r14, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	andl	$1, %r12d
	movslq	%edx, %rax
	movq	(%r15,%rax,8), %rdx
	je	.L83
	movl	$1000000007, %eax
	subq	%rdx, %rax
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	jmp	.L117
	.p2align 4,,10
	.p2align 3
.L118:
	movq	%rdi, %rax
	movl	$1, %ecx
	movabsq	$-8543223828751151131, %r8
	imulq	%r8
	movq	%rdi, %rax
	leaq	memo(%rip), %r15
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %r13
	sarq	$29, %r13
	subq	%rax, %r13
	je	.L76
	movq	%r13, %rax
	imulq	%r8
	movq	%r13, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r13), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	movq	%r13, %rax
	imulq	$1000000007, %rsi, %rdx
	subq	%rdx, %rax
	cltq
	movq	(%r15,%rax,8), %rdi
	movl	$1, %eax
	testq	%rsi, %rsi
	jne	.L122
.L77:
	movabsq	$-8543223828751151131, %rdx
	imulq	%rax, %rdi
	movq	%rdi, %rax
	imulq	%rdx
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%rdi, %rcx
	subq	%rax, %rcx
.L78:
	movabsq	$-8543223828751151131, %rdi
	movq	%rbx, %rax
	addq	%r13, %rsi
	imulq	%rdi
	leaq	(%rdx,%rbx), %rax
	movq	%rbx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%rbx, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	andl	$1, %r13d
	movslq	%edx, %rax
	movq	(%r15,%rax,8), %rdx
	je	.L98
	movl	$1000000007, %eax
	movq	%rsi, %r13
	subq	%rdx, %rax
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %rbp
	sarq	$29, %rbp
	subq	%rax, %rbp
	imulq	$1000000007, %rbp, %rax
	subq	%rax, %rcx
	movq	%rcx, %rbp
	jmp	.L79
	.p2align 4,,10
	.p2align 3
.L98:
	movq	%rsi, %r13
.L76:
	movabsq	$-8543223828751151131, %rbp
	movq	%rbx, %rax
	imulq	%rbp
	leaq	(%rdx,%rbx), %rax
	movq	%rbx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%rbx, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	movslq	%edx, %rax
	imulq	(%r15,%rax,8), %rcx
	movq	%rcx, %rax
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %rbp
	sarq	$29, %rbp
	subq	%rax, %rbp
	imulq	$1000000007, %rbp, %rax
	subq	%rax, %rcx
	movq	%rcx, %rbp
.L79:
	movq	$0, 24(%rsp)
	testq	%r14, %r14
	jne	.L93
	movq	$0, 32(%rsp)
	movl	$1, %r12d
.L85:
	movabsq	$-8543223828751151131, %r8
	movq	%rbx, %rax
	imulq	%r8
	movq	%rbx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rbx), %r14
	sarq	$29, %r14
	subq	%rax, %r14
	je	.L87
	movq	%r14, %rax
	movq	%r14, %r9
	movl	$1, %ecx
	imulq	%r8
	movq	%r14, %rax
	sarq	$63, %rax
	addq	%r14, %rdx
	sarq	$29, %rdx
	movq	%rdx, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	subq	%rax, %r9
	testq	%rdi, %rdi
	jne	.L123
.L88:
	movabsq	$-8543223828751151131, %rdx
	movslq	%r9d, %r9
	imulq	(%r15,%r9,8), %rcx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
.L89:
	movq	%rbx, %rax
	addq	%r14, %rdi
	movq	24(%rsp), %rsi
	movabsq	$-8543223828751151131, %rcx
	imulq	%rcx
	movq	%rdi, 32(%rsp)
	leaq	(%rdx,%rbx), %rax
	movq	%rbx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%rbx, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	andl	$1, %r14d
	movslq	%edx, %rax
	movq	(%r15,%rax,8), %rax
	je	.L103
	leaq	(%rdi,%rsi), %r9
	movl	$1000000007, %esi
	subq	%rax, %rsi
	imulq	%r8, %rsi
	movq	%rsi, %rax
	imulq	%rcx
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rdi
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	subq	%rax, %rsi
	movq	%rsi, %rdi
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L80:
	movq	$0, 24(%rsp)
	movl	$1, %ecx
.L83:
	movabsq	$-8543223828751151131, %r12
	movq	%r14, %rax
	imulq	%r12
	leaq	(%rdx,%r14), %rax
	movq	%r14, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%r14, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	movslq	%edx, %rax
	imulq	(%r15,%rax,8), %rcx
	movq	%rcx, %rax
	imulq	%r12
.L117:
	movq	$0, 32(%rsp)
	leaq	(%rdx,%rcx), %r12
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$29, %r12
	subq	%rax, %r12
	imulq	$1000000007, %r12, %rax
	subq	%rax, %rcx
	movq	%rcx, %r12
	subq	%r14, %rbx
	jne	.L85
	movq	24(%rsp), %r9
	movl	$1, %edi
.L86:
	xorl	%eax, %eax
	cmpq	%r13, %r9
	jl	.L74
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L87:
	movq	$0, 32(%rsp)
	movq	24(%rsp), %rsi
	movl	$1, %r8d
.L90:
	movabsq	$-8543223828751151131, %rdi
	movq	%rbx, %rax
	leaq	(%r14,%rsi), %r9
	imulq	%rdi
	movq	%rbx, %rax
	sarq	$63, %rax
	addq	%rbx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rbx
	movslq	%ebx, %rbx
	imulq	(%r15,%rbx,8), %r8
	movq	%r8, %rax
	imulq	%rdi
	movq	%r8, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r8), %rdi
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%r8, %rdi
	subq	%rax, %rdi
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L122:
	movslq	%esi, %rax
	movq	(%r15,%rax,8), %rcx
	movq	%rcx, %rax
	imulq	%r8
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	testb	$1, %sil
	je	.L77
	movl	$1000000007, %edx
	subq	%rdi, %rdx
	movq	%rdx, %rdi
	imulq	%rax, %rdi
	movq	%rdi, %rax
	imulq	%r8
	movq	%rdi, %rax
	sarq	$63, %rax
	addq	%rdi, %rdx
	sarq	$29, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%rdi, %rcx
	subq	%rax, %rcx
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L123:
	movl	$1000000007, %esi
	leaq	32(%rsp), %rdx
	movq	%r9, 8(%rsp)
	movq	%rdi, (%rsp)
	call	mod_fact.part.0.constprop.0
	movq	(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	8(%rsp), %r9
	movq	%rax, %rcx
	addq	%rdi, %rsi
	andl	$1, %edi
	je	.L102
	movslq	%r9d, %r9
	movl	$1000000007, %eax
	movq	%rsi, %rdi
	movabsq	$-8543223828751151131, %r8
	subq	(%r15,%r9,8), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
	jmp	.L89
	.p2align 4,,10
	.p2align 3
.L121:
	movl	$1000000007, %esi
	leaq	24(%rsp), %rdx
	movq	%r9, 8(%rsp)
	movq	%rdi, (%rsp)
	call	mod_fact.part.0.constprop.0
	movq	(%rsp), %rdi
	movq	24(%rsp), %r8
	movq	8(%rsp), %r9
	movq	%rax, %rsi
	addq	%rdi, %r8
	andl	$1, %edi
	je	.L100
	movslq	%r9d, %r9
	movl	$1000000007, %eax
	movq	%r8, %rdi
	movabsq	$-8543223828751151131, %rcx
	subq	(%r15,%r9,8), %rax
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rcx
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	subq	%rax, %rsi
	movq	%rsi, %rcx
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L103:
	movq	%rdi, %r14
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L102:
	movq	%rsi, %rdi
	jmp	.L88
	.p2align 4,,10
	.p2align 3
.L100:
	movq	%r8, %rdi
	jmp	.L81
.L120:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE47:
	.size	mod_comb.part.0.constprop.0, .-mod_comb.part.0.constprop.0
	.p2align 4
	.globl	mod_fact
	.type	mod_fact, @function
mod_fact:
.LFB38:
	.cfi_startproc
	endbr64
	movq	$0, (%rdx)
	movl	$1, %r8d
	testq	%rdi, %rdi
	jne	.L148
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L148:
	movq	%rdi, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	memo(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdx, %r12
	cqto
	idivq	%rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdx, %r14
	movq	%rax, %rbx
	movl	$1, %edx
	testq	%rax, %rax
	je	.L126
	cqto
	idivq	%rsi
	movq	%rdx, %rbp
	movq	%rax, %r8
	movq	%rax, %rcx
	movl	$1, %edx
	testq	%rax, %rax
	jne	.L149
.L127:
	movslq	%ebp, %r9
	movq	(%r15,%r9,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
.L130:
	addq	%rbx, %rcx
	andl	$1, %ebx
	movq	%rcx, (%r12)
	je	.L126
	movslq	%r14d, %rax
	movq	%rsi, %rbx
	subq	(%r15,%rax,8), %rbx
	movq	%rbx, %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	movq	%rdx, %r8
	jmp	.L124
	.p2align 4,,10
	.p2align 3
.L126:
	movslq	%r14d, %rax
	imulq	(%r15,%rax,8), %rdx
	movq	%rdx, %rax
	cqto
	idivq	%rsi
	movq	%rdx, %r8
.L124:
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %rax
	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
.L149:
	.cfi_restore_state
	cqto
	idivq	%rsi
	movq	%rax, %r13
	movq	%rdx, %rcx
	movl	$1, %eax
	testq	%r13, %r13
	je	.L128
	movq	%r13, %rdi
	movq	%rdx, 24(%rsp)
	movq	%r12, %rdx
	movq	%r8, 16(%rsp)
	movq	%rsi, 8(%rsp)
	call	mod_fact.part.0.constprop.0
	movq	(%r12), %rdi
	movq	8(%rsp), %rsi
	movq	16(%rsp), %r8
	movq	24(%rsp), %rcx
	addq	%r13, %rdi
	andl	$1, %r13d
	movq	%rdi, (%r12)
	je	.L135
	movslq	%ecx, %rcx
	movq	%rsi, %rdx
	movq	%rdi, %r13
	subq	(%r15,%rcx,8), %rdx
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L129
	.p2align 4,,10
	.p2align 3
.L135:
	movq	%rdi, %r13
.L128:
	leaq	memo(%rip), %r15
	movslq	%ecx, %rcx
	imulq	(%r15,%rcx,8), %rax
	cqto
	idivq	%rsi
.L129:
	leaq	(%r8,%r13), %rcx
	andl	$1, %r8d
	movq	%rcx, (%r12)
	je	.L127
	movslq	%ebp, %r9
	movq	%rsi, %rax
	subq	(%r15,%r9,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L130
	.cfi_endproc
.LFE38:
	.size	mod_fact, .-mod_fact
	.p2align 4
	.globl	mod_comb
	.type	mod_comb, @function
mod_comb:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	xorl	%edx, %edx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	testq	%rsi, %rsi
	cmovns	%rsi, %rdx
	cmpq	%rdx, %rdi
	jl	.L171
	movq	%rsi, %rbp
	testq	%rsi, %rsi
	js	.L171
	movq	$0, 16(%rsp)
	movq	%rdi, %r12
	testq	%rdi, %rdi
	je	.L152
	movq	%rdi, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r13
	movq	%rax, %r14
	testq	%rax, %rax
	jne	.L189
	movl	$1, %edx
	leaq	memo(%rip), %r8
	movslq	%r13d, %rax
.L153:
	imulq	(%r8,%rax,8), %rdx
	movq	%rdx, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r13
.L156:
	movq	$0, 24(%rsp)
	testq	%rbp, %rbp
	jne	.L168
	movq	$0, 32(%rsp)
	movl	$1, %r15d
.L160:
	movq	%r12, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %rbp
	movq	%rax, %r12
	movq	%rax, %rcx
	testq	%rax, %rax
	je	.L162
	cqto
	idivq	%rbx
	movq	%rax, %r14
	movq	%rdx, %rcx
	movl	$1, %eax
	testq	%r14, %r14
	je	.L163
	movq	%rdx, (%rsp)
	movq	%rbx, %rsi
	movq	%r14, %rdi
	leaq	32(%rsp), %rdx
	movq	%r8, 8(%rsp)
	call	mod_fact.part.0.constprop.0
	movq	32(%rsp), %rsi
	movq	(%rsp), %rcx
	movq	8(%rsp), %r8
	addq	%r14, %rsi
	andl	$1, %r14d
	je	.L176
	movslq	%ecx, %rcx
	movq	%rbx, %rdx
	movq	%rsi, %r14
	subq	(%r8,%rcx,8), %rdx
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	jmp	.L164
	.p2align 4,,10
	.p2align 3
.L171:
	xorl	%r8d, %r8d
.L150:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L190
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %rax
	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
.L152:
	.cfi_restore_state
	movq	$0, 24(%rsp)
	movl	$1, %r13d
	leaq	memo(%rip), %r8
	testq	%rsi, %rsi
	jne	.L168
	movl	$1, %r15d
	movl	$1, %edx
.L167:
	movq	%rdx, %rax
	movq	%rbx, %rsi
	imulq	%r15, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %rdi
	call	mod_inverse
	imulq	%r13, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r8
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L168:
	movq	%rbp, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r14
	movq	%rax, %r15
	testq	%rax, %rax
	jne	.L191
	movq	$0, 24(%rsp)
	movl	$1, %eax
.L158:
	movslq	%r14d, %r14
	imulq	(%r8,%r14,8), %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r15
.L159:
	movq	$0, 32(%rsp)
	subq	%rbp, %r12
	jne	.L160
	movq	24(%rsp), %rcx
	movq	16(%rsp), %rsi
	movl	$1, %edx
.L161:
	xorl	%r8d, %r8d
	cmpq	%rsi, %rcx
	jl	.L150
	jmp	.L167
	.p2align 4,,10
	.p2align 3
.L191:
	leaq	24(%rsp), %rdx
	movq	%rbx, %rsi
	movq	%rax, %rdi
	movq	%r8, (%rsp)
	call	mod_fact.part.0.constprop.0
	addq	%r15, 24(%rsp)
	andl	$1, %r15d
	movq	(%rsp), %r8
	je	.L158
	movslq	%r14d, %r14
	movq	%rbx, %rdx
	subq	(%r8,%r14,8), %rdx
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r15
	jmp	.L159
	.p2align 4,,10
	.p2align 3
.L189:
	cqto
	idivq	%rbx
	movq	%rax, %r15
	movq	%rdx, %rcx
	movl	$1, %eax
	testq	%r15, %r15
	je	.L154
	movq	%rdx, (%rsp)
	movq	%rbx, %rsi
	movq	%r15, %rdi
	leaq	16(%rsp), %rdx
	call	mod_fact.part.0.constprop.0
	movq	16(%rsp), %rsi
	movq	(%rsp), %rcx
	addq	%r15, %rsi
	andl	$1, %r15d
	je	.L174
	leaq	memo(%rip), %r8
	movslq	%ecx, %rcx
	movq	%rbx, %rdx
	movq	%rsi, %r15
	subq	(%r8,%rcx,8), %rdx
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	jmp	.L155
	.p2align 4,,10
	.p2align 3
.L162:
	movq	16(%rsp), %rdi
	movq	24(%rsp), %r9
	movl	$1, %edx
	movslq	%ebp, %rbp
	movq	$0, 32(%rsp)
.L165:
	movq	(%r8,%rbp,8), %rax
	addq	%r9, %rcx
	movq	%rdi, %rsi
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	jmp	.L161
	.p2align 4,,10
	.p2align 3
.L176:
	movq	%rsi, %r14
.L163:
	movslq	%ecx, %rcx
	imulq	(%r8,%rcx,8), %rax
	cqto
	idivq	%rbx
.L164:
	movq	16(%rsp), %rsi
	movq	24(%rsp), %r9
	leaq	(%r12,%r14), %rcx
	movslq	%ebp, %rbp
	andl	$1, %r12d
	movq	%rsi, %rdi
	movq	%rcx, 32(%rsp)
	movq	(%r8,%rbp,8), %r10
	je	.L165
	movq	%rbx, %rax
	addq	%r9, %rcx
	subq	%r10, %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	jmp	.L161
	.p2align 4,,10
	.p2align 3
.L174:
	movq	%rsi, %r15
.L154:
	leaq	memo(%rip), %r8
	movslq	%ecx, %rcx
	imulq	(%r8,%rcx,8), %rax
	cqto
	idivq	%rbx
.L155:
	addq	%r14, %r15
	movslq	%r13d, %rax
	andl	$1, %r14d
	movq	%r15, 16(%rsp)
	movq	(%r8,%rax,8), %rcx
	je	.L153
	movq	%rbx, %rax
	subq	%rcx, %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r13
	jmp	.L156
.L190:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	mod_comb, .-mod_comb
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	52(%rsp), %rcx
	leaq	48(%rsp), %rdx
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	$-1, %esi
	movl	$1760008, %edx
	leaq	memo(%rip), %r9
	movq	%r9, %rdi
	call	memset@PLT
	movslq	44(%rsp), %rsi
	movl	48(%rsp), %ecx
	movq	$1, 8+memo(%rip)
	movq	%rax, %r9
	movl	52(%rsp), %eax
	leal	(%rsi,%rcx), %ebx
	leal	(%rax,%rax), %r12d
	movl	%eax, 12(%rsp)
	addl	%r12d, %ebx
	movslq	%ebx, %rax
	movq	%rax, 24(%rsp)
	cmpq	$1, %rax
	jle	.L197
	leaq	1(%rax), %r11
	movl	$1, %edx
	movl	$2, %edi
	movabsq	$-8543223828751151131, %r10
	.p2align 4,,10
	.p2align 3
.L196:
	imulq	%rdi, %rdx
	movq	%rdx, %rax
	movq	%rdx, %r8
	imulq	%r10
	movq	%r8, %rax
	sarq	$63, %rax
	addq	%r8, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%r8, %rdx
	subq	%rax, %rdx
	movq	%rdx, (%r9,%rdi,8)
	addq	$1, %rdi
	cmpq	%rdi, %r11
	jne	.L196
.L197:
	movl	12(%rsp), %eax
	xorl	%ebp, %ebp
	movq	$1, memo(%rip)
	testl	%eax, %eax
	js	.L195
	movl	12(%rsp), %eax
	movslq	%r12d, %r12
	movslq	%ecx, %r15
	xorl	%ebx, %ebx
	leaq	(%rsi,%r12), %r14
	xorl	%ebp, %ebp
	leal	-1(%rax), %r10d
	movslq	%r10d, %r13
	jmp	.L203
	.p2align 4,,10
	.p2align 3
.L212:
	testq	%r14, %r14
	js	.L205
	movq	%r14, %rdi
	call	mod_comb.part.0.constprop.0
	movq	%rax, %r12
.L198:
	movq	%r13, %rax
	orq	%r14, %rax
	js	.L199
	cmpq	%r13, %r14
	jl	.L199
	movq	%r13, %rsi
	movq	%r14, %rdi
	call	mod_comb.part.0.constprop.0
	subq	%rax, %r12
.L199:
	testq	%r15, %r15
	js	.L200
	xorl	%ecx, %ecx
	cmpq	%r15, %rbx
	jg	.L201
	movq	%rbx, %rsi
	movq	%r15, %rdi
	call	mod_comb.part.0.constprop.0
	movq	%rax, %rcx
.L201:
	movq	%rbx, %rsi
	subq	$1, %rsi
	js	.L202
	cmpq	%rsi, %r15
	jl	.L202
	movq	%r15, %rdi
	movq	%rcx, 16(%rsp)
	call	mod_comb.part.0.constprop.0
	movq	16(%rsp), %rcx
	subq	%rax, %rcx
.L202:
	addq	$1000000007, %r12
	addq	$1000000007, %rcx
	movq	24(%rsp), %rdi
	movabsq	$-8543223828751151131, %rax
	imulq	%r12
	movq	%r12, %rax
	sarq	$63, %rax
	addq	%r12, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movabsq	$-8543223828751151131, %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r12
	imulq	%rcx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movabsq	$-8543223828751151131, %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%r12, %rcx
	imulq	%rcx
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r12
	sarq	$29, %r12
	subq	%rax, %r12
	imulq	$1000000007, %r12, %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	testq	%r15, %r15
	cmovns	%r15, %rax
	movq	%rcx, %r12
	cmpq	%rax, %rdi
	jl	.L200
	movq	%r15, %rsi
	call	mod_comb.part.0.constprop.0
	imulq	%rax, %r12
	addq	%r12, %rbp
.L200:
	addq	$1, %rbx
	subq	$2, %r14
	addq	$2, %r15
	subq	$1, %r13
	movabsq	$-8543223828751151131, %rax
	imulq	%rbp
	movq	%rbp, %rax
	sarq	$63, %rax
	addq	%rbp, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rbp
	cmpl	%ebx, 12(%rsp)
	jl	.L195
.L203:
	leaq	1(%r13), %rsi
	cmpq	%rsi, %r14
	movq	%rsi, %rdx
	setl	%al
	shrq	$63, %rdx
	orb	%dl, %al
	je	.L212
.L205:
	xorl	%r12d, %r12d
	jmp	.L198
	.p2align 4,,10
	.p2align 3
.L195:
	leaq	1000000007(%rbp), %r8
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	movq	%r8, %rax
	mulq	%rdx
	xorl	%eax, %eax
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
	movq	%r8, %rdx
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L213
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L213:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	memo
	.bss
	.align 32
	.type	memo, @object
	.size	memo, 1760008
memo:
	.zero	1760008
	.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
	.p2align 4
	.type	mod_fact.part.0.constprop.0, @function
mod_fact.part.0.constprop.0:
.LFB44:
	.cfi_startproc
	movq	%rdi, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	memo(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdx, %r12
	cqto
	idivq	%rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	$0, (%r12)
	movq	%rdx, %r13
	movl	$1, %edx
	testq	%rax, %rax
	jne	.L27
.L2:
	movslq	%r13d, %rax
	imulq	(%r14,%rax,8), %rdx
	movq	%rdx, %rax
	cqto
	idivq	%rsi
.L1:
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%rdx, %rax
	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
.L27:
	.cfi_restore_state
	cqto
	movq	%rax, %rbp
	idivq	%rsi
	movq	%rdx, %rbx
	movq	%rax, %r15
	movq	%rax, %rcx
	movl	$1, %edx
	testq	%rax, %rax
	je	.L3
	cqto
	idivq	%rsi
	movq	%rdx, %r10
	movq	%rax, %r9
	movq	%rax, %rcx
	movl	$1, %edx
	testq	%rax, %rax
	jne	.L28
.L4:
	movslq	%r10d, %r10
	movq	(%r14,%r10,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
.L7:
	addq	%r15, %rcx
	andl	$1, %r15d
	movq	%rcx, (%r12)
	je	.L3
	movslq	%ebx, %r8
	movq	%rsi, %rax
	subq	(%r14,%r8,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	%ebx, %r8
	movq	(%r14,%r8,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
.L8:
	addq	%rbp, %rcx
	andl	$1, %ebp
	movq	%rcx, (%r12)
	je	.L2
	movslq	%r13d, %rax
	movq	%rsi, %rbx
	subq	(%r14,%rax,8), %rbx
	movq	%rbx, %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	cqto
	idivq	%rsi
	movq	%rax, %r11
	movq	%rdx, %rcx
	movl	$1, %eax
	testq	%r11, %r11
	je	.L5
	movq	%r11, %rdi
	movq	%rdx, 40(%rsp)
	movq	%r12, %rdx
	movq	%r10, 32(%rsp)
	movq	%r9, 24(%rsp)
	movq	%rsi, 16(%rsp)
	movq	%r11, 8(%rsp)
	call	mod_fact.part.0.constprop.0
	movq	8(%rsp), %r11
	movq	(%r12), %rdi
	movq	16(%rsp), %rsi
	movq	24(%rsp), %r9
	addq	%r11, %rdi
	andl	$1, %r11d
	movq	32(%rsp), %r10
	movq	40(%rsp), %rcx
	movq	%rdi, (%r12)
	je	.L14
	movslq	%ecx, %rcx
	movq	%rsi, %rdx
	movq	%rdi, %r11
	subq	(%r14,%rcx,8), %rdx
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdi, %r11
.L5:
	leaq	memo(%rip), %r14
	movslq	%ecx, %rcx
	imulq	(%r14,%rcx,8), %rax
	cqto
	idivq	%rsi
.L6:
	leaq	(%r9,%r11), %rcx
	andl	$1, %r9d
	movq	%rcx, (%r12)
	je	.L4
	movslq	%r10d, %r10
	movq	%rsi, %rax
	subq	(%r14,%r10,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L7
	.cfi_endproc
.LFE44:
	.size	mod_fact.part.0.constprop.0, .-mod_fact.part.0.constprop.0
	.p2align 4
	.globl	initTable
	.type	initTable, @function
initTable:
.LFB35:
	.cfi_startproc
	endbr64
	movq	$1, 8+memo(%rip)
	cmpq	$1, %rdi
	jle	.L29
	leaq	1(%rdi), %r9
	movl	$2, %esi
	leaq	memo(%rip), %rdi
	movabsq	$-8543223828751151131, %r10
	.p2align 4,,10
	.p2align 3
.L31:
	leal	-1(%rsi), %eax
	movslq	%esi, %r8
	cltq
	movq	(%rdi,%rax,8), %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%r10
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%rdi,%r8,8)
	cmpq	%r9, %rsi
	jne	.L31
.L29:
	ret
	.cfi_endproc
.LFE35:
	.size	initTable, .-initTable
	.p2align 4
	.globl	extgcd
	.type	extgcd, @function
extgcd:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%rdi, %rax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rcx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	testq	%rsi, %rsi
	jne	.L41
	movq	$1, (%rdx)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rsi, 0(%rbp)
	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
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	cqto
	idivq	%rsi
	movq	%rdx, %r13
	movq	%rax, %r14
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	jne	.L42
	movq	$1, 0(%rbp)
	xorl	%edx, %edx
	movq	%rsi, %rax
.L38:
	movq	%rdx, (%r12)
	movq	0(%rbp), %rsi
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	subq	%rcx, %rsi
	movq	%rsi, 0(%rbp)
	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
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movq	%rsi, %rax
	cqto
	idivq	%r13
	movq	%rdx, %r8
	movq	%rax, %rbx
	testq	%rdx, %rdx
	jne	.L43
	movq	$1, (%r12)
	xorl	%edx, %edx
	movq	%r13, %rax
.L37:
	movq	%rdx, 0(%rbp)
	movq	(%r12), %rdx
	movq	%r14, %rcx
	subq	%r8, %rdx
	imulq	%rdx, %rcx
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L43:
	movq	%r13, %rax
	movq	%r8, %rdi
	movq	%r12, %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	movq	%rbp, %rdx
	movq	%rax, %r13
	call	extgcd
	imulq	(%r12), %r13
	movq	0(%rbp), %rdx
	subq	%r13, %rdx
	imulq	%rdx, %rbx
	movq	%rbx, %r8
	jmp	.L37
	.cfi_endproc
.LFE36:
	.size	extgcd, .-extgcd
	.p2align 4
	.globl	mod_inverse
	.type	mod_inverse, @function
mod_inverse:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r9
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	testq	%rsi, %rsi
	jne	.L67
	movl	$1, %eax
	cqto
	idivq	%rsi
	movq	%rdx, %r8
.L44:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L68
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%r8, %rax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L67:
	.cfi_restore_state
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	movq	%rdx, %r10
	movq	%rdx, %r8
	testq	%rdx, %rdx
	je	.L44
	movq	%rsi, %rax
	cqto
	idivq	%r10
	movq	%rax, %rbx
	movq	%rdx, %r11
	movl	$1, %eax
	testq	%rdx, %rdx
	jne	.L69
.L47:
	cqto
	idivq	%r9
	leaq	(%rdx,%r9), %rax
	cqto
	idivq	%r9
	movq	%rdx, %r8
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L69:
	movq	%r10, %rax
	cqto
	idivq	%r11
	movq	%rdx, %rbp
	movq	%rax, %r10
	movq	%rdx, %rax
	movl	$1, %edx
	testq	%rbp, %rbp
	jne	.L70
.L48:
	imulq	%rdx, %rbx
	subq	%rbx, %rax
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L70:
	movq	%r11, %rax
	cqto
	idivq	%rbp
	movq	%rax, %r11
	movq	%rdx, %r12
	movl	$1, %eax
	testq	%rdx, %rdx
	jne	.L71
.L49:
	movq	%r10, %rcx
	imulq	%rax, %rcx
	subq	%rcx, %rdx
	jmp	.L48
.L71:
	movq	%rbp, %rax
	cqto
	idivq	%r12
	movq	%rdx, %r13
	movq	%rax, %rbp
	movq	%rdx, %rax
	movl	$1, %edx
	testq	%r13, %r13
	jne	.L72
.L50:
	movq	%r11, %rsi
	imulq	%rdx, %rsi
	subq	%rsi, %rax
	jmp	.L49
.L72:
	movq	%r12, %rax
	cqto
	idivq	%r13
	movq	%rdx, %rdi
	movq	%rax, %r12
	testq	%rdx, %rdx
	jne	.L73
	movq	$1, 8(%rsp)
.L52:
	movq	%r12, %rsi
	movq	8(%rsp), %rax
	movq	%rbp, %rcx
	movq	%rdi, %rdx
	imulq	%rdi, %rsi
	subq	%rsi, %rax
	imulq	%rax, %rcx
	subq	%rcx, %rdx
	jmp	.L50
.L68:
	call	__stack_chk_fail@PLT
.L73:
	movq	%r13, %rax
	leaq	8(%rsp), %rcx
	cqto
	idivq	%rdi
	movq	%rdx, %rsi
	leaq	16(%rsp), %rdx
	movq	%rax, %r13
	call	extgcd
	movq	8(%rsp), %rcx
	movq	16(%rsp), %rdi
	imulq	%r13, %rcx
	subq	%rcx, %rdi
	jmp	.L52
	.cfi_endproc
.LFE37:
	.size	mod_inverse, .-mod_inverse
	.p2align 4
	.type	mod_comb.part.0.constprop.0, @function
mod_comb.part.0.constprop.0:
.LFB47:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	testq	%rdi, %rdi
	jne	.L118
	movq	$0, 24(%rsp)
	testq	%rsi, %rsi
	jne	.L119
	movl	$1, %ebp
	movl	$1, %r12d
	movl	$1, %edi
.L92:
	imulq	%r12, %rdi
	movl	$1000000007, %esi
	movabsq	$-8543223828751151131, %rbx
	movq	%rdi, %rax
	imulq	%rbx
	movq	%rdi, %rax
	sarq	$63, %rax
	addq	%rdi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rdi
	call	mod_inverse
	imulq	%rbp, %rax
	movq	%rax, %rcx
	imulq	%rbx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
.L74:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L120
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L119:
	.cfi_restore_state
	xorl	%r13d, %r13d
	movl	$1, %ebp
	leaq	memo(%rip), %r15
.L93:
	movabsq	$-8543223828751151131, %rcx
	movq	%r14, %rax
	imulq	%rcx
	movq	%r14, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r14), %r12
	sarq	$29, %r12
	subq	%rax, %r12
	je	.L80
	movq	%r12, %rax
	movq	%r12, %r9
	movl	$1, %esi
	imulq	%rcx
	movq	%r12, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r12), %rdi
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	subq	%rax, %r9
	testq	%rdi, %rdi
	jne	.L121
.L81:
	movabsq	$-8543223828751151131, %rdx
	movslq	%r9d, %r9
	imulq	(%r15,%r9,8), %rsi
	movq	%rsi, %rax
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	subq	%rax, %rsi
	movq	%rsi, %rcx
.L82:
	movabsq	$-8543223828751151131, %rsi
	movq	%r14, %rax
	addq	%r12, %rdi
	imulq	%rsi
	movq	%rdi, 24(%rsp)
	leaq	(%rdx,%r14), %rax
	movq	%r14, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%r14, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	andl	$1, %r12d
	movslq	%edx, %rax
	movq	(%r15,%rax,8), %rdx
	je	.L83
	movl	$1000000007, %eax
	subq	%rdx, %rax
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	jmp	.L117
	.p2align 4,,10
	.p2align 3
.L118:
	movq	%rdi, %rax
	movl	$1, %ecx
	movabsq	$-8543223828751151131, %r8
	imulq	%r8
	movq	%rdi, %rax
	leaq	memo(%rip), %r15
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %r13
	sarq	$29, %r13
	subq	%rax, %r13
	je	.L76
	movq	%r13, %rax
	imulq	%r8
	movq	%r13, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r13), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	movq	%r13, %rax
	imulq	$1000000007, %rsi, %rdx
	subq	%rdx, %rax
	cltq
	movq	(%r15,%rax,8), %rdi
	movl	$1, %eax
	testq	%rsi, %rsi
	jne	.L122
.L77:
	movabsq	$-8543223828751151131, %rdx
	imulq	%rax, %rdi
	movq	%rdi, %rax
	imulq	%rdx
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%rdi, %rcx
	subq	%rax, %rcx
.L78:
	movabsq	$-8543223828751151131, %rdi
	movq	%rbx, %rax
	addq	%r13, %rsi
	imulq	%rdi
	leaq	(%rdx,%rbx), %rax
	movq	%rbx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%rbx, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	andl	$1, %r13d
	movslq	%edx, %rax
	movq	(%r15,%rax,8), %rdx
	je	.L98
	movl	$1000000007, %eax
	movq	%rsi, %r13
	subq	%rdx, %rax
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %rbp
	sarq	$29, %rbp
	subq	%rax, %rbp
	imulq	$1000000007, %rbp, %rax
	subq	%rax, %rcx
	movq	%rcx, %rbp
	jmp	.L79
	.p2align 4,,10
	.p2align 3
.L98:
	movq	%rsi, %r13
.L76:
	movabsq	$-8543223828751151131, %rbp
	movq	%rbx, %rax
	imulq	%rbp
	leaq	(%rdx,%rbx), %rax
	movq	%rbx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%rbx, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	movslq	%edx, %rax
	imulq	(%r15,%rax,8), %rcx
	movq	%rcx, %rax
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %rbp
	sarq	$29, %rbp
	subq	%rax, %rbp
	imulq	$1000000007, %rbp, %rax
	subq	%rax, %rcx
	movq	%rcx, %rbp
.L79:
	movq	$0, 24(%rsp)
	testq	%r14, %r14
	jne	.L93
	movq	$0, 32(%rsp)
	movl	$1, %r12d
.L85:
	movabsq	$-8543223828751151131, %r8
	movq	%rbx, %rax
	imulq	%r8
	movq	%rbx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rbx), %r14
	sarq	$29, %r14
	subq	%rax, %r14
	je	.L87
	movq	%r14, %rax
	movq	%r14, %r9
	movl	$1, %ecx
	imulq	%r8
	movq	%r14, %rax
	sarq	$63, %rax
	addq	%r14, %rdx
	sarq	$29, %rdx
	movq	%rdx, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	subq	%rax, %r9
	testq	%rdi, %rdi
	jne	.L123
.L88:
	movabsq	$-8543223828751151131, %rdx
	movslq	%r9d, %r9
	imulq	(%r15,%r9,8), %rcx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
.L89:
	movq	%rbx, %rax
	addq	%r14, %rdi
	movq	24(%rsp), %rsi
	movabsq	$-8543223828751151131, %rcx
	imulq	%rcx
	movq	%rdi, 32(%rsp)
	leaq	(%rdx,%rbx), %rax
	movq	%rbx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%rbx, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	andl	$1, %r14d
	movslq	%edx, %rax
	movq	(%r15,%rax,8), %rax
	je	.L103
	leaq	(%rdi,%rsi), %r9
	movl	$1000000007, %esi
	subq	%rax, %rsi
	imulq	%r8, %rsi
	movq	%rsi, %rax
	imulq	%rcx
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rdi
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	subq	%rax, %rsi
	movq	%rsi, %rdi
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L80:
	movq	$0, 24(%rsp)
	movl	$1, %ecx
.L83:
	movabsq	$-8543223828751151131, %r12
	movq	%r14, %rax
	imulq	%r12
	leaq	(%rdx,%r14), %rax
	movq	%r14, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	movq	%r14, %rdx
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rdx
	movslq	%edx, %rax
	imulq	(%r15,%rax,8), %rcx
	movq	%rcx, %rax
	imulq	%r12
.L117:
	movq	$0, 32(%rsp)
	leaq	(%rdx,%rcx), %r12
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$29, %r12
	subq	%rax, %r12
	imulq	$1000000007, %r12, %rax
	subq	%rax, %rcx
	movq	%rcx, %r12
	subq	%r14, %rbx
	jne	.L85
	movq	24(%rsp), %r9
	movl	$1, %edi
.L86:
	xorl	%eax, %eax
	cmpq	%r13, %r9
	jl	.L74
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L87:
	movq	$0, 32(%rsp)
	movq	24(%rsp), %rsi
	movl	$1, %r8d
.L90:
	movabsq	$-8543223828751151131, %rdi
	movq	%rbx, %rax
	leaq	(%r14,%rsi), %r9
	imulq	%rdi
	movq	%rbx, %rax
	sarq	$63, %rax
	addq	%rbx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rbx
	movslq	%ebx, %rbx
	imulq	(%r15,%rbx,8), %r8
	movq	%r8, %rax
	imulq	%rdi
	movq	%r8, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r8), %rdi
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%r8, %rdi
	subq	%rax, %rdi
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L122:
	movslq	%esi, %rax
	movq	(%r15,%rax,8), %rcx
	movq	%rcx, %rax
	imulq	%r8
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	testb	$1, %sil
	je	.L77
	movl	$1000000007, %edx
	subq	%rdi, %rdx
	movq	%rdx, %rdi
	imulq	%rax, %rdi
	movq	%rdi, %rax
	imulq	%r8
	movq	%rdi, %rax
	sarq	$63, %rax
	addq	%rdi, %rdx
	sarq	$29, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%rdi, %rcx
	subq	%rax, %rcx
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L123:
	movl	$1000000007, %esi
	leaq	32(%rsp), %rdx
	movq	%r9, 8(%rsp)
	movq	%rdi, (%rsp)
	call	mod_fact.part.0.constprop.0
	movq	(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	8(%rsp), %r9
	movq	%rax, %rcx
	addq	%rdi, %rsi
	andl	$1, %edi
	je	.L102
	movslq	%r9d, %r9
	movl	$1000000007, %eax
	movq	%rsi, %rdi
	movabsq	$-8543223828751151131, %r8
	subq	(%r15,%r9,8), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
	jmp	.L89
	.p2align 4,,10
	.p2align 3
.L121:
	movl	$1000000007, %esi
	leaq	24(%rsp), %rdx
	movq	%r9, 8(%rsp)
	movq	%rdi, (%rsp)
	call	mod_fact.part.0.constprop.0
	movq	(%rsp), %rdi
	movq	24(%rsp), %r8
	movq	8(%rsp), %r9
	movq	%rax, %rsi
	addq	%rdi, %r8
	andl	$1, %edi
	je	.L100
	movslq	%r9d, %r9
	movl	$1000000007, %eax
	movq	%r8, %rdi
	movabsq	$-8543223828751151131, %rcx
	subq	(%r15,%r9,8), %rax
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rcx
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	subq	%rax, %rsi
	movq	%rsi, %rcx
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L103:
	movq	%rdi, %r14
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L102:
	movq	%rsi, %rdi
	jmp	.L88
	.p2align 4,,10
	.p2align 3
.L100:
	movq	%r8, %rdi
	jmp	.L81
.L120:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE47:
	.size	mod_comb.part.0.constprop.0, .-mod_comb.part.0.constprop.0
	.p2align 4
	.globl	mod_fact
	.type	mod_fact, @function
mod_fact:
.LFB38:
	.cfi_startproc
	endbr64
	movq	$0, (%rdx)
	movl	$1, %r8d
	testq	%rdi, %rdi
	jne	.L148
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L148:
	movq	%rdi, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	memo(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdx, %r12
	cqto
	idivq	%rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdx, %r14
	movq	%rax, %rbx
	movl	$1, %edx
	testq	%rax, %rax
	je	.L126
	cqto
	idivq	%rsi
	movq	%rdx, %rbp
	movq	%rax, %r8
	movq	%rax, %rcx
	movl	$1, %edx
	testq	%rax, %rax
	jne	.L149
.L127:
	movslq	%ebp, %r9
	movq	(%r15,%r9,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
.L130:
	addq	%rbx, %rcx
	andl	$1, %ebx
	movq	%rcx, (%r12)
	je	.L126
	movslq	%r14d, %rax
	movq	%rsi, %rbx
	subq	(%r15,%rax,8), %rbx
	movq	%rbx, %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	movq	%rdx, %r8
	jmp	.L124
	.p2align 4,,10
	.p2align 3
.L126:
	movslq	%r14d, %rax
	imulq	(%r15,%rax,8), %rdx
	movq	%rdx, %rax
	cqto
	idivq	%rsi
	movq	%rdx, %r8
.L124:
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %rax
	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
.L149:
	.cfi_restore_state
	cqto
	idivq	%rsi
	movq	%rax, %r13
	movq	%rdx, %rcx
	movl	$1, %eax
	testq	%r13, %r13
	je	.L128
	movq	%r13, %rdi
	movq	%rdx, 24(%rsp)
	movq	%r12, %rdx
	movq	%r8, 16(%rsp)
	movq	%rsi, 8(%rsp)
	call	mod_fact.part.0.constprop.0
	movq	(%r12), %rdi
	movq	8(%rsp), %rsi
	movq	16(%rsp), %r8
	movq	24(%rsp), %rcx
	addq	%r13, %rdi
	andl	$1, %r13d
	movq	%rdi, (%r12)
	je	.L135
	movslq	%ecx, %rcx
	movq	%rsi, %rdx
	movq	%rdi, %r13
	subq	(%r15,%rcx,8), %rdx
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L129
	.p2align 4,,10
	.p2align 3
.L135:
	movq	%rdi, %r13
.L128:
	leaq	memo(%rip), %r15
	movslq	%ecx, %rcx
	imulq	(%r15,%rcx,8), %rax
	cqto
	idivq	%rsi
.L129:
	leaq	(%r8,%r13), %rcx
	andl	$1, %r8d
	movq	%rcx, (%r12)
	je	.L127
	movslq	%ebp, %r9
	movq	%rsi, %rax
	subq	(%r15,%r9,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rsi
	jmp	.L130
	.cfi_endproc
.LFE38:
	.size	mod_fact, .-mod_fact
	.p2align 4
	.globl	mod_comb
	.type	mod_comb, @function
mod_comb:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	xorl	%edx, %edx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	testq	%rsi, %rsi
	cmovns	%rsi, %rdx
	cmpq	%rdx, %rdi
	jl	.L171
	movq	%rsi, %rbp
	testq	%rsi, %rsi
	js	.L171
	movq	$0, 16(%rsp)
	movq	%rdi, %r12
	testq	%rdi, %rdi
	je	.L152
	movq	%rdi, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r13
	movq	%rax, %r14
	testq	%rax, %rax
	jne	.L189
	movl	$1, %edx
	leaq	memo(%rip), %r8
	movslq	%r13d, %rax
.L153:
	imulq	(%r8,%rax,8), %rdx
	movq	%rdx, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r13
.L156:
	movq	$0, 24(%rsp)
	testq	%rbp, %rbp
	jne	.L168
	movq	$0, 32(%rsp)
	movl	$1, %r15d
.L160:
	movq	%r12, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %rbp
	movq	%rax, %r12
	movq	%rax, %rcx
	testq	%rax, %rax
	je	.L162
	cqto
	idivq	%rbx
	movq	%rax, %r14
	movq	%rdx, %rcx
	movl	$1, %eax
	testq	%r14, %r14
	je	.L163
	movq	%rdx, (%rsp)
	movq	%rbx, %rsi
	movq	%r14, %rdi
	leaq	32(%rsp), %rdx
	movq	%r8, 8(%rsp)
	call	mod_fact.part.0.constprop.0
	movq	32(%rsp), %rsi
	movq	(%rsp), %rcx
	movq	8(%rsp), %r8
	addq	%r14, %rsi
	andl	$1, %r14d
	je	.L176
	movslq	%ecx, %rcx
	movq	%rbx, %rdx
	movq	%rsi, %r14
	subq	(%r8,%rcx,8), %rdx
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	jmp	.L164
	.p2align 4,,10
	.p2align 3
.L171:
	xorl	%r8d, %r8d
.L150:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L190
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %rax
	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
.L152:
	.cfi_restore_state
	movq	$0, 24(%rsp)
	movl	$1, %r13d
	leaq	memo(%rip), %r8
	testq	%rsi, %rsi
	jne	.L168
	movl	$1, %r15d
	movl	$1, %edx
.L167:
	movq	%rdx, %rax
	movq	%rbx, %rsi
	imulq	%r15, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %rdi
	call	mod_inverse
	imulq	%r13, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r8
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L168:
	movq	%rbp, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r14
	movq	%rax, %r15
	testq	%rax, %rax
	jne	.L191
	movq	$0, 24(%rsp)
	movl	$1, %eax
.L158:
	movslq	%r14d, %r14
	imulq	(%r8,%r14,8), %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r15
.L159:
	movq	$0, 32(%rsp)
	subq	%rbp, %r12
	jne	.L160
	movq	24(%rsp), %rcx
	movq	16(%rsp), %rsi
	movl	$1, %edx
.L161:
	xorl	%r8d, %r8d
	cmpq	%rsi, %rcx
	jl	.L150
	jmp	.L167
	.p2align 4,,10
	.p2align 3
.L191:
	leaq	24(%rsp), %rdx
	movq	%rbx, %rsi
	movq	%rax, %rdi
	movq	%r8, (%rsp)
	call	mod_fact.part.0.constprop.0
	addq	%r15, 24(%rsp)
	andl	$1, %r15d
	movq	(%rsp), %r8
	je	.L158
	movslq	%r14d, %r14
	movq	%rbx, %rdx
	subq	(%r8,%r14,8), %rdx
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r15
	jmp	.L159
	.p2align 4,,10
	.p2align 3
.L189:
	cqto
	idivq	%rbx
	movq	%rax, %r15
	movq	%rdx, %rcx
	movl	$1, %eax
	testq	%r15, %r15
	je	.L154
	movq	%rdx, (%rsp)
	movq	%rbx, %rsi
	movq	%r15, %rdi
	leaq	16(%rsp), %rdx
	call	mod_fact.part.0.constprop.0
	movq	16(%rsp), %rsi
	movq	(%rsp), %rcx
	addq	%r15, %rsi
	andl	$1, %r15d
	je	.L174
	leaq	memo(%rip), %r8
	movslq	%ecx, %rcx
	movq	%rbx, %rdx
	movq	%rsi, %r15
	subq	(%r8,%rcx,8), %rdx
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	jmp	.L155
	.p2align 4,,10
	.p2align 3
.L162:
	movq	16(%rsp), %rdi
	movq	24(%rsp), %r9
	movl	$1, %edx
	movslq	%ebp, %rbp
	movq	$0, 32(%rsp)
.L165:
	movq	(%r8,%rbp,8), %rax
	addq	%r9, %rcx
	movq	%rdi, %rsi
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	jmp	.L161
	.p2align 4,,10
	.p2align 3
.L176:
	movq	%rsi, %r14
.L163:
	movslq	%ecx, %rcx
	imulq	(%r8,%rcx,8), %rax
	cqto
	idivq	%rbx
.L164:
	movq	16(%rsp), %rsi
	movq	24(%rsp), %r9
	leaq	(%r12,%r14), %rcx
	movslq	%ebp, %rbp
	andl	$1, %r12d
	movq	%rsi, %rdi
	movq	%rcx, 32(%rsp)
	movq	(%r8,%rbp,8), %r10
	je	.L165
	movq	%rbx, %rax
	addq	%r9, %rcx
	subq	%r10, %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	jmp	.L161
	.p2align 4,,10
	.p2align 3
.L174:
	movq	%rsi, %r15
.L154:
	leaq	memo(%rip), %r8
	movslq	%ecx, %rcx
	imulq	(%r8,%rcx,8), %rax
	cqto
	idivq	%rbx
.L155:
	addq	%r14, %r15
	movslq	%r13d, %rax
	andl	$1, %r14d
	movq	%r15, 16(%rsp)
	movq	(%r8,%rax,8), %rcx
	je	.L153
	movq	%rbx, %rax
	subq	%rcx, %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r13
	jmp	.L156
.L190:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	mod_comb, .-mod_comb
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	52(%rsp), %rcx
	leaq	48(%rsp), %rdx
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	$-1, %esi
	movl	$1760008, %edx
	leaq	memo(%rip), %r9
	movq	%r9, %rdi
	call	memset@PLT
	movslq	44(%rsp), %rsi
	movl	48(%rsp), %ecx
	movq	$1, 8+memo(%rip)
	movq	%rax, %r9
	movl	52(%rsp), %eax
	leal	(%rsi,%rcx), %ebx
	leal	(%rax,%rax), %r12d
	movl	%eax, 12(%rsp)
	addl	%r12d, %ebx
	movslq	%ebx, %rax
	movq	%rax, 24(%rsp)
	cmpq	$1, %rax
	jle	.L197
	leaq	1(%rax), %r11
	movl	$1, %edx
	movl	$2, %edi
	movabsq	$-8543223828751151131, %r10
	.p2align 4,,10
	.p2align 3
.L196:
	imulq	%rdi, %rdx
	movq	%rdx, %rax
	movq	%rdx, %r8
	imulq	%r10
	movq	%r8, %rax
	sarq	$63, %rax
	addq	%r8, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%r8, %rdx
	subq	%rax, %rdx
	movq	%rdx, (%r9,%rdi,8)
	addq	$1, %rdi
	cmpq	%rdi, %r11
	jne	.L196
.L197:
	movl	12(%rsp), %eax
	xorl	%ebp, %ebp
	movq	$1, memo(%rip)
	testl	%eax, %eax
	js	.L195
	movl	12(%rsp), %eax
	movslq	%r12d, %r12
	movslq	%ecx, %r15
	xorl	%ebx, %ebx
	leaq	(%rsi,%r12), %r14
	xorl	%ebp, %ebp
	leal	-1(%rax), %r10d
	movslq	%r10d, %r13
	jmp	.L203
	.p2align 4,,10
	.p2align 3
.L212:
	testq	%r14, %r14
	js	.L205
	movq	%r14, %rdi
	call	mod_comb.part.0.constprop.0
	movq	%rax, %r12
.L198:
	movq	%r13, %rax
	orq	%r14, %rax
	js	.L199
	cmpq	%r13, %r14
	jl	.L199
	movq	%r13, %rsi
	movq	%r14, %rdi
	call	mod_comb.part.0.constprop.0
	subq	%rax, %r12
.L199:
	testq	%r15, %r15
	js	.L200
	xorl	%ecx, %ecx
	cmpq	%r15, %rbx
	jg	.L201
	movq	%rbx, %rsi
	movq	%r15, %rdi
	call	mod_comb.part.0.constprop.0
	movq	%rax, %rcx
.L201:
	movq	%rbx, %rsi
	subq	$1, %rsi
	js	.L202
	cmpq	%rsi, %r15
	jl	.L202
	movq	%r15, %rdi
	movq	%rcx, 16(%rsp)
	call	mod_comb.part.0.constprop.0
	movq	16(%rsp), %rcx
	subq	%rax, %rcx
.L202:
	addq	$1000000007, %r12
	addq	$1000000007, %rcx
	movq	24(%rsp), %rdi
	movabsq	$-8543223828751151131, %rax
	imulq	%r12
	movq	%r12, %rax
	sarq	$63, %rax
	addq	%r12, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movabsq	$-8543223828751151131, %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r12
	imulq	%rcx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movabsq	$-8543223828751151131, %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%r12, %rcx
	imulq	%rcx
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r12
	sarq	$29, %r12
	subq	%rax, %r12
	imulq	$1000000007, %r12, %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	testq	%r15, %r15
	cmovns	%r15, %rax
	movq	%rcx, %r12
	cmpq	%rax, %rdi
	jl	.L200
	movq	%r15, %rsi
	call	mod_comb.part.0.constprop.0
	imulq	%rax, %r12
	addq	%r12, %rbp
.L200:
	addq	$1, %rbx
	subq	$2, %r14
	addq	$2, %r15
	subq	$1, %r13
	movabsq	$-8543223828751151131, %rax
	imulq	%rbp
	movq	%rbp, %rax
	sarq	$63, %rax
	addq	%rbp, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rbp
	cmpl	%ebx, 12(%rsp)
	jl	.L195
.L203:
	leaq	1(%r13), %rsi
	cmpq	%rsi, %r14
	movq	%rsi, %rdx
	setl	%al
	shrq	$63, %rdx
	orb	%dl, %al
	je	.L212
.L205:
	xorl	%r12d, %r12d
	jmp	.L198
	.p2align 4,,10
	.p2align 3
.L195:
	leaq	1000000007(%rbp), %r8
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	movq	%r8, %rax
	mulq	%rdx
	xorl	%eax, %eax
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
	movq	%r8, %rdx
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L213
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L213:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	memo
	.bss
	.align 32
	.type	memo, @object
	.size	memo, 1760008
memo:
	.zero	1760008
	.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 <stdio.h>
#include <string.h>

#define MOD (1000000007)

typedef long long ll;
ll memo[220001];

void initTable(ll n)
{
    ll i;
    memo[1] = 1;
    for (i = 2; i <= n; i++){
        memo[(int)i] = (i * memo[(int)(i - 1)]) % MOD;
    }
}

ll extgcd(ll a, ll b, ll *x, ll *y)
{
    ll d = a;
    if (b != 0){
        d = extgcd(b, a % b, y, x);
        *y -= (a / b) * *x;
    }
    else {
        *x = 1;
        *y = 0;
    }
    return (d);
}

ll mod_inverse(ll a, ll m){
    ll x, y;
    extgcd(a, m, &x, &y);
    return ((m + x % m) % m);
}

ll mod_fact(ll n, ll p, ll *e)
{
    ll res;
    int look;
    *e = 0;
    if (n == 0){
        return (1);
    }
    
    res = mod_fact(n / p, p, e);
    *e += n / p;
    
    if (n / p % 2 != 0){
        return (res * (p - memo[(int)(n % p)]) % p);
    }
    look = n % p;
    return (res * memo[(int)(n % p)] % p);
}

ll mod_comb(ll n, ll k, ll p) {
    ll e1, e2, e3;
    ll a1, a2, a3;
    
    if (n < 0 || k < 0 || n < k){
        return (0);
    }
    
    a1 = mod_fact(n, p, &e1);
    a2 = mod_fact(k, p, &e2);
    a3 = mod_fact(n - k, p, &e3);
    
    if (e1 > e2 + e3){ //divisible
        return (0);
    }
    return (a1 * mod_inverse(a2 * a3 % p, p) % p);
}

int main(void)
{
    int x, y, k;
    int i, j;
    ll res;
    ll xgrid, ygrid;
    
    scanf("%d%d%d", &x, &y, &k);
    
    memset(memo, -1, sizeof(memo));
    initTable(x + y + 2 * k);
    memo[0] = 1;
    res = 0;
    
    for (i = 0; i <= k; i++){ // ãºÉy + 2 * iñ, ¶EÉ x + 2 * k - 2 * iñ®­
        xgrid = (mod_comb(x + 2 * (k - i) , k - i, MOD) - mod_comb(x + 2 * (k - i), k - i - 1, MOD) + MOD) % MOD;
        ygrid = (mod_comb(y + 2 * i, i, MOD) - mod_comb(y + 2 * i, i - 1, MOD) + MOD) % MOD;
        
        res = (res + ((xgrid * ygrid) % MOD) * mod_comb(x + y + 2 * k, y + 2 * i, MOD)) % MOD;
    }
    
    printf("%lld\n", (res + MOD) % MOD);
    return (0);
}
6 4 -1
 29 218 367
 3 3 0
 29 430 367
 3 0 0
 29 430 669
 29 430 465
 29 145 465
 27 145 465
 40 145 465

0
 816094540
 20
 63949264
 1
 643250629
 780099347
 362535843
 536043505
 5957501

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

```c
#include <stdio.h>
#include <string.h>

#define MOD (1000000007)

typedef long long ll;
ll memo[220001];

void initTable(ll n)
{
    ll i;
    memo[1] = 1;
    for (i = 2; i <= n; i++){
        memo[(int)i] = (i * memo[(int)(i - 1)]) % MOD;
    }
}

ll extgcd(ll a, ll b, ll *x, ll *y)
{
    ll d = a;
    if (b != 0){
        d = extgcd(b, a % b, y, x);
        *y -= (a / b) * *x;
    }
    else {
        *x = 1;
        *y = 0;
    }
    return (d);
}

ll mod_inverse(ll a, ll m){
    ll x, y;
    extgcd(a, m, &x, &y);
    return ((m + x % m) % m);
}

ll mod_fact(ll n, ll p, ll *e)
{
    ll res;
    int look;
    *e = 0;
    if (n == 0){
        return (1);
    }
    
    res = mod_fact(n / p, p, e);
    *e += n / p;
    
    if (n / p % 2 != 0){
        return (res * (p - memo[(int)(n % p)]) % p);
    }
    look = n % p;
    return (res * memo[(int)(n % p)] % p);
}

ll mod_comb(ll n, ll k, ll p) {
    ll e1, e2, e3;
    ll a1, a2, a3;
    
    if (n < 0 || k < 0 || n < k){
        return (0);
    }
    
    a1 = mod_fact(n, p, &e1);
    a2 = mod_fact(k, p, &e2);
    a3 = mod_fact(n - k, p, &e3);
    
    if (e1 > e2 + e3){ //divisible
        return (0);
    }
    return (a1 * mod_inverse(a2 * a3 % p, p) % p);
}

int main(void)
{
    int x, y, k;
    int i, j;
    ll res;
    ll xgrid, ygrid;
    
    scanf("%d%d%d", &x, &y, &k);
    
    memset(memo, -1, sizeof(memo));
    initTable(x + y + 2 * k);
    memo[0] = 1;
    res = 0;
    
    for (i = 0; i <= k; i++){ // ãºÉy + 2 * iñ, ¶EÉ x + 2 * k - 2 * iñ®­
        xgrid = (mod_comb(x + 2 * (k - i) , k - i, MOD) - mod_comb(x + 2 * (k - i), k - i - 1, MOD) + MOD) % MOD;
        ygrid = (mod_comb(y + 2 * i, i, MOD) - mod_comb(y + 2 * i, i - 1, MOD) + MOD) % MOD;
        
        res = (res + ((xgrid * ygrid) % MOD) * mod_comb(x + y + 2 * k, y + 2 * i, MOD)) % MOD;
    }
    
    printf("%lld\n", (res + MOD) % MOD);
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	memo
	.bss
	.align 32
	.type	memo, @object
	.size	memo, 1760008
memo:
	.zero	1760008
	.text
	.globl	initTable
	.type	initTable, @function
initTable:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	$1, 8+memo(%rip)
	movq	$2, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	memo(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movq	-8(%rbp), %rax
	movl	%eax, %esi
	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
	movslq	%esi, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	memo(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jle	.L3
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	initTable, .-initTable
	.globl	extgcd
	.type	extgcd, @function
extgcd:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L5
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	movq	-40(%rbp), %rcx
	movq	-48(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	extgcd
	movq	%rax, -8(%rbp)
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	imulq	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, (%rax)
	jmp	.L6
.L5:
	movq	-40(%rbp), %rax
	movq	$1, (%rax)
	movq	-48(%rbp), %rax
	movq	$0, (%rax)
.L6:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	extgcd, .-extgcd
	.globl	mod_inverse
	.type	mod_inverse, @function
mod_inverse:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	movq	-48(%rbp), %rsi
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	extgcd
	movq	-24(%rbp), %rax
	cqto
	idivq	-48(%rbp)
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	cqto
	idivq	-48(%rbp)
	movq	%rdx, %rax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	mod_inverse, .-mod_inverse
	.globl	mod_fact
	.type	mod_fact, @function
mod_fact:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-40(%rbp), %rax
	movq	$0, (%rax)
	cmpq	$0, -24(%rbp)
	jne	.L12
	movl	$1, %eax
	jmp	.L13
.L12:
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rax, %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	mod_fact
	movq	%rax, -8(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	leaq	(%rcx,%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	andl	$1, %eax
	testq	%rax, %rax
	je	.L14
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	memo(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-32(%rbp), %rax
	subq	%rdx, %rax
	imulq	-8(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	jmp	.L13
.L14:
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	memo(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-8(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	mod_fact, .-mod_fact
	.globl	mod_comb
	.type	mod_comb, @function
mod_comb:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpq	$0, -72(%rbp)
	js	.L16
	cmpq	$0, -80(%rbp)
	js	.L16
	movq	-72(%rbp), %rax
	cmpq	-80(%rbp), %rax
	jge	.L17
.L16:
	movl	$0, %eax
	jmp	.L20
.L17:
	leaq	-56(%rbp), %rdx
	movq	-88(%rbp), %rcx
	movq	-72(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_fact
	movq	%rax, -32(%rbp)
	leaq	-48(%rbp), %rdx
	movq	-88(%rbp), %rcx
	movq	-80(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_fact
	movq	%rax, -24(%rbp)
	movq	-72(%rbp), %rax
	subq	-80(%rbp), %rax
	leaq	-40(%rbp), %rdx
	movq	-88(%rbp), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_fact
	movq	%rax, -16(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L19
	movl	$0, %eax
	jmp	.L20
.L19:
	movq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	cqto
	idivq	-88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	mod_inverse
	imulq	-32(%rbp), %rax
	cqto
	idivq	-88(%rbp)
	movq	%rdx, %rax
.L20:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	mod_comb, .-mod_comb
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1760008, %edx
	movl	$-1, %esi
	leaq	memo(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%eax, %edx
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cltq
	movq	%rax, %rdi
	call	initTable
	movq	$1, memo(%rip)
	movq	$0, -48(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L23
.L24:
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rbx
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	leaq	1000000007(%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
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rbx
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	leaq	1000000007(%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
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rax
	imulq	-32(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %rbx
	imulq	$1000000007, %rbx, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	movl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%eax, %edx
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	imulq	%rax, %rbx
	movq	%rbx, %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%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
	movq	%rax, -48(%rbp)
	movq	-48(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	addl	$1, -52(%rbp)
.L23:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jle	.L24
	movq	-48(%rbp), %rax
	leaq	1000000007(%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
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	memo
	.bss
	.align 32
	.type	memo, @object
	.size	memo, 1760008
memo:
	.zero	1760008
	.text
	.globl	initTable
	.type	initTable, @function
initTable:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	$1, 8+memo(%rip)
	movq	$2, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	memo(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movq	-8(%rbp), %rax
	movl	%eax, %esi
	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
	movslq	%esi, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	memo(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jle	.L3
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	initTable, .-initTable
	.globl	extgcd
	.type	extgcd, @function
extgcd:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L5
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	movq	-40(%rbp), %rcx
	movq	-48(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	extgcd
	movq	%rax, -8(%rbp)
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	imulq	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, (%rax)
	jmp	.L6
.L5:
	movq	-40(%rbp), %rax
	movq	$1, (%rax)
	movq	-48(%rbp), %rax
	movq	$0, (%rax)
.L6:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	extgcd, .-extgcd
	.globl	mod_inverse
	.type	mod_inverse, @function
mod_inverse:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	movq	-48(%rbp), %rsi
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	extgcd
	movq	-24(%rbp), %rax
	cqto
	idivq	-48(%rbp)
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	cqto
	idivq	-48(%rbp)
	movq	%rdx, %rax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	mod_inverse, .-mod_inverse
	.globl	mod_fact
	.type	mod_fact, @function
mod_fact:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-40(%rbp), %rax
	movq	$0, (%rax)
	cmpq	$0, -24(%rbp)
	jne	.L12
	movl	$1, %eax
	jmp	.L13
.L12:
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rax, %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	mod_fact
	movq	%rax, -8(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	leaq	(%rcx,%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	andl	$1, %eax
	testq	%rax, %rax
	je	.L14
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	memo(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-32(%rbp), %rax
	subq	%rdx, %rax
	imulq	-8(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	jmp	.L13
.L14:
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	memo(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-8(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	mod_fact, .-mod_fact
	.globl	mod_comb
	.type	mod_comb, @function
mod_comb:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpq	$0, -72(%rbp)
	js	.L16
	cmpq	$0, -80(%rbp)
	js	.L16
	movq	-72(%rbp), %rax
	cmpq	-80(%rbp), %rax
	jge	.L17
.L16:
	movl	$0, %eax
	jmp	.L20
.L17:
	leaq	-56(%rbp), %rdx
	movq	-88(%rbp), %rcx
	movq	-72(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_fact
	movq	%rax, -32(%rbp)
	leaq	-48(%rbp), %rdx
	movq	-88(%rbp), %rcx
	movq	-80(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_fact
	movq	%rax, -24(%rbp)
	movq	-72(%rbp), %rax
	subq	-80(%rbp), %rax
	leaq	-40(%rbp), %rdx
	movq	-88(%rbp), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_fact
	movq	%rax, -16(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L19
	movl	$0, %eax
	jmp	.L20
.L19:
	movq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	cqto
	idivq	-88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	mod_inverse
	imulq	-32(%rbp), %rax
	cqto
	idivq	-88(%rbp)
	movq	%rdx, %rax
.L20:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	mod_comb, .-mod_comb
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1760008, %edx
	movl	$-1, %esi
	leaq	memo(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%eax, %edx
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cltq
	movq	%rax, %rdi
	call	initTable
	movq	$1, memo(%rip)
	movq	$0, -48(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L23
.L24:
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rbx
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	leaq	1000000007(%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
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rbx
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	leaq	1000000007(%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
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rax
	imulq	-32(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %rbx
	imulq	$1000000007, %rbx, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	movl	-52(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%eax, %edx
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cltq
	movl	$1000000007, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mod_comb
	imulq	%rax, %rbx
	movq	%rbx, %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%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
	movq	%rax, -48(%rbp)
	movq	-48(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	addl	$1, -52(%rbp)
.L23:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jle	.L24
	movq	-48(%rbp), %rax
	leaq	1000000007(%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
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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:
