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>
int main(void)
{
	int data[10];
	int dai1,dai2,wk;
	int i,j;
	for(i=0;i<10;i++){
		scanf("%d",&data[i]);
	}
	for(i=0;i<9;i++){
		for(j=i+1;j<10;j++){
			if(data[i]<data[j]){
				wk=data[i];
				data[i]=data[j];
				data[j]=wk;
			}
		}
	}
	dai1=data[0]+data[1]+data[2];
	for(j=0;j<10;j++){
		scanf("%d",&data[j]);
	}
	for(j=0;j<9;j++){
		for(i=j+1;i<10;i++){
			if(data[j]<data[i]){
				wk=data[j];
				data[j]=data[i];
				data[i]=wk;
			}
		}
	}
	dai2=data[0]+data[1]+data[2];
	printf("%d %d\n",dai1,dai2);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -68(%rbp)
	jmp	.L2
.L3:
	leaq	-48(%rbp), %rdx
	movl	-68(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -68(%rbp)
.L2:
	cmpl	$9, -68(%rbp)
	jle	.L3
	movl	$0, -68(%rbp)
	jmp	.L4
.L8:
	movl	-68(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -64(%rbp)
	jmp	.L5
.L7:
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -52(%rbp)
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-68(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
	movl	-64(%rbp), %eax
	cltq
	movl	-52(%rbp), %edx
	movl	%edx, -48(%rbp,%rax,4)
.L6:
	addl	$1, -64(%rbp)
.L5:
	cmpl	$9, -64(%rbp)
	jle	.L7
	addl	$1, -68(%rbp)
.L4:
	cmpl	$8, -68(%rbp)
	jle	.L8
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -60(%rbp)
	movl	$0, -64(%rbp)
	jmp	.L9
.L10:
	leaq	-48(%rbp), %rdx
	movl	-64(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -64(%rbp)
.L9:
	cmpl	$9, -64(%rbp)
	jle	.L10
	movl	$0, -64(%rbp)
	jmp	.L11
.L15:
	movl	-64(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -68(%rbp)
	jmp	.L12
.L14:
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L13
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -52(%rbp)
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-64(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
	movl	-68(%rbp), %eax
	cltq
	movl	-52(%rbp), %edx
	movl	%edx, -48(%rbp,%rax,4)
.L13:
	addl	$1, -68(%rbp)
.L12:
	cmpl	$9, -68(%rbp)
	jle	.L14
	addl	$1, -64(%rbp)
.L11:
	cmpl	$8, -64(%rbp)
	jle	.L15
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -56(%rbp)
	movl	-56(%rbp), %edx
	movl	-60(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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, %rbx
	leaq	40(%rsp), %rbp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %r13
	call	__isoc99_scanf@PLT
	cmpq	%rbp, %r13
	jne	.L2
	movq	%rbx, %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L14:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %esi
	jle	.L3
	movq	%xmm1, (%rax)
.L3:
	cmpl	$10, %edx
	je	.L4
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L5
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L5:
	cmpl	$9, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	12(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L7
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L7:
	cmpl	$8, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	16(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L8
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L8:
	cmpl	$7, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	20(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L9
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L9:
	cmpl	$6, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	24(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L10
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L10:
	cmpl	$5, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	28(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L11
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L11:
	cmpl	$4, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	32(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L12
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L12:
	cmpl	$3, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	36(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L13
	movl	%esi, (%rax)
	movl	%ecx, 36(%rax)
.L13:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	$11, %edx
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	movl	4(%rsp), %r13d
	movq	%rbx, %r14
	addl	(%rsp), %r13d
	addl	8(%rsp), %r13d
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %r14
	call	__isoc99_scanf@PLT
	cmpq	%rbp, %r14
	jne	.L15
	movl	$2, %eax
	.p2align 4,,10
	.p2align 3
.L27:
	movq	(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %edx
	movd	%xmm3, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%edx, %ecx
	jle	.L16
	movq	%xmm1, (%rbx)
.L16:
	cmpl	$10, %eax
	je	.L17
	movl	(%rbx), %edx
	movl	8(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	.L18
	movl	%ecx, (%rbx)
	movl	%edx, 8(%rbx)
.L18:
	cmpl	$9, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	12(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	.L20
	movl	%ecx, (%rbx)
	movl	%edx, 12(%rbx)
.L20:
	cmpl	$8, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	16(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	.L21
	movl	%ecx, (%rbx)
	movl	%edx, 16(%rbx)
.L21:
	cmpl	$7, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	20(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	.L22
	movl	%ecx, (%rbx)
	movl	%edx, 20(%rbx)
.L22:
	cmpl	$6, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	24(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	.L23
	movl	%ecx, (%rbx)
	movl	%edx, 24(%rbx)
.L23:
	cmpl	$5, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	28(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L24
	movl	%ecx, (%rbx)
	movl	%edx, 28(%rbx)
.L24:
	cmpl	$4, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	32(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L25
	movl	%ecx, (%rbx)
	movl	%edx, 32(%rbx)
.L25:
	cmpl	$3, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	36(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L26
	movl	%ecx, (%rbx)
	movl	%edx, 36(%rbx)
.L26:
	addl	$1, %eax
	addq	$4, %rbx
	cmpl	$11, %eax
	jne	.L27
	.p2align 4,,10
	.p2align 3
.L17:
	movl	4(%rsp), %ecx
	xorl	%eax, %eax
	addl	(%rsp), %ecx
	movl	%r13d, %edx
	addl	8(%rsp), %ecx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L90
	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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addq	$4, %rax
	addl	$1, %edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$4, %rbx
	addl	$1, %eax
	jmp	.L27
.L90:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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, %rbx
	leaq	40(%rsp), %rbp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %r13
	call	__isoc99_scanf@PLT
	cmpq	%rbp, %r13
	jne	.L2
	movq	%rbx, %rax
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L14:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %esi
	jle	.L3
	movq	%xmm1, (%rax)
.L3:
	cmpl	$10, %edx
	je	.L4
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L5
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L5:
	cmpl	$9, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	12(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L7
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L7:
	cmpl	$8, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	16(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L8
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L8:
	cmpl	$7, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	20(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L9
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L9:
	cmpl	$6, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	24(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L10
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L10:
	cmpl	$5, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	28(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L11
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L11:
	cmpl	$4, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	32(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L12
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L12:
	cmpl	$3, %edx
	je	.L6
	movl	(%rax), %ecx
	movl	36(%rax), %esi
	cmpl	%esi, %ecx
	jge	.L13
	movl	%esi, (%rax)
	movl	%ecx, 36(%rax)
.L13:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	$11, %edx
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	movl	4(%rsp), %r13d
	movq	%rbx, %r14
	addl	(%rsp), %r13d
	addl	8(%rsp), %r13d
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %r14
	call	__isoc99_scanf@PLT
	cmpq	%rbp, %r14
	jne	.L15
	movl	$2, %eax
	.p2align 4,,10
	.p2align 3
.L27:
	movq	(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %edx
	movd	%xmm3, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%edx, %ecx
	jle	.L16
	movq	%xmm1, (%rbx)
.L16:
	cmpl	$10, %eax
	je	.L17
	movl	(%rbx), %edx
	movl	8(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	.L18
	movl	%ecx, (%rbx)
	movl	%edx, 8(%rbx)
.L18:
	cmpl	$9, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	12(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	.L20
	movl	%ecx, (%rbx)
	movl	%edx, 12(%rbx)
.L20:
	cmpl	$8, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	16(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	.L21
	movl	%ecx, (%rbx)
	movl	%edx, 16(%rbx)
.L21:
	cmpl	$7, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	20(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	.L22
	movl	%ecx, (%rbx)
	movl	%edx, 20(%rbx)
.L22:
	cmpl	$6, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	24(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	.L23
	movl	%ecx, (%rbx)
	movl	%edx, 24(%rbx)
.L23:
	cmpl	$5, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	28(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L24
	movl	%ecx, (%rbx)
	movl	%edx, 28(%rbx)
.L24:
	cmpl	$4, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	32(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L25
	movl	%ecx, (%rbx)
	movl	%edx, 32(%rbx)
.L25:
	cmpl	$3, %eax
	je	.L19
	movl	(%rbx), %edx
	movl	36(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L26
	movl	%ecx, (%rbx)
	movl	%edx, 36(%rbx)
.L26:
	addl	$1, %eax
	addq	$4, %rbx
	cmpl	$11, %eax
	jne	.L27
	.p2align 4,,10
	.p2align 3
.L17:
	movl	4(%rsp), %ecx
	xorl	%eax, %eax
	addl	(%rsp), %ecx
	movl	%r13d, %edx
	addl	8(%rsp), %ecx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L90
	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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addq	$4, %rax
	addl	$1, %edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$4, %rbx
	addl	$1, %eax
	jmp	.L27
.L90:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>
int main(void)
{
	int data[10];
	int dai1,dai2,wk;
	int i,j;
	for(i=0;i<10;i++){
		scanf("%d",&data[i]);
	}
	for(i=0;i<9;i++){
		for(j=i+1;j<10;j++){
			if(data[i]<data[j]){
				wk=data[i];
				data[i]=data[j];
				data[j]=wk;
			}
		}
	}
	dai1=data[0]+data[1]+data[2];
	for(j=0;j<10;j++){
		scanf("%d",&data[j]);
	}
	for(j=0;j<9;j++){
		for(i=j+1;i<10;i++){
			if(data[j]<data[i]){
				wk=data[j];
				data[j]=data[i];
				data[i]=wk;
			}
		}
	}
	dai2=data[0]+data[1]+data[2];
	printf("%d %d\n",dai1,dai2);
	return 0;
}

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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void)
{
	int data[10];
	int dai1,dai2,wk;
	int i,j;
	for(i=0;i<10;i++){
		scanf("%d",&data[i]);
	}
	for(i=0;i<9;i++){
		for(j=i+1;j<10;j++){
			if(data[i]<data[j]){
				wk=data[i];
				data[i]=data[j];
				data[j]=wk;
			}
		}
	}
	dai1=data[0]+data[1]+data[2];
	for(j=0;j<10;j++){
		scanf("%d",&data[j]);
	}
	for(j=0;j<9;j++){
		for(i=j+1;i<10;i++){
			if(data[j]<data[i]){
				wk=data[j];
				data[j]=data[i];
				data[i]=wk;
			}
		}
	}
	dai2=data[0]+data[1]+data[2];
	printf("%d %d\n",dai1,dai2);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -68(%rbp)
	jmp	.L2
.L3:
	leaq	-48(%rbp), %rdx
	movl	-68(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -68(%rbp)
.L2:
	cmpl	$9, -68(%rbp)
	jle	.L3
	movl	$0, -68(%rbp)
	jmp	.L4
.L8:
	movl	-68(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -64(%rbp)
	jmp	.L5
.L7:
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -52(%rbp)
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-68(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
	movl	-64(%rbp), %eax
	cltq
	movl	-52(%rbp), %edx
	movl	%edx, -48(%rbp,%rax,4)
.L6:
	addl	$1, -64(%rbp)
.L5:
	cmpl	$9, -64(%rbp)
	jle	.L7
	addl	$1, -68(%rbp)
.L4:
	cmpl	$8, -68(%rbp)
	jle	.L8
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -60(%rbp)
	movl	$0, -64(%rbp)
	jmp	.L9
.L10:
	leaq	-48(%rbp), %rdx
	movl	-64(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -64(%rbp)
.L9:
	cmpl	$9, -64(%rbp)
	jle	.L10
	movl	$0, -64(%rbp)
	jmp	.L11
.L15:
	movl	-64(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -68(%rbp)
	jmp	.L12
.L14:
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L13
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -52(%rbp)
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-64(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
	movl	-68(%rbp), %eax
	cltq
	movl	-52(%rbp), %edx
	movl	%edx, -48(%rbp,%rax,4)
.L13:
	addl	$1, -68(%rbp)
.L12:
	cmpl	$9, -68(%rbp)
	jle	.L14
	addl	$1, -64(%rbp)
.L11:
	cmpl	$8, -64(%rbp)
	jle	.L15
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -56(%rbp)
	movl	-56(%rbp), %edx
	movl	-60(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -68(%rbp)
	jmp	.L2
.L3:
	leaq	-48(%rbp), %rdx
	movl	-68(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -68(%rbp)
.L2:
	cmpl	$9, -68(%rbp)
	jle	.L3
	movl	$0, -68(%rbp)
	jmp	.L4
.L8:
	movl	-68(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -64(%rbp)
	jmp	.L5
.L7:
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -52(%rbp)
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-68(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
	movl	-64(%rbp), %eax
	cltq
	movl	-52(%rbp), %edx
	movl	%edx, -48(%rbp,%rax,4)
.L6:
	addl	$1, -64(%rbp)
.L5:
	cmpl	$9, -64(%rbp)
	jle	.L7
	addl	$1, -68(%rbp)
.L4:
	cmpl	$8, -68(%rbp)
	jle	.L8
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -60(%rbp)
	movl	$0, -64(%rbp)
	jmp	.L9
.L10:
	leaq	-48(%rbp), %rdx
	movl	-64(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -64(%rbp)
.L9:
	cmpl	$9, -64(%rbp)
	jle	.L10
	movl	$0, -64(%rbp)
	jmp	.L11
.L15:
	movl	-64(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -68(%rbp)
	jmp	.L12
.L14:
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L13
	movl	-64(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -52(%rbp)
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-64(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
	movl	-68(%rbp), %eax
	cltq
	movl	-52(%rbp), %edx
	movl	%edx, -48(%rbp,%rax,4)
.L13:
	addl	$1, -68(%rbp)
.L12:
	cmpl	$9, -68(%rbp)
	jle	.L14
	addl	$1, -64(%rbp)
.L11:
	cmpl	$8, -64(%rbp)
	jle	.L15
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -56(%rbp)
	movl	-56(%rbp), %edx
	movl	-60(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
