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>
#include <math.h>
#define EPS 0.0000000002
#define MAX 1010001000

typedef struct point{
    double x, y;
}point;

typedef struct line{
    point st, en;
}line;

double norm(point a);
double norm2(point a);
double distans(point a, point b);
point sum_vector(point a, point b);
point diff_vector(point a, point b);
point minus_vector(point a);
double dot(point a, point b);
double prod(point a, point b);

point pv(line a, point p) {
    //直線ab上に点pから垂線を下ろしたときの点h//
    point h;
    double k = dot(diff_vector(a.st, p), diff_vector(a.st, a.en))
                / dot(diff_vector(a.en, a.st), diff_vector(a.en, a.st));
    h.x = k * (a.en.x - a.st.x) + a.st.x;
    h.y = k * (a.en.y - a.st.y) + a.st.y;
    return h;
}

double norm(point a)
{
    //原点からの距離
    return sqrt((a.x * a.x) + (a.y * a.y));
}

double norm2(point a)
{
    //原点からの距離の二乗
    return (a.x * a.x) + (a.y * a.y);
}

double distans(point a, point b)
{
    //二点間の距離
    point tmp = sum_vector(b, minus_vector(a));
    return norm(tmp);
}

point sum_vector(point a, point b)
{
    //ベクトルの和
    a.x += b.x;
    a.y += b.y;
    return a;
}

point diff_vector(point a, point b)
{
    //ベクトルの差
    a.x -= b.x;
    a.y -= b.y;
    return a;
}

point minus_vector(point a)
{
    //逆ベクトル
    a.x *= -1;
    a.y *= -1;
    return a;
}

double dot(point a, point b)
{
    //内積
    return (a.x * b.x) + (a.y * b.y);
}

double prod(point a, point b)
{
    //外積
    return (a.x * b.y) - (b.x * a.y);
}

///////////////////////////////////////

int main(void)
{
    point tmp;
    line ab;
    int n, i;

    scanf("%lf%lf%lf%lf%d", &ab.st.x, &ab.st.y, &ab.en.x, &ab.en.y, &n);
    for (i = 0; i < n; i++) {
        scanf("%lf%lf", &tmp.x, &tmp.y);
        tmp = pv(ab, tmp);
        printf("%.10lf %.10lf\n", tmp.x, tmp.y);
    }

    return 0;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pv
	.type	pv, @function
pv:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
	movsd	32(%rbp), %xmm2
	movsd	40(%rbp), %xmm0
	movq	16(%rbp), %rax
	movsd	24(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movl	$0, %r12d
	movl	$0, %r13d
	movq	%rax, %r12
	movq	%xmm0, %r13
	movsd	-80(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	movq	16(%rbp), %rax
	movsd	24(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	movq	%r12, %rcx
	movq	%r13, %rbx
	movq	%rsi, %xmm2
	movq	%rbx, %xmm0
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	dot
	movq	%xmm0, %rbx
	movsd	16(%rbp), %xmm2
	movsd	24(%rbp), %xmm0
	movq	32(%rbp), %rax
	movsd	40(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movl	$0, %r12d
	movl	$0, %r13d
	movq	%rax, %r12
	movq	%xmm0, %r13
	movsd	16(%rbp), %xmm2
	movsd	24(%rbp), %xmm0
	movq	32(%rbp), %rax
	movsd	40(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%r12, %r8
	movq	%r13, %r9
	movq	%r12, %rsi
	movq	%r13, %rdi
	movq	%r8, %xmm2
	movq	%rdi, %xmm0
	movq	%rax, %r8
	movq	%rdx, %r9
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%r8, %rax
	movq	%rdi, %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	dot
	movapd	%xmm0, %xmm1
	movq	%rbx, %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -56(%rbp)
	movsd	32(%rbp), %xmm0
	movsd	16(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-56(%rbp), %xmm1
	movsd	16(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
	movsd	40(%rbp), %xmm0
	movsd	24(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-56(%rbp), %xmm1
	movsd	24(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -40(%rbp)
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	pv, .-pv
	.globl	norm
	.type	norm, @function
norm:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm2
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	norm, .-norm
	.globl	norm2
	.type	norm2, @function
norm2:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm2
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	norm2, .-norm2
	.globl	distans
	.type	distans, @function
distans:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	movq	-48(%rbp), %rax
	movsd	-40(%rbp), %xmm1
	movq	%rax, %xmm0
	call	minus_vector
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rcx, %xmm2
	movq	%rdx, %xmm0
	movq	-64(%rbp), %rax
	movsd	-56(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	sum_vector
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movq	%rax, -32(%rbp)
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movsd	-24(%rbp), %xmm1
	movq	%rax, %xmm0
	call	norm
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	distans, .-distans
	.globl	sum_vector
	.type	sum_vector, @function
sum_vector:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movsd	-32(%rbp), %xmm1
	movsd	-48(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm1
	movsd	-40(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	sum_vector, .-sum_vector
	.globl	diff_vector
	.type	diff_vector, @function
diff_vector:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movsd	-32(%rbp), %xmm0
	movsd	-48(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm0
	movsd	-40(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	diff_vector, .-diff_vector
	.globl	minus_vector
	.type	minus_vector, @function
minus_vector:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movsd	-32(%rbp), %xmm0
	movq	.LC0(%rip), %xmm1
	xorpd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm0
	movq	.LC0(%rip), %xmm1
	xorpd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	minus_vector, .-minus_vector
	.globl	dot
	.type	dot, @function
dot:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm2
	movsd	-24(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dot, .-dot
	.globl	prod
	.type	prod, @function
prod:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-24(%rbp), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	-32(%rbp), %xmm2
	movsd	-8(%rbp), %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	prod, .-prod
	.section	.rodata
.LC1:
	.string	"%lf%lf%lf%lf%d"
.LC2:
	.string	"%lf%lf"
.LC3:
	.string	"%.10lf %.10lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rax
	leaq	24(%rax), %rdi
	leaq	-48(%rbp), %rax
	leaq	16(%rax), %rcx
	leaq	-48(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-48(%rbp), %rax
	movq	%rsi, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -68(%rbp)
	jmp	.L20
.L21:
	leaq	-64(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	movsd	-56(%rbp), %xmm1
	pushq	-24(%rbp)
	pushq	-32(%rbp)
	pushq	-40(%rbp)
	pushq	-48(%rbp)
	movq	%rax, %xmm0
	call	pv
	addq	$32, %rsp
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movq	%rax, -64(%rbp)
	movsd	%xmm0, -56(%rbp)
	movsd	-56(%rbp), %xmm0
	movq	-64(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	addl	$1, -68(%rbp)
.L20:
	movl	-72(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L21
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC0:
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	pv
	.type	pv, @function
pv:
.LFB23:
	.cfi_startproc
	endbr64
	movupd	8(%rsp), %xmm2
	movapd	%xmm0, %xmm8
	movupd	24(%rsp), %xmm7
	movapd	%xmm2, %xmm0
	movapd	%xmm2, %xmm6
	movapd	%xmm2, %xmm4
	subsd	%xmm8, %xmm0
	movsd	24(%rsp), %xmm8
	unpckhpd	%xmm4, %xmm4
	subpd	%xmm2, %xmm7
	movapd	%xmm4, %xmm5
	subsd	%xmm8, %xmm6
	movapd	%xmm7, %xmm3
	unpckhpd	%xmm3, %xmm3
	mulsd	%xmm6, %xmm0
	movapd	%xmm5, %xmm6
	movapd	%xmm3, %xmm4
	subsd	%xmm1, %xmm6
	movsd	32(%rsp), %xmm1
	mulsd	%xmm4, %xmm4
	movapd	%xmm7, %xmm3
	mulsd	%xmm7, %xmm3
	subsd	%xmm1, %xmm5
	mulsd	%xmm5, %xmm6
	addsd	%xmm4, %xmm3
	addsd	%xmm6, %xmm0
	divsd	%xmm3, %xmm0
	unpcklpd	%xmm0, %xmm0
	mulpd	%xmm7, %xmm0
	addpd	%xmm2, %xmm0
	movaps	%xmm0, -24(%rsp)
	movsd	-16(%rsp), %xmm1
	movsd	-24(%rsp), %xmm0
	ret
	.cfi_endproc
.LFE23:
	.size	pv, .-pv
	.p2align 4
	.globl	norm
	.type	norm, @function
norm:
.LFB24:
	.cfi_startproc
	endbr64
	mulsd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L11
	sqrtsd	%xmm0, %xmm0
	ret
.L11:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE24:
	.size	norm, .-norm
	.p2align 4
	.globl	norm2
	.type	norm2, @function
norm2:
.LFB25:
	.cfi_startproc
	endbr64
	mulsd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE25:
	.size	norm2, .-norm2
	.p2align 4
	.globl	distans
	.type	distans, @function
distans:
.LFB26:
	.cfi_startproc
	endbr64
	subsd	%xmm0, %xmm2
	subsd	%xmm1, %xmm3
	pxor	%xmm1, %xmm1
	mulsd	%xmm2, %xmm2
	mulsd	%xmm3, %xmm3
	addsd	%xmm3, %xmm2
	ucomisd	%xmm2, %xmm1
	movapd	%xmm2, %xmm0
	ja	.L21
	sqrtsd	%xmm0, %xmm0
	ret
.L21:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE26:
	.size	distans, .-distans
	.p2align 4
	.globl	sum_vector
	.type	sum_vector, @function
sum_vector:
.LFB27:
	.cfi_startproc
	endbr64
	movq	%xmm0, -40(%rsp)
	movq	%xmm1, -32(%rsp)
	movq	%xmm2, -24(%rsp)
	movq	%xmm3, -16(%rsp)
	movapd	-24(%rsp), %xmm4
	addpd	-40(%rsp), %xmm4
	movaps	%xmm4, -40(%rsp)
	movsd	-32(%rsp), %xmm1
	movsd	-40(%rsp), %xmm0
	ret
	.cfi_endproc
.LFE27:
	.size	sum_vector, .-sum_vector
	.p2align 4
	.globl	diff_vector
	.type	diff_vector, @function
diff_vector:
.LFB28:
	.cfi_startproc
	endbr64
	movq	%xmm0, -40(%rsp)
	movq	%xmm1, -32(%rsp)
	movapd	-40(%rsp), %xmm4
	movq	%xmm2, -24(%rsp)
	movq	%xmm3, -16(%rsp)
	subpd	-24(%rsp), %xmm4
	movaps	%xmm4, -40(%rsp)
	movsd	-32(%rsp), %xmm1
	movsd	-40(%rsp), %xmm0
	ret
	.cfi_endproc
.LFE28:
	.size	diff_vector, .-diff_vector
	.p2align 4
	.globl	minus_vector
	.type	minus_vector, @function
minus_vector:
.LFB29:
	.cfi_startproc
	endbr64
	movq	%xmm0, -24(%rsp)
	movq	%xmm1, -16(%rsp)
	movapd	-24(%rsp), %xmm2
	xorpd	.LC1(%rip), %xmm2
	movaps	%xmm2, -24(%rsp)
	movsd	-16(%rsp), %xmm1
	movsd	-24(%rsp), %xmm0
	ret
	.cfi_endproc
.LFE29:
	.size	minus_vector, .-minus_vector
	.p2align 4
	.globl	dot
	.type	dot, @function
dot:
.LFB30:
	.cfi_startproc
	endbr64
	mulsd	%xmm2, %xmm0
	mulsd	%xmm3, %xmm1
	addsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE30:
	.size	dot, .-dot
	.p2align 4
	.globl	prod
	.type	prod, @function
prod:
.LFB31:
	.cfi_startproc
	endbr64
	mulsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE31:
	.size	prod, .-prod
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%lf%lf%lf%lf%d"
.LC3:
	.string	"%lf%lf"
.LC4:
	.string	"%.10lf %.10lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB32:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC2(%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	32(%rsp), %rsi
	leaq	48(%rsp), %rcx
	leaq	40(%rsp), %rdx
	leaq	12(%rsp), %r9
	leaq	56(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L28
	xorl	%r14d, %r14d
	leaq	16(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC3(%rip), %rbp
	leaq	.LC4(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%r12, %rdx
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movapd	32(%rsp), %xmm3
	movapd	48(%rsp), %xmm6
	movq	%rbx, %rsi
	movl	$1, %edi
	movl	$2, %eax
	addl	$1, %r14d
	subpd	%xmm3, %xmm6
	movapd	%xmm3, %xmm4
	movapd	%xmm3, %xmm2
	unpckhpd	%xmm4, %xmm4
	movapd	%xmm3, %xmm1
	subsd	16(%rsp), %xmm1
	movapd	%xmm4, %xmm5
	movapd	%xmm6, %xmm7
	movapd	%xmm6, %xmm0
	mulsd	%xmm6, %xmm0
	unpckhpd	%xmm7, %xmm7
	movapd	%xmm7, %xmm4
	movsd	48(%rsp), %xmm7
	mulsd	%xmm4, %xmm4
	subsd	%xmm7, %xmm2
	movapd	%xmm5, %xmm7
	subsd	24(%rsp), %xmm7
	mulsd	%xmm2, %xmm1
	movsd	56(%rsp), %xmm2
	addsd	%xmm4, %xmm0
	subsd	%xmm2, %xmm5
	movapd	%xmm7, %xmm2
	mulsd	%xmm5, %xmm2
	addsd	%xmm2, %xmm1
	divsd	%xmm0, %xmm1
	unpcklpd	%xmm1, %xmm1
	mulpd	%xmm6, %xmm1
	addpd	%xmm3, %xmm1
	movaps	%xmm1, 16(%rsp)
	movapd	%xmm1, %xmm0
	unpckhpd	%xmm1, %xmm1
	call	__printf_chk@PLT
	cmpl	%r14d, 12(%rsp)
	jg	.L29
.L28:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	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
.L33:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE32:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	0
	.long	-2147483648
	.long	0
	.long	-2147483648
	.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	pv
	.type	pv, @function
pv:
.LFB23:
	.cfi_startproc
	endbr64
	movupd	8(%rsp), %xmm2
	movapd	%xmm0, %xmm8
	movupd	24(%rsp), %xmm7
	movapd	%xmm2, %xmm0
	movapd	%xmm2, %xmm6
	movapd	%xmm2, %xmm4
	subsd	%xmm8, %xmm0
	movsd	24(%rsp), %xmm8
	unpckhpd	%xmm4, %xmm4
	subpd	%xmm2, %xmm7
	movapd	%xmm4, %xmm5
	subsd	%xmm8, %xmm6
	movapd	%xmm7, %xmm3
	unpckhpd	%xmm3, %xmm3
	mulsd	%xmm6, %xmm0
	movapd	%xmm5, %xmm6
	movapd	%xmm3, %xmm4
	subsd	%xmm1, %xmm6
	movsd	32(%rsp), %xmm1
	mulsd	%xmm4, %xmm4
	movapd	%xmm7, %xmm3
	mulsd	%xmm7, %xmm3
	subsd	%xmm1, %xmm5
	mulsd	%xmm5, %xmm6
	addsd	%xmm4, %xmm3
	addsd	%xmm6, %xmm0
	divsd	%xmm3, %xmm0
	unpcklpd	%xmm0, %xmm0
	mulpd	%xmm7, %xmm0
	addpd	%xmm2, %xmm0
	movaps	%xmm0, -24(%rsp)
	movsd	-16(%rsp), %xmm1
	movsd	-24(%rsp), %xmm0
	ret
	.cfi_endproc
.LFE23:
	.size	pv, .-pv
	.p2align 4
	.globl	norm
	.type	norm, @function
norm:
.LFB24:
	.cfi_startproc
	endbr64
	mulsd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L11
	sqrtsd	%xmm0, %xmm0
	ret
.L11:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE24:
	.size	norm, .-norm
	.p2align 4
	.globl	norm2
	.type	norm2, @function
norm2:
.LFB25:
	.cfi_startproc
	endbr64
	mulsd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE25:
	.size	norm2, .-norm2
	.p2align 4
	.globl	distans
	.type	distans, @function
distans:
.LFB26:
	.cfi_startproc
	endbr64
	subsd	%xmm0, %xmm2
	subsd	%xmm1, %xmm3
	pxor	%xmm1, %xmm1
	mulsd	%xmm2, %xmm2
	mulsd	%xmm3, %xmm3
	addsd	%xmm3, %xmm2
	ucomisd	%xmm2, %xmm1
	movapd	%xmm2, %xmm0
	ja	.L21
	sqrtsd	%xmm0, %xmm0
	ret
.L21:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE26:
	.size	distans, .-distans
	.p2align 4
	.globl	sum_vector
	.type	sum_vector, @function
sum_vector:
.LFB27:
	.cfi_startproc
	endbr64
	movq	%xmm0, -40(%rsp)
	movq	%xmm1, -32(%rsp)
	movq	%xmm2, -24(%rsp)
	movq	%xmm3, -16(%rsp)
	movapd	-24(%rsp), %xmm4
	addpd	-40(%rsp), %xmm4
	movaps	%xmm4, -40(%rsp)
	movsd	-32(%rsp), %xmm1
	movsd	-40(%rsp), %xmm0
	ret
	.cfi_endproc
.LFE27:
	.size	sum_vector, .-sum_vector
	.p2align 4
	.globl	diff_vector
	.type	diff_vector, @function
diff_vector:
.LFB28:
	.cfi_startproc
	endbr64
	movq	%xmm0, -40(%rsp)
	movq	%xmm1, -32(%rsp)
	movapd	-40(%rsp), %xmm4
	movq	%xmm2, -24(%rsp)
	movq	%xmm3, -16(%rsp)
	subpd	-24(%rsp), %xmm4
	movaps	%xmm4, -40(%rsp)
	movsd	-32(%rsp), %xmm1
	movsd	-40(%rsp), %xmm0
	ret
	.cfi_endproc
.LFE28:
	.size	diff_vector, .-diff_vector
	.p2align 4
	.globl	minus_vector
	.type	minus_vector, @function
minus_vector:
.LFB29:
	.cfi_startproc
	endbr64
	movq	%xmm0, -24(%rsp)
	movq	%xmm1, -16(%rsp)
	movapd	-24(%rsp), %xmm2
	xorpd	.LC1(%rip), %xmm2
	movaps	%xmm2, -24(%rsp)
	movsd	-16(%rsp), %xmm1
	movsd	-24(%rsp), %xmm0
	ret
	.cfi_endproc
.LFE29:
	.size	minus_vector, .-minus_vector
	.p2align 4
	.globl	dot
	.type	dot, @function
dot:
.LFB30:
	.cfi_startproc
	endbr64
	mulsd	%xmm2, %xmm0
	mulsd	%xmm3, %xmm1
	addsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE30:
	.size	dot, .-dot
	.p2align 4
	.globl	prod
	.type	prod, @function
prod:
.LFB31:
	.cfi_startproc
	endbr64
	mulsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE31:
	.size	prod, .-prod
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%lf%lf%lf%lf%d"
.LC3:
	.string	"%lf%lf"
.LC4:
	.string	"%.10lf %.10lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB32:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC2(%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	32(%rsp), %rsi
	leaq	48(%rsp), %rcx
	leaq	40(%rsp), %rdx
	leaq	12(%rsp), %r9
	leaq	56(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L28
	xorl	%r14d, %r14d
	leaq	16(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC3(%rip), %rbp
	leaq	.LC4(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%r12, %rdx
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movapd	32(%rsp), %xmm3
	movapd	48(%rsp), %xmm6
	movq	%rbx, %rsi
	movl	$1, %edi
	movl	$2, %eax
	addl	$1, %r14d
	subpd	%xmm3, %xmm6
	movapd	%xmm3, %xmm4
	movapd	%xmm3, %xmm2
	unpckhpd	%xmm4, %xmm4
	movapd	%xmm3, %xmm1
	subsd	16(%rsp), %xmm1
	movapd	%xmm4, %xmm5
	movapd	%xmm6, %xmm7
	movapd	%xmm6, %xmm0
	mulsd	%xmm6, %xmm0
	unpckhpd	%xmm7, %xmm7
	movapd	%xmm7, %xmm4
	movsd	48(%rsp), %xmm7
	mulsd	%xmm4, %xmm4
	subsd	%xmm7, %xmm2
	movapd	%xmm5, %xmm7
	subsd	24(%rsp), %xmm7
	mulsd	%xmm2, %xmm1
	movsd	56(%rsp), %xmm2
	addsd	%xmm4, %xmm0
	subsd	%xmm2, %xmm5
	movapd	%xmm7, %xmm2
	mulsd	%xmm5, %xmm2
	addsd	%xmm2, %xmm1
	divsd	%xmm0, %xmm1
	unpcklpd	%xmm1, %xmm1
	mulpd	%xmm6, %xmm1
	addpd	%xmm3, %xmm1
	movaps	%xmm1, 16(%rsp)
	movapd	%xmm1, %xmm0
	unpckhpd	%xmm1, %xmm1
	call	__printf_chk@PLT
	cmpl	%r14d, 12(%rsp)
	jg	.L29
.L28:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	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
.L33:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE32:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	0
	.long	-2147483648
	.long	0
	.long	-2147483648
	.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>
#include <math.h>
#define EPS 0.0000000002
#define MAX 1010001000

typedef struct point{
    double x, y;
}point;

typedef struct line{
    point st, en;
}line;

double norm(point a);
double norm2(point a);
double distans(point a, point b);
point sum_vector(point a, point b);
point diff_vector(point a, point b);
point minus_vector(point a);
double dot(point a, point b);
double prod(point a, point b);

point pv(line a, point p) {
    //直線ab上に点pから垂線を下ろしたときの点h//
    point h;
    double k = dot(diff_vector(a.st, p), diff_vector(a.st, a.en))
                / dot(diff_vector(a.en, a.st), diff_vector(a.en, a.st));
    h.x = k * (a.en.x - a.st.x) + a.st.x;
    h.y = k * (a.en.y - a.st.y) + a.st.y;
    return h;
}

double norm(point a)
{
    //原点からの距離
    return sqrt((a.x * a.x) + (a.y * a.y));
}

double norm2(point a)
{
    //原点からの距離の二乗
    return (a.x * a.x) + (a.y * a.y);
}

double distans(point a, point b)
{
    //二点間の距離
    point tmp = sum_vector(b, minus_vector(a));
    return norm(tmp);
}

point sum_vector(point a, point b)
{
    //ベクトルの和
    a.x += b.x;
    a.y += b.y;
    return a;
}

point diff_vector(point a, point b)
{
    //ベクトルの差
    a.x -= b.x;
    a.y -= b.y;
    return a;
}

point minus_vector(point a)
{
    //逆ベクトル
    a.x *= -1;
    a.y *= -1;
    return a;
}

double dot(point a, point b)
{
    //内積
    return (a.x * b.x) + (a.y * b.y);
}

double prod(point a, point b)
{
    //外積
    return (a.x * b.y) - (b.x * a.y);
}

///////////////////////////////////////

int main(void)
{
    point tmp;
    line ab;
    int n, i;

    scanf("%lf%lf%lf%lf%d", &ab.st.x, &ab.st.y, &ab.en.x, &ab.en.y, &n);
    for (i = 0; i < n; i++) {
        scanf("%lf%lf", &tmp.x, &tmp.y);
        tmp = pv(ab, tmp);
        printf("%.10lf %.10lf\n", tmp.x, tmp.y);
    }

    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>
#include <math.h>
#define EPS 0.0000000002
#define MAX 1010001000

typedef struct point{
    double x, y;
}point;

typedef struct line{
    point st, en;
}line;

double norm(point a);
double norm2(point a);
double distans(point a, point b);
point sum_vector(point a, point b);
point diff_vector(point a, point b);
point minus_vector(point a);
double dot(point a, point b);
double prod(point a, point b);

point pv(line a, point p) {
    //直線ab上に点pから垂線を下ろしたときの点h//
    point h;
    double k = dot(diff_vector(a.st, p), diff_vector(a.st, a.en))
                / dot(diff_vector(a.en, a.st), diff_vector(a.en, a.st));
    h.x = k * (a.en.x - a.st.x) + a.st.x;
    h.y = k * (a.en.y - a.st.y) + a.st.y;
    return h;
}

double norm(point a)
{
    //原点からの距離
    return sqrt((a.x * a.x) + (a.y * a.y));
}

double norm2(point a)
{
    //原点からの距離の二乗
    return (a.x * a.x) + (a.y * a.y);
}

double distans(point a, point b)
{
    //二点間の距離
    point tmp = sum_vector(b, minus_vector(a));
    return norm(tmp);
}

point sum_vector(point a, point b)
{
    //ベクトルの和
    a.x += b.x;
    a.y += b.y;
    return a;
}

point diff_vector(point a, point b)
{
    //ベクトルの差
    a.x -= b.x;
    a.y -= b.y;
    return a;
}

point minus_vector(point a)
{
    //逆ベクトル
    a.x *= -1;
    a.y *= -1;
    return a;
}

double dot(point a, point b)
{
    //内積
    return (a.x * b.x) + (a.y * b.y);
}

double prod(point a, point b)
{
    //外積
    return (a.x * b.y) - (b.x * a.y);
}

///////////////////////////////////////

int main(void)
{
    point tmp;
    line ab;
    int n, i;

    scanf("%lf%lf%lf%lf%d", &ab.st.x, &ab.st.y, &ab.en.x, &ab.en.y, &n);
    for (i = 0; i < n; i++) {
        scanf("%lf%lf", &tmp.x, &tmp.y);
        tmp = pv(ab, tmp);
        printf("%.10lf %.10lf\n", tmp.x, tmp.y);
    }

    return 0;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pv
	.type	pv, @function
pv:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
	movsd	32(%rbp), %xmm2
	movsd	40(%rbp), %xmm0
	movq	16(%rbp), %rax
	movsd	24(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movl	$0, %r12d
	movl	$0, %r13d
	movq	%rax, %r12
	movq	%xmm0, %r13
	movsd	-80(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	movq	16(%rbp), %rax
	movsd	24(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	movq	%r12, %rcx
	movq	%r13, %rbx
	movq	%rsi, %xmm2
	movq	%rbx, %xmm0
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	dot
	movq	%xmm0, %rbx
	movsd	16(%rbp), %xmm2
	movsd	24(%rbp), %xmm0
	movq	32(%rbp), %rax
	movsd	40(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movl	$0, %r12d
	movl	$0, %r13d
	movq	%rax, %r12
	movq	%xmm0, %r13
	movsd	16(%rbp), %xmm2
	movsd	24(%rbp), %xmm0
	movq	32(%rbp), %rax
	movsd	40(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%r12, %r8
	movq	%r13, %r9
	movq	%r12, %rsi
	movq	%r13, %rdi
	movq	%r8, %xmm2
	movq	%rdi, %xmm0
	movq	%rax, %r8
	movq	%rdx, %r9
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%r8, %rax
	movq	%rdi, %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	dot
	movapd	%xmm0, %xmm1
	movq	%rbx, %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -56(%rbp)
	movsd	32(%rbp), %xmm0
	movsd	16(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-56(%rbp), %xmm1
	movsd	16(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
	movsd	40(%rbp), %xmm0
	movsd	24(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-56(%rbp), %xmm1
	movsd	24(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -40(%rbp)
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	pv, .-pv
	.globl	norm
	.type	norm, @function
norm:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm2
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	norm, .-norm
	.globl	norm2
	.type	norm2, @function
norm2:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm2
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	norm2, .-norm2
	.globl	distans
	.type	distans, @function
distans:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	movq	-48(%rbp), %rax
	movsd	-40(%rbp), %xmm1
	movq	%rax, %xmm0
	call	minus_vector
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rcx, %xmm2
	movq	%rdx, %xmm0
	movq	-64(%rbp), %rax
	movsd	-56(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	sum_vector
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movq	%rax, -32(%rbp)
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movsd	-24(%rbp), %xmm1
	movq	%rax, %xmm0
	call	norm
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	distans, .-distans
	.globl	sum_vector
	.type	sum_vector, @function
sum_vector:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movsd	-32(%rbp), %xmm1
	movsd	-48(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm1
	movsd	-40(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	sum_vector, .-sum_vector
	.globl	diff_vector
	.type	diff_vector, @function
diff_vector:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movsd	-32(%rbp), %xmm0
	movsd	-48(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm0
	movsd	-40(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	diff_vector, .-diff_vector
	.globl	minus_vector
	.type	minus_vector, @function
minus_vector:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movsd	-32(%rbp), %xmm0
	movq	.LC0(%rip), %xmm1
	xorpd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm0
	movq	.LC0(%rip), %xmm1
	xorpd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	minus_vector, .-minus_vector
	.globl	dot
	.type	dot, @function
dot:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm2
	movsd	-24(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dot, .-dot
	.globl	prod
	.type	prod, @function
prod:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-24(%rbp), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	-32(%rbp), %xmm2
	movsd	-8(%rbp), %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	prod, .-prod
	.section	.rodata
.LC1:
	.string	"%lf%lf%lf%lf%d"
.LC2:
	.string	"%lf%lf"
.LC3:
	.string	"%.10lf %.10lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rax
	leaq	24(%rax), %rdi
	leaq	-48(%rbp), %rax
	leaq	16(%rax), %rcx
	leaq	-48(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-48(%rbp), %rax
	movq	%rsi, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -68(%rbp)
	jmp	.L20
.L21:
	leaq	-64(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	movsd	-56(%rbp), %xmm1
	pushq	-24(%rbp)
	pushq	-32(%rbp)
	pushq	-40(%rbp)
	pushq	-48(%rbp)
	movq	%rax, %xmm0
	call	pv
	addq	$32, %rsp
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movq	%rax, -64(%rbp)
	movsd	%xmm0, -56(%rbp)
	movsd	-56(%rbp), %xmm0
	movq	-64(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	addl	$1, -68(%rbp)
.L20:
	movl	-72(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L21
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC0:
	.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.
train
	.file	"temp.c"
	.text
	.globl	pv
	.type	pv, @function
pv:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
	movsd	32(%rbp), %xmm2
	movsd	40(%rbp), %xmm0
	movq	16(%rbp), %rax
	movsd	24(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movl	$0, %r12d
	movl	$0, %r13d
	movq	%rax, %r12
	movq	%xmm0, %r13
	movsd	-80(%rbp), %xmm2
	movsd	-72(%rbp), %xmm0
	movq	16(%rbp), %rax
	movsd	24(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	movq	%r12, %rcx
	movq	%r13, %rbx
	movq	%rsi, %xmm2
	movq	%rbx, %xmm0
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	dot
	movq	%xmm0, %rbx
	movsd	16(%rbp), %xmm2
	movsd	24(%rbp), %xmm0
	movq	32(%rbp), %rax
	movsd	40(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movl	$0, %r12d
	movl	$0, %r13d
	movq	%rax, %r12
	movq	%xmm0, %r13
	movsd	16(%rbp), %xmm2
	movsd	24(%rbp), %xmm0
	movq	32(%rbp), %rax
	movsd	40(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	diff_vector
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%r12, %r8
	movq	%r13, %r9
	movq	%r12, %rsi
	movq	%r13, %rdi
	movq	%r8, %xmm2
	movq	%rdi, %xmm0
	movq	%rax, %r8
	movq	%rdx, %r9
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%r8, %rax
	movq	%rdi, %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	dot
	movapd	%xmm0, %xmm1
	movq	%rbx, %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -56(%rbp)
	movsd	32(%rbp), %xmm0
	movsd	16(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-56(%rbp), %xmm1
	movsd	16(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
	movsd	40(%rbp), %xmm0
	movsd	24(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-56(%rbp), %xmm1
	movsd	24(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -40(%rbp)
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	pv, .-pv
	.globl	norm
	.type	norm, @function
norm:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm2
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	norm, .-norm
	.globl	norm2
	.type	norm2, @function
norm2:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm2
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	norm2, .-norm2
	.globl	distans
	.type	distans, @function
distans:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	movq	-48(%rbp), %rax
	movsd	-40(%rbp), %xmm1
	movq	%rax, %xmm0
	call	minus_vector
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rcx, %xmm2
	movq	%rdx, %xmm0
	movq	-64(%rbp), %rax
	movsd	-56(%rbp), %xmm1
	movapd	%xmm0, %xmm3
	movq	%rax, %xmm0
	call	sum_vector
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movq	%rax, -32(%rbp)
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movsd	-24(%rbp), %xmm1
	movq	%rax, %xmm0
	call	norm
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	distans, .-distans
	.globl	sum_vector
	.type	sum_vector, @function
sum_vector:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movsd	-32(%rbp), %xmm1
	movsd	-48(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm1
	movsd	-40(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	sum_vector, .-sum_vector
	.globl	diff_vector
	.type	diff_vector, @function
diff_vector:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movsd	-32(%rbp), %xmm0
	movsd	-48(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm0
	movsd	-40(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	diff_vector, .-diff_vector
	.globl	minus_vector
	.type	minus_vector, @function
minus_vector:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movsd	-32(%rbp), %xmm0
	movq	.LC0(%rip), %xmm1
	xorpd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm0
	movq	.LC0(%rip), %xmm1
	xorpd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, %rsi
	movq	%rdx, %rdi
	movq	%rax, %rcx
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rbx, %xmm1
	movq	%rax, %xmm0
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	minus_vector, .-minus_vector
	.globl	dot
	.type	dot, @function
dot:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm2
	movsd	-24(%rbp), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dot, .-dot
	.globl	prod
	.type	prod, @function
prod:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%xmm0, %rcx
	movapd	%xmm1, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%rcx, %rax
	movq	%xmm0, %rdx
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movl	$0, %eax
	movl	$0, %edx
	movq	%xmm1, %rax
	movq	%xmm0, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	-24(%rbp), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	-32(%rbp), %xmm2
	movsd	-8(%rbp), %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	prod, .-prod
	.section	.rodata
.LC1:
	.string	"%lf%lf%lf%lf%d"
.LC2:
	.string	"%lf%lf"
.LC3:
	.string	"%.10lf %.10lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rax
	leaq	24(%rax), %rdi
	leaq	-48(%rbp), %rax
	leaq	16(%rax), %rcx
	leaq	-48(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-48(%rbp), %rax
	movq	%rsi, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -68(%rbp)
	jmp	.L20
.L21:
	leaq	-64(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	movsd	-56(%rbp), %xmm1
	pushq	-24(%rbp)
	pushq	-32(%rbp)
	pushq	-40(%rbp)
	pushq	-48(%rbp)
	movq	%rax, %xmm0
	call	pv
	addq	$32, %rsp
	movq	%xmm0, %rax
	movapd	%xmm1, %xmm0
	movq	%rax, -64(%rbp)
	movsd	%xmm0, -56(%rbp)
	movsd	-56(%rbp), %xmm0
	movq	-64(%rbp), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	addl	$1, -68(%rbp)
.L20:
	movl	-72(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L21
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC0:
	.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:
