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>


int main(void){
  int q;
  scanf("%d",&q);

  double x1,y1,x2,y2,x3,y3,x4,y4;
  double x,y;//直線の交点
  double det;//行列式
  for(int i=0;i<q;i++){
    scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4);
    det=(x2-x1)*(y4-y3)-(y2-y1)*(x4-x3);
    x=((x3-x4)*(x1*y2-x2*y1)+(x2-x1)*(x3*y4-x4*y3))/det;
    y=((y3-y4)*(x1*y2-x2*y1)+(y2-y1)*(x3*y4-x4*y3))/det;
    printf("%.16lf %.16lf\n",x,y);
  }
  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.align 8
.LC1:
	.string	"%lf %lf %lf %lf %lf %lf %lf %lf"
.LC2:
	.string	"%.16lf %.16lf\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	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100(%rbp)
	jmp	.L2
.L3:
	leaq	-64(%rbp), %r8
	leaq	-72(%rbp), %rdi
	leaq	-80(%rbp), %rcx
	leaq	-88(%rbp), %rdx
	leaq	-96(%rbp), %rax
	subq	$8, %rsp
	leaq	-40(%rbp), %rsi
	pushq	%rsi
	leaq	-48(%rbp), %rsi
	pushq	%rsi
	leaq	-56(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$32, %rsp
	movsd	-80(%rbp), %xmm0
	movsd	-96(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	-40(%rbp), %xmm0
	movsd	-56(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	-72(%rbp), %xmm1
	movsd	-88(%rbp), %xmm3
	subsd	%xmm3, %xmm1
	movapd	%xmm1, %xmm2
	movsd	-48(%rbp), %xmm1
	movsd	-64(%rbp), %xmm3
	subsd	%xmm3, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-64(%rbp), %xmm0
	movsd	-48(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	-96(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	movsd	-80(%rbp), %xmm3
	movsd	-88(%rbp), %xmm2
	mulsd	%xmm3, %xmm2
	subsd	%xmm2, %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-80(%rbp), %xmm0
	movsd	-96(%rbp), %xmm3
	movapd	%xmm0, %xmm2
	subsd	%xmm3, %xmm2
	movsd	-64(%rbp), %xmm3
	movsd	-40(%rbp), %xmm0
	mulsd	%xmm3, %xmm0
	movsd	-48(%rbp), %xmm4
	movsd	-56(%rbp), %xmm3
	mulsd	%xmm4, %xmm3
	subsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	divsd	-32(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-56(%rbp), %xmm0
	movsd	-40(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	-96(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	movsd	-80(%rbp), %xmm3
	movsd	-88(%rbp), %xmm2
	mulsd	%xmm3, %xmm2
	subsd	%xmm2, %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-72(%rbp), %xmm0
	movsd	-88(%rbp), %xmm3
	movapd	%xmm0, %xmm2
	subsd	%xmm3, %xmm2
	movsd	-64(%rbp), %xmm3
	movsd	-40(%rbp), %xmm0
	mulsd	%xmm3, %xmm0
	movsd	-48(%rbp), %xmm4
	movsd	-56(%rbp), %xmm3
	mulsd	%xmm4, %xmm3
	subsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	divsd	-32(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	addl	$1, -100(%rbp)
.L2:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L3
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"%lf %lf %lf %lf %lf %lf %lf %lf"
	.section	.rodata.str1.1
.LC2:
	.string	"%.16lf %.16lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	96(%rsp), %rax
	leaq	64(%rsp), %r15
	xorl	%ebx, %ebx
	movq	%rax, 8(%rsp)
	leaq	88(%rsp), %rax
	leaq	40(%rsp), %r12
	movq	%r15, %r8
	movq	%rax, 24(%rsp)
	leaq	80(%rsp), %rax
	leaq	72(%rsp), %r9
	movq	%r12, %r15
	movq	%rax, 16(%rsp)
	leaq	56(%rsp), %r14
	leaq	48(%rsp), %r13
	movq	%r9, %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 184
	movq	%r12, %r9
	movq	%r14, %rcx
	movq	%r13, %rdx
	pushq	16(%rsp)
	.cfi_def_cfa_offset 192
	movq	%r15, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	pushq	40(%rsp)
	.cfi_def_cfa_offset 200
	addl	$1, %ebx
	pushq	40(%rsp)
	.cfi_def_cfa_offset 208
	movq	%r8, 32(%rsp)
	call	__isoc99_scanf@PLT
	movsd	88(%rsp), %xmm4
	movl	$1, %edi
	movsd	128(%rsp), %xmm9
	movsd	120(%rsp), %xmm8
	movsd	96(%rsp), %xmm11
	leaq	.LC2(%rip), %rsi
	movl	$2, %eax
	movsd	112(%rsp), %xmm2
	movapd	%xmm4, %xmm7
	movapd	%xmm9, %xmm3
	movsd	104(%rsp), %xmm0
	movsd	72(%rsp), %xmm6
	movapd	%xmm11, %xmm5
	movapd	%xmm8, %xmm1
	movsd	80(%rsp), %xmm10
	subsd	%xmm2, %xmm3
	subsd	%xmm0, %xmm1
	addq	$32, %rsp
	.cfi_def_cfa_offset 176
	subsd	%xmm6, %xmm7
	subsd	%xmm10, %xmm5
	mulsd	%xmm11, %xmm6
	mulsd	%xmm10, %xmm4
	mulsd	%xmm5, %xmm1
	mulsd	%xmm7, %xmm3
	subsd	%xmm1, %xmm3
	movapd	%xmm6, %xmm1
	movapd	%xmm2, %xmm6
	subsd	%xmm4, %xmm1
	movapd	%xmm9, %xmm4
	subsd	%xmm9, %xmm2
	mulsd	%xmm0, %xmm4
	subsd	%xmm8, %xmm0
	mulsd	%xmm8, %xmm6
	mulsd	%xmm1, %xmm2
	mulsd	%xmm1, %xmm0
	subsd	%xmm6, %xmm4
	mulsd	%xmm4, %xmm5
	mulsd	%xmm4, %xmm7
	addsd	%xmm5, %xmm2
	addsd	%xmm7, %xmm0
	divsd	%xmm3, %xmm2
	divsd	%xmm3, %xmm0
	movapd	%xmm2, %xmm1
	call	__printf_chk@PLT
	cmpl	%ebx, 36(%rsp)
	movq	(%rsp), %r8
	jg	.L3
.L2:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L8
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L8:
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"%lf %lf %lf %lf %lf %lf %lf %lf"
	.section	.rodata.str1.1
.LC2:
	.string	"%.16lf %.16lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	96(%rsp), %rax
	leaq	64(%rsp), %r15
	xorl	%ebx, %ebx
	movq	%rax, 8(%rsp)
	leaq	88(%rsp), %rax
	leaq	40(%rsp), %r12
	movq	%r15, %r8
	movq	%rax, 24(%rsp)
	leaq	80(%rsp), %rax
	leaq	72(%rsp), %r9
	movq	%r12, %r15
	movq	%rax, 16(%rsp)
	leaq	56(%rsp), %r14
	leaq	48(%rsp), %r13
	movq	%r9, %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 184
	movq	%r12, %r9
	movq	%r14, %rcx
	movq	%r13, %rdx
	pushq	16(%rsp)
	.cfi_def_cfa_offset 192
	movq	%r15, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	pushq	40(%rsp)
	.cfi_def_cfa_offset 200
	addl	$1, %ebx
	pushq	40(%rsp)
	.cfi_def_cfa_offset 208
	movq	%r8, 32(%rsp)
	call	__isoc99_scanf@PLT
	movsd	88(%rsp), %xmm4
	movl	$1, %edi
	movsd	128(%rsp), %xmm9
	movsd	120(%rsp), %xmm8
	movsd	96(%rsp), %xmm11
	leaq	.LC2(%rip), %rsi
	movl	$2, %eax
	movsd	112(%rsp), %xmm2
	movapd	%xmm4, %xmm7
	movapd	%xmm9, %xmm3
	movsd	104(%rsp), %xmm0
	movsd	72(%rsp), %xmm6
	movapd	%xmm11, %xmm5
	movapd	%xmm8, %xmm1
	movsd	80(%rsp), %xmm10
	subsd	%xmm2, %xmm3
	subsd	%xmm0, %xmm1
	addq	$32, %rsp
	.cfi_def_cfa_offset 176
	subsd	%xmm6, %xmm7
	subsd	%xmm10, %xmm5
	mulsd	%xmm11, %xmm6
	mulsd	%xmm10, %xmm4
	mulsd	%xmm5, %xmm1
	mulsd	%xmm7, %xmm3
	subsd	%xmm1, %xmm3
	movapd	%xmm6, %xmm1
	movapd	%xmm2, %xmm6
	subsd	%xmm4, %xmm1
	movapd	%xmm9, %xmm4
	subsd	%xmm9, %xmm2
	mulsd	%xmm0, %xmm4
	subsd	%xmm8, %xmm0
	mulsd	%xmm8, %xmm6
	mulsd	%xmm1, %xmm2
	mulsd	%xmm1, %xmm0
	subsd	%xmm6, %xmm4
	mulsd	%xmm4, %xmm5
	mulsd	%xmm4, %xmm7
	addsd	%xmm5, %xmm2
	addsd	%xmm7, %xmm0
	divsd	%xmm3, %xmm2
	divsd	%xmm3, %xmm0
	movapd	%xmm2, %xmm1
	call	__printf_chk@PLT
	cmpl	%ebx, 36(%rsp)
	movq	(%rsp), %r8
	jg	.L3
.L2:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L8
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L8:
	.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:

#include <stdio.h>


int main(void){
  int q;
  scanf("%d",&q);

  double x1,y1,x2,y2,x3,y3,x4,y4;
  double x,y;//直線の交点
  double det;//行列式
  for(int i=0;i<q;i++){
    scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4);
    det=(x2-x1)*(y4-y3)-(y2-y1)*(x4-x3);
    x=((x3-x4)*(x1*y2-x2*y1)+(x2-x1)*(x3*y4-x4*y3))/det;
    y=((y3-y4)*(x1*y2-x2*y1)+(y2-y1)*(x3*y4-x4*y3))/det;
    printf("%.16lf %.16lf\n",x,y);
  }
  return 0;
}


3
0 0 2 0 2 1 1 -1
0 0 1 1 0 1 1 0
0 0 1 1 1 0 0 1
 3
0 0 2 0 2 2 1 -1
0 0 1 1 0 1 1 0
0 0 1 1 1 0 0 1
 3
0 0 2 0 2 2 0 -1
0 0 1 1 0 1 1 0
0 0 1 1 1 0 0 1
 3
0 0 2 0 2 1 0 -1
0 0 1 1 0 1 1 0
0 0 1 1 1 0 0 1
 3
0 0 2 0 2 1 0 -1
0 0 1 1 0 1 1 0
0 0 1 0 1 0 0 1
 3
0 0 2 0 2 1 0 -1
0 0 1 1 0 1 2 0
0 0 1 0 1 0 0 1
 3
0 0 2 0 0 1 1 -1
0 0 1 1 0 1 1 0
0 0 1 1 1 0 0 1
 3
0 0 2 0 2 2 1 -1
0 0 1 1 0 1 1 0
0 0 1 1 2 0 0 1
 3
0 0 2 0 2 2 0 -1
0 0 2 1 0 1 1 0
0 0 1 1 1 0 0 1
 3
0 0 2 0 2 0 0 -1
0 0 1 1 0 1 1 0
0 0 1 1 1 0 0 1

1.5000000000000000 -0.0000000000000000
0.5000000000000000 0.5000000000000000
0.5000000000000000 0.5000000000000000
 1.3333333333333333 -0.0000000000000000
0.5000000000000000 0.5000000000000000
0.5000000000000000 0.5000000000000000
 0.6666666666666666 -0.0000000000000000
0.5000000000000000 0.5000000000000000
0.5000000000000000 0.5000000000000000
 1.0000000000000000 -0.0000000000000000
0.5000000000000000 0.5000000000000000
0.5000000000000000 0.5000000000000000
 1.0000000000000000 -0.0000000000000000
0.5000000000000000 0.5000000000000000
1.0000000000000000 0.0000000000000000
 1.0000000000000000 -0.0000000000000000
0.6666666666666666 0.6666666666666666
1.0000000000000000 0.0000000000000000
 0.5000000000000000 -0.0000000000000000
0.5000000000000000 0.5000000000000000
0.5000000000000000 0.5000000000000000
 1.3333333333333333 -0.0000000000000000
0.5000000000000000 0.5000000000000000
0.6666666666666666 0.6666666666666666
 0.6666666666666666 -0.0000000000000000
0.6666666666666666 0.3333333333333333
0.5000000000000000 0.5000000000000000
 2.0000000000000000 -0.0000000000000000
0.5000000000000000 0.5000000000000000
0.5000000000000000 0.5000000000000000

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>


int main(void){
  int q;
  scanf("%d",&q);

  double x1,y1,x2,y2,x3,y3,x4,y4;
  double x,y;//直線の交点
  double det;//行列式
  for(int i=0;i<q;i++){
    scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4);
    det=(x2-x1)*(y4-y3)-(y2-y1)*(x4-x3);
    x=((x3-x4)*(x1*y2-x2*y1)+(x2-x1)*(x3*y4-x4*y3))/det;
    y=((y3-y4)*(x1*y2-x2*y1)+(y2-y1)*(x3*y4-x4*y3))/det;
    printf("%.16lf %.16lf\n",x,y);
  }
  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.align 8
.LC1:
	.string	"%lf %lf %lf %lf %lf %lf %lf %lf"
.LC2:
	.string	"%.16lf %.16lf\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	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100(%rbp)
	jmp	.L2
.L3:
	leaq	-64(%rbp), %r8
	leaq	-72(%rbp), %rdi
	leaq	-80(%rbp), %rcx
	leaq	-88(%rbp), %rdx
	leaq	-96(%rbp), %rax
	subq	$8, %rsp
	leaq	-40(%rbp), %rsi
	pushq	%rsi
	leaq	-48(%rbp), %rsi
	pushq	%rsi
	leaq	-56(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$32, %rsp
	movsd	-80(%rbp), %xmm0
	movsd	-96(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	-40(%rbp), %xmm0
	movsd	-56(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	-72(%rbp), %xmm1
	movsd	-88(%rbp), %xmm3
	subsd	%xmm3, %xmm1
	movapd	%xmm1, %xmm2
	movsd	-48(%rbp), %xmm1
	movsd	-64(%rbp), %xmm3
	subsd	%xmm3, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-64(%rbp), %xmm0
	movsd	-48(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	-96(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	movsd	-80(%rbp), %xmm3
	movsd	-88(%rbp), %xmm2
	mulsd	%xmm3, %xmm2
	subsd	%xmm2, %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-80(%rbp), %xmm0
	movsd	-96(%rbp), %xmm3
	movapd	%xmm0, %xmm2
	subsd	%xmm3, %xmm2
	movsd	-64(%rbp), %xmm3
	movsd	-40(%rbp), %xmm0
	mulsd	%xmm3, %xmm0
	movsd	-48(%rbp), %xmm4
	movsd	-56(%rbp), %xmm3
	mulsd	%xmm4, %xmm3
	subsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	divsd	-32(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-56(%rbp), %xmm0
	movsd	-40(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	-96(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	movsd	-80(%rbp), %xmm3
	movsd	-88(%rbp), %xmm2
	mulsd	%xmm3, %xmm2
	subsd	%xmm2, %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-72(%rbp), %xmm0
	movsd	-88(%rbp), %xmm3
	movapd	%xmm0, %xmm2
	subsd	%xmm3, %xmm2
	movsd	-64(%rbp), %xmm3
	movsd	-40(%rbp), %xmm0
	mulsd	%xmm3, %xmm0
	movsd	-48(%rbp), %xmm4
	movsd	-56(%rbp), %xmm3
	mulsd	%xmm4, %xmm3
	subsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	divsd	-32(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	addl	$1, -100(%rbp)
.L2:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L3
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.align 8
.LC1:
	.string	"%lf %lf %lf %lf %lf %lf %lf %lf"
.LC2:
	.string	"%.16lf %.16lf\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	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100(%rbp)
	jmp	.L2
.L3:
	leaq	-64(%rbp), %r8
	leaq	-72(%rbp), %rdi
	leaq	-80(%rbp), %rcx
	leaq	-88(%rbp), %rdx
	leaq	-96(%rbp), %rax
	subq	$8, %rsp
	leaq	-40(%rbp), %rsi
	pushq	%rsi
	leaq	-48(%rbp), %rsi
	pushq	%rsi
	leaq	-56(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$32, %rsp
	movsd	-80(%rbp), %xmm0
	movsd	-96(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	-40(%rbp), %xmm0
	movsd	-56(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	-72(%rbp), %xmm1
	movsd	-88(%rbp), %xmm3
	subsd	%xmm3, %xmm1
	movapd	%xmm1, %xmm2
	movsd	-48(%rbp), %xmm1
	movsd	-64(%rbp), %xmm3
	subsd	%xmm3, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-64(%rbp), %xmm0
	movsd	-48(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	-96(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	movsd	-80(%rbp), %xmm3
	movsd	-88(%rbp), %xmm2
	mulsd	%xmm3, %xmm2
	subsd	%xmm2, %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-80(%rbp), %xmm0
	movsd	-96(%rbp), %xmm3
	movapd	%xmm0, %xmm2
	subsd	%xmm3, %xmm2
	movsd	-64(%rbp), %xmm3
	movsd	-40(%rbp), %xmm0
	mulsd	%xmm3, %xmm0
	movsd	-48(%rbp), %xmm4
	movsd	-56(%rbp), %xmm3
	mulsd	%xmm4, %xmm3
	subsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	divsd	-32(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-56(%rbp), %xmm0
	movsd	-40(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	-96(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	movsd	-80(%rbp), %xmm3
	movsd	-88(%rbp), %xmm2
	mulsd	%xmm3, %xmm2
	subsd	%xmm2, %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-72(%rbp), %xmm0
	movsd	-88(%rbp), %xmm3
	movapd	%xmm0, %xmm2
	subsd	%xmm3, %xmm2
	movsd	-64(%rbp), %xmm3
	movsd	-40(%rbp), %xmm0
	mulsd	%xmm3, %xmm0
	movsd	-48(%rbp), %xmm4
	movsd	-56(%rbp), %xmm3
	mulsd	%xmm4, %xmm3
	subsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	divsd	-32(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	addl	$1, -100(%rbp)
.L2:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L3
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
