// File: millanek[P]Dsuite/Dsuite_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>>>> const&, 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(const 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>::const_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 0x11da0
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x10740
movq %rax, %rcx
movq -0xa0(%rbp), %rax
cmpq %rcx, %rax
je 0xfc24
movq -0x10(%rbp), %rdi
callq 0x11e10
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x11e40
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x10720
movq %rax, %rdx
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x11dc0
movq %rax, -0xa8(%rbp)
jmp 0xfac0
movq -0xa8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
callq 0x11e40
movq %rax, -0x58(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x11e70
testb $0x1, %al
jne 0xfaee
jmp 0xfbc1
movq 0xaf4fb(%rip), %rdi     # 0xbeff0
leaq 0x78c42(%rip), %rsi     # 0x8873e
callq 0x8590
movq %rax, -0xb0(%rbp)
jmp 0xfb0a
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x10720
movq -0xb0(%rbp), %rdi
movq %rax, %rsi
callq 0x8520
movq %rax, -0xb8(%rbp)
jmp 0xfb2f
movq -0xb8(%rbp), %rdi
leaq 0x78c1a(%rip), %rsi     # 0x88757
callq 0x8590
movq %rax, -0xc0(%rbp)
jmp 0xfb4b
movq -0xc0(%rbp), %rdi
movq 0xaf407(%rip), %rsi     # 0xbef60
callq 0x85f0
jmp 0xfb60
movq -0x10(%rbp), %rsi
leaq -0x70(%rbp), %rdi
callq 0x11fc0
jmp 0xfb6f
movq 0xaf47a(%rip), %rsi     # 0xbeff0
leaq -0x70(%rbp), %rdi
movl $0x2c, %edx
movl $0x1, %ecx
callq 0x11eb0
jmp 0xfb8b
leaq -0x70(%rbp), %rdi
callq 0x10760
jmp 0xfc11
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xfc4a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x10760
jmp 0xfc4a
movq -0x10(%rbp), %rdi
callq 0x11e10
movq %rax, -0x80(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x120b0
movq %rax, -0xc8(%rbp)
jmp 0xfbf2
movq -0x98(%rbp), %rdi
movq -0xc8(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x78(%rbp), %rsi
callq 0x120f0
jmp 0xfc0f
jmp 0xfc11
jmp 0xfc13
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0xfa59
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0xfc3a
movq -0x98(%rbp), %rdi
callq 0x12160
movq -0x90(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
movq -0x98(%rbp), %rdi
callq 0x12160
movq -0x48(%rbp), %rdi
callq 0x8a50
nop