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

Assembly Code:

```assembly
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$104, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	leaq	40(%rsp), %r13
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L2
	leaq	80(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L3
	xorl	%edi, %edi
.L4:
	movq	%rbp, %rax
	xorl	%edx, %edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L48:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %esi
	movd	%xmm2, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %esi
	jge	.L8
	movq	%xmm1, (%rax)
.L8:
	cmpl	$9, %edx
	je	.L6
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L9
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L9:
	cmpl	$8, %edx
	je	.L6
	movl	12(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L10
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L10:
	cmpl	$7, %edx
	je	.L6
	movl	16(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L11
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L11:
	cmpl	$6, %edx
	je	.L6
	movl	20(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L12
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L12:
	cmpl	$5, %edx
	je	.L6
	movl	24(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L13
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L13:
	cmpl	$4, %edx
	je	.L6
	movl	28(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L14
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L14:
	cmpl	$3, %edx
	je	.L6
	movl	32(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L15
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L15:
	cmpl	$2, %edx
	je	.L6
	movl	36(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L6
	movl	%esi, (%rax)
	movl	%ecx, 36(%rax)
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$4, %rax
.L17:
	addl	$1, %edx
	cmpl	$10, %edx
	jne	.L48
	addq	$40, %rbp
	cmpl	$1, %edi
	je	.L49
	movl	$1, %edi
	jmp	.L4
.L49:
	movl	44(%rsp), %ecx
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	addl	40(%rsp), %ecx
	addl	(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	addl	48(%rsp), %ecx
	addl	8(%rsp), %edx
	call	__printf_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L50:
	.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:
```

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
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$104, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	leaq	40(%rsp), %r13
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L2
	leaq	80(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L3
	xorl	%edi, %edi
.L4:
	movq	%rbp, %rax
	xorl	%edx, %edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L48:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %esi
	movd	%xmm2, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %esi
	jge	.L8
	movq	%xmm1, (%rax)
.L8:
	cmpl	$9, %edx
	je	.L6
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L9
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L9:
	cmpl	$8, %edx
	je	.L6
	movl	12(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L10
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L10:
	cmpl	$7, %edx
	je	.L6
	movl	16(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L11
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L11:
	cmpl	$6, %edx
	je	.L6
	movl	20(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L12
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L12:
	cmpl	$5, %edx
	je	.L6
	movl	24(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L13
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L13:
	cmpl	$4, %edx
	je	.L6
	movl	28(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L14
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L14:
	cmpl	$3, %edx
	je	.L6
	movl	32(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L15
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L15:
	cmpl	$2, %edx
	je	.L6
	movl	36(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L6
	movl	%esi, (%rax)
	movl	%ecx, 36(%rax)
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$4, %rax
.L17:
	addl	$1, %edx
	cmpl	$10, %edx
	jne	.L48
	addq	$40, %rbp
	cmpl	$1, %edi
	je	.L49
	movl	$1, %edi
	jmp	.L4
.L49:
	movl	44(%rsp), %ecx
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	addl	40(%rsp), %ecx
	addl	(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	addl	48(%rsp), %ecx
	addl	8(%rsp), %edx
	call	__printf_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L50:
	.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
```assembly
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$104, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	leaq	40(%rsp), %r13
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L2
	leaq	80(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L3
	xorl	%edi, %edi
.L4:
	movq	%rbp, %rax
	xorl	%edx, %edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L48:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %esi
	movd	%xmm2, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %esi
	jge	.L8
	movq	%xmm1, (%rax)
.L8:
	cmpl	$9, %edx
	je	.L6
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L9
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L9:
	cmpl	$8, %edx
	je	.L6
	movl	12(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L10
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L10:
	cmpl	$7, %edx
	je	.L6
	movl	16(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L11
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L11:
	cmpl	$6, %edx
	je	.L6
	movl	20(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L12
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L12:
	cmpl	$5, %edx
	je	.L6
	movl	24(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L13
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L13:
	cmpl	$4, %edx
	je	.L6
	movl	28(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L14
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L14:
	cmpl	$3, %edx
	je	.L6
	movl	32(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L15
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L15:
	cmpl	$2, %edx
	je	.L6
	movl	36(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L6
	movl	%esi, (%rax)
	movl	%ecx, 36(%rax)
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$4, %rax
.L17:
	addl	$1, %edx
	cmpl	$10, %edx
	jne	.L48
	addq	$40, %rbp
	cmpl	$1, %edi
	je	.L49
	movl	$1, %edi
	jmp	.L4
.L49:
	movl	44(%rsp), %ecx
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	addl	40(%rsp), %ecx
	addl	(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	addl	48(%rsp), %ecx
	addl	8(%rsp), %edx
	call	__printf_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L50:
	.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:
```
```c
#include<stdio.h>
int main(){
	int i,j,k,a[2][10],x=0;
	for(i=0;i<2;i++)for(j=0;j<10;j++)scanf("%d",&a[i][j]);
	for(i=0;i<2;i++)for(j=0;j<10;j++)for(k=j;k<10;k++){
		if(a[i][k]>a[i][j]){
			x=a[i][j];
			a[i][j]=a[i][k];
			a[i][k]=x;
		}
	}
	i=a[0][0]+a[0][1]+a[0][2];
	j=a[1][0]+a[1][1]+a[1][2];
	printf("%d %d\n",i,j);
	return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(){
	int i,j,k,a[2][10],x=0;
	for(i=0;i<2;i++)for(j=0;j<10;j++)scanf("%d",&a[i][j]);
	for(i=0;i<2;i++)for(j=0;j<10;j++)for(k=j;k<10;k++){
		if(a[i][k]>a[i][j]){
			x=a[i][j];
			a[i][j]=a[i][k];
			a[i][k]=x;
		}
	}
	i=a[0][0]+a[0][1]+a[0][2];
	j=a[1][0]+a[1][1]+a[1][2];
	printf("%d %d\n",i,j);
	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>
int main(){
	int i,j,k,a[2][10],x=0;
	for(i=0;i<2;i++)for(j=0;j<10;j++)scanf("%d",&a[i][j]);
	for(i=0;i<2;i++)for(j=0;j<10;j++)for(k=j;k<10;k++){
		if(a[i][k]>a[i][j]){
			x=a[i][j];
			a[i][j]=a[i][k];
			a[i][k]=x;
		}
	}
	i=a[0][0]+a[0][1]+a[0][2];
	j=a[1][0]+a[1][1]+a[1][2];
	printf("%d %d\n",i,j);
	return 0;
}
```

Assembly Code:

```assembly
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$104, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	leaq	40(%rsp), %r13
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L2
	leaq	80(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L3
	xorl	%edi, %edi
.L4:
	movq	%rbp, %rax
	xorl	%edx, %edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L48:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %esi
	movd	%xmm2, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %esi
	jge	.L8
	movq	%xmm1, (%rax)
.L8:
	cmpl	$9, %edx
	je	.L6
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L9
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L9:
	cmpl	$8, %edx
	je	.L6
	movl	12(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L10
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L10:
	cmpl	$7, %edx
	je	.L6
	movl	16(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L11
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L11:
	cmpl	$6, %edx
	je	.L6
	movl	20(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L12
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L12:
	cmpl	$5, %edx
	je	.L6
	movl	24(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L13
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L13:
	cmpl	$4, %edx
	je	.L6
	movl	28(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L14
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L14:
	cmpl	$3, %edx
	je	.L6
	movl	32(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L15
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L15:
	cmpl	$2, %edx
	je	.L6
	movl	36(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L6
	movl	%esi, (%rax)
	movl	%ecx, 36(%rax)
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$4, %rax
.L17:
	addl	$1, %edx
	cmpl	$10, %edx
	jne	.L48
	addq	$40, %rbp
	cmpl	$1, %edi
	je	.L49
	movl	$1, %edi
	jmp	.L4
.L49:
	movl	44(%rsp), %ecx
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	addl	40(%rsp), %ecx
	addl	(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	addl	48(%rsp), %ecx
	addl	8(%rsp), %edx
	call	__printf_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L50:
	.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:
```

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
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$104, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	leaq	40(%rsp), %r13
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L2
	leaq	80(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L3
	xorl	%edi, %edi
.L4:
	movq	%rbp, %rax
	xorl	%edx, %edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L48:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %esi
	movd	%xmm2, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %esi
	jge	.L8
	movq	%xmm1, (%rax)
.L8:
	cmpl	$9, %edx
	je	.L6
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L9
	movl	%esi, (%rax)
	movl	%ecx, 8(%rax)
.L9:
	cmpl	$8, %edx
	je	.L6
	movl	12(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L10
	movl	%esi, (%rax)
	movl	%ecx, 12(%rax)
.L10:
	cmpl	$7, %edx
	je	.L6
	movl	16(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L11
	movl	%esi, (%rax)
	movl	%ecx, 16(%rax)
.L11:
	cmpl	$6, %edx
	je	.L6
	movl	20(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L12
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
.L12:
	cmpl	$5, %edx
	je	.L6
	movl	24(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jge	.L13
	movl	%esi, (%rax)
	movl	%ecx, 24(%rax)
.L13:
	cmpl	$4, %edx
	je	.L6
	movl	28(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L14
	movl	%esi, (%rax)
	movl	%ecx, 28(%rax)
.L14:
	cmpl	$3, %edx
	je	.L6
	movl	32(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L15
	movl	%esi, (%rax)
	movl	%ecx, 32(%rax)
.L15:
	cmpl	$2, %edx
	je	.L6
	movl	36(%rax), %esi
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	.L6
	movl	%esi, (%rax)
	movl	%ecx, 36(%rax)
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$4, %rax
.L17:
	addl	$1, %edx
	cmpl	$10, %edx
	jne	.L48
	addq	$40, %rbp
	cmpl	$1, %edi
	je	.L49
	movl	$1, %edi
	jmp	.L4
.L49:
	movl	44(%rsp), %ecx
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	addl	40(%rsp), %ecx
	addl	(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	addl	48(%rsp), %ecx
	addl	8(%rsp), %edx
	call	__printf_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L50:
	.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:
```