Given the following C code and 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;
}
```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}
```
Given the following C 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;
}
```

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.
Optimized Assembly Code:

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 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;
}
```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```