// File: /workspace/github_cpp_makefile_star2_O2/micahcc[P]polygon_skeleton/voronoi.cpp
// Function: Voronoi::Implementation::addTriplet(std::shared_ptr<Voronoi::Node>, std::shared_ptr<Voronoi::Node>, std::shared_ptr<Voronoi::Node>, std::shared_ptr<Voronoi::Node>)
void Voronoi::Implementation::addTriplet(Node::Ptr center, Node::Ptr nodeA,
        Node::Ptr nodeB, Node::Ptr nodeC)
{
    // edges
    std::shared_ptr<Edge> edgeA = addEdge(nodeA, center);
    std::shared_ptr<Edge> edgeB = addEdge(nodeB, center);
    std::shared_ptr<Edge> edgeC = addEdge(nodeC, center);

    nodeA->edges.insert(edgeA);
    nodeB->edges.insert(edgeB);
    nodeC->edges.insert(edgeC);

    center->edges.insert(edgeA);
    center->edges.insert(edgeB);
    center->edges.insert(edgeC);

    // neighbors
    nodeA->neighbors.insert(center);
    nodeB->neighbors.insert(center);
    nodeC->neighbors.insert(center);

    center->neighbors.insert(nodeA);
    center->neighbors.insert(nodeB);
    center->neighbors.insert(nodeC);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r8, -0x30(%rbp)
movq %rcx, %r12
movq %rsi, %r14
movq %rdi, %r13
leaq -0xd0(%rbp), %rbx
movq %rbx, %rdi
movq %rdx, -0x70(%rbp)
movq %rdx, %rsi
callq 0x98f2
leaq -0xc0(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x98f2
leaq -0x60(%rbp), %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x82d4
leaq -0xb8(%rbp), %rdi
callq 0x4b24
leaq -0xc8(%rbp), %rdi
callq 0x4b24
leaq -0xb0(%rbp), %rbx
movq %rbx, %rdi
movq %r12, -0x68(%rbp)
movq %r12, %rsi
callq 0x98f2
leaq -0xa0(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x98f2
leaq -0x50(%rbp), %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x82d4
leaq -0x88(%rbp), %r12
leaq -0x98(%rbp), %rdi
callq 0x4b24
leaq -0xa8(%rbp), %rdi
callq 0x4b24
leaq -0x90(%rbp), %rbx
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
callq 0x98f2
leaq -0x80(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x98f2
leaq -0x40(%rbp), %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x82d4
leaq -0x38(%rbp), %r13
leaq -0x78(%rbp), %rdi
callq 0x4b24
leaq -0x88(%rbp), %rdi
callq 0x4b24
movq -0x70(%rbp), %r12
movq (%r12), %rdi
addq $0x38, %rdi
leaq -0x60(%rbp), %rsi
callq 0xc7c4
movq -0x30(%rbp), %rbx
movq -0x68(%rbp), %r15
movq (%r15), %rdi
addq $0x38, %rdi
leaq -0x50(%rbp), %rsi
callq 0xc7c4
movq (%rbx), %rdi
addq $0x38, %rdi
leaq -0x40(%rbp), %rsi
callq 0xc7c4
movq (%r14), %rdi
addq $0x38, %rdi
leaq -0x60(%rbp), %rsi
callq 0xc7c4
movq (%r14), %rdi
addq $0x38, %rdi
leaq -0x50(%rbp), %rsi
callq 0xc7c4
movq (%r14), %rdi
addq $0x38, %rdi
leaq -0x40(%rbp), %rsi
callq 0xc7c4
movq (%r12), %rdi
addq $0x68, %rdi
movq %r14, %rsi
callq 0xc960
movq (%r15), %rdi
addq $0x68, %rdi
movq %r14, %rsi
callq 0xc960
movq (%rbx), %rdi
addq $0x68, %rdi
movq %r14, %rsi
callq 0xc960
movq (%r14), %rdi
addq $0x68, %rdi
movq %r12, %rsi
callq 0xc960
movq (%r14), %rdi
addq $0x68, %rdi
movq %r15, %rsi
callq 0xc960
movq (%r14), %rdi
addq $0x68, %rdi
movq %rbx, %rsi
callq 0xc960
leaq -0x38(%rbp), %rdi
callq 0x4b24
leaq -0x48(%rbp), %rdi
callq 0x4b24
leaq -0x58(%rbp), %rdi
callq 0x4b24
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %r13
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x4b24
jmp 0x775a
leaq -0xa8(%rbp), %r15
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
jmp 0x7761
movq %rax, %rbx
leaq -0xc8(%rbp), %r14
leaq -0xb8(%rbp), %rdi
jmp 0x776d
movq %rax, %rbx
leaq -0x48(%rbp), %r15
movq %r13, %rdi
callq 0x4b24
leaq -0x58(%rbp), %r14
movq %r15, %rdi
callq 0x4b24
movq %r14, %rdi
callq 0x4b24
movq %rbx, %rdi
callq 0x3360