// File: /workspace/github_cpp_makefile_star2_O3/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 $0x338, %rsp            # imm = 0x338
movq %rdi, %rbx
leaq 0x1a4f7(%rip), %r12     # 0x27330
movl (%r12), %eax
shrl $0x1f, %eax
movq 0x8(%r12,%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 0xfde6(%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 0xfe03(%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 0xc4a2
movl %eax, %r15d
movl (%r12), %eax
shrl $0x1f, %eax
movq 0x8(%r12,%rax,8), %r14
leaq 0xfdce(%rip), %rsi      # 0x1ccb6
movl $0x35, %edx
movq %r14, %rdi
callq 0x4330
leal 0x1(%r15), %esi
movq %r14, %rdi
callq 0x4560
movq %rax, %r14
leaq 0xf8fe(%rip), %rsi      # 0x1c809
movl $0x6, %edx
movq %rax, %rdi
callq 0x4330
movq %r15, 0x130(%rsp)
movslq %r15d, %rax
movq 0x90(%rbx), %rcx
movl (%rcx,%rax,4), %esi
movq %r14, %rdi
callq 0x4560
leaq 0xfaa5(%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 0x138(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0xd8(%rsp), %rdi
leaq 0x10(%rsp), %rcx
callq 0xf660
movq (%rbx), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
imull $0xaaaaaaab, %ecx, %esi # imm = 0xAAAAAAAB
leaq 0x108(%rsp), %rdi
callq 0x641c
movq 0x90(%rbx), %rax
movq 0x98(%rbx), %rcx
cmpq %rax, %rcx
leaq 0x1a37a(%rip), %r14     # 0x27330
je 0xdfb5
leaq 0x1a0(%rbx), %rdx
movq %rdx, 0x100(%rsp)
leaq 0x48(%rsp), %r13
movq 0x19ff1(%rip), %rdx     # 0x26fc8
movq (%rdx), %rsi
movq %rsi, 0xd0(%rsp)
movq 0x18(%rdx), %rdx
movq %rdx, 0xc8(%rsp)
leaq 0x138(%rsp), %rdx
addq $0xf8, %rdx
movq %rdx, 0xc0(%rsp)
leaq 0x1c0(%rbx), %rdx
movq %rdx, 0xf8(%rsp)
leaq 0x120(%rbx), %rdx
movq %rdx, 0xf0(%rsp)
leaq 0x180(%rbx), %rdx
movq %rdx, 0x128(%rsp)
leaq 0x140(%rbx), %rdx
movq %rdx, 0x120(%rsp)
movq $0x0, 0x8(%rsp)
leaq 0xf636(%rip), %r15      # 0x1c687
xorl %ebp, %ebp
cmpl 0x130(%rsp), %ebp
je 0xd069
cmpb $0x0, 0xcc(%rbx)
je 0xd98e
movl (%r14), %eax
shrl $0x1f, %eax
movq 0x8(%r14,%rax,8), %r12
movl $0x16, %edx
movq %r12, %rdi
leaq 0xfc69(%rip), %rsi      # 0x1ccec
callq 0x4330
incl %ebp
movq %r12, %rdi
movq %rbp, %rsi
callq 0x41c0
movq %rax, %r12
movl $0x6, %edx
movq %rax, %rdi
leaq 0xf762(%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 0xf90f(%rip), %rsi      # 0x1c9e1
callq 0x4330
movq 0x100(%rsp), %rdi
leaq 0xf154(%rip), %rsi      # 0x1c23a
callq 0x40e0
testl %eax, %eax
je 0xd299
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x1a0(%rbx), %rsi
movq 0x1a8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x5fc2
cmpb $0x1, 0xcc(%rbx)
jne 0xd17c
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x138(%rsp), %r12
movq %r12, %rdi
movq 0x100(%rsp), %rsi
movl %ebp, %edx
callq 0xbf76
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x4380
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0xd17c
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x42d0
movl (%r14), %eax
shrl $0x1f, %eax
movq 0x8(%r14,%rax,8), %r12
movl $0x24, %edx
movq %r12, %rdi
leaq 0xfb6d(%rip), %rsi      # 0x1cd03
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4330
movq 0x10(%rsp), %rsi
leaq 0x138(%rsp), %rdi
movl $0x10, %edx
callq 0x4310
leaq 0x1a8(%rsp), %rdi
callq 0x40b0
movl %eax, %r12d
leaq 0x38(%rsp), %rdi
leaq 0xfb38(%rip), %rsi      # 0x1cd28
leaq 0x10(%rsp), %rdx
callq 0x5ea5
testb %r12b, %r12b
je 0xe07d
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xd21a
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x10(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x138(%rsp), %r12
movq %r12, %rsi
callq 0x7022
movq %r12, %rdi
callq 0x4440
movq 0xd0(%rsp), %rax
movq %rax, 0x138(%rsp)
movq -0x18(%rax), %rax
movq 0xc8(%rsp), %rcx
movq %rcx, 0x138(%rsp,%rax)
leaq 0x140(%rsp), %rdi
callq 0x4240
movq 0xc0(%rsp), %rdi
callq 0x4120
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xd299
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0xf8(%rsp), %rdi
leaq 0xef92(%rip), %rsi      # 0x1c23a
callq 0x40e0
testl %eax, %eax
je 0xd45b
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x1c0(%rbx), %rsi
movq 0x1c8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x5fc2
cmpb $0x1, 0xcc(%rbx)
jne 0xd33e
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x138(%rsp), %r12
movq %r12, %rdi
movq 0xf8(%rsp), %rsi
movl %ebp, %edx
callq 0xbf76
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x4380
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0xd33e
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x42d0
movl (%r14), %eax
shrl $0x1f, %eax
movq 0x8(%r14,%rax,8), %r12
movl $0x22, %edx
movq %r12, %rdi
leaq 0xfa09(%rip), %rsi      # 0x1cd61
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4330
movq 0x10(%rsp), %rsi
leaq 0x138(%rsp), %rdi
movl $0x10, %edx
callq 0x4310
leaq 0x1a8(%rsp), %rdi
callq 0x40b0
movl %eax, %r12d
leaq 0x38(%rsp), %rdi
leaq 0xf976(%rip), %rsi      # 0x1cd28
leaq 0x10(%rsp), %rdx
callq 0x5ea5
testb %r12b, %r12b
je 0xe001
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xd3dc
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x138(%rsp), %r12
movq %r12, %rsi
callq 0x7022
movq %r12, %rdi
callq 0x4440
movq 0xd0(%rsp), %rax
movq %rax, 0x138(%rsp)
movq -0x18(%rax), %rax
movq 0xc8(%rsp), %rcx
movq %rcx, 0x138(%rsp,%rax)
leaq 0x140(%rsp), %rdi
callq 0x4240
movq 0xc0(%rsp), %rdi
callq 0x4120
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xd45b
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 0xd8(%rsp), %rdx
leaq 0x108(%rsp), %rcx
callq 0x8f00
movq 0xf0(%rsp), %rdi
leaq 0xedab(%rip), %rsi      # 0x1c23a
callq 0x40e0
testl %eax, %eax
je 0xd6ff
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x120(%rbx), %rsi
movq 0x128(%rbx), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x5fc2
cmpb $0x1, 0xcc(%rbx)
jne 0xd525
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x138(%rsp), %r12
movq %r12, %rdi
movq 0xf0(%rsp), %rsi
movl %ebp, %edx
callq 0xbf76
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x4380
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0xd525
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x42d0
movl (%r14), %eax
shrl $0x1f, %eax
movq 0x8(%r14,%rax,8), %r12
movl $0x2e, %edx
movq %r12, %rdi
leaq 0xf845(%rip), %rsi      # 0x1cd84
callq 0x4330
movl $0x1b, %edx
movq %r12, %rdi
leaq 0xf5cb(%rip), %rsi      # 0x1cb1e
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4330
movq 0x10(%rsp), %rsi
leaq 0x138(%rsp), %rdi
movl $0x10, %edx
callq 0x4310
leaq 0x1a8(%rsp), %rdi
callq 0x40b0
movl %eax, %r12d
leaq 0x38(%rsp), %rdi
leaq 0xf77b(%rip), %rsi      # 0x1cd28
leaq 0x10(%rsp), %rdx
callq 0x5ea5
testb %r12b, %r12b
je 0xe03c
movq 0x38(%rsp), %rdi
movq %r13, %r14
cmpq %r13, %rdi
je 0xd5da
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0xd8(%rsp), %rax
cmpq %rax, 0xe0(%rsp)
je 0xd687
movl $0x1, %r13d
xorl %r15d, %r15d
movl (%rax,%r15,4), %esi
leaq 0x138(%rsp), %rdi
callq 0x4560
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x11be8(%rip), %rsi     # 0x1f204
callq 0x4330
movq 0x108(%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 %r13d, %r15d
movq 0xd8(%rsp), %rax
movq 0xe0(%rsp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
incl %r13d
cmpq %r15, %rcx
ja 0xd5f9
leaq 0x138(%rsp), %rdi
callq 0x4440
movq 0xd0(%rsp), %rax
movq %rax, 0x138(%rsp)
movq -0x18(%rax), %rax
movq 0xc8(%rsp), %rcx
movq %rcx, 0x138(%rsp,%rax)
leaq 0x140(%rsp), %rdi
callq 0x4240
movq 0xc0(%rsp), %rdi
callq 0x4120
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %r15
cmpq %r15, %rdi
je 0xd6ee
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %r14, %r13
leaq 0x19c38(%rip), %r14     # 0x27330
leaq 0xef88(%rip), %r15      # 0x1c687
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x138(%rsp), %r12
movq %r12, %rdi
movsd 0xeb69(%rip), %xmm0     # 0x1c288
callq 0xc53c
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0xf7dc
movsd 0xd0(%rbx), %xmm0
movsd 0xeb47(%rip), %xmm1     # 0x1c288
ucomisd %xmm0, %xmm1
jbe 0xd797
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x38(%rsp), %rdi
callq 0xc53c
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xd775
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
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 0x128(%rsp), %rdi
leaq 0xea94(%rip), %rsi      # 0x1c23a
callq 0x40e0
testl %eax, %eax
je 0xdb93
movq %r13, 0x38(%rsp)
movq 0x180(%rbx), %rsi
movq 0x188(%rbx), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x5fc2
cmpb $0x1, 0xcc(%rbx)
jne 0xd830
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x60(%rsp), %r15
movq %r15, %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
movl %ebp, %edx
callq 0xbf76
movq %r12, %rdi
movq %r15, %rsi
callq 0x4380
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xd829
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0xee57(%rip), %r15      # 0x1c687
movl (%r14), %eax
shrl $0x1f, %eax
movq 0x8(%r14,%rax,8), %r12
movl $0x38, %edx
movq %r12, %rdi
leaq 0xf569(%rip), %rsi      # 0x1cdb3
callq 0x4330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
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 0x138(%rsp), %rsi
leaq 0x108(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
callq 0xc8ee
movsd 0xe9ce(%rip), %xmm0     # 0x1c288
ucomisd 0xd0(%rbx), %xmm0
jbe 0xdb7c
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x180(%rbx), %rsi
movq 0x188(%rbx), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %r12
movq %r12, %rdi
callq 0x5fc2
movq %r12, %rdi
leaq 0xf4e9(%rip), %rsi      # 0x1cdec
callq 0x45d0
movsd 0xd0(%rbx), %xmm0
leaq 0xa0(%rsp), %rdi
callq 0x19473
movq 0x80(%rsp), %rcx
movl $0xf, %edi
leaq 0x90(%rsp), %rax
cmpq %rax, %rcx
je 0xd93f
movq 0x90(%rsp), %rdi
movq 0x88(%rsp), %r8
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0xd97f
movl $0xf, %edi
leaq 0xb0(%rsp), %r9
cmpq %r9, %rsi
je 0xd97a
movq 0xb0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xd995
leaq 0x80(%rsp), %rdi
callq 0x4110
jmp 0xd9a6
incl %ebp
jmp 0xdf9d
leaq 0xa0(%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 0xd9cb
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xd9d3
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 0xda1b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xda40
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xda65
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x42d0
cmpb $0x1, 0xcc(%rbx)
jne 0xdac2
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x60(%rsp), %r15
movq %r15, %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
movl %ebp, %edx
callq 0xbf76
movq %r12, %rdi
movq %r15, %rsi
callq 0x4380
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xdabb
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0xebc5(%rip), %r15      # 0x1c687
movl (%r14), %eax
shrl $0x1f, %eax
movq 0x8(%r14,%rax,8), %r12
movl $0x29, %edx
movq %r12, %rdi
leaq 0xf315(%rip), %rsi      # 0x1cdf1
callq 0x4330
movl $0x15, %edx
movq %r12, %rdi
leaq 0xf32b(%rip), %rsi      # 0x1ce1b
callq 0x4330
movsd 0xd0(%rbx), %xmm0
movq %r12, %rdi
callq 0x4510
movq %rax, %r12
movl $0x19, %edx
movq %rax, %rdi
leaq 0xf31a(%rip), %rsi      # 0x1ce31
callq 0x4330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
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 0x108(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
callq 0xc8ee
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xdb93
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x120(%rsp), %rdi
leaq 0xe698(%rip), %rsi      # 0x1c23a
callq 0x40e0
testl %eax, %eax
je 0xdf44
movq %r13, 0x38(%rsp)
movq 0x140(%rbx), %rsi
movq 0x148(%rbx), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x5fc2
cmpb $0x1, 0xcc(%rbx)
jne 0xdc2c
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x60(%rsp), %r15
movq %r15, %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
movl %ebp, %edx
callq 0xbf76
movq %r12, %rdi
movq %r15, %rsi
callq 0x4380
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xdc25
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0xea5b(%rip), %r15      # 0x1c687
movl (%r14), %eax
shrl $0x1f, %eax
movq 0x8(%r14,%rax,8), %r12
movl $0x36, %edx
movq %r12, %rdi
leaq 0xf205(%rip), %rsi      # 0x1ce4b
callq 0x4330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4330
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0x38(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0xcbcc
movsd 0xe5f4(%rip), %xmm0     # 0x1c288
ucomisd 0xd0(%rbx), %xmm0
jbe 0xdf2d
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x140(%rbx), %rsi
movq 0x148(%rbx), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %r12
movq %r12, %rdi
callq 0x5fc2
movq %r12, %rdi
leaq 0xf10f(%rip), %rsi      # 0x1cdec
callq 0x45d0
movsd 0xd0(%rbx), %xmm0
leaq 0xa0(%rsp), %rdi
callq 0x19473
movq 0x80(%rsp), %rcx
movl $0xf, %edi
leaq 0x90(%rsp), %rax
cmpq %rax, %rcx
je 0xdd19
movq 0x90(%rsp), %rdi
movq 0x88(%rsp), %r8
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0xdd59
movl $0xf, %edi
leaq 0xb0(%rsp), %r9
cmpq %r9, %rsi
je 0xdd54
movq 0xb0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xdd68
leaq 0x80(%rsp), %rdi
callq 0x4110
jmp 0xdd79
leaq 0xa0(%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 0xdd9e
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xdda6
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 0xddee
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xde13
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xde38
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x42d0
cmpb $0x1, 0xcc(%rbx)
jne 0xde95
movq 0x90(%rbx), %rax
movq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x60(%rsp), %r15
movq %r15, %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
movl %ebp, %edx
callq 0xbf76
movq %r12, %rdi
movq %r15, %rsi
callq 0x4380
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xde8e
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0xe7f2(%rip), %r15      # 0x1c687
movl (%r14), %eax
shrl $0x1f, %eax
movq 0x8(%r14,%rax,8), %r12
movl $0x27, %edx
movq %r12, %rdi
leaq 0xefd3(%rip), %rsi      # 0x1ce82
callq 0x4330
movl $0x15, %edx
movq %r12, %rdi
leaq 0xef58(%rip), %rsi      # 0x1ce1b
callq 0x4330
movsd 0xd0(%rbx), %xmm0
movq %r12, %rdi
callq 0x4510
movq %rax, %r12
movl $0x19, %edx
movq %rax, %rdi
leaq 0xef47(%rip), %rsi      # 0x1ce31
callq 0x4330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r12, %rdi
callq 0x4330
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4330
movq 0x28(%rbx), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xcbcc
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xdf44
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xdf5b
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq 0x138(%rsp), %rdi
testq %rdi, %rdi
je 0xdf8f
movq 0x158(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq $0x0, 0x138(%rsp)
movl $0x0, 0x140(%rsp)
movq 0x90(%rbx), %rax
movq 0x98(%rbx), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x2, %rdx
movq %rbp, 0x8(%rsp)
cmpq %rbp, %rdx
ja 0xd053
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0xdfd2
movq 0x118(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0xdfef
movq 0xe8(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
addq $0x338, %rsp            # imm = 0x338
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%r14), %eax
shrl $0x1f, %eax
movq 0x8(%r14,%rax,8), %rbx
leaq 0xe165(%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 0xe0b6
leaq 0x192ed(%rip), %rcx     # 0x27330
movl (%rcx), %eax
shrl $0x1f, %eax
movq 0x8(%rcx,%rax,8), %rbx
leaq 0xe124(%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 0xe0b6
movl (%r14), %eax
shrl $0x1f, %eax
movq 0x8(%r14,%rax,8), %rbx
leaq 0xe0e9(%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 0xe296
jmp 0xe1ca
jmp 0xe1ca
jmp 0xe0e2
jmp 0xe10e
jmp 0xe10e
jmp 0xe1ca
jmp 0xe1ca
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xe111
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0xe111
jmp 0xe10e
movq %rax, %rbx
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xe1cd
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0xe1cd
jmp 0xe1ca
jmp 0xe1ca
jmp 0xe1c0
jmp 0xe1c0
jmp 0xe1c0
jmp 0xe17f
jmp 0xe155
jmp 0xe155
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xe250
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0xe250
jmp 0xe24d
jmp 0xe17f
movq %rax, %rbx
jmp 0xe1e4
jmp 0xe24d
jmp 0xe248
jmp 0xe24d
jmp 0xe24d
jmp 0xe248
jmp 0xe1c0
jmp 0xe248
jmp 0xe1c0
jmp 0xe1c0
jmp 0xe248
movq %rax, %rbx
jmp 0xe20c
jmp 0xe24d
jmp 0xe24d
jmp 0xe1c0
jmp 0xe1c0
movq %rax, %rbx
jmp 0xe25d
jmp 0xe1ca
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xe1e4
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xe20c
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movq 0x138(%rsp), %rdi
testq %rdi, %rdi
je 0xe279
movq 0x158(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
xorl %eax, %eax
movq %rax, 0x138(%rsp)
movl $0x0, 0x140(%rsp)
movq %rax, 0x148(%rsp)
jmp 0xe279
movq %rax, %rbx
jmp 0xe279
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
callq 0x4480
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xe279
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0xe296
movq 0x118(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0xe2b3
movq 0xe8(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
nop