// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/subgraph_t.cc
// Function: subgraph_t::conn_comp_sizes(std::vector<int, std::allocator<int>>&)
void subgraph_t::conn_comp_sizes(vector<int>& out_vec)
{
    out_vec.clear();
    vector<bool> visited_vec;
    i_fill_map<bool>(visited_vec, false);
    for(int n_id = 0; n_id < visited_vec.size(); ++n_id) {
        if(!visited_vec[n_id]) {
            node_id_t s = n_id;
            visited_vec[n_id] = true;
            out_vec.push_back(1);
            //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();
                vector<node_id_t> nbr_vec = get_nbrs(node);
                for(int i = 0; i < nbr_vec.size(); ++i) {
                    node_id_t nbr = nbr_vec[i];
                    if(!visited_vec[nbr]) {
                        visited_vec[nbr] = true;
                        q.push(nbr);
                        out_vec.back() = out_vec.back()+1;
                    }
                }
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x2eedc
movq %rax, 0x8(%rbx)
xorl %eax, %eax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movl %eax, 0x8(%rsi)
movq %rax, 0x10(%rsi)
movl %eax, 0x18(%rsi)
movq %rax, 0x20(%rsi)
movq %r14, %rdi
xorl %edx, %edx
callq 0x2f9d6
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rax
movl 0x20(%rsp), %ecx
subq %rdi, %rax
shlq $0x3, %rax
addq %rcx, %rax
je 0x2f137
xorl %r15d, %r15d
leaq 0x50(%rsp), %r12
leaq 0x34(%rsp), %r13
movl $0x1, %eax
movl %r15d, %ecx
shlq %cl, %rax
movq %r15, %rcx
shrq $0x6, %rcx
movq (%rdi,%rcx,8), %rdx
btq %r15, %rdx
jb 0x2f116
movl %r15d, 0x4(%rsp)
orq %rax, %rdx
movq %rdx, (%rdi,%rcx,8)
movl $0x1, 0x50(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2ef77
movl $0x1, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2ef82
movq %rbx, %rdi
movq %r12, %rdx
callq 0x1be56
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movq %r12, %rdi
xorl %esi, %esi
callq 0x6b50
movq 0x80(%rsp), %rax
movq 0x90(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x2efde
movl 0x4(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x80(%rsp)
jmp 0x2f0fb
movq %r12, %rdi
leaq 0x4(%rsp), %rsi
callq 0x7644
jmp 0x2f0fb
movl (%rax), %ebp
movq 0x70(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x2f006
addq $0x4, %rax
jmp 0x2f038
movq 0x68(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2250
movq 0x78(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x78(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x68(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x60(%rsp)
leaq (,%rbp,2), %rsi
addq %rbp, %rsi
shlq $0x3, %rsi
addq (%r14), %rsi
leaq 0x38(%rsp), %rdi
callq 0x61a0
movq 0x38(%rsp), %rdi
cmpq %rdi, 0x40(%rsp)
je 0x2f0e9
xorl %ebp, %ebp
movl (%rdi,%rbp,4), %ecx
movl %ecx, 0x34(%rsp)
movq 0x8(%rsp), %rax
movl $0x1, %edx
shlq %cl, %rdx
movl %ecx, %esi
shrl $0x6, %esi
movq (%rax,%rsi,8), %rdi
btq %rcx, %rdi
jb 0x2f0d0
orq %rdx, %rdi
movq %rdi, (%rax,%rsi,8)
movq 0x80(%rsp), %rax
movq 0x90(%rsp), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rax
je 0x2f0be
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x80(%rsp)
jmp 0x2f0c9
movq %r12, %rdi
movq %r13, %rsi
callq 0x7644
movq 0x8(%rbx), %rax
incl -0x4(%rax)
incq %rbp
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
subq %rdi, %rax
sarq $0x2, %rax
cmpq %rbp, %rax
ja 0x2f06b
testq %rdi, %rdi
je 0x2f0fb
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x60(%rsp), %rax
cmpq %rax, 0x80(%rsp)
jne 0x2eff0
movq %r12, %rdi
callq 0x6998
incq %r15
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rax
movl 0x20(%rsp), %ecx
subq %rdi, %rax
leaq (%rcx,%rax,8), %rax
cmpq %r15, %rax
ja 0x2ef29
testq %rdi, %rdi
je 0x2f162
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movq %rax, 0x28(%rsp)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f17a
jmp 0x2f17f
jmp 0x2f17a
movq %rax, %rbx
jmp 0x2f1a8
movq %rax, %rbx
jmp 0x2f19e
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2f19e
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0x50(%rsp), %rdi
callq 0x6998
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2f1d8
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movq %rbx, %rdi
callq 0x23b0