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>

int main(){
	long long m=1e9+7;
    int n;
	int a[100000];
	scanf("%d",&n);
    for(int i=2;i<=n;i++){
    	int x=i;
        for(int j=2;j<=x;j++){
            while(x%j==0){
                a[j]++;
                x/=j;
            }
        }
    }
    long long res=1;
    for(int i=1;i<=n;i++){
        if(a[i]!=0){
        	res=(res*(a[i]+1))%m;
		}
    }
    printf("%lld",res);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1000000007, -400024(%rbp)
	leaq	-400052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -400048(%rbp)
	jmp	.L2
.L7:
	movl	-400048(%rbp), %eax
	movl	%eax, -400044(%rbp)
	movl	$2, -400040(%rbp)
	jmp	.L3
.L5:
	movl	-400040(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400040(%rbp), %eax
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
	movl	-400044(%rbp), %eax
	cltd
	idivl	-400040(%rbp)
	movl	%eax, -400044(%rbp)
.L4:
	movl	-400044(%rbp), %eax
	cltd
	idivl	-400040(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L5
	addl	$1, -400040(%rbp)
.L3:
	movl	-400040(%rbp), %eax
	cmpl	-400044(%rbp), %eax
	jle	.L4
	addl	$1, -400048(%rbp)
.L2:
	movl	-400052(%rbp), %eax
	cmpl	%eax, -400048(%rbp)
	jle	.L7
	movq	$1, -400032(%rbp)
	movl	$1, -400036(%rbp)
	jmp	.L8
.L10:
	movl	-400036(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L9
	movl	-400036(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	addl	$1, %eax
	cltq
	imulq	-400032(%rbp), %rax
	cqto
	idivq	-400024(%rbp)
	movq	%rdx, -400032(%rbp)
.L9:
	addl	$1, -400036(%rbp)
.L8:
	movl	-400052(%rbp), %eax
	cmpl	%eax, -400036(%rbp)
	jle	.L10
	movq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"%lld"
	.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	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397336
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400064
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	24(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	movl	$2, %r10d
	leal	1(%r11), %ebp
	cmpl	$1, %r11d
	jle	.L30
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbx, %r9
	movl	%r10d, %ecx
	movl	$2, %esi
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	jne	.L7
	movl	(%r9), %eax
	leal	1(%rax), %edi
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ecx, %eax
	movl	%edi, %r8d
	addl	$1, %edi
	cltd
	idivl	%esi
	cltd
	movl	%eax, %ecx
	idivl	%esi
	testl	%edx, %edx
	je	.L4
	movl	%r8d, (%r9)
.L7:
	addl	$1, %esi
	addq	$4, %r9
	cmpl	%ecx, %esi
	jle	.L10
	addl	$1, %r10d
	cmpl	%ebp, %r10d
	jne	.L8
.L11:
	movl	$1, %esi
	movl	$1, %edx
	leaq	16(%rsp), %rdi
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rdi,%rsi,4), %eax
	testl	%eax, %eax
	je	.L13
	leal	1(%rax), %ecx
	movslq	%ecx, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
.L13:
	addq	$1, %rsi
	cmpl	%esi, %r11d
	jge	.L9
.L12:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$400040, %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
.L30:
	.cfi_restore_state
	je	.L11
	movl	$1, %edx
	jmp	.L12
.L31:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.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	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397336
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400064
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	24(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	movl	$2, %r10d
	leal	1(%r11), %ebp
	cmpl	$1, %r11d
	jle	.L30
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbx, %r9
	movl	%r10d, %ecx
	movl	$2, %esi
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	jne	.L7
	movl	(%r9), %eax
	leal	1(%rax), %edi
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ecx, %eax
	movl	%edi, %r8d
	addl	$1, %edi
	cltd
	idivl	%esi
	cltd
	movl	%eax, %ecx
	idivl	%esi
	testl	%edx, %edx
	je	.L4
	movl	%r8d, (%r9)
.L7:
	addl	$1, %esi
	addq	$4, %r9
	cmpl	%ecx, %esi
	jle	.L10
	addl	$1, %r10d
	cmpl	%ebp, %r10d
	jne	.L8
.L11:
	movl	$1, %esi
	movl	$1, %edx
	leaq	16(%rsp), %rdi
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rdi,%rsi,4), %eax
	testl	%eax, %eax
	je	.L13
	leal	1(%rax), %ecx
	movslq	%ecx, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
.L13:
	addq	$1, %rsi
	cmpl	%esi, %r11d
	jge	.L9
.L12:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$400040, %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
.L30:
	.cfi_restore_state
	je	.L11
	movl	$1, %edx
	jmp	.L12
.L31:
	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:

#include<stdio.h>

int main(){
	long long m=1e9+7;
    int n;
	int a[100000];
	scanf("%d",&n);
    for(int i=2;i<=n;i++){
    	int x=i;
        for(int j=2;j<=x;j++){
            while(x%j==0){
                a[j]++;
                x/=j;
            }
        }
    }
    long long res=1;
    for(int i=1;i<=n;i++){
        if(a[i]!=0){
        	res=(res*(a[i]+1))%m;
		}
    }
    printf("%lld",res);
}
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>

int main(){
	long long m=1e9+7;
    int n;
	int a[100000];
	scanf("%d",&n);
    for(int i=2;i<=n;i++){
    	int x=i;
        for(int j=2;j<=x;j++){
            while(x%j==0){
                a[j]++;
                x/=j;
            }
        }
    }
    long long res=1;
    for(int i=1;i<=n;i++){
        if(a[i]!=0){
        	res=(res*(a[i]+1))%m;
		}
    }
    printf("%lld",res);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1000000007, -400024(%rbp)
	leaq	-400052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -400048(%rbp)
	jmp	.L2
.L7:
	movl	-400048(%rbp), %eax
	movl	%eax, -400044(%rbp)
	movl	$2, -400040(%rbp)
	jmp	.L3
.L5:
	movl	-400040(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400040(%rbp), %eax
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
	movl	-400044(%rbp), %eax
	cltd
	idivl	-400040(%rbp)
	movl	%eax, -400044(%rbp)
.L4:
	movl	-400044(%rbp), %eax
	cltd
	idivl	-400040(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L5
	addl	$1, -400040(%rbp)
.L3:
	movl	-400040(%rbp), %eax
	cmpl	-400044(%rbp), %eax
	jle	.L4
	addl	$1, -400048(%rbp)
.L2:
	movl	-400052(%rbp), %eax
	cmpl	%eax, -400048(%rbp)
	jle	.L7
	movq	$1, -400032(%rbp)
	movl	$1, -400036(%rbp)
	jmp	.L8
.L10:
	movl	-400036(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L9
	movl	-400036(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	addl	$1, %eax
	cltq
	imulq	-400032(%rbp), %rax
	cqto
	idivq	-400024(%rbp)
	movq	%rdx, -400032(%rbp)
.L9:
	addl	$1, -400036(%rbp)
.L8:
	movl	-400052(%rbp), %eax
	cmpl	%eax, -400036(%rbp)
	jle	.L10
	movq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"%lld"
	.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1000000007, -400024(%rbp)
	leaq	-400052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -400048(%rbp)
	jmp	.L2
.L7:
	movl	-400048(%rbp), %eax
	movl	%eax, -400044(%rbp)
	movl	$2, -400040(%rbp)
	jmp	.L3
.L5:
	movl	-400040(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400040(%rbp), %eax
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
	movl	-400044(%rbp), %eax
	cltd
	idivl	-400040(%rbp)
	movl	%eax, -400044(%rbp)
.L4:
	movl	-400044(%rbp), %eax
	cltd
	idivl	-400040(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L5
	addl	$1, -400040(%rbp)
.L3:
	movl	-400040(%rbp), %eax
	cmpl	-400044(%rbp), %eax
	jle	.L4
	addl	$1, -400048(%rbp)
.L2:
	movl	-400052(%rbp), %eax
	cmpl	%eax, -400048(%rbp)
	jle	.L7
	movq	$1, -400032(%rbp)
	movl	$1, -400036(%rbp)
	jmp	.L8
.L10:
	movl	-400036(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L9
	movl	-400036(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	addl	$1, %eax
	cltq
	imulq	-400032(%rbp), %rax
	cqto
	idivq	-400024(%rbp)
	movq	%rdx, -400032(%rbp)
.L9:
	addl	$1, -400036(%rbp)
.L8:
	movl	-400052(%rbp), %eax
	cmpl	%eax, -400036(%rbp)
	jle	.L10
	movq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
