Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <float.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int compw(const void *a, const void *b){return (*(int*)a>*(int*)b)-(*(int*)a<*(int*)b);}
int compr(const void *a, const void *b){return *(int*)b-*(int*)a;}

uint32_t nextpint(void){ char c=getchar(); while(c<'0'||'9'<c) c=getchar(); uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return x; }
uint64_t nextplong(void){ char c=getchar(); while(c<'0'||'9'<c) c=getchar(); uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return x; }
uint32_t nextstr(char *s){ char c=getchar(); while(c==' '||c=='\n') c=getchar(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar(); } *s='\0'; return len; }

inline int max2(const int a, const int b){return a>b?a:b;}
inline int min2(const int a, const int b){return a>b?b:a;}
inline int dif2(const int a, const int b){return a>b?a-b:b-a;}

int pnt[1002][3];
double dist(const int i, const int j){
	double l=hypot(pnt[i][0]-pnt[j][0], pnt[i][1]-pnt[j][1])-(pnt[i][2]+pnt[j][2]);
	return l>0?l:0;
}
double d[1002];
int q[1002], Q;
int main(void){
	int n;
	scanf("%d%d", &pnt[0][0], &pnt[0][1]);
	scanf("%d%d", &pnt[1][0], &pnt[1][1]);
	d[1]=DBL_MAX;
	q[0]=0;
	q[1]=1;
	scanf("%d", &n);
	for(int i=2; i<n+2; i++){
		scanf("%d%d%d", &pnt[i][0], &pnt[i][1], &pnt[i][2]);
		d[i]=DBL_MAX;
		q[i]=i;
	}
	Q=n+2;
	while(Q>0){
		double min=d[q[0]]; int mini=0;
		for(int i=1; i<Q; i++){
			if(d[q[i]]<min){mini=i; min=d[q[i]];}
		}
		int k=q[mini]; q[mini]=q[Q-1]; Q--;
		for(int i=0; i<Q; i++){
			double D=d[k]+dist(k, q[i]);
			if(D<d[q[i]]) d[q[i]]=D;
		}
	}
	printf("%.10lf\n", d[1]);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.LFB6:
	.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	compw
	.type	compw, @function
compw:
.LFB7:
	.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	setg	%al
	movzbl	%al, %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	setl	%al
	movzbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compw, .-compw
	.globl	compr
	.type	compr, @function
compr:
.LFB8:
	.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	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compr, .-compr
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB9:
	.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
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L8
.L9:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L8:
	cmpb	$47, -5(%rbp)
	jle	.L9
	cmpb	$57, -5(%rbp)
	jg	.L9
	movl	$0, -4(%rbp)
	jmp	.L10
.L12:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L10:
	cmpb	$47, -5(%rbp)
	jle	.L11
	cmpb	$57, -5(%rbp)
	jle	.L12
.L11:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nextpint, .-nextpint
	.globl	nextplong
	.type	nextplong, @function
nextplong:
.LFB10:
	.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
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L15
.L16:
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L15:
	cmpb	$47, -9(%rbp)
	jle	.L16
	cmpb	$57, -9(%rbp)
	jg	.L16
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-9(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L17:
	cmpb	$47, -9(%rbp)
	jle	.L18
	cmpb	$57, -9(%rbp)
	jle	.L19
.L18:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	nextplong, .-nextplong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB11:
	.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)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L22
.L23:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L22:
	cmpb	$32, -5(%rbp)
	je	.L23
	cmpb	$10, -5(%rbp)
	je	.L23
	movl	$0, -4(%rbp)
	jmp	.L24
.L26:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	jne	.L26
.L25:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	nextstr, .-nextstr
	.globl	pnt
	.bss
	.align 32
	.type	pnt, @object
	.size	pnt, 12024
pnt:
	.zero	12024
	.text
	.globl	dist
	.type	dist, @function
dist:
.LFB15:
	.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
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+pnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+pnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	pnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	pnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%edx, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rdx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+pnt(%rip), %rax
	movl	(%rcx,%rax), %esi
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+pnt(%rip), %rax
	movl	(%rcx,%rax), %eax
	addl	%esi, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%rdx, %xmm0
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L34
	movsd	-8(%rbp), %xmm0
	jmp	.L32
.L34:
	pxor	%xmm0, %xmm0
.L32:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	dist, .-dist
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 8016
d:
	.zero	8016
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 4008
q:
	.zero	4008
	.globl	Q
	.align 4
	.type	Q, @object
	.size	Q, 4
Q:
	.zero	4
	.section	.rodata
.LC1:
	.string	"%d%d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d%d%d"
.LC5:
	.string	"%.10lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	4+pnt(%rip), %rax
	movq	%rax, %rdx
	leaq	pnt(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	16+pnt(%rip), %rax
	movq	%rax, %rdx
	leaq	12+pnt(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, 8+d(%rip)
	movl	$0, q(%rip)
	movl	$1, 4+q(%rip)
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -44(%rbp)
	jmp	.L36
.L37:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	8(%rax), %rdx
	leaq	pnt(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	4(%rax), %rdx
	leaq	pnt(%rip), %rax
	addq	%rax, %rdx
	movl	-44(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	leaq	pnt(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	q(%rip), %rdx
	movl	-44(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L36:
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -44(%rbp)
	jle	.L37
	movl	-48(%rbp), %eax
	addl	$2, %eax
	movl	%eax, Q(%rip)
	jmp	.L38
.L47:
	movl	q(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$0, -40(%rbp)
	movl	$1, -36(%rbp)
	jmp	.L39
.L42:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movsd	-24(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L40
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -24(%rbp)
.L40:
	addl	$1, -36(%rbp)
.L39:
	movl	Q(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L42
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -28(%rbp)
	movl	Q(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	q(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	Q(%rip), %eax
	subl	$1, %eax
	movl	%eax, Q(%rip)
	movl	$0, -32(%rbp)
	jmp	.L43
.L46:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm2
	movsd	%xmm2, -56(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	dist
	addsd	-56(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L44
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, (%rdx,%rax)
.L44:
	addl	$1, -32(%rbp)
.L43:
	movl	Q(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L46
.L38:
	movl	Q(%rip), %eax
	testl	%eax, %eax
	jg	.L47
	movq	8+d(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	-1
	.long	2146435071
	.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	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.p2align 4
	.globl	compw
	.type	compw, @function
compw:
.LFB64:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	cmpl	%eax, (%rdi)
	setg	%al
	setl	%dl
	movzbl	%dl, %edx
	movzbl	%al, %eax
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE64:
	.size	compw, .-compw
	.p2align 4
	.globl	compr
	.type	compr, @function
compr:
.LFB65:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE65:
	.size	compr, .-compr
	.p2align 4
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB66:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	.p2align 4,,10
	.p2align 3
.L14:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	leal	-48(%rax), %edx
	cmpb	$9, %dl
	ja	.L14
	movsbl	%al, %edx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	stdin(%rip), %rdi
	leal	(%r12,%r12,4), %eax
	leal	-48(%rdx,%rax,2), %r12d
	call	getc@PLT
	movsbl	%al, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L9
	movl	%r12d, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE66:
	.size	nextpint, .-nextpint
	.p2align 4
	.globl	nextplong
	.type	nextplong, @function
nextplong:
.LFB67:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	.p2align 4,,10
	.p2align 3
.L24:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	leal	-48(%rax), %edx
	cmpb	$9, %dl
	ja	.L24
	movsbq	%al, %rdx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L19:
	movq	stdin(%rip), %rdi
	leaq	(%r12,%r12,4), %rax
	leaq	-48(%rdx,%rax,2), %r12
	call	getc@PLT
	movsbq	%al, %rdx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L19
	movq	%r12, %rax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE67:
	.size	nextplong, .-nextplong
	.p2align 4
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB68:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpb	$32, %al
	je	.L37
	movl	%eax, %edx
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L37:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	%eax, %edx
	cmpb	$32, %al
	je	.L37
.L42:
	cmpb	$10, %al
	je	.L37
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L29:
	movb	%dl, (%rbx)
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	addl	$1, %r12d
	call	getc@PLT
	movl	%eax, %edx
	cmpb	$32, %al
	je	.L31
	cmpb	$10, %al
	jne	.L29
.L31:
	movb	$0, (%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE68:
	.size	nextstr, .-nextstr
	.p2align 4
	.globl	dist
	.type	dist, @function
dist:
.LFB72:
	.cfi_startproc
	endbr64
	movslq	%edi, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	pnt(%rip), %rax
	movslq	%esi, %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	(%rdi,%rdi,2), %rdx
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	leaq	(%rax,%rdx,4), %rbx
	leaq	(%rsi,%rsi,2), %rdx
	leaq	(%rax,%rdx,4), %rbp
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	4(%rbx), %eax
	movl	(%rbx), %edx
	subl	4(%rbp), %eax
	subl	0(%rbp), %edx
	cvtsi2sdl	%eax, %xmm1
	cvtsi2sdl	%edx, %xmm0
	call	hypot@PLT
	movl	8(%rbp), %eax
	pxor	%xmm1, %xmm1
	addl	8(%rbx), %eax
	cvtsi2sdl	%eax, %xmm1
	subsd	%xmm1, %xmm0
	maxsd	.LC0(%rip), %xmm0
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE72:
	.size	dist, .-dist
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC4:
	.string	"%d"
.LC5:
	.string	"%d%d%d"
.LC6:
	.string	"%.10lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB73:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	4+pnt(%rip), %rdx
	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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-4(%rdx), %rbx
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	16(%rbx), %rdx
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	-4(%rdx), %rsi
	call	__isoc99_scanf@PLT
	movq	.LC2(%rip), %rax
	leaq	52(%rsp), %rsi
	leaq	.LC4(%rip), %rdi
	movq	%rax, 8+d(%rip)
	movq	.LC3(%rip), %rax
	movq	%rax, q(%rip)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	testl	%eax, %eax
	jle	.L47
	leaq	24(%rbx), %r12
	movl	$2, %ebp
	leaq	.LC5(%rip), %r13
	leaq	d(%rip), %r15
	leaq	q(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L48:
	leaq	4(%r12), %rdx
	leaq	8(%r12), %rcx
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$12, %r12
	call	__isoc99_scanf@PLT
	movq	.LC2(%rip), %rax
	movl	%ebp, (%r14,%rbp,4)
	movq	%rax, (%r15,%rbp,8)
	addq	$1, %rbp
	movl	52(%rsp), %eax
	leal	-1(%rbp), %edx
	cmpl	%edx, %eax
	jge	.L48
.L47:
	leal	2(%rax), %edx
	movl	%edx, Q(%rip)
	testl	%edx, %edx
	jle	.L49
	addl	$1, %eax
	leaq	d(%rip), %r15
	leaq	q(%rip), %r14
	cltq
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L58:
	movslq	(%r14), %rax
	movq	24(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movsd	(%r15,%rax,8), %xmm0
	movl	%edx, %eax
	movl	%edx, %r10d
	addl	$1, %eax
	movl	(%r14,%rdx,4), %edi
	cmpl	$1, %eax
	jle	.L50
	leal	-1(%rdx), %esi
	movl	$1, %eax
	xorl	%edx, %edx
	addq	$2, %rsi
	.p2align 4,,10
	.p2align 3
.L52:
	movslq	(%r14,%rax,4), %rcx
	movsd	(%r15,%rcx,8), %xmm1
	comisd	%xmm1, %xmm0
	minsd	%xmm0, %xmm1
	cmova	%eax, %edx
	addq	$1, %rax
	movapd	%xmm1, %xmm0
	cmpq	%rax, %rsi
	jne	.L52
	movslq	%edx, %rdx
	movl	%r10d, Q(%rip)
	movslq	(%r14,%rdx,4), %rax
	movl	%edi, (%r14,%rdx,4)
	movq	%rax, 16(%rsp)
.L59:
	movq	16(%rsp), %rax
	leaq	(%rax,%rax,2), %r13
	leaq	0(,%r13,4), %rax
	xorl	%r13d, %r13d
	movq	%rax, 40(%rsp)
	addq	%rbx, %rax
	movl	4(%rax), %edx
	movl	(%rax), %eax
	movl	%edx, 32(%rsp)
	movl	%eax, 36(%rsp)
	.p2align 4,,10
	.p2align 3
.L57:
	movslq	(%r14,%r13,4), %rbp
	movl	32(%rsp), %esi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	36(%rsp), %edi
	movq	16(%rsp), %rax
	leaq	0(%rbp,%rbp,2), %rcx
	leaq	(%rbx,%rcx,4), %r12
	movsd	(%r15,%rax,8), %xmm2
	subl	4(%r12), %esi
	subl	(%r12), %edi
	cvtsi2sdl	%esi, %xmm1
	movsd	%xmm2, 8(%rsp)
	cvtsi2sdl	%edi, %xmm0
	call	hypot@PLT
	movq	40(%rsp), %rax
	movl	8(%r12), %ecx
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	addl	8(%rbx,%rax), %ecx
	cvtsi2sdl	%ecx, %xmm1
	subsd	%xmm1, %xmm0
	movsd	(%r15,%rbp,8), %xmm1
	maxsd	%xmm3, %xmm0
	addsd	8(%rsp), %xmm0
	comisd	%xmm0, %xmm1
	jbe	.L55
	movsd	%xmm0, (%r15,%rbp,8)
.L55:
	addq	$1, %r13
	cmpl	24(%rsp), %r13d
	jl	.L57
	subq	$1, 24(%rsp)
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L50:
	movl	%edi, (%r14)
	movl	%edx, Q(%rip)
	testl	%edx, %edx
	jg	.L59
.L49:
	movsd	8+d(%rip), %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC6(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L69:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE73:
	.size	main, .-main
	.globl	Q
	.bss
	.align 4
	.type	Q, @object
	.size	Q, 4
Q:
	.zero	4
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 4008
q:
	.zero	4008
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 8016
d:
	.zero	8016
	.globl	pnt
	.align 32
	.type	pnt, @object
	.size	pnt, 12024
pnt:
	.zero	12024
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	0
	.align 8
.LC2:
	.long	-1
	.long	2146435071
	.align 8
.LC3:
	.long	0
	.long	1
	.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	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.p2align 4
	.globl	compw
	.type	compw, @function
compw:
.LFB64:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	cmpl	%eax, (%rdi)
	setg	%al
	setl	%dl
	movzbl	%dl, %edx
	movzbl	%al, %eax
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE64:
	.size	compw, .-compw
	.p2align 4
	.globl	compr
	.type	compr, @function
compr:
.LFB65:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE65:
	.size	compr, .-compr
	.p2align 4
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB66:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	.p2align 4,,10
	.p2align 3
.L14:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	leal	-48(%rax), %edx
	cmpb	$9, %dl
	ja	.L14
	movsbl	%al, %edx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	stdin(%rip), %rdi
	leal	(%r12,%r12,4), %eax
	leal	-48(%rdx,%rax,2), %r12d
	call	getc@PLT
	movsbl	%al, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L9
	movl	%r12d, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE66:
	.size	nextpint, .-nextpint
	.p2align 4
	.globl	nextplong
	.type	nextplong, @function
nextplong:
.LFB67:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	.p2align 4,,10
	.p2align 3
.L24:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	leal	-48(%rax), %edx
	cmpb	$9, %dl
	ja	.L24
	movsbq	%al, %rdx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L19:
	movq	stdin(%rip), %rdi
	leaq	(%r12,%r12,4), %rax
	leaq	-48(%rdx,%rax,2), %r12
	call	getc@PLT
	movsbq	%al, %rdx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L19
	movq	%r12, %rax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE67:
	.size	nextplong, .-nextplong
	.p2align 4
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB68:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpb	$32, %al
	je	.L37
	movl	%eax, %edx
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L37:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	%eax, %edx
	cmpb	$32, %al
	je	.L37
.L42:
	cmpb	$10, %al
	je	.L37
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L29:
	movb	%dl, (%rbx)
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	addl	$1, %r12d
	call	getc@PLT
	movl	%eax, %edx
	cmpb	$32, %al
	je	.L31
	cmpb	$10, %al
	jne	.L29
.L31:
	movb	$0, (%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE68:
	.size	nextstr, .-nextstr
	.p2align 4
	.globl	dist
	.type	dist, @function
dist:
.LFB72:
	.cfi_startproc
	endbr64
	movslq	%edi, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	pnt(%rip), %rax
	movslq	%esi, %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	(%rdi,%rdi,2), %rdx
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	leaq	(%rax,%rdx,4), %rbx
	leaq	(%rsi,%rsi,2), %rdx
	leaq	(%rax,%rdx,4), %rbp
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	4(%rbx), %eax
	movl	(%rbx), %edx
	subl	4(%rbp), %eax
	subl	0(%rbp), %edx
	cvtsi2sdl	%eax, %xmm1
	cvtsi2sdl	%edx, %xmm0
	call	hypot@PLT
	movl	8(%rbp), %eax
	pxor	%xmm1, %xmm1
	addl	8(%rbx), %eax
	cvtsi2sdl	%eax, %xmm1
	subsd	%xmm1, %xmm0
	maxsd	.LC0(%rip), %xmm0
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE72:
	.size	dist, .-dist
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC4:
	.string	"%d"
.LC5:
	.string	"%d%d%d"
.LC6:
	.string	"%.10lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB73:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	4+pnt(%rip), %rdx
	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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-4(%rdx), %rbx
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	16(%rbx), %rdx
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	-4(%rdx), %rsi
	call	__isoc99_scanf@PLT
	movq	.LC2(%rip), %rax
	leaq	52(%rsp), %rsi
	leaq	.LC4(%rip), %rdi
	movq	%rax, 8+d(%rip)
	movq	.LC3(%rip), %rax
	movq	%rax, q(%rip)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	testl	%eax, %eax
	jle	.L47
	leaq	24(%rbx), %r12
	movl	$2, %ebp
	leaq	.LC5(%rip), %r13
	leaq	d(%rip), %r15
	leaq	q(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L48:
	leaq	4(%r12), %rdx
	leaq	8(%r12), %rcx
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$12, %r12
	call	__isoc99_scanf@PLT
	movq	.LC2(%rip), %rax
	movl	%ebp, (%r14,%rbp,4)
	movq	%rax, (%r15,%rbp,8)
	addq	$1, %rbp
	movl	52(%rsp), %eax
	leal	-1(%rbp), %edx
	cmpl	%edx, %eax
	jge	.L48
.L47:
	leal	2(%rax), %edx
	movl	%edx, Q(%rip)
	testl	%edx, %edx
	jle	.L49
	addl	$1, %eax
	leaq	d(%rip), %r15
	leaq	q(%rip), %r14
	cltq
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L58:
	movslq	(%r14), %rax
	movq	24(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movsd	(%r15,%rax,8), %xmm0
	movl	%edx, %eax
	movl	%edx, %r10d
	addl	$1, %eax
	movl	(%r14,%rdx,4), %edi
	cmpl	$1, %eax
	jle	.L50
	leal	-1(%rdx), %esi
	movl	$1, %eax
	xorl	%edx, %edx
	addq	$2, %rsi
	.p2align 4,,10
	.p2align 3
.L52:
	movslq	(%r14,%rax,4), %rcx
	movsd	(%r15,%rcx,8), %xmm1
	comisd	%xmm1, %xmm0
	minsd	%xmm0, %xmm1
	cmova	%eax, %edx
	addq	$1, %rax
	movapd	%xmm1, %xmm0
	cmpq	%rax, %rsi
	jne	.L52
	movslq	%edx, %rdx
	movl	%r10d, Q(%rip)
	movslq	(%r14,%rdx,4), %rax
	movl	%edi, (%r14,%rdx,4)
	movq	%rax, 16(%rsp)
.L59:
	movq	16(%rsp), %rax
	leaq	(%rax,%rax,2), %r13
	leaq	0(,%r13,4), %rax
	xorl	%r13d, %r13d
	movq	%rax, 40(%rsp)
	addq	%rbx, %rax
	movl	4(%rax), %edx
	movl	(%rax), %eax
	movl	%edx, 32(%rsp)
	movl	%eax, 36(%rsp)
	.p2align 4,,10
	.p2align 3
.L57:
	movslq	(%r14,%r13,4), %rbp
	movl	32(%rsp), %esi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	36(%rsp), %edi
	movq	16(%rsp), %rax
	leaq	0(%rbp,%rbp,2), %rcx
	leaq	(%rbx,%rcx,4), %r12
	movsd	(%r15,%rax,8), %xmm2
	subl	4(%r12), %esi
	subl	(%r12), %edi
	cvtsi2sdl	%esi, %xmm1
	movsd	%xmm2, 8(%rsp)
	cvtsi2sdl	%edi, %xmm0
	call	hypot@PLT
	movq	40(%rsp), %rax
	movl	8(%r12), %ecx
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	addl	8(%rbx,%rax), %ecx
	cvtsi2sdl	%ecx, %xmm1
	subsd	%xmm1, %xmm0
	movsd	(%r15,%rbp,8), %xmm1
	maxsd	%xmm3, %xmm0
	addsd	8(%rsp), %xmm0
	comisd	%xmm0, %xmm1
	jbe	.L55
	movsd	%xmm0, (%r15,%rbp,8)
.L55:
	addq	$1, %r13
	cmpl	24(%rsp), %r13d
	jl	.L57
	subq	$1, 24(%rsp)
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L50:
	movl	%edi, (%r14)
	movl	%edx, Q(%rip)
	testl	%edx, %edx
	jg	.L59
.L49:
	movsd	8+d(%rip), %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC6(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L69:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE73:
	.size	main, .-main
	.globl	Q
	.bss
	.align 4
	.type	Q, @object
	.size	Q, 4
Q:
	.zero	4
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 4008
q:
	.zero	4008
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 8016
d:
	.zero	8016
	.globl	pnt
	.align 32
	.type	pnt, @object
	.size	pnt, 12024
pnt:
	.zero	12024
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	0
	.align 8
.LC2:
	.long	-1
	.long	2146435071
	.align 8
.LC3:
	.long	0
	.long	1
	.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 <float.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int compw(const void *a, const void *b){return (*(int*)a>*(int*)b)-(*(int*)a<*(int*)b);}
int compr(const void *a, const void *b){return *(int*)b-*(int*)a;}

uint32_t nextpint(void){ char c=getchar(); while(c<'0'||'9'<c) c=getchar(); uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return x; }
uint64_t nextplong(void){ char c=getchar(); while(c<'0'||'9'<c) c=getchar(); uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return x; }
uint32_t nextstr(char *s){ char c=getchar(); while(c==' '||c=='\n') c=getchar(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar(); } *s='\0'; return len; }

inline int max2(const int a, const int b){return a>b?a:b;}
inline int min2(const int a, const int b){return a>b?b:a;}
inline int dif2(const int a, const int b){return a>b?a-b:b-a;}

int pnt[1002][3];
double dist(const int i, const int j){
	double l=hypot(pnt[i][0]-pnt[j][0], pnt[i][1]-pnt[j][1])-(pnt[i][2]+pnt[j][2]);
	return l>0?l:0;
}
double d[1002];
int q[1002], Q;
int main(void){
	int n;
	scanf("%d%d", &pnt[0][0], &pnt[0][1]);
	scanf("%d%d", &pnt[1][0], &pnt[1][1]);
	d[1]=DBL_MAX;
	q[0]=0;
	q[1]=1;
	scanf("%d", &n);
	for(int i=2; i<n+2; i++){
		scanf("%d%d%d", &pnt[i][0], &pnt[i][1], &pnt[i][2]);
		d[i]=DBL_MAX;
		q[i]=i;
	}
	Q=n+2;
	while(Q>0){
		double min=d[q[0]]; int mini=0;
		for(int i=1; i<Q; i++){
			if(d[q[i]]<min){mini=i; min=d[q[i]];}
		}
		int k=q[mini]; q[mini]=q[Q-1]; Q--;
		for(int i=0; i<Q; i++){
			double D=d[k]+dist(k, q[i]);
			if(D<d[q[i]]) d[q[i]]=D;
		}
	}
	printf("%.10lf\n", d[1]);
}

-2 0 2 0
2
-1 0 0
1 0 2
 4 -2 -2 4
3
0 0 2
4 -1 1
0 4 1
 -2 -2 2 4
1
0 0 1
 -2 1 2 0
2
-1 0 0
1 0 2
 -2 -2 2 4
0
0 0 1
 -2 1 2 0
1
-1 0 0
1 0 2
 4 -2 -2 4
1
0 1 2
4 0 1
0 4 1
 -3 -2 2 4
0
0 0 1
 4 -2 -2 7
1
0 1 2
4 0 1
0 4 1
 -3 -2 2 8
0
0 0 1

1.0000000000
 3.1231056256
 5.3005630797
 1.1622776602
 7.2111025509
 4.1231056256
 4.6055512755
 7.8102496759
 7.3245553203
 11.1803398875

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <float.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int compw(const void *a, const void *b){return (*(int*)a>*(int*)b)-(*(int*)a<*(int*)b);}
int compr(const void *a, const void *b){return *(int*)b-*(int*)a;}

uint32_t nextpint(void){ char c=getchar(); while(c<'0'||'9'<c) c=getchar(); uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return x; }
uint64_t nextplong(void){ char c=getchar(); while(c<'0'||'9'<c) c=getchar(); uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return x; }
uint32_t nextstr(char *s){ char c=getchar(); while(c==' '||c=='\n') c=getchar(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar(); } *s='\0'; return len; }

inline int max2(const int a, const int b){return a>b?a:b;}
inline int min2(const int a, const int b){return a>b?b:a;}
inline int dif2(const int a, const int b){return a>b?a-b:b-a;}

int pnt[1002][3];
double dist(const int i, const int j){
	double l=hypot(pnt[i][0]-pnt[j][0], pnt[i][1]-pnt[j][1])-(pnt[i][2]+pnt[j][2]);
	return l>0?l:0;
}
double d[1002];
int q[1002], Q;
int main(void){
	int n;
	scanf("%d%d", &pnt[0][0], &pnt[0][1]);
	scanf("%d%d", &pnt[1][0], &pnt[1][1]);
	d[1]=DBL_MAX;
	q[0]=0;
	q[1]=1;
	scanf("%d", &n);
	for(int i=2; i<n+2; i++){
		scanf("%d%d%d", &pnt[i][0], &pnt[i][1], &pnt[i][2]);
		d[i]=DBL_MAX;
		q[i]=i;
	}
	Q=n+2;
	while(Q>0){
		double min=d[q[0]]; int mini=0;
		for(int i=1; i<Q; i++){
			if(d[q[i]]<min){mini=i; min=d[q[i]];}
		}
		int k=q[mini]; q[mini]=q[Q-1]; Q--;
		for(int i=0; i<Q; i++){
			double D=d[k]+dist(k, q[i]);
			if(D<d[q[i]]) d[q[i]]=D;
		}
	}
	printf("%.10lf\n", d[1]);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.LFB6:
	.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	compw
	.type	compw, @function
compw:
.LFB7:
	.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	setg	%al
	movzbl	%al, %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	setl	%al
	movzbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compw, .-compw
	.globl	compr
	.type	compr, @function
compr:
.LFB8:
	.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	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compr, .-compr
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB9:
	.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
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L8
.L9:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L8:
	cmpb	$47, -5(%rbp)
	jle	.L9
	cmpb	$57, -5(%rbp)
	jg	.L9
	movl	$0, -4(%rbp)
	jmp	.L10
.L12:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L10:
	cmpb	$47, -5(%rbp)
	jle	.L11
	cmpb	$57, -5(%rbp)
	jle	.L12
.L11:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nextpint, .-nextpint
	.globl	nextplong
	.type	nextplong, @function
nextplong:
.LFB10:
	.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
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L15
.L16:
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L15:
	cmpb	$47, -9(%rbp)
	jle	.L16
	cmpb	$57, -9(%rbp)
	jg	.L16
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-9(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L17:
	cmpb	$47, -9(%rbp)
	jle	.L18
	cmpb	$57, -9(%rbp)
	jle	.L19
.L18:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	nextplong, .-nextplong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB11:
	.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)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L22
.L23:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L22:
	cmpb	$32, -5(%rbp)
	je	.L23
	cmpb	$10, -5(%rbp)
	je	.L23
	movl	$0, -4(%rbp)
	jmp	.L24
.L26:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	jne	.L26
.L25:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	nextstr, .-nextstr
	.globl	pnt
	.bss
	.align 32
	.type	pnt, @object
	.size	pnt, 12024
pnt:
	.zero	12024
	.text
	.globl	dist
	.type	dist, @function
dist:
.LFB15:
	.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
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+pnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+pnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	pnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	pnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%edx, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rdx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+pnt(%rip), %rax
	movl	(%rcx,%rax), %esi
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+pnt(%rip), %rax
	movl	(%rcx,%rax), %eax
	addl	%esi, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%rdx, %xmm0
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L34
	movsd	-8(%rbp), %xmm0
	jmp	.L32
.L34:
	pxor	%xmm0, %xmm0
.L32:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	dist, .-dist
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 8016
d:
	.zero	8016
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 4008
q:
	.zero	4008
	.globl	Q
	.align 4
	.type	Q, @object
	.size	Q, 4
Q:
	.zero	4
	.section	.rodata
.LC1:
	.string	"%d%d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d%d%d"
.LC5:
	.string	"%.10lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	4+pnt(%rip), %rax
	movq	%rax, %rdx
	leaq	pnt(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	16+pnt(%rip), %rax
	movq	%rax, %rdx
	leaq	12+pnt(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, 8+d(%rip)
	movl	$0, q(%rip)
	movl	$1, 4+q(%rip)
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -44(%rbp)
	jmp	.L36
.L37:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	8(%rax), %rdx
	leaq	pnt(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	4(%rax), %rdx
	leaq	pnt(%rip), %rax
	addq	%rax, %rdx
	movl	-44(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	leaq	pnt(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	q(%rip), %rdx
	movl	-44(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L36:
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -44(%rbp)
	jle	.L37
	movl	-48(%rbp), %eax
	addl	$2, %eax
	movl	%eax, Q(%rip)
	jmp	.L38
.L47:
	movl	q(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$0, -40(%rbp)
	movl	$1, -36(%rbp)
	jmp	.L39
.L42:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movsd	-24(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L40
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -24(%rbp)
.L40:
	addl	$1, -36(%rbp)
.L39:
	movl	Q(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L42
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -28(%rbp)
	movl	Q(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	q(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	Q(%rip), %eax
	subl	$1, %eax
	movl	%eax, Q(%rip)
	movl	$0, -32(%rbp)
	jmp	.L43
.L46:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm2
	movsd	%xmm2, -56(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	dist
	addsd	-56(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L44
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, (%rdx,%rax)
.L44:
	addl	$1, -32(%rbp)
.L43:
	movl	Q(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L46
.L38:
	movl	Q(%rip), %eax
	testl	%eax, %eax
	jg	.L47
	movq	8+d(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	-1
	.long	2146435071
	.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	comp
	.type	comp, @function
comp:
.LFB6:
	.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	compw
	.type	compw, @function
compw:
.LFB7:
	.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	setg	%al
	movzbl	%al, %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	setl	%al
	movzbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compw, .-compw
	.globl	compr
	.type	compr, @function
compr:
.LFB8:
	.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	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compr, .-compr
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB9:
	.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
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L8
.L9:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L8:
	cmpb	$47, -5(%rbp)
	jle	.L9
	cmpb	$57, -5(%rbp)
	jg	.L9
	movl	$0, -4(%rbp)
	jmp	.L10
.L12:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L10:
	cmpb	$47, -5(%rbp)
	jle	.L11
	cmpb	$57, -5(%rbp)
	jle	.L12
.L11:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nextpint, .-nextpint
	.globl	nextplong
	.type	nextplong, @function
nextplong:
.LFB10:
	.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
	call	getchar@PLT
	movb	%al, -9(%rbp)
	jmp	.L15
.L16:
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L15:
	cmpb	$47, -9(%rbp)
	jle	.L16
	cmpb	$57, -9(%rbp)
	jg	.L16
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-9(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar@PLT
	movb	%al, -9(%rbp)
.L17:
	cmpb	$47, -9(%rbp)
	jle	.L18
	cmpb	$57, -9(%rbp)
	jle	.L19
.L18:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	nextplong, .-nextplong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB11:
	.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)
	call	getchar@PLT
	movb	%al, -5(%rbp)
	jmp	.L22
.L23:
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L22:
	cmpb	$32, -5(%rbp)
	je	.L23
	cmpb	$10, -5(%rbp)
	je	.L23
	movl	$0, -4(%rbp)
	jmp	.L24
.L26:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	jne	.L26
.L25:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	nextstr, .-nextstr
	.globl	pnt
	.bss
	.align 32
	.type	pnt, @object
	.size	pnt, 12024
pnt:
	.zero	12024
	.text
	.globl	dist
	.type	dist, @function
dist:
.LFB15:
	.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
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+pnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+pnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	pnt(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	pnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%edx, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rdx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+pnt(%rip), %rax
	movl	(%rcx,%rax), %esi
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	8+pnt(%rip), %rax
	movl	(%rcx,%rax), %eax
	addl	%esi, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%rdx, %xmm0
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L34
	movsd	-8(%rbp), %xmm0
	jmp	.L32
.L34:
	pxor	%xmm0, %xmm0
.L32:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	dist, .-dist
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 8016
d:
	.zero	8016
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 4008
q:
	.zero	4008
	.globl	Q
	.align 4
	.type	Q, @object
	.size	Q, 4
Q:
	.zero	4
	.section	.rodata
.LC1:
	.string	"%d%d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d%d%d"
.LC5:
	.string	"%.10lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	4+pnt(%rip), %rax
	movq	%rax, %rdx
	leaq	pnt(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	16+pnt(%rip), %rax
	movq	%rax, %rdx
	leaq	12+pnt(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, 8+d(%rip)
	movl	$0, q(%rip)
	movl	$1, 4+q(%rip)
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -44(%rbp)
	jmp	.L36
.L37:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	8(%rax), %rdx
	leaq	pnt(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	4(%rax), %rdx
	leaq	pnt(%rip), %rax
	addq	%rax, %rdx
	movl	-44(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	leaq	pnt(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	q(%rip), %rdx
	movl	-44(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L36:
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -44(%rbp)
	jle	.L37
	movl	-48(%rbp), %eax
	addl	$2, %eax
	movl	%eax, Q(%rip)
	jmp	.L38
.L47:
	movl	q(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$0, -40(%rbp)
	movl	$1, -36(%rbp)
	jmp	.L39
.L42:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movsd	-24(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L40
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -24(%rbp)
.L40:
	addl	$1, -36(%rbp)
.L39:
	movl	Q(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L42
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -28(%rbp)
	movl	Q(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	q(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	Q(%rip), %eax
	subl	$1, %eax
	movl	%eax, Q(%rip)
	movl	$0, -32(%rbp)
	jmp	.L43
.L46:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm2
	movsd	%xmm2, -56(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	dist
	addsd	-56(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L44
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	q(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, (%rdx,%rax)
.L44:
	addl	$1, -32(%rbp)
.L43:
	movl	Q(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L46
.L38:
	movl	Q(%rip), %eax
	testl	%eax, %eax
	jg	.L47
	movq	8+d(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	-1
	.long	2146435071
	.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:
