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>

typedef struct{
    int x;
    int y;
} point;

typedef struct{
    double x;
    double y;
} vector;

double distp(point *a, point *b);
double distv(vector *a, vector *b);
vector *relative(const point *a, const point *b, vector *r);
vector *normalize(vector *v);
void solve(int n);
double min(double a, double b);
int is_on_a_line(point *a, point *b, point *c);

int main()
{
    int n;
    char buf[128];
    while(1){
        fgets(buf, sizeof(buf), stdin);
        sscanf(buf, "%d", &n);
        if(n == 0) break;
        solve(n);
    }

    return 0;
}

void solve(int n)
{
    int i;
    char buf[128];
    int x, y;
    point points[512];
    int visited[512];
    int pos;
    int mp;
    int all_visited;
    double len;
    double m;
    double d;
    vector dir;
    vector r;

    // initialize
    for(i = 0; i < n; i++) visited[i] = 0;
    for(i = 0; i < n; i++){
        fgets(buf, sizeof(buf), stdin);
        sscanf(buf, " %d %d", &x, &y);
        points[i].x = x;
        points[i].y = y;
    }
    points[n].x = 0; points[n].y = 0; 
    pos = n;
    len = 0;
    dir.x = 0; dir.y = 1.0;

    // solve
    while(1){
        all_visited = 1;
        m = 3;
        // direction
        for(i = 0; i < n; i++){
            if(!visited[i]){
                all_visited = 0;
                d = distv(normalize(&dir), normalize(relative(points+pos, points+i, &r)));
                if(d < m){
                    m = d;
                    mp = i;
                }
            }
        }
        if(all_visited) break;

        // on a line
        for(i = 0; i < n; i++)
            if(!visited[i] && i != mp)
                if(is_on_a_line(points+pos, points+mp, points+i))
                    if(distp(points+pos, points+mp) > distp(points+pos, points+i))
                        mp = i;

        // update
        visited[mp] = 1;
        len += distp(points+pos, points+mp);
        relative(points+pos, points+mp, &dir);
        pos = mp;
    }

    printf("%.1lf\n", len);
}

int is_on_a_line(point *a, point *b, point *c)
{
    int dx1 = a->x - b->x;
    int dy1 = a->y - b->y;
    int dx2 = a->x - c->x;
    int dy2 = a->y - c->y;
    return dx1*dy2 == dx2*dy1;
}

vector *relative(const point *a, const point *b, vector *r)
{
    r->x = b->x - a->x;
    r->y = b->y - a->y;
    return r;
}

double distp(point *a, point *b)
{
    int dx = a->x - b->x;
    int dy = a->y - b->y;
    int sq = dx * dx + dy * dy;
    
    return sqrt((double)sq);
}

double distv(vector *a, vector *b)
{
    double dx = a->x - b->x;
    double dy = a->y - b->y;
    double sq = dx * dx + dy * dy;
    
    return sqrt((double)sq);
}

vector *normalize(vector *v)
{
    double norm = sqrt(v->x * v->x + v->y * v->y);
    v->x /= norm;
    v->y /= norm;
    return v;
}

double min(double a, double b)
{
    return (a < b ? a : b);
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L4:
	movq	stdin(%rip), %rdx
	leaq	-144(%rbp), %rax
	movl	$128, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-148(%rbp), %rdx
	leaq	-144(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	-148(%rbp), %eax
	testl	%eax, %eax
	je	.L8
	movl	-148(%rbp), %eax
	movl	%eax, %edi
	call	solve
	jmp	.L4
.L8:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	" %d %d"
.LC5:
	.string	"%.1lf\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2296, %rsp
	.cfi_offset 3, -24
	movl	%edi, -6388(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -6376(%rbp)
	jmp	.L10
.L11:
	movl	-6376(%rbp), %eax
	cltq
	movl	$0, -6304(%rbp,%rax,4)
	addl	$1, -6376(%rbp)
.L10:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L11
	movl	$0, -6376(%rbp)
	jmp	.L12
.L13:
	movq	stdin(%rip), %rdx
	leaq	-160(%rbp), %rax
	movl	$128, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-6380(%rbp), %rcx
	leaq	-6384(%rbp), %rdx
	leaq	-160(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	-6384(%rbp), %edx
	movl	-6376(%rbp), %eax
	cltq
	movl	%edx, -4256(%rbp,%rax,8)
	movl	-6380(%rbp), %edx
	movl	-6376(%rbp), %eax
	cltq
	movl	%edx, -4252(%rbp,%rax,8)
	addl	$1, -6376(%rbp)
.L12:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L13
	movl	-6388(%rbp), %eax
	cltq
	movl	$0, -4256(%rbp,%rax,8)
	movl	-6388(%rbp), %eax
	cltq
	movl	$0, -4252(%rbp,%rax,8)
	movl	-6388(%rbp), %eax
	movl	%eax, -6372(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -6360(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -6336(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -6328(%rbp)
.L24:
	movl	$1, -6364(%rbp)
	movsd	.LC4(%rip), %xmm0
	movsd	%xmm0, -6352(%rbp)
	movl	$0, -6376(%rbp)
	jmp	.L14
.L17:
	movl	-6376(%rbp), %eax
	cltq
	movl	-6304(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, -6364(%rbp)
	movl	-6376(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rsi
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rcx
	leaq	-6320(%rbp), %rax
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	relative
	movq	%rax, %rdi
	call	normalize
	movq	%rax, %rbx
	leaq	-6336(%rbp), %rax
	movq	%rax, %rdi
	call	normalize
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	distv
	movq	%xmm0, %rax
	movq	%rax, -6344(%rbp)
	movsd	-6352(%rbp), %xmm0
	comisd	-6344(%rbp), %xmm0
	jbe	.L15
	movsd	-6344(%rbp), %xmm0
	movsd	%xmm0, -6352(%rbp)
	movl	-6376(%rbp), %eax
	movl	%eax, -6368(%rbp)
.L15:
	addl	$1, -6376(%rbp)
.L14:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L17
	cmpl	$0, -6364(%rbp)
	jne	.L29
	movl	$0, -6376(%rbp)
	jmp	.L20
.L23:
	movl	-6376(%rbp), %eax
	cltq
	movl	-6304(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L21
	movl	-6376(%rbp), %eax
	cmpl	-6368(%rbp), %eax
	je	.L21
	movl	-6376(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rcx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	-4256(%rbp), %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	is_on_a_line
	testl	%eax, %eax
	je	.L21
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	distp
	movq	%xmm0, %rbx
	movl	-6376(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	distp
	movq	%rbx, %xmm2
	comisd	%xmm0, %xmm2
	jbe	.L21
	movl	-6376(%rbp), %eax
	movl	%eax, -6368(%rbp)
.L21:
	addl	$1, -6376(%rbp)
.L20:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L23
	movl	-6368(%rbp), %eax
	cltq
	movl	$1, -6304(%rbp,%rax,4)
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	distp
	movsd	-6360(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -6360(%rbp)
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rsi
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rcx
	leaq	-6336(%rbp), %rax
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	relative
	movl	-6368(%rbp), %eax
	movl	%eax, -6372(%rbp)
	jmp	.L24
.L29:
	nop
	movq	-6360(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	nop
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.globl	is_on_a_line
	.type	is_on_a_line, @function
is_on_a_line:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-32(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-40(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	imull	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	-12(%rbp), %eax
	cmpl	%eax, %edx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	is_on_a_line, .-is_on_a_line
	.globl	relative
	.type	relative, @function
relative:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	subl	%eax, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, (%rax)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	subl	%eax, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, 8(%rax)
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	relative, .-relative
	.globl	distp
	.type	distp, @function
distp:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-32(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-4(%rbp), %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
.LFE4:
	.size	distp, .-distp
	.globl	distv
	.type	distv, @function
distv:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	-40(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-48(%rbp), %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-40(%rbp), %rax
	movsd	8(%rax), %xmm0
	movq	-48(%rbp), %rax
	movsd	8(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-24(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	distv, .-distv
	.globl	normalize
	.type	normalize, @function
normalize:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-24(%rbp), %rax
	movsd	(%rax), %xmm0
	mulsd	%xmm0, %xmm1
	movq	-24(%rbp), %rax
	movsd	8(%rax), %xmm2
	movq	-24(%rbp), %rax
	movsd	8(%rax), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movsd	(%rax), %xmm0
	divsd	-8(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, (%rax)
	movq	-24(%rbp), %rax
	movsd	8(%rax), %xmm0
	divsd	-8(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, 8(%rax)
	movq	-24(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	normalize, .-normalize
	.globl	min
	.type	min, @function
min:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movsd	%xmm1, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	comisd	-8(%rbp), %xmm0
	jbe	.L46
	movsd	-8(%rbp), %xmm0
	jmp	.L44
.L46:
	movsd	-16(%rbp), %xmm0
.L44:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.align 8
.LC4:
	.long	0
	.long	1074266112
	.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
.LC3:
	.string	" %d %d"
.LC4:
	.string	"%.1lf\n"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2312, %rsp
	.cfi_def_cfa_offset 6464
	movl	%edi, 52(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 6392(%rsp)
	xorl	%eax, %eax
	testl	%edi, %edi
	jle	.L5
	movl	%edi, %edx
	leaq	112(%rsp), %rdi
	leaq	104(%rsp), %r13
	xorl	%esi, %esi
	movq	%rdx, %r14
	salq	$2, %rdx
	leaq	2160(%rsp), %r15
	leaq	6256(%rsp), %rbp
	call	memset@PLT
	leal	-1(%r14), %eax
	leaq	108(%rsp), %r14
	movl	%ebx, 8(%rsp)
	leaq	2168(%rsp,%rax,8), %rax
	movq	%r15, %rbx
	leaq	.LC3(%rip), %r12
	movq	%r14, %r15
	movq	%r13, %r14
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbp, %rdi
	addq	$8, %rbx
	call	fgets@PLT
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
	movd	104(%rsp), %xmm0
	movd	108(%rsp), %xmm6
	punpckldq	%xmm6, %xmm0
	movq	%xmm0, -8(%rbx)
	cmpq	%rbx, %r13
	jne	.L4
	movl	8(%rsp), %ebx
.L5:
	movslq	52(%rsp), %r10
	movl	52(%rsp), %r8d
	pxor	%xmm3, %xmm3
	leaq	2160(%rsp), %r11
	movsd	.LC0(%rip), %xmm2
	movapd	%xmm3, %xmm1
	movapd	%xmm3, %xmm5
	movq	%r11, %r14
	movl	%r10d, 8(%rsp)
	movsd	.LC2(%rip), %xmm6
	movq	%r10, %r13
	movq	$0, 2160(%rsp,%r10,8)
	testl	%r8d, %r8d
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L58:
	movslq	8(%rsp), %rax
	xorl	%ebp, %ebp
	movapd	%xmm6, %xmm4
	leaq	112(%rsp), %r12
	leaq	(%r14,%rax,8), %r8
	movl	$1, %eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rbp
	cmpq	%rbp, %r13
	je	.L56
.L17:
	movl	(%r12,%rbp,4), %edi
	movl	%ebp, %r15d
	testl	%edi, %edi
	jne	.L7
	movl	(%r14,%rbp,8), %eax
	pxor	%xmm8, %xmm8
	subl	(%r8), %eax
	pxor	%xmm7, %xmm7
	cvtsi2sdl	%eax, %xmm8
	movl	4(%r14,%rbp,8), %eax
	subl	4(%r8), %eax
	cvtsi2sdl	%eax, %xmm7
	movapd	%xmm8, %xmm0
	mulsd	%xmm8, %xmm0
	movapd	%xmm7, %xmm9
	mulsd	%xmm7, %xmm9
	addsd	%xmm9, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L47
	sqrtsd	%xmm0, %xmm0
.L10:
	divsd	%xmm0, %xmm8
	divsd	%xmm0, %xmm7
	movapd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	movapd	%xmm8, %xmm9
	movapd	%xmm7, %xmm8
	movapd	%xmm2, %xmm7
	mulsd	%xmm2, %xmm7
	addsd	%xmm7, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L48
	sqrtsd	%xmm0, %xmm0
.L13:
	divsd	%xmm0, %xmm2
	divsd	%xmm0, %xmm1
	movapd	%xmm2, %xmm7
	subsd	%xmm8, %xmm7
	mulsd	%xmm7, %xmm7
	movapd	%xmm1, %xmm0
	subsd	%xmm9, %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm7, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L49
	sqrtsd	%xmm0, %xmm0
.L16:
	xorl	%eax, %eax
	comisd	%xmm0, %xmm4
	jbe	.L7
	addq	$1, %rbp
	movapd	%xmm0, %xmm4
	xorl	%eax, %eax
	movl	%r15d, %ebx
	cmpq	%rbp, %r13
	jne	.L17
	.p2align 4,,10
	.p2align 3
.L56:
	testl	%eax, %eax
	jne	.L6
	movslq	%ebx, %rax
	movq	%r8, 40(%rsp)
	movl	4(%r8), %r15d
	movq	%r14, %rbp
	movl	2164(%rsp,%rax,8), %r10d
	movl	(%r8), %ecx
	movl	%ebx, 8(%rsp)
	movq	%rax, %r11
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%r15d, %eax
	movl	(%r12,%rbx,4), %esi
	movl	%ebx, %r8d
	leaq	(%r14,%r11,8), %rdx
	subl	%r10d, %eax
	movl	%eax, %r9d
	imull	%eax, %r9d
	testl	%esi, %esi
	jne	.L18
	cmpl	%ebx, 8(%rsp)
	je	.L18
	movl	%ecx, %edi
	subl	(%rdx), %edi
	movl	%ecx, %esi
	subl	0(%rbp), %esi
	movl	%edi, 16(%rsp)
	movl	4(%rbp), %edi
	imull	%esi, %eax
	movl	%edi, 24(%rsp)
	movl	%r15d, %edi
	subl	24(%rsp), %edi
	movl	%edi, 32(%rsp)
	imull	16(%rsp), %edi
	cmpl	%eax, %edi
	je	.L57
.L18:
	addq	$1, %rbx
	addq	$8, %rbp
	cmpq	%rbx, %r13
	jne	.L25
	movl	(%rdx), %ebx
	movl	%ecx, %eax
	pxor	%xmm0, %xmm0
	movl	$1, 112(%rsp,%r11,4)
	subl	%ebx, %eax
	imull	%eax, %eax
	addl	%r9d, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L52
	sqrtsd	%xmm0, %xmm0
.L28:
	movl	%r10d, %eax
	movl	52(%rsp), %r8d
	subl	%ecx, %ebx
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%ebx, %xmm1
	subl	%r15d, %eax
	movl	8(%rsp), %ebx
	cvtsi2sdl	%eax, %xmm2
	addsd	%xmm0, %xmm5
	testl	%r8d, %r8d
	jg	.L58
.L6:
	movapd	%xmm5, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	6392(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$6408, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L57:
	.cfi_restore_state
	movl	16(%rsp), %edi
	pxor	%xmm1, %xmm1
	imull	%edi, %edi
	addl	%r9d, %edi
	cvtsi2sdl	%edi, %xmm1
	ucomisd	%xmm1, %xmm3
	ja	.L50
	sqrtsd	%xmm1, %xmm1
.L21:
	movl	32(%rsp), %eax
	imull	%esi, %esi
	pxor	%xmm0, %xmm0
	imull	%eax, %eax
	addl	%eax, %esi
	cvtsi2sdl	%esi, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L51
	sqrtsd	%xmm0, %xmm0
.L24:
	comisd	%xmm0, %xmm1
	jbe	.L54
	movslq	%r8d, %r11
	movl	24(%rsp), %r10d
	movl	%eax, %r9d
	movq	%rbp, %rdx
	movl	%r11d, 8(%rsp)
.L54:
	movq	40(%rsp), %rax
	movl	(%rax), %ecx
	jmp	.L18
.L47:
	movq	%r8, 56(%rsp)
	movsd	%xmm4, 64(%rsp)
	movsd	%xmm1, 40(%rsp)
	movsd	%xmm7, 32(%rsp)
	movsd	%xmm8, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm5, 8(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movq	56(%rsp), %r8
	pxor	%xmm3, %xmm3
	movsd	64(%rsp), %xmm4
	movsd	40(%rsp), %xmm1
	movsd	32(%rsp), %xmm7
	movsd	24(%rsp), %xmm8
	movq	%rax, %xmm6
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm5
	jmp	.L10
.L49:
	movq	%r8, 32(%rsp)
	movsd	%xmm4, 40(%rsp)
	movsd	%xmm1, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm5, 8(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movq	32(%rsp), %r8
	pxor	%xmm3, %xmm3
	movsd	40(%rsp), %xmm4
	movsd	24(%rsp), %xmm1
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm5
	movq	%rax, %xmm6
	jmp	.L16
.L48:
	movq	%r8, 56(%rsp)
	movsd	%xmm4, 64(%rsp)
	movsd	%xmm1, 40(%rsp)
	movsd	%xmm8, 32(%rsp)
	movsd	%xmm9, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm5, 8(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movq	56(%rsp), %r8
	pxor	%xmm3, %xmm3
	movsd	64(%rsp), %xmm4
	movsd	40(%rsp), %xmm1
	movsd	32(%rsp), %xmm8
	movsd	24(%rsp), %xmm9
	movq	%rax, %xmm6
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm5
	jmp	.L13
.L59:
	call	__stack_chk_fail@PLT
.L51:
	movl	%r9d, 92(%rsp)
	movq	%rdx, 80(%rsp)
	movq	%r11, 72(%rsp)
	movl	%r10d, 88(%rsp)
	movl	%r8d, 64(%rsp)
	movl	%eax, 32(%rsp)
	movsd	%xmm1, 56(%rsp)
	movsd	%xmm5, 16(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movl	92(%rsp), %r9d
	pxor	%xmm3, %xmm3
	movq	80(%rsp), %rdx
	movq	72(%rsp), %r11
	movq	%rax, %xmm6
	movl	88(%rsp), %r10d
	movl	32(%rsp), %eax
	movl	64(%rsp), %r8d
	movsd	56(%rsp), %xmm1
	movsd	16(%rsp), %xmm5
	jmp	.L24
.L50:
	movapd	%xmm1, %xmm0
	movl	%r9d, 92(%rsp)
	movq	%rdx, 80(%rsp)
	movq	%r11, 72(%rsp)
	movl	%r10d, 88(%rsp)
	movl	%esi, 56(%rsp)
	movsd	%xmm5, 16(%rsp)
	movl	%ebx, 64(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movl	92(%rsp), %r9d
	pxor	%xmm3, %xmm3
	movq	80(%rsp), %rdx
	movq	72(%rsp), %r11
	movapd	%xmm0, %xmm1
	movl	88(%rsp), %r10d
	movl	64(%rsp), %r8d
	movq	%rax, %xmm6
	movl	56(%rsp), %esi
	movsd	16(%rsp), %xmm5
	jmp	.L21
.L52:
	movl	%ecx, 32(%rsp)
	movl	%r10d, 24(%rsp)
	movsd	%xmm5, 16(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movl	32(%rsp), %ecx
	pxor	%xmm3, %xmm3
	movl	24(%rsp), %r10d
	movsd	16(%rsp), %xmm5
	movq	%rax, %xmm6
	jmp	.L28
	.cfi_endproc
.LFE24:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC5(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$160, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	12(%rsp), %r12
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L65:
	call	solve
.L62:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jne	.L65
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L66
	addq	$160, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L66:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	is_on_a_line
	.type	is_on_a_line, @function
is_on_a_line:
.LFB25:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	movl	(%rdi), %ecx
	movl	%eax, %r8d
	movl	%ecx, %edi
	subl	4(%rdx), %r8d
	subl	(%rsi), %edi
	subl	4(%rsi), %eax
	imull	%r8d, %edi
	subl	(%rdx), %ecx
	imull	%ecx, %eax
	cmpl	%eax, %edi
	sete	%al
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE25:
	.size	is_on_a_line, .-is_on_a_line
	.p2align 4
	.globl	relative
	.type	relative, @function
relative:
.LFB26:
	.cfi_startproc
	endbr64
	movq	(%rsi), %xmm0
	movq	(%rdi), %xmm1
	movq	%rdx, %rax
	psubd	%xmm1, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	movups	%xmm0, (%rdx)
	ret
	.cfi_endproc
.LFE26:
	.size	relative, .-relative
	.p2align 4
	.globl	distp
	.type	distp, @function
distp:
.LFB27:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movl	4(%rdi), %edx
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	subl	(%rsi), %eax
	subl	4(%rsi), %edx
	imull	%eax, %eax
	imull	%edx, %edx
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L77
	sqrtsd	%xmm0, %xmm0
	ret
.L77:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE27:
	.size	distp, .-distp
	.p2align 4
	.globl	distv
	.type	distv, @function
distv:
.LFB28:
	.cfi_startproc
	endbr64
	movsd	(%rdi), %xmm0
	movsd	8(%rdi), %xmm1
	subsd	(%rsi), %xmm0
	subsd	8(%rsi), %xmm1
	mulsd	%xmm0, %xmm0
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L86
	sqrtsd	%xmm0, %xmm0
	ret
.L86:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE28:
	.size	distv, .-distv
	.p2align 4
	.globl	normalize
	.type	normalize, @function
normalize:
.LFB29:
	.cfi_startproc
	endbr64
	movupd	(%rdi), %xmm1
	movsd	(%rdi), %xmm0
	movq	%rdi, %rax
	mulsd	%xmm0, %xmm0
	movapd	%xmm1, %xmm3
	unpckhpd	%xmm3, %xmm3
	movapd	%xmm3, %xmm2
	mulsd	%xmm3, %xmm2
	addsd	%xmm2, %xmm0
	pxor	%xmm2, %xmm2
	ucomisd	%xmm0, %xmm2
	ja	.L92
	sqrtsd	%xmm0, %xmm0
	unpcklpd	%xmm0, %xmm0
	divpd	%xmm0, %xmm1
	movups	%xmm1, (%rdi)
	ret
.L92:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movaps	%xmm1, (%rsp)
	movq	%rdi, 24(%rsp)
	call	sqrt@PLT
	movapd	(%rsp), %xmm1
	movq	24(%rsp), %rax
	unpcklpd	%xmm0, %xmm0
	divpd	%xmm0, %xmm1
	movups	%xmm1, (%rax)
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE29:
	.size	normalize, .-normalize
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB30:
	.cfi_startproc
	endbr64
	minsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE30:
	.size	min, .-min
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1074266112
	.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
.LC3:
	.string	" %d %d"
.LC4:
	.string	"%.1lf\n"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2312, %rsp
	.cfi_def_cfa_offset 6464
	movl	%edi, 52(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 6392(%rsp)
	xorl	%eax, %eax
	testl	%edi, %edi
	jle	.L5
	movl	%edi, %edx
	leaq	112(%rsp), %rdi
	leaq	104(%rsp), %r13
	xorl	%esi, %esi
	movq	%rdx, %r14
	salq	$2, %rdx
	leaq	2160(%rsp), %r15
	leaq	6256(%rsp), %rbp
	call	memset@PLT
	leal	-1(%r14), %eax
	leaq	108(%rsp), %r14
	movl	%ebx, 8(%rsp)
	leaq	2168(%rsp,%rax,8), %rax
	movq	%r15, %rbx
	leaq	.LC3(%rip), %r12
	movq	%r14, %r15
	movq	%r13, %r14
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbp, %rdi
	addq	$8, %rbx
	call	fgets@PLT
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
	movd	104(%rsp), %xmm0
	movd	108(%rsp), %xmm6
	punpckldq	%xmm6, %xmm0
	movq	%xmm0, -8(%rbx)
	cmpq	%rbx, %r13
	jne	.L4
	movl	8(%rsp), %ebx
.L5:
	movslq	52(%rsp), %r10
	movl	52(%rsp), %r8d
	pxor	%xmm3, %xmm3
	leaq	2160(%rsp), %r11
	movsd	.LC0(%rip), %xmm2
	movapd	%xmm3, %xmm1
	movapd	%xmm3, %xmm5
	movq	%r11, %r14
	movl	%r10d, 8(%rsp)
	movsd	.LC2(%rip), %xmm6
	movq	%r10, %r13
	movq	$0, 2160(%rsp,%r10,8)
	testl	%r8d, %r8d
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L58:
	movslq	8(%rsp), %rax
	xorl	%ebp, %ebp
	movapd	%xmm6, %xmm4
	leaq	112(%rsp), %r12
	leaq	(%r14,%rax,8), %r8
	movl	$1, %eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rbp
	cmpq	%rbp, %r13
	je	.L56
.L17:
	movl	(%r12,%rbp,4), %edi
	movl	%ebp, %r15d
	testl	%edi, %edi
	jne	.L7
	movl	(%r14,%rbp,8), %eax
	pxor	%xmm8, %xmm8
	subl	(%r8), %eax
	pxor	%xmm7, %xmm7
	cvtsi2sdl	%eax, %xmm8
	movl	4(%r14,%rbp,8), %eax
	subl	4(%r8), %eax
	cvtsi2sdl	%eax, %xmm7
	movapd	%xmm8, %xmm0
	mulsd	%xmm8, %xmm0
	movapd	%xmm7, %xmm9
	mulsd	%xmm7, %xmm9
	addsd	%xmm9, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L47
	sqrtsd	%xmm0, %xmm0
.L10:
	divsd	%xmm0, %xmm8
	divsd	%xmm0, %xmm7
	movapd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	movapd	%xmm8, %xmm9
	movapd	%xmm7, %xmm8
	movapd	%xmm2, %xmm7
	mulsd	%xmm2, %xmm7
	addsd	%xmm7, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L48
	sqrtsd	%xmm0, %xmm0
.L13:
	divsd	%xmm0, %xmm2
	divsd	%xmm0, %xmm1
	movapd	%xmm2, %xmm7
	subsd	%xmm8, %xmm7
	mulsd	%xmm7, %xmm7
	movapd	%xmm1, %xmm0
	subsd	%xmm9, %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm7, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L49
	sqrtsd	%xmm0, %xmm0
.L16:
	xorl	%eax, %eax
	comisd	%xmm0, %xmm4
	jbe	.L7
	addq	$1, %rbp
	movapd	%xmm0, %xmm4
	xorl	%eax, %eax
	movl	%r15d, %ebx
	cmpq	%rbp, %r13
	jne	.L17
	.p2align 4,,10
	.p2align 3
.L56:
	testl	%eax, %eax
	jne	.L6
	movslq	%ebx, %rax
	movq	%r8, 40(%rsp)
	movl	4(%r8), %r15d
	movq	%r14, %rbp
	movl	2164(%rsp,%rax,8), %r10d
	movl	(%r8), %ecx
	movl	%ebx, 8(%rsp)
	movq	%rax, %r11
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%r15d, %eax
	movl	(%r12,%rbx,4), %esi
	movl	%ebx, %r8d
	leaq	(%r14,%r11,8), %rdx
	subl	%r10d, %eax
	movl	%eax, %r9d
	imull	%eax, %r9d
	testl	%esi, %esi
	jne	.L18
	cmpl	%ebx, 8(%rsp)
	je	.L18
	movl	%ecx, %edi
	subl	(%rdx), %edi
	movl	%ecx, %esi
	subl	0(%rbp), %esi
	movl	%edi, 16(%rsp)
	movl	4(%rbp), %edi
	imull	%esi, %eax
	movl	%edi, 24(%rsp)
	movl	%r15d, %edi
	subl	24(%rsp), %edi
	movl	%edi, 32(%rsp)
	imull	16(%rsp), %edi
	cmpl	%eax, %edi
	je	.L57
.L18:
	addq	$1, %rbx
	addq	$8, %rbp
	cmpq	%rbx, %r13
	jne	.L25
	movl	(%rdx), %ebx
	movl	%ecx, %eax
	pxor	%xmm0, %xmm0
	movl	$1, 112(%rsp,%r11,4)
	subl	%ebx, %eax
	imull	%eax, %eax
	addl	%r9d, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L52
	sqrtsd	%xmm0, %xmm0
.L28:
	movl	%r10d, %eax
	movl	52(%rsp), %r8d
	subl	%ecx, %ebx
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%ebx, %xmm1
	subl	%r15d, %eax
	movl	8(%rsp), %ebx
	cvtsi2sdl	%eax, %xmm2
	addsd	%xmm0, %xmm5
	testl	%r8d, %r8d
	jg	.L58
.L6:
	movapd	%xmm5, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	6392(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$6408, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L57:
	.cfi_restore_state
	movl	16(%rsp), %edi
	pxor	%xmm1, %xmm1
	imull	%edi, %edi
	addl	%r9d, %edi
	cvtsi2sdl	%edi, %xmm1
	ucomisd	%xmm1, %xmm3
	ja	.L50
	sqrtsd	%xmm1, %xmm1
.L21:
	movl	32(%rsp), %eax
	imull	%esi, %esi
	pxor	%xmm0, %xmm0
	imull	%eax, %eax
	addl	%eax, %esi
	cvtsi2sdl	%esi, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L51
	sqrtsd	%xmm0, %xmm0
.L24:
	comisd	%xmm0, %xmm1
	jbe	.L54
	movslq	%r8d, %r11
	movl	24(%rsp), %r10d
	movl	%eax, %r9d
	movq	%rbp, %rdx
	movl	%r11d, 8(%rsp)
.L54:
	movq	40(%rsp), %rax
	movl	(%rax), %ecx
	jmp	.L18
.L47:
	movq	%r8, 56(%rsp)
	movsd	%xmm4, 64(%rsp)
	movsd	%xmm1, 40(%rsp)
	movsd	%xmm7, 32(%rsp)
	movsd	%xmm8, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm5, 8(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movq	56(%rsp), %r8
	pxor	%xmm3, %xmm3
	movsd	64(%rsp), %xmm4
	movsd	40(%rsp), %xmm1
	movsd	32(%rsp), %xmm7
	movsd	24(%rsp), %xmm8
	movq	%rax, %xmm6
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm5
	jmp	.L10
.L49:
	movq	%r8, 32(%rsp)
	movsd	%xmm4, 40(%rsp)
	movsd	%xmm1, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm5, 8(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movq	32(%rsp), %r8
	pxor	%xmm3, %xmm3
	movsd	40(%rsp), %xmm4
	movsd	24(%rsp), %xmm1
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm5
	movq	%rax, %xmm6
	jmp	.L16
.L48:
	movq	%r8, 56(%rsp)
	movsd	%xmm4, 64(%rsp)
	movsd	%xmm1, 40(%rsp)
	movsd	%xmm8, 32(%rsp)
	movsd	%xmm9, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm5, 8(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movq	56(%rsp), %r8
	pxor	%xmm3, %xmm3
	movsd	64(%rsp), %xmm4
	movsd	40(%rsp), %xmm1
	movsd	32(%rsp), %xmm8
	movsd	24(%rsp), %xmm9
	movq	%rax, %xmm6
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm5
	jmp	.L13
.L59:
	call	__stack_chk_fail@PLT
.L51:
	movl	%r9d, 92(%rsp)
	movq	%rdx, 80(%rsp)
	movq	%r11, 72(%rsp)
	movl	%r10d, 88(%rsp)
	movl	%r8d, 64(%rsp)
	movl	%eax, 32(%rsp)
	movsd	%xmm1, 56(%rsp)
	movsd	%xmm5, 16(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movl	92(%rsp), %r9d
	pxor	%xmm3, %xmm3
	movq	80(%rsp), %rdx
	movq	72(%rsp), %r11
	movq	%rax, %xmm6
	movl	88(%rsp), %r10d
	movl	32(%rsp), %eax
	movl	64(%rsp), %r8d
	movsd	56(%rsp), %xmm1
	movsd	16(%rsp), %xmm5
	jmp	.L24
.L50:
	movapd	%xmm1, %xmm0
	movl	%r9d, 92(%rsp)
	movq	%rdx, 80(%rsp)
	movq	%r11, 72(%rsp)
	movl	%r10d, 88(%rsp)
	movl	%esi, 56(%rsp)
	movsd	%xmm5, 16(%rsp)
	movl	%ebx, 64(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movl	92(%rsp), %r9d
	pxor	%xmm3, %xmm3
	movq	80(%rsp), %rdx
	movq	72(%rsp), %r11
	movapd	%xmm0, %xmm1
	movl	88(%rsp), %r10d
	movl	64(%rsp), %r8d
	movq	%rax, %xmm6
	movl	56(%rsp), %esi
	movsd	16(%rsp), %xmm5
	jmp	.L21
.L52:
	movl	%ecx, 32(%rsp)
	movl	%r10d, 24(%rsp)
	movsd	%xmm5, 16(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movl	32(%rsp), %ecx
	pxor	%xmm3, %xmm3
	movl	24(%rsp), %r10d
	movsd	16(%rsp), %xmm5
	movq	%rax, %xmm6
	jmp	.L28
	.cfi_endproc
.LFE24:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC5(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$160, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	12(%rsp), %r12
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L65:
	call	solve
.L62:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__isoc99_sscanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jne	.L65
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L66
	addq	$160, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L66:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	is_on_a_line
	.type	is_on_a_line, @function
is_on_a_line:
.LFB25:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	movl	(%rdi), %ecx
	movl	%eax, %r8d
	movl	%ecx, %edi
	subl	4(%rdx), %r8d
	subl	(%rsi), %edi
	subl	4(%rsi), %eax
	imull	%r8d, %edi
	subl	(%rdx), %ecx
	imull	%ecx, %eax
	cmpl	%eax, %edi
	sete	%al
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE25:
	.size	is_on_a_line, .-is_on_a_line
	.p2align 4
	.globl	relative
	.type	relative, @function
relative:
.LFB26:
	.cfi_startproc
	endbr64
	movq	(%rsi), %xmm0
	movq	(%rdi), %xmm1
	movq	%rdx, %rax
	psubd	%xmm1, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	movups	%xmm0, (%rdx)
	ret
	.cfi_endproc
.LFE26:
	.size	relative, .-relative
	.p2align 4
	.globl	distp
	.type	distp, @function
distp:
.LFB27:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movl	4(%rdi), %edx
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	subl	(%rsi), %eax
	subl	4(%rsi), %edx
	imull	%eax, %eax
	imull	%edx, %edx
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L77
	sqrtsd	%xmm0, %xmm0
	ret
.L77:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE27:
	.size	distp, .-distp
	.p2align 4
	.globl	distv
	.type	distv, @function
distv:
.LFB28:
	.cfi_startproc
	endbr64
	movsd	(%rdi), %xmm0
	movsd	8(%rdi), %xmm1
	subsd	(%rsi), %xmm0
	subsd	8(%rsi), %xmm1
	mulsd	%xmm0, %xmm0
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L86
	sqrtsd	%xmm0, %xmm0
	ret
.L86:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE28:
	.size	distv, .-distv
	.p2align 4
	.globl	normalize
	.type	normalize, @function
normalize:
.LFB29:
	.cfi_startproc
	endbr64
	movupd	(%rdi), %xmm1
	movsd	(%rdi), %xmm0
	movq	%rdi, %rax
	mulsd	%xmm0, %xmm0
	movapd	%xmm1, %xmm3
	unpckhpd	%xmm3, %xmm3
	movapd	%xmm3, %xmm2
	mulsd	%xmm3, %xmm2
	addsd	%xmm2, %xmm0
	pxor	%xmm2, %xmm2
	ucomisd	%xmm0, %xmm2
	ja	.L92
	sqrtsd	%xmm0, %xmm0
	unpcklpd	%xmm0, %xmm0
	divpd	%xmm0, %xmm1
	movups	%xmm1, (%rdi)
	ret
.L92:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movaps	%xmm1, (%rsp)
	movq	%rdi, 24(%rsp)
	call	sqrt@PLT
	movapd	(%rsp), %xmm1
	movq	24(%rsp), %rax
	unpcklpd	%xmm0, %xmm0
	divpd	%xmm0, %xmm1
	movups	%xmm1, (%rax)
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE29:
	.size	normalize, .-normalize
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB30:
	.cfi_startproc
	endbr64
	minsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE30:
	.size	min, .-min
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1074266112
	.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>

typedef struct{
    int x;
    int y;
} point;

typedef struct{
    double x;
    double y;
} vector;

double distp(point *a, point *b);
double distv(vector *a, vector *b);
vector *relative(const point *a, const point *b, vector *r);
vector *normalize(vector *v);
void solve(int n);
double min(double a, double b);
int is_on_a_line(point *a, point *b, point *c);

int main()
{
    int n;
    char buf[128];
    while(1){
        fgets(buf, sizeof(buf), stdin);
        sscanf(buf, "%d", &n);
        if(n == 0) break;
        solve(n);
    }

    return 0;
}

void solve(int n)
{
    int i;
    char buf[128];
    int x, y;
    point points[512];
    int visited[512];
    int pos;
    int mp;
    int all_visited;
    double len;
    double m;
    double d;
    vector dir;
    vector r;

    // initialize
    for(i = 0; i < n; i++) visited[i] = 0;
    for(i = 0; i < n; i++){
        fgets(buf, sizeof(buf), stdin);
        sscanf(buf, " %d %d", &x, &y);
        points[i].x = x;
        points[i].y = y;
    }
    points[n].x = 0; points[n].y = 0; 
    pos = n;
    len = 0;
    dir.x = 0; dir.y = 1.0;

    // solve
    while(1){
        all_visited = 1;
        m = 3;
        // direction
        for(i = 0; i < n; i++){
            if(!visited[i]){
                all_visited = 0;
                d = distv(normalize(&dir), normalize(relative(points+pos, points+i, &r)));
                if(d < m){
                    m = d;
                    mp = i;
                }
            }
        }
        if(all_visited) break;

        // on a line
        for(i = 0; i < n; i++)
            if(!visited[i] && i != mp)
                if(is_on_a_line(points+pos, points+mp, points+i))
                    if(distp(points+pos, points+mp) > distp(points+pos, points+i))
                        mp = i;

        // update
        visited[mp] = 1;
        len += distp(points+pos, points+mp);
        relative(points+pos, points+mp, &dir);
        pos = mp;
    }

    printf("%.1lf\n", len);
}

int is_on_a_line(point *a, point *b, point *c)
{
    int dx1 = a->x - b->x;
    int dy1 = a->y - b->y;
    int dx2 = a->x - c->x;
    int dy2 = a->y - c->y;
    return dx1*dy2 == dx2*dy1;
}

vector *relative(const point *a, const point *b, vector *r)
{
    r->x = b->x - a->x;
    r->y = b->y - a->y;
    return r;
}

double distp(point *a, point *b)
{
    int dx = a->x - b->x;
    int dy = a->y - b->y;
    int sq = dx * dx + dy * dy;
    
    return sqrt((double)sq);
}

double distv(vector *a, vector *b)
{
    double dx = a->x - b->x;
    double dy = a->y - b->y;
    double sq = dx * dx + dy * dy;
    
    return sqrt((double)sq);
}

vector *normalize(vector *v)
{
    double norm = sqrt(v->x * v->x + v->y * v->y);
    v->x /= norm;
    v->y /= norm;
    return v;
}

double min(double a, double b)
{
    return (a < b ? a : b);
}


8
   60  70
   20  40
   50  50
   70  10
   10  70
   80  90
   70  50
  100  50
5
   60  50
    0  80
   60  20
   10  20
   60  80
0

388.9
250.0

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>

typedef struct{
    int x;
    int y;
} point;

typedef struct{
    double x;
    double y;
} vector;

double distp(point *a, point *b);
double distv(vector *a, vector *b);
vector *relative(const point *a, const point *b, vector *r);
vector *normalize(vector *v);
void solve(int n);
double min(double a, double b);
int is_on_a_line(point *a, point *b, point *c);

int main()
{
    int n;
    char buf[128];
    while(1){
        fgets(buf, sizeof(buf), stdin);
        sscanf(buf, "%d", &n);
        if(n == 0) break;
        solve(n);
    }

    return 0;
}

void solve(int n)
{
    int i;
    char buf[128];
    int x, y;
    point points[512];
    int visited[512];
    int pos;
    int mp;
    int all_visited;
    double len;
    double m;
    double d;
    vector dir;
    vector r;

    // initialize
    for(i = 0; i < n; i++) visited[i] = 0;
    for(i = 0; i < n; i++){
        fgets(buf, sizeof(buf), stdin);
        sscanf(buf, " %d %d", &x, &y);
        points[i].x = x;
        points[i].y = y;
    }
    points[n].x = 0; points[n].y = 0; 
    pos = n;
    len = 0;
    dir.x = 0; dir.y = 1.0;

    // solve
    while(1){
        all_visited = 1;
        m = 3;
        // direction
        for(i = 0; i < n; i++){
            if(!visited[i]){
                all_visited = 0;
                d = distv(normalize(&dir), normalize(relative(points+pos, points+i, &r)));
                if(d < m){
                    m = d;
                    mp = i;
                }
            }
        }
        if(all_visited) break;

        // on a line
        for(i = 0; i < n; i++)
            if(!visited[i] && i != mp)
                if(is_on_a_line(points+pos, points+mp, points+i))
                    if(distp(points+pos, points+mp) > distp(points+pos, points+i))
                        mp = i;

        // update
        visited[mp] = 1;
        len += distp(points+pos, points+mp);
        relative(points+pos, points+mp, &dir);
        pos = mp;
    }

    printf("%.1lf\n", len);
}

int is_on_a_line(point *a, point *b, point *c)
{
    int dx1 = a->x - b->x;
    int dy1 = a->y - b->y;
    int dx2 = a->x - c->x;
    int dy2 = a->y - c->y;
    return dx1*dy2 == dx2*dy1;
}

vector *relative(const point *a, const point *b, vector *r)
{
    r->x = b->x - a->x;
    r->y = b->y - a->y;
    return r;
}

double distp(point *a, point *b)
{
    int dx = a->x - b->x;
    int dy = a->y - b->y;
    int sq = dx * dx + dy * dy;
    
    return sqrt((double)sq);
}

double distv(vector *a, vector *b)
{
    double dx = a->x - b->x;
    double dy = a->y - b->y;
    double sq = dx * dx + dy * dy;
    
    return sqrt((double)sq);
}

vector *normalize(vector *v)
{
    double norm = sqrt(v->x * v->x + v->y * v->y);
    v->x /= norm;
    v->y /= norm;
    return v;
}

double min(double a, double b)
{
    return (a < b ? a : b);
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L4:
	movq	stdin(%rip), %rdx
	leaq	-144(%rbp), %rax
	movl	$128, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-148(%rbp), %rdx
	leaq	-144(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	-148(%rbp), %eax
	testl	%eax, %eax
	je	.L8
	movl	-148(%rbp), %eax
	movl	%eax, %edi
	call	solve
	jmp	.L4
.L8:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	" %d %d"
.LC5:
	.string	"%.1lf\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2296, %rsp
	.cfi_offset 3, -24
	movl	%edi, -6388(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -6376(%rbp)
	jmp	.L10
.L11:
	movl	-6376(%rbp), %eax
	cltq
	movl	$0, -6304(%rbp,%rax,4)
	addl	$1, -6376(%rbp)
.L10:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L11
	movl	$0, -6376(%rbp)
	jmp	.L12
.L13:
	movq	stdin(%rip), %rdx
	leaq	-160(%rbp), %rax
	movl	$128, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-6380(%rbp), %rcx
	leaq	-6384(%rbp), %rdx
	leaq	-160(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	-6384(%rbp), %edx
	movl	-6376(%rbp), %eax
	cltq
	movl	%edx, -4256(%rbp,%rax,8)
	movl	-6380(%rbp), %edx
	movl	-6376(%rbp), %eax
	cltq
	movl	%edx, -4252(%rbp,%rax,8)
	addl	$1, -6376(%rbp)
.L12:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L13
	movl	-6388(%rbp), %eax
	cltq
	movl	$0, -4256(%rbp,%rax,8)
	movl	-6388(%rbp), %eax
	cltq
	movl	$0, -4252(%rbp,%rax,8)
	movl	-6388(%rbp), %eax
	movl	%eax, -6372(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -6360(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -6336(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -6328(%rbp)
.L24:
	movl	$1, -6364(%rbp)
	movsd	.LC4(%rip), %xmm0
	movsd	%xmm0, -6352(%rbp)
	movl	$0, -6376(%rbp)
	jmp	.L14
.L17:
	movl	-6376(%rbp), %eax
	cltq
	movl	-6304(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, -6364(%rbp)
	movl	-6376(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rsi
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rcx
	leaq	-6320(%rbp), %rax
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	relative
	movq	%rax, %rdi
	call	normalize
	movq	%rax, %rbx
	leaq	-6336(%rbp), %rax
	movq	%rax, %rdi
	call	normalize
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	distv
	movq	%xmm0, %rax
	movq	%rax, -6344(%rbp)
	movsd	-6352(%rbp), %xmm0
	comisd	-6344(%rbp), %xmm0
	jbe	.L15
	movsd	-6344(%rbp), %xmm0
	movsd	%xmm0, -6352(%rbp)
	movl	-6376(%rbp), %eax
	movl	%eax, -6368(%rbp)
.L15:
	addl	$1, -6376(%rbp)
.L14:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L17
	cmpl	$0, -6364(%rbp)
	jne	.L29
	movl	$0, -6376(%rbp)
	jmp	.L20
.L23:
	movl	-6376(%rbp), %eax
	cltq
	movl	-6304(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L21
	movl	-6376(%rbp), %eax
	cmpl	-6368(%rbp), %eax
	je	.L21
	movl	-6376(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rcx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	-4256(%rbp), %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	is_on_a_line
	testl	%eax, %eax
	je	.L21
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	distp
	movq	%xmm0, %rbx
	movl	-6376(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	distp
	movq	%rbx, %xmm2
	comisd	%xmm0, %xmm2
	jbe	.L21
	movl	-6376(%rbp), %eax
	movl	%eax, -6368(%rbp)
.L21:
	addl	$1, -6376(%rbp)
.L20:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L23
	movl	-6368(%rbp), %eax
	cltq
	movl	$1, -6304(%rbp,%rax,4)
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	distp
	movsd	-6360(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -6360(%rbp)
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rsi
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rcx
	leaq	-6336(%rbp), %rax
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	relative
	movl	-6368(%rbp), %eax
	movl	%eax, -6372(%rbp)
	jmp	.L24
.L29:
	nop
	movq	-6360(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	nop
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.globl	is_on_a_line
	.type	is_on_a_line, @function
is_on_a_line:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-32(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-40(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	imull	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	-12(%rbp), %eax
	cmpl	%eax, %edx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	is_on_a_line, .-is_on_a_line
	.globl	relative
	.type	relative, @function
relative:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	subl	%eax, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, (%rax)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	subl	%eax, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, 8(%rax)
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	relative, .-relative
	.globl	distp
	.type	distp, @function
distp:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-32(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-4(%rbp), %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
.LFE4:
	.size	distp, .-distp
	.globl	distv
	.type	distv, @function
distv:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	-40(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-48(%rbp), %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-40(%rbp), %rax
	movsd	8(%rax), %xmm0
	movq	-48(%rbp), %rax
	movsd	8(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-24(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	distv, .-distv
	.globl	normalize
	.type	normalize, @function
normalize:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-24(%rbp), %rax
	movsd	(%rax), %xmm0
	mulsd	%xmm0, %xmm1
	movq	-24(%rbp), %rax
	movsd	8(%rax), %xmm2
	movq	-24(%rbp), %rax
	movsd	8(%rax), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movsd	(%rax), %xmm0
	divsd	-8(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, (%rax)
	movq	-24(%rbp), %rax
	movsd	8(%rax), %xmm0
	divsd	-8(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, 8(%rax)
	movq	-24(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	normalize, .-normalize
	.globl	min
	.type	min, @function
min:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movsd	%xmm1, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	comisd	-8(%rbp), %xmm0
	jbe	.L46
	movsd	-8(%rbp), %xmm0
	jmp	.L44
.L46:
	movsd	-16(%rbp), %xmm0
.L44:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.align 8
.LC4:
	.long	0
	.long	1074266112
	.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"
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L4:
	movq	stdin(%rip), %rdx
	leaq	-144(%rbp), %rax
	movl	$128, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-148(%rbp), %rdx
	leaq	-144(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	-148(%rbp), %eax
	testl	%eax, %eax
	je	.L8
	movl	-148(%rbp), %eax
	movl	%eax, %edi
	call	solve
	jmp	.L4
.L8:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	" %d %d"
.LC5:
	.string	"%.1lf\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2296, %rsp
	.cfi_offset 3, -24
	movl	%edi, -6388(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -6376(%rbp)
	jmp	.L10
.L11:
	movl	-6376(%rbp), %eax
	cltq
	movl	$0, -6304(%rbp,%rax,4)
	addl	$1, -6376(%rbp)
.L10:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L11
	movl	$0, -6376(%rbp)
	jmp	.L12
.L13:
	movq	stdin(%rip), %rdx
	leaq	-160(%rbp), %rax
	movl	$128, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-6380(%rbp), %rcx
	leaq	-6384(%rbp), %rdx
	leaq	-160(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	-6384(%rbp), %edx
	movl	-6376(%rbp), %eax
	cltq
	movl	%edx, -4256(%rbp,%rax,8)
	movl	-6380(%rbp), %edx
	movl	-6376(%rbp), %eax
	cltq
	movl	%edx, -4252(%rbp,%rax,8)
	addl	$1, -6376(%rbp)
.L12:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L13
	movl	-6388(%rbp), %eax
	cltq
	movl	$0, -4256(%rbp,%rax,8)
	movl	-6388(%rbp), %eax
	cltq
	movl	$0, -4252(%rbp,%rax,8)
	movl	-6388(%rbp), %eax
	movl	%eax, -6372(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -6360(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -6336(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -6328(%rbp)
.L24:
	movl	$1, -6364(%rbp)
	movsd	.LC4(%rip), %xmm0
	movsd	%xmm0, -6352(%rbp)
	movl	$0, -6376(%rbp)
	jmp	.L14
.L17:
	movl	-6376(%rbp), %eax
	cltq
	movl	-6304(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, -6364(%rbp)
	movl	-6376(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rsi
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rcx
	leaq	-6320(%rbp), %rax
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	relative
	movq	%rax, %rdi
	call	normalize
	movq	%rax, %rbx
	leaq	-6336(%rbp), %rax
	movq	%rax, %rdi
	call	normalize
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	distv
	movq	%xmm0, %rax
	movq	%rax, -6344(%rbp)
	movsd	-6352(%rbp), %xmm0
	comisd	-6344(%rbp), %xmm0
	jbe	.L15
	movsd	-6344(%rbp), %xmm0
	movsd	%xmm0, -6352(%rbp)
	movl	-6376(%rbp), %eax
	movl	%eax, -6368(%rbp)
.L15:
	addl	$1, -6376(%rbp)
.L14:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L17
	cmpl	$0, -6364(%rbp)
	jne	.L29
	movl	$0, -6376(%rbp)
	jmp	.L20
.L23:
	movl	-6376(%rbp), %eax
	cltq
	movl	-6304(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L21
	movl	-6376(%rbp), %eax
	cmpl	-6368(%rbp), %eax
	je	.L21
	movl	-6376(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rcx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	-4256(%rbp), %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	is_on_a_line
	testl	%eax, %eax
	je	.L21
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	distp
	movq	%xmm0, %rbx
	movl	-6376(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	distp
	movq	%rbx, %xmm2
	comisd	%xmm0, %xmm2
	jbe	.L21
	movl	-6376(%rbp), %eax
	movl	%eax, -6368(%rbp)
.L21:
	addl	$1, -6376(%rbp)
.L20:
	movl	-6376(%rbp), %eax
	cmpl	-6388(%rbp), %eax
	jl	.L23
	movl	-6368(%rbp), %eax
	cltq
	movl	$1, -6304(%rbp,%rax,4)
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	addq	%rax, %rdx
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	-4256(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	distp
	movsd	-6360(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -6360(%rbp)
	movl	-6368(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rsi
	movl	-6372(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	-4256(%rbp), %rax
	leaq	(%rax,%rdx), %rcx
	leaq	-6336(%rbp), %rax
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	relative
	movl	-6368(%rbp), %eax
	movl	%eax, -6372(%rbp)
	jmp	.L24
.L29:
	nop
	movq	-6360(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	nop
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.globl	is_on_a_line
	.type	is_on_a_line, @function
is_on_a_line:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-32(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-40(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	imull	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	-12(%rbp), %eax
	cmpl	%eax, %edx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	is_on_a_line, .-is_on_a_line
	.globl	relative
	.type	relative, @function
relative:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	subl	%eax, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, (%rax)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	subl	%eax, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, 8(%rax)
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	relative, .-relative
	.globl	distp
	.type	distp, @function
distp:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-32(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-4(%rbp), %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
.LFE4:
	.size	distp, .-distp
	.globl	distv
	.type	distv, @function
distv:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	-40(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-48(%rbp), %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movq	-40(%rbp), %rax
	movsd	8(%rax), %xmm0
	movq	-48(%rbp), %rax
	movsd	8(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-24(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	distv, .-distv
	.globl	normalize
	.type	normalize, @function
normalize:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-24(%rbp), %rax
	movsd	(%rax), %xmm0
	mulsd	%xmm0, %xmm1
	movq	-24(%rbp), %rax
	movsd	8(%rax), %xmm2
	movq	-24(%rbp), %rax
	movsd	8(%rax), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movsd	(%rax), %xmm0
	divsd	-8(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, (%rax)
	movq	-24(%rbp), %rax
	movsd	8(%rax), %xmm0
	divsd	-8(%rbp), %xmm0
	movq	-24(%rbp), %rax
	movsd	%xmm0, 8(%rax)
	movq	-24(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	normalize, .-normalize
	.globl	min
	.type	min, @function
min:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movsd	%xmm1, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	comisd	-8(%rbp), %xmm0
	jbe	.L46
	movsd	-8(%rbp), %xmm0
	jmp	.L44
.L46:
	movsd	-16(%rbp), %xmm0
.L44:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.align 8
.LC4:
	.long	0
	.long	1074266112
	.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:
