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 line[10][7]={{0,1,1,1,1,1,1},{0,0,0,0,1,1,0},{1,0,1,1,0,1,1},{1,0,0,1,1,1,1},{1,1,0,0,1,1,0},{1,1,0,1,1,0,1},{1,1,1,1,1,0,1},{0,1,0,0,1,1,1},{1,1,1,1,1,1,1},{1,1,0,1,1,1,1}};
    int num,i,kazu;
    while(1){
        int map[7]={0};
        scanf("%d",&num);
        if(num == -1)
            break;
        while(num){
            scanf("%d",&kazu);
            for(i=0;i<7;i++){
                if(map[i] == line[kazu][i])
                    printf("0");
                else
                    printf("1");
                map[i]=line[kazu][i];
            }
            printf("\n");
            num--;
        }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC1:
	.string	"%d"
	.align 32
.LC0:
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.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	$336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-288(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movl	$35, %ecx
	movq	%rax, %rdi
	movq	%rdx, %rsi
	rep movsq
.L10:
	movq	$0, -320(%rbp)
	movq	$0, -312(%rbp)
	movq	$0, -304(%rbp)
	movl	$0, -296(%rbp)
	leaq	-332(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-332(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L4
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	jmp	.L12
.L9:
	leaq	-328(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -324(%rbp)
	jmp	.L5
.L8:
	movl	-324(%rbp), %eax
	cltq
	movl	-320(%rbp,%rax,4), %ecx
	movl	-328(%rbp), %eax
	movl	-324(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	movl	-288(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jne	.L6
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L7
.L6:
	movl	$49, %edi
	call	putchar@PLT
.L7:
	movl	-328(%rbp), %eax
	movl	-324(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rcx, %rax
	movl	-288(%rbp,%rax,4), %edx
	movl	-324(%rbp), %eax
	cltq
	movl	%edx, -320(%rbp,%rax,4)
	addl	$1, -324(%rbp)
.L5:
	cmpl	$6, -324(%rbp)
	jle	.L8
	movl	$10, %edi
	call	putchar@PLT
	movl	-332(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -332(%rbp)
.L4:
	movl	-332(%rbp), %eax
	testl	%eax, %eax
	jne	.L9
	jmp	.L10
.L12:
	call	__stack_chk_fail@PLT
.L11:
	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
.LC1:
	.string	"%d"
	.section	.rodata
	.align 32
.LC0:
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rsi
	movl	$35, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$344, %rsp
	.cfi_def_cfa_offset 400
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
	leaq	8(%rsp), %r14
	rep movsq
	leaq	12(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	pxor	%xmm0, %xmm0
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	movq	$0, 32(%rsp)
	movl	$0, 40(%rsp)
	movaps	%xmm0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	cmpl	$-1, %eax
	je	.L2
	leaq	16(%rsp), %rbp
	testl	%eax, %eax
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	%ebx, %r15
	movl	$48, %edi
	leaq	(%r15,%rax,8), %rdx
	subq	%rax, %rdx
	movl	48(%rsp,%rdx,4), %eax
	cmpl	%eax, 0(%rbp,%rbx,4)
	je	.L18
	movl	$49, %edi
.L18:
	call	putchar@PLT
	movslq	12(%rsp), %rax
	leaq	(%r15,%rax,8), %rdx
	subq	%rax, %rdx
	movl	48(%rsp,%rdx,4), %edx
	movl	%edx, 0(%rbp,%rbx,4)
	addq	$1, %rbx
	cmpq	$7, %rbx
	jne	.L8
	movl	$10, %edi
	call	putchar@PLT
	subl	$1, 8(%rsp)
	jne	.L3
	jmp	.L4
.L2:
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$344, %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
.L20:
	.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
.LC1:
	.string	"%d"
	.section	.rodata
	.align 32
.LC0:
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rsi
	movl	$35, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$344, %rsp
	.cfi_def_cfa_offset 400
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
	leaq	8(%rsp), %r14
	rep movsq
	leaq	12(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	pxor	%xmm0, %xmm0
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	movq	$0, 32(%rsp)
	movl	$0, 40(%rsp)
	movaps	%xmm0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	cmpl	$-1, %eax
	je	.L2
	leaq	16(%rsp), %rbp
	testl	%eax, %eax
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	%ebx, %r15
	movl	$48, %edi
	leaq	(%r15,%rax,8), %rdx
	subq	%rax, %rdx
	movl	48(%rsp,%rdx,4), %eax
	cmpl	%eax, 0(%rbp,%rbx,4)
	je	.L18
	movl	$49, %edi
.L18:
	call	putchar@PLT
	movslq	12(%rsp), %rax
	leaq	(%r15,%rax,8), %rdx
	subq	%rax, %rdx
	movl	48(%rsp,%rdx,4), %edx
	movl	%edx, 0(%rbp,%rbx,4)
	addq	$1, %rbx
	cmpq	$7, %rbx
	jne	.L8
	movl	$10, %edi
	call	putchar@PLT
	subl	$1, 8(%rsp)
	jne	.L3
	jmp	.L4
.L2:
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$344, %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
.L20:
	.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 line[10][7]={{0,1,1,1,1,1,1},{0,0,0,0,1,1,0},{1,0,1,1,0,1,1},{1,0,0,1,1,1,1},{1,1,0,0,1,1,0},{1,1,0,1,1,0,1},{1,1,1,1,1,0,1},{0,1,0,0,1,1,1},{1,1,1,1,1,1,1},{1,1,0,1,1,1,1}};
    int num,i,kazu;
    while(1){
        int map[7]={0};
        scanf("%d",&num);
        if(num == -1)
            break;
        while(num){
            scanf("%d",&kazu);
            for(i=0;i<7;i++){
                if(map[i] == line[kazu][i])
                    printf("0");
                else
                    printf("1");
                map[i]=line[kazu][i];
            }
            printf("\n");
            num--;
        }
    }
    return 0;
}
3
0
5
1
1
1
-1
 3
0
9
1
1
0
-1
 3
0
5
1
1
2
-1
 3
1
9
1
1
0
-1
 3
0
6
1
1
2
-1
 3
1
9
0
1
0
-1
 3
0
5
0
1
0
-1
 3
1
5
1
1
0
-1
 3
0
6
1
1
1
-1
 3
0
7
1
1
0
-1

0111111
1010010
1101011
0000110
 0111111
1010000
1101001
0111111
 0111111
1010010
1101011
1011011
 0000110
1101001
1101001
0111111
 0111111
1000010
1111011
1011011
 0000110
1101001
1010000
0111111
 0111111
1010010
1010010
0111111
 0000110
1101011
1101011
0111111
 0111111
1000010
1111011
0000110
 0111111
0011000
0100001
0111111

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 line[10][7]={{0,1,1,1,1,1,1},{0,0,0,0,1,1,0},{1,0,1,1,0,1,1},{1,0,0,1,1,1,1},{1,1,0,0,1,1,0},{1,1,0,1,1,0,1},{1,1,1,1,1,0,1},{0,1,0,0,1,1,1},{1,1,1,1,1,1,1},{1,1,0,1,1,1,1}};
    int num,i,kazu;
    while(1){
        int map[7]={0};
        scanf("%d",&num);
        if(num == -1)
            break;
        while(num){
            scanf("%d",&kazu);
            for(i=0;i<7;i++){
                if(map[i] == line[kazu][i])
                    printf("0");
                else
                    printf("1");
                map[i]=line[kazu][i];
            }
            printf("\n");
            num--;
        }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC1:
	.string	"%d"
	.align 32
.LC0:
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.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	$336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-288(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movl	$35, %ecx
	movq	%rax, %rdi
	movq	%rdx, %rsi
	rep movsq
.L10:
	movq	$0, -320(%rbp)
	movq	$0, -312(%rbp)
	movq	$0, -304(%rbp)
	movl	$0, -296(%rbp)
	leaq	-332(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-332(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L4
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	jmp	.L12
.L9:
	leaq	-328(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -324(%rbp)
	jmp	.L5
.L8:
	movl	-324(%rbp), %eax
	cltq
	movl	-320(%rbp,%rax,4), %ecx
	movl	-328(%rbp), %eax
	movl	-324(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	movl	-288(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jne	.L6
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L7
.L6:
	movl	$49, %edi
	call	putchar@PLT
.L7:
	movl	-328(%rbp), %eax
	movl	-324(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rcx, %rax
	movl	-288(%rbp,%rax,4), %edx
	movl	-324(%rbp), %eax
	cltq
	movl	%edx, -320(%rbp,%rax,4)
	addl	$1, -324(%rbp)
.L5:
	cmpl	$6, -324(%rbp)
	jle	.L8
	movl	$10, %edi
	call	putchar@PLT
	movl	-332(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -332(%rbp)
.L4:
	movl	-332(%rbp), %eax
	testl	%eax, %eax
	jne	.L9
	jmp	.L10
.L12:
	call	__stack_chk_fail@PLT
.L11:
	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
.LC1:
	.string	"%d"
	.align 32
.LC0:
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	1
	.long	0
	.long	1
	.long	1
	.long	1
	.long	1
	.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	$336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-288(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movl	$35, %ecx
	movq	%rax, %rdi
	movq	%rdx, %rsi
	rep movsq
.L10:
	movq	$0, -320(%rbp)
	movq	$0, -312(%rbp)
	movq	$0, -304(%rbp)
	movl	$0, -296(%rbp)
	leaq	-332(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-332(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L4
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	jmp	.L12
.L9:
	leaq	-328(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -324(%rbp)
	jmp	.L5
.L8:
	movl	-324(%rbp), %eax
	cltq
	movl	-320(%rbp,%rax,4), %ecx
	movl	-328(%rbp), %eax
	movl	-324(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	movl	-288(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jne	.L6
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L7
.L6:
	movl	$49, %edi
	call	putchar@PLT
.L7:
	movl	-328(%rbp), %eax
	movl	-324(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rcx, %rax
	movl	-288(%rbp,%rax,4), %edx
	movl	-324(%rbp), %eax
	cltq
	movl	%edx, -320(%rbp,%rax,4)
	addl	$1, -324(%rbp)
.L5:
	cmpl	$6, -324(%rbp)
	jle	.L8
	movl	$10, %edi
	call	putchar@PLT
	movl	-332(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -332(%rbp)
.L4:
	movl	-332(%rbp), %eax
	testl	%eax, %eax
	jne	.L9
	jmp	.L10
.L12:
	call	__stack_chk_fail@PLT
.L11:
	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:
