LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/networkanalysis.cc
// Function: PATH::printPathEdges(std::vector<int, std::allocator<int>>, DIJKSTRA_NETWORK*)
void PATH::printPathEdges (vector<int> nodeList, DIJKSTRA_NETWORK *dnet){
  if(nodeList.size() < 2)
    return;
  
  unsigned int index = 0;
  int from, to;
  
  while(index < nodeList.size()-1){
    from = nodeList.at(index);
    to = nodeList.at(index+1);
    
    DIJKSTRA_NODE node = dnet->nodes.at(from);
    for(unsigned int i = 0; i < node.connections.size(); i++){
      CONN conn = node.connections.at(i);
      if(conn.to == to){
	conn.print();
      }
    }
    index++;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, 0x8(%rsp)
movq (%rsi), %rax
movq %rsi, (%rsp)
movq 0x8(%rsi), %rdx
subq %rax, %rdx
cmpq $0x5, %rdx
jb 0x3140f
sarq $0x2, %rdx
xorl %esi, %esi
movq 0x163cf9(%rip), %r13    # 0x194fc0
movabsq $-0x3333333333333333, %rbx # imm = 0xCCCCCCCCCCCCCCCD
xorl %r12d, %r12d
cmpq %rsi, %rdx
jbe 0x31421
incl %r12d
cmpq %r12, %rdx
jbe 0x3142a
movslq (%rax,%rsi,4), %rsi
movq 0x8(%rsp), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x71c71c71c71c71c7, %rdi # imm = 0x8E38E38E38E38E39
imulq %rdi, %rdx
cmpq %rsi, %rdx
jbe 0x31421
movq %r13, %rbp
movl (%rax,%r12,4), %r14d
leaq (%rsi,%rsi,8), %rax
leaq (%rcx,%rax,8), %r15
addq $0x20, %r15
movups -0x20(%r15), %xmm0
movups -0x10(%r15), %xmm1
movaps %xmm1, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
leaq 0x30(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x37e9e
movb 0x20(%r15), %al
movb %al, 0x20(%r13)
movq 0x18(%r15), %rax
movq %rax, 0x18(%r13)
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rax
cmpq %rdi, %rax
je 0x313d8
movl $0x1, %r15d
xorl %ecx, %ecx
movq %rbp, %r13
leaq 0x60(%rsp), %rbp
leaq (%rcx,%rcx,4), %rcx
movups (%rdi,%rcx,8), %xmm0
movups 0x10(%rdi,%rcx,8), %xmm1
movaps %xmm0, 0x60(%rsp)
movq 0x20(%rdi,%rcx,8), %rcx
movq %rcx, 0x80(%rsp)
movaps %xmm1, 0x70(%rsp)
cmpl %r14d, 0x64(%rsp)
jne 0x313bd
movq %rbp, %rdi
movq %r13, %rsi
callq 0x50832
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rax
movl %r15d, %ecx
movq %rax, %rdx
subq %rdi, %rdx
sarq $0x3, %rdx
imulq %rbx, %rdx
incl %r15d
cmpq %rcx, %rdx
ja 0x3137d
jmp 0x313db
movq %rbp, %r13
testq %rdi, %rdi
je 0x313ed
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq (%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
leaq -0x1(%rdx), %rcx
movq %r12, %rsi
cmpq %r12, %rcx
ja 0x312d4
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11c2cd(%rip), %rdi    # 0x14d6f5
jmp 0x31434
leaq 0x11c2c4(%rip), %rdi    # 0x14d6f5
movq %r12, %rsi
xorl %eax, %eax
callq 0x4630
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x31455
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4780
nop
// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/networkanalysis.cc
// Function: PATH::print(std::ostream&)
void PATH::print(ostream &output){
  output << "  "<< "Node lineage: ";
  for(unsigned int i=0; i<visitedNodes.size()-1; i++){
    output << "   " << visitedNodes.at(i).id << " -> ";
  }
  output << "   " << visitedNodes.back().id << "\n"
	   << "  Current node: "   << currentNode.id << "\n"
	 << "  Maximum radius: " << max_radius     << "\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x11c069(%rip), %rsi    # 0x14d4df
movl $0x2, %edx
movq %r14, %rdi
callq 0x44e0
leaq 0x11fede(%rip), %rsi    # 0x151368
movl $0xe, %edx
movq %r14, %rdi
callq 0x44e0
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cmpq $0x48, %rax
je 0x31532
movl $0x1, %ebp
xorl %r13d, %r13d
movabsq $-0x71c71c71c71c71c7, %r15 # imm = 0x8E38E38E38E38E39
leaq 0x11d223(%rip), %r12    # 0x14e6e4
movl $0x3, %edx
movq %r14, %rdi
leaq 0x11c00e(%rip), %rsi    # 0x14d4de
callq 0x44e0
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r15, %rdx
cmpq %r13, %rdx
jbe 0x315e0
leaq (,%r13,8), %rcx
addq %r13, %rcx
movl (%rax,%rcx,8), %esi
movq %r14, %rdi
callq 0x4750
movl $0x4, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movl %ebp, %r13d
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
imulq %r15, %rax
decq %rax
incl %ebp
cmpq %r13, %rax
ja 0x314c1
leaq 0x11bfa5(%rip), %rsi    # 0x14d4de
movl $0x3, %edx
movq %r14, %rdi
callq 0x44e0
movq 0x8(%rbx), %rax
movl -0x48(%rax), %esi
movq %r14, %rdi
callq 0x4750
movq %rax, %r15
leaq 0x1220bf(%rip), %r14    # 0x15361e
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0x11fe01(%rip), %rsi    # 0x151377
movl $0x10, %edx
movq %r15, %rdi
callq 0x44e0
movl 0x18(%rbx), %esi
movq %r15, %rdi
callq 0x4750
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0x11fde0(%rip), %rsi    # 0x151388
movl $0x12, %edx
movq %r15, %rdi
callq 0x44e0
movsd 0x60(%rbx), %xmm0
movq %r15, %rdi
callq 0x46b0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x44e0
leaq 0x11c10e(%rip), %rdi    # 0x14d6f5
movq %r13, %rsi
xorl %eax, %eax
callq 0x4630
// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/networkanalysis.cc
// Function: TRAVERSAL_NETWORK::TRAVERSAL_NETWORK(int, int, int, std::vector<int, std::allocator<int>>, std::vector<std::vector<CONN, std::allocator<CONN>>, std::allocator<std::vector<CONN, std::allocator<CONN>>>>, std::vector<std::vector<CONN, std::allocator<CONN>>, std::allocator<std::vector<CONN, std::allocator<CONN>>>>, std::vector<std::vector<CONN, std::allocator<CONN>>, std::allocator<std::vector<CONN, std::allocator<CONN>>>>, DIJKSTRA_NETWORK*)
TRAVERSAL_NETWORK::TRAVERSAL_NETWORK(int dx, int dy, int dz, vector<int> srcIDs, vector< vector<CONN> > regConns, 
				     vector< vector<CONN> > srcConns, vector< vector<CONN> > sinkConns, DIJKSTRA_NETWORK * dnetwork){
  sourceNodeIDs = srcIDs;
  regConnections = regConns;
  connectToSource = srcConns;
  connectToSink = sinkConns;
  direction = DELTA_POS(dx,dy,dz);
  dnet = dnetwork;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %r12
movq %r8, %rbp
movl %ecx, 0xc(%rsp)
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x18(%rdi), %rax
movq %rax, 0x20(%rsp)
leaq 0x30(%rdi), %rax
movq %rax, 0x18(%rsp)
leaq 0x48(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x60(%rdi), %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x506b0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x100d2
movq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x37cd4
movq 0x70(%rsp), %rsi
movq 0x18(%rsp), %rdi
callq 0x37cd4
movq 0x78(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x37cd4
leaq 0x2c(%rsp), %rdi
movl %r15d, %esi
movl %r14d, %edx
movl 0xc(%rsp), %ecx
callq 0x506b0
movq 0x80(%rsp), %rax
movl 0x34(%rsp), %ecx
movl %ecx, 0x8(%r13)
movq 0x2c(%rsp), %rcx
movq %rcx, (%r13)
movq %rax, 0x70(%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x316e0
movq %rax, %r14
movq 0x10(%rsp), %rdi
callq 0xf162
movq 0x18(%rsp), %rdi
callq 0xf162
movq 0x20(%rsp), %rdi
callq 0xf162
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x31715
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4470
movq %r14, %rdi
callq 0x4780
nop
// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/networkanalysis.cc
// Function: CAGE::getNodeOffset(int)
DELTA_POS CAGE::getNodeOffset(int nodeID){
  map<int,int>::iterator iter = nodeIndices.find(nodeID);
  if(iter == nodeIndices.end()){
    cerr << "Error: Node #" << nodeID << " not found in cage." << "\n"
	 << "Exiting..." << "\n";
    exit(1);
  }
  else
    return nodeOffsets[iter->second];
}

// Assembly:
pushq %rbx
movl %esi, %ebx
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0x361ac
leaq 0x8(%rdi), %rdx
movq %rdx, %rax
xorl %esi, %esi
cmpl %ebx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x36175
cmpq %rdx, %rax
je 0x361ac
cmpl %ebx, 0x20(%rax)
jg 0x361ac
movslq 0x24(%rax), %rax
movq 0x48(%rdi), %rcx
leaq (%rax,%rax,2), %rdx
movq (%rcx,%rdx,4), %rax
movl 0x8(%rcx,%rdx,4), %edx
popq %rbx
retq
movq 0x15ee3d(%rip), %rdi    # 0x194ff0
leaq 0x11b2c8(%rip), %rsi    # 0x151482
callq 0x4440
movq %rax, %rdi
movl %ebx, %esi
callq 0x4750
leaq 0x11b2c0(%rip), %rsi    # 0x151490
movq %rax, %rdi
callq 0x4440
leaq 0x11d43f(%rip), %rbx    # 0x15361e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4440
leaq 0x11e4d9(%rip), %rsi    # 0x1546ca
movq %rax, %rdi
callq 0x4440
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4440
movl $0x1, %edi
callq 0x72bc
// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/networkanalysis.cc
// Function: CAGE::writeToVMD(int, std::basic_fstream<char, std::char_traits<char>>&)
void CAGE::writeToVMD(int cageIndex, fstream &output){
  output << "set cages(" << cageIndex << ") {" << "\n"
	 << "{color $cageColors(" << cageIndex << ")}" << "\n"
	 << "{sphere {" << cx << " " << cy << " " << cz << "} radius " << radius << " resolution 100 }" << "\n"
	 <<"}" << "\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0x10(%rdx), %rbx
leaq 0x11b248(%rip), %rsi    # 0x1514a4
movl $0xa, %edx
movq %rbx, %rdi
callq 0x44e0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4750
movq %rax, %r15
leaq 0x11e19b(%rip), %rsi    # 0x154418
movl $0x3, %edx
movq %rax, %rdi
callq 0x44e0
leaq 0x11d38d(%rip), %rbx    # 0x15361e
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x44e0
leaq 0x11b207(%rip), %rsi    # 0x1514af
movl $0x13, %edx
movq %r15, %rdi
callq 0x44e0
movq %r15, %rdi
movl %ebp, %esi
callq 0x4750
movq %rax, %r15
leaq 0x11e16b(%rip), %rsi    # 0x154434
movl $0x2, %edx
movq %rax, %rdi
callq 0x44e0
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x44e0
leaq 0x11b1d6(%rip), %rsi    # 0x1514c3
movl $0x9, %edx
movq %r15, %rdi
callq 0x44e0
movsd 0x60(%r14), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
leaq 0x11f2c4(%rip), %r12    # 0x1555d6
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movsd 0x68(%r14), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movsd 0x70(%r14), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r15
leaq 0x11b172(%rip), %rsi    # 0x1514cd
movl $0x9, %edx
movq %rax, %rdi
callq 0x44e0
movsd 0x78(%r14), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %r14
leaq 0x11b157(%rip), %rsi    # 0x1514d7
movl $0x11, %edx
movq %rax, %rdi
callq 0x44e0
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x44e0
leaq 0x11dfda(%rip), %rsi    # 0x15437e
movl $0x1, %edx
movq %r14, %rdi
callq 0x44e0
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x44e0
// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/./heap.h
// Function: HEAP<PATH>::pop()
T pop(){
    std::pop_heap(elements.begin(), elements.end(), comparator);
    T most = elements.back();
    elements.pop_back();
    return most;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
movq 0x8(%rsi), %r12
movq %r12, %rax
subq %rdi, %rax
cmpq $0xc9, %rax
jl 0x38032
movq 0x18(%r14), %rax
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
addq $-0xc8, %r12
movq %r12, %rsi
movq %r12, %rdx
callq 0x3a359
movq 0x8(%r14), %r12
leaq -0xc8(%r12), %rsi
movq %rbx, %rdi
callq 0x38b26
movups -0xb0(%r12), %xmm0
movups -0xa0(%r12), %xmm1
movups %xmm1, 0x28(%rbx)
movups %xmm0, 0x18(%rbx)
leaq 0x38(%rbx), %r15
leaq -0x90(%r12), %rsi
movq %r15, %rdi
callq 0x37e9e
movb -0x70(%r12), %al
movb %al, 0x58(%rbx)
movq -0x78(%r12), %rax
movq %rax, 0x50(%rbx)
movups -0x68(%r12), %xmm0
movups -0x5f(%r12), %xmm1
movups %xmm0, 0x60(%rbx)
movups %xmm1, 0x69(%rbx)
leaq 0x80(%rbx), %r13
leaq -0x48(%r12), %rsi
movq %r13, %rdi
callq 0xe8f8
leaq 0x98(%rbx), %rdi
addq $-0x30, %r12
movq %r12, %rsi
callq 0x11100
movq $-0xc8, %rsi
addq 0x8(%r14), %rsi
movq %rsi, 0x8(%r14)
movq %r14, %rdi
callq 0x39e5c
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%r13), %rdi
testq %rdi, %rdi
je 0x38104
movq 0x90(%rbx), %rsi
subq %rdi, %rsi
callq 0x4470
jmp 0x38104
movq %rax, %r14
movq (%r15), %rdi
testq %rdi, %rdi
je 0x3811d
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
callq 0x4470
jmp 0x3811d
movq %rax, %r14
movq %rbx, %rdi
callq 0xf10e
movq %r14, %rdi
callq 0x4780
nop
// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/area_and_volume.cc
// Function: calcDensity(ATOM_NETWORK*)
double calcDensity(ATOM_NETWORK *atmnet){
  double volume = calcDeterminant(atmnet->ucVectors); // Units of A^3
  vector<ATOM>::iterator iter = atmnet->atoms.begin();
  double massSum = 0;
  while(iter != atmnet->atoms.end()){
    massSum += iter->mass; 
    iter++;
  }
  return  massSum/(AVOGRADOS_NUMBER*volume)*1.0e24; // Units of g/cm^3
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x80, %rdi
callq 0x83b30
movq 0x2f0(%rbx), %rax
movq 0x2f8(%rbx), %rcx
xorpd %xmm1, %xmm1
cmpq %rcx, %rax
je 0x3c5dc
addsd 0x38(%rax), %xmm1
addq $0x98, %rax
jmp 0x3c5ca
mulsd 0x114ffc(%rip), %xmm0   # 0x1515e0
divsd %xmm0, %xmm1
mulsd 0x114ff8(%rip), %xmm1   # 0x1515e8
movapd %xmm1, %xmm0
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x114267(%rip), %rsi    # 0x151718
movl $0x12, %edx
callq 0x44e0
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x5, %rsi
movq %r14, %rdi
callq 0x42b0
leaq 0x116149(%rip), %rsi    # 0x15361e
movl $0x1, %edx
movq %rax, %rdi
callq 0x44e0
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x3d676
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 0x1141ff(%rip), %rsi    # 0x15172b
callq 0x44e0
movq %r14, %rdi
movq %r15, %rsi
callq 0x42b0
movq %rax, %rbp
movl $0x3, %edx
movq %rax, %rdi
leaq 0x116eca(%rip), %rsi    # 0x154418
callq 0x44e0
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x118056(%rip), %r14    # 0x1555d6
movq %r14, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x83f9a
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 0x83f9a
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
leaq 0x113fb0(%rip), %rsi    # 0x151598
callq 0x44e0
movl $0x1, %edx
movq %rbp, %rdi
leaq 0x116022(%rip), %rbp    # 0x15361e
movq %rbp, %rsi
callq 0x44e0
movl $0xd, %edx
movq %r14, %rdi
leaq 0x114125(%rip), %rsi    # 0x151738
callq 0x44e0
movq %r14, %rdi
movq %r15, %rsi
callq 0x42b0
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
leaq 0x11774b(%rip), %rsi    # 0x154d80
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 0x3d501
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3d79d
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 0x83f9a
movsd (%rax), %xmm0
movq %r14, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rbx
leaq 0x117edf(%rip), %r14    # 0x1555d6
movq %r14, %rsi
callq 0x44e0
movq %r12, %rdi
movl $0x1, %esi
callq 0x83f9a
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 0x83f9a
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x4, %edx
movq %rax, %rdi
leaq 0x113fed(%rip), %rsi    # 0x151746
callq 0x44e0
movl $0x1, %edx
movq %rbp, %rdi
leaq 0x115eb1(%rip), %rsi    # 0x15361e
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 0x3d6b6
movq 0x20(%rsp), %rbx
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x3d898
movl $0x1, %ebp
xorl %ecx, %ecx
movq %rsp, %r15
leaq 0x117e16(%rip), %r12    # 0x1555d6
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 0x83f9a
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 0x83f9a
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 0x83f9a
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x46b0
movq %rax, %r13
movl $0x4, %edx
movq %rax, %rdi
leaq 0x113ef5(%rip), %rsi    # 0x15174b
callq 0x44e0
movl $0x1, %edx
movq %r13, %rdi
leaq 0x115db4(%rip), %rsi    # 0x15361e
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 0x3d7c0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x10a203(%rip), %rsi    # 0x152093
leaq 0x10a207(%rip), %rdx    # 0x15209e
movq %rsp, %rdi
callq 0x22538
movq %r12, %rdi
callq 0x3c5a8
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 0x45981
addq $0x30, %rsp
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x46a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x47f16
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x14d063(%rip), %rsi    # 0x194f80
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 0x47f50
movq %rax, %rbx
jmp 0x47f6e
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x47f6e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x14d00b(%rip), %rsi    # 0x194f80
leaq 0x30(%rsp), %rdi
callq 0x4310
leaq 0xb0(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O3/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 0x10a06b(%rip), %rsi    # 0x152093
leaq 0x10a06f(%rip), %rdx    # 0x15209e
movq %rsp, %rdi
callq 0x22538
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 0x3dbbe
addq $0x30, %rsp
leaq 0x58(%rsp), %rsi
movq %rbx, %rdi
callq 0x46a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x480a0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x14ced9(%rip), %rsi    # 0x194f80
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 0x480f6
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x480f6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x14ce83(%rip), %rsi    # 0x194f80
leaq 0x40(%rsp), %rdi
callq 0x4310
leaq 0xc0(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O3/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:
cmpb $0x1, 0xa3c(%rdi)
jne 0x4886c
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x14c7af(%rip), %r14    # 0x194fc0
leaq 0x1098c7(%rip), %rsi    # 0x1520df
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
jmp 0x4886e
xorl %eax, %eax
andb $0x1, %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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:
movslq 0xa1c(%rdi), %rax
movq 0x9b8(%rdi), %rcx
movq 0x9d0(%rdi), %rdx
movl (%rcx,%rax,4), %ecx
movl (%rdx,%rax,4), %eax
testl %eax, %ecx
js 0x4889b
movl %eax, %eax
shlq $0x20, %rax
orq %rcx, %rax
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x14c747(%rip), %r14    # 0x194ff0
leaq 0x10985a(%rip), %rsi    # 0x15210a
movq %r14, %rdi
callq 0x4440
movsd 0x9f8(%rbx), %xmm0
movq %rax, %rdi
callq 0x4810
leaq 0x10c6a2(%rip), %rsi    # 0x154f71
movq %rax, %rdi
callq 0x4440
movq %rax, %rdi
callq 0x41f0
leaq 0x10988d(%rip), %rsi    # 0x152173
movq %r14, %rdi
callq 0x4440
movl 0xa1c(%rbx), %esi
movq %rax, %rdi
callq 0x4750
leaq 0x109879(%rip), %rsi    # 0x15217c
movq %rax, %rdi
callq 0x4440
movl 0xa18(%rbx), %esi
movq %rax, %rdi
callq 0x4750
leaq 0x10986e(%rip), %rsi    # 0x15218e
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_O3/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
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rsi), %rdi
movq 0x8(%rsi), %rdx
subq %rdi, %rdx
je 0x49bd5
sarq $0x3, %rdx
movabsq $0x4fcace213f2b3885, %rbp # imm = 0x4FCACE213F2B3885
imulq %rbp, %rdx
testl %edx, %edx
jle 0x49bd5
movq %rsi, %r14
xorl %r13d, %r13d
xorl %r12d, %r12d
cmpq %r12, %rdx
jbe 0x49c84
addq %r13, %rdi
movq %r15, %rsi
callq 0x78840
movq (%r14), %rax
movq 0x8(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
cmpq %r12, %rdx
jbe 0x49c73
movq (%rsp), %rsi
movq 0x238(%rax,%r13), %rdx
movq 0x240(%rax,%r13), %rcx
movq %rsp, %rdi
callq 0x4a1b0
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 0x49b5b
movq (%rsp), %rax
movq 0x8(%rsp), %rsi
jmp 0x49bd9
xorl %eax, %eax
xorl %esi, %esi
subq %rax, %rsi
sarq $0x3, %rsi
movq %rbx, %rdi
callq 0x42b0
leaq 0x109a2f(%rip), %rsi    # 0x15361e
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 0x49c52
xorl %r15d, %r15d
leaq 0x109a04(%rip), %r14    # 0x15361e
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 0x49c1a
testq %rdi, %rdi
je 0x49c64
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 0x103a7b(%rip), %rdi    # 0x14d6f5
movq %r12, %rsi
xorl %eax, %eax
callq 0x4630
leaq 0x103a6a(%rip), %rdi    # 0x14d6f5
movq %r12, %rsi
xorl %eax, %eax
callq 0x4630
jmp 0x49c9d
jmp 0x49c9d
jmp 0x49c9d
jmp 0x49c9d
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x49cb6
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O3/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 (%rsi), %rdi
movq 0x8(%rsi), %rdx
subq %rdi, %rdx
je 0x49dd4
sarq $0x3, %rdx
movabsq $0x4fcace213f2b3885, %r15 # imm = 0x4FCACE213F2B3885
imulq %r15, %rdx
testl %edx, %edx
jle 0x49dd4
movl %r8d, %ebx
movq %rcx, %r14
movq %rsi, %r13
xorl %ebp, %ebp
xorl %r12d, %r12d
cmpq %r12, %rdx
jbe 0x49de3
addq %rbp, %rdi
movq 0x10(%rsp), %rsi
callq 0x78840
movq (%r13), %rdi
movq 0x8(%r13), %rdx
subq %rdi, %rdx
sarq $0x3, %rdx
imulq %r15, %rdx
cmpq %r12, %rdx
jbe 0x49de3
addq %rbp, %rdi
movq 0x8(%rsp), %rsi
leaq 0x4(%rsp), %rdx
movl %ebx, %ecx
callq 0x7c2fc
movq (%r13), %rax
movq 0x8(%r13), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r15, %rdx
testl %ebx, %ebx
je 0x49d83
cmpq %r12, %rdx
jbe 0x49de3
addq %rbp, %rax
addq $0x250, %rax            # imm = 0x250
jmp 0x49d98
cmpq %r12, %rdx
jbe 0x49de3
imulq $0x268, %r12, %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 0x4a1b0
incq %r12
movq (%r13), %rdi
movq 0x8(%r13), %rdx
subq %rdi, %rdx
sarq $0x3, %rdx
imulq %r15, %rdx
movslq %edx, %rax
addq $0x268, %rbp            # imm = 0x268
cmpq %rax, %r12
jl 0x49d16
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10390b(%rip), %rdi    # 0x14d6f5
movq %r12, %rsi
xorl %eax, %eax
callq 0x4630
// File: /workspace/github_cpp_makefile_star2_O3/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 0xf3ce
cmpq $0x0, 0x10(%rsp)
je 0x4a4d8
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 0x4a47c
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 0x2f96e
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4a482
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x4a482
cmpl $-0x1, %r13d
je 0x4a4cb
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 0x4a4bd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
cmpq $0x0, 0x10(%rsp)
jne 0x4a429
jmp 0x4a4d8
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2f520
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4a4f4
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 0x4a52b
movq %rax, %r14
jmp 0x4a54a
jmp 0x4a52b
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4a52e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x4a52e
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4a54a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x2f4c2
movq %r14, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O3/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 0x107d9f(%rip), %rsi    # 0x152319
movq %r14, %rdi
callq 0x4170
testl %eax, %eax
je 0x4a5ab
leaq 0x107d8c(%rip), %r15    # 0x152319
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2f520
addq $0x20, %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x4170
testl %eax, %eax
jne 0x4a58d
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2f4c2
movq %r14, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4a636
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rsp)
movq 0x14a99f(%rip), %rsi    # 0x194fb0
leaq 0x10(%rsp), %rdi
callq 0x45e0
leaq 0x88(%rsp), %rdi
callq 0x41a0
movsd (%rsp), %xmm0
addq $0x190, %rsp            # imm = 0x190
popq %rbx
retq
movq 0x14a983(%rip), %rdi    # 0x194fc0
leaq 0x107bbc(%rip), %rsi    # 0x152200
movl $0x1f, %edx
callq 0x44e0
movq 0x14a96b(%rip), %rdi    # 0x194fc0
callq 0x41f0
xorl %edi, %edi
callq 0x72bc
movq %rax, %rbx
movq 0x14a945(%rip), %rsi    # 0x194fb0
leaq 0x10(%rsp), %rdi
callq 0x45e0
leaq 0x88(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4a6ef
movl 0xc(%rsp), %ebx
movq 0x14a8e3(%rip), %rsi    # 0x194fb0
leaq 0x10(%rsp), %rdi
callq 0x45e0
leaq 0x88(%rsp), %rdi
callq 0x41a0
movl %ebx, %eax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
retq
movq 0x14a8ca(%rip), %rdi    # 0x194fc0
leaq 0x107b23(%rip), %rsi    # 0x152220
movl $0x1c, %edx
callq 0x44e0
movq 0x14a8b2(%rip), %rdi    # 0x194fc0
callq 0x41f0
xorl %edi, %edi
callq 0x72bc
movq %rax, %rbx
movq 0x14a88c(%rip), %rsi    # 0x194fb0
leaq 0x10(%rsp), %rdi
callq 0x45e0
leaq 0x88(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4a7b5
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x46a0
movq 0x14a827(%rip), %rsi    # 0x194fb8
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 0x14a804(%rip), %rdi    # 0x194fc0
leaq 0x107a7a(%rip), %rsi    # 0x15223d
movl $0x1f, %edx
callq 0x44e0
movq 0x14a7ec(%rip), %rdi    # 0x194fc0
callq 0x41f0
xorl %edi, %edi
callq 0x72bc
movq %rax, %rbx
movq 0x14a7ce(%rip), %rsi    # 0x194fb8
leaq 0x8(%rsp), %rdi
callq 0x4230
leaq 0x78(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O3/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 0x14a777(%rip), %rsi    # 0x194fb8
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 0x14a74a(%rip), %rsi    # 0x194fb8
leaq 0x8(%rsp), %rdi
callq 0x4230
leaq 0x78(%rsp), %rdi
callq 0x41a0
movq %rbx, %rdi
callq 0x4780
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x841b8
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jae 0x4b2e8
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 0x841b8
movsd %xmm0, 0x18(%rsp)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movupd (%r14), %xmm0
movupd %xmm0, (%rsp)
movq %r12, %rdi
callq 0x841b8
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 0x841b8
movsd 0x18(%rsp), %xmm1
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x4b2f6
movb $0x1, (%r15)
movsd %xmm0, 0x20(%r15)
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x84096
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 0x84196
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 0x149cf3(%rip), %r15    # 0x194ff0
leaq 0x106fbc(%rip), %rsi    # 0x1522c0
movq %r15, %rdi
movsd %xmm0, 0x18(%rsp)
callq 0x4440
movq %rax, %rdi
movsd 0x18(%rsp), %xmm0
callq 0x4810
leaq 0x106fac(%rip), %rsi    # 0x1522d3
movq %rax, %rdi
callq 0x4440
movq %rax, %rdi
callq 0x41f0
leaq 0x106849(%rip), %rsi    # 0x151b87
movq %r15, %rdi
callq 0x4440
movq %rax, %rdi
movq %r14, %rsi
callq 0x84242
leaq 0x106fa3(%rip), %rsi    # 0x1522fb
movq %rax, %rdi
callq 0x4440
movq %rax, %rdi
movq %rbx, %rsi
callq 0x84242
movq %rax, %rdi
callq 0x41f0
callq 0x4260
// File: /workspace/github_cpp_makefile_star2_O3/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 $0x78, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x40(%rsp), %rdi
callq 0x501a8
movq %r14, %rdi
callq 0x501a8
cmpq $0x0, 0x30(%r14)
jne 0x4b4cf
movq (%r15), %rdi
cmpq %rdi, 0x8(%r15)
je 0x4b4bd
leaq 0x8(%r14), %rax
movq %rax, 0x38(%rsp)
xorl %ebp, %ebp
leaq 0x40(%rsp), %r12
xorl %r13d, %r13d
shlq $0x5, %rbp
addq %rbp, %rdi
movupd (%rbx), %xmm0
movupd 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm2, 0x20(%rsp)
movupd %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movq %r12, %rsi
callq 0x4af28
cmpb $0x1, 0x40(%rsp)
jne 0x4b4a0
cmpb $0x0, (%r14)
movsd 0x60(%rsp), %xmm0
je 0x4b46c
movsd 0x20(%r14), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x4b49b
movb $0x1, (%r14)
movsd %xmm0, 0x20(%r14)
leaq 0x48(%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x38(%rsp), %rdx
movq %rax, 0x10(%rdx)
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movl %r13d, 0x28(%r14)
addq (%r15), %rbp
movq %rbp, 0x30(%r14)
movb $0x0, 0x40(%rsp)
incl %r13d
movq (%r15), %rdi
movq 0x8(%r15), %rax
subq %rdi, %rax
sarq $0x5, %rax
movq %r13, %rbp
cmpq %r13, %rax
ja 0x4b421
movq %r14, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x106e2f(%rip), %rdi    # 0x152305
leaq 0x106e41(%rip), %rsi    # 0x15231e
leaq 0x106e41(%rip), %rcx    # 0x152325
movl $0x4a, %edx
callq 0x4290
// File: /workspace/github_cpp_makefile_star2_O3/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 $0x78, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x40(%rsp), %rdi
callq 0x501a8
movq %r14, %rdi
callq 0x501a8
movq (%r15), %rdi
cmpq %rdi, 0x8(%r15)
je 0x4b5e4
leaq 0x8(%r14), %rax
movq %rax, 0x38(%rsp)
xorl %r13d, %r13d
movabsq $-0x5555555555555555, %rbp # imm = 0xAAAAAAAAAAAAAAAB
leaq (,%r13,2), %r12
addq %r13, %r12
shlq $0x4, %r12
addq %r12, %rdi
movupd (%rbx), %xmm0
movupd 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm2, 0x20(%rsp)
movupd %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
leaq 0x40(%rsp), %rsi
callq 0x4b1c4
cmpb $0x1, 0x40(%rsp)
jne 0x4b5c6
cmpb $0x0, (%r14)
movsd 0x60(%rsp), %xmm0
je 0x4b592
movsd 0x20(%r14), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x4b5c1
movb $0x1, (%r14)
movsd %xmm0, 0x20(%r14)
leaq 0x48(%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x38(%rsp), %rdx
movq %rax, 0x10(%rdx)
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movl %r13d, 0x28(%r14)
addq (%r15), %r12
movq %r12, 0x30(%r14)
movb $0x0, 0x40(%rsp)
incl %r13d
movq (%r15), %rdi
movq 0x8(%r15), %rax
subq %rdi, %rax
sarq $0x4, %rax
imulq %rbp, %rax
cmpq %r13, %rax
ja 0x4b53a
movq %r14, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq