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 <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))

#define LIMIT 10000
int divisor[LIMIT+10],md;
void maked(ll n){md=max(md,n);n=min(LIMIT,n);divisor[0]=-1;divisor[1]=1;ll i=2;for(;i*i<=n;i++)if(!divisor[i]){divisor[i]=i;for(ll j=i*i;j<=n;j+=i)if(!divisor[j])divisor[j]=i;}for(;i<=n;i++)if(!divisor[i])divisor[i]=i;}

ll n;
ll d[1010];
int main(){
	maked(2000);
	scanf("%lld",&n);
	rep(i,2,n+1){
		ll t=i;
		while(t!=1){
			d[divisor[t]]++;
			t/=divisor[t];
		}
	}
	ll ans=1;
	rep(i,2,n+1)ans=ans*(d[i]+1)%1000000007;
	printf("%lld\n",ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	divisor
	.bss
	.align 32
	.type	divisor, @object
	.size	divisor, 40040
divisor:
	.zero	40040
	.globl	md
	.align 4
	.type	md, @object
	.size	md, 4
md:
	.zero	4
	.text
	.globl	maked
	.type	maked, @function
maked:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	md(%rip), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movl	%eax, md(%rip)
	movq	-24(%rbp), %rax
	movl	$10000, %edx
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	movq	%rax, -24(%rbp)
	movl	$-1, divisor(%rip)
	movl	$1, 4+divisor(%rip)
	movq	$2, -16(%rbp)
	jmp	.L2
.L7:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L3
	movq	-16(%rbp), %rax
	movl	%eax, %ecx
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, -8(%rbp)
	jmp	.L4
.L6:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L5
	movq	-16(%rbp), %rax
	movl	%eax, %ecx
	movq	-8(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L5:
	movq	-16(%rbp), %rax
	addq	%rax, -8(%rbp)
.L4:
	movq	-8(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jle	.L6
.L3:
	addq	$1, -16(%rbp)
.L2:
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L7
	jmp	.L8
.L10:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movq	-16(%rbp), %rax
	movl	%eax, %ecx
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L9:
	addq	$1, -16(%rbp)
.L8:
	movq	-16(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jle	.L10
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	maked, .-maked
	.globl	n
	.bss
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 8080
d:
	.zero	8080
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$2000, %edi
	call	maked
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$2, -32(%rbp)
	jmp	.L12
.L15:
	movq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
	jmp	.L13
.L14:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	d(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	leaq	1(%rdx), %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movq	-24(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movq	-24(%rbp), %rax
	cqto
	idivq	%rsi
	movq	%rax, -24(%rbp)
.L13:
	cmpq	$1, -24(%rbp)
	jne	.L14
	addq	$1, -32(%rbp)
.L12:
	movq	n(%rip), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L15
	movq	$1, -16(%rbp)
	movq	$2, -8(%rbp)
	jmp	.L16
.L17:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	$1, %rax
	imulq	-16(%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, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L16:
	movq	n(%rip), %rax
	cmpq	%rax, -8(%rbp)
	jle	.L17
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	maked
	.type	maked, @function
maked:
.LFB35:
	.cfi_startproc
	endbr64
	movslq	md(%rip), %rax
	movl	$10000, %esi
	cmpq	%rdi, %rax
	cmovl	%rdi, %rax
	cmpq	%rsi, %rdi
	cmovle	%rdi, %rsi
	movl	%eax, md(%rip)
	movq	.LC0(%rip), %rax
	movq	%rax, divisor(%rip)
	movl	$2, %eax
	cmpq	$3, %rdi
	jle	.L2
	movl	$4, %edx
	leaq	divisor(%rip), %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rax
	movq	%rax, %rdx
	imulq	%rax, %rdx
	cmpq	%rsi, %rdx
	jg	.L2
.L6:
	movl	(%rcx,%rax,4), %r9d
	testl	%r9d, %r9d
	jne	.L3
	movl	%eax, (%rcx,%rax,4)
	movl	%eax, %edi
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rcx,%rdx,4), %r8d
	testl	%r8d, %r8d
	jne	.L4
	movl	%edi, (%rcx,%rdx,4)
.L4:
	addq	%rax, %rdx
	cmpq	%rdx, %rsi
	jge	.L5
	addq	$1, %rax
	movq	%rax, %rdx
	imulq	%rax, %rdx
	cmpq	%rsi, %rdx
	jle	.L6
.L2:
	cmpq	%rax, %rsi
	jl	.L1
	addq	$1, %rsi
	leaq	divisor(%rip), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rcx,%rax,4), %edx
	testl	%edx, %edx
	jne	.L8
	movl	%eax, (%rcx,%rax,4)
.L8:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L9
.L1:
	ret
	.cfi_endproc
.LFE35:
	.size	maked, .-maked
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movl	$2000, %edi
	call	maked
	leaq	n(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	n(%rip), %r10
	cmpq	$1, %r10
	jle	.L20
	leaq	1(%r10), %r9
	movl	$2, %r8d
	leaq	divisor(%rip), %rdi
	leaq	d(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L17:
	movslq	(%rdi,%rax,4), %rcx
	cqto
	idivq	%rcx
	addq	$1, (%rsi,%rcx,8)
	cmpq	$1, %rax
	jne	.L17
	addq	$1, %r8
	cmpq	%r9, %r8
	jne	.L18
	leaq	16+d(%rip), %rsi
	movabsq	$-8543223828751151131, %rdi
	leaq	-8(%rsi), %rdx
	leaq	(%rdx,%r10,8), %r8
	.p2align 4,,10
	.p2align 3
.L19:
	movq	(%rsi), %rdx
	addq	$8, %rsi
	leaq	1(%rdx), %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	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
	cmpq	%rsi, %r8
	jne	.L19
.L16:
	movq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L16
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 8080
d:
	.zero	8080
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	md
	.align 4
	.type	md, @object
	.size	md, 4
md:
	.zero	4
	.globl	divisor
	.align 32
	.type	divisor, @object
	.size	divisor, 40040
divisor:
	.zero	40040
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1
	.long	1
	.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	maked
	.type	maked, @function
maked:
.LFB35:
	.cfi_startproc
	endbr64
	movslq	md(%rip), %rax
	movl	$10000, %esi
	cmpq	%rdi, %rax
	cmovl	%rdi, %rax
	cmpq	%rsi, %rdi
	cmovle	%rdi, %rsi
	movl	%eax, md(%rip)
	movq	.LC0(%rip), %rax
	movq	%rax, divisor(%rip)
	movl	$2, %eax
	cmpq	$3, %rdi
	jle	.L2
	movl	$4, %edx
	leaq	divisor(%rip), %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rax
	movq	%rax, %rdx
	imulq	%rax, %rdx
	cmpq	%rsi, %rdx
	jg	.L2
.L6:
	movl	(%rcx,%rax,4), %r9d
	testl	%r9d, %r9d
	jne	.L3
	movl	%eax, (%rcx,%rax,4)
	movl	%eax, %edi
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rcx,%rdx,4), %r8d
	testl	%r8d, %r8d
	jne	.L4
	movl	%edi, (%rcx,%rdx,4)
.L4:
	addq	%rax, %rdx
	cmpq	%rdx, %rsi
	jge	.L5
	addq	$1, %rax
	movq	%rax, %rdx
	imulq	%rax, %rdx
	cmpq	%rsi, %rdx
	jle	.L6
.L2:
	cmpq	%rax, %rsi
	jl	.L1
	addq	$1, %rsi
	leaq	divisor(%rip), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rcx,%rax,4), %edx
	testl	%edx, %edx
	jne	.L8
	movl	%eax, (%rcx,%rax,4)
.L8:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L9
.L1:
	ret
	.cfi_endproc
.LFE35:
	.size	maked, .-maked
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movl	$2000, %edi
	call	maked
	leaq	n(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	n(%rip), %r10
	cmpq	$1, %r10
	jle	.L20
	leaq	1(%r10), %r9
	movl	$2, %r8d
	leaq	divisor(%rip), %rdi
	leaq	d(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L17:
	movslq	(%rdi,%rax,4), %rcx
	cqto
	idivq	%rcx
	addq	$1, (%rsi,%rcx,8)
	cmpq	$1, %rax
	jne	.L17
	addq	$1, %r8
	cmpq	%r9, %r8
	jne	.L18
	leaq	16+d(%rip), %rsi
	movabsq	$-8543223828751151131, %rdi
	leaq	-8(%rsi), %rdx
	leaq	(%rdx,%r10,8), %r8
	.p2align 4,,10
	.p2align 3
.L19:
	movq	(%rsi), %rdx
	addq	$8, %rsi
	leaq	1(%rdx), %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	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
	cmpq	%rsi, %r8
	jne	.L19
.L16:
	movq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L16
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 8080
d:
	.zero	8080
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	md
	.align 4
	.type	md, @object
	.size	md, 4
md:
	.zero	4
	.globl	divisor
	.align 32
	.type	divisor, @object
	.size	divisor, 40040
divisor:
	.zero	40040
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1
	.long	1
	.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 <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))

#define LIMIT 10000
int divisor[LIMIT+10],md;
void maked(ll n){md=max(md,n);n=min(LIMIT,n);divisor[0]=-1;divisor[1]=1;ll i=2;for(;i*i<=n;i++)if(!divisor[i]){divisor[i]=i;for(ll j=i*i;j<=n;j+=i)if(!divisor[j])divisor[j]=i;}for(;i<=n;i++)if(!divisor[i])divisor[i]=i;}

ll n;
ll d[1010];
int main(){
	maked(2000);
	scanf("%lld",&n);
	rep(i,2,n+1){
		ll t=i;
		while(t!=1){
			d[divisor[t]]++;
			t/=divisor[t];
		}
	}
	ll ans=1;
	rep(i,2,n+1)ans=ans*(d[i]+1)%1000000007;
	printf("%lld\n",ans);
}
3

4

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 <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))

#define LIMIT 10000
int divisor[LIMIT+10],md;
void maked(ll n){md=max(md,n);n=min(LIMIT,n);divisor[0]=-1;divisor[1]=1;ll i=2;for(;i*i<=n;i++)if(!divisor[i]){divisor[i]=i;for(ll j=i*i;j<=n;j+=i)if(!divisor[j])divisor[j]=i;}for(;i<=n;i++)if(!divisor[i])divisor[i]=i;}

ll n;
ll d[1010];
int main(){
	maked(2000);
	scanf("%lld",&n);
	rep(i,2,n+1){
		ll t=i;
		while(t!=1){
			d[divisor[t]]++;
			t/=divisor[t];
		}
	}
	ll ans=1;
	rep(i,2,n+1)ans=ans*(d[i]+1)%1000000007;
	printf("%lld\n",ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	divisor
	.bss
	.align 32
	.type	divisor, @object
	.size	divisor, 40040
divisor:
	.zero	40040
	.globl	md
	.align 4
	.type	md, @object
	.size	md, 4
md:
	.zero	4
	.text
	.globl	maked
	.type	maked, @function
maked:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	md(%rip), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movl	%eax, md(%rip)
	movq	-24(%rbp), %rax
	movl	$10000, %edx
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	movq	%rax, -24(%rbp)
	movl	$-1, divisor(%rip)
	movl	$1, 4+divisor(%rip)
	movq	$2, -16(%rbp)
	jmp	.L2
.L7:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L3
	movq	-16(%rbp), %rax
	movl	%eax, %ecx
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, -8(%rbp)
	jmp	.L4
.L6:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L5
	movq	-16(%rbp), %rax
	movl	%eax, %ecx
	movq	-8(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L5:
	movq	-16(%rbp), %rax
	addq	%rax, -8(%rbp)
.L4:
	movq	-8(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jle	.L6
.L3:
	addq	$1, -16(%rbp)
.L2:
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L7
	jmp	.L8
.L10:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movq	-16(%rbp), %rax
	movl	%eax, %ecx
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L9:
	addq	$1, -16(%rbp)
.L8:
	movq	-16(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jle	.L10
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	maked, .-maked
	.globl	n
	.bss
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 8080
d:
	.zero	8080
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$2000, %edi
	call	maked
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$2, -32(%rbp)
	jmp	.L12
.L15:
	movq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
	jmp	.L13
.L14:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	d(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	leaq	1(%rdx), %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movq	-24(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movq	-24(%rbp), %rax
	cqto
	idivq	%rsi
	movq	%rax, -24(%rbp)
.L13:
	cmpq	$1, -24(%rbp)
	jne	.L14
	addq	$1, -32(%rbp)
.L12:
	movq	n(%rip), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L15
	movq	$1, -16(%rbp)
	movq	$2, -8(%rbp)
	jmp	.L16
.L17:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	$1, %rax
	imulq	-16(%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, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L16:
	movq	n(%rip), %rax
	cmpq	%rax, -8(%rbp)
	jle	.L17
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	divisor
	.bss
	.align 32
	.type	divisor, @object
	.size	divisor, 40040
divisor:
	.zero	40040
	.globl	md
	.align 4
	.type	md, @object
	.size	md, 4
md:
	.zero	4
	.text
	.globl	maked
	.type	maked, @function
maked:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	md(%rip), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movl	%eax, md(%rip)
	movq	-24(%rbp), %rax
	movl	$10000, %edx
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	movq	%rax, -24(%rbp)
	movl	$-1, divisor(%rip)
	movl	$1, 4+divisor(%rip)
	movq	$2, -16(%rbp)
	jmp	.L2
.L7:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L3
	movq	-16(%rbp), %rax
	movl	%eax, %ecx
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, -8(%rbp)
	jmp	.L4
.L6:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L5
	movq	-16(%rbp), %rax
	movl	%eax, %ecx
	movq	-8(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L5:
	movq	-16(%rbp), %rax
	addq	%rax, -8(%rbp)
.L4:
	movq	-8(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jle	.L6
.L3:
	addq	$1, -16(%rbp)
.L2:
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L7
	jmp	.L8
.L10:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movq	-16(%rbp), %rax
	movl	%eax, %ecx
	movq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L9:
	addq	$1, -16(%rbp)
.L8:
	movq	-16(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jle	.L10
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	maked, .-maked
	.globl	n
	.bss
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 8080
d:
	.zero	8080
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$2000, %edi
	call	maked
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$2, -32(%rbp)
	jmp	.L12
.L15:
	movq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
	jmp	.L13
.L14:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	d(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	leaq	1(%rdx), %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movq	-24(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	divisor(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movq	-24(%rbp), %rax
	cqto
	idivq	%rsi
	movq	%rax, -24(%rbp)
.L13:
	cmpq	$1, -24(%rbp)
	jne	.L14
	addq	$1, -32(%rbp)
.L12:
	movq	n(%rip), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L15
	movq	$1, -16(%rbp)
	movq	$2, -8(%rbp)
	jmp	.L16
.L17:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	$1, %rax
	imulq	-16(%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, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L16:
	movq	n(%rip), %rax
	cmpq	%rax, -8(%rbp)
	jle	.L17
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
