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 sosuu_num;
int sosuu_list[30000];
char is_sosuu[30001];

void make_sosuu_list(void) {
	int i,j;
	for(i=0;i<=30000;i++)is_sosuu[i]=1;
	is_sosuu[0]=is_sosuu[1]=0;
	sosuu_num=0;
	for(i=2;i<=30000;i++) {
		if(is_sosuu[i]) {
			sosuu_list[sosuu_num++]=i;
			for(j=i+i;j<=30000;j+=i)is_sosuu[j]=0;
		}
	}
}

int main(void) {
	int query;
	int i,j;
	int count;
	int a,b,c;
	make_sosuu_list();
	while(1) {
		scanf("%d",&query);
		if(query==0)break;
		count=0;
		for(i=0;i<sosuu_num;i++) {
			if(sosuu_list[i]>query)break;
			for(j=i;j<sosuu_num;j++) {
				a=sosuu_list[i];
				b=sosuu_list[j];
				c=query-a-b;
				if(c<b)break;
				if(is_sosuu[c]) {
					if(c>b-a && c<a+b)count++;
				}
			}
		}
		printf("%d\n",count);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	sosuu_num
	.bss
	.align 4
	.type	sosuu_num, @object
	.size	sosuu_num, 4
sosuu_num:
	.zero	4
	.globl	sosuu_list
	.align 32
	.type	sosuu_list, @object
	.size	sosuu_list, 120000
sosuu_list:
	.zero	120000
	.globl	is_sosuu
	.align 32
	.type	is_sosuu, @object
	.size	is_sosuu, 30001
is_sosuu:
	.zero	30001
	.text
	.globl	make_sosuu_list
	.type	make_sosuu_list, @function
make_sosuu_list:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movb	$1, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L2:
	cmpl	$30000, -8(%rbp)
	jle	.L3
	movb	$0, 1+is_sosuu(%rip)
	movzbl	1+is_sosuu(%rip), %eax
	movb	%al, is_sosuu(%rip)
	movl	$0, sosuu_num(%rip)
	movl	$2, -8(%rbp)
	jmp	.L4
.L8:
	movl	-8(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L5
	movl	sosuu_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, sosuu_num(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	sosuu_list(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-8(%rbp), %eax
	addl	%eax, -4(%rbp)
.L6:
	cmpl	$30000, -4(%rbp)
	jle	.L7
.L5:
	addl	$1, -8(%rbp)
.L4:
	cmpl	$30000, -8(%rbp)
	jle	.L8
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	make_sosuu_list, .-make_sosuu_list
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	call	make_sosuu_list
.L21:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, -24(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L12
.L20:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sosuu_list(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L26
	movl	-32(%rbp), %eax
	movl	%eax, -28(%rbp)
	jmp	.L15
.L19:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sosuu_list(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sosuu_list(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-36(%rbp), %eax
	subl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L27
	movl	-12(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L18
	movl	-16(%rbp), %eax
	subl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L18
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jge	.L18
	addl	$1, -24(%rbp)
.L18:
	addl	$1, -28(%rbp)
.L15:
	movl	sosuu_num(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L19
	jmp	.L17
.L27:
	nop
.L17:
	addl	$1, -32(%rbp)
.L12:
	movl	sosuu_num(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L20
	jmp	.L14
.L26:
	nop
.L14:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L21
.L25:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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	make_sosuu_list
	.type	make_sosuu_list, @function
make_sosuu_list:
.LFB23:
	.cfi_startproc
	endbr64
	leaq	is_sosuu(%rip), %rcx
	movl	$30001, %edx
	movl	$1, %esi
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rcx, %rdi
	call	memset@PLT
	movl	$4, %esi
	xorl	%edi, %edi
	movl	$0, sosuu_num(%rip)
	movq	%rax, %rcx
	xorl	%eax, %eax
	movl	$2, %edx
	movw	%ax, is_sosuu(%rip)
	leaq	sosuu_list(%rip), %r8
	xorl	%eax, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addq	$1, %rdx
	addq	$2, %rsi
	cmpq	$30001, %rdx
	je	.L14
.L4:
	cmpb	$0, (%rcx,%rdx)
	je	.L2
	movl	%edx, (%r8,%rax,4)
	leal	1(%rax), %edi
	cmpq	$30000, %rsi
	ja	.L6
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movb	$0, (%rcx,%rax)
	addq	%rdx, %rax
	cmpl	$30000, %eax
	jle	.L3
.L6:
	movslq	%edi, %rax
	movl	$1, %edi
	jmp	.L2
.L14:
	testb	%dil, %dil
	je	.L1
	movl	%eax, sosuu_num(%rip)
.L1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE23:
	.size	make_sosuu_list, .-make_sosuu_list
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	is_sosuu(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	sosuu_list(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rbp
	call	make_sosuu_list
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L16
	movl	sosuu_num(%rip), %r8d
	testl	%r8d, %r8d
	jle	.L24
	movslq	%r8d, %r14
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	.p2align 4,,10
	.p2align 3
.L21:
	movl	(%r12,%r9,4), %edi
	cmpl	%edi, %r11d
	jl	.L17
	movl	%r11d, %esi
	movq	%r9, %rdx
	subl	%edi, %esi
	.p2align 4,,10
	.p2align 3
.L20:
	movl	(%r12,%rdx,4), %eax
	movl	%esi, %ecx
	subl	%eax, %ecx
	cmpl	%ecx, %eax
	jg	.L18
	movslq	%ecx, %r15
	cmpb	$0, 0(%r13,%r15)
	je	.L19
	movl	%eax, %r15d
	subl	%edi, %r15d
	cmpl	%ecx, %r15d
	jge	.L19
	addl	%edi, %eax
	cmpl	%ecx, %eax
	setg	%al
	movzbl	%al, %eax
	addl	%eax, %r10d
.L19:
	addq	$1, %rdx
	cmpl	%edx, %r8d
	jg	.L20
.L18:
	addq	$1, %r9
	cmpq	%r14, %r9
	jne	.L21
.L17:
	movl	%r10d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
.L16:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$24, %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
.L24:
	.cfi_restore_state
	xorl	%r10d, %r10d
	jmp	.L17
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	is_sosuu
	.bss
	.align 32
	.type	is_sosuu, @object
	.size	is_sosuu, 30001
is_sosuu:
	.zero	30001
	.globl	sosuu_list
	.align 32
	.type	sosuu_list, @object
	.size	sosuu_list, 120000
sosuu_list:
	.zero	120000
	.globl	sosuu_num
	.align 4
	.type	sosuu_num, @object
	.size	sosuu_num, 4
sosuu_num:
	.zero	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
	.p2align 4
	.globl	make_sosuu_list
	.type	make_sosuu_list, @function
make_sosuu_list:
.LFB23:
	.cfi_startproc
	endbr64
	leaq	is_sosuu(%rip), %rcx
	movl	$30001, %edx
	movl	$1, %esi
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rcx, %rdi
	call	memset@PLT
	movl	$4, %esi
	xorl	%edi, %edi
	movl	$0, sosuu_num(%rip)
	movq	%rax, %rcx
	xorl	%eax, %eax
	movl	$2, %edx
	movw	%ax, is_sosuu(%rip)
	leaq	sosuu_list(%rip), %r8
	xorl	%eax, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addq	$1, %rdx
	addq	$2, %rsi
	cmpq	$30001, %rdx
	je	.L14
.L4:
	cmpb	$0, (%rcx,%rdx)
	je	.L2
	movl	%edx, (%r8,%rax,4)
	leal	1(%rax), %edi
	cmpq	$30000, %rsi
	ja	.L6
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movb	$0, (%rcx,%rax)
	addq	%rdx, %rax
	cmpl	$30000, %eax
	jle	.L3
.L6:
	movslq	%edi, %rax
	movl	$1, %edi
	jmp	.L2
.L14:
	testb	%dil, %dil
	je	.L1
	movl	%eax, sosuu_num(%rip)
.L1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE23:
	.size	make_sosuu_list, .-make_sosuu_list
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	is_sosuu(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	sosuu_list(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rbp
	call	make_sosuu_list
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L16
	movl	sosuu_num(%rip), %r8d
	testl	%r8d, %r8d
	jle	.L24
	movslq	%r8d, %r14
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	.p2align 4,,10
	.p2align 3
.L21:
	movl	(%r12,%r9,4), %edi
	cmpl	%edi, %r11d
	jl	.L17
	movl	%r11d, %esi
	movq	%r9, %rdx
	subl	%edi, %esi
	.p2align 4,,10
	.p2align 3
.L20:
	movl	(%r12,%rdx,4), %eax
	movl	%esi, %ecx
	subl	%eax, %ecx
	cmpl	%ecx, %eax
	jg	.L18
	movslq	%ecx, %r15
	cmpb	$0, 0(%r13,%r15)
	je	.L19
	movl	%eax, %r15d
	subl	%edi, %r15d
	cmpl	%ecx, %r15d
	jge	.L19
	addl	%edi, %eax
	cmpl	%ecx, %eax
	setg	%al
	movzbl	%al, %eax
	addl	%eax, %r10d
.L19:
	addq	$1, %rdx
	cmpl	%edx, %r8d
	jg	.L20
.L18:
	addq	$1, %r9
	cmpq	%r14, %r9
	jne	.L21
.L17:
	movl	%r10d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
.L16:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$24, %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
.L24:
	.cfi_restore_state
	xorl	%r10d, %r10d
	jmp	.L17
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	is_sosuu
	.bss
	.align 32
	.type	is_sosuu, @object
	.size	is_sosuu, 30001
is_sosuu:
	.zero	30001
	.globl	sosuu_list
	.align 32
	.type	sosuu_list, @object
	.size	sosuu_list, 120000
sosuu_list:
	.zero	120000
	.globl	sosuu_num
	.align 4
	.type	sosuu_num, @object
	.size	sosuu_num, 4
sosuu_num:
	.zero	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 sosuu_num;
int sosuu_list[30000];
char is_sosuu[30001];

void make_sosuu_list(void) {
	int i,j;
	for(i=0;i<=30000;i++)is_sosuu[i]=1;
	is_sosuu[0]=is_sosuu[1]=0;
	sosuu_num=0;
	for(i=2;i<=30000;i++) {
		if(is_sosuu[i]) {
			sosuu_list[sosuu_num++]=i;
			for(j=i+i;j<=30000;j+=i)is_sosuu[j]=0;
		}
	}
}

int main(void) {
	int query;
	int i,j;
	int count;
	int a,b,c;
	make_sosuu_list();
	while(1) {
		scanf("%d",&query);
		if(query==0)break;
		count=0;
		for(i=0;i<sosuu_num;i++) {
			if(sosuu_list[i]>query)break;
			for(j=i;j<sosuu_num;j++) {
				a=sosuu_list[i];
				b=sosuu_list[j];
				c=query-a-b;
				if(c<b)break;
				if(is_sosuu[c]) {
					if(c>b-a && c<a+b)count++;
				}
			}
		}
		printf("%d\n",count);
	}
	return 0;
}
10
12
15
777
7180
5000
0
 10
2
15
777
7180
5000
0
 10
1
15
149
7180
5000
0
 10
1
15
149
7180
2901
0
 10
1
15
149
7180
6275
0
 10
1
15
149
7180
10757
0
 10
1
42
149
7180
2924
0
 10
1
42
149
635
3334
0
 10
12
15
777
4999
232
0
 10
12
15
1177
7180
5000
0

0
1
2
110
0
0
 0
0
2
110
0
0
 0
0
2
20
0
0
 0
0
2
20
0
791
 0
0
2
20
0
4041
 0
0
2
20
0
9902
 0
0
0
20
0
0
 0
0
0
20
133
0
 0
1
2
110
2780
0
 0
1
2
277
0
0

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 sosuu_num;
int sosuu_list[30000];
char is_sosuu[30001];

void make_sosuu_list(void) {
	int i,j;
	for(i=0;i<=30000;i++)is_sosuu[i]=1;
	is_sosuu[0]=is_sosuu[1]=0;
	sosuu_num=0;
	for(i=2;i<=30000;i++) {
		if(is_sosuu[i]) {
			sosuu_list[sosuu_num++]=i;
			for(j=i+i;j<=30000;j+=i)is_sosuu[j]=0;
		}
	}
}

int main(void) {
	int query;
	int i,j;
	int count;
	int a,b,c;
	make_sosuu_list();
	while(1) {
		scanf("%d",&query);
		if(query==0)break;
		count=0;
		for(i=0;i<sosuu_num;i++) {
			if(sosuu_list[i]>query)break;
			for(j=i;j<sosuu_num;j++) {
				a=sosuu_list[i];
				b=sosuu_list[j];
				c=query-a-b;
				if(c<b)break;
				if(is_sosuu[c]) {
					if(c>b-a && c<a+b)count++;
				}
			}
		}
		printf("%d\n",count);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	sosuu_num
	.bss
	.align 4
	.type	sosuu_num, @object
	.size	sosuu_num, 4
sosuu_num:
	.zero	4
	.globl	sosuu_list
	.align 32
	.type	sosuu_list, @object
	.size	sosuu_list, 120000
sosuu_list:
	.zero	120000
	.globl	is_sosuu
	.align 32
	.type	is_sosuu, @object
	.size	is_sosuu, 30001
is_sosuu:
	.zero	30001
	.text
	.globl	make_sosuu_list
	.type	make_sosuu_list, @function
make_sosuu_list:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movb	$1, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L2:
	cmpl	$30000, -8(%rbp)
	jle	.L3
	movb	$0, 1+is_sosuu(%rip)
	movzbl	1+is_sosuu(%rip), %eax
	movb	%al, is_sosuu(%rip)
	movl	$0, sosuu_num(%rip)
	movl	$2, -8(%rbp)
	jmp	.L4
.L8:
	movl	-8(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L5
	movl	sosuu_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, sosuu_num(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	sosuu_list(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-8(%rbp), %eax
	addl	%eax, -4(%rbp)
.L6:
	cmpl	$30000, -4(%rbp)
	jle	.L7
.L5:
	addl	$1, -8(%rbp)
.L4:
	cmpl	$30000, -8(%rbp)
	jle	.L8
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	make_sosuu_list, .-make_sosuu_list
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	call	make_sosuu_list
.L21:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, -24(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L12
.L20:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sosuu_list(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L26
	movl	-32(%rbp), %eax
	movl	%eax, -28(%rbp)
	jmp	.L15
.L19:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sosuu_list(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sosuu_list(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-36(%rbp), %eax
	subl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L27
	movl	-12(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L18
	movl	-16(%rbp), %eax
	subl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L18
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jge	.L18
	addl	$1, -24(%rbp)
.L18:
	addl	$1, -28(%rbp)
.L15:
	movl	sosuu_num(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L19
	jmp	.L17
.L27:
	nop
.L17:
	addl	$1, -32(%rbp)
.L12:
	movl	sosuu_num(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L20
	jmp	.L14
.L26:
	nop
.L14:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L21
.L25:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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	sosuu_num
	.bss
	.align 4
	.type	sosuu_num, @object
	.size	sosuu_num, 4
sosuu_num:
	.zero	4
	.globl	sosuu_list
	.align 32
	.type	sosuu_list, @object
	.size	sosuu_list, 120000
sosuu_list:
	.zero	120000
	.globl	is_sosuu
	.align 32
	.type	is_sosuu, @object
	.size	is_sosuu, 30001
is_sosuu:
	.zero	30001
	.text
	.globl	make_sosuu_list
	.type	make_sosuu_list, @function
make_sosuu_list:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movb	$1, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L2:
	cmpl	$30000, -8(%rbp)
	jle	.L3
	movb	$0, 1+is_sosuu(%rip)
	movzbl	1+is_sosuu(%rip), %eax
	movb	%al, is_sosuu(%rip)
	movl	$0, sosuu_num(%rip)
	movl	$2, -8(%rbp)
	jmp	.L4
.L8:
	movl	-8(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L5
	movl	sosuu_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, sosuu_num(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	sosuu_list(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-8(%rbp), %eax
	addl	%eax, -4(%rbp)
.L6:
	cmpl	$30000, -4(%rbp)
	jle	.L7
.L5:
	addl	$1, -8(%rbp)
.L4:
	cmpl	$30000, -8(%rbp)
	jle	.L8
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	make_sosuu_list, .-make_sosuu_list
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	call	make_sosuu_list
.L21:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, -24(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L12
.L20:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sosuu_list(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L26
	movl	-32(%rbp), %eax
	movl	%eax, -28(%rbp)
	jmp	.L15
.L19:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sosuu_list(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sosuu_list(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-36(%rbp), %eax
	subl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L27
	movl	-12(%rbp), %eax
	cltq
	leaq	is_sosuu(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L18
	movl	-16(%rbp), %eax
	subl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L18
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jge	.L18
	addl	$1, -24(%rbp)
.L18:
	addl	$1, -28(%rbp)
.L15:
	movl	sosuu_num(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L19
	jmp	.L17
.L27:
	nop
.L17:
	addl	$1, -32(%rbp)
.L12:
	movl	sosuu_num(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L20
	jmp	.L14
.L26:
	nop
.L14:
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L21
.L25:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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:
