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<stdlib.h>

int main(void)
{
    int n, m;
    int ans = 0;
    char s[100][10];
    char t[100][10]; 

    scanf("%d", &n);
    for (int i = 0; n > i; i++) {
        scanf("%s", s[i]);
    }
    scanf("%d", &m);
    for (int i = 0; m > i; i++) {
        scanf("%s", t[i]);
    }
    for (int i = 0; n > i; i++) {
        int tmp = 0;
        for (int j = 0; n > j; j++) {
            if (0 == strcmp(s[i], s[j])) {
                tmp++;
            }
        }
        for (int j = 0; m > j; j++) {
            if (0 == strcmp(s[i], t[j])) {
                tmp--;
            }
        }
        if (tmp > ans) {
            ans = tmp;
        }
    }

    printf("%d\n", ans);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -2044(%rbp)
	leaq	-2052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2040(%rbp)
	jmp	.L2
.L3:
	leaq	-2016(%rbp), %rcx
	movl	-2040(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2040(%rbp)
.L2:
	movl	-2052(%rbp), %eax
	cmpl	%eax, -2040(%rbp)
	jl	.L3
	leaq	-2048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2036(%rbp)
	jmp	.L4
.L5:
	leaq	-1008(%rbp), %rcx
	movl	-2036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2036(%rbp)
.L4:
	movl	-2048(%rbp), %eax
	cmpl	%eax, -2036(%rbp)
	jl	.L5
	movl	$0, -2032(%rbp)
	jmp	.L6
.L14:
	movl	$0, -2028(%rbp)
	movl	$0, -2024(%rbp)
	jmp	.L7
.L9:
	leaq	-2016(%rbp), %rcx
	movl	-2024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2016(%rbp), %rsi
	movl	-2032(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L8
	addl	$1, -2028(%rbp)
.L8:
	addl	$1, -2024(%rbp)
.L7:
	movl	-2052(%rbp), %eax
	cmpl	%eax, -2024(%rbp)
	jl	.L9
	movl	$0, -2020(%rbp)
	jmp	.L10
.L12:
	leaq	-1008(%rbp), %rcx
	movl	-2020(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2016(%rbp), %rsi
	movl	-2032(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	subl	$1, -2028(%rbp)
.L11:
	addl	$1, -2020(%rbp)
.L10:
	movl	-2048(%rbp), %eax
	cmpl	%eax, -2020(%rbp)
	jl	.L12
	movl	-2028(%rbp), %eax
	cmpl	-2044(%rbp), %eax
	jle	.L13
	movl	-2028(%rbp), %eax
	movl	%eax, -2044(%rbp)
.L13:
	addl	$1, -2032(%rbp)
.L6:
	movl	-2052(%rbp), %eax
	cmpl	%eax, -2032(%rbp)
	jl	.L14
	movl	-2044(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$2072, %rsp
	.cfi_def_cfa_offset 2128
	movq	%fs:40, %rax
	movq	%rax, 2056(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$10, %rbp
	cmpl	%ebx, 40(%rsp)
	jg	.L3
.L2:
	leaq	44(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r14d
	testl	%r14d, %r14d
	jle	.L4
	leaq	1056(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r14d
	addq	$10, %rbp
	cmpl	%ebx, %r14d
	jg	.L5
.L4:
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	subl	$1, %eax
	leaq	48(%rsp), %rbp
	movl	$0, 12(%rsp)
	leaq	(%rax,%rax,4), %rax
	movq	%rbp, 16(%rsp)
	leaq	58(%rsp,%rax,2), %r12
	leaq	1056(%rsp), %rax
	movq	%rax, 24(%rsp)
	leal	-1(%r14), %eax
	leaq	(%rax,%rax,4), %rax
	leaq	1066(%rsp,%rax,2), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movq	16(%rsp), %r15
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %ebx
	addq	$10, %r15
	cmpq	%r12, %r15
	jne	.L8
	testl	%r14d, %r14d
	jle	.L9
	movq	24(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	sbbl	$0, %ebx
	addq	$10, %r15
	cmpq	%r15, %r13
	jne	.L11
.L9:
	movl	12(%rsp), %eax
	cmpl	%ebx, %eax
	cmovge	%eax, %ebx
	addq	$10, %rbp
	movl	%ebx, 12(%rsp)
	cmpq	%r12, %rbp
	jne	.L12
	movl	%ebx, %edx
.L6:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	2056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$2072, %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
.L14:
	.cfi_restore_state
	movl	$0, 12(%rsp)
	movl	12(%rsp), %edx
	jmp	.L6
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$2072, %rsp
	.cfi_def_cfa_offset 2128
	movq	%fs:40, %rax
	movq	%rax, 2056(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$10, %rbp
	cmpl	%ebx, 40(%rsp)
	jg	.L3
.L2:
	leaq	44(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r14d
	testl	%r14d, %r14d
	jle	.L4
	leaq	1056(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r14d
	addq	$10, %rbp
	cmpl	%ebx, %r14d
	jg	.L5
.L4:
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	subl	$1, %eax
	leaq	48(%rsp), %rbp
	movl	$0, 12(%rsp)
	leaq	(%rax,%rax,4), %rax
	movq	%rbp, 16(%rsp)
	leaq	58(%rsp,%rax,2), %r12
	leaq	1056(%rsp), %rax
	movq	%rax, 24(%rsp)
	leal	-1(%r14), %eax
	leaq	(%rax,%rax,4), %rax
	leaq	1066(%rsp,%rax,2), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movq	16(%rsp), %r15
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %ebx
	addq	$10, %r15
	cmpq	%r12, %r15
	jne	.L8
	testl	%r14d, %r14d
	jle	.L9
	movq	24(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	sbbl	$0, %ebx
	addq	$10, %r15
	cmpq	%r15, %r13
	jne	.L11
.L9:
	movl	12(%rsp), %eax
	cmpl	%ebx, %eax
	cmovge	%eax, %ebx
	addq	$10, %rbp
	movl	%ebx, 12(%rsp)
	cmpq	%r12, %rbp
	jne	.L12
	movl	%ebx, %edx
.L6:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	2056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$2072, %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
.L14:
	.cfi_restore_state
	movl	$0, 12(%rsp)
	movl	12(%rsp), %edx
	jmp	.L6
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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<stdlib.h>

int main(void)
{
    int n, m;
    int ans = 0;
    char s[100][10];
    char t[100][10]; 

    scanf("%d", &n);
    for (int i = 0; n > i; i++) {
        scanf("%s", s[i]);
    }
    scanf("%d", &m);
    for (int i = 0; m > i; i++) {
        scanf("%s", t[i]);
    }
    for (int i = 0; n > i; i++) {
        int tmp = 0;
        for (int j = 0; n > j; j++) {
            if (0 == strcmp(s[i], s[j])) {
                tmp++;
            }
        }
        for (int j = 0; m > j; j++) {
            if (0 == strcmp(s[i], t[j])) {
                tmp--;
            }
        }
        if (tmp > ans) {
            ans = tmp;
        }
    }

    printf("%d\n", ans);
    return 0;
}
3
apple
orange
apple
5
aeplp
apple
apple
apple
apple
 6
red
red
blue
yellow
yellow
red
5
red
ree
yellow
green
blue
 1
voldemort
10
voldemort
voldemort
voldemort
voldemort
uoldemort
voldemort
voldemort
voldemort
voldemort
voldemort
 6
red
red
blue
yellow
yellow
red
5
rde
erd
lelyow
green
blte
 3
appme
orange
apple
1
grape
 3
apple
orange
lppae
5
aeplp
apple
apple
apple
apple
 3
appme
orange
apple
0
grape
 6
red
red
blue
ylelow
yellow
red
5
red
ree
yellow
green
blue
 1
voldemort
10
voldemort
voldemort
voldemort
voldemort
uoldemort
voldemort
voldemort
voleemort
voldemort
voldemort
 3
apole
orange
lppae
5
aeplp
apple
apple
apple
apple

1
 2
 0
 3
 1
 1
 1
 2
 0
 1

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<stdlib.h>

int main(void)
{
    int n, m;
    int ans = 0;
    char s[100][10];
    char t[100][10]; 

    scanf("%d", &n);
    for (int i = 0; n > i; i++) {
        scanf("%s", s[i]);
    }
    scanf("%d", &m);
    for (int i = 0; m > i; i++) {
        scanf("%s", t[i]);
    }
    for (int i = 0; n > i; i++) {
        int tmp = 0;
        for (int j = 0; n > j; j++) {
            if (0 == strcmp(s[i], s[j])) {
                tmp++;
            }
        }
        for (int j = 0; m > j; j++) {
            if (0 == strcmp(s[i], t[j])) {
                tmp--;
            }
        }
        if (tmp > ans) {
            ans = tmp;
        }
    }

    printf("%d\n", ans);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -2044(%rbp)
	leaq	-2052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2040(%rbp)
	jmp	.L2
.L3:
	leaq	-2016(%rbp), %rcx
	movl	-2040(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2040(%rbp)
.L2:
	movl	-2052(%rbp), %eax
	cmpl	%eax, -2040(%rbp)
	jl	.L3
	leaq	-2048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2036(%rbp)
	jmp	.L4
.L5:
	leaq	-1008(%rbp), %rcx
	movl	-2036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2036(%rbp)
.L4:
	movl	-2048(%rbp), %eax
	cmpl	%eax, -2036(%rbp)
	jl	.L5
	movl	$0, -2032(%rbp)
	jmp	.L6
.L14:
	movl	$0, -2028(%rbp)
	movl	$0, -2024(%rbp)
	jmp	.L7
.L9:
	leaq	-2016(%rbp), %rcx
	movl	-2024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2016(%rbp), %rsi
	movl	-2032(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L8
	addl	$1, -2028(%rbp)
.L8:
	addl	$1, -2024(%rbp)
.L7:
	movl	-2052(%rbp), %eax
	cmpl	%eax, -2024(%rbp)
	jl	.L9
	movl	$0, -2020(%rbp)
	jmp	.L10
.L12:
	leaq	-1008(%rbp), %rcx
	movl	-2020(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2016(%rbp), %rsi
	movl	-2032(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	subl	$1, -2028(%rbp)
.L11:
	addl	$1, -2020(%rbp)
.L10:
	movl	-2048(%rbp), %eax
	cmpl	%eax, -2020(%rbp)
	jl	.L12
	movl	-2028(%rbp), %eax
	cmpl	-2044(%rbp), %eax
	jle	.L13
	movl	-2028(%rbp), %eax
	movl	%eax, -2044(%rbp)
.L13:
	addl	$1, -2032(%rbp)
.L6:
	movl	-2052(%rbp), %eax
	cmpl	%eax, -2032(%rbp)
	jl	.L14
	movl	-2044(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -2044(%rbp)
	leaq	-2052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2040(%rbp)
	jmp	.L2
.L3:
	leaq	-2016(%rbp), %rcx
	movl	-2040(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2040(%rbp)
.L2:
	movl	-2052(%rbp), %eax
	cmpl	%eax, -2040(%rbp)
	jl	.L3
	leaq	-2048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2036(%rbp)
	jmp	.L4
.L5:
	leaq	-1008(%rbp), %rcx
	movl	-2036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2036(%rbp)
.L4:
	movl	-2048(%rbp), %eax
	cmpl	%eax, -2036(%rbp)
	jl	.L5
	movl	$0, -2032(%rbp)
	jmp	.L6
.L14:
	movl	$0, -2028(%rbp)
	movl	$0, -2024(%rbp)
	jmp	.L7
.L9:
	leaq	-2016(%rbp), %rcx
	movl	-2024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2016(%rbp), %rsi
	movl	-2032(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L8
	addl	$1, -2028(%rbp)
.L8:
	addl	$1, -2024(%rbp)
.L7:
	movl	-2052(%rbp), %eax
	cmpl	%eax, -2024(%rbp)
	jl	.L9
	movl	$0, -2020(%rbp)
	jmp	.L10
.L12:
	leaq	-1008(%rbp), %rcx
	movl	-2020(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2016(%rbp), %rsi
	movl	-2032(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	subl	$1, -2028(%rbp)
.L11:
	addl	$1, -2020(%rbp)
.L10:
	movl	-2048(%rbp), %eax
	cmpl	%eax, -2020(%rbp)
	jl	.L12
	movl	-2028(%rbp), %eax
	cmpl	-2044(%rbp), %eax
	jle	.L13
	movl	-2028(%rbp), %eax
	movl	%eax, -2044(%rbp)
.L13:
	addl	$1, -2032(%rbp)
.L6:
	movl	-2052(%rbp), %eax
	cmpl	%eax, -2032(%rbp)
	jl	.L14
	movl	-2044(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
