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 main(void){
int i,j,n,b,a;
int s[11][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},{0,0,0,0,0,0,0}};
int ans[7];

while(scanf("%d",&n),n!=-1){
b=10;
for(i=0;i<n;i++){
scanf("%d",&a);
for(j=0;j<7;j++){
if(s[b][j]==s[a][j]) ans[j]=0;
else ans[j]=1;
}
b=a;
for(j=0;j<7;j++){
printf("%d",ans[j]);
}
puts("");
}
}
return 0;}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC3:
	.string	""
	.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
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.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	$38, %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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$408, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 392(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %r14
	movq	%r14, %rdi
	rep movsq
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	leaq	40(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	cmpl	$-1, %eax
	je	.L5
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rax
	xorl	%r13d, %r13d
	movl	$10, %r12d
	movq	%rax, 8(%rsp)
	leaq	76(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	leaq	0(,%r12,8), %rdx
	movq	8(%rsp), %r15
	subq	%r12, %rdx
	movslq	44(%rsp), %r12
	movdqu	(%r14,%rdx,4), %xmm1
	leaq	0(,%r12,8), %rax
	subq	%r12, %rax
	movl	96(%rsp,%rax,4), %ecx
	cmpl	%ecx, 96(%rsp,%rdx,4)
	setne	%cl
	movdqu	(%r14,%rax,4), %xmm0
	movzbl	%cl, %ecx
	movl	%ecx, 64(%rsp)
	movl	100(%rsp,%rax,4), %ecx
	pcmpeqd	%xmm1, %xmm0
	cmpl	%ecx, 100(%rsp,%rdx,4)
	movl	104(%rsp,%rax,4), %eax
	setne	%cl
	cmpl	%eax, 104(%rsp,%rdx,4)
	pandn	.LC2(%rip), %xmm0
	setne	%al
	movzbl	%cl, %ecx
	movzbl	%al, %eax
	movl	%ecx, 68(%rsp)
	movl	%eax, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movl	(%r15), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__printf_chk@PLT
	cmpq	%r15, %rbp
	jne	.L3
	leaq	.LC3(%rip), %rdi
	addl	$1, %r13d
	call	puts@PLT
	cmpl	%r13d, 40(%rsp)
	jg	.L4
	jmp	.L2
.L5:
	movq	392(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$408, %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
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC3:
	.string	""
	.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
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.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	$38, %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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$408, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 392(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %r14
	movq	%r14, %rdi
	rep movsq
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	leaq	40(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	cmpl	$-1, %eax
	je	.L5
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rax
	xorl	%r13d, %r13d
	movl	$10, %r12d
	movq	%rax, 8(%rsp)
	leaq	76(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	leaq	0(,%r12,8), %rdx
	movq	8(%rsp), %r15
	subq	%r12, %rdx
	movslq	44(%rsp), %r12
	movdqu	(%r14,%rdx,4), %xmm1
	leaq	0(,%r12,8), %rax
	subq	%r12, %rax
	movl	96(%rsp,%rax,4), %ecx
	cmpl	%ecx, 96(%rsp,%rdx,4)
	setne	%cl
	movdqu	(%r14,%rax,4), %xmm0
	movzbl	%cl, %ecx
	movl	%ecx, 64(%rsp)
	movl	100(%rsp,%rax,4), %ecx
	pcmpeqd	%xmm1, %xmm0
	cmpl	%ecx, 100(%rsp,%rdx,4)
	movl	104(%rsp,%rax,4), %eax
	setne	%cl
	cmpl	%eax, 104(%rsp,%rdx,4)
	pandn	.LC2(%rip), %xmm0
	setne	%al
	movzbl	%cl, %ecx
	movzbl	%al, %eax
	movl	%ecx, 68(%rsp)
	movl	%eax, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movl	(%r15), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__printf_chk@PLT
	cmpq	%r15, %rbp
	jne	.L3
	leaq	.LC3(%rip), %rdi
	addl	$1, %r13d
	call	puts@PLT
	cmpl	%r13d, 40(%rsp)
	jg	.L4
	jmp	.L2
.L5:
	movq	392(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$408, %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
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC3:
	.string	""
	.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
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.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	$38, %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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$408, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 392(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %r14
	movq	%r14, %rdi
	rep movsq
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	leaq	40(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	cmpl	$-1, %eax
	je	.L5
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rax
	xorl	%r13d, %r13d
	movl	$10, %r12d
	movq	%rax, 8(%rsp)
	leaq	76(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	leaq	0(,%r12,8), %rdx
	movq	8(%rsp), %r15
	subq	%r12, %rdx
	movslq	44(%rsp), %r12
	movdqu	(%r14,%rdx,4), %xmm1
	leaq	0(,%r12,8), %rax
	subq	%r12, %rax
	movl	96(%rsp,%rax,4), %ecx
	cmpl	%ecx, 96(%rsp,%rdx,4)
	setne	%cl
	movdqu	(%r14,%rax,4), %xmm0
	movzbl	%cl, %ecx
	movl	%ecx, 64(%rsp)
	movl	100(%rsp,%rax,4), %ecx
	pcmpeqd	%xmm1, %xmm0
	cmpl	%ecx, 100(%rsp,%rdx,4)
	movl	104(%rsp,%rax,4), %eax
	setne	%cl
	cmpl	%eax, 104(%rsp,%rdx,4)
	pandn	.LC2(%rip), %xmm0
	setne	%al
	movzbl	%cl, %ecx
	movzbl	%al, %eax
	movl	%ecx, 68(%rsp)
	movl	%eax, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movl	(%r15), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__printf_chk@PLT
	cmpq	%r15, %rbp
	jne	.L3
	leaq	.LC3(%rip), %rdi
	addl	$1, %r13d
	call	puts@PLT
	cmpl	%r13d, 40(%rsp)
	jg	.L4
	jmp	.L2
.L5:
	movq	392(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$408, %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
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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 main(void){
int i,j,n,b,a;
int s[11][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},{0,0,0,0,0,0,0}};
int ans[7];

while(scanf("%d",&n),n!=-1){
b=10;
for(i=0;i<n;i++){
scanf("%d",&a);
for(j=0;j<7;j++){
if(s[b][j]==s[a][j]) ans[j]=0;
else ans[j]=1;
}
b=a;
for(j=0;j<7;j++){
printf("%d",ans[j]);
}
puts("");
}
}
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 main(void){
int i,j,n,b,a;
int s[11][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},{0,0,0,0,0,0,0}};
int ans[7];

while(scanf("%d",&n),n!=-1){
b=10;
for(i=0;i<n;i++){
scanf("%d",&a);
for(j=0;j<7;j++){
if(s[b][j]==s[a][j]) ans[j]=0;
else ans[j]=1;
}
b=a;
for(j=0;j<7;j++){
printf("%d",ans[j]);
}
puts("");
}
}
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:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void){
int i,j,n,b,a;
int s[11][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},{0,0,0,0,0,0,0}};
int ans[7];

while(scanf("%d",&n),n!=-1){
b=10;
for(i=0;i<n;i++){
scanf("%d",&a);
for(j=0;j<7;j++){
if(s[b][j]==s[a][j]) ans[j]=0;
else ans[j]=1;
}
b=a;
for(j=0;j<7;j++){
printf("%d",ans[j]);
}
puts("");
}
}
return 0;}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC3:
	.string	""
	.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
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.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	$38, %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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$408, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 392(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %r14
	movq	%r14, %rdi
	rep movsq
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	leaq	40(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	cmpl	$-1, %eax
	je	.L5
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rax
	xorl	%r13d, %r13d
	movl	$10, %r12d
	movq	%rax, 8(%rsp)
	leaq	76(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	leaq	0(,%r12,8), %rdx
	movq	8(%rsp), %r15
	subq	%r12, %rdx
	movslq	44(%rsp), %r12
	movdqu	(%r14,%rdx,4), %xmm1
	leaq	0(,%r12,8), %rax
	subq	%r12, %rax
	movl	96(%rsp,%rax,4), %ecx
	cmpl	%ecx, 96(%rsp,%rdx,4)
	setne	%cl
	movdqu	(%r14,%rax,4), %xmm0
	movzbl	%cl, %ecx
	movl	%ecx, 64(%rsp)
	movl	100(%rsp,%rax,4), %ecx
	pcmpeqd	%xmm1, %xmm0
	cmpl	%ecx, 100(%rsp,%rdx,4)
	movl	104(%rsp,%rax,4), %eax
	setne	%cl
	cmpl	%eax, 104(%rsp,%rdx,4)
	pandn	.LC2(%rip), %xmm0
	setne	%al
	movzbl	%cl, %ecx
	movzbl	%al, %eax
	movl	%ecx, 68(%rsp)
	movl	%eax, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movl	(%r15), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__printf_chk@PLT
	cmpq	%r15, %rbp
	jne	.L3
	leaq	.LC3(%rip), %rdi
	addl	$1, %r13d
	call	puts@PLT
	cmpl	%r13d, 40(%rsp)
	jg	.L4
	jmp	.L2
.L5:
	movq	392(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$408, %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
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC3:
	.string	""
	.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
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.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	$38, %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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$408, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 392(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %r14
	movq	%r14, %rdi
	rep movsq
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	leaq	40(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	cmpl	$-1, %eax
	je	.L5
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rax
	xorl	%r13d, %r13d
	movl	$10, %r12d
	movq	%rax, 8(%rsp)
	leaq	76(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	leaq	0(,%r12,8), %rdx
	movq	8(%rsp), %r15
	subq	%r12, %rdx
	movslq	44(%rsp), %r12
	movdqu	(%r14,%rdx,4), %xmm1
	leaq	0(,%r12,8), %rax
	subq	%r12, %rax
	movl	96(%rsp,%rax,4), %ecx
	cmpl	%ecx, 96(%rsp,%rdx,4)
	setne	%cl
	movdqu	(%r14,%rax,4), %xmm0
	movzbl	%cl, %ecx
	movl	%ecx, 64(%rsp)
	movl	100(%rsp,%rax,4), %ecx
	pcmpeqd	%xmm1, %xmm0
	cmpl	%ecx, 100(%rsp,%rdx,4)
	movl	104(%rsp,%rax,4), %eax
	setne	%cl
	cmpl	%eax, 104(%rsp,%rdx,4)
	pandn	.LC2(%rip), %xmm0
	setne	%al
	movzbl	%cl, %ecx
	movzbl	%al, %eax
	movl	%ecx, 68(%rsp)
	movl	%eax, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movl	(%r15), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__printf_chk@PLT
	cmpq	%r15, %rbp
	jne	.L3
	leaq	.LC3(%rip), %rdi
	addl	$1, %r13d
	call	puts@PLT
	cmpl	%r13d, 40(%rsp)
	jg	.L4
	jmp	.L2
.L5:
	movq	392(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$408, %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
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
```