// File: millanek[P]evo/process_vcf_fst.cpp
// Function: summariseEigensoft()
void summariseEigensoft() {
    std::ifstream* eigenFile = new std::ifstream(opt::eigensoftFile.c_str());
    string fileRoot = stripExtension(opt::eigensoftFile);
    string FstResultsFileName = fileRoot + "_" + opt::runName + "_fst_matrix.forR";
    std::ofstream* pFst = new std::ofstream(FstResultsFileName.c_str());
    std::vector<std::vector<std::string> > fst_matrix;
    
    string line;
    getline(*eigenFile, line); // Get the first description line
    short type;
    if (line == "##") {
        type = 1;
    } else {
        type = 2;
    }
    std::cerr << "It is type: " << type << std::endl;
    if (type == 1) {
        getline(*eigenFile, line);
        std::vector<std::string> fields = split(line, '\t');
        std::vector<std::string> this_indiv_fst;
        std::vector<std::string> all_indiv;
        string this_indiv = fields[0];
        this_indiv_fst.push_back(fields[2]);
        while (getline(*eigenFile, line)) {
            fields = split(line, '\t');
            std::cerr << "Indiv: " << fields[0] << std::endl;
            if (this_indiv == fields[0]) {
                this_indiv_fst.push_back(fields[2]);
            } else {
                fst_matrix.push_back(this_indiv_fst);
                all_indiv.push_back(this_indiv);
                this_indiv = fields[0];
                this_indiv_fst.clear();
                this_indiv_fst.push_back(fields[2]);
            }
        }
        all_indiv.push_back(this_indiv);
        fst_matrix.push_back(this_indiv_fst);
        this_indiv_fst.clear(); this_indiv_fst.push_back("0"); all_indiv.push_back(fields[1]);
        fst_matrix.push_back(this_indiv_fst);
        
        for (std::vector<std::vector<std::string> >::size_type i = 0; i != fst_matrix.size(); i++) {
            std::reverse(fst_matrix[i].begin(), fst_matrix[i].end());
            fst_matrix[i].insert(fst_matrix[i].end(), "0");
            while (fst_matrix[i].size() != fst_matrix[0].size()) {
                fst_matrix[i].insert(fst_matrix[i].end(), "0");
            }
        }
        std::reverse(fst_matrix.begin(), fst_matrix.end());
        std::reverse(all_indiv.begin(), all_indiv.end());
        
        print_vector(all_indiv, *pFst);
        print_matrix(fst_matrix, *pFst);
    } else if (type == 2) {
        std::cerr << "type2" << std::endl;
        std::vector<std::string> fields = split(line, '\t');
        std::vector<std::string> all_indiv(fields.begin()+1,fields.end());
        getline(*eigenFile, line); getline(*eigenFile, line);
        std::vector<std::string> this_indiv_fst;
        while (getline(*eigenFile, line)) {
            fields = split(line, '\t');
            std::copy(fields.begin()+1,fields.end(),std::back_inserter(this_indiv_fst));
            for (std::vector<std::string>::size_type i = 0; i != this_indiv_fst.size(); i++) {
                double fst = convertToDouble(this_indiv_fst[i]) / 1000;
                this_indiv_fst[i] = numToString(fst);
            }
            fst_matrix.push_back(this_indiv_fst);
            this_indiv_fst.clear();
        }
        print_vector(all_indiv, *pFst);
        print_matrix(fst_matrix, *pFst);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x4b0, %rsp            # imm = 0x4B0
movl $0x208, %edi            # imm = 0x208
callq 0xa5d0
movq %rax, -0x380(%rbp)
movq %rax, -0x388(%rbp)
leaq 0xb97ae(%rip), %rdi     # 0x19af48
callq 0xa220
movq -0x380(%rbp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0xab90
jmp 0xe17b5
movq -0x388(%rbp), %rax
movq %rax, -0x8(%rbp)
leaq 0xb9781(%rip), %rsi     # 0x19af48
leaq -0x38(%rbp), %rdi
movq %rdi, -0x390(%rbp)
callq 0x7be70
movq -0x390(%rbp), %rsi
leaq 0x5e5ab(%rip), %rdx     # 0x13fd90
leaq -0x98(%rbp), %rdi
callq 0x3da80
jmp 0xe17f3
leaq 0xb978e(%rip), %rdx     # 0x19af88
leaq -0x78(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x3da30
jmp 0xe180c
leaq 0x666a1(%rip), %rdx     # 0x147eb4
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x3e020
jmp 0xe1822
leaq -0x78(%rbp), %rdi
callq 0xac88
leaq -0x98(%rbp), %rdi
callq 0xac88
movl $0x200, %edi            # imm = 0x200
callq 0xa5d0
movq %rax, -0x398(%rbp)
jmp 0xe184a
leaq -0x58(%rbp), %rdi
callq 0xa220
movq -0x398(%rbp), %rdi
movq %rax, %rsi
movl $0x10, %edx
callq 0xa650
jmp 0xe1869
movq -0x398(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x3f5f0
leaq -0xd8(%rbp), %rdi
movq %rdi, -0x3a0(%rbp)
callq 0xa820
movq -0x3a0(%rbp), %rsi
movq -0x8(%rbp), %rdi
callq 0xa0d0
jmp 0xe18a8
leaq 0x66616(%rip), %rsi     # 0x147ec5
leaq -0xd8(%rbp), %rdi
callq 0x2d770
movb %al, -0x3a1(%rbp)
jmp 0xe18c3
movb -0x3a1(%rbp), %al
testb $0x1, %al
jne 0xe18d2
jmp 0xe198b
movw $0x1, -0xda(%rbp)
jmp 0xe1994
movq -0x388(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
movl $0x208, %esi            # imm = 0x208
callq 0xa5e0
jmp 0xe26ae
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xe26a5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xe1936
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x78(%rbp), %rdi
callq 0xac88
leaq -0x98(%rbp), %rdi
callq 0xac88
jmp 0xe26a5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xe269c
movq -0x398(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
movl $0x200, %esi            # imm = 0x200
callq 0xa5e0
jmp 0xe269c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xe2684
movw $0x2, -0xda(%rbp)
movq 0xb7655(%rip), %rdi     # 0x198ff0
leaq 0x66526(%rip), %rsi     # 0x147ec8
callq 0xa5c0
movq %rax, -0x3b0(%rbp)
jmp 0xe19b0
movq -0x3b0(%rbp), %rdi
movswl -0xda(%rbp), %esi
callq 0xa540
movq %rax, -0x3b8(%rbp)
jmp 0xe19cc
movq -0x3b8(%rbp), %rdi
movq 0xb75ae(%rip), %rsi     # 0x198f88
callq 0xa610
jmp 0xe19e1
movswl -0xda(%rbp), %eax
cmpl $0x1, %eax
jne 0xe21f1
movq -0x8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0xa0d0
jmp 0xe1a03
leaq -0xf8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
movl $0x9, %edx
callq 0x7bbe0
jmp 0xe1a1d
leaq -0x110(%rbp), %rdi
callq 0x48da0
leaq -0x128(%rbp), %rdi
callq 0x48da0
xorl %eax, %eax
movl %eax, %esi
leaq -0xf8(%rbp), %rdi
callq 0x3d940
movq %rax, %rsi
leaq -0x148(%rbp), %rdi
callq 0xa250
jmp 0xe1a56
leaq -0xf8(%rbp), %rdi
movl $0x2, %esi
callq 0x3d940
movq %rax, %rsi
leaq -0x110(%rbp), %rdi
callq 0x48dc0
jmp 0xe1a78
jmp 0xe1a7a
movq -0x8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0xa0d0
movq %rax, -0x3c0(%rbp)
jmp 0xe1a93
movq -0x3c0(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0xa740
movb %al, -0x3c1(%rbp)
jmp 0xe1ab1
movb -0x3c1(%rbp), %al
testb $0x1, %al
jne 0xe1ac0
jmp 0xe1c4e
leaq -0x160(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
movl $0x9, %edx
callq 0x7bbe0
jmp 0xe1ada
leaq -0xf8(%rbp), %rdi
leaq -0x160(%rbp), %rsi
movq %rsi, -0x3d8(%rbp)
callq 0x50c30
movq -0x3d8(%rbp), %rdi
callq 0x3dfa0
movq 0xb74e9(%rip), %rdi     # 0x198ff0
leaq 0x663c7(%rip), %rsi     # 0x147ed5
callq 0xa5c0
movq %rax, -0x3d0(%rbp)
jmp 0xe1b1c
xorl %eax, %eax
movl %eax, %esi
leaq -0xf8(%rbp), %rdi
callq 0x3d940
movq -0x3d0(%rbp), %rdi
movq %rax, %rsi
callq 0xa520
movq %rax, -0x3e0(%rbp)
jmp 0xe1b44
movq -0x3e0(%rbp), %rdi
movq 0xb7436(%rip), %rsi     # 0x198f88
callq 0xa610
jmp 0xe1b59
leaq -0xf8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x3d940
movq %rax, %rsi
leaq -0x148(%rbp), %rdi
callq 0x39210
testb $0x1, %al
jne 0xe1b7e
jmp 0xe1bc7
leaq -0xf8(%rbp), %rdi
movl $0x2, %esi
callq 0x3d940
movq %rax, %rsi
leaq -0x110(%rbp), %rdi
callq 0x48dc0
jmp 0xe1ba0
jmp 0xe1c49
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xe21c8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xe21bc
leaq -0xb8(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x3f610
jmp 0xe1bdc
leaq -0x128(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x48dc0
jmp 0xe1bf1
xorl %eax, %eax
movl %eax, %esi
leaq -0xf8(%rbp), %rdi
callq 0x3d940
movq %rax, %rsi
leaq -0x148(%rbp), %rdi
callq 0xa060
jmp 0xe1c12
leaq -0x110(%rbp), %rdi
movq %rdi, -0x3e8(%rbp)
callq 0x591f0
leaq -0xf8(%rbp), %rdi
movl $0x2, %esi
callq 0x3d940
movq -0x3e8(%rbp), %rdi
movq %rax, %rsi
callq 0x48dc0
jmp 0xe1c47
jmp 0xe1c49
jmp 0xe1a7a
leaq -0x128(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x48dc0
jmp 0xe1c63
leaq -0xb8(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x3f610
jmp 0xe1c78
leaq -0x110(%rbp), %rdi
callq 0x591f0
leaq -0x181(%rbp), %rdi
movq %rdi, -0x3f0(%rbp)
callq 0xab60
movq -0x3f0(%rbp), %rdx
leaq 0x51a48(%rip), %rsi     # 0x1336ed
leaq -0x180(%rbp), %rdi
callq 0x2d6c0
jmp 0xe1cb3
leaq -0x110(%rbp), %rdi
leaq -0x180(%rbp), %rsi
callq 0x5f980
jmp 0xe1cc8
leaq -0x180(%rbp), %rdi
callq 0xac88
leaq -0x181(%rbp), %rdi
callq 0xa640
leaq -0xf8(%rbp), %rdi
movl $0x1, %esi
callq 0x3d940
movq %rax, %rsi
leaq -0x128(%rbp), %rdi
callq 0x48dc0
jmp 0xe1d02
leaq -0xb8(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x3f610
jmp 0xe1d17
movq $0x0, -0x190(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x3f8(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x409f0
movq %rax, %rcx
movq -0x3f8(%rbp), %rax
cmpq %rcx, %rax
je 0xe205b
movq -0x190(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
movq %rdi, -0x400(%rbp)
callq 0x3ec10
movq %rax, %rdi
callq 0x44030
movq -0x400(%rbp), %rdi
movq %rax, -0x198(%rbp)
movq -0x190(%rbp), %rsi
callq 0x3ec10
movq %rax, %rdi
callq 0x44060
movq %rax, -0x1a0(%rbp)
movq -0x198(%rbp), %rdi
movq -0x1a0(%rbp), %rsi
callq 0xe4390
jmp 0xe1daf
movq -0x190(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
movq %rdi, -0x418(%rbp)
callq 0x3ec10
movq -0x418(%rbp), %rdi
movq %rax, -0x410(%rbp)
movq -0x190(%rbp), %rsi
callq 0x3ec10
movq %rax, %rdi
callq 0x44060
movq %rax, -0x1b0(%rbp)
leaq -0x1a8(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
callq 0x6b2e0
leaq -0x1d1(%rbp), %rdi
movq %rdi, -0x408(%rbp)
callq 0xab60
movq -0x408(%rbp), %rdx
leaq 0x518c7(%rip), %rsi     # 0x1336ed
leaq -0x1d0(%rbp), %rdi
callq 0x2d6c0
jmp 0xe1e34
movq -0x410(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
leaq -0x1d0(%rbp), %rdx
callq 0xe43d0
movq %rax, -0x420(%rbp)
jmp 0xe1e57
movq -0x420(%rbp), %rax
movq %rax, -0x1e0(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0xac88
leaq -0x1d1(%rbp), %rdi
callq 0xa640
movq -0x190(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0x3ec10
movq %rax, %rdi
callq 0x3ffd0
movq %rax, -0x428(%rbp)
leaq -0xb8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x3ec10
movq %rax, %rdi
callq 0x3ffd0
movq %rax, %rcx
movq -0x428(%rbp), %rax
cmpq %rcx, %rax
je 0xe2042
movq -0x190(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
movq %rdi, -0x440(%rbp)
callq 0x3ec10
movq -0x440(%rbp), %rdi
movq %rax, -0x438(%rbp)
movq -0x190(%rbp), %rsi
callq 0x3ec10
movq %rax, %rdi
callq 0x44060
movq %rax, -0x1f0(%rbp)
leaq -0x1e8(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x6b2e0
leaq -0x211(%rbp), %rdi
movq %rdi, -0x430(%rbp)
callq 0xab60
movq -0x430(%rbp), %rdx
leaq 0x517ac(%rip), %rsi     # 0x1336ed
leaq -0x210(%rbp), %rdi
callq 0x2d6c0
jmp 0xe1f4f
movq -0x438(%rbp), %rdi
movq -0x1e8(%rbp), %rsi
leaq -0x210(%rbp), %rdx
callq 0xe43d0
movq %rax, -0x448(%rbp)
jmp 0xe1f72
movq -0x448(%rbp), %rax
movq %rax, -0x220(%rbp)
leaq -0x210(%rbp), %rdi
callq 0xac88
leaq -0x211(%rbp), %rdi
callq 0xa640
jmp 0xe1e7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xe1fc3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x180(%rbp), %rdi
callq 0xac88
leaq -0x181(%rbp), %rdi
callq 0xa640
jmp 0xe21bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xe1ffa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0xac88
leaq -0x1d1(%rbp), %rdi
callq 0xa640
jmp 0xe21bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xe2031
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x210(%rbp), %rdi
callq 0xac88
leaq -0x211(%rbp), %rdi
callq 0xa640
jmp 0xe21bc
jmp 0xe2044
movq -0x190(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x190(%rbp)
jmp 0xe1d22
leaq -0xb8(%rbp), %rdi
movq %rdi, -0x450(%rbp)
callq 0x40840
movq -0x450(%rbp), %rdi
movq %rax, -0x228(%rbp)
callq 0x3fe80
movq %rax, -0x230(%rbp)
movq -0x228(%rbp), %rdi
movq -0x230(%rbp), %rsi
callq 0xe4410
jmp 0xe209d
leaq -0x128(%rbp), %rdi
movq %rdi, -0x458(%rbp)
callq 0x44030
movq -0x458(%rbp), %rdi
movq %rax, -0x238(%rbp)
callq 0x44060
movq %rax, -0x240(%rbp)
movq -0x238(%rbp), %rdi
movq -0x240(%rbp), %rsi
callq 0xe4390
jmp 0xe20df
leaq -0x258(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0x3fee0
jmp 0xe20f4
movq -0xa0(%rbp), %rsi
leaq -0x258(%rbp), %rdi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x50da0
jmp 0xe2113
leaq -0x258(%rbp), %rdi
callq 0x3dfa0
leaq -0x270(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x45190
jmp 0xe2134
movq -0xa0(%rbp), %rsi
leaq -0x270(%rbp), %rdi
callq 0x6bf10
jmp 0xe2149
leaq -0x270(%rbp), %rdi
callq 0x3ec50
leaq -0x148(%rbp), %rdi
callq 0xac88
leaq -0x128(%rbp), %rdi
callq 0x3dfa0
leaq -0x110(%rbp), %rdi
callq 0x3dfa0
leaq -0xf8(%rbp), %rdi
callq 0x3dfa0
jmp 0xe2651
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x258(%rbp), %rdi
callq 0x3dfa0
jmp 0xe21bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x270(%rbp), %rdi
callq 0x3ec50
leaq -0x148(%rbp), %rdi
callq 0xac88
leaq -0x128(%rbp), %rdi
callq 0x3dfa0
leaq -0x110(%rbp), %rdi
callq 0x3dfa0
leaq -0xf8(%rbp), %rdi
callq 0x3dfa0
jmp 0xe2684
movswl -0xda(%rbp), %eax
cmpl $0x2, %eax
jne 0xe264f
movq 0xb6de8(%rip), %rdi     # 0x198ff0
leaq 0x65cce(%rip), %rsi     # 0x147edd
callq 0xa5c0
movq %rax, -0x460(%rbp)
jmp 0xe221d
movq -0x460(%rbp), %rdi
movq 0xb6d5d(%rip), %rsi     # 0x198f88
callq 0xa610
jmp 0xe2232
leaq -0x288(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
movl $0x9, %edx
callq 0x7bbe0
jmp 0xe224c
leaq -0x288(%rbp), %rdi
movq %rdi, -0x470(%rbp)
callq 0x44030
movq %rax, -0x2b0(%rbp)
leaq -0x2b0(%rbp), %rdi
movl $0x1, %esi
callq 0x44390
movq -0x470(%rbp), %rdi
movq %rax, -0x2a8(%rbp)
callq 0x44060
movq %rax, -0x2b8(%rbp)
leaq -0x2b9(%rbp), %rdi
movq %rdi, -0x468(%rbp)
callq 0x48e80
movq -0x468(%rbp), %rcx
movq -0x2a8(%rbp), %rsi
movq -0x2b8(%rbp), %rdx
leaq -0x2a0(%rbp), %rdi
callq 0xc6600
jmp 0xe22c7
leaq -0x2b9(%rbp), %rdi
callq 0x40090
movq -0x8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0xa0d0
jmp 0xe22e5
movq -0x8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0xa0d0
jmp 0xe22f7
leaq -0x2d8(%rbp), %rdi
callq 0x48da0
movq -0x8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0xa0d0
movq %rax, -0x478(%rbp)
jmp 0xe231c
movq -0x478(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0xa740
movb %al, -0x479(%rbp)
jmp 0xe233a
movb -0x479(%rbp), %al
testb $0x1, %al
jne 0xe2349
jmp 0xe255b
leaq -0x2f0(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
movl $0x9, %edx
callq 0x7bbe0
jmp 0xe2363
leaq -0x288(%rbp), %rdi
movq %rdi, -0x490(%rbp)
leaq -0x2f0(%rbp), %rsi
movq %rsi, -0x498(%rbp)
callq 0x50c30
movq -0x498(%rbp), %rdi
callq 0x3dfa0
movq -0x490(%rbp), %rdi
callq 0x44030
movq %rax, -0x300(%rbp)
leaq -0x300(%rbp), %rdi
movl $0x1, %esi
callq 0x44390
movq -0x490(%rbp), %rdi
movq %rax, -0x2f8(%rbp)
callq 0x44060
movq %rax, -0x308(%rbp)
leaq -0x2d8(%rbp), %rdi
callq 0xe44c0
movq %rax, -0x488(%rbp)
jmp 0xe23e3
movq -0x488(%rbp), %rax
movq %rax, -0x310(%rbp)
movq -0x2f8(%rbp), %rdi
movq -0x308(%rbp), %rsi
movq -0x310(%rbp), %rdx
callq 0xe4450
movq %rax, -0x4a0(%rbp)
jmp 0xe2414
movq -0x4a0(%rbp), %rax
movq %rax, -0x318(%rbp)
movq $0x0, -0x320(%rbp)
movq -0x320(%rbp), %rax
movq %rax, -0x4a8(%rbp)
leaq -0x2d8(%rbp), %rdi
callq 0x3ffd0
movq %rax, %rcx
movq -0x4a8(%rbp), %rax
cmpq %rcx, %rax
je 0xe2535
movq -0x320(%rbp), %rsi
leaq -0x2d8(%rbp), %rdi
callq 0x3d940
movq %rax, %rdi
callq 0xb75e0
movsd %xmm0, -0x4b0(%rbp)
jmp 0xe247f
movsd -0x4b0(%rbp), %xmm0
movsd 0x648a1(%rip), %xmm1    # 0x146d30
divsd %xmm1, %xmm0
movsd %xmm0, -0x328(%rbp)
movsd -0x328(%rbp), %xmm0
leaq -0x348(%rbp), %rdi
callq 0x650a0
jmp 0xe24b1
movq -0x320(%rbp), %rsi
leaq -0x2d8(%rbp), %rdi
callq 0x3d940
movq %rax, %rdi
leaq -0x348(%rbp), %rsi
callq 0xa710
leaq -0x348(%rbp), %rdi
callq 0xac88
movq -0x320(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x320(%rbp)
jmp 0xe242d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x2b9(%rbp), %rdi
callq 0x40090
jmp 0xe2641
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xe2635
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0xe2629
leaq -0xb8(%rbp), %rdi
leaq -0x2d8(%rbp), %rsi
callq 0x3f610
jmp 0xe254a
leaq -0x2d8(%rbp), %rdi
callq 0x591f0
jmp 0xe2303
leaq -0x360(%rbp), %rdi
leaq -0x2a0(%rbp), %rsi
callq 0x3fee0
jmp 0xe2570
movq -0xa0(%rbp), %rsi
leaq -0x360(%rbp), %rdi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x50da0
jmp 0xe258f
leaq -0x360(%rbp), %rdi
callq 0x3dfa0
leaq -0x378(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x45190
jmp 0xe25b0
movq -0xa0(%rbp), %rsi
leaq -0x378(%rbp), %rdi
callq 0x6bf10
jmp 0xe25c5
leaq -0x378(%rbp), %rdi
callq 0x3ec50
leaq -0x2d8(%rbp), %rdi
callq 0x3dfa0
leaq -0x2a0(%rbp), %rdi
callq 0x3dfa0
leaq -0x288(%rbp), %rdi
callq 0x3dfa0
jmp 0xe264f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x360(%rbp), %rdi
callq 0x3dfa0
jmp 0xe2629
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x378(%rbp), %rdi
callq 0x3ec50
leaq -0x2d8(%rbp), %rdi
callq 0x3dfa0
leaq -0x2a0(%rbp), %rdi
callq 0x3dfa0
leaq -0x288(%rbp), %rdi
callq 0x3dfa0
jmp 0xe2684
jmp 0xe2651
leaq -0xd8(%rbp), %rdi
callq 0xac88
leaq -0xb8(%rbp), %rdi
callq 0x3ec50
leaq -0x58(%rbp), %rdi
callq 0xac88
leaq -0x38(%rbp), %rdi
callq 0xac88
addq $0x4b0, %rsp            # imm = 0x4B0
popq %rbp
retq
leaq -0xd8(%rbp), %rdi
callq 0xac88
leaq -0xb8(%rbp), %rdi
callq 0x3ec50
leaq -0x58(%rbp), %rdi
callq 0xac88
leaq -0x38(%rbp), %rdi
callq 0xac88
movq -0x10(%rbp), %rdi
callq 0xab50
nopw (%rax,%rax)