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>
#include<string.h>
char s[200002][15];
int cmp(const void * a, const void *b){return strcmp(s[*(int*)a],s[*(int*)b]);}
int main(){
    int n;
    scanf("%d",&n);
    int c[200003];
    for(int i = 0; i < n; i++){
        scanf("%s",s[i]);
        c[i] = i;
    }
    qsort(c,n,4,cmp);
    int a[200003];
    a[c[0]] = 1;
    for(int i = 0; i < n; i++){
        if(strcmp(s[c[i]], s[c[i - 1]]) == 0)
            a[c[i]] = a[c[i - 1]] + 1;
        else 
            a[c[i]] = 1;
    }
    int max = 0;
    for(int i = 0; i <n; i++)
        if(a[i] > max)
            max = a[i];
    for(int i = 0; i < n; i++)
        if(a[c[i]] == max)
            printf("%s\n",s[c[i]]);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 3000030
s:
	.zero	3000030
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	leaq	s(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600072(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600068(%rbp)
	jmp	.L4
.L5:
	movl	-1600068(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1600068(%rbp), %eax
	cltq
	movl	-1600068(%rbp), %edx
	movl	%edx, -1600048(%rbp,%rax,4)
	addl	$1, -1600068(%rbp)
.L4:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600068(%rbp)
	jl	.L5
	movl	-1600072(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1600048(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-1600048(%rbp), %eax
	cltq
	movl	$1, -800032(%rbp,%rax,4)
	movl	$0, -1600064(%rbp)
	jmp	.L6
.L9:
	movl	-1600064(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rax, %rdx
	movl	-1600064(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	leaq	s(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
	movl	-1600064(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %edx
	movl	-1600064(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	addl	$1, %edx
	cltq
	movl	%edx, -800032(%rbp,%rax,4)
	jmp	.L8
.L7:
	movl	-1600064(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	cltq
	movl	$1, -800032(%rbp,%rax,4)
.L8:
	addl	$1, -1600064(%rbp)
.L6:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600064(%rbp)
	jl	.L9
	movl	$0, -1600060(%rbp)
	movl	$0, -1600056(%rbp)
	jmp	.L10
.L12:
	movl	-1600056(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	cmpl	%eax, -1600060(%rbp)
	jge	.L11
	movl	-1600056(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	movl	%eax, -1600060(%rbp)
.L11:
	addl	$1, -1600056(%rbp)
.L10:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600056(%rbp)
	jl	.L12
	movl	$0, -1600052(%rbp)
	jmp	.L13
.L15:
	movl	-1600052(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	cmpl	%eax, -1600060(%rbp)
	jne	.L14
	movl	-1600052(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
.L14:
	addl	$1, -1600052(%rbp)
.L13:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600052(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB51:
	.cfi_startproc
	endbr64
	movslq	(%rsi), %rax
	movslq	(%rdi), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	salq	$4, %rsi
	salq	$4, %rdi
	subq	%rax, %rsi
	subq	%rdx, %rdi
	leaq	s(%rip), %rax
	addq	%rax, %rsi
	addq	%rax, %rdi
	jmp	strcmp@PLT
	.cfi_endproc
.LFE51:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597496
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2648, %rsp
	.cfi_def_cfa_offset 1600144
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600072(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	leaq	32(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	leaq	s(%rip), %r12
	xorl	%ebp, %ebp
	leaq	32(%rsp), %rbx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$15, %r12
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	movl	%ebp, (%rbx,%rbp,4)
	addq	$1, %rbp
	cmpl	%ebp, %esi
	jg	.L5
.L4:
	leaq	cmp(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movslq	32(%rsp), %rax
	movl	28(%rsp), %r12d
	movl	$1, 800048(%rsp,%rax,4)
	testl	%r12d, %r12d
	jle	.L16
	leal	-1(%r12), %eax
	movq	%rbx, %r15
	leaq	s(%rip), %rbp
	movl	%eax, 12(%rsp)
	leaq	36(%rsp,%rax,4), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	-4(%r15), %r13
	movslq	(%r15), %r14
	movq	%r13, %rsi
	movq	%r14, %rdi
	salq	$4, %rsi
	salq	$4, %rdi
	subq	%r13, %rsi
	subq	%r14, %rdi
	addq	%rbp, %rsi
	addq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
	movl	800048(%rsp,%r13,4), %eax
	addq	$4, %r15
	addl	$1, %eax
	movl	%eax, 800048(%rsp,%r14,4)
	cmpq	(%rsp), %r15
	jne	.L10
.L9:
	cmpl	$2, 12(%rsp)
	jbe	.L19
	movl	%r12d, %edx
	leaq	800048(%rsp), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	800064(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	pcmpgtd	-16(%rax), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rax), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rdx, %rax
	jne	.L12
	movdqa	%xmm0, %xmm2
	movl	%r12d, %eax
	psrldq	$8, %xmm2
	andl	$-4, %eax
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %r14d
	testb	$3, %r12b
	je	.L13
.L11:
	movslq	%eax, %rdx
	movl	800048(%rsp,%rdx,4), %edx
	cmpl	%edx, %r14d
	cmovl	%edx, %r14d
	leal	1(%rax), %edx
	cmpl	%r12d, %edx
	jge	.L13
	movslq	%edx, %rdx
	movl	800048(%rsp,%rdx,4), %edx
	cmpl	%edx, %r14d
	cmovl	%edx, %r14d
	addl	$2, %eax
	cmpl	%r12d, %eax
	jge	.L13
	cltq
	movl	800048(%rsp,%rax,4), %eax
	cmpl	%eax, %r14d
	cmovl	%eax, %r14d
.L13:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L17:
	movslq	(%rbx,%r13,4), %rax
	cmpl	%r14d, 800048(%rsp,%rax,4)
	je	.L26
	addq	$1, %r13
	cmpl	%r13d, %r12d
	jg	.L17
.L16:
	movq	1600072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$1600088, %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
.L7:
	.cfi_restore_state
	movl	$1, 800048(%rsp,%r14,4)
	addq	$4, %r15
	cmpq	(%rsp), %r15
	jne	.L10
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L26:
	movq	%rax, %rdi
	addq	$1, %r13
	salq	$4, %rdi
	subq	%rax, %rdi
	addq	%rbp, %rdi
	call	puts@PLT
	movl	28(%rsp), %r12d
	cmpl	%r13d, %r12d
	jg	.L17
	jmp	.L16
.L19:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	jmp	.L11
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 3000030
s:
	.zero	3000030
	.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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB51:
	.cfi_startproc
	endbr64
	movslq	(%rsi), %rax
	movslq	(%rdi), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	salq	$4, %rsi
	salq	$4, %rdi
	subq	%rax, %rsi
	subq	%rdx, %rdi
	leaq	s(%rip), %rax
	addq	%rax, %rsi
	addq	%rax, %rdi
	jmp	strcmp@PLT
	.cfi_endproc
.LFE51:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597496
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2648, %rsp
	.cfi_def_cfa_offset 1600144
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600072(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	leaq	32(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	leaq	s(%rip), %r12
	xorl	%ebp, %ebp
	leaq	32(%rsp), %rbx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$15, %r12
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	movl	%ebp, (%rbx,%rbp,4)
	addq	$1, %rbp
	cmpl	%ebp, %esi
	jg	.L5
.L4:
	leaq	cmp(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movslq	32(%rsp), %rax
	movl	28(%rsp), %r12d
	movl	$1, 800048(%rsp,%rax,4)
	testl	%r12d, %r12d
	jle	.L16
	leal	-1(%r12), %eax
	movq	%rbx, %r15
	leaq	s(%rip), %rbp
	movl	%eax, 12(%rsp)
	leaq	36(%rsp,%rax,4), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	-4(%r15), %r13
	movslq	(%r15), %r14
	movq	%r13, %rsi
	movq	%r14, %rdi
	salq	$4, %rsi
	salq	$4, %rdi
	subq	%r13, %rsi
	subq	%r14, %rdi
	addq	%rbp, %rsi
	addq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
	movl	800048(%rsp,%r13,4), %eax
	addq	$4, %r15
	addl	$1, %eax
	movl	%eax, 800048(%rsp,%r14,4)
	cmpq	(%rsp), %r15
	jne	.L10
.L9:
	cmpl	$2, 12(%rsp)
	jbe	.L19
	movl	%r12d, %edx
	leaq	800048(%rsp), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	800064(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	pcmpgtd	-16(%rax), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rax), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rdx, %rax
	jne	.L12
	movdqa	%xmm0, %xmm2
	movl	%r12d, %eax
	psrldq	$8, %xmm2
	andl	$-4, %eax
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %r14d
	testb	$3, %r12b
	je	.L13
.L11:
	movslq	%eax, %rdx
	movl	800048(%rsp,%rdx,4), %edx
	cmpl	%edx, %r14d
	cmovl	%edx, %r14d
	leal	1(%rax), %edx
	cmpl	%r12d, %edx
	jge	.L13
	movslq	%edx, %rdx
	movl	800048(%rsp,%rdx,4), %edx
	cmpl	%edx, %r14d
	cmovl	%edx, %r14d
	addl	$2, %eax
	cmpl	%r12d, %eax
	jge	.L13
	cltq
	movl	800048(%rsp,%rax,4), %eax
	cmpl	%eax, %r14d
	cmovl	%eax, %r14d
.L13:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L17:
	movslq	(%rbx,%r13,4), %rax
	cmpl	%r14d, 800048(%rsp,%rax,4)
	je	.L26
	addq	$1, %r13
	cmpl	%r13d, %r12d
	jg	.L17
.L16:
	movq	1600072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$1600088, %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
.L7:
	.cfi_restore_state
	movl	$1, 800048(%rsp,%r14,4)
	addq	$4, %r15
	cmpq	(%rsp), %r15
	jne	.L10
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L26:
	movq	%rax, %rdi
	addq	$1, %r13
	salq	$4, %rdi
	subq	%rax, %rdi
	addq	%rbp, %rdi
	call	puts@PLT
	movl	28(%rsp), %r12d
	cmpl	%r13d, %r12d
	jg	.L17
	jmp	.L16
.L19:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	jmp	.L11
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 3000030
s:
	.zero	3000030
	.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>
#include<string.h>
char s[200002][15];
int cmp(const void * a, const void *b){return strcmp(s[*(int*)a],s[*(int*)b]);}
int main(){
    int n;
    scanf("%d",&n);
    int c[200003];
    for(int i = 0; i < n; i++){
        scanf("%s",s[i]);
        c[i] = i;
    }
    qsort(c,n,4,cmp);
    int a[200003];
    a[c[0]] = 1;
    for(int i = 0; i < n; i++){
        if(strcmp(s[c[i]], s[c[i - 1]]) == 0)
            a[c[i]] = a[c[i - 1]] + 1;
        else 
            a[c[i]] = 1;
    }
    int max = 0;
    for(int i = 0; i <n; i++)
        if(a[i] > max)
            max = a[i];
    for(int i = 0; i < n; i++)
        if(a[c[i]] == max)
            printf("%s\n",s[c[i]]);
    return 0;
}
8
buffalo
buffalo
buffalo
buffalo
olaffub
buffalo
buffalo
buffalo
 7
beat
veu
beet
bed
vet
bet
beet
 7
bass
bass
kick
kick
bats
kick
kick
 4
ushi
taou
nichia
kun
 4
ihsu
taou
nichia
kun
 7
beat
veu
beet
bed
vte
bet
teeb
 4
ihsu
taou
michia
kun
 7
beat
veu
bfet
bed
vte
bet
teeb
 4
ihsu
taou
michia
nuk
 7
beat
veu
bfet
bed
vte
cet
teeb

buffalo
 beat
beet
 kick
 kun
nichia
taou
ushi
 ihsu
 beat
 ihsu
 beat
 ihsu
 beat

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>
#include<string.h>
char s[200002][15];
int cmp(const void * a, const void *b){return strcmp(s[*(int*)a],s[*(int*)b]);}
int main(){
    int n;
    scanf("%d",&n);
    int c[200003];
    for(int i = 0; i < n; i++){
        scanf("%s",s[i]);
        c[i] = i;
    }
    qsort(c,n,4,cmp);
    int a[200003];
    a[c[0]] = 1;
    for(int i = 0; i < n; i++){
        if(strcmp(s[c[i]], s[c[i - 1]]) == 0)
            a[c[i]] = a[c[i - 1]] + 1;
        else 
            a[c[i]] = 1;
    }
    int max = 0;
    for(int i = 0; i <n; i++)
        if(a[i] > max)
            max = a[i];
    for(int i = 0; i < n; i++)
        if(a[c[i]] == max)
            printf("%s\n",s[c[i]]);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 3000030
s:
	.zero	3000030
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	leaq	s(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600072(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600068(%rbp)
	jmp	.L4
.L5:
	movl	-1600068(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1600068(%rbp), %eax
	cltq
	movl	-1600068(%rbp), %edx
	movl	%edx, -1600048(%rbp,%rax,4)
	addl	$1, -1600068(%rbp)
.L4:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600068(%rbp)
	jl	.L5
	movl	-1600072(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1600048(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-1600048(%rbp), %eax
	cltq
	movl	$1, -800032(%rbp,%rax,4)
	movl	$0, -1600064(%rbp)
	jmp	.L6
.L9:
	movl	-1600064(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rax, %rdx
	movl	-1600064(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	leaq	s(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
	movl	-1600064(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %edx
	movl	-1600064(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	addl	$1, %edx
	cltq
	movl	%edx, -800032(%rbp,%rax,4)
	jmp	.L8
.L7:
	movl	-1600064(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	cltq
	movl	$1, -800032(%rbp,%rax,4)
.L8:
	addl	$1, -1600064(%rbp)
.L6:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600064(%rbp)
	jl	.L9
	movl	$0, -1600060(%rbp)
	movl	$0, -1600056(%rbp)
	jmp	.L10
.L12:
	movl	-1600056(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	cmpl	%eax, -1600060(%rbp)
	jge	.L11
	movl	-1600056(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	movl	%eax, -1600060(%rbp)
.L11:
	addl	$1, -1600056(%rbp)
.L10:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600056(%rbp)
	jl	.L12
	movl	$0, -1600052(%rbp)
	jmp	.L13
.L15:
	movl	-1600052(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	cmpl	%eax, -1600060(%rbp)
	jne	.L14
	movl	-1600052(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
.L14:
	addl	$1, -1600052(%rbp)
.L13:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600052(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 3000030
s:
	.zero	3000030
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	leaq	s(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600072(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600068(%rbp)
	jmp	.L4
.L5:
	movl	-1600068(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1600068(%rbp), %eax
	cltq
	movl	-1600068(%rbp), %edx
	movl	%edx, -1600048(%rbp,%rax,4)
	addl	$1, -1600068(%rbp)
.L4:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600068(%rbp)
	jl	.L5
	movl	-1600072(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1600048(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-1600048(%rbp), %eax
	cltq
	movl	$1, -800032(%rbp,%rax,4)
	movl	$0, -1600064(%rbp)
	jmp	.L6
.L9:
	movl	-1600064(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rax, %rdx
	movl	-1600064(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	leaq	s(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
	movl	-1600064(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %edx
	movl	-1600064(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	addl	$1, %edx
	cltq
	movl	%edx, -800032(%rbp,%rax,4)
	jmp	.L8
.L7:
	movl	-1600064(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	cltq
	movl	$1, -800032(%rbp,%rax,4)
.L8:
	addl	$1, -1600064(%rbp)
.L6:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600064(%rbp)
	jl	.L9
	movl	$0, -1600060(%rbp)
	movl	$0, -1600056(%rbp)
	jmp	.L10
.L12:
	movl	-1600056(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	cmpl	%eax, -1600060(%rbp)
	jge	.L11
	movl	-1600056(%rbp), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	movl	%eax, -1600060(%rbp)
.L11:
	addl	$1, -1600056(%rbp)
.L10:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600056(%rbp)
	jl	.L12
	movl	$0, -1600052(%rbp)
	jmp	.L13
.L15:
	movl	-1600052(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	cltq
	movl	-800032(%rbp,%rax,4), %eax
	cmpl	%eax, -1600060(%rbp)
	jne	.L14
	movl	-1600052(%rbp), %eax
	cltq
	movl	-1600048(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
.L14:
	addl	$1, -1600052(%rbp)
.L13:
	movl	-1600072(%rbp), %eax
	cmpl	%eax, -1600052(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
