// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/rbtree.c
// Function: node_dot
void node_dot( rbnode* node, FILE* f, rbtree_node_value cb )
{
    char left_name[30], right_name[30];
    rbnode *left, *right;
    
    left  = node->left;
    right = node->right;

    if( left )
    {
        snprintf( left_name, sizeof(left_name), "n_%p", left );
        fprintf( f, "%s[color=%s,fontcolor=white, style=filled, shape=circle, label=\"%s\"];\n", left_name, left->color == RED ? "red" : "black", cb( left ) );
    }
    else
    {   snprintf( left_name, sizeof(left_name), "n_%p_l", node );
        fprintf( f, "%s[color=black, fontcolor=white, style=filled, shape=box,label=\"nil\", width=0.3, height= 0.1];\n", left_name );
    }
    
    if( right )
    {
        snprintf( right_name, sizeof(left_name), "n_%p", right );
        fprintf( f, "%s[color=%s,fontcolor=white, style=filled, shape=circle, label=\"%s\"];\n", right_name, right->color == RED ? "red" : "black", cb( right ) );
    }
    else
    {
        snprintf( right_name, sizeof(left_name), "n_%p_r", node );
        fprintf( f, "%s[color=black, fontcolor=white, style=filled, shape=box,label=\"nil\", width=0.3, height= 0.1];\n", right_name );
    }
    
    fprintf( f, "n_%p -> { %s  %s };\n", node, left_name, right_name );
    
    if( left )
        node_dot( left, f, cb );
    
    if( right )
        node_dot( right, f, cb );
        
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %r13
movq 0x8(%rdi), %r12
movq 0x10(%rdi), %r15
testq %r12, %r12
movq %rdx, 0x8(%rsp)
je 0x70e0
movq %rdx, %rbp
leaq 0x2758(%rip), %rdx      # 0x97ec
leaq 0x10(%rsp), %rdi
pushq $0x1e
popq %rsi
movq %r12, %rcx
xorl %eax, %eax
callq 0x2130
cmpl $0x1, (%r12)
leaq 0x2786(%rip), %rax      # 0x9838
leaq 0x2783(%rip), %rbx      # 0x983c
cmoveq %rax, %rbx
movq %r12, %rdi
callq *%rbp
leaq 0x2728(%rip), %rsi      # 0x97f1
movq %r14, %rdi
leaq 0x10(%rsp), %rdx
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x21d0
jmp 0x7110
leaq 0x275b(%rip), %rdx      # 0x9842
leaq 0x10(%rsp), %rbx
pushq $0x1e
popq %rsi
movq %rbx, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0x2130
leaq 0x2746(%rip), %rsi      # 0x9849
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21d0
testq %r15, %r15
je 0x716a
leaq 0x26d0(%rip), %rdx      # 0x97ec
leaq 0x30(%rsp), %rbx
pushq $0x1e
popq %rsi
movq %rbx, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0x2130
cmpl $0x1, (%r15)
leaq 0x26fc(%rip), %rax      # 0x9838
leaq 0x26f9(%rip), %rbp      # 0x983c
cmoveq %rax, %rbp
movq %r15, %rdi
callq *0x8(%rsp)
leaq 0x269c(%rip), %rsi      # 0x97f1
movq %r14, %rdi
movq %rbx, %rdx
movq %rbp, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x21d0
jmp 0x719a
leaq 0x2738(%rip), %rdx      # 0x98a9
leaq 0x30(%rsp), %rbx
pushq $0x1e
popq %rsi
movq %rbx, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0x2130
leaq 0x26bc(%rip), %rsi      # 0x9849
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21d0
leaq 0x270f(%rip), %rsi      # 0x98b0
leaq 0x10(%rsp), %rcx
leaq 0x30(%rsp), %r8
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x21d0
testq %r12, %r12
movq 0x8(%rsp), %rbx
je 0x71d0
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7064
testq %r15, %r15
je 0x71e3
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7064
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq