Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void) {
	int N,X,Y,Z,k,a[100],b[100],c[100],sum=0;
	scanf("%d", &N);
	scanf("%d", &X);
	for (int i = 0; i < X; i++) {
		scanf("%d", &a[i]);
	}
	scanf("%d", &Y);
	for (int i = 0; i < Y; i++) {
		scanf("%d", &b[i]);
	}
	scanf("%d", &Z);
	for (int i = 0; i < Z; i++) {
		scanf("%d", &c[i]);
	}
	for (int j = 0; j < Z; j++) {
		for ( k = 0; k < X; k++) {
			if (c[j] == a[k]) {
				break;
			}
		}
		if (k == X) {
			c[j] = N + 1;
			sum++;
		}
		for ( k = 0; k < Y; k++) {
			if (c[j] == b[k]) {
				sum++;
				break;
			}
		}
	}
	printf("%d\n", sum);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1264, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1236(%rbp)
	leaq	-1256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L2
.L3:
	leaq	-1216(%rbp), %rdx
	movl	-1232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1232(%rbp)
.L2:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L3
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1228(%rbp)
	jmp	.L4
.L5:
	leaq	-816(%rbp), %rdx
	movl	-1228(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1228(%rbp)
.L4:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1228(%rbp)
	jl	.L5
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1224(%rbp)
	jmp	.L6
.L7:
	leaq	-416(%rbp), %rdx
	movl	-1224(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1224(%rbp)
.L6:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1224(%rbp)
	jl	.L7
	movl	$0, -1220(%rbp)
	jmp	.L8
.L18:
	movl	$0, -1240(%rbp)
	jmp	.L9
.L12:
	movl	-1220(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-1240(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L21
	addl	$1, -1240(%rbp)
.L9:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L12
	jmp	.L11
.L21:
	nop
.L11:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jne	.L13
	movl	-1256(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1220(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	addl	$1, -1236(%rbp)
.L13:
	movl	$0, -1240(%rbp)
	jmp	.L14
.L17:
	movl	-1220(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-1240(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L15
	addl	$1, -1236(%rbp)
	jmp	.L16
.L15:
	addl	$1, -1240(%rbp)
.L14:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L17
.L16:
	addl	$1, -1220(%rbp)
.L8:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1220(%rbp)
	jl	.L18
	movl	-1236(%rbp), %eax
	movl	%eax, %esi
	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	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$1232, %rsp
	.cfi_def_cfa_offset 1280
	movq	%fs:40, %rax
	movq	%rax, 1224(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	leaq	4(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebx, 4(%rsp)
	jg	.L3
.L2:
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L4
	leaq	416(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebx, 8(%rsp)
	jg	.L5
.L4:
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
	leaq	816(%rsp), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L7
	testl	%eax, %eax
	jle	.L6
	movl	8(%rsp), %r11d
	movl	(%rsp), %ecx
	subl	$1, %eax
	leaq	4(%rbx), %r8
	movl	4(%rsp), %r10d
	leaq	(%r8,%rax,4), %rbp
	xorl	%r9d, %r9d
	xorl	%r14d, %r14d
	leal	-1(%r11), %eax
	leal	1(%rcx), %r13d
	leaq	416(%rsp), %r12
	leaq	420(%rsp,%rax,4), %rdi
	leal	1(%r10), %esi
	leaq	16(%rsp), %rcx
	testl	%r10d, %r10d
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L26:
	movl	(%rbx), %edx
	movl	$1, %eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%eax, %r14d
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L16
.L10:
	cmpl	-4(%rcx,%rax,4), %edx
	jne	.L25
.L9:
	testl	%r11d, %r11d
	jle	.L11
	movl	(%rbx), %edx
	movq	%r12, %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$4, %rax
	cmpq	%rax, %rdi
	je	.L11
.L13:
	cmpl	(%rax), %edx
	jne	.L12
	addl	$1, %r9d
.L11:
	movq	%r8, %rbx
	cmpq	%rbp, %r8
	je	.L14
	addq	$4, %r8
	xorl	%r14d, %r14d
	testl	%r10d, %r10d
	jg	.L26
	.p2align 4,,10
	.p2align 3
.L16:
	cmpl	%r14d, %r10d
	jne	.L9
	movl	%r13d, (%rbx)
	addl	$1, %r9d
	jmp	.L9
.L6:
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$1232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

rule
	.file	"temp.c"
	.text
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$1232, %rsp
	.cfi_def_cfa_offset 1280
	movq	%fs:40, %rax
	movq	%rax, 1224(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	leaq	4(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebx, 4(%rsp)
	jg	.L3
.L2:
	leaq	8(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L4
	leaq	416(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebx, 8(%rsp)
	jg	.L5
.L4:
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L6
	leaq	816(%rsp), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L7
	testl	%eax, %eax
	jle	.L6
	movl	8(%rsp), %r11d
	movl	(%rsp), %ecx
	subl	$1, %eax
	leaq	4(%rbx), %r8
	movl	4(%rsp), %r10d
	leaq	(%r8,%rax,4), %rbp
	xorl	%r9d, %r9d
	xorl	%r14d, %r14d
	leal	-1(%r11), %eax
	leal	1(%rcx), %r13d
	leaq	416(%rsp), %r12
	leaq	420(%rsp,%rax,4), %rdi
	leal	1(%r10), %esi
	leaq	16(%rsp), %rcx
	testl	%r10d, %r10d
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L26:
	movl	(%rbx), %edx
	movl	$1, %eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%eax, %r14d
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L16
.L10:
	cmpl	-4(%rcx,%rax,4), %edx
	jne	.L25
.L9:
	testl	%r11d, %r11d
	jle	.L11
	movl	(%rbx), %edx
	movq	%r12, %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$4, %rax
	cmpq	%rax, %rdi
	je	.L11
.L13:
	cmpl	(%rax), %edx
	jne	.L12
	addl	$1, %r9d
.L11:
	movq	%r8, %rbx
	cmpq	%rbp, %r8
	je	.L14
	addq	$4, %r8
	xorl	%r14d, %r14d
	testl	%r10d, %r10d
	jg	.L26
	.p2align 4,,10
	.p2align 3
.L16:
	cmpl	%r14d, %r10d
	jne	.L9
	movl	%r13d, (%rbx)
	addl	$1, %r9d
	jmp	.L9
.L6:
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$1232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

#include<stdio.h>
int main(void) {
	int N,X,Y,Z,k,a[100],b[100],c[100],sum=0;
	scanf("%d", &N);
	scanf("%d", &X);
	for (int i = 0; i < X; i++) {
		scanf("%d", &a[i]);
	}
	scanf("%d", &Y);
	for (int i = 0; i < Y; i++) {
		scanf("%d", &b[i]);
	}
	scanf("%d", &Z);
	for (int i = 0; i < Z; i++) {
		scanf("%d", &c[i]);
	}
	for (int j = 0; j < Z; j++) {
		for ( k = 0; k < X; k++) {
			if (c[j] == a[k]) {
				break;
			}
		}
		if (k == X) {
			c[j] = N + 1;
			sum++;
		}
		for ( k = 0; k < Y; k++) {
			if (c[j] == b[k]) {
				sum++;
				break;
			}
		}
	}
	printf("%d\n", sum);
	return 0;
}

5
3 1 2 3
2 4 5
2 2 4
 5
3 1 2 1
2 4 5
2 3 4
 5
3 1 2 3
2 4 5
2 3 2
 5
3 1 4 3
2 4 5
2 3 4
 100
3 1 100 4
0
2 4 3
 5
3 2 4 3
2 4 5
2 3 4
 100
3 0 100 4
0
2 4 3
 100
3 0 000 4
0
2 4 3
 100
3 1 100 4
-1
2 2 3
 5
3 1 2 5
2 4 5
2 2 4

1
 2
 0
 1
 1
 1
 1
 1
 2
 1

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void) {
	int N,X,Y,Z,k,a[100],b[100],c[100],sum=0;
	scanf("%d", &N);
	scanf("%d", &X);
	for (int i = 0; i < X; i++) {
		scanf("%d", &a[i]);
	}
	scanf("%d", &Y);
	for (int i = 0; i < Y; i++) {
		scanf("%d", &b[i]);
	}
	scanf("%d", &Z);
	for (int i = 0; i < Z; i++) {
		scanf("%d", &c[i]);
	}
	for (int j = 0; j < Z; j++) {
		for ( k = 0; k < X; k++) {
			if (c[j] == a[k]) {
				break;
			}
		}
		if (k == X) {
			c[j] = N + 1;
			sum++;
		}
		for ( k = 0; k < Y; k++) {
			if (c[j] == b[k]) {
				sum++;
				break;
			}
		}
	}
	printf("%d\n", sum);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1264, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1236(%rbp)
	leaq	-1256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L2
.L3:
	leaq	-1216(%rbp), %rdx
	movl	-1232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1232(%rbp)
.L2:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L3
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1228(%rbp)
	jmp	.L4
.L5:
	leaq	-816(%rbp), %rdx
	movl	-1228(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1228(%rbp)
.L4:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1228(%rbp)
	jl	.L5
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1224(%rbp)
	jmp	.L6
.L7:
	leaq	-416(%rbp), %rdx
	movl	-1224(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1224(%rbp)
.L6:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1224(%rbp)
	jl	.L7
	movl	$0, -1220(%rbp)
	jmp	.L8
.L18:
	movl	$0, -1240(%rbp)
	jmp	.L9
.L12:
	movl	-1220(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-1240(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L21
	addl	$1, -1240(%rbp)
.L9:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L12
	jmp	.L11
.L21:
	nop
.L11:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jne	.L13
	movl	-1256(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1220(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	addl	$1, -1236(%rbp)
.L13:
	movl	$0, -1240(%rbp)
	jmp	.L14
.L17:
	movl	-1220(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-1240(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L15
	addl	$1, -1236(%rbp)
	jmp	.L16
.L15:
	addl	$1, -1240(%rbp)
.L14:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L17
.L16:
	addl	$1, -1220(%rbp)
.L8:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1220(%rbp)
	jl	.L18
	movl	-1236(%rbp), %eax
	movl	%eax, %esi
	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	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1264, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1236(%rbp)
	leaq	-1256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L2
.L3:
	leaq	-1216(%rbp), %rdx
	movl	-1232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1232(%rbp)
.L2:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L3
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1228(%rbp)
	jmp	.L4
.L5:
	leaq	-816(%rbp), %rdx
	movl	-1228(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1228(%rbp)
.L4:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1228(%rbp)
	jl	.L5
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1224(%rbp)
	jmp	.L6
.L7:
	leaq	-416(%rbp), %rdx
	movl	-1224(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1224(%rbp)
.L6:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1224(%rbp)
	jl	.L7
	movl	$0, -1220(%rbp)
	jmp	.L8
.L18:
	movl	$0, -1240(%rbp)
	jmp	.L9
.L12:
	movl	-1220(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-1240(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L21
	addl	$1, -1240(%rbp)
.L9:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L12
	jmp	.L11
.L21:
	nop
.L11:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jne	.L13
	movl	-1256(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1220(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	addl	$1, -1236(%rbp)
.L13:
	movl	$0, -1240(%rbp)
	jmp	.L14
.L17:
	movl	-1220(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-1240(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L15
	addl	$1, -1236(%rbp)
	jmp	.L16
.L15:
	addl	$1, -1240(%rbp)
.L14:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L17
.L16:
	addl	$1, -1220(%rbp)
.L8:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1220(%rbp)
	jl	.L18
	movl	-1236(%rbp), %eax
	movl	%eax, %esi
	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	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
