// File: /workspace/github_c_makefile_star2_O0/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ip_s_status
st_s* bcore_btree_ip_s_status( bcore_btree_ip_s* o )
{
    uz_t blocks = 0;
    uz_t nodes = 0;
    uz_t deleted_nodes = 0;
    if( o->chain_beg )
    {
        bcore_btree_node_ip_s* chain_beg = o->chain_beg;
        while( chain_beg )
        {
            chain_beg = *( bcore_btree_node_ip_s** )( chain_beg + o->block_size );
            blocks++;
        }
        nodes = blocks * o->block_size - ( o->chain_end - o->chain_ins );
    }
    if( o->del_chain )
    {
        bcore_btree_node_ip_s* del_chain = o->del_chain;
        while( del_chain )
        {
            del_chain = del_chain->parent;
            deleted_nodes++;
        }
    }

    st_s* string = st_s_create();
    uz_t used_nodes = nodes - deleted_nodes;
    st_s_push_fa( string, "keys ........... #<uz_t>\n", bcore_btree_node_ip_s_keys( o->root ) );
    st_s_push_fa( string, "nodes .......... #<uz_t>\n", used_nodes );
    st_s_push_fa( string, "keys/nodes ..... #<f3_t>\n", used_nodes > 0 ? ( f3_t )( bcore_btree_node_ip_s_keys( o->root ) ) / used_nodes : 0 );
    st_s_push_fa( string, "depth .......... #<uz_t>\n", bcore_btree_node_ip_s_depth( o->root ) );
    st_s_push_fa( string, "block size ..... #<uz_t>\n", o->block_size );
    st_s_push_fa( string, "blocks ......... #<uz_t>\n", blocks );
    st_s_push_fa( string, "deleted nodes .. #<uz_t>\n", deleted_nodes );
    return string;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq $0x0, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x1223b5
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x12238a
movq -0x28(%rbp), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x12235b
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
imulq 0x28(%rcx), %rax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x8(%rbp), %rdx
movq 0x18(%rdx), %rdx
subq %rdx, %rcx
sarq $0x6, %rcx
subq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x1223ef
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x1223ed
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x1223cc
jmp 0x1223ef
movb $0x0, %al
callq 0xff2e0
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
subq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x1207b0
movq -0x50(%rbp), %rdi
movq %rax, %rdx
leaq 0x36c9c(%rip), %rsi     # 0x1590c4
movb $0x0, %al
callq 0x100210
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq 0x36ca0(%rip), %rsi     # 0x1590de
movb $0x0, %al
callq 0x100210
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x40(%rbp)
jbe 0x1224aa
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x1207b0
movq %rax, %xmm0
movaps 0x1ca94(%rip), %xmm3    # 0x13ef00
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1ca98(%rip), %xmm2    # 0x13ef10
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x40(%rbp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
jmp 0x1224b4
xorps %xmm0, %xmm0
movsd %xmm0, -0x58(%rbp)
jmp 0x1224b4
movq -0x48(%rbp), %rdi
movsd -0x58(%rbp), %xmm0
leaq 0x1efbd(%rip), %rsi     # 0x141481
movb $0x1, %al
callq 0x100210
movq -0x38(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x120860
movq -0x60(%rbp), %rdi
movq %rax, %rdx
leaq 0x36c0b(%rip), %rsi     # 0x1590f8
movb $0x0, %al
callq 0x100210
movq -0x38(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rdx
leaq 0x36c0b(%rip), %rsi     # 0x159112
movb $0x0, %al
callq 0x100210
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rdx
leaq 0x36c0f(%rip), %rsi     # 0x15912c
movb $0x0, %al
callq 0x100210
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq 0x36c13(%rip), %rsi     # 0x159146
movb $0x0, %al
callq 0x100210
movq -0x38(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)