// File: /workspace/github_cpp_makefile_star2_O3/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 $0x98, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x2eb78
movq %rax, 0x8(%rbx)
xorl %eax, %eax
leaq 0x70(%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 0x2f654
movq 0x70(%rsp), %rdi
movq 0x80(%rsp), %rax
movl 0x88(%rsp), %edx
movq %rax, %rcx
subq %rdi, %rcx
shlq $0x3, %rcx
addq %rdx, %rcx
je 0x2edd6
xorl %r15d, %r15d
leaq 0x20(%rsp), %r12
leaq 0x4(%rsp), %r13
movl $0x1, %esi
movl %r15d, %ecx
shlq %cl, %rsi
movl %r15d, %ecx
shrl $0x6, %ecx
movq (%rdi,%rcx,8), %r8
btq %r15, %r8
jb 0x2edbe
movl %r15d, (%rsp)
orq %rsi, %r8
movq %r8, (%rdi,%rcx,8)
movl $0x1, 0x20(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2ec1a
movl $0x1, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2ec25
movq %rbx, %rdi
movq %r12, %rdx
callq 0x1bd70
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %r12, %rdi
xorl %esi, %esi
callq 0x6ad0
movq 0x50(%rsp), %rcx
movq 0x60(%rsp), %rax
addq $-0x4, %rax
cmpq %rax, %rcx
je 0x2ec6e
movl (%rsp), %eax
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x50(%rsp)
jmp 0x2ec7e
movq %r12, %rdi
movq %rsp, %rsi
callq 0x75be
movq 0x50(%rsp), %rcx
movq 0x30(%rsp), %rax
cmpq %rax, %rcx
je 0x2eda2
movl (%rax), %ebp
movq 0x40(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x2eca2
addq $0x4, %rax
jmp 0x2ecd4
movq 0x38(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2250
movq 0x48(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x48(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x40(%rsp)
movq %rax, 0x30(%rsp)
leaq (,%rbp,2), %rsi
addq %rbp, %rsi
shlq $0x3, %rsi
addq (%r14), %rsi
leaq 0x8(%rsp), %rdi
callq 0x6112
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
cmpq %rdi, %rax
je 0x2ed80
xorl %ebp, %ebp
movl (%rdi,%rbp,4), %ecx
movl %ecx, 0x4(%rsp)
movq 0x70(%rsp), %rdx
movl $0x1, %esi
shlq %cl, %rsi
movl %ecx, %r8d
shrl $0x6, %r8d
movq (%rdx,%r8,8), %r9
btq %rcx, %r9
jb 0x2ed6e
orq %rsi, %r9
movq %r9, (%rdx,%r8,8)
movq 0x50(%rsp), %rdx
movq 0x60(%rsp), %rsi
addq $-0x4, %rsi
cmpq %rsi, %rdx
je 0x2ed52
movl %ecx, (%rdx)
addq $0x4, %rdx
movq %rdx, 0x50(%rsp)
jmp 0x2ed67
movq %r12, %rdi
movq %r13, %rsi
callq 0x75be
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x8(%rbx), %rcx
incl -0x4(%rcx)
incq %rbp
movq %rax, %rcx
subq %rdi, %rcx
sarq $0x2, %rcx
cmpq %rbp, %rcx
ja 0x2ed06
testq %rdi, %rdi
je 0x2ed92
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x30(%rsp), %rax
cmpq %rax, 0x50(%rsp)
jne 0x2ec8c
movq %r12, %rdi
callq 0x690a
movq 0x70(%rsp), %rdi
movq 0x80(%rsp), %rax
movl 0x88(%rsp), %edx
incq %r15
movq %rax, %rcx
subq %rdi, %rcx
movl %edx, %esi
leaq (%rsi,%rcx,8), %rcx
cmpq %r15, %rcx
ja 0x2ebce
testq %rdi, %rdi
je 0x2edeb
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2ee03
jmp 0x2ee08
jmp 0x2ee03
movq %rax, %rbx
jmp 0x2ee31
movq %rax, %rbx
jmp 0x2ee27
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2ee27
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0x20(%rsp), %rdi
callq 0x690a
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2ee4b
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x23b0
nop