Given the following C code and 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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.
Optimized Assembly Code:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```