// File: /workspace/github_cpp_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdi, %r15
cmpb $0x1, (%rdi)
jne 0x7f484
leaq 0xa047(%rip), %rsi      # 0x8942f
movq %r15, %rdi
callq 0x41392
cmpb $0x0, (%rax)
jne 0x7f4e8
movl $0x68, %edi
callq 0x3a210
movq %rax, %rbx
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xb60d(%rip), %rsi      # 0x8aa23
leaq 0xb615(%rip), %rdx      # 0x8aa32
leaq 0x38(%rsp), %rdi
callq 0x44390
leaq 0x108(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x9ff4(%rip), %rsi      # 0x8942f
leaq 0x9ff1(%rip), %rdx      # 0x89433
leaq 0xf8(%rsp), %rdi
callq 0x44390
movb $0x1, %bpl
leaq 0x38(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
movq %rbx, %rdi
callq 0x75298
xorl %ebp, %ebp
leaq 0x23e60(%rip), %rsi     # 0xa32d0
leaq -0xa04b(%rip), %rdx     # 0x7542c
movq %rbx, %rdi
callq 0x3a760
jmp 0x7f863
movl $0x88, %edi
callq 0x3a210
movq %rax, %rbx
leaq 0x68(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xb581(%rip), %rsi      # 0x8aa23
leaq 0xb589(%rip), %rdx      # 0x8aa32
leaq 0x58(%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 0x7f570
leaq 0x245f9(%rip), %rcx     # 0xa3ad8
movq (%rcx,%rax,8), %r14
jmp 0x7f577
leaq 0x9f40(%rip), %rsi      # 0x8942f
movq %r15, %rdi
callq 0x41392
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x75d4a
movl 0x8(%rsp), %r14d
movl $0x50, %edi
callq 0x3a210
movq %rax, %rbx
leaq 0xa8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xb4fa(%rip), %rsi      # 0x8aa23
leaq 0xb502(%rip), %rdx      # 0x8aa32
leaq 0x98(%rsp), %rdi
callq 0x44390
movb $0x1, %bpl
leaq 0x98(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x759b0
xorl %ebp, %ebp
leaq 0x23da4(%rip), %rsi     # 0xa3300
leaq -0xbdfd(%rip), %rdx     # 0x73766
movq %rbx, %rdi
callq 0x3a760
jmp 0x7f863
leaq 0x6c84(%rip), %r14      # 0x861fb
leaq 0x148(%rsp), %r13
movq %r13, -0x10(%r13)
movq %r14, %rdi
callq 0x3a1f0
leaq (%rax,%r14), %rdx
leaq 0x138(%rsp), %rdi
movq %r14, %rsi
callq 0x44390
movzbl (%r15), %eax
cmpq $0x8, %rax
ja 0x7f5b6
leaq 0x24528(%rip), %rcx     # 0xa3ad8
movq (%rcx,%rax,8), %r14
jmp 0x7f5bd
leaq 0x6c3e(%rip), %r14      # 0x861fb
leaq 0x128(%rsp), %r15
movq %r15, -0x10(%r15)
movq %r14, %rdi
callq 0x3a1f0
leaq (%rax,%r14), %rdx
leaq 0x118(%rsp), %rdi
movq %r14, %rsi
callq 0x44390
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
leaq 0x138(%rsp), %rdx
leaq 0x118(%rsp), %rcx
movq %rbx, %rdi
callq 0x72fb0
xorl %ebp, %ebp
leaq 0x23b2a(%rip), %rsi     # 0xa3138
leaq -0xc391(%rip), %rdx     # 0x73284
movq %rbx, %rdi
callq 0x3a760
jmp 0x7f863
movq %rax, %r14
movq 0x118(%rsp), %rdi
cmpq %r15, %rdi
je 0x7f66b
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7f66b
movq %rax, %r14
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x7f6f5
movq 0xa8(%rsp), %rsi
jmp 0x7f6ed
movq %rax, %r14
movb $0x1, %bpl
movq 0x138(%rsp), %rdi
cmpq %r13, %rdi
je 0x7f6c6
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7f6c6
jmp 0x7f928
movq %rax, %r14
movq 0xf8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7f6af
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3a480
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x7f6f5
movq 0x48(%rsp), %rsi
jmp 0x7f6ed
movq %rax, %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x4861e
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x486c0
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x7f6f5
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3a480
testb %bpl, %bpl
jne 0x7f92b
jmp 0x7f933
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x7f92b
movq 0x48(%rsp), %rsi
jmp 0x7f731
movq %rax, %r14
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x7f92b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7f92b
jmp 0x7f928
movq %rax, %r14
cmpl $0x1, %edx
jne 0x7f933
movq %r14, %rdi
callq 0x3a1c0
movl $0xa8, %edi
callq 0x3a210
movq %rax, %rbx
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xb2ae(%rip), %rsi      # 0x8aa23
leaq 0xb2b6(%rip), %rdx      # 0x8aa32
leaq 0x18(%rsp), %rdi
callq 0x44390
leaq 0xe8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x9c96(%rip), %rsi      # 0x8942f
leaq 0x9c93(%rip), %rdx      # 0x89433
leaq 0xd8(%rsp), %rdi
callq 0x44390
leaq 0xc8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0xab65(%rip), %rsi      # 0x8a325
leaq 0xab6b(%rip), %rdx      # 0x8a332
leaq 0xb8(%rsp), %rdi
callq 0x44390
leaq 0x9c54(%rip), %rsi      # 0x8942f
movq %r15, %rdi
callq 0x41392
movzbl (%rax), %eax
cmpq $0x8, %rax
ja 0x7f7f9
leaq 0x242e5(%rip), %rcx     # 0xa3ad8
movq (%rcx,%rax,8), %r14
jmp 0x7f800
leaq 0x69fb(%rip), %r14      # 0x861fb
leaq 0x88(%rsp), %rax
movq %rax, -0x10(%rax)
movq %r14, %rdi
callq 0x3a1f0
leaq (%rax,%r14), %rdx
leaq 0x78(%rsp), %rdi
movq %r14, %rsi
callq 0x44390
movb $0x1, %r15b
leaq 0x18(%rsp), %rsi
leaq 0xd8(%rsp), %rdx
leaq 0xb8(%rsp), %rcx
leaq 0x78(%rsp), %r8
movq %rbx, %rdi
callq 0x75496
xorl %r15d, %r15d
leaq 0x23a94(%rip), %rsi     # 0xa32e8
leaq -0x9f55(%rip), %rdx     # 0x75906
movq %rbx, %rdi
callq 0x3a760
movq %rax, %r14
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x7f892
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7f892
jmp 0x7f88c
movq %rax, %r14
movb $0x1, %r15b
movq 0xb8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7f8b7
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7f8b7
movq %rax, %r14
movb $0x1, %r15b
movq 0xd8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7f8d4
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3a480
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x7f8eb
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3a480
testb %r15b, %r15b
jne 0x7f911
jmp 0x7f919
movq %rax, %r14
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x7f911
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x7f911
movq %rax, %r14
movq %rbx, %rdi
callq 0x3a340
callq 0x3a720
jmp 0x7f933
movq %rax, %rdi
callq 0x4116b
movq %rax, %r14
movq %rbx, %rdi
callq 0x3a340
movq %r14, %rdi
callq 0x3a790
nop