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 <math.h>

int main(int argc, char const *argv[])
{
	int n, n1=1, n2, a[100], a1, b[100], i1=1, i2, ans=0, flag;
	scanf("%d", &n);
	if (n<10)
	{
		printf("%d\n", 0);
		return 0;
	}
	for (int i = 0; i < 100; ++i)
	{
		b[i]=0;
	}
	a[0]=2;
	for (int i = 3; i <= n; ++i)
	{
		flag=0;
		for (int j = 0; j < i1; ++j)
		{
			if (i%a[j]==0) flag=1;
		}
		if (flag==0)
		{
			a[i1]=i;
			i1++;
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		a1=a[i];
		while (a1<=n)
		{
			b[i]+=n/a1;
			a1*=a[i];
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		for (int j = i+1; j < i1; ++j)
		{
			for (int k = 0; k < i1; ++k)
			{
				if (k!=i && k!=j)
				{
					if (b[i]>=4 && b[j]>=4 && b[k] >=2) ans++;
				}
			}
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		for (int j = 0; j < i1; ++j)
		{
			if (j>7) break;
			if (j!=i)
			{
				if (b[i]>=4 && b[j]>=14) ans++;
			}
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		for (int j = 0; j < i1; ++j)
		{
			if (j>5) break;
			if (j!=i)
			{
				if (b[i]>=2 && b[j]>=24) ans++;
			}
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		if (b[i]>=74) ans++;
	}
	printf("%d\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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	$912, %rsp
	movl	%edi, -900(%rbp)
	movq	%rsi, -912(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -820(%rbp)
	movl	$1, -880(%rbp)
	movl	$0, -876(%rbp)
	leaq	-888(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-888(%rbp), %eax
	cmpl	$9, %eax
	jg	.L2
	movl	$0, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L40
.L2:
	movl	$0, -868(%rbp)
	jmp	.L4
.L5:
	movl	-868(%rbp), %eax
	cltq
	movl	$0, -416(%rbp,%rax,4)
	addl	$1, -868(%rbp)
.L4:
	cmpl	$99, -868(%rbp)
	jle	.L5
	movl	$2, -816(%rbp)
	movl	$3, -864(%rbp)
	jmp	.L6
.L11:
	movl	$0, -872(%rbp)
	movl	$0, -860(%rbp)
	jmp	.L7
.L9:
	movl	-860(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %ecx
	movl	-864(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	$1, -872(%rbp)
.L8:
	addl	$1, -860(%rbp)
.L7:
	movl	-860(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L9
	cmpl	$0, -872(%rbp)
	jne	.L10
	movl	-880(%rbp), %eax
	cltq
	movl	-864(%rbp), %edx
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -880(%rbp)
.L10:
	addl	$1, -864(%rbp)
.L6:
	movl	-888(%rbp), %eax
	cmpl	%eax, -864(%rbp)
	jle	.L11
	movl	$0, -856(%rbp)
	jmp	.L12
.L15:
	movl	-856(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -884(%rbp)
	jmp	.L13
.L14:
	movl	-856(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-888(%rbp), %eax
	cltd
	idivl	-884(%rbp)
	leal	(%rcx,%rax), %edx
	movl	-856(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	movl	-856(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	-884(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -884(%rbp)
.L13:
	movl	-888(%rbp), %eax
	cmpl	%eax, -884(%rbp)
	jle	.L14
	addl	$1, -856(%rbp)
.L12:
	movl	-856(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L15
	movl	$0, -852(%rbp)
	jmp	.L16
.L22:
	movl	-852(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -848(%rbp)
	jmp	.L17
.L21:
	movl	$0, -844(%rbp)
	jmp	.L18
.L20:
	movl	-844(%rbp), %eax
	cmpl	-852(%rbp), %eax
	je	.L19
	movl	-844(%rbp), %eax
	cmpl	-848(%rbp), %eax
	je	.L19
	movl	-852(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L19
	movl	-848(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L19
	movl	-844(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L19
	addl	$1, -876(%rbp)
.L19:
	addl	$1, -844(%rbp)
.L18:
	movl	-844(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L20
	addl	$1, -848(%rbp)
.L17:
	movl	-848(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L21
	addl	$1, -852(%rbp)
.L16:
	movl	-852(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L22
	movl	$0, -840(%rbp)
	jmp	.L23
.L29:
	movl	$0, -836(%rbp)
	jmp	.L24
.L28:
	cmpl	$7, -836(%rbp)
	jg	.L42
	movl	-836(%rbp), %eax
	cmpl	-840(%rbp), %eax
	je	.L27
	movl	-840(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L27
	movl	-836(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L27
	addl	$1, -876(%rbp)
.L27:
	addl	$1, -836(%rbp)
.L24:
	movl	-836(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L28
	jmp	.L26
.L42:
	nop
.L26:
	addl	$1, -840(%rbp)
.L23:
	movl	-840(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L29
	movl	$0, -832(%rbp)
	jmp	.L30
.L36:
	movl	$0, -828(%rbp)
	jmp	.L31
.L35:
	cmpl	$5, -828(%rbp)
	jg	.L43
	movl	-828(%rbp), %eax
	cmpl	-832(%rbp), %eax
	je	.L34
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L34
	movl	-828(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L34
	addl	$1, -876(%rbp)
.L34:
	addl	$1, -828(%rbp)
.L31:
	movl	-828(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L35
	jmp	.L33
.L43:
	nop
.L33:
	addl	$1, -832(%rbp)
.L30:
	movl	-832(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L36
	movl	$0, -824(%rbp)
	jmp	.L37
.L39:
	movl	-824(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L38
	addl	$1, -876(%rbp)
.L38:
	addl	$1, -824(%rbp)
.L37:
	movl	-824(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L39
	movl	-876(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L40:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r8d
	cmpl	$9, %r8d
	jle	.L156
	movl	$50, %ecx
	xorl	%eax, %eax
	leal	1(%r8), %r15d
	xorl	%r11d, %r11d
	movl	$3, %r9d
	leaq	32(%rsp), %r13
	leaq	36(%rsp), %r14
	movl	$2, 32(%rsp)
	leaq	432(%rsp), %rsi
	movl	$1, %r12d
	movq	%rsi, %rdi
	rep stosq
	movl	$1, %ecx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r11d, %eax
	movq	%r13, %rbp
	movq	%r13, %rdi
	xorl	%r10d, %r10d
	leaq	(%r14,%rax,4), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r9d, %eax
	cltd
	idivl	(%rdi)
	testl	%edx, %edx
	cmove	%r12d, %r10d
	addq	$4, %rdi
	cmpq	%rdi, %rbx
	jne	.L6
	testl	%r10d, %r10d
	jne	.L7
	movslq	%ecx, %rax
	addl	$1, %ecx
	movl	%r9d, 32(%rsp,%rax,4)
	leal	-1(%rcx), %r11d
.L7:
	addl	$1, %r9d
	cmpl	%r15d, %r9d
	jne	.L4
	movl	%r11d, %eax
	movq	%rsi, %rbx
	movq	%rsi, %r12
	leaq	(%r14,%rax,4), %r13
	.p2align 4,,10
	.p2align 3
.L11:
	movl	0(%rbp), %r10d
	cmpl	%r10d, %r8d
	jl	.L9
	movl	(%r12), %r9d
	movl	%r10d, %edi
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%r8d, %eax
	cltd
	idivl	%edi
	imull	%r10d, %edi
	addl	%eax, %r9d
	cmpl	%edi, %r8d
	jge	.L10
	movl	%r9d, (%r12)
.L9:
	addq	$4, %rbp
	addq	$4, %r12
	cmpq	%rbp, %r13
	jne	.L11
	cmpl	$1, %ecx
	je	.L75
	leaq	436(%rsp), %r10
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	movl	%ecx, %r9d
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%r12d, %r8d
	addl	$1, %r12d
	movq	%r10, %rbp
	movl	%r12d, %edi
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%eax, %r8d
	je	.L13
	cmpl	%eax, %edi
	je	.L13
	cmpl	$3, -4(%r10)
	jle	.L13
	cmpl	$3, 0(%rbp)
	jle	.L13
	cmpl	$1, (%rsi,%rax,4)
	jle	.L13
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$1, %rax
	cmpq	%rax, %r9
	jne	.L14
	addl	$1, %edi
	addq	$4, %rbp
	cmpl	%edi, %ecx
	jg	.L15
	addq	$4, %r10
	cmpl	%r12d, %r11d
	jne	.L18
.L12:
	movl	452(%rsp), %eax
	movl	448(%rsp), %r12d
	movq	%rsi, %r8
	movl	436(%rsp), %r13d
	movl	440(%rsp), %r14d
	movl	%eax, 8(%rsp)
	movl	444(%rsp), %r15d
	xorl	%eax, %eax
	movl	%r12d, 12(%rsp)
	movl	456(%rsp), %r9d
	movl	460(%rsp), %r10d
	movl	432(%rsp), %ebp
	jmp	.L17
.L157:
	xorl	%edi, %edi
	cmpl	$13, %r9d
	setg	%dil
	addl	%edi, %edx
	cmpl	$7, %ecx
	je	.L21
	cmpl	$7, %eax
	je	.L21
.L62:
	xorl	%edi, %edi
	cmpl	$13, %r10d
	setg	%dil
	addl	%edi, %edx
.L21:
	leal	1(%rax), %edi
	cmpl	%edi, %ecx
	je	.L76
.L158:
	cmpl	$3, 4(%r8)
	jle	.L20
	xorl	%eax, %eax
	cmpl	$13, %ebp
	setg	%al
	addl	%eax, %edx
.L20:
	addq	$4, %r8
	movl	%edi, %eax
.L17:
	cmpl	$1, %ecx
	je	.L21
	cmpl	$1, %eax
	je	.L22
	cmpl	$3, (%r8)
	jle	.L23
	xorl	%edi, %edi
	cmpl	$13, %r13d
	setg	%dil
	addl	%edi, %edx
.L23:
	cmpl	$2, %ecx
	je	.L21
	cmpl	$2, %eax
	je	.L24
.L68:
	cmpl	$3, (%r8)
	jle	.L25
	xorl	%edi, %edi
	cmpl	$13, %r14d
	setg	%dil
	addl	%edi, %edx
.L25:
	cmpl	$3, %ecx
	je	.L21
	cmpl	$3, %eax
	je	.L26
.L67:
	cmpl	$3, (%r8)
	jle	.L27
	xorl	%edi, %edi
	cmpl	$13, %r15d
	setg	%dil
	addl	%edi, %edx
.L27:
	cmpl	$4, %ecx
	je	.L21
	cmpl	$4, %eax
	je	.L28
.L66:
	cmpl	$3, (%r8)
	jle	.L29
	xorl	%edi, %edi
	cmpl	$13, %r12d
	setg	%dil
	addl	%edi, %edx
.L29:
	cmpl	$5, %ecx
	je	.L21
	cmpl	$5, %eax
	je	.L30
.L65:
	cmpl	$3, (%r8)
	jle	.L31
	xorl	%edi, %edi
	cmpl	$13, 8(%rsp)
	setg	%dil
	addl	%edi, %edx
.L31:
	cmpl	$6, %ecx
	je	.L21
	cmpl	$6, %eax
	je	.L32
.L64:
	cmpl	$3, (%r8)
	jg	.L157
.L32:
	cmpl	$7, %ecx
	je	.L21
	cmpl	$7, %eax
	je	.L21
	cmpl	$3, (%r8)
	jg	.L62
	leal	1(%rax), %edi
	cmpl	%edi, %ecx
	jne	.L158
.L76:
	movq	%rsi, %r10
	xorl	%r8d, %r8d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L159:
	movl	(%r10), %r9d
	cmpl	$1, %r9d
	jle	.L36
	xorl	%r12d, %r12d
	cmpl	$23, %ebp
	setg	%r12b
	addl	%r12d, %edx
.L36:
	cmpl	$1, %edi
	je	.L37
	cmpl	$1, %r8d
	je	.L38
.L61:
	cmpl	$1, %r9d
	jle	.L39
	xorl	%r12d, %r12d
	cmpl	$23, %r13d
	setg	%r12b
	addl	%r12d, %edx
.L39:
	cmpl	$2, %edi
	je	.L40
	cmpl	$2, %r8d
	je	.L41
.L60:
	cmpl	$1, %r9d
	jle	.L42
	xorl	%r12d, %r12d
	cmpl	$23, %r14d
	setg	%r12b
	addl	%r12d, %edx
.L42:
	cmpl	$3, %edi
	je	.L40
	cmpl	$3, %r8d
	je	.L43
.L59:
	cmpl	$1, %r9d
	jle	.L44
	xorl	%r12d, %r12d
	cmpl	$23, %r15d
	setg	%r12b
	addl	%r12d, %edx
.L44:
	cmpl	$4, %edi
	je	.L40
	cmpl	$4, %r8d
	je	.L45
	cmpl	$5, %r8d
	setne	%r12b
	cmpl	$1, %r9d
	jle	.L40
.L72:
	xorl	%r9d, %r9d
	cmpl	$23, 12(%rsp)
	setg	%r9b
	addl	%r9d, %edx
	cmpl	$5, %edi
	je	.L40
	testb	%r12b, %r12b
	je	.L40
	cmpl	$23, 8(%rsp)
	jle	.L40
.L70:
	addl	$1, %edx
.L40:
	leal	1(%r8), %r9d
	addq	$4, %r10
	cmpl	%r8d, %eax
	je	.L34
.L69:
	movl	%r9d, %r8d
.L19:
	testl	%r8d, %r8d
	jne	.L159
	cmpl	$1, %edi
	je	.L34
	movl	(%r10), %r9d
	jmp	.L61
.L22:
	cmpl	$2, %ecx
	jne	.L68
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	$3, %ecx
	jne	.L67
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	$4, %ecx
	jne	.L66
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L28:
	cmpl	$5, %ecx
	jne	.L65
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	$6, %ecx
	jne	.L64
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	$2, %edi
	jne	.L60
.L34:
	cmpl	$2, %r11d
	jbe	.L77
	movl	%ecx, %r8d
	addq	$16, %rsi
	movdqa	.LC2(%rip), %xmm2
	pxor	%xmm1, %xmm1
	shrl	$2, %r8d
	subl	$1, %r8d
	salq	$4, %r8
	addq	%rsi, %r8
	jmp	.L50
.L160:
	addq	$16, %rsi
.L50:
	movdqa	(%rbx), %xmm0
	movq	%rsi, %rbx
	pcmpgtd	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%r8, %rsi
	jne	.L160
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %esi
	addl	%esi, %edx
	movl	%ecx, %esi
	andl	$-4, %esi
	andl	$3, %ecx
	je	.L51
.L49:
	movslq	%esi, %rcx
	cmpl	$73, 432(%rsp,%rcx,4)
	jg	.L161
.L52:
	leal	1(%rsi), %ecx
	cmpl	%esi, %eax
	jle	.L51
	movslq	%ecx, %rax
	cmpl	$73, 432(%rsp,%rax,4)
	jle	.L53
	addl	$1, %edx
.L53:
	addl	$2, %esi
	cmpl	%esi, %edi
	jle	.L51
	movslq	%esi, %rsi
	cmpl	$73, 432(%rsp,%rsi,4)
	jle	.L51
	addl	$1, %edx
.L51:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L162
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L41:
	.cfi_restore_state
	cmpl	$3, %edi
	jne	.L59
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L43:
	cmpl	$4, %edi
	je	.L34
	movl	$1, %r12d
	cmpl	$1, %r9d
	jg	.L72
	addq	$4, %r10
	movl	$4, %r9d
	jmp	.L69
.L45:
	cmpl	$5, %edi
	je	.L34
	cmpl	$1, %r9d
	jle	.L37
	cmpl	$23, 8(%rsp)
	jg	.L70
	addq	$4, %r10
	movl	$5, %r9d
	jmp	.L69
.L37:
	leal	1(%r8), %r9d
	addq	$4, %r10
	jmp	.L69
.L161:
	addl	$1, %edx
	jmp	.L52
.L156:
	xorl	%edx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L75:
	xorl	%edx, %edx
	jmp	.L12
.L77:
	xorl	%esi, %esi
	jmp	.L49
.L162:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	73
	.long	73
	.long	73
	.long	73
	.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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r8d
	cmpl	$9, %r8d
	jle	.L156
	movl	$50, %ecx
	xorl	%eax, %eax
	leal	1(%r8), %r15d
	xorl	%r11d, %r11d
	movl	$3, %r9d
	leaq	32(%rsp), %r13
	leaq	36(%rsp), %r14
	movl	$2, 32(%rsp)
	leaq	432(%rsp), %rsi
	movl	$1, %r12d
	movq	%rsi, %rdi
	rep stosq
	movl	$1, %ecx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r11d, %eax
	movq	%r13, %rbp
	movq	%r13, %rdi
	xorl	%r10d, %r10d
	leaq	(%r14,%rax,4), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r9d, %eax
	cltd
	idivl	(%rdi)
	testl	%edx, %edx
	cmove	%r12d, %r10d
	addq	$4, %rdi
	cmpq	%rdi, %rbx
	jne	.L6
	testl	%r10d, %r10d
	jne	.L7
	movslq	%ecx, %rax
	addl	$1, %ecx
	movl	%r9d, 32(%rsp,%rax,4)
	leal	-1(%rcx), %r11d
.L7:
	addl	$1, %r9d
	cmpl	%r15d, %r9d
	jne	.L4
	movl	%r11d, %eax
	movq	%rsi, %rbx
	movq	%rsi, %r12
	leaq	(%r14,%rax,4), %r13
	.p2align 4,,10
	.p2align 3
.L11:
	movl	0(%rbp), %r10d
	cmpl	%r10d, %r8d
	jl	.L9
	movl	(%r12), %r9d
	movl	%r10d, %edi
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%r8d, %eax
	cltd
	idivl	%edi
	imull	%r10d, %edi
	addl	%eax, %r9d
	cmpl	%edi, %r8d
	jge	.L10
	movl	%r9d, (%r12)
.L9:
	addq	$4, %rbp
	addq	$4, %r12
	cmpq	%rbp, %r13
	jne	.L11
	cmpl	$1, %ecx
	je	.L75
	leaq	436(%rsp), %r10
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	movl	%ecx, %r9d
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%r12d, %r8d
	addl	$1, %r12d
	movq	%r10, %rbp
	movl	%r12d, %edi
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%eax, %r8d
	je	.L13
	cmpl	%eax, %edi
	je	.L13
	cmpl	$3, -4(%r10)
	jle	.L13
	cmpl	$3, 0(%rbp)
	jle	.L13
	cmpl	$1, (%rsi,%rax,4)
	jle	.L13
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$1, %rax
	cmpq	%rax, %r9
	jne	.L14
	addl	$1, %edi
	addq	$4, %rbp
	cmpl	%edi, %ecx
	jg	.L15
	addq	$4, %r10
	cmpl	%r12d, %r11d
	jne	.L18
.L12:
	movl	452(%rsp), %eax
	movl	448(%rsp), %r12d
	movq	%rsi, %r8
	movl	436(%rsp), %r13d
	movl	440(%rsp), %r14d
	movl	%eax, 8(%rsp)
	movl	444(%rsp), %r15d
	xorl	%eax, %eax
	movl	%r12d, 12(%rsp)
	movl	456(%rsp), %r9d
	movl	460(%rsp), %r10d
	movl	432(%rsp), %ebp
	jmp	.L17
.L157:
	xorl	%edi, %edi
	cmpl	$13, %r9d
	setg	%dil
	addl	%edi, %edx
	cmpl	$7, %ecx
	je	.L21
	cmpl	$7, %eax
	je	.L21
.L62:
	xorl	%edi, %edi
	cmpl	$13, %r10d
	setg	%dil
	addl	%edi, %edx
.L21:
	leal	1(%rax), %edi
	cmpl	%edi, %ecx
	je	.L76
.L158:
	cmpl	$3, 4(%r8)
	jle	.L20
	xorl	%eax, %eax
	cmpl	$13, %ebp
	setg	%al
	addl	%eax, %edx
.L20:
	addq	$4, %r8
	movl	%edi, %eax
.L17:
	cmpl	$1, %ecx
	je	.L21
	cmpl	$1, %eax
	je	.L22
	cmpl	$3, (%r8)
	jle	.L23
	xorl	%edi, %edi
	cmpl	$13, %r13d
	setg	%dil
	addl	%edi, %edx
.L23:
	cmpl	$2, %ecx
	je	.L21
	cmpl	$2, %eax
	je	.L24
.L68:
	cmpl	$3, (%r8)
	jle	.L25
	xorl	%edi, %edi
	cmpl	$13, %r14d
	setg	%dil
	addl	%edi, %edx
.L25:
	cmpl	$3, %ecx
	je	.L21
	cmpl	$3, %eax
	je	.L26
.L67:
	cmpl	$3, (%r8)
	jle	.L27
	xorl	%edi, %edi
	cmpl	$13, %r15d
	setg	%dil
	addl	%edi, %edx
.L27:
	cmpl	$4, %ecx
	je	.L21
	cmpl	$4, %eax
	je	.L28
.L66:
	cmpl	$3, (%r8)
	jle	.L29
	xorl	%edi, %edi
	cmpl	$13, %r12d
	setg	%dil
	addl	%edi, %edx
.L29:
	cmpl	$5, %ecx
	je	.L21
	cmpl	$5, %eax
	je	.L30
.L65:
	cmpl	$3, (%r8)
	jle	.L31
	xorl	%edi, %edi
	cmpl	$13, 8(%rsp)
	setg	%dil
	addl	%edi, %edx
.L31:
	cmpl	$6, %ecx
	je	.L21
	cmpl	$6, %eax
	je	.L32
.L64:
	cmpl	$3, (%r8)
	jg	.L157
.L32:
	cmpl	$7, %ecx
	je	.L21
	cmpl	$7, %eax
	je	.L21
	cmpl	$3, (%r8)
	jg	.L62
	leal	1(%rax), %edi
	cmpl	%edi, %ecx
	jne	.L158
.L76:
	movq	%rsi, %r10
	xorl	%r8d, %r8d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L159:
	movl	(%r10), %r9d
	cmpl	$1, %r9d
	jle	.L36
	xorl	%r12d, %r12d
	cmpl	$23, %ebp
	setg	%r12b
	addl	%r12d, %edx
.L36:
	cmpl	$1, %edi
	je	.L37
	cmpl	$1, %r8d
	je	.L38
.L61:
	cmpl	$1, %r9d
	jle	.L39
	xorl	%r12d, %r12d
	cmpl	$23, %r13d
	setg	%r12b
	addl	%r12d, %edx
.L39:
	cmpl	$2, %edi
	je	.L40
	cmpl	$2, %r8d
	je	.L41
.L60:
	cmpl	$1, %r9d
	jle	.L42
	xorl	%r12d, %r12d
	cmpl	$23, %r14d
	setg	%r12b
	addl	%r12d, %edx
.L42:
	cmpl	$3, %edi
	je	.L40
	cmpl	$3, %r8d
	je	.L43
.L59:
	cmpl	$1, %r9d
	jle	.L44
	xorl	%r12d, %r12d
	cmpl	$23, %r15d
	setg	%r12b
	addl	%r12d, %edx
.L44:
	cmpl	$4, %edi
	je	.L40
	cmpl	$4, %r8d
	je	.L45
	cmpl	$5, %r8d
	setne	%r12b
	cmpl	$1, %r9d
	jle	.L40
.L72:
	xorl	%r9d, %r9d
	cmpl	$23, 12(%rsp)
	setg	%r9b
	addl	%r9d, %edx
	cmpl	$5, %edi
	je	.L40
	testb	%r12b, %r12b
	je	.L40
	cmpl	$23, 8(%rsp)
	jle	.L40
.L70:
	addl	$1, %edx
.L40:
	leal	1(%r8), %r9d
	addq	$4, %r10
	cmpl	%r8d, %eax
	je	.L34
.L69:
	movl	%r9d, %r8d
.L19:
	testl	%r8d, %r8d
	jne	.L159
	cmpl	$1, %edi
	je	.L34
	movl	(%r10), %r9d
	jmp	.L61
.L22:
	cmpl	$2, %ecx
	jne	.L68
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	$3, %ecx
	jne	.L67
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	$4, %ecx
	jne	.L66
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L28:
	cmpl	$5, %ecx
	jne	.L65
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	$6, %ecx
	jne	.L64
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	$2, %edi
	jne	.L60
.L34:
	cmpl	$2, %r11d
	jbe	.L77
	movl	%ecx, %r8d
	addq	$16, %rsi
	movdqa	.LC2(%rip), %xmm2
	pxor	%xmm1, %xmm1
	shrl	$2, %r8d
	subl	$1, %r8d
	salq	$4, %r8
	addq	%rsi, %r8
	jmp	.L50
.L160:
	addq	$16, %rsi
.L50:
	movdqa	(%rbx), %xmm0
	movq	%rsi, %rbx
	pcmpgtd	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%r8, %rsi
	jne	.L160
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %esi
	addl	%esi, %edx
	movl	%ecx, %esi
	andl	$-4, %esi
	andl	$3, %ecx
	je	.L51
.L49:
	movslq	%esi, %rcx
	cmpl	$73, 432(%rsp,%rcx,4)
	jg	.L161
.L52:
	leal	1(%rsi), %ecx
	cmpl	%esi, %eax
	jle	.L51
	movslq	%ecx, %rax
	cmpl	$73, 432(%rsp,%rax,4)
	jle	.L53
	addl	$1, %edx
.L53:
	addl	$2, %esi
	cmpl	%esi, %edi
	jle	.L51
	movslq	%esi, %rsi
	cmpl	$73, 432(%rsp,%rsi,4)
	jle	.L51
	addl	$1, %edx
.L51:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L162
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L41:
	.cfi_restore_state
	cmpl	$3, %edi
	jne	.L59
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L43:
	cmpl	$4, %edi
	je	.L34
	movl	$1, %r12d
	cmpl	$1, %r9d
	jg	.L72
	addq	$4, %r10
	movl	$4, %r9d
	jmp	.L69
.L45:
	cmpl	$5, %edi
	je	.L34
	cmpl	$1, %r9d
	jle	.L37
	cmpl	$23, 8(%rsp)
	jg	.L70
	addq	$4, %r10
	movl	$5, %r9d
	jmp	.L69
.L37:
	leal	1(%r8), %r9d
	addq	$4, %r10
	jmp	.L69
.L161:
	addl	$1, %edx
	jmp	.L52
.L156:
	xorl	%edx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L75:
	xorl	%edx, %edx
	jmp	.L12
.L77:
	xorl	%esi, %esi
	jmp	.L49
.L162:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	73
	.long	73
	.long	73
	.long	73
	.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 <math.h>

int main(int argc, char const *argv[])
{
	int n, n1=1, n2, a[100], a1, b[100], i1=1, i2, ans=0, flag;
	scanf("%d", &n);
	if (n<10)
	{
		printf("%d\n", 0);
		return 0;
	}
	for (int i = 0; i < 100; ++i)
	{
		b[i]=0;
	}
	a[0]=2;
	for (int i = 3; i <= n; ++i)
	{
		flag=0;
		for (int j = 0; j < i1; ++j)
		{
			if (i%a[j]==0) flag=1;
		}
		if (flag==0)
		{
			a[i1]=i;
			i1++;
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		a1=a[i];
		while (a1<=n)
		{
			b[i]+=n/a1;
			a1*=a[i];
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		for (int j = i+1; j < i1; ++j)
		{
			for (int k = 0; k < i1; ++k)
			{
				if (k!=i && k!=j)
				{
					if (b[i]>=4 && b[j]>=4 && b[k] >=2) ans++;
				}
			}
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		for (int j = 0; j < i1; ++j)
		{
			if (j>7) break;
			if (j!=i)
			{
				if (b[i]>=4 && b[j]>=14) ans++;
			}
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		for (int j = 0; j < i1; ++j)
		{
			if (j>5) break;
			if (j!=i)
			{
				if (b[i]>=2 && b[j]>=24) ans++;
			}
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		if (b[i]>=74) ans++;
	}
	printf("%d\n", ans);
	return 0;
}
11
 4
 17
 20
 36
 25
 14
 29
 30
 46

1
 0
 3
 8
 42
 11
 2
 32
 35
 86

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 <math.h>

int main(int argc, char const *argv[])
{
	int n, n1=1, n2, a[100], a1, b[100], i1=1, i2, ans=0, flag;
	scanf("%d", &n);
	if (n<10)
	{
		printf("%d\n", 0);
		return 0;
	}
	for (int i = 0; i < 100; ++i)
	{
		b[i]=0;
	}
	a[0]=2;
	for (int i = 3; i <= n; ++i)
	{
		flag=0;
		for (int j = 0; j < i1; ++j)
		{
			if (i%a[j]==0) flag=1;
		}
		if (flag==0)
		{
			a[i1]=i;
			i1++;
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		a1=a[i];
		while (a1<=n)
		{
			b[i]+=n/a1;
			a1*=a[i];
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		for (int j = i+1; j < i1; ++j)
		{
			for (int k = 0; k < i1; ++k)
			{
				if (k!=i && k!=j)
				{
					if (b[i]>=4 && b[j]>=4 && b[k] >=2) ans++;
				}
			}
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		for (int j = 0; j < i1; ++j)
		{
			if (j>7) break;
			if (j!=i)
			{
				if (b[i]>=4 && b[j]>=14) ans++;
			}
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		for (int j = 0; j < i1; ++j)
		{
			if (j>5) break;
			if (j!=i)
			{
				if (b[i]>=2 && b[j]>=24) ans++;
			}
		}
	}
	for (int i = 0; i < i1; ++i)
	{
		if (b[i]>=74) ans++;
	}
	printf("%d\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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	$912, %rsp
	movl	%edi, -900(%rbp)
	movq	%rsi, -912(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -820(%rbp)
	movl	$1, -880(%rbp)
	movl	$0, -876(%rbp)
	leaq	-888(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-888(%rbp), %eax
	cmpl	$9, %eax
	jg	.L2
	movl	$0, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L40
.L2:
	movl	$0, -868(%rbp)
	jmp	.L4
.L5:
	movl	-868(%rbp), %eax
	cltq
	movl	$0, -416(%rbp,%rax,4)
	addl	$1, -868(%rbp)
.L4:
	cmpl	$99, -868(%rbp)
	jle	.L5
	movl	$2, -816(%rbp)
	movl	$3, -864(%rbp)
	jmp	.L6
.L11:
	movl	$0, -872(%rbp)
	movl	$0, -860(%rbp)
	jmp	.L7
.L9:
	movl	-860(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %ecx
	movl	-864(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	$1, -872(%rbp)
.L8:
	addl	$1, -860(%rbp)
.L7:
	movl	-860(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L9
	cmpl	$0, -872(%rbp)
	jne	.L10
	movl	-880(%rbp), %eax
	cltq
	movl	-864(%rbp), %edx
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -880(%rbp)
.L10:
	addl	$1, -864(%rbp)
.L6:
	movl	-888(%rbp), %eax
	cmpl	%eax, -864(%rbp)
	jle	.L11
	movl	$0, -856(%rbp)
	jmp	.L12
.L15:
	movl	-856(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -884(%rbp)
	jmp	.L13
.L14:
	movl	-856(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-888(%rbp), %eax
	cltd
	idivl	-884(%rbp)
	leal	(%rcx,%rax), %edx
	movl	-856(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	movl	-856(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	-884(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -884(%rbp)
.L13:
	movl	-888(%rbp), %eax
	cmpl	%eax, -884(%rbp)
	jle	.L14
	addl	$1, -856(%rbp)
.L12:
	movl	-856(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L15
	movl	$0, -852(%rbp)
	jmp	.L16
.L22:
	movl	-852(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -848(%rbp)
	jmp	.L17
.L21:
	movl	$0, -844(%rbp)
	jmp	.L18
.L20:
	movl	-844(%rbp), %eax
	cmpl	-852(%rbp), %eax
	je	.L19
	movl	-844(%rbp), %eax
	cmpl	-848(%rbp), %eax
	je	.L19
	movl	-852(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L19
	movl	-848(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L19
	movl	-844(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L19
	addl	$1, -876(%rbp)
.L19:
	addl	$1, -844(%rbp)
.L18:
	movl	-844(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L20
	addl	$1, -848(%rbp)
.L17:
	movl	-848(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L21
	addl	$1, -852(%rbp)
.L16:
	movl	-852(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L22
	movl	$0, -840(%rbp)
	jmp	.L23
.L29:
	movl	$0, -836(%rbp)
	jmp	.L24
.L28:
	cmpl	$7, -836(%rbp)
	jg	.L42
	movl	-836(%rbp), %eax
	cmpl	-840(%rbp), %eax
	je	.L27
	movl	-840(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L27
	movl	-836(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L27
	addl	$1, -876(%rbp)
.L27:
	addl	$1, -836(%rbp)
.L24:
	movl	-836(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L28
	jmp	.L26
.L42:
	nop
.L26:
	addl	$1, -840(%rbp)
.L23:
	movl	-840(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L29
	movl	$0, -832(%rbp)
	jmp	.L30
.L36:
	movl	$0, -828(%rbp)
	jmp	.L31
.L35:
	cmpl	$5, -828(%rbp)
	jg	.L43
	movl	-828(%rbp), %eax
	cmpl	-832(%rbp), %eax
	je	.L34
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L34
	movl	-828(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L34
	addl	$1, -876(%rbp)
.L34:
	addl	$1, -828(%rbp)
.L31:
	movl	-828(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L35
	jmp	.L33
.L43:
	nop
.L33:
	addl	$1, -832(%rbp)
.L30:
	movl	-832(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L36
	movl	$0, -824(%rbp)
	jmp	.L37
.L39:
	movl	-824(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L38
	addl	$1, -876(%rbp)
.L38:
	addl	$1, -824(%rbp)
.L37:
	movl	-824(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L39
	movl	-876(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L40:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	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	"%d\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	$912, %rsp
	movl	%edi, -900(%rbp)
	movq	%rsi, -912(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -820(%rbp)
	movl	$1, -880(%rbp)
	movl	$0, -876(%rbp)
	leaq	-888(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-888(%rbp), %eax
	cmpl	$9, %eax
	jg	.L2
	movl	$0, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L40
.L2:
	movl	$0, -868(%rbp)
	jmp	.L4
.L5:
	movl	-868(%rbp), %eax
	cltq
	movl	$0, -416(%rbp,%rax,4)
	addl	$1, -868(%rbp)
.L4:
	cmpl	$99, -868(%rbp)
	jle	.L5
	movl	$2, -816(%rbp)
	movl	$3, -864(%rbp)
	jmp	.L6
.L11:
	movl	$0, -872(%rbp)
	movl	$0, -860(%rbp)
	jmp	.L7
.L9:
	movl	-860(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %ecx
	movl	-864(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	$1, -872(%rbp)
.L8:
	addl	$1, -860(%rbp)
.L7:
	movl	-860(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L9
	cmpl	$0, -872(%rbp)
	jne	.L10
	movl	-880(%rbp), %eax
	cltq
	movl	-864(%rbp), %edx
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -880(%rbp)
.L10:
	addl	$1, -864(%rbp)
.L6:
	movl	-888(%rbp), %eax
	cmpl	%eax, -864(%rbp)
	jle	.L11
	movl	$0, -856(%rbp)
	jmp	.L12
.L15:
	movl	-856(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -884(%rbp)
	jmp	.L13
.L14:
	movl	-856(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-888(%rbp), %eax
	cltd
	idivl	-884(%rbp)
	leal	(%rcx,%rax), %edx
	movl	-856(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	movl	-856(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	-884(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -884(%rbp)
.L13:
	movl	-888(%rbp), %eax
	cmpl	%eax, -884(%rbp)
	jle	.L14
	addl	$1, -856(%rbp)
.L12:
	movl	-856(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L15
	movl	$0, -852(%rbp)
	jmp	.L16
.L22:
	movl	-852(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -848(%rbp)
	jmp	.L17
.L21:
	movl	$0, -844(%rbp)
	jmp	.L18
.L20:
	movl	-844(%rbp), %eax
	cmpl	-852(%rbp), %eax
	je	.L19
	movl	-844(%rbp), %eax
	cmpl	-848(%rbp), %eax
	je	.L19
	movl	-852(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L19
	movl	-848(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L19
	movl	-844(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L19
	addl	$1, -876(%rbp)
.L19:
	addl	$1, -844(%rbp)
.L18:
	movl	-844(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L20
	addl	$1, -848(%rbp)
.L17:
	movl	-848(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L21
	addl	$1, -852(%rbp)
.L16:
	movl	-852(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L22
	movl	$0, -840(%rbp)
	jmp	.L23
.L29:
	movl	$0, -836(%rbp)
	jmp	.L24
.L28:
	cmpl	$7, -836(%rbp)
	jg	.L42
	movl	-836(%rbp), %eax
	cmpl	-840(%rbp), %eax
	je	.L27
	movl	-840(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L27
	movl	-836(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L27
	addl	$1, -876(%rbp)
.L27:
	addl	$1, -836(%rbp)
.L24:
	movl	-836(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L28
	jmp	.L26
.L42:
	nop
.L26:
	addl	$1, -840(%rbp)
.L23:
	movl	-840(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L29
	movl	$0, -832(%rbp)
	jmp	.L30
.L36:
	movl	$0, -828(%rbp)
	jmp	.L31
.L35:
	cmpl	$5, -828(%rbp)
	jg	.L43
	movl	-828(%rbp), %eax
	cmpl	-832(%rbp), %eax
	je	.L34
	movl	-832(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L34
	movl	-828(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L34
	addl	$1, -876(%rbp)
.L34:
	addl	$1, -828(%rbp)
.L31:
	movl	-828(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L35
	jmp	.L33
.L43:
	nop
.L33:
	addl	$1, -832(%rbp)
.L30:
	movl	-832(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L36
	movl	$0, -824(%rbp)
	jmp	.L37
.L39:
	movl	-824(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L38
	addl	$1, -876(%rbp)
.L38:
	addl	$1, -824(%rbp)
.L37:
	movl	-824(%rbp), %eax
	cmpl	-880(%rbp), %eax
	jl	.L39
	movl	-876(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L40:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	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:
