// File: auton1[P]viterbi/bcf_entry.cpp
// Function: bcf_entry::filter_genotypes_by_filter_status(std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<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>>>> const&, bool)
void bcf_entry::filter_genotypes_by_filter_status(const set<string> &filter_flags_to_remove, bool remove_all)
{
	if (fully_parsed == false)
		parse_full_entry();

	vector<string> GFILTERs;
	if (FT_idx != -1)
	{	// Have GFilter info
		for (unsigned int ui=0; ui<N_indv; ui++)
		{
			if (parsed_FT[ui] == false)
				parse_genotype_entry(ui, false, false, false, true);
			get_indv_GFILTER_vector(ui, GFILTERs);

			if (remove_all == true)
			{	// If removing all filters, only keep things with label PASS
				if (!GFILTERs.empty())
					if ((GFILTERs[0] != "PASS") && (GFILTERs[0] != "."))
						include_genotype[ui] = false;
			}
			else
			{	// Only removing specific filters
				for (unsigned int uj=0; uj<GFILTERs.size(); uj++)
					if (filter_flags_to_remove.find(GFILTERs[uj]) != filter_flags_to_remove.end())
							include_genotype[ui] = false;
			}
		}
	}
}

// Assembly:
subq $0xe8, %rsp
movb %dl, %al
movq %rdi, 0xe0(%rsp)
movq %rsi, 0xd8(%rsp)
andb $0x1, %al
movb %al, 0xd7(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0x50(%rsp)
movb 0x3d9(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x3515f
movq 0x50(%rsp), %rdi
movq (%rdi), %rax
movl $0x1, %esi
callq *0x18(%rax)
leaq 0xb8(%rsp), %rdi
callq 0x10260
movq 0x50(%rsp), %rax
cmpl $-0x1, 0x63c(%rax)
je 0x35444
movl $0x0, 0xb4(%rsp)
movq 0x50(%rsp), %rcx
movl 0xb4(%rsp), %eax
cmpl 0x8(%rcx), %eax
jae 0x35442
movq 0x50(%rsp), %rdi
addq $0x5d8, %rdi            # imm = 0x5D8
movl 0xb4(%rsp), %eax
movl %eax, %esi
callq 0x102b0
movq %rdx, 0x40(%rsp)
movq %rax, 0x48(%rsp)
jmp 0x351c4
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
movq %rcx, 0xa0(%rsp)
movq %rax, 0xa8(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x10310
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x35243
movq 0x50(%rsp), %rdi
movl 0xb4(%rsp), %esi
movq (%rdi), %rax
movq 0x20(%rax), %rax
xorl %r8d, %r8d
movl $0x1, %r9d
movl %r8d, %edx
movl %r8d, %ecx
callq *%rax
jmp 0x3521b
jmp 0x35243
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x10cc0
jmp 0x35459
movq 0x50(%rsp), %rdi
movl 0xb4(%rsp), %esi
leaq 0xb8(%rsp), %rdx
callq 0x4bf60
jmp 0x3525e
movb 0xd7(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x3533e
leaq 0xb8(%rsp), %rdi
callq 0x39710
testb $0x1, %al
jne 0x35339
xorl %eax, %eax
movl %eax, %esi
leaq 0xb8(%rsp), %rdi
callq 0x10290
movq %rax, %rdi
leaq 0x3f281(%rip), %rsi     # 0x74524
callq 0x30930
movb %al, 0x3f(%rsp)
jmp 0x352ae
movb 0x3f(%rsp), %al
testb $0x1, %al
jne 0x352b8
jmp 0x35337
xorl %eax, %eax
movl %eax, %esi
leaq 0xb8(%rsp), %rdi
callq 0x10290
movq %rax, %rdi
leaq 0x3fe0b(%rip), %rsi     # 0x750de
callq 0x30930
movb %al, 0x3e(%rsp)
jmp 0x352de
movb 0x3e(%rsp), %al
testb $0x1, %al
jne 0x352e8
jmp 0x35337
movq 0x50(%rsp), %rdi
addq $0x218, %rdi            # imm = 0x218
movl 0xb4(%rsp), %eax
movl %eax, %esi
callq 0x102b0
movq %rdx, 0x28(%rsp)
movq %rax, 0x30(%rsp)
jmp 0x3530e
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, 0x80(%rsp)
movq %rax, 0x88(%rsp)
leaq 0x80(%rsp), %rdi
xorl %esi, %esi
callq 0x1bd30
jmp 0x35339
jmp 0x3542a
movl $0x0, 0x7c(%rsp)
movl 0x7c(%rsp), %eax
movq %rax, 0x20(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x10270
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jae 0x35428
movq 0xd8(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0x7c(%rsp), %eax
movl %eax, %esi
leaq 0xb8(%rsp), %rdi
callq 0x10290
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x39780
movq %rax, 0x18(%rsp)
jmp 0x353a1
movq 0x18(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0xd8(%rsp), %rdi
callq 0x10ba0
movq %rax, 0x68(%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x39760
testb $0x1, %al
jne 0x353d2
jmp 0x35416
movq 0x50(%rsp), %rdi
addq $0x218, %rdi            # imm = 0x218
movl 0xb4(%rsp), %eax
movl %eax, %esi
callq 0x102b0
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
jmp 0x353f7
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rcx, 0x58(%rsp)
movq %rax, 0x60(%rsp)
leaq 0x58(%rsp), %rdi
xorl %esi, %esi
callq 0x1bd30
jmp 0x35418
movl 0x7c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x7c(%rsp)
jmp 0x35346
jmp 0x3542a
jmp 0x3542c
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb4(%rsp)
jmp 0x35189
jmp 0x35444
leaq 0xb8(%rsp), %rdi
callq 0x10cc0
addq $0xe8, %rsp
retq
movq 0x98(%rsp), %rdi
callq 0x69e0
nopw %cs:(%rax,%rax)