// File: /workspace/github_cpp_makefile_star2_O1/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 0x80520
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 0x50624
movq (%r15), %rdi
movq 0x8(%r15), %rsi
leaq -0x9(%rbp), %r12
movq %r12, 0x8(%rsp)
leaq 0x8(%rsp), %rdx
callq 0x56e90
cmpq 0x8(%r15), %rax
je 0x8048f
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x86e0
movl %eax, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x80482
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x8048f
movq %rbx, %rdi
leaq 0x8(%rsp), %rdx
callq 0x35b1e
movq %r15, %rbx
movq 0x28(%rsp), %r15
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r12, 0x8(%rsp)
leaq 0x8(%rsp), %rdx
callq 0x56e90
cmpq 0x8(%r15), %rax
movq %r14, %r12
movq %rbx, %r15
movq 0x10(%rsp), %rbx
je 0x804f5
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x86e0
movl %eax, 0x8(%rsp)
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x804e6
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%rbx)
jmp 0x804f5
movq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x35b1e
movq %r12, %rdi
callq 0x3123c
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 0x80427
movq %rbx, %rdi
callq 0x820a8
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x80540
jmp 0x80547
jmp 0x80547
movq %rax, %r14
jmp 0x80554
jmp 0x80547
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x3123c
movq 0x10(%rsp), %rdi
callq 0x821d6
movq %r14, %rdi
callq 0x8840