// File: /workspace/github_cpp_makefile_star2_O1/BenLangmead[P]bowtie/./diff_sample.h
// Function: DifferenceCoverSample<S2bDnaString>::build(int)
void DifferenceCoverSample<TStr>::build(int nthreads) {
	// Local names for relevant types
	VMSG_NL("Building DifferenceCoverSample");
	// Local names for relevant data
	const TStr& t = this->text();
	uint32_t v = this->v();
	assert_gt(v, 2);
	// Build s'
	size_t padding = 1;
	EList<TIndexOffU> sPrime;
	VMSG_NL("  Building sPrime");
	buildSPrime(sPrime, padding);
	size_t sPrimeSz = sPrime.size() - padding;
	assert_gt(sPrime.size(), 0);
	assert_leq(sPrime.size(), t.length()+1); // +1 is because of the end-cap
	TIndexOffU nextRank = 0;
	{
		VMSG_NL("  Building sPrimeOrder");
		EList<TIndexOffU> sPrimeOrder;
		sPrimeOrder.resizeExact(sPrimeSz);
		for(TIndexOffU i = 0; i < (TIndexOffU)sPrimeOrder.size(); i++) {
			sPrimeOrder[i] = i;
		}
		// sPrime now holds suffix-offsets for DC samples.
		{
			Timer timer(cout, "  V-Sorting samples time: ", this->verbose());
			VMSG_NL("  V-Sorting samples");
			// Extract backing-store array from sPrime and sPrimeOrder;
			// the mkeyQSortSuf2 routine works on the array for maximum
			// efficiency
			TIndexOffU *sPrimeArr = (TIndexOffU*)sPrime.ptr();
			assert_eq(sPrimeArr[0], sPrime[0]);
			assert_eq(sPrimeArr[sPrimeSz-1], sPrime[sPrimeSz-1]);
			TIndexOffU *sPrimeOrderArr = (TIndexOffU*)sPrimeOrder.ptr();
			assert_eq(sPrimeOrderArr[0], sPrimeOrder[0]);
			assert_eq(sPrimeOrderArr[sPrimeSz-1], sPrimeOrder[sPrimeSz-1]);

			TIndexOffU *sOrig = NULL;
			if(this->sanityCheck()) {
				sOrig = new TIndexOffU[sPrimeSz];
				memcpy(sOrig, sPrimeArr, OFF_SIZE * sPrimeSz);
			}
			// Sort sample suffixes up to the vth character using a
			// multikey quicksort.  Sort time is proportional to the
			// number of samples times v.  It isn't quadratic.
			// sPrimeOrder is passed in as a swapping partner for
			// sPrimeArr, i.e., every time the multikey qsort swaps
			// elements in sPrime, it swaps the same elements in
			// sPrimeOrder too.  This allows us to easily reconstruct
			// what the sort did.
			if(nthreads == 1) {
				mkeyQSortSuf2(t, sPrimeArr, sPrimeSz, sPrimeOrderArr, 4,
				              this->verbose(), this->sanityCheck(), v);
			} else {
				int query_depth = 0;
				int tmp_nthreads = nthreads;
				while(tmp_nthreads > 0) {
					query_depth++;
					tmp_nthreads >>= 1;
				}
				EList<size_t> boundaries; // bucket boundaries for parallelization
				mkeyQSortSuf2(t, sPrimeArr, sPrimeSz, sPrimeOrderArr, 4,
				              this->verbose(), false, query_depth, &boundaries);
				if(boundaries.size() > 0) {
#if (__cplusplus >= 201103)
					AutoArray<std::thread*> threads(nthreads);
#else
					AutoArray<tthread::thread*> threads(nthreads);
#endif
					EList<VSortingParam<TStr> > tparams;
					tparams.resize(nthreads);
					size_t cur = 0;
					MUTEX_T mutex;
					for(int tid = 0; tid < nthreads; tid++) {
						// Calculate bucket sizes by doing a binary search for each
						// suffix and noting where it lands
						tparams[tid].dcs = this;
						tparams[tid].sPrimeArr = sPrimeArr;
						tparams[tid].sPrimeSz = sPrimeSz;
						tparams[tid].sPrimeOrderArr = sPrimeOrderArr;
						tparams[tid].depth = query_depth;
						tparams[tid].boundaries = &boundaries;
						tparams[tid].cur = &cur;
						tparams[tid].mutex = &mutex;
#if (__cplusplus >= 201103L)
						threads[tid] = new std::thread(VSorting_worker<TStr>, (void*)&tparams[tid]);
#else
						threads[tid] = new tthread::thread(VSorting_worker<TStr>, (void*)&tparams[tid]);
#endif
					}
					for (int tid = 0; tid < nthreads; tid++) {
						threads[tid]->join();
					}
				}
			}
			if(this->sanityCheck()) {
				sanityCheckOrderedSufs(t, t.length(), sPrimeArr, sPrimeSz, v);
				for(size_t i = 0; i < sPrimeSz; i++) {
					assert_eq(sPrimeArr[i], sOrig[sPrimeOrderArr[i]]);
				}
				delete[] sOrig;
			}
			// Make sure sPrime and sPrimeOrder are consistent with
			// their respective backing-store arrays
			assert_eq(sPrimeArr[0], sPrime[0]);
			assert_eq(sPrimeArr[sPrimeSz-1], sPrime[sPrimeSz-1]);
			assert_eq(sPrimeOrderArr[0], sPrimeOrder[0]);
			assert_eq(sPrimeOrderArr[sPrimeSz-1], sPrimeOrder[sPrimeSz-1]);
		}
		// Now assign the ranking implied by the sorted sPrime/sPrimeOrder
		// arrays back into sPrime.
		VMSG_NL("  Allocating rank array");
		_isaPrime.resize(sPrime.size());
		_isaPrime.resizeExact(sPrime.size());
		ASSERT_ONLY(_isaPrime.fill(OFF_MASK));
		assert_gt(_isaPrime.size(), 0);
		{
			Timer timer(cout, "  Ranking v-sort output time: ", this->verbose());
			VMSG_NL("  Ranking v-sort output");
			for(size_t i = 0; i < sPrimeSz-1; i++) {
				// Place the appropriate ranking
				_isaPrime[sPrimeOrder[i]] = nextRank;
				// If sPrime[i] and sPrime[i+1] are identical up to v, then we
				// should give the next suffix the same rank
				if(!suffixSameUpTo(t, sPrime[i], sPrime[i+1], v)) nextRank++;
			}
			_isaPrime[sPrimeOrder[sPrimeSz-1]] = nextRank; // finish off
		}
		// sPrimeOrder is destroyed
		// All the information we need is now in _isaPrime
	}
#ifndef NDEBUG
	// Check that all ranks are sane
	for(size_t i = 0; i < sPrimeSz; i++) {
		assert_neq(_isaPrime[i], OFF_MASK);
		assert_lt(_isaPrime[i], sPrimeSz);
	}
#endif
	// Now pass the sPrimeRanks[] array to LarssonSadakane (in SeqAn).
	_isaPrime[_isaPrime.size() - 1] = sPrimeSz;
	sPrime[sPrime.size() - 1] = sPrimeSz;
	{
		Timer timer(cout, "  Invoking Larsson-Sadakane on ranks time: ", this->verbose());
		VMSG_NL("  Invoking Larsson-Sadakane on ranks");
		LarssonSadakane<TIndexOff> ls;
		ls.suffixsort(
			(TIndexOff*)&_isaPrime[0],
			(TIndexOff*)&sPrime[0],
			(TIndexOff)sPrimeSz,
			(TIndexOff)sPrime.size(),
			0);
	}
	// sPrime now contains the suffix array (which we ignore)
	assert_eq(_isaPrime.size(), sPrime.size());
	assert_gt(_isaPrime.size(), 0);
	// chop off final character of _isaPrime
	_isaPrime.resize(sPrimeSz);
	// Subtract 1 from each isaPrime (to adjust for LarssonSadakane
	// always ranking the final suffix as lexicographically first)
	for(size_t i = 0; i < _isaPrime.size(); i++) {
		_isaPrime[i]--;
	}
	VMSG_NL("  Sanity-checking and returning");

	// done!
	//if(this->verbose()) print(cout);
	if(this->sanityCheck()) doBuiltSanityCheck();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movl %esi, 0x4(%rsp)
movq %rdi, %rbx
cmpb $0x1, 0xc(%rdi)
jne 0x2803c
leaq 0xe0(%rsp), %rdi
callq 0x5200
leaq 0xf0(%rsp), %r14
leaq 0x86d5(%rip), %rsi      # 0x30677
movl $0x1e, %edx
movq %r14, %rdi
callq 0x5400
movq 0xf0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0xf8(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x55a0
leaq 0x70(%rsp), %rsi
movq %rbx, %rdi
callq 0x2a276
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2801b
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x12f36(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
movq (%rbx), %rax
movq %rax, 0xb0(%rsp)
movl 0x8(%rbx), %r15d
movabsq $-0x100000000, %r13     # imm = 0xFFFFFFFF00000000
leaq 0x78(%rsp), %rcx
movq %r13, -0x8(%rcx)
xorl %eax, %eax
movq %rax, (%rcx)
movq $0x80, 0x8(%rcx)
movq %rax, 0x10(%rcx)
cmpb $0x1, 0xc(%rbx)
jne 0x28129
leaq 0xe0(%rsp), %rdi
callq 0x5200
leaq 0xf0(%rsp), %r14
leaq 0x8601(%rip), %rsi      # 0x30696
movl $0x11, %edx
movq %r14, %rdi
callq 0x5400
movq 0xf0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0xf8(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x55a0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2a276
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28108
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x12e49(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
leaq 0x70(%rsp), %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2a2d6
movq 0x88(%rsp), %rax
movq %rax, 0xa0(%rsp)
cmpb $0x1, 0xc(%rbx)
jne 0x28205
leaq 0xe0(%rsp), %rdi
callq 0x5200
leaq 0xf0(%rsp), %r14
leaq 0x8537(%rip), %rsi      # 0x306a8
movl $0x16, %edx
movq %r14, %rdi
callq 0x5400
movq 0xf0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0xf8(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x55a0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2a276
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x281e4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x12d6d(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
movq %r15, 0xb8(%rsp)
movq 0xa0(%rsp), %rax
leaq -0x1(%rax), %r15
leaq 0x10(%rsp), %rcx
movq %r13, -0x8(%rcx)
xorl %eax, %eax
movq %rax, (%rcx)
movq $0x80, 0x8(%rcx)
movq %rax, 0x10(%rcx)
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x1cbe2
cmpl $0x0, 0x20(%rsp)
je 0x2825d
xorl %eax, %eax
movq 0x10(%rsp), %rcx
movl %eax, (%rcx,%rax,4)
incq %rax
movl 0x20(%rsp), %ecx
cmpq %rcx, %rax
jb 0x28249
movb 0xc(%rbx), %bpl
xorl %edi, %edi
callq 0x5300
movq %rax, 0x50(%rsp)
movq 0x12d2c(%rip), %r12     # 0x3afa0
movq %r12, 0x58(%rsp)
leaq 0x843f(%rip), %rax      # 0x306bf
movq %rax, 0x60(%rsp)
movb %bpl, 0x68(%rsp)
cmpb $0x0, 0xc(%rbx)
je 0x28344
leaq 0xe0(%rsp), %rdi
callq 0x5200
leaq 0xf0(%rsp), %r14
leaq 0x842a(%rip), %rsi      # 0x306da
movl $0x13, %edx
movq %r14, %rdi
callq 0x5400
movq 0xf0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0xf8(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x55a0
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x2a276
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28323
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x12c2e(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
movq 0x78(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0xa8(%rsp)
movb 0xd(%rbx), %bpl
cmpb $0x1, %bpl
jne 0x2839e
movq %r15, %rax
shrq $0x3e, %rax
leaq (,%r15,4), %r14
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %r14, %rdi
callq 0x5030
movq %rax, 0x98(%rsp)
movq %rax, %rdi
movq 0x28(%rsp), %rsi
movq %r14, %rdx
callq 0x5270
jmp 0x283aa
movq $0x0, 0x98(%rsp)
cmpl $0x1, 0x4(%rsp)
movq %r15, 0xc8(%rsp)
jne 0x28404
movzbl 0xc(%rbx), %r9d
subq $0x8, %rsp
movzbl %bpl, %eax
movq 0xb8(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq %r15, %rdx
movq 0xb0(%rsp), %rcx
movl $0x4, %r8d
pushq $0x0
pushq 0xc8(%rsp)
pushq %rax
callq 0x2a3dc
addq $0x20, %rsp
movq 0x98(%rsp), %rdi
jmp 0x28674
jl 0x2841d
xorl %r12d, %r12d
movl 0x4(%rsp), %ecx
movl %ecx, %eax
shrl %eax
incq %r12
cmpl $0x1, %ecx
movl %eax, %ecx
ja 0x2840f
jmp 0x28420
xorl %r12d, %r12d
leaq 0xe8(%rsp), %r14
movq %r13, -0x8(%r14)
xorl %eax, %eax
movq %rax, (%r14)
movq $0x80, 0x8(%r14)
movq %rax, 0x10(%r14)
movq 0xb0(%rsp), %rdi
movq 0x18(%rdi), %rsi
subq $0x8, %rsp
leaq 0xe8(%rsp), %r10
movq 0x30(%rsp), %rdx
movq %r15, %rcx
movq 0xb0(%rsp), %r8
movl $0x4, %r9d
pushq %r10
pushq %r12
pushq %rax
pushq %r15
pushq %rax
callq 0x2a7b8
addq $0x30, %rsp
cmpq $0x0, 0xf8(%rsp)
je 0x28644
movl 0x4(%rsp), %eax
movslq %eax, %r14
leaq (,%r14,8), %r15
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %r15, %rdi
callq 0x5030
xorl %ebp, %ebp
movq %rax, 0x90(%rsp)
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x51b0
leaq 0x38(%rsp), %rax
movq %r13, -0x8(%rax)
movq %rbp, (%rax)
movq $0x80, 0x8(%rax)
movq %rbp, 0x10(%rax)
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x2a542
movq $0x0, 0xd8(%rsp)
movb $0x0, 0x3(%rsp)
movl 0x4(%rsp), %eax
movl %eax, %ecx
movq %rcx, 0xc0(%rsp)
testl %eax, %eax
jle 0x285e7
movq 0xc0(%rsp), %rbp
shlq $0x6, %rbp
xorl %r14d, %r14d
movq 0x90(%rsp), %r15
movq 0x38(%rsp), %rax
movq %rbx, (%rax,%r14)
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, 0x8(%rax,%r14)
movq 0x38(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq %rcx, 0x10(%rax,%r14)
movq 0x38(%rsp), %rax
movq 0xa8(%rsp), %rcx
movq %rcx, 0x18(%rax,%r14)
movq 0x38(%rsp), %rax
movq %r12, 0x20(%rax,%r14)
movq 0x38(%rsp), %rax
leaq 0xe0(%rsp), %rcx
movq %rcx, 0x28(%rax,%r14)
movq 0x38(%rsp), %rax
leaq 0xd8(%rsp), %rcx
movq %rcx, 0x30(%rax,%r14)
movq 0x38(%rsp), %rax
leaq 0x3(%rsp), %rcx
movq %rcx, 0x38(%rax,%r14)
movl $0x8, %edi
callq 0x5370
movq %rax, %r13
movq 0x38(%rsp), %rax
addq %r14, %rax
movq %rax, 0xd0(%rsp)
movq %r13, %rdi
leaq -0x1ac20(%rip), %rsi    # 0xd9a6
leaq 0xd0(%rsp), %rdx
callq 0x19fd2
movq %r13, (%r15)
addq $0x40, %r14
addq $0x8, %r15
cmpq %r14, %rbp
jne 0x28526
cmpl $0x0, 0x4(%rsp)
movq 0x90(%rsp), %r12
movq 0xc0(%rsp), %r13
jle 0x28612
xorl %r14d, %r14d
movq (%r12,%r14,8), %rdi
callq 0x5640
incq %r14
cmpq %r14, %r13
jne 0x28601
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x28634
callq 0x5450
xorps %xmm0, %xmm0
leaq 0x38(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %r12, %rdi
callq 0x5450
leaq 0xe8(%rsp), %r14
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x28665
callq 0x5450
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq 0x12934(%rip), %r12     # 0x3afa0
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x28684
cmpb $0x0, 0xd(%rbx)
je 0x28684
callq 0x5450
leaq 0x50(%rsp), %rdi
callq 0xff2c
cmpb $0x1, 0xc(%rbx)
jne 0x28748
leaq 0xe0(%rsp), %rdi
callq 0x5200
leaq 0xf0(%rsp), %r14
leaq 0x803a(%rip), %rsi      # 0x306ee
movl $0x17, %edx
movq %r14, %rdi
callq 0x5400
movq 0xf0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0xf8(%rsp), %rsi
leaq 0x50(%rsp), %rdi
callq 0x55a0
leaq 0x50(%rsp), %rsi
movq %rbx, %rdi
callq 0x2a276
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28727
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x1282a(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
leaq 0x78(%rbx), %r14
movq 0x88(%rsp), %rsi
movq %r14, %rdi
callq 0x1a064
movq 0x88(%rsp), %rsi
movq %r14, %rdi
callq 0x1cbe2
movq %r14, 0x28(%rsp)
movb 0xc(%rbx), %bpl
xorl %r15d, %r15d
xorl %edi, %edi
callq 0x5300
movq %rax, 0x50(%rsp)
movq %r12, 0x58(%rsp)
leaq 0x7f76(%rip), %rax      # 0x30706
movq %rax, 0x60(%rsp)
movb %bpl, 0x68(%rsp)
cmpb $0x1, 0xc(%rbx)
movq 0xb8(%rsp), %r12
jne 0x2885c
leaq 0xe0(%rsp), %rdi
callq 0x5200
leaq 0xf0(%rsp), %r14
leaq 0x7f5d(%rip), %rsi      # 0x30725
movl $0x17, %edx
movq %r14, %rdi
callq 0x5400
movq 0xf0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0xf8(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x55a0
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x2a276
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2883b
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x12716(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
movq 0xa0(%rsp), %rax
addq $-0x2, %rax
je 0x28950
xorl %edx, %edx
xorl %r15d, %r15d
movq 0x10(%rsp), %rcx
movl (%rcx,%rdx,4), %ecx
movq 0x80(%rbx), %rsi
movl %r15d, (%rsi,%rcx,4)
movl $0x0, %ecx
testq %r12, %r12
je 0x28941
movq 0x78(%rsp), %rcx
movl (%rcx,%rdx,4), %esi
movl 0x4(%rcx,%rdx,4), %edi
movq 0xb0(%rsp), %rcx
movq 0x8(%rcx), %r8
movq 0x18(%rcx), %r9
leal (%rdi,%rdi), %r10d
leal (%rsi,%rsi), %r11d
movq %r12, %r14
movl %esi, %esi
cmpq %rsi, %r9
seta %cl
movl %edi, %edi
cmpq %rdi, %r9
seta %r13b
xorb %cl, %r13b
je 0x288d7
xorl %ecx, %ecx
xorl %ebp, %ebp
jmp 0x28919
cmpq %rsi, %r9
ja 0x288e8
cmpq %rdi, %r9
ja 0x288e8
xorl %ecx, %ecx
movb $0x1, %bpl
jmp 0x28919
movl %esi, %ecx
shrl $0x4, %ecx
movl (%r8,%rcx,4), %r13d
movl %r11d, %ecx
andb $0x1e, %cl
shrl %cl, %r13d
movl %edi, %ecx
shrl $0x4, %ecx
movl (%r8,%rcx,4), %r12d
movl %r10d, %ecx
andb $0x1e, %cl
shrl %cl, %r12d
xorl %r13d, %r12d
testb $0x3, %r12b
sete %cl
andb %cl, %bpl
testb %cl, %cl
je 0x28931
addl $0x2, %r10d
incl %edi
addl $0x2, %r11d
incl %esi
decq %r14
jne 0x288bb
movb $0x1, %bpl
xorb $0x1, %bpl
movzbl %bpl, %ecx
movq 0xb8(%rsp), %r12
incq %rdx
addl %ecx, %r15d
cmpq %rax, %rdx
jne 0x28873
movq 0x10(%rsp), %rax
movq 0xa0(%rsp), %rcx
movl -0x8(%rax,%rcx,4), %eax
movq 0x80(%rbx), %rcx
movl %r15d, (%rcx,%rax,4)
leaq 0x50(%rsp), %rdi
callq 0xff2c
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x28998
callq 0x5450
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq 0x80(%rbx), %rax
movq 0x90(%rbx), %rcx
movq 0xc8(%rsp), %r15
movl %r15d, -0x4(%rax,%rcx,4)
movq 0x78(%rsp), %rax
movq 0x88(%rsp), %rcx
movl %r15d, -0x4(%rax,%rcx,4)
movb 0xc(%rbx), %bpl
xorl %edi, %edi
callq 0x5300
movq %rax, 0x8(%rsp)
movq 0x125c4(%rip), %rax     # 0x3afa0
movq %rax, 0x10(%rsp)
leaq 0x7d55(%rip), %rax      # 0x3073d
movq %rax, 0x18(%rsp)
movb %bpl, 0x20(%rsp)
cmpb $0x0, 0xc(%rbx)
movq 0x28(%rsp), %r12
je 0x28ab1
leaq 0xe0(%rsp), %rdi
callq 0x5200
leaq 0xf0(%rsp), %r14
leaq 0x7d4c(%rip), %rsi      # 0x30769
movl $0x24, %edx
movq %r14, %rdi
callq 0x5400
movq 0xf0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0xf8(%rsp), %rsi
leaq 0x50(%rsp), %rdi
callq 0x55a0
leaq 0x50(%rsp), %rsi
movq %rbx, %rdi
callq 0x2a276
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28a90
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x124c1(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
movq 0x80(%rbx), %rsi
movq 0x78(%rsp), %rdx
movl 0x88(%rsp), %r8d
leaq 0xe0(%rsp), %rdi
movl %r15d, %ecx
xorl %r9d, %r9d
callq 0x1cf96
leaq 0x8(%rsp), %rdi
callq 0xff2c
movq %r12, %rdi
movq %r15, %rsi
callq 0x1a064
cmpq $0x0, 0x90(%rbx)
je 0x28b0f
xorl %eax, %eax
movq 0x80(%rbx), %rcx
decl (%rcx,%rax,4)
incq %rax
cmpq 0x90(%rbx), %rax
jb 0x28af9
cmpb $0x0, 0xc(%rbx)
je 0x28bc9
leaq 0xe0(%rsp), %rdi
callq 0x5200
leaq 0xf0(%rsp), %r14
leaq 0x7c59(%rip), %rsi      # 0x3078e
movl $0x1f, %edx
movq %r14, %rdi
callq 0x5400
movq 0xf0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0xf8(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x55a0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2a276
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28ba8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x123a9(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
cmpb $0x1, 0xd(%rbx)
jne 0x28bd7
movq %rbx, %rdi
callq 0x2a5c2
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x28bf9
callq 0x5450
xorps %xmm0, %xmm0
leaq 0x78(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x28ec0
jmp 0x28d04
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28c33
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x28e6a
jmp 0x28e62
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28db7
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x28db7
jmp 0x28da7
jmp 0x28db4
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28dea
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x28dea
jmp 0x28de7
jmp 0x28d98
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28e13
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x28e13
movq %rax, %rbx
jmp 0x28f2c
jmp 0x28e10
jmp 0x28eb9
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28e3c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x28e3c
jmp 0x28e39
movq %rax, %rbx
jmp 0x28f04
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28d2a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x28e6a
jmp 0x28e62
jmp 0x28d9d
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28e6a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x28e6a
jmp 0x28e67
jmp 0x28da7
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28e93
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x28e93
jmp 0x28e90
jmp 0x28da7
movq %rax, %rbx
jmp 0x28dd8
movq %rax, %rbx
jmp 0x28f2c
jmp 0x28da7
movq %rax, %rbx
jmp 0x28f58
jmp 0x28e62
movq %rax, %rbx
movq 0x1219a(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
leaq 0x8(%rsp), %rdi
callq 0xff2c
jmp 0x28f58
movq %rax, %rbx
movq 0x12167(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
jmp 0x28f2c
movq %rax, %rbx
movq 0x1213e(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
jmp 0x28f36
movq %rax, %rbx
movq 0x12115(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
jmp 0x28f2c
movq %rax, %rbx
jmp 0x28e6a
movq %rax, %rbx
movq 0x120e7(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
jmp 0x28f58
movq %rax, %rbx
movq 0x120be(%rip), %rsi     # 0x3af58
leaq 0xe0(%rsp), %rdi
callq 0x5230
leaq 0x160(%rsp), %rdi
callq 0x5130
jmp 0x28f7a
movq %rax, %rbx
jmp 0x28f36
jmp 0x28ec0
movq %rax, %rbx
jmp 0x28ed5
movq %rax, %rbx
movl $0x8, %esi
movq %r13, %rdi
callq 0x5380
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x28ef7
callq 0x5450
xorps %xmm0, %xmm0
leaq 0x38(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq 0x90(%rsp), %rdi
callq 0x5450
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x28f2c
callq 0x5450
xorps %xmm0, %xmm0
leaq 0xe8(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x50(%rsp), %rdi
callq 0xff2c
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x28f58
callq 0x5450
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x28f7a
callq 0x5450
xorps %xmm0, %xmm0
leaq 0x78(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x56a0