// File: BenLangmead[P]bowtie/./aligner.h
// Function: PairedBWAlignerV1<EbwtRangeSource>::resolveOutstandingInRef(bool, std::pair<unsigned int, unsigned int> const&, unsigned int, Range const&)
bool resolveOutstandingInRef(const bool off1,
	                             const UPair& off,
	                             const TIndexOffU tlen,
	                             const Range& range)
	{
		assert(refs_->loaded());
		assert_lt(off.first, refs_->numRefs());
		// If matchRight is true, then we're trying to align the other
		// mate to the right of the already-aligned mate.  Otherwise,
		// to the left.
		bool matchRight = (off1 ? !doneFw_ : doneFw_);
		// Sequence and quals for mate to be matched
		bool fw = off1 ? fw2_ : fw1_; // whether outstanding mate is fw/rc
		if(doneFw_) fw = !fw;
		// 'seq' gets sequence of outstanding mate w/r/t the forward
		// reference strand
		const BTDnaString& seq  = fw ? (off1 ? patsrc_->bufb().patFw   :
		                                        patsrc_->bufa().patFw)  :
		                                (off1 ? patsrc_->bufb().patRc   :
		                                        patsrc_->bufa().patRc);
		// 'seq' gets qualities of outstanding mate w/r/t the forward
		// reference strand
		const BTString& qual = fw ? (off1 ? patsrc_->bufb().qual  :
		                                        patsrc_->bufa().qual) :
		                                (off1 ? patsrc_->bufb().qualRev  :
		                                        patsrc_->bufa().qualRev);
		uint32_t qlen = (uint32_t)seq.length();  // length of outstanding mate
		uint32_t alen = (off1 ? patsrc_->bufa().length() :
		                        patsrc_->bufb().length());
		int minins = minInsert_;
		int maxins = maxInsert_;
		// Let minins and maxins be the minimum and maximum insert
		// lengths once we account for the trimming applied to the
		// mates.  The idea is that the insert constraint placed by
		// the user applies to the raw reads, not the trimmed reads.
		if(fw1_) {
			minins = max<int>(0, minins - patsrc_->bufa().trimmed5);
			maxins = max<int>(0, maxins - patsrc_->bufa().trimmed5);
		} else {
			minins = max<int>(0, minins - patsrc_->bufa().trimmed3);
			maxins = max<int>(0, maxins - patsrc_->bufa().trimmed3);
		}
		if(fw2_) {
			minins = max<int>(0, minins - patsrc_->bufb().trimmed3);
			maxins = max<int>(0, maxins - patsrc_->bufb().trimmed3);
		} else {
			minins = max<int>(0, minins - patsrc_->bufb().trimmed5);
			maxins = max<int>(0, maxins - patsrc_->bufb().trimmed5);
		}
		// Sanity check minins and maxins
		assert_geq(minins, 0);
		assert_geq(maxins, 0);
		assert_geq(maxins, minins);
		// Don't even try if either of the mates is longer than the
		// maximum insert size.
		if((uint32_t)maxins <= max(qlen, alen)) {
			return false;
		}
		const TIndexOffU tidx = off.first;
		const TIndexOffU toff = off.second;
		// Set begin/end to be a range of all reference
		// positions that are legally permitted to be involved in
		// the alignment of the outstanding mate.
		//
		// Note that one of the constraints imposed on which positions
		// go into this range is that the opposite mate cannot be
		// contained entirely within the anchor mate, or vice versa.
		TIndexOffU begin, end;
		TIndexOffU insDiff = maxins - minins;
		if(matchRight) {
			end = toff + maxins;
			// Adding 1 disallows the opposite from starting at the
			// left-hand edge of the anchor mate.
			begin = toff + (gAllowMateContainment ? 0 : 1);
			// We can also add a bit more if qlen is less than alen,
			// since we're requiring that opposite not be contained
			// within anchor.
			if(!gAllowMateContainment && qlen < alen) {
				begin += alen-qlen;
			}
			if(end > insDiff + qlen) {
				begin = max<TIndexOffU>(begin, end - insDiff - qlen);
			}
			end = min<TIndexOffU>(refs_->approxLen(tidx), end);
			begin = min<TIndexOffU>(refs_->approxLen(tidx), begin);
		} else {
			if(toff + alen < (TIndexOffU)maxins) {
				begin = 0;
			} else {
				begin = toff + alen - maxins;
			}
			uint32_t mi = min<uint32_t>(alen, qlen);
			if(gAllowMateContainment) {
				end = toff + alen;
			} else {
				end = toff + mi - 1;
				end = min<TIndexOffU>(end, toff + alen - minins + qlen - 1);
				if(toff + alen + qlen < (uint32_t)minins + 1) end = 0;
			}
		}
		// Check if there's not enough space in the range to fit an
		// alignment for the outstanding mate.
		if(end - begin < qlen) return false;
		EList<Range> ranges;
		EList<TIndexOffU> offs;
		refAligner_->find(1, tidx, refs_, seq, qual, begin, end, ranges,
		                  offs, doneFw_ ? &pairs_rc_ : &pairs_fw_,
		                  toff, fw);
		assert_eq(ranges.size(), offs.size());
		for(size_t i = 0; i < ranges.size(); i++) {
			Range& r = ranges[i];
			// Fill in fields that aren't filled in by the RefAligner
			r.fw = fw;
			r.cost |= (r.stratum << 14);
			r.mate1 = !off1;
			const TIndexOffU result = offs[i];
			// NOTE: We have no idea what the BW range delimiting the
			// opposite hit is, because we were operating entirely in
			// reference space when we found it.  For now, we just copy
			// the known range's top and bot for now.
			r.top = range.top;
			r.bot = range.bot;
			bool ebwtLFw = matchRight ? range.ebwt->fw() : true;
			bool ebwtRFw = matchRight ? true : range.ebwt->fw();
			if(report(
				matchRight ? range : r, // range for upstream mate
				matchRight ? r : range, // range for downstream mate
				tidx,                   // ref idx
				matchRight ? toff : result, // upstream offset
				matchRight ? result : toff, // downstream offset
				tlen,       // length of ref
				!doneFw_,   // whether the pair is being mapped to fw strand
				ebwtLFw,
				ebwtRFw)) return true;
		}
		return false;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movb %sil, %al
movq %rdi, -0x28(%rbp)
andb $0x1, %al
movb %al, -0x29(%rbp)
movq %rdx, -0x38(%rbp)
movl %ecx, -0x3c(%rbp)
movq %r8, -0x48(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x150(%rbp)
testb $0x1, -0x29(%rbp)
je 0x61d2c
movq -0x150(%rbp), %rax
movb 0x68(%rax), %al
xorb $-0x1, %al
movb %al, -0x151(%rbp)
jmp 0x61d3c
movq -0x150(%rbp), %rax
movb 0x68(%rax), %al
movb %al, -0x151(%rbp)
movb -0x151(%rbp), %al
andb $0x1, %al
movb %al, -0x49(%rbp)
testb $0x1, -0x29(%rbp)
je 0x61d62
movq -0x150(%rbp), %rax
movb 0xb5(%rax), %al
movb %al, -0x152(%rbp)
jmp 0x61d75
movq -0x150(%rbp), %rax
movb 0xb4(%rax), %al
movb %al, -0x152(%rbp)
movq -0x150(%rbp), %rax
movb -0x152(%rbp), %cl
andb $0x1, %cl
movb %cl, -0x4a(%rbp)
testb $0x1, 0x68(%rax)
je 0x61d98
movb -0x4a(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x4a(%rbp)
testb $0x1, -0x4a(%rbp)
je 0x61de4
testb $0x1, -0x29(%rbp)
je 0x61dbd
movq -0x150(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x38890
movq %rax, -0x160(%rbp)
jmp 0x61dd4
movq -0x150(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x37f00
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x168(%rbp)
jmp 0x61e30
testb $0x1, -0x29(%rbp)
je 0x61e07
movq -0x150(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x38890
addq $0x30, %rax
movq %rax, -0x170(%rbp)
jmp 0x61e22
movq -0x150(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x37f00
addq $0x30, %rax
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x58(%rbp)
testb $0x1, -0x4a(%rbp)
je 0x61e8f
testb $0x1, -0x29(%rbp)
je 0x61e64
movq -0x150(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x38890
addq $0x60, %rax
movq %rax, -0x178(%rbp)
jmp 0x61e7f
movq -0x150(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x37f00
addq $0x60, %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x180(%rbp)
jmp 0x61edf
testb $0x1, -0x29(%rbp)
je 0x61eb4
movq -0x150(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x38890
addq $0xf0, %rax
movq %rax, -0x188(%rbp)
jmp 0x61ed1
movq -0x150(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x37f00
addq $0xf0, %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
callq 0x2ef90
movl %eax, -0x64(%rbp)
testb $0x1, -0x29(%rbp)
je 0x61f1d
movq -0x150(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x37f00
movq %rax, %rdi
callq 0x499c0
movq %rax, -0x190(%rbp)
jmp 0x61f3c
movq -0x150(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x38890
movq %rax, %rdi
callq 0x499c0
movq %rax, -0x190(%rbp)
movq -0x150(%rbp), %rax
movq -0x190(%rbp), %rcx
movl %ecx, -0x68(%rbp)
movl 0x98(%rax), %ecx
movl %ecx, -0x6c(%rbp)
movl 0x9c(%rax), %ecx
movl %ecx, -0x70(%rbp)
testb $0x1, 0xb4(%rax)
je 0x61ffc
movq -0x150(%rbp), %rax
movl $0x0, -0x74(%rbp)
movl -0x6c(%rbp), %ecx
movl %ecx, -0x198(%rbp)
movq 0x58(%rax), %rdi
callq 0x37f00
movq %rax, %rcx
movl -0x198(%rbp), %eax
subl 0x1a8(%rcx), %eax
movl %eax, -0x78(%rbp)
leaq -0x74(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x31970
movq %rax, %rcx
movq -0x150(%rbp), %rax
movl (%rcx), %ecx
movl %ecx, -0x6c(%rbp)
movl $0x0, -0x7c(%rbp)
movl -0x70(%rbp), %ecx
movl %ecx, -0x194(%rbp)
movq 0x58(%rax), %rdi
callq 0x37f00
movq %rax, %rcx
movl -0x194(%rbp), %eax
subl 0x1a8(%rcx), %eax
movl %eax, -0x80(%rbp)
leaq -0x7c(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x31970
movl (%rax), %eax
movl %eax, -0x70(%rbp)
jmp 0x6209f
movq -0x150(%rbp), %rax
movl $0x0, -0x84(%rbp)
movl -0x6c(%rbp), %ecx
movl %ecx, -0x1a0(%rbp)
movq 0x58(%rax), %rdi
callq 0x37f00
movq %rax, %rcx
movl -0x1a0(%rbp), %eax
subl 0x1ac(%rcx), %eax
movl %eax, -0x88(%rbp)
leaq -0x84(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x31970
movq %rax, %rcx
movq -0x150(%rbp), %rax
movl (%rcx), %ecx
movl %ecx, -0x6c(%rbp)
movl $0x0, -0x8c(%rbp)
movl -0x70(%rbp), %ecx
movl %ecx, -0x19c(%rbp)
movq 0x58(%rax), %rdi
callq 0x37f00
movq %rax, %rcx
movl -0x19c(%rbp), %eax
subl 0x1ac(%rcx), %eax
movl %eax, -0x90(%rbp)
leaq -0x8c(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x31970
movl (%rax), %eax
movl %eax, -0x70(%rbp)
movq -0x150(%rbp), %rax
testb $0x1, 0xb5(%rax)
je 0x6215b
movq -0x150(%rbp), %rax
movl $0x0, -0x94(%rbp)
movl -0x6c(%rbp), %ecx
movl %ecx, -0x1a8(%rbp)
movq 0x58(%rax), %rdi
callq 0x38890
movq %rax, %rcx
movl -0x1a8(%rbp), %eax
subl 0x1ac(%rcx), %eax
movl %eax, -0x98(%rbp)
leaq -0x94(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x31970
movq %rax, %rcx
movq -0x150(%rbp), %rax
movl (%rcx), %ecx
movl %ecx, -0x6c(%rbp)
movl $0x0, -0x9c(%rbp)
movl -0x70(%rbp), %ecx
movl %ecx, -0x1a4(%rbp)
movq 0x58(%rax), %rdi
callq 0x38890
movq %rax, %rcx
movl -0x1a4(%rbp), %eax
subl 0x1ac(%rcx), %eax
movl %eax, -0xa0(%rbp)
leaq -0x9c(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x31970
movl (%rax), %eax
movl %eax, -0x70(%rbp)
jmp 0x621fe
movq -0x150(%rbp), %rax
movl $0x0, -0xa4(%rbp)
movl -0x6c(%rbp), %ecx
movl %ecx, -0x1b0(%rbp)
movq 0x58(%rax), %rdi
callq 0x38890
movq %rax, %rcx
movl -0x1b0(%rbp), %eax
subl 0x1a8(%rcx), %eax
movl %eax, -0xa8(%rbp)
leaq -0xa4(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x31970
movq %rax, %rcx
movq -0x150(%rbp), %rax
movl (%rcx), %ecx
movl %ecx, -0x6c(%rbp)
movl $0x0, -0xac(%rbp)
movl -0x70(%rbp), %ecx
movl %ecx, -0x1ac(%rbp)
movq 0x58(%rax), %rdi
callq 0x38890
movq %rax, %rcx
movl -0x1ac(%rbp), %eax
subl 0x1a8(%rcx), %eax
movl %eax, -0xb0(%rbp)
leaq -0xac(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x31970
movl (%rax), %eax
movl %eax, -0x70(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0x1b4(%rbp)
leaq -0x64(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x628a0
movq %rax, %rcx
movl -0x1b4(%rbp), %eax
cmpl (%rcx), %eax
ja 0x6222a
movb $0x0, -0x19(%rbp)
jmp 0x6287c
movq -0x38(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xb4(%rbp)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0xb8(%rbp)
movl -0x70(%rbp), %eax
subl -0x6c(%rbp), %eax
movl %eax, -0xc4(%rbp)
testb $0x1, -0x49(%rbp)
je 0x62367
movl -0xb8(%rbp), %eax
addl -0x70(%rbp), %eax
movl %eax, -0xc0(%rbp)
movl -0xb8(%rbp), %eax
movb 0x490bb(%rip), %sil     # 0xab330
movl $0x1, %ecx
xorl %edx, %edx
testb $0x1, %sil
cmovnel %edx, %ecx
addl %ecx, %eax
movl %eax, -0xbc(%rbp)
testb $0x1, 0x4909e(%rip)     # 0xab330
jne 0x622ae
movl -0x64(%rbp), %eax
cmpl -0x68(%rbp), %eax
jae 0x622ae
movl -0x68(%rbp), %eax
subl -0x64(%rbp), %eax
addl -0xbc(%rbp), %eax
movl %eax, -0xbc(%rbp)
movl -0xc0(%rbp), %eax
movl -0xc4(%rbp), %ecx
addl -0x64(%rbp), %ecx
cmpl %ecx, %eax
jbe 0x622f1
movl -0xc0(%rbp), %eax
subl -0xc4(%rbp), %eax
subl -0x64(%rbp), %eax
movl %eax, -0xc8(%rbp)
leaq -0xbc(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x628a0
movl (%rax), %eax
movl %eax, -0xbc(%rbp)
movq -0x150(%rbp), %rax
movq 0x50(%rax), %rdi
movl -0xb4(%rbp), %esi
callq 0x628e0
movl %eax, -0xcc(%rbp)
leaq -0xcc(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x26c20
movq %rax, %rcx
movq -0x150(%rbp), %rax
movl (%rcx), %ecx
movl %ecx, -0xc0(%rbp)
movq 0x50(%rax), %rdi
movl -0xb4(%rbp), %esi
callq 0x628e0
movl %eax, -0xd0(%rbp)
leaq -0xd0(%rbp), %rdi
leaq -0xbc(%rbp), %rsi
callq 0x26c20
movl (%rax), %eax
movl %eax, -0xbc(%rbp)
jmp 0x6242e
movl -0xb8(%rbp), %eax
addl -0x68(%rbp), %eax
cmpl -0x70(%rbp), %eax
jae 0x62381
movl $0x0, -0xbc(%rbp)
jmp 0x62393
movl -0xb8(%rbp), %eax
addl -0x68(%rbp), %eax
subl -0x70(%rbp), %eax
movl %eax, -0xbc(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x64(%rbp), %rsi
callq 0x26c20
movl (%rax), %eax
movl %eax, -0xd4(%rbp)
testb $0x1, 0x48f81(%rip)     # 0xab330
je 0x623c2
movl -0xb8(%rbp), %eax
addl -0x68(%rbp), %eax
movl %eax, -0xc0(%rbp)
jmp 0x6242c
movl -0xb8(%rbp), %eax
addl -0xd4(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xc0(%rbp)
movl -0xb8(%rbp), %eax
addl -0x68(%rbp), %eax
subl -0x6c(%rbp), %eax
addl -0x64(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xd8(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x26c20
movl (%rax), %eax
movl %eax, -0xc0(%rbp)
movl -0xb8(%rbp), %eax
addl -0x68(%rbp), %eax
addl -0x64(%rbp), %eax
movl -0x6c(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jae 0x6242a
movl $0x0, -0xc0(%rbp)
jmp 0x6242c
jmp 0x6242e
movl -0xc0(%rbp), %eax
subl -0xbc(%rbp), %eax
cmpl -0x64(%rbp), %eax
jae 0x62448
movb $0x0, -0x19(%rbp)
jmp 0x6287c
leaq -0xf8(%rbp), %rdi
callq 0x5fe00
leaq -0x118(%rbp), %rdi
callq 0x31f40
jmp 0x62462
movq -0x150(%rbp), %rax
movq 0x78(%rax), %rcx
movq %rcx, -0x1e8(%rbp)
movl -0xb4(%rbp), %ecx
movq %rcx, -0x1e0(%rbp)
movq 0x50(%rax), %rcx
movq %rcx, -0x1d8(%rbp)
movq -0x58(%rbp), %rcx
movq %rcx, -0x1d0(%rbp)
movq -0x60(%rbp), %rcx
movq %rcx, -0x1c8(%rbp)
movl -0xbc(%rbp), %ecx
movl %ecx, -0x1bc(%rbp)
movl -0xc0(%rbp), %ecx
movl %ecx, -0x1b8(%rbp)
testb $0x1, 0x68(%rax)
je 0x624d6
movq -0x150(%rbp), %rax
addq $0x2278, %rax           # imm = 0x2278
movq %rax, -0x1f0(%rbp)
jmp 0x624ea
movq -0x150(%rbp), %rax
addq $0x2248, %rax           # imm = 0x2248
movq %rax, -0x1f0(%rbp)
movq -0x1c8(%rbp), %r9
movq -0x1d0(%rbp), %r8
movq -0x1d8(%rbp), %rcx
movq -0x1e0(%rbp), %rdx
movq -0x1e8(%rbp), %rdi
movl -0x1bc(%rbp), %r10d
movl -0x1b8(%rbp), %r11d
movq -0x1f0(%rbp), %rbx
movl -0xb8(%rbp), %r14d
movq (%rdi), %rax
movq 0x10(%rax), %rax
movzbl -0x4a(%rbp), %r15d
andl $0x1, %r15d
movq %rsp, %rsi
movl %r15d, 0x30(%rsi)
movl %r14d, 0x28(%rsi)
movq %rbx, 0x20(%rsi)
leaq -0x118(%rbp), %rbx
movq %rbx, 0x18(%rsi)
leaq -0xf8(%rbp), %rbx
movq %rbx, 0x10(%rsi)
movl %r11d, 0x8(%rsi)
movl %r10d, (%rsi)
movl $0x1, %esi
callq *%rax
jmp 0x6256e
movq $0x0, -0x130(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x1f8(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0x5a130
movq %rax, %rcx
movq -0x1f8(%rbp), %rax
cmpq %rcx, %rax
jae 0x62846
movq -0x130(%rbp), %rsi
leaq -0xf8(%rbp), %rdi
callq 0x62910
movq %rax, -0x200(%rbp)
jmp 0x625c2
movq -0x200(%rbp), %rax
movq %rax, -0x138(%rbp)
movb -0x4a(%rbp), %cl
movq -0x138(%rbp), %rax
andb $0x1, %cl
movb %cl, 0x14(%rax)
movq -0x138(%rbp), %rax
movl 0x8(%rax), %ecx
movl 0xc(%rax), %edx
shll $0xe, %edx
orl %edx, %ecx
movw %cx, 0x8(%rax)
movb -0x29(%rbp), %cl
notb %cl
movq -0x138(%rbp), %rax
andb $0x1, %cl
movb %cl, 0x15(%rax)
movq -0x130(%rbp), %rsi
leaq -0x118(%rbp), %rdi
callq 0x24930
movq %rax, -0x208(%rbp)
jmp 0x62624
movq -0x208(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x13c(%rbp)
movq -0x48(%rbp), %rax
movl (%rax), %ecx
movq -0x138(%rbp), %rax
movl %ecx, (%rax)
movq -0x48(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x138(%rbp), %rax
movl %ecx, 0x4(%rax)
testb $0x1, -0x49(%rbp)
je 0x6266e
movq -0x48(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x402a0
movb %al, -0x209(%rbp)
jmp 0x62678
movb $0x1, %al
movb %al, -0x209(%rbp)
jmp 0x62678
movb -0x209(%rbp), %al
andb $0x1, %al
movb %al, -0x13d(%rbp)
testb $0x1, -0x49(%rbp)
je 0x62696
movb $0x1, %al
movb %al, -0x20a(%rbp)
jmp 0x626a9
movq -0x48(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x402a0
movb %al, -0x20a(%rbp)
movb -0x20a(%rbp), %al
andb $0x1, %al
movb %al, -0x13e(%rbp)
testb $0x1, -0x49(%rbp)
je 0x626ca
movq -0x48(%rbp), %rax
movq %rax, -0x218(%rbp)
jmp 0x626d8
movq -0x138(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x220(%rbp)
testb $0x1, -0x49(%rbp)
je 0x626fc
movq -0x138(%rbp), %rax
movq %rax, -0x228(%rbp)
jmp 0x62707
movq -0x48(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x238(%rbp)
movl -0xb4(%rbp), %eax
movl %eax, -0x22c(%rbp)
testb $0x1, -0x49(%rbp)
je 0x62735
movl -0xb8(%rbp), %eax
movl %eax, -0x23c(%rbp)
jmp 0x62741
movl -0x13c(%rbp), %eax
movl %eax, -0x23c(%rbp)
movl -0x23c(%rbp), %eax
movl %eax, -0x240(%rbp)
testb $0x1, -0x49(%rbp)
je 0x62761
movl -0x13c(%rbp), %eax
movl %eax, -0x244(%rbp)
jmp 0x6276d
movl -0xb8(%rbp), %eax
movl %eax, -0x244(%rbp)
movl -0x240(%rbp), %r8d
movl -0x22c(%rbp), %ecx
movq -0x238(%rbp), %rdx
movq -0x220(%rbp), %rsi
movq -0x150(%rbp), %rdi
movl -0x244(%rbp), %r9d
movl -0x3c(%rbp), %r10d
movb 0x68(%rdi), %r11b
notb %r11b
movzbl -0x13d(%rbp), %ebx
movzbl -0x13e(%rbp), %r14d
andl $0x1, %r14d
movq %rsp, %rax
movl %r14d, 0x18(%rax)
andl $0x1, %ebx
movl %ebx, 0x10(%rax)
movzbl %r11b, %r11d
andl $0x1, %r11d
movl %r11d, 0x8(%rax)
movl %r10d, (%rax)
callq 0x62930
movb %al, -0x245(%rbp)
jmp 0x627dd
movb -0x245(%rbp), %al
testb $0x1, %al
jne 0x627e9
jmp 0x6282d
movb $0x1, -0x19(%rbp)
movl $0x1, -0x144(%rbp)
jmp 0x62854
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x120(%rbp)
movl %eax, -0x124(%rbp)
jmp 0x6286e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x120(%rbp)
movl %eax, -0x124(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x322a0
jmp 0x6286e
jmp 0x6282f
movq -0x130(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x130(%rbp)
jmp 0x62579
movb $0x0, -0x19(%rbp)
movl $0x1, -0x144(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x322a0
leaq -0xf8(%rbp), %rdi
callq 0x5fe40
jmp 0x6287c
leaq -0xf8(%rbp), %rdi
callq 0x5fe40
jmp 0x6288f
movb -0x19(%rbp), %al
andb $0x1, %al
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq -0x120(%rbp), %rdi
callq 0xab60
nopl (%rax,%rax)