// File: /workspace/github_cpp_makefile_star2_O1/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 0x8862
movq 0xb77c(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x885e
incl 0x8(%rax)
jmp 0x8862
lock
incl 0x8(%rax)
movq (%r14), %rax
movq %rax, -0x98(%rbp)
movq 0x8(%r14), %rax
movq %rax, -0x90(%rbp)
testq %rax, %rax
je 0x8891
movq 0xb74d(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x888d
incl 0x8(%rax)
jmp 0x8891
lock
incl 0x8(%rax)
leaq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rdx
leaq -0x98(%rbp), %rcx
movq %r13, %rsi
callq 0x9ca8
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x88bf
callq 0x4fba
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x88d0
callq 0x4fba
movq (%r15), %rax
movq %rax, -0x78(%rbp)
movq 0x8(%r15), %rax
movq %rax, -0x70(%rbp)
testq %rax, %rax
je 0x88f9
movq 0xb6e5(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x88f5
incl 0x8(%rax)
jmp 0x88f9
lock
incl 0x8(%rax)
movq (%r14), %rax
movq %rax, -0x68(%rbp)
movq 0x8(%r14), %rax
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0x8922
movq 0xb6bc(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x891e
incl 0x8(%rax)
jmp 0x8922
lock
incl 0x8(%rax)
leaq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rdx
leaq -0x68(%rbp), %rcx
movq %r13, %rsi
callq 0x9ca8
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x8947
callq 0x4fba
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x8955
callq 0x4fba
movq (%rbx), %rax
movq %rax, -0x48(%rbp)
movq 0x8(%rbx), %rax
movq %rax, -0x40(%rbp)
testq %rax, %rax
je 0x897e
movq 0xb660(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x897a
incl 0x8(%rax)
jmp 0x897e
lock
incl 0x8(%rax)
movq (%r14), %rax
movq %rax, -0x38(%rbp)
movq 0x8(%r14), %rax
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x89a7
movq 0xb637(%rip), %rcx      # 0x13fd0
cmpb $0x0, (%rcx)
je 0x89a3
incl 0x8(%rax)
jmp 0x89a7
lock
incl 0x8(%rax)
leaq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rdx
leaq -0x38(%rbp), %rcx
movq %r13, %rsi
callq 0x9ca8
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x89c9
callq 0x4fba
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x89d7
callq 0x4fba
movq (%r12), %rdi
addq $0x38, %rdi
leaq -0xb8(%rbp), %rsi
callq 0xe7c6
movq (%r15), %rdi
addq $0x38, %rdi
leaq -0x88(%rbp), %rsi
callq 0xe7c6
movq (%rbx), %rdi
addq $0x38, %rdi
leaq -0x58(%rbp), %rsi
callq 0xe7c6
movq (%r14), %rdi
addq $0x38, %rdi
leaq -0xb8(%rbp), %rsi
callq 0xe7c6
movq (%r14), %rdi
addq $0x38, %rdi
leaq -0x88(%rbp), %rsi
callq 0xe7c6
movq (%r14), %rdi
addq $0x38, %rdi
leaq -0x58(%rbp), %rsi
callq 0xe7c6
movq (%r12), %rdi
addq $0x68, %rdi
movq %r14, %rsi
callq 0xe928
movq (%r15), %rdi
addq $0x68, %rdi
movq %r14, %rsi
callq 0xe928
movq (%rbx), %rdi
addq $0x68, %rdi
movq %r14, %rsi
callq 0xe928
movq (%r14), %rdi
addq $0x68, %rdi
movq %r12, %rsi
callq 0xe928
movq (%r14), %rdi
addq $0x68, %rdi
movq %r15, %rsi
callq 0xe928
movq (%r14), %rdi
addq $0x68, %rdi
movq %rbx, %rsi
callq 0xe928
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x8aad
callq 0x4fba
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x8abb
callq 0x4fba
movq -0xb0(%rbp), %rdi
testq %rdi, %rdi
je 0x8acc
callq 0x4fba
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 0x8aef
callq 0x4fba
movq -0x40(%rbp), %rdi
jmp 0x8b30
movq %rax, %rbx
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x8b06
callq 0x4fba
movq -0x70(%rbp), %rdi
jmp 0x8b3e
movq %rax, %rbx
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x8b20
callq 0x4fba
movq -0xa0(%rbp), %rdi
jmp 0x8b4f
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x8b3a
callq 0x4fba
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x8b48
callq 0x4fba
movq -0xb0(%rbp), %rdi
testq %rdi, %rdi
je 0x8b59
callq 0x4fba
movq %rbx, %rdi
callq 0x3390
nop