// File: /workspace/github_c_makefile_star2_O3/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 0x78d6
movq %rdx, %rbp
leaq 0x1f44(%rip), %rdx      # 0x97cc
leaq 0x10(%rsp), %rdi
movl $0x1e, %esi
movq %r12, %rcx
xorl %eax, %eax
callq 0x2130
cmpl $0x1, (%r12)
leaq 0x1f70(%rip), %rax      # 0x9818
leaq 0x1f6d(%rip), %rbx      # 0x981c
cmoveq %rax, %rbx
movq %r12, %rdi
callq *%rbp
leaq 0x1f12(%rip), %rsi      # 0x97d1
movq %r14, %rdi
leaq 0x10(%rsp), %rdx
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x21d0
jmp 0x7908
leaq 0x1f45(%rip), %rdx      # 0x9822
leaq 0x10(%rsp), %rbx
movl $0x1e, %esi
movq %rbx, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0x2130
leaq 0x1f2e(%rip), %rsi      # 0x9829
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21d0
testq %r15, %r15
je 0x7964
leaq 0x1eb8(%rip), %rdx      # 0x97cc
leaq 0x30(%rsp), %rbx
movl $0x1e, %esi
movq %rbx, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0x2130
cmpl $0x1, (%r15)
leaq 0x1ee2(%rip), %rax      # 0x9818
leaq 0x1edf(%rip), %rbp      # 0x981c
cmoveq %rax, %rbp
movq %r15, %rdi
callq *0x8(%rsp)
leaq 0x1e82(%rip), %rsi      # 0x97d1
movq %r14, %rdi
movq %rbx, %rdx
movq %rbp, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x21d0
jmp 0x7996
leaq 0x1f1e(%rip), %rdx      # 0x9889
leaq 0x30(%rsp), %rbx
movl $0x1e, %esi
movq %rbx, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0x2130
leaq 0x1ea0(%rip), %rsi      # 0x9829
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21d0
leaq 0x1ef3(%rip), %rsi      # 0x9890
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 0x79cc
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7858
testq %r15, %r15
je 0x79df
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7858
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq