// File: /workspace/github_cpp_makefile_star2_O2/fjamour[P]icentral/src/bicon.cc
// Function: graph_t::i_art_point_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>>&, int&, std::vector<unsigned int, std::allocator<unsigned int>>&)
void graph_t::i_art_point_dfs_visitor(node_id_t u,
                          vector<int>& color_vec,
                          vector<int>& low_vec,
                          vector<int>& d_vec,
                          vector<node_id_t>& pred_vec,
                          int& time,
                          vector<node_id_t>& art_point_vec)
{
    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
            pred_vec[v] = u;
            tree_edge_cnt++;
            i_art_point_dfs_visitor(v, color_vec, low_vec, d_vec, pred_vec, time, art_point_vec);
            low_vec[u] = min(low_vec[u], low_vec[v]);
            if(pred_vec[u] == -1) {     //this is the root of the tree
                //if v is u's second child then u is art vertex
                if(tree_edge_cnt > 1) {
                    art_point_vec.push_back(u);
                }
            } else if(low_vec[v] >= d_vec[u]) {
                art_point_vec.push_back(u);
            }
        } else if(v != pred_vec[u]) {   // (u, v) is a back edge
            low_vec[u] = min(low_vec[u], d_vec[v]);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %rbx
movq %rdx, %r12
movq 0x70(%rsp), %r10
leaq 0x4(%rsp), %rax
movl %esi, (%rax)
movl %esi, %eax
movq (%rdx), %rdx
movl $0x1, (%rdx,%rax,4)
movl (%r10), %r9d
incl %r9d
movl %r9d, (%r10)
movq %r8, 0x8(%rsp)
movq (%r8), %rdx
movl %r9d, (%rdx,%rax,4)
movq %rcx, 0x10(%rsp)
movq (%rcx), %rdx
movl %r9d, (%rdx,%rax,4)
movq %rdi, 0x18(%rsp)
callq 0x18b4c
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x4ba0
xorl %r13d, %r13d
xorl %r14d, %r14d
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r13, %rcx
jbe 0x10a9b
movl (%rax,%r13,4), %ebp
movq (%r12), %rax
cmpl $0x0, (%rax,%rbp,4)
movl 0x4(%rsp), %eax
je 0x10a13
movq (%rbx), %rcx
cmpl (%rcx,%rax,4), %ebp
je 0x10a0e
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
movq 0x8(%rsp), %rdx
movq (%rdx), %rdx
movl (%rdx,%rbp,4), %edx
movl (%rcx,%rax,4), %esi
cmpl %esi, %edx
cmovll %edx, %esi
movl %esi, (%rcx,%rax,4)
movl %r14d, %r15d
jmp 0x10a90
movq (%rbx), %rcx
movl %eax, (%rcx,%rbp,4)
movq 0x18(%rsp), %rdi
movl %ebp, %esi
movq %r12, %rdx
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %r8
movq %rbx, %r9
pushq 0x78(%rsp)
pushq 0x78(%rsp)
callq 0x10952
popq %rax
popq %rcx
leal 0x1(%r14), %r15d
movl 0x4(%rsp), %ecx
movq 0x10(%rsp), %rax
movq (%rax), %rax
movl (%rax,%rbp,4), %edx
movl (%rax,%rcx,4), %esi
cmpl %esi, %edx
cmovll %edx, %esi
movl %esi, (%rax,%rcx,4)
movl 0x4(%rsp), %ecx
movq (%rbx), %rdx
cmpl $-0x1, (%rdx,%rcx,4)
je 0x10a7c
movl (%rax,%rbp,4), %eax
movq 0x8(%rsp), %rdx
movq (%rdx), %rdx
cmpl (%rdx,%rcx,4), %eax
jge 0x10a81
jmp 0x10a90
testl %r14d, %r14d
jle 0x10a90
movq 0x78(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x478c
incq %r13
movl %r15d, %r14d
jmp 0x109bc
leaq 0x20(%rsp), %rdi
callq 0x56ec
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x56ec
movq %rbx, %rdi
callq 0x23d0
nop