// File: /workspace/github_cpp_makefile_star2_O2/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), %rdi
pushq $0x8
popq %rdx
movq %rbx, %rsi
callq 0x3400
leaq 0xc0(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0xb0c2(%rip), %rsi      # 0x1b11e
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x61f6
leaq 0xb0af(%rip), %rsi      # 0x1b124
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x61f6
leaq 0xb09f(%rip), %rsi      # 0x1b12a
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x61f6
leaq 0xb091(%rip), %rsi      # 0x1b132
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x61f6
leaq 0xb082(%rip), %rsi      # 0x1b139
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x61f6
leaq 0x1b0(%rsp), %r14
leaq 0xb0(%rsp), %r15
leaq 0x190(%rsp), %r13
movq %rbx, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3070
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x102bb
movq 0x98(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x90(%rsp), %rcx
callq 0x3340
testl %eax, %eax
je 0x101f5
movq 0x78(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x70(%rsp), %rcx
callq 0x3340
testl %eax, %eax
je 0x10213
movq 0x38(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x30(%rsp), %rcx
callq 0x3340
testl %eax, %eax
je 0x1023b
movq 0x58(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x50(%rsp), %rcx
callq 0x3340
testl %eax, %eax
je 0x10263
movq 0x18(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x10(%rsp), %rcx
callq 0x3340
testl %eax, %eax
je 0x1028b
leaq 0x170(%rsp), %rdi
movq %r15, %rsi
callq 0x3360
leaq 0x170(%rsp), %r12
movq %r12, %rsi
callq 0x1097e
movl %eax, %ebp
movq %r12, %rdi
callq 0x3100
testb %bpl, %bpl
movq 0x8(%rsp), %rbx
je 0x100e3
leaq 0xd0(%rsp), %rdi
movq %r15, %rsi
callq 0x3360
movq %rbx, %rdi
leaq 0xd0(%rsp), %r12
movq %r12, %rsi
callq 0x109a4
movq %r12, %rdi
jmp 0x102b1
movq %r13, %rdi
movq %r15, %rsi
callq 0x3360
movq %rbx, %rdi
movq %r13, %rsi
callq 0x105de
movq %r13, %rdi
jmp 0x102b1
leaq 0x150(%rsp), %rdi
movq %r15, %rsi
callq 0x3360
movq %rbx, %rdi
leaq 0x150(%rsp), %rbp
movq %rbp, %rsi
callq 0x10638
movq %rbp, %rdi
jmp 0x102b1
leaq 0x130(%rsp), %rdi
movq %r15, %rsi
callq 0x3360
movq %rbx, %rdi
leaq 0x130(%rsp), %rbp
movq %rbp, %rsi
callq 0x10718
movq %rbp, %rdi
jmp 0x102b1
leaq 0x110(%rsp), %rdi
movq %r15, %rsi
callq 0x3360
movq %rbx, %rdi
leaq 0x110(%rsp), %rbp
movq %rbp, %rsi
callq 0x107f4
movq %rbp, %rdi
jmp 0x102b1
leaq 0xf0(%rsp), %rdi
movq %r15, %rsi
callq 0x3360
movq %rbx, %rdi
leaq 0xf0(%rsp), %rbp
movq %rbp, %rsi
callq 0x108f2
movq %rbp, %rdi
callq 0x3100
jmp 0x100e3
addq $0x20, %rbx
movq %rbx, %rdi
callq 0x509e
leaq 0x1b0(%rsp), %rdi
callq 0x3080
leaq 0x10(%rsp), %rdi
callq 0x3100
leaq 0x30(%rsp), %rdi
callq 0x3100
leaq 0x50(%rsp), %rdi
callq 0x3100
leaq 0x70(%rsp), %rdi
callq 0x3100
leaq 0x90(%rsp), %rdi
callq 0x3100
leaq 0xb0(%rsp), %rdi
callq 0x3100
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
jmp 0x103bf
movq %rax, %rbx
jmp 0x103c9
movq %rax, %rbx
jmp 0x103d3
movq %rax, %rbx
jmp 0x103dd
movq %rax, %rbx
jmp 0x103ea
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
jmp 0x103ab
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
jmp 0x103ab
jmp 0x103b2
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
jmp 0x103ab
movq %rax, %rbx
leaq 0x130(%rsp), %rdi
jmp 0x103ab
movq %rax, %rbx
leaq 0x150(%rsp), %rdi
jmp 0x103ab
movq %rax, %rbx
leaq 0x190(%rsp), %rdi
callq 0x3100
jmp 0x103b5
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3100
leaq 0x30(%rsp), %rdi
callq 0x3100
leaq 0x50(%rsp), %rdi
callq 0x3100
leaq 0x70(%rsp), %rdi
callq 0x3100
leaq 0x90(%rsp), %rdi
callq 0x3100
leaq 0xb0(%rsp), %rdi
callq 0x3100
leaq 0x1b0(%rsp), %rdi
callq 0x30a0
movq %rbx, %rdi
callq 0x3490