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

```c
#include <stdio.h>
double max(double a, double b){
  if(b<a)return a;
  else return b;
}
int main(){
  double a,b,c,d,e,f;
  scanf("%lf%lf%lf%lf%lf%lf", &a,&b,&c,&d,&e,&f);
  int res2=-1,res1=0;
  double tmp2=0;
  for(int i=0;i<100;i++){
    for(int j=0;j<100;j++){
        double mass = (i*a + j*b)*100;
        if(mass>f)break;
        double max_sugar = (i*a+j*b)*e;

        for(int k=0;k<100;k++){
          for(int l=0;l<100;l++){
            double sug = k*c+l*d;
            double tmp3=tmp2;
            if(sug<=max_sugar &&  mass+sug <= f){
              tmp2 = max(tmp2,(sug*100/(mass+sug)));
            }
            if(tmp3!=tmp2){
              res1 = mass+sug;
              res2 = sug;
            }
          }
        }
    }
  }
  printf("%d %d\n", (int)res1,(int)res2);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movsd	%xmm1, -16(%rbp)
	movsd	-8(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L6
	movsd	-8(%rbp), %xmm0
	jmp	.L4
.L6:
	movsd	-16(%rbp), %xmm0
.L4:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%lf%lf%lf%lf%lf%lf"
.LC3:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %r8
	leaq	-72(%rbp), %rdi
	leaq	-80(%rbp), %rcx
	leaq	-88(%rbp), %rdx
	leaq	-96(%rbp), %rax
	subq	$8, %rsp
	leaq	-56(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	$-1, -120(%rbp)
	movl	$0, -116(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	$0, -112(%rbp)
	jmp	.L8
.L23:
	movl	$0, -108(%rbp)
	jmp	.L9
.L22:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-112(%rbp), %xmm1
	movsd	-96(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-108(%rbp), %xmm2
	movsd	-88(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -40(%rbp)
	movsd	-56(%rbp), %xmm1
	movsd	-40(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	ja	.L29
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-112(%rbp), %xmm1
	movsd	-96(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-108(%rbp), %xmm2
	movsd	-88(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movsd	-64(%rbp), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L13
.L21:
	movl	$0, -100(%rbp)
	jmp	.L14
.L20:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-104(%rbp), %xmm1
	movsd	-80(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-100(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-48(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-32(%rbp), %xmm0
	comisd	-24(%rbp), %xmm0
	jb	.L15
	movsd	-40(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	addsd	-24(%rbp), %xmm1
	movsd	-56(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L15
	movsd	-24(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	-40(%rbp), %xmm1
	addsd	-24(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movq	-48(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	max
	movq	%xmm0, %rax
	movq	%rax, -48(%rbp)
.L15:
	movsd	-16(%rbp), %xmm0
	ucomisd	-48(%rbp), %xmm0
	jp	.L28
	movsd	-16(%rbp), %xmm0
	ucomisd	-48(%rbp), %xmm0
	je	.L18
.L28:
	movsd	-40(%rbp), %xmm0
	addsd	-24(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -116(%rbp)
	movsd	-24(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -120(%rbp)
.L18:
	addl	$1, -100(%rbp)
.L14:
	cmpl	$99, -100(%rbp)
	jle	.L20
	addl	$1, -104(%rbp)
.L13:
	cmpl	$99, -104(%rbp)
	jle	.L21
	addl	$1, -108(%rbp)
.L9:
	cmpl	$99, -108(%rbp)
	jle	.L22
	jmp	.L12
.L29:
	nop
.L12:
	addl	$1, -112(%rbp)
.L8:
	cmpl	$99, -112(%rbp)
	jle	.L23
	movl	-120(%rbp), %edx
	movl	-116(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1079574528
	.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
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB23:
	.cfi_startproc
	endbr64
	maxsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE23:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lf%lf%lf%lf%lf%lf"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$72, %rsp
	.cfi_def_cfa_offset 80
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 88
	leaq	56(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 96
	xorl	%eax, %eax
	leaq	56(%rsp), %r9
	leaq	48(%rsp), %r8
	call	__isoc99_scanf@PLT
	movsd	24(%rsp), %xmm13
	xorl	%edi, %edi
	movsd	.LC2(%rip), %xmm8
	movsd	64(%rsp), %xmm7
	movsd	32(%rsp), %xmm12
	pxor	%xmm1, %xmm1
	movl	$-1, %ecx
	movsd	56(%rsp), %xmm11
	movsd	40(%rsp), %xmm9
	movsd	48(%rsp), %xmm6
	popq	%rax
	.cfi_def_cfa_offset 88
	popq	%rdx
	.cfi_def_cfa_offset 80
	xorl	%edx, %edx
.L5:
	pxor	%xmm10, %xmm10
	xorl	%r8d, %r8d
	cvtsi2sdl	%edi, %xmm10
	mulsd	%xmm13, %xmm10
.L15:
	pxor	%xmm14, %xmm14
	cvtsi2sdl	%r8d, %xmm14
	mulsd	%xmm12, %xmm14
	addsd	%xmm10, %xmm14
	movapd	%xmm14, %xmm5
	mulsd	%xmm8, %xmm5
	comisd	%xmm7, %xmm5
	ja	.L6
	mulsd	%xmm11, %xmm14
	xorl	%esi, %esi
.L7:
	pxor	%xmm4, %xmm4
	movapd	%xmm1, %xmm2
	xorl	%eax, %eax
	cvtsi2sdl	%esi, %xmm4
	mulsd	%xmm9, %xmm4
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	movapd	%xmm1, %xmm2
.L13:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm6, %xmm0
	addsd	%xmm4, %xmm0
	comisd	%xmm0, %xmm14
	jb	.L8
	movapd	%xmm5, %xmm3
	addsd	%xmm0, %xmm3
	comisd	%xmm3, %xmm7
	jb	.L8
	movapd	%xmm0, %xmm1
	mulsd	%xmm8, %xmm1
	divsd	%xmm3, %xmm1
	movapd	%xmm2, %xmm3
	maxsd	%xmm1, %xmm3
	movapd	%xmm3, %xmm1
.L8:
	ucomisd	%xmm2, %xmm1
	jp	.L24
	je	.L11
.L24:
	movapd	%xmm5, %xmm2
	cvttsd2sil	%xmm0, %ecx
	addsd	%xmm0, %xmm2
	cvttsd2sil	%xmm2, %edx
.L11:
	addl	$1, %eax
	cmpl	$100, %eax
	jne	.L21
	addl	$1, %esi
	cmpl	$100, %esi
	jne	.L7
	addl	$1, %r8d
	cmpl	$100, %r8d
	jne	.L15
.L6:
	addl	$1, %edi
	cmpl	$100, %edi
	jne	.L5
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1079574528
	.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
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB23:
	.cfi_startproc
	endbr64
	maxsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE23:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lf%lf%lf%lf%lf%lf"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$72, %rsp
	.cfi_def_cfa_offset 80
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 88
	leaq	56(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 96
	xorl	%eax, %eax
	leaq	56(%rsp), %r9
	leaq	48(%rsp), %r8
	call	__isoc99_scanf@PLT
	movsd	24(%rsp), %xmm13
	xorl	%edi, %edi
	movsd	.LC2(%rip), %xmm8
	movsd	64(%rsp), %xmm7
	movsd	32(%rsp), %xmm12
	pxor	%xmm1, %xmm1
	movl	$-1, %ecx
	movsd	56(%rsp), %xmm11
	movsd	40(%rsp), %xmm9
	movsd	48(%rsp), %xmm6
	popq	%rax
	.cfi_def_cfa_offset 88
	popq	%rdx
	.cfi_def_cfa_offset 80
	xorl	%edx, %edx
.L5:
	pxor	%xmm10, %xmm10
	xorl	%r8d, %r8d
	cvtsi2sdl	%edi, %xmm10
	mulsd	%xmm13, %xmm10
.L15:
	pxor	%xmm14, %xmm14
	cvtsi2sdl	%r8d, %xmm14
	mulsd	%xmm12, %xmm14
	addsd	%xmm10, %xmm14
	movapd	%xmm14, %xmm5
	mulsd	%xmm8, %xmm5
	comisd	%xmm7, %xmm5
	ja	.L6
	mulsd	%xmm11, %xmm14
	xorl	%esi, %esi
.L7:
	pxor	%xmm4, %xmm4
	movapd	%xmm1, %xmm2
	xorl	%eax, %eax
	cvtsi2sdl	%esi, %xmm4
	mulsd	%xmm9, %xmm4
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	movapd	%xmm1, %xmm2
.L13:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm6, %xmm0
	addsd	%xmm4, %xmm0
	comisd	%xmm0, %xmm14
	jb	.L8
	movapd	%xmm5, %xmm3
	addsd	%xmm0, %xmm3
	comisd	%xmm3, %xmm7
	jb	.L8
	movapd	%xmm0, %xmm1
	mulsd	%xmm8, %xmm1
	divsd	%xmm3, %xmm1
	movapd	%xmm2, %xmm3
	maxsd	%xmm1, %xmm3
	movapd	%xmm3, %xmm1
.L8:
	ucomisd	%xmm2, %xmm1
	jp	.L24
	je	.L11
.L24:
	movapd	%xmm5, %xmm2
	cvttsd2sil	%xmm0, %ecx
	addsd	%xmm0, %xmm2
	cvttsd2sil	%xmm2, %edx
.L11:
	addl	$1, %eax
	cmpl	$100, %eax
	jne	.L21
	addl	$1, %esi
	cmpl	$100, %esi
	jne	.L7
	addl	$1, %r8d
	cmpl	$100, %r8d
	jne	.L15
.L6:
	addl	$1, %edi
	cmpl	$100, %edi
	jne	.L5
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1079574528
	.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:

#include <stdio.h>
double max(double a, double b){
  if(b<a)return a;
  else return b;
}
int main(){
  double a,b,c,d,e,f;
  scanf("%lf%lf%lf%lf%lf%lf", &a,&b,&c,&d,&e,&f);
  int res2=-1,res1=0;
  double tmp2=0;
  for(int i=0;i<100;i++){
    for(int j=0;j<100;j++){
        double mass = (i*a + j*b)*100;
        if(mass>f)break;
        double max_sugar = (i*a+j*b)*e;

        for(int k=0;k<100;k++){
          for(int l=0;l<100;l++){
            double sug = k*c+l*d;
            double tmp3=tmp2;
            if(sug<=max_sugar &&  mass+sug <= f){
              tmp2 = max(tmp2,(sug*100/(mass+sug)));
            }
            if(tmp3!=tmp2){
              res1 = mass+sug;
              res2 = sug;
            }
          }
        }
    }
  }
  printf("%d %d\n", (int)res1,(int)res2);
  return 0;
}

1 2 10 20 15 179
 26 19 22 26 55 2802
 1 2 5 20 15 179
 26 29 22 26 55 2802
 1 1 5 20 27 179
 17 19 22 47 55 2802
 14 29 22 26 55 2802
 1 3 10 20 15 243
 5 31 22 26 55 2802
 2 1 1 20 17 179

110 10
 2802 902
 115 15
 2802 202
 125 25
 2635 935
 2170 770
 230 30
 1550 550
 117 17

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

```c
#include <stdio.h>
double max(double a, double b){
  if(b<a)return a;
  else return b;
}
int main(){
  double a,b,c,d,e,f;
  scanf("%lf%lf%lf%lf%lf%lf", &a,&b,&c,&d,&e,&f);
  int res2=-1,res1=0;
  double tmp2=0;
  for(int i=0;i<100;i++){
    for(int j=0;j<100;j++){
        double mass = (i*a + j*b)*100;
        if(mass>f)break;
        double max_sugar = (i*a+j*b)*e;

        for(int k=0;k<100;k++){
          for(int l=0;l<100;l++){
            double sug = k*c+l*d;
            double tmp3=tmp2;
            if(sug<=max_sugar &&  mass+sug <= f){
              tmp2 = max(tmp2,(sug*100/(mass+sug)));
            }
            if(tmp3!=tmp2){
              res1 = mass+sug;
              res2 = sug;
            }
          }
        }
    }
  }
  printf("%d %d\n", (int)res1,(int)res2);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movsd	%xmm1, -16(%rbp)
	movsd	-8(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L6
	movsd	-8(%rbp), %xmm0
	jmp	.L4
.L6:
	movsd	-16(%rbp), %xmm0
.L4:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%lf%lf%lf%lf%lf%lf"
.LC3:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %r8
	leaq	-72(%rbp), %rdi
	leaq	-80(%rbp), %rcx
	leaq	-88(%rbp), %rdx
	leaq	-96(%rbp), %rax
	subq	$8, %rsp
	leaq	-56(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	$-1, -120(%rbp)
	movl	$0, -116(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	$0, -112(%rbp)
	jmp	.L8
.L23:
	movl	$0, -108(%rbp)
	jmp	.L9
.L22:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-112(%rbp), %xmm1
	movsd	-96(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-108(%rbp), %xmm2
	movsd	-88(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -40(%rbp)
	movsd	-56(%rbp), %xmm1
	movsd	-40(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	ja	.L29
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-112(%rbp), %xmm1
	movsd	-96(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-108(%rbp), %xmm2
	movsd	-88(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movsd	-64(%rbp), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L13
.L21:
	movl	$0, -100(%rbp)
	jmp	.L14
.L20:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-104(%rbp), %xmm1
	movsd	-80(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-100(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-48(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-32(%rbp), %xmm0
	comisd	-24(%rbp), %xmm0
	jb	.L15
	movsd	-40(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	addsd	-24(%rbp), %xmm1
	movsd	-56(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L15
	movsd	-24(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	-40(%rbp), %xmm1
	addsd	-24(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movq	-48(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	max
	movq	%xmm0, %rax
	movq	%rax, -48(%rbp)
.L15:
	movsd	-16(%rbp), %xmm0
	ucomisd	-48(%rbp), %xmm0
	jp	.L28
	movsd	-16(%rbp), %xmm0
	ucomisd	-48(%rbp), %xmm0
	je	.L18
.L28:
	movsd	-40(%rbp), %xmm0
	addsd	-24(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -116(%rbp)
	movsd	-24(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -120(%rbp)
.L18:
	addl	$1, -100(%rbp)
.L14:
	cmpl	$99, -100(%rbp)
	jle	.L20
	addl	$1, -104(%rbp)
.L13:
	cmpl	$99, -104(%rbp)
	jle	.L21
	addl	$1, -108(%rbp)
.L9:
	cmpl	$99, -108(%rbp)
	jle	.L22
	jmp	.L12
.L29:
	nop
.L12:
	addl	$1, -112(%rbp)
.L8:
	cmpl	$99, -112(%rbp)
	jle	.L23
	movl	-120(%rbp), %edx
	movl	-116(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1079574528
	.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	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movsd	%xmm1, -16(%rbp)
	movsd	-8(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L6
	movsd	-8(%rbp), %xmm0
	jmp	.L4
.L6:
	movsd	-16(%rbp), %xmm0
.L4:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%lf%lf%lf%lf%lf%lf"
.LC3:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %r8
	leaq	-72(%rbp), %rdi
	leaq	-80(%rbp), %rcx
	leaq	-88(%rbp), %rdx
	leaq	-96(%rbp), %rax
	subq	$8, %rsp
	leaq	-56(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	$-1, -120(%rbp)
	movl	$0, -116(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	$0, -112(%rbp)
	jmp	.L8
.L23:
	movl	$0, -108(%rbp)
	jmp	.L9
.L22:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-112(%rbp), %xmm1
	movsd	-96(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-108(%rbp), %xmm2
	movsd	-88(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -40(%rbp)
	movsd	-56(%rbp), %xmm1
	movsd	-40(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	ja	.L29
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-112(%rbp), %xmm1
	movsd	-96(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-108(%rbp), %xmm2
	movsd	-88(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movsd	-64(%rbp), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L13
.L21:
	movl	$0, -100(%rbp)
	jmp	.L14
.L20:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-104(%rbp), %xmm1
	movsd	-80(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-100(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-48(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-32(%rbp), %xmm0
	comisd	-24(%rbp), %xmm0
	jb	.L15
	movsd	-40(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	addsd	-24(%rbp), %xmm1
	movsd	-56(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L15
	movsd	-24(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	-40(%rbp), %xmm1
	addsd	-24(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movq	-48(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	max
	movq	%xmm0, %rax
	movq	%rax, -48(%rbp)
.L15:
	movsd	-16(%rbp), %xmm0
	ucomisd	-48(%rbp), %xmm0
	jp	.L28
	movsd	-16(%rbp), %xmm0
	ucomisd	-48(%rbp), %xmm0
	je	.L18
.L28:
	movsd	-40(%rbp), %xmm0
	addsd	-24(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -116(%rbp)
	movsd	-24(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -120(%rbp)
.L18:
	addl	$1, -100(%rbp)
.L14:
	cmpl	$99, -100(%rbp)
	jle	.L20
	addl	$1, -104(%rbp)
.L13:
	cmpl	$99, -104(%rbp)
	jle	.L21
	addl	$1, -108(%rbp)
.L9:
	cmpl	$99, -108(%rbp)
	jle	.L22
	jmp	.L12
.L29:
	nop
.L12:
	addl	$1, -112(%rbp)
.L8:
	cmpl	$99, -112(%rbp)
	jle	.L23
	movl	-120(%rbp), %edx
	movl	-116(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1079574528
	.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:
