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(int argc, const char * argv[]) {
    
    int n;
    char u[256][11];
    int m;
    char t[11];
    int i,j,judge=1;
    
    scanf("%d",&n);
    
    for (i =0; i < n; i++) {
        scanf("%s",u[i]);

    }
    scanf("%d",&m);
    int openclose=0;
    for (i=0; i<m; i++) {
        
        scanf("%s",t);
        
        for (j=0; j<n; j++) {
            
            judge = strcmp(u[j],t);
            
            if (judge == 0){
                break;
            }
        }
        
        if (judge == 0) {
            
            if (openclose == 0) {
                printf("Opened by %s\n",t);
                openclose++;
            } else {
                printf("Closed by %s\n",t);
                openclose--;
            }
            
        } else if (judge != 0) {
            printf("Unknown %s\n",t);
        }
        
        judge = -1;
        
    }
    
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Opened by %s\n"
.LC3:
	.string	"Closed by %s\n"
.LC4:
	.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
	movl	%edi, -2884(%rbp)
	movq	%rsi, -2896(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -2856(%rbp)
	leaq	-2872(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2864(%rbp)
	jmp	.L2
.L3:
	leaq	-2848(%rbp), %rcx
	movl	-2864(%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, -2864(%rbp)
.L2:
	movl	-2872(%rbp), %eax
	cmpl	%eax, -2864(%rbp)
	jl	.L3
	leaq	-2868(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2852(%rbp)
	movl	$0, -2864(%rbp)
	jmp	.L4
.L12:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2860(%rbp)
	jmp	.L5
.L8:
	leaq	-2848(%rbp), %rcx
	movl	-2860(%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	%rax, %rsi
	movq	%rdx, %rdi
	call	strcmp@PLT
	movl	%eax, -2856(%rbp)
	cmpl	$0, -2856(%rbp)
	je	.L15
	addl	$1, -2860(%rbp)
.L5:
	movl	-2872(%rbp), %eax
	cmpl	%eax, -2860(%rbp)
	jl	.L8
	jmp	.L7
.L15:
	nop
.L7:
	cmpl	$0, -2856(%rbp)
	jne	.L9
	cmpl	$0, -2852(%rbp)
	jne	.L10
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -2852(%rbp)
	jmp	.L11
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -2852(%rbp)
	jmp	.L11
.L9:
	cmpl	$0, -2856(%rbp)
	je	.L11
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L11:
	movl	$-1, -2856(%rbp)
	addl	$1, -2864(%rbp)
.L4:
	movl	-2868(%rbp), %eax
	cmpl	%eax, -2864(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"Opened by %s\n"
.LC3:
	.string	"Closed by %s\n"
.LC4:
	.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
	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	$2888, %rsp
	.cfi_def_cfa_offset 2944
	movq	%fs:40, %rax
	movq	%rax, 2872(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	leaq	32(%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	43(%rsp), %rax
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%rax, 8(%rsp)
	leaq	.LC1(%rip), %r13
	leaq	2861(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	subl	$1, %eax
	leaq	32(%rsp), %r15
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rbx
	addq	8(%rsp), %rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$11, %r15
	cmpq	%r15, %rbx
	je	.L5
.L7:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L17
	movq	%rbp, %rdx
	testl	%r14d, %r14d
	jne	.L8
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	$1, %r14d
	call	__printf_chk@PLT
.L9:
	addl	$1, %r12d
	cmpl	%r12d, 28(%rsp)
	jg	.L10
.L4:
	movq	2872(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$2888, %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
.L8:
	.cfi_restore_state
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L18:
	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	"Opened by %s\n"
.LC3:
	.string	"Closed by %s\n"
.LC4:
	.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
	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	$2888, %rsp
	.cfi_def_cfa_offset 2944
	movq	%fs:40, %rax
	movq	%rax, 2872(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	leaq	32(%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	43(%rsp), %rax
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%rax, 8(%rsp)
	leaq	.LC1(%rip), %r13
	leaq	2861(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	subl	$1, %eax
	leaq	32(%rsp), %r15
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,2), %rbx
	addq	8(%rsp), %rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$11, %r15
	cmpq	%r15, %rbx
	je	.L5
.L7:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L17
	movq	%rbp, %rdx
	testl	%r14d, %r14d
	jne	.L8
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	$1, %r14d
	call	__printf_chk@PLT
.L9:
	addl	$1, %r12d
	cmpl	%r12d, 28(%rsp)
	jg	.L10
.L4:
	movq	2872(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$2888, %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
.L8:
	.cfi_restore_state
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L18:
	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(int argc, const char * argv[]) {
    
    int n;
    char u[256][11];
    int m;
    char t[11];
    int i,j,judge=1;
    
    scanf("%d",&n);
    
    for (i =0; i < n; i++) {
        scanf("%s",u[i]);

    }
    scanf("%d",&m);
    int openclose=0;
    for (i=0; i<m; i++) {
        
        scanf("%s",t);
        
        for (j=0; j<n; j++) {
            
            judge = strcmp(u[j],t);
            
            if (judge == 0){
                break;
            }
        }
        
        if (judge == 0) {
            
            if (openclose == 0) {
                printf("Opened by %s\n",t);
                openclose++;
            } else {
                printf("Closed by %s\n",t);
                openclose--;
            }
            
        } else if (judge != 0) {
            printf("Unknown %s\n",t);
        }
        
        judge = -1;
        
    }
    
    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(int argc, const char * argv[]) {
    
    int n;
    char u[256][11];
    int m;
    char t[11];
    int i,j,judge=1;
    
    scanf("%d",&n);
    
    for (i =0; i < n; i++) {
        scanf("%s",u[i]);

    }
    scanf("%d",&m);
    int openclose=0;
    for (i=0; i<m; i++) {
        
        scanf("%s",t);
        
        for (j=0; j<n; j++) {
            
            judge = strcmp(u[j],t);
            
            if (judge == 0){
                break;
            }
        }
        
        if (judge == 0) {
            
            if (openclose == 0) {
                printf("Opened by %s\n",t);
                openclose++;
            } else {
                printf("Closed by %s\n",t);
                openclose--;
            }
            
        } else if (judge != 0) {
            printf("Unknown %s\n",t);
        }
        
        judge = -1;
        
    }
    
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Opened by %s\n"
.LC3:
	.string	"Closed by %s\n"
.LC4:
	.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
	movl	%edi, -2884(%rbp)
	movq	%rsi, -2896(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -2856(%rbp)
	leaq	-2872(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2864(%rbp)
	jmp	.L2
.L3:
	leaq	-2848(%rbp), %rcx
	movl	-2864(%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, -2864(%rbp)
.L2:
	movl	-2872(%rbp), %eax
	cmpl	%eax, -2864(%rbp)
	jl	.L3
	leaq	-2868(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2852(%rbp)
	movl	$0, -2864(%rbp)
	jmp	.L4
.L12:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2860(%rbp)
	jmp	.L5
.L8:
	leaq	-2848(%rbp), %rcx
	movl	-2860(%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	%rax, %rsi
	movq	%rdx, %rdi
	call	strcmp@PLT
	movl	%eax, -2856(%rbp)
	cmpl	$0, -2856(%rbp)
	je	.L15
	addl	$1, -2860(%rbp)
.L5:
	movl	-2872(%rbp), %eax
	cmpl	%eax, -2860(%rbp)
	jl	.L8
	jmp	.L7
.L15:
	nop
.L7:
	cmpl	$0, -2856(%rbp)
	jne	.L9
	cmpl	$0, -2852(%rbp)
	jne	.L10
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -2852(%rbp)
	jmp	.L11
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -2852(%rbp)
	jmp	.L11
.L9:
	cmpl	$0, -2856(%rbp)
	je	.L11
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L11:
	movl	$-1, -2856(%rbp)
	addl	$1, -2864(%rbp)
.L4:
	movl	-2868(%rbp), %eax
	cmpl	%eax, -2864(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"Opened by %s\n"
.LC3:
	.string	"Closed by %s\n"
.LC4:
	.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
	movl	%edi, -2884(%rbp)
	movq	%rsi, -2896(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -2856(%rbp)
	leaq	-2872(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2864(%rbp)
	jmp	.L2
.L3:
	leaq	-2848(%rbp), %rcx
	movl	-2864(%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, -2864(%rbp)
.L2:
	movl	-2872(%rbp), %eax
	cmpl	%eax, -2864(%rbp)
	jl	.L3
	leaq	-2868(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2852(%rbp)
	movl	$0, -2864(%rbp)
	jmp	.L4
.L12:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2860(%rbp)
	jmp	.L5
.L8:
	leaq	-2848(%rbp), %rcx
	movl	-2860(%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	%rax, %rsi
	movq	%rdx, %rdi
	call	strcmp@PLT
	movl	%eax, -2856(%rbp)
	cmpl	$0, -2856(%rbp)
	je	.L15
	addl	$1, -2860(%rbp)
.L5:
	movl	-2872(%rbp), %eax
	cmpl	%eax, -2860(%rbp)
	jl	.L8
	jmp	.L7
.L15:
	nop
.L7:
	cmpl	$0, -2856(%rbp)
	jne	.L9
	cmpl	$0, -2852(%rbp)
	jne	.L10
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -2852(%rbp)
	jmp	.L11
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -2852(%rbp)
	jmp	.L11
.L9:
	cmpl	$0, -2856(%rbp)
	je	.L11
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L11:
	movl	$-1, -2856(%rbp)
	addl	$1, -2864(%rbp)
.L4:
	movl	-2868(%rbp), %eax
	cmpl	%eax, -2864(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
