// File: /workspace/github_cpp_makefile_star2_O3/IsaacLaw12[P]RayTracer/./src/Scene.cpp
// Function: Scene::load_scene()
void Scene::load_scene(){
    std::ifstream in(orig_driver_file);
    std::string driver_line;
    // load line identifiers
    std::string light = "light";
    std::string model = "model";
    std::string ambient = "ambient";
    std::string sphere = "sphere";
    std::string wave = "wave";

    while (std::getline(in, driver_line)){
        if (!driver_line.compare(0, light.size(), light))
            add_light(driver_line);
        else if(!driver_line.compare(0, model.size(), model))
            add_model(driver_line);
        else if (!driver_line.compare(0, sphere.size(), sphere))
            add_sphere(driver_line);
        else if (!driver_line.compare(0, ambient.size(), ambient))
            edit_ambient(driver_line);
        else if (!driver_line.compare(0, wave.size(), wave))
            add_wave(driver_line);
        else if(valid_driver_line(driver_line)){
            // The only other driver lines should be camera specs
            edit_camera(driver_line);
        }
    }
    scene_camera.calculate_axis();
    in.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3b8, %rsp            # imm = 0x3B8
movq %rdi, %rbx
leaq 0x1b0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x3420
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x97e7(%rip), %rsi      # 0x17e58
leaq 0x97e5(%rip), %rdx      # 0x17e5d
leaq 0x28(%rsp), %rdi
callq 0x5bde
leaq 0xb8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x97c9(%rip), %rsi      # 0x17e5e
leaq 0x97c7(%rip), %rdx      # 0x17e63
leaq 0xa8(%rsp), %rdi
callq 0x5bde
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x97a8(%rip), %rsi      # 0x17e64
leaq 0x97a8(%rip), %rdx      # 0x17e6b
leaq 0x88(%rsp), %rdi
callq 0x5bde
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x978c(%rip), %rsi      # 0x17e6c
leaq 0x978b(%rip), %rdx      # 0x17e72
leaq 0x68(%rsp), %rdi
callq 0x5bde
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x9772(%rip), %rsi      # 0x17e73
leaq 0x976f(%rip), %rdx      # 0x17e77
leaq 0x48(%rsp), %rdi
callq 0x5bde
leaq 0x180(%rsp), %r13
leaq 0x140(%rsp), %r12
leaq 0x160(%rsp), %rbp
leaq 0x8(%rsp), %r15
movq %rbx, 0x128(%rsp)
movq 0x1b0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x32b0
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x34e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xea95
movq 0x30(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x28(%rsp), %rcx
callq 0x3350
testl %eax, %eax
je 0xe873
movq 0xb0(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0xa8(%rsp), %rcx
callq 0x3350
testl %eax, %eax
je 0xe8bf
movq 0x70(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x68(%rsp), %rcx
callq 0x3350
testl %eax, %eax
je 0xe925
movq 0x90(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x88(%rsp), %rcx
callq 0x3350
testl %eax, %eax
je 0xe96c
movq 0x50(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x48(%rsp), %rcx
callq 0x3350
testl %eax, %eax
je 0xe9b7
leaq 0x1a0(%rsp), %rax
movq %rax, 0x190(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x190(%rsp), %rdi
callq 0x5756
cmpq $0x0, 0x198(%rsp)
movq 0x190(%rsp), %rbp
je 0xea06
movsbl (%rbp), %edi
cmpl $0x23, %edi
movq %r14, %rbx
movq %r13, %r14
setne %r13b
callq 0x3050
testl %eax, %eax
sete %r12b
andb %r13b, %r12b
movq %r14, %r13
movq %rbx, %r14
jmp 0xea09
leaq 0x118(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0x5756
movq %rbx, %rdi
leaq 0x108(%rsp), %rsi
callq 0xf07c
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rcx
jmp 0xe909
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0x5756
movq %rbx, %rdi
leaq 0xe8(%rsp), %rsi
callq 0xf110
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0xe737
movq (%rax), %rsi
incq %rsi
callq 0x32d0
jmp 0xe737
movq %rbp, 0x150(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x150(%rsp), %rdi
callq 0x5756
movq %rbx, %rdi
leaq 0x150(%rsp), %rsi
callq 0xf258
movq 0x150(%rsp), %rdi
movq %rbp, %rax
cmpq %rbp, %rdi
jne 0xe915
jmp 0xe737
movq %r12, 0x130(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x130(%rsp), %rdi
callq 0x5756
movq %rbx, %rdi
leaq 0x130(%rsp), %rsi
callq 0xf382
movq 0x130(%rsp), %rdi
movq %r12, %rax
cmpq %r12, %rdi
jne 0xe915
jmp 0xe737
leaq 0xd8(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0x5756
movq %rbx, %rdi
leaq 0xc8(%rsp), %rsi
callq 0xf50a
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rcx
jmp 0xe909
xorl %r12d, %r12d
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rbp
je 0xea29
movq 0x1a0(%rsp), %rsi
incq %rsi
movq %rbp, %rdi
callq 0x32d0
testb %r12b, %r12b
movq 0x128(%rsp), %rbx
leaq 0x140(%rsp), %r12
leaq 0x160(%rsp), %rbp
je 0xe737
movq %r13, 0x170(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x170(%rsp), %rdi
callq 0x5756
movq %rbx, %rdi
leaq 0x170(%rsp), %rsi
callq 0xf60a
movq 0x170(%rsp), %rdi
movq %r13, %rax
cmpq %r13, %rdi
jne 0xe915
jmp 0xe737
addq $0x20, %rbx
movq %rbx, %rdi
callq 0x5392
leaq 0x1b0(%rsp), %rdi
callq 0x3080
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
leaq 0x18(%rsp), %rbx
leaq 0x38(%rsp), %r14
je 0xead4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xeaf0
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xeb15
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xeb3a
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0xeb51
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0xeb68
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32d0
leaq 0x1b0(%rsp), %rdi
callq 0x30a0
addq $0x3b8, %rsp            # imm = 0x3B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %r15
leaq 0x38(%rsp), %r14
jmp 0xecbd
movq %rax, %rbx
leaq 0x38(%rsp), %r14
jmp 0xecd9
movq %rax, %rbx
leaq 0x38(%rsp), %r14
jmp 0xecfe
movq %rax, %rbx
leaq 0x38(%rsp), %r14
jmp 0xed23
movq %rax, %rbx
jmp 0xed3a
movq %rax, %rbx
movq 0x170(%rsp), %rdi
cmpq %r13, %rdi
je 0xec97
movq 0x180(%rsp), %rsi
jmp 0xec8a
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0xec97
movq 0xd8(%rsp), %rsi
jmp 0xec8a
jmp 0xec94
movq %rax, %rbx
movq 0x130(%rsp), %rdi
cmpq %r12, %rdi
je 0xec97
movq 0x140(%rsp), %rsi
jmp 0xec8a
movq %rax, %rbx
movq 0x150(%rsp), %rdi
cmpq %rbp, %rdi
je 0xec97
movq 0x160(%rsp), %rsi
jmp 0xec8a
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0xec97
movq 0xf8(%rsp), %rsi
jmp 0xec8a
movq %rax, %rbx
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0xec97
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x32d0
jmp 0xec97
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
leaq 0x18(%rsp), %r15
leaq 0x38(%rsp), %r14
je 0xecbd
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xecd9
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xecfe
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xed23
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0xed3a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xed51
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32d0
leaq 0x1b0(%rsp), %rdi
callq 0x30a0
movq %rbx, %rdi
callq 0x34b0