// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/qube.cc
// Function: graph_t::find_muc_subgraphs(unsigned int)
void graph_t::find_muc_subgraphs(muc_id_t muc_id) {
    //THIS IS SLOW, and not needed for the QUBE ideal speedup experiemtn
    //so just return if you want to do this experiment..
    //return;
    if (muc_vec[muc_id].muc_subgraph.size() == 1)
        return;
    if(!muc_vec[muc_id].valid)
        return;
    for (muc_t::conn_vert_map_t::iterator
        it = muc_vec[muc_id].conn_vertex_map.begin();
            it != muc_vec[muc_id].conn_vertex_map.end();
            ++it) {
        node_id_t conn_vert = it->first;
        graph_hash_t g;
        for (vector<node_id_t>::iterator it2 = it->second.begin();
                it2 != it->second.end(); ++it2) {
            node_id_t bfs_source = *it2;
            vector<bool> visited_vec;
            visited_vec.resize(size());
            fill(visited_vec.begin(), visited_vec.end(), false);
            visited_vec[bfs_source] = true;
            visited_vec[conn_vert] = true;
            queue<node_id_t> q;
            q.push(bfs_source);
            while (!q.empty()) {
                node_id_t node = q.front();
                q.pop();
                g.insert_node(node);
                for (int bfs_nbr_i = 0; bfs_nbr_i < get_nbrs(node).size(); ++bfs_nbr_i) {
                    node_id_t bfs_nbr = get_nbrs(node)[bfs_nbr_i];
                    if (!visited_vec[bfs_nbr]) {
                        q.push(bfs_nbr);
                        visited_vec[bfs_nbr] = true;
                        if (bfs_nbr != conn_vert) {
                            g.insert_edge(node, bfs_nbr);
                        }
                    }
                }
            }
        }
        muc_vec[muc_id].subgraph_map.insert(make_pair(conn_vert, g));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x858, %rsp            # imm = 0x858
movq %rdi, %rbx
movl %esi, %eax
movq 0x60(%rdi), %rcx
imulq $0x568, %rax, %r15      # imm = 0x568
leaq (%rcx,%r15), %rdi
addq $0x60, %rdi
callq 0x1c4e0
cmpq $0x1, %rax
je 0x27821
movq 0x60(%rbx), %rax
cmpb $0x1, 0x30c(%rax,%r15)
jne 0x27821
addq %r15, %rax
movq 0x8(%rax), %rcx
movq (%rcx), %r13
movq %rcx, %rdx
testq %r13, %r13
jne 0x2746d
movq %rcx, %rdx
movq 0x8(%rdx), %r13
addq $0x8, %rdx
testq %r13, %r13
je 0x27460
movq 0x10(%rax), %rax
cmpq (%rcx,%rax,8), %r13
je 0x27821
leaq 0x5b0(%rsp), %r12
leaq 0x50(%rsp), %rbp
movq %r15, 0x18(%rsp)
movq %rdx, 0x8(%rsp)
movq %r13, %r14
movl (%r13), %r13d
movq %r12, %rdi
callq 0x152ae
movq 0x8(%r14), %rdx
movq %r14, 0x10(%rsp)
cmpq 0x10(%r14), %rdx
je 0x27772
movl %r13d, %eax
shrl $0x6, %eax
movq %rax, 0x28(%rsp)
movl $0x1, %eax
movl %r13d, %ecx
shlq %cl, %rax
movq %rax, 0x20(%rsp)
movq %rdx, 0x30(%rsp)
movl (%rdx), %eax
movl %eax, 0x38(%rsp)
xorl %eax, %eax
movq %rax, 0x300(%rsp)
movl %eax, 0x308(%rsp)
movq %rax, 0x310(%rsp)
movl %eax, 0x318(%rsp)
movq %rax, 0x320(%rsp)
movq %rbx, %rdi
callq 0x1dfcc
leaq 0x300(%rsp), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x96c4
movq 0x300(%rsp), %rdi
movq 0x310(%rsp), %r14
movl 0x318(%rsp), %r15d
cmpq %r14, %rdi
je 0x27548
movq %r14, %rdx
subq %rdi, %rdx
xorl %esi, %esi
callq 0x2110
jmp 0x2754b
movq %rdi, %r14
testl %r15d, %r15d
je 0x27566
negb %r15b
movq $-0x1, %rax
movl %r15d, %ecx
shrq %cl, %rax
notq %rax
andq %rax, (%r14)
movl 0x38(%rsp), %ecx
movq 0x300(%rsp), %rax
movl %ecx, %edx
movl $0x1, %esi
shlq %cl, %rsi
shrl $0x6, %edx
orq %rsi, (%rax,%rdx,8)
movq 0x28(%rsp), %rcx
movq 0x20(%rsp), %rdx
orq %rdx, (%rax,%rcx,8)
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movq %rbp, %rdi
xorl %esi, %esi
callq 0x6ad0
movq 0x80(%rsp), %rcx
movq 0x90(%rsp), %rax
addq $-0x4, %rax
cmpq %rax, %rcx
je 0x275ea
movl 0x38(%rsp), %eax
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x80(%rsp)
jmp 0x275ff
movq %rbp, %rdi
leaq 0x38(%rsp), %rsi
callq 0x75be
movq 0x80(%rsp), %rcx
movq 0x60(%rsp), %rax
cmpq %rax, %rcx
je 0x27735
movl (%rax), %r15d
movq 0x70(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x27624
addq $0x4, %rax
jmp 0x27656
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)
movq %r12, %rdi
movl %r15d, %esi
callq 0x1c28e
xorl %r14d, %r14d
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1dc78
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
cmpq %r14, %rcx
jbe 0x27722
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1dc78
movq (%rax), %rax
movl (%rax,%r14,4), %ecx
movl %ecx, 0x4(%rsp)
movq 0x300(%rsp), %rax
movl %ecx, %edx
shrl $0x6, %edx
movq (%rax,%rdx,8), %rdx
btq %rcx, %rdx
jb 0x2771a
movq 0x80(%rsp), %rdx
movq 0x90(%rsp), %rsi
addq $-0x4, %rsi
cmpq %rsi, %rdx
je 0x276de
movl %ecx, (%rdx)
addq $0x4, %rdx
movq %rdx, 0x80(%rsp)
jmp 0x276f3
movq %rbp, %rdi
leaq 0x4(%rsp), %rsi
callq 0x75be
movq 0x300(%rsp), %rax
movl 0x4(%rsp), %ecx
movl %ecx, %edx
shrl $0x6, %edx
movl $0x1, %esi
shlq %cl, %rsi
orq %rsi, (%rax,%rdx,8)
cmpl %r13d, %ecx
je 0x2771a
movq %r12, %rdi
movl %r15d, %esi
movl %ecx, %edx
callq 0x1c320
incq %r14
jmp 0x27669
movq 0x60(%rsp), %rax
cmpq %rax, 0x80(%rsp)
jne 0x2760d
movq %rbp, %rdi
callq 0x690a
movq 0x300(%rsp), %rdi
testq %rdi, %rdi
je 0x2775a
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x30(%rsp), %rdx
addq $0x4, %rdx
movq 0x10(%rsp), %rax
cmpq 0x10(%rax), %rdx
jne 0x274cf
movq 0x60(%rbx), %r14
movl %r13d, 0x300(%rsp)
leaq 0x308(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x16312
movl 0x300(%rsp), %eax
movl %eax, 0x50(%rsp)
leaq 0x58(%rsp), %rdi
movq %r15, %rsi
callq 0x2d1b2
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %r13
leaq (%r14,%r15), %rsi
addq $0x30, %rsi
leaq 0x38(%rsp), %rdi
movq %rbp, %rdx
callq 0x2e402
leaq 0x58(%rsp), %rdi
callq 0x15650
leaq 0x308(%rsp), %rdi
callq 0x15650
movq %r12, %rdi
callq 0x15650
movq 0x20(%r13), %r13
testq %r13, %r13
je 0x277f7
movq 0x8(%rsp), %rdx
jmp 0x27809
movq 0x8(%rsp), %rdx
movq 0x8(%rdx), %r13
addq $0x8, %rdx
testq %r13, %r13
je 0x277fc
movq 0x60(%rbx), %rax
movq 0x8(%rax,%r15), %rcx
movq 0x10(%rax,%r15), %rax
cmpq (%rcx,%rax,8), %r13
jne 0x2748d
addq $0x858, %rsp            # imm = 0x858
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x15650
jmp 0x27845
movq %rax, %rbx
leaq 0x308(%rsp), %rdi
callq 0x15650
jmp 0x27890
movq %rax, %rbx
jmp 0x27890
jmp 0x27866
jmp 0x2785d
movq %rax, %rbx
jmp 0x27873
jmp 0x27866
jmp 0x27866
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x690a
movq 0x300(%rsp), %rdi
testq %rdi, %rdi
je 0x27890
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0x5b0(%rsp), %rdi
callq 0x15650
movq %rbx, %rdi
callq 0x23b0
nop