// File: /workspace/github_cpp_makefile_star2_O2/fjamour[P]icentral/src/bicon.cc
// Function: graph_t::i_edge_bcc_dfs_visitor(unsigned int, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, std::vector<unsigned int, std::allocator<unsigned int>>&, std::stack<std::pair<unsigned int, unsigned int>, std::deque<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>>&, int&)
void graph_t::i_edge_bcc_dfs_visitor(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[u] = 1;           //1 means grey
    d_vec[u] = ++time;
    low_vec[u] = d_vec[u];
    vector<node_id_t> nbr_vec = get_nbrs(u);
    int tree_edge_cnt = 0;
    for(int i = 0; i < nbr_vec.size(); ++i) {
        node_id_t v = nbr_vec[i];
        if(color_vec[v] == 0) { // (u, v) is a tree edge
            edge_stack.push(make_pair(u, v));
            pred_vec[v] = u;
            tree_edge_cnt++;
            /// f() starts
            i_edge_bcc_dfs_visitor(v,
                    color_vec,
                    low_vec,
                    d_vec,
                    pred_vec,
                    edge_stack,
                    time);
            /// g() starts
            low_vec[u] = min(low_vec[u], low_vec[v]);
            bool flush_edges = (low_vec[v] >= d_vec[u] && pred_vec[u] != -1);
            flush_edges |= (pred_vec[u] == -1 && tree_edge_cnt >= 2);
            if(flush_edges) {
                // u is an articulation point, ready to output a bcc
                edge_t last_edge = make_pair(u, v);
                edge_t e;
                do {
                    e = edge_stack.top();
                    edge_stack.pop();
                } while(e != last_edge);
            }
        } else if(v != pred_vec[u] && d_vec[v] < d_vec[u]) {   // (u, v) is a back edge
            edge_stack.push(make_pair(u, v));
            low_vec[u] = min(low_vec[u], d_vec[v]);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, 0x10(%rsp)
movq %rdx, %r14
movl %esi, %ebp
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %r13
movl %esi, %esi
movq (%r14), %rax
movl $0x1, (%rax,%rsi,4)
movl (%rdx), %eax
incl %eax
movl %eax, (%rdx)
movq %r8, 0x8(%rsp)
movq (%r8), %rdx
movl %eax, (%rdx,%rsi,4)
movq %rcx, 0x30(%rsp)
movq (%rcx), %rcx
movq %rsi, 0x18(%rsp)
movl %eax, (%rcx,%rsi,4)
movq %rdi, 0x38(%rsp)
movl %ebp, %esi
callq 0x18b4c
leaq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0x4ba0
xorl %r12d, %r12d
movq $0x0, (%rsp)
movq %r14, 0x28(%rsp)
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r12, %rcx
jbe 0x1132b
movl (%rax,%r12,4), %r15d
movq (%r14), %rax
cmpl $0x0, (%rax,%r15,4)
je 0x1123e
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rbx
cmpl (%rax,%rbx,4), %r15d
je 0x11323
movq 0x8(%rsp), %rax
movq (%rax), %rax
movl (%rax,%r15,4), %ecx
cmpl (%rax,%rbx,4), %ecx
jge 0x11323
movq %r15, %rax
shlq $0x20, %rax
orq %rbx, %rax
movq %rax, 0x20(%rsp)
movq %r13, %rdi
leaq 0x20(%rsp), %rsi
callq 0x11e22
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rsp), %rcx
movq (%rcx), %rcx
movl (%rcx,%r15,4), %ecx
movl (%rax,%rbx,4), %edx
cmpl %edx, %ecx
cmovll %ecx, %edx
movl %edx, (%rax,%rbx,4)
jmp 0x11323
movq %r15, %rax
shlq $0x20, %rax
addq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
movq %r13, %rdi
leaq 0x20(%rsp), %rsi
callq 0x11e22
movq 0x10(%rsp), %r9
movq (%r9), %rax
movl %ebp, (%rax,%r15,4)
movq 0x38(%rsp), %rdi
movl %r15d, %esi
movq %r14, %rdx
movq 0x30(%rsp), %r14
movq %r14, %rcx
movq 0x8(%rsp), %rbx
movq %rbx, %r8
pushq 0x98(%rsp)
pushq %r13
callq 0x1112c
popq %rax
popq %rcx
movq (%rsp), %rdi
leal 0x1(%rdi), %r8d
movq (%r14), %rax
movl (%rax,%r15,4), %ecx
movq 0x18(%rsp), %rsi
movl (%rax,%rsi,4), %edx
cmpl %edx, %ecx
cmovll %ecx, %edx
movl %edx, (%rax,%rsi,4)
movl (%rax,%r15,4), %eax
movq (%rbx), %rcx
cmpl (%rcx,%rsi,4), %eax
setge %dl
movq 0x10(%rsp), %rax
movq (%rax), %rax
cmpl $-0x1, (%rax,%rsi,4)
setne %al
testl %edi, %edi
setle %cl
testb %al, %dl
jne 0x112e0
orb %cl, %al
je 0x112e0
movl %r8d, %eax
jmp 0x1131a
movl %r8d, (%rsp)
movq 0x30(%r13), %rax
cmpq 0x38(%r13), %rax
jne 0x112fe
movq 0x48(%r13), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movl -0x8(%rax), %r14d
movl -0x4(%rax), %ebx
movq %r13, %rdi
callq 0x12082
cmpl %ebp, %r14d
jne 0x112e4
cmpl %r15d, %ebx
jne 0x112e4
movl (%rsp), %eax
movq %rax, (%rsp)
movq 0x28(%rsp), %r14
incq %r12
jmp 0x111aa
leaq 0x40(%rsp), %rdi
callq 0x56ec
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11348
jmp 0x11348
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x56ec
movq %rbx, %rdi
callq 0x23d0
nop