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(){
    int collect[]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47};
    int nums[15]={0};
    int n;
    
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
	int temp=i;
	for(int j=0;j<15;j++){
	    if(collect[j]>temp)
		break;
	    while(temp%collect[j]==0){
		temp/=collect[j];
		nums[j]++;
	    }
	}
    }
    int a=0,b=0,c=0,d=0,e=0;
    for(int i=0;i<15;i++){
	if(nums[i]>=4){
	    a++;
	}
	if(nums[i]>=2)
	    b++;
	if(nums[i]>=14)
	    c++;
	if(nums[i]>=24)
	    d++;
	if(nums[i]>=74)
	    e++;
    }
    if(a<2||b<3)
	printf("0\n");
    else
	printf("%d\n",a*(a-1)/2*(b-2)+c*(a-1)+d*(b-1)+e);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"0"
.LC2:
	.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	$192, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2, -144(%rbp)
	movl	$3, -140(%rbp)
	movl	$5, -136(%rbp)
	movl	$7, -132(%rbp)
	movl	$11, -128(%rbp)
	movl	$13, -124(%rbp)
	movl	$17, -120(%rbp)
	movl	$19, -116(%rbp)
	movl	$23, -112(%rbp)
	movl	$29, -108(%rbp)
	movl	$31, -104(%rbp)
	movl	$37, -100(%rbp)
	movl	$41, -96(%rbp)
	movl	$43, -92(%rbp)
	movl	$47, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movl	$0, -24(%rbp)
	leaq	-184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -180(%rbp)
	jmp	.L2
.L9:
	movl	-180(%rbp), %eax
	movl	%eax, -176(%rbp)
	movl	$0, -172(%rbp)
	jmp	.L3
.L8:
	movl	-172(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	%eax, -176(%rbp)
	jl	.L22
	jmp	.L6
.L7:
	movl	-172(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %ecx
	movl	-176(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, -176(%rbp)
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	%edx, -80(%rbp,%rax,4)
.L6:
	movl	-172(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %ecx
	movl	-176(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L7
	addl	$1, -172(%rbp)
.L3:
	cmpl	$14, -172(%rbp)
	jle	.L8
	jmp	.L5
.L22:
	nop
.L5:
	addl	$1, -180(%rbp)
.L2:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jle	.L9
	movl	$0, -168(%rbp)
	movl	$0, -164(%rbp)
	movl	$0, -160(%rbp)
	movl	$0, -156(%rbp)
	movl	$0, -152(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L10
.L16:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L11
	addl	$1, -168(%rbp)
.L11:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L12
	addl	$1, -164(%rbp)
.L12:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L13
	addl	$1, -160(%rbp)
.L13:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L14
	addl	$1, -156(%rbp)
.L14:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L15
	addl	$1, -152(%rbp)
.L15:
	addl	$1, -148(%rbp)
.L10:
	cmpl	$14, -148(%rbp)
	jle	.L16
	cmpl	$1, -168(%rbp)
	jle	.L17
	cmpl	$2, -164(%rbp)
	jg	.L18
.L17:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L18:
	movl	-168(%rbp), %eax
	subl	$1, %eax
	imull	-168(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-164(%rbp), %eax
	subl	$2, %eax
	imull	%eax, %edx
	movl	-168(%rbp), %eax
	subl	$1, %eax
	imull	-160(%rbp), %eax
	addl	%eax, %edx
	movl	-164(%rbp), %eax
	subl	$1, %eax
	imull	-156(%rbp), %eax
	addl	%eax, %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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
.LC4:
	.string	"%d"
.LC5:
	.string	"0"
.LC6:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC4(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$168, %rsp
	.cfi_def_cfa_offset 208
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	movq	.LC3(%rip), %rax
	leaq	12(%rsp), %rsi
	movl	$47, 72(%rsp)
	movaps	%xmm0, 16(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movq	%rax, 64(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC2(%rip), %xmm0
	movq	$0, 128(%rsp)
	movaps	%xmm0, 48(%rsp)
	pxor	%xmm0, %xmm0
	movl	$0, 136(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L27
	addl	$1, %r12d
	movl	$1, %ebp
	leaq	80(%rsp), %r11
	leaq	16(%rsp), %r13
	leaq	76(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %r9
	movq	%r11, %r10
	movl	%ebp, %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%r9), %esi
	cmpl	%ecx, %esi
	jg	.L10
	movl	%ecx, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	jne	.L7
	movl	(%r10), %eax
	leal	1(%rax), %edi
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%ecx, %eax
	movl	%edi, %r8d
	addl	$1, %edi
	cltd
	idivl	%esi
	cltd
	movl	%eax, %ecx
	idivl	%esi
	testl	%edx, %edx
	je	.L8
	movl	%r8d, (%r10)
.L7:
	addq	$4, %r9
	addq	$4, %r10
	cmpq	%r9, %rbx
	jne	.L9
.L10:
	addl	$1, %ebp
	cmpl	%ebp, %r12d
	jne	.L5
.L6:
	leaq	140(%rsp), %r9
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L29:
	addl	$1, %ecx
	addl	$1, %edx
	cmpl	$13, %eax
	jle	.L13
	addl	$1, %r8d
	cmpl	$23, %eax
	jle	.L13
	addl	$1, %edi
	cmpl	$73, %eax
	jle	.L13
	addl	$1, %esi
.L13:
	addq	$4, %r11
	cmpq	%r11, %r9
	je	.L28
.L3:
	movl	(%r11), %eax
	cmpl	$3, %eax
	jg	.L29
	cmpl	$1, %eax
	setg	%al
	addq	$4, %r11
	movzbl	%al, %eax
	addl	%eax, %edx
	cmpq	%r11, %r9
	jne	.L3
.L28:
	cmpl	$1, %ecx
	jle	.L19
	cmpl	$2, %edx
	jle	.L19
	leal	-1(%rcx), %eax
	leal	-2(%rdx), %r9d
	imull	%eax, %ecx
	imull	%r8d, %eax
	sarl	%ecx
	imull	%r9d, %ecx
	addl	%eax, %ecx
	leal	-1(%rdx), %eax
	imull	%edi, %eax
	movl	$1, %edi
	leal	(%rcx,%rax), %edx
	xorl	%eax, %eax
	addl	%esi, %edx
	leaq	.LC6(%rip), %rsi
	call	__printf_chk@PLT
.L17:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$168, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L17
.L27:
	leaq	80(%rsp), %r11
	jmp	.L6
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	2
	.long	3
	.long	5
	.long	7
	.align 16
.LC1:
	.long	11
	.long	13
	.long	17
	.long	19
	.align 16
.LC2:
	.long	23
	.long	29
	.long	31
	.long	37
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	41
	.long	43
	.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
.LC4:
	.string	"%d"
.LC5:
	.string	"0"
.LC6:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC4(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$168, %rsp
	.cfi_def_cfa_offset 208
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	movq	.LC3(%rip), %rax
	leaq	12(%rsp), %rsi
	movl	$47, 72(%rsp)
	movaps	%xmm0, 16(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movq	%rax, 64(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC2(%rip), %xmm0
	movq	$0, 128(%rsp)
	movaps	%xmm0, 48(%rsp)
	pxor	%xmm0, %xmm0
	movl	$0, 136(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L27
	addl	$1, %r12d
	movl	$1, %ebp
	leaq	80(%rsp), %r11
	leaq	16(%rsp), %r13
	leaq	76(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %r9
	movq	%r11, %r10
	movl	%ebp, %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%r9), %esi
	cmpl	%ecx, %esi
	jg	.L10
	movl	%ecx, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	jne	.L7
	movl	(%r10), %eax
	leal	1(%rax), %edi
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%ecx, %eax
	movl	%edi, %r8d
	addl	$1, %edi
	cltd
	idivl	%esi
	cltd
	movl	%eax, %ecx
	idivl	%esi
	testl	%edx, %edx
	je	.L8
	movl	%r8d, (%r10)
.L7:
	addq	$4, %r9
	addq	$4, %r10
	cmpq	%r9, %rbx
	jne	.L9
.L10:
	addl	$1, %ebp
	cmpl	%ebp, %r12d
	jne	.L5
.L6:
	leaq	140(%rsp), %r9
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L29:
	addl	$1, %ecx
	addl	$1, %edx
	cmpl	$13, %eax
	jle	.L13
	addl	$1, %r8d
	cmpl	$23, %eax
	jle	.L13
	addl	$1, %edi
	cmpl	$73, %eax
	jle	.L13
	addl	$1, %esi
.L13:
	addq	$4, %r11
	cmpq	%r11, %r9
	je	.L28
.L3:
	movl	(%r11), %eax
	cmpl	$3, %eax
	jg	.L29
	cmpl	$1, %eax
	setg	%al
	addq	$4, %r11
	movzbl	%al, %eax
	addl	%eax, %edx
	cmpq	%r11, %r9
	jne	.L3
.L28:
	cmpl	$1, %ecx
	jle	.L19
	cmpl	$2, %edx
	jle	.L19
	leal	-1(%rcx), %eax
	leal	-2(%rdx), %r9d
	imull	%eax, %ecx
	imull	%r8d, %eax
	sarl	%ecx
	imull	%r9d, %ecx
	addl	%eax, %ecx
	leal	-1(%rdx), %eax
	imull	%edi, %eax
	movl	$1, %edi
	leal	(%rcx,%rax), %edx
	xorl	%eax, %eax
	addl	%esi, %edx
	leaq	.LC6(%rip), %rsi
	call	__printf_chk@PLT
.L17:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$168, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L17
.L27:
	leaq	80(%rsp), %r11
	jmp	.L6
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	2
	.long	3
	.long	5
	.long	7
	.align 16
.LC1:
	.long	11
	.long	13
	.long	17
	.long	19
	.align 16
.LC2:
	.long	23
	.long	29
	.long	31
	.long	37
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	41
	.long	43
	.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(){
    int collect[]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47};
    int nums[15]={0};
    int n;
    
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
	int temp=i;
	for(int j=0;j<15;j++){
	    if(collect[j]>temp)
		break;
	    while(temp%collect[j]==0){
		temp/=collect[j];
		nums[j]++;
	    }
	}
    }
    int a=0,b=0,c=0,d=0,e=0;
    for(int i=0;i<15;i++){
	if(nums[i]>=4){
	    a++;
	}
	if(nums[i]>=2)
	    b++;
	if(nums[i]>=14)
	    c++;
	if(nums[i]>=24)
	    d++;
	if(nums[i]>=74)
	    e++;
    }
    if(a<2||b<3)
	printf("0\n");
    else
	printf("%d\n",a*(a-1)/2*(b-2)+c*(a-1)+d*(b-1)+e);
    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>
int main(){
    int collect[]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47};
    int nums[15]={0};
    int n;
    
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
	int temp=i;
	for(int j=0;j<15;j++){
	    if(collect[j]>temp)
		break;
	    while(temp%collect[j]==0){
		temp/=collect[j];
		nums[j]++;
	    }
	}
    }
    int a=0,b=0,c=0,d=0,e=0;
    for(int i=0;i<15;i++){
	if(nums[i]>=4){
	    a++;
	}
	if(nums[i]>=2)
	    b++;
	if(nums[i]>=14)
	    c++;
	if(nums[i]>=24)
	    d++;
	if(nums[i]>=74)
	    e++;
    }
    if(a<2||b<3)
	printf("0\n");
    else
	printf("%d\n",a*(a-1)/2*(b-2)+c*(a-1)+d*(b-1)+e);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"0"
.LC2:
	.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	$192, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2, -144(%rbp)
	movl	$3, -140(%rbp)
	movl	$5, -136(%rbp)
	movl	$7, -132(%rbp)
	movl	$11, -128(%rbp)
	movl	$13, -124(%rbp)
	movl	$17, -120(%rbp)
	movl	$19, -116(%rbp)
	movl	$23, -112(%rbp)
	movl	$29, -108(%rbp)
	movl	$31, -104(%rbp)
	movl	$37, -100(%rbp)
	movl	$41, -96(%rbp)
	movl	$43, -92(%rbp)
	movl	$47, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movl	$0, -24(%rbp)
	leaq	-184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -180(%rbp)
	jmp	.L2
.L9:
	movl	-180(%rbp), %eax
	movl	%eax, -176(%rbp)
	movl	$0, -172(%rbp)
	jmp	.L3
.L8:
	movl	-172(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	%eax, -176(%rbp)
	jl	.L22
	jmp	.L6
.L7:
	movl	-172(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %ecx
	movl	-176(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, -176(%rbp)
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	%edx, -80(%rbp,%rax,4)
.L6:
	movl	-172(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %ecx
	movl	-176(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L7
	addl	$1, -172(%rbp)
.L3:
	cmpl	$14, -172(%rbp)
	jle	.L8
	jmp	.L5
.L22:
	nop
.L5:
	addl	$1, -180(%rbp)
.L2:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jle	.L9
	movl	$0, -168(%rbp)
	movl	$0, -164(%rbp)
	movl	$0, -160(%rbp)
	movl	$0, -156(%rbp)
	movl	$0, -152(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L10
.L16:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L11
	addl	$1, -168(%rbp)
.L11:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L12
	addl	$1, -164(%rbp)
.L12:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L13
	addl	$1, -160(%rbp)
.L13:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L14
	addl	$1, -156(%rbp)
.L14:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L15
	addl	$1, -152(%rbp)
.L15:
	addl	$1, -148(%rbp)
.L10:
	cmpl	$14, -148(%rbp)
	jle	.L16
	cmpl	$1, -168(%rbp)
	jle	.L17
	cmpl	$2, -164(%rbp)
	jg	.L18
.L17:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L18:
	movl	-168(%rbp), %eax
	subl	$1, %eax
	imull	-168(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-164(%rbp), %eax
	subl	$2, %eax
	imull	%eax, %edx
	movl	-168(%rbp), %eax
	subl	$1, %eax
	imull	-160(%rbp), %eax
	addl	%eax, %edx
	movl	-164(%rbp), %eax
	subl	$1, %eax
	imull	-156(%rbp), %eax
	addl	%eax, %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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	"0"
.LC2:
	.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	$192, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2, -144(%rbp)
	movl	$3, -140(%rbp)
	movl	$5, -136(%rbp)
	movl	$7, -132(%rbp)
	movl	$11, -128(%rbp)
	movl	$13, -124(%rbp)
	movl	$17, -120(%rbp)
	movl	$19, -116(%rbp)
	movl	$23, -112(%rbp)
	movl	$29, -108(%rbp)
	movl	$31, -104(%rbp)
	movl	$37, -100(%rbp)
	movl	$41, -96(%rbp)
	movl	$43, -92(%rbp)
	movl	$47, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movl	$0, -24(%rbp)
	leaq	-184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -180(%rbp)
	jmp	.L2
.L9:
	movl	-180(%rbp), %eax
	movl	%eax, -176(%rbp)
	movl	$0, -172(%rbp)
	jmp	.L3
.L8:
	movl	-172(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	%eax, -176(%rbp)
	jl	.L22
	jmp	.L6
.L7:
	movl	-172(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %ecx
	movl	-176(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, -176(%rbp)
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	%edx, -80(%rbp,%rax,4)
.L6:
	movl	-172(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %ecx
	movl	-176(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L7
	addl	$1, -172(%rbp)
.L3:
	cmpl	$14, -172(%rbp)
	jle	.L8
	jmp	.L5
.L22:
	nop
.L5:
	addl	$1, -180(%rbp)
.L2:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jle	.L9
	movl	$0, -168(%rbp)
	movl	$0, -164(%rbp)
	movl	$0, -160(%rbp)
	movl	$0, -156(%rbp)
	movl	$0, -152(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L10
.L16:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L11
	addl	$1, -168(%rbp)
.L11:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L12
	addl	$1, -164(%rbp)
.L12:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L13
	addl	$1, -160(%rbp)
.L13:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L14
	addl	$1, -156(%rbp)
.L14:
	movl	-148(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L15
	addl	$1, -152(%rbp)
.L15:
	addl	$1, -148(%rbp)
.L10:
	cmpl	$14, -148(%rbp)
	jle	.L16
	cmpl	$1, -168(%rbp)
	jle	.L17
	cmpl	$2, -164(%rbp)
	jg	.L18
.L17:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L19
.L18:
	movl	-168(%rbp), %eax
	subl	$1, %eax
	imull	-168(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-164(%rbp), %eax
	subl	$2, %eax
	imull	%eax, %edx
	movl	-168(%rbp), %eax
	subl	$1, %eax
	imull	-160(%rbp), %eax
	addl	%eax, %edx
	movl	-164(%rbp), %eax
	subl	$1, %eax
	imull	-156(%rbp), %eax
	addl	%eax, %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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:
