// File: /workspace/github_cpp_makefile_star2_O3/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 0x1c9f9
movq %r15, %rbx
movq %rbx, %rdi
callq 0x15650
addq $0x2a8, %rbx            # imm = 0x2A8
cmpq %r12, %rbx
jne 0x1c9dc
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 0x15a34
addq $0x10, %rsp
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x1d41a
movq 0x88(%rsp), %rax
movq (%rax), %rdx
movq %rax, %rcx
testq %rdx, %rdx
jne 0x1ca66
movq %rax, %rcx
movq 0x8(%rcx), %rdx
addq $0x8, %rcx
testq %rdx, %rdx
je 0x1ca59
movq %rcx, 0x18(%rsp)
movq 0x90(%rsp), %rcx
cmpq (%rax,%rcx,8), %rdx
je 0x1cc90
leaq 0xb0(%rsp), %r15
leaq 0xc(%rsp), %rbp
leaq 0x80(%rsp), %r13
leaq 0x8(%rsp), %rbx
cmpb $0x0, 0x4(%rdx)
jne 0x1cc4f
movq %rdx, 0x28(%rsp)
movq %r15, %rdi
callq 0x152ae
movq 0x28(%rsp), %rax
movl (%rax), %esi
movl %esi, 0x10(%rsp)
movb $0x1, 0x4(%rax)
movq %r15, %rdi
callq 0x1c28e
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 0x6ad0
movq 0x60(%rsp), %rcx
movq 0x70(%rsp), %rax
addq $-0x4, %rax
cmpq %rax, %rcx
je 0x1cb11
movl 0x10(%rsp), %eax
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x60(%rsp)
jmp 0x1cb25
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x75be
movq 0x60(%rsp), %rcx
movq 0x40(%rsp), %rax
cmpq %rax, %rcx
je 0x1cc2b
movl (%rax), %ecx
movl %ecx, 0xc(%rsp)
movq 0x50(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1cb4d
addq $0x4, %rax
jmp 0x1cb7f
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 0x126b8
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
cmpq %r12, %rcx
jbe 0x1cc1b
movq %r14, %rdi
movq %rbp, %rsi
callq 0x126b8
movq (%rax), %rax
movl (%rax,%r12,4), %edx
movl %edx, 0x8(%rsp)
movl 0xc(%rsp), %esi
movq %r15, %rdi
callq 0x1c320
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1d4c8
cmpb $0x0, (%rax)
jne 0x1cc13
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1d4c8
movb $0x1, (%rax)
movq 0x60(%rsp), %rax
movq 0x70(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1cc06
movl 0x8(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x60(%rsp)
jmp 0x1cc13
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x75be
incq %r12
jmp 0x1cb87
movq 0x40(%rsp), %rax
cmpq %rax, 0x60(%rsp)
jne 0x1cb33
movq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x15620
leaq 0x30(%rsp), %rdi
callq 0x690a
movq %r15, %rdi
callq 0x15650
movq 0x28(%rsp), %rdx
movq 0x8(%rdx), %rdx
testq %rdx, %rdx
je 0x1cc5f
movq 0x18(%rsp), %rax
jmp 0x1cc71
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdx
addq $0x8, %rax
testq %rdx, %rdx
je 0x1cc64
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %rax
movq 0x90(%rsp), %rcx
cmpq (%rax,%rcx,8), %rdx
jne 0x1ca97
leaq 0x80(%rsp), %rdi
callq 0x157a4
addq $0x358, %rsp            # imm = 0x358
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1ccb1
movq %rax, %rbx
jmp 0x1ccdb
jmp 0x1ccb8
movq %rax, %rbx
jmp 0x1ccce
jmp 0x1ccc1
jmp 0x1ccc1
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x690a
leaq 0xb0(%rsp), %rdi
callq 0x15650
leaq 0x80(%rsp), %rdi
callq 0x157a4
movq %rbx, %rdi
callq 0x23b0