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 A[1500];

void maker() {
	int i, j, k;
	for (i = 1,k=0; i <= 10000; i++) {
		for (j = 2; j < i/2+1; j++) {
			if (i%j == 0)  break;
		}
		if (j >= (i/2+1)) A[k] = i,k++;
	}
}

int judge(int a) {
	int i;
	int j = 0;
	for (i = 1; i < 1231; i++) {
		if (a == A[i]) { j = 1; break; }
		if (a < A[i]) { break; }
	}
	return j;
}


int main() {
	int i,j,k;
	int n;
	int res;
	maker();

	while (scanf("%d", &n) != EOF) {
		res = 0;
		for (i = 1, j = n; i <= n; i++, j--) {
			if (judge(i) && judge(j)) res++;
		}
		printf("%d\n", res);
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 6000
A:
	.zero	6000
	.text
	.globl	maker
	.type	maker, @function
maker:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$1, -12(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L8:
	movl	$2, -8(%rbp)
	jmp	.L3
.L6:
	movl	-12(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L9
	addl	$1, -8(%rbp)
.L3:
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -8(%rbp)
	jle	.L6
	jmp	.L5
.L9:
	nop
.L5:
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -8(%rbp)
	jle	.L7
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L7:
	addl	$1, -12(%rbp)
.L2:
	cmpl	$10000, -12(%rbp)
	jle	.L8
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	maker, .-maker
	.globl	judge
	.type	judge, @function
judge:
.LFB1:
	.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, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L11
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L12
	movl	$1, -4(%rbp)
	jmp	.L13
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L17
	addl	$1, -8(%rbp)
.L11:
	cmpl	$1230, -8(%rbp)
	jle	.L15
	jmp	.L13
.L17:
	nop
.L13:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	judge, .-judge
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, %eax
	call	maker
	jmp	.L19
.L23:
	movl	$0, -12(%rbp)
	movl	$1, -20(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L20
.L22:
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	judge
	testl	%eax, %eax
	je	.L21
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	judge
	testl	%eax, %eax
	je	.L21
	addl	$1, -12(%rbp)
.L21:
	addl	$1, -20(%rbp)
	subl	$1, -16(%rbp)
.L20:
	movl	-24(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L22
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	maker
	.type	maker, @function
maker:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	movl	$1, %esi
	leaq	A(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%esi, %edi
	sarl	%edi
	cmpl	$3, %esi
	jle	.L5
	testb	$1, %sil
	je	.L3
	addl	$1, %edi
	movl	$2, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L3
.L7:
	addl	$1, %ecx
	cmpl	%ecx, %edi
	jne	.L4
.L5:
	movslq	%r8d, %rax
	addl	$1, %r8d
	movl	%esi, (%r9,%rax,4)
.L3:
	addl	$1, %esi
	cmpl	$10001, %esi
	jne	.L2
	ret
	.cfi_endproc
.LFE23:
	.size	maker, .-maker
	.p2align 4
	.globl	judge
	.type	judge, @function
judge:
.LFB24:
	.cfi_startproc
	endbr64
	leaq	4+A(%rip), %rax
	leaq	4920(%rax), %rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L21:
	jg	.L19
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L19
.L17:
	cmpl	%edi, (%rax)
	jne	.L21
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	judge, .-judge
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%r8d, %r8d
	movl	$1, %esi
	leaq	A(%rip), %r9
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%esi, %edi
	sarl	%edi
	cmpl	$3, %esi
	jle	.L26
	testb	$1, %sil
	je	.L24
	addl	$1, %edi
	movl	$2, %ecx
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L24
.L28:
	addl	$1, %ecx
	cmpl	%edi, %ecx
	jne	.L25
.L26:
	movslq	%r8d, %rax
	addl	$1, %r8d
	movl	%esi, (%r9,%rax,4)
.L24:
	addl	$1, %esi
	cmpl	$10001, %esi
	jne	.L23
	leaq	4(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	4924+A(%rip), %rbx
	leaq	.LC0(%rip), %r13
.L27:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L52
	movl	4(%rsp), %esi
	xorl	%r8d, %r8d
	testl	%esi, %esi
	jle	.L29
	movl	$1, %ecx
	.p2align 4,,10
	.p2align 3
.L34:
	leaq	4+A(%rip), %rdx
	movq	%rdx, %rax
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L53:
	jg	.L31
	addq	$4, %rax
	cmpq	%rax, %rbx
	je	.L31
.L32:
	cmpl	%ecx, (%rax)
	jne	.L53
	cmpl	%esi, (%rdx)
	je	.L33
	.p2align 4,,10
	.p2align 3
.L54:
	jg	.L31
	addq	$4, %rdx
	cmpq	%rdx, %rbx
	je	.L31
	cmpl	%esi, (%rdx)
	jne	.L54
.L33:
	addl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L31:
	addl	$1, %ecx
	subl	$1, %esi
	jne	.L34
.L29:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L27
.L52:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L55
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L55:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 6000
A:
	.zero	6000
	.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	maker
	.type	maker, @function
maker:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	movl	$1, %esi
	leaq	A(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%esi, %edi
	sarl	%edi
	cmpl	$3, %esi
	jle	.L5
	testb	$1, %sil
	je	.L3
	addl	$1, %edi
	movl	$2, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L3
.L7:
	addl	$1, %ecx
	cmpl	%ecx, %edi
	jne	.L4
.L5:
	movslq	%r8d, %rax
	addl	$1, %r8d
	movl	%esi, (%r9,%rax,4)
.L3:
	addl	$1, %esi
	cmpl	$10001, %esi
	jne	.L2
	ret
	.cfi_endproc
.LFE23:
	.size	maker, .-maker
	.p2align 4
	.globl	judge
	.type	judge, @function
judge:
.LFB24:
	.cfi_startproc
	endbr64
	leaq	4+A(%rip), %rax
	leaq	4920(%rax), %rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L21:
	jg	.L19
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L19
.L17:
	cmpl	%edi, (%rax)
	jne	.L21
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	judge, .-judge
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%r8d, %r8d
	movl	$1, %esi
	leaq	A(%rip), %r9
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%esi, %edi
	sarl	%edi
	cmpl	$3, %esi
	jle	.L26
	testb	$1, %sil
	je	.L24
	addl	$1, %edi
	movl	$2, %ecx
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L24
.L28:
	addl	$1, %ecx
	cmpl	%edi, %ecx
	jne	.L25
.L26:
	movslq	%r8d, %rax
	addl	$1, %r8d
	movl	%esi, (%r9,%rax,4)
.L24:
	addl	$1, %esi
	cmpl	$10001, %esi
	jne	.L23
	leaq	4(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	4924+A(%rip), %rbx
	leaq	.LC0(%rip), %r13
.L27:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L52
	movl	4(%rsp), %esi
	xorl	%r8d, %r8d
	testl	%esi, %esi
	jle	.L29
	movl	$1, %ecx
	.p2align 4,,10
	.p2align 3
.L34:
	leaq	4+A(%rip), %rdx
	movq	%rdx, %rax
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L53:
	jg	.L31
	addq	$4, %rax
	cmpq	%rax, %rbx
	je	.L31
.L32:
	cmpl	%ecx, (%rax)
	jne	.L53
	cmpl	%esi, (%rdx)
	je	.L33
	.p2align 4,,10
	.p2align 3
.L54:
	jg	.L31
	addq	$4, %rdx
	cmpq	%rdx, %rbx
	je	.L31
	cmpl	%esi, (%rdx)
	jne	.L54
.L33:
	addl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L31:
	addl	$1, %ecx
	subl	$1, %esi
	jne	.L34
.L29:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L27
.L52:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L55
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L55:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 6000
A:
	.zero	6000
	.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 A[1500];

void maker() {
	int i, j, k;
	for (i = 1,k=0; i <= 10000; i++) {
		for (j = 2; j < i/2+1; j++) {
			if (i%j == 0)  break;
		}
		if (j >= (i/2+1)) A[k] = i,k++;
	}
}

int judge(int a) {
	int i;
	int j = 0;
	for (i = 1; i < 1231; i++) {
		if (a == A[i]) { j = 1; break; }
		if (a < A[i]) { break; }
	}
	return j;
}


int main() {
	int i,j,k;
	int n;
	int res;
	maker();

	while (scanf("%d", &n) != EOF) {
		res = 0;
		for (i = 1, j = n; i <= n; i++, j--) {
			if (judge(i) && judge(j)) res++;
		}
		printf("%d\n", res);
	}
	return 0;
}

1
8
7
51
 1
10
7
51
 1
10
7
65
 1
12
7
115
 1
12
9
115
 1
12
9
15
 1
26
9
15
 1
26
11
15
 1
26
11
20
 1
27
11
20

0
2
2
6
 0
0
2
6
 0
0
2
12
 0
2
2
12
 0
2
3
12
 0
2
3
4
 0
0
3
4
 0
0
2
4
 0
0
2
2
 0
4
2
2

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 A[1500];

void maker() {
	int i, j, k;
	for (i = 1,k=0; i <= 10000; i++) {
		for (j = 2; j < i/2+1; j++) {
			if (i%j == 0)  break;
		}
		if (j >= (i/2+1)) A[k] = i,k++;
	}
}

int judge(int a) {
	int i;
	int j = 0;
	for (i = 1; i < 1231; i++) {
		if (a == A[i]) { j = 1; break; }
		if (a < A[i]) { break; }
	}
	return j;
}


int main() {
	int i,j,k;
	int n;
	int res;
	maker();

	while (scanf("%d", &n) != EOF) {
		res = 0;
		for (i = 1, j = n; i <= n; i++, j--) {
			if (judge(i) && judge(j)) res++;
		}
		printf("%d\n", res);
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 6000
A:
	.zero	6000
	.text
	.globl	maker
	.type	maker, @function
maker:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$1, -12(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L8:
	movl	$2, -8(%rbp)
	jmp	.L3
.L6:
	movl	-12(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L9
	addl	$1, -8(%rbp)
.L3:
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -8(%rbp)
	jle	.L6
	jmp	.L5
.L9:
	nop
.L5:
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -8(%rbp)
	jle	.L7
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L7:
	addl	$1, -12(%rbp)
.L2:
	cmpl	$10000, -12(%rbp)
	jle	.L8
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	maker, .-maker
	.globl	judge
	.type	judge, @function
judge:
.LFB1:
	.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, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L11
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L12
	movl	$1, -4(%rbp)
	jmp	.L13
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L17
	addl	$1, -8(%rbp)
.L11:
	cmpl	$1230, -8(%rbp)
	jle	.L15
	jmp	.L13
.L17:
	nop
.L13:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	judge, .-judge
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, %eax
	call	maker
	jmp	.L19
.L23:
	movl	$0, -12(%rbp)
	movl	$1, -20(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L20
.L22:
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	judge
	testl	%eax, %eax
	je	.L21
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	judge
	testl	%eax, %eax
	je	.L21
	addl	$1, -12(%rbp)
.L21:
	addl	$1, -20(%rbp)
	subl	$1, -16(%rbp)
.L20:
	movl	-24(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L22
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 6000
A:
	.zero	6000
	.text
	.globl	maker
	.type	maker, @function
maker:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$1, -12(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L8:
	movl	$2, -8(%rbp)
	jmp	.L3
.L6:
	movl	-12(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L9
	addl	$1, -8(%rbp)
.L3:
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -8(%rbp)
	jle	.L6
	jmp	.L5
.L9:
	nop
.L5:
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -8(%rbp)
	jle	.L7
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L7:
	addl	$1, -12(%rbp)
.L2:
	cmpl	$10000, -12(%rbp)
	jle	.L8
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	maker, .-maker
	.globl	judge
	.type	judge, @function
judge:
.LFB1:
	.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, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L11
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L12
	movl	$1, -4(%rbp)
	jmp	.L13
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L17
	addl	$1, -8(%rbp)
.L11:
	cmpl	$1230, -8(%rbp)
	jle	.L15
	jmp	.L13
.L17:
	nop
.L13:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	judge, .-judge
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, %eax
	call	maker
	jmp	.L19
.L23:
	movl	$0, -12(%rbp)
	movl	$1, -20(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L20
.L22:
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	judge
	testl	%eax, %eax
	je	.L21
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	judge
	testl	%eax, %eax
	je	.L21
	addl	$1, -12(%rbp)
.L21:
	addl	$1, -20(%rbp)
	subl	$1, -16(%rbp)
.L20:
	movl	-24(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L22
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
