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>
int asc(const void *a, const void *b) {
  return *(char *)a - *(char *)b;
}
int ascs(const void *a, const void *b) {
  return strcmp((char *)a,(char *)b);
}
int main(){
   int n,i,k;
   long j,sum;
   char s[100000][11];   
   scanf("%d",&n);
   for (i=0;i<n;i++) {
      scanf("%s",s[i]);
      qsort(s[i],10,sizeof(char),asc);
   }
   qsort(s,n,sizeof(char)*11,ascs);
   for (sum=i=0;i<n;i++) {
      for (j=i+1;j<n;j++) 
         if (strcmp(s[i],s[j])!=0) break;
      sum+=(j-i-1)*(j-i)/2;
      i=j-1;
   }
   printf("%ld\n",sum);
   return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	asc
	.type	asc, @function
asc:
.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
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.globl	ascs
	.type	ascs, @function
ascs:
.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	ascs, .-ascs
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.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	-1097728(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2320, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1100040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1100036(%rbp)
	jmp	.L6
.L7:
	leaq	-1100016(%rbp), %rcx
	movl	-1100036(%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
	leaq	-1100016(%rbp), %rcx
	movl	-1100036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$1, %edx
	movl	$10, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	addl	$1, -1100036(%rbp)
.L6:
	movl	-1100040(%rbp), %eax
	cmpl	%eax, -1100036(%rbp)
	jl	.L7
	movl	-1100040(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1100016(%rbp), %rax
	leaq	ascs(%rip), %rdx
	movq	%rdx, %rcx
	movl	$11, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -1100036(%rbp)
	movq	$0, -1100024(%rbp)
	jmp	.L8
.L13:
	movl	-1100036(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	%rax, -1100032(%rbp)
	jmp	.L9
.L12:
	leaq	-1100016(%rbp), %rcx
	movq	-1100032(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-1100016(%rbp), %rsi
	movl	-1100036(%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	strcmp@PLT
	testl	%eax, %eax
	jne	.L16
	addq	$1, -1100032(%rbp)
.L9:
	movl	-1100040(%rbp), %eax
	cltq
	cmpq	%rax, -1100032(%rbp)
	jl	.L12
	jmp	.L11
.L16:
	nop
.L11:
	movl	-1100036(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1100032(%rbp), %rax
	subq	%rdx, %rax
	leaq	-1(%rax), %rdx
	movl	-1100036(%rbp), %eax
	movslq	%eax, %rcx
	movq	-1100032(%rbp), %rax
	subq	%rcx, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rax, -1100024(%rbp)
	movq	-1100032(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -1100036(%rbp)
	addl	$1, -1100036(%rbp)
.L8:
	movl	-1100040(%rbp), %eax
	cmpl	%eax, -1100036(%rbp)
	jl	.L13
	movq	-1100024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	asc
	.type	asc, @function
asc:
.LFB51:
	.cfi_startproc
	endbr64
	movsbl	(%rdi), %eax
	movsbl	(%rsi), %edx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	asc, .-asc
	.p2align 4
	.globl	ascs
	.type	ascs, @function
ascs:
.LFB52:
	.cfi_startproc
	endbr64
	jmp	strcmp@PLT
	.cfi_endproc
.LFE52:
	.size	ascs, .-ascs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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	-1097728(%rsp), %r11
	.cfi_def_cfa 11, 1097784
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2328, %rsp
	.cfi_def_cfa_offset 1100112
	leaq	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	leaq	asc(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 1100040(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	leaq	32(%rsp), %r14
	movq	%r14, %rbx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	movq	%r12, %rcx
	movl	$1, %edx
	movl	$10, %esi
	addq	$11, %rbx
	call	qsort@PLT
	movl	28(%rsp), %eax
	cmpl	%ebp, %eax
	jg	.L6
.L5:
	movslq	%eax, %rsi
	leaq	ascs(%rip), %rcx
	movl	$11, %edx
	movq	%r14, %rdi
	call	qsort@PLT
	movl	28(%rsp), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L12
	movq	$0, (%rsp)
	movslq	%eax, %rbp
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L10:
	leal	1(%r12), %edx
	movslq	%edx, %r15
	cmpq	%rbp, %r15
	jge	.L8
	leaq	(%r12,%r12,4), %rax
	leaq	(%r12,%rax,2), %rax
	leaq	(%r14,%rax), %rbx
	leaq	11(%r14,%rax), %r13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %r15
	addq	$11, %r13
	cmpq	%rbp, %r15
	je	.L8
.L9:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L21
.L8:
	movq	%r15, %rax
	subq	%r12, %rax
	movslq	%r15d, %r12
	leaq	-1(%rax), %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	addq	%rax, (%rsp)
	cmpl	%r15d, 12(%rsp)
	jg	.L10
.L7:
	movq	(%rsp), %rdx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1100040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$1100056, %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
.L12:
	.cfi_restore_state
	movq	$0, (%rsp)
	jmp	.L7
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.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	asc
	.type	asc, @function
asc:
.LFB51:
	.cfi_startproc
	endbr64
	movsbl	(%rdi), %eax
	movsbl	(%rsi), %edx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	asc, .-asc
	.p2align 4
	.globl	ascs
	.type	ascs, @function
ascs:
.LFB52:
	.cfi_startproc
	endbr64
	jmp	strcmp@PLT
	.cfi_endproc
.LFE52:
	.size	ascs, .-ascs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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	-1097728(%rsp), %r11
	.cfi_def_cfa 11, 1097784
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2328, %rsp
	.cfi_def_cfa_offset 1100112
	leaq	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	leaq	asc(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 1100040(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	leaq	32(%rsp), %r14
	movq	%r14, %rbx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	movq	%r12, %rcx
	movl	$1, %edx
	movl	$10, %esi
	addq	$11, %rbx
	call	qsort@PLT
	movl	28(%rsp), %eax
	cmpl	%ebp, %eax
	jg	.L6
.L5:
	movslq	%eax, %rsi
	leaq	ascs(%rip), %rcx
	movl	$11, %edx
	movq	%r14, %rdi
	call	qsort@PLT
	movl	28(%rsp), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L12
	movq	$0, (%rsp)
	movslq	%eax, %rbp
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L10:
	leal	1(%r12), %edx
	movslq	%edx, %r15
	cmpq	%rbp, %r15
	jge	.L8
	leaq	(%r12,%r12,4), %rax
	leaq	(%r12,%rax,2), %rax
	leaq	(%r14,%rax), %rbx
	leaq	11(%r14,%rax), %r13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %r15
	addq	$11, %r13
	cmpq	%rbp, %r15
	je	.L8
.L9:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L21
.L8:
	movq	%r15, %rax
	subq	%r12, %rax
	movslq	%r15d, %r12
	leaq	-1(%rax), %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	addq	%rax, (%rsp)
	cmpl	%r15d, 12(%rsp)
	jg	.L10
.L7:
	movq	(%rsp), %rdx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1100040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$1100056, %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
.L12:
	.cfi_restore_state
	movq	$0, (%rsp)
	jmp	.L7
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.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 <stdlib.h>
#include <string.h>
int asc(const void *a, const void *b) {
  return *(char *)a - *(char *)b;
}
int ascs(const void *a, const void *b) {
  return strcmp((char *)a,(char *)b);
}
int main(){
   int n,i,k;
   long j,sum;
   char s[100000][11];   
   scanf("%d",&n);
   for (i=0;i<n;i++) {
      scanf("%s",s[i]);
      qsort(s[i],10,sizeof(char),asc);
   }
   qsort(s,n,sizeof(char)*11,ascs);
   for (sum=i=0;i<n;i++) {
      for (j=i+1;j<n;j++) 
         if (strcmp(s[i],s[j])!=0) break;
      sum+=(j-i-1)*(j-i)/2;
      i=j-1;
   }
   printf("%ld\n",sum);
   return 0;
}
5
abaaaaaaaa
oweplustno
aaaaaaaaba
twoplusone
aaaabaaaaa
 2
oneplustwo
nioemodsix
 3
acornistnt
peaoutbnmb
constraint
 5
abaaaaaaaa
oweplustmo
aaaaaaaaba
unoselpowt
aaaaaaaaba
 5
abaaaaaaaa
oweplustno
aaaaaaaaba
twoplusone
aaaaaaaaba
 2
onepltsuwo
nioemodsix
 3
acornistnt
peaoutbnmb
nonstraict
 5
abaaaaaaaa
oweplustno
aaaaaaaaba
enosulpowt
aaaaaaaaba
 2
owustlpeno
nioemodsix
 3
acornistnt
bmnbtuoaep
nonstraict

4
 0
 1
 3
 4
 0
 1
 4
 0
 1

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>
int asc(const void *a, const void *b) {
  return *(char *)a - *(char *)b;
}
int ascs(const void *a, const void *b) {
  return strcmp((char *)a,(char *)b);
}
int main(){
   int n,i,k;
   long j,sum;
   char s[100000][11];   
   scanf("%d",&n);
   for (i=0;i<n;i++) {
      scanf("%s",s[i]);
      qsort(s[i],10,sizeof(char),asc);
   }
   qsort(s,n,sizeof(char)*11,ascs);
   for (sum=i=0;i<n;i++) {
      for (j=i+1;j<n;j++) 
         if (strcmp(s[i],s[j])!=0) break;
      sum+=(j-i-1)*(j-i)/2;
      i=j-1;
   }
   printf("%ld\n",sum);
   return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	asc
	.type	asc, @function
asc:
.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
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.globl	ascs
	.type	ascs, @function
ascs:
.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	ascs, .-ascs
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.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	-1097728(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2320, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1100040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1100036(%rbp)
	jmp	.L6
.L7:
	leaq	-1100016(%rbp), %rcx
	movl	-1100036(%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
	leaq	-1100016(%rbp), %rcx
	movl	-1100036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$1, %edx
	movl	$10, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	addl	$1, -1100036(%rbp)
.L6:
	movl	-1100040(%rbp), %eax
	cmpl	%eax, -1100036(%rbp)
	jl	.L7
	movl	-1100040(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1100016(%rbp), %rax
	leaq	ascs(%rip), %rdx
	movq	%rdx, %rcx
	movl	$11, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -1100036(%rbp)
	movq	$0, -1100024(%rbp)
	jmp	.L8
.L13:
	movl	-1100036(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	%rax, -1100032(%rbp)
	jmp	.L9
.L12:
	leaq	-1100016(%rbp), %rcx
	movq	-1100032(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-1100016(%rbp), %rsi
	movl	-1100036(%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	strcmp@PLT
	testl	%eax, %eax
	jne	.L16
	addq	$1, -1100032(%rbp)
.L9:
	movl	-1100040(%rbp), %eax
	cltq
	cmpq	%rax, -1100032(%rbp)
	jl	.L12
	jmp	.L11
.L16:
	nop
.L11:
	movl	-1100036(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1100032(%rbp), %rax
	subq	%rdx, %rax
	leaq	-1(%rax), %rdx
	movl	-1100036(%rbp), %eax
	movslq	%eax, %rcx
	movq	-1100032(%rbp), %rax
	subq	%rcx, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rax, -1100024(%rbp)
	movq	-1100032(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -1100036(%rbp)
	addl	$1, -1100036(%rbp)
.L8:
	movl	-1100040(%rbp), %eax
	cmpl	%eax, -1100036(%rbp)
	jl	.L13
	movq	-1100024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	asc
	.type	asc, @function
asc:
.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
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.globl	ascs
	.type	ascs, @function
ascs:
.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	ascs, .-ascs
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.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	-1097728(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2320, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1100040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1100036(%rbp)
	jmp	.L6
.L7:
	leaq	-1100016(%rbp), %rcx
	movl	-1100036(%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
	leaq	-1100016(%rbp), %rcx
	movl	-1100036(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$1, %edx
	movl	$10, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	addl	$1, -1100036(%rbp)
.L6:
	movl	-1100040(%rbp), %eax
	cmpl	%eax, -1100036(%rbp)
	jl	.L7
	movl	-1100040(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1100016(%rbp), %rax
	leaq	ascs(%rip), %rdx
	movq	%rdx, %rcx
	movl	$11, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -1100036(%rbp)
	movq	$0, -1100024(%rbp)
	jmp	.L8
.L13:
	movl	-1100036(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	%rax, -1100032(%rbp)
	jmp	.L9
.L12:
	leaq	-1100016(%rbp), %rcx
	movq	-1100032(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-1100016(%rbp), %rsi
	movl	-1100036(%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	strcmp@PLT
	testl	%eax, %eax
	jne	.L16
	addq	$1, -1100032(%rbp)
.L9:
	movl	-1100040(%rbp), %eax
	cltq
	cmpq	%rax, -1100032(%rbp)
	jl	.L12
	jmp	.L11
.L16:
	nop
.L11:
	movl	-1100036(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1100032(%rbp), %rax
	subq	%rdx, %rax
	leaq	-1(%rax), %rdx
	movl	-1100036(%rbp), %eax
	movslq	%eax, %rcx
	movq	-1100032(%rbp), %rax
	subq	%rcx, %rax
	imulq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rax, -1100024(%rbp)
	movq	-1100032(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -1100036(%rbp)
	addl	$1, -1100036(%rbp)
.L8:
	movl	-1100040(%rbp), %eax
	cmpl	%eax, -1100036(%rbp)
	jl	.L13
	movq	-1100024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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:
