Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <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;
}```

Assembly Code:

```assembly
	.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.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:
```