// File: /workspace/github_cpp_makefile_star2_O3/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 0x19412
movq %rax, %r12
movq 0x39e00(%rip), %rbx     # 0x52fc8
leaq 0x27709(%rip), %rsi     # 0x408d8
movl $0x5, %edx
movq %rbx, %rdi
callq 0x5440
movl 0x18(%r12), %esi
movq %rbx, %rdi
callq 0x56c0
movq %rax, %r14
leaq 0x276eb(%rip), %rsi     # 0x408de
movl $0x4, %edx
movq %rax, %rdi
callq 0x5440
movl 0x6c(%r12), %esi
movq %r14, %rdi
callq 0x56c0
movq %rax, %r14
leaq 0x276cc(%rip), %rsi     # 0x408e3
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 0x27652(%rip), %rdi     # 0x408ec
callq 0x55d0
movq 0x50(%r12), %r15
movq %r12, 0x8(%rsp)
movq 0x58(%r12), %rbp
cmpq %rbp, %r15
je 0x19366
leaq 0x20(%rsp), %r12
leaq 0x3941d(%rip), %rbx     # 0x526e0
leaq 0x3943e(%rip), %r14     # 0x52708
movl (%r15), %eax
movl %eax, 0x18(%rsp)
addq $0x8, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0xa26a
movl 0x18(%rsp), %esi
movq 0x39cdd(%rip), %rdi     # 0x52fc8
callq 0x56c0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x25fe8(%rip), %rsi     # 0x3f2ea
callq 0x5440
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq %rbx, %rsi
movq %r14, %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 0xa37e
addq $0x18, %r15
cmpq %rbp, %r15
jne 0x192ca
leaq 0x27584(%rip), %rdi     # 0x408f1
callq 0x55d0
movq 0x8(%rsp), %rbp
movq 0x20(%rbp), %r15
movq 0x28(%rbp), %r12
cmpq %r12, %r15
movq 0x10(%rsp), %r13
je 0x193ef
movq 0x39c38(%rip), %rbx     # 0x52fc8
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 0x19390
movq 0x20(%rbp), %rbx
movq 0x28(%rbp), %r14
cmpq %r14, %rbx
je 0x193ef
movl (%rbx), %esi
testl %esi, %esi
js 0x193e9
movq %r13, %rdi
callq 0x191a6
addq $0x4, %rbx
jmp 0x193d6
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r12, %rdi
callq 0xa37e
movq %rbx, %rdi
callq 0x56e0
nop