// File: /workspace/github_cpp_makefile_star2_O2/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)
andq $0x0, 0x70(%rsp)
movaps %xmm0, 0x40(%rsp)
andq $0x0, 0x50(%rsp)
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
leaq 0x80(%rsp), %r15
movq %r15, %rdi
callq 0x1144c
movq %r14, %rdi
callq 0x18d3c
leaq 0x60(%rsp), %rdi
movq %rax, %rsi
callq 0xafb8
movq %r14, %rdi
callq 0x18d3c
leaq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0xafb8
movq %r14, %rdi
callq 0x18d3c
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0xafb8
movq %r14, %rdi
callq 0x18d3c
movq %rsp, %rdi
movq %rax, %rsi
callq 0x1141a
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rcx
cmpq %rcx, %rax
je 0x10fac
andl $0x0, (%rax)
addq $0x4, %rax
jmp 0x10f9e
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
cmpq %rcx, %rax
je 0x10fc4
orl $-0x1, (%rax)
addq $0x4, %rax
jmp 0x10fb6
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq %rcx, %rax
je 0x10fdc
orl $-0x1, (%rax)
addq $0x4, %rax
jmp 0x10fce
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
cmpq %rcx, %rax
je 0x10ff3
orl $-0x1, (%rax)
addq $0x4, %rax
jmp 0x10fe5
movl %ebp, %eax
movq (%r14), %rcx
imulq $0x18, %rax, %rdx
movq (%rcx,%rdx), %rax
movq 0x8(%rcx,%rdx), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x11026
cmpl %r12d, (%rax,%rdx,4)
jne 0x11021
movl (%rax), %esi
movl %esi, (%rax,%rdx,4)
movl %r12d, (%rax)
incq %rdx
jmp 0x1100e
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 0x1112c
popq %rax
popq %rcx
movl $0x200, %r12d           # imm = 0x200
leaq 0x80(%rsp), %r14
movq 0xb0(%rsp), %rax
cmpq 0x90(%rsp), %rax
je 0x110a3
cmpq 0xb8(%rsp), %rax
jne 0x11085
movq 0xc8(%rsp), %rax
movq -0x8(%rax), %rax
addq %r12, %rax
movl -0x8(%rax), %ebp
movl -0x4(%rax), %r15d
movq %r14, %rdi
callq 0x12082
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x1756e
jmp 0x1105a
leaq 0x80(%rsp), %rdi
callq 0x11822
movq %rsp, %rdi
callq 0x56ec
leaq 0x20(%rsp), %rdi
callq 0x5720
leaq 0x40(%rsp), %rdi
callq 0x5720
leaq 0x60(%rsp), %rdi
callq 0x5720
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x110fd
jmp 0x110ed
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x11822
movq %rsp, %rdi
callq 0x56ec
leaq 0x20(%rsp), %rdi
callq 0x5720
leaq 0x40(%rsp), %rdi
callq 0x5720
leaq 0x60(%rsp), %rdi
callq 0x5720
movq %rbx, %rdi
callq 0x23d0
nop