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 num,i,n,sign,o;
    char map[256][11],line[11],ans[2][7]={"Opened","Closed"};
    scanf("%d",&num);
    for(i=0;i<num;i++)
        scanf("%s",map[i]);
    scanf("%d",&n);
    for(sign=1,i=0;i<n;i++){
        scanf("%s",line);
        for(o=0;o<num;o++){
            if(strcmp(line,map[o]) == 0){
                sign=1-sign;
                printf("%s by %s\n",ans[sign],map[o]);
                break;
            }
            if(o == num-1)
                printf("Unknown %s\n",line);
        }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%s by %s\n"
.LC3:
	.string	"Unknown %s\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	$2896, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1852141647, -2862(%rbp)
	movw	$25701, -2858(%rbp)
	movb	$0, -2856(%rbp)
	movl	$1936682051, -2855(%rbp)
	movw	$25701, -2851(%rbp)
	movb	$0, -2849(%rbp)
	leaq	-2884(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2876(%rbp)
	jmp	.L2
.L3:
	leaq	-2848(%rbp), %rcx
	movl	-2876(%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	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2876(%rbp)
.L2:
	movl	-2884(%rbp), %eax
	cmpl	%eax, -2876(%rbp)
	jl	.L3
	leaq	-2880(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -2872(%rbp)
	movl	$0, -2876(%rbp)
	jmp	.L4
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2868(%rbp)
	jmp	.L5
.L9:
	leaq	-2848(%rbp), %rcx
	movl	-2868(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-19(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	movl	$1, %eax
	subl	-2872(%rbp), %eax
	movl	%eax, -2872(%rbp)
	leaq	-2848(%rbp), %rcx
	movl	-2868(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2862(%rbp), %rsi
	movl	-2872(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L6:
	movl	-2884(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -2868(%rbp)
	jne	.L8
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	addl	$1, -2868(%rbp)
.L5:
	movl	-2884(%rbp), %eax
	cmpl	%eax, -2868(%rbp)
	jl	.L9
.L7:
	addl	$1, -2876(%rbp)
.L4:
	movl	-2880(%rbp), %eax
	cmpl	%eax, -2876(%rbp)
	jl	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"%s"
.LC2:
	.string	"%s by %s\n"
.LC3:
	.string	"Unknown %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$25701, %edx
	movl	$25701, %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	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$2904, %rsp
	.cfi_def_cfa_offset 2960
	movq	%fs:40, %rax
	movq	%rax, 2888(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	movl	$1852141647, 34(%rsp)
	movw	%dx, 38(%rsp)
	movb	$0, 40(%rsp)
	movl	$1936682051, 41(%rsp)
	movw	%cx, 45(%rsp)
	movb	$0, 47(%rsp)
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	testl	%esi, %esi
	jle	.L2
	leaq	48(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.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
.L2:
	leaq	28(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	34(%rsp), %rax
	movl	$1, 4(%rsp)
	leaq	.LC1(%rip), %r13
	movl	$0, (%rsp)
	leaq	2877(%rsp), %rbp
	leaq	.LC3(%rip), %r14
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L5
	leaq	48(%rsp), %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L17
.L6:
	leal	-1(%rbx), %eax
	cmpl	%r12d, %eax
	je	.L18
	addl	$1, %r12d
	addq	$11, %r15
	cmpl	%r12d, %ebx
	jg	.L9
.L5:
	addl	$1, (%rsp)
	movl	(%rsp), %eax
	cmpl	%eax, 28(%rsp)
	jg	.L10
.L4:
	movq	2888(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$2904, %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
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	movq	%rbp, %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%ebx, %r12d
	movl	24(%rsp), %ebx
	addq	$11, %r15
	cmpl	%r12d, %ebx
	jle	.L5
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	movq	8(%rsp), %rcx
	movl	$1, %eax
	subl	4(%rsp), %eax
	leaq	.LC2(%rip), %rsi
	movl	%eax, 4(%rsp)
	cltq
	movl	$1, %edi
	leaq	(%rcx,%rax,8), %rdx
	movq	%r15, %rcx
	subq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addl	$1, (%rsp)
	movl	(%rsp), %eax
	cmpl	%eax, 28(%rsp)
	jg	.L10
	jmp	.L4
.L19:
	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	"%s"
.LC2:
	.string	"%s by %s\n"
.LC3:
	.string	"Unknown %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$25701, %edx
	movl	$25701, %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	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$2904, %rsp
	.cfi_def_cfa_offset 2960
	movq	%fs:40, %rax
	movq	%rax, 2888(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	movl	$1852141647, 34(%rsp)
	movw	%dx, 38(%rsp)
	movb	$0, 40(%rsp)
	movl	$1936682051, 41(%rsp)
	movw	%cx, 45(%rsp)
	movb	$0, 47(%rsp)
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	testl	%esi, %esi
	jle	.L2
	leaq	48(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.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
.L2:
	leaq	28(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	34(%rsp), %rax
	movl	$1, 4(%rsp)
	leaq	.LC1(%rip), %r13
	movl	$0, (%rsp)
	leaq	2877(%rsp), %rbp
	leaq	.LC3(%rip), %r14
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L5
	leaq	48(%rsp), %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L17
.L6:
	leal	-1(%rbx), %eax
	cmpl	%r12d, %eax
	je	.L18
	addl	$1, %r12d
	addq	$11, %r15
	cmpl	%r12d, %ebx
	jg	.L9
.L5:
	addl	$1, (%rsp)
	movl	(%rsp), %eax
	cmpl	%eax, 28(%rsp)
	jg	.L10
.L4:
	movq	2888(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$2904, %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
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	movq	%rbp, %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%ebx, %r12d
	movl	24(%rsp), %ebx
	addq	$11, %r15
	cmpl	%r12d, %ebx
	jle	.L5
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	movq	8(%rsp), %rcx
	movl	$1, %eax
	subl	4(%rsp), %eax
	leaq	.LC2(%rip), %rsi
	movl	%eax, 4(%rsp)
	cltq
	movl	$1, %edi
	leaq	(%rcx,%rax,8), %rdx
	movq	%r15, %rcx
	subq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addl	$1, (%rsp)
	movl	(%rsp), %eax
	cmpl	%eax, 28(%rsp)
	jg	.L10
	jmp	.L4
.L19:
	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 num,i,n,sign,o;
    char map[256][11],line[11],ans[2][7]={"Opened","Closed"};
    scanf("%d",&num);
    for(i=0;i<num;i++)
        scanf("%s",map[i]);
    scanf("%d",&n);
    for(sign=1,i=0;i<n;i++){
        scanf("%s",line);
        for(o=0;o<num;o++){
            if(strcmp(line,map[o]) == 0){
                sign=1-sign;
                printf("%s by %s\n",ans[sign],map[o]);
                break;
            }
            if(o == num-1)
                printf("Unknown %s\n",line);
        }
    }
    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>
#include <string.h>

int main(void){
    int num,i,n,sign,o;
    char map[256][11],line[11],ans[2][7]={"Opened","Closed"};
    scanf("%d",&num);
    for(i=0;i<num;i++)
        scanf("%s",map[i]);
    scanf("%d",&n);
    for(sign=1,i=0;i<n;i++){
        scanf("%s",line);
        for(o=0;o<num;o++){
            if(strcmp(line,map[o]) == 0){
                sign=1-sign;
                printf("%s by %s\n",ans[sign],map[o]);
                break;
            }
            if(o == num-1)
                printf("Unknown %s\n",line);
        }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%s by %s\n"
.LC3:
	.string	"Unknown %s\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	$2896, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1852141647, -2862(%rbp)
	movw	$25701, -2858(%rbp)
	movb	$0, -2856(%rbp)
	movl	$1936682051, -2855(%rbp)
	movw	$25701, -2851(%rbp)
	movb	$0, -2849(%rbp)
	leaq	-2884(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2876(%rbp)
	jmp	.L2
.L3:
	leaq	-2848(%rbp), %rcx
	movl	-2876(%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	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2876(%rbp)
.L2:
	movl	-2884(%rbp), %eax
	cmpl	%eax, -2876(%rbp)
	jl	.L3
	leaq	-2880(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -2872(%rbp)
	movl	$0, -2876(%rbp)
	jmp	.L4
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2868(%rbp)
	jmp	.L5
.L9:
	leaq	-2848(%rbp), %rcx
	movl	-2868(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-19(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	movl	$1, %eax
	subl	-2872(%rbp), %eax
	movl	%eax, -2872(%rbp)
	leaq	-2848(%rbp), %rcx
	movl	-2868(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2862(%rbp), %rsi
	movl	-2872(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L6:
	movl	-2884(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -2868(%rbp)
	jne	.L8
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	addl	$1, -2868(%rbp)
.L5:
	movl	-2884(%rbp), %eax
	cmpl	%eax, -2868(%rbp)
	jl	.L9
.L7:
	addl	$1, -2876(%rbp)
.L4:
	movl	-2880(%rbp), %eax
	cmpl	%eax, -2876(%rbp)
	jl	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"%s"
.LC2:
	.string	"%s by %s\n"
.LC3:
	.string	"Unknown %s\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	$2896, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1852141647, -2862(%rbp)
	movw	$25701, -2858(%rbp)
	movb	$0, -2856(%rbp)
	movl	$1936682051, -2855(%rbp)
	movw	$25701, -2851(%rbp)
	movb	$0, -2849(%rbp)
	leaq	-2884(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2876(%rbp)
	jmp	.L2
.L3:
	leaq	-2848(%rbp), %rcx
	movl	-2876(%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	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2876(%rbp)
.L2:
	movl	-2884(%rbp), %eax
	cmpl	%eax, -2876(%rbp)
	jl	.L3
	leaq	-2880(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -2872(%rbp)
	movl	$0, -2876(%rbp)
	jmp	.L4
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2868(%rbp)
	jmp	.L5
.L9:
	leaq	-2848(%rbp), %rcx
	movl	-2868(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-19(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	movl	$1, %eax
	subl	-2872(%rbp), %eax
	movl	%eax, -2872(%rbp)
	leaq	-2848(%rbp), %rcx
	movl	-2868(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2862(%rbp), %rsi
	movl	-2872(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L7
.L6:
	movl	-2884(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -2868(%rbp)
	jne	.L8
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	addl	$1, -2868(%rbp)
.L5:
	movl	-2884(%rbp), %eax
	cmpl	%eax, -2868(%rbp)
	jl	.L9
.L7:
	addl	$1, -2876(%rbp)
.L4:
	movl	-2880(%rbp), %eax
	cmpl	%eax, -2876(%rbp)
	jl	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
