// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/src/IndependentSetConstraint.cpp
// Function: IndependentSetConstraint::DFSRight[abi:cxx11](newick_node*, newick_node*)
dLN IndependentSetConstraint::DFSRight(newick_node* nodel, newick_node* noder)
{
    double w = D[nodel->taxoni][noder->taxoni], sum = 0;
    LN V;

    for (newick_child* child = noder->child; child; child = child->next)
    {
        double ww;
        LN T;
        tie(ww, T) = DFSRight(nodel, child->node);
        sum += ww;
        V.splice(V.begin(), T);
    }

    if (sum > w)
        return make_pair(sum, V);
    return make_pair(w, LN(1, noder));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, 0x18(%rsp)
movq %rcx, 0x70(%rsp)
movslq 0x28(%rdx), %rax
movq 0x38(%rsi), %rdx
leaq (%rax,%rax,2), %rax
movslq 0x28(%rcx), %rsi
movq (%rdx,%rax,8), %rax
movsd (%rax,%rsi,8), %xmm0
movsd %xmm0, 0x20(%rsp)
leaq 0x28(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq $0x0, 0x10(%rax)
movq (%rcx), %rbx
xorpd %xmm0, %xmm0
testq %rbx, %rbx
je 0x3afe6
leaq 0x58(%rsp), %r13
movq %rsp, %r14
movsd %xmm0, 0x48(%rsp)
movq %r14, 0x8(%rsp)
movq %r14, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rbx), %rcx
leaq 0x50(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3aeb6
movsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movq %r14, %rdi
movq %r13, %rsi
callq 0x3b304
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x3af80
movq (%rdi), %rbp
movl $0x18, %esi
callq 0x9350
movq %rbp, %rdi
cmpq %r13, %rbp
jne 0x3af6b
movq (%rsp), %rax
cmpq %r14, %rax
je 0x3afb0
movq 0x28(%rsp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x9190
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
addq %rcx, 0x38(%rsp)
movq $0x0, 0x10(%rsp)
cmpq %r14, %rax
je 0x3afcd
movq (%rax), %rbp
movl $0x18, %esi
movq %rax, %rdi
callq 0x9350
movq %rbp, %rax
cmpq %r14, %rbp
jne 0x3afb5
movsd 0x48(%rsp), %xmm0
addsd 0x40(%rsp), %xmm0
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x3af1f
ucomisd 0x20(%rsp), %xmm0
jbe 0x3b00f
movq 0x18(%rsp), %r12
movsd %xmm0, (%r12)
leaq 0x8(%r12), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x28(%rsp), %r15
callq 0x3b272
jmp 0x3b07b
leaq 0x50(%rsp), %r14
leaq 0x70(%rsp), %rdx
movq %rsp, %rcx
movl $0x1, %esi
movq %r14, %rdi
leaq 0x28(%rsp), %r15
callq 0x3b228
movq 0x18(%rsp), %r12
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%r12)
leaq 0x8(%r12), %rax
movq 0x50(%rsp), %rcx
movq %rcx, 0x8(%r12)
movq 0x58(%rsp), %rdx
movq %rdx, 0x10(%r12)
movq 0x60(%rsp), %rsi
movq %rsi, 0x18(%r12)
cmpq %r14, %rcx
je 0x3b070
movq %rax, (%rdx)
addq $0x8, %rcx
jmp 0x3b078
movq %rax, 0x10(%r12)
movq %rax, %rcx
movq %rax, (%rcx)
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x3b09a
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x9350
movq %rbx, %rdi
cmpq %r15, %rbx
jne 0x3b085
movq %r12, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3b0ae
movq %rax, %r15
jmp 0x3b0d4
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x3b0d4
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x9350
movq %rbx, %rdi
cmpq %r14, %rbx
jne 0x3b0bf
movq 0x28(%rsp), %rdi
leaq 0x28(%rsp), %r14
cmpq %r14, %rdi
je 0x3b0f8
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x9350
movq %rbx, %rdi
cmpq %r14, %rbx
jne 0x3b0e3
movq %r15, %rdi
callq 0x9680