// File: /workspace/github_cpp_makefile_star2_O3/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 $0x278, %rsp            # imm = 0x278
movl %esi, %ebp
movq %rdi, %r13
movb 0xc(%rdi), %al
cmpb $0x1, %al
jne 0x27cb7
leaq 0xf0(%rsp), %rdi
callq 0x5200
leaq 0x100(%rsp), %r14
leaq 0x8ab4(%rip), %rsi      # 0x306c7
movl $0x1e, %edx
movq %r14, %rdi
callq 0x53f0
movq 0x100(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5330
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x108(%rsp), %rsi
leaq 0x98(%rsp), %rdi
callq 0x5580
leaq 0x98(%rsp), %rsi
movq %r13, %rdi
callq 0x29eb4
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27c92
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x132bf(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
movb 0xc(%r13), %al
movq (%r13), %r15
movl 0x8(%r13), %ecx
movq %rcx, 0xc8(%rsp)
movabsq $-0x100000000, %r12     # imm = 0xFFFFFFFF00000000
movq %r12, 0x98(%rsp)
xorl %ecx, %ecx
movq %rcx, 0xa0(%rsp)
movq $0x80, 0xa8(%rsp)
movq %rcx, 0xb0(%rsp)
testb $0x1, %al
je 0x27daf
leaq 0xf0(%rsp), %rdi
callq 0x5200
leaq 0x100(%rsp), %r14
leaq 0x89cb(%rip), %rsi      # 0x306e6
movl $0x11, %edx
movq %r14, %rdi
callq 0x53f0
movq 0x100(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5330
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x108(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x5580
leaq 0x20(%rsp), %rsi
movq %r13, %rdi
callq 0x29eb4
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27d8e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x131c3(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
leaq 0x98(%rsp), %rsi
movl $0x1, %edx
movq %r13, %rdi
callq 0x29f14
movq 0xb0(%rsp), %rax
movq %rax, 0xc0(%rsp)
cmpb $0x1, 0xc(%r13)
jne 0x27e8f
leaq 0xf0(%rsp), %rdi
callq 0x5200
leaq 0x100(%rsp), %r14
leaq 0x88fd(%rip), %rsi      # 0x306f8
movl $0x16, %edx
movq %r14, %rdi
callq 0x53f0
movq 0x100(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5330
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x108(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x5580
leaq 0x20(%rsp), %rsi
movq %r13, %rdi
callq 0x29eb4
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27e6e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x130e3(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
movq 0xc0(%rsp), %rax
leaq -0x1(%rax), %rbx
leaq 0x20(%rsp), %rdi
movq %r12, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movq $0x80, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rbx, %rsi
callq 0x1ca80
movq %rbx, 0x40(%rsp)
cmpl $0x0, 0x38(%rsp)
je 0x27edf
xorl %eax, %eax
movq 0x28(%rsp), %rcx
movl %eax, (%rcx,%rax,4)
incq %rax
movl 0x38(%rsp), %ecx
cmpq %rcx, %rax
jb 0x27ecb
movb 0xc(%r13), %bl
xorl %edi, %edi
callq 0x52f0
movq %rax, 0x78(%rsp)
movq 0x130aa(%rip), %rax     # 0x3afa0
movq %rax, 0x80(%rsp)
leaq 0x880a(%rip), %rax      # 0x3070f
movq %rax, 0x88(%rsp)
movb %bl, 0x90(%rsp)
cmpb $0x0, 0xc(%r13)
je 0x27fcf
leaq 0xf0(%rsp), %rdi
callq 0x5200
leaq 0x100(%rsp), %r14
leaq 0x87ef(%rip), %rsi      # 0x3072a
movl $0x13, %edx
movq %r14, %rdi
callq 0x53f0
movq 0x100(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5330
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x108(%rsp), %rsi
leaq 0x58(%rsp), %rdi
callq 0x5580
leaq 0x58(%rsp), %rsi
movq %r13, %rdi
callq 0x29eb4
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27fae
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x12fa3(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
movq 0xa0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x50(%rsp)
movb 0xd(%r13), %bl
cmpb $0x1, %bl
jne 0x2802a
movq 0x40(%rsp), %rcx
movq %rcx, %rax
shrq $0x3e, %rax
leaq (,%rcx,4), %r14
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %r14, %rdi
callq 0x5030
movq %rax, 0x48(%rsp)
movq %rax, %rdi
movq 0x10(%rsp), %rsi
movq %r14, %rdx
callq 0x5260
jmp 0x28033
movq $0x0, 0x48(%rsp)
cmpl $0x1, %ebp
movq %r15, 0xd0(%rsp)
jne 0x28081
movzbl 0xc(%r13), %r9d
subq $0x8, %rsp
movzbl %bl, %eax
movq %r15, %rdi
movq 0x18(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x58(%rsp), %rcx
movl $0x4, %r8d
pushq $0x0
pushq 0xd8(%rsp)
pushq %rax
callq 0x2a019
addq $0x20, %rsp
movq 0x48(%rsp), %rdi
jmp 0x282a9
movl %ebp, 0x1c(%rsp)
jl 0x280a2
xorl %ebp, %ebp
movl 0x1c(%rsp), %edx
movl %edx, %eax
movq 0x40(%rsp), %rcx
shrl %eax
incq %rbp
cmpl $0x1, %edx
movl %eax, %edx
ja 0x28094
jmp 0x280a9
xorl %ebp, %ebp
movq 0x40(%rsp), %rcx
leaq 0xf0(%rsp), %r10
movq %r12, (%r10)
xorl %eax, %eax
movq %rax, 0x8(%r10)
movq $0x80, 0x10(%r10)
movq %rax, 0x18(%r10)
movq 0xd0(%rsp), %rdi
movq 0x18(%rdi), %rsi
subq $0x8, %rsp
movq 0x18(%rsp), %rdx
movq 0x58(%rsp), %r8
movl $0x4, %r9d
pushq %r10
pushq %rbp
pushq %rax
pushq %rcx
pushq %rax
callq 0x2a356
addq $0x30, %rsp
cmpq $0x0, 0x108(%rsp)
je 0x28292
movl 0x1c(%rsp), %eax
movslq %eax, %r14
leaq (,%r14,8), %r15
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %r15, %rdi
callq 0x5030
xorl %ebx, %ebx
movq %rax, 0xb8(%rsp)
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x51b0
leaq 0x58(%rsp), %rdi
movq %r12, (%rdi)
movq %rbx, 0x8(%rdi)
movq $0x80, 0x10(%rdi)
movq %rbx, 0x18(%rdi)
movq %r14, %rsi
callq 0x2a102
movq $0x0, 0xe8(%rsp)
movb $0x0, 0xf(%rsp)
movl 0x1c(%rsp), %eax
testl %eax, %eax
movq 0xb8(%rsp), %r12
jle 0x2827b
movl %eax, %r15d
movq %r15, 0xd8(%rsp)
shlq $0x6, %r15
xorl %r14d, %r14d
movq %r12, %rbx
movq 0x60(%rsp), %rax
movq %r13, (%rax,%r14)
movq 0x60(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax,%r14)
movq 0x60(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rcx, 0x10(%rax,%r14)
movq 0x60(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, 0x18(%rax,%r14)
movq 0x60(%rsp), %rax
movq %rbp, 0x20(%rax,%r14)
movq 0x60(%rsp), %rax
leaq 0xf0(%rsp), %rcx
movq %rcx, 0x28(%rax,%r14)
movq 0x60(%rsp), %rax
leaq 0xe8(%rsp), %rcx
movq %rcx, 0x30(%rax,%r14)
movq 0x60(%rsp), %rax
leaq 0xf(%rsp), %rcx
movq %rcx, 0x38(%rax,%r14)
movl $0x8, %edi
callq 0x5360
movq %rax, %r12
movq 0x60(%rsp), %rax
addq %r14, %rax
movq %rax, 0xe0(%rsp)
movq %r12, %rdi
leaq -0x1a98b(%rip), %rsi    # 0xd8a5
leaq 0xe0(%rsp), %rdx
callq 0x19f24
movq %r12, (%rbx)
addq $0x40, %r14
addq $0x8, %rbx
cmpq %r14, %r15
jne 0x28196
cmpl $0x0, 0x1c(%rsp)
movq 0xb8(%rsp), %r12
movq 0xd8(%rsp), %r14
jle 0x2827b
xorl %ebx, %ebx
movq (%r12,%rbx,8), %rdi
callq 0x5620
incq %rbx
cmpq %rbx, %r14
jne 0x2826a
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x2828a
callq 0x5440
movq %r12, %rdi
callq 0x5440
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x282a4
callq 0x5440
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x282ba
cmpb $0x0, 0xd(%r13)
je 0x282ba
callq 0x5440
leaq 0x78(%rsp), %rdi
callq 0xfe36
cmpb $0x1, 0xc(%r13)
jne 0x28385
leaq 0xf0(%rsp), %rdi
callq 0x5200
leaq 0x100(%rsp), %r14
leaq 0x8453(%rip), %rsi      # 0x3073e
movl $0x17, %edx
movq %r14, %rdi
callq 0x53f0
movq 0x100(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5330
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x108(%rsp), %rsi
leaq 0x78(%rsp), %rdi
callq 0x5580
leaq 0x78(%rsp), %rsi
movq %r13, %rdi
callq 0x29eb4
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28364
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x12bed(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
leaq 0x78(%r13), %rbx
movq 0xb0(%rsp), %rsi
movq %rbx, %rdi
callq 0x19fa4
movq 0xb0(%rsp), %rsi
movq %rbx, %rdi
callq 0x1ca80
movq %rbx, 0x48(%rsp)
movb 0xc(%r13), %bl
movq $0x0, 0x10(%rsp)
xorl %edi, %edi
callq 0x52f0
movq %rax, 0x78(%rsp)
movq 0x12bd2(%rip), %rax     # 0x3afa0
movq %rax, 0x80(%rsp)
leaq 0x8379(%rip), %rax      # 0x30756
movq %rax, 0x88(%rsp)
movb %bl, 0x90(%rsp)
cmpb $0x1, 0xc(%r13)
jne 0x284a7
leaq 0xf0(%rsp), %rdi
callq 0x5200
leaq 0x100(%rsp), %r14
leaq 0x8362(%rip), %rsi      # 0x30775
movl $0x17, %edx
movq %r14, %rdi
callq 0x53f0
movq 0x100(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5330
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x108(%rsp), %rsi
leaq 0x58(%rsp), %rdi
callq 0x5580
leaq 0x58(%rsp), %rsi
movq %r13, %rdi
callq 0x29eb4
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28486
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x12acb(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
movq 0xc0(%rsp), %rax
addq $-0x2, %rax
movq %rax, 0x50(%rsp)
je 0x285d8
xorl %edx, %edx
movq $0x0, 0x10(%rsp)
movq 0x28(%rsp), %rcx
movl (%rcx,%rdx,4), %ecx
movq %r13, %rax
movq 0x80(%r13), %rsi
movq 0x10(%rsp), %rdi
movl %edi, (%rsi,%rcx,4)
cmpq $0x0, 0xc8(%rsp)
je 0x2852c
movq 0xa0(%rsp), %rcx
movl (%rcx,%rdx,4), %r13d
movl 0x4(%rcx,%rdx,4), %ebx
movq 0xd0(%rsp), %rcx
movq 0x18(%rcx), %r8
cmpq %r13, %r8
seta %r15b
cmpq %rbx, %r8
seta %r12b
movl %r15d, %esi
xorb %r12b, %sil
je 0x2853e
movq 0x10(%rsp), %rcx
incl %ecx
movq %rcx, 0x10(%rsp)
incq %rdx
cmpq 0x50(%rsp), %rdx
movq %rax, %r13
jne 0x284c9
jmp 0x285d8
movq 0x8(%rcx), %r9
leal (%rbx,%rbx), %r10d
leal (,%r13,2), %r11d
movl $0x1, %r14d
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r13, %rsi
testb $0x1, %r15b
jne 0x28568
testb $0x1, %r12b
je 0x2852c
shrq $0x4, %rsi
movl (%r9,%rsi,4), %esi
movl %r11d, %ecx
andb $0x1e, %cl
shrl %cl, %esi
shrq $0x4, %rdi
movl (%r9,%rdi,4), %edi
movl %r10d, %ecx
andb $0x1e, %cl
shrl %cl, %edi
xorl %esi, %edi
testb $0x3, %dil
jne 0x285c9
cmpq %r14, 0xc8(%rsp)
je 0x2852c
setbe %bpl
leal (%r14,%r13), %esi
cmpq %rsi, %r8
seta %r15b
leal (%rbx,%r14), %edi
cmpq %rdi, %r8
seta %r12b
movl %r15d, %ecx
xorb %r12b, %cl
addl $0x2, %r10d
addl $0x2, %r11d
incq %r14
testb %cl, %cl
je 0x2855c
testb $0x1, %bpl
je 0x28520
jmp 0x2852c
movq 0x28(%rsp), %rax
movq 0xc0(%rsp), %rcx
movl -0x8(%rax,%rcx,4), %eax
movq 0x80(%r13), %rcx
movq 0x10(%rsp), %rdx
movl %edx, (%rcx,%rax,4)
leaq 0x78(%rsp), %rdi
callq 0xfe36
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x28611
callq 0x5440
movq 0x80(%r13), %rax
movq 0x90(%r13), %rcx
movq 0x40(%rsp), %rdx
movl %edx, -0x4(%rax,%rcx,4)
movq 0xa0(%rsp), %rax
movq 0xb0(%rsp), %rcx
movl %edx, -0x4(%rax,%rcx,4)
movb 0xc(%r13), %bl
xorl %edi, %edi
callq 0x52f0
movq %rax, 0x20(%rsp)
movq 0x1294d(%rip), %rax     # 0x3afa0
movq %rax, 0x28(%rsp)
leaq 0x812e(%rip), %rax      # 0x3078d
movq %rax, 0x30(%rsp)
movb %bl, 0x38(%rsp)
cmpb $0x0, 0xc(%r13)
je 0x28729
leaq 0xf0(%rsp), %rdi
callq 0x5200
leaq 0x100(%rsp), %r14
leaq 0x812a(%rip), %rsi      # 0x307b9
movl $0x24, %edx
movq %r14, %rdi
callq 0x53f0
movq 0x100(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5330
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x108(%rsp), %rsi
leaq 0x78(%rsp), %rdi
callq 0x5580
leaq 0x78(%rsp), %rsi
movq %r13, %rdi
callq 0x29eb4
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28708
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x12849(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
movq 0x80(%r13), %rsi
movq 0xa0(%rsp), %rdx
movl 0xb0(%rsp), %r8d
leaq 0xf0(%rsp), %rdi
movq 0x40(%rsp), %rbx
movl %ebx, %ecx
xorl %r9d, %r9d
callq 0x1cdbe
leaq 0x20(%rsp), %rdi
callq 0xfe36
movq 0x48(%rsp), %rdi
movq %rbx, %rsi
callq 0x19fa4
cmpq $0x0, 0x90(%r13)
je 0x28790
xorl %eax, %eax
movq 0x80(%r13), %rcx
decl (%rcx,%rax,4)
incq %rax
cmpq 0x90(%r13), %rax
jb 0x2877a
cmpb $0x0, 0xc(%r13)
je 0x2884b
leaq 0xf0(%rsp), %rdi
callq 0x5200
leaq 0x100(%rsp), %r14
leaq 0x8027(%rip), %rsi      # 0x307de
movl $0x1f, %edx
movq %r14, %rdi
callq 0x53f0
movq 0x100(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5330
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x51f0
leaq 0x108(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x5580
leaq 0x20(%rsp), %rsi
movq %r13, %rdi
callq 0x29eb4
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2882a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x12727(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
cmpb $0x1, 0xd(%r13)
jne 0x2885a
movq %r13, %rdi
callq 0x2a180
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x2886c
callq 0x5440
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x28b3c
jmp 0x28983
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x288a6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x28ae9
jmp 0x28ae1
movq %rax, %rbx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28a36
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x28a36
jmp 0x28a26
jmp 0x28a33
movq %rax, %rbx
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28a69
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x28a69
jmp 0x28a66
jmp 0x28a17
movq %rax, %rbx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28a92
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x28a92
movq %rax, %rbx
jmp 0x28b7f
jmp 0x28a8f
jmp 0x28b35
movq %rax, %rbx
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28abb
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x28abb
jmp 0x28ab8
movq %rax, %rbx
jmp 0x28b6d
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x289a9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x28ae9
jmp 0x28ae1
jmp 0x28a1c
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28ae9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x28ae9
jmp 0x28ae6
jmp 0x28a26
movq %rax, %rbx
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28b12
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x28b12
jmp 0x28b0f
jmp 0x28a26
movq %rax, %rbx
jmp 0x28a57
movq %rax, %rbx
jmp 0x28b7f
jmp 0x28a26
movq %rax, %rbx
jmp 0x28b98
jmp 0x28ae1
movq %rax, %rbx
movq 0x1251b(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
leaq 0x20(%rsp), %rdi
callq 0xfe36
jmp 0x28b98
movq %rax, %rbx
movq 0x124e8(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
jmp 0x28b7f
movq %rax, %rbx
movq 0x124bf(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
jmp 0x28b89
movq %rax, %rbx
movq 0x12496(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
jmp 0x28b7f
movq %rax, %rbx
jmp 0x28ae9
movq %rax, %rbx
movq 0x12468(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
jmp 0x28b98
movq %rax, %rbx
movq 0x1243f(%rip), %rsi     # 0x3af58
leaq 0xf0(%rsp), %rdi
callq 0x5230
leaq 0x170(%rsp), %rdi
callq 0x5130
jmp 0x28baa
movq %rax, %rbx
jmp 0x28b89
jmp 0x28b3c
movq %rax, %rbx
jmp 0x28b51
movq %rax, %rbx
movl $0x8, %esi
movq %r12, %rdi
callq 0x5370
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x28b60
callq 0x5440
movq 0xb8(%rsp), %rdi
callq 0x5440
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x28b7f
callq 0x5440
leaq 0x78(%rsp), %rdi
callq 0xfe36
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x28b98
callq 0x5440
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x28baa
callq 0x5440
movq %rbx, %rdi
callq 0x5680