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 a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(a < b && b < c)printf("%d %d %d\n", a, b, c);
else if(c <= b && b <= a)printf("%d %d %d\n", c, b, a);
else if(b <= a && a <= c)printf("%d %d %d\n", b, a, c);
else if(c <= a && a <= b)printf("%d %d %d\n", c, a, b);
else if(a <= c && c <= b)printf("%d %d %d\n", a, c, b);
else if(b <= c && c <= a)printf("%d %d %d\n", b, c, a);
return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	20(%rsp), %rcx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	16(%rsp), %r9d
	movl	20(%rsp), %r10d
	cmpl	%r9d, %edx
	jge	.L2
	cmpl	%r10d, %r9d
	jl	.L21
	cmpl	%r10d, %edx
	jge	.L8
	movl	%r9d, %r8d
	movl	%r10d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	cmpl	%r10d, %r9d
	jge	.L23
	cmpl	%r10d, %edx
	jle	.L24
	movl	%edx, %r8d
	movl	%r10d, %ecx
	cmpl	%r9d, %edx
	je	.L8
.L19:
	movl	%r9d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L21:
	movl	%r10d, %r8d
	movl	%r9d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L4
.L23:
	movl	%edx, %r8d
	movl	%r9d, %ecx
.L18:
	movl	%r10d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L24:
	movl	%r10d, %r8d
	movl	%edx, %ecx
	jmp	.L19
.L8:
	movl	%r9d, %r8d
	movl	%edx, %ecx
	jmp	.L18
.L22:
	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 %d %d"
.LC1:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	20(%rsp), %rcx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	16(%rsp), %r9d
	movl	20(%rsp), %r10d
	cmpl	%r9d, %edx
	jge	.L2
	cmpl	%r10d, %r9d
	jl	.L21
	cmpl	%r10d, %edx
	jge	.L8
	movl	%r9d, %r8d
	movl	%r10d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	cmpl	%r10d, %r9d
	jge	.L23
	cmpl	%r10d, %edx
	jle	.L24
	movl	%edx, %r8d
	movl	%r10d, %ecx
	cmpl	%r9d, %edx
	je	.L8
.L19:
	movl	%r9d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L21:
	movl	%r10d, %r8d
	movl	%r9d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L4
.L23:
	movl	%edx, %r8d
	movl	%r9d, %ecx
.L18:
	movl	%r10d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L24:
	movl	%r10d, %r8d
	movl	%edx, %ecx
	jmp	.L19
.L8:
	movl	%r9d, %r8d
	movl	%edx, %ecx
	jmp	.L18
.L22:
	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 %d %d"
.LC1:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	20(%rsp), %rcx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	16(%rsp), %r9d
	movl	20(%rsp), %r10d
	cmpl	%r9d, %edx
	jge	.L2
	cmpl	%r10d, %r9d
	jl	.L21
	cmpl	%r10d, %edx
	jge	.L8
	movl	%r9d, %r8d
	movl	%r10d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	cmpl	%r10d, %r9d
	jge	.L23
	cmpl	%r10d, %edx
	jle	.L24
	movl	%edx, %r8d
	movl	%r10d, %ecx
	cmpl	%r9d, %edx
	je	.L8
.L19:
	movl	%r9d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L21:
	movl	%r10d, %r8d
	movl	%r9d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L4
.L23:
	movl	%edx, %r8d
	movl	%r9d, %ecx
.L18:
	movl	%r10d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L24:
	movl	%r10d, %r8d
	movl	%edx, %ecx
	jmp	.L19
.L8:
	movl	%r9d, %r8d
	movl	%edx, %ecx
	jmp	.L18
.L22:
	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 a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(a < b && b < c)printf("%d %d %d\n", a, b, c);
else if(c <= b && b <= a)printf("%d %d %d\n", c, b, a);
else if(b <= a && a <= c)printf("%d %d %d\n", b, a, c);
else if(c <= a && a <= b)printf("%d %d %d\n", c, a, b);
else if(a <= c && c <= b)printf("%d %d %d\n", a, c, b);
else if(b <= c && c <= a)printf("%d %d %d\n", b, c, a);
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 a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(a < b && b < c)printf("%d %d %d\n", a, b, c);
else if(c <= b && b <= a)printf("%d %d %d\n", c, b, a);
else if(b <= a && a <= c)printf("%d %d %d\n", b, a, c);
else if(c <= a && a <= b)printf("%d %d %d\n", c, a, b);
else if(a <= c && c <= b)printf("%d %d %d\n", a, c, b);
else if(b <= c && c <= a)printf("%d %d %d\n", b, c, a);
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:

3 8 1

1 3 8

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 a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(a < b && b < c)printf("%d %d %d\n", a, b, c);
else if(c <= b && b <= a)printf("%d %d %d\n", c, b, a);
else if(b <= a && a <= c)printf("%d %d %d\n", b, a, c);
else if(c <= a && a <= b)printf("%d %d %d\n", c, a, b);
else if(a <= c && c <= b)printf("%d %d %d\n", a, c, b);
else if(b <= c && c <= a)printf("%d %d %d\n", b, c, a);
return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	20(%rsp), %rcx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	16(%rsp), %r9d
	movl	20(%rsp), %r10d
	cmpl	%r9d, %edx
	jge	.L2
	cmpl	%r10d, %r9d
	jl	.L21
	cmpl	%r10d, %edx
	jge	.L8
	movl	%r9d, %r8d
	movl	%r10d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	cmpl	%r10d, %r9d
	jge	.L23
	cmpl	%r10d, %edx
	jle	.L24
	movl	%edx, %r8d
	movl	%r10d, %ecx
	cmpl	%r9d, %edx
	je	.L8
.L19:
	movl	%r9d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L21:
	movl	%r10d, %r8d
	movl	%r9d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L4
.L23:
	movl	%edx, %r8d
	movl	%r9d, %ecx
.L18:
	movl	%r10d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L24:
	movl	%r10d, %r8d
	movl	%edx, %ecx
	jmp	.L19
.L8:
	movl	%r9d, %r8d
	movl	%edx, %ecx
	jmp	.L18
.L22:
	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 %d %d"
.LC1:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	20(%rsp), %rcx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	16(%rsp), %r9d
	movl	20(%rsp), %r10d
	cmpl	%r9d, %edx
	jge	.L2
	cmpl	%r10d, %r9d
	jl	.L21
	cmpl	%r10d, %edx
	jge	.L8
	movl	%r9d, %r8d
	movl	%r10d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	cmpl	%r10d, %r9d
	jge	.L23
	cmpl	%r10d, %edx
	jle	.L24
	movl	%edx, %r8d
	movl	%r10d, %ecx
	cmpl	%r9d, %edx
	je	.L8
.L19:
	movl	%r9d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L21:
	movl	%r10d, %r8d
	movl	%r9d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L4
.L23:
	movl	%edx, %r8d
	movl	%r9d, %ecx
.L18:
	movl	%r10d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L24:
	movl	%r10d, %r8d
	movl	%edx, %ecx
	jmp	.L19
.L8:
	movl	%r9d, %r8d
	movl	%edx, %ecx
	jmp	.L18
.L22:
	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:
```