// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/voronoicell.cc
// Function: VOR_CELL::addNode(int, Point)
void VOR_CELL::addNode(int nodeID, Point coord){
  if(vertexIDs.find(coord) == vertexIDs.end()){
    idMappings.insert(pair<int,int> (numVertices, nodeID));
    
    map<int, vector<int> >::iterator revMap = reverseIDMappings.find(nodeID);      
    if(revMap == reverseIDMappings.end()){
      vector<int> newList = vector<int> ();
      newList.push_back(numVertices);
      reverseIDMappings.insert(pair<int, vector<int> > (nodeID, newList));
    }
    else {
      revMap->second.push_back(numVertices);
    }
    vertexIDs.insert(pair<Point,int> (coord, numVertices));
    vertexCoords.insert(pair<int,Point> (numVertices, coord));
    edgeConnections.push_back(set<int>());
    numVertices++;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x80(%rsp), %r15
leaq 0x20(%rdi), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x6deaa
leaq 0x28(%rbx), %rcx
cmpq %rcx, %rax
jne 0x6ad5f
leaq 0x50(%rbx), %rdi
leaq 0x18(%rbx), %r14
movl 0x18(%rbx), %eax
movq %rsp, %rsi
movl %eax, (%rsi)
movl %ebp, 0x4(%rsi)
callq 0x135ee
movq 0x90(%rbx), %rax
testq %rax, %rax
je 0x6ac6b
leaq 0x88(%rbx), %rcx
movq %rcx, %rdi
xorl %edx, %edx
cmpl %ebp, 0x20(%rax)
setl %dl
cmovgeq %rax, %rdi
movq 0x10(%rax,%rdx,8), %rax
testq %rax, %rax
jne 0x6ac47
cmpq %rcx, %rdi
je 0x6ac6b
cmpl %ebp, 0x20(%rdi)
jle 0x6ad6e
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
xorl %esi, %esi
movq %r14, %rdx
callq 0xf864
leaq 0x8(%rsp), %rdi
movl %ebp, -0x8(%rdi)
leaq 0x30(%rsp), %rsi
callq 0xe8f8
leaq 0x80(%rbx), %rdi
movq %rsp, %rsi
callq 0x6df4c
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6acc0
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x6acd7
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x10(%r15), %rax
movq %rsp, %r13
movq %rax, 0x10(%r13)
movups (%r15), %xmm0
movaps %xmm0, (%r13)
movl 0x18(%rbx), %eax
movl %eax, 0x18(%r13)
movq %r12, %rdi
movq %r13, %rsi
callq 0x6e0a8
leaq 0xb0(%rbx), %rdi
movl 0x18(%rbx), %eax
movl %eax, (%r13)
movups (%r15), %xmm0
movups %xmm0, 0x8(%r13)
movq 0x10(%r15), %rax
movq %rax, 0x18(%r13)
movq %rsp, %rsi
callq 0x6e282
addq $0xe0, %rbx
leaq 0x8(%rsp), %rax
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x6e3d0
movq %rsp, %rdi
callq 0xf206
incl (%r14)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rdi), %rsi
cmpq 0x38(%rdi), %rsi
je 0x6ad8a
movl (%r14), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x30(%rdi)
jmp 0x6acd7
addq $0x28, %rdi
movq %r14, %rdx
callq 0xf864
jmp 0x6acd7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6adbc
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
jmp 0x6adbc
jmp 0x6adb9
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x6ade0
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
jmp 0x6ade0
movq %rax, %rbx
movq %rsp, %rdi
callq 0xf206
movq %rbx, %rdi
callq 0x4780