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>
#include <string.h>
int cnt[200001];
int main(void){
    int n,i,max=0;
    char s[200001][11];
    scanf("%d",&n);
    for(i=0;i<n;i++) scanf("%s",s[i]);
    qsort(s,n,11,strcmp);
    cnt[0]=1;
    for(i=1;i<n;i++){
        if(strcmp(s[i-1],s[i])==0){
            cnt[i]=cnt[i-1]+1;
        }
        else{
            cnt[i]=1;
            if(max<cnt[i-1]) max=cnt[i-1];
        }
    }
    if(max<cnt[n-1]) max=cnt[n-1];
    for(i=0;i<n;i++){
        if(cnt[i]==max) printf("%s\n",s[i]);
    }
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB51:
	.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	-2199552(%rsp), %r11
	.cfi_def_cfa 11, 2199608
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$520, %rsp
	.cfi_def_cfa_offset 2200128
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 2200056(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	leaq	32(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rbp
	testl	%esi, %esi
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	addq	$11, %rbp
	cmpl	%ebx, %esi
	jg	.L3
.L2:
	movq	strcmp@GOTPCREL(%rip), %rcx
	movq	8(%rsp), %rdi
	movl	$11, %edx
	leaq	cnt(%rip), %r14
	call	qsort@PLT
	movl	28(%rsp), %r13d
	movl	$1, cnt(%rip)
	cmpl	$1, %r13d
	jle	.L4
	leal	-2(%r13), %eax
	leaq	4(%r14), %rcx
	movq	%r14, %rbx
	xorl	%ebp, %ebp
	leaq	43(%rsp), %r12
	leaq	(%rcx,%rax,4), %r15
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	movl	(%rbx), %eax
	addq	$4, %rbx
	addq	$11, %r12
	addl	$1, %eax
	movl	%eax, (%rbx)
	cmpq	%r15, %rbx
	je	.L24
.L7:
	leaq	-11(%r12), %rdi
	movq	%r12, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L25
	movl	(%rbx), %eax
	movl	$1, 4(%rbx)
	cmpl	%eax, %ebp
	cmovl	%eax, %ebp
	addq	$4, %rbx
	addq	$11, %r12
	cmpq	%r15, %rbx
	jne	.L7
.L24:
	leal	-1(%r13), %eax
	cltq
	movl	(%r14,%rax,4), %eax
	cmpl	%eax, %ebp
	cmovl	%eax, %ebp
.L9:
	movq	8(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%ebp, (%r14,%rbx,4)
	je	.L26
	addq	$1, %rbx
	addq	$11, %r12
	cmpl	%ebx, %r13d
	jg	.L13
.L12:
	movq	2200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$2200072, %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
.L26:
	.cfi_restore_state
	movq	%r12, %rdi
	addq	$1, %rbx
	addq	$11, %r12
	call	puts@PLT
	movl	28(%rsp), %r13d
	cmpl	%ebx, %r13d
	jg	.L13
	jmp	.L12
.L4:
	jne	.L12
	movl	$1, %ebp
	jmp	.L9
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 800004
cnt:
	.zero	800004
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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	-2199552(%rsp), %r11
	.cfi_def_cfa 11, 2199608
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$520, %rsp
	.cfi_def_cfa_offset 2200128
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 2200056(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	leaq	32(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rbp
	testl	%esi, %esi
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	addq	$11, %rbp
	cmpl	%ebx, %esi
	jg	.L3
.L2:
	movq	strcmp@GOTPCREL(%rip), %rcx
	movq	8(%rsp), %rdi
	movl	$11, %edx
	leaq	cnt(%rip), %r14
	call	qsort@PLT
	movl	28(%rsp), %r13d
	movl	$1, cnt(%rip)
	cmpl	$1, %r13d
	jle	.L4
	leal	-2(%r13), %eax
	leaq	4(%r14), %rcx
	movq	%r14, %rbx
	xorl	%ebp, %ebp
	leaq	43(%rsp), %r12
	leaq	(%rcx,%rax,4), %r15
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	movl	(%rbx), %eax
	addq	$4, %rbx
	addq	$11, %r12
	addl	$1, %eax
	movl	%eax, (%rbx)
	cmpq	%r15, %rbx
	je	.L24
.L7:
	leaq	-11(%r12), %rdi
	movq	%r12, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L25
	movl	(%rbx), %eax
	movl	$1, 4(%rbx)
	cmpl	%eax, %ebp
	cmovl	%eax, %ebp
	addq	$4, %rbx
	addq	$11, %r12
	cmpq	%r15, %rbx
	jne	.L7
.L24:
	leal	-1(%r13), %eax
	cltq
	movl	(%r14,%rax,4), %eax
	cmpl	%eax, %ebp
	cmovl	%eax, %ebp
.L9:
	movq	8(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%ebp, (%r14,%rbx,4)
	je	.L26
	addq	$1, %rbx
	addq	$11, %r12
	cmpl	%ebx, %r13d
	jg	.L13
.L12:
	movq	2200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$2200072, %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
.L26:
	.cfi_restore_state
	movq	%r12, %rdi
	addq	$1, %rbx
	addq	$11, %r12
	call	puts@PLT
	movl	28(%rsp), %r13d
	cmpl	%ebx, %r13d
	jg	.L13
	jmp	.L12
.L4:
	jne	.L12
	movl	$1, %ebp
	jmp	.L9
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 800004
cnt:
	.zero	800004
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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	-2199552(%rsp), %r11
	.cfi_def_cfa 11, 2199608
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$520, %rsp
	.cfi_def_cfa_offset 2200128
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 2200056(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	leaq	32(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rbp
	testl	%esi, %esi
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	addq	$11, %rbp
	cmpl	%ebx, %esi
	jg	.L3
.L2:
	movq	strcmp@GOTPCREL(%rip), %rcx
	movq	8(%rsp), %rdi
	movl	$11, %edx
	leaq	cnt(%rip), %r14
	call	qsort@PLT
	movl	28(%rsp), %r13d
	movl	$1, cnt(%rip)
	cmpl	$1, %r13d
	jle	.L4
	leal	-2(%r13), %eax
	leaq	4(%r14), %rcx
	movq	%r14, %rbx
	xorl	%ebp, %ebp
	leaq	43(%rsp), %r12
	leaq	(%rcx,%rax,4), %r15
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	movl	(%rbx), %eax
	addq	$4, %rbx
	addq	$11, %r12
	addl	$1, %eax
	movl	%eax, (%rbx)
	cmpq	%r15, %rbx
	je	.L24
.L7:
	leaq	-11(%r12), %rdi
	movq	%r12, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L25
	movl	(%rbx), %eax
	movl	$1, 4(%rbx)
	cmpl	%eax, %ebp
	cmovl	%eax, %ebp
	addq	$4, %rbx
	addq	$11, %r12
	cmpq	%r15, %rbx
	jne	.L7
.L24:
	leal	-1(%r13), %eax
	cltq
	movl	(%r14,%rax,4), %eax
	cmpl	%eax, %ebp
	cmovl	%eax, %ebp
.L9:
	movq	8(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%ebp, (%r14,%rbx,4)
	je	.L26
	addq	$1, %rbx
	addq	$11, %r12
	cmpl	%ebx, %r13d
	jg	.L13
.L12:
	movq	2200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$2200072, %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
.L26:
	.cfi_restore_state
	movq	%r12, %rdi
	addq	$1, %rbx
	addq	$11, %r12
	call	puts@PLT
	movl	28(%rsp), %r13d
	cmpl	%ebx, %r13d
	jg	.L13
	jmp	.L12
.L4:
	jne	.L12
	movl	$1, %ebp
	jmp	.L9
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 800004
cnt:
	.zero	800004
	.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>
#include <string.h>
int cnt[200001];
int main(void){
    int n,i,max=0;
    char s[200001][11];
    scanf("%d",&n);
    for(i=0;i<n;i++) scanf("%s",s[i]);
    qsort(s,n,11,strcmp);
    cnt[0]=1;
    for(i=1;i<n;i++){
        if(strcmp(s[i-1],s[i])==0){
            cnt[i]=cnt[i-1]+1;
        }
        else{
            cnt[i]=1;
            if(max<cnt[i-1]) max=cnt[i-1];
        }
    }
    if(max<cnt[n-1]) max=cnt[n-1];
    for(i=0;i<n;i++){
        if(cnt[i]==max) printf("%s\n",s[i]);
    }
    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>
#include <string.h>
int cnt[200001];
int main(void){
    int n,i,max=0;
    char s[200001][11];
    scanf("%d",&n);
    for(i=0;i<n;i++) scanf("%s",s[i]);
    qsort(s,n,11,strcmp);
    cnt[0]=1;
    for(i=1;i<n;i++){
        if(strcmp(s[i-1],s[i])==0){
            cnt[i]=cnt[i-1]+1;
        }
        else{
            cnt[i]=1;
            if(max<cnt[i-1]) max=cnt[i-1];
        }
    }
    if(max<cnt[n-1]) max=cnt[n-1];
    for(i=0;i<n;i++){
        if(cnt[i]==max) printf("%s\n",s[i]);
    }
    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:

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 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>
int cnt[200001];
int main(void){
    int n,i,max=0;
    char s[200001][11];
    scanf("%d",&n);
    for(i=0;i<n;i++) scanf("%s",s[i]);
    qsort(s,n,11,strcmp);
    cnt[0]=1;
    for(i=1;i<n;i++){
        if(strcmp(s[i-1],s[i])==0){
            cnt[i]=cnt[i-1]+1;
        }
        else{
            cnt[i]=1;
            if(max<cnt[i-1]) max=cnt[i-1];
        }
    }
    if(max<cnt[n-1]) max=cnt[n-1];
    for(i=0;i<n;i++){
        if(cnt[i]==max) printf("%s\n",s[i]);
    }
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB51:
	.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	-2199552(%rsp), %r11
	.cfi_def_cfa 11, 2199608
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$520, %rsp
	.cfi_def_cfa_offset 2200128
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 2200056(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	leaq	32(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rbp
	testl	%esi, %esi
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	addq	$11, %rbp
	cmpl	%ebx, %esi
	jg	.L3
.L2:
	movq	strcmp@GOTPCREL(%rip), %rcx
	movq	8(%rsp), %rdi
	movl	$11, %edx
	leaq	cnt(%rip), %r14
	call	qsort@PLT
	movl	28(%rsp), %r13d
	movl	$1, cnt(%rip)
	cmpl	$1, %r13d
	jle	.L4
	leal	-2(%r13), %eax
	leaq	4(%r14), %rcx
	movq	%r14, %rbx
	xorl	%ebp, %ebp
	leaq	43(%rsp), %r12
	leaq	(%rcx,%rax,4), %r15
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	movl	(%rbx), %eax
	addq	$4, %rbx
	addq	$11, %r12
	addl	$1, %eax
	movl	%eax, (%rbx)
	cmpq	%r15, %rbx
	je	.L24
.L7:
	leaq	-11(%r12), %rdi
	movq	%r12, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L25
	movl	(%rbx), %eax
	movl	$1, 4(%rbx)
	cmpl	%eax, %ebp
	cmovl	%eax, %ebp
	addq	$4, %rbx
	addq	$11, %r12
	cmpq	%r15, %rbx
	jne	.L7
.L24:
	leal	-1(%r13), %eax
	cltq
	movl	(%r14,%rax,4), %eax
	cmpl	%eax, %ebp
	cmovl	%eax, %ebp
.L9:
	movq	8(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%ebp, (%r14,%rbx,4)
	je	.L26
	addq	$1, %rbx
	addq	$11, %r12
	cmpl	%ebx, %r13d
	jg	.L13
.L12:
	movq	2200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$2200072, %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
.L26:
	.cfi_restore_state
	movq	%r12, %rdi
	addq	$1, %rbx
	addq	$11, %r12
	call	puts@PLT
	movl	28(%rsp), %r13d
	cmpl	%ebx, %r13d
	jg	.L13
	jmp	.L12
.L4:
	jne	.L12
	movl	$1, %ebp
	jmp	.L9
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 800004
cnt:
	.zero	800004
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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	-2199552(%rsp), %r11
	.cfi_def_cfa 11, 2199608
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$520, %rsp
	.cfi_def_cfa_offset 2200128
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 2200056(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	leaq	32(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rbp
	testl	%esi, %esi
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rsi
	addq	$11, %rbp
	cmpl	%ebx, %esi
	jg	.L3
.L2:
	movq	strcmp@GOTPCREL(%rip), %rcx
	movq	8(%rsp), %rdi
	movl	$11, %edx
	leaq	cnt(%rip), %r14
	call	qsort@PLT
	movl	28(%rsp), %r13d
	movl	$1, cnt(%rip)
	cmpl	$1, %r13d
	jle	.L4
	leal	-2(%r13), %eax
	leaq	4(%r14), %rcx
	movq	%r14, %rbx
	xorl	%ebp, %ebp
	leaq	43(%rsp), %r12
	leaq	(%rcx,%rax,4), %r15
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	movl	(%rbx), %eax
	addq	$4, %rbx
	addq	$11, %r12
	addl	$1, %eax
	movl	%eax, (%rbx)
	cmpq	%r15, %rbx
	je	.L24
.L7:
	leaq	-11(%r12), %rdi
	movq	%r12, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L25
	movl	(%rbx), %eax
	movl	$1, 4(%rbx)
	cmpl	%eax, %ebp
	cmovl	%eax, %ebp
	addq	$4, %rbx
	addq	$11, %r12
	cmpq	%r15, %rbx
	jne	.L7
.L24:
	leal	-1(%r13), %eax
	cltq
	movl	(%r14,%rax,4), %eax
	cmpl	%eax, %ebp
	cmovl	%eax, %ebp
.L9:
	movq	8(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%ebp, (%r14,%rbx,4)
	je	.L26
	addq	$1, %rbx
	addq	$11, %r12
	cmpl	%ebx, %r13d
	jg	.L13
.L12:
	movq	2200056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$2200072, %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
.L26:
	.cfi_restore_state
	movq	%r12, %rdi
	addq	$1, %rbx
	addq	$11, %r12
	call	puts@PLT
	movl	28(%rsp), %r13d
	cmpl	%ebx, %r13d
	jg	.L13
	jmp	.L12
.L4:
	jne	.L12
	movl	$1, %ebp
	jmp	.L9
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 800004
cnt:
	.zero	800004
	.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:
```