// File: Lut99[P]RayTracer/src/lib/RenderAnimation.cpp
// Function: RayTracer::RenderAnimation::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>)
RenderAnimation* RenderAnimation::from_json(json json_obj) {
    // Check if the object has an object type
    if (!json_obj.is_object()) {
        throw InvalidObjectFormat("RenderAnimation", json::object().type_name(), json_obj.type_name());
    }

    // Check if the required type field exists and is an array
    if (json_obj["type"].is_null()) {
        throw MissingFieldException("RenderAnimation", "type");
    }
    
    // Parse the raw type
    RenderAnimationType type;
    try {
        type = (RenderAnimationType) json_obj["type"].get<unsigned long>();
    } catch (nlohmann::detail::type_error&) {
        throw InvalidFieldFormat("RenderAnimation", "type", "unsigned long", json_obj["type"].type_name());
    }

    // Decide how to parse the rest of the JSON
    if (true) {
        throw UnknownSubtypeException("RenderAnimation", type);
    }
}

// Assembly:
subq $0x278, %rsp            # imm = 0x278
movq %rdi, 0xa0(%rsp)
movq %rdi, 0x270(%rsp)
callq 0xd9b20
testb $0x1, %al
jne 0x168d2d
movb $0x1, 0x1ce(%rsp)
movl $0x88, %edi
callq 0xd02b0
movq %rax, 0x90(%rsp)
leaq 0x24f(%rsp), %rdi
movq %rdi, 0x98(%rsp)
callq 0xd0a20
movq 0x98(%rsp), %rdx
leaq 0xf898(%rip), %rsi      # 0x1783ca
leaq 0x250(%rsp), %rdi
callq 0xd8b80
jmp 0x168b41
leaq 0x1f8(%rsp), %rdi
callq 0x155e60
movq 0x1f8(%rsp), %rsi
movq 0x200(%rsp), %rdx
leaq 0x208(%rsp), %rdi
callq 0x15a2a0
jmp 0x168b6d
leaq 0x208(%rsp), %rdi
callq 0x1302d0
movq %rax, 0x80(%rsp)
leaq 0x1f7(%rsp), %rdi
movq %rdi, 0x88(%rsp)
callq 0xd0a20
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
leaq 0x218(%rsp), %rdi
callq 0xd8b80
jmp 0x168bb6
movq 0xa0(%rsp), %rdi
callq 0x1302d0
movq %rax, 0x70(%rsp)
leaq 0x1cf(%rsp), %rdi
movq %rdi, 0x78(%rsp)
callq 0xd0a20
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
leaq 0x1d0(%rsp), %rdi
callq 0xd8b80
jmp 0x168bf3
movq 0x90(%rsp), %rdi
leaq 0x250(%rsp), %rsi
leaq 0x218(%rsp), %rdx
leaq 0x1d0(%rsp), %rcx
callq 0x156180
jmp 0x168c1a
movq 0x90(%rsp), %rdi
movb $0x0, 0x1ce(%rsp)
leaq 0x4283f(%rip), %rsi     # 0x1ab470
leaq -0x128a8(%rip), %rdx    # 0x156390
callq 0xd09b0
jmp 0x169253
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x168d02
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x168cf5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x168cdb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x168cc1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0x1d0(%rsp), %rdi
callq 0xd0b38
leaq 0x1cf(%rsp), %rdi
callq 0xd0630
leaq 0x218(%rsp), %rdi
callq 0xd0b38
leaq 0x1f7(%rsp), %rdi
callq 0xd0630
leaq 0x208(%rsp), %rdi
callq 0xd9f30
leaq 0x250(%rsp), %rdi
callq 0xd0b38
leaq 0x24f(%rsp), %rdi
callq 0xd0630
testb $0x1, 0x1ce(%rsp)
jne 0x168d1b
jmp 0x168d28
movq 0x90(%rsp), %rdi
callq 0xd0430
jmp 0x16923e
movq 0xa0(%rsp), %rdi
leaq 0xdef7(%rip), %rsi      # 0x176c33
callq 0xd9b40
movq %rax, %rdi
callq 0xd9da0
testb $0x1, %al
jne 0x168d52
jmp 0x168e93
movb $0x1, 0x17e(%rsp)
movl $0x68, %edi
callq 0xd02b0
movq %rax, 0x60(%rsp)
leaq 0x1a7(%rsp), %rdi
movq %rdi, 0x68(%rsp)
callq 0xd0a20
movq 0x68(%rsp), %rdx
leaq 0xf643(%rip), %rsi      # 0x1783ca
leaq 0x1a8(%rsp), %rdi
callq 0xd8b80
jmp 0x168d96
leaq 0x17f(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0xd0a20
movq 0x58(%rsp), %rdx
leaq 0xde7f(%rip), %rsi      # 0x176c33
leaq 0x180(%rsp), %rdi
callq 0xd8b80
jmp 0x168dc3
movq 0x60(%rsp), %rdi
leaq 0x1a8(%rsp), %rsi
leaq 0x180(%rsp), %rdx
callq 0x15a2f0
jmp 0x168ddf
movq 0x60(%rsp), %rdi
movb $0x0, 0x17e(%rsp)
leaq 0x427cd(%rip), %rsi     # 0x1ab5c0
leaq -0xe9ca(%rip), %rdx     # 0x15a430
callq 0xd09b0
jmp 0x169253
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x168e6b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x168e51
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0x180(%rsp), %rdi
callq 0xd0b38
leaq 0x17f(%rsp), %rdi
callq 0xd0630
leaq 0x1a8(%rsp), %rdi
callq 0xd0b38
leaq 0x1a7(%rsp), %rdi
callq 0xd0630
testb $0x1, 0x17e(%rsp)
jne 0x168e84
jmp 0x168e8e
movq 0x60(%rsp), %rdi
callq 0xd0430
jmp 0x16923e
movq 0xa0(%rsp), %rdi
leaq 0xdd91(%rip), %rsi      # 0x176c33
callq 0xd9b40
movq %rax, 0x50(%rsp)
jmp 0x168eae
movq 0x50(%rsp), %rdi
callq 0x15a470
movq %rax, 0x48(%rsp)
jmp 0x168ebf
movq 0x48(%rsp), %rax
movl %eax, 0x178(%rsp)
jmp 0x169163
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
movl 0x23c(%rsp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x16923e
movq 0x240(%rsp), %rdi
callq 0xd0210
movq %rax, 0x170(%rsp)
movb $0x1, 0xd6(%rsp)
movl $0xa8, %edi
callq 0xd02b0
movq %rax, 0x38(%rsp)
leaq 0x14f(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0xd0a20
movq 0x40(%rsp), %rdx
leaq 0xf488(%rip), %rsi      # 0x1783ca
leaq 0x150(%rsp), %rdi
callq 0xd8b80
jmp 0x168f51
leaq 0x127(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0xd0a20
movq 0x30(%rsp), %rdx
leaq 0xdcc4(%rip), %rsi      # 0x176c33
leaq 0x128(%rsp), %rdi
callq 0xd8b80
jmp 0x168f7e
leaq 0xff(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0xd0a20
movq 0x28(%rsp), %rdx
leaq 0xed69(%rip), %rsi      # 0x177d05
leaq 0x100(%rsp), %rdi
callq 0xd8b80
jmp 0x168fab
movq 0xa0(%rsp), %rdi
leaq 0xdc79(%rip), %rsi      # 0x176c33
callq 0xd9b40
movq %rax, 0x20(%rsp)
jmp 0x168fc6
movq 0x20(%rsp), %rdi
callq 0x1302d0
movq %rax, 0x10(%rsp)
leaq 0xd7(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xd0a20
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0xd8(%rsp), %rdi
callq 0xd8b80
jmp 0x169000
movq 0x38(%rsp), %rdi
leaq 0x150(%rsp), %rsi
leaq 0x128(%rsp), %rdx
leaq 0x100(%rsp), %rcx
leaq 0xd8(%rsp), %r8
callq 0x15a4a0
jmp 0x16902c
movq 0x38(%rsp), %rdi
movb $0x0, 0xd6(%rsp)
leaq 0x42598(%rip), %rsi     # 0x1ab5d8
leaq -0xe8a7(%rip), %rdx     # 0x15a7a0
callq 0xd09b0
jmp 0x169253
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x169134
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x16911a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x169100
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x1690f3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x1690e6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0xd0b38
leaq 0xd7(%rsp), %rdi
callq 0xd0630
leaq 0x100(%rsp), %rdi
callq 0xd0b38
leaq 0xff(%rsp), %rdi
callq 0xd0630
leaq 0x128(%rsp), %rdi
callq 0xd0b38
leaq 0x127(%rsp), %rdi
callq 0xd0630
leaq 0x150(%rsp), %rdi
callq 0xd0b38
leaq 0x14f(%rsp), %rdi
callq 0xd0630
testb $0x1, 0xd6(%rsp)
jne 0x16914d
jmp 0x169157
movq 0x38(%rsp), %rdi
callq 0xd0430
callq 0xd0940
jmp 0x16915e
jmp 0x16923e
movb $0x1, 0xae(%rsp)
movl $0x50, %edi
callq 0xd02b0
movq %rax, (%rsp)
leaq 0xaf(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xd0a20
movq 0x8(%rsp), %rdx
leaq 0xf233(%rip), %rsi      # 0x1783ca
leaq 0xb0(%rsp), %rdi
callq 0xd8b80
jmp 0x1691a6
movq (%rsp), %rdi
movl 0x178(%rsp), %eax
movl %eax, %edx
leaq 0xb0(%rsp), %rsi
callq 0x15a7e0
jmp 0x1691c2
movq (%rsp), %rdi
movb $0x0, 0xae(%rsp)
leaq 0x4241b(%rip), %rsi     # 0x1ab5f0
leaq -0xe89c(%rip), %rdx     # 0x15a940
callq 0xd09b0
jmp 0x169253
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x16921a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0xd0b38
leaq 0xaf(%rsp), %rdi
callq 0xd0630
testb $0x1, 0xae(%rsp)
jne 0x169233
jmp 0x16923c
movq (%rsp), %rdi
callq 0xd0430
jmp 0x16923e
movq 0x240(%rsp), %rdi
callq 0xd0a10
movq %rax, %rdi
callq 0xd9890
nopw %cs:(%rax,%rax)
nopl (%rax)