// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/voro++/src/v_compute.cc
// Function: bool voro::voro_compute<voro::container_periodic_poly>::compute_cell<voro::voronoicell_neighbor>(voro::voronoicell_neighbor&, int, int, int, int, int)
bool voro_compute<c_class>::compute_cell(v_cell &c,int ijk,int s,int ci,int cj,int ck) {
	static const int count_list[8]={7,11,15,19,26,35,45,59},*count_e=count_list+8;
	double x,y,z,x1,y1,z1,qx=0,qy=0,qz=0;
	double xlo,ylo,zlo,xhi,yhi,zhi,x2,y2,z2,rs;
	int i,j,k,di,dj,dk,ei,ej,ek,f,g,l,disp;
	double fx,fy,fz,gxs,gys,gzs,*radp;
	unsigned int q,*e,*mijk;

	if(!con.initialize_voronoicell(c,ijk,s,ci,cj,ck,i,j,k,x,y,z,disp)) return false;
	con.r_init(ijk,s);

	// Initialize the Voronoi cell to fill the entire container
	double crs,mrs;

	int next_count=3,*count_p=(const_cast<int*> (count_list));

	// Test all particles in the particle's local region first
	for(l=0;l<s;l++) {
		x1=p[ijk][ps*l]-x;
		y1=p[ijk][ps*l+1]-y;
		z1=p[ijk][ps*l+2]-z;
		rs=con.r_scale(x1*x1+y1*y1+z1*z1,ijk,l);
		if(!c.nplane(x1,y1,z1,rs,id[ijk][l])) return false;
	}
	l++;
	while(l<co[ijk]) {
		x1=p[ijk][ps*l]-x;
		y1=p[ijk][ps*l+1]-y;
		z1=p[ijk][ps*l+2]-z;
		rs=con.r_scale(x1*x1+y1*y1+z1*z1,ijk,l);
		if(!c.nplane(x1,y1,z1,rs,id[ijk][l])) return false;
		l++;
	}

	// Now compute the maximum distance squared from the cell center to a
	// vertex. This is used to cut off the calculation since we only need
	// to test out to twice this range.
	mrs=c.max_radius_squared();

	// Now compute the fractional position of the particle within its
	// region and store it in (fx,fy,fz). We use this to compute an index
	// (di,dj,dk) of which subregion the particle is within.
	unsigned int m1,m2;
	con.frac_pos(x,y,z,ci,cj,ck,fx,fy,fz);
	di=int(fx*xsp*wl_fgrid);dj=int(fy*ysp*wl_fgrid);dk=int(fz*zsp*wl_fgrid);

	// The indices (di,dj,dk) tell us which worklist to use, to test the
	// blocks in the optimal order. But we only store worklists for the
	// eighth of the region where di, dj, and dk are all less than half the
	// full grid. The rest of the cases are handled by symmetry. In this
	// section, we detect for these cases, by reflecting high values of di,
	// dj, and dk. For these cases, a mask is constructed in m1 and m2
	// which is used to flip the worklist information when it is loaded.
	if(di>=wl_hgrid) {
		gxs=fx;
		m1=127+(3<<21);m2=1+(1<<21);di=wl_fgrid-1-di;if(di<0) di=0;
	} else {m1=m2=0;gxs=boxx-fx;}
	if(dj>=wl_hgrid) {
		gys=fy;
		m1|=(127<<7)+(3<<24);m2|=(1<<7)+(1<<24);dj=wl_fgrid-1-dj;if(dj<0) dj=0;
	} else gys=boxy-fy;
	if(dk>=wl_hgrid) {
		gzs=fz;
		m1|=(127<<14)+(3<<27);m2|=(1<<14)+(1<<27);dk=wl_fgrid-1-dk;if(dk<0) dk=0;
	} else gzs=boxz-fz;
	gxs*=gxs;gys*=gys;gzs*=gzs;

	// Now compute which worklist we are going to use, and set radp and e to
	// point at the right offsets
	ijk=di+wl_hgrid*(dj+wl_hgrid*dk);
	radp=mrad+ijk*wl_seq_length;
	e=(const_cast<unsigned int*> (wl))+ijk*wl_seq_length;

	// Read in how many items in the worklist can be tested without having to
	// worry about writing to the mask
	f=e[0];g=0;
	do {

		// At the intervals specified by count_list, we recompute the
		// maximum radius squared
		if(g==next_count) {
			mrs=c.max_radius_squared();
			if(count_p!=count_e) next_count=*(count_p++);
		}

		// If mrs is less than the minimum distance to any untested
		// block, then we are done
		if(con.r_ctest(radp[g],mrs)) return true;
		g++;

		// Load in a block off the worklist, permute it with the
		// symmetry mask, and decode its position. These are all
		// integer bit operations so they should run very fast.
		q=e[g];q^=m1;q+=m2;
		di=q&127;di-=64;
		dj=(q>>7)&127;dj-=64;
		dk=(q>>14)&127;dk-=64;

		// Check that the worklist position is in range
		ei=di+i;if(ei<0||ei>=hx) continue;
		ej=dj+j;if(ej<0||ej>=hy) continue;
		ek=dk+k;if(ek<0||ek>=hz) continue;

		// Call the compute_min_max_radius() function. This returns
		// true if the minimum distance to the block is bigger than the
		// current mrs, in which case we skip this block and move on.
		// Otherwise, it computes the maximum distance to the block and
		// returns it in crs.
		if(compute_min_max_radius(di,dj,dk,fx,fy,fz,gxs,gys,gzs,crs,mrs)) continue;

		// Now compute which region we are going to loop over, adding a
		// displacement for the periodic cases
		ijk=con.region_index(ci,cj,ck,ei,ej,ek,qx,qy,qz,disp);

		// If mrs is bigger than the maximum distance to the block,
		// then we have to test all particles in the block for
		// intersections. Otherwise, we do additional checks and skip
		// those particles which can't possibly intersect the block.
		if(co[ijk]>0) {
			l=0;x2=x-qx;y2=y-qy;z2=z-qz;
			if(!con.r_ctest(crs,mrs)) {
				do {
					x1=p[ijk][ps*l]-x2;
					y1=p[ijk][ps*l+1]-y2;
					z1=p[ijk][ps*l+2]-z2;
					rs=con.r_scale(x1*x1+y1*y1+z1*z1,ijk,l);
					if(!c.nplane(x1,y1,z1,rs,id[ijk][l])) return false;
					l++;
				} while (l<co[ijk]);
			} else {
				do {
					x1=p[ijk][ps*l]-x2;
					y1=p[ijk][ps*l+1]-y2;
					z1=p[ijk][ps*l+2]-z2;
					rs=x1*x1+y1*y1+z1*z1;
					if(con.r_scale_check(rs,mrs,ijk,l)&&!c.nplane(x1,y1,z1,rs,id[ijk][l])) return false;
					l++;
				} while (l<co[ijk]);
			}
		}
	} while(g<f);

	// If we reach here, we were unable to compute the entire cell using
	// the first part of the worklist. This section of the algorithm
	// continues the worklist, but it now starts preparing the mask that we
	// need if we end up going block by block. We do the same as before,
	// but we put a mark down on the mask for every block that's tested.
	// The worklist also contains information about which neighbors of each
	// block are not also on the worklist, and we start storing those
	// points in a list in case we have to go block by block. Update the
	// mask counter, and if it wraps around then reset the whole mask; that
	// will only happen once every 2^32 tries.
	mv++;
	if(mv==0) {reset_mask();mv=1;}

	// Set the queue pointers
	int *qu_s=qu,*qu_e=qu;

	while(g<wl_seq_length-1) {

		// At the intervals specified by count_list, we recompute the
		// maximum radius squared
		if(g==next_count) {
			mrs=c.max_radius_squared();
			if(count_p!=count_e) next_count=*(count_p++);
		}

		// If mrs is less than the minimum distance to any untested
		// block, then we are done
		if(con.r_ctest(radp[g],mrs)) return true;
		g++;

		// Load in a block off the worklist, permute it with the
		// symmetry mask, and decode its position. These are all
		// integer bit operations so they should run very fast.
		q=e[g];q^=m1;q+=m2;
		di=q&127;di-=64;
		dj=(q>>7)&127;dj-=64;
		dk=(q>>14)&127;dk-=64;

		// Compute the position in the mask of the current block. If
		// this lies outside the mask, then skip it. Otherwise, mark
		// it.
		ei=di+i;if(ei<0||ei>=hx) continue;
		ej=dj+j;if(ej<0||ej>=hy) continue;
		ek=dk+k;if(ek<0||ek>=hz) continue;
		mijk=mask+ei+hx*(ej+hy*ek);
		*mijk=mv;

		// Call the compute_min_max_radius() function. This returns
		// true if the minimum distance to the block is bigger than the
		// current mrs, in which case we skip this block and move on.
		// Otherwise, it computes the maximum distance to the block and
		// returns it in crs.
		if(compute_min_max_radius(di,dj,dk,fx,fy,fz,gxs,gys,gzs,crs,mrs)) continue;

		// Now compute which region we are going to loop over, adding a
		// displacement for the periodic cases
		ijk=con.region_index(ci,cj,ck,ei,ej,ek,qx,qy,qz,disp);

		// If mrs is bigger than the maximum distance to the block,
		// then we have to test all particles in the block for
		// intersections. Otherwise, we do additional checks and skip
		// those particles which can't possibly intersect the block.
		if(co[ijk]>0) {
			l=0;x2=x-qx;y2=y-qy;z2=z-qz;
			if(!con.r_ctest(crs,mrs)) {
				do {
					x1=p[ijk][ps*l]-x2;
					y1=p[ijk][ps*l+1]-y2;
					z1=p[ijk][ps*l+2]-z2;
					rs=con.r_scale(x1*x1+y1*y1+z1*z1,ijk,l);
					if(!c.nplane(x1,y1,z1,rs,id[ijk][l])) return false;
					l++;
				} while (l<co[ijk]);
			} else {
				do {
					x1=p[ijk][ps*l]-x2;
					y1=p[ijk][ps*l+1]-y2;
					z1=p[ijk][ps*l+2]-z2;
					rs=x1*x1+y1*y1+z1*z1;
					if(con.r_scale_check(rs,mrs,ijk,l)&&!c.nplane(x1,y1,z1,rs,id[ijk][l])) return false;
					l++;
				} while (l<co[ijk]);
			}
		}

		// If there might not be enough memory on the list for these
		// additions, then add more
		if(qu_e>qu_l-18) add_list_memory(qu_s,qu_e);

		// Test the parts of the worklist element which tell us what
		// neighbors of this block are not on the worklist. Store them
		// on the block list, and mark the mask.
		scan_bits_mask_add(q,mijk,ei,ej,ek,qu_e);
	}

	// Do a check to see if we've reached the radius cutoff
	if(con.r_ctest(radp[g],mrs)) return true;

	// We were unable to completely compute the cell based on the blocks in
	// the worklist, so now we have to go block by block, reading in items
	// off the list
	while(qu_s!=qu_e) {

		// If we reached the end of the list memory loop back to the
		// start
		if(qu_s==qu_l) qu_s=qu;

		// Read in a block off the list, and compute the upper and lower
		// coordinates in each of the three dimensions
		ei=*(qu_s++);ej=*(qu_s++);ek=*(qu_s++);
		xlo=(ei-i)*boxx-fx;xhi=xlo+boxx;
		ylo=(ej-j)*boxy-fy;yhi=ylo+boxy;
		zlo=(ek-k)*boxz-fz;zhi=zlo+boxz;

		// Carry out plane tests to see if any particle in this block
		// could possibly intersect the cell
		if(ei>i) {
			if(ej>j) {
				if(ek>k) {if(corner_test(c,xlo,ylo,zlo,xhi,yhi,zhi)) continue;}
				else if(ek<k) {if(corner_test(c,xlo,ylo,zhi,xhi,yhi,zlo)) continue;}
				else {if(edge_z_test(c,xlo,ylo,zlo,xhi,yhi,zhi)) continue;}
			} else if(ej<j) {
				if(ek>k) {if(corner_test(c,xlo,yhi,zlo,xhi,ylo,zhi)) continue;}
				else if(ek<k) {if(corner_test(c,xlo,yhi,zhi,xhi,ylo,zlo)) continue;}
				else {if(edge_z_test(c,xlo,yhi,zlo,xhi,ylo,zhi)) continue;}
			} else {
				if(ek>k) {if(edge_y_test(c,xlo,ylo,zlo,xhi,yhi,zhi)) continue;}
				else if(ek<k) {if(edge_y_test(c,xlo,ylo,zhi,xhi,yhi,zlo)) continue;}
				else {if(face_x_test(c,xlo,ylo,zlo,yhi,zhi)) continue;}
			}
		} else if(ei<i) {
			if(ej>j) {
				if(ek>k) {if(corner_test(c,xhi,ylo,zlo,xlo,yhi,zhi)) continue;}
				else if(ek<k) {if(corner_test(c,xhi,ylo,zhi,xlo,yhi,zlo)) continue;}
				else {if(edge_z_test(c,xhi,ylo,zlo,xlo,yhi,zhi)) continue;}
			} else if(ej<j) {
				if(ek>k) {if(corner_test(c,xhi,yhi,zlo,xlo,ylo,zhi)) continue;}
				else if(ek<k) {if(corner_test(c,xhi,yhi,zhi,xlo,ylo,zlo)) continue;}
				else {if(edge_z_test(c,xhi,yhi,zlo,xlo,ylo,zhi)) continue;}
			} else {
				if(ek>k) {if(edge_y_test(c,xhi,ylo,zlo,xlo,yhi,zhi)) continue;}
				else if(ek<k) {if(edge_y_test(c,xhi,ylo,zhi,xlo,yhi,zlo)) continue;}
				else {if(face_x_test(c,xhi,ylo,zlo,yhi,zhi)) continue;}
			}
		} else {
			if(ej>j) {
				if(ek>k) {if(edge_x_test(c,xlo,ylo,zlo,xhi,yhi,zhi)) continue;}
				else if(ek<k) {if(edge_x_test(c,xlo,ylo,zhi,xhi,yhi,zlo)) continue;}
				else {if(face_y_test(c,xlo,ylo,zlo,xhi,zhi)) continue;}
			} else if(ej<j) {
				if(ek>k) {if(edge_x_test(c,xlo,yhi,zlo,xhi,ylo,zhi)) continue;}
				else if(ek<k) {if(edge_x_test(c,xlo,yhi,zhi,xhi,ylo,zlo)) continue;}
				else {if(face_y_test(c,xlo,yhi,zlo,xhi,zhi)) continue;}
			} else {
				if(ek>k) {if(face_z_test(c,xlo,ylo,zlo,xhi,yhi)) continue;}
				else if(ek<k) {if(face_z_test(c,xlo,ylo,zhi,xhi,yhi)) continue;}
				else voro_fatal_error("Compute cell routine revisiting central block, which should never\nhappen.",VOROPP_INTERNAL_ERROR);
			}
		}

		// Now compute the region that we are going to test over, and
		// set a displacement vector for the periodic cases
		ijk=con.region_index(ci,cj,ck,ei,ej,ek,qx,qy,qz,disp);

		// Loop over all the elements in the block to test for cuts. It
		// would be possible to exclude some of these cases by testing
		// against mrs, but this will probably not save time.
		if(co[ijk]>0) {
			l=0;x2=x-qx;y2=y-qy;z2=z-qz;
			do {
				x1=p[ijk][ps*l]-x2;
				y1=p[ijk][ps*l+1]-y2;
				z1=p[ijk][ps*l+2]-z2;
				rs=con.r_scale(x1*x1+y1*y1+z1*z1,ijk,l);
				if(!c.nplane(x1,y1,z1,rs,id[ijk][l])) return false;
				l++;
			} while (l<co[ijk]);
		}

		// If there's not much memory on the block list then add more
		if((qu_s<=qu_e?(qu_l-qu_e)+(qu_s-qu):qu_s-qu_e)<18) add_list_memory(qu_s,qu_e);

		// Test the neighbors of the current block, and add them to the
		// block list if they haven't already been tested
		add_to_mask(ei,ej,ek,qu_e);
	}

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movl %r9d, 0x24(%rsp)
movl %r8d, 0x30(%rsp)
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %rax
movq %rdi, %r15
xorl %r12d, %r12d
movq %r12, 0xa0(%rsp)
movq %r12, 0x98(%rsp)
movq %r12, 0x90(%rsp)
movq (%rdi), %r14
leaq 0x30(%r14), %rsi
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0x70e4
movq 0x1a8(%r14), %rax
movslq %ebp, %r13
movq (%rax,%r13,8), %rax
movslq 0x1cc(%r14), %rcx
movslq %ebx, %rdx
imulq %rdx, %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x88(%rsp)
movsd 0x8(%rax,%rcx,8), %xmm0
movsd %xmm0, 0x80(%rsp)
movsd 0x10(%rax,%rcx,8), %xmm0
movsd %xmm0, 0x78(%rsp)
movl 0x128(%r14), %eax
movl %eax, 0x5c(%rsp)
movl 0x180(%r14), %eax
movl %eax, 0x34(%rsp)
movl 0x184(%r14), %eax
movl %eax, 0x14(%rsp)
movq (%r15), %rax
movq 0x1d0(%rax), %rcx
movq (%rcx,%r13,8), %rcx
leal 0x3(,%rdx,4), %esi
movslq %esi, %rsi
movsd (%rcx,%rsi,8), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, 0x1e0(%rax)
movsd 0x1d8(%rax), %xmm1
mulsd %xmm1, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x1e8(%rax)
testl %edx, %edx
jle 0x2b583
movl %ebx, %ebx
movl $0x18, %ebp
xorl %r12d, %r12d
movq 0x58(%r15), %rax
movq (%rax,%r13,8), %rax
movslq 0x4c(%r15), %rcx
movslq %r12d, %rdx
imulq %rcx, %rdx
movsd (%rax,%rdx,8), %xmm0
movsd 0x8(%rax,%rdx,8), %xmm1
subsd 0x88(%rsp), %xmm0
subsd 0x80(%rsp), %xmm1
movsd 0x10(%rax,%rdx,8), %xmm2
subsd 0x78(%rsp), %xmm2
movapd %xmm1, %xmm3
mulsd %xmm1, %xmm3
movapd %xmm0, %xmm4
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm4
movapd %xmm2, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm4, %xmm3
movq (%r15), %rax
addsd 0x1e0(%rax), %xmm3
movq 0x50(%r15), %rcx
movq 0x1d0(%rax), %rax
movq (%rax,%r13,8), %rax
movsd (%rax,%rbp), %xmm4
mulsd %xmm4, %xmm4
subsd %xmm4, %xmm3
movq (%rcx,%r13,8), %rax
movl (%rax,%r12,4), %edx
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
callq 0xe6fa
testb %al, %al
je 0x2b64a
incq %r12
addq $0x20, %rbp
cmpq %r12, %rbx
jne 0x2b4d3
movq %r12, %rbx
shlq $0x5, %rbx
incq %r12
movl 0x24(%rsp), %ebp
movq 0x60(%r15), %rax
movslq (%rax,%r13,4), %rax
cmpq %rax, %r12
jge 0x2b662
movq 0x58(%r15), %rax
movq (%rax,%r13,8), %rax
movslq 0x4c(%r15), %rcx
movslq %r12d, %rdx
imulq %rcx, %rdx
movsd (%rax,%rdx,8), %xmm0
movsd 0x8(%rax,%rdx,8), %xmm1
subsd 0x88(%rsp), %xmm0
subsd 0x80(%rsp), %xmm1
movsd 0x10(%rax,%rdx,8), %xmm2
subsd 0x78(%rsp), %xmm2
movapd %xmm1, %xmm3
mulsd %xmm1, %xmm3
movapd %xmm0, %xmm4
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm4
movapd %xmm2, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm4, %xmm3
movq (%r15), %rax
addsd 0x1e0(%rax), %xmm3
movq 0x50(%r15), %rcx
movq 0x1d0(%rax), %rax
movq (%rax,%r13,8), %rax
movsd 0x38(%rax,%rbx), %xmm4
mulsd %xmm4, %xmm4
subsd %xmm4, %xmm3
movq (%rcx,%r13,8), %rax
movl (%rax,%r12,4), %edx
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
callq 0xe6fa
addq $0x20, %rbx
incq %r12
testb %al, %al
jne 0x2b591
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rdi
callq 0x9b0a
movq (%r15), %rax
xorps %xmm1, %xmm1
cvtsi2sdl 0x30(%rsp), %xmm1
xorps %xmm2, %xmm2
cvtsi2sd %ebp, %xmm2
xorps %xmm3, %xmm3
cvtsi2sdl 0x1b0(%rsp), %xmm3
mulsd 0x140(%rax), %xmm1
movapd %xmm0, %xmm6
movsd 0x88(%rsp), %xmm4
xorps %xmm0, %xmm0
cvtsi2sdl 0x180(%rax), %xmm0
subsd %xmm1, %xmm4
subsd %xmm0, %xmm2
mulsd 0x148(%rax), %xmm2
movsd 0x80(%rsp), %xmm5
subsd %xmm2, %xmm5
xorps %xmm0, %xmm0
cvtsi2sdl 0x184(%rax), %xmm0
subsd %xmm0, %xmm3
mulsd 0x150(%rax), %xmm3
movsd 0x78(%rsp), %xmm2
subsd %xmm3, %xmm2
movsd 0x20(%r15), %xmm0
mulsd %xmm4, %xmm0
movsd 0xdbad(%rip), %xmm1     # 0x392a8
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movsd 0x28(%r15), %xmm0
movapd %xmm5, 0x100(%rsp)
mulsd %xmm5, %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
movsd 0x30(%r15), %xmm0
movapd %xmm2, 0xf0(%rsp)
mulsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
cmpl $0x4, %eax
movapd %xmm4, 0x130(%rsp)
jl 0x2b76c
movl $0x7, %edx
subl %eax, %edx
xorl %eax, %eax
testl %edx, %edx
cmovgl %edx, %eax
movl $0x200001, 0x38(%rsp)   # imm = 0x200001
movl $0x60007f, 0x50(%rsp)   # imm = 0x60007F
movsd %xmm4, 0xb0(%rsp)
jmp 0x2b78f
movsd 0x8(%r15), %xmm1
subsd %xmm4, %xmm1
movsd %xmm1, 0xb0(%rsp)
movl $0x0, 0x50(%rsp)
movl $0x0, 0x38(%rsp)
cvttsd2si %xmm0, %edx
cmpl $0x4, %ecx
jl 0x2b7c1
orl $0x3003f80, 0x50(%rsp)  # imm = 0x3003F80
orl $0x1000080, 0x38(%rsp)  # imm = 0x1000080
movl $0x7, %esi
subl %ecx, %esi
xorl %ecx, %ecx
testl %esi, %esi
cmovgl %esi, %ecx
movapd 0x100(%rsp), %xmm0
jmp 0x2b7d0
movsd 0x10(%r15), %xmm0
subsd 0x100(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
cmpl $0x4, %edx
jl 0x2b807
orl $0x181fc000, 0x50(%rsp) # imm = 0x181FC000
orl $0x8004000, 0x38(%rsp)  # imm = 0x8004000
movl $0x7, %esi
subl %edx, %esi
xorl %edx, %edx
testl %esi, %esi
cmovgl %esi, %edx
movapd 0xf0(%rsp), %xmm1
jmp 0x2b816
movsd 0x18(%r15), %xmm1
subsd 0xf0(%rsp), %xmm1
movsd 0xb0(%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, 0xb0(%rsp)
movsd 0xa8(%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, 0xa8(%rsp)
mulsd %xmm1, %xmm1
movsd %xmm1, 0x150(%rsp)
shll $0xa, %edx
shll $0x8, %ecx
shll $0x6, %eax
addl %ecx, %eax
addl %edx, %eax
cltq
leaq (,%rax,8), %rcx
addq 0x80(%r15), %rcx
movq %rcx, 0xc8(%rsp)
movq 0x78(%r15), %rcx
leaq (%rcx,%rax,4), %rax
movq %rax, 0x158(%rsp)
movl (%rax), %eax
cmpl $0x2, %eax
movl $0x1, %ecx
cmovgel %eax, %ecx
movq %rcx, 0x68(%rsp)
leaq 0xdbf2(%rip), %rax      # 0x39490
movq %rax, 0xe0(%rsp)
movl $0x3, 0x70(%rsp)
movl $0x1, %ecx
xorl %eax, %eax
movq %rax, %r13
movq %rcx, %r14
movl 0x70(%rsp), %eax
cmpq %rax, %r13
jne 0x2b8f5
movq 0x8(%rsp), %rdi
callq 0x9b0a
movapd %xmm0, %xmm6
movq 0xe0(%rsp), %rax
cmpq 0x1a8a7(%rip), %rax     # 0x46188
je 0x2b8f5
movl (%rax), %ecx
movl %ecx, 0x70(%rsp)
addq $0x4, %rax
movq %rax, 0xe0(%rsp)
movq (%r15), %rax
movq 0xc8(%rsp), %rcx
movsd (%rcx,%r13,8), %xmm0
movsd 0x1e8(%rax), %xmm1
addsd %xmm0, %xmm1
mulsd %xmm6, %xmm0
ucomisd 0xd112(%rip), %xmm0     # 0x38a30
movsd %xmm6, 0x18(%rsp)
jb 0x2b92c
sqrtsd %xmm0, %xmm0
jmp 0x2b943
movsd %xmm1, 0x48(%rsp)
callq 0x20f0
movsd 0x48(%rsp), %xmm1
movsd 0x18(%rsp), %xmm6
ucomisd %xmm0, %xmm1
ja 0x2c30f
movq 0x158(%rsp), %rax
movl 0x4(%rax,%r13,4), %ecx
xorl 0x50(%rsp), %ecx
addl 0x38(%rsp), %ecx
movl %ecx, %esi
andl $0x7f, %esi
addl $-0x40, %esi
movl %esi, %ebp
addl 0x5c(%rsp), %ebp
js 0x2bd3d
cmpl 0x38(%r15), %ebp
jge 0x2bd3d
movl %ecx, %edx
shrl $0x7, %edx
andl $0x7f, %edx
addl $-0x40, %edx
movl %edx, %r12d
addl 0x34(%rsp), %r12d
js 0x2bd3d
cmpl 0x3c(%r15), %r12d
jge 0x2bd3d
shrl $0xe, %ecx
andl $0x7f, %ecx
addl $-0x40, %ecx
movl %ecx, %ebx
addl 0x14(%rsp), %ebx
js 0x2bd3d
cmpl 0x40(%r15), %ebx
jge 0x2bd3d
movq %r15, %rdi
movapd 0x130(%rsp), %xmm0
movapd 0x100(%rsp), %xmm1
movapd 0xf0(%rsp), %xmm2
movsd 0xb0(%rsp), %xmm3
movsd 0xa8(%rsp), %xmm4
movsd 0x150(%rsp), %xmm5
leaq 0xe8(%rsp), %r8
movsd 0x18(%rsp), %xmm6
callq 0x29336
movsd 0x18(%rsp), %xmm6
testb %al, %al
jne 0x2bd3d
movq (%r15), %rdi
subq $0x8, %rsp
movl 0x38(%rsp), %esi
movl 0x2c(%rsp), %edx
movl 0x1b8(%rsp), %ecx
movl %ebp, %r8d
movl %r12d, %r9d
leaq 0xdc(%rsp), %rax
pushq %rax
leaq 0xa0(%rsp), %rax
pushq %rax
leaq 0xb0(%rsp), %rax
pushq %rax
leaq 0xc0(%rsp), %rax
pushq %rax
pushq %rbx
callq 0x2492c
movsd 0x48(%rsp), %xmm6
addq $0x30, %rsp
movq 0x60(%r15), %rcx
movslq %eax, %r12
cmpl $0x0, (%rcx,%r12,4)
jle 0x2bd3d
movsd 0x88(%rsp), %xmm0
subsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
movsd 0x80(%rsp), %xmm0
subsd 0x98(%rsp), %xmm0
movsd %xmm0, 0xc0(%rsp)
movsd 0x78(%rsp), %xmm0
subsd 0x90(%rsp), %xmm0
movsd %xmm0, 0x60(%rsp)
movq (%r15), %rax
movsd 0xe8(%rsp), %xmm0
movsd 0x1e8(%rax), %xmm1
addsd %xmm0, %xmm1
mulsd %xmm6, %xmm0
ucomisd 0xcf46(%rip), %xmm0     # 0x38a30
jb 0x2baf2
sqrtsd %xmm0, %xmm0
jmp 0x2bb0f
movsd %xmm1, 0xb8(%rsp)
callq 0x20f0
movsd 0xb8(%rsp), %xmm1
movsd 0x18(%rsp), %xmm6
ucomisd %xmm0, %xmm1
jbe 0x2bc7c
movl $0x18, %ebp
xorl %ebx, %ebx
movq (%r15), %rax
movq 0x58(%r15), %rcx
movq (%rcx,%r12,8), %rcx
movslq 0x4c(%r15), %rdx
movslq %ebx, %rsi
imulq %rdx, %rsi
movsd (%rcx,%rsi,8), %xmm4
movsd 0x8(%rcx,%rsi,8), %xmm1
subsd 0x48(%rsp), %xmm4
subsd 0xc0(%rsp), %xmm1
movsd 0x10(%rcx,%rsi,8), %xmm2
subsd 0x60(%rsp), %xmm2
movapd %xmm1, %xmm0
mulsd %xmm1, %xmm0
movapd %xmm4, %xmm5
mulsd %xmm4, %xmm5
addsd %xmm0, %xmm5
movapd %xmm2, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm5, %xmm3
movsd 0x1e0(%rax), %xmm5
movq 0x1d0(%rax), %rax
movq (%rax,%r12,8), %rax
movsd (%rax,%rbp), %xmm7
movapd %xmm6, %xmm0
mulsd %xmm3, %xmm0
ucomisd 0xce8c(%rip), %xmm0     # 0x38a30
jb 0x2bbac
sqrtsd %xmm0, %xmm0
jmp 0x2bc23
movsd %xmm4, 0xb8(%rsp)
movsd %xmm1, 0x128(%rsp)
movsd %xmm2, 0x120(%rsp)
movsd %xmm3, 0x118(%rsp)
movsd %xmm5, 0x110(%rsp)
movsd %xmm7, 0xd8(%rsp)
callq 0x20f0
movsd 0xd8(%rsp), %xmm7
movsd 0x110(%rsp), %xmm5
movsd 0x118(%rsp), %xmm3
movsd 0x120(%rsp), %xmm2
movsd 0x128(%rsp), %xmm1
movsd 0xb8(%rsp), %xmm4
movsd 0x18(%rsp), %xmm6
mulsd %xmm7, %xmm7
subsd %xmm7, %xmm5
addsd %xmm5, %xmm3
ucomisd %xmm3, %xmm0
jbe 0x2bc5f
movq 0x50(%r15), %rax
movq (%rax,%r12,8), %rax
movl (%rax,%rbx,4), %edx
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
movapd %xmm4, %xmm0
callq 0xe6fa
movsd 0x18(%rsp), %xmm6
testb %al, %al
je 0x2b64a
incq %rbx
movq 0x60(%r15), %rax
movslq (%rax,%r12,4), %rax
addq $0x20, %rbp
cmpq %rax, %rbx
jl 0x2bb20
jmp 0x2bd3d
movl $0x18, %ebx
xorl %ebp, %ebp
movq 0x58(%r15), %rax
movq (%rax,%r12,8), %rax
movslq 0x4c(%r15), %rcx
movslq %ebp, %rdx
imulq %rcx, %rdx
movsd (%rax,%rdx,8), %xmm0
movsd 0x8(%rax,%rdx,8), %xmm1
subsd 0x48(%rsp), %xmm0
subsd 0xc0(%rsp), %xmm1
movsd 0x10(%rax,%rdx,8), %xmm2
subsd 0x60(%rsp), %xmm2
movapd %xmm1, %xmm3
mulsd %xmm1, %xmm3
movapd %xmm0, %xmm4
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm4
movapd %xmm2, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm4, %xmm3
movq (%r15), %rax
addsd 0x1e0(%rax), %xmm3
movq 0x50(%r15), %rcx
movq 0x1d0(%rax), %rax
movq (%rax,%r12,8), %rax
movsd (%rax,%rbx), %xmm4
mulsd %xmm4, %xmm4
subsd %xmm4, %xmm3
movq (%rcx,%r12,8), %rax
movl (%rax,%rbp,4), %edx
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
callq 0xe6fa
testb %al, %al
je 0x2b64a
incq %rbp
movq 0x60(%r15), %rax
movslq (%rax,%r12,4), %rax
addq $0x20, %rbx
cmpq %rax, %rbp
movsd 0x18(%rsp), %xmm6
jl 0x2bc83
leaq 0x1(%r13), %rax
leaq 0x1(%r14), %rcx
cmpq 0x68(%rsp), %rax
jne 0x2b8b5
incl 0x70(%r15)
jne 0x2bd86
cmpl $0x0, 0x48(%r15)
jle 0x2bd7e
movq 0x88(%r15), %rcx
movq %rcx, %rdx
movl $0x0, (%rdx)
addq $0x4, %rdx
movslq 0x48(%r15), %rsi
leaq (%rcx,%rsi,4), %rsi
cmpq %rsi, %rdx
jb 0x2bd67
movl $0x1, 0x70(%r15)
movq 0x90(%r15), %rcx
movq %rcx, 0x28(%rsp)
movq %rcx, 0x40(%rsp)
cmpq $0x3d, %r13
movl 0x34(%rsp), %ebx
ja 0x2c31c
leaq 0xe8(%rsp), %rbp
movl 0x70(%rsp), %eax
cmpq %rax, %r14
jne 0x2bde7
movq 0x8(%rsp), %rdi
callq 0x9b0a
movapd %xmm0, %xmm6
movq 0xe0(%rsp), %rax
cmpq 0x1a3b5(%rip), %rax     # 0x46188
je 0x2bde7
movl (%rax), %ecx
movl %ecx, 0x70(%rsp)
addq $0x4, %rax
movq %rax, 0xe0(%rsp)
movq (%r15), %rax
movq 0xc8(%rsp), %rcx
movsd (%rcx,%r14,8), %xmm0
movsd 0x1e8(%rax), %xmm1
addsd %xmm0, %xmm1
mulsd %xmm6, %xmm0
ucomisd 0xcc20(%rip), %xmm0     # 0x38a30
jb 0x2be18
sqrtsd %xmm0, %xmm0
jmp 0x2be35
movsd %xmm6, 0x18(%rsp)
movsd %xmm1, 0x68(%rsp)
callq 0x20f0
movsd 0x68(%rsp), %xmm1
movsd 0x18(%rsp), %xmm6
ucomisd %xmm0, %xmm1
ja 0x2c30f
movq 0x158(%rsp), %rax
movl 0x4(%rax,%r14,4), %r12d
xorl 0x50(%rsp), %r12d
addl 0x38(%rsp), %r12d
movl %r12d, %esi
andl $0x7f, %esi
addl $-0x40, %esi
movl %esi, %r13d
addl 0x5c(%rsp), %r13d
js 0x2c2ec
movl 0x38(%r15), %eax
cmpl %eax, %r13d
jge 0x2c2ec
movl %r12d, %edx
shrl $0x7, %edx
andl $0x7f, %edx
addl $-0x40, %edx
movl %edx, %r9d
addl %ebx, %r9d
js 0x2c2ec
movl 0x3c(%r15), %edi
cmpl %edi, %r9d
jge 0x2c2ec
movl %r12d, %ecx
shrl $0xe, %ecx
andl $0x7f, %ecx
addl $-0x40, %ecx
movl %ecx, %r10d
addl 0x14(%rsp), %r10d
js 0x2c2ec
cmpl 0x40(%r15), %r10d
jge 0x2c2ec
movl %r13d, %r8d
shlq $0x2, %r8
addq 0x88(%r15), %r8
imull %r10d, %edi
addl %r9d, %edi
imull %eax, %edi
movq %rdi, 0x170(%rsp)
movl 0x70(%r15), %eax
movq %r8, 0x168(%rsp)
movl %eax, (%r8,%rdi,4)
movq %r15, %rdi
movapd 0x130(%rsp), %xmm0
movapd 0x100(%rsp), %xmm1
movapd 0xf0(%rsp), %xmm2
movsd 0xb0(%rsp), %xmm3
movsd 0xa8(%rsp), %xmm4
movsd 0x150(%rsp), %xmm5
movq %rbp, %r8
movsd %xmm6, 0x18(%rsp)
movsd 0x18(%rsp), %xmm6
movl %r9d, 0xd8(%rsp)
movq %r10, 0x148(%rsp)
callq 0x29336
movq 0x148(%rsp), %r10
movl 0xd8(%rsp), %r9d
movsd 0x18(%rsp), %xmm6
testb %al, %al
jne 0x2c2ec
movq %r14, 0x160(%rsp)
movq (%r15), %rdi
subq $0x8, %rsp
movl 0x38(%rsp), %esi
movl 0x2c(%rsp), %edx
movl 0x1b8(%rsp), %ecx
movl %r13d, %r8d
leaq 0xdc(%rsp), %rax
pushq %rax
leaq 0xa0(%rsp), %rax
pushq %rax
leaq 0xb0(%rsp), %rax
pushq %rax
leaq 0xc0(%rsp), %rax
pushq %rax
pushq %r10
callq 0x2492c
addq $0x30, %rsp
movq 0x60(%r15), %rcx
movslq %eax, %rdi
cmpl $0x0, (%rcx,%rdi,4)
jle 0x2c280
movsd 0x88(%rsp), %xmm0
subsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x68(%rsp)
movsd 0x80(%rsp), %xmm0
subsd 0x98(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
movsd 0x78(%rsp), %xmm0
subsd 0x90(%rsp), %xmm0
movsd %xmm0, 0xc0(%rsp)
movq (%r15), %rax
movsd 0xe8(%rsp), %xmm0
movsd 0x1e8(%rax), %xmm1
addsd %xmm0, %xmm1
mulsd 0x18(%rsp), %xmm0
ucomisd 0xc9f3(%rip), %xmm0     # 0x38a30
movq %rdi, %r14
jb 0x2c048
sqrtsd %xmm0, %xmm0
jmp 0x2c05c
movsd %xmm1, 0x60(%rsp)
callq 0x20f0
movsd 0x60(%rsp), %xmm1
movq %r14, %rdi
ucomisd %xmm0, %xmm1
jbe 0x2c1bf
movl $0x18, %ebp
xorl %ebx, %ebx
movq (%r15), %rax
movq 0x58(%r15), %rcx
movq (%rcx,%rdi,8), %rcx
movslq 0x4c(%r15), %rdx
movslq %ebx, %rsi
imulq %rdx, %rsi
movsd (%rcx,%rsi,8), %xmm4
movsd 0x8(%rcx,%rsi,8), %xmm1
subsd 0x68(%rsp), %xmm4
subsd 0x48(%rsp), %xmm1
movsd 0x10(%rcx,%rsi,8), %xmm2
subsd 0xc0(%rsp), %xmm2
movapd %xmm1, %xmm0
mulsd %xmm1, %xmm0
movapd %xmm4, %xmm5
mulsd %xmm4, %xmm5
addsd %xmm0, %xmm5
movapd %xmm2, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm5, %xmm3
movsd 0x1e0(%rax), %xmm5
movq 0x1d0(%rax), %rax
movq (%rax,%rdi,8), %rax
movsd (%rax,%rbp), %xmm6
movsd 0x18(%rsp), %xmm0
mulsd %xmm3, %xmm0
ucomisd 0xc93d(%rip), %xmm0     # 0x38a30
jb 0x2c0fb
sqrtsd %xmm0, %xmm0
jmp 0x2c169
movsd %xmm4, 0x60(%rsp)
movsd %xmm1, 0xb8(%rsp)
movsd %xmm2, 0x128(%rsp)
movsd %xmm3, 0x120(%rsp)
movsd %xmm5, 0x118(%rsp)
movsd %xmm6, 0x110(%rsp)
callq 0x20f0
movsd 0x110(%rsp), %xmm6
movsd 0x118(%rsp), %xmm5
movsd 0x120(%rsp), %xmm3
movsd 0x128(%rsp), %xmm2
movsd 0xb8(%rsp), %xmm1
movsd 0x60(%rsp), %xmm4
movq %r14, %rdi
mulsd %xmm6, %xmm6
subsd %xmm6, %xmm5
addsd %xmm5, %xmm3
ucomisd %xmm3, %xmm0
jbe 0x2c1a2
movq 0x50(%r15), %rax
movq (%rax,%rdi,8), %rax
movl (%rax,%rbx,4), %edx
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
movapd %xmm4, %xmm0
callq 0xe6fa
movq %r14, %rdi
testb %al, %al
je 0x2b64a
incq %rbx
movq 0x60(%r15), %rax
movslq (%rax,%rdi,4), %rax
addq $0x20, %rbp
cmpq %rax, %rbx
jl 0x2c06d
jmp 0x2c280
movl $0x18, %ebx
xorl %ebp, %ebp
movq 0x58(%r15), %rax
movq (%rax,%rdi,8), %rax
movslq 0x4c(%r15), %rcx
movslq %ebp, %rdx
imulq %rcx, %rdx
movsd (%rax,%rdx,8), %xmm0
movsd 0x8(%rax,%rdx,8), %xmm1
subsd 0x68(%rsp), %xmm0
subsd 0x48(%rsp), %xmm1
movsd 0x10(%rax,%rdx,8), %xmm2
subsd 0xc0(%rsp), %xmm2
movapd %xmm1, %xmm3
mulsd %xmm1, %xmm3
movapd %xmm0, %xmm4
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm4
movapd %xmm2, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm4, %xmm3
movq (%r15), %rax
addsd 0x1e0(%rax), %xmm3
movq 0x50(%r15), %rcx
movq 0x1d0(%rax), %rax
movq (%rax,%rdi,8), %rax
movsd (%rax,%rbx), %xmm4
mulsd %xmm4, %xmm4
subsd %xmm4, %xmm3
movq (%rcx,%rdi,8), %rax
movl (%rax,%rbp,4), %edx
movq %rdi, %r14
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
callq 0xe6fa
testb %al, %al
je 0x2b64a
incq %rbp
movq 0x60(%r15), %rax
movslq (%rax,%r14,4), %rax
addq $0x20, %rbx
cmpq %rax, %rbp
movq %r14, %rdi
jl 0x2c1c6
movq 0x98(%r15), %rax
addq $-0x48, %rax
cmpq %rax, 0x40(%rsp)
ja 0x2c2fb
movq 0x170(%rsp), %rax
movq 0x168(%rsp), %rcx
leaq (%rcx,%rax,4), %rdx
subq $0x8, %rsp
movq %r15, %rdi
movl %r12d, %esi
movl %r13d, %ecx
movl 0xe0(%rsp), %r8d
movq 0x150(%rsp), %r9
leaq 0x48(%rsp), %rax
pushq %rax
callq 0x2a5d2
addq $0x10, %rsp
movl 0x34(%rsp), %ebx
movsd 0x18(%rsp), %xmm6
movq 0x160(%rsp), %r14
leaq 0xe8(%rsp), %rbp
incq %r14
cmpq $0x3f, %r14
jne 0x2bdad
jmp 0x2c317
movq %r15, %rdi
leaq 0x28(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0x301a
jmp 0x2c292
movb $0x1, %r13b
jmp 0x2b64d
movl $0x3f, %eax
movq (%r15), %rcx
movl %eax, %eax
movq 0xc8(%rsp), %rdx
movsd (%rdx,%rax,8), %xmm0
movsd 0x1e8(%rcx), %xmm1
addsd %xmm0, %xmm1
mulsd %xmm0, %xmm6
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm6
jb 0x2c351
xorps %xmm0, %xmm0
sqrtsd %xmm6, %xmm0
jmp 0x2c366
movapd %xmm6, %xmm0
movsd %xmm1, 0x18(%rsp)
callq 0x20f0
movsd 0x18(%rsp), %xmm1
movl 0x24(%rsp), %r14d
movb $0x1, %r13b
ucomisd %xmm0, %xmm1
ja 0x2b64d
movq 0x28(%rsp), %rax
cmpq 0x40(%rsp), %rax
je 0x2b64d
movapd 0xaca0(%rip), %xmm0     # 0x37030
movapd 0x130(%rsp), %xmm1
xorpd %xmm0, %xmm1
movapd %xmm1, 0x130(%rsp)
movapd 0x100(%rsp), %xmm1
xorpd %xmm0, %xmm1
movapd %xmm1, 0x100(%rsp)
movapd 0xf0(%rsp), %xmm1
xorpd %xmm0, %xmm1
movapd %xmm1, 0xf0(%rsp)
cmpq 0x98(%r15), %rax
jne 0x2c3e7
movq 0x90(%r15), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x28(%rsp)
movl (%rax), %ebp
leaq 0x8(%rax), %rcx
movq %rcx, 0x28(%rsp)
movl 0x4(%rax), %r12d
leaq 0xc(%rax), %rcx
movq %rcx, 0x28(%rsp)
movl 0x8(%rax), %esi
movl %r12d, %eax
subl %ebx, %eax
movl %esi, %ecx
subl 0x14(%rsp), %ecx
movl %ebp, %edx
movsd 0x10(%r15), %xmm4
xorps %xmm7, %xmm7
cvtsi2sd %eax, %xmm7
mulsd %xmm4, %xmm7
addsd 0x100(%rsp), %xmm7
xorps %xmm6, %xmm6
cvtsi2sd %ecx, %xmm6
addsd %xmm7, %xmm4
movsd 0x18(%r15), %xmm5
mulsd %xmm5, %xmm6
addsd 0xf0(%rsp), %xmm6
addsd %xmm6, %xmm5
subl 0x5c(%rsp), %edx
xorps %xmm8, %xmm8
cvtsi2sd %edx, %xmm8
movsd 0x8(%r15), %xmm3
mulsd %xmm3, %xmm8
addsd 0x130(%rsp), %xmm8
addsd %xmm8, %xmm3
movq %rsi, 0x38(%rsp)
jle 0x2c4b0
cmpl %ebx, %r12d
jle 0x2c4e3
cmpl 0x14(%rsp), %esi
jle 0x2c537
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
jmp 0x2c6e9
jge 0x2c50a
cmpl %ebx, %r12d
jle 0x2c557
cmpl 0x14(%rsp), %esi
jle 0x2c5db
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
movapd %xmm8, %xmm3
jmp 0x2c6e9
jge 0x2c589
cmpl 0x14(%rsp), %esi
jle 0x2c5ff
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
jmp 0x2c580
cmpl %ebx, %r12d
jle 0x2c5ad
cmpl 0x14(%rsp), %esi
jle 0x2c61f
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
jmp 0x2c716
movq %r15, %rdi
jge 0x2c63f
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
jmp 0x2c6e5
jge 0x2c656
cmpl 0x14(%rsp), %esi
jle 0x2c6c2
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
movapd %xmm8, %xmm3
movapd %xmm7, %xmm4
jmp 0x2c6e9
cmpl 0x14(%rsp), %esi
jle 0x2c67e
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
jmp 0x2c788
jge 0x2c69e
cmpl 0x14(%rsp), %esi
jle 0x2c6f3
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
movapd %xmm7, %xmm4
jmp 0x2c716
movq %r15, %rdi
jge 0x2c720
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
movapd %xmm8, %xmm3
jmp 0x2c6e5
movq %r15, %rdi
jge 0x2c73b
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm5, %xmm2
jmp 0x2c6e1
movq %r15, %rdi
jge 0x2c752
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
jmp 0x2c712
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
jmp 0x2c7da
cmpl 0x14(%rsp), %esi
jle 0x2c765
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
movapd %xmm8, %xmm3
jmp 0x2c788
movq %r15, %rdi
jge 0x2c792
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
jmp 0x2c784
cmpl 0x14(%rsp), %esi
jle 0x2c79e
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
jmp 0x2c7b9
movq %r15, %rdi
jge 0x2c7c0
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm4, %xmm1
movapd %xmm5, %xmm2
movapd %xmm8, %xmm3
movapd %xmm7, %xmm4
movapd %xmm6, %xmm5
callq 0x2ca32
jmp 0x2c81c
movq %r15, %rdi
jge 0x2c7e1
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm5, %xmm2
movapd %xmm7, %xmm4
movapd %xmm6, %xmm5
callq 0x2d08a
jmp 0x2c81c
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
movapd %xmm8, %xmm3
jmp 0x2c7da
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
jmp 0x2c7d6
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
jmp 0x2c7ef
movq %r15, %rdi
jge 0x2c7fe
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
movapd %xmm8, %xmm3
movapd %xmm6, %xmm5
callq 0x2cde6
jmp 0x2c81c
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
jmp 0x2c807
jge 0x2ca1c
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
callq 0x2d32e
jmp 0x2c81c
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
movapd %xmm8, %xmm3
movapd %xmm7, %xmm4
callq 0x2cc3e
jmp 0x2c81c
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
movapd %xmm5, %xmm4
callq 0x2d22e
jmp 0x2c81c
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
movapd %xmm4, %xmm3
movapd %xmm5, %xmm4
callq 0x2cf8a
testb %al, %al
jne 0x2c9f3
movq (%r15), %rdi
subq $0x8, %rsp
movl 0x38(%rsp), %esi
movl %r14d, %edx
movl 0x1b8(%rsp), %ecx
movl %ebp, %r14d
movl %ebp, %r8d
movl %r12d, 0xd0(%rsp)
movl %r12d, %r9d
leaq 0xdc(%rsp), %rax
pushq %rax
leaq 0xa0(%rsp), %rax
pushq %rax
leaq 0xb0(%rsp), %rax
pushq %rax
leaq 0xc0(%rsp), %rax
pushq %rax
pushq 0x60(%rsp)
callq 0x2492c
addq $0x30, %rsp
movq 0x60(%r15), %rcx
movslq %eax, %rbp
cmpl $0x0, (%rcx,%rbp,4)
jle 0x2c98b
movsd 0x88(%rsp), %xmm0
subsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0x80(%rsp), %xmm0
subsd 0x98(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
movsd 0x78(%rsp), %xmm0
subsd 0x90(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movl $0x18, %r12d
xorl %ebx, %ebx
movq 0x58(%r15), %rax
movq (%rax,%rbp,8), %rax
movslq 0x4c(%r15), %rcx
movslq %ebx, %rdx
imulq %rcx, %rdx
movsd (%rax,%rdx,8), %xmm0
subsd 0x18(%rsp), %xmm0
movsd 0x8(%rax,%rdx,8), %xmm1
subsd 0x70(%rsp), %xmm1
movsd 0x10(%rax,%rdx,8), %xmm2
subsd 0x50(%rsp), %xmm2
movapd %xmm1, %xmm3
mulsd %xmm1, %xmm3
movapd %xmm0, %xmm4
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm4
movapd %xmm2, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm4, %xmm3
movq (%r15), %rax
addsd 0x1e0(%rax), %xmm3
movq 0x50(%r15), %rcx
movq 0x1d0(%rax), %rax
movq (%rax,%rbp,8), %rax
movsd (%rax,%r12), %xmm4
mulsd %xmm4, %xmm4
subsd %xmm4, %xmm3
movq (%rcx,%rbp,8), %rax
movl (%rax,%rbx,4), %edx
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
callq 0xe6fa
testb %al, %al
je 0x2b64a
incq %rbx
movq 0x60(%r15), %rax
movslq (%rax,%rbp,4), %rax
addq $0x20, %r12
cmpq %rax, %rbx
jl 0x2c8d9
movq 0x28(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rax, %rdx
subq %rcx, %rdx
jbe 0x2c9a6
sarq $0x2, %rdx
movq %rdx, %rax
jmp 0x2c9c2
movq 0x98(%r15), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
subq 0x90(%r15), %rax
sarq $0x2, %rax
addq %rdx, %rax
movl %r14d, %ebp
cmpq $0x11, %rax
movl 0x34(%rsp), %ebx
movl 0x24(%rsp), %r14d
movl 0xc8(%rsp), %r12d
jle 0x2ca08
movq %r15, %rdi
movl %ebp, %esi
movl %r12d, %edx
movq 0x38(%rsp), %rcx
leaq 0x40(%rsp), %r8
callq 0x2b180
movq 0x28(%rsp), %rax
cmpq 0x40(%rsp), %rax
jne 0x2c3d2
jmp 0x2b64d
movq %r15, %rdi
leaq 0x28(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0x301a
jmp 0x2c9dc
leaq 0xc8bd(%rip), %rdi      # 0x392e0
movl $0x3, %esi
callq 0x1318d
jmp 0x2c824