// File: /workspace/github_cpp_makefile_star2_O1/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 0x7fcc5
leaq 0xa7ef(%rip), %rsi      # 0x8a40f
movq %r15, %rdi
callq 0x416d6
cmpb $0x0, (%rax)
jne 0x7fd2f
movl $0x68, %edi
callq 0x3a210
movq %rax, %rbx
leaq 0xe8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xbdb2(%rip), %rsi      # 0x8ba03
leaq 0xbdba(%rip), %rdx      # 0x8ba12
leaq 0xd8(%rsp), %rdi
callq 0x44728
leaq 0xc8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa796(%rip), %rsi      # 0x8a40f
leaq 0xa793(%rip), %rdx      # 0x8a413
leaq 0xb8(%rsp), %rdi
callq 0x44728
movb $0x1, %bpl
leaq 0xd8(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
movq %rbx, %rdi
callq 0x75d5a
xorl %ebp, %ebp
leaq 0x245ef(%rip), %rsi     # 0xa42a0
leaq -0x9dca(%rip), %rdx     # 0x75eee
movq %rbx, %rdi
callq 0x3a750
jmp 0x80074
movl $0x88, %edi
callq 0x3a210
movq %rax, %rbx
leaq 0x148(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xbd1d(%rip), %rsi      # 0x8ba03
leaq 0xbd25(%rip), %rdx      # 0x8ba12
leaq 0x138(%rsp), %rdi
callq 0x44728
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x747bc
movzbl 0x8(%rsp), %eax
cmpq $0x8, %rax
ja 0x7fdae
leaq 0x24d82(%rip), %rcx     # 0xa4aa8
movq (%rcx,%rax,8), %r14
jmp 0x7fdb5
leaq 0xa6d9(%rip), %rsi      # 0x8a40f
movq %r15, %rdi
callq 0x416d6
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x7680c
movl 0x8(%rsp), %r14d
movl $0x50, %edi
callq 0x3a210
movq %rax, %rbx
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xbc96(%rip), %rsi      # 0x8ba03
leaq 0xbc9e(%rip), %rdx      # 0x8ba12
leaq 0x38(%rsp), %rdi
callq 0x44728
movb $0x1, %bpl
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x76472
xorl %ebp, %ebp
leaq 0x24536(%rip), %rsi     # 0xa42d0
leaq -0xbb1d(%rip), %rdx     # 0x74284
movq %rbx, %rdi
callq 0x3a750
jmp 0x80074
leaq 0x7449(%rip), %r14      # 0x871fe
leaq 0x128(%rsp), %r13
movq %r13, -0x10(%r13)
movq %r14, %rdi
callq 0x3a1f0
leaq (%rax,%r14), %rdx
leaq 0x118(%rsp), %rdi
movq %r14, %rsi
callq 0x44728
movzbl (%r15), %eax
cmpq $0x8, %rax
ja 0x7fdf4
leaq 0x24cba(%rip), %rcx     # 0xa4aa8
movq (%rcx,%rax,8), %r14
jmp 0x7fdfb
leaq 0x7403(%rip), %r14      # 0x871fe
leaq 0x108(%rsp), %r15
movq %r15, -0x10(%r15)
movq %r14, %rdi
callq 0x3a1f0
leaq (%rax,%r14), %rdx
leaq 0xf8(%rsp), %rdi
movq %r14, %rsi
callq 0x44728
movb $0x1, %bpl
leaq 0x138(%rsp), %rsi
leaq 0x118(%rsp), %rdx
leaq 0xf8(%rsp), %rcx
movq %rbx, %rdi
callq 0x73acc
xorl %ebp, %ebp
leaq 0x242b9(%rip), %rsi     # 0xa4108
leaq -0xc0b6(%rip), %rdx     # 0x73da0
movq %rbx, %rdi
callq 0x3a750
jmp 0x80074
movq %rax, %r14
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7fea6
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x7fea6
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x80125
movq 0x48(%rsp), %rsi
jmp 0x7ff4c
movq %rax, %r14
movb $0x1, %bpl
movq 0x118(%rsp), %rdi
cmpq %r13, %rdi
je 0x7fef2
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x7fef2
jmp 0x8011f
movq %rax, %r14
movq 0xb8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7ff12
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x7ff12
movq %rax, %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x48a06
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x48aa8
jmp 0x7ff33
movq %rax, %r14
movb $0x1, %bpl
movq 0xd8(%rsp), %rdi
cmpq %r15, %rdi
je 0x80125
movq 0xe8(%rsp), %rsi
jmp 0x7ff4c
movq %rax, %r14
movb $0x1, %bpl
movq 0x138(%rsp), %rdi
cmpq %r12, %rdi
je 0x80125
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x80125
jmp 0x8011f
movq %rax, %r14
cmpl $0x1, %edx
jne 0x80132
movq %r14, %rdi
callq 0x3a1c0
movl $0xa8, %edi
callq 0x3a210
movq %rax, %rbx
leaq 0xa8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xba70(%rip), %rsi      # 0x8ba03
leaq 0xba78(%rip), %rdx      # 0x8ba12
leaq 0x98(%rsp), %rdi
callq 0x44728
leaq 0x88(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xa455(%rip), %rsi      # 0x8a40f
leaq 0xa452(%rip), %rdx      # 0x8a413
leaq 0x78(%rsp), %rdi
callq 0x44728
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xb32a(%rip), %rsi      # 0x8b305
leaq 0xb330(%rip), %rdx      # 0x8b312
leaq 0x18(%rsp), %rdi
callq 0x44728
leaq 0xa41c(%rip), %rsi      # 0x8a40f
movq %r15, %rdi
callq 0x416d6
movzbl (%rax), %eax
cmpq $0x8, %rax
ja 0x80011
leaq 0x24a9d(%rip), %rcx     # 0xa4aa8
movq (%rcx,%rax,8), %r14
jmp 0x80018
leaq 0x71e6(%rip), %r14      # 0x871fe
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
movq %r14, %rdi
callq 0x3a1f0
leaq (%rax,%r14), %rdx
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0x44728
movb $0x1, %bpl
leaq 0x98(%rsp), %rsi
leaq 0x78(%rsp), %rdx
leaq 0x18(%rsp), %rcx
leaq 0x58(%rsp), %r8
movq %rbx, %rdi
callq 0x75f58
xorl %ebp, %ebp
leaq 0x24253(%rip), %rsi     # 0xa42b8
leaq -0x9ca4(%rip), %rdx     # 0x763c8
movq %rbx, %rdi
callq 0x3a750
movq %rax, %r14
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x80098
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x80098
jmp 0x80092
movq %rax, %r14
movb $0x1, %bpl
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x800bc
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x800bc
movq %rax, %r14
movb $0x1, %bpl
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x800de
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x800de
movq %rax, %r14
movb $0x1, %bpl
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x80103
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x80103
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x80110
movq %rbx, %rdi
callq 0x3a330
callq 0x3a710
jmp 0x80132
movq %rax, %rdi
callq 0x414b1
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x80132
movq %rbx, %rdi
callq 0x3a330
movq %r14, %rdi
callq 0x3a780