Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int comps(const void *a, const void *b){return strcmp(a, b);}

int main(void){
	int n, i;
	char s[200000][11];
	int a[200000];
	scanf("%d", &n);
	for(i=0; i<n; i++){
		scanf("%s", s[i]);
		a[i]=0;
	}
	qsort(s, n, 11, comps);

	int max=0;
	for(i=0; i<n; i++){
		int l=0, r=n-1, m;
		while(l<=r){
			m=(l+r)/2;
			if(comps(s[m], s[i])>=0) r=m-1; else l=m+1;
		}
		a[l]++;
		if(a[l]>max) max=a[l];
	}
	for(i=0; i<n; i++){
		if(a[i]==max) printf("%s\n", s[i]);
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	comps
	.type	comps, @function
comps:
.LFB7:
	.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
.LFE7:
	.size	comps, .-comps
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-2998272(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3000040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3000036(%rbp)
	jmp	.L6
.L7:
	leaq	-2200016(%rbp), %rcx
	movl	-3000036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3000036(%rbp), %eax
	cltq
	movl	$0, -3000016(%rbp,%rax,4)
	addl	$1, -3000036(%rbp)
.L6:
	movl	-3000040(%rbp), %eax
	cmpl	%eax, -3000036(%rbp)
	jl	.L7
	movl	-3000040(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-2200016(%rbp), %rax
	leaq	comps(%rip), %rdx
	movq	%rdx, %rcx
	movl	$11, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -3000032(%rbp)
	movl	$0, -3000036(%rbp)
	jmp	.L8
.L13:
	movl	$0, -3000028(%rbp)
	movl	-3000040(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -3000024(%rbp)
	jmp	.L9
.L11:
	movl	-3000028(%rbp), %edx
	movl	-3000024(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -3000020(%rbp)
	leaq	-2200016(%rbp), %rcx
	movl	-3000036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-2200016(%rbp), %rsi
	movl	-3000020(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	comps
	testl	%eax, %eax
	js	.L10
	movl	-3000020(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -3000024(%rbp)
	jmp	.L9
.L10:
	movl	-3000020(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3000028(%rbp)
.L9:
	movl	-3000028(%rbp), %eax
	cmpl	-3000024(%rbp), %eax
	jle	.L11
	movl	-3000028(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-3000028(%rbp), %eax
	cltq
	movl	%edx, -3000016(%rbp,%rax,4)
	movl	-3000028(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	cmpl	%eax, -3000032(%rbp)
	jge	.L12
	movl	-3000028(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	movl	%eax, -3000032(%rbp)
.L12:
	addl	$1, -3000036(%rbp)
.L8:
	movl	-3000040(%rbp), %eax
	cmpl	%eax, -3000036(%rbp)
	jl	.L13
	movl	$0, -3000036(%rbp)
	jmp	.L14
.L16:
	movl	-3000036(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	cmpl	%eax, -3000032(%rbp)
	jne	.L15
	leaq	-2200016(%rbp), %rcx
	movl	-3000036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	addl	$1, -3000036(%rbp)
.L14:
	movl	-3000040(%rbp), %eax
	cmpl	%eax, -3000036(%rbp)
	jl	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	comps
	.type	comps, @function
comps:
.LFB64:
	.cfi_startproc
	endbr64
	jmp	strcmp@PLT
	.cfi_endproc
.LFE64:
	.size	comps, .-comps
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.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:
.LFB65:
	.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	-2998272(%rsp), %r11
	.cfi_def_cfa 11, 2998328
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1800, %rsp
	.cfi_def_cfa_offset 3000128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3000056(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	leaq	800048(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	leaq	48(%rsp), %r15
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$11, %r12
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	movl	$0, (%r15,%rbx,4)
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L6
.L5:
	movslq	%eax, %rsi
	leaq	comps(%rip), %rcx
	movl	$11, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	44(%rsp), %eax
	movl	%eax, 24(%rsp)
	testl	%eax, %eax
	jle	.L15
	subl	$1, %eax
	movq	%rbp, 8(%rsp)
	movq	%rbp, %rbx
	xorl	%r12d, %r12d
	leaq	(%rax,%rax,4), %rdx
	movl	%eax, 28(%rsp)
	leaq	(%rax,%rdx,2), %rax
	leaq	800059(%rsp,%rax), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	movl	28(%rsp), %r14d
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L11:
	leal	(%r15,%r14), %edx
	sarl	%edx
	movslq	%edx, %rax
	leaq	(%rax,%rax,4), %rsi
	movq	%rax, %r13
	leaq	(%rax,%rsi,2), %rdi
	movq	%rbx, %rsi
	addq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	js	.L8
	leal	-1(%r13), %r14d
	cmpl	%r15d, %r14d
	jge	.L11
.L10:
	movslq	%r15d, %rcx
	movl	48(%rsp,%rcx,4), %eax
	addl	$1, %eax
	cmpl	%eax, %r12d
	movl	%eax, 48(%rsp,%rcx,4)
	cmovl	%eax, %r12d
	addq	$11, %rbx
	cmpq	%rbx, 16(%rsp)
	jne	.L12
	xorl	%ebx, %ebx
	leaq	48(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L16:
	cmpl	%r12d, (%r15,%rbx,4)
	je	.L24
	addq	$11, 8(%rsp)
	addq	$1, %rbx
	cmpl	%ebx, 24(%rsp)
	jg	.L16
.L15:
	movq	3000056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$3000072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	leal	1(%r13), %r15d
	cmpl	%r14d, %r15d
	jle	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	movq	8(%rsp), %r14
	addq	$1, %rbx
	movq	%r14, %rdi
	addq	$11, %r14
	call	puts@PLT
	movl	44(%rsp), %eax
	movq	%r14, 8(%rsp)
	movl	%eax, 24(%rsp)
	cmpl	%ebx, %eax
	jg	.L16
	jmp	.L15
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE65:
	.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	comps
	.type	comps, @function
comps:
.LFB64:
	.cfi_startproc
	endbr64
	jmp	strcmp@PLT
	.cfi_endproc
.LFE64:
	.size	comps, .-comps
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.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:
.LFB65:
	.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	-2998272(%rsp), %r11
	.cfi_def_cfa 11, 2998328
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1800, %rsp
	.cfi_def_cfa_offset 3000128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 3000056(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	leaq	800048(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	leaq	48(%rsp), %r15
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$11, %r12
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	movl	$0, (%r15,%rbx,4)
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L6
.L5:
	movslq	%eax, %rsi
	leaq	comps(%rip), %rcx
	movl	$11, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	44(%rsp), %eax
	movl	%eax, 24(%rsp)
	testl	%eax, %eax
	jle	.L15
	subl	$1, %eax
	movq	%rbp, 8(%rsp)
	movq	%rbp, %rbx
	xorl	%r12d, %r12d
	leaq	(%rax,%rax,4), %rdx
	movl	%eax, 28(%rsp)
	leaq	(%rax,%rdx,2), %rax
	leaq	800059(%rsp,%rax), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	movl	28(%rsp), %r14d
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L11:
	leal	(%r15,%r14), %edx
	sarl	%edx
	movslq	%edx, %rax
	leaq	(%rax,%rax,4), %rsi
	movq	%rax, %r13
	leaq	(%rax,%rsi,2), %rdi
	movq	%rbx, %rsi
	addq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	js	.L8
	leal	-1(%r13), %r14d
	cmpl	%r15d, %r14d
	jge	.L11
.L10:
	movslq	%r15d, %rcx
	movl	48(%rsp,%rcx,4), %eax
	addl	$1, %eax
	cmpl	%eax, %r12d
	movl	%eax, 48(%rsp,%rcx,4)
	cmovl	%eax, %r12d
	addq	$11, %rbx
	cmpq	%rbx, 16(%rsp)
	jne	.L12
	xorl	%ebx, %ebx
	leaq	48(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L16:
	cmpl	%r12d, (%r15,%rbx,4)
	je	.L24
	addq	$11, 8(%rsp)
	addq	$1, %rbx
	cmpl	%ebx, 24(%rsp)
	jg	.L16
.L15:
	movq	3000056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$3000072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	leal	1(%r13), %r15d
	cmpl	%r14d, %r15d
	jle	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	movq	8(%rsp), %r14
	addq	$1, %rbx
	movq	%r14, %rdi
	addq	$11, %r14
	call	puts@PLT
	movl	44(%rsp), %eax
	movq	%r14, 8(%rsp)
	movl	%eax, 24(%rsp)
	cmpl	%ebx, %eax
	jg	.L16
	jmp	.L15
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE65:
	.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 <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int comps(const void *a, const void *b){return strcmp(a, b);}

int main(void){
	int n, i;
	char s[200000][11];
	int a[200000];
	scanf("%d", &n);
	for(i=0; i<n; i++){
		scanf("%s", s[i]);
		a[i]=0;
	}
	qsort(s, n, 11, comps);

	int max=0;
	for(i=0; i<n; i++){
		int l=0, r=n-1, m;
		while(l<=r){
			m=(l+r)/2;
			if(comps(s[m], s[i])>=0) r=m-1; else l=m+1;
		}
		a[l]++;
		if(a[l]>max) max=a[l];
	}
	for(i=0; i<n; i++){
		if(a[i]==max) printf("%s\n", s[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
 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 <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int comps(const void *a, const void *b){return strcmp(a, b);}

int main(void){
	int n, i;
	char s[200000][11];
	int a[200000];
	scanf("%d", &n);
	for(i=0; i<n; i++){
		scanf("%s", s[i]);
		a[i]=0;
	}
	qsort(s, n, 11, comps);

	int max=0;
	for(i=0; i<n; i++){
		int l=0, r=n-1, m;
		while(l<=r){
			m=(l+r)/2;
			if(comps(s[m], s[i])>=0) r=m-1; else l=m+1;
		}
		a[l]++;
		if(a[l]>max) max=a[l];
	}
	for(i=0; i<n; i++){
		if(a[i]==max) printf("%s\n", s[i]);
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	comps
	.type	comps, @function
comps:
.LFB7:
	.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
.LFE7:
	.size	comps, .-comps
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-2998272(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3000040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3000036(%rbp)
	jmp	.L6
.L7:
	leaq	-2200016(%rbp), %rcx
	movl	-3000036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3000036(%rbp), %eax
	cltq
	movl	$0, -3000016(%rbp,%rax,4)
	addl	$1, -3000036(%rbp)
.L6:
	movl	-3000040(%rbp), %eax
	cmpl	%eax, -3000036(%rbp)
	jl	.L7
	movl	-3000040(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-2200016(%rbp), %rax
	leaq	comps(%rip), %rdx
	movq	%rdx, %rcx
	movl	$11, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -3000032(%rbp)
	movl	$0, -3000036(%rbp)
	jmp	.L8
.L13:
	movl	$0, -3000028(%rbp)
	movl	-3000040(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -3000024(%rbp)
	jmp	.L9
.L11:
	movl	-3000028(%rbp), %edx
	movl	-3000024(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -3000020(%rbp)
	leaq	-2200016(%rbp), %rcx
	movl	-3000036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-2200016(%rbp), %rsi
	movl	-3000020(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	comps
	testl	%eax, %eax
	js	.L10
	movl	-3000020(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -3000024(%rbp)
	jmp	.L9
.L10:
	movl	-3000020(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3000028(%rbp)
.L9:
	movl	-3000028(%rbp), %eax
	cmpl	-3000024(%rbp), %eax
	jle	.L11
	movl	-3000028(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-3000028(%rbp), %eax
	cltq
	movl	%edx, -3000016(%rbp,%rax,4)
	movl	-3000028(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	cmpl	%eax, -3000032(%rbp)
	jge	.L12
	movl	-3000028(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	movl	%eax, -3000032(%rbp)
.L12:
	addl	$1, -3000036(%rbp)
.L8:
	movl	-3000040(%rbp), %eax
	cmpl	%eax, -3000036(%rbp)
	jl	.L13
	movl	$0, -3000036(%rbp)
	jmp	.L14
.L16:
	movl	-3000036(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	cmpl	%eax, -3000032(%rbp)
	jne	.L15
	leaq	-2200016(%rbp), %rcx
	movl	-3000036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	addl	$1, -3000036(%rbp)
.L14:
	movl	-3000040(%rbp), %eax
	cmpl	%eax, -3000036(%rbp)
	jl	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	comp
	.type	comp, @function
comp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	comps
	.type	comps, @function
comps:
.LFB7:
	.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
.LFE7:
	.size	comps, .-comps
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-2998272(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3000040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3000036(%rbp)
	jmp	.L6
.L7:
	leaq	-2200016(%rbp), %rcx
	movl	-3000036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-3000036(%rbp), %eax
	cltq
	movl	$0, -3000016(%rbp,%rax,4)
	addl	$1, -3000036(%rbp)
.L6:
	movl	-3000040(%rbp), %eax
	cmpl	%eax, -3000036(%rbp)
	jl	.L7
	movl	-3000040(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-2200016(%rbp), %rax
	leaq	comps(%rip), %rdx
	movq	%rdx, %rcx
	movl	$11, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -3000032(%rbp)
	movl	$0, -3000036(%rbp)
	jmp	.L8
.L13:
	movl	$0, -3000028(%rbp)
	movl	-3000040(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -3000024(%rbp)
	jmp	.L9
.L11:
	movl	-3000028(%rbp), %edx
	movl	-3000024(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -3000020(%rbp)
	leaq	-2200016(%rbp), %rcx
	movl	-3000036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-2200016(%rbp), %rsi
	movl	-3000020(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	comps
	testl	%eax, %eax
	js	.L10
	movl	-3000020(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -3000024(%rbp)
	jmp	.L9
.L10:
	movl	-3000020(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3000028(%rbp)
.L9:
	movl	-3000028(%rbp), %eax
	cmpl	-3000024(%rbp), %eax
	jle	.L11
	movl	-3000028(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-3000028(%rbp), %eax
	cltq
	movl	%edx, -3000016(%rbp,%rax,4)
	movl	-3000028(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	cmpl	%eax, -3000032(%rbp)
	jge	.L12
	movl	-3000028(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	movl	%eax, -3000032(%rbp)
.L12:
	addl	$1, -3000036(%rbp)
.L8:
	movl	-3000040(%rbp), %eax
	cmpl	%eax, -3000036(%rbp)
	jl	.L13
	movl	$0, -3000036(%rbp)
	jmp	.L14
.L16:
	movl	-3000036(%rbp), %eax
	cltq
	movl	-3000016(%rbp,%rax,4), %eax
	cmpl	%eax, -3000032(%rbp)
	jne	.L15
	leaq	-2200016(%rbp), %rcx
	movl	-3000036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	addl	$1, -3000036(%rbp)
.L14:
	movl	-3000040(%rbp), %eax
	cmpl	%eax, -3000036(%rbp)
	jl	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
