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>
long long int a[100002];
int main() {
	long long N;
	scanf("%lld", &N);
	long long int t;
	long long int ans = 1;
	for (long long int i = 2; i <= N; i++)
	{
		t = i;
		for (long long int j = 2; j <= i; j++)
		{
			while (t%j == 0) {
				a[j]++;
				t = t / j;
			}
		}
	}
	for (long long int i = 2; i <= N; i++)
	{
		if (a[i] != 0)
		{
			ans = ans * (a[i] + 1);
			ans = ans % 1000000007;
		}
	}
	printf("%lld\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800016
a:
	.zero	800016
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -40(%rbp)
	movq	$2, -32(%rbp)
	jmp	.L2
.L7:
	movq	-32(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	$2, -24(%rbp)
	jmp	.L3
.L5:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movq	-48(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rax, -48(%rbp)
.L4:
	movq	-48(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L5
	addq	$1, -24(%rbp)
.L3:
	movq	-24(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jle	.L4
	addq	$1, -32(%rbp)
.L2:
	movq	-56(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L7
	movq	$2, -16(%rbp)
	jmp	.L8
.L10:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L9
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %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
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
.L9:
	addq	$1, -16(%rbp)
.L8:
	movq	-56(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jle	.L10
	movq	-40(%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	"%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r11
	cmpq	$1, %r11
	jle	.L13
	leaq	2(%r11), %rbx
	movl	$3, %r10d
	leaq	a(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	-1(%r10), %rcx
	movl	$2, %esi
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L7
	movq	(%r9,%rsi,8), %rax
	leaq	1(%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rcx, %rax
	movq	%rdi, %r8
	addq	$1, %rdi
	cqto
	idivq	%rsi
	cqto
	movq	%rax, %rcx
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L4
	movq	%r8, (%r9,%rsi,8)
.L7:
	addq	$1, %rsi
	cmpq	%r10, %rsi
	jne	.L9
	leaq	1(%rsi), %r10
	cmpq	%rbx, %r10
	jne	.L3
	leaq	16+a(%rip), %rsi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %r8
	leaq	-8(%rsi), %rax
	leaq	(%rax,%r11,8), %rdi
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	.L10
	leaq	1(%rax), %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
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L10:
	addq	$8, %rsi
	cmpq	%rdi, %rsi
	jne	.L11
.L2:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	$1, %edx
	jmp	.L2
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800016
a:
	.zero	800016
	.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	"%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r11
	cmpq	$1, %r11
	jle	.L13
	leaq	2(%r11), %rbx
	movl	$3, %r10d
	leaq	a(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	-1(%r10), %rcx
	movl	$2, %esi
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L7
	movq	(%r9,%rsi,8), %rax
	leaq	1(%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rcx, %rax
	movq	%rdi, %r8
	addq	$1, %rdi
	cqto
	idivq	%rsi
	cqto
	movq	%rax, %rcx
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L4
	movq	%r8, (%r9,%rsi,8)
.L7:
	addq	$1, %rsi
	cmpq	%r10, %rsi
	jne	.L9
	leaq	1(%rsi), %r10
	cmpq	%rbx, %r10
	jne	.L3
	leaq	16+a(%rip), %rsi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %r8
	leaq	-8(%rsi), %rax
	leaq	(%rax,%r11,8), %rdi
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	.L10
	leaq	1(%rax), %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
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L10:
	addq	$8, %rsi
	cmpq	%rdi, %rsi
	jne	.L11
.L2:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	$1, %edx
	jmp	.L2
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800016
a:
	.zero	800016
	.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>
long long int a[100002];
int main() {
	long long N;
	scanf("%lld", &N);
	long long int t;
	long long int ans = 1;
	for (long long int i = 2; i <= N; i++)
	{
		t = i;
		for (long long int j = 2; j <= i; j++)
		{
			while (t%j == 0) {
				a[j]++;
				t = t / j;
			}
		}
	}
	for (long long int i = 2; i <= N; i++)
	{
		if (a[i] != 0)
		{
			ans = ans * (a[i] + 1);
			ans = ans % 1000000007;
		}
	}
	printf("%lld\n", ans);
	return 0;
}
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>
long long int a[100002];
int main() {
	long long N;
	scanf("%lld", &N);
	long long int t;
	long long int ans = 1;
	for (long long int i = 2; i <= N; i++)
	{
		t = i;
		for (long long int j = 2; j <= i; j++)
		{
			while (t%j == 0) {
				a[j]++;
				t = t / j;
			}
		}
	}
	for (long long int i = 2; i <= N; i++)
	{
		if (a[i] != 0)
		{
			ans = ans * (a[i] + 1);
			ans = ans % 1000000007;
		}
	}
	printf("%lld\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800016
a:
	.zero	800016
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -40(%rbp)
	movq	$2, -32(%rbp)
	jmp	.L2
.L7:
	movq	-32(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	$2, -24(%rbp)
	jmp	.L3
.L5:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movq	-48(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rax, -48(%rbp)
.L4:
	movq	-48(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L5
	addq	$1, -24(%rbp)
.L3:
	movq	-24(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jle	.L4
	addq	$1, -32(%rbp)
.L2:
	movq	-56(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L7
	movq	$2, -16(%rbp)
	jmp	.L8
.L10:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L9
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %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
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
.L9:
	addq	$1, -16(%rbp)
.L8:
	movq	-56(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jle	.L10
	movq	-40(%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
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800016
a:
	.zero	800016
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
	.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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -40(%rbp)
	movq	$2, -32(%rbp)
	jmp	.L2
.L7:
	movq	-32(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	$2, -24(%rbp)
	jmp	.L3
.L5:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movq	-48(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rax, -48(%rbp)
.L4:
	movq	-48(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L5
	addq	$1, -24(%rbp)
.L3:
	movq	-24(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jle	.L4
	addq	$1, -32(%rbp)
.L2:
	movq	-56(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L7
	movq	$2, -16(%rbp)
	jmp	.L8
.L10:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L9
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %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
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
.L9:
	addq	$1, -16(%rbp)
.L8:
	movq	-56(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jle	.L10
	movq	-40(%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:
