// File: /workspace/github_cpp_makefile_star2_O2/Konano[P]UselessDatabase/Table.cpp
// Function: Table::toJson[abi:cxx11]()
json Table::toJson() { // assemble to JSON
    json j;
    j["name"] = name;
    j["table_id"] = table_id;
    j["col_num"] = col_num;
    for (uint i = 0; i < col_num; i++) j["col_ty"].push_back(col_ty[i].toJson());
    j["record_num"] = record_num;
    j["record_size"] = record_size;
    j["record_onepg"] = record_onepg;
    j["index_num"] = index_num;
    for (uint i = 0; i < index_num; i++) j["index"].push_back(index[i].toJson());
    if (p_key) j["primary"] = p_key->toJson();
    for (auto it: f_key) j["foreign"].push_back(it->toJson());
    j["p_key_index"] = p_key_index;
    for (uint i = 0; i < f_key.size(); i++) j["f_key_index"].push_back(f_key_index[i]);
    return j;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r14
movq %rdi, %rbp
xorl %esi, %esi
callq 0x7c48
leaq 0x18(%r14), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x7c64
leaq 0x1d446(%rip), %rsi     # 0x3802e
movq %rbp, %rdi
callq 0x7c7e
leaq 0xa8(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7da0
movq %rbx, %rdi
callq 0x7de0
leaq 0x50(%r14), %rsi
leaq 0x98(%rsp), %rdi
callq 0x7dfa
leaq 0x1d395(%rip), %rsi     # 0x37fb8
movq %rbp, %rdi
callq 0x7c7e
leaq 0x98(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7da0
movq %rbx, %rdi
callq 0x7de0
leaq 0x54(%r14), %r15
leaq 0x88(%rsp), %rdi
movq %r15, %rsi
callq 0x7dfa
leaq 0x1d360(%rip), %rsi     # 0x37fc1
movq %rbp, 0x8(%rsp)
movq %rbp, %rdi
callq 0x7c7e
leaq 0x88(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7da0
movq %rbx, %rdi
callq 0x7de0
leaq 0x58(%r14), %r12
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbp
movl (%r15), %eax
cmpq %rax, %r13
jae 0x1acd8
movq 0x8(%rsp), %rdi
leaq 0x1d320(%rip), %rsi     # 0x37fc9
callq 0x7c7e
movq %rax, %rbx
movq %rbp, %rdi
movq %r12, %rsi
callq 0x209a8
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x7e2e
movq %rbp, %rdi
callq 0x7de0
incq %r13
addq $0x38, %r12
jmp 0x1ac95
leaq 0x9fa0(%r14), %rsi
leaq 0x78(%rsp), %rdi
callq 0x7dfa
leaq 0x1d2e0(%rip), %rsi     # 0x37fd0
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
callq 0x7c7e
leaq 0x78(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7da0
movq %rbx, %rdi
callq 0x7de0
leaq 0x9fa8(%r14), %rsi
leaq 0x68(%rsp), %rdi
callq 0x7dfa
leaq 0x1cf77(%rip), %rsi     # 0x37ca4
movq %rbp, %rdi
callq 0x7c7e
leaq 0x68(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7da0
movq %rbx, %rdi
callq 0x7de0
leaq 0x9fac(%r14), %rsi
leaq 0x58(%rsp), %rdi
callq 0x7dfa
leaq 0x1d276(%rip), %rsi     # 0x37fdb
movq %rbp, %rdi
callq 0x7c7e
leaq 0x58(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7da0
movq %rbx, %rdi
callq 0x7de0
leaq 0x798(%r14), %r15
leaq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0x7dfa
leaq 0x1d248(%rip), %rsi     # 0x37fe8
movq %rbp, %rdi
callq 0x7c7e
leaq 0x48(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7da0
movq %rbx, %rdi
callq 0x7de0
leaq 0x7a0(%r14), %r12
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbp
movl (%r15), %eax
cmpq %rax, %r13
jae 0x1ae15
movq 0x8(%rsp), %rdi
leaq 0x1d231(%rip), %rsi     # 0x38014
callq 0x7c7e
movq %rax, %rbx
movq %rbp, %rdi
movq %r12, %rsi
callq 0x14e1c
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x7e2e
movq %rbp, %rdi
callq 0x7de0
incq %r13
addq $0x98, %r12
jmp 0x1adcf
movq 0x758(%r14), %rsi
testq %rsi, %rsi
je 0x1ae57
leaq 0x38(%rsp), %rdi
movq 0x8(%rsp), %rbp
callq 0x196ac
leaq 0x1d1bb(%rip), %rsi     # 0x37ff2
movq %rbp, %rdi
callq 0x7c7e
leaq 0x38(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7da0
movq %rbx, %rdi
callq 0x7de0
movq 0x760(%r14), %rbp
movq %r14, 0x20(%rsp)
movq 0x768(%r14), %r14
leaq 0x1d189(%rip), %r15     # 0x37ffa
leaq 0x10(%rsp), %r12
cmpq %r14, %rbp
je 0x1aeb3
movq (%rbp), %r13
movq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x7c7e
movq %rax, %rbx
movq %r12, %rdi
movq %r13, %rsi
callq 0x194d2
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7e2e
movq %r12, %rdi
callq 0x7de0
addq $0x8, %rbp
jmp 0x1ae76
movq 0x20(%rsp), %r14
leaq 0x778(%r14), %rsi
leaq 0x28(%rsp), %rdi
callq 0x20bac
leaq 0x1d132(%rip), %rsi     # 0x38002
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
callq 0x7c7e
leaq 0x28(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7da0
movq %rbx, %rdi
callq 0x7de0
xorl %r13d, %r13d
leaq 0x1d10f(%rip), %r15     # 0x3800e
leaq 0x10(%rsp), %r12
movl %r13d, %r13d
movq 0x768(%r14), %rax
subq 0x760(%r14), %rax
sarq $0x3, %rax
cmpq %r13, %rax
jbe 0x1af5b
movq %rbp, %rdi
movq %r15, %rsi
callq 0x7c7e
movq %rax, %rbx
leaq (,%r13,4), %rsi
addq 0x780(%r14), %rsi
movq %r12, %rdi
callq 0x20bac
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7e2e
movq %r12, %rdi
callq 0x7de0
incl %r13d
jmp 0x1af04
movq %rbp, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x38(%rsp), %rdi
jmp 0x1b000
movq %rax, %r14
leaq 0x28(%rsp), %rdi
jmp 0x1afe0
movq %rax, %r14
leaq 0x48(%rsp), %rdi
jmp 0x1b000
movq %rax, %r14
leaq 0x58(%rsp), %rdi
jmp 0x1afe0
movq %rax, %r14
leaq 0x68(%rsp), %rdi
jmp 0x1afe0
movq %rax, %r14
leaq 0x78(%rsp), %rdi
jmp 0x1afe0
movq %rax, %r14
leaq 0x88(%rsp), %rdi
jmp 0x1b000
movq %rax, %r14
leaq 0x98(%rsp), %rdi
jmp 0x1afe0
movq %rax, %r14
leaq 0xa8(%rsp), %rdi
jmp 0x1afe0
jmp 0x1afe7
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x7de0
jmp 0x1b011
movq %rax, %r14
jmp 0x1b011
jmp 0x1b009
jmp 0x1b009
jmp 0x1aff8
jmp 0x1aff8
jmp 0x1b009
jmp 0x1b009
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x7de0
jmp 0x1b00c
jmp 0x1b009
movq %rax, %r14
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
callq 0x7de0
movq %r14, %rdi
callq 0x56f0
nop