// File: millanek[P]Dsuite/Dsuite_utils.cpp
// Function: GeneralSetCountsWithSplits::getAFsFromADtagWithSplits(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::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<unsigned long, std::allocator<unsigned long>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::vector<unsigned long, std::allocator<unsigned long>>>>> const&, int, int)
void GeneralSetCountsWithSplits::getAFsFromADtagWithSplits(const std::vector<std::string>& genotypeFields, const std::map<string, std::vector<size_t>>& setsToPosMap, const int ADTagPosition, const int minDepth) {
    
    
    for (std::vector<std::string>::size_type i = 0; i < genotypeFields.size(); i++) {
       // std::cerr << genotypeFields[i] << std::endl;
        std::string thisADstring = split(genotypeFields[i], ':')[ADTagPosition];
        if (thisADstring == ".") {
            std::cerr << "The AD tag info appears to be missing: " << thisADstring << " ; Exiting ..." << std::endl;
            exit(1);
        }
        
        else {
            std::vector<double> ADs = splitToDouble(thisADstring,',');
            if (ADs.size() != 2) {
                std::cerr << "This AD tag appears malformed: " << thisADstring << " ; Exiting ..." << std::endl;
                exit(1);
            }
            
            int overallDepth = ADs[0] + ADs[1];
            if (overallDepth >= minDepth) {
                 individualPoolAAFs[i] = ADs[0]/(overallDepth);
            }
        }
    }
    
    for(std::map<string, std::vector<size_t>>::const_iterator it = setsToPosMap.begin(); it != setsToPosMap.end(); ++it) {
        int individualsInThisSet = (int) it->second.size();
        assert(individualsInThisSet > 0);
        if (individualsInThisSet == 1) {
            int pos = (int) it->second[0];
            setPoolAAFs.at(it->first) = individualPoolAAFs[pos];
            setPoolAAFsplit1.at(it->first) = individualPoolAAFs[pos];
            setPoolAAFsplit2.at(it->first) = individualPoolAAFs[pos];
        } else {
            std::vector<double> thisSetAFs;
            for (int i = 0; i < individualsInThisSet; i++) {
                int pos = (int) it->second[i];
                thisSetAFs.push_back(individualPoolAAFs[pos]);
            }
            setPoolAAFs.at(it->first) = vector_average(thisSetAFs);
            
            // Take care of the splits by random sampling with replacement:
            std::random_device rd;     // only used once to initialise (seed) engine
            std::mt19937 rng(rd());    // random-number engine used (Mersenne-Twister in this case)
            std::uniform_int_distribution<int> uni(0,(individualsInThisSet - 1)); // guaranteed unbiased
            
            std::vector<double> thisSetAFsplit1; std::vector<double> thisSetAFsplit2;
            for (int i = 0; i < individualsInThisSet; i++) {
                int random_pos_s1 = uni(rng);
                int random_pos_s2 = uni(rng);
                thisSetAFsplit1.push_back(individualPoolAAFs[random_pos_s1]);
                thisSetAFsplit2.push_back(individualPoolAAFs[random_pos_s2]);
            }
            setPoolAAFsplit1.at(it->first) = vector_average(thisSetAFsplit1);
            setPoolAAFsplit2.at(it->first) = vector_average(thisSetAFsplit2);
            
        }
        
        if (AAint == AncestralAlleleRef) {
            setPoolDAFs.at(it->first) = setPoolAAFs.at(it->first);
            setPoolDAFsplit1.at(it->first) = setPoolAAFsplit1.at(it->first);
            setPoolDAFsplit2.at(it->first) = setPoolAAFsplit2.at(it->first);
        } else if (AAint == AncestralAlleleAlt && setPoolAAFs.at(it->first) != -1.0) {
            setPoolDAFs.at(it->first) = (1 - setPoolAAFs.at(it->first));
            setPoolDAFsplit1.at(it->first) = (1 - setPoolAAFsplit1.at(it->first));
            setPoolDAFsplit2.at(it->first) = (1 - setPoolAAFsplit2.at(it->first));
        }
            
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x29f0, %rsp           # imm = 0x29F0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x2870(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x2878(%rbp)
movq -0x10(%rbp), %rdi
callq 0x10740
movq %rax, %rcx
movq -0x2878(%rbp), %rax
cmpq %rcx, %rax
jae 0xc86d
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x10720
movq %rax, %rsi
leaq -0x60(%rbp), %rdi
movq %rdi, -0x2880(%rbp)
movl $0x3a, %edx
callq 0xaef0
movq -0x2880(%rbp), %rdi
movslq -0x1c(%rbp), %rsi
callq 0x10b10
movq %rax, %rsi
leaq -0x48(%rbp), %rdi
callq 0x8250
jmp 0xc61b
leaq -0x60(%rbp), %rdi
callq 0x10760
leaq 0x7bf0b(%rip), %rsi     # 0x88536
leaq -0x48(%rbp), %rdi
callq 0x9ab0
movb %al, -0x2881(%rbp)
jmp 0xc63c
movb -0x2881(%rbp), %al
testb $0x1, %al
jne 0xc64b
jmp 0xc6e6
movq 0xb299e(%rip), %rdi     # 0xbeff0
leaq 0x7bea8(%rip), %rsi     # 0x88501
callq 0x8590
movq %rax, -0x2890(%rbp)
jmp 0xc667
movq -0x2890(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x8520
movq %rax, -0x2898(%rbp)
jmp 0xc680
movq -0x2898(%rbp), %rdi
leaq 0x7be9b(%rip), %rsi     # 0x88529
callq 0x8590
movq %rax, -0x28a0(%rbp)
jmp 0xc69c
movq -0x28a0(%rbp), %rdi
movq 0xb28b6(%rip), %rsi     # 0xbef60
callq 0x85f0
jmp 0xc6b1
movl $0x1, %edi
callq 0x86e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x10760
jmp 0xd213
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0xc85f
leaq -0x88(%rbp), %rdi
leaq -0x48(%rbp), %rsi
movl $0x2c, %edx
callq 0xbdd0
jmp 0xc6fd
leaq -0x88(%rbp), %rdi
callq 0x10e50
cmpq $0x2, %rax
je 0xc7a0
movq 0xb28d6(%rip), %rdi     # 0xbeff0
leaq 0x7be17(%rip), %rsi     # 0x88538
callq 0x8590
movq %rax, -0x28a8(%rbp)
jmp 0xc72f
movq -0x28a8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x8520
movq %rax, -0x28b0(%rbp)
jmp 0xc748
movq -0x28b0(%rbp), %rdi
leaq 0x7bdd3(%rip), %rsi     # 0x88529
callq 0x8590
movq %rax, -0x28b8(%rbp)
jmp 0xc764
movq -0x28b8(%rbp), %rdi
movq 0xb27ee(%rip), %rsi     # 0xbef60
callq 0x85f0
jmp 0xc779
movl $0x1, %edi
callq 0x86e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x10930
jmp 0xc85f
leaq -0x88(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x107e0
movsd (%rax), %xmm0
movsd %xmm0, -0x28c0(%rbp)
leaq -0x88(%rbp), %rdi
movl $0x1, %esi
callq 0x107e0
movsd -0x28c0(%rbp), %xmm0
addsd (%rax), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x20(%rbp), %eax
jl 0xc839
leaq -0x88(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x107e0
movq -0x2870(%rbp), %rdi
movsd (%rax), %xmm0
cvtsi2sdl -0x8c(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x28c8(%rbp)
addq $0x128, %rdi            # imm = 0x128
movq -0x28(%rbp), %rsi
callq 0x107e0
movsd -0x28c8(%rbp), %xmm0
movsd %xmm0, (%rax)
leaq -0x88(%rbp), %rdi
callq 0x10930
leaq -0x48(%rbp), %rdi
callq 0x8c08
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0xc5b1
leaq -0x48(%rbp), %rdi
callq 0x8c08
jmp 0xd213
movq -0x18(%rbp), %rdi
callq 0x10e70
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rdi
callq 0x10ed0
movq %rax, -0xa0(%rbp)
leaq -0x98(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x10ea0
testb $0x1, %al
jne 0xc8a9
jmp 0xd20a
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq %rax, %rdi
addq $0x20, %rdi
callq 0x10f30
movl %eax, -0xa4(%rbp)
cmpl $0x0, -0xa4(%rbp)
jle 0xc8d2
jmp 0xc8f1
leaq 0x7bc7f(%rip), %rdi     # 0x88558
leaq 0x7bc91(%rip), %rsi     # 0x88571
movl $0x123, %edx            # imm = 0x123
leaq 0x7bd24(%rip), %rcx     # 0x88610
callq 0x83b0
cmpl $0x1, -0xa4(%rbp)
jne 0xca54
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq %rax, %rdi
addq $0x20, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x10f50
movq -0x2870(%rbp), %rdi
movq (%rax), %rax
movl %eax, -0xa8(%rbp)
addq $0x128, %rdi            # imm = 0x128
movslq -0xa8(%rbp), %rsi
callq 0x107e0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd (%rcx), %xmm0
movsd %xmm0, -0x28f0(%rbp)
addq $0x140, %rax            # imm = 0x140
movq %rax, -0x28f8(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x28f8(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movsd -0x28f0(%rbp), %xmm0
movq -0x2870(%rbp), %rdi
movsd %xmm0, (%rax)
addq $0x128, %rdi            # imm = 0x128
movslq -0xa8(%rbp), %rsi
callq 0x107e0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd (%rcx), %xmm0
movsd %xmm0, -0x28e0(%rbp)
addq $0x5e8, %rax            # imm = 0x5E8
movq %rax, -0x28e8(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x28e8(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movsd -0x28e0(%rbp), %xmm0
movq -0x2870(%rbp), %rdi
movsd %xmm0, (%rax)
addq $0x128, %rdi            # imm = 0x128
movslq -0xa8(%rbp), %rsi
callq 0x107e0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd (%rcx), %xmm0
movsd %xmm0, -0x28d0(%rbp)
addq $0x648, %rax            # imm = 0x648
movq %rax, -0x28d8(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x28d8(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movsd -0x28d0(%rbp), %xmm0
movsd %xmm0, (%rax)
jmp 0xce8c
leaq -0xc0(%rbp), %rdi
callq 0x10800
movl $0x0, -0xc4(%rbp)
movl -0xc4(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jge 0xcaee
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq %rax, %rdi
addq $0x20, %rdi
movslq -0xc4(%rbp), %rsi
callq 0x10f50
movq -0x2870(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0xc8(%rbp)
addq $0x128, %rdi            # imm = 0x128
movslq -0xc8(%rbp), %rsi
callq 0x107e0
movq %rax, %rsi
leaq -0xc0(%rbp), %rdi
callq 0x10f70
jmp 0xcaca
jmp 0xcacc
movl -0xc4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc4(%rbp)
jmp 0xca6a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0xce7b
leaq -0xe0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x110a0
jmp 0xcb03
leaq -0xe0(%rbp), %rdi
callq 0x10fe0
movsd %xmm0, -0x2900(%rbp)
jmp 0xcb19
movq -0x2870(%rbp), %rax
addq $0x140, %rax            # imm = 0x140
movq %rax, -0x2910(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x2910(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movq %rax, -0x2908(%rbp)
jmp 0xcb51
movq -0x2908(%rbp), %rax
movsd -0x2900(%rbp), %xmm0
movsd %xmm0, (%rax)
leaq -0xe0(%rbp), %rdi
callq 0x10930
leaq -0x1468(%rbp), %rdi
callq 0x111c0
jmp 0xcb7e
leaq -0x1468(%rbp), %rdi
callq 0x11260
movl %eax, -0x2914(%rbp)
jmp 0xcb92
movl -0x2914(%rbp), %eax
movl %eax, %eax
movl %eax, %esi
leaq -0x27f0(%rbp), %rdi
callq 0x11280
jmp 0xcbaa
movl -0xa4(%rbp), %edx
decl %edx
leaq -0x27f8(%rbp), %rdi
xorl %esi, %esi
callq 0x112b0
jmp 0xcbc2
leaq -0x2810(%rbp), %rdi
callq 0x10800
leaq -0x2828(%rbp), %rdi
callq 0x10800
movl $0x0, -0x282c(%rbp)
movl -0x282c(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jge 0xccef
leaq -0x27f8(%rbp), %rdi
leaq -0x27f0(%rbp), %rsi
callq 0x112e0
movl %eax, -0x2918(%rbp)
jmp 0xcc11
movl -0x2918(%rbp), %eax
movl %eax, -0x2830(%rbp)
leaq -0x27f8(%rbp), %rdi
leaq -0x27f0(%rbp), %rsi
callq 0x112e0
movl %eax, -0x291c(%rbp)
jmp 0xcc38
movq -0x2870(%rbp), %rdi
movl -0x291c(%rbp), %eax
movl %eax, -0x2834(%rbp)
addq $0x128, %rdi            # imm = 0x128
movslq -0x2830(%rbp), %rsi
callq 0x107e0
movq %rax, %rsi
leaq -0x2810(%rbp), %rdi
callq 0x10f70
jmp 0xcc6f
movq -0x2870(%rbp), %rdi
addq $0x128, %rdi            # imm = 0x128
movslq -0x2834(%rbp), %rsi
callq 0x107e0
movq %rax, %rsi
leaq -0x2828(%rbp), %rdi
callq 0x10f70
jmp 0xcc9a
jmp 0xcc9c
movl -0x282c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x282c(%rbp)
jmp 0xcbe4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x10930
jmp 0xce7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0xce6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0xce57
leaq -0x2850(%rbp), %rdi
leaq -0x2810(%rbp), %rsi
callq 0x110a0
jmp 0xcd04
leaq -0x2850(%rbp), %rdi
callq 0x10fe0
movsd %xmm0, -0x2928(%rbp)
jmp 0xcd1a
movq -0x2870(%rbp), %rax
addq $0x5e8, %rax            # imm = 0x5E8
movq %rax, -0x2938(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x2938(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movq %rax, -0x2930(%rbp)
jmp 0xcd52
movq -0x2930(%rbp), %rax
movsd -0x2928(%rbp), %xmm0
movsd %xmm0, (%rax)
leaq -0x2850(%rbp), %rdi
callq 0x10930
leaq -0x2868(%rbp), %rdi
leaq -0x2828(%rbp), %rsi
callq 0x110a0
jmp 0xcd86
leaq -0x2868(%rbp), %rdi
callq 0x10fe0
movsd %xmm0, -0x2940(%rbp)
jmp 0xcd9c
movq -0x2870(%rbp), %rax
addq $0x648, %rax            # imm = 0x648
movq %rax, -0x2950(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x2950(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movq %rax, -0x2948(%rbp)
jmp 0xcdd4
movq -0x2948(%rbp), %rax
movsd -0x2940(%rbp), %xmm0
movsd %xmm0, (%rax)
leaq -0x2868(%rbp), %rdi
callq 0x10930
leaq -0x2828(%rbp), %rdi
callq 0x10930
leaq -0x2810(%rbp), %rdi
callq 0x10930
leaq -0x1468(%rbp), %rdi
callq 0x11310
leaq -0xc0(%rbp), %rdi
callq 0x10930
jmp 0xce8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x2850(%rbp), %rdi
callq 0x10930
jmp 0xce57
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x2868(%rbp), %rdi
callq 0x10930
leaq -0x2828(%rbp), %rdi
callq 0x10930
leaq -0x2810(%rbp), %rdi
callq 0x10930
leaq -0x1468(%rbp), %rdi
callq 0x11310
leaq -0xc0(%rbp), %rdi
callq 0x10930
jmp 0xd213
movq -0x2870(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jne 0xd013
movq -0x2870(%rbp), %rax
addq $0x140, %rax            # imm = 0x140
movq %rax, -0x2998(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x2998(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd (%rcx), %xmm0
movsd %xmm0, -0x2988(%rbp)
addq $0x170, %rax            # imm = 0x170
movq %rax, -0x2990(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x2990(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movsd -0x2988(%rbp), %xmm0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd %xmm0, (%rcx)
addq $0x5e8, %rax            # imm = 0x5E8
movq %rax, -0x2980(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x2980(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd (%rcx), %xmm0
movsd %xmm0, -0x2970(%rbp)
addq $0x618, %rax            # imm = 0x618
movq %rax, -0x2978(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x2978(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movsd -0x2970(%rbp), %xmm0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd %xmm0, (%rcx)
addq $0x648, %rax            # imm = 0x648
movq %rax, -0x2968(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x2968(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd (%rcx), %xmm0
movsd %xmm0, -0x2958(%rbp)
addq $0x678, %rax            # imm = 0x678
movq %rax, -0x2960(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x2960(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movsd -0x2958(%rbp), %xmm0
movsd %xmm0, (%rax)
jmp 0xd1f7
movq -0x2870(%rbp), %rax
cmpl $0x1, 0x4(%rax)
jne 0xd1f5
movq -0x2870(%rbp), %rax
addq $0x140, %rax            # imm = 0x140
movq %rax, -0x29a0(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x29a0(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movsd (%rax), %xmm0
movsd 0x7b469(%rip), %xmm1    # 0x884c8
ucomisd %xmm1, %xmm0
jne 0xd06c
jp 0xd06c
jmp 0xd1f5
movq -0x2870(%rbp), %rax
addq $0x140, %rax            # imm = 0x140
movq %rax, -0x29e8(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x29e8(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd 0x7b3fb(%rip), %xmm0    # 0x884a8
subsd (%rcx), %xmm0
movsd %xmm0, -0x29d8(%rbp)
addq $0x170, %rax            # imm = 0x170
movq %rax, -0x29e0(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x29e0(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movsd -0x29d8(%rbp), %xmm0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd %xmm0, (%rcx)
addq $0x5e8, %rax            # imm = 0x5E8
movq %rax, -0x29d0(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x29d0(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd 0x7b377(%rip), %xmm0    # 0x884a8
subsd (%rcx), %xmm0
movsd %xmm0, -0x29c0(%rbp)
addq $0x618, %rax            # imm = 0x618
movq %rax, -0x29c8(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x29c8(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movsd -0x29c0(%rbp), %xmm0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd %xmm0, (%rcx)
addq $0x648, %rax            # imm = 0x648
movq %rax, -0x29b8(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x29b8(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movq %rax, %rcx
movq -0x2870(%rbp), %rax
movsd 0x7b2f3(%rip), %xmm0    # 0x884a8
subsd (%rcx), %xmm0
movsd %xmm0, -0x29a8(%rbp)
addq $0x678, %rax            # imm = 0x678
movq %rax, -0x29b0(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f00
movq -0x29b0(%rbp), %rdi
movq %rax, %rsi
callq 0x10db0
movsd -0x29a8(%rbp), %xmm0
movsd %xmm0, (%rax)
jmp 0xd1f7
jmp 0xd1f9
leaq -0x98(%rbp), %rdi
callq 0x11190
jmp 0xc87d
addq $0x29f0, %rsp           # imm = 0x29F0
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0x8a50
nopl (%rax)