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>

#define mod 1000000007;

long long nikou(int n, int r);

long long c[2001][2001];
int done[2001][2001]={};

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

  scanf("%d %d", &n,&k);

  for(i=1; i<=k; i++){
    ans=0;
    b_wake=0;
    r_wake=0;
    if(i==1){
      ans=(n-k+1)%mod;
    }else{
      if(k-i<0){
        ans=0;
      }else{
        //bの分け方 k-1Ci-1
        b_wake=nikou(k-1,i-1)%mod;
        //rの分け方
        for(j=i-1; j<=i+1; j++){
          //j=i-1 赤が両端にない
          //j=i 赤が右端のみまたは左端のみにある
          //j=i+1 赤が両端にある
          if(n-k<j) break;
          if(j==i){
            r_wake+=2*nikou(n-k-1,j-1)%mod
          }else{
            r_wake+=nikou(n-k-1,j-1)%mod;
          }
        }
        ans=(b_wake*r_wake)%mod;
      }
    }
    printf("%lld\n", ans);
  }

  return 0;
}

long long nikou(int n, int r){
  //n=>rであることが前提
  // printf("nikou(%d,%d)\n", n,r);
  if(done[n][r]==1) return c[n][r];

  if(r==0){
    done[n][r]=1;
    return c[n][r]=1;
  }
  if(r==n){
    done[n][r]=1;
    return c[n][r]=1;
  }

  c[n][r]=(nikou(n-1,r)+nikou(n-1,r-1))%mod;
  done[n][r]=1;
  return c[n][r];
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 32032008
c:
	.zero	32032008
	.globl	done
	.align 32
	.type	done, @object
	.size	done, 16016004
done:
	.zero	16016004
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -40(%rbp)
	jmp	.L2
.L12:
	movq	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	movq	$0, -32(%rbp)
	cmpl	$1, -40(%rbp)
	jne	.L3
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	imulq	$1152921497, %rax, %rax
	shrq	$32, %rax
	sarl	$28, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$1000000007, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -24(%rbp)
	jmp	.L4
.L3:
	movl	-44(%rbp), %eax
	subl	-40(%rbp), %eax
	testl	%eax, %eax
	jns	.L5
	movq	$0, -24(%rbp)
	jmp	.L4
.L5:
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	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, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	-40(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	jmp	.L6
.L11:
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -36(%rbp)
	jg	.L15
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L9
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	subl	%ecx, %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	leaq	(%rax,%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
	addq	%rax, -32(%rbp)
	jmp	.L10
.L9:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	subl	%ecx, %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rax, -32(%rbp)
.L10:
	addl	$1, -36(%rbp)
.L6:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jle	.L11
	jmp	.L8
.L15:
	nop
.L8:
	movq	-16(%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, -24(%rbp)
	movq	-24(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
.L4:
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	nikou
	.type	nikou, @function
nikou:
.LFB1:
	.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	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L17
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L17:
	cmpl	$0, -24(%rbp)
	jne	.L19
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L19:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L20
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L20:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	nikou
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	leaq	(%rbx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2001, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
.L18:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nikou, .-nikou
	.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	nikou
	.type	nikou, @function
nikou:
.LFB24:
	.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
	movslq	%esi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	done(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%edi, %r12
	imulq	$2001, %r12, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	addq	%r14, %rax
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	cmpl	$1, 0(%r13,%rax,4)
	je	.L27
	movq	%r14, %rbx
	testl	%r14d, %r14d
	je	.L28
	movq	%r12, %rbp
	cmpl	%r14d, %r12d
	je	.L29
	leal	-1(%r12), %edx
	leal	-1(%r14), %r9d
	movslq	%edx, %r15
	imulq	$2001, %r15, %rax
	addq	%r14, %rax
	cmpl	$1, 0(%r13,%rax,4)
	je	.L30
	cmpl	%edx, %r14d
	je	.L31
	leal	-2(%r12), %eax
	movslq	%eax, %r11
	movl	%eax, (%rsp)
	imulq	$2001, %r11, %rcx
	addq	%r14, %rcx
	cmpl	$1, 0(%r13,%rcx,4)
	je	.L32
	cmpl	(%rsp), %r14d
	je	.L33
	leal	-3(%r12), %edi
	movl	%r14d, %esi
	movq	%r11, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%r9d, 16(%rsp)
	movl	%edi, 24(%rsp)
	call	nikou
	movl	16(%rsp), %esi
	movl	24(%rsp), %edi
	movq	%rax, 8(%rsp)
	call	nikou
	movq	8(%rsp), %rsi
	movq	32(%rsp), %rcx
	movabsq	$-8543223828751151131, %rdx
	leaq	c(%rip), %r8
	movq	40(%rsp), %r11
	movl	16(%rsp), %r9d
	movl	$1, 0(%r13,%rcx,4)
	addq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, 8(%rsp)
	movq	%rsi, (%r8,%rcx,8)
.L10:
	imulq	$2001, %r11, %rcx
	movslq	%r9d, %r10
	addq	%r10, %rcx
	cmpl	$1, 0(%r13,%rcx,4)
	je	.L34
	testl	%r9d, %r9d
	je	.L35
	cmpl	%r9d, (%rsp)
	je	.L36
	movl	%r9d, %esi
	leal	-3(%rbp), %edi
	movq	%r8, 48(%rsp)
	movq	%r10, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%r9d, 24(%rsp)
	movl	%edi, 16(%rsp)
	call	nikou
	movl	16(%rsp), %edi
	leal	-2(%rbx), %esi
	movq	%rax, (%rsp)
	call	nikou
	movq	(%rsp), %rdi
	movq	32(%rsp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	48(%rsp), %r8
	movq	40(%rsp), %r10
	addq	%rax, %rdi
	movl	24(%rsp), %r9d
	movl	$1, 0(%r13,%rcx,4)
	movq	%rdi, %rax
	imulq	%rdx
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	subq	%rax, %rdi
	movq	%rdi, (%r8,%rcx,8)
	movq	%rdi, %rsi
.L13:
	movabsq	$-8543223828751151131, %rdx
	addq	8(%rsp), %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
	movq	%rsi, %rcx
	subq	%rax, %rcx
	imulq	$2001, %r15, %rax
	addq	%r14, %rax
	movq	%rcx, (%r8,%rax,8)
	movl	$1, 0(%r13,%rax,4)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	imulq	$8004, %r12, %rax
	imulq	$16008, %r12, %r12
	movl	$1, 0(%r13,%rax)
	leaq	c(%rip), %rax
	movq	$1, (%rax,%r12)
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$1, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	leaq	c(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	addq	$72, %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
.L29:
	.cfi_restore_state
	imulq	$2002, %r14, %r14
	leaq	c(%rip), %rax
	movq	$1, (%rax,%r14,8)
	movl	$1, %eax
	movl	$1, 0(%r13,%r14,4)
	addq	$72, %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
.L31:
	.cfi_restore_state
	imulq	$8008, %r15, %rax
	leaq	c(%rip), %r8
	movl	$1, %ecx
	movslq	%r9d, %r10
	movl	$1, 0(%r13,%rax)
	imulq	$16016, %r15, %rax
	movq	$1, (%r8,%rax)
.L7:
	imulq	$2001, %r15, %rax
	addq	%r10, %rax
	cmpl	$1, 0(%r13,%rax,4)
	je	.L37
	testl	%r9d, %r9d
	je	.L38
	leal	-2(%rbp), %edx
	leal	-2(%rbx), %eax
	movslq	%edx, %r11
	movl	%eax, (%rsp)
	imulq	$2001, %r11, %rax
	leaq	(%rax,%r10), %rdi
	cmpl	$1, 0(%r13,%rdi,4)
	movq	%rdi, 16(%rsp)
	je	.L39
	cmpl	%edx, %r9d
	je	.L40
	leal	-3(%rbp), %edi
	movl	%r9d, %esi
	movq	%r8, 56(%rsp)
	movq	%r11, 48(%rsp)
	movq	%r10, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%edi, 24(%rsp)
	call	nikou
	movl	(%rsp), %esi
	movl	24(%rsp), %edi
	movq	%rax, 8(%rsp)
	call	nikou
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	56(%rsp), %r8
	movq	48(%rsp), %r11
	addq	%rax, %rsi
	movq	40(%rsp), %r10
	movl	$1, 0(%r13,%rcx,4)
	movq	%rsi, %rax
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, 8(%rsp)
	movq	%rsi, (%r8,%rcx,8)
	movq	32(%rsp), %rcx
.L20:
	imulq	$2001, %r11, %rdx
	movslq	(%rsp), %rax
	leaq	(%rdx,%rax), %r9
	cmpl	$1, 0(%r13,%r9,4)
	je	.L41
	movl	(%rsp), %eax
	testl	%eax, %eax
	je	.L42
	movl	(%rsp), %esi
	leal	-3(%rbp), %edi
	movq	%r8, 40(%rsp)
	movq	%r10, 32(%rsp)
	movq	%r9, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movl	%edi, (%rsp)
	call	nikou
	movl	(%rsp), %edi
	leal	-3(%rbx), %esi
	movq	%rax, %rbp
	call	nikou
	movq	24(%rsp), %r9
	movq	40(%rsp), %r8
	movabsq	$-8543223828751151131, %rdx
	leaq	0(%rbp,%rax), %rdi
	movq	32(%rsp), %r10
	movq	16(%rsp), %rcx
	movl	$1, 0(%r13,%r9,4)
	movq	%rdi, %rax
	imulq	%rdx
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	subq	%rax, %rdi
	movq	%rdi, (%r8,%r9,8)
	movq	%rdi, %rsi
.L23:
	addq	8(%rsp), %rsi
	imulq	$2001, %r15, %r15
	movabsq	$-8543223828751151131, %rdx
	movq	%rsi, %rax
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%r10, %r15
	movl	$1, 0(%r13,%r15,4)
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, (%r8,%r15,8)
	movq	%rsi, %rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L38:
	imulq	$8004, %r15, %rax
	movl	$1, %edx
	imulq	$16008, %r15, %r15
	movl	$1, 0(%r13,%rax)
	movq	$1, (%r8,%r15)
.L17:
	addq	%rdx, %rcx
	imulq	$2001, %r12, %r12
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	addq	%r14, %r12
	movl	$1, 0(%r13,%r12,4)
	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
	movq	%rax, (%r8,%r12,8)
	addq	$72, %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
.L37:
	.cfi_restore_state
	movq	(%r8,%rax,8), %rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L30:
	leaq	c(%rip), %r8
	movslq	%r9d, %r10
	movq	(%r8,%rax,8), %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L40:
	movq	$1, 8(%rsp)
	addq	%r11, %rax
	movl	$1, 0(%r13,%rax,4)
	movq	$1, (%r8,%rax,8)
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L33:
	imulq	$8008, %r11, %rax
	leaq	c(%rip), %r8
	movq	$1, 8(%rsp)
	movl	$1, 0(%r13,%rax)
	imulq	$16016, %r11, %rax
	movq	$1, (%r8,%rax)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L42:
	imulq	$8004, %r11, %rax
	movl	$1, %esi
	movl	$1, 0(%r13,%rax)
	imulq	$16008, %r11, %rax
	movq	$1, (%r8,%rax)
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L35:
	imulq	$8004, %r11, %rax
	movl	$1, %esi
	imulq	$16008, %r11, %r11
	movl	$1, 0(%r13,%rax)
	movq	$1, (%r8,%r11)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L34:
	movq	(%r8,%rcx,8), %rsi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	c(%rip), %r8
	movq	(%r8,%rcx,8), %rax
	movq	%rax, 8(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L41:
	movq	(%r8,%r9,8), %rsi
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L39:
	movq	(%r8,%rdi,8), %rax
	movq	%rax, 8(%rsp)
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L36:
	imulq	$2002, %r10, %rax
	movl	$1, %esi
	movl	$1, 0(%r13,%rax,4)
	movq	$1, (%r8,%rax,8)
	jmp	.L13
	.cfi_endproc
.LFE24:
	.size	nikou, .-nikou
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	done(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rdx
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %edi
	testl	%edi, %edi
	jg	.L44
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L45:
	xorl	%edx, %edx
	cmpl	%r12d, %edi
	jge	.L65
.L46:
	movl	$1, %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__printf_chk@PLT
	movl	36(%rsp), %edi
	cmpl	%r12d, %edi
	jl	.L55
.L44:
	cmpl	$1, %r12d
	jne	.L45
	movl	32(%rsp), %edx
	subl	%edi, %edx
	addl	$1, %edx
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$1152921497, %rax, %rax
	sarl	$31, %esi
	sarq	$60, %rax
	subl	%esi, %eax
	imull	$1000000007, %eax, %eax
	subl	%eax, %edx
	movslq	%edx, %rdx
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L65:
	leal	-1(%r12), %r15d
	subl	$1, %edi
	leal	-2(%r12), %r13d
	movl	%r15d, %esi
	call	nikou
	movq	%rax, %rsi
	movabsq	$-8543223828751151131, %rax
	imulq	%rsi
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rbx
	sarq	$29, %rbx
	subq	%rax, %rbx
	imulq	$1000000007, %rbx, %rax
	xorl	%ebx, %ebx
	subq	%rax, %rsi
	movq	%rsi, 24(%rsp)
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L48:
	movslq	%edi, %rdi
	movslq	%r13d, %rdx
	imulq	$2001, %rdi, %r10
	addq	%rdx, %r10
	cmpl	$1, 0(%rbp,%r10,4)
	je	.L66
	testl	%r13d, %r13d
	je	.L67
	cmpl	%r15d, %eax
	je	.L68
	leal	-2(%rax), %edi
	movl	%r13d, %esi
	movq	%r10, 16(%rsp)
	movl	%edi, 12(%rsp)
	call	nikou
	movl	12(%rsp), %edi
	leal	-2(%r15), %esi
	movq	%rax, (%rsp)
	call	nikou
	movq	(%rsp), %rsi
	movq	16(%rsp), %r10
	movl	$1, 0(%rbp,%r10,4)
	addq	%rax, %rsi
	movabsq	$-8543223828751151131, %rax
	imulq	%rsi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	leaq	c(%rip), %rax
	movq	%rsi, (%rax,%r10,8)
	movq	%rsi, %rdx
.L51:
	addl	$1, %r13d
	addq	%rdx, %rbx
	addl	$1, %r15d
	cmpl	%r13d, %r12d
	jl	.L47
.L54:
	movl	32(%rsp), %eax
	subl	36(%rsp), %eax
	cmpl	%r15d, %eax
	jl	.L47
	leal	-1(%rax), %edi
	cmpl	%r12d, %r15d
	jne	.L48
	movl	%r13d, %esi
	addl	$1, %r13d
	addl	$1, %r15d
	call	nikou
	leaq	(%rax,%rax), %rsi
	movabsq	$-8543223828751151131, %rax
	imulq	%rsi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	addq	%rsi, %rbx
	cmpl	%r13d, %r12d
	jge	.L54
	.p2align 4,,10
	.p2align 3
.L47:
	movabsq	$-8543223828751151131, %rax
	imulq	24(%rsp), %rbx
	imulq	%rbx
	movq	%rbx, %rax
	sarq	$63, %rax
	addq	%rbx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rbx
	movq	%rbx, %rdx
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L67:
	imulq	$8004, %rdi, %rax
	leaq	c(%rip), %rcx
	movl	$1, %edx
	movl	$1, 0(%rbp,%rax)
	imulq	$16008, %rdi, %rax
	movq	$1, (%rcx,%rax)
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L66:
	leaq	c(%rip), %rax
	movq	(%rax,%r10,8), %rsi
	movabsq	$-8543223828751151131, %rax
	imulq	%rsi
	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
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L68:
	leaq	c(%rip), %rax
	movl	$1, %edx
	movl	$1, 0(%rbp,%r10,4)
	movq	$1, (%rax,%r10,8)
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L55:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	addq	$56, %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
.L69:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	done
	.bss
	.align 32
	.type	done, @object
	.size	done, 16016004
done:
	.zero	16016004
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 32032008
c:
	.zero	32032008
	.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	nikou
	.type	nikou, @function
nikou:
.LFB24:
	.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
	movslq	%esi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	done(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%edi, %r12
	imulq	$2001, %r12, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	addq	%r14, %rax
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	cmpl	$1, 0(%r13,%rax,4)
	je	.L27
	movq	%r14, %rbx
	testl	%r14d, %r14d
	je	.L28
	movq	%r12, %rbp
	cmpl	%r14d, %r12d
	je	.L29
	leal	-1(%r12), %edx
	leal	-1(%r14), %r9d
	movslq	%edx, %r15
	imulq	$2001, %r15, %rax
	addq	%r14, %rax
	cmpl	$1, 0(%r13,%rax,4)
	je	.L30
	cmpl	%edx, %r14d
	je	.L31
	leal	-2(%r12), %eax
	movslq	%eax, %r11
	movl	%eax, (%rsp)
	imulq	$2001, %r11, %rcx
	addq	%r14, %rcx
	cmpl	$1, 0(%r13,%rcx,4)
	je	.L32
	cmpl	(%rsp), %r14d
	je	.L33
	leal	-3(%r12), %edi
	movl	%r14d, %esi
	movq	%r11, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%r9d, 16(%rsp)
	movl	%edi, 24(%rsp)
	call	nikou
	movl	16(%rsp), %esi
	movl	24(%rsp), %edi
	movq	%rax, 8(%rsp)
	call	nikou
	movq	8(%rsp), %rsi
	movq	32(%rsp), %rcx
	movabsq	$-8543223828751151131, %rdx
	leaq	c(%rip), %r8
	movq	40(%rsp), %r11
	movl	16(%rsp), %r9d
	movl	$1, 0(%r13,%rcx,4)
	addq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, 8(%rsp)
	movq	%rsi, (%r8,%rcx,8)
.L10:
	imulq	$2001, %r11, %rcx
	movslq	%r9d, %r10
	addq	%r10, %rcx
	cmpl	$1, 0(%r13,%rcx,4)
	je	.L34
	testl	%r9d, %r9d
	je	.L35
	cmpl	%r9d, (%rsp)
	je	.L36
	movl	%r9d, %esi
	leal	-3(%rbp), %edi
	movq	%r8, 48(%rsp)
	movq	%r10, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%r9d, 24(%rsp)
	movl	%edi, 16(%rsp)
	call	nikou
	movl	16(%rsp), %edi
	leal	-2(%rbx), %esi
	movq	%rax, (%rsp)
	call	nikou
	movq	(%rsp), %rdi
	movq	32(%rsp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	48(%rsp), %r8
	movq	40(%rsp), %r10
	addq	%rax, %rdi
	movl	24(%rsp), %r9d
	movl	$1, 0(%r13,%rcx,4)
	movq	%rdi, %rax
	imulq	%rdx
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	subq	%rax, %rdi
	movq	%rdi, (%r8,%rcx,8)
	movq	%rdi, %rsi
.L13:
	movabsq	$-8543223828751151131, %rdx
	addq	8(%rsp), %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
	movq	%rsi, %rcx
	subq	%rax, %rcx
	imulq	$2001, %r15, %rax
	addq	%r14, %rax
	movq	%rcx, (%r8,%rax,8)
	movl	$1, 0(%r13,%rax,4)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	imulq	$8004, %r12, %rax
	imulq	$16008, %r12, %r12
	movl	$1, 0(%r13,%rax)
	leaq	c(%rip), %rax
	movq	$1, (%rax,%r12)
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$1, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	leaq	c(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	addq	$72, %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
.L29:
	.cfi_restore_state
	imulq	$2002, %r14, %r14
	leaq	c(%rip), %rax
	movq	$1, (%rax,%r14,8)
	movl	$1, %eax
	movl	$1, 0(%r13,%r14,4)
	addq	$72, %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
.L31:
	.cfi_restore_state
	imulq	$8008, %r15, %rax
	leaq	c(%rip), %r8
	movl	$1, %ecx
	movslq	%r9d, %r10
	movl	$1, 0(%r13,%rax)
	imulq	$16016, %r15, %rax
	movq	$1, (%r8,%rax)
.L7:
	imulq	$2001, %r15, %rax
	addq	%r10, %rax
	cmpl	$1, 0(%r13,%rax,4)
	je	.L37
	testl	%r9d, %r9d
	je	.L38
	leal	-2(%rbp), %edx
	leal	-2(%rbx), %eax
	movslq	%edx, %r11
	movl	%eax, (%rsp)
	imulq	$2001, %r11, %rax
	leaq	(%rax,%r10), %rdi
	cmpl	$1, 0(%r13,%rdi,4)
	movq	%rdi, 16(%rsp)
	je	.L39
	cmpl	%edx, %r9d
	je	.L40
	leal	-3(%rbp), %edi
	movl	%r9d, %esi
	movq	%r8, 56(%rsp)
	movq	%r11, 48(%rsp)
	movq	%r10, 40(%rsp)
	movq	%rcx, 32(%rsp)
	movl	%edi, 24(%rsp)
	call	nikou
	movl	(%rsp), %esi
	movl	24(%rsp), %edi
	movq	%rax, 8(%rsp)
	call	nikou
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	56(%rsp), %r8
	movq	48(%rsp), %r11
	addq	%rax, %rsi
	movq	40(%rsp), %r10
	movl	$1, 0(%r13,%rcx,4)
	movq	%rsi, %rax
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, 8(%rsp)
	movq	%rsi, (%r8,%rcx,8)
	movq	32(%rsp), %rcx
.L20:
	imulq	$2001, %r11, %rdx
	movslq	(%rsp), %rax
	leaq	(%rdx,%rax), %r9
	cmpl	$1, 0(%r13,%r9,4)
	je	.L41
	movl	(%rsp), %eax
	testl	%eax, %eax
	je	.L42
	movl	(%rsp), %esi
	leal	-3(%rbp), %edi
	movq	%r8, 40(%rsp)
	movq	%r10, 32(%rsp)
	movq	%r9, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movl	%edi, (%rsp)
	call	nikou
	movl	(%rsp), %edi
	leal	-3(%rbx), %esi
	movq	%rax, %rbp
	call	nikou
	movq	24(%rsp), %r9
	movq	40(%rsp), %r8
	movabsq	$-8543223828751151131, %rdx
	leaq	0(%rbp,%rax), %rdi
	movq	32(%rsp), %r10
	movq	16(%rsp), %rcx
	movl	$1, 0(%r13,%r9,4)
	movq	%rdi, %rax
	imulq	%rdx
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	subq	%rax, %rdi
	movq	%rdi, (%r8,%r9,8)
	movq	%rdi, %rsi
.L23:
	addq	8(%rsp), %rsi
	imulq	$2001, %r15, %r15
	movabsq	$-8543223828751151131, %rdx
	movq	%rsi, %rax
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%r10, %r15
	movl	$1, 0(%r13,%r15,4)
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, (%r8,%r15,8)
	movq	%rsi, %rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L38:
	imulq	$8004, %r15, %rax
	movl	$1, %edx
	imulq	$16008, %r15, %r15
	movl	$1, 0(%r13,%rax)
	movq	$1, (%r8,%r15)
.L17:
	addq	%rdx, %rcx
	imulq	$2001, %r12, %r12
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	addq	%r14, %r12
	movl	$1, 0(%r13,%r12,4)
	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
	movq	%rax, (%r8,%r12,8)
	addq	$72, %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
.L37:
	.cfi_restore_state
	movq	(%r8,%rax,8), %rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L30:
	leaq	c(%rip), %r8
	movslq	%r9d, %r10
	movq	(%r8,%rax,8), %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L40:
	movq	$1, 8(%rsp)
	addq	%r11, %rax
	movl	$1, 0(%r13,%rax,4)
	movq	$1, (%r8,%rax,8)
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L33:
	imulq	$8008, %r11, %rax
	leaq	c(%rip), %r8
	movq	$1, 8(%rsp)
	movl	$1, 0(%r13,%rax)
	imulq	$16016, %r11, %rax
	movq	$1, (%r8,%rax)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L42:
	imulq	$8004, %r11, %rax
	movl	$1, %esi
	movl	$1, 0(%r13,%rax)
	imulq	$16008, %r11, %rax
	movq	$1, (%r8,%rax)
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L35:
	imulq	$8004, %r11, %rax
	movl	$1, %esi
	imulq	$16008, %r11, %r11
	movl	$1, 0(%r13,%rax)
	movq	$1, (%r8,%r11)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L34:
	movq	(%r8,%rcx,8), %rsi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	c(%rip), %r8
	movq	(%r8,%rcx,8), %rax
	movq	%rax, 8(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L41:
	movq	(%r8,%r9,8), %rsi
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L39:
	movq	(%r8,%rdi,8), %rax
	movq	%rax, 8(%rsp)
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L36:
	imulq	$2002, %r10, %rax
	movl	$1, %esi
	movl	$1, 0(%r13,%rax,4)
	movq	$1, (%r8,%rax,8)
	jmp	.L13
	.cfi_endproc
.LFE24:
	.size	nikou, .-nikou
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	done(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rdx
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %edi
	testl	%edi, %edi
	jg	.L44
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L45:
	xorl	%edx, %edx
	cmpl	%r12d, %edi
	jge	.L65
.L46:
	movl	$1, %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__printf_chk@PLT
	movl	36(%rsp), %edi
	cmpl	%r12d, %edi
	jl	.L55
.L44:
	cmpl	$1, %r12d
	jne	.L45
	movl	32(%rsp), %edx
	subl	%edi, %edx
	addl	$1, %edx
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$1152921497, %rax, %rax
	sarl	$31, %esi
	sarq	$60, %rax
	subl	%esi, %eax
	imull	$1000000007, %eax, %eax
	subl	%eax, %edx
	movslq	%edx, %rdx
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L65:
	leal	-1(%r12), %r15d
	subl	$1, %edi
	leal	-2(%r12), %r13d
	movl	%r15d, %esi
	call	nikou
	movq	%rax, %rsi
	movabsq	$-8543223828751151131, %rax
	imulq	%rsi
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rbx
	sarq	$29, %rbx
	subq	%rax, %rbx
	imulq	$1000000007, %rbx, %rax
	xorl	%ebx, %ebx
	subq	%rax, %rsi
	movq	%rsi, 24(%rsp)
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L48:
	movslq	%edi, %rdi
	movslq	%r13d, %rdx
	imulq	$2001, %rdi, %r10
	addq	%rdx, %r10
	cmpl	$1, 0(%rbp,%r10,4)
	je	.L66
	testl	%r13d, %r13d
	je	.L67
	cmpl	%r15d, %eax
	je	.L68
	leal	-2(%rax), %edi
	movl	%r13d, %esi
	movq	%r10, 16(%rsp)
	movl	%edi, 12(%rsp)
	call	nikou
	movl	12(%rsp), %edi
	leal	-2(%r15), %esi
	movq	%rax, (%rsp)
	call	nikou
	movq	(%rsp), %rsi
	movq	16(%rsp), %r10
	movl	$1, 0(%rbp,%r10,4)
	addq	%rax, %rsi
	movabsq	$-8543223828751151131, %rax
	imulq	%rsi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	leaq	c(%rip), %rax
	movq	%rsi, (%rax,%r10,8)
	movq	%rsi, %rdx
.L51:
	addl	$1, %r13d
	addq	%rdx, %rbx
	addl	$1, %r15d
	cmpl	%r13d, %r12d
	jl	.L47
.L54:
	movl	32(%rsp), %eax
	subl	36(%rsp), %eax
	cmpl	%r15d, %eax
	jl	.L47
	leal	-1(%rax), %edi
	cmpl	%r12d, %r15d
	jne	.L48
	movl	%r13d, %esi
	addl	$1, %r13d
	addl	$1, %r15d
	call	nikou
	leaq	(%rax,%rax), %rsi
	movabsq	$-8543223828751151131, %rax
	imulq	%rsi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	addq	%rsi, %rbx
	cmpl	%r13d, %r12d
	jge	.L54
	.p2align 4,,10
	.p2align 3
.L47:
	movabsq	$-8543223828751151131, %rax
	imulq	24(%rsp), %rbx
	imulq	%rbx
	movq	%rbx, %rax
	sarq	$63, %rax
	addq	%rbx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rbx
	movq	%rbx, %rdx
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L67:
	imulq	$8004, %rdi, %rax
	leaq	c(%rip), %rcx
	movl	$1, %edx
	movl	$1, 0(%rbp,%rax)
	imulq	$16008, %rdi, %rax
	movq	$1, (%rcx,%rax)
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L66:
	leaq	c(%rip), %rax
	movq	(%rax,%r10,8), %rsi
	movabsq	$-8543223828751151131, %rax
	imulq	%rsi
	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
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L68:
	leaq	c(%rip), %rax
	movl	$1, %edx
	movl	$1, 0(%rbp,%r10,4)
	movq	$1, (%rax,%r10,8)
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L55:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	addq	$56, %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
.L69:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	done
	.bss
	.align 32
	.type	done, @object
	.size	done, 16016004
done:
	.zero	16016004
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 32032008
c:
	.zero	32032008
	.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>

#define mod 1000000007;

long long nikou(int n, int r);

long long c[2001][2001];
int done[2001][2001]={};

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

  scanf("%d %d", &n,&k);

  for(i=1; i<=k; i++){
    ans=0;
    b_wake=0;
    r_wake=0;
    if(i==1){
      ans=(n-k+1)%mod;
    }else{
      if(k-i<0){
        ans=0;
      }else{
        //bの分け方 k-1Ci-1
        b_wake=nikou(k-1,i-1)%mod;
        //rの分け方
        for(j=i-1; j<=i+1; j++){
          //j=i-1 赤が両端にない
          //j=i 赤が右端のみまたは左端のみにある
          //j=i+1 赤が両端にある
          if(n-k<j) break;
          if(j==i){
            r_wake+=2*nikou(n-k-1,j-1)%mod
          }else{
            r_wake+=nikou(n-k-1,j-1)%mod;
          }
        }
        ans=(b_wake*r_wake)%mod;
      }
    }
    printf("%lld\n", ans);
  }

  return 0;
}

long long nikou(int n, int r){
  //n=>rであることが前提
  // printf("nikou(%d,%d)\n", n,r);
  if(done[n][r]==1) return c[n][r];

  if(r==0){
    done[n][r]=1;
    return c[n][r]=1;
  }
  if(r==n){
    done[n][r]=1;
    return c[n][r]=1;
  }

  c[n][r]=(nikou(n-1,r)+nikou(n-1,r-1))%mod;
  done[n][r]=1;
  return c[n][r];
}

7 3
 1776 3
 7 5
 195 3
 5 5
 206 3
 96 3
 96 2
 2000 1
 7 4

5
20
10
 1774
3145302
928912524
 3
12
6
0
0
 193
37056
1179616
 1
0
0
0
0
 204
41412
1394204
 94
8742
134044
 95
4465
 2000
 4
18
12
1

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>

#define mod 1000000007;

long long nikou(int n, int r);

long long c[2001][2001];
int done[2001][2001]={};

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

  scanf("%d %d", &n,&k);

  for(i=1; i<=k; i++){
    ans=0;
    b_wake=0;
    r_wake=0;
    if(i==1){
      ans=(n-k+1)%mod;
    }else{
      if(k-i<0){
        ans=0;
      }else{
        //bの分け方 k-1Ci-1
        b_wake=nikou(k-1,i-1)%mod;
        //rの分け方
        for(j=i-1; j<=i+1; j++){
          //j=i-1 赤が両端にない
          //j=i 赤が右端のみまたは左端のみにある
          //j=i+1 赤が両端にある
          if(n-k<j) break;
          if(j==i){
            r_wake+=2*nikou(n-k-1,j-1)%mod
          }else{
            r_wake+=nikou(n-k-1,j-1)%mod;
          }
        }
        ans=(b_wake*r_wake)%mod;
      }
    }
    printf("%lld\n", ans);
  }

  return 0;
}

long long nikou(int n, int r){
  //n=>rであることが前提
  // printf("nikou(%d,%d)\n", n,r);
  if(done[n][r]==1) return c[n][r];

  if(r==0){
    done[n][r]=1;
    return c[n][r]=1;
  }
  if(r==n){
    done[n][r]=1;
    return c[n][r]=1;
  }

  c[n][r]=(nikou(n-1,r)+nikou(n-1,r-1))%mod;
  done[n][r]=1;
  return c[n][r];
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 32032008
c:
	.zero	32032008
	.globl	done
	.align 32
	.type	done, @object
	.size	done, 16016004
done:
	.zero	16016004
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -40(%rbp)
	jmp	.L2
.L12:
	movq	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	movq	$0, -32(%rbp)
	cmpl	$1, -40(%rbp)
	jne	.L3
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	imulq	$1152921497, %rax, %rax
	shrq	$32, %rax
	sarl	$28, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$1000000007, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -24(%rbp)
	jmp	.L4
.L3:
	movl	-44(%rbp), %eax
	subl	-40(%rbp), %eax
	testl	%eax, %eax
	jns	.L5
	movq	$0, -24(%rbp)
	jmp	.L4
.L5:
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	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, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	-40(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	jmp	.L6
.L11:
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -36(%rbp)
	jg	.L15
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L9
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	subl	%ecx, %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	leaq	(%rax,%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
	addq	%rax, -32(%rbp)
	jmp	.L10
.L9:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	subl	%ecx, %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rax, -32(%rbp)
.L10:
	addl	$1, -36(%rbp)
.L6:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jle	.L11
	jmp	.L8
.L15:
	nop
.L8:
	movq	-16(%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, -24(%rbp)
	movq	-24(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
.L4:
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	nikou
	.type	nikou, @function
nikou:
.LFB1:
	.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	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L17
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L17:
	cmpl	$0, -24(%rbp)
	jne	.L19
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L19:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L20
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L20:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	nikou
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	leaq	(%rbx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2001, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
.L18:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nikou, .-nikou
	.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	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 32032008
c:
	.zero	32032008
	.globl	done
	.align 32
	.type	done, @object
	.size	done, 16016004
done:
	.zero	16016004
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -40(%rbp)
	jmp	.L2
.L12:
	movq	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	movq	$0, -32(%rbp)
	cmpl	$1, -40(%rbp)
	jne	.L3
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	imulq	$1152921497, %rax, %rax
	shrq	$32, %rax
	sarl	$28, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$1000000007, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -24(%rbp)
	jmp	.L4
.L3:
	movl	-44(%rbp), %eax
	subl	-40(%rbp), %eax
	testl	%eax, %eax
	jns	.L5
	movq	$0, -24(%rbp)
	jmp	.L4
.L5:
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	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, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	-40(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	jmp	.L6
.L11:
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -36(%rbp)
	jg	.L15
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L9
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	subl	%ecx, %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	leaq	(%rax,%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
	addq	%rax, -32(%rbp)
	jmp	.L10
.L9:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	subl	%ecx, %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rax, -32(%rbp)
.L10:
	addl	$1, -36(%rbp)
.L6:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jle	.L11
	jmp	.L8
.L15:
	nop
.L8:
	movq	-16(%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, -24(%rbp)
	movq	-24(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
.L4:
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	nikou
	.type	nikou, @function
nikou:
.LFB1:
	.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	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L17
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L17:
	cmpl	$0, -24(%rbp)
	jne	.L19
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L19:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L20
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L20:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	nikou
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	nikou
	leaq	(%rbx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-24(%rbp), %edx
	movslq	%edx, %rcx
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$2001, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	c(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	done(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$2001, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	c(%rip), %rax
	movq	(%rdx,%rax), %rax
.L18:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nikou, .-nikou
	.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:
