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

int cmpString(const void *n1, const void *n2)
{
    return strcmp((char *)n1, (char *)n2);
}

int main(void)
{

    // 投票用紙枚数の取得
    int i_inputPaperNum;
    scanf("%d", &i_inputPaperNum);

    // 投票用紙に書かれた文字列の取得
    char ca_inputString[i_inputPaperNum][11];
    for (int index = 0; index < i_inputPaperNum; index++)
    {
        scanf("%s", ca_inputString[index]);
    }

    // 文字列をソートする
    qsort(ca_inputString, i_inputPaperNum, sizeof(char [11]), cmpString);

    // 投票回数の判定
    int stringCount[200000] = {};
    int i_maxCount = 0;
    for (int index = 0; index < i_inputPaperNum; index++)
    {
        if (strcmp(ca_inputString[index], ca_inputString[index + 1]) == 0)
        {
            stringCount[index + 1] = stringCount[index] + 1;
        }
    }
    for (int index = 0; index < i_inputPaperNum; index++)
    {
        if (stringCount[index] > i_maxCount)
        {
            i_maxCount = stringCount[index];
        }
    }

    // 結果の出力
    for (int count = 0; count < i_inputPaperNum; count++)
    {
        if (i_maxCount == stringCount[count])
        {
            printf("%s\n", ca_inputString[count]);
        }
    }

    return 0;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmpString
	.type	cmpString, @function
cmpString:
.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), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpString, .-cmpString
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1352, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-800104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800104(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -800080(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$88, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$88, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -800072(%rbp)
	movl	$0, -800100(%rbp)
	jmp	.L7
.L8:
	movl	-800100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800100(%rbp)
.L7:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jl	.L8
	movl	-800104(%rbp), %eax
	movslq	%eax, %rsi
	movq	-800072(%rbp), %rax
	leaq	cmpString(%rip), %rdx
	movq	%rdx, %rcx
	movl	$11, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-800064(%rbp), %rax
	movl	$800000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -800096(%rbp)
	movl	$0, -800092(%rbp)
	jmp	.L9
.L11:
	movl	-800092(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	leaq	(%rax,%rdx), %rcx
	movl	-800092(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L10
	movl	-800092(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	movl	-800092(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -800064(%rbp,%rax,4)
.L10:
	addl	$1, -800092(%rbp)
.L9:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800092(%rbp)
	jl	.L11
	movl	$0, -800088(%rbp)
	jmp	.L12
.L14:
	movl	-800088(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, -800096(%rbp)
	jge	.L13
	movl	-800088(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	movl	%eax, -800096(%rbp)
.L13:
	addl	$1, -800088(%rbp)
.L12:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800088(%rbp)
	jl	.L14
	movl	$0, -800084(%rbp)
	jmp	.L15
.L17:
	movl	-800084(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, -800096(%rbp)
	jne	.L16
	movl	-800084(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
.L16:
	addl	$1, -800084(%rbp)
.L15:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800084(%rbp)
	jl	.L17
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	cmpString
	.type	cmpString, @function
cmpString:
.LFB51:
	.cfi_startproc
	endbr64
	jmp	strcmp@PLT
	.cfi_endproc
.LFE51:
	.size	cmpString, .-cmpString
	.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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1352, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-800068(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-800068(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	(%rsi,%rsi,4), %rdx
	movq	%rsi, %rax
	leaq	15(%rsi,%rdx,2), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L5
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L29
.L5:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L30
.L6:
	movq	%rsp, -800096(%rbp)
	testl	%eax, %eax
	jle	.L7
	movq	%rsp, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-800068(%rbp), %eax
	addq	$11, %r13
	cmpl	%r12d, %eax
	jg	.L8
	movslq	%eax, %rsi
.L7:
	movq	-800096(%rbp), %rdi
	leaq	cmpString(%rip), %rcx
	movl	$11, %edx
	leaq	-800064(%rbp), %r13
	call	qsort@PLT
	movl	$800000, %edx
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	memset@PLT
	movl	-800068(%rbp), %r12d
	testl	%r12d, %r12d
	jle	.L17
	movq	-800096(%rbp), %rax
	movq	%r13, %r15
	movq	%r13, %rbx
	leaq	11(%rax), %r14
	leal	-1(%r12), %eax
	movl	%eax, -800100(%rbp)
	leaq	-800060(%rbp,%rax,4), %rax
	movq	%rax, -800088(%rbp)
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	-11(%r14), %rdi
	movq	%r14, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L10
	movl	(%rbx), %eax
	addl	$1, %eax
	movl	%eax, 4(%rbx)
.L10:
	addq	$11, %r14
	addq	$4, %rbx
	cmpq	-800088(%rbp), %rbx
	jne	.L11
	cmpl	$2, -800100(%rbp)
	jbe	.L20
	movl	%r12d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%r13,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L13:
	movdqa	%xmm0, %xmm1
	addq	$16, %r15
	pcmpgtd	-16(%r15), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%r15), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rax, %r15
	jne	.L13
	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, %r15d
	testb	$3, %r12b
	je	.L14
.L12:
	movslq	%eax, %rdx
	movl	-800064(%rbp,%rdx,4), %edx
	cmpl	%edx, %r15d
	cmovl	%edx, %r15d
	leal	1(%rax), %edx
	cmpl	%r12d, %edx
	jge	.L14
	movslq	%edx, %rdx
	movl	-800064(%rbp,%rdx,4), %edx
	cmpl	%edx, %r15d
	cmovl	%edx, %r15d
	addl	$2, %eax
	cmpl	%eax, %r12d
	jle	.L14
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, %r15d
	cmovl	%eax, %r15d
.L14:
	movq	-800096(%rbp), %rbx
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	%r15d, 0(%r13,%r14,4)
	je	.L31
	addq	$1, %r14
	addq	$11, %rbx
	cmpl	%r14d, %r12d
	jg	.L18
.L17:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L32
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	movq	%rbx, %rdi
	addq	$1, %r14
	addq	$11, %rbx
	call	puts@PLT
	movl	-800068(%rbp), %r12d
	cmpl	%r14d, %r12d
	jg	.L18
	jmp	.L17
.L30:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L6
.L20:
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	jmp	.L12
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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
	.p2align 4
	.globl	cmpString
	.type	cmpString, @function
cmpString:
.LFB51:
	.cfi_startproc
	endbr64
	jmp	strcmp@PLT
	.cfi_endproc
.LFE51:
	.size	cmpString, .-cmpString
	.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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1352, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-800068(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-800068(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	(%rsi,%rsi,4), %rdx
	movq	%rsi, %rax
	leaq	15(%rsi,%rdx,2), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L5
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L29
.L5:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L30
.L6:
	movq	%rsp, -800096(%rbp)
	testl	%eax, %eax
	jle	.L7
	movq	%rsp, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-800068(%rbp), %eax
	addq	$11, %r13
	cmpl	%r12d, %eax
	jg	.L8
	movslq	%eax, %rsi
.L7:
	movq	-800096(%rbp), %rdi
	leaq	cmpString(%rip), %rcx
	movl	$11, %edx
	leaq	-800064(%rbp), %r13
	call	qsort@PLT
	movl	$800000, %edx
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	memset@PLT
	movl	-800068(%rbp), %r12d
	testl	%r12d, %r12d
	jle	.L17
	movq	-800096(%rbp), %rax
	movq	%r13, %r15
	movq	%r13, %rbx
	leaq	11(%rax), %r14
	leal	-1(%r12), %eax
	movl	%eax, -800100(%rbp)
	leaq	-800060(%rbp,%rax,4), %rax
	movq	%rax, -800088(%rbp)
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	-11(%r14), %rdi
	movq	%r14, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L10
	movl	(%rbx), %eax
	addl	$1, %eax
	movl	%eax, 4(%rbx)
.L10:
	addq	$11, %r14
	addq	$4, %rbx
	cmpq	-800088(%rbp), %rbx
	jne	.L11
	cmpl	$2, -800100(%rbp)
	jbe	.L20
	movl	%r12d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%r13,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L13:
	movdqa	%xmm0, %xmm1
	addq	$16, %r15
	pcmpgtd	-16(%r15), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%r15), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rax, %r15
	jne	.L13
	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, %r15d
	testb	$3, %r12b
	je	.L14
.L12:
	movslq	%eax, %rdx
	movl	-800064(%rbp,%rdx,4), %edx
	cmpl	%edx, %r15d
	cmovl	%edx, %r15d
	leal	1(%rax), %edx
	cmpl	%r12d, %edx
	jge	.L14
	movslq	%edx, %rdx
	movl	-800064(%rbp,%rdx,4), %edx
	cmpl	%edx, %r15d
	cmovl	%edx, %r15d
	addl	$2, %eax
	cmpl	%eax, %r12d
	jle	.L14
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, %r15d
	cmovl	%eax, %r15d
.L14:
	movq	-800096(%rbp), %rbx
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	%r15d, 0(%r13,%r14,4)
	je	.L31
	addq	$1, %r14
	addq	$11, %rbx
	cmpl	%r14d, %r12d
	jg	.L18
.L17:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L32
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	movq	%rbx, %rdi
	addq	$1, %r14
	addq	$11, %rbx
	call	puts@PLT
	movl	-800068(%rbp), %r12d
	cmpl	%r14d, %r12d
	jg	.L18
	jmp	.L17
.L30:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L6
.L20:
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	jmp	.L12
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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>
#include <stdlib.h>

int cmpString(const void *n1, const void *n2)
{
    return strcmp((char *)n1, (char *)n2);
}

int main(void)
{

    // 投票用紙枚数の取得
    int i_inputPaperNum;
    scanf("%d", &i_inputPaperNum);

    // 投票用紙に書かれた文字列の取得
    char ca_inputString[i_inputPaperNum][11];
    for (int index = 0; index < i_inputPaperNum; index++)
    {
        scanf("%s", ca_inputString[index]);
    }

    // 文字列をソートする
    qsort(ca_inputString, i_inputPaperNum, sizeof(char [11]), cmpString);

    // 投票回数の判定
    int stringCount[200000] = {};
    int i_maxCount = 0;
    for (int index = 0; index < i_inputPaperNum; index++)
    {
        if (strcmp(ca_inputString[index], ca_inputString[index + 1]) == 0)
        {
            stringCount[index + 1] = stringCount[index] + 1;
        }
    }
    for (int index = 0; index < i_inputPaperNum; index++)
    {
        if (stringCount[index] > i_maxCount)
        {
            i_maxCount = stringCount[index];
        }
    }

    // 結果の出力
    for (int count = 0; count < i_inputPaperNum; count++)
    {
        if (i_maxCount == stringCount[count])
        {
            printf("%s\n", ca_inputString[count]);
        }
    }

    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
 beet
 kick
 kun
nichia
taou
ushi
 ihsu
kun
nichia
taou
 beat
bed
beet
bet
teeb
veu
vte
 ihsu
kun
michia
taou
 beat
bed
bet
bfet
teeb
veu
vte
 ihsu
michia
nuk
taou
 beat
bed
bfet
cet
teeb
veu
vte

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

int cmpString(const void *n1, const void *n2)
{
    return strcmp((char *)n1, (char *)n2);
}

int main(void)
{

    // 投票用紙枚数の取得
    int i_inputPaperNum;
    scanf("%d", &i_inputPaperNum);

    // 投票用紙に書かれた文字列の取得
    char ca_inputString[i_inputPaperNum][11];
    for (int index = 0; index < i_inputPaperNum; index++)
    {
        scanf("%s", ca_inputString[index]);
    }

    // 文字列をソートする
    qsort(ca_inputString, i_inputPaperNum, sizeof(char [11]), cmpString);

    // 投票回数の判定
    int stringCount[200000] = {};
    int i_maxCount = 0;
    for (int index = 0; index < i_inputPaperNum; index++)
    {
        if (strcmp(ca_inputString[index], ca_inputString[index + 1]) == 0)
        {
            stringCount[index + 1] = stringCount[index] + 1;
        }
    }
    for (int index = 0; index < i_inputPaperNum; index++)
    {
        if (stringCount[index] > i_maxCount)
        {
            i_maxCount = stringCount[index];
        }
    }

    // 結果の出力
    for (int count = 0; count < i_inputPaperNum; count++)
    {
        if (i_maxCount == stringCount[count])
        {
            printf("%s\n", ca_inputString[count]);
        }
    }

    return 0;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmpString
	.type	cmpString, @function
cmpString:
.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), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpString, .-cmpString
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1352, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-800104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800104(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -800080(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$88, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$88, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -800072(%rbp)
	movl	$0, -800100(%rbp)
	jmp	.L7
.L8:
	movl	-800100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800100(%rbp)
.L7:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jl	.L8
	movl	-800104(%rbp), %eax
	movslq	%eax, %rsi
	movq	-800072(%rbp), %rax
	leaq	cmpString(%rip), %rdx
	movq	%rdx, %rcx
	movl	$11, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-800064(%rbp), %rax
	movl	$800000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -800096(%rbp)
	movl	$0, -800092(%rbp)
	jmp	.L9
.L11:
	movl	-800092(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	leaq	(%rax,%rdx), %rcx
	movl	-800092(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L10
	movl	-800092(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	movl	-800092(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -800064(%rbp,%rax,4)
.L10:
	addl	$1, -800092(%rbp)
.L9:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800092(%rbp)
	jl	.L11
	movl	$0, -800088(%rbp)
	jmp	.L12
.L14:
	movl	-800088(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, -800096(%rbp)
	jge	.L13
	movl	-800088(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	movl	%eax, -800096(%rbp)
.L13:
	addl	$1, -800088(%rbp)
.L12:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800088(%rbp)
	jl	.L14
	movl	$0, -800084(%rbp)
	jmp	.L15
.L17:
	movl	-800084(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, -800096(%rbp)
	jne	.L16
	movl	-800084(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
.L16:
	addl	$1, -800084(%rbp)
.L15:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800084(%rbp)
	jl	.L17
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	cmpString
	.type	cmpString, @function
cmpString:
.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), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpString, .-cmpString
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1352, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-800104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800104(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -800080(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$88, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$88, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$88, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -800072(%rbp)
	movl	$0, -800100(%rbp)
	jmp	.L7
.L8:
	movl	-800100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800100(%rbp)
.L7:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jl	.L8
	movl	-800104(%rbp), %eax
	movslq	%eax, %rsi
	movq	-800072(%rbp), %rax
	leaq	cmpString(%rip), %rdx
	movq	%rdx, %rcx
	movl	$11, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-800064(%rbp), %rax
	movl	$800000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -800096(%rbp)
	movl	$0, -800092(%rbp)
	jmp	.L9
.L11:
	movl	-800092(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	leaq	(%rax,%rdx), %rcx
	movl	-800092(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L10
	movl	-800092(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	movl	-800092(%rbp), %edx
	leal	1(%rdx), %ecx
	leal	1(%rax), %edx
	movslq	%ecx, %rax
	movl	%edx, -800064(%rbp,%rax,4)
.L10:
	addl	$1, -800092(%rbp)
.L9:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800092(%rbp)
	jl	.L11
	movl	$0, -800088(%rbp)
	jmp	.L12
.L14:
	movl	-800088(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, -800096(%rbp)
	jge	.L13
	movl	-800088(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	movl	%eax, -800096(%rbp)
.L13:
	addl	$1, -800088(%rbp)
.L12:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800088(%rbp)
	jl	.L14
	movl	$0, -800084(%rbp)
	jmp	.L15
.L17:
	movl	-800084(%rbp), %eax
	cltq
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, -800096(%rbp)
	jne	.L16
	movl	-800084(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	-800072(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
.L16:
	addl	$1, -800084(%rbp)
.L15:
	movl	-800104(%rbp), %eax
	cmpl	%eax, -800084(%rbp)
	jl	.L17
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
