// File: Luthaf[P]zeopp/voronoicell.cc
// Function: VOR_CELL::getNodeCoords(int)
vector<Point> VOR_CELL::getNodeCoords(int nodeID){
  map<int, vector<int> >::iterator iter = reverseIDMappings.find(nodeID);
  if(iter == reverseIDMappings.end()){
    cerr << "Error: Node #" << nodeID << " isn't in this Voronoi cell." << "\n";
    cerr << "Cell contains these nodes: "; 
    map<int, vector<int> >::iterator nIter = reverseIDMappings.begin();
    while(nIter != reverseIDMappings.end()){
      cerr << nIter->first << " ";
      nIter++;
    }
    cerr << "\n";
    cerr << "Exiting..." << "\n";
    exit(1);
  }
  vector<int> vertexIDs = iter->second;
  vector<Point> coords = vector<Point> ();
  for(unsigned int i = 0; i < vertexIDs.size(); i++){
    coords.push_back(vertexCoords.find(vertexIDs[i])->second);
  }
  return coords;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x90(%rbp)
movq %rdi, %rax
movq %rax, -0x88(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x80(%rbp)
addq $0x80, %rdi
leaq -0x14(%rbp), %rsi
callq 0xbf970
movq -0x80(%rbp), %rdi
movq %rax, -0x20(%rbp)
addq $0x80, %rdi
callq 0xbf9d0
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xbf9a0
testb $0x1, %al
jne 0xbc96d
jmp 0xbca6d
movq 0x1b667c(%rip), %rdi    # 0x272ff0
leaq 0x139b1f(%rip), %rsi    # 0x1f649a
callq 0x5540
movq %rax, %rdi
movl -0x14(%rbp), %esi
callq 0x58d0
movq %rax, %rdi
leaq 0x13e60c(%rip), %rsi    # 0x1fafa1
callq 0x5540
movq %rax, %rdi
leaq 0x13cc81(%rip), %rsi    # 0x1f9625
callq 0x5540
movq 0x1b6640(%rip), %rdi    # 0x272ff0
leaq 0x13e607(%rip), %rsi    # 0x1fafbe
callq 0x5540
movq -0x80(%rbp), %rdi
addq $0x80, %rdi
callq 0xbfcc0
movq %rax, -0x30(%rbp)
movq -0x80(%rbp), %rdi
addq $0x80, %rdi
callq 0xbf9d0
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xbfcf0
testb $0x1, %al
jne 0xbc9f7
jmp 0xbca2e
leaq -0x30(%rbp), %rdi
callq 0xbfaa0
movl (%rax), %esi
movq 0x1b65e7(%rip), %rdi    # 0x272ff0
callq 0x58d0
movq %rax, %rdi
leaq 0x13f896(%rip), %rsi    # 0x1fc2ae
callq 0x5540
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
callq 0xbfd20
movq %rax, -0x40(%rbp)
jmp 0xbc9d0
movq 0x1b65bb(%rip), %rdi    # 0x272ff0
leaq 0x13cbe9(%rip), %rsi    # 0x1f9625
callq 0x5540
movq 0x1b65a8(%rip), %rdi    # 0x272ff0
leaq 0x13e8cb(%rip), %rsi    # 0x1fb31a
callq 0x5540
movq %rax, %rdi
leaq 0x13cbc7(%rip), %rsi    # 0x1f9625
callq 0x5540
movl $0x1, %edi
callq 0x67c0
leaq -0x20(%rbp), %rdi
callq 0xbfaa0
movq %rax, %rsi
addq $0x8, %rsi
leaq -0x58(%rbp), %rdi
callq 0xeec0
movq -0x90(%rbp), %rdi
movb $0x0, -0x59(%rbp)
xorl %esi, %esi
movl $0x18, %edx
callq 0x52a0
movq -0x90(%rbp), %rdi
callq 0xed40
movl $0x0, -0x60(%rbp)
movl -0x60(%rbp), %eax
movq %rax, -0x98(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x10090
movq %rax, %rcx
movq -0x98(%rbp), %rax
cmpq %rcx, %rax
jae 0xbcb69
movq -0x80(%rbp), %rax
addq $0xb0, %rax
movq %rax, -0xa8(%rbp)
movl -0x60(%rbp), %eax
movl %eax, %esi
leaq -0x58(%rbp), %rdi
callq 0xed60
movq -0xa8(%rbp), %rdi
movq %rax, %rsi
callq 0xbfd60
movq %rax, -0xa0(%rbp)
jmp 0xbcb0d
movq -0xa0(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x68(%rbp), %rdi
callq 0xbfd90
movq -0x90(%rbp), %rdi
movq %rax, %rsi
addq $0x8, %rsi
callq 0x59bf0
jmp 0xbcb36
jmp 0xbcb38
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0xbcab0
movq -0x90(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
callq 0xefe0
leaq -0x58(%rbp), %rdi
callq 0xec80
jmp 0xbcb98
movb $0x1, -0x59(%rbp)
testb $0x1, -0x59(%rbp)
jne 0xbcb7f
movq -0x90(%rbp), %rdi
callq 0xefe0
leaq -0x58(%rbp), %rdi
callq 0xec80
movq -0x88(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x58f0
nopw %cs:(%rax,%rax)