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

Assembly Code:

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

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

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:

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

Assembly Code:

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

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	"%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:
```