// File: 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:
subq $0xba8, %rsp            # imm = 0xBA8
movq %rdi, 0xba0(%rsp)
movq 0xba0(%rsp), %rax
movq %rax, 0x1d8(%rsp)
movq (%rax), %rax
testq %rax, %rax
sete %al
movb %al, 0x1e7(%rsp)
leaq 0xb7f(%rsp), %rdi
movq %rdi, 0x1e8(%rsp)
callq 0x56a0
movq 0x1e8(%rsp), %rdx
leaq 0x20c0b(%rip), %rsi     # 0x3340e
leaq 0xb80(%rsp), %rdi
callq 0x74e0
jmp 0x12812
movb 0x1e7(%rsp), %al
movzbl %al, %edi
andl $0x1, %edi
leaq 0xb80(%rsp), %rsi
callq 0x7480
jmp 0x1282e
leaq 0xb80(%rsp), %rdi
callq 0x5788
leaq 0xb7f(%rsp), %rdi
callq 0x53e0
movq 0x1d8(%rsp), %rdi
addq $0x58, %rdi
addq $0x248, %rdi            # imm = 0x248
leaq 0x2099d(%rip), %rsi     # 0x331ff
callq 0x7b70
testb $0x1, %al
jne 0x12870
jmp 0x12a26
movq 0x1d8(%rsp), %rax
movq %rax, %rdi
addq $0x2a0, %rdi            # imm = 0x2A0
movzbl 0xcd(%rax), %esi
andl $0x1, %esi
callq 0x125b0
movq %rax, 0xb60(%rsp)
movl $0x30, %edi
callq 0x5380
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x1d0(%rsp)
callq 0xae00
jmp 0x128b8
movq 0x1d8(%rsp), %rax
movq 0x1d0(%rsp), %rcx
movq %rcx, (%rax)
movq (%rax), %rdi
movq 0xb60(%rsp), %rsi
callq 0xb720
xorl %edi, %edi
callq 0x7ba0
movq %rax, %rdi
leaq 0x20b50(%rip), %rsi     # 0x3343c
callq 0x5360
movq 0x1d8(%rsp), %rsi
movq %rax, %rdi
addq $0x58, %rsi
addq $0x248, %rsi            # imm = 0x248
callq 0x5320
movq %rax, %rdi
leaq 0x20b4f(%rip), %rsi     # 0x33465
callq 0x5360
movq %rax, %rcx
movq 0x1d8(%rsp), %rax
movq %rcx, 0x1c0(%rsp)
movq (%rax), %rdi
callq 0xc0c0
movq 0x1c0(%rsp), %rdi
movl %eax, %esi
callq 0x5520
movq %rax, %rdi
leaq 0x21791(%rip), %rsi     # 0x340e0
callq 0x5360
movq %rax, %rcx
movq 0x1d8(%rsp), %rax
movq %rcx, 0x1c8(%rsp)
movq (%rax), %rdi
callq 0xc0d0
movq 0x1c8(%rsp), %rdi
movl %eax, %esi
callq 0x5520
movq %rax, %rdi
leaq 0x20ff9(%rip), %rsi     # 0x33981
callq 0x5360
movq 0x1d8(%rsp), %rax
movq 0xb60(%rsp), %rdi
movb 0xcd(%rax), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x12770
jmp 0x13cac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
jmp 0x129e9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
leaq 0xb80(%rsp), %rdi
callq 0x5788
leaq 0xb7f(%rsp), %rdi
callq 0x53e0
jmp 0x13cb4
movq 0x1d0(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
movl $0x30, %esi
callq 0x5390
jmp 0x13cb4
movq 0x1d8(%rsp), %rdi
addq $0x58, %rdi
addq $0x268, %rdi            # imm = 0x268
leaq 0x207bf(%rip), %rsi     # 0x331ff
callq 0x7b70
testb $0x1, %al
jne 0x12a4e
jmp 0x12bbb
movq 0x1d8(%rsp), %rax
movq %rax, %rdi
addq $0x2c0, %rdi            # imm = 0x2C0
movzbl 0xcd(%rax), %esi
andl $0x1, %esi
callq 0x125b0
movq %rax, 0xb58(%rsp)
movl $0x30, %edi
callq 0x5380
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x1b8(%rsp)
callq 0xae00
jmp 0x12a96
movq 0x1d8(%rsp), %rax
movq 0x1b8(%rsp), %rcx
movq %rcx, (%rax)
movq (%rax), %rdi
movq 0xb58(%rsp), %rsi
callq 0xbc70
xorl %edi, %edi
callq 0x7ba0
movq %rax, %rdi
leaq 0x209a5(%rip), %rsi     # 0x3346f
callq 0x5360
movq 0x1d8(%rsp), %rsi
movq %rax, %rdi
addq $0x58, %rsi
addq $0x268, %rsi            # imm = 0x268
callq 0x5320
movq %rax, %rdi
leaq 0x20971(%rip), %rsi     # 0x33465
callq 0x5360
movq %rax, %rcx
movq 0x1d8(%rsp), %rax
movq %rcx, 0x1a8(%rsp)
movq (%rax), %rdi
callq 0xc0c0
movq 0x1a8(%rsp), %rdi
movl %eax, %esi
callq 0x5520
movq %rax, %rdi
leaq 0x215b3(%rip), %rsi     # 0x340e0
callq 0x5360
movq %rax, %rcx
movq 0x1d8(%rsp), %rax
movq %rcx, 0x1b0(%rsp)
movq (%rax), %rdi
callq 0xc0d0
movq 0x1b0(%rsp), %rdi
movl %eax, %esi
callq 0x5520
movq %rax, %rdi
leaq 0x20e1b(%rip), %rsi     # 0x33981
callq 0x5360
movq 0x1d8(%rsp), %rax
movq 0xb58(%rsp), %rdi
movb 0xcd(%rax), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x12770
jmp 0x13caa
movq 0x1b8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
movl $0x30, %esi
callq 0x5390
jmp 0x13cb4
movq 0x1d8(%rsp), %rdi
addq $0x58, %rdi
leaq 0x20631(%rip), %rsi     # 0x331ff
callq 0x7b70
testb $0x1, %al
jne 0x12bdc
jmp 0x13c0a
movq 0x1d8(%rsp), %rax
movq %rax, %rdi
addq $0x58, %rdi
movzbl 0xcd(%rax), %esi
andl $0x1, %esi
callq 0x125b0
movq %rax, 0xb50(%rsp)
movl $0x10, %edi
callq 0x5380
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x1a0(%rsp)
movq 0xb50(%rsp), %rsi
callq 0xe7d0
jmp 0x12c29
movq 0x1d8(%rsp), %rax
movq 0x1a0(%rsp), %rcx
movq %rcx, 0xb48(%rsp)
movl 0xb4(%rax), %eax
leaq 0x213e6(%rip), %rcx     # 0x34034
cmpl (%rcx), %eax
je 0x12cbd
movq 0x1d8(%rsp), %rax
movl 0xb8(%rax), %eax
leaq 0x213d1(%rip), %rcx     # 0x34038
cmpl (%rcx), %eax
je 0x12cbd
movq 0x1d8(%rsp), %rax
movl 0xb4(%rax), %ecx
movl %ecx, 0xb44(%rsp)
movl 0xb8(%rax), %eax
movl %eax, 0xb40(%rsp)
jmp 0x12dc8
movq 0x1a0(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
movl $0x10, %esi
callq 0x5390
jmp 0x13cb4
movq 0xb48(%rsp), %rdi
leaq 0xb44(%rsp), %rsi
leaq 0xb40(%rsp), %rdx
callq 0x2ff70
movq 0xb48(%rsp), %rax
movq %rax, 0x198(%rsp)
cmpq $0x0, %rax
je 0x12d0f
movq 0x198(%rsp), %rdi
callq 0x1a210
movq 0x198(%rsp), %rdi
movl $0x10, %esi
callq 0x5390
movq 0x1d8(%rsp), %rax
movq 0xb50(%rsp), %rdi
movq %rax, %rcx
addq $0x58, %rcx
movq %rcx, 0x188(%rsp)
movzbl 0xcd(%rax), %esi
andl $0x1, %esi
callq 0x12770
movq 0x1d8(%rsp), %rax
movq 0x188(%rsp), %rdi
movzbl 0xcd(%rax), %esi
andl $0x1, %esi
callq 0x125b0
movq %rax, 0xb50(%rsp)
movl $0x10, %edi
callq 0x5380
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x190(%rsp)
movq 0xb50(%rsp), %rsi
callq 0xe7d0
jmp 0x12d8b
movq 0x190(%rsp), %rax
movq %rax, 0xb48(%rsp)
jmp 0x12dc8
movq 0x190(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
movl $0x10, %esi
callq 0x5390
jmp 0x13cb4
xorl %edi, %edi
callq 0x7ba0
movq %rax, %rdi
leaq 0x206c1(%rip), %rsi     # 0x3349a
callq 0x5360
movq 0x1d8(%rsp), %rsi
movq %rax, %rdi
addq $0x58, %rsi
callq 0x5320
movq %rax, %rdi
leaq 0x20669(%rip), %rsi     # 0x33465
callq 0x5360
movq %rax, %rdi
movl 0xb44(%rsp), %esi
callq 0x5680
movq %rax, %rdi
leaq 0x212c6(%rip), %rsi     # 0x340e0
callq 0x5360
movq %rax, %rdi
movl 0xb40(%rsp), %esi
callq 0x5680
movq %rax, %rdi
leaq 0x20b49(%rip), %rsi     # 0x33981
callq 0x5360
movq 0x1d8(%rsp), %rax
testb $0x1, 0x80(%rax)
je 0x12f1d
movl $0x30, %edi
callq 0x5380
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x180(%rsp)
movl 0xb44(%rsp), %esi
movl 0xb40(%rsp), %edx
callq 0xaf10
jmp 0x12e7f
movq 0x1d8(%rsp), %rax
movq 0x180(%rsp), %rcx
movq %rcx, (%rax)
movq 0xb48(%rsp), %rdi
movq (%rax), %rsi
callq 0x30710
xorl %edi, %edi
callq 0x7ba0
movq %rax, %rdi
leaq 0x20613(%rip), %rsi     # 0x334c6
callq 0x5360
movq 0xb48(%rsp), %rax
movq %rax, 0x178(%rsp)
cmpq $0x0, %rax
je 0x12eed
movq 0x178(%rsp), %rdi
callq 0x1a210
movq 0x178(%rsp), %rdi
movl $0x10, %esi
callq 0x5390
jmp 0x13c05
movq 0x180(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
movl $0x30, %esi
callq 0x5390
jmp 0x13cb4
movq 0x1d8(%rsp), %rdi
movq $0x0, 0xb38(%rsp)
addq $0x58, %rdi
addq $0x2a8, %rdi            # imm = 0x2A8
leaq 0x202bc(%rip), %rsi     # 0x331ff
callq 0x7b70
testb $0x1, %al
jne 0x12f51
jmp 0x13342
movq 0x1d8(%rsp), %rdi
addq $0x300, %rdi            # imm = 0x300
movq %rdi, 0x160(%rsp)
callq 0x12540
movq 0x160(%rsp), %rdx
movb %al, 0x16f(%rsp)
leaq 0x20578(%rip), %rsi     # 0x334fb
leaq 0xb18(%rsp), %rdi
movq %rdi, 0x170(%rsp)
callq 0x7880
movb 0x16f(%rsp), %al
movq 0x170(%rsp), %rsi
movzbl %al, %edi
callq 0x7480
jmp 0x12fb1
leaq 0xb18(%rsp), %rdi
callq 0x5788
movl $0x30, %edi
callq 0x5380
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x158(%rsp)
callq 0xae00
jmp 0x12fdd
movq 0x1d8(%rsp), %rdi
movq 0x158(%rsp), %rax
movq %rax, 0xb38(%rsp)
addq $0x300, %rdi            # imm = 0x300
callq 0x5190
movq %rax, %rsi
leaq 0x910(%rsp), %rdi
movq %rdi, 0x148(%rsp)
movl $0x8, %edx
callq 0x56d0
movq 0x148(%rsp), %rdi
callq 0x5630
movb %al, 0x157(%rsp)
jmp 0x13034
movq 0x1d8(%rsp), %rdx
addq $0x300, %rdx            # imm = 0x300
leaq 0x204cf(%rip), %rsi     # 0x33519
leaq 0x8f0(%rsp), %rdi
callq 0x7880
jmp 0x13059
movb 0x157(%rsp), %al
movzbl %al, %edi
andl $0x1, %edi
leaq 0x8f0(%rsp), %rsi
callq 0x7480
jmp 0x13075
leaq 0x8f0(%rsp), %rdi
callq 0x5788
movq 0xb38(%rsp), %rdi
leaq 0x910(%rsp), %rsi
callq 0xb4a0
jmp 0x13099
leaq 0x910(%rsp), %rdi
callq 0x50d0
jmp 0x130a8
xorl %edi, %edi
callq 0x7ba0
movq %rax, 0x140(%rsp)
jmp 0x130b9
movq 0x140(%rsp), %rdi
leaq 0x2047c(%rip), %rsi     # 0x33544
callq 0x5360
movq %rax, 0x138(%rsp)
jmp 0x130d7
movq 0x138(%rsp), %rdi
movq 0x1d8(%rsp), %rsi
addq $0x300, %rsi            # imm = 0x300
callq 0x5320
movq %rax, 0x130(%rsp)
jmp 0x130fd
movq 0x130(%rsp), %rdi
leaq 0x20359(%rip), %rsi     # 0x33465
callq 0x5360
movq %rax, 0x128(%rsp)
jmp 0x1311b
movq 0xb38(%rsp), %rdi
callq 0xc0c0
movl %eax, 0x124(%rsp)
jmp 0x13131
movl 0x124(%rsp), %esi
movq 0x128(%rsp), %rdi
callq 0x5520
movq %rax, 0x118(%rsp)
jmp 0x1314f
movq 0x118(%rsp), %rdi
leaq 0x20f82(%rip), %rsi     # 0x340e0
callq 0x5360
movq %rax, 0x110(%rsp)
jmp 0x1316d
movq 0xb38(%rsp), %rdi
callq 0xc0d0
movl %eax, 0x10c(%rsp)
jmp 0x13183
movl 0x10c(%rsp), %esi
movq 0x110(%rsp), %rdi
callq 0x5520
movq %rax, 0x100(%rsp)
jmp 0x131a1
movq 0x100(%rsp), %rdi
leaq 0x207d1(%rip), %rsi     # 0x33981
callq 0x5360
jmp 0x131b7
movq 0xb38(%rsp), %rdi
callq 0xc0c0
movl %eax, 0xfc(%rsp)
jmp 0x131cd
movl 0xfc(%rsp), %eax
movl 0xb40(%rsp), %ecx
subl %ecx, %eax
sete %al
movb %al, 0xef(%rsp)
leaq 0x8cf(%rsp), %rdi
movq %rdi, 0xf0(%rsp)
callq 0x56a0
movq 0xf0(%rsp), %rdx
leaq 0x20360(%rip), %rsi     # 0x3356b
leaq 0x8d0(%rsp), %rdi
callq 0x74e0
jmp 0x1321a
movb 0xef(%rsp), %al
movzbl %al, %edi
andl $0x1, %edi
leaq 0x8d0(%rsp), %rsi
callq 0x7480
jmp 0x13236
leaq 0x8d0(%rsp), %rdi
callq 0x5788
leaq 0x8cf(%rsp), %rdi
callq 0x53e0
leaq 0x910(%rsp), %rdi
callq 0x5100
jmp 0x1381b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
leaq 0xb18(%rsp), %rdi
callq 0x5788
jmp 0x13cb4
movq 0x158(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
movl $0x30, %esi
callq 0x5390
jmp 0x13cb4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
jmp 0x13330
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
leaq 0x8f0(%rsp), %rdi
callq 0x5788
jmp 0x13330
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
jmp 0x13323
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
leaq 0x8d0(%rsp), %rdi
callq 0x5788
leaq 0x8cf(%rsp), %rdi
callq 0x53e0
leaq 0x910(%rsp), %rdi
callq 0x5100
jmp 0x13cb4
movq 0x1d8(%rsp), %rdi
addq $0x58, %rdi
addq $0x288, %rdi            # imm = 0x288
leaq 0x1fea3(%rip), %rsi     # 0x331ff
callq 0x7b70
testb $0x1, %al
jne 0x1336a
jmp 0x1373d
movq 0x1d8(%rsp), %rdi
addq $0x2e0, %rdi            # imm = 0x2E0
movq %rdi, 0xd0(%rsp)
callq 0x12540
movq 0xd0(%rsp), %rdx
movb %al, 0xdf(%rsp)
leaq 0x2015f(%rip), %rsi     # 0x334fb
leaq 0x8a8(%rsp), %rdi
movq %rdi, 0xe0(%rsp)
callq 0x7880
movb 0xdf(%rsp), %al
movq 0xe0(%rsp), %rsi
movzbl %al, %edi
callq 0x7480
jmp 0x133ca
leaq 0x8a8(%rsp), %rdi
callq 0x5788
movl $0x30, %edi
callq 0x5380
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0xc8(%rsp)
callq 0xae00
jmp 0x133f6
movq 0x1d8(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq %rax, 0xb38(%rsp)
addq $0x2e0, %rdi            # imm = 0x2E0
callq 0x5190
movq %rax, %rsi
leaq 0x6a0(%rsp), %rdi
movq %rdi, 0xb8(%rsp)
movl $0x8, %edx
callq 0x56d0
movq 0xb8(%rsp), %rdi
callq 0x5630
movb %al, 0xc7(%rsp)
jmp 0x1344d
movq 0x1d8(%rsp), %rdx
addq $0x2e0, %rdx            # imm = 0x2E0
leaq 0x200b6(%rip), %rsi     # 0x33519
leaq 0x680(%rsp), %rdi
callq 0x7880
jmp 0x13472
movb 0xc7(%rsp), %al
movzbl %al, %edi
andl $0x1, %edi
leaq 0x680(%rsp), %rsi
callq 0x7480
jmp 0x1348e
leaq 0x680(%rsp), %rdi
callq 0x5788
movq 0xb38(%rsp), %rdi
leaq 0x6a0(%rsp), %rsi
callq 0xbb30
jmp 0x134b2
leaq 0x6a0(%rsp), %rdi
callq 0x50d0
jmp 0x134c1
xorl %edi, %edi
callq 0x7ba0
movq %rax, 0xb0(%rsp)
jmp 0x134d2
movq 0xb0(%rsp), %rdi
leaq 0x200c4(%rip), %rsi     # 0x335a5
callq 0x5360
movq %rax, 0xa8(%rsp)
jmp 0x134f0
movq 0xa8(%rsp), %rdi
movq 0x1d8(%rsp), %rsi
addq $0x2e0, %rsi            # imm = 0x2E0
callq 0x5320
movq %rax, 0xa0(%rsp)
jmp 0x13516
movq 0xa0(%rsp), %rdi
leaq 0x1ff40(%rip), %rsi     # 0x33465
callq 0x5360
movq %rax, 0x98(%rsp)
jmp 0x13534
movq 0xb38(%rsp), %rdi
callq 0xc0c0
movl %eax, 0x94(%rsp)
jmp 0x1354a
movl 0x94(%rsp), %esi
movq 0x98(%rsp), %rdi
callq 0x5520
movq %rax, 0x88(%rsp)
jmp 0x13568
movq 0x88(%rsp), %rdi
leaq 0x20b69(%rip), %rsi     # 0x340e0
callq 0x5360
movq %rax, 0x80(%rsp)
jmp 0x13586
movq 0xb38(%rsp), %rdi
callq 0xc0d0
movl %eax, 0x7c(%rsp)
jmp 0x13599
movl 0x7c(%rsp), %esi
movq 0x80(%rsp), %rdi
callq 0x5520
movq %rax, 0x70(%rsp)
jmp 0x135b1
movq 0x70(%rsp), %rdi
leaq 0x203c4(%rip), %rsi     # 0x33981
callq 0x5360
jmp 0x135c4
movq 0xb38(%rsp), %rdi
callq 0xc0c0
movl %eax, 0x6c(%rsp)
jmp 0x135d7
movl 0x6c(%rsp), %eax
movl 0xb40(%rsp), %ecx
subl %ecx, %eax
sete %al
movb %al, 0x5f(%rsp)
leaq 0x65f(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0x56a0
movq 0x60(%rsp), %rdx
leaq 0x1ff62(%rip), %rsi     # 0x3356b
leaq 0x660(%rsp), %rdi
callq 0x74e0
jmp 0x13618
movb 0x5f(%rsp), %al
movzbl %al, %edi
andl $0x1, %edi
leaq 0x660(%rsp), %rsi
callq 0x7480
jmp 0x13631
leaq 0x660(%rsp), %rdi
callq 0x5788
leaq 0x65f(%rsp), %rdi
callq 0x53e0
leaq 0x6a0(%rsp), %rdi
callq 0x5100
jmp 0x13819
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
leaq 0x8a8(%rsp), %rdi
callq 0x5788
jmp 0x13cb4
movq 0xc8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
movl $0x30, %esi
callq 0x5390
jmp 0x13cb4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
jmp 0x1372b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
leaq 0x680(%rsp), %rdi
callq 0x5788
jmp 0x1372b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
jmp 0x1371e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
leaq 0x660(%rsp), %rdi
callq 0x5788
leaq 0x65f(%rsp), %rdi
callq 0x53e0
leaq 0x6a0(%rsp), %rdi
callq 0x5100
jmp 0x13cb4
movl $0x30, %edi
callq 0x5380
movq %rax, %rdi
movq 0x1d8(%rsp), %rax
movq %rdi, %rcx
movq %rcx, 0x50(%rsp)
movl 0xb40(%rsp), %esi
movl 0x84(%rax), %edx
callq 0xaf10
jmp 0x1376e
movq 0x1d8(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, 0xb38(%rsp)
movl 0xac(%rax), %edi
movq 0xb38(%rsp), %rsi
callq 0x30160
xorl %edi, %edi
callq 0x7ba0
movq %rax, %rdi
leaq 0x1fe2c(%rip), %rsi     # 0x335d3
callq 0x5360
movq %rax, %rdi
movl 0xb40(%rsp), %esi
callq 0x5680
movq %rax, %rdi
leaq 0x2091b(%rip), %rsi     # 0x340e0
callq 0x5360
movq %rax, %rdi
movq 0x1d8(%rsp), %rax
movl 0x84(%rax), %esi
callq 0x5680
movq %rax, %rdi
leaq 0x20197(%rip), %rsi     # 0x33981
callq 0x5360
jmp 0x13819
movq 0x50(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
movl $0x30, %esi
callq 0x5390
jmp 0x13cb4
jmp 0x1381b
movq 0x1d8(%rsp), %rdi
addq $0x58, %rdi
addq $0x1c8, %rdi            # imm = 0x1C8
leaq 0x1f9ca(%rip), %rsi     # 0x331ff
callq 0x7b70
testb $0x1, %al
jne 0x13843
jmp 0x13981
xorl %edi, %edi
callq 0x7ba0
movq %rax, %rdi
leaq 0x1fdaa(%rip), %rsi     # 0x335fe
callq 0x5360
movq 0x1d8(%rsp), %rsi
movq %rax, %rdi
addq $0x220, %rsi            # imm = 0x220
movq %rsi, 0x38(%rsp)
callq 0x5320
movq %rax, %rdi
leaq 0x1fda8(%rip), %rsi     # 0x33627
callq 0x5360
movq 0x38(%rsp), %rdi
callq 0x5190
movq %rax, %rsi
leaq 0x458(%rsp), %rdi
movq %rdi, 0x40(%rsp)
movl $0x10, %edx
callq 0x53f0
movq 0x40(%rsp), %rdi
callq 0x5290
movb %al, 0x4f(%rsp)
jmp 0x138b8
movq 0x1d8(%rsp), %rdx
addq $0x220, %rdx            # imm = 0x220
leaq 0x1fc4b(%rip), %rsi     # 0x33519
leaq 0x438(%rsp), %rdi
callq 0x7880
jmp 0x138dd
movb 0x4f(%rsp), %al
movzbl %al, %edi
andl $0x1, %edi
leaq 0x438(%rsp), %rsi
callq 0x7480
jmp 0x138f6
leaq 0x438(%rsp), %rdi
callq 0x5788
movq 0xb38(%rsp), %rdi
leaq 0x458(%rsp), %rsi
callq 0xb250
jmp 0x1391a
leaq 0x458(%rsp), %rdi
callq 0x5560
jmp 0x13929
leaq 0x458(%rsp), %rdi
callq 0x55a0
jmp 0x13981
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
jmp 0x1396f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
leaq 0x438(%rsp), %rdi
callq 0x5788
leaq 0x458(%rsp), %rdi
callq 0x55a0
jmp 0x13cb4
movq 0x1d8(%rsp), %rdi
addq $0x58, %rdi
addq $0x1e8, %rdi            # imm = 0x1E8
leaq 0x1f864(%rip), %rsi     # 0x331ff
callq 0x7b70
testb $0x1, %al
jne 0x139a9
jmp 0x13ae7
xorl %edi, %edi
callq 0x7ba0
movq %rax, %rdi
leaq 0x1fc70(%rip), %rsi     # 0x3362a
callq 0x5360
movq 0x1d8(%rsp), %rsi
movq %rax, %rdi
addq $0x240, %rsi            # imm = 0x240
movq %rsi, 0x20(%rsp)
callq 0x5320
movq %rax, %rdi
leaq 0x1fc42(%rip), %rsi     # 0x33627
callq 0x5360
movq 0x20(%rsp), %rdi
callq 0x5190
movq %rax, %rsi
leaq 0x238(%rsp), %rdi
movq %rdi, 0x28(%rsp)
movl $0x10, %edx
callq 0x53f0
movq 0x28(%rsp), %rdi
callq 0x5290
movb %al, 0x37(%rsp)
jmp 0x13a1e
movq 0x1d8(%rsp), %rdx
addq $0x240, %rdx            # imm = 0x240
leaq 0x1fae5(%rip), %rsi     # 0x33519
leaq 0x218(%rsp), %rdi
callq 0x7880
jmp 0x13a43
movb 0x37(%rsp), %al
movzbl %al, %edi
andl $0x1, %edi
leaq 0x218(%rsp), %rsi
callq 0x7480
jmp 0x13a5c
leaq 0x218(%rsp), %rdi
callq 0x5788
movq 0xb38(%rsp), %rdi
leaq 0x238(%rsp), %rsi
callq 0xb970
jmp 0x13a80
leaq 0x238(%rsp), %rdi
callq 0x5560
jmp 0x13a8f
leaq 0x238(%rsp), %rdi
callq 0x55a0
jmp 0x13ae7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
jmp 0x13ad5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
leaq 0x218(%rsp), %rdi
callq 0x5788
leaq 0x238(%rsp), %rdi
callq 0x55a0
jmp 0x13cb4
movl $0x30, %edi
callq 0x5380
movq %rax, %rdi
movq 0x1d8(%rsp), %rax
movq %rdi, %rcx
movq %rcx, 0x18(%rsp)
movl 0xb44(%rsp), %esi
movl 0x84(%rax), %edx
callq 0xaf10
jmp 0x13b18
movq 0x1d8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, (%rax)
movq 0xb48(%rsp), %rdi
movq 0xb38(%rsp), %rsi
movq (%rax), %rdx
callq 0x315a0
movq 0xb48(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, %rax
je 0x13b6c
movq 0x10(%rsp), %rdi
callq 0x1a210
movq 0x10(%rsp), %rdi
movl $0x10, %esi
callq 0x5390
movq 0x1d8(%rsp), %rax
testb $0x1, 0xcd(%rax)
je 0x13bb4
movq 0xb50(%rsp), %rdi
callq 0x5550
jmp 0x13bc1
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
movl $0x30, %esi
callq 0x5390
jmp 0x13cb4
movq 0xb50(%rsp), %rdi
callq 0x5370
xorl %edi, %edi
callq 0x7ba0
movq %rax, %rdi
leaq 0x1fa88(%rip), %rsi     # 0x3365a
callq 0x5360
movq 0xb38(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
je 0x13c03
movq 0x8(%rsp), %rdi
callq 0x10da0
movq 0x8(%rsp), %rdi
movl $0x30, %esi
callq 0x5390
jmp 0x13c05
jmp 0x13ca8
leaq 0x1f7(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x56a0
movq (%rsp), %rdx
leaq 0x1fa62(%rip), %rsi     # 0x33688
leaq 0x1f8(%rsp), %rdi
callq 0x74e0
jmp 0x13c35
xorl %edi, %edi
leaq 0x1f8(%rsp), %rsi
callq 0x7480
jmp 0x13c46
leaq 0x1f8(%rsp), %rdi
callq 0x5788
leaq 0x1f7(%rsp), %rdi
callq 0x53e0
jmp 0x13ca8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
jmp 0x13c99
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb70(%rsp)
movl %eax, 0xb6c(%rsp)
leaq 0x1f8(%rsp), %rdi
callq 0x5788
leaq 0x1f7(%rsp), %rdi
callq 0x53e0
jmp 0x13cb4
jmp 0x13caa
jmp 0x13cac
addq $0xba8, %rsp            # imm = 0xBA8
retq
movq 0xb70(%rsp), %rdi
callq 0x5690
nopw %cs:(%rax,%rax)