// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Simpoint.cpp
// Function: Simpoint::savePostClusteringData()
void Simpoint::savePostClusteringData() {

    Logger::log() << endl
          << "------------------------------------------------------------------\n"
          << "------------------------------------------------------------------\n"
          << "Post-processing runs\n"
          << "------------------------------------------------------------------\n"
          << "------------------------------------------------------------------\n";

    int bestRun = findBestRun();
    Logger::log() << "  For the BIC threshold, the best clustering was run " 
        << (bestRun+1) << " (k = " << options.kValues[bestRun] << ")\n";

    vector<int> labels(wholeDataset->numRows(), 0);
    Datapoint distsToCenters(wholeDataset->numRows());

    // save everything or just the best
    for (unsigned int runNumber = 0; runNumber < options.kValues.size(); runNumber++) {
        if ((runNumber != (unsigned int)bestRun) && (! options.saveAll)) {
            continue;
        }

        Logger::log() << "  Post-processing run " << (runNumber+1) << " (k = " 
             << options.kValues[runNumber] << ")\n";
        // save the initial centers
        if (options.saveInitialCentersName != "") {
            string name = options.saveInitialCentersName;
            if (options.saveAll) {
                name = createFileNameFromRun(options.saveInitialCentersName, runNumber+1, options.kValues[runNumber]);
            }
            Logger::log() << "    Saving initial centers to file '" << name << "'\n";
            ofstream output(name.c_str());
            Utilities::check(output.is_open(), "Simpoint::savePostClusteringData(): could not open file " +
                                    name);
            initialCenters[runNumber]->write(output);
            output.close();
        }

        // save the final centers
        if (options.saveFinalCentersName != "") {
            string name = options.saveFinalCentersName;
            if (options.saveAll) {
                name = createFileNameFromRun(options.saveFinalCentersName, runNumber+1, options.kValues[runNumber]);
            }
            Logger::log() << "    Saving final centers to file '" << name << "'\n";
            ofstream output(name.c_str());
            Utilities::check(output.is_open(), "Simpoint::savePostClusteringData(): could not open file " +
                                    name);
            finalCenters[runNumber]->write(output);
            output.close();
        }


        // pre-compute the labels and distances for saveSimpoints or saveLabels
        KMeans::findLabelsAndDists(*wholeDataset, *finalCenters[runNumber], 
                                       &labels, &distsToCenters);

        // save labels
        if (options.saveLabelsName != "") {
            string name = options.saveLabelsName;
            if (options.saveAll) {
                name = createFileNameFromRun(options.saveLabelsName, runNumber+1, options.kValues[runNumber]);
            }
            Logger::log() << "    Saving labels and distance from center of "
                << "each input vector to file '" << name << "'\n";

            ofstream output(name.c_str());
            Utilities::check(output.is_open(), "Simpoint::savePostClusteringData(): could not open file " +
                                    name);
            for (unsigned int r = 0; r < labels.size(); r++) {
                /* output the label and the distance from the center of this point */
                output << labels[r] << " " << distsToCenters[r] << endl;
            }
            output.close();
        }

        // prepare to save only the largest simpoints and weights
        vector<bool> nonEmptyClusters = getLargestClusters(1.0, *finalCenters[runNumber]);
        vector<bool> largestClusters = nonEmptyClusters;
        if (options.coveragePct < 1.0) {
            largestClusters = getLargestClusters(options.coveragePct, 
                                                 *finalCenters[runNumber]);
        }

        // save simpoints
        if (options.saveSimpointsName != "") {
            string name = options.saveSimpointsName;
            if (options.saveAll) { name = createFileNameFromRun(name, runNumber+1, options.kValues[runNumber]); }

            Logger::log() << "    Saving simpoints of all non-empty clusters to file '" 
                << name << "'\n";
            saveSimpoints(name, nonEmptyClusters, distsToCenters, labels,
                          finalCenters[runNumber]->numRows());

            if (options.coveragePct < 1.0) {
                name = options.saveSimpointsName + ".lpt" + 
                        toString(options.coveragePct);
                if (options.saveAll) { name = createFileNameFromRun(name, runNumber+1, options.kValues[runNumber]); }

                Logger::log() << "    Saving simpoints of largest clusters "
                    << "making up proportion " << options.coveragePct 
                    << " of all weights to file '" << name << "'\n";
                saveSimpoints(name, largestClusters, distsToCenters, labels,
                              finalCenters[runNumber]->numRows());
            }
        }


        // save weights
        if (options.saveSimpointWeightsName != "") {
            string name = options.saveSimpointWeightsName;
            if (options.saveAll) { name = createFileNameFromRun(name, runNumber+1, options.kValues[runNumber]); }
            Logger::log() << "    Saving weights of all non-empty clusters to file '" 
                << name << "'\n";

            saveSimpointWeights(name, nonEmptyClusters, *finalCenters[runNumber]);

            if (options.coveragePct < 1.0) {
                name = options.saveSimpointWeightsName + ".lpt" + 
                    toString(options.coveragePct);
                if (options.saveAll) { name = createFileNameFromRun(name, runNumber+1, options.kValues[runNumber]); }

                Logger::log() << "    Saving weights of largest clusters "
                    << "making up proportion " << options.coveragePct 
                    << " of all weights to file '" << name << "'\n";
                saveSimpointWeights(name, largestClusters, *finalCenters[runNumber]);
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x348, %rsp            # imm = 0x348
movq %rdi, %rbx
leaq 0x1a51f(%rip), %r13     # 0x27330
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %r14
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4290
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41d0
movq %rax, %r14
leaq 0xfe0e(%rip), %r15      # 0x1cc5c
movl $0x43, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4330
movl $0x43, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4330
leaq 0xfe2b(%rip), %rsi      # 0x1cca0
movl $0x15, %edx
movq %r14, %rdi
callq 0x4330
movl $0x43, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4330
movl $0x43, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4330
movq %rbx, %rdi
callq 0xc468
movl %eax, %r15d
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %r14
leaq 0xfdf6(%rip), %rsi      # 0x1ccb6
movl $0x35, %edx
movq %r14, %rdi
callq 0x4330
leal 0x1(%r15), %esi
movq %r14, %rdi
callq 0x4560
movq %rax, %r14
leaq 0xf926(%rip), %rsi      # 0x1c809
movl $0x6, %edx
movq %rax, %rdi
callq 0x4330
movq %r15, 0x140(%rsp)
movslq %r15d, %rax
movq 0x90(%rbx), %rcx
movl (%rcx,%rax,4), %esi
movq %r14, %rdi
callq 0x4560
leaq 0xfacd(%rip), %rsi      # 0x1c9e1
movl $0x2, %edx
movq %rax, %rdi
callq 0x4330
movq (%rbx), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
imull $0xaaaaaaab, %ecx, %esi # imm = 0xAAAAAAAB
leaq 0x148(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0xe0(%rsp), %rdi
leaq 0x10(%rsp), %rcx
callq 0xf6d6
movq (%rbx), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
imull $0xaaaaaaab, %ecx, %esi # imm = 0xAAAAAAAB
leaq 0x118(%rsp), %rdi
callq 0x643c
movq 0x98(%rbx), %rax
cmpq 0x90(%rbx), %rax
je 0xdffa
leaq 0x1a0(%rbx), %rax
movq %rax, 0x108(%rsp)
leaq 0x20(%rsp), %r15
leaq 0x48(%rsp), %rbp
movq 0x1a01e(%rip), %rax     # 0x26fc8
movq (%rax), %rcx
movq %rcx, 0xd8(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0xd0(%rsp)
leaq 0x148(%rsp), %rax
addq $0xf8, %rax
movq %rax, 0xc8(%rsp)
leaq 0x1c0(%rbx), %rax
movq %rax, 0x100(%rsp)
leaq 0x120(%rbx), %rax
movq %rax, 0xf8(%rsp)
leaq 0x180(%rbx), %rax
movq %rax, 0x138(%rsp)
leaq 0x140(%rbx), %rax
movq %rax, 0x130(%rsp)
leaq 0x80(%rsp), %r14
movq $0x0, 0x8(%rsp)
xorl %ecx, %ecx
cmpl 0x140(%rsp), %ecx
je 0xd03c
cmpb $0x1, 0xcc(%rbx)
jne 0xdfd8
movq %rcx, 0x110(%rsp)
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %r12
movl $0x16, %edx
movq %r12, %rdi
leaq 0xfc8d(%rip), %rsi      # 0x1ccec
callq 0x4330
movq 0x110(%rsp), %rax
leal 0x1(%rax), %esi
movq %r12, %rdi
movq %rsi, 0xa0(%rsp)
callq 0x41c0
movq %rax, %r12
movl $0x6, %edx
movq %rax, %rdi
leaq 0xf778(%rip), %rsi      # 0x1c809
callq 0x4330
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %esi
movq %r12, %rdi
callq 0x4560
movl $0x2, %edx
movq %rax, %rdi
leaq 0xf925(%rip), %rsi      # 0x1c9e1
callq 0x4330
movq 0x108(%rsp), %rdi
leaq 0xf16a(%rip), %rsi      # 0x1c23a
callq 0x40e0
testl %eax, %eax
je 0xd284
movq %r15, 0x10(%rsp)
movq 0x1a0(%rbx), %rsi
movq 0x1a8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x5ff6
cmpb $0x1, 0xcc(%rbx)
jne 0xd167
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x148(%rsp), %r12
movq %r12, %rdi
movq 0x108(%rsp), %rsi
movq 0xa0(%rsp), %rdx
callq 0xbf3c
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x4380
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0xd167
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x42d0
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %r12
movl $0x24, %edx
movq %r12, %rdi
leaq 0xfb81(%rip), %rsi      # 0x1cd03
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
leaq 0xf4df(%rip), %rsi      # 0x1c687
callq 0x4330
movq 0x10(%rsp), %rsi
leaq 0x148(%rsp), %rdi
movl $0x10, %edx
callq 0x4310
leaq 0x1b8(%rsp), %rdi
callq 0x40b0
movl %eax, %r12d
leaq 0x38(%rsp), %rdi
leaq 0xfb48(%rip), %rsi      # 0x1cd28
leaq 0x10(%rsp), %rdx
callq 0x5ed9
testb %r12b, %r12b
je 0xe0be
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd20a
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x10(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x148(%rsp), %r12
movq %r12, %rsi
callq 0x703e
movq %r12, %rdi
callq 0x4440
movq 0xd8(%rsp), %rax
movq %rax, 0x148(%rsp)
movq -0x18(%rax), %rax
movq 0xd0(%rsp), %rcx
movq %rcx, 0x148(%rsp,%rax)
leaq 0x150(%rsp), %rdi
callq 0x4240
movq 0xc8(%rsp), %rdi
callq 0x4120
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0xd284
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x100(%rsp), %rdi
leaq 0xefa7(%rip), %rsi      # 0x1c23a
callq 0x40e0
testl %eax, %eax
je 0xd447
movq %r15, 0x10(%rsp)
movq 0x1c0(%rbx), %rsi
movq 0x1c8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x5ff6
cmpb $0x1, 0xcc(%rbx)
jne 0xd32a
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x148(%rsp), %r12
movq %r12, %rdi
movq 0x100(%rsp), %rsi
movq 0xa0(%rsp), %rdx
callq 0xbf3c
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x4380
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0xd32a
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x42d0
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %r12
movl $0x22, %edx
movq %r12, %rdi
leaq 0xfa1c(%rip), %rsi      # 0x1cd61
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
leaq 0xf31c(%rip), %rsi      # 0x1c687
callq 0x4330
movq 0x10(%rsp), %rsi
leaq 0x148(%rsp), %rdi
movl $0x10, %edx
callq 0x4310
leaq 0x1b8(%rsp), %rdi
callq 0x40b0
movl %eax, %r12d
leaq 0x38(%rsp), %rdi
leaq 0xf985(%rip), %rsi      # 0x1cd28
leaq 0x10(%rsp), %rdx
callq 0x5ed9
testb %r12b, %r12b
je 0xe046
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd3cd
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x148(%rsp), %r12
movq %r12, %rsi
callq 0x703e
movq %r12, %rdi
callq 0x4440
movq 0xd8(%rsp), %rax
movq %rax, 0x148(%rsp)
movq -0x18(%rax), %rax
movq 0xd0(%rsp), %rcx
movq %rcx, 0x148(%rsp,%rax)
leaq 0x150(%rsp), %rdi
callq 0x4240
movq 0xc8(%rsp), %rdi
callq 0x4120
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0xd447
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movq (%rbx), %rdi
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0xe0(%rsp), %rdx
leaq 0x118(%rsp), %rcx
callq 0x8ef4
movq 0xf8(%rsp), %rdi
leaq 0xedbf(%rip), %rsi      # 0x1c23a
callq 0x40e0
testl %eax, %eax
je 0xd6e4
movq %r15, 0x10(%rsp)
movq 0x120(%rbx), %rsi
movq 0x128(%rbx), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x5ff6
cmpb $0x1, 0xcc(%rbx)
leaq 0x148(%rsp), %r14
jne 0xd512
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
movq %r14, %rdi
movq 0xf8(%rsp), %rsi
movq 0xa0(%rsp), %rdx
callq 0xbf3c
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x4380
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0xd512
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x42d0
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %r12
movl $0x2e, %edx
movq %r12, %rdi
leaq 0xf857(%rip), %rsi      # 0x1cd84
callq 0x4330
movl $0x1b, %edx
movq %r12, %rdi
leaq 0xf5dd(%rip), %rsi      # 0x1cb1e
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
leaq 0xf120(%rip), %rsi      # 0x1c687
callq 0x4330
movq 0x10(%rsp), %rsi
movq %r14, %rdi
movl $0x10, %edx
callq 0x4310
leaq 0x1b8(%rsp), %rdi
callq 0x40b0
movl %eax, %r12d
leaq 0x38(%rsp), %rdi
leaq 0xf78e(%rip), %rsi      # 0x1cd28
leaq 0x10(%rsp), %rdx
callq 0x5ed9
testb %r12b, %r12b
je 0xe082
movq 0x38(%rsp), %rdi
movq %rbp, %r14
cmpq %rbp, %rdi
je 0xd5c7
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0xe0(%rsp), %rax
cmpq %rax, 0xe8(%rsp)
je 0xd672
movl $0x1, %ebp
xorl %r15d, %r15d
movl (%rax,%r15,4), %esi
leaq 0x148(%rsp), %rdi
callq 0x4560
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x11bfc(%rip), %rsi     # 0x1f204
callq 0x4330
movq 0x118(%rsp), %rax
movsd (%rax,%r15,8), %xmm0
movq %r12, %rdi
callq 0x4510
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4290
movsbl %al, %esi
movq %r12, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41d0
movl %ebp, %r15d
movq 0xe0(%rsp), %rax
movq 0xe8(%rsp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
incl %ebp
cmpq %r15, %rcx
ja 0xd5e5
leaq 0x148(%rsp), %rdi
callq 0x4440
movq 0xd8(%rsp), %rax
movq %rax, 0x148(%rsp)
movq -0x18(%rax), %rax
movq 0xd0(%rsp), %rcx
movq %rcx, 0x148(%rsp,%rax)
leaq 0x150(%rsp), %rdi
callq 0x4240
movq 0xc8(%rsp), %rdi
callq 0x4120
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %r15
cmpq %r15, %rdi
je 0xd6d9
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %r14, %rbp
leaq 0x80(%rsp), %r14
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x148(%rsp), %r12
movq %r12, %rdi
movsd 0xeb84(%rip), %xmm0     # 0x1c288
callq 0xc502
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0xf84a
movsd 0xd0(%rbx), %xmm0
movsd 0xeb62(%rip), %xmm1     # 0x1c288
ucomisd %xmm0, %xmm1
jbe 0xd795
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x38(%rsp), %rdi
callq 0xc502
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xd773
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x30(%rsp)
movupd 0x38(%rsp), %xmm0
movupd 0x48(%rsp), %xmm1
movapd %xmm1, 0x20(%rsp)
movapd %xmm0, 0x10(%rsp)
movq 0x138(%rsp), %rdi
leaq 0xea96(%rip), %rsi      # 0x1c23a
callq 0x40e0
testl %eax, %eax
je 0xdb9a
movq %rbp, 0x38(%rsp)
movq 0x180(%rbx), %rsi
movq 0x188(%rbx), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x5ff6
cmpb $0x1, 0xcc(%rbx)
jne 0xd835
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x60(%rsp), %r14
movq %r14, %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
movq 0xa0(%rsp), %rdx
callq 0xbf3c
movq %r12, %rdi
movq %r14, %rsi
callq 0x4380
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xd82d
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x80(%rsp), %r14
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %r12
movl $0x38, %edx
movq %r12, %rdi
leaq 0xf563(%rip), %rsi      # 0x1cdb3
callq 0x4330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
leaq 0xee11(%rip), %rsi      # 0x1c687
callq 0x4330
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
imull $0xaaaaaaab, %ecx, %r8d # imm = 0xAAAAAAAB
leaq 0x38(%rsp), %rdi
leaq 0x148(%rsp), %rsi
leaq 0x118(%rsp), %rdx
leaq 0xe0(%rsp), %rcx
callq 0xc8b6
movsd 0xe9c4(%rip), %xmm0     # 0x1c288
ucomisd 0xd0(%rbx), %xmm0
jbe 0xdb83
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x180(%rbx), %rsi
movq 0x188(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x5ff6
movq %r14, %rdi
leaq 0xf4e7(%rip), %rsi      # 0x1cdec
callq 0x45d0
movsd 0xd0(%rbx), %xmm0
leaq 0xa8(%rsp), %rdi
callq 0x1950b
movq 0x80(%rsp), %rcx
movl $0xf, %esi
leaq 0x90(%rsp), %rax
cmpq %rax, %rcx
je 0xd941
movq 0x90(%rsp), %rsi
movq 0x88(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0xd97e
movl $0xf, %esi
leaq 0xb8(%rsp), %rdi
cmpq %rdi, 0xa8(%rsp)
je 0xd979
movq 0xb8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xd990
movq 0xa8(%rsp), %rsi
movq %r14, %rdi
callq 0x4110
jmp 0xd9a1
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4320
leaq 0x70(%rsp), %rsi
movq %rsi, 0x60(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xd9c6
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xd9ce
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x68(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x38(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x4380
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xda16
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xda3b
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xda60
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x42d0
cmpb $0x1, 0xcc(%rbx)
jne 0xdac4
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x60(%rsp), %r14
movq %r14, %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
movq 0xa0(%rsp), %rdx
callq 0xbf3c
movq %r12, %rdi
movq %r14, %rsi
callq 0x4380
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xdabc
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x80(%rsp), %r14
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %r12
movl $0x29, %edx
movq %r12, %rdi
leaq 0xf312(%rip), %rsi      # 0x1cdf1
callq 0x4330
movl $0x15, %edx
movq %r12, %rdi
leaq 0xf328(%rip), %rsi      # 0x1ce1b
callq 0x4330
movsd 0xd0(%rbx), %xmm0
movq %r12, %rdi
callq 0x4510
movq %rax, %r12
movl $0x19, %edx
movq %rax, %rdi
leaq 0xf317(%rip), %rsi      # 0x1ce31
callq 0x4330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
leaq 0xeb47(%rip), %rsi      # 0x1c687
callq 0x4330
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
imull $0xaaaaaaab, %ecx, %r8d # imm = 0xAAAAAAAB
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x118(%rsp), %rdx
leaq 0xe0(%rsp), %rcx
callq 0xc8b6
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0xdb9a
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x130(%rsp), %rdi
leaq 0xe691(%rip), %rsi      # 0x1c23a
callq 0x40e0
testl %eax, %eax
je 0xdf5b
movq %rbp, 0x38(%rsp)
movq 0x140(%rbx), %rsi
movq 0x148(%rbx), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x5ff6
cmpb $0x1, 0xcc(%rbx)
jne 0xdc3a
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x60(%rsp), %r14
movq %r14, %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
movq 0xa0(%rsp), %rdx
callq 0xbf3c
movq %r12, %rdi
movq %r14, %rsi
callq 0x4380
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xdc32
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x80(%rsp), %r14
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %r12
movl $0x36, %edx
movq %r12, %rdi
leaq 0xf1f6(%rip), %rsi      # 0x1ce4b
callq 0x4330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
leaq 0xea0c(%rip), %rsi      # 0x1c687
callq 0x4330
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0x38(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0xcb96
movsd 0xe5e1(%rip), %xmm0     # 0x1c288
ucomisd 0xd0(%rbx), %xmm0
jbe 0xdf44
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x140(%rbx), %rsi
movq 0x148(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x5ff6
movq %r14, %rdi
leaq 0xf104(%rip), %rsi      # 0x1cdec
callq 0x45d0
movsd 0xd0(%rbx), %xmm0
leaq 0xa8(%rsp), %rdi
callq 0x1950b
movq 0x80(%rsp), %rcx
movl $0xf, %esi
leaq 0x90(%rsp), %rax
cmpq %rax, %rcx
je 0xdd24
movq 0x90(%rsp), %rsi
movq 0x88(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0xdd61
movl $0xf, %esi
leaq 0xb8(%rsp), %rdi
cmpq %rdi, 0xa8(%rsp)
je 0xdd5c
movq 0xb8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xdd73
movq 0xa8(%rsp), %rsi
movq %r14, %rdi
callq 0x4110
jmp 0xdd84
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4320
leaq 0x70(%rsp), %rsi
movq %rsi, 0x60(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xdda9
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xddb1
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x68(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x38(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x4380
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xddf9
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xde1e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xde43
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x42d0
cmpb $0x1, 0xcc(%rbx)
jne 0xdea7
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x60(%rsp), %r14
movq %r14, %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
movq 0xa0(%rsp), %rdx
callq 0xbf3c
movq %r12, %rdi
movq %r14, %rsi
callq 0x4380
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xde9f
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x80(%rsp), %r14
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %r12
movl $0x27, %edx
movq %r12, %rdi
leaq 0xefc0(%rip), %rsi      # 0x1ce82
callq 0x4330
movl $0x15, %edx
movq %r12, %rdi
leaq 0xef45(%rip), %rsi      # 0x1ce1b
callq 0x4330
movsd 0xd0(%rbx), %xmm0
movq %r12, %rdi
callq 0x4510
movq %rax, %r12
movl $0x19, %edx
movq %rax, %rdi
leaq 0xef34(%rip), %rsi      # 0x1ce31
callq 0x4330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
leaq 0xe764(%rip), %rsi      # 0x1c687
callq 0x4330
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xcb96
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0xdf5b
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xdf8b
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movq 0x148(%rsp), %rdi
testq %rdi, %rdi
je 0xdfd0
movq 0x168(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
xorl %eax, %eax
movq %rax, 0x148(%rsp)
movl %eax, 0x150(%rsp)
movq %rax, 0x158(%rsp)
movl %eax, 0x160(%rsp)
movq %rax, 0x168(%rsp)
movq 0x110(%rsp), %rcx
movq 0x98(%rbx), %rax
subq 0x90(%rbx), %rax
incl %ecx
sarq $0x2, %rax
movq %rcx, 0x8(%rsp)
cmpq %rcx, %rax
ja 0xd026
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0xe017
movq 0x128(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xe034
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %rbx
leaq 0xe11f(%rip), %rsi      # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
jmp 0xe0f8
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %rbx
leaq 0xe0e3(%rip), %rsi      # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
jmp 0xe0f8
movl (%r13), %eax
shrl $0x1f, %eax
movq 0x8(%r13,%rax,8), %rbx
leaq 0xe0a7(%rip), %rsi      # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
jmp 0xe331
jmp 0xe252
jmp 0xe252
jmp 0xe124
jmp 0xe150
jmp 0xe150
jmp 0xe252
jmp 0xe252
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xe153
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0xe153
jmp 0xe150
movq %rax, %rbx
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xe255
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0xe255
jmp 0xe252
jmp 0xe252
jmp 0xe248
jmp 0xe22d
jmp 0xe22d
jmp 0xe1e4
jmp 0xe1c1
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0xe2eb
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0xe2eb
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0xe21c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0xe21c
jmp 0xe2e8
jmp 0xe1e4
movq %rax, %rbx
jmp 0xe26c
jmp 0xe219
jmp 0xe2e3
jmp 0xe219
jmp 0xe2e8
jmp 0xe2e3
jmp 0xe22d
jmp 0xe2e3
jmp 0xe22d
jmp 0xe248
jmp 0xe2e3
movq %rax, %rbx
jmp 0xe29c
jmp 0xe219
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
callq 0x4480
jmp 0xe230
jmp 0xe22d
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
jne 0xe307
jmp 0xe314
movq %rax, %rbx
jmp 0xe2fd
jmp 0xe252
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0xe26c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xe29c
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movq 0x148(%rsp), %rdi
testq %rdi, %rdi
je 0xe314
movq 0x168(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
xorl %eax, %eax
movq %rax, 0x148(%rsp)
movl %eax, 0x150(%rsp)
movq %rax, 0x158(%rsp)
movl %eax, 0x160(%rsp)
movq %rax, 0x168(%rsp)
jmp 0xe314
movq %rax, %rbx
jmp 0xe314
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
callq 0x4480
leaq 0x20(%rsp), %r15
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0xe314
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0xe331
movq 0x128(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xe34e
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580