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>
#include <string.h>

int main(void)
{
    int target[101][3];
    int N;
    int X, Y, Z;
    int a;
    int i;
    int count;
    
    scanf("%d", &N);
    
    memset(target, 0, sizeof(target));
    scanf("%d", &X);
    for (i = 0; i < X; i++){
        scanf("%d", &a);
        target[a][0] = 1;
    }
    scanf("%d", &Y);
    for (i = 0; i < Y; i++){
        scanf("%d", &a);
        target[a][1] = 1;
    }
    scanf("%d", &Z);
    for (i = 0; i < Z; i++){
        scanf("%d", &a);
        target[a][2] = 1;
    }
    
    count = 0;
    for (i = 1; i <= N; i++){
        if (target[i][0] == 0 && target[i][2] == 1 ||
            target[i][1] == 1 && target[i][2] == 1){
            
            count++;
        }
    }
    
    printf("%d\n", count);
    
    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
	leaq	-1260(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1232(%rbp), %rax
	movl	$1212, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1240(%rbp)
	jmp	.L2
.L3:
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1232, %rax
	movl	$1, (%rax)
	addl	$1, -1240(%rbp)
.L2:
	movl	-1256(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L3
	leaq	-1252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1240(%rbp)
	jmp	.L4
.L5:
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1228, %rax
	movl	$1, (%rax)
	addl	$1, -1240(%rbp)
.L4:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L5
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1240(%rbp)
	jmp	.L6
.L7:
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1224, %rax
	movl	$1, (%rax)
	addl	$1, -1240(%rbp)
.L6:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L7
	movl	$0, -1236(%rbp)
	movl	$1, -1240(%rbp)
	jmp	.L8
.L12:
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1232, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1224, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	.L10
.L9:
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1228, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1224, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
.L10:
	addl	$1, -1236(%rbp)
.L11:
	addl	$1, -1240(%rbp)
.L8:
	movl	-1260(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jle	.L12
	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	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$1264, %rsp
	.cfi_def_cfa_offset 1296
	movq	%fs:40, %rax
	movq	%rax, 1256(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	32(%rsp), %rdx
	xorl	%eax, %eax
	movl	$151, %ecx
	movq	%rdx, %rdi
	leaq	16(%rsp), %rsi
	rep stosq
	movl	$0, (%rdi)
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	xorl	%r12d, %r12d
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%r12d, 16(%rsp)
	jg	.L3
.L2:
	movq	%rbx, %rdi
	leaq	20(%rsp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edi
	testl	%edi, %edi
	jle	.L4
	xorl	%r12d, %r12d
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	$1, 36(%rsp,%rax,4)
	cmpl	%r12d, 20(%rsp)
	jg	.L5
.L4:
	leaq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	testl	%esi, %esi
	jle	.L6
	xorl	%r12d, %r12d
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	$1, 40(%rsp,%rax,4)
	cmpl	%r12d, 24(%rsp)
	jg	.L7
.L6:
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L13
	subl	$1, %edx
	leaq	44(%rsp), %rax
	leaq	(%rdx,%rdx,2), %rdx
	leaq	56(%rsp,%rdx,4), %rsi
	xorl	%edx, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	$1, 4(%rax)
	je	.L9
	addq	$12, %rax
	cmpq	%rsi, %rax
	je	.L8
.L11:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jne	.L20
.L9:
	xorl	%ecx, %ecx
	cmpl	$1, 8(%rax)
	sete	%cl
	addq	$12, %rax
	addl	%ecx, %edx
	cmpq	%rsi, %rax
	jne	.L11
.L8:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1256(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$1264, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L8
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$1264, %rsp
	.cfi_def_cfa_offset 1296
	movq	%fs:40, %rax
	movq	%rax, 1256(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	32(%rsp), %rdx
	xorl	%eax, %eax
	movl	$151, %ecx
	movq	%rdx, %rdi
	leaq	16(%rsp), %rsi
	rep stosq
	movl	$0, (%rdi)
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	xorl	%r12d, %r12d
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%r12d, 16(%rsp)
	jg	.L3
.L2:
	movq	%rbx, %rdi
	leaq	20(%rsp), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edi
	testl	%edi, %edi
	jle	.L4
	xorl	%r12d, %r12d
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	$1, 36(%rsp,%rax,4)
	cmpl	%r12d, 20(%rsp)
	jg	.L5
.L4:
	leaq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	testl	%esi, %esi
	jle	.L6
	xorl	%r12d, %r12d
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	movl	$1, 40(%rsp,%rax,4)
	cmpl	%r12d, 24(%rsp)
	jg	.L7
.L6:
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L13
	subl	$1, %edx
	leaq	44(%rsp), %rax
	leaq	(%rdx,%rdx,2), %rdx
	leaq	56(%rsp,%rdx,4), %rsi
	xorl	%edx, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	$1, 4(%rax)
	je	.L9
	addq	$12, %rax
	cmpq	%rsi, %rax
	je	.L8
.L11:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jne	.L20
.L9:
	xorl	%ecx, %ecx
	cmpl	$1, 8(%rax)
	sete	%cl
	addq	$12, %rax
	addl	%ecx, %edx
	cmpq	%rsi, %rax
	jne	.L11
.L8:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1256(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$1264, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L8
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include <string.h>

int main(void)
{
    int target[101][3];
    int N;
    int X, Y, Z;
    int a;
    int i;
    int count;
    
    scanf("%d", &N);
    
    memset(target, 0, sizeof(target));
    scanf("%d", &X);
    for (i = 0; i < X; i++){
        scanf("%d", &a);
        target[a][0] = 1;
    }
    scanf("%d", &Y);
    for (i = 0; i < Y; i++){
        scanf("%d", &a);
        target[a][1] = 1;
    }
    scanf("%d", &Z);
    for (i = 0; i < Z; i++){
        scanf("%d", &a);
        target[a][2] = 1;
    }
    
    count = 0;
    for (i = 1; i <= N; i++){
        if (target[i][0] == 0 && target[i][2] == 1 ||
            target[i][1] == 1 && target[i][2] == 1){
            
            count++;
        }
    }
    
    printf("%d\n", count);
    
    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>
#include <string.h>

int main(void)
{
    int target[101][3];
    int N;
    int X, Y, Z;
    int a;
    int i;
    int count;
    
    scanf("%d", &N);
    
    memset(target, 0, sizeof(target));
    scanf("%d", &X);
    for (i = 0; i < X; i++){
        scanf("%d", &a);
        target[a][0] = 1;
    }
    scanf("%d", &Y);
    for (i = 0; i < Y; i++){
        scanf("%d", &a);
        target[a][1] = 1;
    }
    scanf("%d", &Z);
    for (i = 0; i < Z; i++){
        scanf("%d", &a);
        target[a][2] = 1;
    }
    
    count = 0;
    for (i = 1; i <= N; i++){
        if (target[i][0] == 0 && target[i][2] == 1 ||
            target[i][1] == 1 && target[i][2] == 1){
            
            count++;
        }
    }
    
    printf("%d\n", count);
    
    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
	leaq	-1260(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1232(%rbp), %rax
	movl	$1212, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1240(%rbp)
	jmp	.L2
.L3:
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1232, %rax
	movl	$1, (%rax)
	addl	$1, -1240(%rbp)
.L2:
	movl	-1256(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L3
	leaq	-1252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1240(%rbp)
	jmp	.L4
.L5:
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1228, %rax
	movl	$1, (%rax)
	addl	$1, -1240(%rbp)
.L4:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L5
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1240(%rbp)
	jmp	.L6
.L7:
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1224, %rax
	movl	$1, (%rax)
	addl	$1, -1240(%rbp)
.L6:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L7
	movl	$0, -1236(%rbp)
	movl	$1, -1240(%rbp)
	jmp	.L8
.L12:
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1232, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1224, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	.L10
.L9:
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1228, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1224, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
.L10:
	addl	$1, -1236(%rbp)
.L11:
	addl	$1, -1240(%rbp)
.L8:
	movl	-1260(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jle	.L12
	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	.L14
	call	__stack_chk_fail@PLT
.L14:
	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
	leaq	-1260(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1232(%rbp), %rax
	movl	$1212, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-1256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1240(%rbp)
	jmp	.L2
.L3:
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1232, %rax
	movl	$1, (%rax)
	addl	$1, -1240(%rbp)
.L2:
	movl	-1256(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L3
	leaq	-1252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1240(%rbp)
	jmp	.L4
.L5:
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1228, %rax
	movl	$1, (%rax)
	addl	$1, -1240(%rbp)
.L4:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L5
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1240(%rbp)
	jmp	.L6
.L7:
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1224, %rax
	movl	$1, (%rax)
	addl	$1, -1240(%rbp)
.L6:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jl	.L7
	movl	$0, -1236(%rbp)
	movl	$1, -1240(%rbp)
	jmp	.L8
.L12:
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1232, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1224, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	.L10
.L9:
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1228, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1224, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
.L10:
	addl	$1, -1236(%rbp)
.L11:
	addl	$1, -1240(%rbp)
.L8:
	movl	-1260(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jle	.L12
	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	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
