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

```c
#include <stdio.h>
#include <math.h>

#define REP(i,n,m) for(i=n;i<m;i++)
#define rep(i,n) REP(i,0,n)

#define EPS (1e-5)

typedef struct{
	double x,y,z;
}P;

int main(void){
	int i,j,k;
	int n,m;
	double a,b,c;
	P p[30];

	scanf("%d",&n);
	while(n--){
		scanf("%lf%lf%lf%d",&a,&b,&c,&m);
		rep(i,m) scanf("%lf%lf%lf",&p[i].x,&p[i].y,&p[i].z);

		rep(i,m){
			rep(j,m){
				rep(k,m){
					if(i == j || i == k || j == k) continue;

					double ta = sqrt( pow(p[j].x - p[i].x, 2) +
														pow(p[j].y - p[i].y, 2) + 
														pow(p[j].z - p[i].z, 2));
					double tb = sqrt( pow(p[k].x - p[j].x, 2) +
														pow(p[k].y - p[j].y, 2) + 
														pow(p[k].z - p[j].z, 2));
					double tc = sqrt( pow(p[i].x - p[k].x, 2) +
														pow(p[i].y - p[k].y, 2) + 
														pow(p[i].z - p[k].z, 2));

					if(a / b - ta / tb < EPS &&
						 b / c - tb / tc < EPS &&
						 c / a - tc / ta < EPS)
						printf("%d %d %d\n",k+1,i+1,j+1);
				}
			}
		}
	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf%lf%lf%d"
.LC2:
	.string	"%lf%lf%lf"
.LC5:
	.string	"%d %d %d\n"
	.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	$832, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-804(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L17:
	leaq	-800(%rbp), %rsi
	leaq	-768(%rbp), %rcx
	leaq	-776(%rbp), %rdx
	leaq	-784(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -796(%rbp)
	jmp	.L3
.L4:
	leaq	-736(%rbp), %rcx
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	$16, %rax
	addq	%rax, %rcx
	leaq	-736(%rbp), %rsi
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	leaq	8(%rax), %rdx
	leaq	-736(%rbp), %rdi
	movl	-796(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$3, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -796(%rbp)
.L3:
	movl	-800(%rbp), %eax
	cmpl	%eax, -796(%rbp)
	jl	.L4
	movl	$0, -796(%rbp)
	jmp	.L5
.L16:
	movl	$0, -792(%rbp)
	jmp	.L6
.L15:
	movl	$0, -788(%rbp)
	jmp	.L7
.L14:
	movl	-796(%rbp), %eax
	cmpl	-792(%rbp), %eax
	je	.L23
	movl	-796(%rbp), %eax
	cmpl	-788(%rbp), %eax
	je	.L23
	movl	-792(%rbp), %eax
	cmpl	-788(%rbp), %eax
	je	.L23
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm0
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	%xmm0, -824(%rbp)
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm0
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm1
	movapd	%xmm0, %xmm3
	subsd	%xmm1, %xmm3
	movq	%xmm3, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movapd	%xmm0, %xmm4
	addsd	-824(%rbp), %xmm4
	movsd	%xmm4, -824(%rbp)
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm0
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	addsd	-824(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -760(%rbp)
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm0
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	%xmm0, -824(%rbp)
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm0
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm1
	movapd	%xmm0, %xmm5
	subsd	%xmm1, %xmm5
	movq	%xmm5, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movapd	%xmm0, %xmm6
	addsd	-824(%rbp), %xmm6
	movsd	%xmm6, -824(%rbp)
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm0
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	addsd	-824(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -752(%rbp)
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm0
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	%xmm0, -824(%rbp)
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm0
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm1
	movapd	%xmm0, %xmm7
	subsd	%xmm1, %xmm7
	movq	%xmm7, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movapd	%xmm0, %xmm3
	addsd	-824(%rbp), %xmm3
	movsd	%xmm3, -824(%rbp)
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm0
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	addsd	-824(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -744(%rbp)
	movsd	-784(%rbp), %xmm0
	movsd	-776(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-760(%rbp), %xmm1
	movapd	%xmm1, %xmm2
	divsd	-752(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movsd	-776(%rbp), %xmm0
	movsd	-768(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-752(%rbp), %xmm1
	movapd	%xmm1, %xmm2
	divsd	-744(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movsd	-768(%rbp), %xmm0
	movsd	-784(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-744(%rbp), %xmm1
	movapd	%xmm1, %xmm2
	divsd	-760(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movl	-792(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-796(%rbp), %eax
	leal	1(%rax), %edx
	movl	-788(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L23:
	nop
.L10:
	addl	$1, -788(%rbp)
.L7:
	movl	-800(%rbp), %eax
	cmpl	%eax, -788(%rbp)
	jl	.L14
	addl	$1, -792(%rbp)
.L6:
	movl	-800(%rbp), %eax
	cmpl	%eax, -792(%rbp)
	jl	.L15
	addl	$1, -796(%rbp)
.L5:
	movl	-800(%rbp), %eax
	cmpl	%eax, -796(%rbp)
	jl	.L16
.L2:
	movl	-804(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -804(%rbp)
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.align 8
.LC4:
	.long	-1998362383
	.long	1055193269
	.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
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf%lf%lf%d"
.LC2:
	.string	"%lf%lf%lf"
.LC5:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$904, %rsp
	.cfi_def_cfa_offset 960
	movq	%fs:40, %rax
	movq	%rax, 888(%rsp)
	xorl	%eax, %eax
	leaq	128(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	128(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 128(%rsp)
	testl	%eax, %eax
	je	.L23
	leaq	132(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	152(%rsp), %rax
	movq	%rax, 64(%rsp)
	leaq	144(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	136(%rsp), %rax
	movq	%rax, 48(%rsp)
.L2:
	movq	40(%rsp), %r8
	movq	64(%rsp), %rcx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	movq	56(%rsp), %rdx
	movq	48(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	132(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	leaq	160(%rsp), %r14
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r12
	movq	%r14, %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	leaq	16(%rbx), %rcx
	leaq	8(%rbx), %rdx
	xorl	%eax, %eax
	movq	%r12, %rdi
	addl	$1, %ebp
	addq	$24, %rbx
	call	__isoc99_scanf@PLT
	movl	132(%rsp), %esi
	movq	.LC4(%rip), %rax
	cmpl	%ebp, %esi
	movq	%rax, %xmm5
	jg	.L4
	testl	%esi, %esi
	jle	.L3
	xorl	%r15d, %r15d
	pxor	%xmm4, %xmm4
	movq	%r14, %r10
	movl	%r15d, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%r13d, %r13d
	movl	%ecx, %r15d
	movq	%r10, %r12
	addl	$1, %ecx
	leal	1(%r13), %r8d
	testl	%esi, %esi
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	cmpl	%r13d, %r15d
	movq	%r10, %rbx
	sete	%r9b
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L19:
	cmpl	%eax, %r15d
	leal	1(%rax), %ebp
	sete	%dl
	cmpl	%r13d, %eax
	sete	%dil
	orb	%dil, %dl
	jne	.L6
	testb	%r9b, %r9b
	jne	.L6
	movsd	(%r12), %xmm9
	movsd	8(%r12), %xmm8
	movsd	(%r14), %xmm1
	movsd	8(%r14), %xmm7
	movapd	%xmm9, %xmm3
	movapd	%xmm8, %xmm10
	movsd	16(%r12), %xmm2
	movsd	16(%r14), %xmm6
	subsd	%xmm1, %xmm3
	subsd	%xmm7, %xmm10
	movapd	%xmm2, %xmm0
	subsd	%xmm6, %xmm0
	mulsd	%xmm3, %xmm3
	mulsd	%xmm10, %xmm10
	mulsd	%xmm0, %xmm0
	addsd	%xmm10, %xmm3
	addsd	%xmm0, %xmm3
	ucomisd	%xmm3, %xmm4
	ja	.L41
	sqrtsd	%xmm3, %xmm3
.L9:
	movsd	(%rbx), %xmm10
	movapd	%xmm10, %xmm0
	subsd	%xmm9, %xmm0
	movsd	8(%rbx), %xmm9
	movapd	%xmm9, %xmm12
	subsd	%xmm8, %xmm12
	movsd	16(%rbx), %xmm8
	mulsd	%xmm0, %xmm0
	movapd	%xmm8, %xmm11
	mulsd	%xmm12, %xmm12
	subsd	%xmm2, %xmm11
	mulsd	%xmm11, %xmm11
	addsd	%xmm12, %xmm0
	addsd	%xmm11, %xmm0
	ucomisd	%xmm0, %xmm4
	ja	.L42
	movapd	%xmm0, %xmm2
	sqrtsd	%xmm2, %xmm2
.L12:
	subsd	%xmm10, %xmm1
	subsd	%xmm9, %xmm7
	subsd	%xmm8, %xmm6
	mulsd	%xmm1, %xmm1
	mulsd	%xmm7, %xmm7
	mulsd	%xmm6, %xmm6
	addsd	%xmm7, %xmm1
	addsd	%xmm6, %xmm1
	ucomisd	%xmm1, %xmm4
	movapd	%xmm1, %xmm0
	ja	.L43
	sqrtsd	%xmm0, %xmm0
.L15:
	movsd	136(%rsp), %xmm7
	movapd	%xmm3, %xmm8
	movsd	144(%rsp), %xmm1
	divsd	%xmm2, %xmm8
	movapd	%xmm7, %xmm6
	divsd	%xmm1, %xmm6
	subsd	%xmm8, %xmm6
	comisd	%xmm6, %xmm5
	jbe	.L47
	movsd	152(%rsp), %xmm6
	divsd	%xmm0, %xmm2
	divsd	%xmm6, %xmm1
	subsd	%xmm2, %xmm1
	comisd	%xmm1, %xmm5
	jbe	.L47
	divsd	%xmm7, %xmm6
	divsd	%xmm3, %xmm0
	subsd	%xmm0, %xmm6
	comisd	%xmm6, %xmm5
	ja	.L33
	.p2align 4,,10
	.p2align 3
.L47:
	leal	1(%rax), %ebp
.L6:
	movl	%ebp, %eax
	addq	$24, %rbx
	cmpl	%esi, %ebp
	jl	.L19
	cmpl	%r8d, %esi
	jle	.L49
	movl	%r8d, %r13d
	addq	$24, %r12
	leal	1(%r13), %r8d
	testl	%esi, %esi
	jg	.L21
.L3:
	movl	128(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 128(%rsp)
	testl	%eax, %eax
	jne	.L2
.L23:
	movq	888(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$904, %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
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	leal	1(%rax), %ebp
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%ecx, 8(%rsp)
	leaq	.LC5(%rip), %rsi
	movl	%ebp, %edx
	movb	%r9b, 32(%rsp)
	movq	%r10, 24(%rsp)
	movl	%r8d, 16(%rsp)
	call	__printf_chk@PLT
	movq	.LC4(%rip), %rax
	movzbl	32(%rsp), %r9d
	pxor	%xmm4, %xmm4
	movl	132(%rsp), %esi
	movq	24(%rsp), %r10
	movl	16(%rsp), %r8d
	movl	8(%rsp), %ecx
	movq	%rax, %xmm5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L49:
	addq	$24, %r14
	cmpl	%ecx, %esi
	jg	.L5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L43:
	movl	%r8d, 96(%rsp)
	movl	%ecx, 88(%rsp)
	movl	%esi, 80(%rsp)
	movb	%r9b, 72(%rsp)
	movl	%eax, 32(%rsp)
	movq	%r10, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm3, 8(%rsp)
	call	sqrt@PLT
	movq	.LC4(%rip), %rdi
	movl	96(%rsp), %r8d
	pxor	%xmm4, %xmm4
	movl	88(%rsp), %ecx
	movl	80(%rsp), %esi
	movzbl	72(%rsp), %r9d
	movl	32(%rsp), %eax
	movq	%rdi, %xmm5
	movq	24(%rsp), %r10
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm3
	jmp	.L15
.L42:
	movl	%r8d, 124(%rsp)
	movl	%ecx, 120(%rsp)
	movl	%esi, 116(%rsp)
	movb	%r9b, 112(%rsp)
	movl	%eax, 108(%rsp)
	movq	%r10, 96(%rsp)
	movsd	%xmm3, 88(%rsp)
	movsd	%xmm8, 80(%rsp)
	movsd	%xmm9, 72(%rsp)
	movsd	%xmm10, 32(%rsp)
	movsd	%xmm6, 24(%rsp)
	movsd	%xmm7, 16(%rsp)
	movsd	%xmm1, 8(%rsp)
	call	sqrt@PLT
	movq	.LC4(%rip), %rdi
	movl	124(%rsp), %r8d
	pxor	%xmm4, %xmm4
	movl	120(%rsp), %ecx
	movl	116(%rsp), %esi
	movapd	%xmm0, %xmm2
	movzbl	112(%rsp), %r9d
	movl	108(%rsp), %eax
	movq	%rdi, %xmm5
	movq	96(%rsp), %r10
	movsd	88(%rsp), %xmm3
	movsd	80(%rsp), %xmm8
	movsd	72(%rsp), %xmm9
	movsd	32(%rsp), %xmm10
	movsd	24(%rsp), %xmm6
	movsd	16(%rsp), %xmm7
	movsd	8(%rsp), %xmm1
	jmp	.L12
.L41:
	movapd	%xmm3, %xmm0
	movl	%r8d, 120(%rsp)
	movl	%ecx, 116(%rsp)
	movl	%esi, 112(%rsp)
	movb	%r9b, 108(%rsp)
	movl	%eax, 96(%rsp)
	movq	%r10, 88(%rsp)
	movsd	%xmm6, 80(%rsp)
	movsd	%xmm2, 72(%rsp)
	movsd	%xmm7, 32(%rsp)
	movsd	%xmm8, 24(%rsp)
	movsd	%xmm1, 16(%rsp)
	movsd	%xmm9, 8(%rsp)
	call	sqrt@PLT
	movq	.LC4(%rip), %rdi
	movl	120(%rsp), %r8d
	pxor	%xmm4, %xmm4
	movl	116(%rsp), %ecx
	movl	112(%rsp), %esi
	movapd	%xmm0, %xmm3
	movzbl	108(%rsp), %r9d
	movl	96(%rsp), %eax
	movq	%rdi, %xmm5
	movq	88(%rsp), %r10
	movsd	80(%rsp), %xmm6
	movsd	72(%rsp), %xmm2
	movsd	32(%rsp), %xmm7
	movsd	24(%rsp), %xmm8
	movsd	16(%rsp), %xmm1
	movsd	8(%rsp), %xmm9
	jmp	.L9
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	-1998362383
	.long	1055193269
	.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
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf%lf%lf%d"
.LC2:
	.string	"%lf%lf%lf"
.LC5:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$904, %rsp
	.cfi_def_cfa_offset 960
	movq	%fs:40, %rax
	movq	%rax, 888(%rsp)
	xorl	%eax, %eax
	leaq	128(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	128(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 128(%rsp)
	testl	%eax, %eax
	je	.L23
	leaq	132(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	152(%rsp), %rax
	movq	%rax, 64(%rsp)
	leaq	144(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	136(%rsp), %rax
	movq	%rax, 48(%rsp)
.L2:
	movq	40(%rsp), %r8
	movq	64(%rsp), %rcx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	movq	56(%rsp), %rdx
	movq	48(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	132(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	leaq	160(%rsp), %r14
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r12
	movq	%r14, %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	leaq	16(%rbx), %rcx
	leaq	8(%rbx), %rdx
	xorl	%eax, %eax
	movq	%r12, %rdi
	addl	$1, %ebp
	addq	$24, %rbx
	call	__isoc99_scanf@PLT
	movl	132(%rsp), %esi
	movq	.LC4(%rip), %rax
	cmpl	%ebp, %esi
	movq	%rax, %xmm5
	jg	.L4
	testl	%esi, %esi
	jle	.L3
	xorl	%r15d, %r15d
	pxor	%xmm4, %xmm4
	movq	%r14, %r10
	movl	%r15d, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%r13d, %r13d
	movl	%ecx, %r15d
	movq	%r10, %r12
	addl	$1, %ecx
	leal	1(%r13), %r8d
	testl	%esi, %esi
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	cmpl	%r13d, %r15d
	movq	%r10, %rbx
	sete	%r9b
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L19:
	cmpl	%eax, %r15d
	leal	1(%rax), %ebp
	sete	%dl
	cmpl	%r13d, %eax
	sete	%dil
	orb	%dil, %dl
	jne	.L6
	testb	%r9b, %r9b
	jne	.L6
	movsd	(%r12), %xmm9
	movsd	8(%r12), %xmm8
	movsd	(%r14), %xmm1
	movsd	8(%r14), %xmm7
	movapd	%xmm9, %xmm3
	movapd	%xmm8, %xmm10
	movsd	16(%r12), %xmm2
	movsd	16(%r14), %xmm6
	subsd	%xmm1, %xmm3
	subsd	%xmm7, %xmm10
	movapd	%xmm2, %xmm0
	subsd	%xmm6, %xmm0
	mulsd	%xmm3, %xmm3
	mulsd	%xmm10, %xmm10
	mulsd	%xmm0, %xmm0
	addsd	%xmm10, %xmm3
	addsd	%xmm0, %xmm3
	ucomisd	%xmm3, %xmm4
	ja	.L41
	sqrtsd	%xmm3, %xmm3
.L9:
	movsd	(%rbx), %xmm10
	movapd	%xmm10, %xmm0
	subsd	%xmm9, %xmm0
	movsd	8(%rbx), %xmm9
	movapd	%xmm9, %xmm12
	subsd	%xmm8, %xmm12
	movsd	16(%rbx), %xmm8
	mulsd	%xmm0, %xmm0
	movapd	%xmm8, %xmm11
	mulsd	%xmm12, %xmm12
	subsd	%xmm2, %xmm11
	mulsd	%xmm11, %xmm11
	addsd	%xmm12, %xmm0
	addsd	%xmm11, %xmm0
	ucomisd	%xmm0, %xmm4
	ja	.L42
	movapd	%xmm0, %xmm2
	sqrtsd	%xmm2, %xmm2
.L12:
	subsd	%xmm10, %xmm1
	subsd	%xmm9, %xmm7
	subsd	%xmm8, %xmm6
	mulsd	%xmm1, %xmm1
	mulsd	%xmm7, %xmm7
	mulsd	%xmm6, %xmm6
	addsd	%xmm7, %xmm1
	addsd	%xmm6, %xmm1
	ucomisd	%xmm1, %xmm4
	movapd	%xmm1, %xmm0
	ja	.L43
	sqrtsd	%xmm0, %xmm0
.L15:
	movsd	136(%rsp), %xmm7
	movapd	%xmm3, %xmm8
	movsd	144(%rsp), %xmm1
	divsd	%xmm2, %xmm8
	movapd	%xmm7, %xmm6
	divsd	%xmm1, %xmm6
	subsd	%xmm8, %xmm6
	comisd	%xmm6, %xmm5
	jbe	.L47
	movsd	152(%rsp), %xmm6
	divsd	%xmm0, %xmm2
	divsd	%xmm6, %xmm1
	subsd	%xmm2, %xmm1
	comisd	%xmm1, %xmm5
	jbe	.L47
	divsd	%xmm7, %xmm6
	divsd	%xmm3, %xmm0
	subsd	%xmm0, %xmm6
	comisd	%xmm6, %xmm5
	ja	.L33
	.p2align 4,,10
	.p2align 3
.L47:
	leal	1(%rax), %ebp
.L6:
	movl	%ebp, %eax
	addq	$24, %rbx
	cmpl	%esi, %ebp
	jl	.L19
	cmpl	%r8d, %esi
	jle	.L49
	movl	%r8d, %r13d
	addq	$24, %r12
	leal	1(%r13), %r8d
	testl	%esi, %esi
	jg	.L21
.L3:
	movl	128(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 128(%rsp)
	testl	%eax, %eax
	jne	.L2
.L23:
	movq	888(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$904, %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
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	leal	1(%rax), %ebp
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%ecx, 8(%rsp)
	leaq	.LC5(%rip), %rsi
	movl	%ebp, %edx
	movb	%r9b, 32(%rsp)
	movq	%r10, 24(%rsp)
	movl	%r8d, 16(%rsp)
	call	__printf_chk@PLT
	movq	.LC4(%rip), %rax
	movzbl	32(%rsp), %r9d
	pxor	%xmm4, %xmm4
	movl	132(%rsp), %esi
	movq	24(%rsp), %r10
	movl	16(%rsp), %r8d
	movl	8(%rsp), %ecx
	movq	%rax, %xmm5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L49:
	addq	$24, %r14
	cmpl	%ecx, %esi
	jg	.L5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L43:
	movl	%r8d, 96(%rsp)
	movl	%ecx, 88(%rsp)
	movl	%esi, 80(%rsp)
	movb	%r9b, 72(%rsp)
	movl	%eax, 32(%rsp)
	movq	%r10, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm3, 8(%rsp)
	call	sqrt@PLT
	movq	.LC4(%rip), %rdi
	movl	96(%rsp), %r8d
	pxor	%xmm4, %xmm4
	movl	88(%rsp), %ecx
	movl	80(%rsp), %esi
	movzbl	72(%rsp), %r9d
	movl	32(%rsp), %eax
	movq	%rdi, %xmm5
	movq	24(%rsp), %r10
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm3
	jmp	.L15
.L42:
	movl	%r8d, 124(%rsp)
	movl	%ecx, 120(%rsp)
	movl	%esi, 116(%rsp)
	movb	%r9b, 112(%rsp)
	movl	%eax, 108(%rsp)
	movq	%r10, 96(%rsp)
	movsd	%xmm3, 88(%rsp)
	movsd	%xmm8, 80(%rsp)
	movsd	%xmm9, 72(%rsp)
	movsd	%xmm10, 32(%rsp)
	movsd	%xmm6, 24(%rsp)
	movsd	%xmm7, 16(%rsp)
	movsd	%xmm1, 8(%rsp)
	call	sqrt@PLT
	movq	.LC4(%rip), %rdi
	movl	124(%rsp), %r8d
	pxor	%xmm4, %xmm4
	movl	120(%rsp), %ecx
	movl	116(%rsp), %esi
	movapd	%xmm0, %xmm2
	movzbl	112(%rsp), %r9d
	movl	108(%rsp), %eax
	movq	%rdi, %xmm5
	movq	96(%rsp), %r10
	movsd	88(%rsp), %xmm3
	movsd	80(%rsp), %xmm8
	movsd	72(%rsp), %xmm9
	movsd	32(%rsp), %xmm10
	movsd	24(%rsp), %xmm6
	movsd	16(%rsp), %xmm7
	movsd	8(%rsp), %xmm1
	jmp	.L12
.L41:
	movapd	%xmm3, %xmm0
	movl	%r8d, 120(%rsp)
	movl	%ecx, 116(%rsp)
	movl	%esi, 112(%rsp)
	movb	%r9b, 108(%rsp)
	movl	%eax, 96(%rsp)
	movq	%r10, 88(%rsp)
	movsd	%xmm6, 80(%rsp)
	movsd	%xmm2, 72(%rsp)
	movsd	%xmm7, 32(%rsp)
	movsd	%xmm8, 24(%rsp)
	movsd	%xmm1, 16(%rsp)
	movsd	%xmm9, 8(%rsp)
	call	sqrt@PLT
	movq	.LC4(%rip), %rdi
	movl	120(%rsp), %r8d
	pxor	%xmm4, %xmm4
	movl	116(%rsp), %ecx
	movl	112(%rsp), %esi
	movapd	%xmm0, %xmm3
	movzbl	108(%rsp), %r9d
	movl	96(%rsp), %eax
	movq	%rdi, %xmm5
	movq	88(%rsp), %r10
	movsd	80(%rsp), %xmm6
	movsd	72(%rsp), %xmm2
	movsd	32(%rsp), %xmm7
	movsd	24(%rsp), %xmm8
	movsd	16(%rsp), %xmm1
	movsd	8(%rsp), %xmm9
	jmp	.L9
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	-1998362383
	.long	1055193269
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

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

#define REP(i,n,m) for(i=n;i<m;i++)
#define rep(i,n) REP(i,0,n)

#define EPS (1e-5)

typedef struct{
	double x,y,z;
}P;

int main(void){
	int i,j,k;
	int n,m;
	double a,b,c;
	P p[30];

	scanf("%d",&n);
	while(n--){
		scanf("%lf%lf%lf%d",&a,&b,&c,&m);
		rep(i,m) scanf("%lf%lf%lf",&p[i].x,&p[i].y,&p[i].z);

		rep(i,m){
			rep(j,m){
				rep(k,m){
					if(i == j || i == k || j == k) continue;

					double ta = sqrt( pow(p[j].x - p[i].x, 2) +
														pow(p[j].y - p[i].y, 2) + 
														pow(p[j].z - p[i].z, 2));
					double tb = sqrt( pow(p[k].x - p[j].x, 2) +
														pow(p[k].y - p[j].y, 2) + 
														pow(p[k].z - p[j].z, 2));
					double tc = sqrt( pow(p[i].x - p[k].x, 2) +
														pow(p[i].y - p[k].y, 2) + 
														pow(p[i].z - p[k].z, 2));

					if(a / b - ta / tb < EPS &&
						 b / c - tb / tc < EPS &&
						 c / a - tc / ta < EPS)
						printf("%d %d %d\n",k+1,i+1,j+1);
				}
			}
		}
	}

	return 0;
}
2
   50.36493  81.61338  79.96592
5
  -10293.83 -4800.033 -5296.238
   14936.30  6964.826  7684.818
  -4516.069  25748.41 -27016.06
   18301.59 -11946.25  5380.309
   27115.20  43415.99770967086 -71607.81
   11.51547  13.35555  14.57307
5
  -56292.27  2583.892  67754.62
  -567.5082 -756.2763 -118.7268
  -1235.987 -213.3318 -216.4862
  -317.6108 -54.81976 -55.63033
   22505.44 -40752.88  27482.94
 2
   50.36493  81.61338  79.96592
5
  -10293.83 -4800.033 -5296.238
   14936.30  6964.826  7684.818
  -4516.069  25748.41 -27016.06
   18301.59 -11946.25  5380.309
   27115.20  43415.99770967086 -71607.81
   11.51547  13.35555  14.57307
5
  -56292.27  2584.5264985984345  67754.62
  -567.5082 -756.2763 -118.7268
  -1235.987 -213.3318 -216.4862
  -317.6108 -54.81976 -55.63033
   22505.44 -40752.88  27482.94
 2
   50.36493  81.61338  79.96592
5
  -10293.83 -4800.033 -5296.238
   14936.30  6964.826  7684.818
  -4516.069  25748.68553121518 -27016.06
   18301.59 -11946.25  5380.309
   27115.20  43415.99770967086 -71607.81
   11.51547  13.35555  14.57307
5
  -56292.27  2583.892  67754.62
  -567.5082 -756.2763 -118.7268
  -1235.987 -213.3318 -216.4862
  -317.6108 -54.81976 -55.63033
   22505.44 -40752.88  27482.94
 2
   50.36493  81.61338  79.96592
5
  -10293.83 -4800.033 -5296.238
   14936.30  6964.826  7684.818
  -4516.069  25748.41 -27016.06
   18301.59 -11946.25  5380.309
   27115.20  43415.99770967086 -71607.81
   11.51547  13.35555  14.57307
5
  -56292.27  2584.5264985984345  67755.55744936658
  -567.5082 -756.2763 -118.7268
  -1235.987 -213.3318 -216.4862
  -317.6108 -54.81976 -55.63033
   22505.44 -40752.88  27482.94
 2
   50.36493  81.61338  79.96592
5
  -10293.83 -4800.033 -5296.238
   14936.30  6964.826  7684.894858264562
  -4516.069  25748.41 -27016.06
   18301.59 -11946.25  5380.309
   27115.20  43415.99770967086 -71607.81
   11.51547  13.35555  14.57307
5
  -56292.27  2584.5264985984345  67755.55744936658
  -567.5082 -756.2763 -118.7268
  -1235.987 -213.3318 -216.4862
  -317.6108 -54.81976 -55.63033
   22505.44 -40752.88  27482.94
 2
   50.36493  81.61338  79.96592
5
  -10293.83 -4800.033 -5296.238
   14936.30  6964.826  7684.894858264562
  -4516.069  25748.41 -27016.06
   18301.59 -11946.25  5380.309
   27115.20  43415.99770967086 -71607.81
   11.51547  13.35555  14.57307
5
  -56292.27  2584.5264985984345  67755.55744936658
  -567.5082 -756.2763 -118.7268
  -1235.987 -213.3318 -216.4862
  -317.6108 -54.81976 -55.63033
   22505.44 -40752.88  27483.444069553898
 2
   50.36493  81.61338  79.96592
5
  -10293.83 -4800.033 -5296.238
   14936.30  6964.826  7684.818
  -4516.069  25748.41 -27016.06
   18301.59 -11946.25  5380.309
   27115.20  43415.93 -71607.81
   11.51547  13.35555  14.57307
5
  -56292.27  2583.892  67754.62
  -567.5082 -756.2763 -118.7268
  -1235.987 -213.3318 -216.4862
  -317.6108 -54.81976 -55.63033
   22505.51648385568 -40752.88  27482.94
 2
   50.36493  81.61338  79.96592
5
  -10293.83 -4800.033 -5296.238
   14936.30  6964.826  7684.818
  -4516.069  25748.41 -27016.06
   18301.59 -11946.25  5380.309
   27115.20  43415.99770967086 -71607.81
   11.51547  13.35555  14.57307
5
  -56292.27  2584.703121022903  67754.62
  -567.5082 -756.2763 -118.7268
  -1235.987 -213.3318 -216.4862
  -317.6108 -54.81976 -55.63033
   22505.44 -40752.88  27482.94
 2
   50.36493  81.61338  79.96592
5
  -10293.83 -4800.033 -5296.238
   14936.30  6964.826  7684.818
  -4516.069  25748.68553121518 -27016.06
   18301.59 -11946.25  5380.309
   27115.20  43415.99770967086 -71607.81
   11.51547  13.35555  14.57307
5
  -56292.27  2583.892  67754.62
  -567.5082 -756.2763 -118.7268
  -1235.987 -213.3318 -216.4862
  -317.6108 -54.81976 -55.63033
   22505.44 -40752.88  27482.997591308562
 2
   50.36493  81.61338  79.96592
5
  -10293.83 -4800.033 -5296.238
   14936.30  6964.826  7684.818
  -4516.069  25748.41 -27016.06
   18301.59 -11946.25  5380.309
   27115.20  43415.99770967086 -71607.81
   11.51547  13.35555  14.57307
5
  -56292.09110175918  2584.5264985984345  67755.55744936658
  -567.5082 -756.2763 -118.7268
  -1235.987 -213.3318 -216.4862
  -317.6108 -54.81976 -55.63033
   22505.44 -40752.88  27482.94

1 2 4
3 4 2
 1 2 4
3 4 2
 1 2 4
3 4 2
 1 2 4
3 4 2
 1 2 4
3 4 2
 1 2 4
3 4 2
 1 2 4
3 4 2
 1 2 4
3 4 2
 1 2 4
3 4 2
 1 2 4
3 4 2

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

```c
#include <stdio.h>
#include <math.h>

#define REP(i,n,m) for(i=n;i<m;i++)
#define rep(i,n) REP(i,0,n)

#define EPS (1e-5)

typedef struct{
	double x,y,z;
}P;

int main(void){
	int i,j,k;
	int n,m;
	double a,b,c;
	P p[30];

	scanf("%d",&n);
	while(n--){
		scanf("%lf%lf%lf%d",&a,&b,&c,&m);
		rep(i,m) scanf("%lf%lf%lf",&p[i].x,&p[i].y,&p[i].z);

		rep(i,m){
			rep(j,m){
				rep(k,m){
					if(i == j || i == k || j == k) continue;

					double ta = sqrt( pow(p[j].x - p[i].x, 2) +
														pow(p[j].y - p[i].y, 2) + 
														pow(p[j].z - p[i].z, 2));
					double tb = sqrt( pow(p[k].x - p[j].x, 2) +
														pow(p[k].y - p[j].y, 2) + 
														pow(p[k].z - p[j].z, 2));
					double tc = sqrt( pow(p[i].x - p[k].x, 2) +
														pow(p[i].y - p[k].y, 2) + 
														pow(p[i].z - p[k].z, 2));

					if(a / b - ta / tb < EPS &&
						 b / c - tb / tc < EPS &&
						 c / a - tc / ta < EPS)
						printf("%d %d %d\n",k+1,i+1,j+1);
				}
			}
		}
	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf%lf%lf%d"
.LC2:
	.string	"%lf%lf%lf"
.LC5:
	.string	"%d %d %d\n"
	.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	$832, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-804(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L17:
	leaq	-800(%rbp), %rsi
	leaq	-768(%rbp), %rcx
	leaq	-776(%rbp), %rdx
	leaq	-784(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -796(%rbp)
	jmp	.L3
.L4:
	leaq	-736(%rbp), %rcx
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	$16, %rax
	addq	%rax, %rcx
	leaq	-736(%rbp), %rsi
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	leaq	8(%rax), %rdx
	leaq	-736(%rbp), %rdi
	movl	-796(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$3, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -796(%rbp)
.L3:
	movl	-800(%rbp), %eax
	cmpl	%eax, -796(%rbp)
	jl	.L4
	movl	$0, -796(%rbp)
	jmp	.L5
.L16:
	movl	$0, -792(%rbp)
	jmp	.L6
.L15:
	movl	$0, -788(%rbp)
	jmp	.L7
.L14:
	movl	-796(%rbp), %eax
	cmpl	-792(%rbp), %eax
	je	.L23
	movl	-796(%rbp), %eax
	cmpl	-788(%rbp), %eax
	je	.L23
	movl	-792(%rbp), %eax
	cmpl	-788(%rbp), %eax
	je	.L23
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm0
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	%xmm0, -824(%rbp)
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm0
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm1
	movapd	%xmm0, %xmm3
	subsd	%xmm1, %xmm3
	movq	%xmm3, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movapd	%xmm0, %xmm4
	addsd	-824(%rbp), %xmm4
	movsd	%xmm4, -824(%rbp)
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm0
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	addsd	-824(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -760(%rbp)
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm0
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	%xmm0, -824(%rbp)
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm0
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm1
	movapd	%xmm0, %xmm5
	subsd	%xmm1, %xmm5
	movq	%xmm5, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movapd	%xmm0, %xmm6
	addsd	-824(%rbp), %xmm6
	movsd	%xmm6, -824(%rbp)
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm0
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	addsd	-824(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -752(%rbp)
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm0
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	%xmm0, -824(%rbp)
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm0
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm1
	movapd	%xmm0, %xmm7
	subsd	%xmm1, %xmm7
	movq	%xmm7, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movapd	%xmm0, %xmm3
	addsd	-824(%rbp), %xmm3
	movsd	%xmm3, -824(%rbp)
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm0
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	addsd	-824(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -744(%rbp)
	movsd	-784(%rbp), %xmm0
	movsd	-776(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-760(%rbp), %xmm1
	movapd	%xmm1, %xmm2
	divsd	-752(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movsd	-776(%rbp), %xmm0
	movsd	-768(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-752(%rbp), %xmm1
	movapd	%xmm1, %xmm2
	divsd	-744(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movsd	-768(%rbp), %xmm0
	movsd	-784(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-744(%rbp), %xmm1
	movapd	%xmm1, %xmm2
	divsd	-760(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movl	-792(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-796(%rbp), %eax
	leal	1(%rax), %edx
	movl	-788(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L23:
	nop
.L10:
	addl	$1, -788(%rbp)
.L7:
	movl	-800(%rbp), %eax
	cmpl	%eax, -788(%rbp)
	jl	.L14
	addl	$1, -792(%rbp)
.L6:
	movl	-800(%rbp), %eax
	cmpl	%eax, -792(%rbp)
	jl	.L15
	addl	$1, -796(%rbp)
.L5:
	movl	-800(%rbp), %eax
	cmpl	%eax, -796(%rbp)
	jl	.L16
.L2:
	movl	-804(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -804(%rbp)
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.align 8
.LC4:
	.long	-1998362383
	.long	1055193269
	.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.
val
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf%lf%lf%d"
.LC2:
	.string	"%lf%lf%lf"
.LC5:
	.string	"%d %d %d\n"
	.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	$832, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-804(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L17:
	leaq	-800(%rbp), %rsi
	leaq	-768(%rbp), %rcx
	leaq	-776(%rbp), %rdx
	leaq	-784(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -796(%rbp)
	jmp	.L3
.L4:
	leaq	-736(%rbp), %rcx
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	$16, %rax
	addq	%rax, %rcx
	leaq	-736(%rbp), %rsi
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	leaq	8(%rax), %rdx
	leaq	-736(%rbp), %rdi
	movl	-796(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$3, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -796(%rbp)
.L3:
	movl	-800(%rbp), %eax
	cmpl	%eax, -796(%rbp)
	jl	.L4
	movl	$0, -796(%rbp)
	jmp	.L5
.L16:
	movl	$0, -792(%rbp)
	jmp	.L6
.L15:
	movl	$0, -788(%rbp)
	jmp	.L7
.L14:
	movl	-796(%rbp), %eax
	cmpl	-792(%rbp), %eax
	je	.L23
	movl	-796(%rbp), %eax
	cmpl	-788(%rbp), %eax
	je	.L23
	movl	-792(%rbp), %eax
	cmpl	-788(%rbp), %eax
	je	.L23
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm0
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	%xmm0, -824(%rbp)
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm0
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm1
	movapd	%xmm0, %xmm3
	subsd	%xmm1, %xmm3
	movq	%xmm3, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movapd	%xmm0, %xmm4
	addsd	-824(%rbp), %xmm4
	movsd	%xmm4, -824(%rbp)
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm0
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	addsd	-824(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -760(%rbp)
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm0
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	%xmm0, -824(%rbp)
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm0
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm1
	movapd	%xmm0, %xmm5
	subsd	%xmm1, %xmm5
	movq	%xmm5, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movapd	%xmm0, %xmm6
	addsd	-824(%rbp), %xmm6
	movsd	%xmm6, -824(%rbp)
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm0
	movl	-792(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	addsd	-824(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -752(%rbp)
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm0
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$736, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	%xmm0, -824(%rbp)
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm0
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$728, %rax
	movsd	(%rax), %xmm1
	movapd	%xmm0, %xmm7
	subsd	%xmm1, %xmm7
	movq	%xmm7, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movapd	%xmm0, %xmm3
	addsd	-824(%rbp), %xmm3
	movsd	%xmm3, -824(%rbp)
	movl	-796(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm0
	movl	-788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$720, %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movsd	.LC3(%rip), %xmm0
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	addsd	-824(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -744(%rbp)
	movsd	-784(%rbp), %xmm0
	movsd	-776(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-760(%rbp), %xmm1
	movapd	%xmm1, %xmm2
	divsd	-752(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movsd	-776(%rbp), %xmm0
	movsd	-768(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-752(%rbp), %xmm1
	movapd	%xmm1, %xmm2
	divsd	-744(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movsd	-768(%rbp), %xmm0
	movsd	-784(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-744(%rbp), %xmm1
	movapd	%xmm1, %xmm2
	divsd	-760(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L10
	movl	-792(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-796(%rbp), %eax
	leal	1(%rax), %edx
	movl	-788(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L23:
	nop
.L10:
	addl	$1, -788(%rbp)
.L7:
	movl	-800(%rbp), %eax
	cmpl	%eax, -788(%rbp)
	jl	.L14
	addl	$1, -792(%rbp)
.L6:
	movl	-800(%rbp), %eax
	cmpl	%eax, -792(%rbp)
	jl	.L15
	addl	$1, -796(%rbp)
.L5:
	movl	-800(%rbp), %eax
	cmpl	%eax, -796(%rbp)
	jl	.L16
.L2:
	movl	-804(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -804(%rbp)
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.align 8
.LC4:
	.long	-1998362383
	.long	1055193269
	.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:
