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(void){
  int e[4]={};
  for(int i=0;i<4;i++){ scanf("%d",&e[i]); }

  for(int i=0;i<4;i++){
    for(int j=i+1;j<4;j++){
      if(e[i]>e[j]){
        int a=e[i];
        e[i]=e[j];
        e[j]=a;
      }
    }
  }

  if(e[0]==e[1] && e[2]==e[3]) printf("yes\n");
  else printf("no\n");
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.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
	pxor	%xmm0, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%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
	movaps	%xmm0, (%rsp)
	leaq	16(%rsp), %r12
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r12
	jne	.L2
	movl	$1, %r8d
	movl	$1, %eax
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	%eax, %rdx
	movl	(%rsp,%rdi,4), %ecx
	movl	(%rsp,%rdx,4), %esi
	cmpl	%esi, %ecx
	jle	.L4
	movl	%esi, (%rsp,%rdi,4)
	movl	%ecx, (%rsp,%rdx,4)
.L4:
	addl	$1, %eax
	cmpl	$4, %eax
	jne	.L3
	leal	1(%r8), %eax
	cmpl	$3, %r8d
	je	.L19
	movslq	%r8d, %rdi
	movl	%eax, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movl	4(%rsp), %eax
	cmpl	%eax, (%rsp)
	jne	.L7
	movl	12(%rsp), %eax
	cmpl	%eax, 8(%rsp)
	je	.L20
.L7:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L8:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$32, %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
.L20:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L21:
	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	"yes"
.LC2:
	.string	"no"
	.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
	pxor	%xmm0, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%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
	movaps	%xmm0, (%rsp)
	leaq	16(%rsp), %r12
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r12
	jne	.L2
	movl	$1, %r8d
	movl	$1, %eax
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	%eax, %rdx
	movl	(%rsp,%rdi,4), %ecx
	movl	(%rsp,%rdx,4), %esi
	cmpl	%esi, %ecx
	jle	.L4
	movl	%esi, (%rsp,%rdi,4)
	movl	%ecx, (%rsp,%rdx,4)
.L4:
	addl	$1, %eax
	cmpl	$4, %eax
	jne	.L3
	leal	1(%r8), %eax
	cmpl	$3, %r8d
	je	.L19
	movslq	%r8d, %rdi
	movl	%eax, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movl	4(%rsp), %eax
	cmpl	%eax, (%rsp)
	jne	.L7
	movl	12(%rsp), %eax
	cmpl	%eax, 8(%rsp)
	je	.L20
.L7:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L8:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$32, %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
.L20:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L21:
	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	"yes"
.LC2:
	.string	"no"
	.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
	pxor	%xmm0, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%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
	movaps	%xmm0, (%rsp)
	leaq	16(%rsp), %r12
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r12
	jne	.L2
	movl	$1, %r8d
	movl	$1, %eax
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	%eax, %rdx
	movl	(%rsp,%rdi,4), %ecx
	movl	(%rsp,%rdx,4), %esi
	cmpl	%esi, %ecx
	jle	.L4
	movl	%esi, (%rsp,%rdi,4)
	movl	%ecx, (%rsp,%rdx,4)
.L4:
	addl	$1, %eax
	cmpl	$4, %eax
	jne	.L3
	leal	1(%r8), %eax
	cmpl	$3, %r8d
	je	.L19
	movslq	%r8d, %rdi
	movl	%eax, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movl	4(%rsp), %eax
	cmpl	%eax, (%rsp)
	jne	.L7
	movl	12(%rsp), %eax
	cmpl	%eax, 8(%rsp)
	je	.L20
.L7:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L8:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$32, %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
.L20:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L21:
	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(void){
  int e[4]={};
  for(int i=0;i<4;i++){ scanf("%d",&e[i]); }

  for(int i=0;i<4;i++){
    for(int j=i+1;j<4;j++){
      if(e[i]>e[j]){
        int a=e[i];
        e[i]=e[j];
        e[j]=a;
      }
    }
  }

  if(e[0]==e[1] && e[2]==e[3]) printf("yes\n");
  else printf("no\n");
  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(void){
  int e[4]={};
  for(int i=0;i<4;i++){ scanf("%d",&e[i]); }

  for(int i=0;i<4;i++){
    for(int j=i+1;j<4;j++){
      if(e[i]>e[j]){
        int a=e[i];
        e[i]=e[j];
        e[j]=a;
      }
    }
  }

  if(e[0]==e[1] && e[2]==e[3]) printf("yes\n");
  else printf("no\n");
  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:

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 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]={};
  for(int i=0;i<4;i++){ scanf("%d",&e[i]); }

  for(int i=0;i<4;i++){
    for(int j=i+1;j<4;j++){
      if(e[i]>e[j]){
        int a=e[i];
        e[i]=e[j];
        e[j]=a;
      }
    }
  }

  if(e[0]==e[1] && e[2]==e[3]) printf("yes\n");
  else printf("no\n");
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.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
	pxor	%xmm0, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%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
	movaps	%xmm0, (%rsp)
	leaq	16(%rsp), %r12
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r12
	jne	.L2
	movl	$1, %r8d
	movl	$1, %eax
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	%eax, %rdx
	movl	(%rsp,%rdi,4), %ecx
	movl	(%rsp,%rdx,4), %esi
	cmpl	%esi, %ecx
	jle	.L4
	movl	%esi, (%rsp,%rdi,4)
	movl	%ecx, (%rsp,%rdx,4)
.L4:
	addl	$1, %eax
	cmpl	$4, %eax
	jne	.L3
	leal	1(%r8), %eax
	cmpl	$3, %r8d
	je	.L19
	movslq	%r8d, %rdi
	movl	%eax, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movl	4(%rsp), %eax
	cmpl	%eax, (%rsp)
	jne	.L7
	movl	12(%rsp), %eax
	cmpl	%eax, 8(%rsp)
	je	.L20
.L7:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L8:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$32, %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
.L20:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L21:
	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	"yes"
.LC2:
	.string	"no"
	.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
	pxor	%xmm0, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%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
	movaps	%xmm0, (%rsp)
	leaq	16(%rsp), %r12
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r12
	jne	.L2
	movl	$1, %r8d
	movl	$1, %eax
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	%eax, %rdx
	movl	(%rsp,%rdi,4), %ecx
	movl	(%rsp,%rdx,4), %esi
	cmpl	%esi, %ecx
	jle	.L4
	movl	%esi, (%rsp,%rdi,4)
	movl	%ecx, (%rsp,%rdx,4)
.L4:
	addl	$1, %eax
	cmpl	$4, %eax
	jne	.L3
	leal	1(%r8), %eax
	cmpl	$3, %r8d
	je	.L19
	movslq	%r8d, %rdi
	movl	%eax, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movl	4(%rsp), %eax
	cmpl	%eax, (%rsp)
	jne	.L7
	movl	12(%rsp), %eax
	cmpl	%eax, 8(%rsp)
	je	.L20
.L7:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L8:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$32, %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
.L20:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L21:
	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:
```