// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/bicon.cc
// Function: graph_t::find_edge_bcc_subgraph(graph_hash_t&, unsigned int, unsigned int)
void graph_t::find_edge_bcc_subgraph(graph_hash_t& bcc, node_id_t src, node_id_t dst)
{
    node_id_t u;
    vector<int> color_vec;
    vector<int> low_vec;
    vector<int> d_vec;
    vector<node_id_t> pred_vec;
    stack<edge_t> edge_stack;
    int time;
    
    color_vec.resize(size());
    low_vec.resize(size());
    d_vec.resize(size());
    pred_vec.resize(size());
    fill(color_vec.begin(), color_vec.end(), 0);
    fill(low_vec.begin(), low_vec.end(), -1);
    fill(d_vec.begin(), d_vec.end(), -1);
    fill(pred_vec.begin(), pred_vec.end(), -1);
    
    //(src, dst) needs to be the first edge to recurse from
    //IMP: explain this clearly
    //Jun 16, 2014.. I have no idea why!
    for(int i = 0; i < nodes_vec[src].nbrs_vec.size(); ++i) {
        if(nodes_vec[src].nbrs_vec[i] == dst) {
            nodes_vec[src].nbrs_vec[i] = nodes_vec[src].nbrs_vec[0];
            nodes_vec[src].nbrs_vec[0] = dst;
        }
    }
    
    i_edge_bcc_dfs_visitor(src,
                    color_vec,
                    low_vec,
                    d_vec,
                    pred_vec,
                    edge_stack,
                    time);
      
    while(!edge_stack.empty()) {
        edge_t e = edge_stack.top();
        edge_stack.pop();
        bcc.insert_edge(e.first, e.second);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd0, %rsp
movl %ecx, %r12d
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
xorl %eax, %eax
movq %rax, 0x70(%rsp)
movq %rax, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movq %rax, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %rax, 0x10(%rsp)
movaps %xmm0, (%rsp)
leaq 0x80(%rsp), %r15
movaps %xmm0, 0x40(%r15)
movaps %xmm0, 0x30(%r15)
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
movq %r15, %rdi
xorl %esi, %esi
callq 0x15d48
movq %r14, %rdi
callq 0x1dfcc
leaq 0x60(%rsp), %rdi
movq %rax, %rsi
callq 0xd848
movq %r14, %rdi
callq 0x1dfcc
leaq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0xd848
movq %r14, %rdi
callq 0x1dfcc
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0xd848
movq %r14, %rdi
callq 0x1dfcc
movq %rsp, %rdi
movq %rax, %rsi
callq 0x1527c
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rdx
cmpq %rdx, %rdi
je 0x14cab
subq %rdi, %rdx
addq $-0x4, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
xorl %esi, %esi
callq 0x2110
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rdx
cmpq %rdx, %rdi
je 0x14cd3
subq %rdi, %rdx
addq $-0x4, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
movl $0xff, %esi
callq 0x2110
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rdx
cmpq %rdx, %rdi
je 0x14cfb
subq %rdi, %rdx
addq $-0x4, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
movl $0xff, %esi
callq 0x2110
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
cmpq %rdx, %rdi
je 0x14d22
subq %rdi, %rdx
addq $-0x4, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
movl $0xff, %esi
callq 0x2110
movl %ebp, %eax
movq (%r14), %rcx
leaq (%rax,%rax,2), %rdx
movq (%rcx,%rdx,8), %rax
movq 0x8(%rcx,%rdx,8), %rcx
subq %rax, %rcx
je 0x14d5d
sarq $0x2, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %edx, %edx
cmpl %r12d, (%rax,%rdx,4)
jne 0x14d55
movl (%rax), %esi
movl %esi, (%rax,%rdx,4)
movl %r12d, (%rax)
incq %rdx
cmpq %rdx, %rcx
jne 0x14d47
leaq 0x7c(%rsp), %rax
leaq 0x60(%rsp), %rdx
leaq 0x40(%rsp), %rcx
leaq 0x20(%rsp), %r8
movq %rsp, %r9
movq %r14, %rdi
movl %ebp, %esi
pushq %rax
pushq %r15
callq 0x14f1c
addq $0x10, %rsp
movl $0x1f8, %r15d           # imm = 0x1F8
movq 0xb0(%rsp), %rcx
cmpq 0x90(%rsp), %rcx
je 0x14e2a
movq 0xb8(%rsp), %rdi
cmpq %rdi, %rcx
je 0x14dbb
leaq -0x8(%rcx), %rax
movl -0x8(%rcx), %ebp
movl -0x4(%rcx), %r14d
jmp 0x14e10
movq 0xc8(%rsp), %rax
movq -0x8(%rax), %rax
movl 0x1f8(%rax), %ebp
movl 0x1fc(%rax), %r14d
movl $0x200, %esi            # imm = 0x200
callq 0x2250
movq 0xc8(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0xc8(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0xb8(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0xc0(%rsp)
addq %r15, %rax
movq %rax, 0xb0(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x1c320
jmp 0x14d8b
leaq 0x80(%rsp), %rdi
callq 0x1574c
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x14e4d
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x14e64
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x14e7b
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x14e92
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x14ecf
jmp 0x14ea9
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x1574c
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x14ecf
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x14ee6
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x14efd
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x14f14
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x23b0