// File: /workspace/github_cpp_makefile_star2_O2/Luthaf[P]zeopp/voro++/src/v_compute.cc
// Function: bool voro::voro_compute<voro::container_poly>::compute_cell<voro::voronoicell>(voro::voronoicell&, 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 $0x158, %rsp            # imm = 0x158
movl %ecx, %ebx
movl %edx, %r12d
movq %rdi, %r15
andq $0x0, 0xa0(%rsp)
movl 0x190(%rsp), %ebp
andq $0x0, 0x98(%rsp)
andq $0x0, 0x90(%rsp)
movq (%rdi), %rdi
leaq 0x78(%rsp), %r13
leaq 0xa8(%rsp), %rax
leaq 0xb0(%rsp), %r10
leaq 0xb8(%rsp), %r11
leaq 0x7c(%rsp), %r14
movq %rsi, 0x8(%rsp)
movl %r8d, 0x38(%rsp)
movl %r9d, 0x3c(%rsp)
pushq %r13
pushq %rax
pushq %r10
pushq %r11
pushq %r14
leaq 0xa8(%rsp), %rax
pushq %rax
leaq 0xb4(%rsp), %rax
pushq %rax
pushq %rbp
callq 0x13584
addq $0x40, %rsp
xorl %r13d, %r13d
testb %al, %al
je 0x172cc
movl $0xd8, %r14d
movq (%r15), %rdi
addq %r14, %rdi
movl %r12d, %esi
movl %ebx, %edx
callq 0x18530
movslq %r12d, %rbp
testl %ebx, %ebx
cmovlel %r13d, %ebx
cmpq %r13, %rbx
je 0x171fc
movq 0x58(%r15), %rax
movq (%rax,%rbp,8), %rax
movslq 0x4c(%r15), %rcx
movslq %r13d, %rdx
imulq %rdx, %rcx
movsd (%rax,%rcx,8), %xmm0
subsd 0xb8(%rsp), %xmm0
movapd %xmm0, %xmm1
movsd %xmm0, 0x20(%rsp)
movsd 0x8(%rax,%rcx,8), %xmm0
subsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rax,%rcx,8), %xmm2
subsd 0xa8(%rsp), %xmm2
movsd %xmm2, 0x18(%rsp)
movq (%r15), %rdi
addq %r14, %rdi
mulsd %xmm0, %xmm0
mulsd %xmm1, %xmm1
addsd %xmm0, %xmm1
movapd %xmm2, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movl %r12d, %esi
callq 0x18566
movapd %xmm0, %xmm3
movsd %xmm0, 0x28(%rsp)
movq 0x50(%r15), %rax
movq (%rax,%rbp,8), %rax
movl (%rax,%r13,4), %esi
movq 0x8(%rsp), %rdi
movsd 0x20(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movsd 0x18(%rsp), %xmm2
callq 0x1374e
incq %r13
testb %al, %al
jne 0x17136
jmp 0x172c9
incq %rbx
movl $0xd8, %r14d
movq 0x60(%r15), %rax
cmpl %ebx, (%rax,%rbp,4)
jle 0x172e1
movq 0x58(%r15), %rax
movq (%rax,%rbp,8), %rax
movslq 0x4c(%r15), %rcx
movslq %ebx, %rdx
imulq %rdx, %rcx
movsd (%rax,%rcx,8), %xmm0
subsd 0xb8(%rsp), %xmm0
movapd %xmm0, %xmm1
movsd %xmm0, 0x20(%rsp)
movsd 0x8(%rax,%rcx,8), %xmm0
subsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rax,%rcx,8), %xmm2
subsd 0xa8(%rsp), %xmm2
movsd %xmm2, 0x18(%rsp)
movq (%r15), %rdi
addq %r14, %rdi
mulsd %xmm0, %xmm0
mulsd %xmm1, %xmm1
addsd %xmm0, %xmm1
movapd %xmm2, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movl %r12d, %esi
callq 0x18566
movapd %xmm0, %xmm3
movsd %xmm0, 0x28(%rsp)
movq 0x50(%r15), %rax
movq (%rax,%rbp,8), %rax
movl (%rax,%rbx,4), %esi
movq 0x8(%rsp), %rdi
movsd 0x20(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movsd 0x18(%rsp), %xmm2
callq 0x1374e
incq %rbx
testb %al, %al
jne 0x17205
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rdi
callq 0x7c2c
movapd %xmm0, %xmm6
movq (%r15), %rax
movsd 0xb8(%rsp), %xmm3
movsd 0xb0(%rsp), %xmm4
cvtsi2sdl 0x38(%rsp), %xmm0
cvtsi2sdl 0x3c(%rsp), %xmm1
movl 0x190(%rsp), %ecx
cvtsi2sd %ecx, %xmm2
subsd 0x70(%rax), %xmm3
mulsd 0x18(%rax), %xmm0
movsd 0xa8(%rsp), %xmm5
subsd %xmm0, %xmm3
subsd 0x80(%rax), %xmm4
mulsd 0x20(%rax), %xmm1
subsd 0x90(%rax), %xmm5
subsd %xmm1, %xmm4
mulsd 0x28(%rax), %xmm2
subsd %xmm2, %xmm5
movsd 0x20(%r15), %xmm0
mulsd %xmm3, %xmm0
movsd 0x19f82(%rip), %xmm1    # 0x312e8
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movsd 0x28(%r15), %xmm0
movapd %xmm4, 0x100(%rsp)
mulsd %xmm4, %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
movsd 0x30(%r15), %xmm0
movapd %xmm5, 0xf0(%rsp)
mulsd %xmm5, %xmm0
mulsd %xmm1, %xmm0
pushq $0x7
popq %rsi
cmpl $0x4, %eax
movapd %xmm3, 0x120(%rsp)
jl 0x173d7
movl %esi, %edx
subl %eax, %edx
xorl %eax, %eax
testl %edx, %edx
cmovgl %edx, %eax
movl $0x200001, 0x68(%rsp)   # imm = 0x200001
movl $0x60007f, 0x18(%rsp)   # imm = 0x60007F
movsd %xmm3, 0xc8(%rsp)
jmp 0x173fa
movsd 0x8(%r15), %xmm1
subsd %xmm3, %xmm1
movsd %xmm1, 0xc8(%rsp)
movl $0x0, 0x18(%rsp)
movl $0x0, 0x68(%rsp)
cvttsd2si %xmm0, %edx
cmpl $0x4, %ecx
jl 0x17429
orl $0x3003f80, 0x18(%rsp)  # imm = 0x3003F80
orl $0x1000080, 0x68(%rsp)  # imm = 0x1000080
movl %esi, %edi
subl %ecx, %edi
xorl %ecx, %ecx
testl %edi, %edi
cmovgl %edi, %ecx
movapd 0x100(%rsp), %xmm0
jmp 0x17438
movsd 0x10(%r15), %xmm0
subsd 0x100(%rsp), %xmm0
movsd %xmm0, 0xc0(%rsp)
cmpl $0x4, %edx
jl 0x1746a
orl $0x181fc000, 0x18(%rsp) # imm = 0x181FC000
orl $0x8004000, 0x68(%rsp)  # imm = 0x8004000
subl %edx, %esi
xorl %edx, %edx
testl %esi, %esi
cmovgl %esi, %edx
movapd 0xf0(%rsp), %xmm1
jmp 0x17479
movsd 0x18(%r15), %xmm1
subsd 0xf0(%rsp), %xmm1
movsd 0xc8(%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, 0xc8(%rsp)
movsd 0xc0(%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, 0xc0(%rsp)
mulsd %xmm1, %xmm1
movsd %xmm1, 0x140(%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, 0xd8(%rsp)
movq 0x78(%r15), %rcx
leaq (%rcx,%rax,4), %rax
movq %rax, 0xe0(%rsp)
movslq (%rax), %rax
movq %rax, 0x58(%rsp)
leaq 0x19f29(%rip), %rax     # 0x31420
movq %rax, 0x60(%rsp)
pushq $0x3
popq %rbp
pushq $0x1
popq %rax
xorl %r13d, %r13d
movq %rax, %rbx
movl %ebp, %eax
cmpq %rax, %r13
jne 0x17536
movq 0x8(%rsp), %rdi
callq 0x7c2c
movapd %xmm0, %xmm6
movq 0x60(%rsp), %rax
cmpq 0x27c2f(%rip), %rax     # 0x3f158
je 0x17536
movl (%rax), %ebp
addq $0x4, %rax
movq %rax, 0x60(%rsp)
movq (%r15), %rax
movq 0xd8(%rsp), %rcx
movsd (%rcx,%r13,8), %xmm0
movsd 0xf0(%rax), %xmm1
addsd %xmm0, %xmm1
mulsd %xmm6, %xmm0
ucomisd 0x19511(%rip), %xmm0    # 0x30a70
movsd %xmm6, 0x10(%rsp)
movq %rbx, 0x20(%rsp)
jb 0x17572
sqrtsd %xmm0, %xmm0
jmp 0x17589
movsd %xmm1, 0x50(%rsp)
callq 0x20e0
movsd 0x50(%rsp), %xmm1
movsd 0x10(%rsp), %xmm6
ucomisd %xmm0, %xmm1
ja 0x17e5d
movl %ebp, %r12d
movq 0xe0(%rsp), %rax
movl 0x4(%rax,%r13,4), %ecx
xorl 0x18(%rsp), %ecx
addl 0x68(%rsp), %ecx
movl %ecx, %esi
andl $0x7f, %esi
addl $-0x40, %esi
movl 0x84(%rsp), %ebx
addl %esi, %ebx
js 0x17926
cmpl 0x38(%r15), %ebx
jge 0x17926
movl %ecx, %edx
shrl $0x7, %edx
andl $0x7f, %edx
addl $-0x40, %edx
movl 0x80(%rsp), %ebp
addl %edx, %ebp
js 0x17926
cmpl 0x3c(%r15), %ebp
jge 0x17926
shrl $0xe, %ecx
andl $0x7f, %ecx
addl $-0x40, %ecx
movl 0x7c(%rsp), %r14d
addl %ecx, %r14d
js 0x17926
cmpl 0x40(%r15), %r14d
jge 0x17926
movq %r15, %rdi
movapd 0x120(%rsp), %xmm0
movapd 0x100(%rsp), %xmm1
movapd 0xf0(%rsp), %xmm2
movsd 0xc8(%rsp), %xmm3
movsd 0xc0(%rsp), %xmm4
movsd 0x140(%rsp), %xmm5
leaq 0x110(%rsp), %r8
movsd 0x10(%rsp), %xmm6
callq 0x1858e
movsd 0x10(%rsp), %xmm6
testb %al, %al
jne 0x17926
movq (%r15), %rdi
subq $0x8, %rsp
movl 0x40(%rsp), %esi
movl 0x44(%rsp), %edx
movl 0x198(%rsp), %ecx
movl %ebx, %r8d
movl %ebp, %r9d
leaq 0x80(%rsp), %rax
pushq %rax
leaq 0xa0(%rsp), %rax
pushq %rax
leaq 0xb0(%rsp), %rax
pushq %rax
leaq 0xc0(%rsp), %rax
pushq %rax
pushq %r14
callq 0x14066
movsd 0x40(%rsp), %xmm6
addq $0x30, %rsp
movq 0x60(%r15), %rcx
movslq %eax, %rbx
cmpl $0x0, (%rcx,%rbx,4)
jle 0x17926
movsd 0xb8(%rsp), %xmm0
subsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movsd 0xb0(%rsp), %xmm0
subsd 0x98(%rsp), %xmm0
movsd %xmm0, 0xd0(%rsp)
movsd 0xa8(%rsp), %xmm0
subsd 0x90(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movq (%r15), %rax
movsd 0x110(%rsp), %xmm0
movsd 0xf0(%rax), %xmm1
addsd %xmm0, %xmm1
mulsd %xmm6, %xmm0
ucomisd 0x19334(%rip), %xmm0    # 0x30a70
jb 0x17744
sqrtsd %xmm0, %xmm0
jmp 0x1775b
movsd %xmm1, 0x30(%rsp)
callq 0x20e0
movsd 0x30(%rsp), %xmm1
movsd 0x10(%rsp), %xmm6
xorl %r14d, %r14d
ucomisd %xmm0, %xmm1
jbe 0x1784b
movq 0x58(%r15), %rax
movq (%rax,%rbx,8), %rax
movslq 0x4c(%r15), %rdx
movslq %r14d, %rcx
imulq %rcx, %rdx
movsd (%rax,%rdx,8), %xmm1
movsd 0x8(%rax,%rdx,8), %xmm0
subsd 0x50(%rsp), %xmm1
subsd 0xd0(%rsp), %xmm0
movsd 0x10(%rax,%rdx,8), %xmm2
subsd 0x40(%rsp), %xmm2
movsd %xmm0, 0x48(%rsp)
mulsd %xmm0, %xmm0
movsd %xmm1, 0x30(%rsp)
mulsd %xmm1, %xmm1
addsd %xmm0, %xmm1
movsd %xmm2, 0x88(%rsp)
movapd %xmm2, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
movq (%r15), %rdi
movl $0xd8, %eax
addq %rax, %rdi
leaq 0x28(%rsp), %rsi
movapd %xmm6, %xmm0
movl %ebx, %edx
callq 0x197ee
testb %al, %al
je 0x1782c
movsd 0x28(%rsp), %xmm3
movq 0x50(%r15), %rax
movq (%rax,%rbx,8), %rax
movl (%rax,%r14,4), %esi
movq 0x8(%rsp), %rdi
movsd 0x30(%rsp), %xmm0
movsd 0x48(%rsp), %xmm1
movsd 0x88(%rsp), %xmm2
callq 0x1374e
testb %al, %al
je 0x172c9
incq %r14
movq 0x60(%r15), %rax
movslq (%rax,%rbx,4), %rax
cmpq %rax, %r14
movsd 0x10(%rsp), %xmm6
jl 0x17768
jmp 0x17926
movq 0x58(%r15), %rax
movq (%rax,%rbx,8), %rax
movslq 0x4c(%r15), %rcx
movslq %r14d, %rdx
imulq %rdx, %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0x8(%rax,%rcx,8), %xmm1
subsd 0x50(%rsp), %xmm0
movapd %xmm0, %xmm2
movsd %xmm0, 0x48(%rsp)
subsd 0xd0(%rsp), %xmm1
movsd %xmm1, 0x30(%rsp)
movsd 0x10(%rax,%rcx,8), %xmm3
subsd 0x40(%rsp), %xmm3
movsd %xmm3, 0x88(%rsp)
movq (%r15), %rdi
movl $0xd8, %eax
addq %rax, %rdi
movapd %xmm1, %xmm0
mulsd %xmm1, %xmm0
movapd %xmm2, %xmm1
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movapd %xmm3, %xmm0
mulsd %xmm3, %xmm0
addsd %xmm1, %xmm0
movl %ebx, %esi
callq 0x18566
movapd %xmm0, %xmm3
movsd %xmm0, 0x28(%rsp)
movq 0x50(%r15), %rax
movq (%rax,%rbx,8), %rax
movl (%rax,%r14,4), %esi
movq 0x8(%rsp), %rdi
movsd 0x48(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x88(%rsp), %xmm2
callq 0x1374e
testb %al, %al
je 0x172c9
incq %r14
movq 0x60(%r15), %rax
movslq (%rax,%rbx,4), %rax
cmpq %rax, %r14
movsd 0x10(%rsp), %xmm6
jl 0x1784b
incq %r13
movq 0x20(%rsp), %r14
leaq 0x1(%r14), %rax
cmpq 0x58(%rsp), %r13
movl %r12d, %ebp
jl 0x17505
incl 0x70(%r15)
jne 0x1795c
movq %r15, %rdi
callq 0x12546
movsd 0x10(%rsp), %xmm6
movl $0x1, 0x70(%r15)
movq 0x90(%r15), %rax
leaq 0xe8(%rsp), %r12
movq %rax, (%r12)
leaq 0x70(%rsp), %rcx
movq %rax, (%rcx)
cmpq $0x3e, %r14
ja 0x17e65
movl %ebp, %eax
cmpq %rax, %r14
jne 0x179af
movq 0x8(%rsp), %rdi
callq 0x7c2c
movapd %xmm0, %xmm6
movq 0x60(%rsp), %rax
cmpq 0x277b6(%rip), %rax     # 0x3f158
je 0x179af
movl (%rax), %ebp
addq $0x4, %rax
movq %rax, 0x60(%rsp)
movq (%r15), %rax
movq 0xd8(%rsp), %rcx
movsd (%rcx,%r14,8), %xmm0
movsd 0xf0(%rax), %xmm1
addsd %xmm0, %xmm1
mulsd %xmm6, %xmm0
ucomisd 0x19098(%rip), %xmm0    # 0x30a70
jb 0x179e0
sqrtsd %xmm0, %xmm0
jmp 0x179fd
movsd %xmm6, 0x10(%rsp)
movsd %xmm1, 0x20(%rsp)
callq 0x20e0
movsd 0x20(%rsp), %xmm1
movsd 0x10(%rsp), %xmm6
ucomisd %xmm0, %xmm1
ja 0x17e5d
movq 0xe0(%rsp), %rax
movl 0x4(%rax,%r14,4), %r13d
xorl 0x18(%rsp), %r13d
incq %r14
addl 0x68(%rsp), %r13d
movl %r13d, %esi
andl $0x7f, %esi
addl $-0x40, %esi
movl 0x84(%rsp), %ebx
addl %esi, %ebx
js 0x17977
movl 0x38(%r15), %eax
cmpl %eax, %ebx
jge 0x17977
movl %r13d, %edx
shrl $0x7, %edx
andl $0x7f, %edx
addl $-0x40, %edx
movl 0x80(%rsp), %r9d
addl %edx, %r9d
js 0x17977
movl 0x3c(%r15), %edi
cmpl %edi, %r9d
jge 0x17977
movl %r13d, %ecx
shrl $0xe, %ecx
andl $0x7f, %ecx
addl $-0x40, %ecx
movl 0x7c(%rsp), %r10d
addl %ecx, %r10d
js 0x17977
cmpl 0x40(%r15), %r10d
jge 0x17977
movl %ebx, %r8d
shlq $0x2, %r8
addq 0x88(%r15), %r8
imull %r10d, %edi
addl %r9d, %edi
imull %eax, %edi
movq %rdi, 0x150(%rsp)
movl 0x70(%r15), %eax
movq %r8, 0x148(%rsp)
movl %eax, (%r8,%rdi,4)
movq %r15, %rdi
movapd 0x120(%rsp), %xmm0
movapd 0x100(%rsp), %xmm1
movapd 0xf0(%rsp), %xmm2
movsd 0xc8(%rsp), %xmm3
movsd 0xc0(%rsp), %xmm4
movsd 0x140(%rsp), %xmm5
leaq 0x110(%rsp), %r8
movsd %xmm6, 0x10(%rsp)
movsd 0x10(%rsp), %xmm6
movl %r9d, 0x88(%rsp)
movq %r10, 0x138(%rsp)
callq 0x1858e
movq 0x138(%rsp), %r10
movl 0x88(%rsp), %r9d
movsd 0x10(%rsp), %xmm6
testb %al, %al
jne 0x17977
movq %r14, 0x20(%rsp)
movl %ebp, 0x11c(%rsp)
movq (%r15), %rdi
subq $0x8, %rsp
movl 0x40(%rsp), %esi
movl 0x44(%rsp), %edx
movl 0x198(%rsp), %ecx
movl %ebx, %r8d
leaq 0x80(%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 0x14066
addq $0x30, %rsp
movq 0x60(%r15), %rcx
movslq %eax, %rbp
cmpl $0x0, (%rcx,%rbp,4)
jle 0x17de7
movsd 0xb8(%rsp), %xmm0
subsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
movsd 0xb0(%rsp), %xmm0
subsd 0x98(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movsd 0xa8(%rsp), %xmm0
subsd 0x90(%rsp), %xmm0
movsd %xmm0, 0xd0(%rsp)
movq (%r15), %rax
movsd 0x110(%rsp), %xmm0
movsd 0xf0(%rax), %xmm1
addsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm0
ucomisd 0x18e57(%rip), %xmm0    # 0x30a70
jb 0x17c21
sqrtsd %xmm0, %xmm0
jmp 0x17c32
movsd %xmm1, 0x40(%rsp)
callq 0x20e0
movsd 0x40(%rsp), %xmm1
xorl %r14d, %r14d
ucomisd %xmm0, %xmm1
jbe 0x17d18
movq 0x58(%r15), %rax
movq (%rax,%rbp,8), %rax
movslq 0x4c(%r15), %rdx
movslq %r14d, %rcx
imulq %rcx, %rdx
movsd (%rax,%rdx,8), %xmm1
movsd 0x8(%rax,%rdx,8), %xmm0
subsd 0x58(%rsp), %xmm1
subsd 0x50(%rsp), %xmm0
movsd 0x10(%rax,%rdx,8), %xmm2
subsd 0xd0(%rsp), %xmm2
movsd %xmm0, 0x30(%rsp)
mulsd %xmm0, %xmm0
movsd %xmm1, 0x40(%rsp)
mulsd %xmm1, %xmm1
addsd %xmm0, %xmm1
movsd %xmm2, 0x48(%rsp)
movapd %xmm2, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
movq (%r15), %rdi
movl $0xd8, %eax
addq %rax, %rdi
leaq 0x28(%rsp), %rsi
movsd 0x10(%rsp), %xmm0
movl %ebp, %edx
callq 0x197ee
testb %al, %al
je 0x17cff
movsd 0x28(%rsp), %xmm3
movq 0x50(%r15), %rax
movq (%rax,%rbp,8), %rax
movl (%rax,%r14,4), %esi
movq 0x8(%rsp), %rdi
movsd 0x40(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x48(%rsp), %xmm2
callq 0x1374e
testb %al, %al
je 0x172c9
incq %r14
movq 0x60(%r15), %rax
movslq (%rax,%rbp,4), %rax
cmpq %rax, %r14
jl 0x17c3f
jmp 0x17de7
movq 0x58(%r15), %rax
movq (%rax,%rbp,8), %rax
movslq 0x4c(%r15), %rcx
movslq %r14d, %rdx
imulq %rdx, %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0x8(%rax,%rcx,8), %xmm1
subsd 0x58(%rsp), %xmm0
movapd %xmm0, %xmm2
movsd %xmm0, 0x30(%rsp)
subsd 0x50(%rsp), %xmm1
movsd %xmm1, 0x40(%rsp)
movsd 0x10(%rax,%rcx,8), %xmm3
subsd 0xd0(%rsp), %xmm3
movsd %xmm3, 0x48(%rsp)
movq (%r15), %rdi
movl $0xd8, %eax
addq %rax, %rdi
movapd %xmm1, %xmm0
mulsd %xmm1, %xmm0
movapd %xmm2, %xmm1
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movapd %xmm3, %xmm0
mulsd %xmm3, %xmm0
addsd %xmm1, %xmm0
movl %ebp, %esi
callq 0x18566
movapd %xmm0, %xmm3
movsd %xmm0, 0x28(%rsp)
movq 0x50(%r15), %rax
movq (%rax,%rbp,8), %rax
movl (%rax,%r14,4), %esi
movq 0x8(%rsp), %rdi
movsd 0x30(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movsd 0x48(%rsp), %xmm2
callq 0x1374e
testb %al, %al
je 0x172c9
incq %r14
movq 0x60(%r15), %rax
movslq (%rax,%rbp,4), %rax
cmpq %rax, %r14
jl 0x17d18
movq 0x98(%r15), %rax
addq $-0x48, %rax
cmpq %rax, 0x70(%rsp)
jbe 0x17e09
movq %r15, %rdi
movq %r12, %rsi
leaq 0x70(%rsp), %rdx
callq 0x19850
movq 0x150(%rsp), %rax
movq 0x148(%rsp), %rcx
leaq (%rcx,%rax,4), %rdx
subq $0x8, %rsp
movq %r15, %rdi
movl %r13d, %esi
movl %ebx, %ecx
movl 0x90(%rsp), %r8d
movq 0x140(%rsp), %r9
leaq 0x78(%rsp), %rax
pushq %rax
callq 0x1994e
popq %rax
popq %rcx
movsd 0x10(%rsp), %xmm6
movl 0x11c(%rsp), %ebp
movq 0x20(%rsp), %r14
jmp 0x17977
movb $0x1, %r13b
jmp 0x172cc
movq (%r15), %rax
movl %r14d, %ecx
movq 0xd8(%rsp), %rdx
movsd (%rdx,%rcx,8), %xmm0
movsd 0xf0(%rax), %xmm1
addsd %xmm0, %xmm1
mulsd %xmm0, %xmm6
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm6
jb 0x17e98
sqrtsd %xmm6, %xmm0
jmp 0x17ead
movapd %xmm6, %xmm0
movsd %xmm1, 0x10(%rsp)
callq 0x20e0
movsd 0x10(%rsp), %xmm1
movb $0x1, %r13b
ucomisd %xmm0, %xmm1
ja 0x172cc
movapd 0x1717e(%rip), %xmm0    # 0x2f040
movapd 0x120(%rsp), %xmm1
xorpd %xmm0, %xmm1
movapd %xmm1, 0x120(%rsp)
movapd 0x100(%rsp), %xmm1
xorpd %xmm0, %xmm1
movapd %xmm1, 0x100(%rsp)
movapd 0xf0(%rsp), %xmm1
xorpd %xmm0, %xmm1
movapd %xmm1, 0xf0(%rsp)
movq 0xe8(%rsp), %rax
cmpq 0x70(%rsp), %rax
je 0x172cc
cmpq 0x98(%r15), %rax
jne 0x17f27
movq 0x90(%r15), %rax
movl (%rax), %ebx
movl 0x4(%rax), %ebp
leaq 0xc(%rax), %rcx
movq %rcx, 0xe8(%rsp)
movl 0x8(%rax), %r14d
movl 0x84(%rsp), %edx
movl 0x80(%rsp), %ecx
movl %ebp, %esi
subl %ecx, %esi
movl 0x7c(%rsp), %eax
movl %r14d, %edi
subl %eax, %edi
movl %ebx, %r8d
movsd 0x10(%r15), %xmm4
cvtsi2sd %esi, %xmm7
mulsd %xmm4, %xmm7
addsd 0x100(%rsp), %xmm7
cvtsi2sd %edi, %xmm6
addsd %xmm7, %xmm4
movsd 0x18(%r15), %xmm5
mulsd %xmm5, %xmm6
addsd 0xf0(%rsp), %xmm6
addsd %xmm6, %xmm5
subl %edx, %r8d
cvtsi2sd %r8d, %xmm8
movsd 0x8(%r15), %xmm3
mulsd %xmm3, %xmm8
addsd 0x120(%rsp), %xmm8
addsd %xmm8, %xmm3
jle 0x17fdb
movq %r15, %rdi
cmpl %ecx, %ebp
jle 0x1800c
cmpl %eax, %r14d
jle 0x1805a
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
jmp 0x181ec
jge 0x1802f
movq %r15, %rdi
cmpl %ecx, %ebp
jle 0x18077
cmpl %eax, %r14d
jle 0x180f2
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
movapd %xmm8, %xmm3
jmp 0x181ec
jge 0x180a5
cmpl %eax, %r14d
jle 0x18113
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
jmp 0x1809c
cmpl %ecx, %ebp
jle 0x180c5
movq %r15, %rdi
cmpl %eax, %r14d
jle 0x18130
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
jmp 0x18216
jge 0x1814d
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
jmp 0x181e8
jge 0x18164
cmpl %eax, %r14d
jle 0x181c8
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
movapd %xmm8, %xmm3
movapd %xmm7, %xmm4
jmp 0x181ec
cmpl %eax, %r14d
jle 0x18188
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
jmp 0x18285
jge 0x181a5
movq %r15, %rdi
cmpl %eax, %r14d
jle 0x181f6
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
movapd %xmm7, %xmm4
jmp 0x18216
jge 0x18220
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
movapd %xmm8, %xmm3
jmp 0x181e8
jge 0x1823b
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm5, %xmm2
jmp 0x181e4
jge 0x18252
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
jmp 0x18212
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
jmp 0x182d7
cmpl %eax, %r14d
jle 0x18265
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
movapd %xmm8, %xmm3
jmp 0x18285
jge 0x1828f
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
jmp 0x18281
cmpl %eax, %r14d
jle 0x1829b
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
jmp 0x182b6
jge 0x182bd
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm4, %xmm1
movapd %xmm5, %xmm2
movapd %xmm8, %xmm3
movapd %xmm7, %xmm4
movapd %xmm6, %xmm5
callq 0x19aa6
jmp 0x18319
jge 0x182de
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm5, %xmm2
movapd %xmm7, %xmm4
movapd %xmm6, %xmm5
callq 0x1a0fe
jmp 0x18319
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
movapd %xmm8, %xmm3
jmp 0x182d7
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
jmp 0x182d3
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
jmp 0x182ec
jge 0x182fb
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
movapd %xmm8, %xmm3
movapd %xmm6, %xmm5
callq 0x19e5a
jmp 0x18319
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
jmp 0x18304
jge 0x1851b
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm7, %xmm1
movapd %xmm5, %xmm2
callq 0x1a3a2
jmp 0x18319
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
movapd %xmm8, %xmm3
movapd %xmm7, %xmm4
callq 0x19cb2
jmp 0x18319
movq 0x8(%rsp), %rsi
movapd %xmm8, %xmm0
movapd %xmm4, %xmm1
movapd %xmm6, %xmm2
movapd %xmm5, %xmm4
callq 0x1a2a2
jmp 0x18319
movq 0x8(%rsp), %rsi
movapd %xmm3, %xmm0
movapd %xmm7, %xmm1
movapd %xmm6, %xmm2
movapd %xmm4, %xmm3
movapd %xmm5, %xmm4
callq 0x19ffe
testb %al, %al
jne 0x17f04
movq (%r15), %rdi
subq $0x8, %rsp
movl 0x40(%rsp), %esi
movl 0x44(%rsp), %edx
movl 0x198(%rsp), %ecx
movl %ebx, 0x68(%rsp)
movl %ebx, %r8d
movl %ebp, 0x60(%rsp)
movl %ebp, %r9d
leaq 0x80(%rsp), %rax
pushq %rax
leaq 0xa0(%rsp), %rax
pushq %rax
leaq 0xb0(%rsp), %rax
pushq %rax
leaq 0xc0(%rsp), %rax
pushq %rax
movq %r14, %r12
pushq %r14
callq 0x14066
addq $0x30, %rsp
movl %eax, %ebx
movq 0x60(%r15), %rax
movslq %ebx, %rbp
cmpl $0x0, (%rax,%rbp,4)
jle 0x184a5
movsd 0xb8(%rsp), %xmm0
subsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x68(%rsp)
movsd 0xb0(%rsp), %xmm0
subsd 0x98(%rsp), %xmm0
movsd %xmm0, 0xd8(%rsp)
movsd 0xa8(%rsp), %xmm0
subsd 0x90(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
xorl %r14d, %r14d
movq 0x58(%r15), %rax
movq (%rax,%rbp,8), %rax
movslq 0x4c(%r15), %rcx
movslq %r14d, %rdx
imulq %rdx, %rcx
movsd (%rax,%rcx,8), %xmm0
subsd 0x68(%rsp), %xmm0
movapd %xmm0, %xmm1
movsd %xmm0, 0x20(%rsp)
movsd 0x8(%rax,%rcx,8), %xmm0
subsd 0xd8(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rax,%rcx,8), %xmm2
subsd 0xe0(%rsp), %xmm2
movsd %xmm2, 0x18(%rsp)
movq (%r15), %rdi
movl $0xd8, %eax
addq %rax, %rdi
mulsd %xmm0, %xmm0
mulsd %xmm1, %xmm1
addsd %xmm0, %xmm1
movapd %xmm2, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movl %ebx, %esi
callq 0x18566
movapd %xmm0, %xmm3
movsd %xmm0, 0x28(%rsp)
movq 0x50(%r15), %rax
movq (%rax,%rbp,8), %rax
movl (%rax,%r14,4), %esi
movq 0x8(%rsp), %rdi
movsd 0x20(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movsd 0x18(%rsp), %xmm2
callq 0x1374e
testb %al, %al
je 0x172c9
incq %r14
movq 0x60(%r15), %rax
movslq (%rax,%rbp,4), %rax
cmpq %rax, %r14
jl 0x183db
movq 0xe8(%rsp), %rax
movq 0x70(%rsp), %rcx
movq %rax, %rdx
subq %rcx, %rdx
jbe 0x184c3
sarq $0x2, %rdx
movq %rdx, %rax
jmp 0x184df
movq 0x98(%r15), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
subq 0x90(%r15), %rax
sarq $0x2, %rax
addq %rdx, %rax
movl 0x60(%rsp), %ebx
movl 0x58(%rsp), %ebp
cmpq $0x11, %rax
jg 0x18502
movq %r15, %rdi
leaq 0xe8(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x19850
movq %r15, %rdi
movl %ebx, %esi
movl %ebp, %edx
movl %r12d, %ecx
leaq 0x70(%rsp), %r8
callq 0x1a4a2
jmp 0x17f04
leaq 0x18dee(%rip), %rdi     # 0x31310
pushq $0x3
popq %rsi
callq 0xfdaf
jmp 0x18321
nop