// File: /workspace/github_cpp_makefile_star2_O3/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 $0x98, %rsp
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r13
movq (%rdx), %rax
movq %rax, -0xa8(%rbp)
movq 0x8(%rdx), %rax
movq %rax, -0xa0(%rbp)
testq %rax, %rax
je 0x88d0
movq 0xb70e(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x88cc
incl 0x8(%rax)
jmp 0x88d0
lock
incl 0x8(%rax)
movq (%r14), %rax
movq %rax, -0x98(%rbp)
movq 0x8(%r14), %rax
movq %rax, -0x90(%rbp)
testq %rax, %rax
je 0x88ff
movq 0xb6df(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x88fb
incl 0x8(%rax)
jmp 0x88ff
lock
incl 0x8(%rax)
leaq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rdx
leaq -0x98(%rbp), %rcx
movq %r13, %rsi
callq 0x9d22
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x892d
callq 0x4f9a
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x893e
callq 0x4f9a
movq (%r15), %rax
movq %rax, -0x78(%rbp)
movq 0x8(%r15), %rax
movq %rax, -0x70(%rbp)
testq %rax, %rax
je 0x8967
movq 0xb677(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x8963
incl 0x8(%rax)
jmp 0x8967
lock
incl 0x8(%rax)
movq (%r14), %rax
movq %rax, -0x68(%rbp)
movq 0x8(%r14), %rax
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0x8990
movq 0xb64e(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x898c
incl 0x8(%rax)
jmp 0x8990
lock
incl 0x8(%rax)
leaq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rdx
leaq -0x68(%rbp), %rcx
movq %r13, %rsi
callq 0x9d22
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x89b5
callq 0x4f9a
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x89c3
callq 0x4f9a
movq (%rbx), %rax
movq %rax, -0x48(%rbp)
movq 0x8(%rbx), %rax
movq %rax, -0x40(%rbp)
testq %rax, %rax
je 0x89ec
movq 0xb5f2(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x89e8
incl 0x8(%rax)
jmp 0x89ec
lock
incl 0x8(%rax)
movq (%r14), %rax
movq %rax, -0x38(%rbp)
movq 0x8(%r14), %rax
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x8a15
movq 0xb5c9(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x8a11
incl 0x8(%rax)
jmp 0x8a15
lock
incl 0x8(%rax)
leaq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rdx
leaq -0x38(%rbp), %rcx
movq %r13, %rsi
callq 0x9d22
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x8a37
callq 0x4f9a
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x8a45
callq 0x4f9a
movq (%r12), %rdi
addq $0x38, %rdi
leaq -0xb8(%rbp), %rsi
callq 0xe688
movq (%r15), %rdi
addq $0x38, %rdi
leaq -0x88(%rbp), %rsi
callq 0xe688
movq (%rbx), %rdi
addq $0x38, %rdi
leaq -0x58(%rbp), %rsi
callq 0xe688
movq (%r14), %rdi
addq $0x38, %rdi
leaq -0xb8(%rbp), %rsi
callq 0xe688
movq (%r14), %rdi
addq $0x38, %rdi
leaq -0x88(%rbp), %rsi
callq 0xe688
movq (%r14), %rdi
addq $0x38, %rdi
leaq -0x58(%rbp), %rsi
callq 0xe688
movq (%r12), %rdi
addq $0x68, %rdi
movq %r14, %rsi
callq 0xe7e0
movq (%r15), %rdi
addq $0x68, %rdi
movq %r14, %rsi
callq 0xe7e0
movq (%rbx), %rdi
addq $0x68, %rdi
movq %r14, %rsi
callq 0xe7e0
movq (%r14), %rdi
addq $0x68, %rdi
movq %r12, %rsi
callq 0xe7e0
movq (%r14), %rdi
addq $0x68, %rdi
movq %r15, %rsi
callq 0xe7e0
movq (%r14), %rdi
addq $0x68, %rdi
movq %rbx, %rsi
callq 0xe7e0
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x8b1b
callq 0x4f9a
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x8b29
callq 0x4f9a
movq -0xb0(%rbp), %rdi
testq %rdi, %rdi
je 0x8b3a
callq 0x4f9a
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x8b5d
callq 0x4f9a
movq -0x40(%rbp), %rdi
jmp 0x8b9e
movq %rax, %rbx
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x8b74
callq 0x4f9a
movq -0x70(%rbp), %rdi
jmp 0x8bac
movq %rax, %rbx
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x8b8e
callq 0x4f9a
movq -0xa0(%rbp), %rdi
jmp 0x8bbd
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x8ba8
callq 0x4f9a
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x8bb6
callq 0x4f9a
movq -0xb0(%rbp), %rdi
testq %rdi, %rdi
je 0x8bc7
callq 0x4f9a
movq %rbx, %rdi
callq 0x3380
nop