// File: 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 %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
cmpq $0x0, (%rax)
jne 0x118f1
movl $0x10, %edi
callq 0x5400
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x28(%rbp)
movsd 0x3587e(%rip), %xmm0    # 0x47138
callq 0x12f80
jmp 0x118c1
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq %rcx, (%rax)
jmp 0x118f1
movq -0x28(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x10, %esi
callq 0x5410
jmp 0x11b43
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
cmpq $0x0, 0x8(%rax)
jne 0x11954
movl $0x10, %edi
callq 0x5400
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x30(%rbp)
movsd 0x35884(%rip), %xmm0    # 0x471a0
callq 0x12f80
jmp 0x11923
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x8(%rax)
jmp 0x11954
movq -0x30(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x10, %esi
callq 0x5410
jmp 0x11b43
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
cmpq $0x0, 0x10(%rax)
jne 0x119b7
movl $0x10, %edi
callq 0x5400
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movsd 0x35829(%rip), %xmm0    # 0x471a8
callq 0x12f80
jmp 0x11986
movq -0x38(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0x119b7
movq -0x38(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x10, %esi
callq 0x5410
jmp 0x11b43
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
cmpq $0x0, 0x18(%rax)
jne 0x11a1a
movl $0x10, %edi
callq 0x5400
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x40(%rbp)
movsd 0x357be(%rip), %xmm0    # 0x471a0
callq 0x12f80
jmp 0x119e9
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x18(%rax)
jmp 0x11a1a
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x10, %esi
callq 0x5410
jmp 0x11b43
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
cmpq $0x0, 0x20(%rax)
jne 0x11a7d
movl $0x10, %edi
callq 0x5400
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x48(%rbp)
movsd 0x35763(%rip), %xmm0    # 0x471a8
callq 0x12f80
jmp 0x11a4c
movq -0x48(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x20(%rax)
jmp 0x11a7d
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x10, %esi
callq 0x5410
jmp 0x11b43
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
cmpq $0x0, 0x28(%rax)
jne 0x11add
movl $0x10, %edi
callq 0x5400
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x50(%rbp)
movsd 0x35708(%rip), %xmm0    # 0x471b0
callq 0x12f80
jmp 0x11aaf
movq -0x50(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x28(%rax)
jmp 0x11add
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x10, %esi
callq 0x5410
jmp 0x11b43
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
cmpq $0x0, 0x30(%rax)
jne 0x11b3d
movl $0x10, %edi
callq 0x5400
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x58(%rbp)
movsd 0x356b0(%rip), %xmm0    # 0x471b8
callq 0x12f80
jmp 0x11b0f
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x30(%rax)
jmp 0x11b3d
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x10, %esi
callq 0x5410
jmp 0x11b43
addq $0x60, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0x5720
nopl (%rax)