// File: /workspace/github_cpp_makefile_star2_O2/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 0x8664(%rip), %rsi      # 0x2ee37
movq %rdx, %rdi
callq 0x96f3
testb %al, %al
je 0x267ea
cmpq $0x0, 0x28(%r15)
je 0x26a03
leaq 0x87ba(%rip), %rsi      # 0x2efab
leaq 0x98(%rsp), %rdi
leaq 0xb8(%rsp), %rdx
callq 0x5160
leaq 0x1acc3(%rip), %rdi     # 0x414d0
leaq 0x98(%rsp), %rsi
callq 0x2beca
leaq 0x98(%rsp), %rdi
callq 0x5908
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0x26e1c
leaq 0x85fc(%rip), %rsi      # 0x2ee37
movq %r14, %rdi
callq 0x12f17
testb %al, %al
je 0x26984
movq (%r14), %rsi
leaq 0xb8(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x5860
leaq 0x130(%rsp), %rdi
callq 0x50d0
testb %al, %al
jne 0x268a1
leaq 0x8759(%rip), %rsi      # 0x2efcf
leaq 0x48(%rsp), %rdi
movq %r14, %rdx
callq 0x967d
leaq 0x1ac46(%rip), %rdi     # 0x414d0
leaq 0x48(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x2bf18
leaq 0x48(%rsp), %rdi
callq 0x5908
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq 0x2c0(%rsp), %r14
movq %r14, %rdi
callq 0x5300
leaq 0xb8(%rsp), %r12
leaq 0x28(%rsp), %r13
leaq 0x8(%rsp), %rbp
leaq 0x68(%rsp), %r15
movq 0xb8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0xd8(%rsp,%rax)
jne 0x26949
movq %r12, %rdi
movq %r13, %rsi
callq 0x5090
leaq 0x2d8(%rsp), %rdi
movq %r13, %rsi
callq 0x5690
movq %r14, %rdi
movq %rbp, %rsi
callq 0x55c0
movq %r15, %rdi
movq %rbp, %rsi
callq 0x248d6
movq 0x2c0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
xorl %esi, %esi
callq 0x5790
jmp 0x268ea
leaq 0xb8(%rsp), %rdi
callq 0x50a0
leaq 0x2c0(%rsp), %rdi
callq 0x5360
leaq 0x8(%rsp), %rdi
callq 0x5908
leaq 0x28(%rsp), %rdi
callq 0x5908
leaq 0xb8(%rsp), %rdi
callq 0x58f8
leaq 0x430(%rbx), %r14
xorl %r15d, %r15d
leaq 0x70(%rsp), %r13
leaq 0x68(%rsp), %r12
movl %r15d, %r15d
movq 0x440(%rbx), %rax
movl 0x448(%rbx), %ecx
subq 0x430(%rbx), %rax
leaq (%rcx,%rax,8), %rax
cmpq %r15, %rax
jbe 0x269f9
movq %r14, %rdi
movq %r15, %rsi
callq 0x9cc0
testq %rdx, (%rax)
je 0x269f4
movq %r15, %rsi
shlq $0x5, %rsi
addq 0x260(%rbx), %rsi
movq %r12, %rdi
callq 0xc0d2
cmpq %r13, %rax
jne 0x269f4
movq %r14, %rdi
movq %r15, %rsi
callq 0x9cc0
notq %rdx
andq %rdx, (%rax)
incl %r15d
jmp 0x26998
leaq 0x68(%rsp), %rdi
callq 0xa0b6
addq $0x448, %rsp            # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x26a6c
movq %rax, %rbx
jmp 0x26a71
jmp 0x26a4d
movq %rax, %rbx
jmp 0x26a5d
jmp 0x26a48
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x5908
jmp 0x26a88
movq %rax, %rbx
jmp 0x26a88
jmp 0x26a48
jmp 0x26a48
movq %rax, %rbx
jmp 0x26a7e
movq %rax, %rbx
leaq 0x2c0(%rsp), %rdi
callq 0x5360
leaq 0x8(%rsp), %rdi
callq 0x5908
leaq 0x28(%rsp), %rdi
callq 0x5908
leaq 0xb8(%rsp), %rdi
callq 0x58f8
leaq 0x68(%rsp), %rdi
callq 0xa0b6
movq %rbx, %rdi
callq 0x5800