// File: /workspace/github_cpp_makefile_star2_O1/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 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x972a(%rip), %rsi      # 0x17e58
leaq 0x9728(%rip), %rdx      # 0x17e5d
leaq 0x68(%rsp), %rdi
callq 0x5be2
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x970f(%rip), %rsi      # 0x17e5e
leaq 0x970d(%rip), %rdx      # 0x17e63
leaq 0x48(%rsp), %rdi
callq 0x5be2
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x96f4(%rip), %rsi      # 0x17e64
leaq 0x96f4(%rip), %rdx      # 0x17e6b
leaq 0x28(%rsp), %rdi
callq 0x5be2
leaq 0xb8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x96d8(%rip), %rsi      # 0x17e6c
leaq 0x96d7(%rip), %rdx      # 0x17e72
leaq 0xa8(%rsp), %rdi
callq 0x5be2
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x96b8(%rip), %rsi      # 0x17e73
leaq 0x96b5(%rip), %rdx      # 0x17e77
leaq 0x88(%rsp), %rdi
callq 0x5be2
leaq 0x180(%rsp), %r12
leaq 0x1a0(%rsp), %rbp
leaq 0x160(%rsp), %r13
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 0xeb54
movq 0x70(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x68(%rsp), %rcx
callq 0x3350
testl %eax, %eax
je 0xe935
movq 0x50(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x48(%rsp), %rcx
callq 0x3350
testl %eax, %eax
je 0xe984
movq 0xb0(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0xa8(%rsp), %rcx
callq 0x3350
testl %eax, %eax
je 0xe9d0
movq 0x30(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x28(%rsp), %rcx
callq 0x3350
testl %eax, %eax
je 0xea36
movq 0x90(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x88(%rsp), %rcx
callq 0x3350
testl %eax, %eax
je 0xea7d
leaq 0x140(%rsp), %rax
movq %rax, 0x130(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x130(%rsp), %rdi
callq 0x5760
cmpq $0x0, 0x138(%rsp)
je 0xeac8
movq 0x130(%rsp), %rax
movsbl (%rax), %edi
cmpl $0x23, %edi
movq %r14, %rbx
movq %rbp, %r14
movq %r12, %rbp
setne %r12b
callq 0x3050
testl %eax, %eax
sete %r13b
andb %r12b, %r13b
movq %rbp, %r12
movq %r14, %rbp
movq %rbx, %r14
jmp 0xeacb
leaq 0x118(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0x5760
movq %rbx, %rdi
leaq 0x108(%rsp), %rsi
callq 0xf13a
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rcx
jmp 0xea1a
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0x5760
movq %rbx, %rdi
leaq 0xe8(%rsp), %rsi
callq 0xf1ce
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rcx
jmp 0xea1a
leaq 0xd8(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0x5760
movq %rbx, %rdi
leaq 0xc8(%rsp), %rsi
callq 0xf31a
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0xe7f4
movq (%rax), %rsi
incq %rsi
callq 0x32d0
jmp 0xe7f4
movq %r13, 0x150(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x150(%rsp), %rdi
callq 0x5760
movq %rbx, %rdi
leaq 0x150(%rsp), %rsi
callq 0xf444
movq 0x150(%rsp), %rdi
movq %r13, %rax
cmpq %r13, %rdi
jne 0xea26
jmp 0xe7f4
movq %rbp, 0x190(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x190(%rsp), %rdi
callq 0x5760
movq %rbx, %rdi
leaq 0x190(%rsp), %rsi
callq 0xf5cc
movq 0x190(%rsp), %rdi
movq %rbp, %rax
cmpq %rbp, %rdi
jne 0xea26
jmp 0xe7f4
xorl %r13d, %r13d
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0xeaf0
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x32d0
testb %r13b, %r13b
movq 0x128(%rsp), %rbx
leaq 0x160(%rsp), %r13
je 0xe7f4
movq %r12, 0x170(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x170(%rsp), %rdi
callq 0x5760
movq %rbx, %rdi
leaq 0x170(%rsp), %rsi
callq 0xf6cc
movq 0x170(%rsp), %rdi
movq %r12, %rax
cmpq %r12, %rdi
jne 0xea26
jmp 0xe7f4
addq $0x20, %rbx
movq %rbx, %rdi
callq 0x53a6
leaq 0x1b0(%rsp), %rdi
callq 0x3080
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
leaq 0x18(%rsp), %rbx
leaq 0x78(%rsp), %r14
leaq 0x58(%rsp), %r15
leaq 0x38(%rsp), %r12
je 0xeba6
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xebcb
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0xebe2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xebf9
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xec10
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0xec27
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 0x78(%rsp), %r12
leaq 0x58(%rsp), %r13
leaq 0x38(%rsp), %rbp
jmp 0xed8d
movq %rax, %rbx
jmp 0xedb2
movq %rax, %rbx
jmp 0xedc9
movq %rax, %rbx
jmp 0xede0
movq %rax, %rbx
jmp 0xedf7
movq %rax, %rbx
movq 0x170(%rsp), %rdi
cmpq %r12, %rdi
je 0xed54
movq 0x180(%rsp), %rsi
jmp 0xed47
movq %rax, %rbx
movq 0x190(%rsp), %rdi
cmpq %rbp, %rdi
je 0xed54
movq 0x1a0(%rsp), %rsi
jmp 0xed47
jmp 0xed51
movq %rax, %rbx
movq 0x150(%rsp), %rdi
cmpq %r13, %rdi
je 0xed54
movq 0x160(%rsp), %rsi
jmp 0xed47
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0xed54
movq 0xd8(%rsp), %rsi
jmp 0xed47
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0xed54
movq 0xf8(%rsp), %rsi
jmp 0xed47
movq %rax, %rbx
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0xed54
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x32d0
jmp 0xed54
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
leaq 0x18(%rsp), %r15
leaq 0x78(%rsp), %r12
leaq 0x58(%rsp), %r13
leaq 0x38(%rsp), %rbp
je 0xed8d
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xedb2
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0xedc9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0xede0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0xedf7
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xee0e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32d0
leaq 0x1b0(%rsp), %rdi
callq 0x30a0
movq %rbx, %rdi
callq 0x34b0
nop