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 SosuIndex[100];
int Soinsu[100];
int c=1;
void Sosu(int N){
    int b=0;
    for(int n=3;n<=N;n++){
        b=0;
        for(int i=0;i<c;i++){
            if(n%SosuIndex[i]==0)b++;
        }
        if(b==0){SosuIndex[c]=n;c++;}
    }
}
int main(void){
    SosuIndex[0]=2;
    long N,cou1=0,cou2=0,x=0,y=0,z=0,q=0;
    scanf("%ld",&N);
    Sosu(N);
    for(int i=0;i<100;i++){Soinsu[i]=0;}
    for(int i=0;i<c;i++){
        for(int j=2;j<=N;j++){
            int J=j;
            while(J%SosuIndex[i]==0 && J!=0){
                Soinsu[i]++;
                J/=SosuIndex[i];
            }
        }
    }
    for(int i=0;i<c;i++){
        if(Soinsu[i]>=14)cou1++;
        if(Soinsu[i]<14 && Soinsu[i]>=4)cou2++;
    }
    if(cou1>=2 || (cou1>=1 && cou2>=1))
        x=cou2*cou1+(cou1)*(cou1-1);
    cou1=0;cou2=0;
    
    for(int i=0;i<c;i++){
        if(Soinsu[i]>=24)cou1++;
        if(Soinsu[i]<24 && Soinsu[i]>=2)cou2++;
    }
    if(cou1>=2 || (cou1>=1 && cou2>=1))
        y=cou2*cou1+(cou1)*(cou1-1);
    cou1=0;cou2=0;
    
    for(int i=0;i<c;i++){if(Soinsu[i]>=74)cou1++;}
    z=cou1;
    cou1=0;cou2=0;
    
    for(int i=0;i<c;i++){
        if(Soinsu[i]>=4)cou1++;
        if(Soinsu[i]<4 && Soinsu[i]>=2)cou2++;
    }
    if(cou1>=3 || (cou1>=2 && cou2>=1))
        q=cou2*(cou1)*(cou1-1)/2+(cou1)*(cou1-1)*(cou1-2)/2;
    cou1=0;cou2=0;
    
    long p=x+y+z+q;
    printf("%ld\n",p);
    return 0;
}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	SosuIndex
	.bss
	.align 32
	.type	SosuIndex, @object
	.size	SosuIndex, 400
SosuIndex:
	.zero	400
	.globl	Soinsu
	.align 32
	.type	Soinsu, @object
	.size	Soinsu, 400
Soinsu:
	.zero	400
	.globl	c
	.data
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.long	1
	.text
	.globl	Sosu
	.type	Sosu, @function
Sosu:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	$3, -8(%rbp)
	jmp	.L2
.L7:
	movl	$0, -12(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L3
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	SosuIndex(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L4
	addl	$1, -12(%rbp)
.L4:
	addl	$1, -4(%rbp)
.L3:
	movl	c(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
	cmpl	$0, -12(%rbp)
	jne	.L6
	movl	c(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	SosuIndex(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	c(%rip), %eax
	addl	$1, %eax
	movl	%eax, c(%rip)
.L6:
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Sosu, .-Sosu
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2, SosuIndex(%rip)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -24(%rbp)
	movq	$0, -32(%rbp)
	leaq	-72(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	movl	%eax, %edi
	call	Sosu
	movl	$0, -104(%rbp)
	jmp	.L9
.L10:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -104(%rbp)
.L9:
	cmpl	$99, -104(%rbp)
	jle	.L10
	movl	$0, -100(%rbp)
	jmp	.L11
.L17:
	movl	$2, -96(%rbp)
	jmp	.L12
.L16:
	movl	-96(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L13
.L15:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	SosuIndex(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-92(%rbp), %eax
	cltd
	idivl	%esi
	movl	%eax, -92(%rbp)
.L13:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	SosuIndex(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L14
	cmpl	$0, -92(%rbp)
	jne	.L15
.L14:
	addl	$1, -96(%rbp)
.L12:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	-72(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L16
	addl	$1, -100(%rbp)
.L11:
	movl	c(%rip), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L17
	movl	$0, -88(%rbp)
	jmp	.L18
.L21:
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$13, %eax
	jle	.L19
	addq	$1, -64(%rbp)
.L19:
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$13, %eax
	jg	.L20
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$3, %eax
	jle	.L20
	addq	$1, -56(%rbp)
.L20:
	addl	$1, -88(%rbp)
.L18:
	movl	c(%rip), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L21
	cmpq	$1, -64(%rbp)
	jg	.L22
	cmpq	$0, -64(%rbp)
	jle	.L23
	cmpq	$0, -56(%rbp)
	jle	.L23
.L22:
	movq	-56(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -48(%rbp)
.L23:
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L24
.L27:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$23, %eax
	jle	.L25
	addq	$1, -64(%rbp)
.L25:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$23, %eax
	jg	.L26
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jle	.L26
	addq	$1, -56(%rbp)
.L26:
	addl	$1, -84(%rbp)
.L24:
	movl	c(%rip), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L27
	cmpq	$1, -64(%rbp)
	jg	.L28
	cmpq	$0, -64(%rbp)
	jle	.L29
	cmpq	$0, -56(%rbp)
	jle	.L29
.L28:
	movq	-56(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
.L29:
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L30
.L32:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$73, %eax
	jle	.L31
	addq	$1, -64(%rbp)
.L31:
	addl	$1, -80(%rbp)
.L30:
	movl	c(%rip), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L32
	movq	-64(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L33
.L36:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$3, %eax
	jle	.L34
	addq	$1, -64(%rbp)
.L34:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$3, %eax
	jg	.L35
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jle	.L35
	addq	$1, -56(%rbp)
.L35:
	addl	$1, -76(%rbp)
.L33:
	movl	c(%rip), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L36
	cmpq	$2, -64(%rbp)
	jg	.L37
	cmpq	$1, -64(%rbp)
	jle	.L38
	cmpq	$0, -56(%rbp)
	jle	.L38
.L37:
	movq	-56(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	-64(%rbp), %rdx
	subq	$1, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	-64(%rbp), %rax
	movq	-64(%rbp), %rdx
	subq	$2, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rcx, %rax
	movq	%rax, -32(%rbp)
.L38:
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	Sosu
	.type	Sosu, @function
Sosu:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	$2, %edi
	jle	.L17
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	c(%rip), %r9d
	leal	1(%rdi), %r10d
	leaq	SosuIndex(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	$3, %esi
	xorl	%ebx, %ebx
	leaq	4(%rbp), %r11
	.p2align 4,,10
	.p2align 3
.L4:
	testl	%r9d, %r9d
	jle	.L10
	leal	-1(%r9), %eax
	leaq	SosuIndex(%rip), %rcx
	xorl	%edi, %edi
	leaq	(%r11,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	cmpl	$1, %edx
	adcl	$0, %edi
	addq	$4, %rcx
	cmpq	%r8, %rcx
	jne	.L6
	testl	%edi, %edi
	je	.L10
.L7:
	addl	$1, %esi
	cmpl	%r10d, %esi
	jne	.L4
	testb	%bl, %bl
	je	.L1
	movl	%r9d, c(%rip)
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movslq	%r9d, %rax
	movl	$1, %ebx
	addl	$1, %r9d
	movl	%esi, 0(%rbp,%rax,4)
	jmp	.L7
.L17:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE23:
	.size	Sosu, .-Sosu
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC3:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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
	leaq	Soinsu(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movl	$2, SosuIndex(%rip)
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rdx
	movl	%edx, %edi
	movq	%rdx, 8(%rsp)
	call	Sosu
	movl	c(%rip), %ebx
	xorl	%eax, %eax
	movq	%r12, %rdi
	movl	$50, %ecx
	rep stosq
	testl	%ebx, %ebx
	jle	.L57
	movq	8(%rsp), %rdx
	leal	-1(%rbx), %r14d
	leaq	4(%r12), %r15
	cmpq	$1, %rdx
	jle	.L23
	leal	-1(%rbx), %eax
	leaq	4(%r12), %r15
	movq	%r12, %r10
	leaq	SosuIndex(%rip), %rbp
	movq	%rax, %r14
	leaq	(%r15,%rax,4), %r13
	leal	1(%rdx), %r11d
	.p2align 4,,10
	.p2align 3
.L24:
	movl	0(%rbp), %esi
	movl	$2, %r9d
	.p2align 4,,10
	.p2align 3
.L30:
	movl	%r9d, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	jne	.L29
	movl	(%r10), %eax
	movl	%r9d, %ecx
	leal	1(%rax), %edi
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L88:
	testl	%ecx, %ecx
	je	.L60
.L25:
	movl	%ecx, %eax
	movl	%edi, %r8d
	addl	$1, %edi
	cltd
	idivl	%esi
	cltd
	movl	%eax, %ecx
	idivl	%esi
	testl	%edx, %edx
	je	.L88
.L60:
	movl	%r8d, (%r10)
.L29:
	addl	$1, %r9d
	cmpl	%r11d, %r9d
	jne	.L30
	addq	$4, %r10
	addq	$4, %rbp
	cmpq	%r10, %r13
	jne	.L24
.L23:
	leaq	Soinsu(%rip), %rax
	leaq	(%r15,%r14,4), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	.L33
.L90:
	addq	$4, %rax
	addq	$1, %rcx
	cmpq	%rax, %rdi
	je	.L89
.L33:
	movl	(%rax), %edx
	cmpl	$13, %edx
	jg	.L90
	subl	$4, %edx
	cmpl	$10, %edx
	adcq	$0, %rsi
	addq	$4, %rax
	cmpq	%rax, %rdi
	jne	.L33
.L89:
	cmpq	$1, %rcx
	jle	.L34
.L53:
	leaq	-1(%rcx,%rsi), %rdi
	imulq	%rcx, %rdi
.L55:
	xorl	%eax, %eax
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	.L37
.L92:
	addq	$1, %rax
	addq	$1, %rcx
	cmpl	%eax, %ebx
	jle	.L91
.L37:
	movl	(%r12,%rax,4), %edx
	cmpl	$23, %edx
	jg	.L92
	subl	$2, %edx
	cmpl	$22, %edx
	adcq	$0, %rsi
	addq	$1, %rax
	cmpl	%eax, %ebx
	jg	.L37
.L91:
	cmpq	$1, %rcx
	jle	.L93
.L38:
	leaq	-1(%rsi,%rcx), %r9
	imulq	%rcx, %r9
.L52:
	testl	%ebx, %ebx
	movl	$1, %esi
	cmovg	%ebx, %esi
	cmpl	$3, %ebx
	jle	.L58
	movl	%esi, %edx
	leaq	Soinsu(%rip), %rax
	movdqa	.LC1(%rip), %xmm6
	movdqa	.LC2(%rip), %xmm5
	leaq	16(%rax), %rcx
	pxor	%xmm1, %xmm1
	shrl	$2, %edx
	pxor	%xmm4, %xmm4
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rcx, %rdx
.L41:
	movdqa	(%rax), %xmm0
	movdqa	%xmm4, %xmm2
	addq	$16, %rax
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm5, %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L41
	movdqa	%xmm1, %xmm0
	movl	%esi, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	andl	$3, %esi
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rcx
	je	.L42
.L40:
	movslq	%eax, %rdx
	cmpl	$73, (%r12,%rdx,4)
	jg	.L94
.L43:
	leal	1(%rax), %edx
	cmpl	%ebx, %edx
	jge	.L42
	movslq	%edx, %rdx
	cmpl	$73, (%r12,%rdx,4)
	jg	.L95
.L44:
	addl	$2, %eax
	cmpl	%eax, %ebx
	jle	.L42
	cltq
	cmpl	$73, (%r12,%rax,4)
	jg	.L96
.L42:
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	jmp	.L49
.L98:
	addq	$1, %rax
	addq	$1, %rsi
	cmpl	%eax, %ebx
	jle	.L97
.L49:
	movl	(%r12,%rax,4), %edx
	cmpl	$3, %edx
	jg	.L98
	subl	$2, %edx
	cmpl	$2, %edx
	adcq	$0, %r8
	addq	$1, %rax
	cmpl	%eax, %ebx
	jg	.L49
.L97:
	cmpq	$2, %rsi
	jle	.L99
.L50:
	leaq	-1(%rsi), %r10
	leaq	-2(%rsi), %rdx
	movq	%r10, %rax
	imulq	%rsi, %rax
	imulq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	%rsi, %rax
	imulq	%r8, %rax
	imulq	%r10, %rax
	movq	%rax, %rsi
	shrq	$63, %rsi
	addq	%rsi, %rax
	sarq	%rax
	addq	%rdx, %rax
.L22:
	leaq	(%rdi,%r9), %rdx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	addq	%rcx, %rdx
	addq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L100
	addq	$40, %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
.L94:
	.cfi_restore_state
	addq	$1, %rcx
	jmp	.L43
.L95:
	addq	$1, %rcx
	jmp	.L44
.L96:
	addq	$1, %rcx
	jmp	.L42
.L99:
	jne	.L59
	testq	%r8, %r8
	jg	.L50
.L59:
	xorl	%eax, %eax
	jmp	.L22
.L93:
	testq	%rsi, %rsi
	jle	.L61
	testb	$1, %cl
	jne	.L38
.L61:
	xorl	%r9d, %r9d
	jmp	.L52
.L34:
	testq	%rsi, %rsi
	jle	.L62
	testb	$1, %cl
	jne	.L53
.L62:
	xorl	%edi, %edi
	jmp	.L55
.L57:
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	.L22
.L58:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L40
.L100:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	c
	.data
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.long	1
	.globl	Soinsu
	.bss
	.align 32
	.type	Soinsu, @object
	.size	Soinsu, 400
Soinsu:
	.zero	400
	.globl	SosuIndex
	.align 32
	.type	SosuIndex, @object
	.size	SosuIndex, 400
SosuIndex:
	.zero	400
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	73
	.long	73
	.long	73
	.long	73
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.p2align 4
	.globl	Sosu
	.type	Sosu, @function
Sosu:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	$2, %edi
	jle	.L17
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	c(%rip), %r9d
	leal	1(%rdi), %r10d
	leaq	SosuIndex(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	$3, %esi
	xorl	%ebx, %ebx
	leaq	4(%rbp), %r11
	.p2align 4,,10
	.p2align 3
.L4:
	testl	%r9d, %r9d
	jle	.L10
	leal	-1(%r9), %eax
	leaq	SosuIndex(%rip), %rcx
	xorl	%edi, %edi
	leaq	(%r11,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	cmpl	$1, %edx
	adcl	$0, %edi
	addq	$4, %rcx
	cmpq	%r8, %rcx
	jne	.L6
	testl	%edi, %edi
	je	.L10
.L7:
	addl	$1, %esi
	cmpl	%r10d, %esi
	jne	.L4
	testb	%bl, %bl
	je	.L1
	movl	%r9d, c(%rip)
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movslq	%r9d, %rax
	movl	$1, %ebx
	addl	$1, %r9d
	movl	%esi, 0(%rbp,%rax,4)
	jmp	.L7
.L17:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE23:
	.size	Sosu, .-Sosu
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC3:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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
	leaq	Soinsu(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movl	$2, SosuIndex(%rip)
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rdx
	movl	%edx, %edi
	movq	%rdx, 8(%rsp)
	call	Sosu
	movl	c(%rip), %ebx
	xorl	%eax, %eax
	movq	%r12, %rdi
	movl	$50, %ecx
	rep stosq
	testl	%ebx, %ebx
	jle	.L57
	movq	8(%rsp), %rdx
	leal	-1(%rbx), %r14d
	leaq	4(%r12), %r15
	cmpq	$1, %rdx
	jle	.L23
	leal	-1(%rbx), %eax
	leaq	4(%r12), %r15
	movq	%r12, %r10
	leaq	SosuIndex(%rip), %rbp
	movq	%rax, %r14
	leaq	(%r15,%rax,4), %r13
	leal	1(%rdx), %r11d
	.p2align 4,,10
	.p2align 3
.L24:
	movl	0(%rbp), %esi
	movl	$2, %r9d
	.p2align 4,,10
	.p2align 3
.L30:
	movl	%r9d, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	jne	.L29
	movl	(%r10), %eax
	movl	%r9d, %ecx
	leal	1(%rax), %edi
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L88:
	testl	%ecx, %ecx
	je	.L60
.L25:
	movl	%ecx, %eax
	movl	%edi, %r8d
	addl	$1, %edi
	cltd
	idivl	%esi
	cltd
	movl	%eax, %ecx
	idivl	%esi
	testl	%edx, %edx
	je	.L88
.L60:
	movl	%r8d, (%r10)
.L29:
	addl	$1, %r9d
	cmpl	%r11d, %r9d
	jne	.L30
	addq	$4, %r10
	addq	$4, %rbp
	cmpq	%r10, %r13
	jne	.L24
.L23:
	leaq	Soinsu(%rip), %rax
	leaq	(%r15,%r14,4), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	.L33
.L90:
	addq	$4, %rax
	addq	$1, %rcx
	cmpq	%rax, %rdi
	je	.L89
.L33:
	movl	(%rax), %edx
	cmpl	$13, %edx
	jg	.L90
	subl	$4, %edx
	cmpl	$10, %edx
	adcq	$0, %rsi
	addq	$4, %rax
	cmpq	%rax, %rdi
	jne	.L33
.L89:
	cmpq	$1, %rcx
	jle	.L34
.L53:
	leaq	-1(%rcx,%rsi), %rdi
	imulq	%rcx, %rdi
.L55:
	xorl	%eax, %eax
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	.L37
.L92:
	addq	$1, %rax
	addq	$1, %rcx
	cmpl	%eax, %ebx
	jle	.L91
.L37:
	movl	(%r12,%rax,4), %edx
	cmpl	$23, %edx
	jg	.L92
	subl	$2, %edx
	cmpl	$22, %edx
	adcq	$0, %rsi
	addq	$1, %rax
	cmpl	%eax, %ebx
	jg	.L37
.L91:
	cmpq	$1, %rcx
	jle	.L93
.L38:
	leaq	-1(%rsi,%rcx), %r9
	imulq	%rcx, %r9
.L52:
	testl	%ebx, %ebx
	movl	$1, %esi
	cmovg	%ebx, %esi
	cmpl	$3, %ebx
	jle	.L58
	movl	%esi, %edx
	leaq	Soinsu(%rip), %rax
	movdqa	.LC1(%rip), %xmm6
	movdqa	.LC2(%rip), %xmm5
	leaq	16(%rax), %rcx
	pxor	%xmm1, %xmm1
	shrl	$2, %edx
	pxor	%xmm4, %xmm4
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rcx, %rdx
.L41:
	movdqa	(%rax), %xmm0
	movdqa	%xmm4, %xmm2
	addq	$16, %rax
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm5, %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L41
	movdqa	%xmm1, %xmm0
	movl	%esi, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	andl	$3, %esi
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rcx
	je	.L42
.L40:
	movslq	%eax, %rdx
	cmpl	$73, (%r12,%rdx,4)
	jg	.L94
.L43:
	leal	1(%rax), %edx
	cmpl	%ebx, %edx
	jge	.L42
	movslq	%edx, %rdx
	cmpl	$73, (%r12,%rdx,4)
	jg	.L95
.L44:
	addl	$2, %eax
	cmpl	%eax, %ebx
	jle	.L42
	cltq
	cmpl	$73, (%r12,%rax,4)
	jg	.L96
.L42:
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	jmp	.L49
.L98:
	addq	$1, %rax
	addq	$1, %rsi
	cmpl	%eax, %ebx
	jle	.L97
.L49:
	movl	(%r12,%rax,4), %edx
	cmpl	$3, %edx
	jg	.L98
	subl	$2, %edx
	cmpl	$2, %edx
	adcq	$0, %r8
	addq	$1, %rax
	cmpl	%eax, %ebx
	jg	.L49
.L97:
	cmpq	$2, %rsi
	jle	.L99
.L50:
	leaq	-1(%rsi), %r10
	leaq	-2(%rsi), %rdx
	movq	%r10, %rax
	imulq	%rsi, %rax
	imulq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	%rsi, %rax
	imulq	%r8, %rax
	imulq	%r10, %rax
	movq	%rax, %rsi
	shrq	$63, %rsi
	addq	%rsi, %rax
	sarq	%rax
	addq	%rdx, %rax
.L22:
	leaq	(%rdi,%r9), %rdx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	addq	%rcx, %rdx
	addq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L100
	addq	$40, %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
.L94:
	.cfi_restore_state
	addq	$1, %rcx
	jmp	.L43
.L95:
	addq	$1, %rcx
	jmp	.L44
.L96:
	addq	$1, %rcx
	jmp	.L42
.L99:
	jne	.L59
	testq	%r8, %r8
	jg	.L50
.L59:
	xorl	%eax, %eax
	jmp	.L22
.L93:
	testq	%rsi, %rsi
	jle	.L61
	testb	$1, %cl
	jne	.L38
.L61:
	xorl	%r9d, %r9d
	jmp	.L52
.L34:
	testq	%rsi, %rsi
	jle	.L62
	testb	$1, %cl
	jne	.L53
.L62:
	xorl	%edi, %edi
	jmp	.L55
.L57:
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	.L22
.L58:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L40
.L100:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	c
	.data
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.long	1
	.globl	Soinsu
	.bss
	.align 32
	.type	Soinsu, @object
	.size	Soinsu, 400
Soinsu:
	.zero	400
	.globl	SosuIndex
	.align 32
	.type	SosuIndex, @object
	.size	SosuIndex, 400
SosuIndex:
	.zero	400
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	73
	.long	73
	.long	73
	.long	73
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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 SosuIndex[100];
int Soinsu[100];
int c=1;
void Sosu(int N){
    int b=0;
    for(int n=3;n<=N;n++){
        b=0;
        for(int i=0;i<c;i++){
            if(n%SosuIndex[i]==0)b++;
        }
        if(b==0){SosuIndex[c]=n;c++;}
    }
}
int main(void){
    SosuIndex[0]=2;
    long N,cou1=0,cou2=0,x=0,y=0,z=0,q=0;
    scanf("%ld",&N);
    Sosu(N);
    for(int i=0;i<100;i++){Soinsu[i]=0;}
    for(int i=0;i<c;i++){
        for(int j=2;j<=N;j++){
            int J=j;
            while(J%SosuIndex[i]==0 && J!=0){
                Soinsu[i]++;
                J/=SosuIndex[i];
            }
        }
    }
    for(int i=0;i<c;i++){
        if(Soinsu[i]>=14)cou1++;
        if(Soinsu[i]<14 && Soinsu[i]>=4)cou2++;
    }
    if(cou1>=2 || (cou1>=1 && cou2>=1))
        x=cou2*cou1+(cou1)*(cou1-1);
    cou1=0;cou2=0;
    
    for(int i=0;i<c;i++){
        if(Soinsu[i]>=24)cou1++;
        if(Soinsu[i]<24 && Soinsu[i]>=2)cou2++;
    }
    if(cou1>=2 || (cou1>=1 && cou2>=1))
        y=cou2*cou1+(cou1)*(cou1-1);
    cou1=0;cou2=0;
    
    for(int i=0;i<c;i++){if(Soinsu[i]>=74)cou1++;}
    z=cou1;
    cou1=0;cou2=0;
    
    for(int i=0;i<c;i++){
        if(Soinsu[i]>=4)cou1++;
        if(Soinsu[i]<4 && Soinsu[i]>=2)cou2++;
    }
    if(cou1>=3 || (cou1>=2 && cou2>=1))
        q=cou2*(cou1)*(cou1-1)/2+(cou1)*(cou1-1)*(cou1-2)/2;
    cou1=0;cou2=0;
    
    long p=x+y+z+q;
    printf("%ld\n",p);
    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 SosuIndex[100];
int Soinsu[100];
int c=1;
void Sosu(int N){
    int b=0;
    for(int n=3;n<=N;n++){
        b=0;
        for(int i=0;i<c;i++){
            if(n%SosuIndex[i]==0)b++;
        }
        if(b==0){SosuIndex[c]=n;c++;}
    }
}
int main(void){
    SosuIndex[0]=2;
    long N,cou1=0,cou2=0,x=0,y=0,z=0,q=0;
    scanf("%ld",&N);
    Sosu(N);
    for(int i=0;i<100;i++){Soinsu[i]=0;}
    for(int i=0;i<c;i++){
        for(int j=2;j<=N;j++){
            int J=j;
            while(J%SosuIndex[i]==0 && J!=0){
                Soinsu[i]++;
                J/=SosuIndex[i];
            }
        }
    }
    for(int i=0;i<c;i++){
        if(Soinsu[i]>=14)cou1++;
        if(Soinsu[i]<14 && Soinsu[i]>=4)cou2++;
    }
    if(cou1>=2 || (cou1>=1 && cou2>=1))
        x=cou2*cou1+(cou1)*(cou1-1);
    cou1=0;cou2=0;
    
    for(int i=0;i<c;i++){
        if(Soinsu[i]>=24)cou1++;
        if(Soinsu[i]<24 && Soinsu[i]>=2)cou2++;
    }
    if(cou1>=2 || (cou1>=1 && cou2>=1))
        y=cou2*cou1+(cou1)*(cou1-1);
    cou1=0;cou2=0;
    
    for(int i=0;i<c;i++){if(Soinsu[i]>=74)cou1++;}
    z=cou1;
    cou1=0;cou2=0;
    
    for(int i=0;i<c;i++){
        if(Soinsu[i]>=4)cou1++;
        if(Soinsu[i]<4 && Soinsu[i]>=2)cou2++;
    }
    if(cou1>=3 || (cou1>=2 && cou2>=1))
        q=cou2*(cou1)*(cou1-1)/2+(cou1)*(cou1-1)*(cou1-2)/2;
    cou1=0;cou2=0;
    
    long p=x+y+z+q;
    printf("%ld\n",p);
    return 0;
}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	SosuIndex
	.bss
	.align 32
	.type	SosuIndex, @object
	.size	SosuIndex, 400
SosuIndex:
	.zero	400
	.globl	Soinsu
	.align 32
	.type	Soinsu, @object
	.size	Soinsu, 400
Soinsu:
	.zero	400
	.globl	c
	.data
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.long	1
	.text
	.globl	Sosu
	.type	Sosu, @function
Sosu:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	$3, -8(%rbp)
	jmp	.L2
.L7:
	movl	$0, -12(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L3
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	SosuIndex(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L4
	addl	$1, -12(%rbp)
.L4:
	addl	$1, -4(%rbp)
.L3:
	movl	c(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
	cmpl	$0, -12(%rbp)
	jne	.L6
	movl	c(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	SosuIndex(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	c(%rip), %eax
	addl	$1, %eax
	movl	%eax, c(%rip)
.L6:
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Sosu, .-Sosu
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2, SosuIndex(%rip)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -24(%rbp)
	movq	$0, -32(%rbp)
	leaq	-72(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	movl	%eax, %edi
	call	Sosu
	movl	$0, -104(%rbp)
	jmp	.L9
.L10:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -104(%rbp)
.L9:
	cmpl	$99, -104(%rbp)
	jle	.L10
	movl	$0, -100(%rbp)
	jmp	.L11
.L17:
	movl	$2, -96(%rbp)
	jmp	.L12
.L16:
	movl	-96(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L13
.L15:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	SosuIndex(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-92(%rbp), %eax
	cltd
	idivl	%esi
	movl	%eax, -92(%rbp)
.L13:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	SosuIndex(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L14
	cmpl	$0, -92(%rbp)
	jne	.L15
.L14:
	addl	$1, -96(%rbp)
.L12:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	-72(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L16
	addl	$1, -100(%rbp)
.L11:
	movl	c(%rip), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L17
	movl	$0, -88(%rbp)
	jmp	.L18
.L21:
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$13, %eax
	jle	.L19
	addq	$1, -64(%rbp)
.L19:
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$13, %eax
	jg	.L20
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$3, %eax
	jle	.L20
	addq	$1, -56(%rbp)
.L20:
	addl	$1, -88(%rbp)
.L18:
	movl	c(%rip), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L21
	cmpq	$1, -64(%rbp)
	jg	.L22
	cmpq	$0, -64(%rbp)
	jle	.L23
	cmpq	$0, -56(%rbp)
	jle	.L23
.L22:
	movq	-56(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -48(%rbp)
.L23:
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L24
.L27:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$23, %eax
	jle	.L25
	addq	$1, -64(%rbp)
.L25:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$23, %eax
	jg	.L26
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jle	.L26
	addq	$1, -56(%rbp)
.L26:
	addl	$1, -84(%rbp)
.L24:
	movl	c(%rip), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L27
	cmpq	$1, -64(%rbp)
	jg	.L28
	cmpq	$0, -64(%rbp)
	jle	.L29
	cmpq	$0, -56(%rbp)
	jle	.L29
.L28:
	movq	-56(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
.L29:
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L30
.L32:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$73, %eax
	jle	.L31
	addq	$1, -64(%rbp)
.L31:
	addl	$1, -80(%rbp)
.L30:
	movl	c(%rip), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L32
	movq	-64(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L33
.L36:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$3, %eax
	jle	.L34
	addq	$1, -64(%rbp)
.L34:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$3, %eax
	jg	.L35
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jle	.L35
	addq	$1, -56(%rbp)
.L35:
	addl	$1, -76(%rbp)
.L33:
	movl	c(%rip), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L36
	cmpq	$2, -64(%rbp)
	jg	.L37
	cmpq	$1, -64(%rbp)
	jle	.L38
	cmpq	$0, -56(%rbp)
	jle	.L38
.L37:
	movq	-56(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	-64(%rbp), %rdx
	subq	$1, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	-64(%rbp), %rax
	movq	-64(%rbp), %rdx
	subq	$2, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rcx, %rax
	movq	%rax, -32(%rbp)
.L38:
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	SosuIndex
	.bss
	.align 32
	.type	SosuIndex, @object
	.size	SosuIndex, 400
SosuIndex:
	.zero	400
	.globl	Soinsu
	.align 32
	.type	Soinsu, @object
	.size	Soinsu, 400
Soinsu:
	.zero	400
	.globl	c
	.data
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.long	1
	.text
	.globl	Sosu
	.type	Sosu, @function
Sosu:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	$3, -8(%rbp)
	jmp	.L2
.L7:
	movl	$0, -12(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L3
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	SosuIndex(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L4
	addl	$1, -12(%rbp)
.L4:
	addl	$1, -4(%rbp)
.L3:
	movl	c(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
	cmpl	$0, -12(%rbp)
	jne	.L6
	movl	c(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	SosuIndex(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	c(%rip), %eax
	addl	$1, %eax
	movl	%eax, c(%rip)
.L6:
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Sosu, .-Sosu
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2, SosuIndex(%rip)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -24(%rbp)
	movq	$0, -32(%rbp)
	leaq	-72(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	movl	%eax, %edi
	call	Sosu
	movl	$0, -104(%rbp)
	jmp	.L9
.L10:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -104(%rbp)
.L9:
	cmpl	$99, -104(%rbp)
	jle	.L10
	movl	$0, -100(%rbp)
	jmp	.L11
.L17:
	movl	$2, -96(%rbp)
	jmp	.L12
.L16:
	movl	-96(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L13
.L15:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	SosuIndex(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-92(%rbp), %eax
	cltd
	idivl	%esi
	movl	%eax, -92(%rbp)
.L13:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	SosuIndex(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-92(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L14
	cmpl	$0, -92(%rbp)
	jne	.L15
.L14:
	addl	$1, -96(%rbp)
.L12:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	-72(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L16
	addl	$1, -100(%rbp)
.L11:
	movl	c(%rip), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L17
	movl	$0, -88(%rbp)
	jmp	.L18
.L21:
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$13, %eax
	jle	.L19
	addq	$1, -64(%rbp)
.L19:
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$13, %eax
	jg	.L20
	movl	-88(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$3, %eax
	jle	.L20
	addq	$1, -56(%rbp)
.L20:
	addl	$1, -88(%rbp)
.L18:
	movl	c(%rip), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L21
	cmpq	$1, -64(%rbp)
	jg	.L22
	cmpq	$0, -64(%rbp)
	jle	.L23
	cmpq	$0, -56(%rbp)
	jle	.L23
.L22:
	movq	-56(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -48(%rbp)
.L23:
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L24
.L27:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$23, %eax
	jle	.L25
	addq	$1, -64(%rbp)
.L25:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$23, %eax
	jg	.L26
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jle	.L26
	addq	$1, -56(%rbp)
.L26:
	addl	$1, -84(%rbp)
.L24:
	movl	c(%rip), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L27
	cmpq	$1, -64(%rbp)
	jg	.L28
	cmpq	$0, -64(%rbp)
	jle	.L29
	cmpq	$0, -56(%rbp)
	jle	.L29
.L28:
	movq	-56(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
.L29:
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L30
.L32:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$73, %eax
	jle	.L31
	addq	$1, -64(%rbp)
.L31:
	addl	$1, -80(%rbp)
.L30:
	movl	c(%rip), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L32
	movq	-64(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L33
.L36:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$3, %eax
	jle	.L34
	addq	$1, -64(%rbp)
.L34:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$3, %eax
	jg	.L35
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Soinsu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jle	.L35
	addq	$1, -56(%rbp)
.L35:
	addl	$1, -76(%rbp)
.L33:
	movl	c(%rip), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L36
	cmpq	$2, -64(%rbp)
	jg	.L37
	cmpq	$1, -64(%rbp)
	jle	.L38
	cmpq	$0, -56(%rbp)
	jle	.L38
.L37:
	movq	-56(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	-64(%rbp), %rdx
	subq	$1, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	-64(%rbp), %rax
	movq	-64(%rbp), %rdx
	subq	$2, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rcx, %rax
	movq	%rax, -32(%rbp)
.L38:
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
