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

```c
// AOJ 1231: Super Star
// 2017.12.18 bal4u@uu

#include <stdio.h>
#include <string.h>
#include <math.h>

#define EPS 1e-8

typedef struct { double x, y, z; } PP;
PP p[31];

double dist(PP a, PP b)
{
	double x = a.x - b.x;
	double y = a.y - b.y;
	double z = a.z - b.z;
	return sqrt(x*x + y*y + z*z);
}

double solve_by_movement(int n)
{
	int  k, i, t;
	PP a;
	double move, max, d;

    a.x = a.y = a.z = 50;
	move = 0.5;
	while (move > EPS) {
		for (t = 0; t < 100; t++) {
			max = 0;
			for (i = 0; i < n; i++) {
				if ((d = dist(a, p[i])) > max) max = d, k = i;
			}
			a.x += (p[k].x - a.x)*move;
			a.y += (p[k].y - a.y)*move;
			a.z += (p[k].z - a.z)*move;
		}
		move /= 2;
	}
	return max;
}

int main()
{
	int n, i;

	while(scanf("%d", &n) && n > 0) {
		for (i = 0; i < n; i++) {
			scanf("%lf%lf%lf", &p[i].x, &p[i].y, &p[i].z);
		}
		printf("%.5lf\n", solve_by_movement(n));
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 744
p:
	.zero	744
	.text
	.globl	dist
	.type	dist, @function
dist:
.LFB0:
	.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
	movsd	16(%rbp), %xmm0
	movsd	40(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	24(%rbp), %xmm0
	movsd	48(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	32(%rbp), %xmm0
	movsd	56(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-24(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dist, .-dist
	.globl	solve_by_movement
	.type	solve_by_movement, @function
solve_by_movement:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movl	%edi, -84(%rbp)
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -56(%rbp)
	jmp	.L4
.L11:
	movl	$0, -60(%rbp)
	jmp	.L5
.L10:
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	$0, -64(%rbp)
	jmp	.L6
.L9:
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	pushq	16(%rdx,%rax)
	pushq	8(%rdx,%rax)
	pushq	(%rdx,%rax)
	pushq	-16(%rbp)
	pushq	-24(%rbp)
	pushq	-32(%rbp)
	call	dist
	addq	$48, %rsp
	movq	%xmm0, %rax
	movq	%rax, -40(%rbp)
	movsd	-40(%rbp), %xmm0
	comisd	-48(%rbp), %xmm0
	jbe	.L7
	movsd	-40(%rbp), %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -68(%rbp)
.L7:
	addl	$1, -64(%rbp)
.L6:
	movl	-64(%rbp), %eax
	cmpl	-84(%rbp), %eax
	jl	.L9
	movsd	-32(%rbp), %xmm1
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	-32(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm1
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	-24(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-16(%rbp), %xmm1
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	16+p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	-16(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	addl	$1, -60(%rbp)
.L5:
	cmpl	$99, -60(%rbp)
	jle	.L10
	movsd	-56(%rbp), %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -56(%rbp)
.L4:
	movsd	-56(%rbp), %xmm0
	comisd	.LC4(%rip), %xmm0
	ja	.L11
	movsd	-48(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve_by_movement, .-solve_by_movement
	.section	.rodata
.LC5:
	.string	"%lf%lf%lf"
.LC6:
	.string	"%.5lf\n"
.LC7:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L15
.L19:
	movl	$0, -12(%rbp)
	jmp	.L16
.L17:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	16(%rax), %rdx
	leaq	p(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	p(%rip), %rdx
	addq	%rdx, %rax
	leaq	8(%rax), %rdx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$3, %rax
	leaq	p(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L16:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L17
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	solve_by_movement
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L15:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L18
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jg	.L19
.L18:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1078525952
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.align 8
.LC4:
	.long	-500134854
	.long	1044740494
	.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	dist
	.type	dist, @function
dist:
.LFB35:
	.cfi_startproc
	endbr64
	movsd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	subsd	32(%rsp), %xmm0
	subsd	40(%rsp), %xmm2
	movsd	24(%rsp), %xmm1
	subsd	48(%rsp), %xmm1
	mulsd	%xmm0, %xmm0
	mulsd	%xmm2, %xmm2
	mulsd	%xmm1, %xmm1
	addsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L10
	sqrtsd	%xmm0, %xmm0
	ret
.L10:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE35:
	.size	dist, .-dist
	.p2align 4
	.globl	solve_by_movement
	.type	solve_by_movement, @function
solve_by_movement:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$26, %edx
	leaq	p(%rip), %r15
	pxor	%xmm7, %xmm7
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edi, %r13d
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movsd	.LC2(%rip), %xmm4
	movq	.LC1(%rip), %rax
	movapd	%xmm4, %xmm6
	movq	%rax, %xmm8
	movapd	%xmm4, %xmm5
.L12:
	movl	$100, %r14d
	.p2align 4,,10
	.p2align 3
.L22:
	leaq	p(%rip), %rbx
	movapd	%xmm7, %xmm3
	xorl	%ebp, %ebp
	testl	%r13d, %r13d
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L18:
	movapd	%xmm5, %xmm0
	movapd	%xmm6, %xmm2
	subsd	(%rbx), %xmm0
	subsd	8(%rbx), %xmm2
	movapd	%xmm4, %xmm1
	subsd	16(%rbx), %xmm1
	mulsd	%xmm0, %xmm0
	mulsd	%xmm2, %xmm2
	mulsd	%xmm1, %xmm1
	addsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	ucomisd	%xmm0, %xmm7
	ja	.L28
	sqrtsd	%xmm0, %xmm0
.L15:
	comisd	%xmm3, %xmm0
	maxsd	%xmm3, %xmm0
	cmova	%ebp, %r12d
	addl	$1, %ebp
	movapd	%xmm0, %xmm3
	addq	$24, %rbx
	cmpl	%ebp, %r13d
	jne	.L18
.L21:
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,8), %rax
	movsd	(%rax), %xmm0
	subsd	%xmm5, %xmm0
	mulsd	%xmm8, %xmm0
	addsd	%xmm0, %xmm5
	movsd	8(%rax), %xmm0
	subsd	%xmm6, %xmm0
	mulsd	%xmm8, %xmm0
	addsd	%xmm0, %xmm6
	movsd	16(%rax), %xmm0
	subsd	%xmm4, %xmm0
	mulsd	%xmm8, %xmm0
	addsd	%xmm0, %xmm4
	subl	$1, %r14d
	jne	.L22
	mulsd	.LC1(%rip), %xmm8
	subl	$1, %edx
	jne	.L12
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movapd	%xmm3, %xmm0
	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
.L28:
	.cfi_restore_state
	movl	%edx, 36(%rsp)
	movsd	%xmm3, 40(%rsp)
	movsd	%xmm8, 24(%rsp)
	movsd	%xmm4, 16(%rsp)
	movsd	%xmm6, 8(%rsp)
	movsd	%xmm5, (%rsp)
	call	sqrt@PLT
	movsd	40(%rsp), %xmm3
	movl	36(%rsp), %edx
	pxor	%xmm7, %xmm7
	movsd	24(%rsp), %xmm8
	movsd	16(%rsp), %xmm4
	movsd	8(%rsp), %xmm6
	movsd	(%rsp), %xmm5
	jmp	.L15
	.cfi_endproc
.LFE36:
	.size	solve_by_movement, .-solve_by_movement
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%lf%lf%lf"
.LC4:
	.string	"%.5lf\n"
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC4(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC5(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L32:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L34
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L34
	leaq	p(%rip), %rbx
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L33:
	leaq	16(%rbx), %rcx
	leaq	8(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	addq	$24, %rbx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edi
	cmpl	%ebp, %edi
	jg	.L33
	call	solve_by_movement
	movq	%r15, %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L34:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$24, %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
.L42:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 744
p:
	.zero	744
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.align 8
.LC2:
	.long	0
	.long	1078525952
	.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	dist
	.type	dist, @function
dist:
.LFB35:
	.cfi_startproc
	endbr64
	movsd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	subsd	32(%rsp), %xmm0
	subsd	40(%rsp), %xmm2
	movsd	24(%rsp), %xmm1
	subsd	48(%rsp), %xmm1
	mulsd	%xmm0, %xmm0
	mulsd	%xmm2, %xmm2
	mulsd	%xmm1, %xmm1
	addsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L10
	sqrtsd	%xmm0, %xmm0
	ret
.L10:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE35:
	.size	dist, .-dist
	.p2align 4
	.globl	solve_by_movement
	.type	solve_by_movement, @function
solve_by_movement:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$26, %edx
	leaq	p(%rip), %r15
	pxor	%xmm7, %xmm7
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edi, %r13d
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movsd	.LC2(%rip), %xmm4
	movq	.LC1(%rip), %rax
	movapd	%xmm4, %xmm6
	movq	%rax, %xmm8
	movapd	%xmm4, %xmm5
.L12:
	movl	$100, %r14d
	.p2align 4,,10
	.p2align 3
.L22:
	leaq	p(%rip), %rbx
	movapd	%xmm7, %xmm3
	xorl	%ebp, %ebp
	testl	%r13d, %r13d
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L18:
	movapd	%xmm5, %xmm0
	movapd	%xmm6, %xmm2
	subsd	(%rbx), %xmm0
	subsd	8(%rbx), %xmm2
	movapd	%xmm4, %xmm1
	subsd	16(%rbx), %xmm1
	mulsd	%xmm0, %xmm0
	mulsd	%xmm2, %xmm2
	mulsd	%xmm1, %xmm1
	addsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	ucomisd	%xmm0, %xmm7
	ja	.L28
	sqrtsd	%xmm0, %xmm0
.L15:
	comisd	%xmm3, %xmm0
	maxsd	%xmm3, %xmm0
	cmova	%ebp, %r12d
	addl	$1, %ebp
	movapd	%xmm0, %xmm3
	addq	$24, %rbx
	cmpl	%ebp, %r13d
	jne	.L18
.L21:
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,8), %rax
	movsd	(%rax), %xmm0
	subsd	%xmm5, %xmm0
	mulsd	%xmm8, %xmm0
	addsd	%xmm0, %xmm5
	movsd	8(%rax), %xmm0
	subsd	%xmm6, %xmm0
	mulsd	%xmm8, %xmm0
	addsd	%xmm0, %xmm6
	movsd	16(%rax), %xmm0
	subsd	%xmm4, %xmm0
	mulsd	%xmm8, %xmm0
	addsd	%xmm0, %xmm4
	subl	$1, %r14d
	jne	.L22
	mulsd	.LC1(%rip), %xmm8
	subl	$1, %edx
	jne	.L12
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movapd	%xmm3, %xmm0
	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
.L28:
	.cfi_restore_state
	movl	%edx, 36(%rsp)
	movsd	%xmm3, 40(%rsp)
	movsd	%xmm8, 24(%rsp)
	movsd	%xmm4, 16(%rsp)
	movsd	%xmm6, 8(%rsp)
	movsd	%xmm5, (%rsp)
	call	sqrt@PLT
	movsd	40(%rsp), %xmm3
	movl	36(%rsp), %edx
	pxor	%xmm7, %xmm7
	movsd	24(%rsp), %xmm8
	movsd	16(%rsp), %xmm4
	movsd	8(%rsp), %xmm6
	movsd	(%rsp), %xmm5
	jmp	.L15
	.cfi_endproc
.LFE36:
	.size	solve_by_movement, .-solve_by_movement
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%lf%lf%lf"
.LC4:
	.string	"%.5lf\n"
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC4(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC5(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L32:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L34
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L34
	leaq	p(%rip), %rbx
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L33:
	leaq	16(%rbx), %rcx
	leaq	8(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	addq	$24, %rbx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edi
	cmpl	%ebp, %edi
	jg	.L33
	call	solve_by_movement
	movq	%r15, %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L34:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$24, %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
.L42:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 744
p:
	.zero	744
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.align 8
.LC2:
	.long	0
	.long	1078525952
	.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:

// AOJ 1231: Super Star
// 2017.12.18 bal4u@uu

#include <stdio.h>
#include <string.h>
#include <math.h>

#define EPS 1e-8

typedef struct { double x, y, z; } PP;
PP p[31];

double dist(PP a, PP b)
{
	double x = a.x - b.x;
	double y = a.y - b.y;
	double z = a.z - b.z;
	return sqrt(x*x + y*y + z*z);
}

double solve_by_movement(int n)
{
	int  k, i, t;
	PP a;
	double move, max, d;

    a.x = a.y = a.z = 50;
	move = 0.5;
	while (move > EPS) {
		for (t = 0; t < 100; t++) {
			max = 0;
			for (i = 0; i < n; i++) {
				if ((d = dist(a, p[i])) > max) max = d, k = i;
			}
			a.x += (p[k].x - a.x)*move;
			a.y += (p[k].y - a.y)*move;
			a.z += (p[k].z - a.z)*move;
		}
		move /= 2;
	}
	return max;
}

int main()
{
	int n, i;

	while(scanf("%d", &n) && n > 0) {
		for (i = 0; i < n; i++) {
			scanf("%lf%lf%lf", &p[i].x, &p[i].y, &p[i].z);
		}
		printf("%.5lf\n", solve_by_movement(n));
	}
	return 0;
}
4
10.00000 10.00000 10.00000
20.00000 10.00000 10.00000
20.00000 20.00000 10.00000
10.00000 20.00000 10.00000
4
10.00000 10.063097698119668 10.00000
10.00000 50.00000 50.00000
50.00000 10.00000 50.00000
50.00000 50.00000 10.00000
0
 4
10.00000 10.00000 10.00000
20.00000 10.00000 10.00000
20.00000 20.00000 10.00000
10.00000 20.00000 10.00000
4
10.00000 10.063097698119668 10.00000
10.00000 50.00000 50.70404839090845
50.00000 10.00000 50.00000
50.00000 50.00000 10.00000
0
 4
10.00000 10.00000 10.00000
20.00000 10.00000 10.00000
20.00000 20.00000 10.00000
10.00000 20.00000 10.00000
4
10.00000 10.063097698119668 10.00000
10.00000 50.00000 50.70404839090845
50.76544467856901 10.00000 50.00000
50.00000 50.00000 10.00000
0
 4
10.00000 10.00000 10.00000
20.00000 10.00000 10.00000
20.00000 20.00000 10.00000
10.00000 20.00000 10.00000
4
10.699117333378593 10.063097698119668 10.00000
10.00000 50.00000 50.70404839090845
50.76544467856901 10.00000 50.00000
50.00000 50.00000 10.00000
0
 4
10.00000 10.00000 10.00000
20.00000 10.00000 10.00000
20.00000 20.733652859881403 10.00000
10.00000 20.00000 10.00000
4
10.699117333378593 10.063097698119668 10.00000
10.00000 50.00000 50.70404839090845
50.76544467856901 10.00000 50.00000
50.00000 50.00000 10.00000
0
 4
10.00000 10.00000 10.00000
20.00000 10.00000 10.00000
20.00000 20.733652859881403 10.00000
10.00000 20.00000 10.00000
4
10.699117333378593 10.879748232123 10.00000
10.00000 50.00000 50.70404839090845
50.76544467856901 10.00000 50.00000
50.00000 50.00000 10.00000
0
 4
10.00000 10.00000 10.00000
20.00000 10.00000 10.00000
20.00000 20.733652859881403 10.00000
10.00000 20.00000 10.00000
4
11.03531062521475 10.879748232123 10.00000
10.00000 50.00000 50.70404839090845
50.76544467856901 10.00000 50.00000
50.00000 50.00000 10.00000
0
 4
10.00000 10.00000 10.00000
20.00000 10.00000 10.00000
20.00000 20.733652859881403 10.00000
10.00000 20.00000 10.00000
4
11.03531062521475 10.879748232123 10.00000
10.00000 50.71023844636662 50.70404839090845
50.76544467856901 10.00000 50.00000
50.00000 50.00000 10.00000
0
 4
10.00000 10.00000 10.00000
20.00000 10.00000 10.00000
20.00000 20.733652859881403 10.00000
10.00000 20.00000 10.00000
4
11.03531062521475 10.879748232123 10.00000
10.00000 51.12714506944212 50.70404839090845
50.76544467856901 10.00000 50.00000
50.00000 50.00000 10.00000
0
 4
10.00000 10.00000 10.00000
20.00000 10.00000 10.00000
20.00000 20.733652859881403 10.00000
10.00000 20.00000 10.00000
4
11.03531062521475 10.879748232123 10.00000
10.00000 51.12714506944212 50.70404839090845
50.76544467856901 10.00000 50.303499161049125
50.00000 50.00000 10.00000
0

7.07107
34.63193
 7.07107
34.73559
 7.07107
34.84733
 7.07107
34.74903
 7.33504
34.74903
 7.33504
34.63588
 7.33504
34.59040
 7.33504
34.69710
 7.33504
34.76171
 7.33504
34.80429

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

```c
// AOJ 1231: Super Star
// 2017.12.18 bal4u@uu

#include <stdio.h>
#include <string.h>
#include <math.h>

#define EPS 1e-8

typedef struct { double x, y, z; } PP;
PP p[31];

double dist(PP a, PP b)
{
	double x = a.x - b.x;
	double y = a.y - b.y;
	double z = a.z - b.z;
	return sqrt(x*x + y*y + z*z);
}

double solve_by_movement(int n)
{
	int  k, i, t;
	PP a;
	double move, max, d;

    a.x = a.y = a.z = 50;
	move = 0.5;
	while (move > EPS) {
		for (t = 0; t < 100; t++) {
			max = 0;
			for (i = 0; i < n; i++) {
				if ((d = dist(a, p[i])) > max) max = d, k = i;
			}
			a.x += (p[k].x - a.x)*move;
			a.y += (p[k].y - a.y)*move;
			a.z += (p[k].z - a.z)*move;
		}
		move /= 2;
	}
	return max;
}

int main()
{
	int n, i;

	while(scanf("%d", &n) && n > 0) {
		for (i = 0; i < n; i++) {
			scanf("%lf%lf%lf", &p[i].x, &p[i].y, &p[i].z);
		}
		printf("%.5lf\n", solve_by_movement(n));
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 744
p:
	.zero	744
	.text
	.globl	dist
	.type	dist, @function
dist:
.LFB0:
	.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
	movsd	16(%rbp), %xmm0
	movsd	40(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	24(%rbp), %xmm0
	movsd	48(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	32(%rbp), %xmm0
	movsd	56(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-24(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dist, .-dist
	.globl	solve_by_movement
	.type	solve_by_movement, @function
solve_by_movement:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movl	%edi, -84(%rbp)
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -56(%rbp)
	jmp	.L4
.L11:
	movl	$0, -60(%rbp)
	jmp	.L5
.L10:
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	$0, -64(%rbp)
	jmp	.L6
.L9:
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	pushq	16(%rdx,%rax)
	pushq	8(%rdx,%rax)
	pushq	(%rdx,%rax)
	pushq	-16(%rbp)
	pushq	-24(%rbp)
	pushq	-32(%rbp)
	call	dist
	addq	$48, %rsp
	movq	%xmm0, %rax
	movq	%rax, -40(%rbp)
	movsd	-40(%rbp), %xmm0
	comisd	-48(%rbp), %xmm0
	jbe	.L7
	movsd	-40(%rbp), %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -68(%rbp)
.L7:
	addl	$1, -64(%rbp)
.L6:
	movl	-64(%rbp), %eax
	cmpl	-84(%rbp), %eax
	jl	.L9
	movsd	-32(%rbp), %xmm1
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	-32(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm1
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	-24(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-16(%rbp), %xmm1
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	16+p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	-16(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	addl	$1, -60(%rbp)
.L5:
	cmpl	$99, -60(%rbp)
	jle	.L10
	movsd	-56(%rbp), %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -56(%rbp)
.L4:
	movsd	-56(%rbp), %xmm0
	comisd	.LC4(%rip), %xmm0
	ja	.L11
	movsd	-48(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve_by_movement, .-solve_by_movement
	.section	.rodata
.LC5:
	.string	"%lf%lf%lf"
.LC6:
	.string	"%.5lf\n"
.LC7:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L15
.L19:
	movl	$0, -12(%rbp)
	jmp	.L16
.L17:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	16(%rax), %rdx
	leaq	p(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	p(%rip), %rdx
	addq	%rdx, %rax
	leaq	8(%rax), %rdx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$3, %rax
	leaq	p(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L16:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L17
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	solve_by_movement
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L15:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L18
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jg	.L19
.L18:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1078525952
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.align 8
.LC4:
	.long	-500134854
	.long	1044740494
	.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	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 744
p:
	.zero	744
	.text
	.globl	dist
	.type	dist, @function
dist:
.LFB0:
	.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
	movsd	16(%rbp), %xmm0
	movsd	40(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	24(%rbp), %xmm0
	movsd	48(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	32(%rbp), %xmm0
	movsd	56(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-24(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-16(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm1
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dist, .-dist
	.globl	solve_by_movement
	.type	solve_by_movement, @function
solve_by_movement:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movl	%edi, -84(%rbp)
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -56(%rbp)
	jmp	.L4
.L11:
	movl	$0, -60(%rbp)
	jmp	.L5
.L10:
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	$0, -64(%rbp)
	jmp	.L6
.L9:
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	pushq	16(%rdx,%rax)
	pushq	8(%rdx,%rax)
	pushq	(%rdx,%rax)
	pushq	-16(%rbp)
	pushq	-24(%rbp)
	pushq	-32(%rbp)
	call	dist
	addq	$48, %rsp
	movq	%xmm0, %rax
	movq	%rax, -40(%rbp)
	movsd	-40(%rbp), %xmm0
	comisd	-48(%rbp), %xmm0
	jbe	.L7
	movsd	-40(%rbp), %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -68(%rbp)
.L7:
	addl	$1, -64(%rbp)
.L6:
	movl	-64(%rbp), %eax
	cmpl	-84(%rbp), %eax
	jl	.L9
	movsd	-32(%rbp), %xmm1
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	-32(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	-24(%rbp), %xmm1
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	-24(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-16(%rbp), %xmm1
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	16+p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	-16(%rbp), %xmm2
	subsd	%xmm2, %xmm0
	mulsd	-56(%rbp), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	addl	$1, -60(%rbp)
.L5:
	cmpl	$99, -60(%rbp)
	jle	.L10
	movsd	-56(%rbp), %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -56(%rbp)
.L4:
	movsd	-56(%rbp), %xmm0
	comisd	.LC4(%rip), %xmm0
	ja	.L11
	movsd	-48(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve_by_movement, .-solve_by_movement
	.section	.rodata
.LC5:
	.string	"%lf%lf%lf"
.LC6:
	.string	"%.5lf\n"
.LC7:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L15
.L19:
	movl	$0, -12(%rbp)
	jmp	.L16
.L17:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	16(%rax), %rdx
	leaq	p(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	p(%rip), %rdx
	addq	%rdx, %rax
	leaq	8(%rax), %rdx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$3, %rax
	leaq	p(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L16:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L17
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	solve_by_movement
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L15:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L18
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jg	.L19
.L18:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1078525952
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.align 8
.LC4:
	.long	-500134854
	.long	1044740494
	.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:
