// File: /workspace/github_cpp_makefile_star2_O1/auton1[P]viterbi/variant_file.cpp
// Function: variant_file::add_file(parameters const&, std::vector<std::vector<bool, std::allocator<bool>>, std::allocator<std::vector<bool, std::allocator<bool>>>>&, std::vector<unsigned int, std::allocator<unsigned int>>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
int variant_file::add_file(const parameters &params, vector<vector<bool> > &haplotypes, vector<unsigned int> &positions, vector<string> &haplotype_names, vector<string> &alleles)
{
	int passed_sites = 0;
	unsigned int N_chr = 2*N_kept_individuals();
	vector<vector<bool> > new_haplotypes;
	vector<unsigned int> new_positions;
	vector<string> new_alleles;
	
	new_haplotypes.resize(N_chr);
	
	for (unsigned int ui=0; ui<N_kept_individuals(); ui++)
	{
		if (include_indv[ui] == false)
			continue;
		haplotype_names.push_back(meta_data.indv[ui] + "_1");
		haplotype_names.push_back(meta_data.indv[ui] + "_2");
	}

	vector<char> variant_line;
	entry *e = get_entry_object();
	unsigned int N_alleles;

	while(!eof())
	{
		get_entry(variant_line);
		e->reset(variant_line);
		N_entries += e->apply_filters(params);

		if(!e->passed_filters)
			continue;
		N_kept_entries++;
		e->parse_basic_entry(true);

		e->parse_genotype_entries(true);
		N_alleles = e->get_N_alleles();

		if (N_alleles != 2)
		{
			LOG.one_off_warning("\tWarning: Only using biallelic sites.");
			continue;
		}
		if (e->is_diploid() == false)
		{
			LOG.one_off_warning("\tWarning: Only using fully diploid sites.");
			continue;
		}

		vector<bool> tmp;
		tmp.reserve(meta_data.N_indv*2);
		int allele_count = 0;

		pair<int, int> geno;
		bool skip = false;
		for (unsigned int ui=0; ui<meta_data.N_indv; ui++)
		{
			if (e->include_indv[ui] == false)
				continue;

			if (e->include_genotype[ui] == true)
			{
				e->get_indv_GENOTYPE_ids(ui, geno);
				if ((geno.first > 1) || (geno.second > 1))
					LOG.error("Only supporting biallelics... something bad happened", 1);
				if ((geno.first != -1) && (geno.second != -1))
				{
					tmp.push_back((bool)geno.first);
					tmp.push_back((bool)geno.second);
					allele_count += geno.first;
					allele_count += geno.second;
				}
				else
				{
					skip = true;
					LOG.one_off_warning("\tWarning: Only using sites without missing data.");
					break;
				}
			}
			else
			{
				skip = true;
				LOG.one_off_warning("\tWarning: Only using sites without missing data.");
				break;
			}
		}

		if (skip == true)
			continue;

		if (N_chr != tmp.size())
			LOG.error("Something unexpected happened.... oh dear.");

		string chr = e->get_CHROM();
		passed_sites++;

		new_alleles.push_back(e->get_REF());
		new_alleles.push_back(e->get_ALT());
		new_positions.push_back(e->get_POS());

		for (unsigned int ui=0; ui<tmp.size(); ui++)
			new_haplotypes[ui].push_back(tmp[ui]);
		
	}
	vector<vector<bool> > merged_haplotypes;
	vector<unsigned int> merged_positions;
	vector<string> merged_alleles;
	
	merged_haplotypes.resize(haplotypes.size()+new_haplotypes.size());
	for (unsigned int ui=0; ui<positions.size(); ui++)
	{
		int idx = find(new_positions.begin(), new_positions.end(), positions[ui]) - new_positions.begin();

		if (idx >= 0 && idx < new_positions.size())
		{
			if (alleles[2*ui] == new_alleles[2*idx] && alleles[2*ui+1] == new_alleles[2*idx+1])
			{
				merged_positions.push_back(positions[ui]);
				for (unsigned int uj=0; uj<haplotypes.size(); uj++)
					merged_haplotypes[uj].push_back(haplotypes[uj][ui]);

				for (unsigned int uj=0; uj<new_haplotypes.size(); uj++)
					merged_haplotypes[haplotypes.size()+uj].push_back(new_haplotypes[uj][idx]);
			}
		}
	}
	haplotypes = merged_haplotypes;
	positions = merged_positions;
	
	delete e;
	return passed_sites;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %r9, 0xf8(%rsp)
movq %r8, %r15
movq %rcx, 0x48(%rsp)
movq %rdx, 0x38(%rsp)
movq %rsi, 0x98(%rsp)
movq %rdi, %rbp
callq 0x114e6
movl %eax, %esi
addl %esi, %esi
xorl %eax, %eax
leaq 0xc0(%rsp), %rdi
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq %rax, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movq %rax, 0xf0(%rsp)
movaps %xmm0, 0xe0(%rsp)
movq %rsi, 0x90(%rsp)
callq 0xc232
movq %rbp, %rdi
callq 0x114e6
testl %eax, %eax
je 0x125a4
leaq 0x10(%rsp), %r14
movl $0x8, %ebx
xorl %r13d, %r13d
movq %rsp, %r12
movq 0x430(%rbp), %rax
movq %r13, %rcx
shrq $0x6, %rcx
movq (%rax,%rcx,8), %rax
btq %r13, %rax
jae 0x1258a
movq 0x260(%rbp), %rax
movq %r14, (%rsp)
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xc7d8
movq %r12, %rdi
leaq 0x2734a(%rip), %rsi     # 0x3986f
callq 0x5870
movq %r15, %rdi
movq %r12, %rsi
callq 0x13458
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x12543
callq 0x5410
movq 0x260(%rbp), %rax
movq %r14, (%rsp)
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xc7d8
movq %r12, %rdi
leaq 0x27306(%rip), %rsi     # 0x39872
callq 0x5870
movq %r15, %rdi
movq %r12, %rsi
callq 0x13458
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x1258a
callq 0x5410
incq %r13
movq %rbp, %rdi
callq 0x114e6
movl %eax, %eax
addq $0x20, %rbx
cmpq %rax, %r13
jb 0x124e0
xorps %xmm0, %xmm0
movaps %xmm0, 0x1a0(%rsp)
movq $0x0, 0x1b0(%rsp)
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x28(%rax)
movq %rax, %r12
leaq 0x1c8(%rsp), %r13
leaq 0x1a0(%rsp), %r15
movl $0x0, 0x44(%rsp)
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x18(%rax)
testb %al, %al
jne 0x12ae1
movq (%rbp), %rax
movq %rbp, %rdi
movq %r15, %rsi
callq *0x20(%rax)
movq (%r12), %rax
movq %r12, %rdi
movq %r15, %rsi
callq *0x30(%rax)
movq %r12, %rdi
movq 0x98(%rsp), %rsi
callq 0x28b6c
addl %eax, 0x458(%rbp)
cmpb $0x0, 0xc(%r12)
je 0x125e0
incl 0x45c(%rbp)
movq (%r12), %rax
movq %r12, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq *0x10(%rax)
movq (%r12), %rax
movq %r12, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq *0x28(%rax)
movq %r12, %rdi
callq 0x230f4
cmpl $0x2, %eax
jne 0x126cd
movq %r12, %rdi
callq 0x22004
testb %al, %al
jne 0x1271d
leaq 0x190(%rsp), %rax
movq %rax, 0x180(%rsp)
leaq 0x180(%rsp), %rbx
movq %rbx, %rdi
leaq 0x27203(%rip), %rsi     # 0x3989b
leaq 0x27225(%rip), %rdx     # 0x398c4
callq 0xc868
leaq 0x37dfd(%rip), %rdi     # 0x4a4a8
movq %rbx, %rsi
callq 0x37516
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
jne 0x12713
jmp 0x125e0
movq %r13, 0x1b8(%rsp)
leaq 0x1b8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x2718e(%rip), %rsi     # 0x39875
leaq 0x271ac(%rip), %rdx     # 0x3989a
callq 0xc868
leaq 0x37dae(%rip), %rdi     # 0x4a4a8
movq %rbx, %rsi
callq 0x37516
movq 0x1b8(%rsp), %rdi
cmpq %r13, %rdi
je 0x125e0
callq 0x5410
jmp 0x125e0
xorl %eax, %eax
movq %rax, (%rsp)
movl %eax, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movl 0x2a8(%rbp), %esi
addl %esi, %esi
movq %rsp, %rdi
callq 0x130be
movq $0x0, 0x30(%rsp)
cmpl $0x0, 0x2a8(%rbp)
je 0x1285c
xorl %ebx, %ebx
movq 0x1f0(%r12), %rdx
movl $0x1, %eax
movl %ebx, %ecx
shlq %cl, %rax
movq %rbx, %rcx
shrq $0x6, %rcx
movq (%rdx,%rcx,8), %rdx
btq %rbx, %rdx
jae 0x1284a
movq 0x218(%r12), %rdx
testq %rax, (%rdx,%rcx,8)
je 0x12a0c
movq %r12, %rdi
movl %ebx, %esi
leaq 0x30(%rsp), %rdx
callq 0x22d94
cmpl $0x1, 0x30(%rsp)
jg 0x127b3
cmpl $0x2, 0x34(%rsp)
jl 0x1280f
leaq 0x170(%rsp), %rax
movq %rax, 0x160(%rsp)
leaq 0x160(%rsp), %r14
movq %r14, %rdi
leaq 0x270f0(%rip), %rsi     # 0x398c5
leaq 0x2711d(%rip), %rdx     # 0x398f9
callq 0xc868
leaq 0x37cc0(%rip), %rdi     # 0x4a4a8
movq %r14, %rsi
movl $0x1, %edx
callq 0x3721e
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1280f
callq 0x5410
movl 0x30(%rsp), %eax
cmpl $-0x1, %eax
je 0x12a5b
cmpl $-0x1, 0x34(%rsp)
je 0x12a5b
xorl %esi, %esi
testl %eax, %eax
setne %sil
movq %rsp, %rdi
callq 0xc26e
xorl %esi, %esi
cmpl $0x0, 0x34(%rsp)
setne %sil
movq %rsp, %rdi
callq 0xc26e
incq %rbx
movl 0x2a8(%rbp), %eax
cmpq %rax, %rbx
jb 0x1275d
movq 0x10(%rsp), %rax
movl 0x18(%rsp), %ecx
subq (%rsp), %rax
leaq (%rcx,%rax,8), %rax
cmpq 0x90(%rsp), %rax
je 0x128d3
leaq 0x110(%rsp), %rax
movq %rax, 0x100(%rsp)
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
leaq 0x27092(%rip), %rsi     # 0x3992b
leaq 0x270b5(%rip), %rdx     # 0x39955
callq 0xc868
leaq 0x37bfc(%rip), %rdi     # 0x4a4a8
movq %rbx, %rsi
movl $0x1, %edx
callq 0x3721e
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x128d3
callq 0x5410
leaq 0xa0(%rsp), %rdi
movq %r12, %rsi
callq 0x21cbc
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x21d4a
leaq 0xe0(%rsp), %rdi
movq %rbx, %rsi
callq 0x13458
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x12917
callq 0x5410
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x21dae
leaq 0xe0(%rsp), %rdi
movq %rbx, %rsi
callq 0x13458
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1294b
callq 0x5410
movq %r12, %rdi
callq 0x21cf8
movl %eax, 0x50(%rsp)
movq 0x78(%rsp), %rsi
cmpq 0x80(%rsp), %rsi
je 0x12973
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x78(%rsp)
jmp 0x12982
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x136ee
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
movl 0x18(%rsp), %edx
subq %rax, %rcx
shlq $0x3, %rcx
addq %rdx, %rcx
je 0x129e9
movl $0x1, %ebx
xorl %ecx, %ecx
leaq (%rcx,%rcx,4), %rdi
shlq $0x3, %rdi
addq 0xc0(%rsp), %rdi
movq %rcx, %rdx
shrq $0x6, %rdx
movq (%rax,%rdx,8), %rax
xorl %esi, %esi
btq %rcx, %rax
setb %sil
callq 0xc26e
movl %ebx, %ecx
movq (%rsp), %rax
movq 0x10(%rsp), %rdx
movl 0x18(%rsp), %esi
subq %rax, %rdx
leaq (%rsi,%rdx,8), %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0x129a2
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x12a03
callq 0x5410
incl 0x44(%rsp)
jmp 0x12ab2
leaq 0x130(%rsp), %rax
movq %rax, 0x120(%rsp)
leaq 0x120(%rsp), %rbx
movq %rbx, %rdi
leaq 0x26ecc(%rip), %rsi     # 0x398fa
leaq 0x26ef5(%rip), %rdx     # 0x3992a
callq 0xc868
leaq 0x37a67(%rip), %rdi     # 0x4a4a8
movq %rbx, %rsi
callq 0x37516
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
jmp 0x12aa8
leaq 0x150(%rsp), %rax
movq %rax, 0x140(%rsp)
leaq 0x140(%rsp), %rbx
movq %rbx, %rdi
leaq 0x26e7d(%rip), %rsi     # 0x398fa
leaq 0x26ea6(%rip), %rdx     # 0x3992a
callq 0xc868
leaq 0x37a18(%rip), %rdi     # 0x4a4a8
movq %rbx, %rsi
callq 0x37516
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x12ab2
callq 0x5410
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x125e0
callq 0x5410
xorl %eax, %eax
movq %rax, (%rsp)
movl %eax, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movq %rax, 0x20(%rsp)
jmp 0x125e0
movq %r12, 0x90(%rsp)
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movq %rax, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
movq %rax, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movq 0x38(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x3, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
movq 0xc8(%rsp), %rsi
subq 0xc0(%rsp), %rsi
imulq %rcx, %rax
sarq $0x3, %rsi
imulq %rcx, %rsi
addq %rax, %rsi
callq 0xc232
movq 0x48(%rsp), %rcx
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x12daf
xorl %r15d, %r15d
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rsi
leaq (%rax,%r15,4), %rdx
callq 0x137c2
movq %rax, %rbp
movq 0x70(%rsp), %rax
subq %rax, %rbp
sarq $0x2, %rbp
testl %ebp, %ebp
js 0x12d90
movl %ebp, %r13d
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq 0x78(%rsp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rcx, %r13
jae 0x12d90
leal (%r15,%r15), %ebx
movq 0xf8(%rsp), %rax
movq (%rax), %rdi
movq %rbx, %rax
shlq $0x5, %rax
leal (,%rbp,2), %r12d
movq 0xe0(%rsp), %r14
movq %r12, %rcx
shlq $0x5, %rcx
movq 0x8(%rdi,%rax), %rdx
cmpq 0x8(%r14,%rcx), %rdx
jne 0x12d90
testq %rdx, %rdx
je 0x12c19
addq %rdi, %rax
addq %r14, %rcx
movq (%rcx), %rsi
movq %rdi, 0x98(%rsp)
movq (%rax), %rdi
callq 0x5470
movq 0x98(%rsp), %rdi
testl %eax, %eax
jne 0x12d90
orl $0x1, %ebx
shlq $0x5, %rbx
orl $0x1, %r12d
shlq $0x5, %r12
movq 0x8(%rdi,%rbx), %rdx
cmpq 0x8(%r14,%r12), %rdx
jne 0x12d90
testq %rdx, %rdx
je 0x12c56
addq %rbx, %rdi
addq %r12, %r14
movq (%r14), %rsi
movq (%rdi), %rdi
callq 0x5470
testl %eax, %eax
jne 0x12d90
leaq (,%r15,4), %rdx
movq 0x48(%rsp), %rax
addq (%rax), %rdx
movq 0xa8(%rsp), %rsi
cmpq 0xb0(%rsp), %rsi
je 0x12c8a
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xa8(%rsp)
jmp 0x12c97
leaq 0xa0(%rsp), %rdi
callq 0xdd9c
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x12d0d
movl $0x1, %ebx
movl %r15d, %ecx
shlq %cl, %rbx
movq %r15, %r14
shrq $0x6, %r14
movl $0x1, %r12d
xorl %ecx, %ecx
shlq $0x3, %rcx
leaq (%rcx,%rcx,4), %rcx
movq (%rsp), %rdi
addq %rcx, %rdi
movq (%rax,%rcx), %rax
xorl %esi, %esi
testq %rbx, (%rax,%r14,8)
setne %sil
callq 0xc26e
movl %r12d, %ecx
movq 0x38(%rsp), %rdx
movq (%rdx), %rax
movq 0x8(%rdx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
imulq %rsi, %rdx
incl %r12d
cmpq %rcx, %rdx
ja 0x12cbf
movq 0xc0(%rsp), %rax
cmpq %rax, 0xc8(%rsp)
je 0x12d90
movl $0x1, %ebx
movl %ebp, %ecx
shlq %cl, %rbx
shrl $0x6, %r13d
movl $0x1, %ebp
xorl %ecx, %ecx
movq 0x38(%rsp), %rdx
movq 0x8(%rdx), %rdi
subq (%rdx), %rdi
addq (%rsp), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,4), %rcx
addq %rcx, %rdi
movq (%rax,%rcx), %rax
xorl %esi, %esi
testq %rbx, (%rax,%r13,8)
setne %sil
callq 0xc26e
movl %ebp, %ecx
movq 0xc0(%rsp), %rax
movq 0xc8(%rsp), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
imulq %rsi, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x12d34
incl %r15d
movq 0x48(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r15, %rcx
ja 0x12b65
movq %rsp, %rsi
movq 0x38(%rsp), %rdi
callq 0xc38a
leaq 0xa0(%rsp), %rsi
movq 0x48(%rsp), %rdi
callq 0xc2bc
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
movl 0x44(%rsp), %ebx
je 0x12de5
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x50(%rsp), %rdi
callq 0xc4f0
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x12e01
callq 0x5410
movq %rsp, %rdi
callq 0xc4c8
movq 0x1a0(%rsp), %rdi
testq %rdi, %rdi
je 0x12e1b
callq 0x5410
leaq 0xe0(%rsp), %rdi
callq 0xc4f0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x12e37
callq 0x5410
leaq 0xc0(%rsp), %rdi
callq 0xc4c8
movl %ebx, %eax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
jmp 0x12f04
jmp 0x12f15
movq %rax, %rbx
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
jmp 0x12f04
jmp 0x12f15
movq %rax, %rbx
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
jmp 0x12f04
jmp 0x12f15
jmp 0x12eaa
jmp 0x12ef1
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x12ef4
callq 0x5410
jmp 0x12ef4
jmp 0x12ef1
jmp 0x12f15
jmp 0x12ef1
jmp 0x12f9b
jmp 0x12f15
movq %rax, %rbx
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
jmp 0x12f04
jmp 0x12f15
jmp 0x12fc4
jmp 0x12f88
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x12f18
callq 0x5410
jmp 0x12f18
jmp 0x12f9b
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x12fc7
callq 0x5410
xorl %eax, %eax
movq %rax, (%rsp)
movl %eax, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movq %rax, 0x20(%rsp)
jmp 0x12fc7
movq %rax, %rbx
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
jne 0x12f73
jmp 0x12fc7
jmp 0x12fc4
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
cmpq %r13, %rdi
je 0x12fc7
callq 0x5410
jmp 0x12fc7
jmp 0x12fc4
jmp 0x12f9b
jmp 0x12f9b
jmp 0x12f88
jmp 0x12f8d
jmp 0x12f8d
jmp 0x12f8d
movq %rax, %rbx
jmp 0x12fd9
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x12fd4
jmp 0x12fd9
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xc4f0
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x12fba
callq 0x5410
movq %rsp, %rdi
callq 0xc4c8
jmp 0x12fc7
movq %rax, %rbx
movq 0x1a0(%rsp), %rdi
testq %rdi, %rdi
je 0x12fd9
callq 0x5410
leaq 0xe0(%rsp), %rdi
callq 0xc4f0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x12ff5
callq 0x5410
leaq 0xc0(%rsp), %rdi
callq 0xc4c8
movq %rbx, %rdi
callq 0x57d0