LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/area_and_volume.cc
// Function: reportResampledPoints(std::ostream&, std::vector<std::pair<int, Point>, std::allocator<std::pair<int, Point>>>)
void reportResampledPoints(ostream &output, vector< pair<int, Point> > resampledInfo){
  output << "set num_resamples " << resampledInfo.size() << "\n";
   for(unsigned int i = 0; i < resampledInfo.size(); i++){
    Point coords = resampledInfo[i].second;
    output << "set rpoints(" << i << ") {" <<  coords[0] << " " << coords[1] << " " << coords[2] << "} " << "\n";
    output << "set rcenters(" << i << ") " << resampledInfo[i].first << "\n"; 
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x115d97(%rip), %rsi    # 0x153668
movl $0x12, %edx
callq 0x44e0
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x5, %rsi
movq %r14, %rdi
callq 0x42b0
leaq 0x117c39(%rip), %rsi    # 0x15552e
movl $0x1, %edx
movq %rax, %rdi
callq 0x44e0
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x3da96
movl $0x1, %r12d
xorl %r15d, %r15d
movq %r14, 0x8(%rsp)
movq %rbx, (%rsp)
movq %r15, %r13
shlq $0x5, %r13
movq 0x18(%rax,%r13), %rcx
movq %rcx, 0x20(%rsp)
movups 0x8(%rax,%r13), %xmm0
movaps %xmm0, 0x10(%rsp)
movl $0xc, %edx
movq %r14, %rdi
leaq 0x115d2f(%rip), %rsi    # 0x15367b
callq 0x44e0
movq %r14, %rdi
movq %r15, %rsi
callq 0x42b0
movq %rax, %rbp
movl $0x3, %edx
movq %rax, %rdi
leaq 0x1189ba(%rip), %rsi    # 0x156328
callq 0x44e0
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x119ae6(%rip), %r14    # 0x157486
movq %r14, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
movq %rbx, %rdi
movq (%rsp), %rbx
movq 0x8(%rsp), %r14
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
leaq 0x115b00(%rip), %rsi    # 0x153508
callq 0x44e0
movl $0x1, %edx
movq %rbp, %rdi
leaq 0x117b12(%rip), %rbp    # 0x15552e
movq %rbp, %rsi
callq 0x44e0
movl $0xd, %edx
movq %r14, %rdi
leaq 0x115c55(%rip), %rsi    # 0x153688
callq 0x44e0
movq %r14, %rdi
movq %r15, %rsi
callq 0x42b0
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
leaq 0x119213(%rip), %rsi    # 0x156c68
callq 0x44e0
movq (%rbx), %rax
movl (%rax,%r13), %esi
movq %r15, %rdi
callq 0x4750
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x44e0
movl %r12d, %r15d
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
incl %r12d
cmpq %r15, %rcx
ja 0x3d921
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/area_and_volume.cc
// Function: reportPointsVisIT(std::ostream&, std::vector<Point, std::allocator<Point>>, std::vector<Point, std::allocator<Point>>)
void reportPointsVisIT(ostream &output, vector<Point> axsPoints, vector<Point> inaxsPoints){
  for(unsigned int i = 0; i < axsPoints.size(); i++){
    Point coords = axsPoints.at(i);
    output << coords[0] << " " << coords[1] << " " << coords[2] << " 1 a" << "\n";
   }
  for(unsigned int i = 0; i < inaxsPoints.size(); i++){
    Point coords = inaxsPoints.at(i);
    output <<  coords[0] << " " << coords[1] << " " << coords[2] << " 0 n" << "\n";
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, 0x20(%rsp)
movq %rdi, %r14
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x3dbbd
movq %rsi, %r15
movl $0x1, %r13d
xorl %ecx, %ecx
movq %rsp, %r12
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rax,%rcx,8), %rdx
movq %rdx, 0x10(%rsp)
movups (%rax,%rcx,8), %xmm0
movaps %xmm0, (%rsp)
movq %r12, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r14, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rbx
leaq 0x11996f(%rip), %r14    # 0x157486
movq %r14, %rsi
callq 0x44e0
movq %r12, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %r14
callq 0x44e0
movq %r12, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x4, %edx
movq %rax, %rdi
leaq 0x115b1d(%rip), %rsi    # 0x153696
callq 0x44e0
movl $0x1, %edx
movq %rbp, %rdi
leaq 0x1179a1(%rip), %rsi    # 0x15552e
callq 0x44e0
movl %r13d, %ecx
movq (%r15), %rax
movq 0x8(%r15), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
incl %r13d
cmpq %rcx, %rdx
ja 0x3dad6
movq 0x20(%rsp), %rbx
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x3dcb8
movl $0x1, %ebp
xorl %ecx, %ecx
movq %rsp, %r15
leaq 0x1198a6(%rip), %r12    # 0x157486
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rax,%rcx,8), %rdx
movq %rdx, 0x10(%rsp)
movups (%rax,%rcx,8), %xmm0
movaps %xmm0, (%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r14, %rdi
callq 0x46b0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movq %r15, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x46b0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movq %r15, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x46b0
movq %rax, %r13
movl $0x4, %edx
movq %rax, %rdi
leaq 0x115a25(%rip), %rsi    # 0x15369b
callq 0x44e0
movl $0x1, %edx
movq %r13, %rdi
leaq 0x1178a4(%rip), %rsi    # 0x15552e
callq 0x44e0
movl %ebp, %ecx
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x3dbe0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/area_and_volume.cc
// Function: calcASA[abi:cxx11](ATOM_NETWORK*, ATOM_NETWORK*, bool, double, double, int, bool, bool)
string calcASA(ATOM_NETWORK *atmnet, ATOM_NETWORK *orgatmnet, bool highAccuracy, double r_probe_chan, double r_probe, int numSamples, bool excludePockets, bool ExtendedOutputFlag)
{
    stringstream output;
    string filename = "No filename";
    double rho_crystal = calcDensity(atmnet);
    double sa = calcASA(atmnet, orgatmnet, highAccuracy, r_probe_chan, r_probe, rho_crystal, numSamples, excludePockets, output, (char *)filename.data(), false, false, false, ExtendedOutputFlag);
    return output.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movl %r9d, %r14d
movl %r8d, %ebp
movsd %xmm1, 0x28(%rsp)
movsd %xmm0, 0x20(%rsp)
movl %ecx, %r13d
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x30(%rsp), %rdi
callq 0x42e0
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10b8b2(%rip), %rsi    # 0x153fe3
leaq 0x10b8b6(%rip), %rdx    # 0x153fee
movq %rsp, %rdi
callq 0x2263c
movq %r12, %rdi
callq 0x3c9c8
movaps %xmm0, %xmm2
leaq 0x40(%rsp), %r9
subq $0x8, %rsp
movzbl 0x1f8(%rsp), %eax
xorl %r10d, %r10d
movzbl %r13b, %edx
movzbl %r14b, %r8d
movq %r12, %rdi
movq %r15, %rsi
movsd 0x28(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movl %ebp, %ecx
pushq %rax
pushq %r10
pushq %r10
pushq %r10
pushq 0x28(%rsp)
callq 0x45fe9
addq $0x30, %rsp
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x46a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x487b7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x14e7c2(%rip), %rsi    # 0x196f80
leaq 0x30(%rsp), %rdi
callq 0x4310
leaq 0xb0(%rsp), %rdi
callq 0x41a0
movq %rbx, %rax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x487f1
movq %rax, %rbx
jmp 0x4880f
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4880f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x14e76a(%rip), %rsi    # 0x196f80
leaq 0x30(%rsp), %rdi
callq 0x4310
leaq 0xb0(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/area_and_volume.cc
// Function: calcAV[abi:cxx11](ATOM_NETWORK*, ATOM_NETWORK*, bool, double, double, int, bool, double, double)
string calcAV(ATOM_NETWORK *atmnet, ATOM_NETWORK *orgatmnet, bool highAccuracy, double r_probe_chan, double r_probe, int numSamples, bool excludePockets,  double low_dist_cutoff, double high_dist_cutoff)
{
    stringstream output;
    string filename = "No filename";
    double vol = calcAV(atmnet, orgatmnet, highAccuracy, r_probe_chan, r_probe, numSamples, excludePockets, output, (char *)filename.data(), false, false, false, false, low_dist_cutoff, high_dist_cutoff, false);
    return output.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movsd %xmm3, 0x38(%rsp)
movsd %xmm2, 0x30(%rsp)
movl %r9d, %r14d
movl %r8d, %ebp
movsd %xmm1, 0x28(%rsp)
movsd %xmm0, 0x20(%rsp)
movl %ecx, %r13d
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x40(%rsp), %rdi
callq 0x42e0
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10b71a(%rip), %rsi    # 0x153fe3
leaq 0x10b71e(%rip), %rdx    # 0x153fee
movq %rsp, %rdi
callq 0x2263c
leaq 0x50(%rsp), %r9
xorl %eax, %eax
movzbl %r13b, %edx
movzbl %r14b, %r8d
movq %r12, %rdi
movq %r15, %rsi
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movl %ebp, %ecx
movsd 0x30(%rsp), %xmm2
movsd 0x38(%rsp), %xmm3
pushq %rax
pushq %rax
pushq %rax
pushq %rax
pushq %rax
pushq 0x28(%rsp)
callq 0x3dfde
addq $0x30, %rsp
leaq 0x58(%rsp), %rsi
movq %rbx, %rdi
callq 0x46a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x48941
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x14e638(%rip), %rsi    # 0x196f80
leaq 0x40(%rsp), %rdi
callq 0x4310
leaq 0xc0(%rsp), %rdi
callq 0x41a0
movq %rbx, %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x48997
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x48997
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x14e5e2(%rip), %rsi    # 0x196f80
leaq 0x40(%rsp), %rdi
callq 0x4310
leaq 0xc0(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/./networkaccessibility.h
// Function: AccessibilityClass::needToResample()
bool needToResample()
    {
/*
        if(needToResampleFlag) {
            needToResampleFlag = false; // change the value after first used of the function
            return true;
        }
        else return false;
*/

        if(needToResampleFlag==true) std::cout << "Resample flag is raised. Resample count = " << resampleCount << std::endl;

        return needToResampleFlag;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x1, 0xa3c(%rdi)
jne 0x49137
movq 0x14ded5(%rip), %r14    # 0x196fc0
leaq 0x10af3d(%rip), %rsi    # 0x15402f
movl $0x2a, %edx
movq %r14, %rdi
callq 0x44e0
movl 0xa38(%rbx), %esi
movq %r14, %rdi
callq 0x4750
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4420
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42c0
movb 0xa3c(%rbx), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/./networkaccessibility.h
// Function: AccessibilityClass::lastChannelOrPocket()
std::pair <int,int> lastChannelOrPocket()
    {
        if(channelMapping[tempNodeID]<0 && pocketMapping[tempNodeID]<0){
            std::cerr << "CoP_error: cannot determine point accessiblity. Consider running at higher accuracy (-ha flag).(minDist=" << tempMinDist << ")." << std::endl;
            std::cerr << "NodeID= " << tempNodeID << "  minDistAtomID= " << tempMinDistAtomID << " resampleFlag= " << needToResampleFlag << std::endl;
            abort();
        }
        return std::pair <int,int> (channelMapping[tempNodeID],pocketMapping[tempNodeID]);
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0xa1c(%rdi), %rax
movq 0x9b8(%rdi), %rcx
movl (%rcx,%rax,4), %ecx
testl %ecx, %ecx
jns 0x4916f
movq 0x9d0(%rbx), %rdx
cmpl $0x0, (%rdx,%rax,4)
js 0x49188
movq 0x9d0(%rbx), %rdx
movl (%rdx,%rax,4), %eax
shlq $0x20, %rax
orq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x14de61(%rip), %r14    # 0x196ff0
leaq 0x10aec4(%rip), %rsi    # 0x15405a
movq %r14, %rdi
callq 0x4440
movsd 0x9f8(%rbx), %xmm0
movq %rax, %rdi
callq 0x4810
leaq 0x10dca4(%rip), %rsi    # 0x156e59
movq %rax, %rdi
callq 0x4440
movq %rax, %rdi
callq 0x41f0
leaq 0x10aef7(%rip), %rsi    # 0x1540c3
movq %r14, %rdi
callq 0x4440
movl 0xa1c(%rbx), %esi
movq %rax, %rdi
callq 0x4750
leaq 0x10aee3(%rip), %rsi    # 0x1540cc
movq %rax, %rdi
callq 0x4440
movl 0xa18(%rbx), %esi
movq %rax, %rdi
callq 0x4750
leaq 0x10aed8(%rip), %rsi    # 0x1540de
movq %rax, %rdi
callq 0x4440
movzbl 0xa3c(%rbx), %esi
movq %rax, %rdi
callq 0x47a0
movq %rax, %rdi
callq 0x41f0
callq 0x4260
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/segment.cc
// Function: segmentChannels(ATOM_NETWORK*, std::vector<FEATURE, std::allocator<FEATURE>>*, std::ostream&)
void segmentChannels(ATOM_NETWORK *uc,vector<FEATURE>  *channel_list,ostream &output) {
  int i;
  vector <double> segment_list;
  if(channel_list->size()>0) {
    for(i=0;i<(int)channel_list->size();i++){
      channel_list->at(i).segmentChannel(uc);
      segment_list.insert(segment_list.begin(),channel_list->at(i).segment_max_r.begin(),channel_list->at(i).segment_max_r.end());
    }
   }
  
  output << segment_list.size() << "\n";
  for(i=0;i<(int)segment_list.size();i++){
    output << segment_list[i] << "\n";
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x8(%rsi), %rax
cmpq (%rsi), %rax
je 0x49e9d
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %rdi
movq 0x8(%rsi), %rdx
subq %rdi, %rdx
sarq $0x3, %rdx
movabsq $0x4fcace213f2b3885, %rbp # imm = 0x4FCACE213F2B3885
imulq %rbp, %rdx
testl %edx, %edx
jle 0x49e9d
xorl %r13d, %r13d
xorl %r12d, %r12d
cmpq %r12, %rdx
jbe 0x49f4e
addq %r13, %rdi
movq %r15, %rsi
callq 0x79812
movq (%r14), %rax
movq 0x8(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
cmpq %r12, %rdx
jbe 0x49f3d
movq (%rsp), %rsi
movq 0x238(%rax,%r13), %rdx
movq 0x240(%rax,%r13), %rcx
movq %rsp, %rdi
callq 0x4a47e
incq %r12
movq (%r14), %rdi
movq 0x8(%r14), %rdx
subq %rdi, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
movslq %edx, %rax
addq $0x268, %r13            # imm = 0x268
cmpq %rax, %r12
jl 0x49e2e
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
sarq $0x3, %rsi
movq %rbx, %rdi
callq 0x42b0
leaq 0x10b675(%rip), %rsi    # 0x15552e
movl $0x1, %edx
movq %rax, %rdi
callq 0x44e0
movq (%rsp), %rdi
movq 0x8(%rsp), %rax
subq %rdi, %rax
shrq $0x3, %rax
testl %eax, %eax
jle 0x49f1c
xorl %r15d, %r15d
leaq 0x10b64a(%rip), %r14    # 0x15552e
movsd (%rdi,%r15,8), %xmm0
movq %rbx, %rdi
callq 0x46b0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
incq %r15
movq (%rsp), %rdi
movq 0x8(%rsp), %rax
subq %rdi, %rax
shrq $0x3, %rax
cltq
cmpq %rax, %r15
jl 0x49ee4
testq %rdi, %rdi
je 0x49f2e
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x105761(%rip), %rdi    # 0x14f6a5
movq %r12, %rsi
xorl %eax, %eax
callq 0x4630
leaq 0x105750(%rip), %rdi    # 0x14f6a5
movq %r12, %rsi
xorl %eax, %eax
callq 0x4630
jmp 0x49f67
jmp 0x49f67
jmp 0x49f67
jmp 0x49f67
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x49f80
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/segment.cc
// Function: segmentChannels_forHolograms(ATOM_NETWORK*, std::vector<FEATURE, std::allocator<FEATURE>>*, std::vector<int, std::allocator<int>>*, std::vector<double, std::allocator<double>>*, int)
void segmentChannels_forHolograms(ATOM_NETWORK *uc,vector<FEATURE>  *channel_list,vector <int> *seg_ids,vector <double> *segmaxr,int featflag) {
  int i;
  int current_segment=1;
  vector <double> segment_list;

  if(channel_list->size()>0) {
    for(i=0; i<(int)channel_list->size();i++){
      channel_list->at(i).segmentChannel(uc);
      channel_list->at(i).update_node_segmentinfo(seg_ids,&current_segment,featflag);
      
      if(featflag == 0)
        segmaxr->insert(segmaxr->end(),channel_list->at(i).segment_max_r.begin(),channel_list->at(i).segment_max_r.end());
      else
        segmaxr->insert(segmaxr->end(),channel_list->at(i).feature_max_r.begin(),channel_list->at(i).feature_max_r.end());
      
//      segment_list.insert(segment_list.begin(),channel_list->at(i).segment_max_r.begin(),channel_list->at(i).segment_max_r.end());
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
movl $0x1, 0x4(%rsp)
movq 0x8(%rsi), %rax
cmpq (%rsi), %rax
je 0x4a0a8
movq %rsi, %r12
movq (%rsi), %rdi
movq 0x8(%rsi), %rdx
subq %rdi, %rdx
sarq $0x3, %rdx
movabsq $0x4fcace213f2b3885, %r15 # imm = 0x4FCACE213F2B3885
imulq %r15, %rdx
testl %edx, %edx
jle 0x4a0a8
movl %r8d, %ebx
movq %rcx, %r14
xorl %r13d, %r13d
xorl %ebp, %ebp
cmpq %rbp, %rdx
jbe 0x4a0b7
addq %r13, %rdi
movq 0x10(%rsp), %rsi
callq 0x79812
movq (%r12), %rdi
movq 0x8(%r12), %rdx
subq %rdi, %rdx
sarq $0x3, %rdx
imulq %r15, %rdx
cmpq %rbp, %rdx
jbe 0x4a0b7
addq %r13, %rdi
movq 0x8(%rsp), %rsi
leaq 0x4(%rsp), %rdx
movl %ebx, %ecx
callq 0x7d3ea
movq (%r12), %rax
movq 0x8(%r12), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r15, %rdx
testl %ebx, %ebx
je 0x4a056
cmpq %rbp, %rdx
jbe 0x4a0b7
addq %r13, %rax
addq $0x250, %rax            # imm = 0x250
jmp 0x4a06b
cmpq %rbp, %rdx
jbe 0x4a0b7
imulq $0x268, %rbp, %rcx      # imm = 0x268
addq %rcx, %rax
addq $0x238, %rax            # imm = 0x238
movq 0x8(%r14), %rsi
movq (%rax), %rdx
movq 0x8(%rax), %rcx
movq %r14, %rdi
callq 0x4a47e
incq %rbp
movq (%r12), %rdi
movq 0x8(%r12), %rdx
subq %rdi, %rdx
sarq $0x3, %rdx
imulq %r15, %rdx
movslq %edx, %rax
addq $0x268, %r13            # imm = 0x268
cmpq %rax, %rbp
jl 0x49fe7
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1055e7(%rip), %rdi    # 0x14f6a5
movq %rbp, %rsi
xorl %eax, %eax
callq 0x4630
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/string_additions.cc
// Function: split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
vector<string> split(string line, string delimeter){
  vector<string> token;
  string temp=line;
  int ndx;

  while (!temp.empty()){
    ndx = temp.find_first_of(delimeter);
    if (ndx>0){
      token.push_back(temp.substr(0,ndx));
    }
    else if (ndx ==-1){
      token.push_back(temp);
      return token;
    }
    temp=temp.substr(ndx+1);
  }

  return token;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xf32a
cmpq $0x0, 0x10(%rsp)
je 0x4a7e0
leaq 0x38(%rsp), %rbp
leaq 0x8(%rsp), %r15
leaq 0x28(%rsp), %r12
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %r15, %rdi
xorl %edx, %edx
callq 0x4640
movq %rax, %r13
testl %r13d, %r13d
jle 0x4a784
movl %r13d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x4490
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2fbd2
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4a78a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x4a78a
cmpl $-0x1, %r13d
je 0x4a7d3
leal 0x1(%r13), %eax
movslq %eax, %rdx
movq %r12, %rdi
movq %r15, %rsi
movq $-0x1, %rcx
callq 0x4490
movq %r15, %rdi
movq %r12, %rsi
callq 0x4540
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4a7c5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
cmpq $0x0, 0x10(%rsp)
jne 0x4a731
jmp 0x4a7e0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2f74c
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4a7fc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4a833
movq %rax, %r14
jmp 0x4a852
jmp 0x4a833
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4a836
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x4a836
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4a852
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x2f6f0
movq %r14, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/string_additions.cc
// Function: strAry2StrVec(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
vector<string> strAry2StrVec(string list[]){
  vector<string> veclist;
  int ndx=0;
  while (list[ndx]!="NULL"){
    veclist.push_back(list[ndx]);
    ndx++;
  }
  return veclist;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x1099e7(%rip), %rsi    # 0x154269
movq %r14, %rdi
callq 0x4170
testl %eax, %eax
je 0x4a8b3
leaq 0x1099d4(%rip), %r15    # 0x154269
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2f74c
addq $0x20, %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x4170
testl %eax, %eax
jne 0x4a895
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2f6f0
movq %r14, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/string_additions.cc
// Function: convertToDouble(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
double convertToDouble(string const& str){
  istringstream i(str);
  double x;
  if (!(i >> x)){
    cout << "Bad string to double conversion" << endl;
    exit(0);
  }
  return x;
}

// Assembly:
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rdi, %rsi
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x46f0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x42a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4a93e
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rsp)
movq 0x14c697(%rip), %rsi    # 0x196fb0
leaq 0x10(%rsp), %rdi
callq 0x45e0
leaq 0x88(%rsp), %rdi
callq 0x41a0
movsd (%rsp), %xmm0
addq $0x190, %rsp            # imm = 0x190
popq %rbx
retq
movq 0x14c67b(%rip), %rdi    # 0x196fc0
leaq 0x109804(%rip), %rsi    # 0x154150
movl $0x1f, %edx
callq 0x44e0
movq 0x14c663(%rip), %rdi    # 0x196fc0
callq 0x41f0
xorl %edi, %edi
callq 0x710c
movq %rax, %rbx
movq 0x14c63d(%rip), %rsi    # 0x196fb0
leaq 0x10(%rsp), %rdi
callq 0x45e0
leaq 0x88(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/string_additions.cc
// Function: convertToInt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int convertToInt(string const& str){
  istringstream i(str);
  int x;
  if (!(i >> x)){
    cout << "Bad string to int conversion" << endl;
    exit(0);
  }
  return x;
}

// Assembly:
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rdi, %rsi
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x46f0
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x4270
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4a9f7
movl 0xc(%rsp), %ebx
movq 0x14c5db(%rip), %rsi    # 0x196fb0
leaq 0x10(%rsp), %rdi
callq 0x45e0
leaq 0x88(%rsp), %rdi
callq 0x41a0
movl %ebx, %eax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
retq
movq 0x14c5c2(%rip), %rdi    # 0x196fc0
leaq 0x10976b(%rip), %rsi    # 0x154170
movl $0x1c, %edx
callq 0x44e0
movq 0x14c5aa(%rip), %rdi    # 0x196fc0
callq 0x41f0
xorl %edi, %edi
callq 0x710c
movq %rax, %rbx
movq 0x14c584(%rip), %rsi    # 0x196fb0
leaq 0x10(%rsp), %rdi
callq 0x45e0
leaq 0x88(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/string_additions.cc
// Function: doubleToString[abi:cxx11](float const&)
string doubleToString(float const& dbl){
  ostringstream buffer;
  if (!(buffer << dbl)){
    cout << "Bad double to string conversion" << endl;
    exit(0);
  }
  return buffer.str();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x180, %rsp            # imm = 0x180
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x4590
cvtss2sd (%r14), %xmm0
movq %r15, %rdi
callq 0x46b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4aabd
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x46a0
movq 0x14c51f(%rip), %rsi    # 0x196fb8
leaq 0x8(%rsp), %rdi
callq 0x4230
leaq 0x78(%rsp), %rdi
callq 0x41a0
movq %rbx, %rax
addq $0x180, %rsp            # imm = 0x180
popq %rbx
popq %r14
popq %r15
retq
movq 0x14c4fc(%rip), %rdi    # 0x196fc0
leaq 0x1096c2(%rip), %rsi    # 0x15418d
movl $0x1f, %edx
callq 0x44e0
movq 0x14c4e4(%rip), %rdi    # 0x196fc0
callq 0x41f0
xorl %edi, %edi
callq 0x710c
movq %rax, %rbx
movq 0x14c4c6(%rip), %rsi    # 0x196fb8
leaq 0x8(%rsp), %rdi
callq 0x4230
leaq 0x78(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/string_additions.cc
// Function: intAsString[abi:cxx11](int)
string intAsString(int number) {
   std::ostringstream sin;
   sin << number;
   std::string val = sin.str();
   return val;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x180, %rsp            # imm = 0x180
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x4590
movq %r14, %rdi
movl %ebp, %esi
callq 0x4750
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x46a0
movq 0x14c46f(%rip), %rsi    # 0x196fb8
leaq 0x8(%rsp), %rdi
callq 0x4230
leaq 0x78(%rsp), %rdi
callq 0x41a0
movq %rbx, %rax
addq $0x180, %rsp            # imm = 0x180
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq 0x14c442(%rip), %rsi    # 0x196fb8
leaq 0x8(%rsp), %rdi
callq 0x4230
leaq 0x78(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
nop
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/ray.cc
// Function: Plane::hitPlane(ray, hitdata&)
void Plane::hitPlane(ray r,hitdata& hitplane)
{
  if (normal*r.vector >= 0){ //ray is either parallel or infront of the plane
    return;
  }	
  
  double dist=((normal*point)-(normal*r.base))/(normal*r.vector);
  if (dist < 0){ //There is no reason that the distance should be negative
    cerr << "Error: Distance = " << dist << " This means ray got outside of unitcell" << endl;
    cerr << "Point: " << r.base << " Vector: " << r.vector << endl;
    abort();
  }
  
  hitplane.hit=true;
  hitplane.dist=dist;
  hitplane.hitpoint=r.base + r.vector.scale(dist); 
  
  return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r15
movq %rdi, %r13
leaq 0x18(%rdi), %r12
movq 0xa8(%rsp), %rax
movq %rax, 0x10(%rsp)
movupd 0x98(%rsp), %xmm0
movupd %xmm0, (%rsp)
movq %r12, %rdi
callq 0x857d2
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jae 0x4b5e8
leaq 0x80(%rsp), %r14
leaq 0x98(%rsp), %rbx
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
movq %r12, %rdi
callq 0x857d2
movsd %xmm0, 0x18(%rsp)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movupd (%r14), %xmm0
movupd %xmm0, (%rsp)
movq %r12, %rdi
callq 0x857d2
movsd 0x18(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movupd (%rbx), %xmm0
movupd %xmm0, (%rsp)
movq %r12, %rdi
callq 0x857d2
movsd 0x18(%rsp), %xmm1
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x4b5f6
movb $0x1, (%r15)
movsd %xmm0, 0x20(%r15)
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x85590
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x857a0
movq 0x10(%rbx), %rax
movq %rax, 0x18(%r15)
movupd (%rbx), %xmm0
movupd %xmm0, 0x8(%r15)
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x14b9f3(%rip), %r15    # 0x196ff0
leaq 0x108c0c(%rip), %rsi    # 0x154210
movq %r15, %rdi
movsd %xmm0, 0x18(%rsp)
callq 0x4440
movq %rax, %rdi
movsd 0x18(%rsp), %xmm0
callq 0x4810
leaq 0x108bfc(%rip), %rsi    # 0x154223
movq %rax, %rdi
callq 0x4440
movq %rax, %rdi
callq 0x41f0
leaq 0x108499(%rip), %rsi    # 0x153ad7
movq %r15, %rdi
callq 0x4440
movq %rax, %rdi
movq %r14, %rsi
callq 0x8585c
leaq 0x108bf3(%rip), %rsi    # 0x15424b
movq %rax, %rdi
callq 0x4440
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8585c
movq %rax, %rdi
callq 0x41f0
callq 0x4260
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/ray.cc
// Function: findClosestSphere(std::vector<Sphere, std::allocator<Sphere>>&, ray&)
hitdata findClosestSphere(vector<Sphere>& s,ray& r)
{
  hitdata hitsphere;
  hitdata hitobject;
  assert(hitobject.object == NULL);
  for (unsigned int i=0;i<s.size();i++)
    {
      s[i].hitSphere(r,hitsphere);
      if (hitsphere.hit == true)			
	{
	  if(hitobject.hit == false || hitobject.dist > hitsphere.dist) //Conditions for this to be closest sphere found so far
	    {
	      hitobject.hit = true;
	      hitobject.dist = hitsphere.dist;
	      hitobject.hitpoint = hitsphere.hitpoint;
	      hitobject.id = i;
	      hitobject.object = &(s[i]);
	    }
	  hitsphere.hit = false;				
	}
    }
  return hitobject;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x30(%rsp), %rdi
callq 0x504d0
movq %r14, %rdi
callq 0x504d0
cmpq $0x0, 0x30(%r14)
jne 0x4b7c4
movq (%r15), %rdi
cmpq %rdi, 0x8(%r15)
je 0x4b7b2
leaq 0x8(%r14), %rbp
xorl %r12d, %r12d
xorl %r13d, %r13d
shlq $0x5, %r12
addq %r12, %rdi
movupd (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
leaq 0x30(%rsp), %rsi
callq 0x4b228
cmpb $0x1, 0x30(%rsp)
jne 0x4b795
cmpb $0x0, (%r14)
je 0x4b75f
movsd 0x20(%r14), %xmm0
ucomisd 0x50(%rsp), %xmm0
jbe 0x4b790
movb $0x1, (%r14)
movsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x20(%r14)
leaq 0x38(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rbp)
movupd (%rcx), %xmm0
movupd %xmm0, (%rbp)
movl %r13d, 0x28(%r14)
addq (%r15), %r12
movq %r12, 0x30(%r14)
movb $0x0, 0x30(%rsp)
incl %r13d
movq (%r15), %rdi
movq 0x8(%r15), %rax
subq %rdi, %rax
sarq $0x5, %rax
movq %r13, %r12
cmpq %r13, %rax
ja 0x4b718
movq %r14, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x108a8a(%rip), %rdi    # 0x154255
leaq 0x108a9c(%rip), %rsi    # 0x15426e
leaq 0x108a9c(%rip), %rcx    # 0x154275
movl $0x4a, %edx
callq 0x4290
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/ray.cc
// Function: findClosestPlane(std::vector<Plane, std::allocator<Plane>>&, ray&)
hitdata findClosestPlane(vector<Plane>& p,ray& r)
{
  hitdata hitplane;
  hitdata hitobject;

  for (unsigned int i=0;i<p.size();i++)
    {
      p[i].hitPlane(r,hitplane);
      if (hitplane.hit == true)			
	{
	  if(hitobject.hit == false || hitobject.dist > hitplane.dist) //Conditions for this to be closest sphere found so far
	    {
	      hitobject.hit = true;
	      hitobject.dist = hitplane.dist;
	      hitobject.hitpoint = hitplane.hitpoint;
	      hitobject.id = i;
	      hitobject.object = &(p[i]);
	    }
	  hitplane.hit = false;				
	}
    }
  return hitobject;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x30(%rsp), %rdi
callq 0x504d0
movq %r14, %rdi
callq 0x504d0
movq (%r15), %rdi
cmpq %rdi, 0x8(%r15)
je 0x4b8d0
leaq 0x8(%r14), %rbp
xorl %r13d, %r13d
leaq (,%r13,2), %r12
addq %r13, %r12
shlq $0x4, %r12
addq %r12, %rdi
movupd (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
leaq 0x30(%rsp), %rsi
callq 0x4b4c4
cmpb $0x1, 0x30(%rsp)
jne 0x4b8a8
cmpb $0x0, (%r14)
je 0x4b872
movsd 0x20(%r14), %xmm0
ucomisd 0x50(%rsp), %xmm0
jbe 0x4b8a3
movb $0x1, (%r14)
movsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x20(%r14)
leaq 0x38(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rbp)
movupd (%rcx), %xmm0
movupd %xmm0, (%rbp)
movl %r13d, 0x28(%r14)
addq (%r15), %r12
movq %r12, 0x30(%r14)
movb $0x0, 0x30(%rsp)
incl %r13d
movq (%r15), %rdi
movq 0x8(%r15), %rax
subq %rdi, %rax
sarq $0x4, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq %r13, %rax
ja 0x4b820
movq %r14, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/ray.cc
// Function: convertNodeToSphere(VORONOI_NETWORK&, std::vector<Sphere, std::allocator<Sphere>>&, std::vector<bool, std::allocator<bool>>&)
void convertNodeToSphere(VORONOI_NETWORK& vornet,vector<Sphere>& nodes, vector<bool>& accessInfo)
{
  Sphere temp_sphere;
  VOR_NODE temp_vornode;
  
  nodes.clear();
#if DEBUG
  cout << "Adding: " << vornet.nodes.size() << " nodes (if all accessible)." << endl;
#endif
  // for each node check if it intersects the unitcell
  for (unsigned int i=0; i<vornet.nodes.size(); i++)
    {
      if (accessInfo[i] ==true)
	{
	  temp_vornode = vornet.nodes[i];
	  temp_sphere.center = Point(temp_vornode.x,temp_vornode.y,temp_vornode.z);
	  temp_sphere.radius = temp_vornode.rad_stat_sphere;
	  nodes.push_back(temp_sphere);
	}
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsp, %rdi
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x85436
leaq 0x20(%rsp), %rdi
callq 0x55554
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x4c3d0
movq %rax, 0x8(%r14)
movq 0x48(%r15), %r12
cmpq %r12, 0x50(%r15)
je 0x4c4b6
movl $0x1, %ebp
xorl %r13d, %r13d
movq (%rbx), %rax
movq %r13, %rcx
shrq $0x6, %rcx
movq (%rax,%rcx,8), %rax
btq %r13, %rax
jae 0x4c499
shlq $0x6, %r13
leaq (%r12,%r13), %rsi
addq $0x20, %rsi
movups -0x20(%rsi), %xmm0
movups -0x10(%rsi), %xmm1
movaps %xmm1, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x1005e
addq %r13, %r12
movb 0x38(%r12), %al
movb %al, 0x58(%rsp)
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movsd 0x30(%rsp), %xmm2
leaq 0x60(%rsp), %rdi
callq 0x85436
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x60(%rsp), %xmm0
movaps %xmm0, (%rsp)
movsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x4c48e
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, 0x8(%r14)
jmp 0x4c499
movq %r14, %rdi
movq %rsp, %rdx
callq 0x506d2
movl %ebp, %r13d
movq 0x48(%r15), %r12
movq 0x50(%r15), %rax
subq %r12, %rax
sarq $0x6, %rax
incl %ebp
cmpq %r13, %rax
ja 0x4c3e6
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x4c4cd
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4c4de
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x4c4f8
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/ray.cc
// Function: convertAtomToSphere(ATOM_NETWORK*, std::vector<Sphere, std::allocator<Sphere>>&)
void convertAtomToSphere(ATOM_NETWORK *cell,vector<Sphere>& atoms)
{
  Sphere temp_sphere;
  ATOM temp_atom;
  
  atoms.clear();
#if DEBUG
  cout << "Adding: " << cell->atoms.size() << " atoms." << endl;
#endif
  // for each node check if it intersects the unitcell
  for (unsigned int i=0; i<cell->atoms.size(); i++)
    {
      temp_atom = cell->atoms[i];
      temp_sphere.center = Point(temp_atom.x,temp_atom.y,temp_atom.z);
      temp_sphere.radius = temp_atom.radius;
      atoms.push_back(temp_sphere);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %rdi
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x85436
leaq 0x40(%rsp), %rdi
callq 0x5162c
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x4c53f
movq %rax, 0x8(%rbx)
movq 0x2f0(%r14), %r13
cmpq %r13, 0x2f8(%r14)
je 0x4c660
leaq 0x80(%rsp), %r15
movl $0x1, %ebp
xorl %eax, %eax
imulq $0x98, %rax, %r12
leaq (%r12,%r13), %rsi
addq $0x40, %rsi
movups -0x40(%rsi), %xmm0
movups -0x30(%rsi), %xmm1
movups -0x20(%rsi), %xmm2
movups -0x10(%rsi), %xmm3
movaps %xmm3, 0x70(%rsp)
movaps %xmm2, 0x60(%rsp)
movaps %xmm1, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movq %r15, %rdi
callq 0x4240
addq %r12, %r13
leaq 0x60(%r13), %rsi
leaq 0xa0(%rsp), %rdi
callq 0x4240
movb 0x90(%r13), %al
movb %al, 0x50(%r15)
movups 0x80(%r13), %xmm0
movups %xmm0, 0x40(%r15)
movsd 0x40(%rsp), %xmm0
movsd 0x48(%rsp), %xmm1
movsd 0x50(%rsp), %xmm2
leaq 0x28(%rsp), %rdi
callq 0x85436
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x28(%rsp), %xmm0
movaps %xmm0, (%rsp)
movsd 0x70(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4c625
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, 0x8(%rbx)
jmp 0x4c630
movq %rbx, %rdi
movq %rsp, %rdx
callq 0x506d2
movl %ebp, %eax
movq 0x2f0(%r14), %r13
movq 0x2f8(%r14), %rcx
subq %r13, %rcx
sarq $0x3, %rcx
movabsq $-0x79435e50d79435e5, %rdx # imm = 0x86BCA1AF286BCA1B
imulq %rdx, %rcx
incl %ebp
cmpq %rax, %rcx
ja 0x4c562
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c681
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c6a2
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4470
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4c6b6
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x2f814
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/ray.cc
// Function: genRandomVec()
Point genRandomVec()
{
  // Randomly sample point on a sphere of radius 1
  double theta = (rand()*1.0/RAND_MAX)*2*PI;
  double cosphi = 1.0 - (rand()*1.0/RAND_MAX)*2.0;
  double phi = acos(cosphi);
  
  // Convert spherical coordinates to xyz coordinates
  double x = sin(phi)*cos(theta); //Don't need abs(sin(phi)) becase phi is from 0 to PI
  double y = sin(phi)*sin(theta);
  double z = cosphi;
  Point temp(x,y,z);
  if (temp.magnitude() == 0){
    temp = genRandomVec();
  }
  return temp.unit();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
callq 0x4150
cvtsi2sd %eax, %xmm0
divsd 0x106d98(%rip), %xmm0   # 0x153560
addsd %xmm0, %xmm0
mulsd 0x106dac(%rip), %xmm0   # 0x153580
movsd %xmm0, 0x10(%rsp)
callq 0x4150
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd 0x106d9a(%rip), %xmm0   # 0x153588
addsd %xmm0, %xmm0
addsd 0x10285e(%rip), %xmm0   # 0x14f058
movsd %xmm0, 0x18(%rsp)
callq 0x4400
movsd %xmm0, (%rsp)
callq 0x4100
movsd %xmm0, 0x8(%rsp)
movsd 0x10(%rsp), %xmm0
callq 0x4800
mulsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd (%rsp), %xmm0
callq 0x4100
movsd %xmm0, (%rsp)
movsd 0x10(%rsp), %xmm0
callq 0x4100
movsd (%rsp), %xmm1
mulsd %xmm0, %xmm1
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
movsd 0x18(%rsp), %xmm2
callq 0x85436
movq %r14, %rdi
callq 0x8555a
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x4c89d
jp 0x4c89d
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x4c7ad
movq 0x10(%r14), %rax
movq %rax, 0x30(%rsp)
movupd (%r14), %xmm0
movapd %xmm0, 0x20(%rsp)
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x855e2
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/ray.cc
// Function: genRandomPoint()
Point genRandomPoint()
{
  // Randomly sample ray across the unit cell
  double aPoint = (rand()*1.0)/RAND_MAX;
  double bPoint = (rand()*1.0)/RAND_MAX;
  double cPoint = (rand()*1.0)/RAND_MAX;
  
  return Point(aPoint,bPoint,cPoint);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x4150
cvtsi2sd %eax, %xmm0
divsd 0x106c92(%rip), %xmm0   # 0x153560
movsd %xmm0, 0x8(%rsp)
callq 0x4150
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd 0x106c78(%rip), %xmm0   # 0x153560
movsd %xmm0, (%rsp)
callq 0x4150
cvtsi2sd %eax, %xmm2
divsd 0x106c62(%rip), %xmm2   # 0x153560
movq %rbx, %rdi
movsd 0x8(%rsp), %xmm0
movsd (%rsp), %xmm1
callq 0x85436
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/ray.cc
// Function: reportHistogram(std::ostream&, double, int, std::vector<ray, std::allocator<ray>>&)
void reportHistogram(ostream& output,const double binSize,const int maxBins, vector<ray>& rays)
{
  assert(binSize > threshold);
  int bins[maxBins];
  for (int i=0; i<maxBins; i++)
    {
      bins[i] = 0;
    }
  
  //Assemble Hitsogram
  int bin;
  for (unsigned int i=0; i<rays.size(); i++)
    {
      bin = rays[i].vector.magnitude()/binSize;
      if (bin >= maxBins) 
	{
	  bin = maxBins - 1;
	}
      bins[bin]++;
    }
  
  //Output Histogram
  output << "Ray Histogram - Bin Size = " << binSize << " Number of Bins: " << maxBins << "From: 0 To: " << binSize * 1.0 * maxBins<< endl;
  for (int i=0; i<maxBins; i++)
    {
      output << bins[i] << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movsd %xmm0, -0x30(%rbp)
ucomisd 0x10435a(%rip), %xmm0   # 0x1541c8
jbe 0x50010
movq %rdx, %r12
movl %esi, %r15d
movq %rdi, -0x48(%rbp)
movl %esi, %ebx
movq %rsp, %r14
leaq 0xf(,%rbx,4), %rax
andq $-0x10, %rax
subq %rax, %r14
movq %r14, %rsp
testl %esi, %esi
jle 0x4feab
leaq (,%rbx,4), %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x4250
movq %rbx, -0x40(%rbp)
movq (%r12), %rax
cmpq %rax, 0x8(%r12)
je 0x4ff1b
leal -0x1(%r15), %ecx
movl %ecx, -0x34(%rbp)
movl $0x1, %ebx
xorl %ecx, %ecx
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %rdi
addq $0x18, %rdi
callq 0x8555a
divsd -0x30(%rbp), %xmm0
cvttsd2si %xmm0, %eax
cmpl %r15d, %eax
jl 0x4fef8
movl -0x34(%rbp), %eax
cltq
incl (%r14,%rax,4)
movl %ebx, %ecx
movq (%r12), %rax
movq 0x8(%r12), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
imulq %r13, %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0x4fed2
leaq 0x1046cf(%rip), %rsi    # 0x1545f1
movl $0x1b, %edx
movq -0x48(%rbp), %r13
movq %r13, %rdi
callq 0x44e0
movq %r13, %rdi
movsd -0x30(%rbp), %xmm0
callq 0x46b0
movq %rax, %r12
leaq 0x1046c3(%rip), %rsi    # 0x15460d
movl $0x11, %edx
movq %rax, %rdi
callq 0x44e0
movq %r12, %rdi
movl %r15d, %esi
callq 0x4750
movq %rax, %r12
leaq 0x1046b3(%rip), %rsi    # 0x15461f
movl $0xc, %edx
movq %rax, %rdi
callq 0x44e0
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
mulsd -0x30(%rbp), %xmm0
movq %r12, %rdi
callq 0x46b0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4420
movsbl %al, %esi
movq %r12, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42c0
testl %r15d, %r15d
movq -0x40(%rbp), %r12
jle 0x50001
xorl %ebx, %ebx
movl (%r14,%rbx,4), %esi
movq %r13, %rdi
callq 0x4750
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4420
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42c0
incq %rbx
cmpq %rbx, %r12
jne 0x4ffc3
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10457e(%rip), %rdi    # 0x154595
leaq 0x104250(%rip), %rsi    # 0x15426e
leaq 0x104584(%rip), %rcx    # 0x1545a9
movl $0x57b, %edx            # imm = 0x57B
callq 0x4290
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/./ray.h
// Function: hitdata::hitdata()
hitdata()
    {
      hit=false;
      hitpoint = Point(0,0,0);
      dist = 0.0;
      id = -1;
      object = NULL;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
addq $0x8, %rdi
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x85436
movb $0x0, (%rbx)
movq %rsp, %r14
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
movq %r14, %rdi
callq 0x85436
movq 0x10(%r14), %rax
movq %rax, 0x18(%rbx)
movups (%r14), %xmm0
movups %xmm0, 0x8(%rbx)
xorl %eax, %eax
movq %rax, 0x20(%rbx)
movl $0xffffffff, 0x28(%rbx) # imm = 0xFFFFFFFF
movq %rax, 0x30(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/graphstorage.cc
// Function: CONN::CONN(int, int, double, double, DELTA_POS)
CONN::CONN(int myFrom, int myTo, double len, double maxR, DELTA_POS deltaP){
    from       = myFrom;
    to         = myTo;
    length     = len;
    max_radius = maxR;
    deltaPos   = deltaP;
}

// Assembly:
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
movsd %xmm0, 0x8(%rdi)
movsd %xmm1, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movl %r8d, 0x20(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/graphstorage.cc
// Function: DIJKSTRA_NODE::DIJKSTRA_NODE(int, double, double, double, double, bool)
DIJKSTRA_NODE::DIJKSTRA_NODE(int myID, double myX, double myY, double myZ, double maxR, bool active_flag){
    id = myID; x = myX; y = myY; z = myZ;
    connections = vector<CONN> ();
    max_radius = maxR;
    active = active_flag;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl %edx, %ebx
movsd %xmm3, 0x8(%rsp)
movq %rdi, %r14
addq $0x20, %rdi
xorps %xmm3, %xmm3
movups %xmm3, 0x20(%r14)
xorl %eax, %eax
movq %rax, 0x30(%r14)
movl %esi, (%r14)
movsd %xmm0, 0x8(%r14)
movsd %xmm1, 0x10(%r14)
movsd %xmm2, 0x18(%r14)
leaq 0x10(%rsp), %r15
movq %rax, 0x10(%r15)
movaps %xmm3, (%r15)
movq %r15, %rsi
callq 0x3a704
movq (%r15), %rdi
testq %rdi, %rdi
je 0x50ce1
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x38(%r14)
movb %bl, 0x40(%r14)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/graphstorage.cc
// Function: DIJKSTRA_NODE::print(std::ostream&) const
void DIJKSTRA_NODE::print(ostream &out) const {
    out << " Node info:" << "\n"
    << "    #: " << id << "    X: " << x << "    Y: " << y << "    Z:" << z << "\n"
    << "   Connections:" << "\n";
    for(unsigned int i = 0; i<connections.size(); i++){
        out << "     ";
        connections.at(i).print();
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10394c(%rip), %rsi    # 0x154660
movl $0xb, %edx
movq %rbx, %rdi
callq 0x44e0
leaq 0x104806(%rip), %r15    # 0x15552e
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x44e0
leaq 0x10392d(%rip), %rsi    # 0x15466c
movl $0x7, %edx
movq %rbx, %rdi
callq 0x44e0
movl (%r14), %esi
movq %rbx, (%rsp)
movq %rbx, %rdi
callq 0x4750
movq %rax, %r12
leaq 0x10390f(%rip), %rsi    # 0x154674
movl $0x7, %edx
movq %rax, %rdi
callq 0x44e0
movsd 0x8(%r14), %xmm0
movq %r12, %rdi
callq 0x46b0
movq %rax, %r12
leaq 0x1038f2(%rip), %rsi    # 0x15467c
movl $0x7, %edx
movq %rax, %rdi
callq 0x44e0
movsd 0x10(%r14), %xmm0
movq %r12, %rdi
callq 0x46b0
movq %rax, %r12
leaq 0x1038d5(%rip), %rsi    # 0x154684
movl $0x6, %edx
movq %rax, %rdi
callq 0x44e0
movsd 0x18(%r14), %xmm0
movq %r12, %rdi
callq 0x46b0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x44e0
leaq 0x1038a7(%rip), %rsi    # 0x15468b
movl $0xf, %edx
movq %r12, %rdi
callq 0x44e0
movl $0x1, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x44e0
movq 0x28(%r14), %rax
cmpq 0x20(%r14), %rax
je 0x50e7e
movl $0x1, %ebp
xorl %r15d, %r15d
leaq 0xfe672(%rip), %r12     # 0x14f48c
movabsq $-0x3333333333333333, %rbx # imm = 0xCCCCCCCCCCCCCCCD
movq 0x146195(%rip), %r13    # 0x196fc0
movl $0x5, %edx
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x44e0
movq 0x20(%r14), %rax
movq 0x28(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %rbx, %rdx
cmpq %r15, %rdx
jbe 0x50e8d
leaq (%r15,%r15,4), %rcx
leaq (%rax,%rcx,8), %rdi
movq %r13, %rsi
callq 0x50b68
movl %ebp, %r15d
movq 0x28(%r14), %rax
subq 0x20(%r14), %rax
sarq $0x3, %rax
imulq %rbx, %rax
incl %ebp
cmpq %r15, %rax
ja 0x50e2b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xfe811(%rip), %rdi     # 0x14f6a5
movq %r15, %rsi
xorl %eax, %eax
callq 0x4630