LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5e74
cmpq $0x0, 0x60(%rdi)
je 0x5e74
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 0x60ea
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)
movsd 0x38(%r14), %xmm0
movsd %xmm0, 0x38(%rbx)
movsd 0x40(%r14), %xmm0
movsd %xmm0, 0x40(%rbx)
movsd 0x48(%r14), %xmm0
movsd %xmm0, 0x48(%rbx)
movb $0x1, %al
addq $0x58, %rsp
popq %rbx
popq %r14
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5f02
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), %rax
movq 0x8(%rax), %rsi
movq %rsp, %r14
movq %r14, %rdi
movl %ebp, %edx
callq 0x60ea
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)
movsd 0x38(%r14), %xmm0
movsd %xmm0, 0x38(%rbx)
movsd 0x40(%r14), %xmm0
movsd %xmm0, 0x40(%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
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5f77
movq %rsi, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6240
movl (%r15), %eax
movl %eax, (%r14)
movsd 0x8(%r15), %xmm0
movsd %xmm0, 0x8(%r14)
movsd 0x10(%r15), %xmm0
movsd %xmm0, 0x10(%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_O1/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 %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x5ff8
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x6029
xorl %r15d, %r15d
movq (%r14,%r15,8), %rdi
testq %rdi, %rdi
je 0x6013
movq (%rdi), %rax
callq *0x20(%rax)
incq %r15
cmpq $0x3, %r15
jne 0x6004
movl $0x18, %esi
movq %r14, %rdi
callq 0x4320
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x6038
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x6047
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x6056
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x606a
movq (%rdi), %rax
popq %rbx
popq %r14
popq %r15
jmpq *0x20(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %r15
movq (%r15), %rdi
cvtsi2sd %edx, %xmm0
movsd %xmm0, (%rsp)
movq (%rdi), %rax
callq *0x8(%rax)
movsd %xmm0, 0x48(%rsp)
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x40(%rsp)
movq 0x10(%r15), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x38(%rsp)
movq 0x8(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x30(%rsp)
movq 0x10(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x28(%rsp)
movq 0x18(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x20(%rsp)
movq 0x20(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x18(%rsp)
movq 0x28(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x10(%rsp)
movq 0x30(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x8(%rsp)
movq 0x38(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd 0x48(%rsp), %xmm1
movsd %xmm1, 0x38(%rbx)
movsd 0x40(%rsp), %xmm1
movsd %xmm1, 0x40(%rbx)
movsd 0x38(%rsp), %xmm1
movsd %xmm1, 0x48(%rbx)
movsd 0x30(%rsp), %xmm1
movsd %xmm1, (%rbx)
movsd 0x28(%rsp), %xmm1
movsd %xmm1, 0x8(%rbx)
movsd 0x20(%rsp), %xmm1
movsd %xmm1, 0x10(%rbx)
movsd 0x18(%rsp), %xmm1
movsd %xmm1, 0x18(%rbx)
movsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x20(%rbx)
movsd 0x8(%rsp), %xmm1
movsd %xmm1, 0x28(%rbx)
movsd %xmm0, 0x30(%rbx)
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
cvtsi2sd %edx, %xmm0
movsd %xmm0, (%rsp)
movq (%rdi), %rax
callq *0x8(%rax)
cvttsd2si %xmm0, %ebp
movq 0x8(%r14), %r15
movq (%r15), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x30(%rsp)
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x28(%rsp)
movq 0x10(%r15), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x20(%rsp)
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 %ebp, (%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 0x8(%rsp), %xmm1
movsd %xmm1, 0x30(%rbx)
movsd %xmm0, 0x38(%rbx)
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/SceneData.hpp
// Function: ParametricCamera::getCamera(int)
CameraInfo getCamera(int time)
    {
      return CameraInfo(((int)perspective_->getValue(time) != 0),
                        frustum_[0]->getValue(time),
                        frustum_[1]->getValue(time),
                        frustum_[2]->getValue(time),
                        frustum_[3]->getValue(time),
                        frustum_[4]->getValue(time),
                        frustum_[5]->getValue(time));
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
cvtsi2sd %edx, %xmm0
movsd %xmm0, (%rsp)
movq (%rdi), %rax
callq *0x8(%rax)
cvttsd2si %xmm0, %ebp
movq 0x8(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x28(%rsp)
movq 0x10(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x20(%rsp)
movq 0x18(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x18(%rsp)
movq 0x20(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x10(%rsp)
movq 0x28(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x8(%rsp)
movq 0x30(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
testl %ebp, %ebp
setne (%rbx)
movsd 0x28(%rsp), %xmm1
movsd %xmm1, 0x8(%rbx)
movsd 0x20(%rsp), %xmm1
movsd %xmm1, 0x10(%rbx)
movsd 0x18(%rsp), %xmm1
movsd %xmm1, 0x18(%rbx)
movsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x20(%rbx)
movsd 0x8(%rsp), %xmm1
movsd %xmm1, 0x28(%rbx)
movsd %xmm0, 0x30(%rbx)
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
movq %rdi, %r15
leaq 0x31459(%rip), %rax     # 0x378b0
movq %rax, (%rdi)
leaq 0x8(%rdi), %rbx
leaq 0x18(%rdi), %r14
movq %r14, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb $0x0, 0x18(%rdi)
leaq 0x28(%rdi), %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movq %rax, 0x38(%rdi)
leaq 0x25c79(%rip), %rcx     # 0x2c0ff
movl $0xa, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x44b0
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%r15)
movq $0x0, 0x50(%r15)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r12
movq (%r13), %rdi
testq %rdi, %rdi
je 0x64ca
movq 0x38(%r15), %rsi
subq %rdi, %rsi
callq 0x4320
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4686
movq %r12, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x313c3(%rip), %rax     # 0x378b0
movq %rax, (%rdi)
movq 0x40(%rdi), %r14
testq %r14, %r14
je 0x6521
xorl %r15d, %r15d
movq (%r14,%r15,8), %rdi
testq %rdi, %rdi
je 0x650b
movq (%rdi), %rax
callq *0x20(%rax)
incq %r15
cmpq $0x3, %r15
jne 0x64fc
movl $0x18, %esi
movq %r14, %rdi
callq 0x4320
movq 0x48(%rbx), %r14
testq %r14, %r14
je 0x6545
movq (%r14), %rdi
testq %rdi, %rdi
je 0x6538
movq (%rdi), %rax
callq *0x20(%rax)
movl $0x8, %esi
movq %r14, %rdi
callq 0x4320
movq 0x28(%rbx), %r14
cmpq 0x30(%rbx), %r14
je 0x6563
movq (%r14), %rdi
testq %rdi, %rdi
je 0x655d
movq (%rdi), %rax
callq *0x10(%rax)
addq $0x8, %r14
jmp 0x6549
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x6578
movq 0x38(%rbx), %rsi
subq %rdi, %rsi
callq 0x4320
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0x6595
movq (%rbx), %rsi
incq %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x4320
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r14
pushq %rbx
subq $0x18, %rsp
movq 0x40(%rdi), %r14
testq %r14, %r14
je 0x6647
movq %rsi, %rbx
movq (%r14), %rdi
cvtsi2sd %edx, %xmm0
movsd %xmm0, (%rsp)
movq (%rdi), %rax
callq *0x8(%rax)
movsd %xmm0, 0x10(%rsp)
movq 0x8(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd %xmm0, 0x8(%rsp)
movq 0x10(%r14), %rdi
movq (%rdi), %rax
movsd (%rsp), %xmm0
callq *0x8(%rax)
movsd 0x10(%rsp), %xmm1
movsd %xmm1, (%rbx)
movsd 0x8(%rsp), %xmm1
movsd %xmm1, 0x8(%rbx)
movsd %xmm0, 0x10(%rbx)
testq %r14, %r14
setne %al
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/SceneInstance.cpp
// Function: SceneInstance::computeLOD(int&, int)
bool SceneInstance::computeLOD(int & lod, int time)
{
  if (lod_ == NULL)
    return false;
  else
    lod = lod_->getLod(time);

  return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x48(%rdi), %r14
testq %r14, %r14
je 0x6679
movq %rsi, %rbx
movq (%r14), %rdi
cvtsi2sd %edx, %xmm0
movq (%rdi), %rax
callq *0x8(%rax)
cvttsd2si %xmm0, %eax
movl %eax, (%rbx)
testq %r14, %r14
setne %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x20(%rdi), %rcx
movl %eax, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rcx, 0x30(%rdi)
movq %rcx, 0x38(%rdi)
movq %rax, 0x40(%rdi)
leaq 0x50(%rdi), %rcx
movl %eax, 0x50(%rdi)
movq %rax, 0x58(%rdi)
movq %rcx, 0x60(%rdi)
movq %rcx, 0x68(%rdi)
movups %xmm0, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movq 0x31304(%rip), %rax     # 0x37fd0
movq %rax, 0x90(%rdi)
movl $0x58, %edi
callq 0x4310
movq %rax, %r12
movq %rax, %rdi
callq 0x6444
movq %r12, (%r15)
movq %r12, 0x98(%rbx)
movq %r12, %rdi
addq $0x8, %rdi
movq 0x10(%r12), %rdx
leaq 0x2545b(%rip), %rcx     # 0x2c160
movl $0x8, %r8d
xorl %esi, %esi
callq 0x44b0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x5012
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6dd8
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6d53
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6d8b
movq 0x18(%rsp), %rsi
incq %rsi
jmp 0x6d81
movq %rax, %r14
movl $0x58, %esi
movq %r12, %rdi
callq 0x4320
jmp 0x6d8b
movq %rax, %r14
leaq 0x18(%rbx), %r15
leaq 0x48(%rbx), %r12
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x6dab
movq 0x88(%rbx), %rsi
subq %rdi, %rsi
callq 0x4320
movq %r12, %rdi
callq 0xb742
movq %r15, %rdi
callq 0xb7ba
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x6dcf
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4320
movq %r14, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x30(%rdi), %r14
leaq 0x20(%rdi), %r15
cmpq %r15, %r14
je 0x754b
movq 0x40(%r14), %rdi
testq %rdi, %rdi
je 0x753b
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
callq 0x4240
movq %rax, %r14
cmpq %r15, %rax
jne 0x752c
movq 0x60(%rbx), %r14
leaq 0x50(%rbx), %r12
cmpq %r12, %r14
je 0x7586
movq 0x40(%r14), %r15
testq %r15, %r15
je 0x7576
movq %r15, %rdi
callq 0xb306
movl $0x40, %esi
movq %r15, %rdi
callq 0x4320
movq %r14, %rdi
callq 0x4240
movq %rax, %r14
cmpq %r12, %rax
jne 0x7558
movq 0x78(%rbx), %r14
cmpq 0x80(%rbx), %r14
je 0x75a7
movq (%r14), %rdi
testq %rdi, %rdi
je 0x75a1
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x8, %r14
jmp 0x758a
leaq 0x18(%rbx), %r14
leaq 0x48(%rbx), %r15
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x75c7
movq 0x88(%rbx), %rsi
subq %rdi, %rsi
callq 0x4320
movq %r15, %rdi
callq 0xb742
movq %r14, %rdi
callq 0xb7ba
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x75f6
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4320
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
movq %rdi, %rbx
movq (%rsi), %rsi
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x45f0
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0x8(%rsp), %r15
leaq 0x4(%rsp), %r12
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4600
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x76ab
movq %r14, %rdi
callq 0x4590
movl %eax, 0x4(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x769e
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x764a
movq %rbx, %rdi
movq %r12, %rdx
callq 0xc12a
jmp 0x764a
leaq 0x28(%rsp), %rdi
callq 0x4590
movl %eax, 0x4(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x76cf
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x76dc
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq 0xc12a
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x76f3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
leaq 0x28(%rsp), %rdi
callq 0x40e0
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x7712
jmp 0x7712
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x772c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
leaq 0x28(%rsp), %rdi
callq 0x40e0
movq %rbx, %rdi
callq 0x45c0
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
cmpq %rcx, %rax
je 0x7769
movl (%rax), %edx
cmpl %ebx, %edx
jle 0x77b0
movl $0x1, %r15d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x77d3
xorl %ebp, %ebp
movl $0x1, %r15d
leaq 0x249f1(%rip), %rsi     # 0x2c169
movl $0x6, %edx
movq %r14, %rdi
callq 0x4370
movq %r14, %rdi
movl %r15d, %esi
callq 0x4580
movq %rax, %r14
leaq 0x249d6(%rip), %rsi     # 0x2c170
movl $0x7, %edx
movq %rax, %rdi
callq 0x4370
subl %ebp, %ebx
movq %r14, %rdi
movl %ebx, %esi
jmp 0x7810
addq $0x4, %rax
movl $0x2, %r15d
movl %edx, %ebp
cmpq %rcx, %rax
je 0x7771
movl (%rax), %edx
addq $0x4, %rax
incl %r15d
cmpl %ebx, %edx
jle 0x77ba
notl %ebp
decl %r15d
leaq 0x2498f(%rip), %rsi     # 0x2c169
movl $0x6, %edx
movq %r14, %rdi
callq 0x4370
movq %r14, %rdi
movl %r15d, %esi
callq 0x4580
movq %rax, %r14
leaq 0x24974(%rip), %rsi     # 0x2c170
movl $0x7, %edx
movq %rax, %rdi
callq 0x4370
addl %ebx, %ebp
movq %r14, %rdi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4580
nop
// File: /workspace/github_cpp_makefile_star2_O1/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)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
leaq 0x7(%rsp), %rsi
movq %rdx, %rdi
callq 0x43e0
movsbl 0x7(%rsp), %esi
movq %r14, %rdi
callq 0x4620
leaq 0x7(%rsp), %r12
leaq 0x8(%rsp), %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0x4430
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x793c
movb 0x7(%rsp), %al
movl %eax, %ecx
andb $-0x21, %cl
addb $-0x41, %cl
cmpb $0x1a, %cl
jb 0x78b0
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setae %cl
cmpb $0x5f, %al
setne %dl
testb %cl, %dl
jne 0x78bd
movsbl %al, %esi
movq %r13, %rdi
callq 0x42c0
jmp 0x7870
cmpb $0x23, %al
jne 0x7931
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %edx
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x4600
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x79a7
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq 0x8(%rsp), %rdx
cmpq %rbp, %rdx
je 0x79b7
movq %rdx, (%rbx)
movq 0x18(%rsp), %rcx
movq %rcx, 0x10(%rbx)
jmp 0x79be
movsbl %al, %esi
movq %r14, %rdi
callq 0x4620
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rcx
cmpq %rbp, %rcx
je 0x795b
movq %rcx, (%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x10(%rbx)
jmp 0x7962
movups (%rbp), %xmm0
movups %xmm0, (%rax)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %rbp, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7995
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
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 0x7820
jmp 0x79d5
movups (%rbp), %xmm0
movups %xmm0, (%rcx)
movq %rax, 0x8(%rbx)
movq %rbp, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x797e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4320
jmp 0x797e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x7a0f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4320
jmp 0x7a0f
jmp 0x7a0c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7a26
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x45c0
// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0xf(%rsp), %rsi
movq %rdx, %rdi
callq 0x43e0
cmpb $0x22, 0xf(%rsp)
je 0x7acd
movq 0x90(%r15), %rdi
leaq 0x246ff(%rip), %rsi     # 0x2c178
movl $0x16, %edx
callq 0x4370
movq 0x90(%r15), %r12
movq %r14, %rdi
callq 0x4590
movq %r15, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x773e
movq 0x90(%r15), %r15
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4230
movq %r14, %rdi
movq %rbx, %rsi
movl $0x22, %edx
callq 0x4600
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x7af0
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x7b07
movq (%r13), %rsi
incq %rsi
callq 0x4320
movq %r14, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x7820
movq %r15, %rdi
movq %r12, %rsi
callq 0x43a0
movq (%r12), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7b5d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0x8(%r15), %r12
testq %r12, %r12
jne 0x7bc8
movq 0x90(%rbx), %rdi
leaq 0x2461b(%rip), %rsi     # 0x2c18f
movl $0x30, %edx
callq 0x4370
movq 0x90(%rbx), %r15
movq %r14, %rdi
callq 0x4590
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x773e
movq 0x90(%rbx), %rbx
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4230
testq %r12, %r12
setne %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0x6(%rsp), %r15
leaq 0x8(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x43e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
sete %bpl
jne 0x7cf9
movzbl 0x6(%rsp), %eax
cmpl $0x23, %eax
jne 0x7c5d
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x4600
jmp 0x7c0e
cmpl $0x28, %eax
je 0x7cf9
movq 0x90(%rbx), %r15
leaq 0x2454c(%rip), %rsi     # 0x2c1c0
movl $0x17, %edx
movq %r15, %rdi
callq 0x4370
movb 0x6(%rsp), %al
leaq 0x7(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq 0x4370
leaq 0x244ea(%rip), %rsi     # 0x2c18a
movl $0x4, %edx
movq %rax, %rdi
callq 0x4370
movq 0x90(%rbx), %r15
movq %r14, %rdi
callq 0x4590
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x773e
movq 0x90(%rbx), %rbx
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4230
xorl %ebp, %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7d10
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7d25
jmp 0x7d25
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7d3f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0xe(%rsp), %rbx
leaq 0x10(%rsp), %r12
movq %r15, %rdi
movq %rbx, %rsi
callq 0x43e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7de7
movzbl 0xe(%rsp), %eax
cmpl $0x23, %eax
jne 0x7dc2
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x4600
jmp 0x7d7b
xorl %ebx, %ebx
cmpl $0x28, %eax
je 0x7e82
cmpl $0x29, %eax
jne 0x7df1
movl $0x1, %ebx
movsbl %al, %esi
movq %r15, %rdi
callq 0x4620
jmp 0x7e82
movl $0x2, %ebx
jmp 0x7e82
movq 0x90(%r14), %r12
leaq 0x243c1(%rip), %rsi     # 0x2c1c0
movl $0x17, %edx
movq %r12, %rdi
callq 0x4370
movb 0xe(%rsp), %al
leaq 0xf(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r12, %rdi
callq 0x4370
leaq 0x2435f(%rip), %rsi     # 0x2c18a
movl $0x4, %edx
movq %rax, %rdi
callq 0x4370
movq 0x90(%r14), %r12
movq %r15, %rdi
callq 0x4590
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x773e
movq 0x90(%r14), %r14
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4230
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x7e99
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4320
movl %ebx, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x7ead
jmp 0x7ead
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x7ec7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
xorl %ebp, %ebp
leaq 0x7(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x43e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x20(%rax,%rcx), %r13d
testb $0x5, %r13b
jne 0x7f63
cmpb $0x23, 0x7(%rsp)
jne 0x7f4b
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4600
movb 0x7(%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 0x7f05
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7f7a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
testb $0x5, %r13b
sete %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7faa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x45c0
// File: /workspace/github_cpp_makefile_star2_O1/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
callq 0x801e
movq %rax, (%rsp)
testq %rax, %rax
je 0x8007
movq %rsp, %r12
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x7fe8
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x7ff3
movq %rbx, %rdi
movq %r12, %rdx
callq 0xc266
movq %r15, %rdi
movq %r14, %rsi
callq 0x801e
movq %rax, (%rsp)
testq %rax, %rax
jne 0x7fd4
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_O1/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, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x7820
movq %r15, %rdi
movq %r13, %rsi
callq 0x43a0
movq (%r13), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x9048
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4320
cmpq $0x0, 0x8(%r15)
je 0x909d
leaq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xb4a0
cmpq $0x0, (%rax)
je 0x90f3
movq 0x90(%rbx), %r12
leaq 0x23312(%rip), %rsi     # 0x2c385
movl $0x18, %edx
movq %r12, %rdi
callq 0x4370
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r12, %rdi
callq 0x4370
leaq 0x230f3(%rip), %rsi     # 0x2c189
movl $0x5, %edx
jmp 0x90d5
movq 0x90(%rbx), %r15
leaq 0x232cb(%rip), %rsi     # 0x2c376
movl $0xe, %edx
movq %r15, %rdi
callq 0x4370
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x4370
leaq 0x23569(%rip), %rsi     # 0x2c639
movl $0x9, %edx
movq %rax, %rdi
callq 0x4370
movq %r14, %rdi
callq 0x4590
movq %rbx, %rdi
movl %eax, %esi
callq 0x8418
xorl %eax, %eax
jmp 0x90f5
movb $0x1, %al
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x9177
movl $0x18, %edi
callq 0x4310
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
xorl %r15d, %r15d
movq %r15, 0x10(%rax)
movq %rax, (%rbx)
movl $0x10, %edi
callq 0x4310
leaq 0x2e7fd(%rip), %r12     # 0x37940
movq %r12, (%rax)
movq %r15, 0x8(%rax)
movq %rax, (%r14)
movl $0x10, %edi
callq 0x4310
movq %r12, (%rax)
movq %r15, 0x8(%rax)
movq %rax, 0x8(%r14)
movl $0x10, %edi
callq 0x4310
movq %r12, (%rax)
movq %r15, 0x8(%rax)
movq %rax, 0x10(%r14)
movl $0x1, %r14d
leaq 0x2e7bc(%rip), %r15     # 0x37940
cmpq $0x0, (%rbx,%r14,8)
jne 0x91a4
movl $0x10, %edi
callq 0x4310
movq %r15, (%rax)
movq $0x0, 0x8(%rax)
movq %rax, (%rbx,%r14,8)
incq %r14
cmpq $0x8, %r14
jne 0x9184
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %rsi, %rbx
movq 0x40(%rsi), %r14
cmpq $0x0, 0x8(%r14)
jne 0x9892
movl $0x40, %edi
callq 0x4310
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movq %rax, 0x8(%r14)
movq %rax, %rsi
callq 0x9104
movq 0x40(%rbx), %rbx
cmpq $0x0, (%rbx)
jne 0x98c1
movl $0x10, %edi
callq 0x4310
leaq 0x2e093(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x8(%rax)
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x48(%rsi), %r14
cmpq $0x0, 0x18(%r14)
jne 0xa106
movl $0x10, %edi
callq 0x4310
leaq 0x2d849(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movq %rax, 0x18(%r14)
cmpq $0x0, 0x8(%r14)
jne 0xa181
movl $0x18, %edi
callq 0x4310
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
xorl %r15d, %r15d
movq %r15, 0x10(%rax)
movq %rax, 0x8(%r14)
movl $0x10, %edi
callq 0x4310
leaq 0x2d807(%rip), %r12     # 0x37940
movq %r12, (%rax)
movq %r15, 0x8(%rax)
movq 0x8(%r14), %rcx
movq %rax, (%rcx)
movl $0x10, %edi
callq 0x4310
movq %r12, (%rax)
movq %r15, 0x8(%rax)
movq 0x48(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %rax, 0x8(%rcx)
movl $0x10, %edi
callq 0x4310
movq %r12, (%rax)
movq %r15, 0x8(%rax)
movq 0x48(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %rax, 0x10(%rcx)
movq 0x48(%rbx), %rbx
cmpq $0x0, 0x28(%rbx)
jne 0xa1b2
movl $0x10, %edi
callq 0x4310
leaq 0x2d7a3(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movabsq $0x3fc3333333333333, %rcx # imm = 0x3FC3333333333333
movq %rcx, 0x8(%rax)
movq %rax, 0x28(%rbx)
cmpq $0x0, 0x20(%rbx)
jne 0xa1df
movl $0x10, %edi
callq 0x4310
leaq 0x2d776(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movabsq $0x3fb999999999999a, %rcx # imm = 0x3FB999999999999A
movq %rcx, 0x8(%rax)
movq %rax, 0x20(%rbx)
cmpq $0x0, 0x10(%rbx)
jne 0xa206
movl $0x10, %edi
callq 0x4310
leaq 0x2d749(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movq %rax, 0x10(%rbx)
cmpq $0x0, (%rbx)
jne 0xa22b
movl $0x10, %edi
callq 0x4310
leaq 0x2d723(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x50(%rsi), %r14
cmpq $0x0, (%r14)
jne 0xa932
movl $0x10, %edi
callq 0x4310
leaq 0x2d022(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x8(%rax)
movq %rax, (%r14)
cmpq $0x0, 0x8(%r14)
jne 0xa95f
movl $0x10, %edi
callq 0x4310
leaq 0x2cff6(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movabsq $-0x402ae147ae147ae1, %rcx # imm = 0xBFD51EB851EB851F
movq %rcx, 0x8(%rax)
movq %rax, 0x8(%r14)
movq 0x50(%rbx), %r14
cmpq $0x0, 0x10(%r14)
jne 0xa990
movl $0x10, %edi
callq 0x4310
leaq 0x2cfc5(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movabsq $0x3fd51eb851eb851f, %rcx # imm = 0x3FD51EB851EB851F
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%r14)
movq 0x50(%rbx), %r14
cmpq $0x0, 0x18(%r14)
jne 0xa9c1
movl $0x10, %edi
callq 0x4310
leaq 0x2cf94(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movabsq $-0x402ae147ae147ae1, %rcx # imm = 0xBFD51EB851EB851F
movq %rcx, 0x8(%rax)
movq %rax, 0x18(%r14)
movq 0x50(%rbx), %r14
cmpq $0x0, 0x20(%r14)
jne 0xa9f2
movl $0x10, %edi
callq 0x4310
leaq 0x2cf63(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movabsq $0x3fd51eb851eb851f, %rcx # imm = 0x3FD51EB851EB851F
movq %rcx, 0x8(%rax)
movq %rax, 0x20(%r14)
movq 0x50(%rbx), %r14
cmpq $0x0, 0x28(%r14)
jne 0xaa23
movl $0x10, %edi
callq 0x4310
leaq 0x2cf32(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movabsq $-0x4010000000000000, %rcx # imm = 0xBFF0000000000000
movq %rcx, 0x8(%rax)
movq %rax, 0x28(%r14)
movq 0x50(%rbx), %rbx
cmpq $0x0, 0x30(%rbx)
jne 0xaa54
movl $0x10, %edi
callq 0x4310
leaq 0x2cf01(%rip), %rcx     # 0x37940
movq %rcx, (%rax)
movabsq $-0x3fa7000000000000, %rcx # imm = 0xC059000000000000
movq %rcx, 0x8(%rax)
movq %rax, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x7820
movq %r15, %rdi
movq %r12, %rsi
callq 0x43a0
movq (%r12), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xb21f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
cmpq $0x0, 0x8(%r15)
je 0xb25b
leaq 0x18(%rbx), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xb4a0
cmpq $0x0, (%rax)
je 0xb270
movq %r12, %rdi
movq %r15, %rsi
callq 0xb4a0
movq (%rax), %rax
movq 0x98(%rbx), %rcx
movq %rax, 0x50(%rcx)
movb $0x1, %al
jmp 0xb2fa
movq 0x90(%rbx), %rdi
leaq 0x213a5(%rip), %rsi     # 0x2c60e
movl $0x34, %edx
jmp 0xb2a9
movq 0x90(%rbx), %r12
leaq 0x213c5(%rip), %rsi     # 0x2c643
movl $0x22, %edx
movq %r12, %rdi
callq 0x4370
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r12, %rdi
callq 0x4370
leaq 0x20ee8(%rip), %rsi     # 0x2c189
movl $0x5, %edx
movq %rax, %rdi
callq 0x4370
movq 0x90(%rbx), %r15
movq %r14, %rdi
callq 0x4590
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x773e
movq 0x90(%rbx), %rbx
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4230
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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, %r15
leaq 0x2c563(%rip), %rax     # 0x378e0
movq %rax, (%rdi)
addq $0x18, %rdi
leaq 0x8(%r15), %r13
leaq 0x2243f(%rip), %rsi     # 0x2d7ce
movq %rdi, 0x8(%rsp)
movq %r13, %rdx
callq 0xd3fa
leaq 0x28(%r15), %r14
leaq 0x10(%r15), %rbp
leaq 0x21430(%rip), %rsi     # 0x2c7db
movq %r14, %rdi
movq %rbp, %rdx
callq 0xd3fa
leaq 0x48(%r15), %r12
movq %r12, %rdi
callq 0xdc26
leaq 0xa0(%r15), %rdi
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
callq 0xb614
leaq 0x38(%r15), %rcx
movq 0x8(%rsp), %rax
movq %rax, 0x38(%r15)
movq %r14, 0x40(%r15)
movq 0xa0(%r15), %rsi
leaq 0x10(%rsp), %rdi
movl $0x2, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x10098
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
callq 0xd4fe
leaq 0x10(%rsp), %rdi
callq 0xe186
movq $0x0, (%r13)
movabsq $0x3f91df46a2529d39, %rax # imm = 0x3F91DF46A2529D39
movq %rax, (%rbp)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
leaq 0x10(%rsp), %rdi
callq 0xe186
jmp 0xb451
movq %rax, %r13
movq 0xa0(%r15), %rdi
addq $0xb0, %r15
cmpq %r15, %rdi
je 0xb474
movq (%r15), %rsi
incq %rsi
callq 0x4320
jmp 0xb474
movq %rax, %r13
movq %r12, %rdi
callq 0xe186
jmp 0xb481
movq %rax, %r13
movq %r14, %rdi
callq 0xd410
jmp 0xb48e
movq %rax, %r13
movq 0x8(%rsp), %rdi
callq 0xd410
movq %r13, %rdi
callq 0x45c0