LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/MeshInfo.cpp
// Function: TriangleMesh::clear()
void
TriangleMesh::clear()
{
  for (auto it = triangles.begin(); it != triangles.end(); ++it)
  {
    delete *it;
  }

  for (auto it = vertices.begin(); it != vertices.end(); ++it)
  {
    delete *it;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %r15
pushq $0xc
popq %r14
cmpq 0x20(%rbx), %r15
je 0x4d87
movq (%r15), %rdi
movq %r14, %rsi
callq 0x4330
addq $0x8, %r15
jmp 0x4d70
movq (%rbx), %r15
pushq $0x18
popq %r14
cmpq 0x8(%rbx), %r15
je 0x4da5
movq (%r15), %rdi
movq %r14, %rsi
callq 0x4330
addq $0x8, %r15
jmp 0x4d8e
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/MeshInfo.cpp
// Function: getFirstValue(std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char>>&, int&)
bool
getFirstValue(std::istringstream & ss, int & value)
{
  std::string s;

  if (ss >> s)
  {
    std::istringstream valuestream(s);
    if (valuestream >> value)
      return true;
  }

  return false;
}

// Assembly:
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rsi, %rbx
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rsp, %rsi
callq 0x43d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4e14
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
pushq $0x8
popq %rdx
callq 0x4550
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x41f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movb 0x20(%rax,%rcx), %bl
leaq 0x20(%rsp), %rdi
callq 0x4180
testb $0x5, %bl
je 0x4e29
xorl %ebx, %ebx
movq %rsp, %rdi
callq 0x4170
movl %ebx, %eax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
retq
movb $0x1, %bl
jmp 0x4e16
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4180
jmp 0x4e41
jmp 0x4e3e
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/Algebra3.hpp
// Function: operator>>(std::istream&, Vec3&)
inline std::istream & operator >> (std::istream & s, Vec3 & v)
{
  Vec3 v_tmp;
  char c = ' ';

  while (std::isspace(c))
    s >> c;

  // The vectors can be formatted either as x y z or | x y z |
  if (c == '|')
  {
    s >> v_tmp[0] >> v_tmp[1] >> v_tmp[2];
    while (s >> c && std::isspace(c)) ;
    if (c != '|')
      s.setstate(std::ios::badbit);
  }
  else
  {
    s.putback(c);
    s >> v_tmp[0] >> v_tmp[1] >> v_tmp[2];
  }

  if (s)
    v = v_tmp;

  return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xf(%rsp), %r15
movb $0x20, (%r15)
movb $0x20, %r12b
movsbl %r12b, %ebp
movl %ebp, %edi
callq 0x4060
testl %eax, %eax
je 0x50fb
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4400
movb 0xf(%rsp), %r12b
jmp 0x50da
cmpb $0x7c, %r12b
jne 0x5170
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4220
leaq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0x4220
leaq 0x20(%rsp), %rsi
movq %rax, %rdi
callq 0x4220
leaq 0xf(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4400
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
movsbl 0xf(%rsp), %ebp
jne 0x5156
movl %ebp, %edi
callq 0x4060
testl %eax, %eax
jne 0x512d
cmpb $0x7c, %bpl
je 0x51a1
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0x4200
jmp 0x51a1
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4620
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4220
leaq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0x4220
leaq 0x20(%rsp), %rsi
movq %rax, %rdi
callq 0x4220
movq (%rbx), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%rbx,%rax)
jne 0x51c4
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%r14)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x10(%r14)
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/Scene.cpp
// Function: printNode(SceneInstance*, int)
void
printNode(SceneInstance * n, int level = 0)
{
  tab(level);
  std::cout << "Node " << n->getName() << " {" << std::endl;

  if (n->getChild())
  {
    SceneGroup * below = n->getChild();

    for (int i = 0; i < below->getChildCount(); i++)
    {
      printNode(below->getChild(i), level + 1);
    }
  }

  tab(level);
  std::cout << "}" << std::endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebx
movq %rdi, %r14
movl %esi, %edi
callq 0x54f8
movq 0x29a8b(%rip), %rdi     # 0x2efd0
leaq 0x1bb70(%rip), %rsi     # 0x210bc
callq 0x4300
movq %rax, %r15
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x5ff8
movq %r15, %rdi
movq %r12, %rsi
callq 0x42e0
leaq 0x1bb4e(%rip), %rsi     # 0x210c2
movq %rax, %rdi
callq 0x4300
movq %rax, %rdi
callq 0x4190
movq %rsp, %rdi
callq 0x4170
movq %r14, %rdi
callq 0x5ff2
testq %rax, %rax
je 0x55d1
movq %r14, %rdi
callq 0x5ff2
movq %rax, %r14
leal 0x1(%rbx), %ebp
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x5806
cmpl %eax, %r15d
jge 0x55d1
movq %r14, %rdi
movl %r15d, %esi
callq 0x5814
movq %rax, %rdi
movl %ebp, %esi
callq 0x5526
incl %r15d
jmp 0x55aa
movl %ebx, %edi
callq 0x54f8
movq 0x299f1(%rip), %rdi     # 0x2efd0
leaq 0x1badf(%rip), %rsi     # 0x210c5
callq 0x4300
movq %rax, %rdi
callq 0x4190
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneGroup.cpp
// Function: SceneGroup::SceneGroup()
SceneGroup::SceneGroup()
{
  name_ = "unassigned";
  sphere_ = NULL;
  light_ = NULL;
  camera_ = NULL;
  meshMaterial_ = NULL;
  mesh_ = NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x291a5(%rip), %rax     # 0x2e888
movq %rax, (%rdi)
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x8(%rdi), %r14
movb $0x0, 0x18(%rdi)
leaq 0x28(%rdi), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
andq $0x0, 0x38(%rdi)
leaq 0x1b9c3(%rip), %rsi     # 0x210d5
movq %r14, %rdi
callq 0x4630
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rbx)
movups %xmm0, 0x40(%rbx)
andq $0x0, 0x60(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %r15, %rdi
callq 0x5ea6
movq %r14, %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneGroup.cpp
// Function: SceneGroup::~SceneGroup()
SceneGroup::~SceneGroup()
{
  delete sphere_;
  delete light_;
  delete camera_;
  delete mesh_;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2912e(%rip), %rax     # 0x2e888
movq %rax, (%rdi)
movq 0x40(%rdi), %r14
testq %r14, %r14
je 0x5774
movq (%r14), %rdi
testq %rdi, %rdi
je 0x5774
movq (%rdi), %rax
callq *0x20(%rax)
pushq $0x10
popq %rsi
movq %r14, %rdi
callq 0x4330
movq 0x48(%rbx), %r14
testq %r14, %r14
je 0x5790
movq %r14, %rdi
callq 0x59ee
pushq $0x30
popq %rsi
movq %r14, %rdi
callq 0x4330
movq 0x50(%rbx), %r14
testq %r14, %r14
je 0x57ac
movq %r14, %rdi
callq 0x5a6a
pushq $0x38
popq %rsi
movq %r14, %rdi
callq 0x4330
movq 0x58(%rbx), %r14
testq %r14, %r14
je 0x57c8
movq %r14, %rdi
callq 0x5aa6
pushq $0x30
popq %rsi
movq %r14, %rdi
callq 0x4330
leaq 0x28(%rbx), %rdi
callq 0x5ea6
addq $0x8, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4170
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneGroup.cpp
// Function: SceneGroup::computeMesh(TriangleMesh*&, MaterialInfo&, int)
bool
SceneGroup::computeMesh(TriangleMesh *& mesh, MaterialInfo & material, int time)  /* get a Mesh and it's material */
{
  if (mesh_ == NULL || meshMaterial_ == NULL)
    return false;

  mesh = mesh_;
  material = meshMaterial_->getMaterial(time);
  return true;
}

// Assembly:
movq 0x58(%rdi), %rax
testq %rax, %rax
je 0x58a1
cmpq $0x0, 0x60(%rdi)
je 0x58a1
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rdx, %rbx
movq %rax, (%rsi)
movq 0x60(%rdi), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ecx, %edx
callq 0x5aca
movq 0x30(%r14), %rax
movq %rax, 0x30(%rbx)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x20(%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movups 0x38(%r14), %xmm0
movups %xmm0, 0x38(%rbx)
movsd 0x48(%r14), %xmm0
movsd %xmm0, 0x48(%rbx)
movb $0x1, %al
addq $0x58, %rsp
popq %rbx
popq %r14
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneGroup.cpp
// Function: SceneGroup::computeSphere(double&, MaterialInfo&, int)
bool
SceneGroup::computeSphere(double & radius, MaterialInfo & material, int time)  /* get a sphere */
{
  if (sphere_ == NULL)
    return false;

  radius = sphere_->getRadius(time);
  material = sphere_->getMaterial(time);
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq 0x40(%rdi), %r12
testq %r12, %r12
je 0x591d
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%r12), %rdi
cvtsi2sd %ecx, %xmm0
movq (%rdi), %rax
callq *0x8(%rax)
movsd %xmm0, (%r15)
movq 0x40(%r14), %rsi
movq %rsp, %r14
movq %r14, %rdi
movl %ebp, %edx
callq 0x5bec
movq 0x30(%r14), %rax
movq %rax, 0x30(%rbx)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x20(%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movups 0x38(%r14), %xmm0
movups %xmm0, 0x38(%rbx)
movsd 0x48(%r14), %xmm0
movsd %xmm0, 0x48(%rbx)
testq %r12, %r12
setne %al
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneGroup.cpp
// Function: SceneGroup::computeLight(LightInfo&, int)
bool
SceneGroup::computeLight(LightInfo & ld, int time)  /* get light parameters */
{
  if (light_ == NULL)
    return false;
  else
    ld = light_->getLight(time);

  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq 0x48(%rdi), %rbx
testq %rbx, %rbx
je 0x5983
movq %rsi, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5bfe
movl (%r15), %eax
movl %eax, (%r14)
movups 0x8(%r15), %xmm0
movups %xmm0, 0x8(%r14)
movsd 0x18(%r15), %xmm0
movsd %xmm0, 0x18(%r14)
movups 0x20(%r15), %xmm0
movups 0x30(%r15), %xmm1
movups %xmm0, 0x20(%r14)
movups %xmm1, 0x30(%r14)
testq %rbx, %rbx
setne %al
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneData.hpp
// Function: ParametricLight::~ParametricLight()
~ParametricLight()
    {
      delete type_;
      delete color_;
      delete falloff_;
      delete angularFalloff_;
      delete deadDistance_;
      delete offset_;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x5a03
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x5a14
movq %r14, %rdi
callq 0x5dc0
pushq $0x18
popq %rsi
movq %r14, %rdi
callq 0x4330
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x5a2e
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x5a3d
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x5a4c
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x5a62
movq (%rdi), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *0x20(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneData.hpp
// Function: ParametricMaterial::getMaterial(int)
MaterialInfo getMaterial(int time)
    {
      return MaterialInfo(RGB_->getColor(time),
                          coefficients_[0]->getValue(time),
                          coefficients_[1]->getValue(time),
                          coefficients_[2]->getValue(time),
                          coefficients_[3]->getValue(time),
                          coefficients_[4]->getValue(time),
                          coefficients_[5]->getValue(time),
                          coefficients_[6]->getValue(time));
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %rsi
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x5e34
movq 0x8(%r15), %rdi
cvtsi2sd %ebp, %xmm0
movsd %xmm0, 0x8(%rsp)
movq (%rdi), %rax
callq *0x8(%rax)
movsd %xmm0, 0x38(%rsp)
movq 0x10(%r15), %rdi
movq (%rdi), %rax
movsd 0x8(%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x30(%rsp)
movq 0x18(%r15), %rdi
movq (%rdi), %rax
movsd 0x8(%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x28(%rsp)
movq 0x20(%r15), %rdi
movq (%rdi), %rax
movsd 0x8(%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x20(%rsp)
movq 0x28(%r15), %rdi
movq (%rdi), %rax
movsd 0x8(%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x18(%rsp)
movq 0x30(%r15), %rdi
movq (%rdi), %rax
movsd 0x8(%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x10(%rsp)
movq 0x38(%r15), %rdi
movq (%rdi), %rax
movsd 0x8(%rsp), %xmm0
callq *0x8(%rax)
movaps (%r14), %xmm1
movups %xmm1, 0x38(%rbx)
movsd 0x10(%r14), %xmm1
movsd %xmm1, 0x48(%rbx)
movsd 0x38(%rsp), %xmm1
movsd %xmm1, (%rbx)
movsd 0x30(%rsp), %xmm1
movsd %xmm1, 0x8(%rbx)
movsd 0x28(%rsp), %xmm1
movsd %xmm1, 0x10(%rbx)
movsd 0x20(%rsp), %xmm1
movsd %xmm1, 0x18(%rbx)
movsd 0x18(%rsp), %xmm1
movsd %xmm1, 0x20(%rbx)
movsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x28(%rbx)
movsd %xmm0, 0x30(%rbx)
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneData.hpp
// Function: ParametricLight::getLight(int)
LightInfo getLight(int time)
    {
      return LightInfo((int)type_->getValue(time),
                       color_->getColor(time), falloff_->getValue(time),
                       angularFalloff_->getValue(time), deadDistance_->getValue(time),
                       offset_->getValue(time));
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
cvtsi2sd %edx, %xmm0
movsd %xmm0, (%rsp)
movq (%rdi), %rax
callq *0x8(%rax)
cvttsd2si %xmm0, %r12d
movq 0x8(%r14), %rsi
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movl %ebp, %edx
callq 0x5e34
movq 0x10(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x18(%rsp)
movq 0x18(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x10(%rsp)
movq 0x20(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x8(%rsp)
movq 0x28(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movl %r12d, (%rbx)
movaps (%r15), %xmm1
movups %xmm1, 0x8(%rbx)
movsd 0x10(%r15), %xmm1
movsd %xmm1, 0x18(%rbx)
movsd 0x18(%rsp), %xmm1
movsd %xmm1, 0x20(%rbx)
movsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x28(%rbx)
movsd 0x8(%rsp), %xmm1
movsd %xmm1, 0x30(%rbx)
movsd %xmm0, 0x38(%rbx)
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneInstance.cpp
// Function: SceneInstance::SceneInstance()
SceneInstance::SceneInstance()
{
  name_ = "unassigned";
  color_ = NULL;
  lod_ = NULL;
  child_ = NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x289cd(%rip), %rax     # 0x2e8b8
movq %rax, (%rdi)
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x8(%rdi), %r14
movb $0x0, 0x18(%rdi)
leaq 0x28(%rdi), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
andq $0x0, 0x38(%rdi)
leaq 0x1b1bb(%rip), %rsi     # 0x210d5
movq %r14, %rdi
callq 0x4630
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
andq $0x0, 0x50(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %r15, %rdi
callq 0x6566
movq %r14, %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneInstance.cpp
// Function: SceneInstance::~SceneInstance()
SceneInstance::~SceneInstance()
{
  delete color_;
  delete lod_;

  for (vector<Transform *>::iterator it = transforms_.begin(); it != transforms_.end(); ++it)
    delete *it;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x28959(%rip), %rax     # 0x2e8b8
movq %rax, (%rdi)
movq 0x40(%rdi), %r14
testq %r14, %r14
je 0x5f73
movq %r14, %rdi
callq 0x5dc0
pushq $0x18
popq %rsi
movq %r14, %rdi
callq 0x4330
movq 0x48(%rbx), %r14
testq %r14, %r14
je 0x5f95
movq (%r14), %rdi
testq %rdi, %rdi
je 0x5f95
movq (%rdi), %rax
callq *0x20(%rax)
pushq $0x8
popq %rsi
movq %r14, %rdi
callq 0x4330
leaq 0x28(%rbx), %r14
movq 0x28(%rbx), %r15
cmpq 0x30(%rbx), %r15
je 0x5fc2
movq (%r15), %rdi
testq %rdi, %rdi
je 0x5fbc
movq (%rdi), %rax
callq *0x10(%rax)
addq $0x8, %r15
jmp 0x5fa8
movq %r14, %rdi
callq 0x6566
addq $0x8, %rbx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x4170
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneInstance.cpp
// Function: SceneInstance::computeColor(RGB&, int)
bool SceneInstance::computeColor(RGB & color, int time)
{
  if (color_ == NULL)
    return false;
  else
    color = color_->getColor(time);

  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq 0x40(%rdi), %rbx
testq %rbx, %rbx
je 0x6041
movq %rsi, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5e34
movaps (%r15), %xmm0
movups %xmm0, (%r14)
movsd 0x10(%r15), %xmm0
movsd %xmm0, 0x10(%r14)
testq %rbx, %rbx
setne %al
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneInstance.cpp
// Function: SceneInstance::computeTransform(Mat4&, int)
bool SceneInstance::computeTransform(Mat4 & mat, int time)
{
  mat = identity3D();

  if (transforms_.empty())
    return false;
  else
  {
    for (vector<Transform *>::reverse_iterator it = transforms_.rbegin(); it != transforms_.rend(); ++it)
    {
      mat = mat * (**it).getMatrix(time);
    }
  }

  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x6138
movq %r14, %rdi
movq %r12, %rsi
callq 0x61ac
movq 0x28(%r15), %rax
movq 0x30(%r15), %rcx
movq %rax, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
cmpq %rcx, %rax
je 0x6119
leaq 0x98(%rsp), %r12
leaq 0x18(%rsp), %r13
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rbp
cmpq %rax, %rbp
je 0x6119
movq -0x8(%rbp), %rsi
addq $-0x8, %rbp
movq (%rsi), %rax
movq %r12, %rdi
movl %ebx, %edx
callq *(%rax)
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x624e
movq %r14, %rdi
movq %r13, %rsi
callq 0x61ac
movq 0x28(%r15), %rax
jmp 0x60e3
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
setne %al
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::SceneLoader(Scene&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
SceneLoader::SceneLoader(Scene & scene, string file)
{
  err = &cout;
  scene.root_ = new SceneInstance();
  root = scene.root_;
  root->name_ = "toplevel";
  buildScene(file);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x20(%rdi), %rax
andl $0x0, 0x20(%rdi)
andq $0x0, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movq %rax, 0x38(%rdi)
andq $0x0, 0x40(%rdi)
andl $0x0, 0x50(%rdi)
movq %rdx, %r14
andq $0x0, 0x58(%rdi)
movq %rsi, %r15
leaq 0x50(%rdi), %rax
movq %rax, 0x60(%rdi)
movq %rax, 0x68(%rdi)
movups %xmm0, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movq 0x289d4(%rip), %rax     # 0x2efd0
movq %rax, 0x90(%rdi)
pushq $0x58
popq %rdi
callq 0x4320
movq %rax, %r12
movq %rax, %rdi
callq 0x5edc
movq %r12, (%r15)
movq %r12, 0x98(%rbx)
addq $0x8, %r12
leaq 0x1ab15(%rip), %rsi     # 0x21140
movq %r12, %rdi
callq 0x4630
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4450
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x66b6
leaq 0x8(%rsp), %rdi
callq 0x4170
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x4170
jmp 0x6685
movq %rax, %r14
pushq $0x58
popq %rsi
movq %r12, %rdi
callq 0x4330
jmp 0x6685
movq %rax, %r14
leaq 0x78(%rbx), %rdi
leaq 0x48(%rbx), %r15
leaq 0x18(%rbx), %r12
callq 0x5ea6
movq %r15, %rdi
callq 0x9d92
movq %r12, %rdi
callq 0x9df6
movq %rbx, %rdi
callq 0xa824
movq %r14, %rdi
callq 0x45c0
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::~SceneLoader()
SceneLoader::~SceneLoader()
{
  for (map<string, SceneGroup *>::iterator it = groups.begin();
       it != groups.end(); ++it)
  {
    delete it->second;
  }

  for (map<string, ParametricMaterial *>::iterator it = materials.begin();
       it != materials.end(); ++it)
  {
    delete it->second;
  }

  for (vector<SceneInstance *>::iterator it = instances.begin(); it != instances.end(); ++it)
  {
    delete *it;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %r14
leaq 0x20(%rdi), %r15
cmpq %r15, %r14
je 0x6c05
movq 0x40(%r14), %rdi
testq %rdi, %rdi
je 0x6bf8
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
callq 0x4240
movq %rax, %r14
jmp 0x6be4
movq 0x60(%rbx), %r15
leaq 0x50(%rbx), %r13
pushq $0x40
popq %r14
cmpq %r13, %r15
je 0x6c3f
movq 0x40(%r15), %r12
testq %r12, %r12
je 0x6c27
movq %r12, %rdi
callq 0x9906
movq %r12, %rdi
movq %r14, %rsi
callq 0x4330
movq %r15, %rdi
callq 0x4240
movq %rax, %r15
jmp 0x6c11
leaq 0x78(%rbx), %r14
movq 0x78(%rbx), %r15
cmpq 0x80(%rbx), %r15
je 0x6c64
movq (%r15), %rdi
testq %rdi, %rdi
je 0x6c5e
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x8, %r15
jmp 0x6c47
leaq 0x48(%rbx), %r15
leaq 0x18(%rbx), %r12
movq %r14, %rdi
callq 0x5ea6
movq %r15, %rdi
callq 0x9d92
movq %r12, %rdi
callq 0x9df6
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xa824
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::buildEndlineTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void SceneLoader::buildEndlineTable(string filename)
{
  ifstream file(filename.c_str());
  string line;

  while (getline( file, line ))
    endlineTable.push_back(file.tellg());

  endlineTable.push_back(file.tellg());
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rdi, %rbx
movq (%rsi), %rsi
leaq 0x30(%rsp), %r14
pushq $0x8
popq %rdx
movq %r14, %rdi
callq 0x45f0
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x40b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x6d07
movq %r14, %rdi
callq 0x45a0
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa858
jmp 0x6cd5
leaq 0x30(%rsp), %rdi
callq 0x45a0
leaq 0xc(%rsp), %rsi
movl %eax, (%rsi)
movq %rbx, %rdi
callq 0xa858
leaq 0x10(%rsp), %rdi
callq 0x4170
leaq 0x30(%rsp), %rdi
callq 0x40e0
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x6d47
jmp 0x6d47
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4170
leaq 0x30(%rsp), %rdi
callq 0x40e0
movq %rbx, %rdi
callq 0x45c0
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::curPos(std::ostream&, int)
void SceneLoader::curPos(ostream & out, int g)
{
  int line = 1;
  int lastg = 0;

  for (vector<int>::iterator it = endlineTable.begin(); it != endlineTable.end(); ++it)
  {
    if (*it > g)
    {
      out << "line: " << line << " char: " << (g - lastg - 1);
      return;
    }

    lastg = *it;
    line ++;
  }

  out << "line: " << line << " char: " << (g - lastg);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %rax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
xorl %ebp, %ebp
pushq $0x1
popq %r14
cmpq %rdx, %rcx
je 0x6d92
movl (%rcx), %esi
cmpl %ebx, %esi
jg 0x6dc4
incl %r14d
addq $0x4, %rcx
movl %esi, %ebp
jmp 0x6d7c
leaq 0x1a3b0(%rip), %rsi     # 0x21149
movq %rax, %rdi
callq 0x4300
movq %rax, %rdi
movl %r14d, %esi
callq 0x4590
leaq 0x1a39d(%rip), %rsi     # 0x21150
movq %rax, %rdi
callq 0x4300
subl %ebp, %ebx
movq %rax, %rdi
movl %ebx, %esi
jmp 0x6df6
leaq 0x1a37e(%rip), %rsi     # 0x21149
movq %rax, %rdi
callq 0x4300
movq %rax, %rdi
movl %r14d, %esi
callq 0x4590
leaq 0x1a36b(%rip), %rsi     # 0x21150
movq %rax, %rdi
callq 0x4300
notl %ebp
addl %ebx, %ebp
movq %rax, %rdi
movl %ebp, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x4590
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::getString[abi:cxx11](std::istream&)
string SceneLoader::getString(istream & str)
{
  string ret;
  char temp;
  str >> temp; // get rid of white space, get to first char
  str.putback(temp);

  while (str.get(temp))
  {
    if ((temp >= 'a' && temp <= 'z')
        || (temp >= 'A' && temp <= 'Z')
        || (temp >= '0' && temp <= '9')
        || (temp == '_'))
    {
      ret += temp;
    }
    else if (temp == '#')
    {
      string no;
      getline(str, no);

      if (ret.empty())
        return getString(str);
      else
        return ret;
    }
    else
    {
      str.putback(temp);
      break;
    }
  }

  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
andq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
leaq 0x7(%rsp), %rsi
movq %rdx, %rdi
callq 0x4400
movsbl 0x7(%rsp), %esi
movq %r14, %rdi
callq 0x4620
leaq 0x7(%rsp), %r12
leaq 0x8(%rsp), %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0x4460
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x6ef5
movb 0x7(%rsp), %al
movl %eax, %ecx
andb $-0x21, %cl
addb $-0x41, %cl
movsbl %al, %esi
cmpb $0x1a, %cl
jb 0x6e90
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setae %cl
cmpb $0x5f, %al
setne %dl
testb %cl, %dl
jne 0x6e9a
movq %r13, %rdi
callq 0x42c0
jmp 0x6e4d
cmpb $0x23, %al
jne 0x6eed
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x40b0
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x6f50
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq 0x8(%rsp), %rdx
cmpq %rbp, %rdx
je 0x6f60
movq %rdx, (%rbx)
movq 0x18(%rsp), %rcx
movq %rcx, 0x10(%rbx)
jmp 0x6f67
movq %r14, %rdi
callq 0x4620
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rcx
cmpq %rbp, %rcx
je 0x6f14
movq %rcx, (%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x10(%rbx)
jmp 0x6f1b
movups (%rbp), %xmm0
movups %xmm0, (%rax)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %rbp, 0x8(%rsp)
andq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x4170
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x6e00
jmp 0x6f7b
movups (%rbp), %xmm0
movups %xmm0, (%rcx)
movq %rax, 0x8(%rbx)
movq %rbp, 0x8(%rsp)
andq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x4170
jmp 0x6f34
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4170
jmp 0x6f9b
jmp 0x6f98
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::getQuoted[abi:cxx11](std::istream&)
string SceneLoader::getQuoted(istream & str)
{
  string ret;
  char temp;
  str >> temp;

  if (temp != '"')
  {
    *err << "expected opening \" at ";
    curPos(*err, str.tellg());
    *err << endl;
  }

  getline(str, ret, '"');
  return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x7(%rsp), %rsi
movq %rdx, %rdi
callq 0x4400
cmpb $0x22, 0x7(%rsp)
je 0x701e
movq 0x90(%r15), %rdi
leaq 0x1a167(%rip), %rsi     # 0x21158
callq 0x4300
movq 0x90(%r15), %r12
movq %r14, %rdi
callq 0x45a0
movq %r15, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x6d66
movq 0x90(%r15), %rdi
callq 0x4190
pushq $0x22
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4600
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x703d
movq %rax, %r14
movq %rbx, %rdi
callq 0x4170
movq %r14, %rdi
callq 0x45c0
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::readCommand(std::istream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool SceneLoader::readCommand(istream & str, string & name)
{
  name = getString(str);

  if (name.empty())
  {
    *err << "error: expected command but did not find one at ";
    curPos(*err, str.tellg());
    *err << endl;
    return false;
  }

  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x6e00
movq %r15, %rdi
movq %r12, %rsi
callq 0x43b0
movq %r12, %rdi
callq 0x4170
movq 0x8(%r15), %r12
testq %r12, %r12
jne 0x70ce
movq 0x90(%rbx), %rdi
leaq 0x1a0ce(%rip), %rsi     # 0x2116f
callq 0x4300
movq 0x90(%rbx), %r15
movq %r14, %rdi
callq 0x45a0
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x6d66
movq 0x90(%rbx), %rdi
callq 0x4190
testq %r12, %r12
setne %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::findOpenParen(std::istream&)
bool SceneLoader::findOpenParen(istream & str)
{
  char temp;
  string line;

  while (str >> temp)
  {
    if (temp == '(')
      return true;
    else if (temp == '#')
      getline(str, line);
    else
    {
      *err << "error: unexpected char " << temp << " at ";
      curPos(*err, str.tellg());
      *err << endl;
      return false;
    }
  }

  return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, %rbx
movb $0x0, (%rax)
leaq 0xf(%rsp), %r15
leaq 0x10(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x4400
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
sete %bpl
jne 0x719f
movzbl 0xf(%rsp), %eax
cmpl $0x23, %eax
jne 0x7141
movq %r14, %rdi
movq %r12, %rsi
callq 0x40b0
jmp 0x710d
cmpl $0x28, %eax
je 0x719f
movq 0x90(%rbx), %rdi
leaq 0x1a04c(%rip), %rsi     # 0x211a0
callq 0x4300
movsbl 0xf(%rsp), %esi
movq %rax, %rdi
callq 0x4380
leaq 0x19ffd(%rip), %rsi     # 0x2116a
movq %rax, %rdi
callq 0x4300
movq 0x90(%rbx), %r15
movq %r14, %rdi
callq 0x45a0
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x6d66
movq 0x90(%rbx), %rdi
callq 0x4190
xorl %ebp, %ebp
leaq 0x10(%rsp), %rdi
callq 0x4170
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x71bc
jmp 0x71bc
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::findOpenOrClosedParen(std::istream&)
int SceneLoader::findOpenOrClosedParen(istream & str)
{
  char temp;
  string line;

  while (str >> temp)
  {
    if (temp == '(')
      return OPEN;
    else if (temp == '#')
      getline(str, line);
    else if (temp == ')')
    {
      str.putback(temp);
      return CLOSED;
    }
    else
    {
      *err << "error: unexpected char " << temp << " at ";
      curPos(*err, str.tellg());
      *err << endl;
      return false;
    }
  }

  return ERROR;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0xf(%rsp), %r12
pushq $0x2
popq %rbx
leaq 0x10(%rsp), %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x4400
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x72aa
movzbl 0xf(%rsp), %eax
cmpl $0x23, %eax
jne 0x7237
movq %r15, %rdi
movq %r13, %rsi
callq 0x40b0
jmp 0x7203
xorl %ebx, %ebx
cmpl $0x28, %eax
je 0x72aa
cmpl $0x29, %eax
jne 0x7253
pushq $0x29
popq %rsi
movq %r15, %rdi
callq 0x4620
pushq $0x1
popq %rbx
jmp 0x72aa
movq 0x90(%r14), %rdi
leaq 0x19f3f(%rip), %rsi     # 0x211a0
callq 0x4300
movsbl 0xf(%rsp), %esi
movq %rax, %rdi
callq 0x4380
leaq 0x19ef0(%rip), %rsi     # 0x2116a
movq %rax, %rdi
callq 0x4300
movq 0x90(%r14), %r12
movq %r15, %rdi
callq 0x45a0
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x6d66
movq 0x90(%r14), %rdi
callq 0x4190
leaq 0x10(%rsp), %rdi
callq 0x4170
movl %ebx, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x72c8
jmp 0x72c8
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::findCloseParen(std::istream&)
bool SceneLoader::findCloseParen(istream & str)
{
  char temp;
  string line;
  int close = 0;

  while (str >> temp)
  {
    if (temp == '#')
      getline(str, line);

    if (temp == '(')
      close++;

    if (temp == ')')
      close--;

    if (close < 0)
      return true;
  }

  return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorl %ebp, %ebp
leaq 0xf(%rsp), %r14
leaq 0x10(%rsp), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4400
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x20(%rax,%rcx), %r12d
testb $0x5, %r12b
jne 0x7352
movb 0xf(%rsp), %al
cmpb $0x23, %al
jne 0x733e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x40b0
movb 0xf(%rsp), %al
xorl %ecx, %ecx
cmpb $0x28, %al
sete %cl
addl %ecx, %ebp
xorl %ecx, %ecx
cmpb $0x29, %al
sete %cl
subl %ecx, %ebp
jns 0x730a
testb $0x5, %r12b
sete %bl
leaq 0x10(%rsp), %rdi
callq 0x4170
movl %ebx, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::getValues(std::istream&, std::vector<ParametricValue*, std::allocator<ParametricValue*>>&)
int SceneLoader::getValues(istream & str, vector<ParametricValue *> & vals)
{
  ParametricValue * val;

  while ( (val = getValue(str)) != NULL )
  {
    vals.push_back(val);
  }

  return int(vals.size());
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsp, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x73d4
movq %rax, (%rsp)
testq %rax, %rax
je 0x73bd
movq %rbx, %rdi
movq %r12, %rsi
callq 0x994e
jmp 0x739c
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::getName(std::istream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool SceneLoader::getName(istream & str, string type, string & name)
{
  name = getString(str);

  if (name.empty())
  {
    *err << "Couldn't read " << type << " name at ";
    errLine(str.tellg());
    return false;
  }

  if (groups[name] != NULL)
  {
    *err << "Illegal re-use of name \"" << name << "\" at ";
    errLine(str.tellg());
    return false;
  }

  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x6e00
movq %r12, %rdi
movq %r13, %rsi
callq 0x43b0
movq %r13, %rdi
callq 0x4170
cmpq $0x0, 0x8(%r12)
je 0x7f62
leaq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0x9a8c
cmpq $0x0, (%rax)
je 0x7fa8
leaq 0x19213(%rip), %r13     # 0x21169
leaq 0x19408(%rip), %rsi     # 0x21365
movq %r12, %r15
jmp 0x7f70
leaq 0x196b0(%rip), %r13     # 0x21619
leaq 0x193e6(%rip), %rsi     # 0x21356
movq 0x90(%rbx), %rdi
callq 0x4300
movq %rax, %rdi
movq %r15, %rsi
callq 0x42e0
movq %rax, %rdi
movq %r13, %rsi
callq 0x4300
movq %r14, %rdi
callq 0x45a0
movq %rbx, %rdi
movl %eax, %esi
callq 0x76b4
xorl %eax, %eax
jmp 0x7faa
movb $0x1, %al
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::setMaterialDefaults(ParametricMaterial*)
void SceneLoader::setMaterialDefaults(ParametricMaterial * n)
{
  if (n->RGB_ == NULL)
  {
    n->RGB_ = new ParametricColor();
    n->RGB_->color_[0] = new ConstValue(0);
    n->RGB_->color_[1] = new ConstValue(0);
    n->RGB_->color_[2] = new ConstValue(0);
  }

  for (int i = 0; i < 7; i++)
  {
    if (n->coefficients_[i] == NULL)
      n->coefficients_[i] = new ConstValue(0);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpq $0x0, (%rsi)
jne 0x8025
pushq $0x18
popq %rdi
callq 0x4320
movq %rax, %r14
movq %rax, %rdi
callq 0x9b70
movq %r14, (%rbx)
pushq $0x10
popq %r15
movq %r15, %rdi
callq 0x4320
leaq 0x26956(%rip), %r12     # 0x2e948
movq %r12, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, (%r14)
movq %r15, %rdi
callq 0x4320
movq %r12, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x8(%r14)
movq %r15, %rdi
callq 0x4320
movq %r12, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%r14)
pushq $0x1
popq %r15
pushq $0x10
popq %r14
leaq 0x26914(%rip), %r12     # 0x2e948
cmpq $0x8, %r15
je 0x805a
cmpq $0x0, (%rbx,%r15,8)
jne 0x8055
movq %r14, %rdi
callq 0x4320
movq %r12, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, (%rbx,%r15,8)
incq %r15
jmp 0x8034
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::setSphereDefaults(SceneGroup*)
void SceneLoader::setSphereDefaults(SceneGroup * n)
{
  if (n->sphere_->material_ == NULL)
  {
    n->sphere_->material_ = new ParametricMaterial();
    setMaterialDefaults(n->sphere_->material_);
  }

  if (n->sphere_->radius_ == NULL)
  {
    n->sphere_->radius_ = new ConstValue(1);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x40(%rsi), %r14
cmpq $0x0, 0x8(%r14)
jne 0x8533
movq %rsi, %rbx
pushq $0x40
popq %rdi
callq 0x4320
movq %rax, %r14
movq %rax, %rdi
callq 0x9c8c
movq 0x40(%rbx), %rax
movq %r14, 0x8(%rax)
movq %r14, %rsi
callq 0x7fb8
movq 0x40(%rbx), %r14
cmpq $0x0, (%r14)
jne 0x855c
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x26400(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x8(%rax)
movq %rax, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::setLightDefaults(SceneGroup*)
void SceneLoader::setLightDefaults(SceneGroup * n)
{
  // set default values for unset variables
  if (n->light_->angularFalloff_ == NULL)
    n->light_->angularFalloff_ = new ConstValue(0);

  if (n->light_->color_ == NULL)
  {
    n->light_->color_ = new ParametricColor();
    n->light_->color_->color_[0] = new ConstValue(0);
    n->light_->color_->color_[1] = new ConstValue(0);
    n->light_->color_->color_[2] = new ConstValue(0);
  }

  if (n->light_->offset_ == NULL)
    n->light_->offset_ = new ConstValue(.15);

  if (n->light_->deadDistance_ == NULL)
    n->light_->deadDistance_ = new ConstValue(.1);

  if (n->light_->falloff_ == NULL)
    n->light_->falloff_ = new ConstValue(0);

  if (n->light_->type_ == NULL)
    n->light_->type_ = new ConstValue(LIGHT_AMBIENT);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq 0x48(%rsi), %r14
cmpq $0x0, 0x18(%r14)
jne 0x8bc4
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x25d90(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x18(%r14)
cmpq $0x0, 0x8(%r14)
jne 0x8c3e
pushq $0x18
popq %rdi
callq 0x4320
movq %rax, %r14
movq %rax, %rdi
callq 0x9b70
movq 0x48(%rbx), %r12
movq %r14, 0x8(%r12)
pushq $0x10
popq %r15
movq %r15, %rdi
callq 0x4320
leaq 0x25d4e(%rip), %r13     # 0x2e948
movq %r13, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, (%r14)
movq %r15, %rdi
callq 0x4320
movq %r13, (%rax)
andq $0x0, 0x8(%rax)
movq 0x8(%r12), %rcx
movq %rax, 0x8(%rcx)
movq %r15, %rdi
callq 0x4320
movq %r13, (%rax)
andq $0x0, 0x8(%rax)
movq 0x48(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %rax, 0x10(%rcx)
movq 0x48(%rbx), %r14
cmpq $0x0, 0x28(%r14)
jne 0x8c69
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x25cf4(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
movabsq $0x3fc3333333333333, %rcx # imm = 0x3FC3333333333333
movq %rcx, 0x8(%rax)
movq %rax, 0x28(%r14)
cmpq $0x0, 0x20(%r14)
jne 0x8c94
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x25cc9(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
movabsq $0x3fb999999999999a, %rcx # imm = 0x3FB999999999999A
movq %rcx, 0x8(%rax)
movq %rax, 0x20(%r14)
cmpq $0x0, 0x10(%r14)
jne 0x8cb6
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x25c9e(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%r14)
cmpq $0x0, (%r14)
jne 0x8cd6
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x25c7d(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, (%r14)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::setCameraDefaults(SceneGroup*)
void SceneLoader::setCameraDefaults(SceneGroup * n)
{
  if (n->camera_->perspective_ == NULL)
    n->camera_->perspective_ = new ConstValue(1); // default perspective to 1

  // set default values for the frustum
  if (n->camera_->frustum_[0] == NULL)
    n->camera_->frustum_[0] = new ConstValue(-0.33);

  if (n->camera_->frustum_[1] == NULL)
    n->camera_->frustum_[1] = new ConstValue(+0.33);

  if (n->camera_->frustum_[2] == NULL)
    n->camera_->frustum_[2] = new ConstValue(-0.33);

  if (n->camera_->frustum_[3] == NULL)
    n->camera_->frustum_[3] = new ConstValue(+0.33);

  if (n->camera_->frustum_[4] == NULL)
    n->camera_->frustum_[4] = new ConstValue(-1);

  if (n->camera_->frustum_[5] == NULL)
    n->camera_->frustum_[5] = new ConstValue(-100);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x50(%rsi), %r14
cmpq $0x0, (%r14)
jne 0x91b4
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x257a8(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x8(%rax)
movq %rax, (%r14)
cmpq $0x0, 0x8(%r14)
movabsq $-0x402ae147ae147ae1, %r15 # imm = 0xBFD51EB851EB851F
jne 0x91e3
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x25774(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movq %rax, 0x8(%r14)
movq 0x50(%rbx), %r14
cmpq $0x0, 0x10(%r14)
movabsq $0x3fd51eb851eb851f, %r12 # imm = 0x3FD51EB851EB851F
jne 0x9212
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x25745(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
movq %r12, 0x8(%rax)
movq %rax, 0x10(%r14)
movq 0x50(%rbx), %r14
cmpq $0x0, 0x18(%r14)
jne 0x9237
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x25720(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movq %rax, 0x18(%r14)
movq 0x50(%rbx), %r14
cmpq $0x0, 0x20(%r14)
jne 0x925c
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x256fb(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
movq %r12, 0x8(%rax)
movq %rax, 0x20(%r14)
movq 0x50(%rbx), %r14
cmpq $0x0, 0x28(%r14)
jne 0x928b
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x256d6(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
movabsq $-0x4010000000000000, %rcx # imm = 0xBFF0000000000000
movq %rcx, 0x8(%rax)
movq %rax, 0x28(%r14)
movq 0x50(%rbx), %r14
cmpq $0x0, 0x30(%r14)
jne 0x92b6
pushq $0x10
popq %rdi
callq 0x4320
leaq 0x256a7(%rip), %rcx     # 0x2e948
movq %rcx, (%rax)
movabsq $-0x3fa7000000000000, %rcx # imm = 0xC059000000000000
movq %rcx, 0x8(%rax)
movq %rax, 0x30(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/SceneLoader.cpp
// Function: SceneLoader::doRender(std::istream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool SceneLoader::doRender(istream & str, string & name)
{
  name = getString(str);

  if (name.empty())
  {
    *err << "Trying to render group without specifying a name at ";
    curPos(*err, str.tellg());
    *err << endl;
    return false;
  }

  if (groups[name] == NULL)
  {
    *err << "Trying to render group not found \"" << name << "\" at ";
    curPos(*err, str.tellg());
    *err << endl;
    return false;
  }

  root->child_ = groups[name];
  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x6e00
movq %r15, %rdi
movq %r12, %rsi
callq 0x43b0
movq %r12, %rdi
callq 0x4170
cmpq $0x0, 0x8(%r15)
je 0x9893
leaq 0x18(%rbx), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x9a8c
cmpq $0x0, (%rax)
je 0x98a3
movq %r12, %rdi
movq %r15, %rsi
callq 0x9a8c
movq (%rax), %rax
movq 0x98(%rbx), %rcx
movq %rax, 0x50(%rcx)
movb $0x1, %al
jmp 0x98fa
movq 0x90(%rbx), %rdi
leaq 0x17d4d(%rip), %rsi     # 0x215ee
jmp 0x98cb
movq 0x90(%rbx), %rdi
leaq 0x17d72(%rip), %rsi     # 0x21623
callq 0x4300
movq %rax, %rdi
movq %r15, %rsi
callq 0x42e0
leaq 0x178a1(%rip), %rsi     # 0x21169
movq %rax, %rdi
callq 0x4300
movq 0x90(%rbx), %r15
movq %r14, %rdi
callq 0x45a0
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x6d66
movq 0x90(%rbx), %rdi
callq 0x4190
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/ParametricValue.hpp
// Function: ExprValue::ExprValue(char const*)
ExprValue(const char * expr) : timevar_("t" , &time_), dgrvar_("dgr", &dgr_), expr_(expr)
    {
      vararray_[0] = &timevar_;
      vararray_[1] = &dgrvar_;
      op_ = ROperation ( expr_.c_str(), 2, vararray_ );
      time_ = 0;
      dgr_ = M_PI / 180.0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %rbp
leaq 0x24f61(%rip), %rax     # 0x2e8e8
movq %rax, (%rdi)
addq $0x18, %rdi
leaq 0x8(%rbp), %r12
leaq 0x18df5(%rip), %rsi     # 0x2278e
movq %rdi, 0x8(%rsp)
movq %r12, %rdx
callq 0xbca0
leaq 0x28(%rbp), %r14
leaq 0x10(%rbp), %rdx
leaq 0x17e06(%rip), %rsi     # 0x217bb
movq %r14, %rdi
callq 0xbca0
leaq 0x48(%rbp), %r15
movq %r15, %rdi
callq 0xc3a0
leaq 0xa0(%rbp), %r13
leaq 0x10(%rsp), %rdx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x9c50
leaq 0x38(%rbp), %rcx
movq 0x8(%rsp), %rax
movq %rax, 0x38(%rbp)
movq %r14, 0x40(%rbp)
movq 0xa0(%rbp), %rsi
leaq 0x10(%rsp), %rdi
pushq $0x2
popq %rdx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xe1ae
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xbd52
leaq 0x10(%rsp), %rdi
callq 0xc8b2
xorps %xmm0, %xmm0
movhps 0x176ec(%rip), %xmm0    # xmm0 = xmm0[0,1],mem[0,1]
movups %xmm0, (%r12)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
leaq 0x10(%rsp), %rdi
callq 0xc8b2
jmp 0x9a52
movq %rax, %r12
movq %r13, %rdi
callq 0x4170
jmp 0x9a5f
movq %rax, %r12
movq %r15, %rdi
callq 0xc8b2
jmp 0x9a6c
movq %rax, %r12
movq %r14, %rdi
callq 0xbcb6
jmp 0x9a79
movq %rax, %r12
movq 0x8(%rsp), %rdi
callq 0xbcb6
movq %r12, %rdi
callq 0x45c0
nop