// File: 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
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0xc8(%rbp)
movq %rdi, %rax
movq %rax, -0xc0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movb $0x0, -0x21(%rbp)
callq 0xc97e0
movq $0x9, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3ffd0
movq %rax, %rcx
movq -0xd0(%rbp), %rax
cmpq %rcx, %rax
je 0xc8145
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x52960
movq %rax, %rsi
leaq -0x48(%rbp), %rdi
movl $0x3a, %edx
callq 0x7bbe0
jmp 0xc7f84
movq -0x18(%rbp), %rdi
callq 0x83b30
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rdi
callq 0x83b60
movq %rax, -0x70(%rbp)
movq -0x30(%rbp), %rax
addq $-0x9, %rax
movq %rax, -0x78(%rbp)
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x83ae0
movq %rax, -0xd8(%rbp)
jmp 0xc7fc4
movq -0xd8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rdi
callq 0x83b60
movq %rax, -0x80(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x83aa0
testb $0x1, %al
jne 0xc7fef
jmp 0xc8055
leaq -0x48(%rbp), %rdi
movl $0x2, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq %rax, %rdi
callq 0xa970
movq -0xc8(%rbp), %rdi
movl %eax, -0x84(%rbp)
leaq -0x84(%rbp), %rsi
callq 0x4ce80
jmp 0xc8028
jmp 0xc8055
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xc8179
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3dfa0
jmp 0xc8179
movq -0x20(%rbp), %rdi
callq 0x83b30
movq %rax, -0x98(%rbp)
movq -0x20(%rbp), %rdi
callq 0x83b60
movq %rax, -0xa0(%rbp)
movq -0x30(%rbp), %rax
addq $-0x9, %rax
movq %rax, -0xa8(%rbp)
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0x83ae0
movq %rax, -0xe0(%rbp)
jmp 0xc80a7
movq -0xe0(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x20(%rbp), %rdi
callq 0x83b60
movq %rax, -0xb0(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x83aa0
testb $0x1, %al
jne 0xc80de
jmp 0xc812b
movq -0xc8(%rbp), %rax
addq $0x18, %rax
movq %rax, -0xe8(%rbp)
leaq -0x48(%rbp), %rdi
movl $0x2, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq %rax, %rdi
callq 0xa970
movq -0xe8(%rbp), %rdi
movl %eax, -0xb4(%rbp)
leaq -0xb4(%rbp), %rsi
callq 0x4ce80
jmp 0xc8129
jmp 0xc812b
leaq -0x48(%rbp), %rdi
callq 0x3dfa0
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xc7f3d
movq -0xc8(%rbp), %rdi
callq 0xc9820
jmp 0xc8153
movb $0x1, -0x21(%rbp)
testb $0x1, -0x21(%rbp)
jne 0xc8169
movq -0xc8(%rbp), %rdi
callq 0xc98e0
movq -0xc0(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
movq -0xc8(%rbp), %rdi
callq 0xc98e0
movq -0x50(%rbp), %rdi
callq 0xab50
nop