// File: /workspace/github_cpp_makefile_star2_O3/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 $0xa8, %rsp
movq %rsi, %r14
movq %rdi, %rbp
movb $0x0, (%rdi)
movq $0x0, 0x8(%rdi)
callq 0xd118
movq %rbp, %rdi
callq 0xd118
leaq 0x18(%r14), %rsi
leaq 0x98(%rsp), %rdi
callq 0x8e86
leaq 0x2100d(%rip), %rsi     # 0x40c46
movq %rbp, %rdi
callq 0x8eb2
movq %rax, %r15
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0xd118
movb (%r15), %al
movb (%rbx), %cl
movb %cl, (%r15)
movb %al, (%rbx)
leaq 0xa0(%rsp), %r12
movq 0x8(%r15), %rax
movq (%r12), %rcx
movq %rcx, 0x8(%r15)
movq %rax, (%r12)
movq %r15, %rdi
callq 0xd118
movq %rbx, %rdi
callq 0xd118
movzbl -0x8(%r12), %esi
movq %r12, %rdi
callq 0xd1ba
movl 0x50(%r14), %eax
leaq 0x88(%rsp), %rbx
movb $0x6, (%rbx)
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0xd118
movq %rbx, %rdi
callq 0xd118
leaq 0x20f12(%rip), %rsi     # 0x40bd0
movq %rbp, %rdi
callq 0x8eb2
movq %rax, %r15
leaq 0x90(%rsp), %rbx
leaq 0x88(%rsp), %r12
movq %r12, %rdi
callq 0xd118
movb (%r15), %al
movb (%r12), %cl
movb %cl, (%r15)
movb %al, (%r12)
movq 0x8(%r15), %rax
movq 0x8(%r12), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0x8(%r12)
movq %r15, %rdi
callq 0xd118
movq %r12, %rdi
callq 0xd118
movzbl (%r12), %esi
movq %rbx, %rdi
callq 0xd1ba
movl 0x54(%r14), %eax
leaq 0x78(%rsp), %rbx
movb $0x6, (%rbx)
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0xd118
movq %rbx, %rdi
callq 0xd118
leaq 0x20e94(%rip), %rsi     # 0x40bd9
movq %rbp, (%rsp)
movq %rbp, %rdi
callq 0x8eb2
movq %rax, %r15
leaq 0x80(%rsp), %rbx
leaq 0x78(%rsp), %r12
movq %r12, %rdi
callq 0xd118
movb (%r15), %al
movb (%r12), %cl
movb %cl, (%r15)
movb %al, (%r12)
movq 0x8(%r15), %rax
movq 0x8(%r12), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0x8(%r12)
movq %r15, %rdi
callq 0xd118
movq %r12, %rdi
callq 0xd118
movzbl (%r12), %esi
movq %rbx, %rdi
callq 0xd1ba
cmpl $0x0, 0x54(%r14)
je 0x1fe0c
leaq 0x58(%r14), %r15
xorl %r12d, %r12d
leaq 0x20e26(%rip), %r13     # 0x40be1
leaq 0x8(%rsp), %rbp
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x8eb2
movq %rax, %rbx
movq %rbp, %rdi
movq %r15, %rsi
callq 0x278da
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x9096
movq %rbp, %rdi
callq 0xd118
movzbl 0x8(%rsp), %esi
leaq 0x10(%rsp), %rdi
callq 0xd1ba
incq %r12
movl 0x54(%r14), %eax
addq $0x38, %r15
cmpq %rax, %r12
jb 0x1fdc0
movl 0x9fa0(%r14), %eax
leaq 0x68(%rsp), %rbx
movb $0x6, (%rbx)
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0xd118
movq %rbx, %rdi
callq 0xd118
leaq 0x20db2(%rip), %rsi     # 0x40be8
movq (%rsp), %rbp
movq %rbp, %rdi
callq 0x8eb2
movq %rax, %r15
leaq 0x70(%rsp), %rbx
leaq 0x68(%rsp), %r12
movq %r12, %rdi
callq 0xd118
movb (%r15), %al
movb (%r12), %cl
movb %cl, (%r15)
movb %al, (%r12)
movq 0x8(%r15), %rax
movq 0x8(%r12), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0x8(%r12)
movq %r15, %rdi
callq 0xd118
movq %r12, %rdi
callq 0xd118
movzbl (%r12), %esi
movq %rbx, %rdi
callq 0xd1ba
movl 0x9fa8(%r14), %eax
leaq 0x58(%rsp), %rbx
movb $0x6, (%rbx)
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0xd118
movq %rbx, %rdi
callq 0xd118
leaq 0x20a02(%rip), %rsi     # 0x408c0
movq %rbp, %rdi
callq 0x8eb2
movq %rax, %r15
leaq 0x60(%rsp), %rbx
leaq 0x58(%rsp), %r12
movq %r12, %rdi
callq 0xd118
movb (%r15), %al
movb (%r12), %cl
movb %cl, (%r15)
movb %al, (%r12)
movq 0x8(%r15), %rax
movq 0x8(%r12), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0x8(%r12)
movq %r15, %rdi
callq 0xd118
movq %r12, %rdi
callq 0xd118
movzbl (%r12), %esi
movq %rbx, %rdi
callq 0xd1ba
movl 0x9fac(%r14), %eax
leaq 0x48(%rsp), %rbx
movb $0x6, (%rbx)
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0xd118
movq %rbx, %rdi
callq 0xd118
leaq 0x20cb1(%rip), %rsi     # 0x40bf3
movq %rbp, %rdi
callq 0x8eb2
movq %rax, %r15
leaq 0x50(%rsp), %rbx
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0xd118
movb (%r15), %al
movb (%r12), %cl
movb %cl, (%r15)
movb %al, (%r12)
movq 0x8(%r15), %rax
movq 0x8(%r12), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0x8(%r12)
movq %r15, %rdi
callq 0xd118
movq %r12, %rdi
callq 0xd118
movzbl (%r12), %esi
movq %rbx, %rdi
callq 0xd1ba
movl 0x798(%r14), %eax
leaq 0x38(%rsp), %rbx
movb $0x6, (%rbx)
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0xd118
movq %rbx, %rdi
callq 0xd118
leaq 0x20c3a(%rip), %rsi     # 0x40c00
movq %rbp, %rdi
callq 0x8eb2
movq %rax, %r15
leaq 0x40(%rsp), %rbx
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0xd118
movb (%r15), %al
movb (%r12), %cl
movb %cl, (%r15)
movb %al, (%r12)
movq 0x8(%r15), %rax
movq 0x8(%r12), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0x8(%r12)
movq %r15, %rdi
callq 0xd118
movq %r12, %rdi
callq 0xd118
movzbl (%r12), %esi
movq %rbx, %rdi
callq 0xd1ba
cmpl $0x0, 0x798(%r14)
je 0x20092
leaq 0x7a0(%r14), %r15
xorl %r12d, %r12d
leaq 0x20bf1(%rip), %r13     # 0x40c2c
leaq 0x8(%rsp), %rbp
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x8eb2
movq %rax, %rbx
movq %rbp, %rdi
movq %r15, %rsi
callq 0x18404
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x9096
movq %rbp, %rdi
callq 0xd118
movzbl 0x8(%rsp), %esi
leaq 0x10(%rsp), %rdi
callq 0xd1ba
incq %r12
movl 0x798(%r14), %eax
addq $0x98, %r15
cmpq %rax, %r12
jb 0x20040
movq 0x758(%r14), %rsi
testq %rsi, %rsi
je 0x20108
leaq 0x28(%rsp), %rdi
movq (%rsp), %rbp
callq 0x1dcc6
leaq 0x20b57(%rip), %rsi     # 0x40c0a
movq %rbp, %rdi
callq 0x8eb2
movq %rax, %r15
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0xd118
movb (%r15), %al
movb (%rbx), %cl
movb %cl, (%r15)
movb %al, (%rbx)
leaq 0x30(%rsp), %r12
movq 0x8(%r15), %rax
movq (%r12), %rcx
movq %rcx, 0x8(%r15)
movq %rax, (%r12)
movq %r15, %rdi
callq 0xd118
movq %rbx, %rdi
callq 0xd118
movzbl -0x8(%r12), %esi
movq %r12, %rdi
callq 0xd1ba
movq 0x760(%r14), %r15
movq 0x768(%r14), %r12
cmpq %r12, %r15
je 0x2016c
leaq 0x8(%rsp), %r13
movq (%r15), %rbp
movq (%rsp), %rdi
leaq 0x20ae4(%rip), %rsi     # 0x40c12
callq 0x8eb2
movq %rax, %rbx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x1d9ae
movq %rbx, %rdi
movq %r13, %rsi
callq 0x9096
movq %r13, %rdi
callq 0xd118
movzbl 0x8(%rsp), %esi
leaq 0x10(%rsp), %rdi
callq 0xd1ba
addq $0x8, %r15
cmpq %r12, %r15
jne 0x20120
movslq 0x778(%r14), %rax
leaq 0x18(%rsp), %rbx
movb $0x5, (%rbx)
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0xd118
movq %rbx, %rdi
callq 0xd118
leaq 0x20a84(%rip), %rsi     # 0x40c1a
movq (%rsp), %rbp
movq %rbp, %rdi
callq 0x8eb2
movq %rax, %r15
leaq 0x20(%rsp), %rbx
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0xd118
movb (%r15), %al
movb (%r12), %cl
movb %cl, (%r15)
movb %al, (%r12)
movq 0x8(%r15), %rax
movq 0x8(%r12), %rcx
movq %rcx, 0x8(%r15)
movq %rax, 0x8(%r12)
movq %r15, %rdi
callq 0xd118
movq %r12, %rdi
callq 0xd118
movzbl (%r12), %esi
movq %rbx, %rdi
callq 0xd1ba
movq 0x768(%r14), %rax
cmpq 0x760(%r14), %rax
je 0x2029a
movl $0x1, %ebx
xorl %r15d, %r15d
leaq 0x20a0f(%rip), %r12     # 0x40c26
leaq 0x8(%rsp), %r13
movq %rbp, %rdi
movq %r12, %rsi
callq 0x8eb2
movq %rax, %rbp
movq 0x780(%r14), %rax
movq $0x0, 0x10(%rsp)
movslq (%rax,%r15,4), %rax
movb $0x5, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movq %r13, %rdi
callq 0xd118
movq %r13, %rdi
callq 0xd118
movq %rbp, %rdi
movq %r13, %rsi
callq 0x9096
movq %r13, %rdi
callq 0xd118
movzbl 0x8(%rsp), %esi
leaq 0x10(%rsp), %rdi
callq 0xd1ba
movq 0x768(%r14), %rax
subq 0x760(%r14), %rax
movl %ebx, %r15d
sarq $0x3, %rax
incl %ebx
cmpq %r15, %rax
movq (%rsp), %rbp
ja 0x2021c
movq %rbp, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x28(%rsp), %rdi
jmp 0x20338
movq %rax, %r14
leaq 0x18(%rsp), %rdi
jmp 0x2030d
movq %rax, %r14
leaq 0x38(%rsp), %rdi
jmp 0x20338
movq %rax, %r14
leaq 0x48(%rsp), %rdi
jmp 0x2030d
movq %rax, %r14
leaq 0x58(%rsp), %rdi
jmp 0x2030d
movq %rax, %r14
leaq 0x68(%rsp), %rdi
jmp 0x2030d
movq %rax, %r14
leaq 0x78(%rsp), %rdi
jmp 0x20338
movq %rax, %r14
leaq 0x88(%rsp), %rdi
jmp 0x2030d
movq %rax, %r14
leaq 0x98(%rsp), %rdi
callq 0x907c
jmp 0x20341
movq %rax, %r14
jmp 0x20341
jmp 0x2032b
jmp 0x20330
jmp 0x2032b
jmp 0x2032b
jmp 0x20330
jmp 0x2032b
jmp 0x2032b
jmp 0x20330
jmp 0x2032b
movq %rax, %r14
jmp 0x2033d
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x907c
movq (%rsp), %rbp
movq %rbp, %rdi
callq 0x907c
movq %r14, %rdi
callq 0x56e0
nop