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>
int cmp(const void *a,const void *b){
  return *(char*)b - *(char*)a;
}

int main(){
  char s[200001] = {};
  char t[200001] = {};
  char letter[26] = {};
  int lcnt = 0;
  int n = 0;
  int i = 0;
  int flag = 1;
  scanf(" %s",s);
  scanf(" %s",t);
  for(i=0;i<200001;i++){
    if(s[i] == '\0'){
      break;
    }
  }
  n = i;
  for(i=0;i<26;i++){
    letter[i] = 'X';
  }
  
  for(i=0;i<n;i++){
    if(letter[s[i] - 'a']  == 'X'){
      letter[s[i] - 'a'] = t[i];
      lcnt++;
    }else if(letter[s[i] - 'a'] != t[i]){
      flag = 0;
      break;
    }
  }
  //printf("%d",n);
  /*for(i=0;i<26;i++){
    printf("%c",letter[i]);
  }*/
  qsort(letter,26,sizeof(char),cmp);
  for(i=1;i<lcnt;i++){
    if(letter[i] == letter[i-1]){
      flag = 0;
    }
          //printf("%c %d",letter[i],lcnt);
  }
  if(flag){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.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	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-8(%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	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	" %s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -400032(%rbp)
	movq	$0, -400024(%rbp)
	leaq	-400016(%rbp), %rax
	movl	$199985, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$0, -200016(%rbp)
	movq	$0, -200008(%rbp)
	leaq	-200000(%rbp), %rax
	movl	$199985, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$0, -400064(%rbp)
	movq	$0, -400056(%rbp)
	movq	$0, -400048(%rbp)
	movw	$0, -400040(%rbp)
	movl	$0, -400080(%rbp)
	movl	$0, -400068(%rbp)
	movl	$0, -400076(%rbp)
	movl	$1, -400072(%rbp)
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-200016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400076(%rbp)
	jmp	.L4
.L7:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L22
	addl	$1, -400076(%rbp)
.L4:
	cmpl	$200000, -400076(%rbp)
	jle	.L7
	jmp	.L6
.L22:
	nop
.L6:
	movl	-400076(%rbp), %eax
	movl	%eax, -400068(%rbp)
	movl	$0, -400076(%rbp)
	jmp	.L8
.L9:
	movl	-400076(%rbp), %eax
	cltq
	movb	$88, -400064(%rbp,%rax)
	addl	$1, -400076(%rbp)
.L8:
	cmpl	$25, -400076(%rbp)
	jle	.L9
	movl	$0, -400076(%rbp)
	jmp	.L10
.L14:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	movzbl	-400064(%rbp,%rax), %eax
	cmpb	$88, %al
	jne	.L11
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %ecx
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %edx
	movslq	%ecx, %rax
	movb	%dl, -400064(%rbp,%rax)
	addl	$1, -400080(%rbp)
	jmp	.L12
.L11:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	movzbl	-400064(%rbp,%rax), %edx
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L12
	movl	$0, -400072(%rbp)
	jmp	.L13
.L12:
	addl	$1, -400076(%rbp)
.L10:
	movl	-400076(%rbp), %eax
	cmpl	-400068(%rbp), %eax
	jl	.L14
.L13:
	leaq	-400064(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$1, %edx
	movl	$26, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$1, -400076(%rbp)
	jmp	.L15
.L17:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400064(%rbp,%rax), %edx
	movl	-400076(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-400064(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L16
	movl	$0, -400072(%rbp)
.L16:
	addl	$1, -400076(%rbp)
.L15:
	movl	-400076(%rbp), %eax
	cmpl	-400080(%rbp), %eax
	jl	.L17
	cmpl	$0, -400072(%rbp)
	je	.L18
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L18:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB39:
	.cfi_startproc
	endbr64
	movsbl	(%rsi), %eax
	movsbl	(%rdi), %edx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2760, %rsp
	.cfi_def_cfa_offset 400112
	pxor	%xmm0, %xmm0
	movl	$199985, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 400056(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
	movaps	%xmm0, 32(%rsp)
	leaq	32(%rsp), %rbx
	call	memset@PLT
	pxor	%xmm0, %xmm0
	movl	$199985, %edx
	xorl	%esi, %esi
	leaq	200064(%rsp), %rdi
	movaps	%xmm0, 200048(%rsp)
	leaq	200048(%rsp), %r13
	call	memset@PLT
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movw	%dx, 24(%rsp)
	movaps	%xmm0, (%rsp)
	movq	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L43:
	addq	$1, %rax
	cmpq	$200001, %rax
	je	.L42
.L5:
	cmpb	$0, (%rbx,%rax)
	movl	%eax, %edx
	jne	.L43
	movabsq	$6365935209750747224, %rax
	movdqa	.LC3(%rip), %xmm0
	movq	%rsp, %rbp
	movq	%rax, 16(%rsp)
	movl	$22616, %eax
	movw	%ax, 24(%rsp)
	movaps	%xmm0, (%rsp)
	testl	%edx, %edx
	je	.L7
.L24:
	movslq	%edx, %rcx
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	cmpb	%dil, %sil
	jne	.L10
	addq	$1, %rdx
	cmpq	%rcx, %rdx
	je	.L44
.L11:
	movsbl	(%rbx,%rdx), %eax
	movzbl	0(%r13,%rdx), %edi
	subl	$97, %eax
	cltq
	movzbl	(%rsp,%rax), %esi
	cmpb	$88, %sil
	jne	.L8
	addq	$1, %rdx
	movb	%dil, (%rsp,%rax)
	addl	$1, %r12d
	cmpq	%rcx, %rdx
	jne	.L11
.L44:
	movl	$1, %edx
	leaq	cmp(%rip), %rcx
	movl	$26, %esi
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	$1, %edx
	cmpl	$1, %r12d
	jle	.L13
.L22:
	cmpl	$3, %r12d
	jle	.L26
	leal	-4(%r12), %esi
	movzbl	(%rsp), %edi
	leaq	2(%rsp), %rax
	xorl	%r8d, %r8d
	andl	$-2, %esi
	movl	$1, %ecx
	addl	$3, %esi
.L17:
	movzbl	-1(%rax), %r9d
	cmpb	%r9b, %dil
	movzbl	(%rax), %edi
	cmove	%r8d, %edx
	cmpb	%r9b, %dil
	cmove	%r8d, %edx
	addl	$2, %ecx
	addq	$2, %rax
	cmpl	%esi, %ecx
	jne	.L17
.L14:
	movslq	%esi, %rax
	xorl	%edi, %edi
	addq	%rbp, %rax
	subl	%eax, %esi
	.p2align 4,,10
	.p2align 3
.L19:
	movzbl	-1(%rax), %ebx
	cmpb	%bl, (%rax)
	cmove	%edi, %edx
	addq	$1, %rax
	leal	(%rsi,%rax), %ecx
	cmpl	%ecx, %r12d
	jg	.L19
	testl	%edx, %edx
	jne	.L13
.L20:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L21
.L7:
	leaq	cmp(%rip), %rcx
	movl	$1, %edx
	movl	$26, %esi
	movq	%rbp, %rdi
	call	qsort@PLT
.L13:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L21:
	movq	400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L45
	addq	$400072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	movl	$1, %edx
	leaq	cmp(%rip), %rcx
	movl	$26, %esi
	movq	%rbp, %rdi
	call	qsort@PLT
	xorl	%edx, %edx
	cmpl	$1, %r12d
	jg	.L22
	jmp	.L20
.L42:
	movq	%rsp, %rbp
	movl	$26, %ecx
	movl	$88, %eax
	movl	$200001, %edx
	movq	%rbp, %rdi
	rep stosb
	jmp	.L24
.L26:
	movl	$1, %esi
	jmp	.L14
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	6365935209750747224
	.quad	6365935209750747224
	.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	cmp
	.type	cmp, @function
cmp:
.LFB39:
	.cfi_startproc
	endbr64
	movsbl	(%rsi), %eax
	movsbl	(%rdi), %edx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2760, %rsp
	.cfi_def_cfa_offset 400112
	pxor	%xmm0, %xmm0
	movl	$199985, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 400056(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
	movaps	%xmm0, 32(%rsp)
	leaq	32(%rsp), %rbx
	call	memset@PLT
	pxor	%xmm0, %xmm0
	movl	$199985, %edx
	xorl	%esi, %esi
	leaq	200064(%rsp), %rdi
	movaps	%xmm0, 200048(%rsp)
	leaq	200048(%rsp), %r13
	call	memset@PLT
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movw	%dx, 24(%rsp)
	movaps	%xmm0, (%rsp)
	movq	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L43:
	addq	$1, %rax
	cmpq	$200001, %rax
	je	.L42
.L5:
	cmpb	$0, (%rbx,%rax)
	movl	%eax, %edx
	jne	.L43
	movabsq	$6365935209750747224, %rax
	movdqa	.LC3(%rip), %xmm0
	movq	%rsp, %rbp
	movq	%rax, 16(%rsp)
	movl	$22616, %eax
	movw	%ax, 24(%rsp)
	movaps	%xmm0, (%rsp)
	testl	%edx, %edx
	je	.L7
.L24:
	movslq	%edx, %rcx
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	cmpb	%dil, %sil
	jne	.L10
	addq	$1, %rdx
	cmpq	%rcx, %rdx
	je	.L44
.L11:
	movsbl	(%rbx,%rdx), %eax
	movzbl	0(%r13,%rdx), %edi
	subl	$97, %eax
	cltq
	movzbl	(%rsp,%rax), %esi
	cmpb	$88, %sil
	jne	.L8
	addq	$1, %rdx
	movb	%dil, (%rsp,%rax)
	addl	$1, %r12d
	cmpq	%rcx, %rdx
	jne	.L11
.L44:
	movl	$1, %edx
	leaq	cmp(%rip), %rcx
	movl	$26, %esi
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	$1, %edx
	cmpl	$1, %r12d
	jle	.L13
.L22:
	cmpl	$3, %r12d
	jle	.L26
	leal	-4(%r12), %esi
	movzbl	(%rsp), %edi
	leaq	2(%rsp), %rax
	xorl	%r8d, %r8d
	andl	$-2, %esi
	movl	$1, %ecx
	addl	$3, %esi
.L17:
	movzbl	-1(%rax), %r9d
	cmpb	%r9b, %dil
	movzbl	(%rax), %edi
	cmove	%r8d, %edx
	cmpb	%r9b, %dil
	cmove	%r8d, %edx
	addl	$2, %ecx
	addq	$2, %rax
	cmpl	%esi, %ecx
	jne	.L17
.L14:
	movslq	%esi, %rax
	xorl	%edi, %edi
	addq	%rbp, %rax
	subl	%eax, %esi
	.p2align 4,,10
	.p2align 3
.L19:
	movzbl	-1(%rax), %ebx
	cmpb	%bl, (%rax)
	cmove	%edi, %edx
	addq	$1, %rax
	leal	(%rsi,%rax), %ecx
	cmpl	%ecx, %r12d
	jg	.L19
	testl	%edx, %edx
	jne	.L13
.L20:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L21
.L7:
	leaq	cmp(%rip), %rcx
	movl	$1, %edx
	movl	$26, %esi
	movq	%rbp, %rdi
	call	qsort@PLT
.L13:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L21:
	movq	400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L45
	addq	$400072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	movl	$1, %edx
	leaq	cmp(%rip), %rcx
	movl	$26, %esi
	movq	%rbp, %rdi
	call	qsort@PLT
	xorl	%edx, %edx
	cmpl	$1, %r12d
	jg	.L22
	jmp	.L20
.L42:
	movq	%rsp, %rbp
	movl	$26, %ecx
	movl	$88, %eax
	movl	$200001, %edx
	movq	%rbp, %rdi
	rep stosb
	jmp	.L24
.L26:
	movl	$1, %esi
	jmp	.L14
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	6365935209750747224
	.quad	6365935209750747224
	.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>
int cmp(const void *a,const void *b){
  return *(char*)b - *(char*)a;
}

int main(){
  char s[200001] = {};
  char t[200001] = {};
  char letter[26] = {};
  int lcnt = 0;
  int n = 0;
  int i = 0;
  int flag = 1;
  scanf(" %s",s);
  scanf(" %s",t);
  for(i=0;i<200001;i++){
    if(s[i] == '\0'){
      break;
    }
  }
  n = i;
  for(i=0;i<26;i++){
    letter[i] = 'X';
  }
  
  for(i=0;i<n;i++){
    if(letter[s[i] - 'a']  == 'X'){
      letter[s[i] - 'a'] = t[i];
      lcnt++;
    }else if(letter[s[i] - 'a'] != t[i]){
      flag = 0;
      break;
    }
  }
  //printf("%d",n);
  /*for(i=0;i<26;i++){
    printf("%c",letter[i]);
  }*/
  qsort(letter,26,sizeof(char),cmp);
  for(i=1;i<lcnt;i++){
    if(letter[i] == letter[i-1]){
      flag = 0;
    }
          //printf("%c %d",letter[i],lcnt);
  }
  if(flag){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
}
azzel
apqle
 abcdefghijklmnopqrstuvwxyz
unomzpgwdtsjxlcvakerfqhybi
 ihokudac
redcoder
 azzle
apqle
 zyxwvutsrqponmlkjihgfedcba
unomzpgwdtsjxlcvakerfqhybi
 cadukohi
redcoder
 azzle
apqld
 zyxwvutsrqponmlkjihgfedcba
unonzpgwdtsjxlcvakerfqhybi
 ihojudac
redcoder
 azzle
dlqpa

No Yes No No Yes No No No No No
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>
int cmp(const void *a,const void *b){
  return *(char*)b - *(char*)a;
}

int main(){
  char s[200001] = {};
  char t[200001] = {};
  char letter[26] = {};
  int lcnt = 0;
  int n = 0;
  int i = 0;
  int flag = 1;
  scanf(" %s",s);
  scanf(" %s",t);
  for(i=0;i<200001;i++){
    if(s[i] == '\0'){
      break;
    }
  }
  n = i;
  for(i=0;i<26;i++){
    letter[i] = 'X';
  }
  
  for(i=0;i<n;i++){
    if(letter[s[i] - 'a']  == 'X'){
      letter[s[i] - 'a'] = t[i];
      lcnt++;
    }else if(letter[s[i] - 'a'] != t[i]){
      flag = 0;
      break;
    }
  }
  //printf("%d",n);
  /*for(i=0;i<26;i++){
    printf("%c",letter[i]);
  }*/
  qsort(letter,26,sizeof(char),cmp);
  for(i=1;i<lcnt;i++){
    if(letter[i] == letter[i-1]){
      flag = 0;
    }
          //printf("%c %d",letter[i],lcnt);
  }
  if(flag){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.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	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-8(%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	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	" %s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -400032(%rbp)
	movq	$0, -400024(%rbp)
	leaq	-400016(%rbp), %rax
	movl	$199985, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$0, -200016(%rbp)
	movq	$0, -200008(%rbp)
	leaq	-200000(%rbp), %rax
	movl	$199985, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$0, -400064(%rbp)
	movq	$0, -400056(%rbp)
	movq	$0, -400048(%rbp)
	movw	$0, -400040(%rbp)
	movl	$0, -400080(%rbp)
	movl	$0, -400068(%rbp)
	movl	$0, -400076(%rbp)
	movl	$1, -400072(%rbp)
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-200016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400076(%rbp)
	jmp	.L4
.L7:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L22
	addl	$1, -400076(%rbp)
.L4:
	cmpl	$200000, -400076(%rbp)
	jle	.L7
	jmp	.L6
.L22:
	nop
.L6:
	movl	-400076(%rbp), %eax
	movl	%eax, -400068(%rbp)
	movl	$0, -400076(%rbp)
	jmp	.L8
.L9:
	movl	-400076(%rbp), %eax
	cltq
	movb	$88, -400064(%rbp,%rax)
	addl	$1, -400076(%rbp)
.L8:
	cmpl	$25, -400076(%rbp)
	jle	.L9
	movl	$0, -400076(%rbp)
	jmp	.L10
.L14:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	movzbl	-400064(%rbp,%rax), %eax
	cmpb	$88, %al
	jne	.L11
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %ecx
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %edx
	movslq	%ecx, %rax
	movb	%dl, -400064(%rbp,%rax)
	addl	$1, -400080(%rbp)
	jmp	.L12
.L11:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	movzbl	-400064(%rbp,%rax), %edx
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L12
	movl	$0, -400072(%rbp)
	jmp	.L13
.L12:
	addl	$1, -400076(%rbp)
.L10:
	movl	-400076(%rbp), %eax
	cmpl	-400068(%rbp), %eax
	jl	.L14
.L13:
	leaq	-400064(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$1, %edx
	movl	$26, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$1, -400076(%rbp)
	jmp	.L15
.L17:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400064(%rbp,%rax), %edx
	movl	-400076(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-400064(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L16
	movl	$0, -400072(%rbp)
.L16:
	addl	$1, -400076(%rbp)
.L15:
	movl	-400076(%rbp), %eax
	cmpl	-400080(%rbp), %eax
	jl	.L17
	cmpl	$0, -400072(%rbp)
	je	.L18
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L18:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.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	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-8(%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	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	" %s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -400032(%rbp)
	movq	$0, -400024(%rbp)
	leaq	-400016(%rbp), %rax
	movl	$199985, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$0, -200016(%rbp)
	movq	$0, -200008(%rbp)
	leaq	-200000(%rbp), %rax
	movl	$199985, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$0, -400064(%rbp)
	movq	$0, -400056(%rbp)
	movq	$0, -400048(%rbp)
	movw	$0, -400040(%rbp)
	movl	$0, -400080(%rbp)
	movl	$0, -400068(%rbp)
	movl	$0, -400076(%rbp)
	movl	$1, -400072(%rbp)
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-200016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400076(%rbp)
	jmp	.L4
.L7:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L22
	addl	$1, -400076(%rbp)
.L4:
	cmpl	$200000, -400076(%rbp)
	jle	.L7
	jmp	.L6
.L22:
	nop
.L6:
	movl	-400076(%rbp), %eax
	movl	%eax, -400068(%rbp)
	movl	$0, -400076(%rbp)
	jmp	.L8
.L9:
	movl	-400076(%rbp), %eax
	cltq
	movb	$88, -400064(%rbp,%rax)
	addl	$1, -400076(%rbp)
.L8:
	cmpl	$25, -400076(%rbp)
	jle	.L9
	movl	$0, -400076(%rbp)
	jmp	.L10
.L14:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	movzbl	-400064(%rbp,%rax), %eax
	cmpb	$88, %al
	jne	.L11
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %ecx
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %edx
	movslq	%ecx, %rax
	movb	%dl, -400064(%rbp,%rax)
	addl	$1, -400080(%rbp)
	jmp	.L12
.L11:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	movzbl	-400064(%rbp,%rax), %edx
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L12
	movl	$0, -400072(%rbp)
	jmp	.L13
.L12:
	addl	$1, -400076(%rbp)
.L10:
	movl	-400076(%rbp), %eax
	cmpl	-400068(%rbp), %eax
	jl	.L14
.L13:
	leaq	-400064(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$1, %edx
	movl	$26, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$1, -400076(%rbp)
	jmp	.L15
.L17:
	movl	-400076(%rbp), %eax
	cltq
	movzbl	-400064(%rbp,%rax), %edx
	movl	-400076(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-400064(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L16
	movl	$0, -400072(%rbp)
.L16:
	addl	$1, -400076(%rbp)
.L15:
	movl	-400076(%rbp), %eax
	cmpl	-400080(%rbp), %eax
	jl	.L17
	cmpl	$0, -400072(%rbp)
	je	.L18
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L18:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
