// File: /workspace/github_cpp_makefile_star2_O1/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 0x48(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq $0x0, 0x10(%rax)
movq (%rcx), %rbx
xorpd %xmm0, %xmm0
testq %rbx, %rbx
je 0x3b86c
leaq 0x30(%rsp), %r13
movq %rsp, %r14
movsd %xmm0, 0x68(%rsp)
movq %r14, 0x8(%rsp)
movq %r14, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rbx), %rcx
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3b742
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x60(%rsp)
movq %r14, %rdi
movq %r13, %rsi
callq 0x3bbc4
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x3b80c
movq (%rdi), %rbp
movl $0x18, %esi
callq 0x9340
movq %rbp, %rdi
cmpq %r13, %rbp
jne 0x3b7f7
movq (%rsp), %rsi
cmpq %r14, %rsi
je 0x3b835
movq 0x48(%rsp), %rdi
movq %r14, %rdx
callq 0x9190
movq 0x10(%rsp), %rax
addq %rax, 0x58(%rsp)
movq $0x0, 0x10(%rsp)
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x3b853
movq (%rdi), %rbp
movl $0x18, %esi
callq 0x9340
movq %rbp, %rdi
cmpq %r14, %rbp
jne 0x3b83e
movsd 0x68(%rsp), %xmm0
addsd 0x60(%rsp), %xmm0
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x3b7ab
ucomisd 0x20(%rsp), %xmm0
jbe 0x3b898
movq 0x18(%rsp), %r12
movsd %xmm0, (%r12)
leaq 0x8(%r12), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x48(%rsp), %r15
callq 0x3bb32
jmp 0x3b938
leaq 0x28(%rsp), %r14
leaq 0x70(%rsp), %rdx
movq %rsp, %rcx
movl $0x1, %esi
movq %r14, %rdi
leaq 0x48(%rsp), %r15
callq 0x3bae8
movq 0x18(%rsp), %r12
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%r12)
leaq 0x8(%r12), %rax
movq 0x28(%rsp), %rdx
movq %rdx, 0x8(%r12)
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%r12)
movq 0x38(%rsp), %rsi
movq %rsi, 0x18(%r12)
cmpq %r14, %rdx
je 0x3b90f
movq %rax, (%rcx)
movq (%rax), %rcx
movq %rax, 0x8(%rcx)
movq %r14, 0x30(%rsp)
movq %r14, 0x28(%rsp)
movq $0x0, 0x38(%rsp)
jmp 0x3b919
movq %rax, 0x10(%r12)
movq %rax, 0x8(%r12)
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x3b938
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x9340
movq %rbx, %rdi
cmpq %r14, %rbx
jne 0x3b923
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x3b957
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x9340
movq %rbx, %rdi
cmpq %r15, %rbx
jne 0x3b942
movq %r12, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3b96b
movq %rax, %r15
jmp 0x3b991
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x3b991
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x9340
movq %rbx, %rdi
cmpq %r14, %rbx
jne 0x3b97c
movq 0x48(%rsp), %rdi
leaq 0x48(%rsp), %r14
cmpq %r14, %rdi
je 0x3b9b5
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x9340
movq %rbx, %rdi
cmpq %r14, %rbx
jne 0x3b9a0
movq %r15, %rdi
callq 0x9670
nop