// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/voro++/src/v_compute.cc
// Function: voro::voro_compute<voro::container_poly>::find_voronoi_cell(double, double, double, int, int, int, int, voro::particle_record&, double&)
void voro_compute<c_class>::find_voronoi_cell(double x,double y,double z,int ci,int cj,int ck,int ijk,particle_record &w,double &mrs) {
	double qx=0,qy=0,qz=0,rs;
	int i,j,k,di,dj,dk,ei,ej,ek,f,g,disp;
	double fx,fy,fz,mxs,mys,mzs,*radp;
	unsigned int q,*e,*mijk;

	// Init setup for parameters to return
	w.ijk=-1;mrs=large_number;

	con.initialize_search(ci,cj,ck,ijk,i,j,k,disp);

	// Test all particles in the particle's local region first
	scan_all(ijk,x,y,z,0,0,0,w,mrs);

	// 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) {
		mxs=boxx-fx;
		m1=127+(3<<21);m2=1+(1<<21);di=wl_fgrid-1-di;if(di<0) di=0;
	} else {m1=m2=0;mxs=fx;}
	if(dj>=wl_hgrid) {
		mys=boxy-fy;
		m1|=(127<<7)+(3<<24);m2|=(1<<7)+(1<<24);dj=wl_fgrid-1-dj;if(dj<0) dj=0;
	} else mys=fy;
	if(dk>=wl_hgrid) {
		mzs=boxz-fz;
		m1|=(127<<14)+(3<<27);m2|=(1<<14)+(1<<27);dk=wl_fgrid-1-dk;if(dk<0) dk=0;
	} else mzs=fz;

	// Do a quick test to account for the case when the minimum radius is
	// small enought that no other blocks need to be considered
	rs=con.r_max_add(mrs);
	if(mxs*mxs>rs&&mys*mys>rs&&mzs*mzs>rs) return;

	// 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 {

		// If mrs is less than the minimum distance to any untested
		// block, then we are done
		if(con.r_max_add(mrs)<radp[g]) return;
		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_radius(di,dj,dk,fx,fy,fz,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.
		scan_all(ijk,x-qx,y-qy,z-qz,di,dj,dk,w,mrs);
	} while(g<f);

	// Update mask value and initialize queue
	mv++;
	if(mv==0) {reset_mask();mv=1;}
	int *qu_s=qu,*qu_e=qu;

	while(g<wl_seq_length-1) {

		// If mrs is less than the minimum distance to any untested
		// block, then we are done
		if(con.r_max_add(mrs)<radp[g]) return;
		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;

		// Skip this block if it is further away than the current
		// minimum radius
		if(compute_min_radius(di,dj,dk,fx,fy,fz,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);
		scan_all(ijk,x-qx,y-qy,z-qz,di,dj,dk,w,mrs);

		if(qu_e>qu_l-18) add_list_memory(qu_s,qu_e);
		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_max_add(mrs)<radp[g]) return;

	// 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) {

		// Read the next entry of the queue
		if(qu_s==qu_l) qu_s=qu;
		ei=*(qu_s++);ej=*(qu_s++);ek=*(qu_s++);
		di=ei-i;dj=ej-j;dk=ek-k;
		if(compute_min_radius(di,dj,dk,fx,fy,fz,mrs)) continue;

		ijk=con.region_index(ci,cj,ck,ei,ej,ek,qx,qy,qz,disp);
		scan_all(ijk,x-qx,y-qy,z-qz,di,dj,dk,w,mrs);

		// Test the neighbors of the current block, and add them to the
		// block list if they haven't already been tested
		if((qu_s<=qu_e?(qu_l-qu_e)+(qu_s-qu):qu_s-qu_e)<18) add_list_memory(qu_s,qu_e);
		add_to_mask(ei,ej,ek,qu_e);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %r8d, 0x30(%rsp)
movq %rdi, %r11
movq 0x140(%rsp), %r13
movl $0xffffffff, (%r9)      # imm = 0xFFFFFFFF
movabsq $0x7fefffffffffffff, %rax # imm = 0x7FEFFFFFFFFFFFFF
movq %rax, (%r13)
movq (%rdi), %r12
cmpb $0x0, 0xa8(%r12)
movl (%r12), %eax
movq %rsi, 0xc8(%rsp)
cmovnel %eax, %esi
movl %esi, 0xc(%rsp)
cmpb $0x0, 0xa9(%r12)
movl 0x4(%r12), %ebp
movq %rdx, 0xd0(%rsp)
cmovnel %ebp, %edx
movl %edx, 0x4c(%rsp)
movq 0x60(%rdi), %rsi
cmpb $0x0, 0xaa(%r12)
movq %rcx, 0xd8(%rsp)
movl %ecx, 0x34(%rsp)
je 0x21884
movl 0x8(%r12), %ecx
movl %ecx, 0x34(%rsp)
movslq 0x30(%rsp), %rdi
cmpl $0x0, (%rsi,%rdi,4)
movq %r11, 0x10(%rsp)
movl 0xc(%rsp), %edx
jle 0x21955
movq 0x58(%r11), %r8
movq (%r8,%rdi,8), %r8
movslq 0x4c(%r11), %r15
movq 0xd8(%r12), %r10
movq (%r10,%rdi,8), %r10
addq $0x18, %r10
addq $0x10, %r8
shlq $0x3, %r15
movsd 0x179e8(%rip), %xmm6    # 0x392b0
xorl %r11d, %r11d
xorl %ebx, %ebx
movsd -0x10(%r8), %xmm4
movsd -0x8(%r8), %xmm3
subsd %xmm0, %xmm4
subsd %xmm1, %xmm3
movsd (%r8), %xmm5
subsd %xmm2, %xmm5
mulsd %xmm3, %xmm3
mulsd %xmm4, %xmm4
addsd %xmm3, %xmm4
mulsd %xmm5, %xmm5
addsd %xmm4, %xmm5
movsd (%r10), %xmm3
mulsd %xmm3, %xmm3
subsd %xmm3, %xmm5
ucomisd %xmm5, %xmm6
jbe 0x21921
movsd %xmm5, (%r13)
movl %r11d, 0x4(%r9)
movb $0x1, %bl
movapd %xmm5, %xmm6
incq %r11
movslq (%rsi,%rdi,4), %r14
addq $0x20, %r10
addq %r15, %r8
cmpq %r14, %r11
jl 0x218cd
testb $0x1, %bl
movq 0x10(%rsp), %r11
je 0x21955
movl 0x30(%rsp), %esi
movl %esi, (%r9)
movq $0x0, 0x8(%r9)
movl $0x0, 0x10(%r9)
xorps %xmm5, %xmm5
cvtsi2sdl 0xc8(%rsp), %xmm5
xorps %xmm4, %xmm4
cvtsi2sdl 0xd0(%rsp), %xmm4
xorps %xmm3, %xmm3
cvtsi2sdl 0xd8(%rsp), %xmm3
movapd %xmm0, %xmm7
subsd 0x70(%r12), %xmm7
mulsd 0x18(%r12), %xmm5
movapd %xmm1, %xmm6
subsd 0x80(%r12), %xmm6
mulsd 0x20(%r12), %xmm4
subsd %xmm5, %xmm7
movapd %xmm2, %xmm5
subsd 0x90(%r12), %xmm5
subsd %xmm4, %xmm6
mulsd 0x28(%r12), %xmm3
subsd %xmm3, %xmm5
movsd 0x20(%r11), %xmm4
mulsd %xmm7, %xmm4
movsd 0x178d5(%rip), %xmm3    # 0x392a8
mulsd %xmm3, %xmm4
cvttsd2si %xmm4, %esi
movsd 0x28(%r11), %xmm4
movsd %xmm6, 0xa8(%rsp)
mulsd %xmm6, %xmm4
mulsd %xmm3, %xmm4
cvttsd2si %xmm4, %edi
movsd 0x30(%r11), %xmm4
movsd %xmm5, 0xa0(%rsp)
mulsd %xmm5, %xmm4
mulsd %xmm3, %xmm4
xorl %ecx, %ecx
cmpl $0x4, %esi
jl 0x21a3f
movsd 0x8(%r11), %xmm6
subsd %xmm7, %xmm6
movl $0x7, %r8d
subl %esi, %r8d
xorl %esi, %esi
testl %r8d, %r8d
cmovgl %r8d, %esi
movl $0x200001, 0x18(%rsp)   # imm = 0x200001
movl $0x60007f, %ecx         # imm = 0x60007F
jmp 0x21a4b
movapd %xmm7, %xmm6
movl $0x0, 0x18(%rsp)
cvttsd2si %xmm4, %r8d
cmpl $0x4, %edi
jl 0x21a86
movsd 0x10(%r11), %xmm5
subsd 0xa8(%rsp), %xmm5
orl $0x3003f80, %ecx        # imm = 0x3003F80
orl $0x1000080, 0x18(%rsp)  # imm = 0x1000080
movl $0x7, %r10d
subl %edi, %r10d
xorl %edi, %edi
testl %r10d, %r10d
cmovgl %r10d, %edi
jmp 0x21a8f
movsd 0xa8(%rsp), %xmm5
cmpl $0x4, %r8d
jl 0x21ac7
movsd 0x18(%r11), %xmm4
subsd 0xa0(%rsp), %xmm4
orl $0x181fc000, %ecx       # imm = 0x181FC000
orl $0x8004000, 0x18(%rsp)  # imm = 0x8004000
movl $0x7, %r10d
subl %r8d, %r10d
xorl %r8d, %r8d
testl %r10d, %r10d
cmovgl %r10d, %r8d
jmp 0x21ad0
movsd 0xa0(%rsp), %xmm4
movl %ecx, %r10d
movsd 0xe0(%r12), %xmm3
mulsd %xmm3, %xmm3
addsd (%r13), %xmm3
mulsd %xmm6, %xmm6
ucomisd %xmm3, %xmm6
movl 0x18(%rsp), %ecx
jbe 0x21b1b
mulsd %xmm5, %xmm5
ucomisd %xmm3, %xmm5
jbe 0x21b1b
mulsd %xmm4, %xmm4
ucomisd %xmm3, %xmm4
jbe 0x21b1b
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
imull 0x34(%rsp), %ebp
addl 0x4c(%rsp), %ebp
imull %eax, %ebp
addl %edx, %ebp
subl %ebp, 0x30(%rsp)
shll $0xa, %r8d
shll $0x8, %edi
shll $0x6, %esi
addl %edi, %esi
addl %r8d, %esi
movslq %esi, %rax
leaq (,%rax,8), %rsi
addq 0x80(%r11), %rsi
movq 0x78(%r11), %rdi
movq %rax, 0xc0(%rsp)
movq %rdi, 0xb8(%rsp)
leaq (%rdi,%rax,4), %rdi
movl (%rdi), %eax
cmpl $0x2, %eax
movl $0x1, %r8d
cmovgel %eax, %r8d
xorpd %xmm3, %xmm3
movapd %xmm3, 0x80(%rsp)
xorl %r14d, %r14d
movapd %xmm3, 0x70(%rsp)
movapd %xmm3, 0x60(%rsp)
movq %r9, 0x98(%rsp)
movsd %xmm2, 0xf0(%rsp)
movsd %xmm1, 0xe8(%rsp)
movsd %xmm0, 0xe0(%rsp)
movsd %xmm7, 0x58(%rsp)
movl %r10d, 0x2c(%rsp)
movq %rsi, 0x90(%rsp)
movq %rdi, 0x20(%rsp)
movq %r8, 0x38(%rsp)
movq (%r11), %rax
movsd (%r13), %xmm3
movsd 0xe0(%rax), %xmm0
mulsd %xmm0, %xmm0
addsd %xmm3, %xmm0
movsd (%rsi,%r14,8), %xmm1
ucomisd %xmm0, %xmm1
ja 0x21b09
movq %r14, %rbx
movl 0x4(%rdi,%r14,4), %ebp
xorl %r10d, %ebp
addl %ecx, %ebp
movl %ebp, %r14d
andl $0x7f, %r14d
addl $-0x40, %r14d
movl %r14d, %r13d
addl %edx, %r13d
js 0x21cbf
cmpl 0x38(%r11), %r13d
jge 0x21cbf
movl %ebp, %r15d
shrl $0x7, %r15d
andl $0x7f, %r15d
addl $-0x40, %r15d
movl %r15d, %r12d
addl 0x4c(%rsp), %r12d
js 0x21cbf
cmpl 0x3c(%r11), %r12d
jge 0x21cbf
shrl $0xe, %ebp
andl $0x7f, %ebp
addl $-0x40, %ebp
movl %ebp, %eax
addl 0x34(%rsp), %eax
js 0x21cbf
cmpl 0x40(%r11), %eax
jge 0x21cbf
movq %rax, 0x50(%rsp)
movq %r11, %rdi
movl %r14d, %esi
movl %r15d, %edx
movl %ebp, %ecx
movapd %xmm7, %xmm0
movsd 0xa8(%rsp), %xmm1
movsd 0xa0(%rsp), %xmm2
callq 0x22a74
testb %al, %al
je 0x21cd9
movq 0x10(%rsp), %r11
movq 0x140(%rsp), %r13
movl 0xc(%rsp), %edx
movsd 0x58(%rsp), %xmm7
movl 0x2c(%rsp), %r10d
movl 0x18(%rsp), %ecx
movq 0x90(%rsp), %rsi
movq 0x20(%rsp), %rdi
jmp 0x21f98
movq 0x140(%rsp), %r13
leaq 0x1(%rbx), %r14
cmpq %r8, %r14
jne 0x21bd1
jmp 0x21fa2
movq 0x10(%rsp), %r11
movq (%r11), %rax
cmpb $0x1, 0xa8(%rax)
movsd 0xf0(%rsp), %xmm2
movsd 0xe8(%rsp), %xmm1
movsd 0xe0(%rsp), %xmm0
movl 0x2c(%rsp), %r10d
movq 0x20(%rsp), %rdi
jne 0x21d4c
movq 0xc8(%rsp), %rcx
leal (%rcx,%r13), %edx
movl (%rax), %ecx
cmpl %ecx, %edx
movsd 0x58(%rsp), %xmm7
movq 0x50(%rsp), %r8
jge 0x21d9d
addl %r13d, %ecx
movsd 0x78(%rax), %xmm3
subsd 0x70(%rax), %xmm3
xorpd 0x152ef(%rip), %xmm3    # 0x37030
movapd %xmm3, 0x60(%rsp)
movl %ecx, %r13d
jmp 0x21d57
movsd 0x58(%rsp), %xmm7
movq 0x50(%rsp), %r8
cmpb $0x1, 0xa9(%rax)
jne 0x21ded
movq 0xd0(%rsp), %rcx
leal (%r12,%rcx), %edx
movl 0x4(%rax), %ecx
cmpl %ecx, %edx
jge 0x21dc3
addl %r12d, %ecx
movsd 0x88(%rax), %xmm3
subsd 0x80(%rax), %xmm3
xorpd 0x1529e(%rip), %xmm3    # 0x37030
movapd %xmm3, 0x70(%rsp)
movl %ecx, %r12d
jmp 0x21ded
leal (%rcx,%rcx), %esi
xorpd %xmm3, %xmm3
movapd %xmm3, 0x60(%rsp)
cmpl %esi, %edx
jl 0x21d57
subl %ecx, %r13d
movsd 0x78(%rax), %xmm3
subsd 0x70(%rax), %xmm3
movapd %xmm3, 0x60(%rsp)
jmp 0x21d57
leal (%rcx,%rcx), %esi
xorpd %xmm3, %xmm3
movapd %xmm3, 0x70(%rsp)
cmpl %esi, %edx
jl 0x21ded
subl %ecx, %r12d
movsd 0x88(%rax), %xmm3
subsd 0x80(%rax), %xmm3
movapd %xmm3, 0x70(%rsp)
cmpb $0x1, 0xaa(%rax)
jne 0x21e62
movq 0xd8(%rsp), %rcx
leal (%r8,%rcx), %edx
movl 0x8(%rax), %ecx
cmpl %ecx, %edx
jge 0x21e32
addl %r8d, %ecx
movsd 0x98(%rax), %xmm3
subsd 0x90(%rax), %xmm3
xorpd 0x1520c(%rip), %xmm3    # 0x37030
movapd %xmm3, 0x80(%rsp)
movl %ecx, %r8d
jmp 0x21e62
leal (%rcx,%rcx), %esi
xorpd %xmm3, %xmm3
movapd %xmm3, 0x80(%rsp)
cmpl %esi, %edx
jl 0x21e62
subl %ecx, %r8d
movsd 0x98(%rax), %xmm3
subsd 0x90(%rax), %xmm3
movapd %xmm3, 0x80(%rsp)
addl 0x30(%rsp), %r13d
imull 0x4(%rax), %r8d
addl %r12d, %r8d
imull (%rax), %r8d
addl %r13d, %r8d
movq 0x60(%r11), %rcx
movslq %r8d, %rdx
cmpl $0x0, (%rcx,%rdx,4)
jle 0x21f80
movq %r8, %r12
subsd 0x60(%rsp), %xmm0
subsd 0x70(%rsp), %xmm1
subsd 0x80(%rsp), %xmm2
movq 0x140(%rsp), %r13
movsd (%r13), %xmm3
movq 0x58(%r11), %rsi
movq (%rsi,%rdx,8), %rsi
movslq 0x4c(%r11), %rdi
movq 0xd8(%rax), %rax
movq (%rax,%rdx,8), %rax
addq $0x18, %rax
addq $0x10, %rsi
shlq $0x3, %rdi
xorl %r8d, %r8d
xorl %r9d, %r9d
movq 0x98(%rsp), %r11
movsd -0x10(%rsi), %xmm5
subsd %xmm0, %xmm5
movsd -0x8(%rsi), %xmm6
subsd %xmm1, %xmm6
movsd (%rsi), %xmm4
subsd %xmm2, %xmm4
mulsd %xmm6, %xmm6
mulsd %xmm5, %xmm5
addsd %xmm6, %xmm5
mulsd %xmm4, %xmm4
addsd %xmm5, %xmm4
movsd (%rax), %xmm5
mulsd %xmm5, %xmm5
subsd %xmm5, %xmm4
ucomisd %xmm4, %xmm3
jbe 0x21f2f
movsd %xmm4, (%r13)
movl %r8d, 0x4(%r11)
movb $0x1, %r9b
movapd %xmm4, %xmm3
incq %r8
movslq (%rcx,%rdx,4), %r10
addq $0x20, %rax
addq %rdi, %rsi
cmpq %r10, %r8
jl 0x21ede
testb $0x1, %r9b
movl 0xc(%rsp), %edx
movl 0x18(%rsp), %ecx
movq 0x90(%rsp), %rsi
movq 0x20(%rsp), %rdi
movq 0x38(%rsp), %r8
je 0x21f71
movl %r12d, (%r11)
movl %r14d, 0x8(%r11)
movl %r15d, 0xc(%r11)
movl %ebp, 0x10(%r11)
movq 0x10(%rsp), %r11
movl 0x2c(%rsp), %r10d
jmp 0x21cc7
movq 0x140(%rsp), %r13
movl 0xc(%rsp), %edx
movl 0x18(%rsp), %ecx
movq 0x90(%rsp), %rsi
movq 0x38(%rsp), %r8
jmp 0x21cc7
incl 0x70(%r11)
jne 0x21fe0
cmpl $0x0, 0x48(%r11)
jle 0x21fd0
movq 0x88(%r11), %rax
movq %rax, %rcx
movl $0x0, (%rcx)
addq $0x4, %rcx
movslq 0x48(%r11), %rdx
leaq (%rax,%rdx,4), %rdx
cmpq %rdx, %rcx
jb 0x21fb9
movl $0x1, 0x70(%r11)
movl 0xc(%rsp), %edx
movl 0x18(%rsp), %ecx
movq 0x90(%r11), %r9
movq %r9, 0x40(%rsp)
cmpq $0x3d, %rbx
ja 0x225b6
movq 0xc0(%rsp), %rax
movq 0xb8(%rsp), %rdi
leaq (%rdi,%rax,4), %rdi
addq $0x4, %rdi
movslq %r14d, %rax
movq %rax, %rbx
movq (%r11), %rax
movsd (%r13), %xmm3
movsd 0xe0(%rax), %xmm0
mulsd %xmm0, %xmm0
addsd %xmm3, %xmm0
movsd (%rsi,%rbx,8), %xmm1
ucomisd %xmm0, %xmm1
ja 0x21b09
movl (%rdi,%rbx,4), %ebp
xorl %r10d, %ebp
addl %ecx, %ebp
movl %ebp, %r14d
andl $0x7f, %r14d
addl $-0x40, %r14d
movl %r14d, %r15d
addl %edx, %r15d
js 0x22182
movl 0x38(%r11), %eax
cmpl %eax, %r15d
jge 0x22182
movl %ebp, %ecx
shrl $0x7, %ecx
andl $0x7f, %ecx
addl $-0x40, %ecx
movl %ecx, 0x38(%rsp)
movl %ecx, %r8d
addl 0x4c(%rsp), %r8d
js 0x22182
movl 0x3c(%r11), %ecx
cmpl %ecx, %r8d
jge 0x22182
movl %ebp, %r12d
shrl $0xe, %r12d
andl $0x7f, %r12d
addl $-0x40, %r12d
movl %r12d, 0xc0(%rsp)
addl 0x34(%rsp), %r12d
movq %r12, 0x50(%rsp)
js 0x22182
movq 0x50(%rsp), %r12
cmpl 0x40(%r11), %r12d
jge 0x22182
movl %r15d, %r12d
shlq $0x2, %r12
addq 0x88(%r11), %r12
imull 0x50(%rsp), %ecx
addl %r8d, %ecx
imull %eax, %ecx
movq %rcx, 0x100(%rsp)
movl 0x70(%r11), %eax
movl %eax, (%r12,%rcx,4)
movq %rdi, 0xb8(%rsp)
movq %r11, %rdi
movl %r14d, %esi
movl 0x38(%rsp), %edx
movl 0xc0(%rsp), %ecx
movapd %xmm7, %xmm0
movsd 0xa8(%rsp), %xmm1
movsd 0xa0(%rsp), %xmm2
movq %r8, 0xb0(%rsp)
movq %r9, 0x20(%rsp)
callq 0x22a74
movq 0x20(%rsp), %r9
movq 0xb0(%rsp), %r8
movq 0xb8(%rsp), %rdi
movq 0x90(%rsp), %rsi
movl 0x2c(%rsp), %r10d
movsd 0x58(%rsp), %xmm7
movl 0xc(%rsp), %edx
movq 0x10(%rsp), %r11
movsd 0xe0(%rsp), %xmm0
movsd 0xe8(%rsp), %xmm1
movsd 0xf0(%rsp), %xmm2
testb %al, %al
je 0x2219d
leaq 0x1(%rbx), %rax
leaq -0x1(%rax), %rcx
cmpq $0x3e, %rcx
movl 0x18(%rsp), %ecx
jl 0x22011
jmp 0x225b0
movq %r12, 0xf8(%rsp)
movq (%r11), %rax
cmpb $0x1, 0xa8(%rax)
movl %r15d, %edx
movq 0x50(%rsp), %r9
jne 0x22213
movq 0xc8(%rsp), %rcx
leal (%r15,%rcx), %esi
movl (%rax), %ecx
cmpl %ecx, %esi
jge 0x221ea
addl %r15d, %ecx
movsd 0x78(%rax), %xmm3
subsd 0x70(%rax), %xmm3
xorpd 0x14e50(%rip), %xmm3    # 0x37030
movapd %xmm3, 0x60(%rsp)
movl %ecx, %edx
jmp 0x22213
leal (%rcx,%rcx), %edi
xorpd %xmm3, %xmm3
movapd %xmm3, 0x60(%rsp)
movl %r15d, %edx
cmpl %edi, %esi
jl 0x22213
movl %r15d, %edx
subl %ecx, %edx
movsd 0x78(%rax), %xmm3
subsd 0x70(%rax), %xmm3
movapd %xmm3, 0x60(%rsp)
cmpb $0x1, 0xa9(%rax)
movl %r8d, %esi
jne 0x2228e
movq 0xd0(%rsp), %rcx
leal (%r8,%rcx), %edi
movl 0x4(%rax), %ecx
cmpl %ecx, %edi
jge 0x22257
addl %r8d, %ecx
movsd 0x88(%rax), %xmm3
subsd 0x80(%rax), %xmm3
xorpd 0x14de3(%rip), %xmm3    # 0x37030
movapd %xmm3, 0x70(%rsp)
movl %ecx, %esi
jmp 0x2228e
movq %r9, %r10
leal (%rcx,%rcx), %r9d
xorpd %xmm3, %xmm3
movapd %xmm3, 0x70(%rsp)
movl %r8d, %esi
cmpl %r9d, %edi
movq %r10, %r9
jl 0x2228e
movl %r8d, %esi
subl %ecx, %esi
movsd 0x88(%rax), %xmm3
subsd 0x80(%rax), %xmm3
movapd %xmm3, 0x70(%rsp)
cmpb $0x1, 0xaa(%rax)
movl %r9d, %ecx
jne 0x2231f
movq 0xd8(%rsp), %rcx
leal (%r9,%rcx), %r10d
movl 0x8(%rax), %edi
cmpl %edi, %r10d
jge 0x222da
addl %r9d, %edi
movsd 0x98(%rax), %xmm3
subsd 0x90(%rax), %xmm3
xorpd 0x14d63(%rip), %xmm3    # 0x37030
movapd %xmm3, 0x80(%rsp)
movl %edi, %ecx
jmp 0x2231f
movq %r9, %r8
leal (%rdi,%rdi), %r9d
xorpd %xmm3, %xmm3
movapd %xmm3, 0x80(%rsp)
movl %r8d, %ecx
cmpl %r9d, %r10d
movq %r8, %r9
movq 0xb0(%rsp), %r8
jl 0x2231f
movl %r9d, %ecx
subl %edi, %ecx
movsd 0x98(%rax), %xmm3
subsd 0x90(%rax), %xmm3
movapd %xmm3, 0x80(%rsp)
addl 0x30(%rsp), %edx
imull 0x4(%rax), %ecx
addl %esi, %ecx
imull (%rax), %ecx
addl %edx, %ecx
movq 0x60(%r11), %rdx
movslq %ecx, %rsi
cmpl $0x0, (%rdx,%rsi,4)
jle 0x22426
subsd 0x60(%rsp), %xmm0
subsd 0x70(%rsp), %xmm1
subsd 0x80(%rsp), %xmm2
movsd (%r13), %xmm3
movq 0x58(%r11), %rdi
movq (%rdi,%rsi,8), %rdi
movslq 0x4c(%r11), %r8
movq 0xd8(%rax), %rax
movq (%rax,%rsi,8), %rax
addq $0x18, %rax
addq $0x10, %rdi
shlq $0x3, %r8
xorl %r9d, %r9d
xorl %r10d, %r10d
movsd -0x10(%rdi), %xmm5
subsd %xmm0, %xmm5
movsd -0x8(%rdi), %xmm6
subsd %xmm1, %xmm6
movsd (%rdi), %xmm4
subsd %xmm2, %xmm4
mulsd %xmm6, %xmm6
mulsd %xmm5, %xmm5
addsd %xmm6, %xmm5
mulsd %xmm4, %xmm4
addsd %xmm5, %xmm4
movsd (%rax), %xmm5
mulsd %xmm5, %xmm5
subsd %xmm5, %xmm4
ucomisd %xmm4, %xmm3
jbe 0x223dc
movsd %xmm4, (%r13)
movq 0x98(%rsp), %r10
movl %r9d, 0x4(%r10)
movb $0x1, %r10b
movapd %xmm4, %xmm3
incq %r9
movslq (%rdx,%rsi,4), %r11
addq $0x20, %rax
addq %r8, %rdi
cmpq %r11, %r9
jl 0x22383
testb $0x1, %r10b
movq 0x10(%rsp), %r11
movq 0xb0(%rsp), %r8
movq 0x50(%rsp), %r9
je 0x22426
movq 0x98(%rsp), %rax
movl %ecx, (%rax)
movl %r14d, 0x8(%rax)
movl 0x38(%rsp), %ecx
movl %ecx, 0xc(%rax)
movl 0xc0(%rsp), %ecx
movl %ecx, 0x10(%rax)
movq 0x98(%r11), %rax
addq $-0x48, %rax
cmpq %rax, 0x40(%rsp)
ja 0x224a2
movq 0xf8(%rsp), %rcx
movq 0x100(%rsp), %rax
leaq (%rcx,%rax,4), %rdx
leaq 0x1(%rbx), %r14
leaq 0x40(%rsp), %rax
movq %rax, (%rsp)
movq %r11, %rdi
movl %ebp, %esi
movl %r15d, %ecx
callq 0x1e8ec
movq 0x10(%rsp), %r11
cmpq $0x3e, %rbx
movl 0xc(%rsp), %edx
movsd 0x58(%rsp), %xmm7
movl 0x2c(%rsp), %r10d
movl 0x18(%rsp), %ecx
movq 0x90(%rsp), %rsi
movq 0xb8(%rsp), %rdi
movq 0x20(%rsp), %r9
jl 0x2200e
jmp 0x225b0
movl 0x74(%r11), %eax
addl %eax, %eax
movl %eax, 0x74(%r11)
movslq %eax, %r14
leaq (,%r14,4), %rdi
testl %r14d, %r14d
movq $-0x1, %rax
cmovsq %rax, %rdi
callq 0x2030
movq %rax, 0x38(%rsp)
movq 0x23b0a(%rip), %rax     # 0x45fe0
movq (%rax), %rdi
leaq 0x16ec9(%rip), %rsi     # 0x393a9
movl %r14d, %edx
xorl %eax, %eax
callq 0x21b0
movq 0x40(%rsp), %rax
movq 0x20(%rsp), %r12
cmpq %rax, %r12
jbe 0x22520
movq 0x10(%rsp), %r11
movq 0x98(%r11), %rcx
movq 0x38(%rsp), %r14
cmpq %rcx, %r12
jae 0x2258d
movl (%r12), %edx
addq $0x4, %r12
movl %edx, (%r14)
addq $0x4, %r14
jmp 0x2250a
movq 0x38(%rsp), %r14
movq 0x10(%rsp), %r11
jae 0x22540
movl (%r12), %ecx
addq $0x4, %r12
movl %ecx, (%r14)
addq $0x4, %r14
cmpq %rax, %r12
jb 0x2252c
movq 0x90(%r11), %rdi
testq %rdi, %rdi
je 0x22556
callq 0x2180
movq 0x10(%rsp), %r11
movq 0x38(%rsp), %rcx
movq %rcx, 0x90(%r11)
movslq 0x74(%r11), %rax
leaq (%rcx,%rax,4), %rax
movq %rax, 0x98(%r11)
movq %r14, 0x40(%rsp)
movq %rcx, 0x20(%rsp)
movq 0xb0(%rsp), %r8
movq 0x50(%rsp), %r9
jmp 0x22438
movq 0x90(%r11), %rcx
movq 0x140(%rsp), %r13
cmpq %rax, %rcx
jae 0x22540
movl (%rcx), %edx
addq $0x4, %rcx
movl %edx, (%r14)
addq $0x4, %r14
jmp 0x2259c
incq %rbx
movq %rbx, %r14
movq (%r11), %rax
movsd 0xe0(%rax), %xmm0
mulsd %xmm0, %xmm0
addsd (%r13), %xmm0
movl %r14d, %eax
movsd (%rsi,%rax,8), %xmm1
ucomisd %xmm0, %xmm1
ja 0x21b09
cmpq 0x40(%rsp), %r9
je 0x21b09
cmpq 0x98(%r11), %r9
jne 0x225f8
movq 0x90(%r11), %r9
movl (%r9), %r13d
movl 0x4(%r9), %r15d
movl 0x8(%r9), %r12d
addq $0xc, %r9
movq %r9, 0x20(%rsp)
movl %r13d, %ebp
subl %edx, %ebp
movl %r15d, %ebx
subl 0x4c(%rsp), %ebx
movl %r12d, %r14d
subl 0x34(%rsp), %r14d
movq 0x140(%rsp), %rax
movsd (%rax), %xmm3
movq %r11, %rdi
movl %ebp, %esi
movl %ebx, %edx
movl %r14d, %ecx
movapd %xmm7, %xmm0
movsd 0xa8(%rsp), %xmm1
movsd 0xa0(%rsp), %xmm2
callq 0x22a74
movq 0x20(%rsp), %r9
movsd 0x58(%rsp), %xmm7
movl 0xc(%rsp), %edx
movq 0x10(%rsp), %r11
testb %al, %al
jne 0x225dd
movq (%r11), %rax
cmpb $0x1, 0xa8(%rax)
movl %r13d, %edx
movsd 0xf0(%rsp), %xmm2
movsd 0xe8(%rsp), %xmm1
movsd 0xe0(%rsp), %xmm0
movq %r13, %rsi
movq 0x140(%rsp), %r13
movq %r12, %r9
jne 0x226fe
movq 0xc8(%rsp), %rcx
leal (%rsi,%rcx), %r8d
movl (%rax), %ecx
cmpl %ecx, %r8d
jge 0x226d6
addl %esi, %ecx
movsd 0x78(%rax), %xmm3
subsd 0x70(%rax), %xmm3
xorpd 0x14964(%rip), %xmm3    # 0x37030
movapd %xmm3, 0x60(%rsp)
movl %ecx, %edx
jmp 0x226fe
leal (%rcx,%rcx), %edi
xorpd %xmm3, %xmm3
movapd %xmm3, 0x60(%rsp)
movl %esi, %edx
cmpl %edi, %r8d
jl 0x226fe
movl %esi, %edx
subl %ecx, %edx
movsd 0x78(%rax), %xmm3
subsd 0x70(%rax), %xmm3
movapd %xmm3, 0x60(%rsp)
cmpb $0x1, 0xa9(%rax)
movl %r15d, %r10d
jne 0x22775
movq 0xd0(%rsp), %rcx
leal (%r15,%rcx), %edi
movl 0x4(%rax), %ecx
cmpl %ecx, %edi
jge 0x22743
addl %r15d, %ecx
movsd 0x88(%rax), %xmm3
subsd 0x80(%rax), %xmm3
xorpd 0x148f8(%rip), %xmm3    # 0x37030
movapd %xmm3, 0x70(%rsp)
movl %ecx, %r10d
jmp 0x22775
leal (%rcx,%rcx), %r8d
xorpd %xmm3, %xmm3
movapd %xmm3, 0x70(%rsp)
movl %r15d, %r10d
cmpl %r8d, %edi
jl 0x22775
movl %r15d, %r10d
subl %ecx, %r10d
movsd 0x88(%rax), %xmm3
subsd 0x80(%rax), %xmm3
movapd %xmm3, 0x70(%rsp)
cmpb $0x1, 0xaa(%rax)
movl %r9d, %r12d
jne 0x227fc
movq 0xd8(%rsp), %rcx
leal (%r9,%rcx), %r8d
movl 0x8(%rax), %edi
cmpl %edi, %r8d
jge 0x227be
addl %r9d, %edi
movsd 0x98(%rax), %xmm3
subsd 0x90(%rax), %xmm3
xorpd 0x14880(%rip), %xmm3    # 0x37030
movapd %xmm3, 0x80(%rsp)
movl %edi, %r12d
jmp 0x227fc
movq %r9, %rcx
leal (%rdi,%rdi), %r9d
xorpd %xmm3, %xmm3
movapd %xmm3, 0x80(%rsp)
movl %ecx, %r12d
cmpl %r9d, %r8d
movq %rcx, %r9
jl 0x227fc
movl %r9d, %r12d
subl %edi, %r12d
movsd 0x98(%rax), %xmm3
subsd 0x90(%rax), %xmm3
movapd %xmm3, 0x80(%rsp)
addl 0x30(%rsp), %edx
imull 0x4(%rax), %r12d
addl %r10d, %r12d
imull (%rax), %r12d
addl %edx, %r12d
movq 0x60(%r11), %rdx
movslq %r12d, %rcx
cmpl $0x0, (%rdx,%rcx,4)
jle 0x22904
movl %r12d, 0x18(%rsp)
movq %r15, %r12
movq %r9, %r15
subsd 0x60(%rsp), %xmm0
subsd 0x70(%rsp), %xmm1
subsd 0x80(%rsp), %xmm2
movsd (%r13), %xmm3
movq 0x58(%r11), %rdi
movq (%rdi,%rcx,8), %rdi
movslq 0x4c(%r11), %r8
movq 0xd8(%rax), %rax
movq (%rax,%rcx,8), %rax
addq $0x18, %rax
addq $0x10, %rdi
shlq $0x3, %r8
xorl %r9d, %r9d
xorl %r10d, %r10d
movsd -0x10(%rdi), %xmm5
subsd %xmm0, %xmm5
movsd -0x8(%rdi), %xmm6
subsd %xmm1, %xmm6
movsd (%rdi), %xmm4
subsd %xmm2, %xmm4
mulsd %xmm6, %xmm6
mulsd %xmm5, %xmm5
addsd %xmm6, %xmm5
mulsd %xmm4, %xmm4
addsd %xmm5, %xmm4
movsd (%rax), %xmm5
mulsd %xmm5, %xmm5
subsd %xmm5, %xmm4
ucomisd %xmm4, %xmm3
jbe 0x228c8
movsd %xmm4, (%r13)
movq 0x98(%rsp), %r10
movl %r9d, 0x4(%r10)
movb $0x1, %r10b
movapd %xmm4, %xmm3
incq %r9
movslq (%rdx,%rcx,4), %r11
addq $0x20, %rax
addq %r8, %rdi
cmpq %r11, %r9
jl 0x2286f
testb $0x1, %r10b
movq 0x10(%rsp), %r11
movq %r15, %r9
movq %r12, %r15
movl 0x18(%rsp), %ecx
je 0x22904
movq 0x98(%rsp), %rax
movl %ecx, (%rax)
movl %ebp, 0x8(%rax)
movl %ebx, 0xc(%rax)
movl %r14d, 0x10(%rax)
movq 0x40(%rsp), %rcx
movq 0x20(%rsp), %rdi
movq %rdi, %rax
subq %rcx, %rax
jbe 0x2291c
sarq $0x2, %rax
jmp 0x2293b
movq 0x98(%r11), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
movq %rdi, %rax
subq 0x90(%r11), %rax
sarq $0x2, %rax
addq %rdx, %rax
cmpq $0x11, %rax
jle 0x2296d
movq %r11, %rdi
movl %r15d, %edx
movl %r9d, %ecx
leaq 0x40(%rsp), %r8
callq 0x1f49a
movq 0x10(%rsp), %r11
movl 0xc(%rsp), %edx
movsd 0x58(%rsp), %xmm7
movq 0x20(%rsp), %r9
jmp 0x225dd
movq %r9, 0x18(%rsp)
movq %rsi, %rbp
movl 0x74(%r11), %eax
addl %eax, %eax
movl %eax, 0x74(%r11)
movslq %eax, %r14
leaq (,%r14,4), %rdi
testl %r14d, %r14d
movq $-0x1, %rax
cmovsq %rax, %rdi
movq %r11, %r13
callq 0x2030
movq %rax, %rbx
movq 0x23636(%rip), %rax     # 0x45fe0
movq (%rax), %rdi
leaq 0x169f5(%rip), %rsi     # 0x393a9
movl %r14d, %edx
xorl %eax, %eax
callq 0x21b0
movq 0x40(%rsp), %rax
movq 0x20(%rsp), %rdi
cmpq %rax, %rdi
jbe 0x22a14
movq 0x98(%r13), %rcx
movq %rbx, %r14
cmpq %rcx, %rdi
movq %r13, %r11
jae 0x229f1
movl (%rdi), %edx
addq $0x4, %rdi
movl %edx, (%r14)
addq $0x4, %r14
cmpq %rcx, %rdi
jb 0x229df
movq 0x90(%r11), %rcx
cmpq %rax, %rcx
movq %rbp, %rsi
jae 0x22a31
movl (%rcx), %edx
addq $0x4, %rcx
movl %edx, (%r14)
addq $0x4, %r14
cmpq %rax, %rcx
jb 0x22a00
jmp 0x22a31
movq %rbx, %r14
movq %r13, %r11
movq %rbp, %rsi
jae 0x22a31
movl (%rdi), %ecx
addq $0x4, %rdi
movl %ecx, (%r14)
addq $0x4, %r14
cmpq %rax, %rdi
jb 0x22a1f
movq 0x90(%r11), %rdi
testq %rdi, %rdi
je 0x22a4a
callq 0x2180
movq %rbp, %rsi
movq 0x10(%rsp), %r11
movq %rbx, 0x90(%r11)
movslq 0x74(%r11), %rax
leaq (%rbx,%rax,4), %rax
movq %rax, 0x98(%r11)
movq %r14, 0x40(%rsp)
movq %rbx, 0x20(%rsp)
movq 0x18(%rsp), %r9
jmp 0x22941