// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: delete_one_child
void delete_one_child( rbtree* tree, rbnode *n)
{
        rbnode *child = n->left != NULL ? n->left : n->right;
        
        if(n->color == BLACK){
                n->color = node_color( child );
                delete_case1 ( tree, n );
        }
        replace_child( tree, n, child);
        
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %r15
testq %r15, %r15
jne 0x74a7
movq 0x10(%r14), %r15
cmpl $0x2, (%r14)
jne 0x765f
testq %r15, %r15
je 0x74bb
movl (%r15), %eax
jmp 0x74c0
movl $0x2, %eax
movl %eax, (%r14)
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0x765f
leaq 0x18(%r14), %r12
movq %r14, %r13
movq 0x8(%rsi), %rax
cmpq %r13, %rax
je 0x74fb
cmpl $0x1, (%rax)
jne 0x7518
movl $0x1, (%rsi)
movl $0x2, (%rax)
movq %rbx, %rdi
callq 0x7b0e
jmp 0x7518
movq 0x10(%rsi), %rax
cmpl $0x1, (%rax)
jne 0x7518
movl $0x1, (%rsi)
movl $0x2, (%rax)
movq %rbx, %rdi
callq 0x7acc
movq (%r12), %rax
movq 0x8(%rax), %rsi
movq %rsi, %rdx
cmpq %r13, %rsi
jne 0x752c
movq 0x10(%rax), %rdx
movl (%rax), %ecx
cmpl $0x2, %ecx
jne 0x7578
testq %rdx, %rdx
je 0x753d
cmpl $0x2, (%rdx)
jne 0x7578
movq 0x8(%rdx), %rdi
testq %rdi, %rdi
je 0x754b
cmpl $0x2, (%rdi)
jne 0x7578
movq 0x10(%rdx), %rdi
testq %rdi, %rdi
je 0x7559
cmpl $0x2, (%rdi)
jne 0x7578
movl $0x1, (%rdx)
leaq 0x18(%rax), %r12
movq 0x18(%rax), %rsi
movq %rax, %r13
testq %rsi, %rsi
jne 0x74d7
jmp 0x765f
movq %rsi, %rdx
cmpq %r13, %rsi
jne 0x7584
movq 0x10(%rax), %rdx
cmpl $0x1, %ecx
jne 0x75c0
testq %rdx, %rdx
je 0x7593
cmpl $0x2, (%rdx)
jne 0x75c0
movq 0x8(%rdx), %rcx
testq %rcx, %rcx
je 0x75a1
cmpl $0x2, (%rcx)
jne 0x75c0
movq 0x10(%rdx), %rcx
testq %rcx, %rcx
je 0x75af
cmpl $0x2, (%rcx)
jne 0x75c0
movl $0x1, (%rdx)
movl $0x2, (%rax)
jmp 0x765f
cmpq %r13, %rsi
je 0x75d0
cmpl $0x2, (%rsi)
jne 0x761a
movq 0x10(%rax), %rax
jmp 0x7611
movq 0x10(%rax), %rax
cmpl $0x2, (%rax)
jne 0x761a
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x75e7
cmpl $0x2, (%rcx)
jne 0x760e
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x760e
cmpl $0x1, (%rcx)
jne 0x760e
movl $0x1, (%rax)
movl $0x2, (%rcx)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7b0e
jmp 0x761a
movq %rax, %rsi
cmpq %r13, %rax
je 0x76a5
movq (%r12), %rsi
movq 0x8(%rsi), %rax
cmpq %r13, %rax
je 0x7642
movl (%rsi), %ecx
movl %ecx, (%rax)
movl $0x2, %ecx
movl %ecx, (%rsi)
movq 0x8(%rax), %rax
movl %ecx, (%rax)
movq %rbx, %rdi
callq 0x7b0e
jmp 0x765f
movq 0x10(%rsi), %rax
movl (%rsi), %ecx
movl %ecx, (%rax)
movl $0x2, %ecx
movl %ecx, (%rsi)
movq 0x10(%rax), %rax
movl %ecx, (%rax)
movq %rbx, %rdi
callq 0x7acc
movq 0x18(%r14), %rax
testq %r15, %r15
je 0x767d
movq %rax, 0x18(%r15)
testq %rax, %rax
jne 0x7682
movq %r15, (%rbx)
movl $0x2, (%r15)
jmp 0x769b
testq %rax, %rax
je 0x7694
cmpq %r14, 0x8(%rax)
je 0x768e
movq %r15, 0x10(%rax)
jmp 0x769b
movq %r15, 0x8(%rax)
jmp 0x769b
movq $0x0, (%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x76b7
cmpl $0x2, (%rax)
jne 0x761a
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x761a
cmpl $0x1, (%rax)
jne 0x761a
movl $0x1, (%rsi)
movl $0x2, (%rax)
movq %rbx, %rdi
callq 0x7acc
jmp 0x761a