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>
#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;
}```

Assembly Code:

```assembly
	.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:
```

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
.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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
.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:
```