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 <math.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>

#define GYOU_MAX 256
void sort_string(char Text[], int size, int sign) {
	char a;

	for (int i = 0; i < size - 1; i++) {
		for (int j = 0; j < size - 1 - i; j++) {
			if (sign > 0) {
				if (Text[j] > Text[j + 1]) {

					a = Text[j];
					Text[j] = Text[j + 1];
					Text[j + 1] = a;
				}
			}
			else {
				if (Text[j] < Text[j + 1]) {

					a = Text[j];
					Text[j] = Text[j + 1];
					Text[j + 1] = a;

				}
			}
		}

	}

}

int main(void){

	char s[101], t[101];
	scanf("%s%s", s, t);
	sort_string(s, strlen(s),1);
	sort_string(t, strlen(t), 0);
	if (strcmp(s, t) < 0) {
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	sort_string
	.type	sort_string, @function
sort_string:
.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, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L7:
	movl	$0, -4(%rbp)
	jmp	.L3
.L6:
	cmpl	$0, -32(%rbp)
	jle	.L4
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jle	.L5
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -9(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-9(%rbp), %eax
	movb	%al, (%rdx)
	jmp	.L5
.L4:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jge	.L5
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -9(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-9(%rbp), %eax
	movb	%al, (%rdx)
.L5:
	addl	$1, -4(%rbp)
.L3:
	movl	-28(%rbp), %eax
	subl	$1, %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L6
	addl	$1, -8(%rbp)
.L2:
	movl	-28(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -8(%rbp)
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sort_string, .-sort_string
	.section	.rodata
.LC0:
	.string	"%s%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
	subq	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %ecx
	leaq	-224(%rbp), %rax
	movl	$1, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	sort_string
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %ecx
	leaq	-112(%rbp), %rax
	movl	$0, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	sort_string
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jns	.L9
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	sort_string
	.type	sort_string, @function
sort_string:
.LFB51:
	.cfi_startproc
	endbr64
	movq	%rdi, %r8
	movl	%edx, %r9d
	cmpl	$1, %esi
	jle	.L1
	leal	-2(%rsi), %edi
	leaq	1(%r8), %r10
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%rdi), %eax
	testl	%eax, %eax
	jle	.L11
	movl	%edi, %esi
	movq	%r8, %rax
	addq	%r10, %rsi
	testl	%r9d, %r9d
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	movzbl	(%rax), %edx
	movzbl	1(%rax), %ecx
	cmpb	%cl, %dl
	jle	.L8
	movb	%cl, (%rax)
	movb	%dl, 1(%rax)
.L8:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L9
.L11:
	subl	$1, %edi
	jnb	.L3
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rax), %edx
	movzbl	1(%rax), %ecx
	cmpb	%dl, %cl
	jle	.L5
	movb	%cl, (%rax)
	movb	%dl, 1(%rax)
.L5:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L6
	subl	$1, %edi
	jb	.L1
	jmp	.L3
	.cfi_endproc
.LFE51:
	.size	sort_string, .-sort_string
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	subq	$232, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	leaq	112(%rsp), %r12
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	leal	-1(%rax), %edx
	testl	%edx, %edx
	jle	.L19
	leaq	1(%rsp), %r8
	.p2align 4,,10
	.p2align 3
.L20:
	leal	-1(%rdx), %esi
	movq	%rbp, %rax
	movq	%rsi, %rdi
	addq	%r8, %rsi
	.p2align 4,,10
	.p2align 3
.L22:
	movzbl	(%rax), %edx
	movzbl	1(%rax), %ecx
	cmpb	%cl, %dl
	jle	.L21
	movb	%cl, (%rax)
	movb	%dl, 1(%rax)
.L21:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L22
	movl	%edi, %edx
	testl	%edi, %edi
	jne	.L20
.L19:
	movq	%r12, %rdi
	call	strlen@PLT
	leal	-1(%rax), %edx
	testl	%edx, %edx
	jle	.L23
	leaq	113(%rsp), %r8
	.p2align 4,,10
	.p2align 3
.L24:
	leal	-1(%rdx), %esi
	movq	%r12, %rax
	movq	%rsi, %rdi
	addq	%r8, %rsi
	.p2align 4,,10
	.p2align 3
.L26:
	movzbl	(%rax), %edx
	movzbl	1(%rax), %ecx
	cmpb	%cl, %dl
	jge	.L25
	movb	%cl, (%rax)
	movb	%dl, 1(%rax)
.L25:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L26
	movl	%edi, %edx
	testl	%edi, %edi
	jne	.L24
.L23:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	js	.L39
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L28:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L39:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L28
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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	sort_string
	.type	sort_string, @function
sort_string:
.LFB51:
	.cfi_startproc
	endbr64
	movq	%rdi, %r8
	movl	%edx, %r9d
	cmpl	$1, %esi
	jle	.L1
	leal	-2(%rsi), %edi
	leaq	1(%r8), %r10
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%rdi), %eax
	testl	%eax, %eax
	jle	.L11
	movl	%edi, %esi
	movq	%r8, %rax
	addq	%r10, %rsi
	testl	%r9d, %r9d
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	movzbl	(%rax), %edx
	movzbl	1(%rax), %ecx
	cmpb	%cl, %dl
	jle	.L8
	movb	%cl, (%rax)
	movb	%dl, 1(%rax)
.L8:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L9
.L11:
	subl	$1, %edi
	jnb	.L3
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rax), %edx
	movzbl	1(%rax), %ecx
	cmpb	%dl, %cl
	jle	.L5
	movb	%cl, (%rax)
	movb	%dl, 1(%rax)
.L5:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L6
	subl	$1, %edi
	jb	.L1
	jmp	.L3
	.cfi_endproc
.LFE51:
	.size	sort_string, .-sort_string
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%s"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	subq	$232, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	leaq	112(%rsp), %r12
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	leal	-1(%rax), %edx
	testl	%edx, %edx
	jle	.L19
	leaq	1(%rsp), %r8
	.p2align 4,,10
	.p2align 3
.L20:
	leal	-1(%rdx), %esi
	movq	%rbp, %rax
	movq	%rsi, %rdi
	addq	%r8, %rsi
	.p2align 4,,10
	.p2align 3
.L22:
	movzbl	(%rax), %edx
	movzbl	1(%rax), %ecx
	cmpb	%cl, %dl
	jle	.L21
	movb	%cl, (%rax)
	movb	%dl, 1(%rax)
.L21:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L22
	movl	%edi, %edx
	testl	%edi, %edi
	jne	.L20
.L19:
	movq	%r12, %rdi
	call	strlen@PLT
	leal	-1(%rax), %edx
	testl	%edx, %edx
	jle	.L23
	leaq	113(%rsp), %r8
	.p2align 4,,10
	.p2align 3
.L24:
	leal	-1(%rdx), %esi
	movq	%r12, %rax
	movq	%rsi, %rdi
	addq	%r8, %rsi
	.p2align 4,,10
	.p2align 3
.L26:
	movzbl	(%rax), %edx
	movzbl	1(%rax), %ecx
	cmpb	%cl, %dl
	jge	.L25
	movb	%cl, (%rax)
	movb	%dl, 1(%rax)
.L25:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L26
	movl	%edi, %edx
	testl	%edi, %edi
	jne	.L24
.L23:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	js	.L39
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L28:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L39:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L28
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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 <math.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>

#define GYOU_MAX 256
void sort_string(char Text[], int size, int sign) {
	char a;

	for (int i = 0; i < size - 1; i++) {
		for (int j = 0; j < size - 1 - i; j++) {
			if (sign > 0) {
				if (Text[j] > Text[j + 1]) {

					a = Text[j];
					Text[j] = Text[j + 1];
					Text[j + 1] = a;
				}
			}
			else {
				if (Text[j] < Text[j + 1]) {

					a = Text[j];
					Text[j] = Text[j + 1];
					Text[j + 1] = a;

				}
			}
		}

	}

}

int main(void){

	char s[101], t[101];
	scanf("%s%s", s, t);
	sort_string(s, strlen(s),1);
	sort_string(t, strlen(t), 0);
	if (strcmp(s, t) < 0) {
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}

	return 0;
}
ratcode
salta
 x
ww
 zzz
{zz
 cd
bac
 xx
axy
 ratcode
salt`
 zzz
{yz
 y
ww
 dc
bac
 xx
yxa

Yes
 No
 Yes
 No
 Yes
 Yes
 Yes
 No
 No
 Yes

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 <math.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>

#define GYOU_MAX 256
void sort_string(char Text[], int size, int sign) {
	char a;

	for (int i = 0; i < size - 1; i++) {
		for (int j = 0; j < size - 1 - i; j++) {
			if (sign > 0) {
				if (Text[j] > Text[j + 1]) {

					a = Text[j];
					Text[j] = Text[j + 1];
					Text[j + 1] = a;
				}
			}
			else {
				if (Text[j] < Text[j + 1]) {

					a = Text[j];
					Text[j] = Text[j + 1];
					Text[j + 1] = a;

				}
			}
		}

	}

}

int main(void){

	char s[101], t[101];
	scanf("%s%s", s, t);
	sort_string(s, strlen(s),1);
	sort_string(t, strlen(t), 0);
	if (strcmp(s, t) < 0) {
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	sort_string
	.type	sort_string, @function
sort_string:
.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, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L7:
	movl	$0, -4(%rbp)
	jmp	.L3
.L6:
	cmpl	$0, -32(%rbp)
	jle	.L4
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jle	.L5
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -9(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-9(%rbp), %eax
	movb	%al, (%rdx)
	jmp	.L5
.L4:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jge	.L5
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -9(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-9(%rbp), %eax
	movb	%al, (%rdx)
.L5:
	addl	$1, -4(%rbp)
.L3:
	movl	-28(%rbp), %eax
	subl	$1, %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L6
	addl	$1, -8(%rbp)
.L2:
	movl	-28(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -8(%rbp)
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sort_string, .-sort_string
	.section	.rodata
.LC0:
	.string	"%s%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
	subq	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %ecx
	leaq	-224(%rbp), %rax
	movl	$1, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	sort_string
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %ecx
	leaq	-112(%rbp), %rax
	movl	$0, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	sort_string
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jns	.L9
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	sort_string
	.type	sort_string, @function
sort_string:
.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, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L7:
	movl	$0, -4(%rbp)
	jmp	.L3
.L6:
	cmpl	$0, -32(%rbp)
	jle	.L4
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jle	.L5
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -9(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-9(%rbp), %eax
	movb	%al, (%rdx)
	jmp	.L5
.L4:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jge	.L5
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -9(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-9(%rbp), %eax
	movb	%al, (%rdx)
.L5:
	addl	$1, -4(%rbp)
.L3:
	movl	-28(%rbp), %eax
	subl	$1, %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L6
	addl	$1, -8(%rbp)
.L2:
	movl	-28(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -8(%rbp)
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sort_string, .-sort_string
	.section	.rodata
.LC0:
	.string	"%s%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
	subq	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-224(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %ecx
	leaq	-224(%rbp), %rax
	movl	$1, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	sort_string
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %ecx
	leaq	-112(%rbp), %rax
	movl	$0, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	sort_string
	leaq	-112(%rbp), %rdx
	leaq	-224(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jns	.L9
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
