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>

void sort(int *data)
{
	int i, j, t;
	
	for (i = 0; i < 10; i++){
		for (j = 0; j < 9; j ++){
			if (data[j] < data[j + 1]){
				t = data[j];
				data[j] = data[j + 1];
				data[j + 1] = t;
			}
		}
	}
}



int main(void)
{
	int data[10];
	int i;
	
	for (i = 0; i < 10; i++){
		scanf("%d", &data[i]);
	}
	sort(data);
	printf("%d", data[0] + data[1] + data[2]);

	for (i = 0; i < 10; i++){
		scanf("%d", &data[i]);
	}
	sort(data);
	printf(" %d\n", data[0] + data[1] + data[2]);

	return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sort
	.type	sort, @function
sort:
.LFB23:
	.cfi_startproc
	endbr64
	movl	32(%rdi), %esi
	movl	36(%rdi), %r8d
	movq	%rdi, %rax
	movl	$10, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %edx
	jle	.L2
	movq	%xmm1, (%rax)
	movd	%xmm0, %edx
.L2:
	movl	8(%rax), %ecx
	movd	%edx, %xmm3
	movd	%ecx, %xmm0
	punpckldq	%xmm3, %xmm0
	cmpl	%ecx, %edx
	jge	.L3
	movq	%xmm0, 4(%rax)
	movl	%edx, %ecx
.L3:
	movl	12(%rax), %edx
	movd	%ecx, %xmm4
	movd	%edx, %xmm0
	punpckldq	%xmm4, %xmm0
	cmpl	%edx, %ecx
	jge	.L4
	movq	%xmm0, 8(%rax)
	movl	%ecx, %edx
.L4:
	movl	16(%rax), %ecx
	movd	%edx, %xmm5
	movd	%ecx, %xmm0
	punpckldq	%xmm5, %xmm0
	cmpl	%ecx, %edx
	jge	.L5
	movq	%xmm0, 12(%rax)
	movl	%edx, %ecx
.L5:
	movl	20(%rax), %edx
	movd	%ecx, %xmm6
	movd	%edx, %xmm0
	punpckldq	%xmm6, %xmm0
	cmpl	%edx, %ecx
	jge	.L6
	movq	%xmm0, 16(%rax)
	movl	%ecx, %edx
.L6:
	movl	24(%rax), %ecx
	movd	%edx, %xmm7
	movd	%ecx, %xmm0
	punpckldq	%xmm7, %xmm0
	cmpl	%ecx, %edx
	jge	.L7
	movq	%xmm0, 20(%rax)
	movl	%edx, %ecx
.L7:
	movl	28(%rax), %edx
	movd	%ecx, %xmm1
	movd	%edx, %xmm0
	punpckldq	%xmm1, %xmm0
	cmpl	%edx, %ecx
	jge	.L8
	movq	%xmm0, 24(%rax)
	movl	%ecx, %edx
.L8:
	movd	%esi, %xmm0
	movd	%edx, %xmm2
	punpckldq	%xmm2, %xmm0
	cmpl	%edx, %esi
	jle	.L9
	movq	%xmm0, 28(%rax)
	movl	%edx, %esi
.L9:
	movd	%r8d, %xmm0
	movd	%esi, %xmm3
	punpckldq	%xmm3, %xmm0
	cmpl	%esi, %r8d
	jle	.L10
	movl	%r8d, %esi
	movq	%xmm0, 32(%rax)
	movd	%xmm3, %r8d
.L10:
	subl	$1, %edi
	jne	.L11
	ret
	.cfi_endproc
.LFE23:
	.size	sort, .-sort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r14
	leaq	40(%rsp), %r13
	movq	%r14, %rbx
	movq	%r14, %rbp
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbp
	jne	.L15
	movq	%r14, %rdi
	call	sort
	movl	4(%rsp), %edx
	movq	%r12, %rsi
	addl	(%rsp), %edx
	movl	$1, %edi
	addl	8(%rsp), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L16
	movq	%r14, %rdi
	call	sort
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	addl	(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	addl	8(%rsp), %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.type	sort, @function
sort:
.LFB23:
	.cfi_startproc
	endbr64
	movl	32(%rdi), %esi
	movl	36(%rdi), %r8d
	movq	%rdi, %rax
	movl	$10, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %edx
	jle	.L2
	movq	%xmm1, (%rax)
	movd	%xmm0, %edx
.L2:
	movl	8(%rax), %ecx
	movd	%edx, %xmm3
	movd	%ecx, %xmm0
	punpckldq	%xmm3, %xmm0
	cmpl	%ecx, %edx
	jge	.L3
	movq	%xmm0, 4(%rax)
	movl	%edx, %ecx
.L3:
	movl	12(%rax), %edx
	movd	%ecx, %xmm4
	movd	%edx, %xmm0
	punpckldq	%xmm4, %xmm0
	cmpl	%edx, %ecx
	jge	.L4
	movq	%xmm0, 8(%rax)
	movl	%ecx, %edx
.L4:
	movl	16(%rax), %ecx
	movd	%edx, %xmm5
	movd	%ecx, %xmm0
	punpckldq	%xmm5, %xmm0
	cmpl	%ecx, %edx
	jge	.L5
	movq	%xmm0, 12(%rax)
	movl	%edx, %ecx
.L5:
	movl	20(%rax), %edx
	movd	%ecx, %xmm6
	movd	%edx, %xmm0
	punpckldq	%xmm6, %xmm0
	cmpl	%edx, %ecx
	jge	.L6
	movq	%xmm0, 16(%rax)
	movl	%ecx, %edx
.L6:
	movl	24(%rax), %ecx
	movd	%edx, %xmm7
	movd	%ecx, %xmm0
	punpckldq	%xmm7, %xmm0
	cmpl	%ecx, %edx
	jge	.L7
	movq	%xmm0, 20(%rax)
	movl	%edx, %ecx
.L7:
	movl	28(%rax), %edx
	movd	%ecx, %xmm1
	movd	%edx, %xmm0
	punpckldq	%xmm1, %xmm0
	cmpl	%edx, %ecx
	jge	.L8
	movq	%xmm0, 24(%rax)
	movl	%ecx, %edx
.L8:
	movd	%esi, %xmm0
	movd	%edx, %xmm2
	punpckldq	%xmm2, %xmm0
	cmpl	%edx, %esi
	jle	.L9
	movq	%xmm0, 28(%rax)
	movl	%edx, %esi
.L9:
	movd	%r8d, %xmm0
	movd	%esi, %xmm3
	punpckldq	%xmm3, %xmm0
	cmpl	%esi, %r8d
	jle	.L10
	movl	%r8d, %esi
	movq	%xmm0, 32(%rax)
	movd	%xmm3, %r8d
.L10:
	subl	$1, %edi
	jne	.L11
	ret
	.cfi_endproc
.LFE23:
	.size	sort, .-sort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r14
	leaq	40(%rsp), %r13
	movq	%r14, %rbx
	movq	%r14, %rbp
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbp
	jne	.L15
	movq	%r14, %rdi
	call	sort
	movl	4(%rsp), %edx
	movq	%r12, %rsi
	addl	(%rsp), %edx
	movl	$1, %edi
	addl	8(%rsp), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L16
	movq	%r14, %rdi
	call	sort
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	addl	(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	addl	8(%rsp), %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.type	sort, @function
sort:
.LFB23:
	.cfi_startproc
	endbr64
	movl	32(%rdi), %esi
	movl	36(%rdi), %r8d
	movq	%rdi, %rax
	movl	$10, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %edx
	jle	.L2
	movq	%xmm1, (%rax)
	movd	%xmm0, %edx
.L2:
	movl	8(%rax), %ecx
	movd	%edx, %xmm3
	movd	%ecx, %xmm0
	punpckldq	%xmm3, %xmm0
	cmpl	%ecx, %edx
	jge	.L3
	movq	%xmm0, 4(%rax)
	movl	%edx, %ecx
.L3:
	movl	12(%rax), %edx
	movd	%ecx, %xmm4
	movd	%edx, %xmm0
	punpckldq	%xmm4, %xmm0
	cmpl	%edx, %ecx
	jge	.L4
	movq	%xmm0, 8(%rax)
	movl	%ecx, %edx
.L4:
	movl	16(%rax), %ecx
	movd	%edx, %xmm5
	movd	%ecx, %xmm0
	punpckldq	%xmm5, %xmm0
	cmpl	%ecx, %edx
	jge	.L5
	movq	%xmm0, 12(%rax)
	movl	%edx, %ecx
.L5:
	movl	20(%rax), %edx
	movd	%ecx, %xmm6
	movd	%edx, %xmm0
	punpckldq	%xmm6, %xmm0
	cmpl	%edx, %ecx
	jge	.L6
	movq	%xmm0, 16(%rax)
	movl	%ecx, %edx
.L6:
	movl	24(%rax), %ecx
	movd	%edx, %xmm7
	movd	%ecx, %xmm0
	punpckldq	%xmm7, %xmm0
	cmpl	%ecx, %edx
	jge	.L7
	movq	%xmm0, 20(%rax)
	movl	%edx, %ecx
.L7:
	movl	28(%rax), %edx
	movd	%ecx, %xmm1
	movd	%edx, %xmm0
	punpckldq	%xmm1, %xmm0
	cmpl	%edx, %ecx
	jge	.L8
	movq	%xmm0, 24(%rax)
	movl	%ecx, %edx
.L8:
	movd	%esi, %xmm0
	movd	%edx, %xmm2
	punpckldq	%xmm2, %xmm0
	cmpl	%edx, %esi
	jle	.L9
	movq	%xmm0, 28(%rax)
	movl	%edx, %esi
.L9:
	movd	%r8d, %xmm0
	movd	%esi, %xmm3
	punpckldq	%xmm3, %xmm0
	cmpl	%esi, %r8d
	jle	.L10
	movl	%r8d, %esi
	movq	%xmm0, 32(%rax)
	movd	%xmm3, %r8d
.L10:
	subl	$1, %edi
	jne	.L11
	ret
	.cfi_endproc
.LFE23:
	.size	sort, .-sort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r14
	leaq	40(%rsp), %r13
	movq	%r14, %rbx
	movq	%r14, %rbp
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbp
	jne	.L15
	movq	%r14, %rdi
	call	sort
	movl	4(%rsp), %edx
	movq	%r12, %rsi
	addl	(%rsp), %edx
	movl	$1, %edi
	addl	8(%rsp), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L16
	movq	%r14, %rdi
	call	sort
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	addl	(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	addl	8(%rsp), %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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>

void sort(int *data)
{
	int i, j, t;
	
	for (i = 0; i < 10; i++){
		for (j = 0; j < 9; j ++){
			if (data[j] < data[j + 1]){
				t = data[j];
				data[j] = data[j + 1];
				data[j + 1] = t;
			}
		}
	}
}



int main(void)
{
	int data[10];
	int i;
	
	for (i = 0; i < 10; i++){
		scanf("%d", &data[i]);
	}
	sort(data);
	printf("%d", data[0] + data[1] + data[2]);

	for (i = 0; i < 10; i++){
		scanf("%d", &data[i]);
	}
	sort(data);
	printf(" %d\n", data[0] + data[1] + data[2]);

	return (0);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

void sort(int *data)
{
	int i, j, t;
	
	for (i = 0; i < 10; i++){
		for (j = 0; j < 9; j ++){
			if (data[j] < data[j + 1]){
				t = data[j];
				data[j] = data[j + 1];
				data[j + 1] = t;
			}
		}
	}
}



int main(void)
{
	int data[10];
	int i;
	
	for (i = 0; i < 10; i++){
		scanf("%d", &data[i]);
	}
	sort(data);
	printf("%d", data[0] + data[1] + data[2]);

	for (i = 0; i < 10; i++){
		scanf("%d", &data[i]);
	}
	sort(data);
	printf(" %d\n", data[0] + data[1] + data[2]);

	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:

23
23
20
15
15
14
13
9
7
6
25
19
17
17
16
13
12
11
9
5

66 61

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>

void sort(int *data)
{
	int i, j, t;
	
	for (i = 0; i < 10; i++){
		for (j = 0; j < 9; j ++){
			if (data[j] < data[j + 1]){
				t = data[j];
				data[j] = data[j + 1];
				data[j + 1] = t;
			}
		}
	}
}



int main(void)
{
	int data[10];
	int i;
	
	for (i = 0; i < 10; i++){
		scanf("%d", &data[i]);
	}
	sort(data);
	printf("%d", data[0] + data[1] + data[2]);

	for (i = 0; i < 10; i++){
		scanf("%d", &data[i]);
	}
	sort(data);
	printf(" %d\n", data[0] + data[1] + data[2]);

	return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sort
	.type	sort, @function
sort:
.LFB23:
	.cfi_startproc
	endbr64
	movl	32(%rdi), %esi
	movl	36(%rdi), %r8d
	movq	%rdi, %rax
	movl	$10, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %edx
	jle	.L2
	movq	%xmm1, (%rax)
	movd	%xmm0, %edx
.L2:
	movl	8(%rax), %ecx
	movd	%edx, %xmm3
	movd	%ecx, %xmm0
	punpckldq	%xmm3, %xmm0
	cmpl	%ecx, %edx
	jge	.L3
	movq	%xmm0, 4(%rax)
	movl	%edx, %ecx
.L3:
	movl	12(%rax), %edx
	movd	%ecx, %xmm4
	movd	%edx, %xmm0
	punpckldq	%xmm4, %xmm0
	cmpl	%edx, %ecx
	jge	.L4
	movq	%xmm0, 8(%rax)
	movl	%ecx, %edx
.L4:
	movl	16(%rax), %ecx
	movd	%edx, %xmm5
	movd	%ecx, %xmm0
	punpckldq	%xmm5, %xmm0
	cmpl	%ecx, %edx
	jge	.L5
	movq	%xmm0, 12(%rax)
	movl	%edx, %ecx
.L5:
	movl	20(%rax), %edx
	movd	%ecx, %xmm6
	movd	%edx, %xmm0
	punpckldq	%xmm6, %xmm0
	cmpl	%edx, %ecx
	jge	.L6
	movq	%xmm0, 16(%rax)
	movl	%ecx, %edx
.L6:
	movl	24(%rax), %ecx
	movd	%edx, %xmm7
	movd	%ecx, %xmm0
	punpckldq	%xmm7, %xmm0
	cmpl	%ecx, %edx
	jge	.L7
	movq	%xmm0, 20(%rax)
	movl	%edx, %ecx
.L7:
	movl	28(%rax), %edx
	movd	%ecx, %xmm1
	movd	%edx, %xmm0
	punpckldq	%xmm1, %xmm0
	cmpl	%edx, %ecx
	jge	.L8
	movq	%xmm0, 24(%rax)
	movl	%ecx, %edx
.L8:
	movd	%esi, %xmm0
	movd	%edx, %xmm2
	punpckldq	%xmm2, %xmm0
	cmpl	%edx, %esi
	jle	.L9
	movq	%xmm0, 28(%rax)
	movl	%edx, %esi
.L9:
	movd	%r8d, %xmm0
	movd	%esi, %xmm3
	punpckldq	%xmm3, %xmm0
	cmpl	%esi, %r8d
	jle	.L10
	movl	%r8d, %esi
	movq	%xmm0, 32(%rax)
	movd	%xmm3, %r8d
.L10:
	subl	$1, %edi
	jne	.L11
	ret
	.cfi_endproc
.LFE23:
	.size	sort, .-sort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r14
	leaq	40(%rsp), %r13
	movq	%r14, %rbx
	movq	%r14, %rbp
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbp
	jne	.L15
	movq	%r14, %rdi
	call	sort
	movl	4(%rsp), %edx
	movq	%r12, %rsi
	addl	(%rsp), %edx
	movl	$1, %edi
	addl	8(%rsp), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L16
	movq	%r14, %rdi
	call	sort
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	addl	(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	addl	8(%rsp), %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.type	sort, @function
sort:
.LFB23:
	.cfi_startproc
	endbr64
	movl	32(%rdi), %esi
	movl	36(%rdi), %r8d
	movq	%rdi, %rax
	movl	$10, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %edx
	jle	.L2
	movq	%xmm1, (%rax)
	movd	%xmm0, %edx
.L2:
	movl	8(%rax), %ecx
	movd	%edx, %xmm3
	movd	%ecx, %xmm0
	punpckldq	%xmm3, %xmm0
	cmpl	%ecx, %edx
	jge	.L3
	movq	%xmm0, 4(%rax)
	movl	%edx, %ecx
.L3:
	movl	12(%rax), %edx
	movd	%ecx, %xmm4
	movd	%edx, %xmm0
	punpckldq	%xmm4, %xmm0
	cmpl	%edx, %ecx
	jge	.L4
	movq	%xmm0, 8(%rax)
	movl	%ecx, %edx
.L4:
	movl	16(%rax), %ecx
	movd	%edx, %xmm5
	movd	%ecx, %xmm0
	punpckldq	%xmm5, %xmm0
	cmpl	%ecx, %edx
	jge	.L5
	movq	%xmm0, 12(%rax)
	movl	%edx, %ecx
.L5:
	movl	20(%rax), %edx
	movd	%ecx, %xmm6
	movd	%edx, %xmm0
	punpckldq	%xmm6, %xmm0
	cmpl	%edx, %ecx
	jge	.L6
	movq	%xmm0, 16(%rax)
	movl	%ecx, %edx
.L6:
	movl	24(%rax), %ecx
	movd	%edx, %xmm7
	movd	%ecx, %xmm0
	punpckldq	%xmm7, %xmm0
	cmpl	%ecx, %edx
	jge	.L7
	movq	%xmm0, 20(%rax)
	movl	%edx, %ecx
.L7:
	movl	28(%rax), %edx
	movd	%ecx, %xmm1
	movd	%edx, %xmm0
	punpckldq	%xmm1, %xmm0
	cmpl	%edx, %ecx
	jge	.L8
	movq	%xmm0, 24(%rax)
	movl	%ecx, %edx
.L8:
	movd	%esi, %xmm0
	movd	%edx, %xmm2
	punpckldq	%xmm2, %xmm0
	cmpl	%edx, %esi
	jle	.L9
	movq	%xmm0, 28(%rax)
	movl	%edx, %esi
.L9:
	movd	%r8d, %xmm0
	movd	%esi, %xmm3
	punpckldq	%xmm3, %xmm0
	cmpl	%esi, %r8d
	jle	.L10
	movl	%r8d, %esi
	movq	%xmm0, 32(%rax)
	movd	%xmm3, %r8d
.L10:
	subl	$1, %edi
	jne	.L11
	ret
	.cfi_endproc
.LFE23:
	.size	sort, .-sort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r14
	leaq	40(%rsp), %r13
	movq	%r14, %rbx
	movq	%r14, %rbp
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbp
	jne	.L15
	movq	%r14, %rdi
	call	sort
	movl	4(%rsp), %edx
	movq	%r12, %rsi
	addl	(%rsp), %edx
	movl	$1, %edi
	addl	8(%rsp), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L16
	movq	%r14, %rdi
	call	sort
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	addl	(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	addl	8(%rsp), %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
```