// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Simpoint.cpp
// Function: Simpoint::loadData()
void Simpoint::loadData() {
    Utilities::check(wholeDataset == NULL, "Simpoint::loadData() wholeDataset is not NULL");

    // load the data, project it, etc.
    if (options.loadVectorsTxtFmtName != "") {
        FILE *input = openInputVectorFile(options.loadVectorsTxtFmtName,
                options.inputVectorsAreGzipped);
        wholeDataset = new Dataset;
        wholeDataset->read(input);
        Logger::log() << "Loaded data from text format data file '"
            << options.loadVectorsTxtFmtName << "' (size: " 
            << wholeDataset->numRows() << "x" << wholeDataset->numCols() << ")\n";
        closeInputVectorFile(input, options.inputVectorsAreGzipped);
    } else if (options.loadVectorsBinFmtName != "") {
        FILE *input = openInputVectorFile(options.loadVectorsBinFmtName,
                options.inputVectorsAreGzipped);
        wholeDataset = new Dataset;
        wholeDataset->readBinary(input);
        Logger::log() << "Loaded data from binary format data file '" 
            << options.loadVectorsBinFmtName << "' (size: " 
            << wholeDataset->numRows() << "x" << wholeDataset->numCols() << ")\n";
        closeInputVectorFile(input, options.inputVectorsAreGzipped);
    } else if (options.frequencyVectorFileName != "") {
        FILE *input = openInputVectorFile(options.frequencyVectorFileName,
                options.inputVectorsAreGzipped);
        FVParser *parser = new FVParser(input);

        int numPts, numDims;
        if ((options.numFreqVectors != options.DEFAULT_NUM_FREQ_VECTORS) && 
            (options.numFVDims != options.DEFAULT_NUM_FREQ_DIMS)) {
            numPts = options.numFreqVectors;
            numDims = options.numFVDims;
        } else {
            Utilities::sizeOfFVFile(*parser, &numPts, &numDims);
            delete parser;
            closeInputVectorFile(input, options.inputVectorsAreGzipped);
            input = openInputVectorFile(options.frequencyVectorFileName,
                                        options.inputVectorsAreGzipped);
            parser = new FVParser(input);
        }

        Logger::log() << "  Loading data from frequency vector file '"
             << options.frequencyVectorFileName 
             << "' (size: " << numPts << "x" << numDims << ")\n";

        if (options.useNoProjection) {
            wholeDataset = new Dataset(numPts, numDims);
            Utilities::loadFVFile(*parser, wholeDataset);
            Logger::log() << "  Loaded frequency vectors without projecting them.\n";
            delete parser;
        } else {
            // Get the projection matrix
            Dataset *projection = NULL;
            if (options.loadProjMatrixTxtFmtName != "") {
                Utilities::check(isRegularFile(options.loadProjMatrixTxtFmtName),
                        "loadData() not regular file: " +
                        options.loadProjMatrixTxtFmtName);
                projection = new Dataset;
                ifstream input(options.loadProjMatrixTxtFmtName.c_str());
                Utilities::check(input.is_open(), "Simpoint::loadData(): could not open file " +
                                        options.loadProjMatrixTxtFmtName);
                projection->read(input);
                input.close();
                Logger::log() << "  Loaded projection matrix from file '" 
                     << options.loadProjMatrixTxtFmtName
                     << "' (size: " << projection->numRows() << "x" 
                     << projection->numCols() << ")\n";
                Utilities::check(projection->numRows() == (unsigned int)numDims,
                    "loadData(): projection matrix rows != original dimensions");
            } else if (options.loadProjMatrixBinFmtName != "") {
                Utilities::check(isRegularFile(options.loadProjMatrixBinFmtName),
                        "loadData() not regular file: " +
                        options.loadProjMatrixBinFmtName);
                projection = new Dataset;
                ifstream input(options.loadProjMatrixBinFmtName.c_str());
                Utilities::check(input.is_open(), "Simpoint::loadData(): could not open file " +
                                        options.loadProjMatrixBinFmtName);
                projection->readBinary(input);
                input.close();
                Logger::log() << "  Loaded projection matrix from binary file '" 
                    << options.loadProjMatrixBinFmtName
                    << "' (size: " << projection->numRows() << "x" 
                    << projection->numCols() << ")\n";
                Utilities::check(projection->numRows() == (unsigned int)numDims,
                    "loadData(): projection matrix rows != original dimensions");
            } else {
                projection = new Dataset(numDims, options.projectionDimension);
                Utilities::randomProjectionMatrix(options.randSeedProjection, projection);
                Logger::log() << "  Created random projection matrix (size: " << numDims
                     << "x" << options.projectionDimension << ")\n";
            }

            // save the projection matrix
            if (options.saveProjMatrixTxtFmtName != "") {
                Logger::log() << "  Saving the projection matrix to file '" 
                    << options.saveProjMatrixTxtFmtName << "'\n";
                ofstream output(options.saveProjMatrixTxtFmtName.c_str());
                Utilities::check(output.is_open(), "Simpoint::loadData(): could not open file " +
                                        options.saveProjMatrixTxtFmtName);
                projection->write(output);
                output.close();
            }

            if (options.saveProjMatrixBinFmtName != "") {
                Logger::log() << "  Saving the projection matrix to binary file '" 
                    << options.saveProjMatrixBinFmtName << "'\n";
                ofstream output(options.saveProjMatrixBinFmtName.c_str());
                Utilities::check(output.is_open(), "Simpoint::loadData(): could not open file " +
                                        options.saveProjMatrixBinFmtName);
                projection->writeBinary(output);
                output.close();
            }

            wholeDataset = new Dataset(numPts, options.projectionDimension);
            Utilities::loadAndProjectFVFile(*parser, *projection, wholeDataset);
            delete parser;
            if (options.inputVectorsAreGzipped) { pclose(input); } else { fclose(input); }
            Logger::log() << "  Loaded and projected frequency vector file\n";

            delete projection;
        }
    } else {
        // shouldn't get here
        Utilities::check(false, "loadData(): no data to load");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rdi, %rbx
movq (%rdi), %r14
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1279d(%rip), %rsi     # 0x1c46e
leaq 0x127c3(%rip), %rdx     # 0x1c49b
leaq 0x40(%rsp), %rdi
callq 0x6086
testq %r14, %r14
jne 0xa868
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x9d02
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x2a0(%rbx), %r14
leaq 0x1252a(%rip), %rsi     # 0x1c23a
movq %r14, %rdi
callq 0x40e0
testl %eax, %eax
je 0x9d89
movzbl 0xcd(%rbx), %esi
movq %r14, %rdi
callq 0x9ad8
movq %rax, %r14
movl $0x30, %edi
callq 0x42c0
movq %rax, %r15
movq %rax, %rdi
callq 0x6d94
movq %r15, (%rbx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x7412
leaq 0x1d5d8(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %r15
leaq 0x12733(%rip), %rsi     # 0x1c49c
movl $0x28, %edx
movq %r15, %rdi
callq 0x4330
movq 0x2a0(%rbx), %rsi
movq 0x2a8(%rbx), %rdx
jmp 0x9e0f
leaq 0x2c0(%rbx), %r14
leaq 0x124a3(%rip), %rsi     # 0x1c23a
movq %r14, %rdi
callq 0x40e0
testl %eax, %eax
je 0x9eb3
movzbl 0xcd(%rbx), %esi
movq %r14, %rdi
callq 0x9ad8
movq %rax, %r14
movl $0x30, %edi
callq 0x42c0
movq %rax, %r15
movq %rax, %rdi
callq 0x6d94
movq %r15, (%rbx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x788c
leaq 0x1d54d(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %r15
leaq 0x126db(%rip), %rsi     # 0x1c4cf
movl $0x2a, %edx
movq %r15, %rdi
callq 0x4330
movq 0x2c0(%rbx), %rsi
movq 0x2c8(%rbx), %rdx
movq %r15, %rdi
callq 0x4330
movq %rax, %r15
leaq 0x126a4(%rip), %rsi     # 0x1c4c5
movl $0x9, %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
movq %r15, %rdi
callq 0x41c0
movq %rax, %r15
leaq 0x132ec(%rip), %rsi     # 0x1d140
movl $0x1, %edx
movq %rax, %rdi
callq 0x4330
movq (%rbx), %rax
movq (%rax), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
movl %ecx, %esi
movq %r15, %rdi
callq 0x41c0
leaq 0x12b5e(%rip), %rsi     # 0x1c9e1
movl $0x2, %edx
movq %rax, %rdi
callq 0x4330
cmpb $0x1, 0xcd(%rbx)
jne 0x9ea6
movq %r14, %rdi
callq 0x4430
jmp 0xa7b9
movq %r14, %rdi
callq 0x42b0
jmp 0xa7b9
leaq 0x58(%rbx), %r12
leaq 0x1237c(%rip), %rsi     # 0x1c23a
movq %r12, %rdi
callq 0x40e0
testl %eax, %eax
je 0xa8b1
movzbl 0xcd(%rbx), %esi
movq %r12, %rdi
callq 0x9ad8
movq %rax, %r13
movl $0x10, %edi
callq 0x42c0
movq %rax, %r14
movq %rax, %rdi
movq %r13, %rsi
callq 0x83ac
movl 0xb4(%rbx), %eax
leaq 0x1318f(%rip), %rcx     # 0x1d094
cmpl (%rcx), %eax
je 0x9f1a
movl 0xb8(%rbx), %ecx
leaq 0x13182(%rip), %rdx     # 0x1d098
cmpl (%rdx), %ecx
jne 0x9f80
leaq 0x2c(%rsp), %rsi
leaq 0x4(%rsp), %rdx
movq %r14, %rdi
callq 0x19558
movl $0x10, %esi
movq %r14, %rdi
callq 0x42d0
cmpb $0x1, 0xcd(%rbx)
jne 0x9f4c
movq %r13, %rdi
callq 0x4430
jmp 0x9f54
movq %r13, %rdi
callq 0x42b0
movzbl 0xcd(%rbx), %esi
movq %r12, %rdi
callq 0x9ad8
movq %rax, %r13
movl $0x10, %edi
callq 0x42c0
movq %rax, %r14
movq %rax, %rdi
movq %r13, %rsi
callq 0x83ac
jmp 0x9f88
movl %eax, 0x2c(%rsp)
movl %ecx, 0x4(%rsp)
leaq 0x1d3a1(%rip), %rcx     # 0x27330
movl (%rcx), %eax
shrl $0x1f, %eax
movq 0x8(%rcx,%rax,8), %r12
leaq 0x1255a(%rip), %rsi     # 0x1c4fa
movl $0x2b, %edx
movq %r12, %rdi
callq 0x4330
movq 0x58(%rbx), %rsi
movq 0x60(%rbx), %rdx
movq %r12, %rdi
callq 0x4330
movq %rax, %r12
leaq 0x124fe(%rip), %rsi     # 0x1c4c5
movl $0x9, %edx
movq %rax, %rdi
callq 0x4330
movl 0x2c(%rsp), %esi
movq %r12, %rdi
callq 0x4560
movq %rax, %r12
leaq 0x13156(%rip), %rsi     # 0x1d140
movl $0x1, %edx
movq %rax, %rdi
callq 0x4330
movl 0x4(%rsp), %esi
movq %r12, %rdi
callq 0x4560
leaq 0x129d7(%rip), %rsi     # 0x1c9e1
movl $0x2, %edx
movq %rax, %rdi
callq 0x4330
cmpb $0x1, 0x80(%rbx)
jne 0xa07a
movl $0x30, %edi
callq 0x42c0
movq %rax, %r15
movl 0x2c(%rsp), %esi
movl 0x4(%rsp), %edx
movq %rax, %rdi
callq 0x6e50
movq %r15, (%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x19ae2
leaq 0x1d2de(%rip), %rcx     # 0x27330
movl (%rcx), %eax
shrl $0x1f, %eax
movq 0x8(%rcx,%rax,8), %rdi
leaq 0x124c3(%rip), %rsi     # 0x1c526
movl $0x34, %edx
callq 0x4330
movl $0x10, %esi
movq %r14, %rdi
jmp 0xa7b4
movq %r13, 0x30(%rsp)
leaq 0x300(%rbx), %r13
leaq 0x121ad(%rip), %rsi     # 0x1c23a
movq %r13, %rdi
callq 0x40e0
testl %eax, %eax
je 0xa2c4
movq %r14, 0x38(%rsp)
movq (%r13), %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0x4280
movl %eax, %ebp
movl $0xf000, %r14d          # imm = 0xF000
andl 0x18(%r12), %r14d
leaq 0x12494(%rip), %rsi     # 0x1c55b
leaq 0x40(%rsp), %rdi
movq %r13, %rdx
callq 0x5ed9
testl %ebp, %ebp
jne 0xa90d
cmpl $0x8000, %r14d          # imm = 0x8000
jne 0xa90d
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0xa100
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42d0
movl $0x30, %edi
callq 0x42c0
movq %rax, %r12
movq %rax, %rdi
callq 0x6d94
movq 0x38(%rsp), %r14
leaq 0x1d20f(%rip), %r15     # 0x27330
movq (%r13), %rsi
leaq 0x40(%rsp), %rdi
movl $0x8, %edx
callq 0x45a0
leaq 0xb8(%rsp), %rdi
callq 0x40b0
movl %eax, %ebp
leaq 0x1242f(%rip), %rsi     # 0x1c579
leaq 0x8(%rsp), %rdi
movq %r13, %rdx
callq 0x5ed9
testb %bpl, %bpl
je 0xa951
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa17b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x40(%rsp), %rsi
movq %r12, %rdi
callq 0x7220
leaq 0x40(%rsp), %rdi
callq 0x40a0
movl (%r15), %eax
shrl $0x1f, %eax
movq 0x8(%r15,%rax,8), %r13
leaq 0x12400(%rip), %rsi     # 0x1c5a4
movl $0x26, %edx
movq %r13, %rdi
callq 0x4330
movq 0x300(%rbx), %rsi
movq 0x308(%rbx), %rdx
movq %r13, %rdi
callq 0x4330
movq %rax, %r13
leaq 0x122f4(%rip), %rsi     # 0x1c4c5
movl $0x9, %edx
movq %rax, %rdi
callq 0x4330
movq 0x8(%r12), %rax
subq (%r12), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %esi # imm = 0xAAAAAAAB
movq %r13, %rdi
callq 0x41c0
movq %rax, %r13
leaq 0x12f3d(%rip), %rsi     # 0x1d140
movl $0x1, %edx
movq %rax, %rdi
callq 0x4330
movq (%r12), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
movl %ecx, %esi
movq %r13, %rdi
callq 0x41c0
leaq 0x127b1(%rip), %rsi     # 0x1c9e1
movl $0x2, %edx
movq %rax, %rdi
callq 0x4330
movq (%r12), %r15
movq 0x8(%r12), %r13
movl 0x4(%rsp), %ebp
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x1236d(%rip), %rsi     # 0x1c5cb
leaq 0x1239f(%rip), %rdx     # 0x1c604
callq 0x6086
subq %r15, %r13
shrq $0x3, %r13
imull $0xaaaaaaab, %r13d, %eax # imm = 0xAAAAAAAB
cmpl %eax, %ebp
je 0xa4ce
leaq 0x1d0a9(%rip), %rcx     # 0x27330
movl (%rcx), %eax
shrl $0x1f, %eax
movq 0x8(%rcx,%rax,8), %rbx
leaq 0x11ee0(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
jmp 0xa8a7
leaq 0x2e0(%rbx), %r13
leaq 0x11f68(%rip), %rsi     # 0x1c23a
movq %r13, %rdi
callq 0x40e0
testl %eax, %eax
je 0xa7cb
movq (%r13), %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0x4280
movl 0x18(%r12), %ecx
andl $0xf000, %ecx           # imm = 0xF000
xorl $0x8000, %ecx           # imm = 0x8000
xorl %ebp, %ebp
orl %eax, %ecx
sete %bpl
leaq 0x12248(%rip), %rsi     # 0x1c55b
leaq 0x40(%rsp), %r12
movq %r12, %rdi
movq %r13, %rdx
callq 0x5ed9
movl %ebp, %edi
movq %r12, %rsi
callq 0xf52e
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0xa344
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42d0
movl $0x30, %edi
callq 0x42c0
movq %rax, %r12
movq %rax, %rdi
callq 0x6d94
leaq 0x1cfd0(%rip), %r15     # 0x27330
movq (%r13), %rsi
leaq 0x40(%rsp), %rdi
movl $0x8, %edx
callq 0x45a0
leaq 0xb8(%rsp), %rdi
callq 0x40b0
movl %eax, %ebp
leaq 0x121f0(%rip), %rsi     # 0x1c579
leaq 0x8(%rsp), %rdi
movq %r13, %rdx
callq 0x5ed9
movzbl %bpl, %edi
leaq 0x8(%rsp), %rsi
callq 0xf52e
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa3bf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x40(%rsp), %rsi
movq %r12, %rdi
callq 0x7770
leaq 0x40(%rsp), %rdi
callq 0x40a0
movl (%r15), %eax
shrl $0x1f, %eax
movq 0x8(%r15,%rax,8), %r13
leaq 0x1221d(%rip), %rsi     # 0x1c605
movl $0x2d, %edx
movq %r13, %rdi
callq 0x4330
movq 0x2e0(%rbx), %rsi
movq 0x2e8(%rbx), %rdx
movq %r13, %rdi
callq 0x4330
movq %rax, %r13
leaq 0x120b0(%rip), %rsi     # 0x1c4c5
movl $0x9, %edx
movq %rax, %rdi
callq 0x4330
movq 0x8(%r12), %rax
subq (%r12), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %esi # imm = 0xAAAAAAAB
movq %r13, %rdi
callq 0x41c0
movq %rax, %r13
leaq 0x12cf9(%rip), %rsi     # 0x1d140
movl $0x1, %edx
movq %rax, %rdi
callq 0x4330
movq (%r12), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
movl %ecx, %esi
movq %r13, %rdi
callq 0x41c0
leaq 0x1256d(%rip), %rsi     # 0x1c9e1
movl $0x2, %edx
movq %rax, %rdi
callq 0x4330
movq (%r12), %r15
movq 0x8(%r12), %r13
movl 0x4(%rsp), %ebp
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq 0x12129(%rip), %rsi     # 0x1c5cb
leaq 0x1215b(%rip), %rdx     # 0x1c604
callq 0x6086
subq %r15, %r13
shrq $0x3, %r13
imull $0xaaaaaaab, %r13d, %eax # imm = 0xAAAAAAAB
xorl %edi, %edi
cmpl %eax, %ebp
sete %dil
leaq 0x8(%rsp), %rsi
callq 0xf52e
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
leaq 0x1ce4e(%rip), %r15     # 0x27330
je 0xa4f1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x40(%rsp), %rdi
callq 0x40c0
leaq 0x220(%rbx), %r13
leaq 0x11d31(%rip), %rsi     # 0x1c23a
movq %r13, %rdi
callq 0x40e0
testl %eax, %eax
je 0xa608
movl (%r15), %eax
shrl $0x1f, %eax
movq 0x8(%r15,%rax,8), %rbp
leaq 0x12133(%rip), %rsi     # 0x1c65e
movl $0x28, %edx
movq %rbp, %rdi
callq 0x4330
movq 0x220(%rbx), %rsi
movq 0x228(%rbx), %rdx
movq %rbp, %rdi
callq 0x4330
leaq 0x12132(%rip), %rsi     # 0x1c687
movl $0x2, %edx
movq %rax, %rdi
callq 0x4330
movq 0x220(%rbx), %rsi
leaq 0x40(%rsp), %rdi
movl $0x10, %edx
callq 0x4310
leaq 0xb0(%rsp), %rdi
callq 0x40b0
movl %eax, %ebp
leaq 0x11feb(%rip), %rsi     # 0x1c579
leaq 0x8(%rsp), %rdi
movq %r13, %rdx
callq 0x5ed9
testb %bpl, %bpl
je 0xa98f
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa5bf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x40(%rsp), %rsi
movq %r12, %rdi
callq 0x703e
leaq 0x40(%rsp), %rdi
callq 0x4440
movq 0x1c9eb(%rip), %rax     # 0x26fc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x48(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x40(%rsp,%rcx)
callq 0x4240
leaq 0x138(%rsp), %rdi
callq 0x4120
leaq 0x240(%rbx), %r13
leaq 0x11c24(%rip), %rsi     # 0x1c23a
movq %r13, %rdi
callq 0x40e0
testl %eax, %eax
je 0xa715
movl (%r15), %eax
shrl $0x1f, %eax
movq 0x8(%r15,%rax,8), %rbp
leaq 0x12052(%rip), %rsi     # 0x1c68a
movl $0x2f, %edx
movq %rbp, %rdi
callq 0x4330
movq 0x240(%rbx), %rsi
movq 0x248(%rbx), %rdx
movq %rbp, %rdi
callq 0x4330
leaq 0x12025(%rip), %rsi     # 0x1c687
movl $0x2, %edx
movq %rax, %rdi
callq 0x4330
movq 0x240(%rbx), %rsi
leaq 0x40(%rsp), %rdi
movl $0x10, %edx
callq 0x4310
leaq 0xb0(%rsp), %rdi
callq 0x40b0
movl %eax, %ebp
leaq 0x11ede(%rip), %rsi     # 0x1c579
leaq 0x8(%rsp), %rdi
movq %r13, %rdx
callq 0x5ed9
testb %bpl, %bpl
je 0xa9cd
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa6cc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x40(%rsp), %rsi
movq %r12, %rdi
callq 0x75f8
leaq 0x40(%rsp), %rdi
callq 0x4440
movq 0x1c8de(%rip), %rax     # 0x26fc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x48(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x40(%rsp,%rcx)
callq 0x4240
leaq 0x138(%rsp), %rdi
callq 0x4120
movl $0x30, %edi
callq 0x42c0
movq %rax, %r13
movl 0x2c(%rsp), %esi
movl 0x84(%rbx), %edx
movq %rax, %rdi
callq 0x6e50
movq %r13, (%rbx)
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1abe4
movl $0x10, %esi
movq %r14, %rdi
callq 0x42d0
cmpb $0x1, 0xcd(%rbx)
jne 0xa767
movq 0x30(%rsp), %rdi
callq 0x4430
jmp 0xa771
movq 0x30(%rsp), %rdi
callq 0x42b0
movl (%r15), %eax
shrl $0x1f, %eax
movq 0x8(%r15,%rax,8), %rdi
leaq 0x11f37(%rip), %rsi     # 0x1c6ba
movl $0x2d, %edx
callq 0x4330
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0xa7a4
movq 0x28(%r12), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %r12, %rdi
callq 0x7bf4
movl $0x30, %esi
movq %r12, %rdi
callq 0x42d0
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x30, %edi
callq 0x42c0
movq %rax, %r12
movl 0x4(%rsp), %esi
movl 0x84(%rbx), %edx
movq %rax, %rdi
callq 0x6e50
movl 0xac(%rbx), %edi
movq %r12, %rsi
callq 0x196c8
leaq 0x1cb31(%rip), %r15     # 0x27330
movl (%r15), %eax
shrl $0x1f, %eax
movq 0x8(%r15,%rax,8), %r13
leaq 0x11e22(%rip), %rsi     # 0x1c633
movl $0x2a, %edx
movq %r13, %rdi
callq 0x4330
movl 0x4(%rsp), %esi
movq %r13, %rdi
callq 0x4560
movq %rax, %r13
leaq 0x1290c(%rip), %rsi     # 0x1d140
movl $0x1, %edx
movq %rax, %rdi
callq 0x4330
movl 0x84(%rbx), %esi
movq %r13, %rdi
callq 0x4560
leaq 0x1218b(%rip), %rsi     # 0x1c9e1
movl $0x2, %edx
movq %rax, %rdi
callq 0x4330
jmp 0xa4fb
leaq 0x1cac1(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x118f8(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
leaq 0x40(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x11e28(%rip), %rsi     # 0x1c6e8
leaq 0x11e3c(%rip), %rdx     # 0x1c703
callq 0x6086
leaq 0x1ca5d(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x11894(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
jmp 0xa8a7
leaq 0x1ca1c(%rip), %rcx     # 0x27330
movl (%rcx), %eax
shrl $0x1f, %eax
movq 0x8(%rcx,%rax,8), %rbx
leaq 0x11853(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
jmp 0xa8a7
movl (%r15), %eax
shrl $0x1f, %eax
movq 0x8(%r15,%rax,8), %rbx
leaq 0x11815(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
jmp 0xa8a7
movl (%r15), %eax
shrl $0x1f, %eax
movq 0x8(%r15,%rax,8), %rbx
leaq 0x117d7(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
jmp 0xa8a7
movl (%r15), %eax
shrl $0x1f, %eax
movq 0x8(%r15,%rax,8), %rbx
leaq 0x11799(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
jmp 0xa8a7
jmp 0xaa7d
jmp 0xaa44
jmp 0xaac1
jmp 0xaa53
jmp 0xaac1
jmp 0xaa7d
jmp 0xaadd
jmp 0xaa24
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaaa2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0xaaa2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
jmp 0xaa5f
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaac4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0xaac4
jmp 0xaadd
jmp 0xaa9f
jmp 0xaa9f
jmp 0xaac1
jmp 0xaac1
movq %rax, %rbx
movl $0x30, %esi
movq %r12, %rdi
jmp 0xaaf2
jmp 0xaadd
movq %rax, %rbx
movl $0x30, %esi
movq %r13, %rdi
jmp 0xaaf2
jmp 0xaad0
jmp 0xaaf9
jmp 0xaa9f
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x4480
jmp 0xaafc
jmp 0xaab0
movq %rax, %rbx
movl $0x10, %esi
movq %r14, %rdi
jmp 0xaaf2
jmp 0xaac1
jmp 0xaad0
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x40c0
jmp 0xaafc
movq %rax, %rbx
movl $0x30, %esi
movq %r15, %rdi
jmp 0xaaf2
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0xaafc
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0xaafc
movq %rax, %rbx
movq %rbx, %rdi
callq 0x4580