// File: /workspace/github_cpp_makefile_star2_O3/auton1[P]viterbi/entry_filters.cpp
// Function: entry::filter_sites_by_BED_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
void entry::filter_sites_by_BED_file(const string &bed_file, bool BED_exclude)
{
	// Filter sites depending on positions in a BED file.
	if (passed_filters == false)
		return;

	if (bed_file == "")
		return;

	int pos1, pos2, idx;
	if (lims.empty())
	{
		ifstream BED(bed_file.c_str());
		if (!BED.is_open())
			LOG.error("Could not open BED file: " + bed_file);

		string chr;
		unsigned int N_chr=chr_to_idx.size();
		BED.ignore(numeric_limits<streamsize>::max(), '\n');	// Ignore header
		unsigned int N_BED_entries=0;
		while (!BED.eof())
		{
			BED >> chr >> pos1 >> pos2;
			BED.ignore(numeric_limits<streamsize>::max(), '\n');

			if (chr_to_idx.find(chr) == chr_to_idx.end())
			{
				N_chr++;
				chr_to_idx[chr] = (N_chr-1);
				lims.resize(N_chr);
			}

			idx = chr_to_idx[chr];
			lims[idx].push_back(make_pair(pos1,pos2));
			N_BED_entries++;
		}
		BED.close();

		LOG.printLOG("\tRead " + output_log::int2str(N_BED_entries) + " BED file entries.\n");

		for (unsigned int ui=0; ui<lims.size(); ui++)
			sort(lims[ui].begin(), lims[ui].end());
	}
	vector<unsigned int> min_ui(lims.size(), 0);
	parse_basic_entry(true);

	pos1 = POS;
	pos2 = pos1;
	unsigned int N_alleles = get_N_alleles();
	for (int i=0; i<(int)N_alleles; i++)
		pos2 = max(pos2, (int)(pos1 + get_allele(i).length() - 1));

	if (BED_exclude == false)
	{	// Exclude sites not in BED file
		if (chr_to_idx.find(CHROM) == chr_to_idx.end())
			passed_filters = false;
		else
		{
			idx = chr_to_idx[CHROM];
			bool found=false;
			unsigned int max_ui = lims[idx].size();
			for (unsigned int ui=min_ui[idx]; ui<max_ui; ui++)
			{	// No need to start this loop at zero every time...
				if (((pos1 > lims[idx][ui].first) && (pos1 <= lims[idx][ui].second)) ||	// Start pos inside bin
					((pos2 > lims[idx][ui].first) && (pos2 <= lims[idx][ui].second)) ||	// End pos inside bin
					((pos1 <= lims[idx][ui].first) && (pos2 >= lims[idx][ui].second)))	// Variant spans bin
				{
					found=true;
					break;
				}
				else if (pos1 > lims[idx][ui].second)
					min_ui[idx] = ui+1;
			}
			if (found == false)
				passed_filters = false;
		}
	}
	else
	{	// Exclude sites in BED file
		if (chr_to_idx.find(CHROM) != chr_to_idx.end())
		{
			idx = chr_to_idx[CHROM];
			bool found=false;
			unsigned int max_ui = lims[idx].size();
			for (unsigned int ui=min_ui[idx]; ui<max_ui; ui++)
			{	// No need to start this loop at zero every time...
				if (((pos1 > lims[idx][ui].first) && (pos1 <= lims[idx][ui].second)) ||	// Start pos inside bin
					((pos2 > lims[idx][ui].first) && (pos2 <= lims[idx][ui].second)) ||	// End pos inside bin
					((pos1 <= lims[idx][ui].first) && (pos2 >= lims[idx][ui].second)))	// Variant spans bin
				{
					found=true;
					break;
				}
				else if (pos1 > lims[idx][ui].second)
					min_ui[idx] = ui+1;
			}
			if (found == true)
				passed_filters = false;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
cmpb $0x0, 0xc(%rdi)
je 0x2aab6
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xfed7(%rip), %rsi      # 0x39ed7
movq %r14, %rdi
callq 0x50e0
testl %eax, %eax
je 0x2aab6
movq 0x20371(%rip), %rax     # 0x4a388
movq 0x20372(%rip), %rsi     # 0x4a390
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
cmpq %rsi, %rax
movq %rbx, 0x20(%rsp)
jne 0x2a4de
movq (%r14), %rsi
leaq 0x110(%rsp), %rdi
movl $0x8, %edx
callq 0x5820
leaq 0x188(%rsp), %rdi
callq 0x50b0
testb %al, %al
jne 0x2a0a2
leaq 0xfe22(%rip), %rsi      # 0x39e85
leaq 0xf0(%rsp), %rdi
movq %r14, %rdx
callq 0xb777
leaq 0x1f42e(%rip), %rdi     # 0x494a8
leaq 0xf0(%rsp), %rsi
movl $0x1, %edx
callq 0x36ec8
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a0a2
callq 0x5410
movl %ebp, 0x4c(%rsp)
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x202bc(%rip), %r14     # 0x4a380
leaq 0x110(%rsp), %rdi
movabsq $0x7fffffffffffffff, %rsi # imm = 0x7FFFFFFFFFFFFFFF
movl $0xa, %edx
callq 0x5260
movq 0x110(%rsp), %rax
movq -0x18(%rax), %rax
xorl %r15d, %r15d
testb $0x2, 0x130(%rsp,%rax)
jne 0x2a203
xorl %r15d, %r15d
leaq 0x110(%rsp), %r12
leaq 0x90(%rsp), %r13
leaq 0x4(%rsp), %rbx
leaq 0x2023c(%rip), %rbp     # 0x4a358
movq %r12, %rdi
movq %r13, %rsi
callq 0x5590
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5230
movq %rax, %rdi
movq %rsp, %rsi
callq 0x5230
movq %r12, %rdi
movabsq $0x7fffffffffffffff, %rsi # imm = 0x7FFFFFFFFFFFFFFF
movl $0xa, %edx
callq 0x5260
movq %rbp, %rdi
movq %r13, %rsi
callq 0x18140
leaq 0x201fa(%rip), %rcx     # 0x4a360
cmpq %rcx, %rax
jne 0x2a18b
movq %rbp, %rdi
movq %r13, %rsi
callq 0x177e8
movl %r14d, (%rax)
incl %r14d
leaq 0x20205(%rip), %rdi     # 0x4a388
movq %r14, %rsi
callq 0x2c374
movq %rbp, %rdi
movq %r13, %rsi
callq 0x177e8
movslq (%rax), %rax
movq 0x201e8(%rip), %rdx     # 0x4a388
leaq (%rax,%rax,4), %rsi
shlq $0x4, %rsi
leaq (%rdx,%rsi), %rdi
movl 0x4(%rsp), %ecx
movl (%rsp), %eax
shlq $0x20, %rax
orq %rcx, %rax
movq %rax, 0x28(%rsp)
movq 0x30(%rdx,%rsi), %rcx
movq 0x40(%rdx,%rsi), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0x2a1dc
movq %rax, (%rcx)
addq $0x8, 0x30(%rdi)
jmp 0x2a1e6
leaq 0x28(%rsp), %rsi
callq 0x2cfc6
incl %r15d
movq 0x110(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x130(%rsp,%rax)
je 0x2a11c
leaq 0x110(%rsp), %rdi
callq 0x50a0
leaq 0x50(%rsp), %rdi
movl %r15d, %esi
callq 0x37288
leaq 0xfc7b(%rip), %rcx      # 0x39e9f
leaq 0x50(%rsp), %rdi
movl $0x6, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x54d0
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2a25f
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2a266
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xfc1d(%rip), %rsi      # 0x39ea6
callq 0x5870
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2a2bb
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x2a2c2
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x70(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1f1c3(%rip), %rdi     # 0x494a8
callq 0x36e72
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a2f9
callq 0x5410
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a308
callq 0x5410
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a31b
callq 0x5410
movq 0x2006e(%rip), %rcx     # 0x4a390
movq 0x2005f(%rip), %rax     # 0x4a388
cmpq %rax, %rcx
movabsq $-0x3333333333333333, %rdi # imm = 0xCCCCCCCCCCCCCCCD
je 0x2a496
movl $0x1, %ebp
xorl %edx, %edx
leaq (%rdx,%rdx,4), %rdx
shlq $0x4, %rdx
movq 0x10(%rax,%rdx), %r15
movq 0x30(%rax,%rdx), %rsi
cmpq %rsi, %r15
je 0x2a47b
movq 0x18(%rax,%rdx), %rdi
movq 0x20(%rax,%rdx), %r13
movq 0x28(%rax,%rdx), %r14
movq 0x38(%rax,%rdx), %r12
movq 0x40(%rax,%rdx), %rcx
movq 0x48(%rax,%rdx), %rbx
movq %r15, 0x28(%rsp)
movq %rdi, 0x8(%rsp)
movq %rdi, 0x30(%rsp)
movq %r13, 0x38(%rsp)
movq %r14, 0x40(%rsp)
movq %rsi, 0x50(%rsp)
movq %r12, 0x58(%rsp)
movq %rcx, 0x10(%rsp)
movq %rcx, 0x60(%rsp)
movq %rbx, 0x68(%rsp)
movq %rbx, %rax
subq %r14, %rax
shrq $0x3, %rax
cmpq $0x1, %rbx
adcq $-0x1, %rax
shlq $0x6, %rax
movq %rsi, 0x18(%rsp)
movq %rsi, %rcx
subq %r12, %rcx
sarq $0x3, %rcx
movq %r13, %rdx
subq %r15, %rdx
sarq $0x3, %rdx
addq %rcx, %rdx
addq %rax, %rdx
bsrq %rdx, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
leaq 0x28(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x2d1be
movq %r15, 0xd0(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq %r13, 0xe0(%rsp)
movq %r14, 0xe8(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq %r12, 0xb8(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq %rbx, 0xc8(%rsp)
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2d38e
movq 0x1ff26(%rip), %rcx     # 0x4a390
movq 0x1ff17(%rip), %rax     # 0x4a388
movabsq $-0x3333333333333333, %rdi # imm = 0xCCCCCCCCCCCCCCCD
movl %ebp, %edx
movq %rcx, %rsi
subq %rax, %rsi
sarq $0x4, %rsi
imulq %rdi, %rsi
incl %ebp
cmpq %rdx, %rsi
ja 0x2a343
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x2a4b0
callq 0x5410
leaq 0x110(%rsp), %rdi
callq 0x58a0
movq 0x1fecc(%rip), %rsi     # 0x4a390
movq 0x1febd(%rip), %rax     # 0x4a388
movq 0x20(%rsp), %rbx
movl 0x4c(%rsp), %ebp
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
subq %rax, %rsi
sarq $0x4, %rsi
imulq %rcx, %rsi
leaq 0x110(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x28(%rsp), %rdi
leaq 0x50(%rsp), %rcx
callq 0x24116
movl %ebp, %r13d
movq (%rbx), %rax
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq *0x10(%rax)
movl 0x400(%rbx), %eax
movl %eax, 0x4(%rsp)
movl %eax, (%rsp)
movq %rbx, %rdi
callq 0x22eb0
movl %eax, %ebp
testl %eax, %eax
jle 0x2a58f
xorl %r14d, %r14d
leaq 0x120(%rsp), %rbx
leaq 0x110(%rsp), %r15
movl 0x4(%rsp), %r12d
movq %r15, %rdi
movq 0x20(%rsp), %rsi
movl %r14d, %edx
callq 0x21f48
movl 0x118(%rsp), %eax
addl %r12d, %eax
decl %eax
movl (%rsp), %ecx
cmpl %eax, %ecx
cmovgl %ecx, %eax
movl %eax, (%rsp)
movq 0x110(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2a587
callq 0x5410
incl %r14d
cmpl %r14d, %ebp
jne 0x2a549
movq 0x20(%rsp), %rax
leaq 0x3e0(%rax), %r14
testb %r13b, %r13b
je 0x2a82a
leaq 0x1fdad(%rip), %rdi     # 0x4a358
movq %r14, %rsi
callq 0x18140
leaq 0x1fda6(%rip), %rcx     # 0x4a360
cmpq %rcx, %rax
je 0x2aaa7
leaq 0x1fd8e(%rip), %rdi     # 0x4a358
movq %r14, %rsi
callq 0x177e8
movslq (%rax), %r9
movq 0x1fdac(%rip), %rax     # 0x4a388
leaq (%r9,%r9,4), %rdx
shlq $0x4, %rdx
movq 0x48(%rax,%rdx), %rsi
movq 0x28(%rax,%rdx), %rcx
movl %esi, %edi
subl %ecx, %edi
shrl $0x3, %edi
cmpq $0x1, %rsi
adcl $-0x1, %edi
shll $0x6, %edi
movq 0x30(%rax,%rdx), %r8
subq 0x38(%rax,%rdx), %r8
shrq $0x3, %r8
movq 0x10(%rax,%rdx), %r10
movq 0x20(%rax,%rdx), %rsi
subq %r10, %rsi
shrq $0x3, %rsi
addl %r8d, %esi
addl %edi, %esi
movq 0x28(%rsp), %rdi
movq %r9, 0x18(%rsp)
movl (%rdi,%r9,4), %r12d
cmpl %r12d, %esi
jbe 0x2aab1
addq %rdx, %rax
movq %r10, %rdx
subq 0x18(%rax), %rdx
leaq (%rdx,%r12,8), %r9
sarq $0x3, %rdx
movq %r10, 0x8(%rsp)
leaq (%r10,%r12,8), %r11
addq $0x4, %r11
subl %r12d, %esi
addq %r12, %rdx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq %r12, 0x10(%rsp)
movl 0x4(%rsp), %ebp
movq %rdx, %r10
addq %r15, %r10
js 0x2a6c8
cmpq $0x40, %r10
jae 0x2a6f9
movl -0x4(%r11,%r15,8), %eax
cmpl %eax, %ebp
jle 0x2a694
cmpl (%r11,%r15,8), %ebp
jle 0x2aa9e
movl -0x4(%r11,%r15,8), %eax
movl (%rsp), %r10d
cmpl %eax, %r10d
jle 0x2a6ac
cmpl (%r11,%r15,8), %r10d
jle 0x2aa9e
movl -0x4(%r11,%r15,8), %eax
cmpl %eax, %ebp
jg 0x2a6ba
cmpl (%r11,%r15,8), %r10d
jge 0x2aa9e
movq 0x8(%rsp), %rax
leaq (%rax,%r12,8), %rax
jmp 0x2a7f9
movq %r10, %r13
sarq $0x6, %r13
movq (%rcx,%r13,8), %rax
movl %r10d, %ebx
andl $0x3f, %ebx
movl %ebx, %r8d
cmpl (%rax,%r8,8), %ebp
jle 0x2a73e
movl %r10d, %r8d
andl $0x3f, %r8d
cmpl 0x4(%rax,%r8,8), %ebp
jle 0x2aa9e
movl (%rsp), %eax
jmp 0x2a72f
movq %r10, %r13
shrq $0x6, %r13
movq (%rcx,%r13,8), %rax
movl %r10d, %r8d
andl $0x3f, %r8d
cmpl (%rax,%r8,8), %ebp
jle 0x2a795
movl %r10d, %r8d
andl $0x3f, %r8d
cmpl 0x4(%rax,%r8,8), %ebp
jle 0x2aa9e
movl (%rsp), %eax
testq %r10, %r10
jns 0x2a798
movq %r10, %r13
sarq $0x6, %r13
movl %r10d, %ebx
andl $0x3f, %ebx
jmp 0x2a741
movl (%rsp), %eax
movq (%rcx,%r13,8), %r8
cmpl (%r8,%rbx,8), %eax
jle 0x2a76d
shlq $0x9, %r13
subq %r13, %r8
addq %r9, %r8
cmpl 0x4(%r8,%r15,8), %eax
jle 0x2aa9e
movq %r10, %r13
sarq $0x6, %r13
movl %r10d, %ebx
andl $0x3f, %ebx
movq (%rcx,%r13,8), %r8
cmpl (%r8,%rbx,8), %ebp
jg 0x2a7e8
shlq $0x9, %r13
subq %r13, %r8
addq %r9, %r8
cmpl 0x4(%r8,%r15,8), %eax
jge 0x2aa9e
sarq $0x6, %r10
movq %r10, %r13
jmp 0x2a7e8
movl (%rsp), %eax
movq (%rcx,%r13,8), %rbx
movl %r10d, %r8d
andl $0x3f, %r8d
cmpl (%rbx,%r8,8), %eax
jle 0x2a7c0
movl %r10d, %r8d
andl $0x3f, %r8d
cmpl 0x4(%rbx,%r8,8), %eax
jle 0x2aa9e
testq %r10, %r10
js 0x2a760
movq (%rcx,%r13,8), %rbx
movl %r10d, %r8d
andl $0x3f, %r8d
cmpl (%rbx,%r8,8), %ebp
jg 0x2a7e8
movl %r10d, %r8d
andl $0x3f, %r8d
cmpl 0x4(%rbx,%r8,8), %eax
jge 0x2aa9e
testq %r10, %r10
js 0x2a78c
movq (%rcx,%r13,8), %rax
shlq $0x9, %r13
subq %r13, %rax
addq %r9, %rax
addq %r14, %rax
cmpl 0x4(%rax), %ebp
jle 0x2a812
movq 0x10(%rsp), %rax
addq %r15, %rax
incq %rax
movq 0x18(%rsp), %r8
movl %eax, (%rdi,%r8,4)
incq %r15
addq $0x8, %r14
incq %r12
cmpl %r15d, %esi
jne 0x2a66a
jmp 0x2aaa7
leaq 0x1fb27(%rip), %rdi     # 0x4a358
movq %r14, %rsi
callq 0x18140
leaq 0x1fb20(%rip), %rcx     # 0x4a360
cmpq %rcx, %rax
je 0x2aa9e
leaq 0x1fb08(%rip), %rdi     # 0x4a358
movq %r14, %rsi
callq 0x177e8
movslq (%rax), %r9
movq 0x1fb26(%rip), %rdx     # 0x4a388
leaq (%r9,%r9,4), %rdi
shlq $0x4, %rdi
movq 0x48(%rdx,%rdi), %rax
movq 0x28(%rdx,%rdi), %rcx
movl %eax, %r8d
subl %ecx, %r8d
shrl $0x3, %r8d
cmpq $0x1, %rax
adcl $-0x1, %r8d
shll $0x6, %r8d
movq 0x30(%rdx,%rdi), %rax
subq 0x38(%rdx,%rdi), %rax
shrq $0x3, %rax
movq 0x10(%rdx,%rdi), %r10
movq 0x20(%rdx,%rdi), %rsi
movq %r10, 0x8(%rsp)
subq %r10, %rsi
shrq $0x3, %rsi
addl %eax, %esi
addl %r8d, %esi
movq 0x28(%rsp), %rax
movq %r9, 0x18(%rsp)
movq %rax, 0x10(%rsp)
movl (%rax,%r9,4), %r8d
cmpl %r8d, %esi
jbe 0x2aa9e
addq %rdi, %rdx
movq 0x8(%rsp), %rdi
movq %rdi, %rax
subq 0x18(%rdx), %rax
leaq (%rax,%r8,8), %r9
movq %rax, %rdx
sarq $0x3, %rdx
leaq (%rdi,%r8,8), %r11
addq $0x4, %r11
subl %r8d, %esi
addq %r8, %rdx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq %r8, %r12
movl 0x4(%rsp), %ebp
movq %rdx, %r10
addq %r15, %r10
js 0x2a95e
cmpq $0x40, %r10
jae 0x2a98b
movl -0x4(%r11,%r15,8), %edi
cmpl %edi, %ebp
jle 0x2a92a
cmpl (%r11,%r15,8), %ebp
jle 0x2aaa7
movl -0x4(%r11,%r15,8), %edi
movl (%rsp), %r10d
cmpl %edi, %r10d
jle 0x2a942
cmpl (%r11,%r15,8), %r10d
jle 0x2aaa7
movl -0x4(%r11,%r15,8), %edi
cmpl %edi, %ebp
jg 0x2a950
cmpl (%r11,%r15,8), %r10d
jge 0x2aaa7
movq 0x8(%rsp), %rax
leaq (%rax,%r12,8), %rdi
jmp 0x2aa71
movq %r10, %r13
sarq $0x6, %r13
movq (%rcx,%r13,8), %rdi
movl %r10d, %ebx
andl $0x3f, %ebx
movl %ebx, %eax
cmpl (%rdi,%rax,8), %ebp
jle 0x2a9c8
movl %r10d, %eax
andl $0x3f, %eax
cmpl 0x4(%rdi,%rax,8), %ebp
jle 0x2aaa7
movl (%rsp), %edi
jmp 0x2a9b9
movq %r10, %r13
shrq $0x6, %r13
movq (%rcx,%r13,8), %rdi
movl %r10d, %eax
andl $0x3f, %eax
cmpl (%rdi,%rax,8), %ebp
jle 0x2aa1d
movl %r10d, %eax
andl $0x3f, %eax
cmpl 0x4(%rdi,%rax,8), %ebp
jle 0x2aaa7
movl (%rsp), %edi
testq %r10, %r10
jns 0x2aa20
movq %r10, %r13
sarq $0x6, %r13
movl %r10d, %ebx
andl $0x3f, %ebx
jmp 0x2a9cb
movl (%rsp), %edi
movq (%rcx,%r13,8), %rax
cmpl (%rax,%rbx,8), %edi
jle 0x2a9f6
shlq $0x9, %r13
subq %r13, %rax
addq %r9, %rax
cmpl 0x4(%rax,%r15,8), %edi
jle 0x2aaa7
movq %r10, %r13
sarq $0x6, %r13
movl %r10d, %ebx
andl $0x3f, %ebx
movq (%rcx,%r13,8), %rax
cmpl (%rax,%rbx,8), %ebp
jg 0x2aa60
shlq $0x9, %r13
subq %r13, %rax
addq %r9, %rax
cmpl 0x4(%rax,%r15,8), %edi
jge 0x2aaa7
sarq $0x6, %r10
movq %r10, %r13
jmp 0x2aa60
movl (%rsp), %edi
movq (%rcx,%r13,8), %rbx
movl %r10d, %eax
andl $0x3f, %eax
cmpl (%rbx,%rax,8), %edi
jle 0x2aa40
movl %r10d, %eax
andl $0x3f, %eax
cmpl 0x4(%rbx,%rax,8), %edi
jle 0x2aaa7
testq %r10, %r10
js 0x2a9e9
movq (%rcx,%r13,8), %rbx
movl %r10d, %eax
andl $0x3f, %eax
cmpl (%rbx,%rax,8), %ebp
jg 0x2aa60
movl %r10d, %eax
andl $0x3f, %eax
cmpl 0x4(%rbx,%rax,8), %edi
jge 0x2aaa7
testq %r10, %r10
js 0x2aa14
movq (%rcx,%r13,8), %rdi
shlq $0x9, %r13
subq %r13, %rdi
addq %r9, %rdi
addq %r14, %rdi
cmpl 0x4(%rdi), %ebp
jle 0x2aa8b
leaq (%r8,%r15), %rax
incq %rax
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %r10
movl %eax, (%r10,%rdi,4)
incq %r15
addq $0x8, %r14
incq %r12
cmpl %r15d, %esi
jne 0x2a900
movq 0x20(%rsp), %rax
movb $0x0, 0xc(%rax)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2aab6
callq 0x5410
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x2ab64
movq %rax, %rbx
jmp 0x2ab6e
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x2aafb
callq 0x5410
jmp 0x2aafb
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2ab0f
callq 0x5410
jmp 0x2ab0f
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ab54
callq 0x5410
jmp 0x2ab54
jmp 0x2ab51
jmp 0x2ab51
jmp 0x2ab51
jmp 0x2ab3d
jmp 0x2ab3d
jmp 0x2ab3d
movq %rax, %rbx
jmp 0x2ab7b
jmp 0x2ab3d
jmp 0x2ab51
jmp 0x2ab51
jmp 0x2ab51
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2ab7b
callq 0x5410
jmp 0x2ab7b
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x2ab6e
callq 0x5410
leaq 0x110(%rsp), %rdi
callq 0x58a0
movq %rbx, %rdi
callq 0x57d0
nop