// File: /workspace/github_cpp_makefile_star2_O3/BenLangmead[P]bowtie/./ref_aligner.h
// Function: OneMMRefAligner::anchor64Find(unsigned int, unsigned long, unsigned char*, SDnaStringExpandable<25, 2> const&, SStringExpandable<char, 25, 2, 0> const&, unsigned int, unsigned int, EList<Range, 128>&, EList<unsigned int, 128>&, std::set<std::pair<unsigned long, unsigned long>, std::less<std::pair<unsigned long, unsigned long>>, std::allocator<std::pair<unsigned long, unsigned long>>>*, unsigned int, bool) const
virtual void anchor64Find(uint32_t numToFind,
						  size_t tidx,
						  uint8_t* ref,
						  const BTDnaString& qry,
						  const BTString& quals,
						  TIndexOffU begin,
						  TIndexOffU end,
						  TRangeVec& ranges,
						  EList<TIndexOffU>& results,
						  TSetPairs* pairs = NULL,
						  TIndexOffU aoff = OFF_MASK,
						  bool seedOnLeft = false) const
			{
				assert_gt(numToFind, 0);
				ASSERT_ONLY(const uint32_t rangesInitSz = (uint32_t)ranges.size());
				ASSERT_ONLY(uint32_t duplicates = 0);
				ASSERT_ONLY(uint32_t r2i = 0);
				const uint32_t qlen = (uint32_t)qry.length();
				assert_geq(end - begin, qlen); // caller should have checked this
				assert_gt(end, begin);
				assert_gt(qlen, 0);
#ifndef NDEBUG
				// Get results from the naive matcher for sanity-checking
				TRangeVec r2; EList<TIndexOffU> re2;
				naiveFind(numToFind, tidx, ref, qry, quals, begin, end, r2,
					  re2, pairs, aoff, seedOnLeft);
#endif
				const uint32_t anchorBitPairs = min<int>(qlen, 32);
				const int lhsShift = ((anchorBitPairs - 1) << 1);
				const uint32_t anchorCushion  = 32 - anchorBitPairs;
				// anchorOverhang = # read bases not included in the anchor
				const size_t anchorOverhang = (qlen <= 32 ? 0 : (qlen - 32));
				const TIndexOffU lim = end - qlen - begin;
				const TIndexOffU halfway = begin + (lim >> 1);
				uint64_t anchor = 0llu;
				uint64_t buffw = 0llu;  // rotating ref sequence buffer
				// OR the 'diff' buffer with this so that we can always count
				// 'N's as mismatches
				uint64_t diffMask = 0llu;
				// Set up a mask that we'll apply to the two bufs every round
				// to discard bits that were rotated out of the anchor area
				uint64_t clearMask = 0xffffffffffffffffllu;
				bool useMask = false;
				if(anchorBitPairs < 32) {
					clearMask >>= ((32-anchorBitPairs) << 1);
					useMask = true;
				}
				int nsInAnchor = 0;
				int nPos = -1;
				size_t skipLeftToRights = 0;
				size_t skipRightToLefts = 0;
				// Construct the 'anchor' 64-bit buffer so that it holds all of
				// the first 'anchorBitPairs' bit pairs of the query.
				for(size_t i = 0; i < anchorBitPairs; i++) {
					int c = (int)qry[i]; // next query character
					int r = (int)ref[halfway - begin + i]; // next reference character
					if(r & 4) {
						r = 0;
						// The right-to-left direction absorbs the candidate
						// alignment based at 'halfway'; so skipLeftToRights is
						// i, not i+1
						skipLeftToRights = max(skipLeftToRights, i);
						skipRightToLefts = max(skipRightToLefts, anchorBitPairs - i);
					}
					assert_leq(c, 4);
					assert_lt(r, 4);
					// Special case: query has an 'N'
					if(c == 4) {
						if(++nsInAnchor > 1) {
							// More than one 'N' in the anchor region; can't
							// possibly have a 1-mismatch hit anywhere
							assert_eq(r2.size(), ranges.size() - rangesInitSz);
							return;   // can't match if query has Ns
						}
						nPos = (int)i;
						// Make it look like an 'A' in the anchor
						c = 0;
						diffMask = (diffMask << 2llu) | 1llu;
					} else {
						diffMask <<= 2llu;
					}
					anchor  = ((anchor  << 2llu) | c);
					buffw = ((buffw << 2llu) | r);
				}
				// Check whether read is disqualified by Ns outside of the anchor
				// region
				for(size_t i = anchorBitPairs; i < qlen; i++) {
					if((int)qry[i] == 4) {
						if(++nsInAnchor > 1) {
							assert_eq(r2.size(), ranges.size() - rangesInitSz);
							return; // can't match if query has Ns
						}
					}
				}
				uint64_t bufbw = buffw;
				// We're moving the right-hand edge of the anchor along until
				// it's 'anchorOverhang' chars from the end of the target region.
				// Note that we're not making a 3'/5' distinction here; if we
				// were, we might need to make the 'anchorOverhang' adjustment on
				// the left end of the range rather than the right.
				bool hi = false;
				TIndexOffU riHi  = halfway;
				TIndexOffU rirHi = halfway - begin;
				TIndexOffU rirHiAnchor = rirHi + anchorBitPairs - 1;
				TIndexOffU riLo  = halfway + 1;
				TIndexOffU rirLo = halfway - begin + 1;
				for(TIndexOffU i = 1; i <= lim + 1; i++) {
					int r;       // new reference char
					uint64_t diff;
					assert_lt(skipLeftToRights, qlen);
					assert_leq(skipRightToLefts, qlen);
					if(hi) {
						hi = false;
						// Moving left-to-right
						riHi++;
						rirHi++;
						rirHiAnchor++;
						r = (int)ref[rirHiAnchor];
						if(r & 4) {
							r = 0;
							skipLeftToRights = anchorBitPairs;
						}
						assert_lt(r, 4);
						// Bring in new base pair at the least significant
						// position
						buffw = ((buffw << 2llu) | r);
						if(useMask) buffw &= clearMask;
						if(skipLeftToRights > 0) {
							skipLeftToRights--;
							continue;
						}
						diff = (buffw ^ anchor) | diffMask;
					} else {
						hi = true;
						// Moving right-to-left
						riLo--;
						rirLo--;
						r = (int)ref[rirLo];
						if(r & 4) {
							r = 0;
							skipRightToLefts = qlen;
						}
						assert_lt(r, 4);
						if(i >= 2) {
							bufbw >>= 2llu;
							// Bring in new base pair at the most significant
							// position
							bufbw |= ((uint64_t)r << lhsShift);
						}
						if(skipRightToLefts > 0) {
							skipRightToLefts--;
							continue;
						}
						diff = (bufbw ^ anchor) | diffMask;
					}
					if((diff & 0xffffffff00000000llu) &&
					   (diff & 0x00000000ffffffffllu)) continue;
					TIndexOffU ri  = hi ? riLo  : riHi;
					TIndexOffU rir = hi ? rirLo : rirHi;
					// Could use pop count
					uint8_t *diff8 = reinterpret_cast<uint8_t*>(&diff);
					// As a first cut, see if there are too many mismatches in
					// the first and last parts of the anchor
					uint32_t diffs = u8toMms[(int)diff8[0]] + u8toMms[(int)diff8[7]];
					if(diffs > 1) continue;
					diffs += u8toMms[(int)diff8[1]] +
						u8toMms[(int)diff8[2]] +
						u8toMms[(int)diff8[3]] +
						u8toMms[(int)diff8[4]] +
						u8toMms[(int)diff8[5]] +
						u8toMms[(int)diff8[6]];
					uint32_t mmpos = 0xffffffff;
					int refc = -1;
					if(diffs > 1) {
						// Too many differences
						continue;
					} else if(diffs == 1 && nPos != -1) {
						// There was one difference, but there was also one N,
						// so we already know where the difference is
						mmpos = nPos;
						refc = "ACGT"[(int)ref[rir + nPos]];
					} else if(diffs == 1) {
						// Figure out which position mismatched
						mmpos = 31;
						if((diff & 0xffffffffllu) == 0) { diff >>= 32llu; mmpos -= 16; }
						assert_neq(0, diff);
						if((diff & 0xffffllu) == 0)     { diff >>= 16llu; mmpos -=  8; }
						assert_neq(0, diff);
						if((diff & 0xffllu) == 0)       { diff >>= 8llu;  mmpos -=  4; }
						assert_neq(0, diff);
						if((diff & 0xfllu) == 0)        { diff >>= 4llu;  mmpos -=  2; }
						assert_neq(0, diff);
						if((diff & 0x3llu) == 0)        { mmpos--; }
						assert_neq(0, diff);
						assert_geq(mmpos, 0);
						assert_lt(mmpos, 32);
						mmpos -= anchorCushion;
						refc = "ACGT"[(int)ref[rir + mmpos]];
					}
					// Now extend the anchor into a longer alignment
					bool foundHit = true;
					if(anchorOverhang > 0) {
						assert_leq(ri + anchorBitPairs + anchorOverhang, end);
						bool skipCandidate = false;
						for(size_t j = 0; j < anchorOverhang; j++) {
							int rc = (int)ref[rir + 32 + j];
							if(rc == 4) {
								// Oops, encountered an N in the reference in
								// the overhang portion of the candidate
								// alignment
								// (Note that we inverted hi earlier)
								if(hi) {
									// Right-to-left
									skipRightToLefts = anchorOverhang - j - 1;
								} else {
									// Left-to-right
									skipLeftToRights = anchorBitPairs + j;
								}
								skipCandidate = true; // Skip this candidate
								break;
							}
							if((int)qry[32 + j] != rc) {
								if(++diffs > 1) {
									foundHit = false;
									break;
								} else {
									mmpos = (uint32_t)(32 + j);
									refc = "ACGT"[(int)ref[rir + 32 + j]];
								}
							}
						}
						if(skipCandidate) continue;
					}
					if(!foundHit) continue;
					if(pairs != NULL) {
						TU64Pair p;
						if(ri < aoff) {
							// By convention, the upstream mate's
							// coordinates go in the 'first' field
							p.first  = ((uint64_t)tidx << 32) | (uint64_t)ri;
							p.second = ((uint64_t)tidx << 32) | (uint64_t)aoff;
						} else {
							p.second = ((uint64_t)tidx << 32) | (uint64_t)ri;
							p.first  = ((uint64_t)tidx << 32) | (uint64_t)aoff;
						}
						if(pairs->find(p) != pairs->end()) {
							// We already found this hit!  Continue.
							ASSERT_ONLY(duplicates++);
							ASSERT_ONLY(r2i++);
							continue;
						} else {
							// Record this hit
							pairs->insert(p);
						}
					}
					assert_leq(diffs, 1);
					assert_lt(r2i, r2.size());
					assert_eq(re2[r2i], ri);
					ranges.resize(ranges.size()+1);
					Range& range = ranges.back();
					assert_eq(diffs, r2[r2i].numMms);
					range.stratum = diffs;
					range.numMms = diffs;
					assert_eq(0, range.mms.size());
					assert_eq(0, range.refcs.size());
					if(diffs == 1) {
						assert_neq(mmpos, 0xffffffff);
						assert_eq(mmpos, r2[r2i].mms[0]);
						assert_neq(-1, refc);
						assert_eq(refc, r2[r2i].refcs[0]);
						range.mms.push_back(mmpos);
						range.refcs.push_back(refc);
					}
					ASSERT_ONLY(r2i++);
					results.push_back(ri);
					if(--numToFind == 0) return;
				}
				assert_leq(duplicates, r2.size());
				assert_geq(r2.size() - duplicates, ranges.size() - rangesInitSz);
				return; // no hit
			}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rcx, %r13
movq %rdx, 0x78(%rsp)
movl %esi, 0x98(%rsp)
movl 0x158(%rsp), %ecx
movq 0x20(%r8), %rdx
movl $0x20, %esi
cmpl %esi, %edx
movl $0x20, %r9d
cmovll %edx, %r9d
subl %r9d, %esi
leal -0x20(%rdx), %eax
xorl %r14d, %r14d
cmpl $0x21, %edx
cmovbq %r14, %rax
movq %rax, 0x88(%rsp)
movl 0x150(%rsp), %eax
addl %edx, %eax
subl %eax, %ecx
movl %ecx, 0x4c(%rsp)
movl %ecx, %edi
shrl %edi
movq %rsi, 0x100(%rsp)
leal (%rsi,%rsi), %ecx
movq $-0x1, %rax
shrq %cl, %rax
testl %edx, %edx
movq %r8, 0xc0(%rsp)
movq %r9, 0x38(%rsp)
movq %rdi, 0x70(%rsp)
je 0x4287f
movq 0x8(%r8), %rsi
addq %r13, %rdi
cmpq $0x1, %r9
movq %r9, %r8
adcq $0x0, %r8
xorl %ebx, %ebx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rcx, 0x68(%rsp)
xorl %r11d, %r11d
movq $0x0, 0x40(%rsp)
xorl %ecx, %ecx
xorl %r10d, %r10d
xorl %ebp, %ebp
xorl %r14d, %r14d
movzbl (%rdi,%r10), %r15d
testb $0x4, %r15b
je 0x42824
cmpq %r10, %rbp
cmovbeq %r10, %rbp
cmpq %r9, %r14
cmovbeq %r9, %r14
xorl %r15d, %r15d
movsbq (%rsi,%r10), %r12
cmpb $0x4, %r12b
jne 0x42858
testl %ecx, %ecx
jg 0x42f2f
incl %ecx
movq 0x40(%rsp), %r12
leaq 0x1(,%r12,4), %r12
movq %r12, 0x40(%rsp)
movl %r10d, %r12d
movq %r12, 0x68(%rsp)
xorl %r12d, %r12d
jmp 0x4285e
shlq $0x2, 0x40(%rsp)
shlq $0x2, %rbx
orq %r12, %rbx
shlq $0x2, %r11
movl %r15d, %r15d
orq %r11, %r15
incq %r10
decq %r9
movq %r15, %r11
cmpq %r10, %r8
jne 0x42808
jmp 0x4289b
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rcx, 0x68(%rsp)
xorl %ebp, %ebp
xorl %ecx, %ecx
movq $0x0, 0x40(%rsp)
xorl %r15d, %r15d
xorl %ebx, %ebx
movl %edx, %r8d
cmpq 0x38(%rsp), %r8
jbe 0x428ce
movq 0xc0(%rsp), %rdx
movq 0x8(%rdx), %rdx
movq 0x38(%rsp), %rsi
cmpb $0x4, (%rdx,%rsi)
jne 0x428c6
testl %ecx, %ecx
jg 0x42f2f
incl %ecx
incq %rsi
cmpq %rsi, %r8
jne 0x428b6
incl 0x4c(%rsp)
je 0x42f2f
movq 0x170(%rsp), %r9
movq 0x38(%rsp), %rdx
leal -0x2(,%rdx,2), %ecx
movl 0x150(%rsp), %esi
movq 0x70(%rsp), %rdi
addl %edi, %esi
leal 0x1(%rdi), %r10d
movq %rsi, 0x90(%rsp)
incl %esi
cmpl $0x20, %edx
leal -0x1(%rdx,%rdi), %r11d
movq $-0x1, %rdx
cmovbq %rax, %rdx
movq %rdx, 0x110(%rsp)
movl %ecx, %eax
movq %rax, 0x108(%rsp)
movq 0x78(%rsp), %rax
shlq $0x20, %rax
movl 0x178(%rsp), %ecx
movq %rax, 0x78(%rsp)
orq %rax, %rcx
movq %rcx, 0xa8(%rsp)
leaq 0x8(%r9), %rax
movq %rax, 0xd8(%rsp)
movl %esi, %r9d
movl $0x1, %r12d
xorl %esi, %esi
movq %r15, %rdi
movq %r13, 0x10(%rsp)
movq %r8, 0x28(%rsp)
testb $0x1, %sil
je 0x429cd
movq 0x90(%rsp), %rax
incl %eax
movq %rax, 0x90(%rsp)
movq 0x70(%rsp), %rax
incl %eax
movq %rax, 0x70(%rsp)
incl %r11d
movzbl (%r13,%r11), %edx
xorl %eax, %eax
testb $0x4, %dl
cmovneq 0x38(%rsp), %rbp
cmovnel %eax, %edx
shlq $0x2, %r15
orq %r15, %rdx
andq 0x110(%rsp), %rdx
testq %rbp, %rbp
je 0x42a18
decq %rbp
xorl %esi, %esi
movq %rdx, %r15
jmp 0x42f21
decl %r9d
decl %r10d
movzbl (%r13,%r10), %edx
testb $0x4, %dl
cmovneq %r8, %r14
movl $0x0, %eax
cmovnel %eax, %edx
movq %rdi, %rax
shrq $0x2, %rax
movq 0x108(%rsp), %rcx
shlq %cl, %rdx
orq %rax, %rdx
cmpl $0x2, %r12d
cmovbq %rdi, %rdx
testq %r14, %r14
je 0x42a28
decq %r14
movb $0x1, %sil
movq %rdx, %rdi
jmp 0x42f21
movq $0x0, 0x20(%rsp)
xorl %ebp, %ebp
movq %rdx, %r15
jmp 0x42a35
movb $0x1, %al
movq %rax, 0x20(%rsp)
xorl %r14d, %r14d
movq %rdx, %rdi
xorq %rbx, %rdx
orq 0x40(%rsp), %rdx
movq %rdx, %rsi
shrq $0x20, %rsi
setne %al
testl %edx, %edx
setne %cl
testb %cl, %al
jne 0x42f1c
movq %r10, %r13
movq %rdx, %r10
shrq $0x38, %r10
cmpb $0x0, 0x20(%rsp)
movq 0x90(%rsp), %rax
cmovnel %r9d, %eax
movl %eax, 0xa0(%rsp)
movl %eax, 0xa4(%rsp)
movq 0x70(%rsp), %rcx
movq %r13, 0x18(%rsp)
cmovnel %r13d, %ecx
movq %rcx, 0x80(%rsp)
movzbl %dl, %eax
leaq 0x2a273(%rip), %rcx     # 0x6cd10
movq %rax, 0x30(%rsp)
movzbl (%rcx,%rax), %eax
movzbl (%rcx,%r10), %r13d
addl %eax, %r13d
cmpl $0x2, %r13d
jb 0x42ac8
movq 0x10(%rsp), %r13
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %r10
jmp 0x42f21
movq %rbp, 0xd0(%rsp)
movq %rdi, 0xc8(%rsp)
movq %r11, 0x60(%rsp)
movl %r9d, 0x8(%rsp)
movq %rdx, %r9
shrq $0x8, %r9
movq %rdx, %rax
shrq $0x10, %rax
movq %rdx, %r8
shrq $0x18, %r8
movq %rdx, %rbp
shrq $0x28, %rbp
movq %rdx, %r11
shrq $0x30, %r11
movq %r9, 0xb0(%rsp)
movl $0xff, %edi
andq %rdi, %r9
movzbl (%rcx,%r9), %r9d
movl %r9d, 0x9c(%rsp)
movq %rax, 0xf8(%rsp)
movq %rax, %r9
andq %rdi, %r9
movzbl (%rcx,%r9), %r9d
movq %r8, 0xb8(%rsp)
movq %r8, %rax
andq %rdi, %rax
movzbl (%rcx,%rax), %eax
addl %r9d, %eax
movq %rsi, %r8
andq %rdi, %r8
movq %r8, 0xe0(%rsp)
movzbl (%rcx,%r8), %r9d
movq %rbp, 0xf0(%rsp)
andq %rdi, %rbp
movzbl (%rcx,%rbp), %r8d
addl %r9d, %r8d
movq %r11, 0xe8(%rsp)
andq %rdi, %r11
movzbl (%rcx,%r11), %r11d
addl %r8d, %r11d
addl 0x9c(%rsp), %r13d
addl %eax, %r13d
addl %r11d, %r13d
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
cmpl $0x1, %r13d
jbe 0x42bc5
movq 0x10(%rsp), %r13
movq 0x28(%rsp), %r8
movl 0x8(%rsp), %r9d
movq 0x60(%rsp), %r11
movq 0x18(%rsp), %r10
movq 0xd0(%rsp), %rbp
jmp 0x42f14
movq 0x60(%rsp), %r11
movq 0xd0(%rsp), %rbp
jne 0x42bfb
cmpl $-0x1, 0x68(%rsp)
je 0x42bfb
movq 0x68(%rsp), %rax
movl %eax, 0xc(%rsp)
movq 0x80(%rsp), %rcx
addl %ecx, %eax
movq 0x170(%rsp), %rdi
jmp 0x42cc8
movb $-0x1, %al
cmpl $0x1, %r13d
movq 0x170(%rsp), %rdi
movq 0x80(%rsp), %rcx
jne 0x42ce5
movl $0x1f, %r9d
testl %edx, %edx
movq 0xf8(%rsp), %r8
jne 0x42c5f
movl $0xf, %r9d
movq 0xe0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %r10, 0xb8(%rsp)
movq 0xe8(%rsp), %r8
movq 0xf0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq %rsi, %rdx
movq %r9, %r10
movq 0xb0(%rsp), %r9
movl %r9d, %eax
shll $0x8, %eax
movzwl %ax, %eax
leal -0x8(%r10), %esi
orq 0x30(%rsp), %rax
cmovnel %r10d, %esi
movq 0xb8(%rsp), %rax
cmovneq %r9, %rax
cmovneq %rdx, %r8
leal -0x4(%rsi), %edx
testb %r8b, %r8b
cmovnel %esi, %edx
cmoveq %rax, %r8
movl %r8d, %esi
shrl $0x4, %esi
leal -0x2(%rdx), %eax
testb $0xf, %r8b
cmovnel %edx, %eax
cmovneq %r8, %rsi
andl $0x3, %esi
cmpq $0x1, %rsi
sbbl $0x0, %eax
subl 0x100(%rsp), %eax
movl %eax, 0xc(%rsp)
addl %ecx, %eax
movl %eax, %eax
movq 0x10(%rsp), %rdx
movzbl (%rdx,%rax), %eax
leaq 0xf87b(%rip), %rcx      # 0x52555
movb (%rax,%rcx), %al
movq 0x80(%rsp), %rcx
movb %al, 0x30(%rsp)
cmpq $0x0, 0x88(%rsp)
je 0x42d9e
addl $0x20, %ecx
addq 0x10(%rsp), %rcx
movq 0xc0(%rsp), %rax
movq 0x8(%rax), %rdx
movb $0x1, %r8b
movl $0x1, %eax
movl $0x20, %edi
xorl %esi, %esi
movzbl -0x20(%rcx,%rdi), %r9d
cmpl $0x4, %r9d
je 0x42dda
movsbl (%rdx,%rdi), %r10d
cmpl %r9d, %r10d
je 0x42d5a
incl %r13d
cmpl $0x1, %r13d
ja 0x42d77
movl %edi, 0xc(%rsp)
movl %r9d, %r8d
movq %rcx, %r9
leaq 0xf806(%rip), %rcx      # 0x52555
movb (%r8,%rcx), %cl
movb %cl, 0x30(%rsp)
movq %r9, %rcx
movq 0x88(%rsp), %r9
cmpq %rax, %r9
seta %r8b
incq %rax
decq %rsi
incq %rdi
addq %rsi, %r9
jne 0x42d1b
testb $0x1, %r8b
movq 0x170(%rsp), %rdi
je 0x42d9e
movq 0x10(%rsp), %r13
movq 0x28(%rsp), %r8
movq 0x18(%rsp), %r10
movl 0x8(%rsp), %r9d
jmp 0x42f14
testq %rdi, %rdi
je 0x42e74
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movl 0xa0(%rsp), %ecx
movl %ecx, %eax
orq 0x78(%rsp), %rax
cmpl 0x178(%rsp), %ecx
jae 0x42e1e
movq %rax, 0x50(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x58(%rsp)
jmp 0x42e30
movq 0x88(%rsp), %rcx
subq %rax, %rcx
movq 0x38(%rsp), %rax
subq %rsi, %rax
movq 0x20(%rsp), %rsi
testb %sil, %sil
cmovneq %rcx, %r14
cmoveq %rax, %rbp
movq 0x10(%rsp), %r13
movq 0x28(%rsp), %r8
movq 0x18(%rsp), %r10
movl 0x8(%rsp), %r9d
movq 0xc8(%rsp), %rdi
jmp 0x42f21
movq %rax, 0x58(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0x50(%rsp), %rsi
callq 0x37976
cmpq 0xd8(%rsp), %rax
je 0x42e62
movq 0x10(%rsp), %r13
movq 0x28(%rsp), %r8
movq 0x18(%rsp), %r10
movl 0x8(%rsp), %r9d
movq 0x60(%rsp), %r11
jmp 0x42f14
movq 0x170(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x379dc
movq 0x160(%rsp), %rdi
movq 0x18(%rdi), %rsi
incq %rsi
callq 0x37910
movq 0x160(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rax
leaq (%rax,%rax,2), %rax
shlq $0x5, %rax
movl %r13d, -0x54(%rcx,%rax)
movl %r13d, -0x50(%rcx,%rax)
cmpl $0x1, %r13d
jne 0x42edd
addq %rax, %rcx
movq %rcx, %r13
leaq -0x48(%rcx), %rdi
leaq 0xc(%rsp), %rsi
callq 0x22bde
addq $-0x28, %r13
movb 0x30(%rsp), %al
movb %al, 0x50(%rsp)
movq %r13, %rdi
leaq 0x50(%rsp), %rsi
callq 0x2b5fc
movq 0x168(%rsp), %rdi
leaq 0xa4(%rsp), %rsi
callq 0x22bde
decl 0x98(%rsp)
movq 0x10(%rsp), %r13
movq 0x28(%rsp), %r8
movq 0x18(%rsp), %r10
movl 0x8(%rsp), %r9d
movq 0x60(%rsp), %r11
je 0x42f2f
movq 0xc8(%rsp), %rdi
movq 0x20(%rsp), %rsi
incl %r12d
cmpl 0x4c(%rsp), %r12d
jbe 0x42971
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop