// File: /workspace/github_cpp_makefile_star2_O3/dannycalegari[P]circle_pack/./Layout_routine.cc
// Function: Packing::change_geometry(char)
void Packing::change_geometry(char new_geometry){
	Point Pcent,Pin,Pout,ORIGIN,Q;
	double d,theta;
	double R;
	int i;
	if(verbose){
		cout << "changing geometry from " << geometry << " to " << new_geometry << "\n";
	};
	ORIGIN.x=0.0;
	ORIGIN.y=0.0;
	ORIGIN.z=1.0;
	if(new_geometry=='E' && geometry=='H'){
		for(i=0;i<(int) adj.size();i++){	// for each point
			if(i==INFV){	// special case
				center[i]=ORIGIN;
				rad[i]=-1.0;
			} else {
				Pcent=center[i];	// hyperbolic center
				d=hyp_dist(Pcent);		// hyperbolic distance to 0
				theta=hyp_ang(Pcent);	// hyperbolic angle from 0
				R=rad[i];		// hyperbolic radius
				Pin=(ROT(theta)*HTR(d-R))(ORIGIN);
				Pin=hyperboloid_to_Poincare(Pin);
				Pout=(ROT(theta)*HTR(d+R))(ORIGIN);
				Pout=hyperboloid_to_Poincare(Pout);
				Pcent=midpoint(Pin,Pout);
				R=Euc_dist(Pin,Pout)/2.0;
				center[i]=Pcent;	// Euclidean center
				rad[i]=R;			// Euclidean radius
			};
		};
		geometry='E';
	} else if(new_geometry=='S' && geometry=='H'){
		for(i=0;i<(int) adj.size();i++){	// for each point
			if(i==INFV){	// special case
				center[i]=ORIGIN;
				center[i].z=-1.0;	// actually, we want center at (0,0,-1), i.e. infinity
				rad[i]=PI/2.0;
			} else {
				Pcent=center[i];	// hyperbolic center
				d=hyp_dist(Pcent);		// hyperbolic distance to 0
				theta=hyp_ang(Pcent);	// hyperbolic angle from 0
				R=rad[i];		// hyperbolic radius
				Pin=(ROT(theta)*HTR(d-R))(ORIGIN);
				Pin=hyperboloid_to_sphere(Pin);
				Pout=(ROT(theta)*HTR(d+R))(ORIGIN);
				Pout=hyperboloid_to_sphere(Pout);
				Pcent=midpoint(Pin,Pout);
				Pcent=Pcent/norm(Pcent);
				R=sph_dist(Pin,Pout)/2.0;
				center[i]=Pcent;	// Spherical center
				rad[i]=R;			// Spherical radius
			};
		};
		geometry='S';	
	} else if(new_geometry=='S' && geometry=='E'){
		for(i=0;i<(int) adj.size();i++){	// for each point
			Pcent=center[i];	// Euclidean center
			R=fabs(rad[i]);		// Euclidean radius
			theta=Euc_ang(Pcent);	// Euclidean angle from origin
			Q.x=cos(theta)*R;
			Q.y=sin(theta)*R;
			Q.z=0.0;
			Pin=Pcent-Q;
			Pin=Euclidean_to_sphere(Pin);
			Pout=Pcent+Q;
			Pout=Euclidean_to_sphere(Pout);
			Pcent=midpoint(Pin,Pout);	// new Pcent
			if(norm(Pcent)==0.0){
				Pcent=ORIGIN;
			} else {
				Pcent=Pcent/norm(Pcent);
			};
			R=sph_dist(Pin,Pout)/2.0;
			center[i]=Pcent;	// Spherical center
			rad[i]=R;			// Spherical radius
		};
		geometry='S';	
	};
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movl %esi, %ebp
movq %rdi, %r12
cmpb $0x1, 0xb8(%rdi)
jne 0x627d
movq 0x7dc4(%rip), %r14      # 0xdfd0
leaq 0x41ae(%rip), %rsi      # 0xa3c1
movl $0x17, %edx
movq %r14, %rdi
callq 0x2220
movb 0x60(%r12), %al
leaq 0x68(%rsp), %r15
movb %al, (%r15)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2220
movq %rax, %r14
leaq 0x4192(%rip), %rsi      # 0xa3d9
movl $0x4, %edx
movq %rax, %rdi
callq 0x2220
movb %bpl, (%r15)
leaq 0x68(%rsp), %rsi
movl $0x1, %edx
movq %r14, %rdi
callq 0x2220
leaq 0x44b1(%rip), %rsi      # 0xa721
movl $0x1, %edx
movq %rax, %rdi
callq 0x2220
movsbl %bpl, %eax
cmpl $0x53, %eax
je 0x6665
cmpl $0x45, %eax
jne 0x6d5e
cmpb $0x48, 0x60(%r12)
jne 0x6d5e
movq (%r12), %rax
movq 0x8(%r12), %rcx
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x3, %rdx
imull $0xaaaaaaab, %edx, %edx # imm = 0xAAAAAAAB
testl %edx, %edx
jle 0x665a
movl $0x2, %ebp
xorl %r15d, %r15d
xorpd %xmm2, %xmm2
movabsq $0x3ff0000000000000, %rdi # imm = 0x3FF0000000000000
leaq 0xa0(%rsp), %r14
leaq 0x68(%rsp), %r8
leaq 0xe8(%rsp), %r13
movq %r12, 0x98(%rsp)
movl 0xbc(%r12), %esi
movq 0xa0(%r12), %rdx
cmpq %rsi, %r15
jne 0x6330
leaq (%rdx,%rbp,8), %rdx
addq $-0x10, %rdx
movupd %xmm2, (%rdx)
movq %rdi, 0x10(%rdx)
movq 0x18(%r12), %rdx
movabsq $-0x4010000000000000, %rsi # imm = 0xBFF0000000000000
movq %rsi, (%rdx,%r15,8)
jmp 0x6637
movq %r14, %rbx
movsd (%rdx,%rbp,8), %xmm3
xorpd %xmm2, %xmm2
movsd 0x3d44(%rip), %xmm0     # 0xa088
ucomisd %xmm3, %xmm0
xorpd %xmm1, %xmm1
ja 0x63b1
movq %r8, %r14
movsd -0x10(%rdx,%rbp,8), %xmm0
movsd %xmm0, 0x30(%rsp)
movsd -0x8(%rdx,%rbp,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movapd %xmm3, %xmm0
movsd %xmm3, 0x10(%rsp)
callq 0x23a0
movsd %xmm0, (%rsp)
movsd 0x10(%rsp), %xmm0
callq 0x23a0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x6394
jnp 0x63a9
movsd 0x20(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
callq 0x2040
movapd %xmm0, %xmm1
movsd (%rsp), %xmm2
movq %r14, %r8
movsd %xmm2, (%rsp)
movq %r13, %r14
movq %r8, %r13
movq 0x18(%r12), %rax
movsd (%rax,%r15,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %rbx, %rdi
movsd %xmm1, 0x40(%rsp)
movapd %xmm1, %xmm0
callq 0x2859
movsd (%rsp), %xmm0
subsd 0x20(%rsp), %xmm0
movq %rbx, %r12
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
callq 0x30cc
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x8e20
movq 0x68(%rsp), %rax
movq (%rax), %rcx
movq 0x18(%rax), %rdx
movsd (%rcx), %xmm1
movsd 0x8(%rcx), %xmm2
movsd 0x10(%rcx), %xmm0
movhps 0x8(%rdx), %xmm2        # xmm2 = xmm2[0,1],mem[0,1]
movaps %xmm2, 0x80(%rsp)
movhpd (%rdx), %xmm1           # xmm1 = xmm1[0],mem[0]
movapd %xmm1, 0x50(%rsp)
movhps 0x10(%rdx), %xmm0       # xmm0 = xmm0[0,1],mem[0,1]
movaps %xmm0, 0x30(%rsp)
movq 0x30(%rax), %rax
movsd 0x8(%rax), %xmm0
xorpd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd (%rax), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rax), %xmm2
movapd %xmm2, 0x10(%rsp)
movq %r13, %rdi
callq 0x9106
movq %rbx, %rdi
callq 0x9106
movq %r12, %rdi
callq 0x9106
movapd 0x10(%rsp), %xmm0
addsd 0x3bf6(%rip), %xmm0     # 0xa088
movapd %xmm0, 0x10(%rsp)
movq %r12, %rdi
movsd 0x40(%rsp), %xmm0
callq 0x2859
movsd (%rsp), %xmm0
addsd 0x20(%rsp), %xmm0
movq %r14, %rbx
movq %r14, %rdi
callq 0x30cc
movq %r12, %r14
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x8e20
movq 0x98(%rsp), %r12
xorpd %xmm2, %xmm2
movapd 0x80(%rsp), %xmm1
mulpd %xmm2, %xmm1
movapd 0x50(%rsp), %xmm0
mulpd %xmm2, %xmm0
addpd %xmm1, %xmm0
movapd 0x30(%rsp), %xmm1
addpd %xmm0, %xmm1
movapd 0x10(%rsp), %xmm0
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
divpd %xmm0, %xmm1
movapd %xmm1, 0x30(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rcx
movq 0x18(%rax), %rdx
movq 0x30(%rax), %rax
movsd 0x8(%rax), %xmm0
xorpd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd (%rax), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rax), %xmm2
movapd %xmm2, 0x10(%rsp)
movsd (%rcx), %xmm2
movsd 0x8(%rcx), %xmm1
movsd 0x10(%rcx), %xmm0
movhps 0x8(%rdx), %xmm1        # xmm1 = xmm1[0,1],mem[0,1]
movaps %xmm1, 0x20(%rsp)
movhpd (%rdx), %xmm2           # xmm2 = xmm2[0],mem[0]
movapd %xmm2, 0x40(%rsp)
movhpd 0x10(%rdx), %xmm0       # xmm0 = xmm0[0],mem[0]
movapd %xmm0, (%rsp)
movq %r13, %rdi
callq 0x9106
movq %rbx, %rdi
callq 0x9106
movq %r14, %rdi
callq 0x9106
movapd 0x10(%rsp), %xmm3
addsd 0x3af1(%rip), %xmm3     # 0xa088
movq 0xa0(%r12), %rax
xorpd %xmm0, %xmm0
movapd 0x20(%rsp), %xmm4
mulpd %xmm0, %xmm4
xorpd %xmm2, %xmm2
movapd 0x40(%rsp), %xmm1
mulpd %xmm0, %xmm1
addpd %xmm4, %xmm1
addpd (%rsp), %xmm1
unpcklpd %xmm3, %xmm3            # xmm3 = xmm3[0,0]
divpd %xmm3, %xmm1
movapd 0x30(%rsp), %xmm3
movapd %xmm3, %xmm0
addpd %xmm1, %xmm0
mulpd 0x3a2e(%rip), %xmm0     # 0xa010
subpd %xmm1, %xmm3
movapd %xmm3, %xmm1
mulpd %xmm3, %xmm1
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
mulsd %xmm3, %xmm3
addsd %xmm1, %xmm3
xorps %xmm1, %xmm1
sqrtsd %xmm3, %xmm1
mulsd 0x3a77(%rip), %xmm1     # 0xa080
movupd %xmm0, -0x10(%rax,%rbp,8)
movabsq $0x3ff0000000000000, %rdi # imm = 0x3FF0000000000000
movq %rdi, (%rax,%rbp,8)
movq 0x18(%r12), %rax
movsd %xmm1, (%rax,%r15,8)
movq (%r12), %rax
movq 0x8(%r12), %rcx
movq %r13, %r8
movq %rbx, %r13
incq %r15
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x3, %rdx
imull $0xaaaaaaab, %edx, %edx # imm = 0xAAAAAAAB
movslq %edx, %rdx
addq $0x3, %rbp
cmpq %rdx, %r15
jl 0x62f3
movb $0x45, 0x60(%r12)
jmp 0x6d5e
movzbl 0x60(%r12), %eax
cmpl $0x48, %eax
je 0x68df
cmpl $0x45, %eax
jne 0x6d5e
movq 0x8(%r12), %rax
subq (%r12), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
testl %eax, %eax
jle 0x6d58
movq 0x18(%r12), %rcx
movq 0xa0(%r12), %rax
xorl %r14d, %r14d
xorpd %xmm3, %xmm3
xorl %r15d, %r15d
movupd (%rax,%r14), %xmm2
movsd (%rcx,%r15,8), %xmm4
movapd %xmm2, %xmm0
unpckhpd %xmm2, %xmm0            # xmm0 = xmm0[1],xmm2[1]
movapd %xmm0, %xmm1
mulsd %xmm0, %xmm1
movapd %xmm2, 0x10(%rsp)
mulsd %xmm2, %xmm2
addsd %xmm1, %xmm2
xorps %xmm1, %xmm1
sqrtsd %xmm2, %xmm1
ucomisd %xmm3, %xmm1
xorpd %xmm1, %xmm1
jne 0x66ec
jnp 0x6702
movaps 0x10(%rsp), %xmm1
movaps %xmm4, (%rsp)
callq 0x2040
movaps (%rsp), %xmm4
movapd %xmm0, %xmm1
movsd %xmm1, 0x20(%rsp)
andps 0x3941(%rip), %xmm4     # 0xa050
movaps %xmm4, (%rsp)
movapd %xmm1, %xmm0
callq 0x23d0
movapd %xmm0, 0x30(%rsp)
movsd 0x20(%rsp), %xmm0
callq 0x2060
movapd (%rsp), %xmm1
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
movapd 0x30(%rsp), %xmm6
unpcklpd %xmm0, %xmm6            # xmm6 = xmm6[0],xmm0[0]
mulpd %xmm1, %xmm6
movapd 0x10(%rsp), %xmm1
movapd %xmm1, %xmm0
subpd %xmm6, %xmm0
addpd %xmm1, %xmm6
movapd %xmm6, %xmm1
movsd %xmm0, %xmm1            # xmm1 = xmm0[0],xmm1[1]
movapd %xmm0, %xmm2
movsd %xmm6, %xmm2            # xmm2 = xmm6[0],xmm2[1]
movapd %xmm6, %xmm4
unpcklpd %xmm0, %xmm4            # xmm4 = xmm4[0],xmm0[0]
mulpd %xmm4, %xmm4
movapd 0x38c6(%rip), %xmm5     # 0xa040
movapd %xmm5, %xmm3
subpd %xmm4, %xmm3
addpd %xmm5, %xmm4
unpckhpd %xmm0, %xmm6            # xmm6 = xmm6[1],xmm0[1]
mulpd %xmm6, %xmm6
addpd %xmm6, %xmm4
addpd %xmm2, %xmm2
divpd %xmm4, %xmm2
addpd %xmm1, %xmm1
subpd %xmm6, %xmm3
divpd %xmm4, %xmm3
shufpd $0x1, %xmm4, %xmm4      # xmm4 = xmm4[1,0]
divpd %xmm4, %xmm1
movapd %xmm2, %xmm4
addpd %xmm1, %xmm4
mulpd 0x3851(%rip), %xmm4     # 0xa010
movapd %xmm3, %xmm0
unpckhpd %xmm3, %xmm0            # xmm0 = xmm0[1],xmm3[1]
movapd %xmm0, %xmm8
addsd %xmm3, %xmm8
mulsd 0x38a6(%rip), %xmm8     # 0xa080
movapd %xmm4, %xmm5
mulpd %xmm4, %xmm5
unpckhpd %xmm5, %xmm5            # xmm5 = xmm5[1,1]
movapd %xmm4, %xmm6
mulsd %xmm4, %xmm6
addsd %xmm5, %xmm6
movapd %xmm8, %xmm5
mulsd %xmm8, %xmm5
addsd %xmm6, %xmm5
sqrtsd %xmm5, %xmm5
ucomisd 0x38ac(%rip), %xmm5     # 0xa0b8
divsd %xmm5, %xmm8
xorpd %xmm7, %xmm7
jne 0x6822
jp 0x6822
movsd 0x3866(%rip), %xmm8     # 0xa088
movapd %xmm8, 0x10(%rsp)
movapd %xmm5, %xmm6
cmpeqsd %xmm7, %xmm6
movq %xmm6, %rax
andl $0x1, %eax
unpcklpd %xmm5, %xmm5            # xmm5 = xmm5[0,0]
divpd %xmm5, %xmm4
movd %eax, %xmm5
pshufd $0x0, %xmm5, %xmm5      # xmm5 = xmm5[0,0,0,0]
pslld $0x1f, %xmm5
psrad $0x1f, %xmm5
pandn %xmm4, %xmm5
movdqa %xmm5, (%rsp)
movapd %xmm2, %xmm4
mulpd %xmm1, %xmm4
unpckhpd %xmm4, %xmm4            # xmm4 = xmm4[1,1]
mulsd %xmm2, %xmm1
addsd %xmm4, %xmm1
mulsd %xmm3, %xmm0
addsd %xmm1, %xmm0
callq 0x21c0
xorpd %xmm3, %xmm3
mulsd 0x37f5(%rip), %xmm0     # 0xa080
movq 0xa0(%r12), %rax
movaps (%rsp), %xmm1
movups %xmm1, (%rax,%r14)
movapd 0x10(%rsp), %xmm1
movsd %xmm1, 0x10(%rax,%r14)
movq 0x18(%r12), %rcx
movsd %xmm0, (%rcx,%r15,8)
incq %r15
movq 0x8(%r12), %rdx
subq (%r12), %rdx
shrq $0x3, %rdx
imull $0xaaaaaaab, %edx, %edx # imm = 0xAAAAAAAB
movslq %edx, %rdx
addq $0x18, %r14
cmpq %rdx, %r15
jl 0x66af
jmp 0x6d58
movq (%r12), %rax
movq 0x8(%r12), %rcx
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x3, %rdx
imull $0xaaaaaaab, %edx, %edx # imm = 0xAAAAAAAB
testl %edx, %edx
jle 0x6d58
movl $0x2, %ebp
xorl %r15d, %r15d
leaq 0x68(%rsp), %r14
movl 0xbc(%r12), %esi
movq 0xa0(%r12), %rdx
cmpq %rsi, %r15
jne 0x6958
leaq (%rdx,%rbp,8), %rdx
addq $-0x10, %rdx
xorpd %xmm0, %xmm0
movupd %xmm0, (%rdx)
movabsq $-0x4010000000000000, %rsi # imm = 0xBFF0000000000000
movq %rsi, 0x10(%rdx)
movq 0x18(%r12), %rdx
movabsq $0x3ff921fb54442d18, %rsi # imm = 0x3FF921FB54442D18
movq %rsi, (%rdx,%r15,8)
jmp 0x6d35
movsd (%rdx,%rbp,8), %xmm3
xorpd %xmm2, %xmm2
movsd 0x371f(%rip), %xmm0     # 0xa088
ucomisd %xmm3, %xmm0
xorpd %xmm1, %xmm1
ja 0x69d0
movsd -0x10(%rdx,%rbp,8), %xmm0
movsd %xmm0, 0x30(%rsp)
movsd -0x8(%rdx,%rbp,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movapd %xmm3, %xmm0
movsd %xmm3, 0x10(%rsp)
callq 0x23a0
movsd %xmm0, (%rsp)
movsd 0x10(%rsp), %xmm0
callq 0x23a0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x69b6
jnp 0x69cb
movsd 0x20(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
callq 0x2040
movapd %xmm0, %xmm1
movsd (%rsp), %xmm2
movsd %xmm2, (%rsp)
movq 0x18(%r12), %rax
movsd (%rax,%r15,8), %xmm0
movsd %xmm0, 0x30(%rsp)
leaq 0xa0(%rsp), %rbx
movq %rbx, %rdi
movsd %xmm1, 0x20(%rsp)
movapd %xmm1, %xmm0
callq 0x2859
movsd (%rsp), %xmm0
subsd 0x30(%rsp), %xmm0
leaq 0xd0(%rsp), %r13
movq %r13, %rdi
callq 0x30cc
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x8e20
movq 0x68(%rsp), %rax
movq (%rax), %rcx
movq 0x18(%rax), %rdx
movq 0x30(%rax), %rax
movsd 0x8(%rax), %xmm0
xorpd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd (%rax), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rax), %xmm2
movapd %xmm2, 0x40(%rsp)
movsd (%rcx), %xmm1
movsd 0x8(%rcx), %xmm2
movsd 0x10(%rcx), %xmm0
movhpd 0x8(%rdx), %xmm2        # xmm2 = xmm2[0],mem[0]
movapd %xmm2, 0x80(%rsp)
movhpd (%rdx), %xmm1           # xmm1 = xmm1[0],mem[0]
movapd %xmm1, 0x50(%rsp)
movhps 0x10(%rdx), %xmm0       # xmm0 = xmm0[0,1],mem[0,1]
movaps %xmm0, 0x10(%rsp)
movq %r14, %rdi
callq 0x9106
movq %r13, %rdi
callq 0x9106
movq %rbx, %rdi
callq 0x9106
movq %rbx, %rdi
movsd 0x20(%rsp), %xmm0
callq 0x2859
movsd (%rsp), %xmm0
addsd 0x30(%rsp), %xmm0
leaq 0xb8(%rsp), %r13
movq %r13, %rdi
callq 0x30cc
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x8e20
movsd 0x35a5(%rip), %xmm1     # 0xa088
movapd 0x40(%rsp), %xmm3
addsd %xmm1, %xmm3
xorpd %xmm0, %xmm0
movapd 0x80(%rsp), %xmm2
mulpd %xmm0, %xmm2
movapd 0x50(%rsp), %xmm4
mulpd %xmm0, %xmm4
addpd %xmm2, %xmm4
movapd 0x10(%rsp), %xmm2
addpd %xmm4, %xmm2
unpcklpd %xmm3, %xmm3            # xmm3 = xmm3[0,0]
divpd %xmm3, %xmm2
movapd %xmm2, %xmm0
mulsd %xmm2, %xmm0
movapd %xmm1, %xmm3
subsd %xmm0, %xmm3
addsd %xmm1, %xmm0
movapd %xmm2, %xmm1
unpckhpd %xmm2, %xmm1            # xmm1 = xmm1[1],xmm2[1]
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
addpd %xmm2, %xmm2
subsd %xmm1, %xmm3
divsd %xmm0, %xmm3
movsd %xmm3, (%rsp)
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
divpd %xmm0, %xmm2
movapd %xmm2, 0x10(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rcx
movq 0x18(%rax), %rdx
movq 0x30(%rax), %rax
movsd 0x8(%rax), %xmm0
xorpd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd (%rax), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rax), %xmm2
movapd %xmm2, 0x30(%rsp)
movsd (%rcx), %xmm2
movsd 0x8(%rcx), %xmm1
movsd 0x10(%rcx), %xmm0
movhps 0x8(%rdx), %xmm1        # xmm1 = xmm1[0,1],mem[0,1]
movaps %xmm1, 0x40(%rsp)
movhps (%rdx), %xmm2           # xmm2 = xmm2[0,1],mem[0,1]
movaps %xmm2, 0x50(%rsp)
movhpd 0x10(%rdx), %xmm0       # xmm0 = xmm0[0],mem[0]
movapd %xmm0, 0x20(%rsp)
movq %r14, %rdi
callq 0x9106
movq %r13, %rdi
callq 0x9106
movq %rbx, %rdi
callq 0x9106
movapd 0x30(%rsp), %xmm1
addsd 0x34a3(%rip), %xmm1     # 0xa088
xorpd %xmm0, %xmm0
movapd 0x40(%rsp), %xmm2
mulpd %xmm0, %xmm2
movapd 0x50(%rsp), %xmm6
mulpd %xmm0, %xmm6
addpd %xmm2, %xmm6
addpd 0x20(%rsp), %xmm6
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
divpd %xmm1, %xmm6
movapd %xmm6, %xmm2
unpckhpd %xmm6, %xmm2            # xmm2 = xmm2[1],xmm6[1]
movapd %xmm6, %xmm1
addpd %xmm6, %xmm1
movapd %xmm2, %xmm0
movapd 0x33f5(%rip), %xmm5     # 0xa020
xorpd %xmm5, %xmm0
movapd %xmm6, %xmm3
unpcklpd %xmm6, %xmm3            # xmm3 = xmm3[0],xmm6[0]
movapd %xmm6, %xmm4
xorpd %xmm5, %xmm4
unpcklpd %xmm6, %xmm4            # xmm4 = xmm4[0],xmm6[0]
mulpd %xmm3, %xmm4
addpd 0x33f1(%rip), %xmm4     # 0xa040
shufpd $0x2, %xmm6, %xmm0      # xmm0 = xmm0[0],xmm6[1]
mulpd %xmm2, %xmm0
addpd %xmm4, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
divpd %xmm2, %xmm1
divsd %xmm2, %xmm0
movapd 0x10(%rsp), %xmm5
movapd %xmm5, %xmm6
addpd %xmm1, %xmm6
mulpd 0x338e(%rip), %xmm6     # 0xa010
movsd (%rsp), %xmm4
movapd %xmm4, %xmm7
addsd %xmm0, %xmm7
movsd 0x33e9(%rip), %xmm2     # 0xa080
mulsd %xmm2, %xmm7
movapd %xmm6, %xmm2
mulpd %xmm6, %xmm2
unpckhpd %xmm2, %xmm2            # xmm2 = xmm2[1,1]
movapd %xmm6, %xmm3
mulsd %xmm6, %xmm3
addsd %xmm2, %xmm3
movapd %xmm7, %xmm2
mulsd %xmm7, %xmm2
addsd %xmm3, %xmm2
sqrtsd %xmm2, %xmm2
divsd %xmm2, %xmm7
movsd %xmm7, 0x30(%rsp)
unpcklpd %xmm2, %xmm2            # xmm2 = xmm2[0,0]
divpd %xmm2, %xmm6
movapd %xmm6, 0x20(%rsp)
movapd %xmm5, %xmm2
mulpd %xmm1, %xmm2
unpckhpd %xmm2, %xmm2            # xmm2 = xmm2[1,1]
mulsd %xmm5, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm4, %xmm0
addsd %xmm1, %xmm0
callq 0x21c0
mulsd 0x337c(%rip), %xmm0     # 0xa080
movq 0xa0(%r12), %rax
movaps 0x20(%rsp), %xmm1
movups %xmm1, -0x10(%rax,%rbp,8)
movsd 0x30(%rsp), %xmm1
movsd %xmm1, (%rax,%rbp,8)
movq 0x18(%r12), %rax
movsd %xmm0, (%rax,%r15,8)
movq (%r12), %rax
movq 0x8(%r12), %rcx
incq %r15
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x3, %rdx
imull $0xaaaaaaab, %edx, %edx # imm = 0xAAAAAAAB
movslq %edx, %rdx
addq $0x3, %rbp
cmpq %rdx, %r15
jl 0x690d
movb $0x53, 0x60(%r12)
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6d90
jmp 0x6d90
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
jmp 0x6dad
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
jmp 0x6dad
jmp 0x6d90
movq %rax, %rbx
jmp 0x6db2
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
jmp 0x6dad
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x9106
leaq 0xa0(%rsp), %rdi
callq 0x9106
movq %rbx, %rdi
callq 0x23b0
nop