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>
#include <string.h>
#include <stdlib.h>



int main(void)
{
	//変数の宣言
	int n;
	int sosu[25];
	int sosucount[25];
	int over74=0;
	int over24=0;
	int over14=0;
	int over4=0;
	int over2=0;
	
	//よく使う変数
	int i,j,k,l;
	int flag=0;
	int ans=0;
	int count=0;
	long int temp,temp1,temp2;
	int max,min;
	int len;
	//データの読み込み
	
	scanf("%d",&n);
	
	sosu[0]=2;
	sosu[1]=3;
	sosu[2]=5;
	sosu[3]=7;
	sosu[4]=11;
	sosu[5]=13;
	sosu[6]=17;
	sosu[7]=19;
	sosu[8]=23;
	sosu[9]=29;
	sosu[10]=31;
	sosu[11]=37;
	sosu[12]=41;
	sosu[13]=43;
	sosu[14]=47;
	sosu[15]=53;
	sosu[16]=59;
	sosu[17]=61;
	sosu[18]=67;
	sosu[19]=71;
	sosu[20]=73;
	sosu[21]=79;
	sosu[22]=83;
	sosu[23]=89;
	sosu[24]=97;
	
	for(i=0;i<25;i++){
		sosucount[i]=0;
	}
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	
	for(i=1;i<=n;i++){
		temp=i;
		for(j=0;j<25;j++){
			while(temp%sosu[j]==0){
//				printf("i=%d,j=%d,temp=%d\n",i,j,temp);
				sosucount[j]++;
				temp=temp/sosu[j];
			}
		}
	}
	
//	printf("tag1\n");
	
	for(i=0;i<25;i++){
		if(sosucount[i]>=74) over74++;
		if(sosucount[i]>=24) over24++;
		if(sosucount[i]>=14) over14++;
		if(sosucount[i]>=4) over4++;
		if(sosucount[i]>=2) over2++;
	}
	
//	for(i=0;i<25;i++){
//		printf("%dは%d個\n",sosu[i],sosucount[i]);
//	}
	
//	printf("over74=%d\n",over74);
//	printf("over24=%d\n",over24);
//	printf("over14=%d\n",over14);
//	printf("over4=%d\n",over4);
//	printf("over2=%d\n",over2);
	
	ans=over74;
//	printf("tag1 ans=%d\n",ans);
	ans=ans+over24*(over2-1);
//	printf("tag2 ans=%d\n",ans);
	ans=ans+over14*(over4-1);
//	printf("tag3 ans=%d\n",ans);
	ans=ans+over4*(over4-1)*(over2-2)/2;
//	printf("tag4 ans=%d\n",ans);
	
//	printf("計算部分終了\n");
	//出力
	
	printf("%d",ans);
	
//	printf("結果の出力終了\n");
	
	return 0;
	
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$288, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -272(%rbp)
	movl	$0, -268(%rbp)
	movl	$0, -264(%rbp)
	movl	$0, -260(%rbp)
	movl	$0, -256(%rbp)
	movl	$0, -244(%rbp)
	movl	$0, -240(%rbp)
	movl	$0, -236(%rbp)
	leaq	-276(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -224(%rbp)
	movl	$3, -220(%rbp)
	movl	$5, -216(%rbp)
	movl	$7, -212(%rbp)
	movl	$11, -208(%rbp)
	movl	$13, -204(%rbp)
	movl	$17, -200(%rbp)
	movl	$19, -196(%rbp)
	movl	$23, -192(%rbp)
	movl	$29, -188(%rbp)
	movl	$31, -184(%rbp)
	movl	$37, -180(%rbp)
	movl	$41, -176(%rbp)
	movl	$43, -172(%rbp)
	movl	$47, -168(%rbp)
	movl	$53, -164(%rbp)
	movl	$59, -160(%rbp)
	movl	$61, -156(%rbp)
	movl	$67, -152(%rbp)
	movl	$71, -148(%rbp)
	movl	$73, -144(%rbp)
	movl	$79, -140(%rbp)
	movl	$83, -136(%rbp)
	movl	$89, -132(%rbp)
	movl	$97, -128(%rbp)
	movl	$0, -252(%rbp)
	jmp	.L2
.L3:
	movl	-252(%rbp), %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	addl	$1, -252(%rbp)
.L2:
	cmpl	$24, -252(%rbp)
	jle	.L3
	movl	$1, -252(%rbp)
	jmp	.L4
.L9:
	movl	-252(%rbp), %eax
	cltq
	movq	%rax, -232(%rbp)
	movl	$0, -248(%rbp)
	jmp	.L5
.L7:
	movl	-248(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-248(%rbp), %eax
	cltq
	movl	%edx, -112(%rbp,%rax,4)
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-232(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rax, -232(%rbp)
.L6:
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-232(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L7
	addl	$1, -248(%rbp)
.L5:
	cmpl	$24, -248(%rbp)
	jle	.L6
	addl	$1, -252(%rbp)
.L4:
	movl	-276(%rbp), %eax
	cmpl	%eax, -252(%rbp)
	jle	.L9
	movl	$0, -252(%rbp)
	jmp	.L10
.L16:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L11
	addl	$1, -272(%rbp)
.L11:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L12
	addl	$1, -268(%rbp)
.L12:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L13
	addl	$1, -264(%rbp)
.L13:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L14
	addl	$1, -260(%rbp)
.L14:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L15
	addl	$1, -256(%rbp)
.L15:
	addl	$1, -252(%rbp)
.L10:
	cmpl	$24, -252(%rbp)
	jle	.L16
	movl	-272(%rbp), %eax
	movl	%eax, -240(%rbp)
	movl	-256(%rbp), %eax
	subl	$1, %eax
	imull	-268(%rbp), %eax
	addl	%eax, -240(%rbp)
	movl	-260(%rbp), %eax
	subl	$1, %eax
	imull	-264(%rbp), %eax
	addl	%eax, -240(%rbp)
	movl	-260(%rbp), %eax
	subl	$1, %eax
	imull	-260(%rbp), %eax
	movl	-256(%rbp), %edx
	subl	$2, %edx
	imull	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	%eax, -240(%rbp)
	movl	-240(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$240, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	128(%rsp), %rbx
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movl	$12, %ecx
	movq	%rbx, %rdi
	movdqa	.LC1(%rip), %xmm0
	movl	$97, 112(%rsp)
	rep stosq
	movl	12(%rsp), %eax
	movaps	%xmm0, 16(%rsp)
	movdqa	.LC2(%rip), %xmm0
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC3(%rip), %xmm0
	movaps	%xmm0, 48(%rsp)
	movdqa	.LC4(%rip), %xmm0
	movl	$0, (%rdi)
	movaps	%xmm0, 64(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movaps	%xmm0, 80(%rsp)
	movdqa	.LC6(%rip), %xmm0
	movaps	%xmm0, 96(%rsp)
	testl	%eax, %eax
	jle	.L10
	leal	1(%rax), %r14d
	movl	$1, %r12d
	leaq	16(%rsp), %r13
	leaq	116(%rsp), %r11
.L9:
	movq	%r12, %rcx
	movq	%r13, %r9
	movq	%rbx, %r10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rcx, %rax
	movslq	(%r9), %rsi
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L8
	movl	(%r10), %eax
	leal	1(%rax), %edi
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rcx, %rax
	movl	%edi, %r8d
	addl	$1, %edi
	cqto
	idivq	%rsi
	cqto
	movq	%rax, %rcx
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L5
	movl	%r8d, (%r10)
.L8:
	addq	$4, %r9
	addq	$4, %r10
	cmpq	%r9, %r11
	jne	.L4
	addq	$1, %r12
	cmpq	%r12, %r14
	jne	.L9
.L10:
	leaq	228(%rsp), %r9
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%edi, %edi
	jmp	.L3
.L26:
	addl	$1, %edi
.L12:
	addl	$1, %r8d
.L13:
	addl	$1, %ecx
.L14:
	addl	$1, %esi
.L15:
	addq	$4, %rbx
	addl	$1, %edx
	cmpq	%rbx, %r9
	je	.L25
.L3:
	movl	(%rbx), %eax
	cmpl	$73, %eax
	jg	.L26
	cmpl	$23, %eax
	jg	.L12
	cmpl	$13, %eax
	jg	.L13
	cmpl	$3, %eax
	jg	.L14
	cmpl	$1, %eax
	jg	.L15
	addq	$4, %rbx
	cmpq	%rbx, %r9
	jne	.L3
.L25:
	leal	-1(%rdx), %eax
	subl	$2, %edx
	imull	%eax, %r8d
	movl	%ecx, %eax
	addl	%edi, %r8d
	leal	-1(%rsi), %edi
	imull	%edi, %eax
	imull	%esi, %edi
	movq	%rbp, %rsi
	addl	%r8d, %eax
	movl	%edi, %ecx
	movl	$1, %edi
	imull	%edx, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$240, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	2
	.long	3
	.long	5
	.long	7
	.align 16
.LC2:
	.long	11
	.long	13
	.long	17
	.long	19
	.align 16
.LC3:
	.long	23
	.long	29
	.long	31
	.long	37
	.align 16
.LC4:
	.long	41
	.long	43
	.long	47
	.long	53
	.align 16
.LC5:
	.long	59
	.long	61
	.long	67
	.long	71
	.align 16
.LC6:
	.long	73
	.long	79
	.long	83
	.long	89
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$240, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	128(%rsp), %rbx
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	movl	$12, %ecx
	movq	%rbx, %rdi
	movdqa	.LC1(%rip), %xmm0
	movl	$97, 112(%rsp)
	rep stosq
	movl	12(%rsp), %eax
	movaps	%xmm0, 16(%rsp)
	movdqa	.LC2(%rip), %xmm0
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC3(%rip), %xmm0
	movaps	%xmm0, 48(%rsp)
	movdqa	.LC4(%rip), %xmm0
	movl	$0, (%rdi)
	movaps	%xmm0, 64(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movaps	%xmm0, 80(%rsp)
	movdqa	.LC6(%rip), %xmm0
	movaps	%xmm0, 96(%rsp)
	testl	%eax, %eax
	jle	.L10
	leal	1(%rax), %r14d
	movl	$1, %r12d
	leaq	16(%rsp), %r13
	leaq	116(%rsp), %r11
.L9:
	movq	%r12, %rcx
	movq	%r13, %r9
	movq	%rbx, %r10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rcx, %rax
	movslq	(%r9), %rsi
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L8
	movl	(%r10), %eax
	leal	1(%rax), %edi
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rcx, %rax
	movl	%edi, %r8d
	addl	$1, %edi
	cqto
	idivq	%rsi
	cqto
	movq	%rax, %rcx
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L5
	movl	%r8d, (%r10)
.L8:
	addq	$4, %r9
	addq	$4, %r10
	cmpq	%r9, %r11
	jne	.L4
	addq	$1, %r12
	cmpq	%r12, %r14
	jne	.L9
.L10:
	leaq	228(%rsp), %r9
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%edi, %edi
	jmp	.L3
.L26:
	addl	$1, %edi
.L12:
	addl	$1, %r8d
.L13:
	addl	$1, %ecx
.L14:
	addl	$1, %esi
.L15:
	addq	$4, %rbx
	addl	$1, %edx
	cmpq	%rbx, %r9
	je	.L25
.L3:
	movl	(%rbx), %eax
	cmpl	$73, %eax
	jg	.L26
	cmpl	$23, %eax
	jg	.L12
	cmpl	$13, %eax
	jg	.L13
	cmpl	$3, %eax
	jg	.L14
	cmpl	$1, %eax
	jg	.L15
	addq	$4, %rbx
	cmpq	%rbx, %r9
	jne	.L3
.L25:
	leal	-1(%rdx), %eax
	subl	$2, %edx
	imull	%eax, %r8d
	movl	%ecx, %eax
	addl	%edi, %r8d
	leal	-1(%rsi), %edi
	imull	%edi, %eax
	imull	%esi, %edi
	movq	%rbp, %rsi
	addl	%r8d, %eax
	movl	%edi, %ecx
	movl	$1, %edi
	imull	%edx, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$240, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	2
	.long	3
	.long	5
	.long	7
	.align 16
.LC2:
	.long	11
	.long	13
	.long	17
	.long	19
	.align 16
.LC3:
	.long	23
	.long	29
	.long	31
	.long	37
	.align 16
.LC4:
	.long	41
	.long	43
	.long	47
	.long	53
	.align 16
.LC5:
	.long	59
	.long	61
	.long	67
	.long	71
	.align 16
.LC6:
	.long	73
	.long	79
	.long	83
	.long	89
	.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>
#include <string.h>
#include <stdlib.h>



int main(void)
{
	//変数の宣言
	int n;
	int sosu[25];
	int sosucount[25];
	int over74=0;
	int over24=0;
	int over14=0;
	int over4=0;
	int over2=0;
	
	//よく使う変数
	int i,j,k,l;
	int flag=0;
	int ans=0;
	int count=0;
	long int temp,temp1,temp2;
	int max,min;
	int len;
	//データの読み込み
	
	scanf("%d",&n);
	
	sosu[0]=2;
	sosu[1]=3;
	sosu[2]=5;
	sosu[3]=7;
	sosu[4]=11;
	sosu[5]=13;
	sosu[6]=17;
	sosu[7]=19;
	sosu[8]=23;
	sosu[9]=29;
	sosu[10]=31;
	sosu[11]=37;
	sosu[12]=41;
	sosu[13]=43;
	sosu[14]=47;
	sosu[15]=53;
	sosu[16]=59;
	sosu[17]=61;
	sosu[18]=67;
	sosu[19]=71;
	sosu[20]=73;
	sosu[21]=79;
	sosu[22]=83;
	sosu[23]=89;
	sosu[24]=97;
	
	for(i=0;i<25;i++){
		sosucount[i]=0;
	}
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	
	for(i=1;i<=n;i++){
		temp=i;
		for(j=0;j<25;j++){
			while(temp%sosu[j]==0){
//				printf("i=%d,j=%d,temp=%d\n",i,j,temp);
				sosucount[j]++;
				temp=temp/sosu[j];
			}
		}
	}
	
//	printf("tag1\n");
	
	for(i=0;i<25;i++){
		if(sosucount[i]>=74) over74++;
		if(sosucount[i]>=24) over24++;
		if(sosucount[i]>=14) over14++;
		if(sosucount[i]>=4) over4++;
		if(sosucount[i]>=2) over2++;
	}
	
//	for(i=0;i<25;i++){
//		printf("%dは%d個\n",sosu[i],sosucount[i]);
//	}
	
//	printf("over74=%d\n",over74);
//	printf("over24=%d\n",over24);
//	printf("over14=%d\n",over14);
//	printf("over4=%d\n",over4);
//	printf("over2=%d\n",over2);
	
	ans=over74;
//	printf("tag1 ans=%d\n",ans);
	ans=ans+over24*(over2-1);
//	printf("tag2 ans=%d\n",ans);
	ans=ans+over14*(over4-1);
//	printf("tag3 ans=%d\n",ans);
	ans=ans+over4*(over4-1)*(over2-2)/2;
//	printf("tag4 ans=%d\n",ans);
	
//	printf("計算部分終了\n");
	//出力
	
	printf("%d",ans);
	
//	printf("結果の出力終了\n");
	
	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>
#include <string.h>
#include <stdlib.h>



int main(void)
{
	//変数の宣言
	int n;
	int sosu[25];
	int sosucount[25];
	int over74=0;
	int over24=0;
	int over14=0;
	int over4=0;
	int over2=0;
	
	//よく使う変数
	int i,j,k,l;
	int flag=0;
	int ans=0;
	int count=0;
	long int temp,temp1,temp2;
	int max,min;
	int len;
	//データの読み込み
	
	scanf("%d",&n);
	
	sosu[0]=2;
	sosu[1]=3;
	sosu[2]=5;
	sosu[3]=7;
	sosu[4]=11;
	sosu[5]=13;
	sosu[6]=17;
	sosu[7]=19;
	sosu[8]=23;
	sosu[9]=29;
	sosu[10]=31;
	sosu[11]=37;
	sosu[12]=41;
	sosu[13]=43;
	sosu[14]=47;
	sosu[15]=53;
	sosu[16]=59;
	sosu[17]=61;
	sosu[18]=67;
	sosu[19]=71;
	sosu[20]=73;
	sosu[21]=79;
	sosu[22]=83;
	sosu[23]=89;
	sosu[24]=97;
	
	for(i=0;i<25;i++){
		sosucount[i]=0;
	}
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	
	for(i=1;i<=n;i++){
		temp=i;
		for(j=0;j<25;j++){
			while(temp%sosu[j]==0){
//				printf("i=%d,j=%d,temp=%d\n",i,j,temp);
				sosucount[j]++;
				temp=temp/sosu[j];
			}
		}
	}
	
//	printf("tag1\n");
	
	for(i=0;i<25;i++){
		if(sosucount[i]>=74) over74++;
		if(sosucount[i]>=24) over24++;
		if(sosucount[i]>=14) over14++;
		if(sosucount[i]>=4) over4++;
		if(sosucount[i]>=2) over2++;
	}
	
//	for(i=0;i<25;i++){
//		printf("%dは%d個\n",sosu[i],sosucount[i]);
//	}
	
//	printf("over74=%d\n",over74);
//	printf("over24=%d\n",over24);
//	printf("over14=%d\n",over14);
//	printf("over4=%d\n",over4);
//	printf("over2=%d\n",over2);
	
	ans=over74;
//	printf("tag1 ans=%d\n",ans);
	ans=ans+over24*(over2-1);
//	printf("tag2 ans=%d\n",ans);
	ans=ans+over14*(over4-1);
//	printf("tag3 ans=%d\n",ans);
	ans=ans+over4*(over4-1)*(over2-2)/2;
//	printf("tag4 ans=%d\n",ans);
	
//	printf("計算部分終了\n");
	//出力
	
	printf("%d",ans);
	
//	printf("結果の出力終了\n");
	
	return 0;
	
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$288, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -272(%rbp)
	movl	$0, -268(%rbp)
	movl	$0, -264(%rbp)
	movl	$0, -260(%rbp)
	movl	$0, -256(%rbp)
	movl	$0, -244(%rbp)
	movl	$0, -240(%rbp)
	movl	$0, -236(%rbp)
	leaq	-276(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -224(%rbp)
	movl	$3, -220(%rbp)
	movl	$5, -216(%rbp)
	movl	$7, -212(%rbp)
	movl	$11, -208(%rbp)
	movl	$13, -204(%rbp)
	movl	$17, -200(%rbp)
	movl	$19, -196(%rbp)
	movl	$23, -192(%rbp)
	movl	$29, -188(%rbp)
	movl	$31, -184(%rbp)
	movl	$37, -180(%rbp)
	movl	$41, -176(%rbp)
	movl	$43, -172(%rbp)
	movl	$47, -168(%rbp)
	movl	$53, -164(%rbp)
	movl	$59, -160(%rbp)
	movl	$61, -156(%rbp)
	movl	$67, -152(%rbp)
	movl	$71, -148(%rbp)
	movl	$73, -144(%rbp)
	movl	$79, -140(%rbp)
	movl	$83, -136(%rbp)
	movl	$89, -132(%rbp)
	movl	$97, -128(%rbp)
	movl	$0, -252(%rbp)
	jmp	.L2
.L3:
	movl	-252(%rbp), %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	addl	$1, -252(%rbp)
.L2:
	cmpl	$24, -252(%rbp)
	jle	.L3
	movl	$1, -252(%rbp)
	jmp	.L4
.L9:
	movl	-252(%rbp), %eax
	cltq
	movq	%rax, -232(%rbp)
	movl	$0, -248(%rbp)
	jmp	.L5
.L7:
	movl	-248(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-248(%rbp), %eax
	cltq
	movl	%edx, -112(%rbp,%rax,4)
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-232(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rax, -232(%rbp)
.L6:
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-232(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L7
	addl	$1, -248(%rbp)
.L5:
	cmpl	$24, -248(%rbp)
	jle	.L6
	addl	$1, -252(%rbp)
.L4:
	movl	-276(%rbp), %eax
	cmpl	%eax, -252(%rbp)
	jle	.L9
	movl	$0, -252(%rbp)
	jmp	.L10
.L16:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L11
	addl	$1, -272(%rbp)
.L11:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L12
	addl	$1, -268(%rbp)
.L12:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L13
	addl	$1, -264(%rbp)
.L13:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L14
	addl	$1, -260(%rbp)
.L14:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L15
	addl	$1, -256(%rbp)
.L15:
	addl	$1, -252(%rbp)
.L10:
	cmpl	$24, -252(%rbp)
	jle	.L16
	movl	-272(%rbp), %eax
	movl	%eax, -240(%rbp)
	movl	-256(%rbp), %eax
	subl	$1, %eax
	imull	-268(%rbp), %eax
	addl	%eax, -240(%rbp)
	movl	-260(%rbp), %eax
	subl	$1, %eax
	imull	-264(%rbp), %eax
	addl	%eax, -240(%rbp)
	movl	-260(%rbp), %eax
	subl	$1, %eax
	imull	-260(%rbp), %eax
	movl	-256(%rbp), %edx
	subl	$2, %edx
	imull	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	%eax, -240(%rbp)
	movl	-240(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$288, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -272(%rbp)
	movl	$0, -268(%rbp)
	movl	$0, -264(%rbp)
	movl	$0, -260(%rbp)
	movl	$0, -256(%rbp)
	movl	$0, -244(%rbp)
	movl	$0, -240(%rbp)
	movl	$0, -236(%rbp)
	leaq	-276(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -224(%rbp)
	movl	$3, -220(%rbp)
	movl	$5, -216(%rbp)
	movl	$7, -212(%rbp)
	movl	$11, -208(%rbp)
	movl	$13, -204(%rbp)
	movl	$17, -200(%rbp)
	movl	$19, -196(%rbp)
	movl	$23, -192(%rbp)
	movl	$29, -188(%rbp)
	movl	$31, -184(%rbp)
	movl	$37, -180(%rbp)
	movl	$41, -176(%rbp)
	movl	$43, -172(%rbp)
	movl	$47, -168(%rbp)
	movl	$53, -164(%rbp)
	movl	$59, -160(%rbp)
	movl	$61, -156(%rbp)
	movl	$67, -152(%rbp)
	movl	$71, -148(%rbp)
	movl	$73, -144(%rbp)
	movl	$79, -140(%rbp)
	movl	$83, -136(%rbp)
	movl	$89, -132(%rbp)
	movl	$97, -128(%rbp)
	movl	$0, -252(%rbp)
	jmp	.L2
.L3:
	movl	-252(%rbp), %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	addl	$1, -252(%rbp)
.L2:
	cmpl	$24, -252(%rbp)
	jle	.L3
	movl	$1, -252(%rbp)
	jmp	.L4
.L9:
	movl	-252(%rbp), %eax
	cltq
	movq	%rax, -232(%rbp)
	movl	$0, -248(%rbp)
	jmp	.L5
.L7:
	movl	-248(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-248(%rbp), %eax
	cltq
	movl	%edx, -112(%rbp,%rax,4)
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-232(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rax, -232(%rbp)
.L6:
	movl	-248(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-232(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L7
	addl	$1, -248(%rbp)
.L5:
	cmpl	$24, -248(%rbp)
	jle	.L6
	addl	$1, -252(%rbp)
.L4:
	movl	-276(%rbp), %eax
	cmpl	%eax, -252(%rbp)
	jle	.L9
	movl	$0, -252(%rbp)
	jmp	.L10
.L16:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L11
	addl	$1, -272(%rbp)
.L11:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L12
	addl	$1, -268(%rbp)
.L12:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L13
	addl	$1, -264(%rbp)
.L13:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L14
	addl	$1, -260(%rbp)
.L14:
	movl	-252(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L15
	addl	$1, -256(%rbp)
.L15:
	addl	$1, -252(%rbp)
.L10:
	cmpl	$24, -252(%rbp)
	jle	.L16
	movl	-272(%rbp), %eax
	movl	%eax, -240(%rbp)
	movl	-256(%rbp), %eax
	subl	$1, %eax
	imull	-268(%rbp), %eax
	addl	%eax, -240(%rbp)
	movl	-260(%rbp), %eax
	subl	$1, %eax
	imull	-264(%rbp), %eax
	addl	%eax, -240(%rbp)
	movl	-260(%rbp), %eax
	subl	$1, %eax
	imull	-260(%rbp), %eax
	movl	-256(%rbp), %edx
	subl	$2, %edx
	imull	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	%eax, -240(%rbp)
	movl	-240(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
