// File: /workspace/github_cpp_makefile_star2_O1/Konano[P]UselessDatabase/Index.cpp
// Function: Index::debug(int)
void Index::debug(int now) {
    BtreeNode* node = convert_buf_to_BtreeNode(now);
    cout << "node " << node->index << " fa " << node->fa_index << " isleaf " << node->is_leaf <<endl;
    cout << node->record_cnt << endl;
    printf("val:\n");
    for (auto a: node->record) {
        cout << a.record_id << " " <<*a.key[0].anyCast<int>() << endl;
    }
    printf("son:\n");
    for (auto a: node->child) {
        cout << a << endl;
    }
    for (auto a: node->child) {
        if (a >= 0) debug(a);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, 0x10(%rsp)
callq 0x19bd2
movq %rax, %r12
movq 0x3a642(%rip), %rbx     # 0x53fc8
leaq 0x27f5b(%rip), %rsi     # 0x418e8
movl $0x5, %edx
movq %rbx, %rdi
callq 0x5440
movl 0x18(%r12), %esi
movq %rbx, %rdi
callq 0x56c0
movq %rax, %r14
leaq 0x27f3d(%rip), %rsi     # 0x418ee
movl $0x4, %edx
movq %rax, %rdi
callq 0x5440
movl 0x6c(%r12), %esi
movq %r14, %rdi
callq 0x56c0
movq %rax, %r14
leaq 0x27f1e(%rip), %rsi     # 0x418f3
movl $0x8, %edx
movq %rax, %rdi
callq 0x5440
movzbl 0x68(%r12), %esi
movq %r14, %rdi
callq 0x5660
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5370
movsbl %al, %esi
movq %r14, %rdi
callq 0x5050
movq %rax, %rdi
callq 0x52a0
movl 0x1c(%r12), %esi
movq %rbx, %rdi
callq 0x56c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5050
movq %rax, %rdi
callq 0x52a0
leaq 0x27ea4(%rip), %rdi     # 0x418fc
callq 0x55d0
movq 0x50(%r12), %r15
movq %r12, 0x8(%rsp)
movq 0x58(%r12), %rbp
cmpq %rbp, %r15
je 0x19b24
leaq 0x20(%rsp), %r12
leaq 0x39c27(%rip), %r14     # 0x536a8
leaq 0x39c48(%rip), %rbx     # 0x536d0
movl (%r15), %eax
movl %eax, 0x18(%rsp)
addq $0x8, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0xa450
movl 0x18(%rsp), %esi
movq 0x3a51f(%rip), %rdi     # 0x53fc8
callq 0x56c0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x2682d(%rip), %rsi     # 0x402ed
callq 0x5440
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x5430
movl 0x8(%rax), %esi
movq %r13, %rdi
callq 0x56c0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x5370
movsbl %al, %esi
movq %r13, %rdi
callq 0x5050
movq %rax, %rdi
callq 0x52a0
movq %r12, %rdi
callq 0xa564
addq $0x18, %r15
cmpq %rbp, %r15
jne 0x19a88
leaq 0x27dd6(%rip), %rdi     # 0x41901
callq 0x55d0
movq 0x8(%rsp), %r13
movq 0x20(%r13), %r15
movq 0x28(%r13), %r12
cmpq %r12, %r15
je 0x19b87
movq 0x3a47f(%rip), %rbx     # 0x53fc8
movl (%r15), %esi
movq %rbx, %rdi
callq 0x56c0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5370
movsbl %al, %esi
movq %r14, %rdi
callq 0x5050
movq %rax, %rdi
callq 0x52a0
addq $0x4, %r15
cmpq %r12, %r15
jne 0x19b49
movq 0x20(%r13), %rbx
movq 0x28(%r13), %r14
cmpq %r14, %rbx
movq 0x10(%rsp), %r15
je 0x19bb0
movl (%rbx), %esi
testl %esi, %esi
js 0x19ba7
movq %r15, %rdi
callq 0x19964
addq $0x4, %rbx
cmpq %r14, %rbx
jne 0x19b99
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r12, %rdi
callq 0xa564
movq %rbx, %rdi
callq 0x56e0