// File: micahcc[P]polygon_skeleton/voronoi.cpp
// Function: CircleQueue::erase(Intersection const&, Intersection const&)
void erase(const Intersection& left_int, const Intersection& right_int)
    {
        CircleEvent dummy;
        const Point* ptA = left_int.pt_left;
        const Point* ptB = left_int.pt_right;
        const Point* ptC = right_int.pt_right;
        assert(ptB != nullptr);

        // no event to erase since one of the "intersections" is the null
        // intersection
        if(ptA == nullptr || ptC == nullptr)
            return;

        dummy.circle = solveCircle(*ptA, *ptB, *ptC);
        float end_y = dummy.circle.center.y - dummy.circle.radius;

        for(auto it = m_queue.lower_bound(dummy); it != m_queue.end() &&
                !(it->circle.center.y - it->circle.radius < end_y); ++it) {
            if(left_int.pt_left == it->left_int.pt_left &&
                    left_int.pt_right == it->left_int.pt_right &&
                    right_int.pt_left == it->right_int.pt_left &&
                    right_int.pt_right == it->right_int.pt_right) {
                it = m_queue.erase(it);
                break;
            }
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x12bf0
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x58(%rbp)
je 0x10ae7
jmp 0x10b06
leaq 0x13157(%rip), %rdi     # 0x23c45
leaq 0x127d9(%rip), %rsi     # 0x232ce
movl $0x125, %edx            # imm = 0x125
leaq 0x13153(%rip), %rcx     # 0x23c54
callq 0x3170
cmpq $0x0, -0x50(%rbp)
je 0x10b14
cmpq $0x0, -0x60(%rbp)
jne 0x10b19
jmp 0x10d03
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rdx
callq 0xa370
movq -0xb0(%rbp), %rdi
movss %xmm1, -0x78(%rbp)
movlpd %xmm0, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x6c(%rbp)
movl -0x78(%rbp), %eax
movl %eax, -0x64(%rbp)
movq -0x6c(%rbp), %rax
movq %rax, -0x28(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x20(%rbp)
movss -0x24(%rbp), %xmm0
subss -0x20(%rbp), %xmm0
movss %xmm0, -0x84(%rbp)
leaq -0x48(%rbp), %rsi
callq 0x12c30
movq %rax, -0x90(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x12c70
movq %rax, -0x98(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x11c30
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xb1(%rbp)
jne 0x10bb0
jmp 0x10bf8
leaq -0x90(%rbp), %rdi
callq 0x12ca0
movss 0x24(%rax), %xmm0
movss %xmm0, -0xb8(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x12ca0
movss -0xb8(%rbp), %xmm1
subss 0x28(%rax), %xmm1
movss -0x84(%rbp), %xmm0
ucomiss %xmm1, %xmm0
seta %al
xorb $-0x1, %al
movb %al, -0xb1(%rbp)
movb -0xb1(%rbp), %al
testb $0x1, %al
jne 0x10c07
jmp 0x10d03
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xc0(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x12ca0
movq %rax, %rcx
movq -0xc0(%rbp), %rax
cmpq (%rcx), %rax
jne 0x10cf0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xc8(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x12ca0
movq %rax, %rcx
movq -0xc8(%rbp), %rax
cmpq 0x8(%rcx), %rax
jne 0x10cf0
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xd0(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x12ca0
movq %rax, %rcx
movq -0xd0(%rbp), %rax
cmpq 0x10(%rcx), %rax
jne 0x10cf0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xd8(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x12ca0
movq %rax, %rcx
movq -0xd8(%rbp), %rax
cmpq 0x18(%rcx), %rax
jne 0x10cf0
movq -0xb0(%rbp), %rdi
movq -0x90(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rsi
callq 0x12cc0
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x10d03
jmp 0x10cf2
leaq -0x90(%rbp), %rdi
callq 0x11c80
jmp 0x10b79
addq $0xe0, %rsp
popq %rbp
retq
nopl (%rax)