// File: /workspace/github_cpp_makefile_star2_O1/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 0x15e34
movq %r14, %rdi
callq 0x1e160
leaq 0x60(%rsp), %rdi
movq %rax, %rsi
callq 0xd7da
movq %r14, %rdi
callq 0x1e160
leaq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0xd7da
movq %r14, %rdi
callq 0x1e160
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0xd7da
movq %r14, %rdi
callq 0x1e160
movq %rsp, %rdi
movq %rax, %rsi
callq 0x1537c
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rdx
cmpq %rdx, %rdi
je 0x14d8b
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 0x14db3
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 0x14ddb
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 0x14e02
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 0x14e3d
sarq $0x2, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %edx, %edx
cmpl %r12d, (%rax,%rdx,4)
jne 0x14e35
movl (%rax), %esi
movl %esi, (%rax,%rdx,4)
movl %r12d, (%rax)
incq %rdx
cmpq %rdx, %rcx
jne 0x14e27
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 0x14ffe
addq $0x10, %rsp
movl $0x200, %r15d           # imm = 0x200
movq 0xb0(%rsp), %rax
cmpq 0x90(%rsp), %rax
je 0x14f0b
movq 0xb8(%rsp), %rdi
movq %rax, %rcx
cmpq %rdi, %rax
jne 0x14ea0
movq 0xc8(%rsp), %rcx
movq -0x8(%rcx), %rcx
addq %r15, %rcx
movl -0x8(%rcx), %ebp
movl -0x4(%rcx), %r14d
cmpq %rdi, %rax
je 0x14eb2
addq $-0x8, %rax
jmp 0x14ef1
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 $0x1f8, %rax            # imm = 0x1F8
movq %rax, 0xb0(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x1c440
jmp 0x14e6b
leaq 0x80(%rsp), %rdi
callq 0x15846
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x14f2e
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x14f45
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x14f5c
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x14f73
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 0x14f9a
jmp 0x14f8a
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x15846
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x14fb0
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x14fc7
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x14fde
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x14ff5
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x23b0
nop