// File: /workspace/github_cpp_makefile_star2_O3/ChaohuiYu[P]BPlusTree/parser.cpp
// Function: parseCommands(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void parseCommands(const std::string& filename) {
    ifstream infile(filename);
    string line, command, relationName, keyType, index, record, index1, index2, pageId;
    int recordLength = 0;
    std::vector<std::string> commandVector, commandVectorSections;

    while(getline(infile, line)) {
        stringstream lineStream(line);

        // parse the first token as action
        if (!getline(lineStream, command, ' ')) {
            // D(cerr << "invalid command: empty\n");
            continue;
        }

        // call different functions depending on command
        if (command == "R,") {
            commandVector = splitStr(line, ", ");
            if (commandVector.size() != 4) {
                cout << "Error: invalid command: " << line << endl;
                cout << "    R command example: R, Chat, integer, 90\n";
                cout << "    R command example: R, Movie, String, 100\n";
                continue;
            }

            try {
                recordLength = std::stoi(commandVector[3]);
            }
            catch (const std::exception& e) {
                cout << "Error: invalid command: " << line << endl;
                cout << "    record length should be an integer\n";
                continue;
            }
            relationName = commandVector[1];
            keyType = commandVector[2];

            createRelation(relationName, keyType, recordLength);
        }
        else if (command == "I,") {
            commandVectorSections = splitStr(line, "; ");

            if (commandVectorSections.size() == 0) {
                cout << "Error: invalid command: " << line << endl;
                cout << "    I command example: I, Movie, \"nkpgrtxphreddb\", \"xnrmnw osiy\"\n";
                continue;
            }

            // handle the first command
            commandVector = splitStr(commandVectorSections[0], ", ");
            if (commandVector.size() != 4) {
                cout << "Error: invalid command: " << line << endl;
                cout << "    I command example: I, Movie, \"nkpgrtxphred\", \"xnrmnw osiy\"\n";
                continue;
            }
            relationName = commandVector[1];
            index = commandVector[2];
            record = commandVector[3];

            insertRecord(relationName, index, record);

            // handle the commands after ;
            for (size_t i = 1; i < commandVectorSections.size(); i++) {
                commandVector = splitStr(commandVectorSections[i], ", ");
                if (commandVector.size() != 2) {
                    cout << "Error: invalid command: " << line << endl;
                    cout << "    I command example: I, Movie, \"nkpgrtxphred\", \"xnrmnw osiy\"; \"nsildfwefoi\", \"dsdisf sdif3fwe9\"\n";
                    // cout << "Error: invalid command: commandVector.size() != 2 in: " << line << endl;
                    continue;
                }
                index = commandVector[0];
                record = commandVector[1];
                insertRecord(relationName, index, record);
            }
        }
        else if (command == "D,") {
            commandVector = splitStr(line, ", ");
            if (commandVector.size() != 3) {
                cout << "Error: invalid command: " << line << endl;
                cout << "    D command example: D, Chat, 282\n";
                continue;
            }

            relationName = commandVector[1];
            index = commandVector[2];
            deleteRecord(relationName, index);
        }
        else if (command == "Scan") {
            commandVector = splitStr(line, " ");
            if (commandVector.size() != 2) {
                cout << "Error: invalid command: " << line << endl;
                cout << "    Scan command example: Scan Chat\n";
                continue;
            }

            relationName = commandVector[1];
            scanRelation(relationName);
        }
        else if (command == "q") {
            commandVector = splitStr(line, " ");
            if (commandVector.size() < 3 or commandVector.size() > 4) {
                cout << "Error: invalid command: " << line << endl;
                cout << "    q command example: q Chat 81\n";
                cout << "    q command example: q Chat 81 123\n";
                continue;
            }

            if (commandVector.size() == 3) {
                relationName = commandVector[1];
                index = commandVector[2];
                queryRecord(relationName, index);
            }
            if (commandVector.size() == 4) {
                relationName = commandVector[1];
                index1 = commandVector[2];
                index2 = commandVector[3];
                rangeQueryRecords(relationName, index1, index2);
            }
        }
        else if (command == "p") {
            commandVector = splitStr(line, " ");
            if (commandVector.size() != 3) {
                cout << "Error: invalid command: " << line << endl;
                cout << "    p command example: p Chat 1\n";
                continue;
            }
            relationName = commandVector[1];
            pageId = commandVector[2];
            displayPage(relationName, pageId);
        }
        else if (command == "c") {
            commandVector = splitStr(line, " ");
            if (commandVector.size() != 2) {
                cout << "Error: invalid command: " << line << endl;
                cout << "    c command example: c Chat\n";
                continue;
            }

            relationName = commandVector[1];
            statisticsRelation(relationName);
        }
        else {
            cout << "Error: invalid command: " << line << endl;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x668, %rsp            # imm = 0x668
movq %rdi, %rsi
leaq 0x460(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x2290
leaq 0x70(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x2c8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xb0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x2a8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xe8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x108(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x288(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x268(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x248(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq %rax, 0xd0(%rsp)
movaps %xmm0, 0xc0(%rsp)
leaq 0x60(%rsp), %rbx
leaq 0x2d8(%rsp), %r13
movq 0x460(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2300
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3c0c
movq %r13, %rdi
movq %rbx, %r14
movq %rbx, %rsi
movl $0x18, %edx
callq 0x2280
movq %r13, %r12
movq %r13, %rdi
leaq 0x2b8(%rsp), %rsi
movl $0x20, %edx
callq 0x2300
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3b47
leaq 0x2b8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x86a5(%rip), %rsi      # 0xb060
callq 0x20b0
testl %eax, %eax
je 0x2aaf
movq %rbx, %rdi
leaq 0x8730(%rip), %rsi      # 0xb102
callq 0x20b0
testl %eax, %eax
je 0x2c59
movq %rbx, %rdi
leaq 0x8804(%rip), %rsi      # 0xb1ed
callq 0x20b0
testl %eax, %eax
je 0x316f
movq %rbx, %rdi
leaq 0x8815(%rip), %rsi      # 0xb215
callq 0x20b0
testl %eax, %eax
je 0x32bf
movq %rbx, %rdi
leaq 0x8828(%rip), %rsi      # 0xb23f
callq 0x20b0
testl %eax, %eax
je 0x352d
movq %rbx, %rdi
leaq 0x885b(%rip), %rsi      # 0xb289
callq 0x20b0
testl %eax, %eax
je 0x3735
movq %rbx, %rdi
leaq 0x8867(%rip), %rsi      # 0xb2ac
callq 0x20b0
testl %eax, %eax
je 0x393b
movl $0x18, %edx
movq 0xd572(%rip), %rdi      # 0xffd0
leaq 0x8601(%rip), %rsi      # 0xb066
callq 0x2220
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xd555(%rip), %rdi      # 0xffd0
callq 0x2220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
jmp 0x3b47
leaq 0x228(%rsp), %rax
movq %rax, 0x218(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0x218(%rsp), %rbx
movq %rbx, %rdi
callq 0x42a0
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %r13
movq %r13, %rdi
leaq 0x856e(%rip), %rsi      # 0xb063
leaq 0x8569(%rip), %rdx      # 0xb065
callq 0x2692
leaq 0x40(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x2728
movq 0x10(%rsp), %rax
movaps 0x40(%rsp), %xmm0
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
movaps %xmm1, 0x80(%rsp)
movq %rax, 0x90(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x4236
movq %rbp, %rdi
callq 0x4236
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2b82
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x218(%rsp), %rdi
leaq 0x228(%rsp), %rax
cmpq %rax, %rdi
je 0x2ba7
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x21e0
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
subq %rax, %rcx
cmpq $0x80, %rcx
jne 0x30ee
movq 0x60(%rax), %r13
callq 0x2060
movq %rax, %rbx
movl (%rax), %r15d
movl $0x0, (%rax)
movq %r13, %rdi
leaq 0x20(%rsp), %rsi
movl $0xa, %edx
callq 0x2240
cmpq %r13, 0x20(%rsp)
je 0x3b76
movq %rax, %rbp
movslq %ebp, %rax
cmpq %rbp, %rax
jne 0x3b87
movl (%rbx), %eax
cmpl $0x22, %eax
je 0x3b87
testl %eax, %eax
jne 0x2c13
movl %r15d, (%rbx)
movq (%rsp), %rsi
addq $0x20, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x2110
movq (%rsp), %rsi
addq $0x40, %rsi
leaq 0x298(%rsp), %rdi
callq 0x2110
leaq 0xa0(%rsp), %rdi
leaq 0x298(%rsp), %rsi
movl %ebp, %edx
callq 0x4544
jmp 0x3b47
leaq 0x208(%rsp), %rax
movq %rax, 0x1f8(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f8(%rsp), %rdi
callq 0x42a0
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x8469(%rip), %rsi      # 0xb105
leaq 0x8464(%rip), %rdx      # 0xb107
callq 0x2692
leaq 0x40(%rsp), %r13
movq %r13, %rdi
leaq 0x1f8(%rsp), %rsi
movq %rbx, %rdx
callq 0x2728
movq 0xd0(%rsp), %rax
movaps 0x40(%rsp), %xmm0
movq 0x50(%rsp), %rcx
movq %rcx, 0xd0(%rsp)
movaps 0xc0(%rsp), %xmm1
movaps %xmm0, 0xc0(%rsp)
movaps %xmm1, 0x80(%rsp)
movq %rax, 0x90(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x4236
movq %r13, %rdi
callq 0x4236
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2d3c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0x2d61
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0xc0(%rsp), %rax
cmpq %rax, 0xc8(%rsp)
je 0x33f2
leaq 0x1e8(%rsp), %rcx
movq %rcx, 0x1d8(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x1d8(%rsp), %rdi
callq 0x42a0
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x82ac(%rip), %rsi      # 0xb063
leaq 0x82a7(%rip), %rdx      # 0xb065
callq 0x2692
leaq 0x40(%rsp), %r13
movq %r13, %rdi
leaq 0x1d8(%rsp), %rsi
movq %rbx, %rdx
callq 0x2728
movq 0x10(%rsp), %rax
movaps 0x40(%rsp), %xmm0
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
movaps %xmm1, 0x80(%rsp)
movq %rax, 0x90(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x4236
movq %r13, %rdi
callq 0x4236
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2e49
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x1d8(%rsp), %rdi
leaq 0x1e8(%rsp), %rax
cmpq %rax, %rdi
je 0x2e6e
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x21e0
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
subq %rsi, %rax
cmpq $0x80, %rax
jne 0x34c4
addq $0x20, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x2110
movq (%rsp), %rsi
addq $0x40, %rsi
leaq 0xd8(%rsp), %rdi
callq 0x2110
movq (%rsp), %rsi
addq $0x60, %rsi
leaq 0xf8(%rsp), %rdi
callq 0x2110
leaq 0xa0(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
callq 0x4895
movq 0xc0(%rsp), %rax
movq 0xc8(%rsp), %rcx
subq %rax, %rcx
cmpq $0x21, %rcx
jb 0x3b47
movl $0x1, %r13d
movl $0x28, %ebp
leaq 0x1c8(%rsp), %rcx
movq %rcx, 0x1b8(%rsp)
movq -0x8(%rax,%rbp), %rsi
movq (%rax,%rbp), %rdx
addq %rsi, %rdx
leaq 0x1b8(%rsp), %rdi
callq 0x42a0
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x811b(%rip), %rsi      # 0xb063
leaq 0x8116(%rip), %rdx      # 0xb065
callq 0x2692
leaq 0x40(%rsp), %r15
movq %r15, %rdi
leaq 0x1b8(%rsp), %rsi
movq %rbx, %rdx
callq 0x2728
movq 0x10(%rsp), %rax
movaps 0x40(%rsp), %xmm0
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
movaps %xmm1, 0x80(%rsp)
movq %rax, 0x90(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x4236
movq %r15, %rdi
callq 0x4236
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2fda
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x2fff
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x21e0
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
subq %rsi, %rax
cmpq $0x40, %rax
jne 0x3052
leaq 0xd8(%rsp), %rdi
callq 0x2110
movq (%rsp), %rsi
addq $0x20, %rsi
leaq 0xf8(%rsp), %rdi
callq 0x2110
leaq 0xa0(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
callq 0x4895
jmp 0x30c2
movl $0x18, %edx
movq 0xcf72(%rip), %rdi      # 0xffd0
leaq 0x8001(%rip), %rsi      # 0xb066
callq 0x2220
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xcf55(%rip), %rdi      # 0xffd0
callq 0x2220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movl $0x62, %edx
movq 0xcf1a(%rip), %rdi      # 0xffd0
leaq 0x80cd(%rip), %rsi      # 0xb18a
callq 0x2220
incq %r13
movq 0xc0(%rsp), %rax
movq 0xc8(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %rbp
cmpq %rcx, %r13
jb 0x2f06
jmp 0x3b47
movl $0x18, %edx
movq 0xced6(%rip), %rdi      # 0xffd0
leaq 0x7f65(%rip), %rsi      # 0xb066
callq 0x2220
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xceb9(%rip), %rdi      # 0xffd0
callq 0x2220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movl $0x2d, %ebx
movl $0x2c, %edx
movq 0xce79(%rip), %rdi      # 0xffd0
leaq 0x7f21(%rip), %rsi      # 0xb07f
callq 0x2220
leaq 0x7f42(%rip), %rsi      # 0xb0ac
jmp 0x3b38
leaq 0x1a8(%rsp), %rax
movq %rax, 0x198(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0x198(%rsp), %rdi
callq 0x42a0
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x7eb1(%rip), %rsi      # 0xb063
leaq 0x7eac(%rip), %rdx      # 0xb065
callq 0x2692
leaq 0x40(%rsp), %r15
movq %r15, %rdi
leaq 0x198(%rsp), %rsi
movq %rbx, %rdx
callq 0x2728
movq 0x10(%rsp), %rax
movaps 0x40(%rsp), %xmm0
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
movaps %xmm1, 0x80(%rsp)
movq %rax, 0x90(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x4236
movq %r15, %rdi
callq 0x4236
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3244
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
je 0x3269
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x21e0
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
subq %rsi, %rax
cmpq $0x60, %rax
jne 0x345b
addq $0x20, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x2110
movq (%rsp), %rsi
addq $0x40, %rsi
leaq 0xd8(%rsp), %rdi
callq 0x2110
leaq 0xa0(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x4c6c
jmp 0x3b47
leaq 0x188(%rsp), %rax
movq %rax, 0x178(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0x178(%rsp), %rdi
callq 0x42a0
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x8257(%rip), %rsi      # 0xb559
leaq 0x8251(%rip), %rdx      # 0xb55a
callq 0x2692
leaq 0x40(%rsp), %r15
movq %r15, %rdi
leaq 0x178(%rsp), %rsi
movq %rbx, %rdx
callq 0x2728
movq 0x10(%rsp), %rax
movaps 0x40(%rsp), %xmm0
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
movaps %xmm1, 0x80(%rsp)
movq %rax, 0x90(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x4236
movq %r15, %rdi
callq 0x4236
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3394
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x33b9
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x21e0
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
subq %rsi, %rax
cmpq $0x40, %rax
jne 0x36cc
addq $0x20, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x2110
leaq 0xa0(%rsp), %rdi
callq 0x4e7a
jmp 0x3b47
movl $0x18, %edx
movq 0xcbd2(%rip), %rdi      # 0xffd0
leaq 0x7c61(%rip), %rsi      # 0xb066
callq 0x2220
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xcbb5(%rip), %rdi      # 0xffd0
callq 0x2220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movl $0x41, %ebx
movq %rax, %rdi
callq 0x2140
leaq 0x7cb2(%rip), %rsi      # 0xb108
jmp 0x3b38
movl $0x18, %edx
movq 0xcb69(%rip), %rdi      # 0xffd0
leaq 0x7bf8(%rip), %rsi      # 0xb066
callq 0x2220
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xcb4c(%rip), %rdi      # 0xffd0
callq 0x2220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movl $0x24, %ebx
movq %rax, %rdi
callq 0x2140
leaq 0x7d31(%rip), %rsi      # 0xb1f0
jmp 0x3b38
movl $0x18, %edx
movq 0xcb00(%rip), %rdi      # 0xffd0
leaq 0x7b8f(%rip), %rsi      # 0xb066
callq 0x2220
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xcae3(%rip), %rdi      # 0xffd0
callq 0x2220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movl $0x3f, %ebx
movq %rax, %rdi
callq 0x2140
leaq 0x7c22(%rip), %rsi      # 0xb14a
jmp 0x3b38
leaq 0x168(%rsp), %rax
movq %rax, 0x158(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0x42a0
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x7fe9(%rip), %rsi      # 0xb559
leaq 0x7fe3(%rip), %rdx      # 0xb55a
callq 0x2692
leaq 0x40(%rsp), %r15
movq %r15, %rdi
leaq 0x158(%rsp), %rsi
movq %rbx, %rdx
callq 0x2728
movq 0x10(%rsp), %rax
movaps 0x40(%rsp), %xmm0
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
movaps %xmm1, 0x80(%rsp)
movq %rax, 0x90(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x4236
movq %r15, %rdi
callq 0x4236
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3602
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x3627
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x21e0
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
movq %rax, %rcx
subq %rsi, %rcx
movq %rcx, %rdx
sarq $0x5, %rdx
addq $-0x5, %rdx
cmpq $-0x3, %rdx
ja 0x3885
movl $0x18, %edx
movq 0xc979(%rip), %rdi      # 0xffd0
leaq 0x7a08(%rip), %rsi      # 0xb066
callq 0x2220
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xc95c(%rip), %rdi      # 0xffd0
callq 0x2220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movl $0x25, %ebx
movl $0x21, %edx
movq 0xc91c(%rip), %rdi      # 0xffd0
leaq 0x7b86(%rip), %rsi      # 0xb241
callq 0x2220
leaq 0x7b9c(%rip), %rsi      # 0xb263
jmp 0x3b38
movl $0x18, %edx
movq 0xc8f8(%rip), %rdi      # 0xffd0
leaq 0x7987(%rip), %rsi      # 0xb066
callq 0x2220
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xc8db(%rip), %rdi      # 0xffd0
callq 0x2220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movl $0x24, %ebx
movq %rax, %rdi
callq 0x2140
leaq 0x7aea(%rip), %rsi      # 0xb21a
jmp 0x3b38
leaq 0x148(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0x42a0
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x7de1(%rip), %rsi      # 0xb559
leaq 0x7ddb(%rip), %rdx      # 0xb55a
callq 0x2692
leaq 0x40(%rsp), %r15
movq %r15, %rdi
leaq 0x138(%rsp), %rsi
movq %rbx, %rdx
callq 0x2728
movq 0x10(%rsp), %rax
movaps 0x40(%rsp), %xmm0
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
movaps %xmm1, 0x80(%rsp)
movq %rax, 0x90(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x4236
movq %r15, %rdi
callq 0x4236
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x380a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x382f
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x21e0
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
subq %rsi, %rax
cmpq $0x60, %rax
jne 0x3a6e
addq $0x20, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x2110
movq (%rsp), %rsi
addq $0x40, %rsi
leaq 0x238(%rsp), %rdi
callq 0x2110
leaq 0xa0(%rsp), %rdi
leaq 0x238(%rsp), %rsi
callq 0x5492
jmp 0x3b47
cmpq $0x60, %rcx
jne 0x38cf
addq $0x20, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x2110
movq (%rsp), %rsi
addq $0x40, %rsi
leaq 0xd8(%rsp), %rdi
callq 0x2110
leaq 0xa0(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x4f49
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
subq %rsi, %rax
cmpq $0x80, %rax
jne 0x3b47
addq $0x20, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x2110
movq (%rsp), %rsi
addq $0x40, %rsi
leaq 0x278(%rsp), %rdi
callq 0x2110
movq (%rsp), %rsi
addq $0x60, %rsi
leaq 0x258(%rsp), %rdi
callq 0x2110
leaq 0xa0(%rsp), %rdi
leaq 0x278(%rsp), %rsi
leaq 0x258(%rsp), %rdx
callq 0x5157
jmp 0x3b47
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0x118(%rsp), %rdi
callq 0x42a0
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x7bdb(%rip), %rsi      # 0xb559
leaq 0x7bd5(%rip), %rdx      # 0xb55a
callq 0x2692
leaq 0x40(%rsp), %r15
movq %r15, %rdi
leaq 0x118(%rsp), %rsi
movq %rbx, %rdx
callq 0x2728
movq 0x10(%rsp), %rax
movaps 0x40(%rsp), %xmm0
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
movaps %xmm1, 0x80(%rsp)
movq %rax, 0x90(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x4236
movq %r15, %rdi
callq 0x4236
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3a10
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x3a35
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x21e0
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
subq %rsi, %rax
cmpq $0x40, %rax
jne 0x3ad4
addq $0x20, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x2110
leaq 0xa0(%rsp), %rdi
callq 0x563e
jmp 0x3b47
movl $0x18, %edx
movq 0xc556(%rip), %rdi      # 0xffd0
leaq 0x75e5(%rip), %rsi      # 0xb066
callq 0x2220
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xc539(%rip), %rdi      # 0xffd0
callq 0x2220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movl $0x20, %ebx
movq %rax, %rdi
callq 0x2140
leaq 0x77b9(%rip), %rsi      # 0xb28b
jmp 0x3b38
movl $0x18, %edx
movq 0xc4f0(%rip), %rdi      # 0xffd0
leaq 0x757f(%rip), %rsi      # 0xb066
callq 0x2220
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xc4d3(%rip), %rdi      # 0xffd0
callq 0x2220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movl $0x1e, %ebx
movq %rax, %rdi
callq 0x2140
leaq 0x7776(%rip), %rsi      # 0xb2ae
movq 0xc491(%rip), %rdi      # 0xffd0
movq %rbx, %rdx
callq 0x2220
movq %r12, %r13
movq %r12, %rdi
movq 0xc464(%rip), %rsi      # 0xffb8
callq 0x2170
leaq 0x358(%rsp), %rdi
callq 0x20c0
movq %r14, %rbx
leaq 0x460(%rsp), %r14
jmp 0x2933
leaq 0x7750(%rip), %rdi      # 0xb2cd
callq 0x2120
jmp 0x3d84
leaq 0x773f(%rip), %rdi      # 0xb2cd
callq 0x2250
jmp 0x3d84
movq %rax, %r13
cmpl $0x0, (%rbx)
jne 0x3ba3
movl %r15d, (%rbx)
cmpl $0x1, %edx
jne 0x4068
movq %r13, %rdi
callq 0x20e0
movl $0x18, %edx
movq 0xc410(%rip), %rdi      # 0xffd0
leaq 0x749f(%rip), %rsi      # 0xb066
callq 0x2220
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0xc3f3(%rip), %rdi      # 0xffd0
callq 0x2220
movq %rax, %rdi
callq 0x20f0
movl $0x27, %edx
movq 0xc3da(%rip), %rdi      # 0xffd0
leaq 0x74dd(%rip), %rsi      # 0xb0da
callq 0x2220
callq 0x22b0
jmp 0x3b47
leaq 0xc0(%rsp), %rdi
callq 0x4236
movq %rsp, %rdi
callq 0x4236
movq 0x238(%rsp), %rdi
leaq 0x248(%rsp), %rax
cmpq %rax, %rdi
je 0x3c46
movq 0x248(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x258(%rsp), %rdi
leaq 0x268(%rsp), %rax
cmpq %rax, %rdi
je 0x3c6b
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x278(%rsp), %rdi
leaq 0x288(%rsp), %rax
cmpq %rax, %rdi
je 0x3c90
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x3cb5
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x3cda
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x298(%rsp), %rdi
leaq 0x2a8(%rsp), %rax
cmpq %rax, %rdi
je 0x3cff
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x3d24
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x2b8(%rsp), %rdi
leaq 0x2c8(%rsp), %rax
cmpq %rax, %rdi
je 0x3d49
movq 0x2c8(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x3d65
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21e0
leaq 0x460(%rsp), %rdi
callq 0x2090
addq $0x668, %rsp            # imm = 0x668
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4065
movq %rax, %r13
callq 0x22b0
jmp 0x4068
movq %rax, %rdi
callq 0x4294
jmp 0x4065
movq %rax, %r13
jmp 0x3dc7
movq %rax, %r13
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3dc7
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x4068
movq 0x128(%rsp), %rsi
jmp 0x4052
movq %rax, %r13
jmp 0x3e16
jmp 0x4065
movq %rax, %r13
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3e16
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x4068
movq 0x148(%rsp), %rsi
jmp 0x4052
movq %rax, %r13
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3e60
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x3e60
movq %rax, %r13
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x4068
movq 0x168(%rsp), %rsi
jmp 0x4052
jmp 0x4065
movq %rax, %r13
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3eaf
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x3eaf
movq %rax, %r13
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x4068
movq 0x188(%rsp), %rsi
jmp 0x4052
jmp 0x4065
movq %rax, %r13
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3f4d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x3f4d
movq %rax, %r13
jmp 0x3f24
jmp 0x4065
movq %rax, %r13
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3f24
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
je 0x4068
movq 0x1a8(%rsp), %rsi
jmp 0x4052
movq %rax, %r13
movq 0x1d8(%rsp), %rdi
leaq 0x1e8(%rsp), %rax
cmpq %rax, %rdi
je 0x4068
movq 0x1e8(%rsp), %rsi
jmp 0x4052
jmp 0x4065
jmp 0x4065
movq %rax, %r13
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3fa1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x3fa1
movq %rax, %r13
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0x4068
movq 0x208(%rsp), %rsi
jmp 0x4052
jmp 0x4065
movq %rax, %r13
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3ff0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x3ff0
movq %rax, %r13
movq 0x218(%rsp), %rdi
leaq 0x228(%rsp), %rax
cmpq %rax, %rdi
je 0x4068
movq 0x228(%rsp), %rsi
jmp 0x4052
jmp 0x4065
movq %rax, %r13
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4035
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x4035
movq %rax, %r13
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x4068
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x4068
jmp 0x4060
jmp 0x4065
movq %rax, %r13
jmp 0x4089
movq %rax, %r13
movq 0xbf49(%rip), %rsi      # 0xffb8
leaq 0x2d8(%rsp), %rdi
callq 0x2170
leaq 0x358(%rsp), %rdi
callq 0x20c0
leaq 0xc0(%rsp), %rdi
callq 0x4236
movq %rsp, %rdi
callq 0x4236
movq 0x238(%rsp), %rdi
leaq 0x248(%rsp), %rax
cmpq %rax, %rdi
je 0x40c3
movq 0x248(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x258(%rsp), %rdi
leaq 0x268(%rsp), %rax
cmpq %rax, %rdi
je 0x40e8
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x278(%rsp), %rdi
leaq 0x288(%rsp), %rax
cmpq %rax, %rdi
je 0x410d
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x4132
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x4157
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x298(%rsp), %rdi
leaq 0x2a8(%rsp), %rax
cmpq %rax, %rdi
je 0x417c
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x41a1
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x2b8(%rsp), %rdi
leaq 0x2c8(%rsp), %rax
cmpq %rax, %rdi
je 0x41c6
movq 0x2c8(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x41e2
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21e0
leaq 0x460(%rsp), %rdi
callq 0x2090
movq %r13, %rdi
callq 0x22e0
nop