// File: /workspace/github_cpp_makefile_star2_O1/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 %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
leaq 0x60(%rsi), %r12
movq %rdx, (%rsp)
movq 0x68(%rdx), %rax
movq (%rax), %rsi
movq %rax, %rdx
testq %rsi, %rsi
jne 0x28675
movq %rax, %rdx
movq 0x8(%rdx), %rsi
addq $0x8, %rdx
testq %rsi, %rsi
je 0x28668
movq (%rsp), %rbx
movq 0x70(%rbx), %rcx
leaq (%rax,%rcx,8), %r8
movq (%r8), %rcx
movq %r12, %rdi
callq 0x2b7c8
movq 0x8(%rsp), %rax
leaq 0x90(%rax), %rdi
movq 0xa8(%rbx), %rsi
leaq 0x98(%rbx), %rdx
callq 0x2e5ae
movq 0x8(%rbx), %r13
movq (%r13), %r14
testq %r14, %r14
jne 0x28732
movq 0x8(%r13), %r14
addq $0x8, %r13
jmp 0x286b3
movq 0x8(%r14), %rsi
cmpq %rsi, 0x10(%r14)
je 0x2871f
movl (%r14), %ebp
xorl %r15d, %r15d
xorl %ebx, %ebx
addq %r15, %rsi
movq %r12, %rdi
callq 0x2b4fa
movq 0x8(%rsp), %rdx
movq 0x68(%rdx), %rcx
movq 0x70(%rdx), %rdx
cmpq (%rcx,%rdx,8), %rax
je 0x28704
movq 0x8(%r14), %rax
movl (%rax,%r15), %edx
movq %r12, %rdi
movl %ebp, %esi
callq 0x1c440
incq %rbx
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rax
subq %rsi, %rax
sarq $0x2, %rax
addq $0x4, %r15
cmpq %rbx, %rax
ja 0x286d4
movq 0x20(%r14), %r14
testq %r14, %r14
jne 0x28732
movq 0x8(%r13), %r14
addq $0x8, %r13
jmp 0x28723
movq (%rsp), %rcx
movq 0x8(%rcx), %rax
movq 0x10(%rcx), %rcx
cmpq (%rax,%rcx,8), %r14
jne 0x286c2
movq (%rsp), %rax
movb $0x0, 0x30c(%rax)
movq 0x68(%rax), %rdx
movq (%rdx), %rcx
movq %rdx, %rax
testq %rcx, %rcx
jne 0x28772
movq %rdx, %rax
movq 0x8(%rax), %rcx
addq $0x8, %rax
testq %rcx, %rcx
je 0x28765
movq (%rsp), %rsi
movq 0x70(%rsi), %rsi
movq (%rdx,%rsi,8), %rdx
cmpq %rdx, %rcx
je 0x287b6
movq 0x10(%rsp), %rsi
movq 0x18(%rsi), %rsi
movq 0x8(%rsp), %rdi
movl 0x308(%rdi), %edi
movl (%rcx), %r8d
movl %edi, (%rsi,%r8,4)
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
jne 0x287b1
movq 0x8(%rax), %rcx
addq $0x8, %rax
jmp 0x287a2
cmpq %rdx, %rcx
jne 0x2878c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop