// File: /workspace/github_c_makefile_star2_O1/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 0x784a
movq %rdx, %rbp
leaq 0x1ff0(%rip), %rdx      # 0x97ec
leaq 0x10(%rsp), %rdi
movl $0x1e, %esi
movq %r12, %rcx
xorl %eax, %eax
callq 0x2130
cmpl $0x1, (%r12)
leaq 0x201c(%rip), %rax      # 0x9838
leaq 0x2019(%rip), %rbx      # 0x983c
cmoveq %rax, %rbx
movq %r12, %rdi
callq *%rbp
leaq 0x1fbe(%rip), %rsi      # 0x97f1
movq %r14, %rdi
leaq 0x10(%rsp), %rdx
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x21d0
jmp 0x787c
leaq 0x1ff1(%rip), %rdx      # 0x9842
leaq 0x10(%rsp), %rbx
movl $0x1e, %esi
movq %rbx, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0x2130
leaq 0x1fda(%rip), %rsi      # 0x9849
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21d0
testq %r15, %r15
je 0x78d8
leaq 0x1f64(%rip), %rdx      # 0x97ec
leaq 0x30(%rsp), %rbx
movl $0x1e, %esi
movq %rbx, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0x2130
cmpl $0x1, (%r15)
leaq 0x1f8e(%rip), %rax      # 0x9838
leaq 0x1f8b(%rip), %rbp      # 0x983c
cmoveq %rax, %rbp
movq %r15, %rdi
callq *0x8(%rsp)
leaq 0x1f2e(%rip), %rsi      # 0x97f1
movq %r14, %rdi
movq %rbx, %rdx
movq %rbp, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x21d0
jmp 0x790a
leaq 0x1fca(%rip), %rdx      # 0x98a9
leaq 0x30(%rsp), %rbx
movl $0x1e, %esi
movq %rbx, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0x2130
leaq 0x1f4c(%rip), %rsi      # 0x9849
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21d0
leaq 0x1f9f(%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 0x7940
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x77cc
testq %r15, %r15
je 0x7953
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x77cc
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq