// File: Konano[P]UselessDatabase/Table.cpp
// Function: Table::print()
void Table::print() {
    std::vector<std::pair<std::string, int> > v;
    for (uint i = 0; i < col_num; i++) v.push_back(std::pair<std::string, int>(col_ty[i].name, std::max(col_ty[i].printLen(), (int)strlen(col_ty[i].name))));
    Print::title(v);
    if (sel == 1) {
        for (auto it: data) {
            Print::row(it);
        }
    } else if (sel == 2) {
        Print::row(val);
    } else {
        Pointer p(this);
        while (p.next()) Print::row(p.get());
    }
    Print::end();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq -0x20(%rbp), %rdi
callq 0xc0d0
movl $0x0, -0x24(%rbp)
movq -0x118(%rbp), %rcx
movl -0x24(%rbp), %eax
cmpl 0x54(%rcx), %eax
jae 0x4daed
movq -0x118(%rbp), %rax
movl -0x24(%rbp), %ecx
imulq $0x38, %rcx, %rcx
leaq 0x58(%rax,%rcx), %rdi
leaq 0x5a(%rax,%rcx), %rax
movq %rax, -0x128(%rbp)
callq 0x534e0
movl %eax, -0x11c(%rbp)
jmp 0x4da49
movq -0x118(%rbp), %rax
movl -0x11c(%rbp), %ecx
movl %ecx, -0x54(%rbp)
movl -0x24(%rbp), %ecx
imulq $0x38, %rcx, %rcx
leaq 0x5a(%rax,%rcx), %rdi
callq 0x6250
movl %eax, -0x68(%rbp)
leaq -0x54(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x534a0
movq %rax, -0x130(%rbp)
jmp 0x4da83
movq -0x130(%rbp), %rdx
movq -0x128(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x53580
jmp 0x4da9c
leaq -0x20(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xc0f0
jmp 0x4daab
leaq -0x50(%rbp), %rdi
callq 0xc1a0
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x4da0a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x4dd45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x50(%rbp), %rdi
callq 0xc1a0
jmp 0x4dd45
leaq -0x80(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0xc1c0
jmp 0x4dafc
leaq -0x80(%rbp), %rdi
callq 0x45590
jmp 0x4db07
leaq -0x80(%rbp), %rdi
callq 0xc2b0
movq -0x118(%rbp), %rax
cmpl $0x1, 0x9fb0(%rax)
jne 0x4dc39
movq -0x118(%rbp), %rax
addq $0x9fb8, %rax           # imm = 0x9FB8
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
callq 0xd260
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rdi
callq 0xd290
movq %rax, -0x98(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0xd2c0
testb $0x1, %al
jne 0x4db7a
jmp 0x4dc34
leaq -0x90(%rbp), %rdi
callq 0xd300
movq %rax, %rsi
leaq -0xb0(%rbp), %rdi
callq 0xc400
jmp 0x4db97
leaq -0xc8(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0xc400
jmp 0x4dbac
leaq -0xc8(%rbp), %rdi
callq 0x45a80
jmp 0x4dbba
leaq -0xc8(%rbp), %rdi
callq 0xc430
leaq -0xb0(%rbp), %rdi
callq 0xc430
leaq -0x90(%rbp), %rdi
callq 0xd4e0
jmp 0x4db5e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x80(%rbp), %rdi
callq 0xc2b0
jmp 0x4dd45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x4dc23
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0xc430
leaq -0xb0(%rbp), %rdi
callq 0xc430
jmp 0x4dd45
jmp 0x4dd2c
movq -0x118(%rbp), %rax
cmpl $0x2, 0x9fb0(%rax)
jne 0x4dca1
movq -0x118(%rbp), %rsi
addq $0x9fd0, %rsi           # imm = 0x9FD0
leaq -0xe0(%rbp), %rdi
callq 0xc400
jmp 0x4dc65
leaq -0xe0(%rbp), %rdi
callq 0x45a80
jmp 0x4dc73
leaq -0xe0(%rbp), %rdi
callq 0xc430
jmp 0x4dd2a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0xc430
jmp 0x4dd45
movq -0x118(%rbp), %rsi
leaq -0xf8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x47150
jmp 0x4dcbb
jmp 0x4dcbd
leaq -0xf8(%rbp), %rdi
callq 0x46fe0
movb %al, -0x131(%rbp)
jmp 0x4dcd1
movb -0x131(%rbp), %al
testb $0x1, %al
jne 0x4dcdd
jmp 0x4dd28
leaq -0x110(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x471c0
jmp 0x4dcf2
leaq -0x110(%rbp), %rdi
callq 0x45a80
jmp 0x4dd00
leaq -0x110(%rbp), %rdi
callq 0xc430
jmp 0x4dcbd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x110(%rbp), %rdi
callq 0xc430
jmp 0x4dd45
jmp 0x4dd2a
jmp 0x4dd2c
callq 0x45cd0
jmp 0x4dd33
leaq -0x20(%rbp), %rdi
callq 0xc2b0
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
leaq -0x20(%rbp), %rdi
callq 0xc2b0
movq -0x60(%rbp), %rdi
callq 0x6890
nopw (%rax,%rax)