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>          // 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;
}```

Assembly Code:

```assembly
	.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:
```

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"
.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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"
.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:
```