Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
  AOJ 2656
  Title:Taps
  @kankichi573
*/
#include <stdio.h>
#include <math.h>
#include <float.h>
#define min(x,y) (((x)<(y))?(x):(y))

double T,D,ta,tb,da,db;
double temp;
double diff;

main()
{
  double w;
  int i,j;
  
  scanf("%lf %lf",&T,&D);
  scanf("%lf %lf",&ta,&tb);
  scanf("%lf %lf",&da,&db);

  if(ta>tb)
    w=ta,ta=tb,tb=w,w=da,da=db,db=w;

  if(T<=ta)
    diff=(double)ta-T;
  else if(T>=tb)
    diff=(double)T-tb;
  else
    {
      diff=100.0;
      for(i=0;i*da<=D;i++)
	for(j=0;i*da+j*db<=D;j++)
	  {
	    if(i==0 && j==0)
	      continue;
	    temp=(ta*i*da+tb*j*db)/(i*da+j*db);
	    //printf("%lf %lf %lf \n",i*da,j*db,temp);
	    diff=min(diff,fabs(T-temp));
	  }
    }
  printf("%lf\n",diff);
  return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	T
	.bss
	.align 8
	.type	T, @object
	.size	T, 8
T:
	.zero	8
	.globl	D
	.align 8
	.type	D, @object
	.size	D, 8
D:
	.zero	8
	.globl	ta
	.align 8
	.type	ta, @object
	.size	ta, 8
ta:
	.zero	8
	.globl	tb
	.align 8
	.type	tb, @object
	.size	tb, 8
tb:
	.zero	8
	.globl	da
	.align 8
	.type	da, @object
	.size	da, 8
da:
	.zero	8
	.globl	db
	.align 8
	.type	db, @object
	.size	db, 8
db:
	.zero	8
	.globl	temp
	.align 8
	.type	temp, @object
	.size	temp, 8
temp:
	.zero	8
	.globl	diff
	.align 8
	.type	diff, @object
	.size	diff, 8
diff:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%lf %lf"
.LC3:
	.string	"%lf\n"
	.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	$16, %rsp
	leaq	D(%rip), %rax
	movq	%rax, %rdx
	leaq	T(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	tb(%rip), %rax
	movq	%rax, %rdx
	leaq	ta(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	db(%rip), %rax
	movq	%rax, %rdx
	leaq	da(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	ta(%rip), %xmm0
	movsd	tb(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L2
	movsd	ta(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	tb(%rip), %xmm0
	movsd	%xmm0, ta(%rip)
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, tb(%rip)
	movsd	da(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	db(%rip), %xmm0
	movsd	%xmm0, da(%rip)
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, db(%rip)
.L2:
	movsd	T(%rip), %xmm1
	movsd	ta(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L23
	movsd	ta(%rip), %xmm0
	movsd	T(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, diff(%rip)
	jmp	.L6
.L23:
	movsd	T(%rip), %xmm0
	movsd	tb(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jb	.L24
	movsd	T(%rip), %xmm0
	movsd	tb(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, diff(%rip)
	jmp	.L6
.L24:
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, diff(%rip)
	movl	$0, -16(%rbp)
	jmp	.L9
.L17:
	movl	$0, -12(%rbp)
	jmp	.L10
.L16:
	cmpl	$0, -16(%rbp)
	jne	.L11
	cmpl	$0, -12(%rbp)
	je	.L26
.L11:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	ta(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	da(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-12(%rbp), %xmm2
	movsd	tb(%rip), %xmm0
	mulsd	%xmm0, %xmm2
	movsd	db(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-16(%rbp), %xmm2
	movsd	da(%rip), %xmm1
	mulsd	%xmm1, %xmm2
	pxor	%xmm3, %xmm3
	cvtsi2sdl	-12(%rbp), %xmm3
	movsd	db(%rip), %xmm1
	mulsd	%xmm3, %xmm1
	addsd	%xmm2, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, temp(%rip)
	movsd	T(%rip), %xmm0
	movsd	temp(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm1, %xmm0
	movsd	diff(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L25
	movsd	diff(%rip), %xmm0
	jmp	.L15
.L25:
	movsd	T(%rip), %xmm0
	movsd	temp(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm1, %xmm0
.L15:
	movsd	%xmm0, diff(%rip)
	jmp	.L12
.L26:
	nop
.L12:
	addl	$1, -12(%rbp)
.L10:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	da(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-12(%rbp), %xmm2
	movsd	db(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movsd	D(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jnb	.L16
	addl	$1, -16(%rbp)
.L9:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	da(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	D(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jnb	.L17
.L6:
	movq	diff(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1079574528
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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
.LC2:
	.string	"%lf %lf"
.LC4:
	.string	"%lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rbp
	leaq	D(%rip), %rdx
	xorl	%eax, %eax
	leaq	T(%rip), %rsi
	movq	%rbp, %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movsd	%xmm1, 8(%rsp)
	call	__isoc99_scanf@PLT
	leaq	tb(%rip), %rdx
	leaq	ta(%rip), %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	db(%rip), %rdx
	movq	%rbp, %rdi
	leaq	da(%rip), %rsi
	call	__isoc99_scanf@PLT
	movsd	ta(%rip), %xmm5
	movsd	tb(%rip), %xmm0
	movsd	8(%rsp), %xmm1
	comisd	%xmm0, %xmm5
	jbe	.L2
	movsd	da(%rip), %xmm2
	movsd	db(%rip), %xmm3
	movsd	%xmm5, tb(%rip)
	movapd	%xmm0, %xmm5
	movsd	%xmm0, ta(%rip)
	movsd	%xmm3, da(%rip)
	movsd	%xmm2, db(%rip)
.L2:
	movsd	T(%rip), %xmm7
	comisd	%xmm7, %xmm5
	jb	.L30
	subsd	%xmm7, %xmm5
	movsd	%xmm5, diff(%rip)
.L6:
	movsd	diff(%rip), %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L30:
	.cfi_restore_state
	movsd	tb(%rip), %xmm9
	comisd	%xmm9, %xmm7
	jnb	.L35
	movsd	da(%rip), %xmm8
	pxor	%xmm11, %xmm11
	movsd	D(%rip), %xmm14
	movsd	.LC1(%rip), %xmm13
	movapd	%xmm8, %xmm4
	movsd	%xmm13, diff(%rip)
	mulsd	%xmm11, %xmm4
	comisd	%xmm4, %xmm14
	jb	.L6
	movsd	db(%rip), %xmm3
	xorl	%esi, %esi
	xorl	%edx, %edx
	movapd	%xmm11, %xmm6
	movq	.LC3(%rip), %xmm10
	movapd	%xmm3, %xmm12
	mulsd	%xmm11, %xmm12
	.p2align 4,,10
	.p2align 3
.L10:
	movapd	%xmm12, %xmm2
	xorl	%eax, %eax
	movapd	%xmm11, %xmm0
	addsd	%xmm4, %xmm2
	comisd	%xmm2, %xmm14
	jb	.L16
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%edx, %ecx
	orl	%eax, %ecx
	je	.L11
	mulsd	%xmm9, %xmm0
	movapd	%xmm5, %xmm1
	movl	$1, %esi
	mulsd	%xmm6, %xmm1
	mulsd	%xmm3, %xmm0
	mulsd	%xmm8, %xmm1
	addsd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movapd	%xmm7, %xmm2
	subsd	%xmm1, %xmm2
	andpd	%xmm10, %xmm2
	minsd	%xmm2, %xmm13
.L11:
	addl	$1, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movapd	%xmm0, %xmm2
	mulsd	%xmm3, %xmm2
	addsd	%xmm4, %xmm2
	comisd	%xmm2, %xmm14
	jnb	.L13
.L16:
	addl	$1, %edx
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%edx, %xmm6
	movapd	%xmm6, %xmm4
	mulsd	%xmm8, %xmm4
	comisd	%xmm4, %xmm14
	jnb	.L10
	testb	%sil, %sil
	je	.L6
	movsd	%xmm13, diff(%rip)
	movsd	%xmm1, temp(%rip)
	jmp	.L6
.L35:
	subsd	%xmm9, %xmm7
	movsd	%xmm7, diff(%rip)
	jmp	.L6
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	diff
	.bss
	.align 8
	.type	diff, @object
	.size	diff, 8
diff:
	.zero	8
	.globl	temp
	.align 8
	.type	temp, @object
	.size	temp, 8
temp:
	.zero	8
	.globl	db
	.align 8
	.type	db, @object
	.size	db, 8
db:
	.zero	8
	.globl	da
	.align 8
	.type	da, @object
	.size	da, 8
da:
	.zero	8
	.globl	tb
	.align 8
	.type	tb, @object
	.size	tb, 8
tb:
	.zero	8
	.globl	ta
	.align 8
	.type	ta, @object
	.size	ta, 8
ta:
	.zero	8
	.globl	D
	.align 8
	.type	D, @object
	.size	D, 8
D:
	.zero	8
	.globl	T
	.align 8
	.type	T, @object
	.size	T, 8
T:
	.zero	8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1079574528
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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
.LC2:
	.string	"%lf %lf"
.LC4:
	.string	"%lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rbp
	leaq	D(%rip), %rdx
	xorl	%eax, %eax
	leaq	T(%rip), %rsi
	movq	%rbp, %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movsd	%xmm1, 8(%rsp)
	call	__isoc99_scanf@PLT
	leaq	tb(%rip), %rdx
	leaq	ta(%rip), %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	db(%rip), %rdx
	movq	%rbp, %rdi
	leaq	da(%rip), %rsi
	call	__isoc99_scanf@PLT
	movsd	ta(%rip), %xmm5
	movsd	tb(%rip), %xmm0
	movsd	8(%rsp), %xmm1
	comisd	%xmm0, %xmm5
	jbe	.L2
	movsd	da(%rip), %xmm2
	movsd	db(%rip), %xmm3
	movsd	%xmm5, tb(%rip)
	movapd	%xmm0, %xmm5
	movsd	%xmm0, ta(%rip)
	movsd	%xmm3, da(%rip)
	movsd	%xmm2, db(%rip)
.L2:
	movsd	T(%rip), %xmm7
	comisd	%xmm7, %xmm5
	jb	.L30
	subsd	%xmm7, %xmm5
	movsd	%xmm5, diff(%rip)
.L6:
	movsd	diff(%rip), %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L30:
	.cfi_restore_state
	movsd	tb(%rip), %xmm9
	comisd	%xmm9, %xmm7
	jnb	.L35
	movsd	da(%rip), %xmm8
	pxor	%xmm11, %xmm11
	movsd	D(%rip), %xmm14
	movsd	.LC1(%rip), %xmm13
	movapd	%xmm8, %xmm4
	movsd	%xmm13, diff(%rip)
	mulsd	%xmm11, %xmm4
	comisd	%xmm4, %xmm14
	jb	.L6
	movsd	db(%rip), %xmm3
	xorl	%esi, %esi
	xorl	%edx, %edx
	movapd	%xmm11, %xmm6
	movq	.LC3(%rip), %xmm10
	movapd	%xmm3, %xmm12
	mulsd	%xmm11, %xmm12
	.p2align 4,,10
	.p2align 3
.L10:
	movapd	%xmm12, %xmm2
	xorl	%eax, %eax
	movapd	%xmm11, %xmm0
	addsd	%xmm4, %xmm2
	comisd	%xmm2, %xmm14
	jb	.L16
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%edx, %ecx
	orl	%eax, %ecx
	je	.L11
	mulsd	%xmm9, %xmm0
	movapd	%xmm5, %xmm1
	movl	$1, %esi
	mulsd	%xmm6, %xmm1
	mulsd	%xmm3, %xmm0
	mulsd	%xmm8, %xmm1
	addsd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movapd	%xmm7, %xmm2
	subsd	%xmm1, %xmm2
	andpd	%xmm10, %xmm2
	minsd	%xmm2, %xmm13
.L11:
	addl	$1, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movapd	%xmm0, %xmm2
	mulsd	%xmm3, %xmm2
	addsd	%xmm4, %xmm2
	comisd	%xmm2, %xmm14
	jnb	.L13
.L16:
	addl	$1, %edx
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%edx, %xmm6
	movapd	%xmm6, %xmm4
	mulsd	%xmm8, %xmm4
	comisd	%xmm4, %xmm14
	jnb	.L10
	testb	%sil, %sil
	je	.L6
	movsd	%xmm13, diff(%rip)
	movsd	%xmm1, temp(%rip)
	jmp	.L6
.L35:
	subsd	%xmm9, %xmm7
	movsd	%xmm7, diff(%rip)
	jmp	.L6
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	diff
	.bss
	.align 8
	.type	diff, @object
	.size	diff, 8
diff:
	.zero	8
	.globl	temp
	.align 8
	.type	temp, @object
	.size	temp, 8
temp:
	.zero	8
	.globl	db
	.align 8
	.type	db, @object
	.size	db, 8
db:
	.zero	8
	.globl	da
	.align 8
	.type	da, @object
	.size	da, 8
da:
	.zero	8
	.globl	tb
	.align 8
	.type	tb, @object
	.size	tb, 8
tb:
	.zero	8
	.globl	ta
	.align 8
	.type	ta, @object
	.size	ta, 8
ta:
	.zero	8
	.globl	D
	.align 8
	.type	D, @object
	.size	D, 8
D:
	.zero	8
	.globl	T
	.align 8
	.type	T, @object
	.size	T, 8
T:
	.zero	8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1079574528
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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:

/*
  AOJ 2656
  Title:Taps
  @kankichi573
*/
#include <stdio.h>
#include <math.h>
#include <float.h>
#define min(x,y) (((x)<(y))?(x):(y))

double T,D,ta,tb,da,db;
double temp;
double diff;

main()
{
  double w;
  int i,j;
  
  scanf("%lf %lf",&T,&D);
  scanf("%lf %lf",&ta,&tb);
  scanf("%lf %lf",&da,&db);

  if(ta>tb)
    w=ta,ta=tb,tb=w,w=da,da=db,db=w;

  if(T<=ta)
    diff=(double)ta-T;
  else if(T>=tb)
    diff=(double)T-tb;
  else
    {
      diff=100.0;
      for(i=0;i*da<=D;i++)
	for(j=0;i*da+j*db<=D;j++)
	  {
	    if(i==0 && j==0)
	      continue;
	    temp=(ta*i*da+tb*j*db)/(i*da+j*db);
	    //printf("%lf %lf %lf \n",i*da,j*db,temp);
	    diff=min(diff,fabs(T-temp));
	  }
    }
  printf("%lf\n",diff);
  return(0);
}
40 1000
80 20
100 100

0.000000

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
  AOJ 2656
  Title:Taps
  @kankichi573
*/
#include <stdio.h>
#include <math.h>
#include <float.h>
#define min(x,y) (((x)<(y))?(x):(y))

double T,D,ta,tb,da,db;
double temp;
double diff;

main()
{
  double w;
  int i,j;
  
  scanf("%lf %lf",&T,&D);
  scanf("%lf %lf",&ta,&tb);
  scanf("%lf %lf",&da,&db);

  if(ta>tb)
    w=ta,ta=tb,tb=w,w=da,da=db,db=w;

  if(T<=ta)
    diff=(double)ta-T;
  else if(T>=tb)
    diff=(double)T-tb;
  else
    {
      diff=100.0;
      for(i=0;i*da<=D;i++)
	for(j=0;i*da+j*db<=D;j++)
	  {
	    if(i==0 && j==0)
	      continue;
	    temp=(ta*i*da+tb*j*db)/(i*da+j*db);
	    //printf("%lf %lf %lf \n",i*da,j*db,temp);
	    diff=min(diff,fabs(T-temp));
	  }
    }
  printf("%lf\n",diff);
  return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	T
	.bss
	.align 8
	.type	T, @object
	.size	T, 8
T:
	.zero	8
	.globl	D
	.align 8
	.type	D, @object
	.size	D, 8
D:
	.zero	8
	.globl	ta
	.align 8
	.type	ta, @object
	.size	ta, 8
ta:
	.zero	8
	.globl	tb
	.align 8
	.type	tb, @object
	.size	tb, 8
tb:
	.zero	8
	.globl	da
	.align 8
	.type	da, @object
	.size	da, 8
da:
	.zero	8
	.globl	db
	.align 8
	.type	db, @object
	.size	db, 8
db:
	.zero	8
	.globl	temp
	.align 8
	.type	temp, @object
	.size	temp, 8
temp:
	.zero	8
	.globl	diff
	.align 8
	.type	diff, @object
	.size	diff, 8
diff:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%lf %lf"
.LC3:
	.string	"%lf\n"
	.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	$16, %rsp
	leaq	D(%rip), %rax
	movq	%rax, %rdx
	leaq	T(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	tb(%rip), %rax
	movq	%rax, %rdx
	leaq	ta(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	db(%rip), %rax
	movq	%rax, %rdx
	leaq	da(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	ta(%rip), %xmm0
	movsd	tb(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L2
	movsd	ta(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	tb(%rip), %xmm0
	movsd	%xmm0, ta(%rip)
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, tb(%rip)
	movsd	da(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	db(%rip), %xmm0
	movsd	%xmm0, da(%rip)
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, db(%rip)
.L2:
	movsd	T(%rip), %xmm1
	movsd	ta(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L23
	movsd	ta(%rip), %xmm0
	movsd	T(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, diff(%rip)
	jmp	.L6
.L23:
	movsd	T(%rip), %xmm0
	movsd	tb(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jb	.L24
	movsd	T(%rip), %xmm0
	movsd	tb(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, diff(%rip)
	jmp	.L6
.L24:
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, diff(%rip)
	movl	$0, -16(%rbp)
	jmp	.L9
.L17:
	movl	$0, -12(%rbp)
	jmp	.L10
.L16:
	cmpl	$0, -16(%rbp)
	jne	.L11
	cmpl	$0, -12(%rbp)
	je	.L26
.L11:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	ta(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	da(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-12(%rbp), %xmm2
	movsd	tb(%rip), %xmm0
	mulsd	%xmm0, %xmm2
	movsd	db(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-16(%rbp), %xmm2
	movsd	da(%rip), %xmm1
	mulsd	%xmm1, %xmm2
	pxor	%xmm3, %xmm3
	cvtsi2sdl	-12(%rbp), %xmm3
	movsd	db(%rip), %xmm1
	mulsd	%xmm3, %xmm1
	addsd	%xmm2, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, temp(%rip)
	movsd	T(%rip), %xmm0
	movsd	temp(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm1, %xmm0
	movsd	diff(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L25
	movsd	diff(%rip), %xmm0
	jmp	.L15
.L25:
	movsd	T(%rip), %xmm0
	movsd	temp(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm1, %xmm0
.L15:
	movsd	%xmm0, diff(%rip)
	jmp	.L12
.L26:
	nop
.L12:
	addl	$1, -12(%rbp)
.L10:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	da(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-12(%rbp), %xmm2
	movsd	db(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movsd	D(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jnb	.L16
	addl	$1, -16(%rbp)
.L9:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	da(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	D(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jnb	.L17
.L6:
	movq	diff(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1079574528
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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
	.globl	T
	.bss
	.align 8
	.type	T, @object
	.size	T, 8
T:
	.zero	8
	.globl	D
	.align 8
	.type	D, @object
	.size	D, 8
D:
	.zero	8
	.globl	ta
	.align 8
	.type	ta, @object
	.size	ta, 8
ta:
	.zero	8
	.globl	tb
	.align 8
	.type	tb, @object
	.size	tb, 8
tb:
	.zero	8
	.globl	da
	.align 8
	.type	da, @object
	.size	da, 8
da:
	.zero	8
	.globl	db
	.align 8
	.type	db, @object
	.size	db, 8
db:
	.zero	8
	.globl	temp
	.align 8
	.type	temp, @object
	.size	temp, 8
temp:
	.zero	8
	.globl	diff
	.align 8
	.type	diff, @object
	.size	diff, 8
diff:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%lf %lf"
.LC3:
	.string	"%lf\n"
	.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	$16, %rsp
	leaq	D(%rip), %rax
	movq	%rax, %rdx
	leaq	T(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	tb(%rip), %rax
	movq	%rax, %rdx
	leaq	ta(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	db(%rip), %rax
	movq	%rax, %rdx
	leaq	da(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	ta(%rip), %xmm0
	movsd	tb(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L2
	movsd	ta(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	tb(%rip), %xmm0
	movsd	%xmm0, ta(%rip)
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, tb(%rip)
	movsd	da(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	db(%rip), %xmm0
	movsd	%xmm0, da(%rip)
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, db(%rip)
.L2:
	movsd	T(%rip), %xmm1
	movsd	ta(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L23
	movsd	ta(%rip), %xmm0
	movsd	T(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, diff(%rip)
	jmp	.L6
.L23:
	movsd	T(%rip), %xmm0
	movsd	tb(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jb	.L24
	movsd	T(%rip), %xmm0
	movsd	tb(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, diff(%rip)
	jmp	.L6
.L24:
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, diff(%rip)
	movl	$0, -16(%rbp)
	jmp	.L9
.L17:
	movl	$0, -12(%rbp)
	jmp	.L10
.L16:
	cmpl	$0, -16(%rbp)
	jne	.L11
	cmpl	$0, -12(%rbp)
	je	.L26
.L11:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	ta(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	da(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-12(%rbp), %xmm2
	movsd	tb(%rip), %xmm0
	mulsd	%xmm0, %xmm2
	movsd	db(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-16(%rbp), %xmm2
	movsd	da(%rip), %xmm1
	mulsd	%xmm1, %xmm2
	pxor	%xmm3, %xmm3
	cvtsi2sdl	-12(%rbp), %xmm3
	movsd	db(%rip), %xmm1
	mulsd	%xmm3, %xmm1
	addsd	%xmm2, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, temp(%rip)
	movsd	T(%rip), %xmm0
	movsd	temp(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm1, %xmm0
	movsd	diff(%rip), %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L25
	movsd	diff(%rip), %xmm0
	jmp	.L15
.L25:
	movsd	T(%rip), %xmm0
	movsd	temp(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm1, %xmm0
.L15:
	movsd	%xmm0, diff(%rip)
	jmp	.L12
.L26:
	nop
.L12:
	addl	$1, -12(%rbp)
.L10:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	da(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-12(%rbp), %xmm2
	movsd	db(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movsd	D(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jnb	.L16
	addl	$1, -16(%rbp)
.L9:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	da(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	D(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jnb	.L17
.L6:
	movq	diff(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1079574528
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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:
