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<stdlib.h>
#include<stdint.h>
#include<inttypes.h>

typedef int32_t i32;
typedef int64_t i64;

const i32 mod = 1000000007;

i32 *fact = NULL;
i32 *iFact = NULL;
void init (const i32 n) {
  fact = (i32 *) calloc (n + 1, sizeof (i32));
  fact[0] = 1;
  for (i32 i = 1; i <= n; ++i) {
    fact[i] = (i64) i * fact[i - 1] % mod;
  }
  i32 t = 1;
  i32 a = fact[n];
  while (a > 1) {
    t = (i64) t * (mod - mod / a) % mod;
    a = mod % a;
  }
  iFact = (i32 *) calloc (n + 1, sizeof (i32));
  iFact[n] = t;
  for (i32 i = n - 1; i >= 0; --i) {
    iFact[i] = (i64) (i + 1) * iFact[i + 1] % mod;
  }
}

i32 comb (i32 n, i32 k) {
  if (!(0 <= k && k <= n)) return 0;
  return (i64) fact[n] * iFact[k] % mod * iFact[n - k] % mod;
}

void run (void) {
  i32 n, a, b, c, d;
  scanf ("%" SCNi32 "%" SCNi32 "%" SCNi32 "%" SCNi32 "%" SCNi32, &n, &a, &b, &c, &d);
  init (n);
  i32 *dp = (i32 *) calloc (n + 1, sizeof (i32));
  i32 *pow = (i32 *) calloc (n + 1, sizeof (i32));
  dp[0] = 1;
  for (i32 i = a; i <= b; ++i) {
    pow[0] = 1;
    for (i32 j = 1; j <= n; ++j) {
      pow[j] = (i64) iFact[i] * pow[j - 1] % mod;
    }
    for (i32 j = n; j >= 1; --j) {
      i32 local = dp[j];
      for (i32 k = c; k <= d && k * i <= j; ++k) {
	i32 way = (i64) comb (j, k * i) * fact[k * i] % mod * pow[k] % mod * iFact[k] % mod;
	local = (local + (i64) way * dp[j - k * i]) % mod;
      }
      dp[j] = local;
    }
  }
  printf ("%" PRIi32 "\n", dp[n]);
}

int main (void) {
  run ();
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	mod
	.section	.rodata
	.align 4
	.type	mod, @object
	.size	mod, 4
mod:
	.long	1000000007
	.globl	fact
	.bss
	.align 8
	.type	fact, @object
	.size	fact, 8
fact:
	.zero	8
	.globl	iFact
	.align 8
	.type	iFact, @object
	.size	iFact, 8
iFact:
	.zero	8
	.text
	.globl	init
	.type	init, @function
init:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, fact(%rip)
	movq	fact(%rip), %rax
	movl	$1, (%rax)
	movl	$1, -16(%rbp)
	jmp	.L2
.L3:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	fact(%rip), %rcx
	movl	-16(%rbp), %eax
	cltq
	salq	$2, %rax
	subq	$4, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	fact(%rip), %rdx
	movl	-16(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -16(%rbp)
.L2:
	movl	-16(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L3
	movl	$1, -12(%rbp)
	movq	fact(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	$1000000007, %esi
	movl	$1000000007, %eax
	cltd
	idivl	-8(%rbp)
	movl	%eax, %edx
	movl	%esi, %eax
	subl	%edx, %eax
	cltq
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movl	%eax, -12(%rbp)
	movl	$1000000007, %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, -8(%rbp)
.L4:
	cmpl	$1, -8(%rbp)
	jg	.L5
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, iFact(%rip)
	movq	iFact(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	iFact(%rip), %rcx
	movl	-4(%rbp), %eax
	cltq
	addq	$1, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	iFact(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movl	%edx, (%rax)
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jns	.L7
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.globl	comb
	.type	comb, @function
comb:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	js	.L9
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L10
.L9:
	movl	$0, %eax
	jmp	.L11
.L10:
	movq	fact(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	iFact(%rip), %rcx
	movl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	iFact(%rip), %rdx
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
.L11:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	comb, .-comb
	.section	.rodata
.LC0:
	.string	"%i%i%i%i%i"
.LC1:
	.string	"%i\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-52(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-68(%rbp), %eax
	movl	%eax, %edi
	call	init
	movl	-68(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	-68(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	$1, (%rax)
	movl	-64(%rbp), %eax
	movl	%eax, -48(%rbp)
	jmp	.L13
.L21:
	movq	-16(%rbp), %rax
	movl	$1, (%rax)
	movl	$1, -44(%rbp)
	jmp	.L14
.L15:
	movq	iFact(%rip), %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rcx
	movq	-16(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-16(%rbp), %rax
	addq	%rcx, %rax
	movl	%edx, (%rax)
	addl	$1, -44(%rbp)
.L14:
	movl	-68(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L15
	movl	-68(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L16
.L20:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -32(%rbp)
	jmp	.L17
.L19:
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	movl	%eax, %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	comb
	movslq	%eax, %rdx
	movq	fact(%rip), %rcx
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-16(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	iFact(%rip), %rdx
	movl	-32(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movl	%eax, -28(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	movl	%eax, %esi
	movl	-40(%rbp), %eax
	subl	%esi, %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-24(%rbp), %rax
	addq	%rsi, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movl	%eax, -36(%rbp)
	addl	$1, -32(%rbp)
.L17:
	movl	-52(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jg	.L18
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jge	.L19
.L18:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rdx)
	subl	$1, -40(%rbp)
.L16:
	cmpl	$0, -40(%rbp)
	jg	.L20
	addl	$1, -48(%rbp)
.L13:
	movl	-60(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jle	.L21
	movl	-68(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	call	run
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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
	.globl	init
	.type	init, @function
init:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$4, %esi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leal	1(%rdi), %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movslq	%r12d, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%edi, %ebx
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	movq	%rax, fact(%rip)
	movq	%rax, %rdi
	movl	$1, (%rax)
	testl	%ebx, %ebx
	jle	.L2
	movl	%r12d, %r8d
	movl	$1, %esi
	movl	$1, %eax
	movabsq	$-8543223828751151131, %r9
	.p2align 4,,10
	.p2align 3
.L3:
	imulq	%rsi, %rax
	movq	%rax, %rcx
	imulq	%r9
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, (%rdi,%rsi,4)
	addq	$1, %rsi
	movslq	%ecx, %rax
	cmpq	%rsi, %r8
	jne	.L3
.L2:
	movslq	%ebx, %r13
	movl	$1, %r12d
	movl	(%rdi,%r13,4), %esi
	cmpl	$1, %esi
	jle	.L4
	movl	$-1000000007, %r8d
	movl	$1000000007, %edi
	movabsq	$-8543223828751151131, %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%r8d, %eax
	movslq	%r12d, %r12
	cltd
	idivl	%esi
	leal	1000000007(%rax), %ecx
	movslq	%ecx, %rcx
	imulq	%r12, %rcx
	movq	%rcx, %rax
	movl	%ecx, %r12d
	mulq	%r9
	movl	%edi, %eax
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subl	%edx, %r12d
	cltd
	idivl	%esi
	movl	%edx, %esi
	cmpl	$1, %edx
	jg	.L5
.L4:
	movl	$4, %esi
	movq	%rbp, %rdi
	call	calloc@PLT
	movq	%rax, iFact(%rip)
	movq	%rax, %rsi
	movl	%r12d, (%rax,%r13,4)
	subl	$1, %ebx
	js	.L1
	movabsq	$-8543223828751151131, %r8
	leaq	-1(%r13), %rdi
	movl	%ebx, %ebx
	subq	%rbx, %rdi
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	%r12d, %rcx
	imulq	%r13, %rcx
	movq	%rcx, %rax
	mulq	%r8
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, -4(%rsi,%r13,4)
	subq	$1, %r13
	movl	%ecx, %r12d
	cmpq	%r13, %rdi
	jne	.L7
.L1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	init, .-init
	.p2align 4
	.globl	comb
	.type	comb, @function
comb:
.LFB40:
	.cfi_startproc
	endbr64
	movl	%esi, %r8d
	testl	%esi, %esi
	js	.L16
	cmpl	%edi, %esi
	jg	.L16
	movq	fact(%rip), %rax
	movq	iFact(%rip), %r9
	movslq	%edi, %rdx
	subl	%r8d, %edi
	movslq	%edi, %rdi
	movslq	(%rax,%rdx,4), %rcx
	movslq	%esi, %rax
	movabsq	$-8543223828751151131, %rsi
	movslq	(%r9,%rax,4), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movslq	(%r9,%rdi,4), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movl	%ecx, %eax
	imulq	$1000000007, %rdx, %rdx
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE40:
	.size	comb, .-comb
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%i%i%i%i%i"
.LC1:
	.string	"%i\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB41:
	.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	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rcx
	leaq	72(%rsp), %rdx
	leaq	84(%rsp), %r9
	leaq	80(%rsp), %r8
	leaq	68(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	68(%rsp), %edi
	call	init
	movl	68(%rsp), %eax
	movl	$4, %esi
	leal	1(%rax), %ebp
	movl	%eax, 40(%rsp)
	movslq	%ebp, %rbp
	movq	%rbp, %rdi
	call	calloc@PLT
	movl	$4, %esi
	movq	%rbp, %rdi
	movq	%rax, %r15
	call	calloc@PLT
	movl	76(%rsp), %ebx
	movl	$1, (%r15)
	movq	%rax, %r13
	movl	72(%rsp), %eax
	movl	%ebx, 44(%rsp)
	cmpl	%ebx, %eax
	jg	.L38
	movl	84(%rsp), %edi
	movl	80(%rsp), %ebx
	movq	iFact(%rip), %rbp
	movq	fact(%rip), %r12
	movl	%edi, 4(%rsp)
	movslq	%eax, %rdi
	movl	%ebx, 12(%rsp)
	movq	%rdi, 32(%rsp)
	movl	%ebx, %edi
	addl	$1, %ebx
	imull	%eax, %edi
	movl	%ebx, 28(%rsp)
	imull	%ebx, %eax
	movl	40(%rsp), %ebx
	movl	%edi, 16(%rsp)
	movabsq	$-8543223828751151131, %rdi
	movl	%eax, 24(%rsp)
	leal	-1(%rbx), %eax
	leaq	8(%r13,%rax,4), %rax
	movq	%rax, 56(%rsp)
	movslq	%ebx, %rax
	movq	%rax, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L20:
	movl	40(%rsp), %eax
	movl	$1, 0(%r13)
	testl	%eax, %eax
	jle	.L28
	movq	32(%rsp), %rax
	movq	56(%rsp), %r9
	leaq	4(%r13), %rsi
	movslq	0(%rbp,%rax,4), %r8
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L22:
	imulq	%r8, %rax
	addq	$4, %rsi
	movq	%rax, %rcx
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, -4(%rsi)
	movslq	%ecx, %rax
	cmpq	%r9, %rsi
	jne	.L22
	movl	16(%rsp), %ebx
	cmpl	%ebx, 40(%rsp)
	jl	.L28
	testl	%ebx, %ebx
	movl	$1, %eax
	movl	32(%rsp), %r14d
	cmovg	%ebx, %eax
	movq	48(%rsp), %rbx
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L27:
	movl	(%r15,%rbx,4), %ecx
	movl	4(%rsp), %esi
	movl	%ebx, 8(%rsp)
	cmpl	%esi, 12(%rsp)
	jg	.L24
	movslq	28(%rsp), %r8
	movl	24(%rsp), %r10d
	movl	16(%rsp), %eax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L39:
	movl	%r10d, %eax
	addq	$1, %r8
	addl	%r14d, %r10d
	cmpl	%ebx, %eax
	jg	.L24
.L26:
	movl	8(%rsp), %r9d
	movslq	%eax, %r11
	xorl	%edx, %edx
	subl	%eax, %r9d
	movslq	%r9d, %r9
	testl	%eax, %eax
	js	.L25
	movslq	(%r12,%rbx,4), %rax
	movslq	0(%rbp,%r11,4), %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movslq	0(%rbp,%r9,4), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %rdx
.L25:
	movslq	(%r12,%r11,4), %rsi
	movslq	%ecx, %rcx
	imulq	%rdx, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movslq	-4(%r13,%r8,4), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movslq	-4(%rbp,%r8,4), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movslq	(%r15,%r9,4), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rax, %rsi
	addq	%rcx, %rsi
	movq	%rsi, %rax
	movl	%esi, %ecx
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subl	%edx, %ecx
	cmpl	%r8d, 4(%rsp)
	jge	.L39
.L24:
	movl	%ecx, (%r15,%rbx,4)
	subq	$1, %rbx
	cmpl	%ebx, 20(%rsp)
	jle	.L27
.L28:
	movl	12(%rsp), %ecx
	addq	$1, 32(%rsp)
	addl	%ecx, 16(%rsp)
	movq	32(%rsp), %rax
	movl	28(%rsp), %ecx
	addl	%ecx, 24(%rsp)
	cmpl	%eax, 44(%rsp)
	jge	.L20
.L21:
	movq	48(%rsp), %rax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movl	(%r15,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$104, %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
.L38:
	.cfi_restore_state
	movslq	40(%rsp), %rax
	movq	%rax, 48(%rsp)
	jmp	.L21
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB42:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	run
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE42:
	.size	main, .-main
	.globl	iFact
	.bss
	.align 8
	.type	iFact, @object
	.size	iFact, 8
iFact:
	.zero	8
	.globl	fact
	.align 8
	.type	fact, @object
	.size	fact, 8
fact:
	.zero	8
	.globl	mod
	.section	.rodata
	.align 4
	.type	mod, @object
	.size	mod, 4
mod:
	.long	1000000007
	.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
	.globl	init
	.type	init, @function
init:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$4, %esi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leal	1(%rdi), %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movslq	%r12d, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%edi, %ebx
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	movq	%rax, fact(%rip)
	movq	%rax, %rdi
	movl	$1, (%rax)
	testl	%ebx, %ebx
	jle	.L2
	movl	%r12d, %r8d
	movl	$1, %esi
	movl	$1, %eax
	movabsq	$-8543223828751151131, %r9
	.p2align 4,,10
	.p2align 3
.L3:
	imulq	%rsi, %rax
	movq	%rax, %rcx
	imulq	%r9
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, (%rdi,%rsi,4)
	addq	$1, %rsi
	movslq	%ecx, %rax
	cmpq	%rsi, %r8
	jne	.L3
.L2:
	movslq	%ebx, %r13
	movl	$1, %r12d
	movl	(%rdi,%r13,4), %esi
	cmpl	$1, %esi
	jle	.L4
	movl	$-1000000007, %r8d
	movl	$1000000007, %edi
	movabsq	$-8543223828751151131, %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%r8d, %eax
	movslq	%r12d, %r12
	cltd
	idivl	%esi
	leal	1000000007(%rax), %ecx
	movslq	%ecx, %rcx
	imulq	%r12, %rcx
	movq	%rcx, %rax
	movl	%ecx, %r12d
	mulq	%r9
	movl	%edi, %eax
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subl	%edx, %r12d
	cltd
	idivl	%esi
	movl	%edx, %esi
	cmpl	$1, %edx
	jg	.L5
.L4:
	movl	$4, %esi
	movq	%rbp, %rdi
	call	calloc@PLT
	movq	%rax, iFact(%rip)
	movq	%rax, %rsi
	movl	%r12d, (%rax,%r13,4)
	subl	$1, %ebx
	js	.L1
	movabsq	$-8543223828751151131, %r8
	leaq	-1(%r13), %rdi
	movl	%ebx, %ebx
	subq	%rbx, %rdi
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	%r12d, %rcx
	imulq	%r13, %rcx
	movq	%rcx, %rax
	mulq	%r8
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, -4(%rsi,%r13,4)
	subq	$1, %r13
	movl	%ecx, %r12d
	cmpq	%r13, %rdi
	jne	.L7
.L1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	init, .-init
	.p2align 4
	.globl	comb
	.type	comb, @function
comb:
.LFB40:
	.cfi_startproc
	endbr64
	movl	%esi, %r8d
	testl	%esi, %esi
	js	.L16
	cmpl	%edi, %esi
	jg	.L16
	movq	fact(%rip), %rax
	movq	iFact(%rip), %r9
	movslq	%edi, %rdx
	subl	%r8d, %edi
	movslq	%edi, %rdi
	movslq	(%rax,%rdx,4), %rcx
	movslq	%esi, %rax
	movabsq	$-8543223828751151131, %rsi
	movslq	(%r9,%rax,4), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movslq	(%r9,%rdi,4), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movl	%ecx, %eax
	imulq	$1000000007, %rdx, %rdx
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE40:
	.size	comb, .-comb
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%i%i%i%i%i"
.LC1:
	.string	"%i\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB41:
	.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	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rcx
	leaq	72(%rsp), %rdx
	leaq	84(%rsp), %r9
	leaq	80(%rsp), %r8
	leaq	68(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	68(%rsp), %edi
	call	init
	movl	68(%rsp), %eax
	movl	$4, %esi
	leal	1(%rax), %ebp
	movl	%eax, 40(%rsp)
	movslq	%ebp, %rbp
	movq	%rbp, %rdi
	call	calloc@PLT
	movl	$4, %esi
	movq	%rbp, %rdi
	movq	%rax, %r15
	call	calloc@PLT
	movl	76(%rsp), %ebx
	movl	$1, (%r15)
	movq	%rax, %r13
	movl	72(%rsp), %eax
	movl	%ebx, 44(%rsp)
	cmpl	%ebx, %eax
	jg	.L38
	movl	84(%rsp), %edi
	movl	80(%rsp), %ebx
	movq	iFact(%rip), %rbp
	movq	fact(%rip), %r12
	movl	%edi, 4(%rsp)
	movslq	%eax, %rdi
	movl	%ebx, 12(%rsp)
	movq	%rdi, 32(%rsp)
	movl	%ebx, %edi
	addl	$1, %ebx
	imull	%eax, %edi
	movl	%ebx, 28(%rsp)
	imull	%ebx, %eax
	movl	40(%rsp), %ebx
	movl	%edi, 16(%rsp)
	movabsq	$-8543223828751151131, %rdi
	movl	%eax, 24(%rsp)
	leal	-1(%rbx), %eax
	leaq	8(%r13,%rax,4), %rax
	movq	%rax, 56(%rsp)
	movslq	%ebx, %rax
	movq	%rax, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L20:
	movl	40(%rsp), %eax
	movl	$1, 0(%r13)
	testl	%eax, %eax
	jle	.L28
	movq	32(%rsp), %rax
	movq	56(%rsp), %r9
	leaq	4(%r13), %rsi
	movslq	0(%rbp,%rax,4), %r8
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L22:
	imulq	%r8, %rax
	addq	$4, %rsi
	movq	%rax, %rcx
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, -4(%rsi)
	movslq	%ecx, %rax
	cmpq	%r9, %rsi
	jne	.L22
	movl	16(%rsp), %ebx
	cmpl	%ebx, 40(%rsp)
	jl	.L28
	testl	%ebx, %ebx
	movl	$1, %eax
	movl	32(%rsp), %r14d
	cmovg	%ebx, %eax
	movq	48(%rsp), %rbx
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L27:
	movl	(%r15,%rbx,4), %ecx
	movl	4(%rsp), %esi
	movl	%ebx, 8(%rsp)
	cmpl	%esi, 12(%rsp)
	jg	.L24
	movslq	28(%rsp), %r8
	movl	24(%rsp), %r10d
	movl	16(%rsp), %eax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L39:
	movl	%r10d, %eax
	addq	$1, %r8
	addl	%r14d, %r10d
	cmpl	%ebx, %eax
	jg	.L24
.L26:
	movl	8(%rsp), %r9d
	movslq	%eax, %r11
	xorl	%edx, %edx
	subl	%eax, %r9d
	movslq	%r9d, %r9
	testl	%eax, %eax
	js	.L25
	movslq	(%r12,%rbx,4), %rax
	movslq	0(%rbp,%r11,4), %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movslq	0(%rbp,%r9,4), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %rdx
.L25:
	movslq	(%r12,%r11,4), %rsi
	movslq	%ecx, %rcx
	imulq	%rdx, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movslq	-4(%r13,%r8,4), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movslq	-4(%rbp,%r8,4), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movslq	(%r15,%r9,4), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rax, %rsi
	addq	%rcx, %rsi
	movq	%rsi, %rax
	movl	%esi, %ecx
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subl	%edx, %ecx
	cmpl	%r8d, 4(%rsp)
	jge	.L39
.L24:
	movl	%ecx, (%r15,%rbx,4)
	subq	$1, %rbx
	cmpl	%ebx, 20(%rsp)
	jle	.L27
.L28:
	movl	12(%rsp), %ecx
	addq	$1, 32(%rsp)
	addl	%ecx, 16(%rsp)
	movq	32(%rsp), %rax
	movl	28(%rsp), %ecx
	addl	%ecx, 24(%rsp)
	cmpl	%eax, 44(%rsp)
	jge	.L20
.L21:
	movq	48(%rsp), %rax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movl	(%r15,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$104, %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
.L38:
	.cfi_restore_state
	movslq	40(%rsp), %rax
	movq	%rax, 48(%rsp)
	jmp	.L21
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB42:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	run
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE42:
	.size	main, .-main
	.globl	iFact
	.bss
	.align 8
	.type	iFact, @object
	.size	iFact, 8
iFact:
	.zero	8
	.globl	fact
	.align 8
	.type	fact, @object
	.size	fact, 8
fact:
	.zero	8
	.globl	mod
	.section	.rodata
	.align 4
	.type	mod, @object
	.size	mod, 4
mod:
	.long	1000000007
	.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<stdlib.h>
#include<stdint.h>
#include<inttypes.h>

typedef int32_t i32;
typedef int64_t i64;

const i32 mod = 1000000007;

i32 *fact = NULL;
i32 *iFact = NULL;
void init (const i32 n) {
  fact = (i32 *) calloc (n + 1, sizeof (i32));
  fact[0] = 1;
  for (i32 i = 1; i <= n; ++i) {
    fact[i] = (i64) i * fact[i - 1] % mod;
  }
  i32 t = 1;
  i32 a = fact[n];
  while (a > 1) {
    t = (i64) t * (mod - mod / a) % mod;
    a = mod % a;
  }
  iFact = (i32 *) calloc (n + 1, sizeof (i32));
  iFact[n] = t;
  for (i32 i = n - 1; i >= 0; --i) {
    iFact[i] = (i64) (i + 1) * iFact[i + 1] % mod;
  }
}

i32 comb (i32 n, i32 k) {
  if (!(0 <= k && k <= n)) return 0;
  return (i64) fact[n] * iFact[k] % mod * iFact[n - k] % mod;
}

void run (void) {
  i32 n, a, b, c, d;
  scanf ("%" SCNi32 "%" SCNi32 "%" SCNi32 "%" SCNi32 "%" SCNi32, &n, &a, &b, &c, &d);
  init (n);
  i32 *dp = (i32 *) calloc (n + 1, sizeof (i32));
  i32 *pow = (i32 *) calloc (n + 1, sizeof (i32));
  dp[0] = 1;
  for (i32 i = a; i <= b; ++i) {
    pow[0] = 1;
    for (i32 j = 1; j <= n; ++j) {
      pow[j] = (i64) iFact[i] * pow[j - 1] % mod;
    }
    for (i32 j = n; j >= 1; --j) {
      i32 local = dp[j];
      for (i32 k = c; k <= d && k * i <= j; ++k) {
	i32 way = (i64) comb (j, k * i) * fact[k * i] % mod * pow[k] % mod * iFact[k] % mod;
	local = (local + (i64) way * dp[j - k * i]) % mod;
      }
      dp[j] = local;
    }
  }
  printf ("%" PRIi32 "\n", dp[n]);
}

int main (void) {
  run ();
  return 0;
}

7 3 4 2 5
 8 2 3 1 3
 1000 1 1000 2 1000
 1000 1 1000 3 1000
 10 3 7 2 5
 7 1 3 1 3
 1000 1 1000 1 1001
 7 1 6 2 5
 0 3 8 2 7
 2 1 3 1 2

0
 280
 860178665
 980205027
 126
 595
 465231251
 105
 1
 2

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<stdlib.h>
#include<stdint.h>
#include<inttypes.h>

typedef int32_t i32;
typedef int64_t i64;

const i32 mod = 1000000007;

i32 *fact = NULL;
i32 *iFact = NULL;
void init (const i32 n) {
  fact = (i32 *) calloc (n + 1, sizeof (i32));
  fact[0] = 1;
  for (i32 i = 1; i <= n; ++i) {
    fact[i] = (i64) i * fact[i - 1] % mod;
  }
  i32 t = 1;
  i32 a = fact[n];
  while (a > 1) {
    t = (i64) t * (mod - mod / a) % mod;
    a = mod % a;
  }
  iFact = (i32 *) calloc (n + 1, sizeof (i32));
  iFact[n] = t;
  for (i32 i = n - 1; i >= 0; --i) {
    iFact[i] = (i64) (i + 1) * iFact[i + 1] % mod;
  }
}

i32 comb (i32 n, i32 k) {
  if (!(0 <= k && k <= n)) return 0;
  return (i64) fact[n] * iFact[k] % mod * iFact[n - k] % mod;
}

void run (void) {
  i32 n, a, b, c, d;
  scanf ("%" SCNi32 "%" SCNi32 "%" SCNi32 "%" SCNi32 "%" SCNi32, &n, &a, &b, &c, &d);
  init (n);
  i32 *dp = (i32 *) calloc (n + 1, sizeof (i32));
  i32 *pow = (i32 *) calloc (n + 1, sizeof (i32));
  dp[0] = 1;
  for (i32 i = a; i <= b; ++i) {
    pow[0] = 1;
    for (i32 j = 1; j <= n; ++j) {
      pow[j] = (i64) iFact[i] * pow[j - 1] % mod;
    }
    for (i32 j = n; j >= 1; --j) {
      i32 local = dp[j];
      for (i32 k = c; k <= d && k * i <= j; ++k) {
	i32 way = (i64) comb (j, k * i) * fact[k * i] % mod * pow[k] % mod * iFact[k] % mod;
	local = (local + (i64) way * dp[j - k * i]) % mod;
      }
      dp[j] = local;
    }
  }
  printf ("%" PRIi32 "\n", dp[n]);
}

int main (void) {
  run ();
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	mod
	.section	.rodata
	.align 4
	.type	mod, @object
	.size	mod, 4
mod:
	.long	1000000007
	.globl	fact
	.bss
	.align 8
	.type	fact, @object
	.size	fact, 8
fact:
	.zero	8
	.globl	iFact
	.align 8
	.type	iFact, @object
	.size	iFact, 8
iFact:
	.zero	8
	.text
	.globl	init
	.type	init, @function
init:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, fact(%rip)
	movq	fact(%rip), %rax
	movl	$1, (%rax)
	movl	$1, -16(%rbp)
	jmp	.L2
.L3:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	fact(%rip), %rcx
	movl	-16(%rbp), %eax
	cltq
	salq	$2, %rax
	subq	$4, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	fact(%rip), %rdx
	movl	-16(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -16(%rbp)
.L2:
	movl	-16(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L3
	movl	$1, -12(%rbp)
	movq	fact(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	$1000000007, %esi
	movl	$1000000007, %eax
	cltd
	idivl	-8(%rbp)
	movl	%eax, %edx
	movl	%esi, %eax
	subl	%edx, %eax
	cltq
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movl	%eax, -12(%rbp)
	movl	$1000000007, %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, -8(%rbp)
.L4:
	cmpl	$1, -8(%rbp)
	jg	.L5
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, iFact(%rip)
	movq	iFact(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	iFact(%rip), %rcx
	movl	-4(%rbp), %eax
	cltq
	addq	$1, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	iFact(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movl	%edx, (%rax)
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jns	.L7
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.globl	comb
	.type	comb, @function
comb:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	js	.L9
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L10
.L9:
	movl	$0, %eax
	jmp	.L11
.L10:
	movq	fact(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	iFact(%rip), %rcx
	movl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	iFact(%rip), %rdx
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
.L11:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	comb, .-comb
	.section	.rodata
.LC0:
	.string	"%i%i%i%i%i"
.LC1:
	.string	"%i\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-52(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-68(%rbp), %eax
	movl	%eax, %edi
	call	init
	movl	-68(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	-68(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	$1, (%rax)
	movl	-64(%rbp), %eax
	movl	%eax, -48(%rbp)
	jmp	.L13
.L21:
	movq	-16(%rbp), %rax
	movl	$1, (%rax)
	movl	$1, -44(%rbp)
	jmp	.L14
.L15:
	movq	iFact(%rip), %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rcx
	movq	-16(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-16(%rbp), %rax
	addq	%rcx, %rax
	movl	%edx, (%rax)
	addl	$1, -44(%rbp)
.L14:
	movl	-68(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L15
	movl	-68(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L16
.L20:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -32(%rbp)
	jmp	.L17
.L19:
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	movl	%eax, %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	comb
	movslq	%eax, %rdx
	movq	fact(%rip), %rcx
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-16(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	iFact(%rip), %rdx
	movl	-32(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movl	%eax, -28(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	movl	%eax, %esi
	movl	-40(%rbp), %eax
	subl	%esi, %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-24(%rbp), %rax
	addq	%rsi, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movl	%eax, -36(%rbp)
	addl	$1, -32(%rbp)
.L17:
	movl	-52(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jg	.L18
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jge	.L19
.L18:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rdx)
	subl	$1, -40(%rbp)
.L16:
	cmpl	$0, -40(%rbp)
	jg	.L20
	addl	$1, -48(%rbp)
.L13:
	movl	-60(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jle	.L21
	movl	-68(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	call	run
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	mod
	.section	.rodata
	.align 4
	.type	mod, @object
	.size	mod, 4
mod:
	.long	1000000007
	.globl	fact
	.bss
	.align 8
	.type	fact, @object
	.size	fact, 8
fact:
	.zero	8
	.globl	iFact
	.align 8
	.type	iFact, @object
	.size	iFact, 8
iFact:
	.zero	8
	.text
	.globl	init
	.type	init, @function
init:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, fact(%rip)
	movq	fact(%rip), %rax
	movl	$1, (%rax)
	movl	$1, -16(%rbp)
	jmp	.L2
.L3:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	fact(%rip), %rcx
	movl	-16(%rbp), %eax
	cltq
	salq	$2, %rax
	subq	$4, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	fact(%rip), %rdx
	movl	-16(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -16(%rbp)
.L2:
	movl	-16(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L3
	movl	$1, -12(%rbp)
	movq	fact(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L5:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	$1000000007, %esi
	movl	$1000000007, %eax
	cltd
	idivl	-8(%rbp)
	movl	%eax, %edx
	movl	%esi, %eax
	subl	%edx, %eax
	cltq
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movl	%eax, -12(%rbp)
	movl	$1000000007, %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, -8(%rbp)
.L4:
	cmpl	$1, -8(%rbp)
	jg	.L5
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, iFact(%rip)
	movq	iFact(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	iFact(%rip), %rcx
	movl	-4(%rbp), %eax
	cltq
	addq	$1, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	iFact(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movl	%edx, (%rax)
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jns	.L7
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.globl	comb
	.type	comb, @function
comb:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	js	.L9
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L10
.L9:
	movl	$0, %eax
	jmp	.L11
.L10:
	movq	fact(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	iFact(%rip), %rcx
	movl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	iFact(%rip), %rdx
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
.L11:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	comb, .-comb
	.section	.rodata
.LC0:
	.string	"%i%i%i%i%i"
.LC1:
	.string	"%i\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-52(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-68(%rbp), %eax
	movl	%eax, %edi
	call	init
	movl	-68(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	-68(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	$1, (%rax)
	movl	-64(%rbp), %eax
	movl	%eax, -48(%rbp)
	jmp	.L13
.L21:
	movq	-16(%rbp), %rax
	movl	$1, (%rax)
	movl	$1, -44(%rbp)
	jmp	.L14
.L15:
	movq	iFact(%rip), %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movl	-44(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rcx
	movq	-16(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-16(%rbp), %rax
	addq	%rcx, %rax
	movl	%edx, (%rax)
	addl	$1, -44(%rbp)
.L14:
	movl	-68(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L15
	movl	-68(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L16
.L20:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -32(%rbp)
	jmp	.L17
.L19:
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	movl	%eax, %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	comb
	movslq	%eax, %rdx
	movq	fact(%rip), %rcx
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-16(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movq	iFact(%rip), %rdx
	movl	-32(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movl	%eax, -28(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	movl	%eax, %esi
	movl	-40(%rbp), %eax
	subl	%esi, %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-24(%rbp), %rax
	addq	%rsi, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movl	%eax, -36(%rbp)
	addl	$1, -32(%rbp)
.L17:
	movl	-52(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jg	.L18
	movl	-32(%rbp), %eax
	imull	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jge	.L19
.L18:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rdx)
	subl	$1, -40(%rbp)
.L16:
	cmpl	$0, -40(%rbp)
	jg	.L20
	addl	$1, -48(%rbp)
.L13:
	movl	-60(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jle	.L21
	movl	-68(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	call	run
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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:
