// File: /workspace/github_cpp_makefile_star2_O2/Luthaf[P]zeopp/networkaccessibility.cc
// Function: AccessibilityClassNINF::segmentPoresBasedOnRadius(double)
void AccessibilityClassNINF::segmentPoresBasedOnRadius(double seg_r){

 if(alreadySegmentedFlag == false || seg_r<=r_probe)
   {
   cerr << "This function requires initial segmnetation (use new accessibility class(NINF))\n"
        << "the source has most likely bugs. Contact the source code provider.\n"
        << "Also segmenting r needs to be larger than one used for inital segmentation\n";
   abort();
   } else
   { // everything seems OK; proceed with segmentation

   VORONOI_NETWORK localVorNet = vornet;
   std::vector<bool> localAccessInfo;

   std::vector<PORE> segments;

   PORE::findChannelsAndPockets(&localVorNet, seg_r, &localAccessInfo, &segments);

   segmentMapping.resize(localAccessInfo.size(),-1);
   n_segments = 0; // number of segments
   for(unsigned int i = 0; i < segments.size(); i++)
      {
      for(unsigned int j = 0; j < segments[i].nodes.size(); j++)
        {
        segmentMapping[segments[i].reverseIDMappings.find(j)->second] = n_segments;
        };
      n_segments++;
     };

   segments.clear();

   }; // ends else{

 cout << "Additional segmentation: n_segments = " << n_segments << "\n";

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
cmpb $0x0, 0x18d(%rdi)
je 0x70057
movq %rdi, %rbx
movsd 0x138(%rdi), %xmm1
ucomisd %xmm0, %xmm1
jae 0x70057
leaq 0x18(%rbx), %rsi
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x409c4
leaq 0x28(%rsp), %rsi
andq $0x0, (%rsi)
andl $0x0, 0x8(%rsi)
andq $0x0, 0x10(%rsi)
andl $0x0, 0x18(%rsi)
andq $0x0, 0x20(%rsi)
xorpd %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movapd %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x536c2
leaq 0x198(%rbx), %r14
movq 0x38(%rsp), %rax
movl 0x40(%rsp), %ecx
subq 0x28(%rsp), %rax
leaq (%rcx,%rax,8), %rsi
leaq 0x4(%rsp), %rdx
orl $-0x1, (%rdx)
movq %r14, %rdi
callq 0x36f18
andl $0x0, 0x190(%rbx)
xorl %ecx, %ecx
movq 0x10(%rsp), %rdi
pushq $0x48
popq %rbp
movl %ecx, %ecx
movq 0x18(%rsp), %rax
subq %rdi, %rax
cqto
movl $0x130, %esi            # imm = 0x130
idivq %rsi
cmpq %rcx, %rax
jbe 0x6ffec
xorl %r13d, %r13d
movq %rcx, 0x8(%rsp)
imulq $0x130, %rcx, %r12      # imm = 0x130
movl %r13d, %ecx
movq 0x68(%rdi,%r12), %rax
subq 0x60(%rdi,%r12), %rax
cqto
idivq %rbp
movl 0x190(%rbx), %r15d
cmpq %rcx, %rax
jbe 0x6ffd6
addq %r12, %rdi
addq $0x30, %rdi
movl %r13d, 0x4(%rsp)
leaq 0x4(%rsp), %rsi
callq 0x10996
movslq 0x24(%rax), %rax
movq (%r14), %rcx
movl %r15d, (%rcx,%rax,4)
incl %r13d
movq 0x10(%rsp), %rdi
jmp 0x6ff8d
incl %r15d
movl %r15d, 0x190(%rbx)
movq 0x8(%rsp), %rcx
incl %ecx
jmp 0x6ff65
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x579e0
movq %r14, %rdi
callq 0xac66
leaq 0x28(%rsp), %rdi
callq 0xa976
leaq 0x50(%rsp), %rdi
callq 0xa95c
movq 0xdffa4(%rip), %rdi     # 0x14ffc0
leaq 0x9502e(%rip), %rsi     # 0x105051
callq 0x4480
movl 0x190(%rbx), %esi
movq %rax, %rdi
callq 0x4760
leaq 0x92541(%rip), %rsi     # 0x10257e
movq %rax, %rdi
callq 0x4480
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xdff92(%rip), %rdi     # 0x14fff0
leaq 0x94f0b(%rip), %rsi     # 0x104f70
callq 0x4480
leaq 0x94f50(%rip), %rsi     # 0x104fc1
movq %rax, %rdi
callq 0x4480
leaq 0x94f85(%rip), %rsi     # 0x105005
movq %rax, %rdi
callq 0x4480
callq 0x4290
jmp 0x70091
jmp 0x70091
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xac66
leaq 0x28(%rsp), %rdi
callq 0xa976
leaq 0x50(%rsp), %rdi
callq 0xa95c
movq %rbx, %rdi
callq 0x4780