// File: /workspace/github_cpp_makefile_star2_O1/minimind[P]simple-graph/unittest/../graph/graph.hpp
// Function: Graph<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::add_edge(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, SimpleGraph::NodeIterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, SimpleGraph::NodeIterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&)
void Graph<N,E>::add_edge( const E& e, typename Graph<N,E>::node_iterator& left, typename Graph<N,E>::node_iterator& right )
{
  if ( left.key() == right.key() )
  {
    throw std::runtime_error( "Cannot add_edge linking a node to itself" );
  }

  boost::shared_ptr< SimpleGraph::SimpleEdge<N,E> > newEdge( new SimpleGraph::SimpleEdge<N,E>( e, left, right ) );

  edges.m_edges.push_back( newEdge );
  newEdge->m_mainIterator = edges.m_edges.end();
  --( newEdge->m_mainIterator );

  left.m_iterator->second->m_edges.push_back( newEdge );
  newEdge->m_leftIterator = left.m_iterator->second->m_edges.end();
  --( newEdge->m_leftIterator );

  right.m_iterator->second->m_edges.push_back( newEdge );
  newEdge->m_rightIterator = right.m_iterator->second->m_edges.end();
  --( newEdge->m_rightIterator );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movq (%rdx), %rax
movq 0x20(%rax), %rax
movq (%rcx), %rcx
cmpq 0x20(%rcx), %rax
je 0x2e79a
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %r15
movl $0x48, %edi
callq 0xa310
movq %rax, %r12
addq $0x10, %rax
movq %rax, (%r12)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2bee4
movq (%r14), %rax
movq %rax, 0x20(%r12)
movq (%rbx), %rax
movq %rax, 0x28(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r12)
movq $0x0, 0x40(%r12)
movq %rsp, %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x2ef72
leaq 0x30(%r15), %r12
movq %r12, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2f0a8
movq (%rsp), %rax
testq %rax, %rax
je 0x2e77b
movq %r12, 0x30(%rax)
movq 0x38(%r15), %rcx
movq %rcx, 0x30(%rax)
movq (%r14), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x2e764
addq $0x28, %rdi
movq %rsp, %rdx
movq %rdi, %rsi
callq 0x2f0a8
movq (%r14), %rax
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x2e764
movq (%rsp), %rcx
testq %rcx, %rcx
je 0x2e77b
leaq 0x28(%rax), %rdx
movq %rdx, 0x38(%rcx)
movq 0x30(%rax), %rax
movq %rax, 0x38(%rcx)
movq (%rbx), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x2e764
addq $0x28, %rdi
movq %rsp, %rdx
movq %rdi, %rsi
callq 0x2f0a8
movq (%rbx), %rax
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x2e764
movq (%rsp), %rcx
testq %rcx, %rcx
je 0x2e77b
leaq 0x28(%rax), %rdx
movq %rdx, 0x40(%rcx)
movq 0x30(%rax), %rax
movq %rax, 0x40(%rcx)
leaq 0x8(%rsp), %rdi
callq 0x2ee0a
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x11c51(%rip), %rdi     # 0x403bc
leaq 0x11c52(%rip), %rsi     # 0x403c4
leaq 0x11d6a(%rip), %rcx     # 0x404e3
jmp 0x2e790
leaq 0x11c3a(%rip), %rdi     # 0x403bc
leaq 0x11c3b(%rip), %rsi     # 0x403c4
leaq 0x11c60(%rip), %rcx     # 0x403f0
movl $0x2d8, %edx            # imm = 0x2D8
callq 0xa1f0
movl $0x10, %edi
callq 0xa160
movq %rax, %r14
leaq 0x11be5(%rip), %rsi     # 0x40393
movq %rax, %rdi
callq 0xa110
movq 0x28833(%rip), %rsi     # 0x56ff0
movq 0x287e4(%rip), %rdx     # 0x56fa8
movq %r14, %rdi
callq 0xa580
movq %rax, %rbx
movq %r14, %rdi
callq 0xa270
jmp 0x2e7f8
movq %rax, %rbx
movl $0x48, %esi
movq %r12, %rdi
callq 0xa330
jmp 0x2e7f8
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2ee0a
movq %rbx, %rdi
callq 0xa5c0