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)
{
	double max = 0,min = 0,x;
	int flag = 0;
	
	while(scanf("%lf", &x) != EOF){
		if(flag == 0){
			max = x;
			min = x;
			flag = 1;
		}
		
		if(max < x) max = x;
		if(min > x) min = x;
	}
	
	printf("%.1lf\n", max - min);
	
	return(0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lf"
.LC2:
	.string	"%.1lf\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
	pxor	%xmm4, %xmm4
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	movsd	%xmm4, 8(%rsp)
	movsd	%xmm4, (%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movapd	%xmm0, %xmm1
	maxsd	(%rsp), %xmm1
	minsd	8(%rsp), %xmm0
	movsd	%xmm1, (%rsp)
.L3:
	movsd	%xmm0, 8(%rsp)
	movl	$1, %ebx
.L2:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L14
	movsd	16(%rsp), %xmm0
	testl	%ebx, %ebx
	jne	.L15
	movsd	%xmm0, (%rsp)
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	movsd	(%rsp), %xmm0
	subsd	8(%rsp), %xmm0
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	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
.L16:
	.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
.LC1:
	.string	"%lf"
.LC2:
	.string	"%.1lf\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
	pxor	%xmm4, %xmm4
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	movsd	%xmm4, 8(%rsp)
	movsd	%xmm4, (%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movapd	%xmm0, %xmm1
	maxsd	(%rsp), %xmm1
	minsd	8(%rsp), %xmm0
	movsd	%xmm1, (%rsp)
.L3:
	movsd	%xmm0, 8(%rsp)
	movl	$1, %ebx
.L2:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L14
	movsd	16(%rsp), %xmm0
	testl	%ebx, %ebx
	jne	.L15
	movsd	%xmm0, (%rsp)
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	movsd	(%rsp), %xmm0
	subsd	8(%rsp), %xmm0
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	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
.L16:
	.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
.LC1:
	.string	"%lf"
.LC2:
	.string	"%.1lf\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
	pxor	%xmm4, %xmm4
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	movsd	%xmm4, 8(%rsp)
	movsd	%xmm4, (%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movapd	%xmm0, %xmm1
	maxsd	(%rsp), %xmm1
	minsd	8(%rsp), %xmm0
	movsd	%xmm1, (%rsp)
.L3:
	movsd	%xmm0, 8(%rsp)
	movl	$1, %ebx
.L2:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L14
	movsd	16(%rsp), %xmm0
	testl	%ebx, %ebx
	jne	.L15
	movsd	%xmm0, (%rsp)
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	movsd	(%rsp), %xmm0
	subsd	8(%rsp), %xmm0
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	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
.L16:
	.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(void)
{
	double max = 0,min = 0,x;
	int flag = 0;
	
	while(scanf("%lf", &x) != EOF){
		if(flag == 0){
			max = x;
			min = x;
			flag = 1;
		}
		
		if(max < x) max = x;
		if(min > x) min = x;
	}
	
	printf("%.1lf\n", max - min);
	
	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)
{
	double max = 0,min = 0,x;
	int flag = 0;
	
	while(scanf("%lf", &x) != EOF){
		if(flag == 0){
			max = x;
			min = x;
			flag = 1;
		}
		
		if(max < x) max = x;
		if(min > x) min = x;
	}
	
	printf("%.1lf\n", max - min);
	
	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:

3776.5765005393655
1819.0
645.2
2004.1
1208.6
 3777.502968017379
1819.0
645.2
2004.1
1208.6
 3778.4165917426626
1819.0
645.2
2004.2183724359945
1208.6
 3779.3515835085277
1819.169376096264
645.2
2004.5930566110492
1208.6
 3779.3515835085277
1819.169376096264
645.463437143232
2005.3577164478409
1209.3337144467619
 3779.3515835085277
1819.169376096264
645.8367231919477
2005.3577164478409
1209.3337144467619
 3779.3515835085277
1819.169376096264
645.8829036094434
2005.3577164478409
1209.3337144467619
 3780.0351746720435
1819.169376096264
645.8829036094434
2005.3577164478409
1209.3337144467619
 3780.0804815259103
1819.169376096264
645.8829036094434
2005.3577164478409
1209.3337144467619
 3780.0804815259103
1819.169376096264
646.6571280527984
2005.3577164478409
1209.3337144467619

3131.4
 3132.3
 3133.2
 3134.2
 3133.9
 3133.5
 3133.5
 3134.2
 3134.2
 3133.4

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)
{
	double max = 0,min = 0,x;
	int flag = 0;
	
	while(scanf("%lf", &x) != EOF){
		if(flag == 0){
			max = x;
			min = x;
			flag = 1;
		}
		
		if(max < x) max = x;
		if(min > x) min = x;
	}
	
	printf("%.1lf\n", max - min);
	
	return(0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lf"
.LC2:
	.string	"%.1lf\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
	pxor	%xmm4, %xmm4
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	movsd	%xmm4, 8(%rsp)
	movsd	%xmm4, (%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movapd	%xmm0, %xmm1
	maxsd	(%rsp), %xmm1
	minsd	8(%rsp), %xmm0
	movsd	%xmm1, (%rsp)
.L3:
	movsd	%xmm0, 8(%rsp)
	movl	$1, %ebx
.L2:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L14
	movsd	16(%rsp), %xmm0
	testl	%ebx, %ebx
	jne	.L15
	movsd	%xmm0, (%rsp)
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	movsd	(%rsp), %xmm0
	subsd	8(%rsp), %xmm0
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	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
.L16:
	.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
.LC1:
	.string	"%lf"
.LC2:
	.string	"%.1lf\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
	pxor	%xmm4, %xmm4
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	movsd	%xmm4, 8(%rsp)
	movsd	%xmm4, (%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movapd	%xmm0, %xmm1
	maxsd	(%rsp), %xmm1
	minsd	8(%rsp), %xmm0
	movsd	%xmm1, (%rsp)
.L3:
	movsd	%xmm0, 8(%rsp)
	movl	$1, %ebx
.L2:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L14
	movsd	16(%rsp), %xmm0
	testl	%ebx, %ebx
	jne	.L15
	movsd	%xmm0, (%rsp)
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	movsd	(%rsp), %xmm0
	subsd	8(%rsp), %xmm0
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	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
.L16:
	.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:
```