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(){
	int i,j;
	int n,m;
	char id[257][11];
	char try[257][11];
	int now;// 0:Close,1:Open
	char ans[2][11]={"Opened by ","Closed by "};
	int flag;

	while(scanf("%d",&n) != EOF){
		for(i = 0;i < n;i++){
			scanf("%s",id[i]);
		}
		scanf("%d",&m);
		for(i = 0;i < m;i++){
			scanf("%s",try[i]);
		}
		now = 0;

		for(i = 0;i < m;i++){
			for(flag = 0,j = 0;j < n;j++){
				if(strcmp(id[j],try[i]) == 0){
					flag = 1;
					break;
				}
			}
			if(flag){
				printf("%s%s\n",ans[now],try[i]);
				now++;
				now %=2;
			}else{
				printf("%s%s\n","Unknown ",try[i]);
			}
		}
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s%s\n"
.LC3:
	.string	"Unknown "
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$1648, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$7070761801778294863, %rax
	movq	%rax, -5712(%rbp)
	movw	$8313, -5704(%rbp)
	movb	$0, -5702(%rbp)
	movabsq	$7070761801862835267, %rax
	movq	%rax, -5701(%rbp)
	movw	$8313, -5693(%rbp)
	movb	$0, -5691(%rbp)
	jmp	.L2
.L15:
	movl	$0, -5728(%rbp)
	jmp	.L3
.L4:
	leaq	-5680(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5728(%rbp)
.L3:
	movl	-5736(%rbp), %eax
	cmpl	%eax, -5728(%rbp)
	jl	.L4
	leaq	-5732(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -5728(%rbp)
	jmp	.L5
.L6:
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5728(%rbp)
.L5:
	movl	-5732(%rbp), %eax
	cmpl	%eax, -5728(%rbp)
	jl	.L6
	movl	$0, -5720(%rbp)
	movl	$0, -5728(%rbp)
	jmp	.L7
.L14:
	movl	$0, -5716(%rbp)
	movl	$0, -5724(%rbp)
	jmp	.L8
.L11:
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-5680(%rbp), %rsi
	movl	-5724(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L9
	movl	$1, -5716(%rbp)
	jmp	.L10
.L9:
	addl	$1, -5724(%rbp)
.L8:
	movl	-5736(%rbp), %eax
	cmpl	%eax, -5724(%rbp)
	jl	.L11
.L10:
	cmpl	$0, -5716(%rbp)
	je	.L12
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-5712(%rbp), %rsi
	movl	-5720(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rdx
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -5720(%rbp)
	movl	-5720(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, -5720(%rbp)
	jmp	.L13
.L12:
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdx
	leaq	.LC3(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -5728(%rbp)
.L7:
	movl	-5732(%rbp), %eax
	cmpl	%eax, -5728(%rbp)
	jl	.L14
.L2:
	leaq	-5736(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"%s"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s%s\n"
.LC3:
	.string	"Unknown "
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1656, %rsp
	.cfi_def_cfa_offset 5808
	movl	$32, %ecx
	movdqa	.LC4(%rip), %xmm0
	leaq	.LC0(%rip), %r13
	leaq	.LC2(%rip), %r15
	movq	%fs:40, %rax
	movq	%rax, 5736(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$2036473956, 48(%rsp)
	movw	%cx, 52(%rsp)
	movq	%rax, 8(%rsp)
	movaps	%xmm0, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L11
	movl	24(%rsp), %eax
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$11, %rbp
	cmpl	%ebx, 24(%rsp)
	jg	.L3
.L13:
	leaq	28(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	leaq	2896(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addq	$11, %r12
	cmpl	%ebp, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L2
	movl	24(%rsp), %eax
	movl	$0, 4(%rsp)
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	subl	$1, %eax
	leaq	64(%rsp), %r14
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	leaq	75(%rsp,%rax), %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$11, %r14
	cmpq	%r14, %rbp
	je	.L9
.L8:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L25
	movslq	4(%rsp), %rax
	movq	%rbx, %rcx
	movq	%r15, %rsi
	movl	$1, %edi
	leaq	(%rax,%rax,4), %rdx
	movq	%rax, %r14
	leaq	(%rax,%rdx,2), %rax
	xorl	$1, %r14d
	leaq	32(%rsp,%rax), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r14d, 4(%rsp)
.L14:
	addl	$1, %r12d
	addq	$11, %rbx
	cmpl	%r12d, 28(%rsp)
	jle	.L2
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jg	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbx, %rcx
	leaq	.LC3(%rip), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L14
.L11:
	movq	5736(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$5752, %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
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.quad	7070761801778294863
	.quad	7310309130923679865
	.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	"%s"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s%s\n"
.LC3:
	.string	"Unknown "
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1656, %rsp
	.cfi_def_cfa_offset 5808
	movl	$32, %ecx
	movdqa	.LC4(%rip), %xmm0
	leaq	.LC0(%rip), %r13
	leaq	.LC2(%rip), %r15
	movq	%fs:40, %rax
	movq	%rax, 5736(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$2036473956, 48(%rsp)
	movw	%cx, 52(%rsp)
	movq	%rax, 8(%rsp)
	movaps	%xmm0, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L11
	movl	24(%rsp), %eax
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$11, %rbp
	cmpl	%ebx, 24(%rsp)
	jg	.L3
.L13:
	leaq	28(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	leaq	2896(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addq	$11, %r12
	cmpl	%ebp, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L2
	movl	24(%rsp), %eax
	movl	$0, 4(%rsp)
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	subl	$1, %eax
	leaq	64(%rsp), %r14
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	leaq	75(%rsp,%rax), %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$11, %r14
	cmpq	%r14, %rbp
	je	.L9
.L8:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L25
	movslq	4(%rsp), %rax
	movq	%rbx, %rcx
	movq	%r15, %rsi
	movl	$1, %edi
	leaq	(%rax,%rax,4), %rdx
	movq	%rax, %r14
	leaq	(%rax,%rdx,2), %rax
	xorl	$1, %r14d
	leaq	32(%rsp,%rax), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r14d, 4(%rsp)
.L14:
	addl	$1, %r12d
	addq	$11, %rbx
	cmpl	%r12d, 28(%rsp)
	jle	.L2
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jg	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbx, %rcx
	leaq	.LC3(%rip), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L14
.L11:
	movq	5736(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$5752, %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
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.quad	7070761801778294863
	.quad	7310309130923679865
	.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(){
	int i,j;
	int n,m;
	char id[257][11];
	char try[257][11];
	int now;// 0:Close,1:Open
	char ans[2][11]={"Opened by ","Closed by "};
	int flag;

	while(scanf("%d",&n) != EOF){
		for(i = 0;i < n;i++){
			scanf("%s",id[i]);
		}
		scanf("%d",&m);
		for(i = 0;i < m;i++){
			scanf("%s",try[i]);
		}
		now = 0;

		for(i = 0;i < m;i++){
			for(flag = 0,j = 0;j < n;j++){
				if(strcmp(id[j],try[i]) == 0){
					flag = 1;
					break;
				}
			}
			if(flag){
				printf("%s%s\n",ans[now],try[i]);
				now++;
				now %=2;
			}else{
				printf("%s%s\n","Unknown ",try[i]);
			}
		}
	}
	return 0;
}
4
abcd
efgh
ijkl
mnop
5
abcd
abcc
efgh
abcd
mnop

Opened by abcd
Unknown abcc
Closed by efgh
Opened by abcd
Closed by mnop

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(){
	int i,j;
	int n,m;
	char id[257][11];
	char try[257][11];
	int now;// 0:Close,1:Open
	char ans[2][11]={"Opened by ","Closed by "};
	int flag;

	while(scanf("%d",&n) != EOF){
		for(i = 0;i < n;i++){
			scanf("%s",id[i]);
		}
		scanf("%d",&m);
		for(i = 0;i < m;i++){
			scanf("%s",try[i]);
		}
		now = 0;

		for(i = 0;i < m;i++){
			for(flag = 0,j = 0;j < n;j++){
				if(strcmp(id[j],try[i]) == 0){
					flag = 1;
					break;
				}
			}
			if(flag){
				printf("%s%s\n",ans[now],try[i]);
				now++;
				now %=2;
			}else{
				printf("%s%s\n","Unknown ",try[i]);
			}
		}
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s%s\n"
.LC3:
	.string	"Unknown "
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$1648, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$7070761801778294863, %rax
	movq	%rax, -5712(%rbp)
	movw	$8313, -5704(%rbp)
	movb	$0, -5702(%rbp)
	movabsq	$7070761801862835267, %rax
	movq	%rax, -5701(%rbp)
	movw	$8313, -5693(%rbp)
	movb	$0, -5691(%rbp)
	jmp	.L2
.L15:
	movl	$0, -5728(%rbp)
	jmp	.L3
.L4:
	leaq	-5680(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5728(%rbp)
.L3:
	movl	-5736(%rbp), %eax
	cmpl	%eax, -5728(%rbp)
	jl	.L4
	leaq	-5732(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -5728(%rbp)
	jmp	.L5
.L6:
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5728(%rbp)
.L5:
	movl	-5732(%rbp), %eax
	cmpl	%eax, -5728(%rbp)
	jl	.L6
	movl	$0, -5720(%rbp)
	movl	$0, -5728(%rbp)
	jmp	.L7
.L14:
	movl	$0, -5716(%rbp)
	movl	$0, -5724(%rbp)
	jmp	.L8
.L11:
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-5680(%rbp), %rsi
	movl	-5724(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L9
	movl	$1, -5716(%rbp)
	jmp	.L10
.L9:
	addl	$1, -5724(%rbp)
.L8:
	movl	-5736(%rbp), %eax
	cmpl	%eax, -5724(%rbp)
	jl	.L11
.L10:
	cmpl	$0, -5716(%rbp)
	je	.L12
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-5712(%rbp), %rsi
	movl	-5720(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rdx
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -5720(%rbp)
	movl	-5720(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, -5720(%rbp)
	jmp	.L13
.L12:
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdx
	leaq	.LC3(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -5728(%rbp)
.L7:
	movl	-5732(%rbp), %eax
	cmpl	%eax, -5728(%rbp)
	jl	.L14
.L2:
	leaq	-5736(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"%s"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s%s\n"
.LC3:
	.string	"Unknown "
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$1648, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$7070761801778294863, %rax
	movq	%rax, -5712(%rbp)
	movw	$8313, -5704(%rbp)
	movb	$0, -5702(%rbp)
	movabsq	$7070761801862835267, %rax
	movq	%rax, -5701(%rbp)
	movw	$8313, -5693(%rbp)
	movb	$0, -5691(%rbp)
	jmp	.L2
.L15:
	movl	$0, -5728(%rbp)
	jmp	.L3
.L4:
	leaq	-5680(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5728(%rbp)
.L3:
	movl	-5736(%rbp), %eax
	cmpl	%eax, -5728(%rbp)
	jl	.L4
	leaq	-5732(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -5728(%rbp)
	jmp	.L5
.L6:
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -5728(%rbp)
.L5:
	movl	-5732(%rbp), %eax
	cmpl	%eax, -5728(%rbp)
	jl	.L6
	movl	$0, -5720(%rbp)
	movl	$0, -5728(%rbp)
	jmp	.L7
.L14:
	movl	$0, -5716(%rbp)
	movl	$0, -5724(%rbp)
	jmp	.L8
.L11:
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-5680(%rbp), %rsi
	movl	-5724(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L9
	movl	$1, -5716(%rbp)
	jmp	.L10
.L9:
	addl	$1, -5724(%rbp)
.L8:
	movl	-5736(%rbp), %eax
	cmpl	%eax, -5724(%rbp)
	jl	.L11
.L10:
	cmpl	$0, -5716(%rbp)
	je	.L12
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-5712(%rbp), %rsi
	movl	-5720(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rdx
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -5720(%rbp)
	movl	-5720(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, -5720(%rbp)
	jmp	.L13
.L12:
	leaq	-2848(%rbp), %rcx
	movl	-5728(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdx
	leaq	.LC3(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -5728(%rbp)
.L7:
	movl	-5732(%rbp), %eax
	cmpl	%eax, -5728(%rbp)
	jl	.L14
.L2:
	leaq	-5736(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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:
