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<string.h>
#include<math.h>

#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ

#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))

#define MOD 1000000007 

int main(void){
    int N;
    scanf("%d",&N);

    int* prime_factor;
    NEW(prime_factor,N+1);
    for(int i=1;i<=N;i++) prime_factor[i]=0;

    //素因数をかぞえあげる
    for(int i=1;i<=N;i++){
        int tmp=i;
        int q=2;
        while(tmp!=1){
            if(tmp%q==0){
                prime_factor[q]++;
                tmp/=q;
            }
            else q++;
        }
    }

    long ans=1;
    for(int i=1;i<=N;i++){
        ans=(ans*(prime_factor[i]+1))%MOD;
    }
    printf("%ld\n",ans);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"not enough memory"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -16(%rbp)
	cmpq	$0, -16(%rbp)
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, %edi
	call	exit@PLT
.L2:
	movl	$1, -44(%rbp)
	jmp	.L3
.L4:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	addl	$1, -44(%rbp)
.L3:
	movl	-48(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L4
	movl	$1, -40(%rbp)
	jmp	.L5
.L9:
	movl	-40(%rbp), %eax
	movl	%eax, -36(%rbp)
	movl	$2, -32(%rbp)
	jmp	.L6
.L8:
	movl	-36(%rbp), %eax
	cltd
	idivl	-32(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	movl	-36(%rbp), %eax
	cltd
	idivl	-32(%rbp)
	movl	%eax, -36(%rbp)
	jmp	.L6
.L7:
	addl	$1, -32(%rbp)
.L6:
	cmpl	$1, -36(%rbp)
	jne	.L8
	addl	$1, -40(%rbp)
.L5:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L9
	movq	$1, -24(%rbp)
	movl	$1, -28(%rbp)
	jmp	.L10
.L11:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	$1, %eax
	cltq
	imulq	-24(%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)
	addl	$1, -28(%rbp)
.L10:
	movl	-48(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L11
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"not enough memory"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	leal	1(%rbp), %edi
	movslq	%edi, %rdi
	salq	$2, %rdi
	call	malloc@PLT
	testq	%rax, %rax
	je	.L2
	movl	$1, %edx
	testl	%ebp, %ebp
	jle	.L4
	leaq	4(%rax), %r8
	movl	%ebp, %edx
	xorl	%esi, %esi
	movq	%rax, %rbx
	movq	%r8, %rdi
	salq	$2, %rdx
	leal	-1(%rbp), %r12d
	call	memset@PLT
	movq	%rax, %r8
	movl	$1, %eax
	leal	1(%rax), %edi
	cmpl	%eax, %ebp
	je	.L19
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%edi, %esi
	movl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L6
	movslq	%ecx, %rdx
	movl	%eax, %esi
	addl	$1, (%rbx,%rdx,4)
	cmpl	$1, %eax
	jne	.L9
	movl	%edi, %eax
.L21:
	leal	1(%rax), %edi
	cmpl	%eax, %ebp
	jne	.L12
.L19:
	movq	%r8, %rsi
	movl	$1, %edx
	leaq	8(%rbx,%r12,4), %r8
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rsi), %eax
	addq	$4, %rsi
	leal	1(%rax), %ecx
	movslq	%ecx, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%r8, %rsi
	jne	.L10
.L4:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addl	$1, %ecx
	cmpl	$1, %esi
	jne	.L9
	movl	%edi, %eax
	jmp	.L21
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movl	$1, %edi
	call	exit@PLT
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"not enough memory"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	leal	1(%rbp), %edi
	movslq	%edi, %rdi
	salq	$2, %rdi
	call	malloc@PLT
	testq	%rax, %rax
	je	.L2
	movl	$1, %edx
	testl	%ebp, %ebp
	jle	.L4
	leaq	4(%rax), %r8
	movl	%ebp, %edx
	xorl	%esi, %esi
	movq	%rax, %rbx
	movq	%r8, %rdi
	salq	$2, %rdx
	leal	-1(%rbp), %r12d
	call	memset@PLT
	movq	%rax, %r8
	movl	$1, %eax
	leal	1(%rax), %edi
	cmpl	%eax, %ebp
	je	.L19
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%edi, %esi
	movl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L6
	movslq	%ecx, %rdx
	movl	%eax, %esi
	addl	$1, (%rbx,%rdx,4)
	cmpl	$1, %eax
	jne	.L9
	movl	%edi, %eax
.L21:
	leal	1(%rax), %edi
	cmpl	%eax, %ebp
	jne	.L12
.L19:
	movq	%r8, %rsi
	movl	$1, %edx
	leaq	8(%rbx,%r12,4), %r8
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rsi), %eax
	addq	$4, %rsi
	leal	1(%rax), %ecx
	movslq	%ecx, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%r8, %rsi
	jne	.L10
.L4:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addl	$1, %ecx
	cmpl	$1, %esi
	jne	.L9
	movl	%edi, %eax
	jmp	.L21
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movl	$1, %edi
	call	exit@PLT
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>

#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ

#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))

#define MOD 1000000007 

int main(void){
    int N;
    scanf("%d",&N);

    int* prime_factor;
    NEW(prime_factor,N+1);
    for(int i=1;i<=N;i++) prime_factor[i]=0;

    //素因数をかぞえあげる
    for(int i=1;i<=N;i++){
        int tmp=i;
        int q=2;
        while(tmp!=1){
            if(tmp%q==0){
                prime_factor[q]++;
                tmp/=q;
            }
            else q++;
        }
    }

    long ans=1;
    for(int i=1;i<=N;i++){
        ans=(ans*(prime_factor[i]+1))%MOD;
    }
    printf("%ld\n",ans);

    return 0;
}
8
 0
 15
 18
 2
 4
 9
 5
 10
 7

96
 1
 4032
 14688
 2
 8
 160
 16
 270
 60

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<string.h>
#include<math.h>

#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ

#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))

#define MOD 1000000007 

int main(void){
    int N;
    scanf("%d",&N);

    int* prime_factor;
    NEW(prime_factor,N+1);
    for(int i=1;i<=N;i++) prime_factor[i]=0;

    //素因数をかぞえあげる
    for(int i=1;i<=N;i++){
        int tmp=i;
        int q=2;
        while(tmp!=1){
            if(tmp%q==0){
                prime_factor[q]++;
                tmp/=q;
            }
            else q++;
        }
    }

    long ans=1;
    for(int i=1;i<=N;i++){
        ans=(ans*(prime_factor[i]+1))%MOD;
    }
    printf("%ld\n",ans);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"not enough memory"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -16(%rbp)
	cmpq	$0, -16(%rbp)
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, %edi
	call	exit@PLT
.L2:
	movl	$1, -44(%rbp)
	jmp	.L3
.L4:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	addl	$1, -44(%rbp)
.L3:
	movl	-48(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L4
	movl	$1, -40(%rbp)
	jmp	.L5
.L9:
	movl	-40(%rbp), %eax
	movl	%eax, -36(%rbp)
	movl	$2, -32(%rbp)
	jmp	.L6
.L8:
	movl	-36(%rbp), %eax
	cltd
	idivl	-32(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	movl	-36(%rbp), %eax
	cltd
	idivl	-32(%rbp)
	movl	%eax, -36(%rbp)
	jmp	.L6
.L7:
	addl	$1, -32(%rbp)
.L6:
	cmpl	$1, -36(%rbp)
	jne	.L8
	addl	$1, -40(%rbp)
.L5:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L9
	movq	$1, -24(%rbp)
	movl	$1, -28(%rbp)
	jmp	.L10
.L11:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	$1, %eax
	cltq
	imulq	-24(%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)
	addl	$1, -28(%rbp)
.L10:
	movl	-48(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L11
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"not enough memory"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -16(%rbp)
	cmpq	$0, -16(%rbp)
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, %edi
	call	exit@PLT
.L2:
	movl	$1, -44(%rbp)
	jmp	.L3
.L4:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	addl	$1, -44(%rbp)
.L3:
	movl	-48(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L4
	movl	$1, -40(%rbp)
	jmp	.L5
.L9:
	movl	-40(%rbp), %eax
	movl	%eax, -36(%rbp)
	movl	$2, -32(%rbp)
	jmp	.L6
.L8:
	movl	-36(%rbp), %eax
	cltd
	idivl	-32(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	movl	-36(%rbp), %eax
	cltd
	idivl	-32(%rbp)
	movl	%eax, -36(%rbp)
	jmp	.L6
.L7:
	addl	$1, -32(%rbp)
.L6:
	cmpl	$1, -36(%rbp)
	jne	.L8
	addl	$1, -40(%rbp)
.L5:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L9
	movq	$1, -24(%rbp)
	movl	$1, -28(%rbp)
	jmp	.L10
.L11:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	$1, %eax
	cltq
	imulq	-24(%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)
	addl	$1, -28(%rbp)
.L10:
	movl	-48(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L11
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
