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>
#define sswap(x, y) do{ char t[13]; strcpy(t, x); strcpy(x, y); strcpy(y, t); }while(0)

void quick(char s[][13], int left, int right){
  int pl = left, pr = right;
  char x[13];  strcpy(x, s[(left+right)/2]);
  do{
    while(strcmp(s[pl], x) < 0)  pl++;
    while(strcmp(s[pr], x) > 0)  pr--;
    if(pl <= pr){
      sswap(s[pr], s[pl]);
      pl++, pr--;
    }
  }while(pl <= pr);
  if(pl < right)  quick(s, pl, right);
  if(pr > left)   quick(s, left, pr);
}

int main(){
  int n;  scanf("%d", &n);
  char s[100005][13];  
  for(int i=1; i<=n; i++){
    scanf("%s", s[i]);
    for(int j=0; j<9; j++)
      for(int k=j+1; k<10; k++)
	if((int)s[i][j] > (int)s[i][k]){
	  char t = s[i][j];
	  s[i][j] = s[i][k];
	  s[i][k] = t;
	}
  }
  quick(s, 1, n);
  long ans = 0, idx = 1;  
  while(idx <= n){
    long same = 1;
    while(strcmp(s[idx], s[idx+same]) == 0)  same++;
    ans = ans + same*(same-1) / 2;
    idx += same;
  }

  printf("%ld\n", ans);

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	quick
	.type	quick, @function
quick:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -56(%rbp)
	movl	%esi, -60(%rbp)
	movl	%edx, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-60(%rbp), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-34(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	jmp	.L2
.L3:
	addl	$1, -44(%rbp)
.L2:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-34(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	js	.L3
	jmp	.L4
.L5:
	subl	$1, -40(%rbp)
.L4:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-34(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jg	.L5
	movl	-44(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jg	.L6
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-21(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-21(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	addl	$1, -44(%rbp)
	subl	$1, -40(%rbp)
.L6:
	movl	-44(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jle	.L2
	movl	-44(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jge	.L8
	movl	-64(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	-56(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
.L8:
	movl	-40(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jle	.L11
	movl	-40(%rbp), %edx
	movl	-60(%rbp), %ecx
	movq	-56(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
.L11:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	quick, .-quick
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1298432(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1696, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1300120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1300116(%rbp)
	jmp	.L13
.L19:
	leaq	-1300080(%rbp), %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %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	$0, -1300112(%rbp)
	jmp	.L14
.L18:
	movl	-1300112(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1300108(%rbp)
	jmp	.L15
.L17:
	movl	-1300112(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %ecx
	movl	-1300108(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jle	.L16
	movl	-1300112(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %eax
	movb	%al, -1300121(%rbp)
	movl	-1300108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %ecx
	movl	-1300112(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$1300080, %rax
	movb	%cl, (%rax)
	movl	-1300108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	leaq	-1300080(%rax), %rdx
	movzbl	-1300121(%rbp), %eax
	movb	%al, (%rdx)
.L16:
	addl	$1, -1300108(%rbp)
.L15:
	cmpl	$9, -1300108(%rbp)
	jle	.L17
	addl	$1, -1300112(%rbp)
.L14:
	cmpl	$8, -1300112(%rbp)
	jle	.L18
	addl	$1, -1300116(%rbp)
.L13:
	movl	-1300120(%rbp), %eax
	cmpl	%eax, -1300116(%rbp)
	jle	.L19
	movl	-1300120(%rbp), %edx
	leaq	-1300080(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	quick
	movq	$0, -1300104(%rbp)
	movq	$1, -1300096(%rbp)
	jmp	.L20
.L23:
	movq	$1, -1300088(%rbp)
	jmp	.L21
.L22:
	addq	$1, -1300088(%rbp)
.L21:
	movq	-1300096(%rbp), %rdx
	movq	-1300088(%rbp), %rax
	addq	%rax, %rdx
	leaq	-1300080(%rbp), %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-1300080(%rbp), %rsi
	movq	-1300096(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L22
	movq	-1300088(%rbp), %rax
	subq	$1, %rax
	imulq	-1300088(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rax, -1300104(%rbp)
	movq	-1300088(%rbp), %rax
	addq	%rax, -1300096(%rbp)
.L20:
	movl	-1300120(%rbp), %eax
	cltq
	cmpq	%rax, -1300096(%rbp)
	jle	.L23
	movq	-1300104(%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	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	quick
	.type	quick, @function
quick:
.LFB35:
	.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
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	%edx, 28(%rsp)
	movl	28(%rsp), %ebx
	leaq	62(%rsp), %rbp
	movq	%rdi, 8(%rsp)
	movl	%esi, 40(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rax
	addq	%rdi, %rax
	movq	%rax, 32(%rsp)
	leal	1(%rsi), %eax
	movl	%eax, 44(%rsp)
	leaq	75(%rsp), %rax
	movq	%rax, 16(%rsp)
.L8:
	movl	40(%rsp), %edx
	movq	%rbp, %rdi
	addl	%ebx, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rsi
	movl	$13, %edx
	addq	8(%rsp), %rsi
	call	__strcpy_chk@PLT
	movl	44(%rsp), %r14d
	movq	32(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	leal	-1(%r14), %eax
	movq	%rbp, %rsi
	movq	%r13, %rdi
	movl	%eax, (%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	js	.L3
	movslq	%ebx, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	movq	8(%rsp), %rax
	leaq	(%rax,%rdx), %r15
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	subl	$1, %ebx
.L4:
	movq	%r15, %rdi
	movq	%rbp, %rsi
	movq	%r15, %r12
	subq	$13, %r15
	call	strcmp@PLT
	testl	%eax, %eax
	jg	.L5
	cmpl	(%rsp), %ebx
	jge	.L13
.L6:
	movl	(%rsp), %ecx
	cmpl	%ecx, 28(%rsp)
	jg	.L14
.L7:
	cmpl	%ebx, 40(%rsp)
	jge	.L15
	movl	%ebx, 28(%rsp)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	movq	16(%rsp), %r15
	movl	$13, %edx
	movq	%r12, %rsi
	subl	$1, %ebx
	movq	%r15, %rdi
	call	__stpcpy_chk@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	movq	%rax, (%rsp)
	call	strcpy@PLT
	movq	(%rsp), %rdx
	movq	%r15, %rsi
	movq	%r13, %rdi
	subq	%r15, %rdx
	addq	$1, %rdx
	call	memcpy@PLT
	movl	%r14d, (%rsp)
	cmpl	%ebx, %r14d
	jg	.L6
.L3:
	addq	$13, %r13
	addl	$1, %r14d
	jmp	.L2
.L15:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L14:
	.cfi_restore_state
	movl	28(%rsp), %edx
	movq	8(%rsp), %rdi
	movl	%ecx, %esi
	call	quick
	jmp	.L7
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	quick, .-quick
	.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:
.LFB36:
	.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	-1298432(%rsp), %r11
	.cfi_def_cfa 11, 1298488
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1688, %rsp
	.cfi_def_cfa_offset 1300176
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1300104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	testl	%edx, %edx
	jle	.L18
	leaq	45(%rsp), %r12
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L31:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r12, %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L30:
	movzbl	(%rax), %ecx
	movzbl	1(%rax), %esi
	cmpb	%cl, %sil
	jge	.L19
	movb	%sil, (%rax)
	movb	%cl, 1(%rax)
.L19:
	cmpl	$10, %edx
	je	.L20
	movzbl	(%rax), %ecx
	movzbl	2(%rax), %esi
	cmpb	%cl, %sil
	jge	.L21
	movb	%sil, (%rax)
	movb	%cl, 2(%rax)
.L21:
	cmpl	$9, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	3(%rax), %esi
	cmpb	%cl, %sil
	jge	.L23
	movb	%sil, (%rax)
	movb	%cl, 3(%rax)
.L23:
	cmpl	$8, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	4(%rax), %esi
	cmpb	%sil, %cl
	jle	.L24
	movb	%sil, (%rax)
	movb	%cl, 4(%rax)
.L24:
	cmpl	$7, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	5(%rax), %esi
	cmpb	%sil, %cl
	jle	.L25
	movb	%sil, (%rax)
	movb	%cl, 5(%rax)
.L25:
	cmpl	$6, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	6(%rax), %esi
	cmpb	%sil, %cl
	jle	.L26
	movb	%sil, (%rax)
	movb	%cl, 6(%rax)
.L26:
	cmpl	$5, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	7(%rax), %esi
	cmpb	%sil, %cl
	jle	.L27
	movb	%sil, (%rax)
	movb	%cl, 7(%rax)
.L27:
	cmpl	$4, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	8(%rax), %esi
	cmpb	%sil, %cl
	jle	.L28
	movb	%sil, (%rax)
	movb	%cl, 8(%rax)
.L28:
	cmpl	$3, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	9(%rax), %esi
	cmpb	%sil, %cl
	jle	.L29
	movb	%sil, (%rax)
	movb	%cl, 9(%rax)
.L29:
	addl	$1, %edx
	addq	$1, %rax
	cmpl	$11, %edx
	jne	.L30
	.p2align 4,,10
	.p2align 3
.L20:
	movl	28(%rsp), %edx
	addl	$1, %ebp
	addq	$13, %r12
	cmpl	%ebp, %edx
	jge	.L31
.L18:
	leaq	32(%rsp), %r14
	movl	$1, %esi
	movl	$1, %ebp
	movq	%r14, %rdi
	call	quick
	movslq	28(%rsp), %rax
	movq	$0, (%rsp)
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jle	.L33
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	0(%rbp,%rbp,2), %rax
	movq	%rbp, %rbx
	movl	$1, %r15d
	leaq	0(%rbp,%rax,4), %rax
	leaq	(%r14,%rax), %r12
	leaq	13(%r14,%rax), %r13
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L34:
	addq	$1, %r15
.L35:
	movq	%r13, %rsi
	movq	%r12, %rdi
	leaq	(%r15,%rbx), %rbp
	addq	$13, %r13
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L34
	leaq	-1(%r15), %rax
	imulq	%r15, %rax
	sarq	%rax
	addq	%rax, (%rsp)
	cmpq	%rbp, 8(%rsp)
	jge	.L32
.L33:
	movq	(%rsp), %rdx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1300104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L70
	addq	$1300120, %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
.L22:
	.cfi_restore_state
	addq	$1, %rax
	addl	$1, %edx
	jmp	.L30
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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	quick
	.type	quick, @function
quick:
.LFB35:
	.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
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	%edx, 28(%rsp)
	movl	28(%rsp), %ebx
	leaq	62(%rsp), %rbp
	movq	%rdi, 8(%rsp)
	movl	%esi, 40(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rax
	addq	%rdi, %rax
	movq	%rax, 32(%rsp)
	leal	1(%rsi), %eax
	movl	%eax, 44(%rsp)
	leaq	75(%rsp), %rax
	movq	%rax, 16(%rsp)
.L8:
	movl	40(%rsp), %edx
	movq	%rbp, %rdi
	addl	%ebx, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rsi
	movl	$13, %edx
	addq	8(%rsp), %rsi
	call	__strcpy_chk@PLT
	movl	44(%rsp), %r14d
	movq	32(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	leal	-1(%r14), %eax
	movq	%rbp, %rsi
	movq	%r13, %rdi
	movl	%eax, (%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	js	.L3
	movslq	%ebx, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	movq	8(%rsp), %rax
	leaq	(%rax,%rdx), %r15
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	subl	$1, %ebx
.L4:
	movq	%r15, %rdi
	movq	%rbp, %rsi
	movq	%r15, %r12
	subq	$13, %r15
	call	strcmp@PLT
	testl	%eax, %eax
	jg	.L5
	cmpl	(%rsp), %ebx
	jge	.L13
.L6:
	movl	(%rsp), %ecx
	cmpl	%ecx, 28(%rsp)
	jg	.L14
.L7:
	cmpl	%ebx, 40(%rsp)
	jge	.L15
	movl	%ebx, 28(%rsp)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	movq	16(%rsp), %r15
	movl	$13, %edx
	movq	%r12, %rsi
	subl	$1, %ebx
	movq	%r15, %rdi
	call	__stpcpy_chk@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	movq	%rax, (%rsp)
	call	strcpy@PLT
	movq	(%rsp), %rdx
	movq	%r15, %rsi
	movq	%r13, %rdi
	subq	%r15, %rdx
	addq	$1, %rdx
	call	memcpy@PLT
	movl	%r14d, (%rsp)
	cmpl	%ebx, %r14d
	jg	.L6
.L3:
	addq	$13, %r13
	addl	$1, %r14d
	jmp	.L2
.L15:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L14:
	.cfi_restore_state
	movl	28(%rsp), %edx
	movq	8(%rsp), %rdi
	movl	%ecx, %esi
	call	quick
	jmp	.L7
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	quick, .-quick
	.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:
.LFB36:
	.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	-1298432(%rsp), %r11
	.cfi_def_cfa 11, 1298488
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1688, %rsp
	.cfi_def_cfa_offset 1300176
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1300104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	testl	%edx, %edx
	jle	.L18
	leaq	45(%rsp), %r12
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L31:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r12, %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L30:
	movzbl	(%rax), %ecx
	movzbl	1(%rax), %esi
	cmpb	%cl, %sil
	jge	.L19
	movb	%sil, (%rax)
	movb	%cl, 1(%rax)
.L19:
	cmpl	$10, %edx
	je	.L20
	movzbl	(%rax), %ecx
	movzbl	2(%rax), %esi
	cmpb	%cl, %sil
	jge	.L21
	movb	%sil, (%rax)
	movb	%cl, 2(%rax)
.L21:
	cmpl	$9, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	3(%rax), %esi
	cmpb	%cl, %sil
	jge	.L23
	movb	%sil, (%rax)
	movb	%cl, 3(%rax)
.L23:
	cmpl	$8, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	4(%rax), %esi
	cmpb	%sil, %cl
	jle	.L24
	movb	%sil, (%rax)
	movb	%cl, 4(%rax)
.L24:
	cmpl	$7, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	5(%rax), %esi
	cmpb	%sil, %cl
	jle	.L25
	movb	%sil, (%rax)
	movb	%cl, 5(%rax)
.L25:
	cmpl	$6, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	6(%rax), %esi
	cmpb	%sil, %cl
	jle	.L26
	movb	%sil, (%rax)
	movb	%cl, 6(%rax)
.L26:
	cmpl	$5, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	7(%rax), %esi
	cmpb	%sil, %cl
	jle	.L27
	movb	%sil, (%rax)
	movb	%cl, 7(%rax)
.L27:
	cmpl	$4, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	8(%rax), %esi
	cmpb	%sil, %cl
	jle	.L28
	movb	%sil, (%rax)
	movb	%cl, 8(%rax)
.L28:
	cmpl	$3, %edx
	je	.L22
	movzbl	(%rax), %ecx
	movzbl	9(%rax), %esi
	cmpb	%sil, %cl
	jle	.L29
	movb	%sil, (%rax)
	movb	%cl, 9(%rax)
.L29:
	addl	$1, %edx
	addq	$1, %rax
	cmpl	$11, %edx
	jne	.L30
	.p2align 4,,10
	.p2align 3
.L20:
	movl	28(%rsp), %edx
	addl	$1, %ebp
	addq	$13, %r12
	cmpl	%ebp, %edx
	jge	.L31
.L18:
	leaq	32(%rsp), %r14
	movl	$1, %esi
	movl	$1, %ebp
	movq	%r14, %rdi
	call	quick
	movslq	28(%rsp), %rax
	movq	$0, (%rsp)
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jle	.L33
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	0(%rbp,%rbp,2), %rax
	movq	%rbp, %rbx
	movl	$1, %r15d
	leaq	0(%rbp,%rax,4), %rax
	leaq	(%r14,%rax), %r12
	leaq	13(%r14,%rax), %r13
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L34:
	addq	$1, %r15
.L35:
	movq	%r13, %rsi
	movq	%r12, %rdi
	leaq	(%r15,%rbx), %rbp
	addq	$13, %r13
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L34
	leaq	-1(%r15), %rax
	imulq	%r15, %rax
	sarq	%rax
	addq	%rax, (%rsp)
	cmpq	%rbp, 8(%rsp)
	jge	.L32
.L33:
	movq	(%rsp), %rdx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1300104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L70
	addq	$1300120, %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
.L22:
	.cfi_restore_state
	addq	$1, %rax
	addl	$1, %edx
	jmp	.L30
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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>
#define sswap(x, y) do{ char t[13]; strcpy(t, x); strcpy(x, y); strcpy(y, t); }while(0)

void quick(char s[][13], int left, int right){
  int pl = left, pr = right;
  char x[13];  strcpy(x, s[(left+right)/2]);
  do{
    while(strcmp(s[pl], x) < 0)  pl++;
    while(strcmp(s[pr], x) > 0)  pr--;
    if(pl <= pr){
      sswap(s[pr], s[pl]);
      pl++, pr--;
    }
  }while(pl <= pr);
  if(pl < right)  quick(s, pl, right);
  if(pr > left)   quick(s, left, pr);
}

int main(){
  int n;  scanf("%d", &n);
  char s[100005][13];  
  for(int i=1; i<=n; i++){
    scanf("%s", s[i]);
    for(int j=0; j<9; j++)
      for(int k=j+1; k<10; k++)
	if((int)s[i][j] > (int)s[i][k]){
	  char t = s[i][j];
	  s[i][j] = s[i][k];
	  s[i][k] = t;
	}
  }
  quick(s, 1, n);
  long ans = 0, idx = 1;  
  while(idx <= n){
    long same = 1;
    while(strcmp(s[idx], s[idx+same]) == 0)  same++;
    ans = ans + same*(same-1) / 2;
    idx += same;
  }

  printf("%ld\n", ans);

  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 <string.h>
#define sswap(x, y) do{ char t[13]; strcpy(t, x); strcpy(x, y); strcpy(y, t); }while(0)

void quick(char s[][13], int left, int right){
  int pl = left, pr = right;
  char x[13];  strcpy(x, s[(left+right)/2]);
  do{
    while(strcmp(s[pl], x) < 0)  pl++;
    while(strcmp(s[pr], x) > 0)  pr--;
    if(pl <= pr){
      sswap(s[pr], s[pl]);
      pl++, pr--;
    }
  }while(pl <= pr);
  if(pl < right)  quick(s, pl, right);
  if(pr > left)   quick(s, left, pr);
}

int main(){
  int n;  scanf("%d", &n);
  char s[100005][13];  
  for(int i=1; i<=n; i++){
    scanf("%s", s[i]);
    for(int j=0; j<9; j++)
      for(int k=j+1; k<10; k++)
	if((int)s[i][j] > (int)s[i][k]){
	  char t = s[i][j];
	  s[i][j] = s[i][k];
	  s[i][k] = t;
	}
  }
  quick(s, 1, n);
  long ans = 0, idx = 1;  
  while(idx <= n){
    long same = 1;
    while(strcmp(s[idx], s[idx+same]) == 0)  same++;
    ans = ans + same*(same-1) / 2;
    idx += same;
  }

  printf("%ld\n", ans);

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	quick
	.type	quick, @function
quick:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -56(%rbp)
	movl	%esi, -60(%rbp)
	movl	%edx, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-60(%rbp), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-34(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	jmp	.L2
.L3:
	addl	$1, -44(%rbp)
.L2:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-34(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	js	.L3
	jmp	.L4
.L5:
	subl	$1, -40(%rbp)
.L4:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-34(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jg	.L5
	movl	-44(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jg	.L6
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-21(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-21(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	addl	$1, -44(%rbp)
	subl	$1, -40(%rbp)
.L6:
	movl	-44(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jle	.L2
	movl	-44(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jge	.L8
	movl	-64(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	-56(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
.L8:
	movl	-40(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jle	.L11
	movl	-40(%rbp), %edx
	movl	-60(%rbp), %ecx
	movq	-56(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
.L11:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	quick, .-quick
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1298432(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1696, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1300120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1300116(%rbp)
	jmp	.L13
.L19:
	leaq	-1300080(%rbp), %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %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	$0, -1300112(%rbp)
	jmp	.L14
.L18:
	movl	-1300112(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1300108(%rbp)
	jmp	.L15
.L17:
	movl	-1300112(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %ecx
	movl	-1300108(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jle	.L16
	movl	-1300112(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %eax
	movb	%al, -1300121(%rbp)
	movl	-1300108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %ecx
	movl	-1300112(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$1300080, %rax
	movb	%cl, (%rax)
	movl	-1300108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	leaq	-1300080(%rax), %rdx
	movzbl	-1300121(%rbp), %eax
	movb	%al, (%rdx)
.L16:
	addl	$1, -1300108(%rbp)
.L15:
	cmpl	$9, -1300108(%rbp)
	jle	.L17
	addl	$1, -1300112(%rbp)
.L14:
	cmpl	$8, -1300112(%rbp)
	jle	.L18
	addl	$1, -1300116(%rbp)
.L13:
	movl	-1300120(%rbp), %eax
	cmpl	%eax, -1300116(%rbp)
	jle	.L19
	movl	-1300120(%rbp), %edx
	leaq	-1300080(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	quick
	movq	$0, -1300104(%rbp)
	movq	$1, -1300096(%rbp)
	jmp	.L20
.L23:
	movq	$1, -1300088(%rbp)
	jmp	.L21
.L22:
	addq	$1, -1300088(%rbp)
.L21:
	movq	-1300096(%rbp), %rdx
	movq	-1300088(%rbp), %rax
	addq	%rax, %rdx
	leaq	-1300080(%rbp), %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-1300080(%rbp), %rsi
	movq	-1300096(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L22
	movq	-1300088(%rbp), %rax
	subq	$1, %rax
	imulq	-1300088(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rax, -1300104(%rbp)
	movq	-1300088(%rbp), %rax
	addq	%rax, -1300096(%rbp)
.L20:
	movl	-1300120(%rbp), %eax
	cltq
	cmpq	%rax, -1300096(%rbp)
	jle	.L23
	movq	-1300104(%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	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	quick
	.type	quick, @function
quick:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -56(%rbp)
	movl	%esi, -60(%rbp)
	movl	%edx, -64(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-60(%rbp), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-34(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	jmp	.L2
.L3:
	addl	$1, -44(%rbp)
.L2:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-34(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	js	.L3
	jmp	.L4
.L5:
	subl	$1, -40(%rbp)
.L4:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-34(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jg	.L5
	movl	-44(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jg	.L6
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-21(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	leaq	-21(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	addl	$1, -44(%rbp)
	subl	$1, -40(%rbp)
.L6:
	movl	-44(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jle	.L2
	movl	-44(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jge	.L8
	movl	-64(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	-56(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
.L8:
	movl	-40(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jle	.L11
	movl	-40(%rbp), %edx
	movl	-60(%rbp), %ecx
	movq	-56(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quick
.L11:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	quick, .-quick
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1298432(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1696, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1300120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1300116(%rbp)
	jmp	.L13
.L19:
	leaq	-1300080(%rbp), %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %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	$0, -1300112(%rbp)
	jmp	.L14
.L18:
	movl	-1300112(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1300108(%rbp)
	jmp	.L15
.L17:
	movl	-1300112(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %ecx
	movl	-1300108(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jle	.L16
	movl	-1300112(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %eax
	movb	%al, -1300121(%rbp)
	movl	-1300108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1300080, %rax
	movzbl	(%rax), %ecx
	movl	-1300112(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$1300080, %rax
	movb	%cl, (%rax)
	movl	-1300108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1300116(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	leaq	-1300080(%rax), %rdx
	movzbl	-1300121(%rbp), %eax
	movb	%al, (%rdx)
.L16:
	addl	$1, -1300108(%rbp)
.L15:
	cmpl	$9, -1300108(%rbp)
	jle	.L17
	addl	$1, -1300112(%rbp)
.L14:
	cmpl	$8, -1300112(%rbp)
	jle	.L18
	addl	$1, -1300116(%rbp)
.L13:
	movl	-1300120(%rbp), %eax
	cmpl	%eax, -1300116(%rbp)
	jle	.L19
	movl	-1300120(%rbp), %edx
	leaq	-1300080(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	quick
	movq	$0, -1300104(%rbp)
	movq	$1, -1300096(%rbp)
	jmp	.L20
.L23:
	movq	$1, -1300088(%rbp)
	jmp	.L21
.L22:
	addq	$1, -1300088(%rbp)
.L21:
	movq	-1300096(%rbp), %rdx
	movq	-1300088(%rbp), %rax
	addq	%rax, %rdx
	leaq	-1300080(%rbp), %rcx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-1300080(%rbp), %rsi
	movq	-1300096(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L22
	movq	-1300088(%rbp), %rax
	subq	$1, %rax
	imulq	-1300088(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	%rax, -1300104(%rbp)
	movq	-1300088(%rbp), %rax
	addq	%rax, -1300096(%rbp)
.L20:
	movl	-1300120(%rbp), %eax
	cltq
	cmpq	%rax, -1300096(%rbp)
	jle	.L23
	movq	-1300104(%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	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
