// File: /workspace/github_cpp_makefile_star2_O1/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 0x2ad3d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10c01(%rip), %rsi     # 0x3aeff
movq %r14, %rdi
callq 0x50e0
testl %eax, %eax
je 0x2ad3d
movq 0x21073(%rip), %rax     # 0x4b388
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
cmpq 0x2106a(%rip), %rax     # 0x4b390
movq %rbx, 0x8(%rsp)
jne 0x2a7bb
movq (%r14), %rsi
leaq 0x110(%rsp), %rdi
movl $0x8, %edx
callq 0x5820
leaq 0x188(%rsp), %rdi
callq 0x50b0
testb %al, %al
jne 0x2a39d
leaq 0x10b4f(%rip), %rsi     # 0x3aead
leaq 0xf0(%rsp), %rdi
movq %r14, %rdx
callq 0xb7dd
leaq 0x20133(%rip), %rdi     # 0x4a4a8
leaq 0xf0(%rsp), %rsi
movl $0x1, %edx
callq 0x3721e
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a39d
callq 0x5410
movl %ebp, 0x34(%rsp)
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x20fc1(%rip), %r14     # 0x4b380
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 0x2a4fe
xorl %r15d, %r15d
leaq 0x110(%rsp), %r12
leaq 0x90(%rsp), %r13
leaq 0x4(%rsp), %rbx
leaq 0x20f41(%rip), %rbp     # 0x4b358
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 0x1818e
leaq 0x20eff(%rip), %rcx     # 0x4b360
cmpq %rcx, %rax
jne 0x2a486
movq %rbp, %rdi
movq %r13, %rsi
callq 0x1785c
movl %r14d, (%rax)
incl %r14d
leaq 0x20f0a(%rip), %rdi     # 0x4b388
movq %r14, %rsi
callq 0x2c5ea
movq %rbp, %rdi
movq %r13, %rsi
callq 0x1785c
movslq (%rax), %rax
movq 0x20eed(%rip), %rdx     # 0x4b388
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, 0x10(%rsp)
movq 0x30(%rdx,%rsi), %rcx
movq 0x40(%rdx,%rsi), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0x2a4d7
movq %rax, (%rcx)
addq $0x8, 0x30(%rdi)
jmp 0x2a4e1
leaq 0x10(%rsp), %rsi
callq 0x2d23e
incl %r15d
movq 0x110(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x130(%rsp,%rax)
je 0x2a417
leaq 0x110(%rsp), %rdi
callq 0x50a0
leaq 0x38(%rsp), %rdi
movl %r15d, %esi
callq 0x375de
leaq 0x109a8(%rip), %rcx     # 0x3aec7
leaq 0x38(%rsp), %rdi
movl $0x6, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x54d0
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2a55a
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x2a561
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x10(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1094a(%rip), %rsi     # 0x3aece
callq 0x5870
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2a5b6
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x2a5bd
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 0x1fec8(%rip), %rdi     # 0x4a4a8
callq 0x371c8
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a5f4
callq 0x5410
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a603
callq 0x5410
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a616
callq 0x5410
movq 0x20d6b(%rip), %rax     # 0x4b388
cmpq %rax, 0x20d6c(%rip)     # 0x4b390
je 0x2a781
movl $0x1, %ebp
xorl %ecx, %ecx
leaq (%rcx,%rcx,4), %rcx
shlq $0x4, %rcx
movq 0x10(%rax,%rcx), %r15
movq 0x30(%rax,%rcx), %rdx
cmpq %rdx, %r15
je 0x2a751
movq 0x18(%rax,%rcx), %rdi
movq 0x20(%rax,%rcx), %r13
movq 0x28(%rax,%rcx), %r14
movq 0x38(%rax,%rcx), %r12
movq 0x40(%rax,%rcx), %rsi
movq 0x48(%rax,%rcx), %rbx
movq %r15, 0x10(%rsp)
movq %rdi, 0x58(%rsp)
movq %rdi, 0x18(%rsp)
movq %r13, 0x20(%rsp)
movq %r14, 0x28(%rsp)
movq %rdx, 0x38(%rsp)
movq %r12, 0x40(%rsp)
movq %rsi, 0x60(%rsp)
movq %rsi, 0x48(%rsp)
movq %rbx, 0x50(%rsp)
movq %rbx, %rax
subq %r14, %rax
shrq $0x3, %rax
cmpq $0x1, %rbx
adcq $-0x1, %rax
shlq $0x6, %rax
movq %rdx, %rcx
subq %r12, %rcx
sarq $0x3, %rcx
movq %rdx, 0x68(%rsp)
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 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x2d436
movq 0x68(%rsp), %rax
movq %r15, 0xd0(%rsp)
movq 0x58(%rsp), %rcx
movq %rcx, 0xd8(%rsp)
movq %r13, 0xe0(%rsp)
movq %r14, 0xe8(%rsp)
movq %rax, 0xb0(%rsp)
movq %r12, 0xb8(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq %rbx, 0xc8(%rsp)
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2d606
movl %ebp, %ecx
movq 0x20c36(%rip), %rdx     # 0x4b390
movq 0x20c27(%rip), %rax     # 0x4b388
subq %rax, %rdx
sarq $0x4, %rdx
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
imulq %rsi, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x2a631
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x2a79b
callq 0x5410
leaq 0x110(%rsp), %rdi
callq 0x58a0
movq 0x8(%rsp), %rbx
movl 0x34(%rsp), %ebp
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
movq 0x20bce(%rip), %rsi     # 0x4b390
subq 0x20bbf(%rip), %rsi     # 0x4b388
sarq $0x4, %rsi
imulq %rcx, %rsi
leaq 0x110(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rcx
callq 0x24366
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 0x230f4
movl %eax, %ebp
testl %eax, %eax
jle 0x2a877
xorl %r14d, %r14d
leaq 0x120(%rsp), %rbx
leaq 0x110(%rsp), %r15
movl 0x4(%rsp), %r12d
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movl %r14d, %edx
callq 0x22142
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 0x2a86f
callq 0x5410
incl %r14d
cmpl %r14d, %ebp
jne 0x2a831
movq 0x8(%rsp), %rax
leaq 0x3e0(%rax), %r14
testb %r13b, %r13b
je 0x2aadd
leaq 0x20ac5(%rip), %rdi     # 0x4b358
movq %r14, %rsi
callq 0x1818e
leaq 0x20abe(%rip), %rcx     # 0x4b360
cmpq %rcx, %rax
je 0x2ad2e
leaq 0x20aa6(%rip), %rdi     # 0x4b358
movq %r14, %rsi
callq 0x1785c
movslq (%rax), %rax
movq 0x20ac4(%rip), %r10     # 0x4b388
leaq (%rax,%rax,4), %r8
shlq $0x4, %r8
movq 0x48(%r10,%r8), %rdx
movq 0x28(%r10,%r8), %rcx
movq %rdx, %rsi
subq %rcx, %rsi
shrq $0x3, %rsi
cmpq $0x1, %rdx
adcq $-0x1, %rsi
shlq $0x6, %rsi
movq 0x30(%r10,%r8), %rdi
subq 0x38(%r10,%r8), %rdi
shrq $0x3, %rdi
movq 0x10(%r10,%r8), %rdx
movq 0x20(%r10,%r8), %r11
subq %rdx, %r11
shrq $0x3, %r11
addq %rdi, %r11
addq %rsi, %r11
movq 0x10(%rsp), %rsi
movl (%rsi,%rax,4), %edi
cmpl %r11d, %edi
jae 0x2ad2e
addq %r8, %r10
movabsq $-0x400000000000000, %r8 # imm = 0xFC00000000000000
movq %rdx, %r9
subq 0x18(%r10), %r9
sarq $0x3, %r9
movl %r11d, %r10d
leaq (%r9,%rdi), %r11
shlq $0x3, %r11
leaq (%r9,%rdi), %r14
cmpq $0x3f, %r14
ja 0x2a955
leaq (%rdx,%rdi,8), %rbx
jmp 0x2a977
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r15
orq %r8, %r15
testq %r14, %r14
cmovgq %rbx, %r15
movq (%rcx,%r15,8), %rbx
shlq $0x9, %r15
subq %r15, %rbx
addq %r11, %rbx
movl 0x4(%rsp), %ebp
cmpl (%rbx), %ebp
jle 0x2a9b6
cmpq $0x3f, %r14
ja 0x2a98b
leaq (%rdx,%rdi,8), %rbx
jmp 0x2a9ad
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r15
orq %r8, %r15
testq %r14, %r14
cmovgq %rbx, %r15
movq (%rcx,%r15,8), %rbx
shlq $0x9, %r15
subq %r15, %rbx
addq %r11, %rbx
cmpl 0x4(%rbx), %ebp
jle 0x2ad25
cmpq $0x3f, %r14
ja 0x2a9c2
leaq (%rdx,%rdi,8), %rbx
jmp 0x2a9e4
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r15
orq %r8, %r15
testq %r14, %r14
cmovgq %rbx, %r15
movq (%rcx,%r15,8), %rbx
shlq $0x9, %r15
subq %r15, %rbx
addq %r11, %rbx
movl (%rsp), %r15d
cmpl (%rbx), %r15d
jle 0x2aa25
cmpq $0x3f, %r14
ja 0x2a9f9
leaq (%rdx,%rdi,8), %rbx
jmp 0x2aa1b
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r12
orq %r8, %r12
testq %r14, %r14
cmovgq %rbx, %r12
movq (%rcx,%r12,8), %rbx
shlq $0x9, %r12
subq %r12, %rbx
addq %r11, %rbx
cmpl 0x4(%rbx), %r15d
jle 0x2ad25
cmpq $0x3f, %r14
ja 0x2aa31
leaq (%rdx,%rdi,8), %rbx
jmp 0x2aa53
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r12
orq %r8, %r12
testq %r14, %r14
cmovgq %rbx, %r12
movq (%rcx,%r12,8), %rbx
shlq $0x9, %r12
subq %r12, %rbx
addq %r11, %rbx
cmpl (%rbx), %ebp
jg 0x2aa8f
cmpq $0x3f, %r14
ja 0x2aa63
leaq (%rdx,%rdi,8), %rbx
jmp 0x2aa85
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r12
orq %r8, %r12
testq %r14, %r14
cmovgq %rbx, %r12
movq (%rcx,%r12,8), %rbx
shlq $0x9, %r12
subq %r12, %rbx
addq %r11, %rbx
cmpl 0x4(%rbx), %r15d
jge 0x2ad25
cmpq $0x3f, %r14
ja 0x2aa9b
leaq (%rdx,%rdi,8), %rbx
jmp 0x2aabd
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r15
orq %r8, %r15
testq %r14, %r14
cmovgq %rbx, %r15
movq (%rcx,%r15,8), %rbx
shlq $0x9, %r15
subq %r15, %rbx
addq %r11, %rbx
cmpl 0x4(%rbx), %ebp
jle 0x2aac8
leal 0x1(%rdi), %ebx
movl %ebx, (%rsi,%rax,4)
incq %rdi
addq $0x8, %r11
cmpq %rdi, %r10
jne 0x2a945
jmp 0x2ad2e
leaq 0x20874(%rip), %rdi     # 0x4b358
movq %r14, %rsi
callq 0x1818e
leaq 0x2086d(%rip), %rcx     # 0x4b360
cmpq %rcx, %rax
je 0x2ad25
leaq 0x20855(%rip), %rdi     # 0x4b358
movq %r14, %rsi
callq 0x1785c
movslq (%rax), %rax
movq 0x20873(%rip), %r10     # 0x4b388
leaq (%rax,%rax,4), %r8
shlq $0x4, %r8
movq 0x48(%r10,%r8), %rdx
movq 0x28(%r10,%r8), %rcx
movq %rdx, %rsi
subq %rcx, %rsi
shrq $0x3, %rsi
cmpq $0x1, %rdx
adcq $-0x1, %rsi
shlq $0x6, %rsi
movq 0x30(%r10,%r8), %rdi
subq 0x38(%r10,%r8), %rdi
shrq $0x3, %rdi
movq 0x10(%r10,%r8), %rdx
movq 0x20(%r10,%r8), %r11
subq %rdx, %r11
shrq $0x3, %r11
addq %rdi, %r11
addq %rsi, %r11
movq 0x10(%rsp), %rsi
movl (%rsi,%rax,4), %edi
cmpl %r11d, %edi
jae 0x2ad25
addq %r8, %r10
movabsq $-0x400000000000000, %r8 # imm = 0xFC00000000000000
movq %rdx, %r9
subq 0x18(%r10), %r9
sarq $0x3, %r9
movl %r11d, %r10d
leaq (%r9,%rdi), %r11
shlq $0x3, %r11
leaq (%r9,%rdi), %r14
cmpq $0x3f, %r14
ja 0x2aba6
leaq (%rdx,%rdi,8), %rbx
jmp 0x2abc8
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r15
orq %r8, %r15
testq %r14, %r14
cmovgq %rbx, %r15
movq (%rcx,%r15,8), %rbx
shlq $0x9, %r15
subq %r15, %rbx
addq %r11, %rbx
movl 0x4(%rsp), %ebp
cmpl (%rbx), %ebp
jle 0x2ac07
cmpq $0x3f, %r14
ja 0x2abdc
leaq (%rdx,%rdi,8), %rbx
jmp 0x2abfe
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r15
orq %r8, %r15
testq %r14, %r14
cmovgq %rbx, %r15
movq (%rcx,%r15,8), %rbx
shlq $0x9, %r15
subq %r15, %rbx
addq %r11, %rbx
cmpl 0x4(%rbx), %ebp
jle 0x2ad2e
cmpq $0x3f, %r14
ja 0x2ac13
leaq (%rdx,%rdi,8), %rbx
jmp 0x2ac35
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r15
orq %r8, %r15
testq %r14, %r14
cmovgq %rbx, %r15
movq (%rcx,%r15,8), %rbx
shlq $0x9, %r15
subq %r15, %rbx
addq %r11, %rbx
movl (%rsp), %r15d
cmpl (%rbx), %r15d
jle 0x2ac76
cmpq $0x3f, %r14
ja 0x2ac4a
leaq (%rdx,%rdi,8), %rbx
jmp 0x2ac6c
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r12
orq %r8, %r12
testq %r14, %r14
cmovgq %rbx, %r12
movq (%rcx,%r12,8), %rbx
shlq $0x9, %r12
subq %r12, %rbx
addq %r11, %rbx
cmpl 0x4(%rbx), %r15d
jle 0x2ad2e
cmpq $0x3f, %r14
ja 0x2ac82
leaq (%rdx,%rdi,8), %rbx
jmp 0x2aca4
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r12
orq %r8, %r12
testq %r14, %r14
cmovgq %rbx, %r12
movq (%rcx,%r12,8), %rbx
shlq $0x9, %r12
subq %r12, %rbx
addq %r11, %rbx
cmpl (%rbx), %ebp
jg 0x2acdc
cmpq $0x3f, %r14
ja 0x2acb4
leaq (%rdx,%rdi,8), %rbx
jmp 0x2acd6
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r12
orq %r8, %r12
testq %r14, %r14
cmovgq %rbx, %r12
movq (%rcx,%r12,8), %rbx
shlq $0x9, %r12
subq %r12, %rbx
addq %r11, %rbx
cmpl 0x4(%rbx), %r15d
jge 0x2ad2e
cmpq $0x3f, %r14
ja 0x2ace8
leaq (%rdx,%rdi,8), %rbx
jmp 0x2ad0a
movq %r14, %rbx
shrq $0x6, %rbx
movq %rbx, %r15
orq %r8, %r15
testq %r14, %r14
cmovgq %rbx, %r15
movq (%rcx,%r15,8), %rbx
shlq $0x9, %r15
subq %r15, %rbx
addq %r11, %rbx
cmpl 0x4(%rbx), %ebp
jle 0x2ad15
leal 0x1(%rdi), %ebx
movl %ebx, (%rsi,%rax,4)
incq %rdi
addq $0x8, %r11
cmpq %rdi, %r10
jne 0x2ab96
movq 0x8(%rsp), %rax
movb $0x0, 0xc(%rax)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2ad3d
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 0x2adeb
movq %rax, %rbx
jmp 0x2adf5
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ad82
callq 0x5410
jmp 0x2ad82
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x2ad96
callq 0x5410
jmp 0x2ad96
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2addb
callq 0x5410
jmp 0x2addb
jmp 0x2add8
jmp 0x2add8
jmp 0x2add8
jmp 0x2adc4
jmp 0x2adc4
jmp 0x2adc4
movq %rax, %rbx
jmp 0x2ae02
jmp 0x2adc4
jmp 0x2add8
jmp 0x2add8
jmp 0x2add8
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2ae02
callq 0x5410
jmp 0x2ae02
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x2adf5
callq 0x5410
leaq 0x110(%rsp), %rdi
callq 0x58a0
movq %rbx, %rdi
callq 0x57d0