// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/CatalogManager.cc
// Function: CatalogManager::loadTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Table CatalogManager::loadTable(const std::string &tableName) {
    assert(hasTable(tableName));
    Table nt;
    int attrSum;
    std::ifstream fin((tableName).c_str());
    fin >> nt.name >> nt.entrySize >> attrSum >> nt.blockCount;
    for (int i = 0, n; i < attrSum; ++ i) {
        AttrType attr;
        fin >> attr.name >> attr.type >> attr.length >> attr.unique;
        fin >> n;
        for (int j = 0; j < n; ++ j) {
            std::string index;
            fin >> index;
            attr.indices.insert(index);
        }
        nt.attributes.push_back(attr);
    }
    return nt;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rdx, %rbx
movq %rdi, %r15
movq %rdx, %rsi
callq 0xdd18
testb %al, %al
je 0xe053
movq %r15, %rdi
callq 0x12bac
movq (%rbx), %rsi
leaq -0x2d0(%rbp), %rdi
movl $0x8, %edx
callq 0x34c0
leaq 0x8(%r15), %rsi
leaq -0x2d0(%rbp), %rdi
callq 0x3360
movq %rax, %rdi
movq %r15, %rsi
callq 0x3180
leaq -0x30(%rbp), %rsi
movq %rax, %rdi
callq 0x3180
leaq 0x40(%r15), %rsi
movq %rax, %rdi
callq 0x3180
movq %r15, -0x38(%rbp)
cmpl $0x0, -0x30(%rbp)
jle 0xe031
leaq -0x58(%rbp), %rbx
leaq -0x98(%rbp), %r13
movq -0x38(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x48(%rbp)
leaq -0x2d0(%rbp), %r14
leaq -0x68(%rbp), %r12
xorl %r15d, %r15d
movl %r15d, -0x3c(%rbp)
leaq -0xb8(%rbp), %rax
movq %rax, -0xc8(%rbp)
xorl %ecx, %ecx
movq %rcx, -0xc0(%rbp)
movb $0x0, -0xb8(%rbp)
movl $0x0, -0x90(%rbp)
movq %rcx, -0x88(%rbp)
leaq -0x90(%rbp), %rax
movq %rax, -0x80(%rbp)
movq %rax, -0x78(%rbp)
movq %rcx, -0x70(%rbp)
movq %r14, %rdi
leaq -0xc8(%rbp), %rsi
callq 0x3360
movq %rax, %rdi
leaq -0xa8(%rbp), %rsi
callq 0x3180
movq %rax, %rdi
leaq -0xa4(%rbp), %rsi
callq 0x3180
movq %rax, %rdi
leaq -0xa0(%rbp), %rsi
callq 0x3240
movq %r14, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x3180
cmpl $0x0, -0x2c(%rbp)
jle 0xdff0
xorl %r15d, %r15d
movq %rbx, -0x68(%rbp)
movq $0x0, -0x60(%rbp)
movb $0x0, -0x58(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x3360
movq %r13, %rdi
movq %r12, %rsi
callq 0x88ea
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0xdfe7
callq 0x3270
incl %r15d
cmpl -0x2c(%rbp), %r15d
jl 0xdfb3
movq -0x48(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xe5e0
movq %r13, %rdi
callq 0x8372
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
movl -0x3c(%rbp), %r15d
je 0xe024
callq 0x3270
incl %r15d
cmpl -0x30(%rbp), %r15d
jl 0xdf1c
leaq -0x2d0(%rbp), %rdi
callq 0x3090
movq -0x38(%rbp), %rax
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6397(%rip), %rdi      # 0x143f1
leaq 0x63a4(%rip), %rsi      # 0x14405
leaq 0x6405(%rip), %rcx      # 0x1446d
movl $0x1e, %edx
callq 0x31a0
movq %rax, %r14
jmp 0xe0ae
movq %rax, %r14
jmp 0xe0a2
movq %rax, %r14
jmp 0xe092
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0xe092
callq 0x3270
movq -0x38(%rbp), %r15
leaq -0xc8(%rbp), %rdi
callq 0xe618
leaq -0x2d0(%rbp), %rdi
callq 0x3090
movq %r15, %rdi
callq 0x78f8
movq %r14, %rdi
callq 0x3480