// File: /workspace/github_c_makefile_star2_O2/CkTD[P]btree/btree.c
// Function: bt_node_print
void bt_node_print(BTreeNode* node)
{
    uint64_t i;
    printf("---------- Node(id: %lu, %p) ----------\n[", node->blkid, node);
    if(node->blk->type & BT_NODE_TYPE_INTERNAL)
        printf("INTERNAL ");
    if(node->blk->type & BT_NODE_TYPE_LEAF)
        printf("LEAF ");
    if(node->blk->type & BT_NODE_TYPE_ROOT)
        printf("ROOT");


    printf("]P: %lu, L: %lu, R: %lu, #K: %lu\n|",node->blk->parent_blkid, node->blk->left_sibling_blkid, node->blk->right_sibling_blkid, node->blk->key_counts);
    if(!(node->blk->type & BT_NODE_TYPE_LEAF)) 
    {
        for (i = 0; i < node->blk->key_counts; i++)
        {
            printf(" I_%lu (%lu) K_%lu (%lu) | ", i, bt_node_get_blkid(bt_node_get_child(node, i)), i, bt_node_get_key(node, i));
        }

        printf("I_%lu (%lu) |\n", node->blk->key_counts, bt_node_get_blkid(bt_node_get_child(node, i)));
        if(node->blk->key_counts)
        for(i=0;i <= node->blk->key_counts;i++)
        {
            bt_node_print(bt_node_get_child(node, i));
        }
    }
    else
    {
        for (i = 0; i < node->blk->key_counts; i++)
        {
            printf(" V_%lu (%lu) K_%lu (%lu) | ", i, bt_node_get_value(node, i), i, bt_node_get_key(node, i));
        }
        printf("\n");
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rsi
leaq 0x1609(%rip), %rdi      # 0x31bd
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1090
movq 0x8(%rbx), %rax
movq (%rax), %rcx
testb $0x2, %cl
je 0x1bdf
leaq 0x1616(%rip), %rdi      # 0x31e7
xorl %eax, %eax
callq 0x1090
movq 0x8(%rbx), %rax
movq (%rax), %rcx
testb $0x4, %cl
je 0x1bf9
leaq 0x1606(%rip), %rdi      # 0x31f1
xorl %eax, %eax
callq 0x1090
movq 0x8(%rbx), %rax
movq (%rax), %rcx
testb $0x1, %cl
je 0x1c10
leaq 0x148e(%rip), %rdi      # 0x3093
xorl %eax, %eax
callq 0x1090
movq 0x8(%rbx), %rax
movq 0x8(%rax), %r8
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
movq 0x20(%rax), %rcx
leaq 0x15d0(%rip), %rdi      # 0x31f7
xorl %eax, %eax
callq 0x1090
movq 0x8(%rbx), %rdi
testb $0x4, (%rdi)
jne 0x1cda
leaq 0x15d8(%rip), %r14      # 0x321a
xorl %r15d, %r15d
movq 0x8(%rdi), %r13
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1d30
movq 0x10(%rax), %r12
cmpq %r13, %r15
jae 0x1c87
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1db4
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x1090
incq %r15
movq 0x8(%rbx), %rdi
jmp 0x1c45
leaq 0x15a8(%rip), %rdi      # 0x3236
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1090
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x1cd0
xorl %r14d, %r14d
cmpq %rax, %r14
ja 0x1cd0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1d30
movq %rax, %rdi
callq 0x1b9d
incq %r14
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rax
jmp 0x1cab
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1564(%rip), %r14      # 0x3245
xorl %r15d, %r15d
cmpq 0x8(%rdi), %r15
jae 0x1d1f
movq %r15, %rsi
callq 0x1489
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1db4
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x1090
incq %r15
movq 0x8(%rbx), %rdi
jmp 0x1ce4
pushq $0xa
popq %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1040