// File: /workspace/github_cpp_makefile_star2_O1/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 $0x58, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x90(%rsp), %r14
leaq 0x20(%rdi), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x6ea94
leaq 0x28(%rbx), %rcx
cmpq %rcx, %rax
jne 0x6b8b8
leaq 0x50(%rbx), %rdi
movl 0x18(%rbx), %eax
leaq 0x20(%rsp), %rsi
movl %eax, (%rsi)
movl %ebp, 0x4(%rsi)
callq 0x13690
movq 0x90(%rbx), %rdx
leaq 0x88(%rbx), %rax
movq %rax, %rcx
testq %rdx, %rdx
je 0x6b757
movq %rax, %rcx
xorl %esi, %esi
cmpl %ebp, 0x20(%rdx)
setl %sil
cmovgeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x6b740
movq %rax, %rdi
cmpq %rax, %rcx
je 0x6b769
cmpl %ebp, 0x20(%rcx)
cmovgq %rax, %rcx
movq %rcx, %rdi
leaq 0x18(%rbx), %r12
cmpq %rax, %rdi
je 0x6b78f
movq 0x30(%rdi), %rsi
cmpq 0x38(%rdi), %rsi
je 0x6b7ba
movl (%r12), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x30(%rdi)
jmp 0x6b821
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x6b7c8
movl (%r12), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x6b7d3
addq $0x28, %rdi
movq %r12, %rdx
callq 0xf7b4
jmp 0x6b821
movq %rsp, %rdi
movq %r12, %rdx
callq 0xf7b4
leaq 0x28(%rsp), %rdi
movl %ebp, -0x8(%rdi)
movq %rsp, %rsi
callq 0xe886
leaq 0x80(%rbx), %rdi
leaq 0x20(%rsp), %rsi
callq 0x6eb3a
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x6b80b
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6b821
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x10(%r14), %rax
leaq 0x20(%rsp), %r13
movq %rax, 0x10(%r13)
movups (%r14), %xmm0
movaps %xmm0, (%r13)
movl 0x18(%rbx), %eax
movl %eax, 0x18(%r13)
movq %r15, %rdi
movq %r13, %rsi
callq 0x6ec9e
leaq 0xb0(%rbx), %rdi
movl 0x18(%rbx), %eax
movl %eax, (%r13)
movups (%r14), %xmm0
movups %xmm0, 0x8(%r13)
movq 0x10(%r14), %rax
movq %rax, 0x18(%r13)
leaq 0x20(%rsp), %rsi
callq 0x6ee7c
addq $0xe0, %rbx
leaq 0x28(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x8(%rax)
movaps %xmm0, 0x18(%rax)
movaps %xmm0, -0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq $0x0, 0x20(%rax)
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x6efcc
leaq 0x20(%rsp), %rdi
callq 0xf168
incl (%r12)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6b8e5
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x6b8e8
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
jmp 0x6b8e8
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6b90d
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
jmp 0x6b90d
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xf168
movq %rbx, %rdi
callq 0x4780
nop