// File: /workspace/github_cpp_makefile_star2_O2/zimpha[P]MiniSQL/API.cc
// Function: API::Select(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Filter const&)
Response API::Select(const std::string &tableName, const Filter &filter) {
    if (!cm.hasTable(tableName + ".table")) {
        return Response("Table does not exist");
    }
    
    Table nt = cm.loadTable(tableName + ".table");
    std::string dbName = tableName + ".db";
    for (size_t i = 0; i < filter.rules.size(); ++ i) {
        element val = filter.rules[i].val;
        int attrIndex = filter.rules[i].index;
        if (nt.attributes[attrIndex].type != val.type) {
            return Response("Type mismatch");
        }
    }
    
    for (size_t i = 0; i < filter.rules.size(); ++ i) {
        if (filter.rules[i].type == 2) { // =
            element val = filter.rules[i].val;
            int attrIndex = filter.rules[i].index;
            if (!nt.attributes[attrIndex].indices.empty()) { // has index on it
                std::string indexFileName = tableName + "." + nt.attributes[attrIndex].name;
                long offset = getOffset(indexFileName, val);
                // offset == -1 表示没有这个val
                // Record Manager return select result by using index
                // 传入数据库文件名（dbName），偏移量(offset)，过滤器(filter)，当前表(nt)，返回select结果(类型vector<vector<element>>)
                return Response(rm.RecordManagerRecordSelect(dbName, offset, filter, nt));
            }
        }
    }

    // SelectWithoutIndex is just an exceptional case of SelectWithIndex
    /*
    if (filter.rules.empty()) {
        // Record Manager return select result without index
        // 传入数据库文件名（dbName），过滤器(filter)，当前表(nt)，返回select结果(类型vector<vector<element>>)
        return Response(rm.rmSelectWithoutIndex(dbName, filter, nt));
    }
    */

    std::set<long> offset;
    // Record Manager get offset according to dbName
    // 传入数据库文件名(daName)，返回一个offset的集合(类型set)
    offset = rm.RecordManagerGetAllOffsets(dbName, nt);
    for (size_t i = 0; i < filter.rules.size(); ++ i) {
        Rule rule = filter.rules[i];
        int attrIndex = rule.index;
        if (nt.attributes[attrIndex].indices.empty()) {
            continue;
        }
        element val = rule.val;
        std::string indexFileName = tableName + "." + nt.attributes[attrIndex].name;
        std::set<long> newOffset;
        long tmpOffset;
        // B plus tree get offset according to filter rules
        // 传入文件名(indexFileName)，属性的值(val)
        switch (rule.type) {
            case 0: // <
                newOffset = getLessOffset(indexFileName, val);
                break;
            case 1: // <=
                newOffset = getLessOffset(indexFileName, val);
                tmpOffset = getOffset(indexFileName, val);
                if (tmpOffset != -1) {
                    newOffset.insert(tmpOffset);
                }
                break;
            case 2: // =
                assert(false);
                break;
            case 3: // >=
                newOffset = getMoreOffset(indexFileName, val);
                tmpOffset = getOffset(indexFileName, val);
                if (tmpOffset != -1) {
                    newOffset.insert(tmpOffset);
                }
                break;
            case 4: // >
                newOffset = getMoreOffset(indexFileName, val);
                break;
            case 5: // <>
                newOffset = offset;
                break;
            default: 
                assert(false);
                break;
        }
        std::vector<long> tmp(offset.size());
        std::vector<long>::iterator end = std::set_intersection(offset.begin(), offset.end(), newOffset.begin(), newOffset.end(), tmp.begin());
        offset.clear();
        for (std::vector<long>::iterator it = tmp.begin(); it != end; ++ it) {
            offset.insert(*it);
        }
    }
    
    std::vector<std::vector<element> > res;
    for (auto x : offset) {
        std::vector<std::vector<element> > tmp;
        // Record Manager return select result by using index
        // 传入数据库文件名（dbName），偏移量(x)，过滤器(filter)，当前表(nt)，返回select结果(类型Response)
        tmp = rm.RecordManagerRecordSelect(dbName, x, filter, nt);
        for (size_t i = 0; i < tmp.size(); ++ i) {
            res.push_back(tmp[i]);
        }
    }
    return Response(res);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4d8, %rsp            # imm = 0x4D8
movq %rcx, %r14
movq %rdx, %rax
movq %rsi, %r15
movq %rdi, %r13
leaq 0xcdb0(%rip), %rdx      # 0x11051
leaq -0x1a8(%rbp), %rbx
movq %rbx, %rdi
movq %rax, -0x50(%rbp)
movq %rax, %rsi
callq 0x5d7d
movq %r15, -0x30(%rbp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0xb838
movl %eax, %ebx
leaq -0x1a8(%rbp), %rdi
callq 0x34f8
testb %bl, %bl
je 0x43a1
leaq 0xcd6e(%rip), %rdx      # 0x11051
leaq -0xd0(%rbp), %rbx
movq %rbx, %rdi
movq -0x50(%rbp), %r15
movq %r15, %rsi
callq 0x5d7d
leaq -0x1a8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rbx, %rdx
callq 0xb966
movq %r14, -0x40(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x34f8
leaq 0xcd9b(%rip), %rdx      # 0x110be
leaq -0x1f8(%rbp), %rdi
movq %r15, %rsi
callq 0x5d7d
pushq $0x8
popq %r14
leaq -0xc8(%rbp), %r15
xorl %r12d, %r12d
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq %rcx, %rax
subq %rsi, %rax
cqto
pushq $0x38
popq %rdi
idivq %rdi
cmpq %rax, %r12
jae 0x43db
addq %r14, %rsi
movq %rbx, %rdi
callq 0x5e98
movq -0x40(%rbp), %rax
movq (%rax), %rax
movslq -0x8(%rax,%r14), %rax
movq -0x180(%rbp), %rcx
imulq $0x60, %rax, %rax
movl 0x20(%rcx,%rax), %eax
cmpl -0xa8(%rbp), %eax
jne 0x4459
movq %r15, %rdi
callq 0x34f8
incq %r12
addq $0x38, %r14
jmp 0x4340
leaq 0xccb0(%rip), %rsi      # 0x11058
leaq -0x2c8(%rbp), %rdi
leaq -0x1a8(%rbp), %rdx
callq 0x30e0
leaq -0x2c8(%rbp), %rsi
movq %r13, %rdi
callq 0xfde4
leaq -0x2c8(%rbp), %rdi
callq 0x34f8
jmp 0x4bdc
movq %r13, -0x108(%rbp)
pushq $0x8
popq %r14
xorl %r13d, %r13d
leaq -0xd0(%rbp), %rbx
movq -0x40(%rbp), %r15
movq %rcx, %rax
subq %rsi, %rax
cqto
pushq $0x38
popq %rdi
idivq %rdi
cmpq %rax, %r13
jae 0x4496
cmpl $0x2, -0x4(%rsi,%r14)
jne 0x4450
addq %r14, %rsi
movq %rbx, %rdi
callq 0x5e98
movq (%r15), %rax
movslq -0x8(%rax,%r14), %rax
movq -0x180(%rbp), %rcx
imulq $0x60, %rax, %r12
cmpq $0x0, 0x58(%rcx,%r12)
jne 0x4aa7
leaq -0xc8(%rbp), %rdi
callq 0x34f8
movq (%r15), %rsi
movq 0x8(%r15), %rcx
incq %r13
addq $0x38, %r14
jmp 0x43f4
leaq 0xcd11(%rip), %rsi      # 0x11171
leaq -0x2a8(%rbp), %rdi
leaq -0x138(%rbp), %rdx
callq 0x30e0
leaq -0x2a8(%rbp), %rsi
movq %r13, %rdi
callq 0xfde4
leaq -0x2a8(%rbp), %rdi
callq 0x34f8
movq %r15, %rdi
jmp 0x4bbf
leaq -0x130(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq -0x248(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x3380
movq -0x30(%rbp), %r14
leaq 0x30(%r14), %rsi
leaq -0xd0(%rbp), %rdi
leaq -0x248(%rbp), %rdx
leaq -0x1a8(%rbp), %rcx
movq %rsi, -0x160(%rbp)
callq 0xf604
leaq -0x138(%rbp), %rbx
leaq -0xd0(%rbp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x68e4
movq %r15, %rdi
callq 0x69f0
leaq -0x248(%rbp), %rdi
callq 0x34f8
addq $0x40, %r14
movq %r14, -0x30(%rbp)
xorl %edi, %edi
leaq -0x498(%rbp), %r14
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rax
subq %rsi, %rax
cqto
pushq $0x38
popq %rcx
idivq %rcx
cmpq %rax, %rdi
jae 0x495c
movq %rdi, -0x58(%rbp)
imulq $0x38, %rdi, %rax
addq %rax, %rsi
leaq -0xd0(%rbp), %rdi
callq 0x5ef0
movslq -0xd0(%rbp), %rax
movq -0x180(%rbp), %rcx
imulq $0x60, %rax, %r13
cmpq $0x0, 0x58(%rcx,%r13)
je 0x4944
leaq -0x90(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x5e98
leaq -0x100(%rbp), %r15
movq %r15, %rdi
movq -0x50(%rbp), %rsi
leaq 0xccfe(%rip), %rdx      # 0x112a6
callq 0x5d7d
addq -0x180(%rbp), %r13
leaq -0x158(%rbp), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x5dd8
movq %r15, %rdi
callq 0x34f8
andl $0x0, -0xf8(%rbp)
andq $0x0, -0xf0(%rbp)
leaq -0xf8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq %rax, -0xe0(%rbp)
andq $0x0, -0xd8(%rbp)
movl -0xcc(%rbp), %eax
cmpq $0x5, %rax
ja 0x4c10
leaq 0xca0f(%rip), %rcx      # 0x11020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x388(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x3380
leaq -0x4f8(%rbp), %r13
movq %r13, %rdi
leaq -0x90(%rbp), %rsi
callq 0x5e98
leaq -0x1d8(%rbp), %r15
movq %r15, %rdi
movq -0x30(%rbp), %rsi
leaq -0x388(%rbp), %r12
movq %r12, %rdx
movq %r13, %rcx
callq 0x9ecc
leaq -0x100(%rbp), %rdi
movq %r15, %rsi
callq 0x68e4
movq %r15, %rdi
callq 0x69f0
leaq -0x4f0(%rbp), %rdi
jmp 0x46fe
leaq -0x100(%rbp), %rdi
movq %rbx, %rsi
callq 0x6a08
jmp 0x48ad
leaq -0x308(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x3380
leaq -0x3e8(%rbp), %r13
movq %r13, %rdi
leaq -0x90(%rbp), %rsi
callq 0x5e98
leaq -0x1d8(%rbp), %r15
movq %r15, %rdi
movq -0x30(%rbp), %rsi
leaq -0x308(%rbp), %r12
movq %r12, %rdx
movq %r13, %rcx
callq 0x9dc6
leaq -0x100(%rbp), %rdi
movq %r15, %rsi
callq 0x68e4
movq %r15, %rdi
callq 0x69f0
leaq -0x3e0(%rbp), %rdi
callq 0x34f8
movq %r12, %rdi
callq 0x34f8
jmp 0x48ad
leaq -0x348(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x3380
leaq -0x448(%rbp), %r13
movq %r13, %rdi
leaq -0x90(%rbp), %rsi
callq 0x5e98
leaq -0x1d8(%rbp), %r15
movq %r15, %rdi
movq -0x30(%rbp), %rsi
leaq -0x348(%rbp), %r12
movq %r12, %rdx
movq %r13, %rcx
callq 0x9dc6
leaq -0x100(%rbp), %rdi
movq %r15, %rsi
callq 0x68e4
movq %r15, %rdi
callq 0x69f0
leaq -0x440(%rbp), %rdi
callq 0x34f8
movq %r12, %rdi
callq 0x34f8
leaq -0x328(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x3380
leaq -0x418(%rbp), %r12
movq %r12, %rdi
leaq -0x90(%rbp), %rsi
callq 0x5e98
movq -0x30(%rbp), %rdi
leaq -0x328(%rbp), %r15
movq %r15, %rsi
movq %r12, %rdx
callq 0x9d16
movq %rax, -0x48(%rbp)
leaq -0x410(%rbp), %rdi
jmp 0x4889
leaq -0x368(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x3380
leaq -0x4c8(%rbp), %r13
movq %r13, %rdi
leaq -0x90(%rbp), %rsi
callq 0x5e98
leaq -0x1d8(%rbp), %r15
movq %r15, %rdi
movq -0x30(%rbp), %rsi
leaq -0x368(%rbp), %r12
movq %r12, %rdx
movq %r13, %rcx
callq 0x9ecc
leaq -0x100(%rbp), %rdi
movq %r15, %rsi
callq 0x68e4
movq %r15, %rdi
callq 0x69f0
leaq -0x4c0(%rbp), %rdi
callq 0x34f8
movq %r12, %rdi
callq 0x34f8
movq %r14, %rdi
leaq -0x158(%rbp), %rsi
callq 0x3380
leaq -0x478(%rbp), %r12
movq %r12, %rdi
leaq -0x90(%rbp), %rsi
callq 0x5e98
movq -0x30(%rbp), %rdi
movq %r14, %r15
movq %r14, %rsi
movq %r12, %rdx
callq 0x9d16
movq %rax, -0x48(%rbp)
leaq -0x470(%rbp), %rdi
callq 0x34f8
movq %r15, %rdi
callq 0x34f8
cmpq $-0x1, -0x48(%rbp)
je 0x48ad
leaq -0x100(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x72f8
movq -0x110(%rbp), %rsi
leaq -0x1d8(%rbp), %rdi
leaq -0x31(%rbp), %rdx
callq 0x5f08
movq -0x120(%rbp), %rdi
movq -0xe8(%rbp), %rdx
movq -0x1d8(%rbp), %r8
leaq -0x130(%rbp), %rsi
leaq -0xf8(%rbp), %rcx
callq 0x7525
movq %rax, %r13
movq %rbx, %rdi
callq 0x693a
movq -0x1d8(%rbp), %r12
cmpq %r13, %r12
je 0x4914
movq %rbx, %rdi
movq %r12, %rsi
callq 0x72f8
addq $0x8, %r12
jmp 0x48fe
leaq -0x1d8(%rbp), %rdi
callq 0x7452
leaq -0x100(%rbp), %rdi
callq 0x69f0
leaq -0x158(%rbp), %rdi
callq 0x34f8
leaq -0x88(%rbp), %rdi
callq 0x34f8
leaq -0xc0(%rbp), %rdi
callq 0x34f8
movq -0x58(%rbp), %rdi
incq %rdi
jmp 0x452c
xorps %xmm0, %xmm0
leaq -0xd0(%rbp), %rbx
andq $0x0, 0x10(%rbx)
movaps %xmm0, (%rbx)
movq -0x120(%rbp), %rcx
leaq -0x2e8(%rbp), %r12
pushq $0x18
popq %r15
leaq -0x130(%rbp), %rax
cmpq %rax, %rcx
je 0x4a55
movq %rcx, -0x58(%rbp)
movq 0x20(%rcx), %r14
xorps %xmm0, %xmm0
movaps %xmm0, -0x90(%rbp)
andq $0x0, -0x80(%rbp)
movq %r12, %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x3380
leaq -0x100(%rbp), %r13
movq %r13, %rdi
movq -0x160(%rbp), %rsi
movq %r12, %rdx
movq %r14, %rcx
movq -0x40(%rbp), %r8
leaq -0x1a8(%rbp), %r9
callq 0xf3ac
leaq -0x90(%rbp), %rdi
movq %r13, %rsi
callq 0x75a8
movq %r13, %rdi
callq 0x5ec4
movq %r12, %rdi
callq 0x34f8
xorl %r14d, %r14d
xorl %r12d, %r12d
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rax
subq %rsi, %rax
cqto
idivq %r15
cmpq %rax, %r12
jae 0x4a31
addq %r14, %rsi
movq %rbx, %rdi
callq 0x5f5a
incq %r12
addq $0x18, %r14
jmp 0x4a02
leaq -0x90(%rbp), %rdi
callq 0x5ec4
movq -0x58(%rbp), %rdi
callq 0x32f0
movq %rax, %rcx
leaq -0x2e8(%rbp), %r12
jmp 0x4980
leaq -0x210(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x5f96
leaq -0x210(%rbp), %rsi
movq -0x108(%rbp), %r13
movq %r13, %rdi
callq 0xfe0c
leaq -0x210(%rbp), %rdi
callq 0x5ec4
leaq -0xd0(%rbp), %rdi
callq 0x5ec4
leaq -0x138(%rbp), %rdi
callq 0x69f0
jmp 0x4bc4
leaq 0xc7f8(%rip), %rdx      # 0x112a6
leaq -0x90(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x5d7d
addq -0x180(%rbp), %r12
leaq -0x138(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movq %r12, %rdx
callq 0x5dd8
movq -0x108(%rbp), %r13
movq -0x30(%rbp), %r14
leaq -0x90(%rbp), %rdi
callq 0x34f8
leaq -0x288(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x3380
leaq -0x3b8(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x5e98
leaq 0x40(%r14), %rdi
leaq -0x288(%rbp), %rsi
leaq -0x3b8(%rbp), %rdx
callq 0x9d16
movq %rax, %rbx
leaq -0x3b0(%rbp), %rdi
callq 0x34f8
leaq -0x288(%rbp), %rdi
callq 0x34f8
leaq -0x268(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x3380
addq $0x30, %r14
leaq -0x228(%rbp), %rdi
leaq -0x268(%rbp), %rdx
leaq -0x1a8(%rbp), %r9
movq %r14, %rsi
movq %rbx, %rcx
movq -0x40(%rbp), %r8
callq 0xf3ac
leaq -0x228(%rbp), %rsi
movq %r13, %rdi
callq 0xfe0c
leaq -0x228(%rbp), %rdi
callq 0x5ec4
leaq -0x268(%rbp), %rdi
callq 0x34f8
leaq -0x138(%rbp), %rdi
callq 0x34f8
leaq -0xc8(%rbp), %rdi
callq 0x34f8
leaq -0x1f8(%rbp), %rdi
callq 0x34f8
leaq -0x1a8(%rbp), %rdi
callq 0x5e26
movq %r13, %rax
addq $0x4d8, %rsp            # imm = 0x4D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc587(%rip), %rdi      # 0x1117f
leaq 0xc50a(%rip), %rsi      # 0x11109
leaq 0xc57f(%rip), %rcx      # 0x11185
movl $0xa5, %edx
callq 0x31a0
leaq 0xc568(%rip), %rdi      # 0x1117f
leaq 0xc4eb(%rip), %rsi      # 0x11109
leaq 0xc560(%rip), %rcx      # 0x11185
movl $0xb5, %edx
callq 0x31a0
movq %rax, %rbx
leaq -0x228(%rbp), %rdi
callq 0x5ec4
jmp 0x4c43
movq %rax, %rbx
leaq -0x268(%rbp), %rdi
jmp 0x4c67
movq %rax, %rbx
leaq -0x3b0(%rbp), %rdi
callq 0x34f8
jmp 0x4c60
movq %rax, %rbx
leaq -0x288(%rbp), %rdi
callq 0x34f8
jmp 0x4c82
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
jmp 0x4c89
movq %rax, %rbx
jmp 0x4c8e
movq %rax, %rbx
leaq -0x138(%rbp), %rdi
callq 0x34f8
leaq -0xc8(%rbp), %rdi
jmp 0x4cd9
movq %rax, %rbx
leaq -0x210(%rbp), %rdi
jmp 0x4e72
movq %rax, %rbx
jmp 0x4e77
movq %rax, %rbx
leaq -0x248(%rbp), %rdi
jmp 0x4e61
jmp 0x4e1d
movq %rax, %rbx
leaq -0x2a8(%rbp), %rdi
callq 0x34f8
jmp 0x4cd6
movq %rax, %rbx
movq %r15, %rdi
callq 0x34f8
jmp 0x4e8f
movq %rax, %rbx
leaq -0x2c8(%rbp), %rdi
jmp 0x4ddf
movq %rax, %rbx
jmp 0x4e9b
movq %rax, %rbx
jmp 0x4ea7
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
jmp 0x4ddf
movq %rax, %rbx
jmp 0x4d3b
movq %rax, %rbx
jmp 0x4d7b
movq %rax, %rbx
leaq -0x4c0(%rbp), %rdi
callq 0x34f8
jmp 0x4d4f
movq %rax, %rbx
leaq -0x440(%rbp), %rdi
callq 0x34f8
leaq -0x348(%rbp), %rdi
jmp 0x4dce
movq %rax, %rbx
jmp 0x4d93
movq %rax, %rbx
leaq -0x368(%rbp), %rdi
jmp 0x4dce
jmp 0x4df2
movq %rax, %rbx
jmp 0x4dad
movq %rax, %rbx
jmp 0x4dc7
jmp 0x4df2
movq %rax, %rbx
leaq -0x3e0(%rbp), %rdi
callq 0x34f8
leaq -0x308(%rbp), %rdi
jmp 0x4dce
movq %rax, %rbx
leaq -0x4f0(%rbp), %rdi
callq 0x34f8
leaq -0x388(%rbp), %rdi
jmp 0x4dce
jmp 0x4df2
movq %rax, %rbx
leaq -0x470(%rbp), %rdi
callq 0x34f8
leaq -0x498(%rbp), %rdi
jmp 0x4dce
jmp 0x4df2
movq %rax, %rbx
leaq -0x410(%rbp), %rdi
callq 0x34f8
leaq -0x328(%rbp), %rdi
callq 0x34f8
jmp 0x4e36
movq %rax, %rbx
leaq -0x1a8(%rbp), %rdi
callq 0x34f8
jmp 0x4ea7
jmp 0x4e22
jmp 0x4df2
movq %rax, %rbx
jmp 0x4e4e
movq %rax, %rbx
jmp 0x4e36
jmp 0x4e27
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
jmp 0x4e49
movq %rax, %rbx
jmp 0x4e5a
jmp 0x4e68
movq %rax, %rbx
leaq -0x2e8(%rbp), %rdi
callq 0x34f8
jmp 0x4e6b
movq %rax, %rbx
jmp 0x4e83
movq %rax, %rbx
jmp 0x4e8f
movq %rax, %rbx
leaq -0x1d8(%rbp), %rdi
callq 0x7452
leaq -0x100(%rbp), %rdi
callq 0x69f0
leaq -0x158(%rbp), %rdi
callq 0x34f8
leaq -0x88(%rbp), %rdi
callq 0x34f8
leaq -0xc0(%rbp), %rdi
callq 0x34f8
jmp 0x4e83
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x5ec4
leaq -0xd0(%rbp), %rdi
callq 0x5ec4
leaq -0x138(%rbp), %rdi
callq 0x69f0
leaq -0x1f8(%rbp), %rdi
callq 0x34f8
leaq -0x1a8(%rbp), %rdi
callq 0x5e26
movq %rbx, %rdi
callq 0x3450
nop