// File: /workspace/github_cpp_makefile_star2_O3/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 0xde1c
testb %al, %al
je 0xe161
movq %r15, %rdi
callq 0x12cdc
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 0xe13f
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 0xe0fe
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 0x8a4a
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0xe0f5
callq 0x3270
incl %r15d
cmpl -0x2c(%rbp), %r15d
jl 0xe0c1
movq -0x48(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xe6f4
movq %r13, %rdi
callq 0x84ba
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
movl -0x3c(%rbp), %r15d
je 0xe132
callq 0x3270
incl %r15d
cmpl -0x30(%rbp), %r15d
jl 0xe02a
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 0x6289(%rip), %rdi      # 0x143f1
leaq 0x6296(%rip), %rsi      # 0x14405
leaq 0x62f7(%rip), %rcx      # 0x1446d
movl $0x1e, %edx
callq 0x31a0
movq %rax, %r14
jmp 0xe1bc
movq %rax, %r14
jmp 0xe1b0
movq %rax, %r14
jmp 0xe1a0
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0xe1a0
callq 0x3270
movq -0x38(%rbp), %r15
leaq -0xc8(%rbp), %rdi
callq 0xe72c
leaq -0x2d0(%rbp), %rdi
callq 0x3090
movq %r15, %rdi
callq 0x7a3c
movq %r14, %rdi
callq 0x3480