// File: 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:
subq $0xb68, %rsp            # imm = 0xB68
movq %rdi, 0xb60(%rsp)
movq 0xb60(%rsp), %rax
movq %rax, 0x1d0(%rsp)
xorl %edi, %edi
movl %edi, 0x1c4(%rsp)
callq 0x7ba0
movq %rax, %rdi
movq 0x2cd59(%rip), %rsi     # 0x43fc0
callq 0x53c0
movq %rax, %rdi
leaq 0x1c986(%rip), %rsi     # 0x33bfc
movq %rsi, 0x1b8(%rsp)
callq 0x5360
movq 0x1b8(%rsp), %rsi
movq %rax, %rdi
callq 0x5360
movq %rax, %rdi
leaq 0x1c9a3(%rip), %rsi     # 0x33c40
callq 0x5360
movq 0x1b8(%rsp), %rsi
movq %rax, %rdi
callq 0x5360
movq 0x1b8(%rsp), %rsi
movq %rax, %rdi
callq 0x5360
movq 0x1d0(%rsp), %rdi
callq 0x162a0
movl 0x1c4(%rsp), %edi
movl %eax, 0xb5c(%rsp)
callq 0x7ba0
movq %rax, %rdi
leaq 0x1c96a(%rip), %rsi     # 0x33c56
callq 0x5360
movq %rax, %rdi
movl 0xb5c(%rsp), %esi
incl %esi
callq 0x5680
movq %rax, %rdi
leaq 0x1c49d(%rip), %rsi     # 0x337a9
callq 0x5360
movq 0x1d0(%rsp), %rdi
movq %rax, 0x1c8(%rsp)
addq $0x90, %rdi
movslq 0xb5c(%rsp), %rsi
callq 0x10dd0
movq 0x1c8(%rsp), %rdi
movl (%rax), %esi
callq 0x5680
movq %rax, %rdi
leaq 0x1c633(%rip), %rsi     # 0x33981
callq 0x5360
movq 0x1d0(%rsp), %rax
movq (%rax), %rdi
callq 0xc0c0
movl %eax, %eax
movq %rax, 0x1d8(%rsp)
movl $0x0, 0xb3c(%rsp)
leaq 0xb3b(%rsp), %rdi
movq %rdi, 0x1e0(%rsp)
callq 0x10e30
movq 0x1d8(%rsp), %rsi
movq 0x1e0(%rsp), %rcx
leaq 0xb40(%rsp), %rdi
leaq 0xb3c(%rsp), %rdx
callq 0x1a9a0
jmp 0x173b4
leaq 0xb3b(%rsp), %rdi
callq 0x10ec0
movq 0x1d0(%rsp), %rax
movq (%rax), %rdi
callq 0xc0c0
movl %eax, 0x1b4(%rsp)
jmp 0x173da
movl 0x1b4(%rsp), %esi
leaq 0xb10(%rsp), %rdi
callq 0x8d60
jmp 0x173f0
movl $0x0, 0xb0c(%rsp)
movq 0x1d0(%rsp), %rdi
movl 0xb0c(%rsp), %eax
movq %rax, 0x1a8(%rsp)
addq $0x58, %rdi
addq $0x38, %rdi
callq 0x10df0
movq %rax, %rcx
movq 0x1a8(%rsp), %rax
cmpq %rcx, %rax
jae 0x187c1
movl 0xb0c(%rsp), %eax
cmpl 0xb5c(%rsp), %eax
je 0x17498
movq 0x1d0(%rsp), %rax
testb $0x1, 0xcc(%rax)
jne 0x17498
jmp 0x1878f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
leaq 0xb3b(%rsp), %rdi
callq 0x10ec0
jmp 0x187fd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x187f0
xorl %edi, %edi
callq 0x7ba0
movq %rax, 0x1a0(%rsp)
jmp 0x174a9
movq 0x1a0(%rsp), %rdi
leaq 0x1c7d4(%rip), %rsi     # 0x33c8c
callq 0x5360
movq %rax, 0x198(%rsp)
jmp 0x174c7
movq 0x198(%rsp), %rdi
movl 0xb0c(%rsp), %esi
incl %esi
callq 0x5520
movq %rax, 0x190(%rsp)
jmp 0x174e7
movq 0x190(%rsp), %rdi
leaq 0x1c2b3(%rip), %rsi     # 0x337a9
callq 0x5360
movq %rax, 0x188(%rsp)
jmp 0x17505
movq 0x1d0(%rsp), %rdi
addq $0x90, %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
callq 0x10dd0
movq 0x188(%rsp), %rdi
movl (%rax), %esi
callq 0x5680
movq %rax, 0x180(%rsp)
jmp 0x1753b
movq 0x180(%rsp), %rdi
leaq 0x1c437(%rip), %rsi     # 0x33981
callq 0x5360
jmp 0x17551
movq 0x1d0(%rsp), %rdi
addq $0x1a0, %rdi            # imm = 0x1A0
leaq 0x1bc98(%rip), %rsi     # 0x331ff
callq 0x7b70
movb %al, 0x17f(%rsp)
jmp 0x17575
movb 0x17f(%rsp), %al
testb $0x1, %al
jne 0x17585
jmp 0x177f9
movq 0x1d0(%rsp), %rsi
addq $0x1a0, %rsi            # imm = 0x1A0
leaq 0xae8(%rsp), %rdi
callq 0x51a0
jmp 0x175a3
movq 0x1d0(%rsp), %rax
testb $0x1, 0xcc(%rax)
je 0x17667
movq 0x1d0(%rsp), %rdi
movq %rdi, %rax
addq $0x1a0, %rax            # imm = 0x1A0
movq %rax, 0x170(%rsp)
movl 0xb0c(%rsp), %eax
movl %eax, %esi
movl %esi, %eax
incl %eax
movl %eax, 0x178(%rsp)
addq $0x90, %rdi
callq 0x10dd0
movq 0x170(%rsp), %rsi
movl 0x178(%rsp), %edx
movl (%rax), %ecx
leaq 0xac8(%rsp), %rdi
callq 0x15d00
jmp 0x17611
leaq 0xae8(%rsp), %rdi
leaq 0xac8(%rsp), %rsi
callq 0x5470
leaq 0xac8(%rsp), %rdi
callq 0x5788
jmp 0x17667
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x187e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x177e7
xorl %edi, %edi
callq 0x7ba0
movq %rax, 0x168(%rsp)
jmp 0x17678
movq 0x168(%rsp), %rdi
leaq 0x1c61c(%rip), %rsi     # 0x33ca3
callq 0x5360
movq %rax, 0x160(%rsp)
jmp 0x17696
movq 0x160(%rsp), %rdi
leaq 0xae8(%rsp), %rsi
callq 0x5320
movq %rax, 0x158(%rsp)
jmp 0x176b5
movq 0x158(%rsp), %rdi
leaq 0x1bf63(%rip), %rsi     # 0x33627
callq 0x5360
jmp 0x176cb
leaq 0xae8(%rsp), %rdi
callq 0x5190
movq %rax, %rsi
leaq 0x8c8(%rsp), %rdi
movl $0x10, %edx
callq 0x53f0
jmp 0x176ef
leaq 0x8c8(%rsp), %rdi
callq 0x5290
movb %al, 0x157(%rsp)
jmp 0x17705
leaq 0x1c5bc(%rip), %rsi     # 0x33cc8
leaq 0x8a8(%rsp), %rdi
leaq 0xae8(%rsp), %rdx
callq 0x7880
jmp 0x17723
movb 0x157(%rsp), %al
movzbl %al, %edi
andl $0x1, %edi
leaq 0x8a8(%rsp), %rsi
callq 0x7480
jmp 0x1773f
leaq 0x8a8(%rsp), %rdi
callq 0x5788
movq 0x1d0(%rsp), %rdi
addq $0x10, %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
callq 0x1aa70
movq (%rax), %rdi
leaq 0x8c8(%rsp), %rsi
callq 0xb250
jmp 0x17778
leaq 0x8c8(%rsp), %rdi
callq 0x5560
jmp 0x17787
leaq 0x8c8(%rsp), %rdi
callq 0x55a0
leaq 0xae8(%rsp), %rdi
callq 0x5788
jmp 0x177f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x177da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
leaq 0x8a8(%rsp), %rdi
callq 0x5788
leaq 0x8c8(%rsp), %rdi
callq 0x55a0
leaq 0xae8(%rsp), %rdi
callq 0x5788
jmp 0x187e3
movq 0x1d0(%rsp), %rdi
addq $0x1c0, %rdi            # imm = 0x1C0
leaq 0x1b9f0(%rip), %rsi     # 0x331ff
callq 0x7b70
movb %al, 0x156(%rsp)
jmp 0x1781d
movb 0x156(%rsp), %al
testb $0x1, %al
jne 0x1782d
jmp 0x17a88
movq 0x1d0(%rsp), %rsi
addq $0x1c0, %rsi            # imm = 0x1C0
leaq 0x888(%rsp), %rdi
callq 0x51a0
jmp 0x1784b
movq 0x1d0(%rsp), %rax
testb $0x1, 0xcc(%rax)
je 0x178f6
movq 0x1d0(%rsp), %rdi
movq %rdi, %rax
addq $0x1c0, %rax            # imm = 0x1C0
movq %rax, 0x148(%rsp)
movl 0xb0c(%rsp), %eax
movl %eax, %esi
movl %esi, %eax
incl %eax
movl %eax, 0x150(%rsp)
addq $0x90, %rdi
callq 0x10dd0
movq 0x148(%rsp), %rsi
movl 0x150(%rsp), %edx
movl (%rax), %ecx
leaq 0x868(%rsp), %rdi
callq 0x15d00
jmp 0x178b9
leaq 0x888(%rsp), %rdi
leaq 0x868(%rsp), %rsi
callq 0x5470
leaq 0x868(%rsp), %rdi
callq 0x5788
jmp 0x178f6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x17a76
xorl %edi, %edi
callq 0x7ba0
movq %rax, 0x140(%rsp)
jmp 0x17907
movq 0x140(%rsp), %rdi
leaq 0x1c3eb(%rip), %rsi     # 0x33d01
callq 0x5360
movq %rax, 0x138(%rsp)
jmp 0x17925
movq 0x138(%rsp), %rdi
leaq 0x888(%rsp), %rsi
callq 0x5320
movq %rax, 0x130(%rsp)
jmp 0x17944
movq 0x130(%rsp), %rdi
leaq 0x1bcd4(%rip), %rsi     # 0x33627
callq 0x5360
jmp 0x1795a
leaq 0x888(%rsp), %rdi
callq 0x5190
movq %rax, %rsi
leaq 0x668(%rsp), %rdi
movl $0x10, %edx
callq 0x53f0
jmp 0x1797e
leaq 0x668(%rsp), %rdi
callq 0x5290
movb %al, 0x12f(%rsp)
jmp 0x17994
leaq 0x1c32d(%rip), %rsi     # 0x33cc8
leaq 0x648(%rsp), %rdi
leaq 0x888(%rsp), %rdx
callq 0x7880
jmp 0x179b2
movb 0x12f(%rsp), %al
movzbl %al, %edi
andl $0x1, %edi
leaq 0x648(%rsp), %rsi
callq 0x7480
jmp 0x179ce
leaq 0x648(%rsp), %rdi
callq 0x5788
movq 0x1d0(%rsp), %rdi
addq $0x28, %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
callq 0x1aa70
movq (%rax), %rdi
leaq 0x668(%rsp), %rsi
callq 0xb250
jmp 0x17a07
leaq 0x668(%rsp), %rdi
callq 0x5560
jmp 0x17a16
leaq 0x668(%rsp), %rdi
callq 0x55a0
leaq 0x888(%rsp), %rdi
callq 0x5788
jmp 0x17a88
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x17a69
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
leaq 0x648(%rsp), %rdi
callq 0x5788
leaq 0x668(%rsp), %rdi
callq 0x55a0
leaq 0x888(%rsp), %rdi
callq 0x5788
jmp 0x187e3
movq 0x1d0(%rsp), %rdi
movq (%rdi), %rax
movq %rax, 0x120(%rsp)
addq $0x28, %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
callq 0x1aa70
movq 0x120(%rsp), %rdi
movq (%rax), %rsi
leaq 0xb40(%rsp), %rdx
leaq 0xb10(%rsp), %rcx
callq 0x101e0
jmp 0x17acf
movq 0x1d0(%rsp), %rdi
addq $0x120, %rdi            # imm = 0x120
leaq 0x1b71a(%rip), %rsi     # 0x331ff
callq 0x7b70
movb %al, 0x11f(%rsp)
jmp 0x17af3
movb 0x11f(%rsp), %al
testb $0x1, %al
jne 0x17b03
jmp 0x17e39
movq 0x1d0(%rsp), %rsi
addq $0x120, %rsi            # imm = 0x120
leaq 0x628(%rsp), %rdi
callq 0x51a0
jmp 0x17b21
movq 0x1d0(%rsp), %rax
testb $0x1, 0xcc(%rax)
je 0x17bcc
movq 0x1d0(%rsp), %rdi
movq %rdi, %rax
addq $0x120, %rax            # imm = 0x120
movq %rax, 0x110(%rsp)
movl 0xb0c(%rsp), %eax
movl %eax, %esi
movl %esi, %eax
incl %eax
movl %eax, 0x118(%rsp)
addq $0x90, %rdi
callq 0x10dd0
movq 0x110(%rsp), %rsi
movl 0x118(%rsp), %edx
movl (%rax), %ecx
leaq 0x608(%rsp), %rdi
callq 0x15d00
jmp 0x17b8f
leaq 0x628(%rsp), %rdi
leaq 0x608(%rsp), %rsi
callq 0x5470
leaq 0x608(%rsp), %rdi
callq 0x5788
jmp 0x17bcc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x17e27
xorl %edi, %edi
callq 0x7ba0
movq %rax, 0x108(%rsp)
jmp 0x17bdd
movq 0x108(%rsp), %rdi
leaq 0x1c138(%rip), %rsi     # 0x33d24
callq 0x5360
movq %rax, 0x100(%rsp)
jmp 0x17bfb
movq 0x100(%rsp), %rdi
leaq 0x1beb4(%rip), %rsi     # 0x33abe
callq 0x5360
movq %rax, 0xf8(%rsp)
jmp 0x17c19
movq 0xf8(%rsp), %rdi
leaq 0x628(%rsp), %rsi
callq 0x5320
movq %rax, 0xf0(%rsp)
jmp 0x17c38
movq 0xf0(%rsp), %rdi
leaq 0x1b9e0(%rip), %rsi     # 0x33627
callq 0x5360
jmp 0x17c4e
leaq 0x628(%rsp), %rdi
callq 0x5190
movq %rax, %rsi
leaq 0x408(%rsp), %rdi
movl $0x10, %edx
callq 0x53f0
jmp 0x17c72
leaq 0x408(%rsp), %rdi
callq 0x5290
movb %al, 0xef(%rsp)
jmp 0x17c88
leaq 0x1c039(%rip), %rsi     # 0x33cc8
leaq 0x3e8(%rsp), %rdi
leaq 0x628(%rsp), %rdx
callq 0x7880
jmp 0x17ca6
movb 0xef(%rsp), %al
movzbl %al, %edi
andl $0x1, %edi
leaq 0x3e8(%rsp), %rsi
callq 0x7480
jmp 0x17cc2
leaq 0x3e8(%rsp), %rdi
callq 0x5788
movl $0x0, 0x3e4(%rsp)
movl 0x3e4(%rsp), %eax
movq %rax, 0xe0(%rsp)
leaq 0xb40(%rsp), %rdi
callq 0x10df0
movq %rax, %rcx
movq 0xe0(%rsp), %rax
cmpq %rcx, %rax
jae 0x17def
movl 0x3e4(%rsp), %eax
movl %eax, %esi
leaq 0xb40(%rsp), %rdi
callq 0x10dd0
movl (%rax), %esi
leaq 0x408(%rsp), %rdi
callq 0x5680
movq %rax, 0xd8(%rsp)
jmp 0x17d39
movq 0xd8(%rsp), %rdi
leaq 0x1e45c(%rip), %rsi     # 0x361a4
callq 0x5360
movq %rax, 0xd0(%rsp)
jmp 0x17d57
movl 0x3e4(%rsp), %eax
movl %eax, %esi
leaq 0xb10(%rsp), %rdi
callq 0x9ba0
movq 0xd0(%rsp), %rdi
movsd (%rax), %xmm0
callq 0x5700
movq %rax, 0xc8(%rsp)
jmp 0x17d88
movq 0xc8(%rsp), %rdi
movq 0x2c229(%rip), %rsi     # 0x43fc0
callq 0x53c0
jmp 0x17d9e
jmp 0x17da0
movl 0x3e4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3e4(%rsp)
jmp 0x17cda
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x17e1a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
leaq 0x3e8(%rsp), %rdi
callq 0x5788
jmp 0x17e1a
leaq 0x408(%rsp), %rdi
callq 0x5560
jmp 0x17dfe
leaq 0x408(%rsp), %rdi
callq 0x55a0
leaq 0x628(%rsp), %rdi
callq 0x5788
jmp 0x17e39
leaq 0x408(%rsp), %rdi
callq 0x55a0
leaq 0x628(%rsp), %rdi
callq 0x5788
jmp 0x187e3
movq 0x1d0(%rsp), %rdi
addq $0x28, %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
callq 0x1aa70
movq (%rax), %rsi
leaq 0x3b8(%rsp), %rdi
movsd 0x1b3ea(%rip), %xmm0    # 0x33250
callq 0x164d0
jmp 0x17e6d
leaq 0x390(%rsp), %rdi
leaq 0x3b8(%rsp), %rsi
callq 0x1aa90
jmp 0x17e84
movq 0x1d0(%rsp), %rax
movsd 0x1b3bc(%rip), %xmm0    # 0x33250
ucomisd 0xd0(%rax), %xmm0
jbe 0x17f3e
movq 0x1d0(%rsp), %rdi
movsd 0xd0(%rdi), %xmm0
movsd %xmm0, 0xc0(%rsp)
addq $0x28, %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
callq 0x1aa70
movsd 0xc0(%rsp), %xmm0
movq (%rax), %rsi
leaq 0x368(%rsp), %rdi
callq 0x164d0
jmp 0x17ee8
leaq 0x390(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0x1ac40
leaq 0x368(%rsp), %rdi
callq 0x1a990
jmp 0x17f3e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x187b2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x187a5
movq 0x1d0(%rsp), %rdi
addq $0x180, %rdi            # imm = 0x180
leaq 0x1b2ab(%rip), %rsi     # 0x331ff
callq 0x7b70
movb %al, 0xbf(%rsp)
jmp 0x17f62
movb 0xbf(%rsp), %al
testb $0x1, %al
jne 0x17f72
jmp 0x1839b
movq 0x1d0(%rsp), %rsi
addq $0x180, %rsi            # imm = 0x180
leaq 0x348(%rsp), %rdi
callq 0x51a0
jmp 0x17f90
movq 0x1d0(%rsp), %rax
testb $0x1, 0xcc(%rax)
je 0x1802a
movq 0x1d0(%rsp), %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
movl %esi, %eax
incl %eax
movl %eax, 0xb8(%rsp)
addq $0x90, %rdi
callq 0x10dd0
movl 0xb8(%rsp), %edx
movl (%rax), %ecx
leaq 0x328(%rsp), %rdi
leaq 0x348(%rsp), %rsi
callq 0x15d00
jmp 0x17fed
leaq 0x348(%rsp), %rdi
leaq 0x328(%rsp), %rsi
callq 0x5470
leaq 0x328(%rsp), %rdi
callq 0x5788
jmp 0x1802a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x18389
xorl %edi, %edi
callq 0x7ba0
movq %rax, 0xb0(%rsp)
jmp 0x1803b
movq 0xb0(%rsp), %rdi
leaq 0x1bd09(%rip), %rsi     # 0x33d53
callq 0x5360
movq %rax, 0xa8(%rsp)
jmp 0x18059
movq 0xa8(%rsp), %rdi
leaq 0x348(%rsp), %rsi
callq 0x5320
movq %rax, 0xa0(%rsp)
jmp 0x18078
movq 0xa0(%rsp), %rdi
leaq 0x1b5a0(%rip), %rsi     # 0x33627
callq 0x5360
jmp 0x1808e
movq 0x1d0(%rsp), %rdi
addq $0x28, %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
callq 0x1aa70
movq (%rax), %rdi
callq 0xc0c0
movl %eax, 0x9c(%rsp)
jmp 0x180b9
movl 0x9c(%rsp), %r8d
leaq 0x348(%rsp), %rdi
leaq 0x3b8(%rsp), %rsi
leaq 0xb10(%rsp), %rdx
leaq 0xb40(%rsp), %rcx
callq 0x16b40
jmp 0x180e8
movq 0x1d0(%rsp), %rax
movsd 0x1b158(%rip), %xmm0    # 0x33250
ucomisd 0xd0(%rax), %xmm0
jbe 0x1837a
movq 0x1d0(%rsp), %rsi
addq $0x180, %rsi            # imm = 0x180
leaq 0x1bc70(%rip), %rdx     # 0x33d8c
leaq 0x2e8(%rsp), %rdi
callq 0x1acb0
jmp 0x1812b
movq 0x1d0(%rsp), %rax
movsd 0xd0(%rax), %xmm0
leaq 0x2c8(%rsp), %rdi
callq 0x2fec0
jmp 0x1814a
leaq 0x308(%rsp), %rdi
leaq 0x2e8(%rsp), %rsi
leaq 0x2c8(%rsp), %rdx
callq 0x7740
jmp 0x18169
leaq 0x348(%rsp), %rdi
leaq 0x308(%rsp), %rsi
callq 0x5470
leaq 0x308(%rsp), %rdi
callq 0x5788
leaq 0x2c8(%rsp), %rdi
callq 0x5788
leaq 0x2e8(%rsp), %rdi
callq 0x5788
movq 0x1d0(%rsp), %rax
testb $0x1, 0xcc(%rax)
je 0x1826f
movq 0x1d0(%rsp), %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
movl %esi, %eax
incl %eax
movl %eax, 0x98(%rsp)
addq $0x90, %rdi
callq 0x10dd0
movl 0x98(%rsp), %edx
movl (%rax), %ecx
leaq 0x2a8(%rsp), %rdi
leaq 0x348(%rsp), %rsi
callq 0x15d00
jmp 0x18202
leaq 0x348(%rsp), %rdi
leaq 0x2a8(%rsp), %rsi
callq 0x5470
leaq 0x2a8(%rsp), %rdi
callq 0x5788
jmp 0x1826f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x1825d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
leaq 0x2c8(%rsp), %rdi
callq 0x5788
leaq 0x2e8(%rsp), %rdi
callq 0x5788
jmp 0x18389
xorl %edi, %edi
callq 0x7ba0
movq %rax, 0x90(%rsp)
jmp 0x18280
movq 0x90(%rsp), %rdi
leaq 0x1bb02(%rip), %rsi     # 0x33d91
callq 0x5360
movq %rax, 0x88(%rsp)
jmp 0x1829e
movq 0x88(%rsp), %rdi
leaq 0x1bb0e(%rip), %rsi     # 0x33dbb
callq 0x5360
movq %rax, 0x80(%rsp)
jmp 0x182bc
movq 0x80(%rsp), %rdi
movq 0x1d0(%rsp), %rax
movsd 0xd0(%rax), %xmm0
callq 0x5700
movq %rax, 0x78(%rsp)
jmp 0x182e0
movq 0x78(%rsp), %rdi
leaq 0x1bae5(%rip), %rsi     # 0x33dd1
callq 0x5360
movq %rax, 0x70(%rsp)
jmp 0x182f8
movq 0x70(%rsp), %rdi
leaq 0x348(%rsp), %rsi
callq 0x5320
movq %rax, 0x68(%rsp)
jmp 0x18311
movq 0x68(%rsp), %rdi
leaq 0x1b30a(%rip), %rsi     # 0x33627
callq 0x5360
jmp 0x18324
movq 0x1d0(%rsp), %rdi
addq $0x28, %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
callq 0x1aa70
movq (%rax), %rdi
callq 0xc0c0
movl %eax, 0x64(%rsp)
jmp 0x1834c
movl 0x64(%rsp), %r8d
leaq 0x348(%rsp), %rdi
leaq 0x390(%rsp), %rsi
leaq 0xb10(%rsp), %rdx
leaq 0xb40(%rsp), %rcx
callq 0x16b40
jmp 0x18378
jmp 0x1837a
leaq 0x348(%rsp), %rdi
callq 0x5788
jmp 0x1839b
leaq 0x348(%rsp), %rdi
callq 0x5788
jmp 0x187a5
movq 0x1d0(%rsp), %rdi
addq $0x140, %rdi            # imm = 0x140
leaq 0x1ae4e(%rip), %rsi     # 0x331ff
callq 0x7b70
movb %al, 0x63(%rsp)
jmp 0x183bc
movb 0x63(%rsp), %al
testb $0x1, %al
jne 0x183c9
jmp 0x18775
movq 0x1d0(%rsp), %rsi
addq $0x140, %rsi            # imm = 0x140
leaq 0x288(%rsp), %rdi
callq 0x51a0
jmp 0x183e7
movq 0x1d0(%rsp), %rax
testb $0x1, 0xcc(%rax)
je 0x18477
movq 0x1d0(%rsp), %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
movl %esi, %eax
incl %eax
movl %eax, 0x5c(%rsp)
addq $0x90, %rdi
callq 0x10dd0
movl 0x5c(%rsp), %edx
movl (%rax), %ecx
leaq 0x268(%rsp), %rdi
leaq 0x288(%rsp), %rsi
callq 0x15d00
jmp 0x1843a
leaq 0x288(%rsp), %rdi
leaq 0x268(%rsp), %rsi
callq 0x5470
leaq 0x268(%rsp), %rdi
callq 0x5788
jmp 0x18477
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x18766
xorl %edi, %edi
callq 0x7ba0
movq %rax, 0x50(%rsp)
jmp 0x18485
movq 0x50(%rsp), %rdi
leaq 0x1b95a(%rip), %rsi     # 0x33deb
callq 0x5360
movq %rax, 0x48(%rsp)
jmp 0x1849d
movq 0x48(%rsp), %rdi
leaq 0x288(%rsp), %rsi
callq 0x5320
movq %rax, 0x40(%rsp)
jmp 0x184b6
movq 0x40(%rsp), %rdi
leaq 0x1b165(%rip), %rsi     # 0x33627
callq 0x5360
jmp 0x184c9
movq 0x1d0(%rsp), %rdi
addq $0x28, %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
callq 0x1aa70
movq (%rax), %rdx
leaq 0x288(%rsp), %rdi
leaq 0x3b8(%rsp), %rsi
callq 0x16fa0
jmp 0x184fd
movq 0x1d0(%rsp), %rax
movsd 0x1ad43(%rip), %xmm0    # 0x33250
ucomisd 0xd0(%rax), %xmm0
jbe 0x18757
movq 0x1d0(%rsp), %rsi
addq $0x140, %rsi            # imm = 0x140
leaq 0x1b85b(%rip), %rdx     # 0x33d8c
leaq 0x228(%rsp), %rdi
callq 0x1acb0
jmp 0x18540
movq 0x1d0(%rsp), %rax
movsd 0xd0(%rax), %xmm0
leaq 0x208(%rsp), %rdi
callq 0x2fec0
jmp 0x1855f
leaq 0x248(%rsp), %rdi
leaq 0x228(%rsp), %rsi
leaq 0x208(%rsp), %rdx
callq 0x7740
jmp 0x1857e
leaq 0x288(%rsp), %rdi
leaq 0x248(%rsp), %rsi
callq 0x5470
leaq 0x248(%rsp), %rdi
callq 0x5788
leaq 0x208(%rsp), %rdi
callq 0x5788
leaq 0x228(%rsp), %rdi
callq 0x5788
movq 0x1d0(%rsp), %rax
testb $0x1, 0xcc(%rax)
je 0x1867e
movq 0x1d0(%rsp), %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
movl %esi, %eax
incl %eax
movl %eax, 0x3c(%rsp)
addq $0x90, %rdi
callq 0x10dd0
movl 0x3c(%rsp), %edx
movl (%rax), %ecx
leaq 0x1e8(%rsp), %rdi
leaq 0x288(%rsp), %rsi
callq 0x15d00
jmp 0x18611
leaq 0x288(%rsp), %rdi
leaq 0x1e8(%rsp), %rsi
callq 0x5470
leaq 0x1e8(%rsp), %rdi
callq 0x5788
jmp 0x1867e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
jmp 0x1866c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb30(%rsp)
movl %eax, 0xb2c(%rsp)
leaq 0x208(%rsp), %rdi
callq 0x5788
leaq 0x228(%rsp), %rdi
callq 0x5788
jmp 0x18766
xorl %edi, %edi
callq 0x7ba0
movq %rax, 0x30(%rsp)
jmp 0x1868c
movq 0x30(%rsp), %rdi
leaq 0x1b78a(%rip), %rsi     # 0x33e22
callq 0x5360
movq %rax, 0x28(%rsp)
jmp 0x186a4
movq 0x28(%rsp), %rdi
leaq 0x1b70b(%rip), %rsi     # 0x33dbb
callq 0x5360
movq %rax, 0x20(%rsp)
jmp 0x186bc
movq 0x20(%rsp), %rdi
movq 0x1d0(%rsp), %rax
movsd 0xd0(%rax), %xmm0
callq 0x5700
movq %rax, 0x18(%rsp)
jmp 0x186dd
movq 0x18(%rsp), %rdi
leaq 0x1b6e8(%rip), %rsi     # 0x33dd1
callq 0x5360
movq %rax, 0x10(%rsp)
jmp 0x186f5
movq 0x10(%rsp), %rdi
leaq 0x288(%rsp), %rsi
callq 0x5320
movq %rax, 0x8(%rsp)
jmp 0x1870e
movq 0x8(%rsp), %rdi
leaq 0x1af0d(%rip), %rsi     # 0x33627
callq 0x5360
jmp 0x18721
movq 0x1d0(%rsp), %rdi
addq $0x28, %rdi
movl 0xb0c(%rsp), %eax
movl %eax, %esi
callq 0x1aa70
movq (%rax), %rdx
leaq 0x288(%rsp), %rdi
leaq 0x390(%rsp), %rsi
callq 0x16fa0
jmp 0x18755
jmp 0x18757
leaq 0x288(%rsp), %rdi
callq 0x5788
jmp 0x18775
leaq 0x288(%rsp), %rdi
callq 0x5788
jmp 0x187a5
leaq 0x390(%rsp), %rdi
callq 0x1a990
leaq 0x3b8(%rsp), %rdi
callq 0x1a990
movl 0xb0c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb0c(%rsp)
jmp 0x173fb
leaq 0x390(%rsp), %rdi
callq 0x1a990
leaq 0x3b8(%rsp), %rdi
callq 0x1a990
jmp 0x187e3
leaq 0xb10(%rsp), %rdi
callq 0x9bc0
leaq 0xb40(%rsp), %rdi
callq 0x10ed0
addq $0xb68, %rsp            # imm = 0xB68
retq
leaq 0xb10(%rsp), %rdi
callq 0x9bc0
leaq 0xb40(%rsp), %rdi
callq 0x10ed0
movq 0xb30(%rsp), %rdi
callq 0x5690
nopw (%rax,%rax)