// File: /workspace/github_cpp_makefile_star2_O1/zimpha[P]MiniSQL/global.cc
// Function: Table::write()
void Table::write() {
    std::ofstream fout((name).c_str());
    fout << name << std::endl;
    fout << entrySize << std::endl;
    fout << attributes.size() << std::endl;
    fout << blockCount << std::endl;
    for (size_t i = 0; i < attributes.size(); ++ i) {
        fout << attributes[i].name << std::endl;
        fout << attributes[i].type << std::endl;
        fout << attributes[i].length << std::endl;
        fout << attributes[i].unique << std::endl;
        fout << attributes[i].indices.size() << std::endl;
        std::set<std::string> &indices = attributes[i].indices;
        for (auto &x : indices) {
            fout << x << std::endl;
        }
        fout << std::endl;
    }
    fout.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
leaq -0x230(%rbp), %r14
movq %r14, %rdi
movl $0x10, %edx
callq 0x32e0
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %r14, %rdi
callq 0x3310
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movl (%rbx), %esi
leaq -0x230(%rbp), %rdi
callq 0x3470
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movq 0x30(%rbx), %rsi
subq 0x28(%rbx), %rsi
sarq $0x5, %rsi
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
leaq -0x230(%rbp), %rdi
callq 0x31b0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movl 0x40(%rbx), %esi
leaq -0x230(%rbp), %r14
movq %r14, %rdi
callq 0x3470
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movq 0x28(%rbx), %rax
cmpq %rax, 0x30(%rbx)
je 0x12ff6
xorl %r13d, %r13d
movq %rbx, -0x30(%rbp)
leaq (,%r13,2), %r12
addq %r13, %r12
shlq $0x5, %r12
movq (%rax,%r12), %rsi
movq 0x8(%rax,%r12), %rdx
movq %r14, %rdi
callq 0x3310
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movq 0x28(%rbx), %rax
movl 0x20(%rax,%r12), %esi
movq %r14, %rdi
callq 0x3470
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movq 0x28(%rbx), %rax
movl 0x24(%rax,%r12), %esi
movq %r14, %rdi
callq 0x3470
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movq 0x28(%rbx), %rax
movzbl 0x28(%rax,%r12), %esi
movq %r14, %rdi
callq 0x3450
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movq 0x28(%rbx), %rax
movq 0x58(%rax,%r12), %rsi
movq %r14, %rdi
callq 0x31b0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movq 0x28(%rbx), %rax
leaq (%rax,%r12), %rbx
addq $0x38, %rbx
movq 0x10(%rbx), %r15
cmpq %rbx, %r15
je 0x12f9e
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
movq %r14, %rdi
callq 0x3310
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
movq %r15, %rdi
callq 0x3320
movq %rax, %r15
cmpq %rbx, %rax
jne 0x12f54
movq -0x230(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31c0
incq %r13
movq -0x30(%rbp), %rbx
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
cmpq %rcx, %r13
jb 0x12e08
leaq -0x230(%rbp), %rdi
callq 0x33a0
movq 0x7fb7(%rip), %rax      # 0x1afc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x228(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x230(%rbp,%rcx)
callq 0x3220
leaq -0x138(%rbp), %rdi
callq 0x30d0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x13050
jmp 0x13050
jmp 0x13050
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x33c0
movq %rbx, %rdi
callq 0x3480
nop