// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/qube.cc
// Function: graph_t::merge_muc_muc(muc_t&, muc_t&)
void graph_t::merge_muc_muc(muc_t& muc1, muc_t& muc2)
{
    //1. copy the graph of muc2 into muc1
    //2. for each bridge edge, if the other end becomes in the graph, add the edge
    //3. mark muc2 as invalid
    //4. ASSUME muc1.id is valid, and update node_to_muc_vec for vertices in muc2
    //   to hold the id of muc1
    muc1.muc_subgraph.nodes_map.insert(
                muc2.muc_subgraph.nodes_map.begin(),
                muc2.muc_subgraph.nodes_map.end());
    muc1.muc_subgraph.edge_set.insert(
                muc2.muc_subgraph.edge_set.begin(),
                muc2.muc_subgraph.edge_set.end());
    for(muc_t::conn_vert_map_t::iterator it = muc2.conn_vertex_map.begin();
                                         it != muc2.conn_vertex_map.end(); 
                                         ++it) {
        node_id_t conn_vert = it->first;
        for(int i = 0; i < it->second.size(); ++i) {
            if(muc1.muc_subgraph.nodes_map.find(it->second[i]) != muc1.muc_subgraph.nodes_map.end()) {
                muc1.muc_subgraph.insert_edge(conn_vert, it->second[i]);
            }
        }
    }
    muc2.valid = false;
    for(graph_hash_t::nodes_map_t::iterator it = muc2.muc_subgraph.nodes_map.begin();
                                            it != muc2.muc_subgraph.nodes_map.end();
                                            ++it) {
        node_to_muc_vec[it->first] = muc1.id;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, 0x10(%rsp)
leaq 0x60(%rsi), %r12
movq %rdx, 0x8(%rsp)
movq 0x68(%rdx), %rax
movq (%rax), %rsi
movq %rax, %rdx
testq %rsi, %rsi
jne 0x283b8
movq %rax, %rdx
movq 0x8(%rdx), %rsi
addq $0x8, %rdx
testq %rsi, %rsi
je 0x283ab
movq 0x8(%rsp), %r14
movq 0x70(%r14), %rcx
leaq (%rax,%rcx,8), %r8
movq (%r8), %rcx
movq %r12, %rdi
callq 0x2b422
leaq 0x90(%rbx), %rdi
movq 0xa8(%r14), %rsi
leaq 0x98(%r14), %rdx
callq 0x2e274
movq 0x8(%r14), %rax
movq (%rax), %r14
movq %rax, %r13
testq %r14, %r14
jne 0x28409
movq %rax, %r13
movq 0x8(%r13), %r14
addq $0x8, %r13
testq %r14, %r14
je 0x283fc
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rcx
cmpq (%rax,%rcx,8), %r14
je 0x284a3
movq 0x10(%r14), %rdi
movq 0x8(%r14), %rsi
cmpq %rsi, %rdi
je 0x28482
movl (%r14), %ebp
xorl %r15d, %r15d
movl (%rsi,%r15,4), %ecx
movq 0x68(%rbx), %r8
movq 0x70(%rbx), %r9
movq %rcx, %rax
xorl %edx, %edx
divq %r9
movq (%r8,%rdx,8), %rax
testq %rax, %rax
je 0x28470
cmpl (%rax), %ecx
je 0x28456
movq 0x20(%rax), %rax
jmp 0x28447
cmpq (%r8,%r9,8), %rax
je 0x28470
movq %r12, %rdi
movl %ebp, %esi
movl %ecx, %edx
callq 0x1c320
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdi
incq %r15
movq %rdi, %rax
subq %rsi, %rax
sarq $0x2, %rax
cmpq %r15, %rax
ja 0x2842f
movq 0x20(%r14), %r14
testq %r14, %r14
jne 0x28495
movq 0x8(%r13), %r14
addq $0x8, %r13
jmp 0x28486
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rax
jmp 0x2840e
movq 0x8(%rsp), %rax
movb $0x0, 0x30c(%rax)
movq 0x68(%rax), %rdx
movq (%rdx), %rcx
movq %rdx, %rax
testq %rcx, %rcx
jne 0x284ce
movq %rdx, %rax
movq 0x8(%rax), %rcx
addq $0x8, %rax
testq %rcx, %rcx
je 0x284c1
movq 0x8(%rsp), %rsi
movq 0x70(%rsi), %rsi
movq (%rdx,%rsi,8), %rdx
cmpq %rdx, %rcx
je 0x2850e
movq 0x10(%rsp), %rsi
movq 0x18(%rsi), %rsi
movl 0x308(%rbx), %edi
movl (%rcx), %r8d
movl %edi, (%rsi,%r8,4)
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
jne 0x28509
movq 0x8(%rax), %rcx
addq $0x8, %rax
jmp 0x284fa
cmpq %rdx, %rcx
jne 0x284ef
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop