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 e[4];
	int i, j;
	for (i = 0; i < 4; i++) {
		if (scanf("%d", &e[i]) != 1) return 1;
	}
	for (i = 3; i > 0; i--) {
		for (j = 0; j < i; j++) {
			if (e[j] > e[j + 1]) {
				int t = e[j];
				e[j] = e[j + 1];
				e[j + 1] = t;
			}
		}
	}
	puts(e[0] == e[1] && e[2] == e[3] ? "yes" : "no");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	jmp	.L2
.L5:
	leaq	-32(%rbp), %rdx
	movl	-44(%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
	cmpl	$1, %eax
	je	.L3
	movl	$1, %eax
	jmp	.L13
.L3:
	addl	$1, -44(%rbp)
.L2:
	cmpl	$3, -44(%rbp)
	jle	.L5
	movl	$3, -44(%rbp)
	jmp	.L6
.L10:
	movl	$0, -40(%rbp)
	jmp	.L7
.L9:
	movl	-40(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L8
	movl	-40(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movl	%eax, -36(%rbp)
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	-40(%rbp), %eax
	cltq
	movl	%edx, -32(%rbp,%rax,4)
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-36(%rbp), %edx
	movl	%edx, -32(%rbp,%rax,4)
.L8:
	addl	$1, -40(%rbp)
.L7:
	movl	-40(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jl	.L9
	subl	$1, -44(%rbp)
.L6:
	cmpl	$0, -44(%rbp)
	jg	.L10
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L11
	leaq	.LC1(%rip), %rax
	jmp	.L12
.L11:
	leaq	.LC2(%rip), %rax
.L12:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L13:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"yes"
.LC1:
	.string	"no"
.LC2:
	.string	"%d"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	16(%rsp), %r12
.L3:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L17
	addq	$4, %rbx
	cmpq	%rbx, %r12
	jne	.L3
	movq	(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %edx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L4
	movq	%xmm1, (%rsp)
.L4:
	movq	4(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %eax
	movd	%xmm3, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jge	.L10
	movq	%xmm1, 4(%rsp)
.L10:
	movq	8(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %edx
	movd	%xmm7, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L9
	movq	%xmm1, 8(%rsp)
.L9:
	movq	(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %eax
	movd	%xmm4, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jge	.L8
	movq	%xmm1, (%rsp)
.L8:
	movq	4(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %eax
	movd	%xmm5, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jge	.L14
	movq	%xmm1, 4(%rsp)
.L14:
	movq	(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %edx
	movd	%xmm6, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jg	.L12
.L13:
	movl	4(%rsp), %eax
	leaq	.LC1(%rip), %rdi
	cmpl	%eax, (%rsp)
	jne	.L15
	movl	12(%rsp), %eax
	cmpl	%eax, 8(%rsp)
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
.L15:
	call	puts@PLT
	xorl	%eax, %eax
.L1:
	movq	24(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L23
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movq	%xmm1, (%rsp)
	jmp	.L13
.L17:
	movl	$1, %eax
	jmp	.L1
.L23:
	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	"yes"
.LC1:
	.string	"no"
.LC2:
	.string	"%d"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	16(%rsp), %r12
.L3:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L17
	addq	$4, %rbx
	cmpq	%rbx, %r12
	jne	.L3
	movq	(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %edx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L4
	movq	%xmm1, (%rsp)
.L4:
	movq	4(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %eax
	movd	%xmm3, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jge	.L10
	movq	%xmm1, 4(%rsp)
.L10:
	movq	8(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %edx
	movd	%xmm7, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L9
	movq	%xmm1, 8(%rsp)
.L9:
	movq	(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %eax
	movd	%xmm4, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jge	.L8
	movq	%xmm1, (%rsp)
.L8:
	movq	4(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %eax
	movd	%xmm5, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jge	.L14
	movq	%xmm1, 4(%rsp)
.L14:
	movq	(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %edx
	movd	%xmm6, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jg	.L12
.L13:
	movl	4(%rsp), %eax
	leaq	.LC1(%rip), %rdi
	cmpl	%eax, (%rsp)
	jne	.L15
	movl	12(%rsp), %eax
	cmpl	%eax, 8(%rsp)
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
.L15:
	call	puts@PLT
	xorl	%eax, %eax
.L1:
	movq	24(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L23
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movq	%xmm1, (%rsp)
	jmp	.L13
.L17:
	movl	$1, %eax
	jmp	.L1
.L23:
	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 e[4];
	int i, j;
	for (i = 0; i < 4; i++) {
		if (scanf("%d", &e[i]) != 1) return 1;
	}
	for (i = 3; i > 0; i--) {
		for (j = 0; j < i; j++) {
			if (e[j] > e[j + 1]) {
				int t = e[j];
				e[j] = e[j + 1];
				e[j + 1] = t;
			}
		}
	}
	puts(e[0] == e[1] && e[2] == e[3] ? "yes" : "no");
	return 0;
}
0 1 2 2
 0 0 2 2
 0 4 4 10
 2 0 1 2
 1 1 0 4
 -1 1 2 2
 1 4 4 10
 2 0 2 2
 1 1 0 6
 -1 4 4 10

no
 yes
 no
 no
 no
 no
 no
 no
 no
 no

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 e[4];
	int i, j;
	for (i = 0; i < 4; i++) {
		if (scanf("%d", &e[i]) != 1) return 1;
	}
	for (i = 3; i > 0; i--) {
		for (j = 0; j < i; j++) {
			if (e[j] > e[j + 1]) {
				int t = e[j];
				e[j] = e[j + 1];
				e[j + 1] = t;
			}
		}
	}
	puts(e[0] == e[1] && e[2] == e[3] ? "yes" : "no");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	jmp	.L2
.L5:
	leaq	-32(%rbp), %rdx
	movl	-44(%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
	cmpl	$1, %eax
	je	.L3
	movl	$1, %eax
	jmp	.L13
.L3:
	addl	$1, -44(%rbp)
.L2:
	cmpl	$3, -44(%rbp)
	jle	.L5
	movl	$3, -44(%rbp)
	jmp	.L6
.L10:
	movl	$0, -40(%rbp)
	jmp	.L7
.L9:
	movl	-40(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L8
	movl	-40(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movl	%eax, -36(%rbp)
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	-40(%rbp), %eax
	cltq
	movl	%edx, -32(%rbp,%rax,4)
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-36(%rbp), %edx
	movl	%edx, -32(%rbp,%rax,4)
.L8:
	addl	$1, -40(%rbp)
.L7:
	movl	-40(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jl	.L9
	subl	$1, -44(%rbp)
.L6:
	cmpl	$0, -44(%rbp)
	jg	.L10
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L11
	leaq	.LC1(%rip), %rax
	jmp	.L12
.L11:
	leaq	.LC2(%rip), %rax
.L12:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L13:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"yes"
.LC2:
	.string	"no"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	jmp	.L2
.L5:
	leaq	-32(%rbp), %rdx
	movl	-44(%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
	cmpl	$1, %eax
	je	.L3
	movl	$1, %eax
	jmp	.L13
.L3:
	addl	$1, -44(%rbp)
.L2:
	cmpl	$3, -44(%rbp)
	jle	.L5
	movl	$3, -44(%rbp)
	jmp	.L6
.L10:
	movl	$0, -40(%rbp)
	jmp	.L7
.L9:
	movl	-40(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L8
	movl	-40(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movl	%eax, -36(%rbp)
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-32(%rbp,%rax,4), %edx
	movl	-40(%rbp), %eax
	cltq
	movl	%edx, -32(%rbp,%rax,4)
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-36(%rbp), %edx
	movl	%edx, -32(%rbp,%rax,4)
.L8:
	addl	$1, -40(%rbp)
.L7:
	movl	-40(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jl	.L9
	subl	$1, -44(%rbp)
.L6:
	cmpl	$0, -44(%rbp)
	jg	.L10
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L11
	leaq	.LC1(%rip), %rax
	jmp	.L12
.L11:
	leaq	.LC2(%rip), %rax
.L12:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L13:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
