// File: /workspace/github_cpp_makefile_star2_O2/Konano[P]UselessDatabase/Index.cpp
// Function: Index::toJson[abi:cxx11]()
json Index::toJson() {
    json j;
    j["name"] = name;
    j["key_num"] = key_num;
    for (uint i = 0; i < key_num; i++) j["key"].push_back(key[i]);
    for (uint i = 0; i < key_num; i++) j["offset"].push_back(offset[i]);
    j["page_num"] = page_num;
    j["root_page"] = root_page;
    j["next_del_page"] = next_del_page;
    j["record_size"] = record_size;
    for (uint i = 0; i < key_num; i++) j["ty"].push_back(ty[i]);
    return j;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbp
xorl %esi, %esi
callq 0x7c48
leaq 0x8(%r14), %rsi
leaq 0x68(%rsp), %rdi
movq %rbp, (%rsp)
callq 0x7c64
leaq 0x231de(%rip), %rsi     # 0x3802e
movq %rbp, %rdi
callq 0x7c7e
leaq 0x68(%rsp), %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x7da0
movq %r15, %rdi
callq 0x7de0
leaq 0x28(%r14), %r15
leaq 0x58(%rsp), %rdi
movq %r15, %rsi
callq 0x7dfa
leaq 0x22dec(%rip), %rsi     # 0x37c74
movq %rbp, %rdi
callq 0x7c7e
leaq 0x58(%rsp), %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x7da0
movq %r12, %rdi
callq 0x7de0
xorl %ebx, %ebx
leaq 0x8(%rsp), %r13
xorl %r12d, %r12d
movl (%r15), %eax
cmpq %rax, %r12
jae 0x14efb
movq %rbp, %rdi
leaq 0x20ac5(%rip), %rsi     # 0x35989
callq 0x7c7e
movq %rax, %rbp
movq 0x30(%r14), %rsi
addq %rbx, %rsi
movq %r13, %rdi
callq 0x7dfa
movq %rbp, %rdi
movq %r13, %rsi
callq 0x7e2e
movq %r13, %rdi
callq 0x7de0
incq %r12
addq $0x4, %rbx
movq (%rsp), %rbp
jmp 0x14eb2
xorl %r12d, %r12d
leaq 0x8(%rsp), %r13
xorl %ebx, %ebx
movl %eax, %eax
cmpq %rax, %rbx
jae 0x14f50
movq %rbp, %rdi
leaq 0x22d66(%rip), %rsi     # 0x37c7c
callq 0x7c7e
movq %rax, %rbp
movq 0x48(%r14), %rsi
addq %r12, %rsi
movq %r13, %rdi
callq 0x7dfa
movq %rbp, %rdi
movq %r13, %rsi
callq 0x7e2e
movq %r13, %rdi
callq 0x7de0
incq %rbx
movl (%r15), %eax
addq $0x4, %r12
movq (%rsp), %rbp
jmp 0x14f05
leaq 0x60(%r14), %rsi
leaq 0x48(%rsp), %rdi
callq 0x7dfa
leaq 0x22d1e(%rip), %rsi     # 0x37c83
movq %rbp, %rdi
callq 0x7c7e
leaq 0x48(%rsp), %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x7da0
movq %r12, %rdi
callq 0x7de0
leaq 0x64(%r14), %rsi
leaq 0x38(%rsp), %rdi
callq 0x7dfa
leaq 0x22cf2(%rip), %rsi     # 0x37c8c
movq %rbp, %rdi
callq 0x7c7e
leaq 0x38(%rsp), %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x7da0
movq %r12, %rdi
callq 0x7de0
leaq 0x68(%r14), %rsi
leaq 0x28(%rsp), %rdi
callq 0x7dfa
leaq 0x22cc7(%rip), %rsi     # 0x37c96
movq %rbp, %rdi
callq 0x7c7e
leaq 0x28(%rsp), %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x7da0
movq %r12, %rdi
callq 0x7de0
leaq 0x6c(%r14), %rsi
leaq 0x18(%rsp), %rdi
callq 0x17f3c
leaq 0x22ca0(%rip), %rsi     # 0x37ca4
movq %rbp, %rdi
callq 0x7c7e
leaq 0x18(%rsp), %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x7da0
movq %r12, %rdi
callq 0x7de0
xorl %ebx, %ebx
leaq 0x8(%rsp), %r13
xorl %r12d, %r12d
movl (%r15), %eax
cmpq %rax, %r12
jae 0x15077
movq %rbp, %rdi
leaq 0x22f8d(%rip), %rsi     # 0x37fcd
callq 0x7c7e
movq %rax, %rbp
movq 0x78(%r14), %rsi
addq %rbx, %rsi
movq %r13, %rdi
callq 0x17f56
movq %rbp, %rdi
movq %r13, %rsi
callq 0x7e2e
movq %r13, %rdi
callq 0x7de0
incq %r12
addq $0x4, %rbx
movq (%rsp), %rbp
jmp 0x1502e
movq %rbp, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x18(%rsp), %rdi
jmp 0x150d7
movq %rax, %r14
leaq 0x28(%rsp), %rdi
jmp 0x150d7
movq %rax, %r14
leaq 0x38(%rsp), %rdi
jmp 0x150d7
movq %rax, %r14
leaq 0x48(%rsp), %rdi
jmp 0x150d7
movq %rax, %r14
leaq 0x58(%rsp), %rdi
jmp 0x150d7
movq %rax, %r14
leaq 0x68(%rsp), %rdi
jmp 0x150d7
jmp 0x150de
jmp 0x150cf
jmp 0x150de
jmp 0x150cf
jmp 0x150de
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x7de0
jmp 0x150e1
movq %rax, %r14
movq (%rsp), %rdi
callq 0x7de0
movq %r14, %rdi
callq 0x56f0