// File: /workspace/github_c_makefile_star2_O1/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 0x15aa(%rip), %rdi      # 0x31bd
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1090
movq 0x8(%rbx), %rax
testb $0x2, (%rax)
je 0x1c34
leaq 0x15ba(%rip), %rdi      # 0x31e7
xorl %eax, %eax
callq 0x1090
movq 0x8(%rbx), %rax
testb $0x4, (%rax)
je 0x1c4b
leaq 0x15ad(%rip), %rdi      # 0x31f1
xorl %eax, %eax
callq 0x1090
movq 0x8(%rbx), %rax
testb $0x1, (%rax)
je 0x1c62
leaq 0x1438(%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 0x157a(%rip), %rdi      # 0x31f7
xorl %eax, %eax
callq 0x1090
movq 0x8(%rbx), %rdi
testb $0x4, (%rdi)
movq 0x8(%rdi), %r12
jne 0x1cf1
testq %r12, %r12
je 0x1d57
movl $0x30, %r13d
leaq 0x1573(%rip), %r15      # 0x321a
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1dd1
movq 0x8(%rbx), %rcx
cmpq %r14, 0x8(%rcx)
jbe 0x1db2
movq 0x10(%rax), %rdx
movq (%rcx,%r13), %r8
movq %r15, %rdi
movq %r14, %rsi
movq %r14, %rcx
xorl %eax, %eax
callq 0x1090
incq %r14
movq 0x8(%rbx), %rax
movq 0x8(%rax), %r12
addq $0x10, %r13
cmpq %r12, %r14
jb 0x1caa
jmp 0x1d5a
testq %r12, %r12
je 0x1d44
movl $0x30, %r12d
leaq 0x1542(%rip), %r14      # 0x3245
xorl %r15d, %r15d
movq %r15, %rsi
callq 0x1496
movq 0x8(%rbx), %rcx
cmpq %r15, 0x8(%rcx)
jbe 0x1db2
movq (%rcx,%r12), %r8
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x1090
incq %r15
movq 0x8(%rbx), %rdi
addq $0x10, %r12
cmpq 0x8(%rdi), %r15
jb 0x1d06
movl $0xa, %edi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1040
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1dd1
movq 0x10(%rax), %rdx
leaq 0x14c6(%rip), %rdi      # 0x3236
movq %r12, %rsi
xorl %eax, %eax
callq 0x1090
movq 0x8(%rbx), %rax
cmpq $0x0, 0x8(%rax)
je 0x1da8
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1dd1
movq %rax, %rdi
callq 0x1bfc
incq %r14
movq 0x8(%rbx), %rax
cmpq 0x8(%rax), %r14
jbe 0x1d88
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1566(%rip), %rdi      # 0x331f
leaq 0x1265(%rip), %rsi      # 0x3025
leaq 0x1586(%rip), %rcx      # 0x334d
movl $0x148, %edx            # imm = 0x148
callq 0x10b0