// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/process_vcf_search_sex.cpp
// Function: getSetVariantDepths(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<unsigned long, std::allocator<unsigned long>> const&, std::vector<unsigned long, std::allocator<unsigned long>> const&)
SetDepths getSetVariantDepths(const std::vector<std::string>& fields, const std::vector<size_t>& set1_loci, const std::vector<size_t>& set2_loci) {
    SetDepths thisVariantDepths;
    for (std::vector<std::string>::size_type i = NUM_NON_GENOTYPE_COLUMNS; i != fields.size(); i++) {
        std::vector<string> genotype_field = split(fields[i], ':');
        if (std::find(set1_loci.begin(), set1_loci.end(), i-NUM_NON_GENOTYPE_COLUMNS) != set1_loci.end()) { thisVariantDepths.set1Depths.push_back(atoi(genotype_field[2].c_str())); }
        if (std::find(set2_loci.begin(), set2_loci.end(), i-NUM_NON_GENOTYPE_COLUMNS) != set2_loci.end()) { thisVariantDepths.set2Depths.push_back(atoi(genotype_field[2].c_str())); }
    }
    thisVariantDepths.fillMeanDepths();
    return thisVariantDepths;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, 0x28(%rsp)
movq %rsi, %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq (%rsi), %rsi
movq %rax, 0x20(%rsp)
movq 0x8(%rax), %rax
subq %rsi, %rax
cmpq $0x120, %rax            # imm = 0x120
movq %rdi, 0x10(%rsp)
je 0x80150
movq %rdx, %r15
leaq 0x18(%rbx), %rax
movq %rax, 0x18(%rsp)
movl $0x9, %ebp
movl $0x120, %r13d           # imm = 0x120
leaq 0x30(%rsp), %r12
addq %r13, %rsi
movq %r12, %r14
movq %r12, %rdi
movl $0x3a, %edx
callq 0x4d650
movq (%r15), %rdi
movq 0x8(%r15), %rsi
leaq -0x9(%rbp), %r12
movq %r12, 0x8(%rsp)
leaq 0x8(%rsp), %rdx
callq 0x5706e
cmpq 0x8(%r15), %rax
je 0x800bf
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x86e0
movl %eax, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x800b2
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x800bf
movq %rbx, %rdi
leaq 0x8(%rsp), %rdx
callq 0x33074
movq %r15, %rbx
movq 0x28(%rsp), %r15
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r12, 0x8(%rsp)
leaq 0x8(%rsp), %rdx
callq 0x5706e
cmpq 0x8(%r15), %rax
movq %r14, %r12
movq %rbx, %r15
movq 0x10(%rsp), %rbx
je 0x80125
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x86e0
movl %eax, 0x8(%rsp)
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x80116
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%rbx)
jmp 0x80125
movq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x33074
movq %r12, %rdi
callq 0x2e784
incq %rbp
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rax
subq %rsi, %rax
sarq $0x5, %rax
addq $0x20, %r13
cmpq %rax, %rbp
jne 0x80057
movq %rbx, %rdi
callq 0x81cd2
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x80170
jmp 0x80177
jmp 0x80177
movq %rax, %r14
jmp 0x80184
jmp 0x80177
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x2e784
movq 0x10(%rsp), %rdi
callq 0x81dec
movq %r14, %rdi
callq 0x8840