// File: /workspace/github_cpp_makefile_star2_O1/Lut99[P]RayTracer/src/lib/animations/camera/CameraRotation.cpp
// Function: RayTracer::CameraRotation::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>)
CameraRotation* CameraRotation::from_json(json json_obj) {
    // Check if the object has an object type
    if (!json_obj.is_object()) {
        throw InvalidObjectFormat("CameraRotation", json::object().type_name(), json_obj.type_name());
    }

    // Check if the required field exist
    if (json_obj["loop_time"].is_null()) {
        throw MissingFieldException("CameraRotation", "loop_time");
    }

    // Try to parse the required fields
    chrono::seconds loop_time;
    try {
        loop_time = chrono::seconds(json_obj["loop_time"].get<long>());
    } catch (nlohmann::detail::type_error&) {
        throw InvalidFieldFormat("CameraRotation", "loop_time", "long", json_obj["loop_time"].type_name());
    }
    return new CameraRotation(loop_time);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rdi, %r15
cmpb $0x1, (%rdi)
jne 0x80bad
leaq 0xaf92(%rip), %rsi      # 0x8baa8
movq %r15, %rdi
callq 0x416d6
cmpb $0x0, (%rax)
je 0x80c17
leaq 0xaf7a(%rip), %rsi      # 0x8baa8
movq %r15, %rdi
callq 0x416d6
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x81012
movq 0x8(%rsp), %rbx
movl $0x50, %edi
callq 0x3a460
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
callq 0x8013c
leaq 0x24032(%rip), %rax     # 0xa4b98
movq %rax, (%r14)
movq %r14, %rdi
addq $0x10, %rdi
callq 0x729d4
cvtsi2sd %rbx, %xmm0
mulsd 0x34e6(%rip), %xmm0     # 0x84068
movsd 0xaf0e(%rip), %xmm1     # 0x8ba98
divsd %xmm0, %xmm1
movsd %xmm1, 0x40(%r14)
movq %rbx, 0x48(%r14)
movq %r14, %rax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x88, %edi
callq 0x3a210
movq %rax, %r14
leaq 0x128(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xaee4(%rip), %rsi      # 0x8bab2
leaq 0xaeeb(%rip), %rdx      # 0x8bac0
leaq 0x118(%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 0x80cab
leaq 0x23fd2(%rip), %rcx     # 0xa4be0
movq (%rcx,%rax,8), %rbx
jmp 0x80cb2
movl $0x68, %edi
callq 0x3a210
movq %rax, %r14
leaq 0xc8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xae7b(%rip), %rsi      # 0x8bab2
leaq 0xae82(%rip), %rdx      # 0x8bac0
leaq 0xb8(%rsp), %rdi
callq 0x44728
leaq 0xa8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xae49(%rip), %rsi      # 0x8baa8
leaq 0xae4b(%rip), %rdx      # 0x8bab1
leaq 0x98(%rsp), %rdi
callq 0x44728
movb $0x1, %bpl
leaq 0xb8(%rsp), %rsi
leaq 0x98(%rsp), %rdx
movq %r14, %rdi
callq 0x75d5a
xorl %ebp, %ebp
leaq 0x23609(%rip), %rsi     # 0xa42a0
leaq -0xadb0(%rip), %rdx     # 0x75eee
movq %r14, %rdi
callq 0x3a750
jmp 0x80f5d
leaq 0x654c(%rip), %rbx      # 0x871fe
leaq 0x108(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rbx, %rdi
callq 0x3a1f0
leaq (%rax,%rbx), %rdx
leaq 0xf8(%rsp), %rdi
movq %rbx, %rsi
callq 0x44728
movzbl (%r15), %eax
cmpq $0x8, %rax
ja 0x80cf1
leaq 0x23ef5(%rip), %rcx     # 0xa4be0
movq (%rcx,%rax,8), %rbx
jmp 0x80cf8
leaq 0x6506(%rip), %rbx      # 0x871fe
leaq 0xe8(%rsp), %r15
movq %r15, -0x10(%r15)
movq %rbx, %rdi
callq 0x3a1f0
leaq (%rax,%rbx), %rdx
leaq 0xd8(%rsp), %rdi
movq %rbx, %rsi
callq 0x44728
movb $0x1, %bpl
leaq 0x118(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
movq %r14, %rdi
callq 0x73acc
xorl %ebp, %ebp
leaq 0x233bc(%rip), %rsi     # 0xa4108
leaq -0xcfb3(%rip), %rdx     # 0x73da0
movq %r14, %rdi
callq 0x3a750
jmp 0x80f5d
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r15, %rdi
je 0x80d88
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x80d88
movq %rax, %rbx
movb $0x1, %bpl
movq 0xf8(%rsp), %rdi
cmpq %r13, %rdi
je 0x80dad
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x80dad
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x4191c
jmp 0x80dfe
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x80de1
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x80de1
movq %rax, %rbx
movb $0x1, %bpl
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x80e25
movq 0xc8(%rsp), %rsi
jmp 0x80e13
movq %rax, %rbx
movb $0x1, %bpl
movq 0x118(%rsp), %rdi
cmpq %r12, %rdi
je 0x80e25
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x80e25
jmp 0x80e1f
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x80ff8
movq %r14, %rdi
callq 0x3a330
jmp 0x80ff8
movq %rax, %rbx
movl $0x50, %esi
movq %r14, %rdi
callq 0x3a470
jmp 0x80ff8
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x80ff8
movq %rbx, %rdi
callq 0x3a1c0
movl $0xa8, %edi
callq 0x3a210
movq %rax, %r14
leaq 0x88(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xac2d(%rip), %rsi      # 0x8bab2
leaq 0xac34(%rip), %rdx      # 0x8bac0
leaq 0x78(%rsp), %rdi
callq 0x44728
leaq 0x68(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xac02(%rip), %rsi      # 0x8baa8
leaq 0xac04(%rip), %rdx      # 0x8bab1
leaq 0x58(%rsp), %rdi
callq 0x44728
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xa447(%rip), %rsi      # 0x8b30e
leaq 0xa444(%rip), %rdx      # 0x8b312
leaq 0x18(%rsp), %rdi
callq 0x44728
leaq 0xabc9(%rip), %rsi      # 0x8baa8
movq %r15, %rdi
callq 0x416d6
movzbl (%rax), %eax
cmpq $0x8, %rax
ja 0x80efd
leaq 0x23ce9(%rip), %rcx     # 0xa4be0
movq (%rcx,%rax,8), %rbx
jmp 0x80f04
leaq 0x62fa(%rip), %rbx      # 0x871fe
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
movq %rbx, %rdi
callq 0x3a1f0
leaq (%rax,%rbx), %rdx
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
callq 0x44728
movb $0x1, %bpl
leaq 0x78(%rsp), %rsi
leaq 0x58(%rsp), %rdx
leaq 0x18(%rsp), %rcx
leaq 0x38(%rsp), %r8
movq %r14, %rdi
callq 0x75f58
xorl %ebp, %ebp
leaq 0x2336a(%rip), %rsi     # 0xa42b8
leaq -0xab8d(%rip), %rdx     # 0x763c8
movq %r14, %rdi
callq 0x3a750
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x80f81
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x80f81
jmp 0x80f7b
movq %rax, %rbx
movb $0x1, %bpl
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x80fa5
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x80fa5
movq %rax, %rbx
movb $0x1, %bpl
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x80fc4
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x80fc4
movq %rax, %rbx
movb $0x1, %bpl
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x80fe6
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3a470
jmp 0x80fe6
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x80ff3
movq %r14, %rdi
callq 0x3a330
callq 0x3a710
movq %rbx, %rdi
callq 0x3a780
movq %rax, %rdi
callq 0x414b1