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 n;
	int result = 0;
  int result2 = 0;
	int kai[130] = {};
	int num[130] = {};
	int sosu[26] = { 2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101 };
	scanf("%d", &n);
	for (int i = 1; i <= n; i++) {
		kai[i] = i;
	}
	for (int i = 0; sosu[i] <= n; i++) {
		for (int j = 1; j <= n; j++) {
			for (int k = 1; k <= 6; k++) {
				if (kai[j] % sosu[i] == 0) {
					num[sosu[i]]++;
					kai[j] /= sosu[i];
				}
			}
		}
	}
	for (int i = 0; sosu[i] <= n; i++) {
		if (num[sosu[i]] >= 74) {
			result++;
		}
	}

	for (int i = 25;  i >= 0; i--) {
		if (num[sosu[i]] >= 2) {
			for (int j = 25; j >= 0; j--) {
				if (num[sosu[j]] >= 24) {
					if (sosu[i] != sosu[j]) {
						result++;
					}
				}
			}
		}
	}

	for (int i = 25;  i >= 0; i--) {
		if (num[sosu[i]] >= 4) {
			for (int j = 25;  j >= 0; j--) {
				if (num[sosu[j]] >= 14) {
					if (sosu[i] !=sosu[j]) {
						result++;
                      
					}
				}
			}
		}
	}

	for (int i = 25; i>=0; i--) {
		if (num[sosu[i]] >= 2) {
			for (int j = 25; j >= 0; j--) {
				if (num[sosu[j]] >= 4) {
					for (int k = 25;  k >= 0; k--) {
						if (num[sosu[k]] >= 4) {
                        
							if (sosu[i] != sosu[j] && sosu[i] !=sosu[k] && sosu[k] != sosu[j]) {
								result2++;
							}
						}
					}
				}
			}
		}
	}
  result+=result2/2;
	printf("%d", result);
  for (int i = 0; sosu[i] <= n; i++) {
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$1232, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1228(%rbp)
	movl	$0, -1224(%rbp)
	leaq	-1056(%rbp), %rdx
	movl	$0, %eax
	movl	$65, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-528(%rbp), %rdx
	movl	$0, %eax
	movl	$65, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$2, -1168(%rbp)
	movl	$3, -1164(%rbp)
	movl	$5, -1160(%rbp)
	movl	$7, -1156(%rbp)
	movl	$11, -1152(%rbp)
	movl	$13, -1148(%rbp)
	movl	$17, -1144(%rbp)
	movl	$19, -1140(%rbp)
	movl	$23, -1136(%rbp)
	movl	$29, -1132(%rbp)
	movl	$31, -1128(%rbp)
	movl	$37, -1124(%rbp)
	movl	$41, -1120(%rbp)
	movl	$43, -1116(%rbp)
	movl	$47, -1112(%rbp)
	movl	$53, -1108(%rbp)
	movl	$59, -1104(%rbp)
	movl	$61, -1100(%rbp)
	movl	$67, -1096(%rbp)
	movl	$71, -1092(%rbp)
	movl	$73, -1088(%rbp)
	movl	$79, -1084(%rbp)
	movl	$83, -1080(%rbp)
	movl	$89, -1076(%rbp)
	movl	$97, -1072(%rbp)
	movl	$101, -1068(%rbp)
	leaq	-1232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1220(%rbp)
	jmp	.L2
.L3:
	movl	-1220(%rbp), %eax
	cltq
	movl	-1220(%rbp), %edx
	movl	%edx, -1056(%rbp,%rax,4)
	addl	$1, -1220(%rbp)
.L2:
	movl	-1232(%rbp), %eax
	cmpl	%eax, -1220(%rbp)
	jle	.L3
	movl	$0, -1216(%rbp)
	jmp	.L4
.L10:
	movl	$1, -1212(%rbp)
	jmp	.L5
.L9:
	movl	$1, -1208(%rbp)
	jmp	.L6
.L8:
	movl	-1212(%rbp), %eax
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	movl	-1216(%rbp), %edx
	movslq	%edx, %rdx
	movl	-1168(%rbp,%rdx,4), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-1216(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-528(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -528(%rbp,%rax,4)
	movl	-1212(%rbp), %eax
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	movl	-1216(%rbp), %edx
	movslq	%edx, %rdx
	movl	-1168(%rbp,%rdx,4), %esi
	cltd
	idivl	%esi
	movl	%eax, %edx
	movl	-1212(%rbp), %eax
	cltq
	movl	%edx, -1056(%rbp,%rax,4)
.L7:
	addl	$1, -1208(%rbp)
.L6:
	cmpl	$6, -1208(%rbp)
	jle	.L8
	addl	$1, -1212(%rbp)
.L5:
	movl	-1232(%rbp), %eax
	cmpl	%eax, -1212(%rbp)
	jle	.L9
	addl	$1, -1216(%rbp)
.L4:
	movl	-1216(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	$0, -1204(%rbp)
	jmp	.L11
.L13:
	movl	-1204(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L12
	addl	$1, -1228(%rbp)
.L12:
	addl	$1, -1204(%rbp)
.L11:
	movl	-1204(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	$25, -1200(%rbp)
	jmp	.L14
.L19:
	movl	-1200(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L15
	movl	$25, -1196(%rbp)
	jmp	.L16
.L18:
	movl	-1196(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L17
	movl	-1200(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1196(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L17
	addl	$1, -1228(%rbp)
.L17:
	subl	$1, -1196(%rbp)
.L16:
	cmpl	$0, -1196(%rbp)
	jns	.L18
.L15:
	subl	$1, -1200(%rbp)
.L14:
	cmpl	$0, -1200(%rbp)
	jns	.L19
	movl	$25, -1192(%rbp)
	jmp	.L20
.L25:
	movl	-1192(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L21
	movl	$25, -1188(%rbp)
	jmp	.L22
.L24:
	movl	-1188(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L23
	movl	-1192(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1188(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L23
	addl	$1, -1228(%rbp)
.L23:
	subl	$1, -1188(%rbp)
.L22:
	cmpl	$0, -1188(%rbp)
	jns	.L24
.L21:
	subl	$1, -1192(%rbp)
.L20:
	cmpl	$0, -1192(%rbp)
	jns	.L25
	movl	$25, -1184(%rbp)
	jmp	.L26
.L34:
	movl	-1184(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L27
	movl	$25, -1180(%rbp)
	jmp	.L28
.L33:
	movl	-1180(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L29
	movl	$25, -1176(%rbp)
	jmp	.L30
.L32:
	movl	-1176(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L31
	movl	-1184(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1180(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L31
	movl	-1184(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1176(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L31
	movl	-1176(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1180(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L31
	addl	$1, -1224(%rbp)
.L31:
	subl	$1, -1176(%rbp)
.L30:
	cmpl	$0, -1176(%rbp)
	jns	.L32
.L29:
	subl	$1, -1180(%rbp)
.L28:
	cmpl	$0, -1180(%rbp)
	jns	.L33
.L27:
	subl	$1, -1184(%rbp)
.L26:
	cmpl	$0, -1184(%rbp)
	jns	.L34
	movl	-1224(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	%eax, -1228(%rbp)
	movl	-1228(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -1172(%rbp)
	jmp	.L35
.L36:
	addl	$1, -1172(%rbp)
.L35:
	movl	-1172(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L36
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	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
.LC8:
	.string	"%d"
	.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
	movl	$65, %ecx
	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	$1192, %rsp
	.cfi_def_cfa_offset 1248
	movdqa	.LC1(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 1176(%rsp)
	xorl	%eax, %eax
	leaq	128(%rsp), %rdi
	leaq	12(%rsp), %r12
	movaps	%xmm0, 16(%rsp)
	movdqa	.LC2(%rip), %xmm0
	movq	%r12, %rsi
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC3(%rip), %xmm0
	movaps	%xmm0, 48(%rsp)
	movdqa	.LC4(%rip), %xmm0
	rep stosq
	leaq	656(%rsp), %rdi
	movl	$65, %ecx
	rep stosq
	movaps	%xmm0, 64(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movq	.LC7(%rip), %rax
	leaq	.LC8(%rip), %rdi
	movaps	%xmm0, 80(%rsp)
	movdqa	.LC6(%rip), %xmm0
	movq	%rax, 112(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 96(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L68
	leal	-1(%r10), %edx
	cmpl	$2, %edx
	jbe	.L36
	movl	%r10d, %ecx
	leaq	132(%rsp), %rbp
	movdqa	.LC0(%rip), %xmm0
	movdqa	.LC9(%rip), %xmm2
	shrl	$2, %ecx
	movq	%rbp, %rax
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	148(%rsp,%rcx), %rcx
.L6:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	movups	%xmm1, -16(%rax)
	cmpq	%rcx, %rax
	jne	.L6
	movl	%r10d, %ecx
	andl	$-4, %ecx
	leal	1(%rcx), %eax
	cmpl	%r10d, %ecx
	je	.L8
.L5:
	movslq	%eax, %rcx
	movl	%eax, 128(%rsp,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %r10d
	jl	.L10
	movslq	%ecx, %rsi
	addl	$2, %eax
	movl	%ecx, 128(%rsp,%rsi,4)
	cmpl	%eax, %r10d
	jl	.L67
	movslq	%eax, %rcx
	movl	%eax, 128(%rsp,%rcx,4)
.L67:
	leaq	132(%rsp), %rbp
.L8:
	leaq	20(%rsp), %r11
	leaq	136(%rsp,%rdx,4), %r9
	movl	$2, %ecx
	movq	%r11, %rbx
.L4:
	movq	%rbp, %rsi
	movslq	%ecx, %r8
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rsi), %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	movl	656(%rsp,%r8,4), %edi
	movl	%eax, (%rsi)
	leal	1(%rdi), %edx
	movl	%edx, 656(%rsp,%r8,4)
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	leal	2(%rdi), %edx
	movl	%eax, (%rsi)
	movl	%edx, 656(%rsp,%r8,4)
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	leal	3(%rdi), %edx
	movl	%eax, (%rsi)
	movl	%edx, 656(%rsp,%r8,4)
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	leal	4(%rdi), %edx
	movl	%eax, (%rsi)
	movl	%edx, 656(%rsp,%r8,4)
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	leal	5(%rdi), %edx
	movl	%eax, (%rsi)
	movl	%edx, 656(%rsp,%r8,4)
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	addl	$6, %edi
	movl	%eax, (%rsi)
	movl	%edi, 656(%rsp,%r8,4)
.L34:
	addq	$4, %rsi
	cmpq	%r9, %rsi
	jne	.L16
	movl	(%rbx), %ecx
	addq	$4, %rbx
	cmpl	%r10d, %ecx
	jle	.L4
	xorl	%ebp, %ebp
	movl	$2, %eax
.L17:
	cmpl	$73, 656(%rsp,%rax,4)
	jle	.L18
	addl	$1, %ebp
.L18:
	movslq	(%r11), %rax
	addq	$4, %r11
	cmpl	%eax, %r10d
	jge	.L17
.L3:
	leaq	116(%rsp), %r14
	leaq	16(%rsp), %r8
	movq	%r14, %rdi
	jmp	.L22
.L19:
	leaq	-4(%rdi), %rax
	cmpq	%r8, %rdi
	je	.L70
.L39:
	movq	%rax, %rdi
.L22:
	movslq	(%rdi), %rax
	cmpl	$1, 656(%rsp,%rax,4)
	movq	%rax, %rsi
	jle	.L19
	movq	%r14, %rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L38:
	movq	%rdx, %rax
.L21:
	movslq	(%rax), %rcx
	cmpl	$23, 656(%rsp,%rcx,4)
	jle	.L20
	cmpl	%ecx, %esi
	setne	%dl
	cmpb	$1, %dl
	sbbl	$-1, %ebp
.L20:
	leaq	-4(%rax), %rdx
	cmpq	%rax, %r8
	jne	.L38
	leaq	-4(%rdi), %rax
	cmpq	%r8, %rdi
	jne	.L39
.L70:
	movq	%r14, %rdi
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L23:
	leaq	-4(%rdi), %rax
	cmpq	%r8, %rdi
	je	.L71
.L41:
	movq	%rax, %rdi
.L26:
	movslq	(%rdi), %rax
	cmpl	$3, 656(%rsp,%rax,4)
	movq	%rax, %rsi
	jle	.L23
	movq	%r14, %rax
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L40:
	movq	%rdx, %rax
.L25:
	movslq	(%rax), %rcx
	cmpl	$13, 656(%rsp,%rcx,4)
	jle	.L24
	cmpl	%ecx, %esi
	setne	%dl
	cmpb	$1, %dl
	sbbl	$-1, %ebp
.L24:
	leaq	-4(%rax), %rdx
	cmpq	%r8, %rax
	jne	.L40
	leaq	-4(%rdi), %rax
	cmpq	%r8, %rdi
	jne	.L41
.L71:
	leaq	112(%rsp), %r15
	movl	$101, %r10d
	xorl	%r9d, %r9d
	movq	%r15, %r13
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L27:
	cmpq	%r12, %r13
	je	.L32
	movl	0(%r13), %r10d
	subq	$4, %r13
.L33:
	movslq	%r10d, %rax
	cmpl	$1, 656(%rsp,%rax,4)
	jle	.L27
	movq	%r15, %r11
	movl	$101, %esi
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L28:
	cmpq	%r12, %r11
	je	.L27
	movl	(%r11), %esi
	subq	$4, %r11
.L31:
	movslq	%esi, %rax
	cmpl	$3, 656(%rsp,%rax,4)
	jle	.L28
	cmpl	%esi, %r10d
	movq	%r14, %rdx
	setne	%dil
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L42:
	movq	%rax, %rdx
.L30:
	movslq	(%rdx), %rax
	cmpl	%esi, %eax
	setne	%cl
	cmpl	%r10d, %eax
	setne	%bl
	andl	%ebx, %ecx
	testb	%dil, %cl
	je	.L29
	cmpl	$3, 656(%rsp,%rax,4)
	setg	%al
	cmpb	$1, %al
	sbbl	$-1, %r9d
.L29:
	leaq	-4(%rdx), %rax
	cmpq	%r8, %rdx
	jne	.L42
	jmp	.L28
.L32:
	movl	%r9d, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	sarl	%edx
	leaq	.LC8(%rip), %rsi
	addl	%ebp, %edx
	call	__printf_chk@PLT
	movq	1176(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L72
	addq	$1192, %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
.L10:
	.cfi_restore_state
	leaq	132(%rsp), %rbp
	cmpl	$1, %r10d
	jg	.L8
.L68:
	xorl	%ebp, %ebp
	jmp	.L3
.L36:
	movl	$1, %eax
	jmp	.L5
.L72:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.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
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC7:
	.long	97
	.long	101
	.section	.rodata.cst16
	.align 16
.LC9:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
.LC8:
	.string	"%d"
	.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
	movl	$65, %ecx
	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	$1192, %rsp
	.cfi_def_cfa_offset 1248
	movdqa	.LC1(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 1176(%rsp)
	xorl	%eax, %eax
	leaq	128(%rsp), %rdi
	leaq	12(%rsp), %r12
	movaps	%xmm0, 16(%rsp)
	movdqa	.LC2(%rip), %xmm0
	movq	%r12, %rsi
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC3(%rip), %xmm0
	movaps	%xmm0, 48(%rsp)
	movdqa	.LC4(%rip), %xmm0
	rep stosq
	leaq	656(%rsp), %rdi
	movl	$65, %ecx
	rep stosq
	movaps	%xmm0, 64(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movq	.LC7(%rip), %rax
	leaq	.LC8(%rip), %rdi
	movaps	%xmm0, 80(%rsp)
	movdqa	.LC6(%rip), %xmm0
	movq	%rax, 112(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 96(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L68
	leal	-1(%r10), %edx
	cmpl	$2, %edx
	jbe	.L36
	movl	%r10d, %ecx
	leaq	132(%rsp), %rbp
	movdqa	.LC0(%rip), %xmm0
	movdqa	.LC9(%rip), %xmm2
	shrl	$2, %ecx
	movq	%rbp, %rax
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	148(%rsp,%rcx), %rcx
.L6:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	movups	%xmm1, -16(%rax)
	cmpq	%rcx, %rax
	jne	.L6
	movl	%r10d, %ecx
	andl	$-4, %ecx
	leal	1(%rcx), %eax
	cmpl	%r10d, %ecx
	je	.L8
.L5:
	movslq	%eax, %rcx
	movl	%eax, 128(%rsp,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %r10d
	jl	.L10
	movslq	%ecx, %rsi
	addl	$2, %eax
	movl	%ecx, 128(%rsp,%rsi,4)
	cmpl	%eax, %r10d
	jl	.L67
	movslq	%eax, %rcx
	movl	%eax, 128(%rsp,%rcx,4)
.L67:
	leaq	132(%rsp), %rbp
.L8:
	leaq	20(%rsp), %r11
	leaq	136(%rsp,%rdx,4), %r9
	movl	$2, %ecx
	movq	%r11, %rbx
.L4:
	movq	%rbp, %rsi
	movslq	%ecx, %r8
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rsi), %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	movl	656(%rsp,%r8,4), %edi
	movl	%eax, (%rsi)
	leal	1(%rdi), %edx
	movl	%edx, 656(%rsp,%r8,4)
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	leal	2(%rdi), %edx
	movl	%eax, (%rsi)
	movl	%edx, 656(%rsp,%r8,4)
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	leal	3(%rdi), %edx
	movl	%eax, (%rsi)
	movl	%edx, 656(%rsp,%r8,4)
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	leal	4(%rdi), %edx
	movl	%eax, (%rsi)
	movl	%edx, 656(%rsp,%r8,4)
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	leal	5(%rdi), %edx
	movl	%eax, (%rsi)
	movl	%edx, 656(%rsp,%r8,4)
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L34
	addl	$6, %edi
	movl	%eax, (%rsi)
	movl	%edi, 656(%rsp,%r8,4)
.L34:
	addq	$4, %rsi
	cmpq	%r9, %rsi
	jne	.L16
	movl	(%rbx), %ecx
	addq	$4, %rbx
	cmpl	%r10d, %ecx
	jle	.L4
	xorl	%ebp, %ebp
	movl	$2, %eax
.L17:
	cmpl	$73, 656(%rsp,%rax,4)
	jle	.L18
	addl	$1, %ebp
.L18:
	movslq	(%r11), %rax
	addq	$4, %r11
	cmpl	%eax, %r10d
	jge	.L17
.L3:
	leaq	116(%rsp), %r14
	leaq	16(%rsp), %r8
	movq	%r14, %rdi
	jmp	.L22
.L19:
	leaq	-4(%rdi), %rax
	cmpq	%r8, %rdi
	je	.L70
.L39:
	movq	%rax, %rdi
.L22:
	movslq	(%rdi), %rax
	cmpl	$1, 656(%rsp,%rax,4)
	movq	%rax, %rsi
	jle	.L19
	movq	%r14, %rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L38:
	movq	%rdx, %rax
.L21:
	movslq	(%rax), %rcx
	cmpl	$23, 656(%rsp,%rcx,4)
	jle	.L20
	cmpl	%ecx, %esi
	setne	%dl
	cmpb	$1, %dl
	sbbl	$-1, %ebp
.L20:
	leaq	-4(%rax), %rdx
	cmpq	%rax, %r8
	jne	.L38
	leaq	-4(%rdi), %rax
	cmpq	%r8, %rdi
	jne	.L39
.L70:
	movq	%r14, %rdi
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L23:
	leaq	-4(%rdi), %rax
	cmpq	%r8, %rdi
	je	.L71
.L41:
	movq	%rax, %rdi
.L26:
	movslq	(%rdi), %rax
	cmpl	$3, 656(%rsp,%rax,4)
	movq	%rax, %rsi
	jle	.L23
	movq	%r14, %rax
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L40:
	movq	%rdx, %rax
.L25:
	movslq	(%rax), %rcx
	cmpl	$13, 656(%rsp,%rcx,4)
	jle	.L24
	cmpl	%ecx, %esi
	setne	%dl
	cmpb	$1, %dl
	sbbl	$-1, %ebp
.L24:
	leaq	-4(%rax), %rdx
	cmpq	%r8, %rax
	jne	.L40
	leaq	-4(%rdi), %rax
	cmpq	%r8, %rdi
	jne	.L41
.L71:
	leaq	112(%rsp), %r15
	movl	$101, %r10d
	xorl	%r9d, %r9d
	movq	%r15, %r13
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L27:
	cmpq	%r12, %r13
	je	.L32
	movl	0(%r13), %r10d
	subq	$4, %r13
.L33:
	movslq	%r10d, %rax
	cmpl	$1, 656(%rsp,%rax,4)
	jle	.L27
	movq	%r15, %r11
	movl	$101, %esi
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L28:
	cmpq	%r12, %r11
	je	.L27
	movl	(%r11), %esi
	subq	$4, %r11
.L31:
	movslq	%esi, %rax
	cmpl	$3, 656(%rsp,%rax,4)
	jle	.L28
	cmpl	%esi, %r10d
	movq	%r14, %rdx
	setne	%dil
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L42:
	movq	%rax, %rdx
.L30:
	movslq	(%rdx), %rax
	cmpl	%esi, %eax
	setne	%cl
	cmpl	%r10d, %eax
	setne	%bl
	andl	%ebx, %ecx
	testb	%dil, %cl
	je	.L29
	cmpl	$3, 656(%rsp,%rax,4)
	setg	%al
	cmpb	$1, %al
	sbbl	$-1, %r9d
.L29:
	leaq	-4(%rdx), %rax
	cmpq	%r8, %rdx
	jne	.L42
	jmp	.L28
.L32:
	movl	%r9d, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	sarl	%edx
	leaq	.LC8(%rip), %rsi
	addl	%ebp, %edx
	call	__printf_chk@PLT
	movq	1176(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L72
	addq	$1192, %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
.L10:
	.cfi_restore_state
	leaq	132(%rsp), %rbp
	cmpl	$1, %r10d
	jg	.L8
.L68:
	xorl	%ebp, %ebp
	jmp	.L3
.L36:
	movl	$1, %eax
	jmp	.L5
.L72:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.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
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC7:
	.long	97
	.long	101
	.section	.rodata.cst16
	.align 16
.LC9:
	.long	4
	.long	4
	.long	4
	.long	4
	.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 n;
	int result = 0;
  int result2 = 0;
	int kai[130] = {};
	int num[130] = {};
	int sosu[26] = { 2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101 };
	scanf("%d", &n);
	for (int i = 1; i <= n; i++) {
		kai[i] = i;
	}
	for (int i = 0; sosu[i] <= n; i++) {
		for (int j = 1; j <= n; j++) {
			for (int k = 1; k <= 6; k++) {
				if (kai[j] % sosu[i] == 0) {
					num[sosu[i]]++;
					kai[j] /= sosu[i];
				}
			}
		}
	}
	for (int i = 0; sosu[i] <= n; i++) {
		if (num[sosu[i]] >= 74) {
			result++;
		}
	}

	for (int i = 25;  i >= 0; i--) {
		if (num[sosu[i]] >= 2) {
			for (int j = 25; j >= 0; j--) {
				if (num[sosu[j]] >= 24) {
					if (sosu[i] != sosu[j]) {
						result++;
					}
				}
			}
		}
	}

	for (int i = 25;  i >= 0; i--) {
		if (num[sosu[i]] >= 4) {
			for (int j = 25;  j >= 0; j--) {
				if (num[sosu[j]] >= 14) {
					if (sosu[i] !=sosu[j]) {
						result++;
                      
					}
				}
			}
		}
	}

	for (int i = 25; i>=0; i--) {
		if (num[sosu[i]] >= 2) {
			for (int j = 25; j >= 0; j--) {
				if (num[sosu[j]] >= 4) {
					for (int k = 25;  k >= 0; k--) {
						if (num[sosu[k]] >= 4) {
                        
							if (sosu[i] != sosu[j] && sosu[i] !=sosu[k] && sosu[k] != sosu[j]) {
								result2++;
							}
						}
					}
				}
			}
		}
	}
  result+=result2/2;
	printf("%d", result);
  for (int i = 0; sosu[i] <= n; i++) {
	}
}
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 n;
	int result = 0;
  int result2 = 0;
	int kai[130] = {};
	int num[130] = {};
	int sosu[26] = { 2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101 };
	scanf("%d", &n);
	for (int i = 1; i <= n; i++) {
		kai[i] = i;
	}
	for (int i = 0; sosu[i] <= n; i++) {
		for (int j = 1; j <= n; j++) {
			for (int k = 1; k <= 6; k++) {
				if (kai[j] % sosu[i] == 0) {
					num[sosu[i]]++;
					kai[j] /= sosu[i];
				}
			}
		}
	}
	for (int i = 0; sosu[i] <= n; i++) {
		if (num[sosu[i]] >= 74) {
			result++;
		}
	}

	for (int i = 25;  i >= 0; i--) {
		if (num[sosu[i]] >= 2) {
			for (int j = 25; j >= 0; j--) {
				if (num[sosu[j]] >= 24) {
					if (sosu[i] != sosu[j]) {
						result++;
					}
				}
			}
		}
	}

	for (int i = 25;  i >= 0; i--) {
		if (num[sosu[i]] >= 4) {
			for (int j = 25;  j >= 0; j--) {
				if (num[sosu[j]] >= 14) {
					if (sosu[i] !=sosu[j]) {
						result++;
                      
					}
				}
			}
		}
	}

	for (int i = 25; i>=0; i--) {
		if (num[sosu[i]] >= 2) {
			for (int j = 25; j >= 0; j--) {
				if (num[sosu[j]] >= 4) {
					for (int k = 25;  k >= 0; k--) {
						if (num[sosu[k]] >= 4) {
                        
							if (sosu[i] != sosu[j] && sosu[i] !=sosu[k] && sosu[k] != sosu[j]) {
								result2++;
							}
						}
					}
				}
			}
		}
	}
  result+=result2/2;
	printf("%d", result);
  for (int i = 0; sosu[i] <= n; i++) {
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$1232, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1228(%rbp)
	movl	$0, -1224(%rbp)
	leaq	-1056(%rbp), %rdx
	movl	$0, %eax
	movl	$65, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-528(%rbp), %rdx
	movl	$0, %eax
	movl	$65, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$2, -1168(%rbp)
	movl	$3, -1164(%rbp)
	movl	$5, -1160(%rbp)
	movl	$7, -1156(%rbp)
	movl	$11, -1152(%rbp)
	movl	$13, -1148(%rbp)
	movl	$17, -1144(%rbp)
	movl	$19, -1140(%rbp)
	movl	$23, -1136(%rbp)
	movl	$29, -1132(%rbp)
	movl	$31, -1128(%rbp)
	movl	$37, -1124(%rbp)
	movl	$41, -1120(%rbp)
	movl	$43, -1116(%rbp)
	movl	$47, -1112(%rbp)
	movl	$53, -1108(%rbp)
	movl	$59, -1104(%rbp)
	movl	$61, -1100(%rbp)
	movl	$67, -1096(%rbp)
	movl	$71, -1092(%rbp)
	movl	$73, -1088(%rbp)
	movl	$79, -1084(%rbp)
	movl	$83, -1080(%rbp)
	movl	$89, -1076(%rbp)
	movl	$97, -1072(%rbp)
	movl	$101, -1068(%rbp)
	leaq	-1232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1220(%rbp)
	jmp	.L2
.L3:
	movl	-1220(%rbp), %eax
	cltq
	movl	-1220(%rbp), %edx
	movl	%edx, -1056(%rbp,%rax,4)
	addl	$1, -1220(%rbp)
.L2:
	movl	-1232(%rbp), %eax
	cmpl	%eax, -1220(%rbp)
	jle	.L3
	movl	$0, -1216(%rbp)
	jmp	.L4
.L10:
	movl	$1, -1212(%rbp)
	jmp	.L5
.L9:
	movl	$1, -1208(%rbp)
	jmp	.L6
.L8:
	movl	-1212(%rbp), %eax
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	movl	-1216(%rbp), %edx
	movslq	%edx, %rdx
	movl	-1168(%rbp,%rdx,4), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-1216(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-528(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -528(%rbp,%rax,4)
	movl	-1212(%rbp), %eax
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	movl	-1216(%rbp), %edx
	movslq	%edx, %rdx
	movl	-1168(%rbp,%rdx,4), %esi
	cltd
	idivl	%esi
	movl	%eax, %edx
	movl	-1212(%rbp), %eax
	cltq
	movl	%edx, -1056(%rbp,%rax,4)
.L7:
	addl	$1, -1208(%rbp)
.L6:
	cmpl	$6, -1208(%rbp)
	jle	.L8
	addl	$1, -1212(%rbp)
.L5:
	movl	-1232(%rbp), %eax
	cmpl	%eax, -1212(%rbp)
	jle	.L9
	addl	$1, -1216(%rbp)
.L4:
	movl	-1216(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	$0, -1204(%rbp)
	jmp	.L11
.L13:
	movl	-1204(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L12
	addl	$1, -1228(%rbp)
.L12:
	addl	$1, -1204(%rbp)
.L11:
	movl	-1204(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	$25, -1200(%rbp)
	jmp	.L14
.L19:
	movl	-1200(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L15
	movl	$25, -1196(%rbp)
	jmp	.L16
.L18:
	movl	-1196(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L17
	movl	-1200(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1196(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L17
	addl	$1, -1228(%rbp)
.L17:
	subl	$1, -1196(%rbp)
.L16:
	cmpl	$0, -1196(%rbp)
	jns	.L18
.L15:
	subl	$1, -1200(%rbp)
.L14:
	cmpl	$0, -1200(%rbp)
	jns	.L19
	movl	$25, -1192(%rbp)
	jmp	.L20
.L25:
	movl	-1192(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L21
	movl	$25, -1188(%rbp)
	jmp	.L22
.L24:
	movl	-1188(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L23
	movl	-1192(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1188(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L23
	addl	$1, -1228(%rbp)
.L23:
	subl	$1, -1188(%rbp)
.L22:
	cmpl	$0, -1188(%rbp)
	jns	.L24
.L21:
	subl	$1, -1192(%rbp)
.L20:
	cmpl	$0, -1192(%rbp)
	jns	.L25
	movl	$25, -1184(%rbp)
	jmp	.L26
.L34:
	movl	-1184(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L27
	movl	$25, -1180(%rbp)
	jmp	.L28
.L33:
	movl	-1180(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L29
	movl	$25, -1176(%rbp)
	jmp	.L30
.L32:
	movl	-1176(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L31
	movl	-1184(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1180(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L31
	movl	-1184(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1176(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L31
	movl	-1176(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1180(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L31
	addl	$1, -1224(%rbp)
.L31:
	subl	$1, -1176(%rbp)
.L30:
	cmpl	$0, -1176(%rbp)
	jns	.L32
.L29:
	subl	$1, -1180(%rbp)
.L28:
	cmpl	$0, -1180(%rbp)
	jns	.L33
.L27:
	subl	$1, -1184(%rbp)
.L26:
	cmpl	$0, -1184(%rbp)
	jns	.L34
	movl	-1224(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	%eax, -1228(%rbp)
	movl	-1228(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -1172(%rbp)
	jmp	.L35
.L36:
	addl	$1, -1172(%rbp)
.L35:
	movl	-1172(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L36
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	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"
	.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	$1232, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1228(%rbp)
	movl	$0, -1224(%rbp)
	leaq	-1056(%rbp), %rdx
	movl	$0, %eax
	movl	$65, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-528(%rbp), %rdx
	movl	$0, %eax
	movl	$65, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$2, -1168(%rbp)
	movl	$3, -1164(%rbp)
	movl	$5, -1160(%rbp)
	movl	$7, -1156(%rbp)
	movl	$11, -1152(%rbp)
	movl	$13, -1148(%rbp)
	movl	$17, -1144(%rbp)
	movl	$19, -1140(%rbp)
	movl	$23, -1136(%rbp)
	movl	$29, -1132(%rbp)
	movl	$31, -1128(%rbp)
	movl	$37, -1124(%rbp)
	movl	$41, -1120(%rbp)
	movl	$43, -1116(%rbp)
	movl	$47, -1112(%rbp)
	movl	$53, -1108(%rbp)
	movl	$59, -1104(%rbp)
	movl	$61, -1100(%rbp)
	movl	$67, -1096(%rbp)
	movl	$71, -1092(%rbp)
	movl	$73, -1088(%rbp)
	movl	$79, -1084(%rbp)
	movl	$83, -1080(%rbp)
	movl	$89, -1076(%rbp)
	movl	$97, -1072(%rbp)
	movl	$101, -1068(%rbp)
	leaq	-1232(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1220(%rbp)
	jmp	.L2
.L3:
	movl	-1220(%rbp), %eax
	cltq
	movl	-1220(%rbp), %edx
	movl	%edx, -1056(%rbp,%rax,4)
	addl	$1, -1220(%rbp)
.L2:
	movl	-1232(%rbp), %eax
	cmpl	%eax, -1220(%rbp)
	jle	.L3
	movl	$0, -1216(%rbp)
	jmp	.L4
.L10:
	movl	$1, -1212(%rbp)
	jmp	.L5
.L9:
	movl	$1, -1208(%rbp)
	jmp	.L6
.L8:
	movl	-1212(%rbp), %eax
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	movl	-1216(%rbp), %edx
	movslq	%edx, %rdx
	movl	-1168(%rbp,%rdx,4), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-1216(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-528(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -528(%rbp,%rax,4)
	movl	-1212(%rbp), %eax
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	movl	-1216(%rbp), %edx
	movslq	%edx, %rdx
	movl	-1168(%rbp,%rdx,4), %esi
	cltd
	idivl	%esi
	movl	%eax, %edx
	movl	-1212(%rbp), %eax
	cltq
	movl	%edx, -1056(%rbp,%rax,4)
.L7:
	addl	$1, -1208(%rbp)
.L6:
	cmpl	$6, -1208(%rbp)
	jle	.L8
	addl	$1, -1212(%rbp)
.L5:
	movl	-1232(%rbp), %eax
	cmpl	%eax, -1212(%rbp)
	jle	.L9
	addl	$1, -1216(%rbp)
.L4:
	movl	-1216(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	$0, -1204(%rbp)
	jmp	.L11
.L13:
	movl	-1204(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$73, %eax
	jle	.L12
	addl	$1, -1228(%rbp)
.L12:
	addl	$1, -1204(%rbp)
.L11:
	movl	-1204(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	$25, -1200(%rbp)
	jmp	.L14
.L19:
	movl	-1200(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L15
	movl	$25, -1196(%rbp)
	jmp	.L16
.L18:
	movl	-1196(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$23, %eax
	jle	.L17
	movl	-1200(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1196(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L17
	addl	$1, -1228(%rbp)
.L17:
	subl	$1, -1196(%rbp)
.L16:
	cmpl	$0, -1196(%rbp)
	jns	.L18
.L15:
	subl	$1, -1200(%rbp)
.L14:
	cmpl	$0, -1200(%rbp)
	jns	.L19
	movl	$25, -1192(%rbp)
	jmp	.L20
.L25:
	movl	-1192(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L21
	movl	$25, -1188(%rbp)
	jmp	.L22
.L24:
	movl	-1188(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$13, %eax
	jle	.L23
	movl	-1192(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1188(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L23
	addl	$1, -1228(%rbp)
.L23:
	subl	$1, -1188(%rbp)
.L22:
	cmpl	$0, -1188(%rbp)
	jns	.L24
.L21:
	subl	$1, -1192(%rbp)
.L20:
	cmpl	$0, -1192(%rbp)
	jns	.L25
	movl	$25, -1184(%rbp)
	jmp	.L26
.L34:
	movl	-1184(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L27
	movl	$25, -1180(%rbp)
	jmp	.L28
.L33:
	movl	-1180(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L29
	movl	$25, -1176(%rbp)
	jmp	.L30
.L32:
	movl	-1176(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cltq
	movl	-528(%rbp,%rax,4), %eax
	cmpl	$3, %eax
	jle	.L31
	movl	-1184(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1180(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L31
	movl	-1184(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1176(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L31
	movl	-1176(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1180(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L31
	addl	$1, -1224(%rbp)
.L31:
	subl	$1, -1176(%rbp)
.L30:
	cmpl	$0, -1176(%rbp)
	jns	.L32
.L29:
	subl	$1, -1180(%rbp)
.L28:
	cmpl	$0, -1180(%rbp)
	jns	.L33
.L27:
	subl	$1, -1184(%rbp)
.L26:
	cmpl	$0, -1184(%rbp)
	jns	.L34
	movl	-1224(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	%eax, -1228(%rbp)
	movl	-1228(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -1172(%rbp)
	jmp	.L35
.L36:
	addl	$1, -1172(%rbp)
.L35:
	movl	-1172(%rbp), %eax
	cltq
	movl	-1168(%rbp,%rax,4), %edx
	movl	-1232(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L36
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	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:
