// File: /workspace/github_cpp_makefile_star2_O3/auton1[P]viterbi/variant_file_filters.cpp
// Function: variant_file::filter_individuals_by_keep_list(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void variant_file::filter_individuals_by_keep_list(const set<string> &indv_to_keep, const string &indv_to_keep_filename)
{
	// Filter individuals by user provided list
	if ((indv_to_keep_filename == "") && (indv_to_keep.size() == 0))
		return;

	LOG.printLOG("Keeping individuals in 'keep' list\n");
	set<string> indv_to_keep_copy = indv_to_keep;
	if (indv_to_keep_filename != "")
	{
		ifstream infile(indv_to_keep_filename.c_str());
		if (!infile.is_open())
			LOG.error("Could not open Individual file:" + indv_to_keep_filename, 1);
		string line;
		string tmp_indv;
		stringstream ss;
		while (!infile.eof())
		{
			getline(infile, line);
			ss.str(line);
			ss >> tmp_indv;
			indv_to_keep_copy.insert(tmp_indv);
			ss.clear();
		}
		infile.close();
	}
	for (unsigned int ui=0; ui<include_indv.size(); ui++)
	{
		if (include_indv[ui] == false)
			continue;
		if (indv_to_keep_copy.find(meta_data.indv[ui]) == indv_to_keep_copy.end())
			include_indv[ui] = false;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp            # imm = 0x448
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xb5b4(%rip), %rsi      # 0x39ed7
movq %rdx, %rdi
callq 0x50e0
testl %eax, %eax
jne 0x2e93a
cmpq $0x0, 0x28(%r15)
je 0x2ebcb
leaq 0xa8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xb6fe(%rip), %rsi      # 0x3a04b
leaq 0xb71a(%rip), %rdx      # 0x3a06e
leaq 0x98(%rsp), %r12
movq %r12, %rdi
callq 0xc85e
leaq 0x1ab3d(%rip), %rdi     # 0x494a8
movq %r12, %rsi
callq 0x36e72
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x2e985
callq 0x5410
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0x2f08a
leaq 0xb53e(%rip), %rsi      # 0x39ed7
movq %r14, %rdi
callq 0x50e0
testl %eax, %eax
je 0x2eb2d
movq (%r14), %rsi
leaq 0x240(%rsp), %rdi
movl $0x8, %edx
callq 0x5820
leaq 0x2b8(%rsp), %rdi
callq 0x50b0
testb %al, %al
jne 0x2ea0c
leaq 0xb699(%rip), %rsi      # 0x3a06f
leaq 0x48(%rsp), %rdi
movq %r14, %rdx
callq 0xb777
leaq 0x1aabe(%rip), %rdi     # 0x494a8
leaq 0x48(%rsp), %rsi
movl $0x1, %edx
callq 0x36ec8
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ea0c
callq 0x5410
leaq 0x38(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xb8(%rsp), %r14
movq %r14, %rdi
callq 0x52e0
leaq 0x240(%rsp), %r12
leaq 0x28(%rsp), %r13
leaq 0x8(%rsp), %rbp
leaq 0x68(%rsp), %r15
movq 0x240(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x260(%rsp,%rax)
jne 0x2eaca
leaq (%rsp,%rax), %rdi
addq $0x240, %rdi            # imm = 0x240
movl $0xa, %esi
callq 0x5440
movsbl %al, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x5830
leaq 0xd0(%rsp), %rdi
movq %r13, %rsi
callq 0x5640
movq %r14, %rdi
movq %rbp, %rsi
callq 0x5590
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2c796
movq 0xb8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
xorl %esi, %esi
callq 0x5750
jmp 0x2ea53
leaq 0x240(%rsp), %rdi
callq 0x50a0
movq 0x1a4a2(%rip), %rsi     # 0x48f80
leaq 0xb8(%rsp), %rdi
callq 0x5330
leaq 0x138(%rsp), %rdi
callq 0x5100
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2eb0c
callq 0x5410
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2eb20
callq 0x5410
leaq 0x240(%rsp), %rdi
callq 0x58a0
movq 0x430(%rbx), %rdx
movq 0x440(%rbx), %rax
movl 0x448(%rbx), %ecx
subq %rdx, %rax
shlq $0x3, %rax
addq %rcx, %rax
je 0x2ebc1
movl $0x1, %r15d
leaq 0x70(%rsp), %r12
xorl %ecx, %ecx
leaq 0x68(%rsp), %r14
movl $0x1, %r13d
shlq %cl, %r13
leal -0x1(%r15), %ebp
shrl $0x6, %ebp
movq (%rdx,%rbp,8), %rax
btq %rcx, %rax
jae 0x2eba2
shlq $0x5, %rcx
addq 0x260(%rbx), %rcx
movq %r14, %rdi
movq %rcx, %rsi
callq 0xe5ba
movq 0x430(%rbx), %rdx
cmpq %r12, %rax
jne 0x2eba2
notq %r13
andq %r13, (%rdx,%rbp,8)
movl %r15d, %ecx
movq 0x440(%rbx), %rax
movl 0x448(%rbx), %esi
subq %rdx, %rax
leaq (%rsi,%rax,8), %rax
incl %r15d
cmpq %rcx, %rax
ja 0x2eb5f
leaq 0x68(%rsp), %rdi
callq 0xc73a
addq $0x448, %rsp            # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x2ec57
movq %rax, %rbx
jmp 0x2ec61
jmp 0x2ec15
movq %rax, %rbx
jmp 0x2ec39
jmp 0x2ec10
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x2ec78
callq 0x5410
jmp 0x2ec78
movq %rax, %rbx
jmp 0x2ec6e
movq %rax, %rbx
movq 0x1a361(%rip), %rsi     # 0x48f80
leaq 0xb8(%rsp), %rdi
callq 0x5330
leaq 0x138(%rsp), %rdi
callq 0x5100
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2ec4d
callq 0x5410
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2ec61
callq 0x5410
leaq 0x240(%rsp), %rdi
callq 0x58a0
leaq 0x68(%rsp), %rdi
callq 0xc73a
movq %rbx, %rdi
callq 0x57d0