// File: millanek[P]evo/process_vcf_utils.cpp
// Function: locateSet(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>>>> const&)
std::vector<size_t> locateSet(std::vector<std::string>& sample_names, const std::vector<std::string>& set) {
    std::vector<size_t> setLocs;
    for (std::vector<std::string>::size_type i = 0; i != set.size(); i++) {
        std::vector<std::string>::iterator it = std::find(sample_names.begin(), sample_names.end(), set[i]);
        if (it == sample_names.end()) {
            std::cerr << "Did not find the sample: \"" << set[i] << "\"" << std::endl;
            print_vector(sample_names, std::cerr,',');
        } else {
            size_t loc = std::distance(sample_names.begin(), it);
            setLocs.push_back(loc);
        }
    }
    return setLocs;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x98(%rbp)
movq %rdi, %rax
movq %rax, -0x90(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
callq 0x50c10
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x3ffd0
movq %rax, %rcx
movq -0xa0(%rbp), %rax
cmpq %rcx, %rax
je 0x81454
movq -0x10(%rbp), %rdi
callq 0x44030
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x44060
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x52960
movq %rax, %rdx
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x84050
movq %rax, -0xa8(%rbp)
jmp 0x812f0
movq -0xa8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
callq 0x44060
movq %rax, -0x58(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x83a10
testb $0x1, %al
jne 0x8131e
jmp 0x813f1
movq 0x117ccb(%rip), %rdi    # 0x198ff0
leaq 0xba0ca(%rip), %rsi     # 0x13b3f6
callq 0xa5c0
movq %rax, -0xb0(%rbp)
jmp 0x8133a
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x52960
movq -0xb0(%rbp), %rdi
movq %rax, %rsi
callq 0xa520
movq %rax, -0xb8(%rbp)
jmp 0x8135f
movq -0xb8(%rbp), %rdi
leaq 0xba0a2(%rip), %rsi     # 0x13b40f
callq 0xa5c0
movq %rax, -0xc0(%rbp)
jmp 0x8137b
movq -0xc0(%rbp), %rdi
movq 0x117bff(%rip), %rsi    # 0x198f88
callq 0xa610
jmp 0x81390
movq -0x10(%rbp), %rsi
leaq -0x70(%rbp), %rdi
callq 0x3fee0
jmp 0x8139f
movq 0x117c4a(%rip), %rsi    # 0x198ff0
leaq -0x70(%rbp), %rdi
movl $0x2c, %edx
movl $0x1, %ecx
callq 0x50da0
jmp 0x813bb
leaq -0x70(%rbp), %rdi
callq 0x3dfa0
jmp 0x81441
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x8147a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x3dfa0
jmp 0x8147a
movq -0x10(%rbp), %rdi
callq 0x44030
movq %rax, -0x80(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x75450
movq %rax, -0xc8(%rbp)
jmp 0x81422
movq -0x98(%rbp), %rdi
movq -0xc8(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x78(%rbp), %rsi
callq 0x840a0
jmp 0x8143f
jmp 0x81441
jmp 0x81443
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x81289
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x8146a
movq -0x98(%rbp), %rdi
callq 0x50d40
movq -0x90(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
movq -0x98(%rbp), %rdi
callq 0x50d40
movq -0x48(%rbp), %rdi
callq 0xab50
nop