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>          // printf(), scanf()

int
main(int argc, char** argv)
{
	double sx, sy;
	double tx, ty;
	int q;
	int x, y;
	int x1, y1, x2, y2;
	int i;

	scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
	sx = x1, sy = y1;
	tx = x2, ty = y2;

	scanf("%d", &q);
	for (i = 0; i < q; ++i)
	{
		scanf("%d %d", &x, &y);
		double px = x, py = y;

		double bx = tx - sx, by = ty - sy;
		double ax = px - sx, ay = py - sy;
		double r = (ax * bx + ay * by) / (bx * bx + by * by);
		double cx = sx + bx * r, cy = sy + by * r;

		printf("%.10f %.10f\n", cx, cy);
	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d"
.LC3:
	.string	"%.10f %.10f\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	$160, %rsp
	movl	%edi, -148(%rbp)
	movq	%rsi, -160(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-120(%rbp), %rsi
	leaq	-124(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-132(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -112(%rbp)
	movl	-128(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -104(%rbp)
	movl	-124(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -96(%rbp)
	movl	-120(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -88(%rbp)
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -116(%rbp)
	jmp	.L2
.L3:
	leaq	-136(%rbp), %rdx
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -80(%rbp)
	movl	-136(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -72(%rbp)
	movsd	-96(%rbp), %xmm0
	subsd	-112(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	-88(%rbp), %xmm0
	subsd	-104(%rbp), %xmm0
	movsd	%xmm0, -56(%rbp)
	movsd	-80(%rbp), %xmm0
	subsd	-112(%rbp), %xmm0
	movsd	%xmm0, -48(%rbp)
	movsd	-72(%rbp), %xmm0
	subsd	-104(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movsd	-48(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-64(%rbp), %xmm1
	movsd	-40(%rbp), %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movsd	-64(%rbp), %xmm0
	movapd	%xmm0, %xmm2
	mulsd	%xmm0, %xmm2
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm2
	divsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-64(%rbp), %xmm0
	mulsd	-32(%rbp), %xmm0
	movsd	-112(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	-32(%rbp), %xmm0
	movsd	-104(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	addl	$1, -116(%rbp)
.L2:
	movl	-144(%rbp), %eax
	cmpl	%eax, -116(%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 %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d"
.LC3:
	.string	"%.10f %.10f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rcx
	leaq	60(%rsp), %rdx
	leaq	56(%rsp), %rsi
	leaq	68(%rsp), %r8
	call	__isoc99_scanf@PLT
	pxor	%xmm2, %xmm2
	pxor	%xmm5, %xmm5
	xorl	%eax, %eax
	pxor	%xmm6, %xmm6
	pxor	%xmm7, %xmm7
	leaq	44(%rsp), %rsi
	cvtsi2sdl	56(%rsp), %xmm2
	leaq	.LC1(%rip), %rdi
	cvtsi2sdl	60(%rsp), %xmm5
	cvtsi2sdl	64(%rsp), %xmm6
	cvtsi2sdl	68(%rsp), %xmm7
	movsd	%xmm2, (%rsp)
	movsd	%xmm5, 8(%rsp)
	movsd	%xmm6, 16(%rsp)
	movq	%xmm7, %rbx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movsd	16(%rsp), %xmm6
	movq	%rbx, %xmm2
	subsd	(%rsp), %xmm6
	xorl	%r14d, %r14d
	subsd	8(%rsp), %xmm2
	leaq	52(%rsp), %r13
	leaq	48(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	movsd	%xmm6, 16(%rsp)
	leaq	.LC3(%rip), %rbx
	movsd	%xmm2, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movq	%rbx, %rsi
	cvtsi2sdl	48(%rsp), %xmm0
	movsd	(%rsp), %xmm6
	addl	$1, %r14d
	movsd	8(%rsp), %xmm7
	cvtsi2sdl	52(%rsp), %xmm1
	movsd	16(%rsp), %xmm5
	movsd	24(%rsp), %xmm3
	movl	$1, %edi
	movl	$2, %eax
	movapd	%xmm3, %xmm2
	subsd	%xmm6, %xmm0
	mulsd	%xmm3, %xmm2
	subsd	%xmm7, %xmm1
	mulsd	%xmm5, %xmm0
	mulsd	%xmm3, %xmm1
	addsd	%xmm1, %xmm0
	movapd	%xmm5, %xmm1
	mulsd	%xmm5, %xmm1
	addsd	%xmm2, %xmm1
	divsd	%xmm1, %xmm0
	mulsd	%xmm0, %xmm3
	mulsd	%xmm5, %xmm0
	movapd	%xmm3, %xmm1
	addsd	%xmm6, %xmm0
	addsd	%xmm7, %xmm1
	call	__printf_chk@PLT
	cmpl	%r14d, 44(%rsp)
	jg	.L3
.L2:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L8
	addq	$80, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.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 %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d"
.LC3:
	.string	"%.10f %.10f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rcx
	leaq	60(%rsp), %rdx
	leaq	56(%rsp), %rsi
	leaq	68(%rsp), %r8
	call	__isoc99_scanf@PLT
	pxor	%xmm2, %xmm2
	pxor	%xmm5, %xmm5
	xorl	%eax, %eax
	pxor	%xmm6, %xmm6
	pxor	%xmm7, %xmm7
	leaq	44(%rsp), %rsi
	cvtsi2sdl	56(%rsp), %xmm2
	leaq	.LC1(%rip), %rdi
	cvtsi2sdl	60(%rsp), %xmm5
	cvtsi2sdl	64(%rsp), %xmm6
	cvtsi2sdl	68(%rsp), %xmm7
	movsd	%xmm2, (%rsp)
	movsd	%xmm5, 8(%rsp)
	movsd	%xmm6, 16(%rsp)
	movq	%xmm7, %rbx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movsd	16(%rsp), %xmm6
	movq	%rbx, %xmm2
	subsd	(%rsp), %xmm6
	xorl	%r14d, %r14d
	subsd	8(%rsp), %xmm2
	leaq	52(%rsp), %r13
	leaq	48(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	movsd	%xmm6, 16(%rsp)
	leaq	.LC3(%rip), %rbx
	movsd	%xmm2, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movq	%rbx, %rsi
	cvtsi2sdl	48(%rsp), %xmm0
	movsd	(%rsp), %xmm6
	addl	$1, %r14d
	movsd	8(%rsp), %xmm7
	cvtsi2sdl	52(%rsp), %xmm1
	movsd	16(%rsp), %xmm5
	movsd	24(%rsp), %xmm3
	movl	$1, %edi
	movl	$2, %eax
	movapd	%xmm3, %xmm2
	subsd	%xmm6, %xmm0
	mulsd	%xmm3, %xmm2
	subsd	%xmm7, %xmm1
	mulsd	%xmm5, %xmm0
	mulsd	%xmm3, %xmm1
	addsd	%xmm1, %xmm0
	movapd	%xmm5, %xmm1
	mulsd	%xmm5, %xmm1
	addsd	%xmm2, %xmm1
	divsd	%xmm1, %xmm0
	mulsd	%xmm0, %xmm3
	mulsd	%xmm5, %xmm0
	movapd	%xmm3, %xmm1
	addsd	%xmm6, %xmm0
	addsd	%xmm7, %xmm1
	call	__printf_chk@PLT
	cmpl	%r14d, 44(%rsp)
	jg	.L3
.L2:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L8
	addq	$80, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.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>          // printf(), scanf()

int
main(int argc, char** argv)
{
	double sx, sy;
	double tx, ty;
	int q;
	int x, y;
	int x1, y1, x2, y2;
	int i;

	scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
	sx = x1, sy = y1;
	tx = x2, ty = y2;

	scanf("%d", &q);
	for (i = 0; i < q; ++i)
	{
		scanf("%d %d", &x, &y);
		double px = x, py = y;

		double bx = tx - sx, by = ty - sy;
		double ax = px - sx, ay = py - sy;
		double r = (ax * bx + ay * by) / (bx * bx + by * by);
		double cx = sx + bx * r, cy = sy + by * r;

		printf("%.10f %.10f\n", cx, cy);
	}

	return 0;
}
0 0 1 4
1
2 5
 0 0 2 0
3
-1 1
0 2
1 1
 0 0 1 4
1
2 9
 0 0 1 6
1
2 9
 0 -1 1 6
1
2 9
 0 -1 2 6
1
2 9
 0 -1 2 2
1
2 9
 0 -1 4 2
1
2 9
 0 -2 4 2
1
2 9
 0 0 2 0
3
-1 1
0 1
0 1

1.2941176471 5.1764705882
 -1.0000000000 0.0000000000
0.0000000000 0.0000000000
1.0000000000 0.0000000000
 2.2352941176 8.9411764706
 1.5135135135 9.0810810811
 1.4400000000 9.0800000000
 2.7924528302 8.7735849057
 5.2307692308 6.8461538462
 6.0800000000 3.5600000000
 6.5000000000 4.5000000000
 -1.0000000000 0.0000000000
0.0000000000 0.0000000000
0.0000000000 0.0000000000

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>          // printf(), scanf()

int
main(int argc, char** argv)
{
	double sx, sy;
	double tx, ty;
	int q;
	int x, y;
	int x1, y1, x2, y2;
	int i;

	scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
	sx = x1, sy = y1;
	tx = x2, ty = y2;

	scanf("%d", &q);
	for (i = 0; i < q; ++i)
	{
		scanf("%d %d", &x, &y);
		double px = x, py = y;

		double bx = tx - sx, by = ty - sy;
		double ax = px - sx, ay = py - sy;
		double r = (ax * bx + ay * by) / (bx * bx + by * by);
		double cx = sx + bx * r, cy = sy + by * r;

		printf("%.10f %.10f\n", cx, cy);
	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d"
.LC3:
	.string	"%.10f %.10f\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	$160, %rsp
	movl	%edi, -148(%rbp)
	movq	%rsi, -160(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-120(%rbp), %rsi
	leaq	-124(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-132(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -112(%rbp)
	movl	-128(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -104(%rbp)
	movl	-124(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -96(%rbp)
	movl	-120(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -88(%rbp)
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -116(%rbp)
	jmp	.L2
.L3:
	leaq	-136(%rbp), %rdx
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -80(%rbp)
	movl	-136(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -72(%rbp)
	movsd	-96(%rbp), %xmm0
	subsd	-112(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	-88(%rbp), %xmm0
	subsd	-104(%rbp), %xmm0
	movsd	%xmm0, -56(%rbp)
	movsd	-80(%rbp), %xmm0
	subsd	-112(%rbp), %xmm0
	movsd	%xmm0, -48(%rbp)
	movsd	-72(%rbp), %xmm0
	subsd	-104(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movsd	-48(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-64(%rbp), %xmm1
	movsd	-40(%rbp), %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movsd	-64(%rbp), %xmm0
	movapd	%xmm0, %xmm2
	mulsd	%xmm0, %xmm2
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm2
	divsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-64(%rbp), %xmm0
	mulsd	-32(%rbp), %xmm0
	movsd	-112(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	-32(%rbp), %xmm0
	movsd	-104(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	addl	$1, -116(%rbp)
.L2:
	movl	-144(%rbp), %eax
	cmpl	%eax, -116(%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 %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d"
.LC3:
	.string	"%.10f %.10f\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	$160, %rsp
	movl	%edi, -148(%rbp)
	movq	%rsi, -160(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-120(%rbp), %rsi
	leaq	-124(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-132(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -112(%rbp)
	movl	-128(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -104(%rbp)
	movl	-124(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -96(%rbp)
	movl	-120(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -88(%rbp)
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -116(%rbp)
	jmp	.L2
.L3:
	leaq	-136(%rbp), %rdx
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -80(%rbp)
	movl	-136(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -72(%rbp)
	movsd	-96(%rbp), %xmm0
	subsd	-112(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	-88(%rbp), %xmm0
	subsd	-104(%rbp), %xmm0
	movsd	%xmm0, -56(%rbp)
	movsd	-80(%rbp), %xmm0
	subsd	-112(%rbp), %xmm0
	movsd	%xmm0, -48(%rbp)
	movsd	-72(%rbp), %xmm0
	subsd	-104(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movsd	-48(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-64(%rbp), %xmm1
	movsd	-40(%rbp), %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movsd	-64(%rbp), %xmm0
	movapd	%xmm0, %xmm2
	mulsd	%xmm0, %xmm2
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm2
	divsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-64(%rbp), %xmm0
	mulsd	-32(%rbp), %xmm0
	movsd	-112(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	-32(%rbp), %xmm0
	movsd	-104(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	addl	$1, -116(%rbp)
.L2:
	movl	-144(%rbp), %eax
	cmpl	%eax, -116(%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:
