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>
#include<stdlib.h>
double res=100000000.0,t;
int T,D,t1,t2,d1,d2,p1,p2;
int main()
{
	scanf("%d%d%d%d%d%d",&T,&D,&t1,&t2,&d1,&d2);
	for(p1=0;p1<=D;p1+=d1)
		for(p2=0;p2<=D-p1;p2+=d2)
		{
			if(p1+p2==0)continue;
			t=(1.0*(t1*p1)+(t2*p2))/(p1+p2);
			t-=T;
			if(t<0)t*=-1;
			res=(res-t>0)?t:res;
		}
	printf("%.10f\n",res);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d"
.LC3:
	.string	"%.10f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	d2(%rip), %rax
	leaq	D(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	d1(%rip), %r9
	leaq	t2(%rip), %r8
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	t1(%rip), %rcx
	leaq	T(%rip), %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	D(%rip), %ebp
	popq	%rax
	.cfi_def_cfa_offset 56
	movl	$0, p1(%rip)
	movsd	res(%rip), %xmm6
	popq	%rdx
	.cfi_def_cfa_offset 48
	testl	%ebp, %ebp
	js	.L3
	movl	d2(%rip), %esi
	movl	d1(%rip), %ebx
	movl	%ebp, %edi
	xorl	%r9d, %r9d
	movl	t1(%rip), %r12d
	movl	t2(%rip), %r8d
	xorl	%r13d, %r13d
	xorl	%r11d, %r11d
	movsd	res(%rip), %xmm6
	movl	T(%rip), %r10d
	pxor	%xmm3, %xmm3
	imull	%ebx, %r12d
	movsd	t(%rip), %xmm0
	movq	.LC2(%rip), %xmm5
	imull	%esi, %r8d
	movapd	%xmm6, %xmm2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r11d, %eax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%eax, %eax
	je	.L4
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%r9d, %xmm1
	cvtsi2sdl	%ecx, %xmm4
	movapd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	addsd	%xmm4, %xmm0
	divsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r10d, %xmm1
	subsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm3
	jbe	.L5
	xorpd	%xmm5, %xmm0
.L5:
	movapd	%xmm2, %xmm4
	movapd	%xmm3, %xmm1
	movl	$1, %r13d
	subsd	%xmm0, %xmm4
	cmpnltsd	%xmm4, %xmm1
	andpd	%xmm1, %xmm2
	andnpd	%xmm0, %xmm1
	orpd	%xmm1, %xmm2
.L4:
	addl	%esi, %edx
	addl	%esi, %eax
	addl	%r8d, %ecx
	cmpl	%edi, %edx
	jle	.L8
	addl	%ebx, %r11d
	subl	%ebx, %edi
	addl	%r12d, %r9d
	cmpl	%ebp, %r11d
	jle	.L9
	movl	%edx, p2(%rip)
	movl	%r11d, p1(%rip)
	testb	%r13b, %r13b
	je	.L3
	movsd	%xmm2, res(%rip)
	movapd	%xmm2, %xmm6
	movsd	%xmm0, t(%rip)
.L3:
	movapd	%xmm6, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	p2
	.bss
	.align 4
	.type	p2, @object
	.size	p2, 4
p2:
	.zero	4
	.globl	p1
	.align 4
	.type	p1, @object
	.size	p1, 4
p1:
	.zero	4
	.globl	d2
	.align 4
	.type	d2, @object
	.size	d2, 4
d2:
	.zero	4
	.globl	d1
	.align 4
	.type	d1, @object
	.size	d1, 4
d1:
	.zero	4
	.globl	t2
	.align 4
	.type	t2, @object
	.size	t2, 4
t2:
	.zero	4
	.globl	t1
	.align 4
	.type	t1, @object
	.size	t1, 4
t1:
	.zero	4
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.zero	8
	.globl	res
	.data
	.align 8
	.type	res, @object
	.size	res, 8
res:
	.long	0
	.long	1100470148
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-2147483648
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d"
.LC3:
	.string	"%.10f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	d2(%rip), %rax
	leaq	D(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	d1(%rip), %r9
	leaq	t2(%rip), %r8
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	t1(%rip), %rcx
	leaq	T(%rip), %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	D(%rip), %ebp
	popq	%rax
	.cfi_def_cfa_offset 56
	movl	$0, p1(%rip)
	movsd	res(%rip), %xmm6
	popq	%rdx
	.cfi_def_cfa_offset 48
	testl	%ebp, %ebp
	js	.L3
	movl	d2(%rip), %esi
	movl	d1(%rip), %ebx
	movl	%ebp, %edi
	xorl	%r9d, %r9d
	movl	t1(%rip), %r12d
	movl	t2(%rip), %r8d
	xorl	%r13d, %r13d
	xorl	%r11d, %r11d
	movsd	res(%rip), %xmm6
	movl	T(%rip), %r10d
	pxor	%xmm3, %xmm3
	imull	%ebx, %r12d
	movsd	t(%rip), %xmm0
	movq	.LC2(%rip), %xmm5
	imull	%esi, %r8d
	movapd	%xmm6, %xmm2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r11d, %eax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%eax, %eax
	je	.L4
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%r9d, %xmm1
	cvtsi2sdl	%ecx, %xmm4
	movapd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	addsd	%xmm4, %xmm0
	divsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r10d, %xmm1
	subsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm3
	jbe	.L5
	xorpd	%xmm5, %xmm0
.L5:
	movapd	%xmm2, %xmm4
	movapd	%xmm3, %xmm1
	movl	$1, %r13d
	subsd	%xmm0, %xmm4
	cmpnltsd	%xmm4, %xmm1
	andpd	%xmm1, %xmm2
	andnpd	%xmm0, %xmm1
	orpd	%xmm1, %xmm2
.L4:
	addl	%esi, %edx
	addl	%esi, %eax
	addl	%r8d, %ecx
	cmpl	%edi, %edx
	jle	.L8
	addl	%ebx, %r11d
	subl	%ebx, %edi
	addl	%r12d, %r9d
	cmpl	%ebp, %r11d
	jle	.L9
	movl	%edx, p2(%rip)
	movl	%r11d, p1(%rip)
	testb	%r13b, %r13b
	je	.L3
	movsd	%xmm2, res(%rip)
	movapd	%xmm2, %xmm6
	movsd	%xmm0, t(%rip)
.L3:
	movapd	%xmm6, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	p2
	.bss
	.align 4
	.type	p2, @object
	.size	p2, 4
p2:
	.zero	4
	.globl	p1
	.align 4
	.type	p1, @object
	.size	p1, 4
p1:
	.zero	4
	.globl	d2
	.align 4
	.type	d2, @object
	.size	d2, 4
d2:
	.zero	4
	.globl	d1
	.align 4
	.type	d1, @object
	.size	d1, 4
d1:
	.zero	4
	.globl	t2
	.align 4
	.type	t2, @object
	.size	t2, 4
t2:
	.zero	4
	.globl	t1
	.align 4
	.type	t1, @object
	.size	t1, 4
t1:
	.zero	4
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.zero	8
	.globl	res
	.data
	.align 8
	.type	res, @object
	.size	res, 8
res:
	.long	0
	.long	1100470148
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-2147483648
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d"
.LC3:
	.string	"%.10f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	d2(%rip), %rax
	leaq	D(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	d1(%rip), %r9
	leaq	t2(%rip), %r8
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	t1(%rip), %rcx
	leaq	T(%rip), %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	D(%rip), %ebp
	popq	%rax
	.cfi_def_cfa_offset 56
	movl	$0, p1(%rip)
	movsd	res(%rip), %xmm6
	popq	%rdx
	.cfi_def_cfa_offset 48
	testl	%ebp, %ebp
	js	.L3
	movl	d2(%rip), %esi
	movl	d1(%rip), %ebx
	movl	%ebp, %edi
	xorl	%r9d, %r9d
	movl	t1(%rip), %r12d
	movl	t2(%rip), %r8d
	xorl	%r13d, %r13d
	xorl	%r11d, %r11d
	movsd	res(%rip), %xmm6
	movl	T(%rip), %r10d
	pxor	%xmm3, %xmm3
	imull	%ebx, %r12d
	movsd	t(%rip), %xmm0
	movq	.LC2(%rip), %xmm5
	imull	%esi, %r8d
	movapd	%xmm6, %xmm2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r11d, %eax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%eax, %eax
	je	.L4
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%r9d, %xmm1
	cvtsi2sdl	%ecx, %xmm4
	movapd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	addsd	%xmm4, %xmm0
	divsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r10d, %xmm1
	subsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm3
	jbe	.L5
	xorpd	%xmm5, %xmm0
.L5:
	movapd	%xmm2, %xmm4
	movapd	%xmm3, %xmm1
	movl	$1, %r13d
	subsd	%xmm0, %xmm4
	cmpnltsd	%xmm4, %xmm1
	andpd	%xmm1, %xmm2
	andnpd	%xmm0, %xmm1
	orpd	%xmm1, %xmm2
.L4:
	addl	%esi, %edx
	addl	%esi, %eax
	addl	%r8d, %ecx
	cmpl	%edi, %edx
	jle	.L8
	addl	%ebx, %r11d
	subl	%ebx, %edi
	addl	%r12d, %r9d
	cmpl	%ebp, %r11d
	jle	.L9
	movl	%edx, p2(%rip)
	movl	%r11d, p1(%rip)
	testb	%r13b, %r13b
	je	.L3
	movsd	%xmm2, res(%rip)
	movapd	%xmm2, %xmm6
	movsd	%xmm0, t(%rip)
.L3:
	movapd	%xmm6, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	p2
	.bss
	.align 4
	.type	p2, @object
	.size	p2, 4
p2:
	.zero	4
	.globl	p1
	.align 4
	.type	p1, @object
	.size	p1, 4
p1:
	.zero	4
	.globl	d2
	.align 4
	.type	d2, @object
	.size	d2, 4
d2:
	.zero	4
	.globl	d1
	.align 4
	.type	d1, @object
	.size	d1, 4
d1:
	.zero	4
	.globl	t2
	.align 4
	.type	t2, @object
	.size	t2, 4
t2:
	.zero	4
	.globl	t1
	.align 4
	.type	t1, @object
	.size	t1, 4
t1:
	.zero	4
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.zero	8
	.globl	res
	.data
	.align 8
	.type	res, @object
	.size	res, 8
res:
	.long	0
	.long	1100470148
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-2147483648
	.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:
```
```c
#include<stdio.h>
#include<stdlib.h>
double res=100000000.0,t;
int T,D,t1,t2,d1,d2,p1,p2;
int main()
{
	scanf("%d%d%d%d%d%d",&T,&D,&t1,&t2,&d1,&d2);
	for(p1=0;p1<=D;p1+=d1)
		for(p2=0;p2<=D-p1;p2+=d2)
		{
			if(p1+p2==0)continue;
			t=(1.0*(t1*p1)+(t2*p2))/(p1+p2);
			t-=T;
			if(t<0)t*=-1;
			res=(res-t>0)?t:res;
		}
	printf("%.10f\n",res);
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>
double res=100000000.0,t;
int T,D,t1,t2,d1,d2,p1,p2;
int main()
{
	scanf("%d%d%d%d%d%d",&T,&D,&t1,&t2,&d1,&d2);
	for(p1=0;p1<=D;p1+=d1)
		for(p2=0;p2<=D-p1;p2+=d2)
		{
			if(p1+p2==0)continue;
			t=(1.0*(t1*p1)+(t2*p2))/(p1+p2);
			t-=T;
			if(t<0)t*=-1;
			res=(res-t>0)?t:res;
		}
	printf("%.10f\n",res);
	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:

40 1000
80 20
100 100

0.0000000000

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>
#include<stdlib.h>
double res=100000000.0,t;
int T,D,t1,t2,d1,d2,p1,p2;
int main()
{
	scanf("%d%d%d%d%d%d",&T,&D,&t1,&t2,&d1,&d2);
	for(p1=0;p1<=D;p1+=d1)
		for(p2=0;p2<=D-p1;p2+=d2)
		{
			if(p1+p2==0)continue;
			t=(1.0*(t1*p1)+(t2*p2))/(p1+p2);
			t-=T;
			if(t<0)t*=-1;
			res=(res-t>0)?t:res;
		}
	printf("%.10f\n",res);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d"
.LC3:
	.string	"%.10f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	d2(%rip), %rax
	leaq	D(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	d1(%rip), %r9
	leaq	t2(%rip), %r8
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	t1(%rip), %rcx
	leaq	T(%rip), %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	D(%rip), %ebp
	popq	%rax
	.cfi_def_cfa_offset 56
	movl	$0, p1(%rip)
	movsd	res(%rip), %xmm6
	popq	%rdx
	.cfi_def_cfa_offset 48
	testl	%ebp, %ebp
	js	.L3
	movl	d2(%rip), %esi
	movl	d1(%rip), %ebx
	movl	%ebp, %edi
	xorl	%r9d, %r9d
	movl	t1(%rip), %r12d
	movl	t2(%rip), %r8d
	xorl	%r13d, %r13d
	xorl	%r11d, %r11d
	movsd	res(%rip), %xmm6
	movl	T(%rip), %r10d
	pxor	%xmm3, %xmm3
	imull	%ebx, %r12d
	movsd	t(%rip), %xmm0
	movq	.LC2(%rip), %xmm5
	imull	%esi, %r8d
	movapd	%xmm6, %xmm2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r11d, %eax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%eax, %eax
	je	.L4
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%r9d, %xmm1
	cvtsi2sdl	%ecx, %xmm4
	movapd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	addsd	%xmm4, %xmm0
	divsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r10d, %xmm1
	subsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm3
	jbe	.L5
	xorpd	%xmm5, %xmm0
.L5:
	movapd	%xmm2, %xmm4
	movapd	%xmm3, %xmm1
	movl	$1, %r13d
	subsd	%xmm0, %xmm4
	cmpnltsd	%xmm4, %xmm1
	andpd	%xmm1, %xmm2
	andnpd	%xmm0, %xmm1
	orpd	%xmm1, %xmm2
.L4:
	addl	%esi, %edx
	addl	%esi, %eax
	addl	%r8d, %ecx
	cmpl	%edi, %edx
	jle	.L8
	addl	%ebx, %r11d
	subl	%ebx, %edi
	addl	%r12d, %r9d
	cmpl	%ebp, %r11d
	jle	.L9
	movl	%edx, p2(%rip)
	movl	%r11d, p1(%rip)
	testb	%r13b, %r13b
	je	.L3
	movsd	%xmm2, res(%rip)
	movapd	%xmm2, %xmm6
	movsd	%xmm0, t(%rip)
.L3:
	movapd	%xmm6, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	p2
	.bss
	.align 4
	.type	p2, @object
	.size	p2, 4
p2:
	.zero	4
	.globl	p1
	.align 4
	.type	p1, @object
	.size	p1, 4
p1:
	.zero	4
	.globl	d2
	.align 4
	.type	d2, @object
	.size	d2, 4
d2:
	.zero	4
	.globl	d1
	.align 4
	.type	d1, @object
	.size	d1, 4
d1:
	.zero	4
	.globl	t2
	.align 4
	.type	t2, @object
	.size	t2, 4
t2:
	.zero	4
	.globl	t1
	.align 4
	.type	t1, @object
	.size	t1, 4
t1:
	.zero	4
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.zero	8
	.globl	res
	.data
	.align 8
	.type	res, @object
	.size	res, 8
res:
	.long	0
	.long	1100470148
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-2147483648
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d"
.LC3:
	.string	"%.10f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	d2(%rip), %rax
	leaq	D(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	d1(%rip), %r9
	leaq	t2(%rip), %r8
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	t1(%rip), %rcx
	leaq	T(%rip), %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	D(%rip), %ebp
	popq	%rax
	.cfi_def_cfa_offset 56
	movl	$0, p1(%rip)
	movsd	res(%rip), %xmm6
	popq	%rdx
	.cfi_def_cfa_offset 48
	testl	%ebp, %ebp
	js	.L3
	movl	d2(%rip), %esi
	movl	d1(%rip), %ebx
	movl	%ebp, %edi
	xorl	%r9d, %r9d
	movl	t1(%rip), %r12d
	movl	t2(%rip), %r8d
	xorl	%r13d, %r13d
	xorl	%r11d, %r11d
	movsd	res(%rip), %xmm6
	movl	T(%rip), %r10d
	pxor	%xmm3, %xmm3
	imull	%ebx, %r12d
	movsd	t(%rip), %xmm0
	movq	.LC2(%rip), %xmm5
	imull	%esi, %r8d
	movapd	%xmm6, %xmm2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r11d, %eax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%eax, %eax
	je	.L4
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%r9d, %xmm1
	cvtsi2sdl	%ecx, %xmm4
	movapd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	addsd	%xmm4, %xmm0
	divsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r10d, %xmm1
	subsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm3
	jbe	.L5
	xorpd	%xmm5, %xmm0
.L5:
	movapd	%xmm2, %xmm4
	movapd	%xmm3, %xmm1
	movl	$1, %r13d
	subsd	%xmm0, %xmm4
	cmpnltsd	%xmm4, %xmm1
	andpd	%xmm1, %xmm2
	andnpd	%xmm0, %xmm1
	orpd	%xmm1, %xmm2
.L4:
	addl	%esi, %edx
	addl	%esi, %eax
	addl	%r8d, %ecx
	cmpl	%edi, %edx
	jle	.L8
	addl	%ebx, %r11d
	subl	%ebx, %edi
	addl	%r12d, %r9d
	cmpl	%ebp, %r11d
	jle	.L9
	movl	%edx, p2(%rip)
	movl	%r11d, p1(%rip)
	testb	%r13b, %r13b
	je	.L3
	movsd	%xmm2, res(%rip)
	movapd	%xmm2, %xmm6
	movsd	%xmm0, t(%rip)
.L3:
	movapd	%xmm6, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	p2
	.bss
	.align 4
	.type	p2, @object
	.size	p2, 4
p2:
	.zero	4
	.globl	p1
	.align 4
	.type	p1, @object
	.size	p1, 4
p1:
	.zero	4
	.globl	d2
	.align 4
	.type	d2, @object
	.size	d2, 4
d2:
	.zero	4
	.globl	d1
	.align 4
	.type	d1, @object
	.size	d1, 4
d1:
	.zero	4
	.globl	t2
	.align 4
	.type	t2, @object
	.size	t2, 4
t2:
	.zero	4
	.globl	t1
	.align 4
	.type	t1, @object
	.size	t1, 4
t1:
	.zero	4
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.zero	8
	.globl	res
	.data
	.align 8
	.type	res, @object
	.size	res, 8
res:
	.long	0
	.long	1100470148
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-2147483648
	.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:
```