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>
#define X 1000000007

int main(void){
	unsigned long long int si[1024]={0},p[1024]={0},in,i,j,r=1,mem;
	scanf("%llu",&in);
	for(i = 2;i <= 1023;i++){
		if(p[i] == 0){
			for(j = 2*i;j <= 1023;j+=i){p[j] = 1;}
		}
	}
	for(i = 2;i <= in;i++){
		mem = i;
		for(j = 2;j <= 1023;j++){
			if(p[j] == 1){continue;}
			while(!(mem % j)){si[j]++;mem/=j;}
		}
	}
	for(i = 2;i <= 1023;i++){
		r*=(si[i]+1);r%=X;
	}
	printf("%llu\n",r);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%llu"
.LC1:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-16384(%rsp), %r11
	.cfi_def_cfa 11, 16408
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 16448
	movl	$1024, %ecx
	movq	%fs:40, %rax
	movq	%rax, 16408(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	leaq	8208(%rsp), %rbx
	rep stosq
	movl	$1024, %ecx
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	$4, %ecx
	movl	$2, %edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rdx
	addq	$2, %rcx
	cmpq	$1024, %rdx
	je	.L26
.L3:
	cmpq	$0, (%rbx,%rdx,8)
	jne	.L5
	cmpq	$1023, %rcx
	ja	.L5
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movq	$1, (%rbx,%rax,8)
	addq	%rdx, %rax
	cmpq	$1023, %rax
	jbe	.L6
	jmp	.L5
.L26:
	movq	8(%rsp), %r10
	movl	$2, %r9d
	cmpq	$1, %r10
	jbe	.L12
.L7:
	movq	%r9, %rsi
	movl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	cmpq	$1, (%rbx,%rcx,8)
	je	.L9
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	jne	.L9
	movq	0(%rbp,%rcx,8), %rax
	leaq	1(%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rsi, %rax
	xorl	%edx, %edx
	movq	%rdi, %r8
	addq	$1, %rdi
	divq	%rcx
	xorl	%edx, %edx
	movq	%rax, %rsi
	divq	%rcx
	testq	%rdx, %rdx
	je	.L10
	movq	%r8, 0(%rbp,%rcx,8)
.L9:
	addq	$1, %rcx
	cmpq	$1024, %rcx
	jne	.L11
	addq	$1, %r9
	cmpq	%r9, %r10
	jnb	.L7
.L12:
	leaq	32(%rsp), %rsi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rsi), %rax
	addq	$8, %rsi
	leaq	1(%rax), %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	mulq	%rdi
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %rbx
	jne	.L8
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	16408(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$16424, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"%llu"
.LC1:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-16384(%rsp), %r11
	.cfi_def_cfa 11, 16408
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 16448
	movl	$1024, %ecx
	movq	%fs:40, %rax
	movq	%rax, 16408(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	leaq	8208(%rsp), %rbx
	rep stosq
	movl	$1024, %ecx
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	$4, %ecx
	movl	$2, %edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rdx
	addq	$2, %rcx
	cmpq	$1024, %rdx
	je	.L26
.L3:
	cmpq	$0, (%rbx,%rdx,8)
	jne	.L5
	cmpq	$1023, %rcx
	ja	.L5
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movq	$1, (%rbx,%rax,8)
	addq	%rdx, %rax
	cmpq	$1023, %rax
	jbe	.L6
	jmp	.L5
.L26:
	movq	8(%rsp), %r10
	movl	$2, %r9d
	cmpq	$1, %r10
	jbe	.L12
.L7:
	movq	%r9, %rsi
	movl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	cmpq	$1, (%rbx,%rcx,8)
	je	.L9
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	jne	.L9
	movq	0(%rbp,%rcx,8), %rax
	leaq	1(%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rsi, %rax
	xorl	%edx, %edx
	movq	%rdi, %r8
	addq	$1, %rdi
	divq	%rcx
	xorl	%edx, %edx
	movq	%rax, %rsi
	divq	%rcx
	testq	%rdx, %rdx
	je	.L10
	movq	%r8, 0(%rbp,%rcx,8)
.L9:
	addq	$1, %rcx
	cmpq	$1024, %rcx
	jne	.L11
	addq	$1, %r9
	cmpq	%r9, %r10
	jnb	.L7
.L12:
	leaq	32(%rsp), %rsi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rsi), %rax
	addq	$8, %rsi
	leaq	1(%rax), %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	mulq	%rdi
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %rbx
	jne	.L8
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	16408(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$16424, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"%llu"
.LC1:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-16384(%rsp), %r11
	.cfi_def_cfa 11, 16408
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 16448
	movl	$1024, %ecx
	movq	%fs:40, %rax
	movq	%rax, 16408(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	leaq	8208(%rsp), %rbx
	rep stosq
	movl	$1024, %ecx
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	$4, %ecx
	movl	$2, %edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rdx
	addq	$2, %rcx
	cmpq	$1024, %rdx
	je	.L26
.L3:
	cmpq	$0, (%rbx,%rdx,8)
	jne	.L5
	cmpq	$1023, %rcx
	ja	.L5
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movq	$1, (%rbx,%rax,8)
	addq	%rdx, %rax
	cmpq	$1023, %rax
	jbe	.L6
	jmp	.L5
.L26:
	movq	8(%rsp), %r10
	movl	$2, %r9d
	cmpq	$1, %r10
	jbe	.L12
.L7:
	movq	%r9, %rsi
	movl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	cmpq	$1, (%rbx,%rcx,8)
	je	.L9
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	jne	.L9
	movq	0(%rbp,%rcx,8), %rax
	leaq	1(%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rsi, %rax
	xorl	%edx, %edx
	movq	%rdi, %r8
	addq	$1, %rdi
	divq	%rcx
	xorl	%edx, %edx
	movq	%rax, %rsi
	divq	%rcx
	testq	%rdx, %rdx
	je	.L10
	movq	%r8, 0(%rbp,%rcx,8)
.L9:
	addq	$1, %rcx
	cmpq	$1024, %rcx
	jne	.L11
	addq	$1, %r9
	cmpq	%r9, %r10
	jnb	.L7
.L12:
	leaq	32(%rsp), %rsi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rsi), %rax
	addq	$8, %rsi
	leaq	1(%rax), %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	mulq	%rdi
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %rbx
	jne	.L8
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	16408(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$16424, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>
#define X 1000000007

int main(void){
	unsigned long long int si[1024]={0},p[1024]={0},in,i,j,r=1,mem;
	scanf("%llu",&in);
	for(i = 2;i <= 1023;i++){
		if(p[i] == 0){
			for(j = 2*i;j <= 1023;j+=i){p[j] = 1;}
		}
	}
	for(i = 2;i <= in;i++){
		mem = i;
		for(j = 2;j <= 1023;j++){
			if(p[j] == 1){continue;}
			while(!(mem % j)){si[j]++;mem/=j;}
		}
	}
	for(i = 2;i <= 1023;i++){
		r*=(si[i]+1);r%=X;
	}
	printf("%llu\n",r);
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#define X 1000000007

int main(void){
	unsigned long long int si[1024]={0},p[1024]={0},in,i,j,r=1,mem;
	scanf("%llu",&in);
	for(i = 2;i <= 1023;i++){
		if(p[i] == 0){
			for(j = 2*i;j <= 1023;j+=i){p[j] = 1;}
		}
	}
	for(i = 2;i <= in;i++){
		mem = i;
		for(j = 2;j <= 1023;j++){
			if(p[j] == 1){continue;}
			while(!(mem % j)){si[j]++;mem/=j;}
		}
	}
	for(i = 2;i <= 1023;i++){
		r*=(si[i]+1);r%=X;
	}
	printf("%llu\n",r);
	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:

3

4

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>
#define X 1000000007

int main(void){
	unsigned long long int si[1024]={0},p[1024]={0},in,i,j,r=1,mem;
	scanf("%llu",&in);
	for(i = 2;i <= 1023;i++){
		if(p[i] == 0){
			for(j = 2*i;j <= 1023;j+=i){p[j] = 1;}
		}
	}
	for(i = 2;i <= in;i++){
		mem = i;
		for(j = 2;j <= 1023;j++){
			if(p[j] == 1){continue;}
			while(!(mem % j)){si[j]++;mem/=j;}
		}
	}
	for(i = 2;i <= 1023;i++){
		r*=(si[i]+1);r%=X;
	}
	printf("%llu\n",r);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%llu"
.LC1:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-16384(%rsp), %r11
	.cfi_def_cfa 11, 16408
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 16448
	movl	$1024, %ecx
	movq	%fs:40, %rax
	movq	%rax, 16408(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	leaq	8208(%rsp), %rbx
	rep stosq
	movl	$1024, %ecx
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	$4, %ecx
	movl	$2, %edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rdx
	addq	$2, %rcx
	cmpq	$1024, %rdx
	je	.L26
.L3:
	cmpq	$0, (%rbx,%rdx,8)
	jne	.L5
	cmpq	$1023, %rcx
	ja	.L5
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movq	$1, (%rbx,%rax,8)
	addq	%rdx, %rax
	cmpq	$1023, %rax
	jbe	.L6
	jmp	.L5
.L26:
	movq	8(%rsp), %r10
	movl	$2, %r9d
	cmpq	$1, %r10
	jbe	.L12
.L7:
	movq	%r9, %rsi
	movl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	cmpq	$1, (%rbx,%rcx,8)
	je	.L9
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	jne	.L9
	movq	0(%rbp,%rcx,8), %rax
	leaq	1(%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rsi, %rax
	xorl	%edx, %edx
	movq	%rdi, %r8
	addq	$1, %rdi
	divq	%rcx
	xorl	%edx, %edx
	movq	%rax, %rsi
	divq	%rcx
	testq	%rdx, %rdx
	je	.L10
	movq	%r8, 0(%rbp,%rcx,8)
.L9:
	addq	$1, %rcx
	cmpq	$1024, %rcx
	jne	.L11
	addq	$1, %r9
	cmpq	%r9, %r10
	jnb	.L7
.L12:
	leaq	32(%rsp), %rsi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rsi), %rax
	addq	$8, %rsi
	leaq	1(%rax), %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	mulq	%rdi
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %rbx
	jne	.L8
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	16408(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$16424, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"%llu"
.LC1:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-16384(%rsp), %r11
	.cfi_def_cfa 11, 16408
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 16448
	movl	$1024, %ecx
	movq	%fs:40, %rax
	movq	%rax, 16408(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	leaq	8208(%rsp), %rbx
	rep stosq
	movl	$1024, %ecx
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	$4, %ecx
	movl	$2, %edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rdx
	addq	$2, %rcx
	cmpq	$1024, %rdx
	je	.L26
.L3:
	cmpq	$0, (%rbx,%rdx,8)
	jne	.L5
	cmpq	$1023, %rcx
	ja	.L5
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movq	$1, (%rbx,%rax,8)
	addq	%rdx, %rax
	cmpq	$1023, %rax
	jbe	.L6
	jmp	.L5
.L26:
	movq	8(%rsp), %r10
	movl	$2, %r9d
	cmpq	$1, %r10
	jbe	.L12
.L7:
	movq	%r9, %rsi
	movl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	cmpq	$1, (%rbx,%rcx,8)
	je	.L9
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	jne	.L9
	movq	0(%rbp,%rcx,8), %rax
	leaq	1(%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rsi, %rax
	xorl	%edx, %edx
	movq	%rdi, %r8
	addq	$1, %rdi
	divq	%rcx
	xorl	%edx, %edx
	movq	%rax, %rsi
	divq	%rcx
	testq	%rdx, %rdx
	je	.L10
	movq	%r8, 0(%rbp,%rcx,8)
.L9:
	addq	$1, %rcx
	cmpq	$1024, %rcx
	jne	.L11
	addq	$1, %r9
	cmpq	%r9, %r10
	jnb	.L7
.L12:
	leaq	32(%rsp), %rsi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rsi), %rax
	addq	$8, %rsi
	leaq	1(%rax), %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	mulq	%rdi
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %rbx
	jne	.L8
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	16408(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$16424, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```