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 number[10] = {63, 6, 91, 79, 102, 109, 125, 39, 127, 111};
	int show;
	int n;
	int i, j;
	int in;
	
	while (1){
		scanf("%d", &n);
		
		if (n == -1){
			break;
		}
		
		show = 0;
		
		for (i = 0; i < n; i++){
			scanf("%d", &in);
			show ^= number[in];
			for (j = 6; j >= 0; j--){
				printf("%d", (show >> j) & 1);
			}
			printf("\n");
			show = number[in];
		}
	}
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$63, -48(%rbp)
	movl	$6, -44(%rbp)
	movl	$91, -40(%rbp)
	movl	$79, -36(%rbp)
	movl	$102, -32(%rbp)
	movl	$109, -28(%rbp)
	movl	$125, -24(%rbp)
	movl	$39, -20(%rbp)
	movl	$127, -16(%rbp)
	movl	$111, -12(%rbp)
.L8:
	leaq	-68(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-68(%rbp), %eax
	cmpl	$-1, %eax
	je	.L12
	movl	$0, -60(%rbp)
	movl	$0, -56(%rbp)
	jmp	.L4
.L7:
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	xorl	%eax, -60(%rbp)
	movl	$6, -52(%rbp)
	jmp	.L5
.L6:
	movl	-52(%rbp), %eax
	movl	-60(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -52(%rbp)
.L5:
	cmpl	$0, -52(%rbp)
	jns	.L6
	movl	$10, %edi
	call	putchar@PLT
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -60(%rbp)
	addl	$1, -56(%rbp)
.L4:
	movl	-68(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L7
	jmp	.L8
.L12:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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
.LC3:
	.string	"%d"
	.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
	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	.LC3(%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	$72, %rsp
	.cfi_def_cfa_offset 128
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movq	.LC2(%rip), %rax
	leaq	8(%rsp), %r15
	movaps	%xmm0, 16(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movq	%rax, 48(%rsp)
	movaps	%xmm0, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	cmpl	$-1, %eax
	je	.L2
	testl	%eax, %eax
	jle	.L6
	xorl	%r13d, %r13d
	xorl	%ebp, %ebp
	leaq	12(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	movl	$6, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	xorl	16(%rsp,%rax,4), %ebp
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ebx, %ecx
	movl	%ebp, %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	sarl	%cl, %edx
	movl	$1, %edi
	andl	$1, %edx
	call	__printf_chk@PLT
	subl	$1, %ebx
	jnb	.L4
	movl	$10, %edi
	addl	$1, %r13d
	call	putchar@PLT
	movslq	12(%rsp), %rax
	movl	16(%rsp,%rax,4), %ebp
	cmpl	%r13d, 8(%rsp)
	jg	.L5
	jmp	.L6
.L2:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$72, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	63
	.long	6
	.long	91
	.long	79
	.align 16
.LC1:
	.long	102
	.long	109
	.long	125
	.long	39
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	127
	.long	111
	.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
.LC3:
	.string	"%d"
	.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
	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	.LC3(%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	$72, %rsp
	.cfi_def_cfa_offset 128
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movq	.LC2(%rip), %rax
	leaq	8(%rsp), %r15
	movaps	%xmm0, 16(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movq	%rax, 48(%rsp)
	movaps	%xmm0, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	cmpl	$-1, %eax
	je	.L2
	testl	%eax, %eax
	jle	.L6
	xorl	%r13d, %r13d
	xorl	%ebp, %ebp
	leaq	12(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	movl	$6, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	xorl	16(%rsp,%rax,4), %ebp
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ebx, %ecx
	movl	%ebp, %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	sarl	%cl, %edx
	movl	$1, %edi
	andl	$1, %edx
	call	__printf_chk@PLT
	subl	$1, %ebx
	jnb	.L4
	movl	$10, %edi
	addl	$1, %r13d
	call	putchar@PLT
	movslq	12(%rsp), %rax
	movl	16(%rsp,%rax,4), %ebp
	cmpl	%r13d, 8(%rsp)
	jg	.L5
	jmp	.L6
.L2:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$72, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	63
	.long	6
	.long	91
	.long	79
	.align 16
.LC1:
	.long	102
	.long	109
	.long	125
	.long	39
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	127
	.long	111
	.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 number[10] = {63, 6, 91, 79, 102, 109, 125, 39, 127, 111};
	int show;
	int n;
	int i, j;
	int in;
	
	while (1){
		scanf("%d", &n);
		
		if (n == -1){
			break;
		}
		
		show = 0;
		
		for (i = 0; i < n; i++){
			scanf("%d", &in);
			show ^= number[in];
			for (j = 6; j >= 0; j--){
				printf("%d", (show >> j) & 1);
			}
			printf("\n");
			show = number[in];
		}
	}
	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 number[10] = {63, 6, 91, 79, 102, 109, 125, 39, 127, 111};
	int show;
	int n;
	int i, j;
	int in;
	
	while (1){
		scanf("%d", &n);
		
		if (n == -1){
			break;
		}
		
		show = 0;
		
		for (i = 0; i < n; i++){
			scanf("%d", &in);
			show ^= number[in];
			for (j = 6; j >= 0; j--){
				printf("%d", (show >> j) & 1);
			}
			printf("\n");
			show = number[in];
		}
	}
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$63, -48(%rbp)
	movl	$6, -44(%rbp)
	movl	$91, -40(%rbp)
	movl	$79, -36(%rbp)
	movl	$102, -32(%rbp)
	movl	$109, -28(%rbp)
	movl	$125, -24(%rbp)
	movl	$39, -20(%rbp)
	movl	$127, -16(%rbp)
	movl	$111, -12(%rbp)
.L8:
	leaq	-68(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-68(%rbp), %eax
	cmpl	$-1, %eax
	je	.L12
	movl	$0, -60(%rbp)
	movl	$0, -56(%rbp)
	jmp	.L4
.L7:
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	xorl	%eax, -60(%rbp)
	movl	$6, -52(%rbp)
	jmp	.L5
.L6:
	movl	-52(%rbp), %eax
	movl	-60(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -52(%rbp)
.L5:
	cmpl	$0, -52(%rbp)
	jns	.L6
	movl	$10, %edi
	call	putchar@PLT
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -60(%rbp)
	addl	$1, -56(%rbp)
.L4:
	movl	-68(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L7
	jmp	.L8
.L12:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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"
	.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	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$63, -48(%rbp)
	movl	$6, -44(%rbp)
	movl	$91, -40(%rbp)
	movl	$79, -36(%rbp)
	movl	$102, -32(%rbp)
	movl	$109, -28(%rbp)
	movl	$125, -24(%rbp)
	movl	$39, -20(%rbp)
	movl	$127, -16(%rbp)
	movl	$111, -12(%rbp)
.L8:
	leaq	-68(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-68(%rbp), %eax
	cmpl	$-1, %eax
	je	.L12
	movl	$0, -60(%rbp)
	movl	$0, -56(%rbp)
	jmp	.L4
.L7:
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	xorl	%eax, -60(%rbp)
	movl	$6, -52(%rbp)
	jmp	.L5
.L6:
	movl	-52(%rbp), %eax
	movl	-60(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -52(%rbp)
.L5:
	cmpl	$0, -52(%rbp)
	jns	.L6
	movl	$10, %edi
	call	putchar@PLT
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -60(%rbp)
	addl	$1, -56(%rbp)
.L4:
	movl	-68(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L7
	jmp	.L8
.L12:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
