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(){
  int a[10],b[10],i,j,t;
  for(i=0;i<10;i++){
    scanf("%d",&a[i]);
    for(j=i;j;j--){
      if(a[j-1]<a[j]){
	t=a[j-1];
	a[j-1]=a[j];
	a[j]=t;
      }
    }
  }
  a[0]+=a[1]+a[2];
  for(i=0;i<10;i++){
    scanf("%d",&b[i]);
    for(j=i;j;j--){
      if(b[j-1]<b[j]){
	t=b[j-1];
	b[j-1]=b[j];
	b[j]=t;
      }
    }
  }
  b[0]+=b[1]+b[2];
  printf("%d %d\n",a[0],b[0]);
  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	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -108(%rbp)
	jmp	.L2
.L6:
	leaq	-96(%rbp), %rdx
	movl	-108(%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
	movl	-108(%rbp), %eax
	movl	%eax, -104(%rbp)
	jmp	.L3
.L5:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-104(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	movl	%eax, -100(%rbp)
	movl	-104(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-104(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -96(%rbp,%rax,4)
	movl	-104(%rbp), %eax
	cltq
	movl	-100(%rbp), %edx
	movl	%edx, -96(%rbp,%rax,4)
.L4:
	subl	$1, -104(%rbp)
.L3:
	cmpl	$0, -104(%rbp)
	jne	.L5
	addl	$1, -108(%rbp)
.L2:
	cmpl	$9, -108(%rbp)
	jle	.L6
	movl	-96(%rbp), %eax
	movl	-92(%rbp), %ecx
	movl	-88(%rbp), %edx
	addl	%ecx, %edx
	addl	%edx, %eax
	movl	%eax, -96(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L7
.L11:
	leaq	-48(%rbp), %rdx
	movl	-108(%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
	movl	-108(%rbp), %eax
	movl	%eax, -104(%rbp)
	jmp	.L8
.L10:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-104(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L9
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -100(%rbp)
	movl	-104(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-104(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -48(%rbp,%rax,4)
	movl	-104(%rbp), %eax
	cltq
	movl	-100(%rbp), %edx
	movl	%edx, -48(%rbp,%rax,4)
.L9:
	subl	$1, -104(%rbp)
.L8:
	cmpl	$0, -104(%rbp)
	jne	.L10
	addl	$1, -108(%rbp)
.L7:
	cmpl	$9, -108(%rbp)
	jle	.L11
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	movl	-40(%rbp), %edx
	addl	%ecx, %edx
	addl	%edx, %eax
	movl	%eax, -48(%rbp)
	movl	-48(%rbp), %edx
	movl	-96(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$96, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$4, %rbx
.L3:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	cmpl	$1, %ebp
	je	.L14
	movq	-4(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %edx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jge	.L4
	movq	%xmm1, -4(%rbx)
.L4:
	cmpl	$2, %ebp
	je	.L14
	movq	-8(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %eax
	movd	%xmm4, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L6
	movq	%xmm1, -8(%rbx)
.L6:
	cmpl	$3, %ebp
	je	.L14
	movq	-12(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %eax
	movd	%xmm6, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L7
	movq	%xmm1, -12(%rbx)
.L7:
	cmpl	$4, %ebp
	je	.L14
	movq	-16(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %eax
	movd	%xmm6, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L8
	movq	%xmm1, -16(%rbx)
.L8:
	cmpl	$5, %ebp
	je	.L14
	movq	-20(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %eax
	movd	%xmm4, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L9
	movq	%xmm1, -20(%rbx)
.L9:
	cmpl	$6, %ebp
	je	.L14
	movq	-24(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %eax
	movd	%xmm2, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L10
	movq	%xmm1, -24(%rbx)
.L10:
	cmpl	$7, %ebp
	je	.L14
	movq	-28(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %eax
	movd	%xmm6, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L11
	movq	%xmm1, -28(%rbx)
.L11:
	cmpl	$8, %ebp
	je	.L14
	movq	-32(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %eax
	movd	%xmm4, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L12
	movq	%xmm1, -32(%rbx)
.L12:
	cmpl	$9, %ebp
	je	.L14
	movq	-36(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %eax
	movd	%xmm2, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L13
	movq	%xmm1, -36(%rbx)
.L13:
	cmpl	$10, %ebp
	jne	.L14
	movl	8(%rsp), %eax
	leaq	48(%rsp), %rbx
	addl	4(%rsp), %eax
	xorl	%ebp, %ebp
	addl	%eax, (%rsp)
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$4, %rbx
.L16:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	cmpl	$1, %ebp
	je	.L27
	movq	-4(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %eax
	movd	%xmm3, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L17
	movq	%xmm1, -4(%rbx)
.L17:
	cmpl	$2, %ebp
	je	.L27
	movq	-8(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %eax
	movd	%xmm5, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L19
	movq	%xmm1, -8(%rbx)
.L19:
	cmpl	$3, %ebp
	je	.L27
	movq	-12(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %eax
	movd	%xmm7, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L20
	movq	%xmm1, -12(%rbx)
.L20:
	cmpl	$4, %ebp
	je	.L27
	movq	-16(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %eax
	movd	%xmm7, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L21
	movq	%xmm1, -16(%rbx)
.L21:
	cmpl	$5, %ebp
	je	.L27
	movq	-20(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %eax
	movd	%xmm5, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L22
	movq	%xmm1, -20(%rbx)
.L22:
	cmpl	$6, %ebp
	je	.L27
	movq	-24(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %eax
	movd	%xmm3, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L23
	movq	%xmm1, -24(%rbx)
.L23:
	cmpl	$7, %ebp
	je	.L27
	movq	-28(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %eax
	movd	%xmm7, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L24
	movq	%xmm1, -28(%rbx)
.L24:
	cmpl	$8, %ebp
	je	.L27
	movq	-32(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %eax
	movd	%xmm5, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L25
	movq	%xmm1, -32(%rbx)
.L25:
	cmpl	$9, %ebp
	je	.L27
	movq	-36(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %eax
	movd	%xmm3, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L26
	movq	%xmm1, -36(%rbx)
.L26:
	cmpl	$10, %ebp
	jne	.L27
	movl	(%rsp), %edx
	movl	56(%rsp), %ecx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	addl	52(%rsp), %ecx
	movl	$1, %edi
	addl	48(%rsp), %ecx
	movl	%ecx, 48(%rsp)
	call	__printf_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L79
	addq	$96, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L79:
	.cfi_restore_state
	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	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$96, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$4, %rbx
.L3:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	cmpl	$1, %ebp
	je	.L14
	movq	-4(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %edx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jge	.L4
	movq	%xmm1, -4(%rbx)
.L4:
	cmpl	$2, %ebp
	je	.L14
	movq	-8(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %eax
	movd	%xmm4, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L6
	movq	%xmm1, -8(%rbx)
.L6:
	cmpl	$3, %ebp
	je	.L14
	movq	-12(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %eax
	movd	%xmm6, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L7
	movq	%xmm1, -12(%rbx)
.L7:
	cmpl	$4, %ebp
	je	.L14
	movq	-16(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %eax
	movd	%xmm6, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L8
	movq	%xmm1, -16(%rbx)
.L8:
	cmpl	$5, %ebp
	je	.L14
	movq	-20(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %eax
	movd	%xmm4, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L9
	movq	%xmm1, -20(%rbx)
.L9:
	cmpl	$6, %ebp
	je	.L14
	movq	-24(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %eax
	movd	%xmm2, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L10
	movq	%xmm1, -24(%rbx)
.L10:
	cmpl	$7, %ebp
	je	.L14
	movq	-28(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %eax
	movd	%xmm6, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L11
	movq	%xmm1, -28(%rbx)
.L11:
	cmpl	$8, %ebp
	je	.L14
	movq	-32(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %eax
	movd	%xmm4, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L12
	movq	%xmm1, -32(%rbx)
.L12:
	cmpl	$9, %ebp
	je	.L14
	movq	-36(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %eax
	movd	%xmm2, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L13
	movq	%xmm1, -36(%rbx)
.L13:
	cmpl	$10, %ebp
	jne	.L14
	movl	8(%rsp), %eax
	leaq	48(%rsp), %rbx
	addl	4(%rsp), %eax
	xorl	%ebp, %ebp
	addl	%eax, (%rsp)
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$4, %rbx
.L16:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	cmpl	$1, %ebp
	je	.L27
	movq	-4(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %eax
	movd	%xmm3, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L17
	movq	%xmm1, -4(%rbx)
.L17:
	cmpl	$2, %ebp
	je	.L27
	movq	-8(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %eax
	movd	%xmm5, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L19
	movq	%xmm1, -8(%rbx)
.L19:
	cmpl	$3, %ebp
	je	.L27
	movq	-12(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %eax
	movd	%xmm7, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L20
	movq	%xmm1, -12(%rbx)
.L20:
	cmpl	$4, %ebp
	je	.L27
	movq	-16(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %eax
	movd	%xmm7, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L21
	movq	%xmm1, -16(%rbx)
.L21:
	cmpl	$5, %ebp
	je	.L27
	movq	-20(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %eax
	movd	%xmm5, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L22
	movq	%xmm1, -20(%rbx)
.L22:
	cmpl	$6, %ebp
	je	.L27
	movq	-24(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %eax
	movd	%xmm3, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L23
	movq	%xmm1, -24(%rbx)
.L23:
	cmpl	$7, %ebp
	je	.L27
	movq	-28(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %eax
	movd	%xmm7, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L24
	movq	%xmm1, -28(%rbx)
.L24:
	cmpl	$8, %ebp
	je	.L27
	movq	-32(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %eax
	movd	%xmm5, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L25
	movq	%xmm1, -32(%rbx)
.L25:
	cmpl	$9, %ebp
	je	.L27
	movq	-36(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %eax
	movd	%xmm3, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L26
	movq	%xmm1, -36(%rbx)
.L26:
	cmpl	$10, %ebp
	jne	.L27
	movl	(%rsp), %edx
	movl	56(%rsp), %ecx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	addl	52(%rsp), %ecx
	movl	$1, %edi
	addl	48(%rsp), %ecx
	movl	%ecx, 48(%rsp)
	call	__printf_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L79
	addq	$96, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L79:
	.cfi_restore_state
	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(){
  int a[10],b[10],i,j,t;
  for(i=0;i<10;i++){
    scanf("%d",&a[i]);
    for(j=i;j;j--){
      if(a[j-1]<a[j]){
	t=a[j-1];
	a[j-1]=a[j];
	a[j]=t;
      }
    }
  }
  a[0]+=a[1]+a[2];
  for(i=0;i<10;i++){
    scanf("%d",&b[i]);
    for(j=i;j;j--){
      if(b[j-1]<b[j]){
	t=b[j-1];
	b[j-1]=b[j];
	b[j]=t;
      }
    }
  }
  b[0]+=b[1]+b[2];
  printf("%d %d\n",a[0],b[0]);
  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(){
  int a[10],b[10],i,j,t;
  for(i=0;i<10;i++){
    scanf("%d",&a[i]);
    for(j=i;j;j--){
      if(a[j-1]<a[j]){
	t=a[j-1];
	a[j-1]=a[j];
	a[j]=t;
      }
    }
  }
  a[0]+=a[1]+a[2];
  for(i=0;i<10;i++){
    scanf("%d",&b[i]);
    for(j=i;j;j--){
      if(b[j-1]<b[j]){
	t=b[j-1];
	b[j-1]=b[j];
	b[j]=t;
      }
    }
  }
  b[0]+=b[1]+b[2];
  printf("%d %d\n",a[0],b[0]);
  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	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -108(%rbp)
	jmp	.L2
.L6:
	leaq	-96(%rbp), %rdx
	movl	-108(%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
	movl	-108(%rbp), %eax
	movl	%eax, -104(%rbp)
	jmp	.L3
.L5:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-104(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	movl	%eax, -100(%rbp)
	movl	-104(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-104(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -96(%rbp,%rax,4)
	movl	-104(%rbp), %eax
	cltq
	movl	-100(%rbp), %edx
	movl	%edx, -96(%rbp,%rax,4)
.L4:
	subl	$1, -104(%rbp)
.L3:
	cmpl	$0, -104(%rbp)
	jne	.L5
	addl	$1, -108(%rbp)
.L2:
	cmpl	$9, -108(%rbp)
	jle	.L6
	movl	-96(%rbp), %eax
	movl	-92(%rbp), %ecx
	movl	-88(%rbp), %edx
	addl	%ecx, %edx
	addl	%edx, %eax
	movl	%eax, -96(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L7
.L11:
	leaq	-48(%rbp), %rdx
	movl	-108(%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
	movl	-108(%rbp), %eax
	movl	%eax, -104(%rbp)
	jmp	.L8
.L10:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-104(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L9
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -100(%rbp)
	movl	-104(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-104(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -48(%rbp,%rax,4)
	movl	-104(%rbp), %eax
	cltq
	movl	-100(%rbp), %edx
	movl	%edx, -48(%rbp,%rax,4)
.L9:
	subl	$1, -104(%rbp)
.L8:
	cmpl	$0, -104(%rbp)
	jne	.L10
	addl	$1, -108(%rbp)
.L7:
	cmpl	$9, -108(%rbp)
	jle	.L11
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	movl	-40(%rbp), %edx
	addl	%ecx, %edx
	addl	%edx, %eax
	movl	%eax, -48(%rbp)
	movl	-48(%rbp), %edx
	movl	-96(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -108(%rbp)
	jmp	.L2
.L6:
	leaq	-96(%rbp), %rdx
	movl	-108(%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
	movl	-108(%rbp), %eax
	movl	%eax, -104(%rbp)
	jmp	.L3
.L5:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-104(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	movl	%eax, -100(%rbp)
	movl	-104(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-104(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -96(%rbp,%rax,4)
	movl	-104(%rbp), %eax
	cltq
	movl	-100(%rbp), %edx
	movl	%edx, -96(%rbp,%rax,4)
.L4:
	subl	$1, -104(%rbp)
.L3:
	cmpl	$0, -104(%rbp)
	jne	.L5
	addl	$1, -108(%rbp)
.L2:
	cmpl	$9, -108(%rbp)
	jle	.L6
	movl	-96(%rbp), %eax
	movl	-92(%rbp), %ecx
	movl	-88(%rbp), %edx
	addl	%ecx, %edx
	addl	%edx, %eax
	movl	%eax, -96(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L7
.L11:
	leaq	-48(%rbp), %rdx
	movl	-108(%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
	movl	-108(%rbp), %eax
	movl	%eax, -104(%rbp)
	jmp	.L8
.L10:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-104(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L9
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	movl	%eax, -100(%rbp)
	movl	-104(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-104(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -48(%rbp,%rax,4)
	movl	-104(%rbp), %eax
	cltq
	movl	-100(%rbp), %edx
	movl	%edx, -48(%rbp,%rax,4)
.L9:
	subl	$1, -104(%rbp)
.L8:
	cmpl	$0, -104(%rbp)
	jne	.L10
	addl	$1, -108(%rbp)
.L7:
	cmpl	$9, -108(%rbp)
	jle	.L11
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	movl	-40(%rbp), %edx
	addl	%ecx, %edx
	addl	%edx, %eax
	movl	%eax, -48(%rbp)
	movl	-48(%rbp), %edx
	movl	-96(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
