// File: /workspace/github_cpp_makefile_star2_O3/Lut99[P]RayTracer/src/lib/RenderWorld.cpp
// Function: RayTracer::RenderWorld::from_json(nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>)
RenderWorld* RenderWorld::from_json(nlohmann::json json_obj) {
    // Check if the object has an object type
    if (!json_obj.is_object()) {
        throw InvalidObjectFormat("RenderWorld", json::object().type_name(), json_obj.type_name());
    }

    // Parse all the items in this array
    RenderWorld* world = new RenderWorld();

    // Parse the objects field if it exists
    if (!json_obj["objects"].is_null()) {
        // Check if the fields are arrays
        if (!json_obj["objects"].is_array()) {
            delete world;
            throw InvalidFieldFormat("RenderWorld", "objects", json::array().type_name(), json_obj["objects"].type_name());
        }

        // Parse the objects
        for (std::size_t i = 0; i < json_obj["objects"].size(); i++) {
            world->add_object(RenderObject::from_json(json_obj["objects"][i]));
        }
    }
    
    // Parse the init function field
    if (!json_obj["init"].is_null()) {
        // Check if it is a string
        if (!json_obj["init"].is_string()) {
            delete world;
            throw InvalidFieldFormat("RenderWorld", "init", "string", json_obj["init"].type_name());
        }

        cout << "Test 1" << endl;

        // Check if there is a file ending in .so with that name
        std::string path = json_obj["init"].get<std::string>();
        if (FILE* file = fopen(path.c_str(), "r")) {
            fclose(file);
        } else {
            // Doesn't exist
            delete world;
            throw FileIOException("RenderWorld", path, errno);
        }

        cout << "Test 2" << endl;

        // There is, so try to load it using the dl library
        void* handle = dlopen(path.c_str(), RTLD_NOW);
        if (handle == NULL) {
            throw SOLoadException("RenderWorld", path, dlerror());
        }
        void (*init)(const RenderWorld& world) = (void (*)(const RenderWorld& world)) dlsym(handle, "init");
        if (init == NULL) {
            dlclose(handle);
            throw SOFuncLoadException("RenderWorld", path, "init", dlerror());
        }

        cout << "Test 3" << endl;

        // Run the function on the given world
        try {
            (*init)(*world);
        } catch (std::exception& e) {
            dlclose(handle);
            throw SORunException("RenderWorld", path, "init", string(e.what()));
        }

        cout << "Test 4" << endl;

        // Close the library
        //dlclose(handle);

        cout << "Test 5" << endl;
    }

    // Optimize the inner tree
    world->optimize();

    return world;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x338, %rsp            # imm = 0x338
movq %rdi, %rbx
cmpb $0x1, (%rdi)
jne 0x7ae07
movl $0x10, %edi
callq 0x3a470
movq %rax, %r14
movq %rax, %rdi
callq 0x7a4dc
leaq 0x937d(%rip), %rsi      # 0x83e76
movq %rbx, %rdi
callq 0x41392
cmpb $0x0, (%rax)
je 0x7abc9
leaq 0x9365(%rip), %rsi      # 0x83e76
movq %rbx, %rdi
callq 0x41392
cmpb $0x2, (%rax)
jne 0x7ae71
leaq 0x30(%rsp), %r15
xorl %r12d, %r12d
leaq 0x9345(%rip), %r13      # 0x83e76
leaq 0x28(%rsp), %rbp
movq %rbx, %rdi
movq %r13, %rsi
callq 0x41392
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x7ab72
cmpl $0x1, %ecx
je 0x7ab63
cmpl $0x2, %ecx
jne 0x7ab6d
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x4, %rcx
jmp 0x7ab72
movq 0x8(%rax), %rax
movq 0x28(%rax), %rcx
jmp 0x7ab72
movl $0x1, %ecx
cmpq %rcx, %r12
jae 0x7abc9
movq %rbx, %rdi
movq %r13, %rsi
callq 0x41392
movq %rax, %rdi
movq %r12, %rsi
callq 0x72dc4
movq %rbp, %rdi
movq %rax, %rsi
callq 0x4155c
movq %rbp, %rdi
callq 0x74c12
movq 0x8(%r14), %rdi
movq %rax, %rsi
callq 0x81f3c
movq %rbp, %rdi
callq 0x4861e
movzbl 0x28(%rsp), %esi
movq %r15, %rdi
callq 0x486c0
incq %r12
jmp 0x7ab36
leaq 0xfba8(%rip), %rsi      # 0x8a778
movq %rbx, %rdi
callq 0x41392
cmpb $0x0, (%rax)
je 0x7ade9
leaq 0xfb90(%rip), %rsi      # 0x8a778
movq %rbx, %rdi
callq 0x41392
cmpb $0x3, (%rax)
jne 0x7af0b
movq 0x29380(%rip), %r15     # 0xa3f80
leaq 0xfb76(%rip), %rsi      # 0x8a77d
movl $0x6, %edx
movq %r15, %rdi
callq 0x3a500
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3a440
movsbl %al, %esi
movq %r15, %rdi
callq 0x3a050
movq %rax, %rdi
callq 0x3a310
leaq 0xfb36(%rip), %rsi      # 0x8a778
movq %rbx, %rdi
callq 0x41392
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7b9e2
movq (%rbx), %rdi
leaq 0xa705(%rip), %rsi      # 0x85369
callq 0x3a530
testq %rax, %rax
je 0x7afc3
movq %rax, %rdi
callq 0x3a460
movq 0x292ff(%rip), %rbx     # 0xa3f80
leaq 0xfafc(%rip), %rsi      # 0x8a784
movl $0x6, %edx
movq %rbx, %rdi
callq 0x3a500
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3a440
movsbl %al, %esi
movq 0x292cd(%rip), %rdi     # 0xa3f80
callq 0x3a050
movq %rax, %rdi
callq 0x3a310
movq 0x8(%rsp), %rdi
movl $0x2, %esi
callq 0x3a5e0
testq %rax, %rax
je 0x7b066
movq %rax, %r15
leaq 0xfa96(%rip), %rsi      # 0x8a778
movq %rax, %rdi
callq 0x3a420
testq %rax, %rax
je 0x7b115
movq %rax, %rbx
movq 0x29283(%rip), %r12     # 0xa3f80
leaq 0xfa87(%rip), %rsi      # 0x8a78b
movl $0x6, %edx
movq %r12, %rdi
callq 0x3a500
movq (%r12), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x3a440
movsbl %al, %esi
movq 0x29250(%rip), %rdi     # 0xa3f80
callq 0x3a050
movq %rax, %rdi
callq 0x3a310
movq %r14, %rdi
callq *%rbx
movq 0x29237(%rip), %rbx     # 0xa3f80
leaq 0xfa42(%rip), %rsi      # 0x8a792
movl $0x6, %edx
movq %rbx, %rdi
callq 0x3a500
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3a440
movsbl %al, %esi
movq 0x29205(%rip), %rdi     # 0xa3f80
callq 0x3a050
movq %rax, %rdi
callq 0x3a310
movq 0x291f1(%rip), %rbx     # 0xa3f80
leaq 0xfa03(%rip), %rsi      # 0x8a799
movl $0x6, %edx
movq %rbx, %rdi
callq 0x3a500
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3a440
movsbl %al, %esi
movq 0x291bf(%rip), %rdi     # 0xa3f80
callq 0x3a050
movq %rax, %rdi
callq 0x3a310
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7ade9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3a480
movq 0x8(%r14), %rdi
callq 0x82012
movq %r14, %rax
addq $0x338, %rsp            # imm = 0x338
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x88, %edi
callq 0x3a210
movq %rax, %r14
leaq 0x108(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8af4(%rip), %rsi      # 0x8391c
leaq 0x8af8(%rip), %rdx      # 0x83927
leaq 0xf8(%rsp), %rdi
callq 0x44390
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x73c9e
movzbl 0x8(%rsp), %eax
cmpq $0x8, %rax
ja 0x7b1f8
leaq 0x28800(%rip), %rcx     # 0xa3668
movq (%rcx,%rax,8), %r15
jmp 0x7b1ff
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movl $0xa8, %edi
callq 0x3a210
movq %rax, %r14
leaq 0xe8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8a81(%rip), %rsi      # 0x8391c
leaq 0x8a85(%rip), %rdx      # 0x83927
leaq 0xd8(%rsp), %rdi
callq 0x44390
leaq 0x288(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x8fb4(%rip), %rsi      # 0x83e76
leaq 0x8fb4(%rip), %rdx      # 0x83e7d
leaq 0x278(%rsp), %rdi
callq 0x44390
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0x73c9e
movzbl 0x8(%rsp), %eax
cmpq $0x8, %rax
ja 0x7b2ac
leaq 0x28766(%rip), %rcx     # 0xa3668
movq (%rcx,%rax,8), %r15
jmp 0x7b2b3
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movl $0xa8, %edi
callq 0x3a210
movq %rax, %r14
leaq 0xc8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x89e8(%rip), %rsi      # 0x8391c
leaq 0x89ec(%rip), %rdx      # 0x83927
leaq 0xb8(%rsp), %rdi
callq 0x44390
leaq 0x248(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xf81c(%rip), %rsi      # 0x8a778
leaq 0xf819(%rip), %rdx      # 0x8a77c
leaq 0x238(%rsp), %rdi
callq 0x44390
leaq 0x228(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xb25f(%rip), %rsi      # 0x861e2
leaq 0xb25e(%rip), %rdx      # 0x861e8
leaq 0x218(%rsp), %rdi
callq 0x44390
leaq 0xf7da(%rip), %rsi      # 0x8a778
movq %rbx, %rdi
callq 0x41392
movzbl (%rax), %eax
cmpq $0x8, %rax
ja 0x7b304
leaq 0x286ae(%rip), %rcx     # 0xa3668
movq (%rcx,%rax,8), %rbx
jmp 0x7b30b
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movl $0x70, %edi
callq 0x3a210
movq %rax, %r14
leaq 0xa8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x8930(%rip), %rsi      # 0x8391c
leaq 0x8934(%rip), %rdx      # 0x83927
leaq 0x98(%rsp), %rdi
callq 0x44390
leaq 0x208(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f8(%rsp), %rdi
callq 0x48588
callq 0x3a070
movl (%rax), %ecx
movb $0x1, %bpl
leaq 0x98(%rsp), %rsi
leaq 0x1f8(%rsp), %rdx
movq %r14, %rdi
callq 0x7ba30
xorl %ebp, %ebp
leaq 0x28676(%rip), %rsi     # 0xa36c8
leaq 0xc4b(%rip), %rdx       # 0x7bca4
movq %r14, %rdi
callq 0x3a760
jmp 0x7b8dc
movl $0x88, %edi
callq 0x3a210
movq %rax, %r14
leaq 0x88(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x8896(%rip), %rsi      # 0x8391c
leaq 0x889a(%rip), %rdx      # 0x83927
leaq 0x78(%rsp), %rdi
callq 0x44390
leaq 0x1e8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1d8(%rsp), %rdi
callq 0x48588
callq 0x3a430
leaq 0x318(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0x40986
movb $0x1, %bpl
leaq 0x78(%rsp), %rsi
leaq 0x1d8(%rsp), %rdx
leaq 0x318(%rsp), %rcx
movq %r14, %rdi
callq 0x7bd0e
xorl %ebp, %ebp
leaq 0x285df(%rip), %rsi     # 0xa36e0
leaq 0xe9c(%rip), %rdx       # 0x7bfa4
movq %r14, %rdi
callq 0x3a760
jmp 0x7b8dc
movq %r15, %rdi
callq 0x3a3a0
movl $0xc8, %edi
callq 0x3a210
movq %rax, %r14
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x87e2(%rip), %rsi      # 0x8391c
leaq 0x87e6(%rip), %rdx      # 0x83927
leaq 0x58(%rsp), %rdi
callq 0x44390
leaq 0x1c8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1b8(%rsp), %rdi
callq 0x48588
leaq 0x1a8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xf5f3(%rip), %rsi      # 0x8a778
leaq 0xf5f0(%rip), %rdx      # 0x8a77c
leaq 0x198(%rsp), %rdi
callq 0x44390
callq 0x3a430
leaq 0x2f8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0x40986
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
leaq 0x1b8(%rsp), %rdx
leaq 0x198(%rsp), %rcx
leaq 0x2f8(%rsp), %r8
movq %r14, %rdi
callq 0x7c030
xorl %ebp, %ebp
leaq 0x28514(%rip), %rsi     # 0xa36f8
leaq 0x13c9(%rip), %rdx      # 0x7c5b4
movq %r14, %rdi
callq 0x3a760
jmp 0x7b8dc
leaq 0xaffc(%rip), %r15      # 0x861fb
leaq 0x2c8(%rsp), %r13
movq %r13, -0x10(%r13)
movq %r15, %rdi
callq 0x3a1f0
leaq (%rax,%r15), %rdx
leaq 0x2b8(%rsp), %rdi
movq %r15, %rsi
callq 0x44390
movzbl (%rbx), %eax
cmpq $0x8, %rax
ja 0x7b23d
leaq 0x28431(%rip), %rcx     # 0xa3668
movq (%rcx,%rax,8), %rbx
jmp 0x7b244
leaq 0xafb7(%rip), %rbx      # 0x861fb
leaq 0x2a8(%rsp), %r15
movq %r15, -0x10(%r15)
movq %rbx, %rdi
callq 0x3a1f0
leaq (%rax,%rbx), %rdx
leaq 0x298(%rsp), %rdi
movq %rbx, %rsi
callq 0x44390
movb $0x1, %bpl
leaq 0xf8(%rsp), %rsi
leaq 0x2b8(%rsp), %rdx
leaq 0x298(%rsp), %rcx
movq %r14, %rdi
callq 0x72fb0
xorl %ebp, %ebp
leaq 0x27ea0(%rip), %rsi     # 0xa3138
leaq -0x801b(%rip), %rdx     # 0x73284
movq %r14, %rdi
callq 0x3a760
jmp 0x7b8dc
leaq 0xaf48(%rip), %r15      # 0x861fb
leaq 0x268(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %r15, %rdi
callq 0x3a1f0
leaq (%rax,%r15), %rdx
leaq 0x258(%rsp), %rdi
movq %r15, %rsi
callq 0x44390
leaq 0x8b94(%rip), %rsi      # 0x83e76
movq %rbx, %rdi
callq 0x41392
movzbl (%rax), %eax
cmpq $0x8, %rax
ja 0x7b37b
leaq 0x2836a(%rip), %rcx     # 0xa3668
movq (%rcx,%rax,8), %rbx
jmp 0x7b382
leaq 0xaef0(%rip), %rbx      # 0x861fb
leaq 0x128(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rbx, %rdi
callq 0x3a1f0
leaq (%rax,%rbx), %rdx
leaq 0x118(%rsp), %rdi
movq %rbx, %rsi
callq 0x44390
movb $0x1, %bpl
leaq 0xb8(%rsp), %rsi
leaq 0x238(%rsp), %rdx
leaq 0x218(%rsp), %rcx
leaq 0x118(%rsp), %r8
movq %r14, %rdi
callq 0x75496
xorl %ebp, %ebp
leaq 0x27f81(%rip), %rsi     # 0xa32e8
leaq -0x5a68(%rip), %rdx     # 0x75906
movq %r14, %rdi
callq 0x3a760
jmp 0x7b8dc
leaq 0xae79(%rip), %rbx      # 0x861fb
leaq 0x148(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rbx, %rdi
callq 0x3a1f0
leaq (%rax,%rbx), %rdx
leaq 0x138(%rsp), %rdi
movq %rbx, %rsi
callq 0x44390
movb $0x1, %r15b
leaq 0xd8(%rsp), %rsi
leaq 0x278(%rsp), %rdx
leaq 0x258(%rsp), %rcx
leaq 0x138(%rsp), %r8
movq %r14, %rdi
callq 0x75496
xorl %r15d, %r15d
leaq 0x27f09(%rip), %rsi     # 0xa32e8
leaq -0x5ae0(%rip), %rdx     # 0x75906
movq %r14, %rdi
callq 0x3a760
jmp 0x7b8dc
movq %rax, %rbx
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x7b458
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b458
jmp 0x7b452
movq %rax, %rbx
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x7b4d6
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b4d6
jmp 0x7b4d0
movq %rax, %rbx
movb $0x1, %r15b
movq 0x258(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7b502
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b502
movq %rax, %rbx
leaq 0x308(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7b4aa
movq 0x308(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b4aa
movq %rax, %rbx
movb $0x1, %bpl
movq 0x198(%rsp), %rdi
cmpq %r13, %rdi
je 0x7b565
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b565
movq %rax, %rbx
movb $0x1, %bpl
movq 0x218(%rsp), %rdi
cmpq %r13, %rdi
je 0x7b604
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b604
movq %rax, %rbx
movb $0x1, %r15b
leaq 0x8(%rsp), %rdi
callq 0x415d4
jmp 0x7b642
movq %rax, %rbx
movq 0x298(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b539
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b539
movq %rax, %rbx
movb $0x1, %bpl
movq 0x2b8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7b690
movq 0x2c8(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b690
movq %rax, %rbx
movb $0x1, %bpl
movq 0x1b8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7b582
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x3a480
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b735
movq 0x68(%rsp), %rsi
jmp 0x7b72d
movq %rax, %rbx
leaq 0x328(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7b5c6
movq 0x328(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b5c6
movq %rax, %rbx
movb $0x1, %bpl
movq 0x1d8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7b5e3
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x3a480
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b735
movq 0x88(%rsp), %rsi
jmp 0x7b72d
movq %rax, %rbx
movb $0x1, %bpl
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0x7b621
movq 0x248(%rsp), %rsi
incq %rsi
callq 0x3a480
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b6b7
movq 0xc8(%rsp), %rsi
jmp 0x7b6af
movq %rax, %rbx
movb $0x1, %r15b
movq 0x278(%rsp), %rdi
cmpq %r13, %rdi
je 0x7b65f
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x3a480
movq 0xd8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7b67c
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3a480
testb %r15b, %r15b
jne 0x7b7d6
jmp 0x7b9da
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x415d4
movq 0xf8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7b6b7
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3a480
testb %bpl, %bpl
jne 0x7b7d6
jmp 0x7b9da
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b7c2
movq 0x68(%rsp), %rsi
jmp 0x7b75b
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b7c2
movq 0x88(%rsp), %rsi
jmp 0x7b75b
movq %rax, %rbx
movq 0x1f8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7b718
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x3a480
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b735
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3a480
testb %bpl, %bpl
jne 0x7b7c2
jmp 0x7b9b0
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b7c2
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b7c2
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b7d6
movq 0xc8(%rsp), %rsi
jmp 0x7b7b1
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7b7d6
movq 0xe8(%rsp), %rsi
jmp 0x7b7b1
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7b7d6
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b7d6
jmp 0x7b7bf
jmp 0x7b7bf
movq %rax, %rbx
movq %r14, %rdi
callq 0x3a340
jmp 0x7b9b0
jmp 0x7b7d3
jmp 0x7b7d3
movq %rax, %rbx
movq %r14, %rdi
callq 0x3a340
jmp 0x7b9da
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x7b9b0
movq %rbx, %rdi
callq 0x3a1c0
movq %rax, %rbx
movq %r15, %rdi
callq 0x3a3a0
movl $0xa8, %edi
callq 0x3a210
movq %rax, %r14
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x80fd(%rip), %rsi      # 0x8391c
leaq 0x8101(%rip), %rdx      # 0x83927
leaq 0x38(%rsp), %rdi
callq 0x44390
leaq 0x188(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x178(%rsp), %rdi
callq 0x48588
leaq 0x168(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xef0e(%rip), %rsi      # 0x8a778
leaq 0xef0b(%rip), %rdx      # 0x8a77c
leaq 0x158(%rsp), %rdi
callq 0x44390
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
leaq 0x2d8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0x40986
movb $0x1, %bpl
leaq 0x38(%rsp), %rsi
leaq 0x178(%rsp), %rdx
leaq 0x158(%rsp), %rcx
leaq 0x2d8(%rsp), %r8
movq %r14, %rdi
callq 0x7c686
xorl %ebp, %ebp
leaq 0x27e43(%rip), %rsi     # 0xa3710
leaq 0x11fc(%rip), %rdx      # 0x7cad0
movq %r14, %rdi
callq 0x3a760
movq %rax, %rbx
leaq 0x2e8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7b908
movq 0x2e8(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b908
movq %rax, %rbx
movb $0x1, %bpl
movq 0x158(%rsp), %rdi
cmpq %r13, %rdi
je 0x7b92d
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b92d
movq %rax, %rbx
movb $0x1, %bpl
movq 0x178(%rsp), %rdi
cmpq %r12, %rdi
je 0x7b94a
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3a480
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b961
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3a480
testb %bpl, %bpl
jne 0x7b987
jmp 0x7b98f
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b987
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b987
movq %rax, %rbx
movq %r14, %rdi
callq 0x3a340
callq 0x3a720
jmp 0x7b9b0
movq %rax, %rdi
callq 0x4116b
movq %rax, %rbx
movl $0x10, %esi
movq %r14, %rdi
jmp 0x7b9c6
jmp 0x7b9ad
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7b9da
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7b9da
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x415d4
movq %rbx, %rdi
callq 0x3a790