// File: /workspace/github_cpp_makefile_star2_O2/fjamour[P]icentral/src/graph_hash_t.cc
// Function: graph_hash_t::find_conn_comp(std::vector<graph_hash_t, std::allocator<graph_hash_t>>&)
void graph_hash_t::find_conn_comp(vector<graph_hash_t>& out_vec)
{
    out_vec.clear();
    tr1_map_t(bool) visited_map;
    i_fill_map<bool>(visited_map, false);
    for(tr1::unordered_map<node_id_t, bool>::iterator it = visited_map.begin(); it != visited_map.end(); ++it) {
        if(!it->second) {
            graph_hash_t g;
            node_id_t s = it->first;
            it->second = true;
            g.insert_node(s);
            //do a BFS from s, count the number of vertices, and mark the visited
            queue<node_id_t> q;
            q.push(s);
            while(!q.empty()) {
                node_id_t node = q.front(); q.pop();
                for(int i = 0; i < nodes_map[node].nbrs_vec.size(); ++i) {
                    node_id_t nbr = nodes_map[node].nbrs_vec[i];
                    g.insert_edge(node, nbr);
                    if(!visited_map[nbr]) {
                        visited_map[nbr] = true;
                        q.push(nbr);
                    }
                }
            }
            out_vec.push_back(g);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x358, %rsp            # imm = 0x358
movq %rdi, %r14
movq %rsi, 0x28(%rsp)
movq %rsi, %rdi
callq 0x1835e
leaq 0x30(%rsp), %rbx
pushq $0xa
popq %rsi
leaq 0xb0(%rsp), %rdx
leaq 0x60(%rsp), %rcx
leaq 0x18(%rsp), %r8
movq %rbx, %rdi
callq 0x119a2
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x181c8
leaq 0x30(%rsp), %rdi
callq 0x182ce
leaq 0x18(%rsp), %rcx
movq %rax, (%rcx)
movq %rdx, 0x8(%rcx)
leaq 0xb0(%rsp), %r12
leaq 0xc(%rsp), %rbp
leaq 0x30(%rsp), %rbx
leaq 0x10(%rsp), %r15
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
je 0x17bf2
cmpb $0x0, 0x4(%rax)
jne 0x17bde
movq %r12, %rdi
callq 0x11468
movq 0x18(%rsp), %rax
movl (%rax), %esi
movl %esi, 0x14(%rsp)
movb $0x1, 0x4(%rax)
movq %r12, %rdi
callq 0x174b0
leaq 0x60(%rsp), %r13
movq %r13, %rdi
callq 0x4a40
movq %r13, %rdi
leaq 0x14(%rsp), %rsi
callq 0x62da
movq 0x70(%rsp), %rax
cmpq %rax, 0x90(%rsp)
je 0x17bbf
movl (%rax), %eax
movl %eax, 0xc(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x650e
xorl %r13d, %r13d
movq %r14, %rdi
movq %rbp, %rsi
callq 0xf182
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
cmpq %r13, %rcx
jbe 0x17b2c
movq %r14, %rdi
movq %rbp, %rsi
callq 0xf182
movq (%rax), %rax
movl (%rax,%r13,4), %edx
movl %edx, 0x10(%rsp)
movl 0xc(%rsp), %esi
movq %r12, %rdi
callq 0x1756e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x18300
cmpb $0x0, (%rax)
jne 0x17bba
movq %rbx, %rdi
movq %r15, %rsi
callq 0x18300
movb $0x1, (%rax)
leaq 0x60(%rsp), %rdi
movq %r15, %rsi
callq 0x62da
incq %r13
jmp 0x17b52
movq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x1170e
leaq 0x60(%rsp), %rdi
callq 0x5280
movq %r12, %rdi
callq 0x1173e
leaq 0x18(%rsp), %rdi
callq 0x18b08
movq 0x18(%rsp), %rax
jmp 0x17ad5
leaq 0x30(%rsp), %rdi
callq 0x1187a
addq $0x358, %rsp            # imm = 0x358
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x17c12
jmp 0x17c12
movq %rax, %rbx
jmp 0x17c3c
jmp 0x17c19
movq %rax, %rbx
jmp 0x17c2f
jmp 0x17c22
jmp 0x17c22
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x5280
leaq 0xb0(%rsp), %rdi
callq 0x1173e
leaq 0x30(%rsp), %rdi
callq 0x1187a
movq %rbx, %rdi
callq 0x23d0