// File: 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
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0xe8(%rbp)
movq %rdi, %rax
movq %rax, -0xe0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xd8(%rbp)
movb $0x0, -0x11(%rbp)
xorl %eax, %eax
movl %eax, %esi
callq 0xadd0
movq -0xd8(%rbp), %rsi
addq $0x8, %rsi
leaq -0x28(%rbp), %rdi
callq 0xae10
jmp 0x35d02
movq -0xe8(%rbp), %rdi
leaq 0x4df06(%rip), %rsi     # 0x83c16
callq 0xae60
movq %rax, -0xf0(%rbp)
jmp 0x35d1e
movq -0xf0(%rbp), %rdi
leaq -0x28(%rbp), %rsi
movq %rsi, -0x100(%rbp)
callq 0xb0a0
movq -0x100(%rbp), %rdi
callq 0xb110
movq -0xd8(%rbp), %rsi
addq $0x28, %rsi
leaq -0x48(%rbp), %rdi
callq 0xb150
movq -0xe8(%rbp), %rdi
leaq 0x4db2d(%rip), %rsi     # 0x83890
callq 0xae60
movq %rax, -0xf8(%rbp)
jmp 0x35d71
movq -0xf8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xb0a0
leaq -0x48(%rbp), %rdi
callq 0xb110
movl $0x0, -0x4c(%rbp)
movq -0xd8(%rbp), %rcx
movl -0x4c(%rbp), %eax
cmpl 0x28(%rcx), %eax
jae 0x35e70
movq -0xe8(%rbp), %rdi
leaq 0x4b7a6(%rip), %rsi     # 0x81558
callq 0xae60
movq %rax, -0x108(%rbp)
jmp 0x35dc0
movq -0xd8(%rbp), %rdi
addq $0x30, %rdi
movl -0x4c(%rbp), %eax
movl %eax, %esi
callq 0x3cf40
movq %rax, %rsi
leaq -0x60(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0xb150
movq -0x108(%rbp), %rdi
movq -0x110(%rbp), %rsi
callq 0xb1f0
jmp 0x35dfd
leaq -0x60(%rbp), %rdi
callq 0xb110
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x35d91
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x361b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xb110
jmp 0x361b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xb110
jmp 0x361b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xb110
jmp 0x361b8
movl $0x0, -0x64(%rbp)
movq -0xd8(%rbp), %rcx
movl -0x64(%rbp), %eax
cmpl 0x28(%rcx), %eax
jae 0x35f11
movq -0xe8(%rbp), %rdi
leaq 0x4da00(%rip), %rsi     # 0x83898
callq 0xae60
movq %rax, -0x118(%rbp)
jmp 0x35ea6
movq -0xd8(%rbp), %rdi
addq $0x48, %rdi
movl -0x64(%rbp), %eax
movl %eax, %esi
callq 0x3cf40
movq %rax, %rsi
leaq -0x78(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0xb150
movq -0x118(%rbp), %rdi
movq -0x120(%rbp), %rsi
callq 0xb1f0
jmp 0x35ee3
leaq -0x78(%rbp), %rdi
callq 0xb110
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x35e77
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x78(%rbp), %rdi
callq 0xb110
jmp 0x361b8
movq -0xd8(%rbp), %rsi
addq $0x60, %rsi
leaq -0x88(%rbp), %rdi
callq 0xb150
movq -0xe8(%rbp), %rdi
leaq 0x4d969(%rip), %rsi     # 0x8389f
callq 0xae60
movq %rax, -0x128(%rbp)
jmp 0x35f44
movq -0x128(%rbp), %rdi
leaq -0x88(%rbp), %rsi
movq %rsi, -0x138(%rbp)
callq 0xb0a0
movq -0x138(%rbp), %rdi
callq 0xb110
movq -0xd8(%rbp), %rsi
addq $0x64, %rsi
leaq -0x98(%rbp), %rdi
callq 0xb150
movq -0xe8(%rbp), %rdi
leaq 0x4d919(%rip), %rsi     # 0x838a8
callq 0xae60
movq %rax, -0x130(%rbp)
jmp 0x35f9d
movq -0x130(%rbp), %rdi
leaq -0x98(%rbp), %rsi
movq %rsi, -0x148(%rbp)
callq 0xb0a0
movq -0x148(%rbp), %rdi
callq 0xb110
movq -0xd8(%rbp), %rsi
addq $0x68, %rsi
leaq -0xa8(%rbp), %rdi
callq 0xb150
movq -0xe8(%rbp), %rdi
leaq 0x4d8ca(%rip), %rsi     # 0x838b2
callq 0xae60
movq %rax, -0x140(%rbp)
jmp 0x35ff6
movq -0x140(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
movq %rsi, -0x158(%rbp)
callq 0xb0a0
movq -0x158(%rbp), %rdi
callq 0xb110
movq -0xd8(%rbp), %rsi
addq $0x6c, %rsi
leaq -0xb8(%rbp), %rdi
callq 0x3cf60
movq -0xe8(%rbp), %rdi
leaq 0x4d87f(%rip), %rsi     # 0x838c0
callq 0xae60
movq %rax, -0x150(%rbp)
jmp 0x3604f
movq -0x150(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0xb0a0
leaq -0xb8(%rbp), %rdi
callq 0xb110
movl $0x0, -0xbc(%rbp)
movq -0xd8(%rbp), %rcx
movl -0xbc(%rbp), %eax
cmpl 0x28(%rcx), %eax
jae 0x36192
movq -0xe8(%rbp), %rdi
leaq 0x4db19(%rip), %rsi     # 0x83bb5
callq 0xae60
movq %rax, -0x160(%rbp)
jmp 0x360aa
movq -0xd8(%rbp), %rdi
addq $0x78, %rdi
movl -0xbc(%rbp), %eax
movl %eax, %esi
callq 0x3cfb0
movq %rax, %rsi
leaq -0xd0(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x3cfd0
movq -0x160(%rbp), %rdi
movq -0x168(%rbp), %rsi
callq 0xb1f0
jmp 0x360ed
leaq -0xd0(%rbp), %rdi
callq 0xb110
movl -0xbc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xbc(%rbp)
jmp 0x36078
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x88(%rbp), %rdi
callq 0xb110
jmp 0x361b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x98(%rbp), %rdi
callq 0xb110
jmp 0x361b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0xb110
jmp 0x361b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0xb110
jmp 0x361b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0xb110
jmp 0x361b8
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x361a8
movq -0xe8(%rbp), %rdi
callq 0xb110
movq -0xe0(%rbp), %rax
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
movq -0xe8(%rbp), %rdi
callq 0xb110
movq -0x30(%rbp), %rdi
callq 0x6890
nopl (%rax)