// File: /workspace/github_cpp_makefile_star2_O1/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 $0xe8, %rsp
movl %esi, %ebp
movq %rdi, %rbx
cmpb $0x1, 0xb8(%rdi)
jne 0x63b7
movq 0x8c88(%rip), %r14      # 0xefd0
leaq 0x505a(%rip), %rsi      # 0xb3a9
movl $0x17, %edx
movq %r14, %rdi
callq 0x2220
movb 0x60(%rbx), %al
leaq 0x50(%rsp), %r15
movb %al, (%r15)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2220
movq %rax, %r14
leaq 0x5040(%rip), %rsi      # 0xb3c1
movl $0x4, %edx
movq %rax, %rdi
callq 0x2220
movb %bpl, (%r15)
leaq 0x50(%rsp), %rsi
movl $0x1, %edx
movq %r14, %rdi
callq 0x2220
leaq 0x535f(%rip), %rsi      # 0xb709
movl $0x1, %edx
movq %rax, %rdi
callq 0x2220
movsbl %bpl, %eax
cmpl $0x53, %eax
je 0x6796
cmpl $0x45, %eax
jne 0x700a
cmpb $0x48, 0x60(%rbx)
jne 0x678c
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
testl %eax, %eax
jle 0x6783
xorl %ebp, %ebp
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
leaq 0x70(%rsp), %r12
leaq 0x50(%rsp), %r13
xorl %r15d, %r15d
movl 0xbc(%rbx), %eax
cmpq %rax, %r15
jne 0x642f
movq 0xa0(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rbp)
movsd 0x4c1e(%rip), %xmm0     # 0xb048
jmp 0x6751
movq 0xa0(%rbx), %rax
movsd (%rax,%rbp), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x8(%rax,%rbp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rax,%rbp), %xmm2
xorpd %xmm1, %xmm1
movsd 0x4bb1(%rip), %xmm0     # 0xb010
ucomisd %xmm2, %xmm0
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
ja 0x648c
movapd %xmm2, %xmm0
movsd %xmm2, (%rsp)
callq 0x23a0
movsd (%rsp), %xmm2
xorpd %xmm1, %xmm1
movsd %xmm0, 0x8(%rsp)
movsd 0x4b7c(%rip), %xmm0     # 0xb010
ucomisd %xmm2, %xmm0
ja 0x64c4
movapd %xmm2, %xmm0
callq 0x23a0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x64af
jnp 0x64c4
movsd 0x10(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
callq 0x2040
movapd %xmm0, %xmm1
movq %rbx, %r14
movq 0x18(%rbx), %rax
movsd (%rax,%r15,8), %xmm0
movsd %xmm0, 0x18(%rsp)
movq %r12, %rdi
movsd %xmm1, 0x30(%rsp)
movapd %xmm1, %xmm0
callq 0x2894
movsd 0x8(%rsp), %xmm0
subsd 0x18(%rsp), %xmm0
movq %r12, %rbx
leaq 0xd0(%rsp), %r12
movq %r12, %rdi
callq 0x3152
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x9188
movq 0x50(%rsp), %rax
movq (%rax), %rcx
movsd 0x8(%rcx), %xmm0
xorpd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd (%rcx), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rcx), %xmm2
movsd %xmm2, 0x20(%rsp)
movq 0x18(%rax), %rcx
movsd 0x8(%rcx), %xmm0
mulsd %xmm1, %xmm0
movsd (%rcx), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rcx), %xmm2
movsd %xmm2, 0x10(%rsp)
movq 0x30(%rax), %rax
movsd 0x8(%rax), %xmm0
mulsd %xmm1, %xmm0
movsd (%rax), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rax), %xmm2
movsd %xmm2, (%rsp)
movq %r13, %rdi
callq 0x9496
movq %r12, %rdi
callq 0x9496
movq %rbx, %rdi
callq 0x9496
movsd (%rsp), %xmm0
addsd 0x4a62(%rip), %xmm0     # 0xb010
movsd %xmm0, (%rsp)
movq %rbx, %rdi
movsd 0x30(%rsp), %xmm0
callq 0x2894
movsd 0x8(%rsp), %xmm0
addsd 0x18(%rsp), %xmm0
leaq 0xb8(%rsp), %r12
movq %r12, %rdi
callq 0x3152
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x9188
movsd 0x20(%rsp), %xmm0
movsd (%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0x50(%rsp), %rax
movq (%rax), %rcx
movsd 0x8(%rcx), %xmm0
xorpd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd (%rcx), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rcx), %xmm2
movsd %xmm2, (%rsp)
movq 0x18(%rax), %rcx
movsd 0x8(%rcx), %xmm0
mulsd %xmm1, %xmm0
movsd (%rcx), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rcx), %xmm2
movsd %xmm2, 0x8(%rsp)
movq 0x30(%rax), %rax
movsd 0x8(%rax), %xmm0
mulsd %xmm1, %xmm0
movsd (%rax), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rax), %xmm2
movsd %xmm2, 0x18(%rsp)
movq %r13, %rdi
callq 0x9496
movq %r12, %rdi
callq 0x9496
movq %rbx, %rdi
callq 0x9496
movsd 0x8(%rsp), %xmm4
movsd (%rsp), %xmm3
movsd 0x18(%rsp), %xmm0
addsd 0x495c(%rip), %xmm0     # 0xb010
divsd %xmm0, %xmm3
divsd %xmm0, %xmm4
movsd 0x20(%rsp), %xmm0
subsd %xmm3, %xmm0
movsd 0x10(%rsp), %xmm1
subsd %xmm4, %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
ucomisd 0x496c(%rip), %xmm0     # 0xb050
movq %rbx, %r12
jb 0x66ef
sqrtsd %xmm0, %xmm0
jmp 0x670a
movsd %xmm3, (%rsp)
movsd %xmm4, 0x8(%rsp)
callq 0x2170
movsd 0x8(%rsp), %xmm4
movsd (%rsp), %xmm3
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %r14, %rbx
movsd 0x20(%rsp), %xmm2
addsd %xmm3, %xmm2
movsd 0x48df(%rip), %xmm1     # 0xb008
mulsd %xmm1, %xmm2
movsd 0x10(%rsp), %xmm3
addsd %xmm4, %xmm3
mulsd %xmm1, %xmm3
mulsd %xmm1, %xmm0
movq 0xa0(%r14), %rax
movsd %xmm2, (%rax,%rbp)
movsd %xmm3, 0x8(%rax,%rbp)
movq %rcx, 0x10(%rax,%rbp)
movq 0x18(%rbx), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r15
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cltq
addq $0x18, %rbp
cmpq %rax, %r15
jl 0x6409
movb $0x45, 0x60(%rbx)
jmp 0x700a
cmpb $0x53, %bpl
jne 0x700a
movzbl 0x60(%rbx), %eax
cmpl $0x48, %eax
je 0x6b3b
cmpl $0x45, %eax
jne 0x700a
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
testl %eax, %eax
jle 0x7006
movl $0x1, %r14d
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
movq 0xa0(%rbx), %rcx
movsd -0x8(%rcx,%r14,8), %xmm0
movsd (%rcx,%r14,8), %xmm1
movsd (%rax,%r15,8), %xmm2
movaps %xmm2, 0x20(%rsp)
movsd %xmm1, 0x10(%rsp)
mulsd %xmm1, %xmm1
movsd %xmm0, (%rsp)
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
ucomisd 0x4840(%rip), %xmm0     # 0xb050
jb 0x6818
sqrtsd %xmm0, %xmm0
jmp 0x681d
callq 0x2170
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x6829
jnp 0x683d
movsd 0x10(%rsp), %xmm0
movsd (%rsp), %xmm1
callq 0x2040
movapd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
movaps 0x20(%rsp), %xmm0
andps 0x4891(%rip), %xmm0     # 0xb0e0
movaps %xmm0, 0x20(%rsp)
movapd %xmm1, %xmm0
callq 0x23d0
mulsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x18(%rsp), %xmm0
callq 0x2060
movapd %xmm0, %xmm4
mulsd 0x20(%rsp), %xmm4
movsd (%rsp), %xmm8
movapd %xmm8, %xmm0
movsd 0x8(%rsp), %xmm9
subsd %xmm9, %xmm0
movsd 0x10(%rsp), %xmm7
movapd %xmm7, %xmm5
subsd %xmm4, %xmm5
movapd %xmm0, %xmm3
addsd %xmm0, %xmm3
mulsd %xmm0, %xmm0
movsd 0x4759(%rip), %xmm2     # 0xb010
movapd %xmm2, %xmm6
subsd %xmm0, %xmm6
addsd %xmm2, %xmm0
movapd %xmm5, %xmm1
mulsd %xmm5, %xmm1
addsd %xmm1, %xmm0
divsd %xmm0, %xmm3
addsd %xmm5, %xmm5
divsd %xmm0, %xmm5
subsd %xmm1, %xmm6
divsd %xmm0, %xmm6
movapd %xmm9, %xmm1
addsd %xmm8, %xmm1
addsd %xmm7, %xmm4
movapd %xmm1, %xmm7
addsd %xmm1, %xmm7
mulsd %xmm1, %xmm1
movapd %xmm2, %xmm8
subsd %xmm1, %xmm8
addsd %xmm2, %xmm1
movapd %xmm4, %xmm0
mulsd %xmm4, %xmm0
addsd %xmm0, %xmm1
divsd %xmm1, %xmm7
addsd %xmm4, %xmm4
divsd %xmm1, %xmm4
subsd %xmm0, %xmm8
divsd %xmm1, %xmm8
movapd %xmm3, %xmm1
addsd %xmm7, %xmm1
movsd 0x46cb(%rip), %xmm0     # 0xb008
mulsd %xmm0, %xmm1
movapd %xmm5, %xmm2
addsd %xmm4, %xmm2
mulsd %xmm0, %xmm2
movapd %xmm6, %xmm9
addsd %xmm8, %xmm9
mulsd %xmm0, %xmm9
movsd %xmm2, 0x48(%rsp)
movapd %xmm2, %xmm0
mulsd %xmm2, %xmm0
movsd %xmm1, 0x38(%rsp)
mulsd %xmm1, %xmm1
addsd %xmm0, %xmm1
movsd %xmm9, 0x40(%rsp)
mulsd %xmm9, %xmm9
addsd %xmm1, %xmm9
ucomisd 0x46be(%rip), %xmm9     # 0xb050
jb 0x699e
xorps %xmm0, %xmm0
sqrtsd %xmm9, %xmm0
jmp 0x69fe
movapd %xmm9, %xmm0
movsd %xmm3, 0x20(%rsp)
movsd %xmm4, 0x10(%rsp)
movsd %xmm5, (%rsp)
movsd %xmm6, 0x8(%rsp)
movsd %xmm7, 0x18(%rsp)
movsd %xmm8, 0x30(%rsp)
movsd %xmm9, 0x68(%rsp)
callq 0x2170
movsd 0x68(%rsp), %xmm9
movsd 0x30(%rsp), %xmm8
movsd 0x18(%rsp), %xmm7
movsd 0x8(%rsp), %xmm6
movsd (%rsp), %xmm5
movsd 0x10(%rsp), %xmm4
movsd 0x20(%rsp), %xmm3
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
xorpd %xmm2, %xmm2
movsd 0x45fe(%rip), %xmm0     # 0xb010
jne 0x6a1a
jnp 0x6aa6
ucomisd 0x462d(%rip), %xmm9     # 0xb050
jb 0x6a2f
xorps %xmm0, %xmm0
sqrtsd %xmm9, %xmm0
jmp 0x6a81
movapd %xmm9, %xmm0
movsd %xmm3, 0x20(%rsp)
movsd %xmm4, 0x10(%rsp)
movsd %xmm5, (%rsp)
movsd %xmm6, 0x8(%rsp)
movsd %xmm7, 0x18(%rsp)
movsd %xmm8, 0x30(%rsp)
callq 0x2170
movsd 0x30(%rsp), %xmm8
movsd 0x18(%rsp), %xmm7
movsd 0x8(%rsp), %xmm6
movsd (%rsp), %xmm5
movsd 0x10(%rsp), %xmm4
movsd 0x20(%rsp), %xmm3
movsd 0x38(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd 0x48(%rsp), %xmm2
divsd %xmm0, %xmm2
movsd 0x40(%rsp), %xmm9
divsd %xmm0, %xmm9
movapd %xmm9, %xmm0
movsd %xmm1, (%rsp)
movsd %xmm2, 0x10(%rsp)
movsd %xmm0, 0x20(%rsp)
mulsd %xmm4, %xmm5
mulsd %xmm7, %xmm3
addsd %xmm5, %xmm3
mulsd %xmm8, %xmm6
addsd %xmm3, %xmm6
movapd %xmm6, %xmm0
callq 0x21c0
mulsd 0x452b(%rip), %xmm0     # 0xb008
movq 0xa0(%rbx), %rax
movsd (%rsp), %xmm1
movsd %xmm1, -0x8(%rax,%r14,8)
movsd 0x10(%rsp), %xmm1
movsd %xmm1, (%rax,%r14,8)
movsd 0x20(%rsp), %xmm1
movsd %xmm1, 0x8(%rax,%r14,8)
movq 0x18(%rbx), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r15
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cltq
addq $0x3, %r14
cmpq %rax, %r15
jl 0x67ce
jmp 0x7006
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
testl %eax, %eax
jle 0x7006
movl $0x2, %ebp
xorl %r15d, %r15d
leaq 0x50(%rsp), %r14
movl 0xbc(%rbx), %eax
cmpq %rax, %r15
jne 0x6b96
movq 0xa0(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x10(%rax,%rbp,8)
movabsq $-0x4010000000000000, %rcx # imm = 0xBFF0000000000000
movq %rcx, (%rax,%rbp,8)
movsd 0x44af(%rip), %xmm0     # 0xb040
jmp 0x6fd9
movq 0xa0(%rbx), %rax
movsd -0x10(%rax,%rbp,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd -0x8(%rax,%rbp,8), %xmm0
movsd %xmm0, (%rsp)
movsd (%rax,%rbp,8), %xmm2
xorpd %xmm1, %xmm1
movsd 0x444b(%rip), %xmm0     # 0xb010
ucomisd %xmm2, %xmm0
xorpd %xmm0, %xmm0
movsd %xmm0, 0x10(%rsp)
ja 0x6bf4
movapd %xmm2, %xmm0
movsd %xmm2, 0x8(%rsp)
callq 0x23a0
movsd 0x8(%rsp), %xmm2
xorpd %xmm1, %xmm1
movsd %xmm0, 0x10(%rsp)
movsd 0x4414(%rip), %xmm0     # 0xb010
ucomisd %xmm2, %xmm0
ja 0x6c2b
movapd %xmm2, %xmm0
callq 0x23a0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x6c17
jnp 0x6c2b
movsd (%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
callq 0x2040
movapd %xmm0, %xmm1
movq 0x18(%rbx), %rax
movsd (%rax,%r15,8), %xmm0
movsd %xmm0, (%rsp)
leaq 0x70(%rsp), %r12
movq %r12, %rdi
movsd %xmm1, 0x8(%rsp)
movapd %xmm1, %xmm0
callq 0x2894
movsd 0x10(%rsp), %xmm0
subsd (%rsp), %xmm0
leaq 0xa0(%rsp), %r13
movq %r13, %rdi
callq 0x3152
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x9188
movq 0x50(%rsp), %rax
movq (%rax), %rcx
movsd 0x8(%rcx), %xmm0
xorpd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd (%rcx), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rcx), %xmm2
movsd %xmm2, 0x18(%rsp)
movq 0x18(%rax), %rcx
movsd 0x8(%rcx), %xmm0
mulsd %xmm1, %xmm0
movsd (%rcx), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rcx), %xmm2
movsd %xmm2, 0x20(%rsp)
movq 0x30(%rax), %rax
movsd 0x8(%rax), %xmm0
mulsd %xmm1, %xmm0
movsd (%rax), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rax), %xmm2
movsd %xmm2, 0x30(%rsp)
movq %r14, %rdi
callq 0x9496
movq %r13, %rdi
callq 0x9496
movq %r12, %rdi
callq 0x9496
movq %r12, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x2894
movsd 0x10(%rsp), %xmm0
addsd (%rsp), %xmm0
leaq 0x88(%rsp), %r13
movq %r13, %rdi
callq 0x3152
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x9188
movsd 0x42cb(%rip), %xmm0     # 0xb010
movsd 0x30(%rsp), %xmm3
addsd %xmm0, %xmm3
movsd 0x18(%rsp), %xmm2
divsd %xmm3, %xmm2
movsd 0x20(%rsp), %xmm1
divsd %xmm3, %xmm1
movapd %xmm2, %xmm3
addsd %xmm2, %xmm3
mulsd %xmm2, %xmm2
movapd %xmm0, %xmm4
subsd %xmm2, %xmm4
addsd %xmm0, %xmm2
movapd %xmm1, %xmm0
mulsd %xmm1, %xmm0
addsd %xmm0, %xmm2
divsd %xmm2, %xmm3
movsd %xmm3, 0x30(%rsp)
addsd %xmm1, %xmm1
divsd %xmm2, %xmm1
movsd %xmm1, 0x20(%rsp)
subsd %xmm0, %xmm4
divsd %xmm2, %xmm4
movsd %xmm4, 0x38(%rsp)
movq 0x50(%rsp), %rax
movq (%rax), %rcx
movsd 0x8(%rcx), %xmm0
xorpd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movsd (%rcx), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rcx), %xmm2
movsd %xmm2, (%rsp)
movq 0x18(%rax), %rcx
movsd 0x8(%rcx), %xmm0
mulsd %xmm1, %xmm0
movsd (%rcx), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rcx), %xmm2
movsd %xmm2, 0x10(%rsp)
movq 0x30(%rax), %rax
movsd 0x8(%rax), %xmm0
mulsd %xmm1, %xmm0
movsd (%rax), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rax), %xmm2
movsd %xmm2, 0x8(%rsp)
movq %r14, %rdi
callq 0x9496
movq %r13, %rdi
callq 0x9496
movq %r12, %rdi
callq 0x9496
movsd 0x10(%rsp), %xmm4
movsd 0x38(%rsp), %xmm3
movsd 0x30(%rsp), %xmm2
movsd 0x41be(%rip), %xmm0     # 0xb010
movsd 0x8(%rsp), %xmm5
addsd %xmm0, %xmm5
movsd (%rsp), %xmm1
divsd %xmm5, %xmm1
divsd %xmm5, %xmm4
movapd %xmm1, %xmm5
addsd %xmm1, %xmm5
mulsd %xmm1, %xmm1
movapd %xmm0, %xmm6
subsd %xmm1, %xmm6
addsd %xmm0, %xmm1
movapd %xmm4, %xmm0
mulsd %xmm4, %xmm0
addsd %xmm0, %xmm1
divsd %xmm1, %xmm5
addsd %xmm4, %xmm4
divsd %xmm1, %xmm4
subsd %xmm0, %xmm6
divsd %xmm1, %xmm6
movapd %xmm2, %xmm7
addsd %xmm5, %xmm7
movsd 0x4157(%rip), %xmm0     # 0xb008
mulsd %xmm0, %xmm7
movsd 0x20(%rsp), %xmm8
addsd %xmm4, %xmm8
mulsd %xmm0, %xmm8
movapd %xmm3, %xmm9
addsd %xmm6, %xmm9
mulsd %xmm0, %xmm9
movapd %xmm8, %xmm0
mulsd %xmm8, %xmm0
movapd %xmm7, %xmm1
mulsd %xmm7, %xmm1
addsd %xmm0, %xmm1
movapd %xmm9, %xmm0
mulsd %xmm9, %xmm0
addsd %xmm1, %xmm0
ucomisd 0x414f(%rip), %xmm0     # 0xb050
jb 0x6f09
sqrtsd %xmm0, %xmm0
jmp 0x6f64
movsd %xmm4, 0x10(%rsp)
movsd %xmm5, 0x48(%rsp)
movsd %xmm6, 0x40(%rsp)
movsd %xmm7, (%rsp)
movsd %xmm8, 0x8(%rsp)
movsd %xmm9, 0x18(%rsp)
callq 0x2170
movsd 0x18(%rsp), %xmm9
movsd 0x8(%rsp), %xmm8
movsd (%rsp), %xmm7
movsd 0x40(%rsp), %xmm6
movsd 0x48(%rsp), %xmm5
movsd 0x10(%rsp), %xmm4
movsd 0x38(%rsp), %xmm3
movsd 0x30(%rsp), %xmm2
divsd %xmm0, %xmm7
movsd %xmm7, (%rsp)
divsd %xmm0, %xmm8
movsd %xmm8, 0x8(%rsp)
divsd %xmm0, %xmm9
movsd %xmm9, 0x18(%rsp)
movsd 0x20(%rsp), %xmm0
mulsd %xmm4, %xmm0
mulsd %xmm5, %xmm2
addsd %xmm0, %xmm2
mulsd %xmm6, %xmm3
addsd %xmm2, %xmm3
movapd %xmm3, %xmm0
callq 0x21c0
mulsd 0x4058(%rip), %xmm0     # 0xb008
movq 0xa0(%rbx), %rax
movsd (%rsp), %xmm1
movsd %xmm1, -0x10(%rax,%rbp,8)
movsd 0x8(%rsp), %xmm1
movsd %xmm1, -0x8(%rax,%rbp,8)
movsd 0x18(%rsp), %xmm1
movsd %xmm1, (%rax,%rbp,8)
movq 0x18(%rbx), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r15
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cltq
addq $0x3, %rbp
cmpq %rax, %r15
jl 0x6b61
movb $0x53, 0x60(%rbx)
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x703c
jmp 0x703c
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
jmp 0x7059
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
jmp 0x7059
jmp 0x703c
movq %rax, %rbx
jmp 0x705e
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
jmp 0x7059
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x9496
leaq 0x70(%rsp), %rdi
callq 0x9496
movq %rbx, %rdi
callq 0x23b0