// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x68(%rbp)
je 0xbdff
leaq -0x40(%rbp), %rdi
movq -0x68(%rbp), %rcx
movl $0x1e, %esi
leaq 0x3b65(%rip), %rdx      # 0xf8ff
movb $0x0, %al
callq 0x2130
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x68(%rbp), %rax
movl (%rax), %edx
leaq 0x3b8e(%rip), %rax      # 0xf94f
leaq 0x3b83(%rip), %rcx      # 0xf94b
cmpl $0x1, %edx
cmoveq %rcx, %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rax
movq -0x68(%rbp), %rdi
callq *%rax
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rdx
movq -0x78(%rbp), %rcx
movq %rax, %r8
leaq 0x3b0e(%rip), %rsi      # 0xf904
movb $0x0, %al
callq 0x21d0
jmp 0xbe30
leaq -0x40(%rbp), %rdi
movq -0x8(%rbp), %rcx
movl $0x1e, %esi
leaq 0x3b42(%rip), %rdx      # 0xf955
movb $0x0, %al
callq 0x2130
movq -0x10(%rbp), %rdi
leaq -0x40(%rbp), %rdx
leaq 0x3b33(%rip), %rsi      # 0xf95c
movb $0x0, %al
callq 0x21d0
cmpq $0x0, -0x70(%rbp)
je 0xbec0
leaq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rcx
movl $0x1e, %esi
leaq 0x3ab0(%rip), %rdx      # 0xf8ff
movb $0x0, %al
callq 0x2130
movq -0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x70(%rbp), %rax
movl (%rax), %edx
leaq 0x3ad6(%rip), %rax      # 0xf94f
leaq 0x3acb(%rip), %rcx      # 0xf94b
cmpl $0x1, %edx
cmoveq %rcx, %rax
movq %rax, -0x90(%rbp)
movq -0x18(%rbp), %rax
movq -0x70(%rbp), %rdi
callq *%rax
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rdx
movq -0x90(%rbp), %rcx
movq %rax, %r8
leaq 0x3a4d(%rip), %rsi      # 0xf904
movb $0x0, %al
callq 0x21d0
jmp 0xbef1
leaq -0x60(%rbp), %rdi
movq -0x8(%rbp), %rcx
movl $0x1e, %esi
leaq 0x3ae8(%rip), %rdx      # 0xf9bc
movb $0x0, %al
callq 0x2130
movq -0x10(%rbp), %rdi
leaq -0x60(%rbp), %rdx
leaq 0x3a72(%rip), %rsi      # 0xf95c
movb $0x0, %al
callq 0x21d0
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rdx
leaq -0x40(%rbp), %rcx
leaq -0x60(%rbp), %r8
leaq 0x3abb(%rip), %rsi      # 0xf9c3
movb $0x0, %al
callq 0x21d0
cmpq $0x0, -0x68(%rbp)
je 0xbf27
movq -0x68(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0xbd50
cmpq $0x0, -0x70(%rbp)
je 0xbf3f
movq -0x70(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0xbd50
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax,%rax)