// File: /workspace/github_cpp_makefile_star2_O1/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), %r15
movq %rsi, 0x20(%rsp)
movq 0x8(%rsi), %r12
cmpq %r15, %r12
je 0x1cb2d
movq %r15, %rbx
movq %rbx, %rdi
callq 0x15750
addq $0x2a8, %rbx            # imm = 0x2A8
cmpq %r12, %rbx
jne 0x1cb10
movq 0x20(%rsp), %rax
movq %r15, 0x8(%rax)
leaq 0x17(%rsp), %rax
leaq 0x10(%rsp), %r10
leaq 0x80(%rsp), %rbx
leaq 0xc(%rsp), %rdx
leaq 0xb0(%rsp), %rcx
leaq 0x30(%rsp), %r8
leaq 0x8(%rsp), %r9
movl $0xa, %esi
movq %rbx, %rdi
pushq %rax
pushq %r10
callq 0x15b26
addq $0x10, %rsp
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x1d530
movq 0x88(%rsp), %rax
movq (%rax), %rdx
testq %rdx, %rdx
jne 0x1cb91
movq 0x8(%rax), %rdx
addq $0x8, %rax
jmp 0x1cb82
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %rax
movq 0x90(%rsp), %rcx
cmpq (%rax,%rcx,8), %rdx
je 0x1cdb0
leaq 0xb0(%rsp), %r15
leaq 0xc(%rsp), %rbp
leaq 0x80(%rsp), %r13
leaq 0x8(%rsp), %rbx
cmpb $0x0, 0x4(%rdx)
jne 0x1cd6f
movq %rdx, 0x28(%rsp)
movq %r15, %rdi
callq 0x153ae
movq 0x28(%rsp), %rax
movl (%rax), %esi
movl %esi, 0x10(%rsp)
movb $0x1, 0x4(%rax)
movq %r15, %rdi
callq 0x1c396
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
callq 0x6b50
movq 0x60(%rsp), %rax
movq 0x70(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1cc44
movl 0x10(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x60(%rsp)
jmp 0x1cc53
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x7644
movq 0x40(%rsp), %rax
cmpq %rax, 0x60(%rsp)
je 0x1cd4b
movl (%rax), %ecx
movl %ecx, 0xc(%rsp)
movq 0x50(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1cc7d
addq $0x4, %rax
jmp 0x1ccaf
movq 0x48(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2250
movq 0x58(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x58(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x48(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x50(%rsp)
movq %rax, 0x40(%rsp)
xorl %r12d, %r12d
movq %r14, %rdi
movq %rbp, %rsi
callq 0x12762
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
cmpq %r12, %rcx
jbe 0x1cc53
movq %r14, %rdi
movq %rbp, %rsi
callq 0x12762
movq (%rax), %rax
movl (%rax,%r12,4), %edx
movl %edx, 0x8(%rsp)
movl 0xc(%rsp), %esi
movq %r15, %rdi
callq 0x1c440
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1d5da
cmpb $0x0, (%rax)
jne 0x1cd43
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1d5da
movb $0x1, (%rax)
movq 0x60(%rsp), %rax
movq 0x70(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1cd36
movl 0x8(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x60(%rsp)
jmp 0x1cd43
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x7644
incq %r12
jmp 0x1ccb7
movq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x15720
leaq 0x30(%rsp), %rdi
callq 0x6998
movq %r15, %rdi
callq 0x15750
movq 0x28(%rsp), %rdx
movq 0x8(%rdx), %rdx
testq %rdx, %rdx
je 0x1cd7f
movq 0x18(%rsp), %rax
jmp 0x1cd91
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdx
addq $0x8, %rax
testq %rdx, %rdx
je 0x1cd84
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %rax
movq 0x90(%rsp), %rcx
cmpq (%rax,%rcx,8), %rdx
jne 0x1cbca
leaq 0x80(%rsp), %rdi
callq 0x15896
addq $0x358, %rsp            # imm = 0x358
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1cdd1
movq %rax, %rbx
jmp 0x1cdfb
jmp 0x1cdd8
movq %rax, %rbx
jmp 0x1cdee
jmp 0x1cde1
jmp 0x1cde1
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x6998
leaq 0xb0(%rsp), %rdi
callq 0x15750
leaq 0x80(%rsp), %rdi
callq 0x15896
movq %rbx, %rdi
callq 0x23b0