// File: /workspace/github_cpp_makefile_star2_O3/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 0x803e9
leaq 0xa776(%rip), %rsi      # 0x8aac8
movq %r15, %rdi
callq 0x41392
cmpb $0x0, (%rax)
je 0x8044d
leaq 0xa75e(%rip), %rsi      # 0x8aac8
movq %r15, %rdi
callq 0x41392
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x80880
movq 0x8(%rsp), %rbx
movl $0x50, %edi
callq 0x3a470
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
callq 0x7f940
leaq 0x23826(%rip), %rax     # 0xa3bc8
movq %rax, (%r14)
movq %r14, %rdi
addq $0x10, %rdi
callq 0x71e94
cvtsi2sd %rbx, %xmm0
mulsd 0x2caa(%rip), %xmm0     # 0x83068
movsd 0xa6f2(%rip), %xmm1     # 0x8aab8
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 0x68(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa6cb(%rip), %rsi      # 0x8aad2
leaq 0xa6d2(%rip), %rdx      # 0x8aae0
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 0x804d8
leaq 0x237cc(%rip), %rcx     # 0xa3c10
movq (%rcx,%rax,8), %rbx
jmp 0x804df
movl $0x68, %edi
callq 0x3a210
movq %rax, %r14
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa668(%rip), %rsi      # 0x8aad2
leaq 0xa66f(%rip), %rdx      # 0x8aae0
leaq 0x38(%rsp), %rdi
callq 0x44390
leaq 0xe8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa639(%rip), %rsi      # 0x8aac8
leaq 0xa63b(%rip), %rdx      # 0x8aad1
leaq 0xd8(%rsp), %rdi
callq 0x44390
movb $0x1, %bpl
leaq 0x38(%rsp), %rsi
leaq 0xd8(%rsp), %rdx
movq %r14, %rdi
callq 0x75298
xorl %ebp, %ebp
leaq 0x22e0c(%rip), %rsi     # 0xa32d0
leaq -0xb09f(%rip), %rdx     # 0x7542c
movq %r14, %rdi
callq 0x3a760
jmp 0x807aa
leaq 0x5d1c(%rip), %rbx      # 0x861fb
leaq 0x128(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rbx, %rdi
callq 0x3a1f0
leaq (%rax,%rbx), %rdx
leaq 0x118(%rsp), %rdi
movq %rbx, %rsi
callq 0x44390
movzbl (%r15), %eax
cmpq $0x8, %rax
ja 0x8051e
leaq 0x236f8(%rip), %rcx     # 0xa3c10
movq (%rcx,%rax,8), %rbx
jmp 0x80525
leaq 0x5cd6(%rip), %rbx      # 0x861fb
leaq 0x108(%rsp), %r15
movq %r15, -0x10(%r15)
movq %rbx, %rdi
callq 0x3a1f0
leaq (%rax,%rbx), %rdx
leaq 0xf8(%rsp), %rdi
movq %rbx, %rsi
callq 0x44390
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
leaq 0x118(%rsp), %rdx
leaq 0xf8(%rsp), %rcx
movq %r14, %rdi
callq 0x72fb0
xorl %ebp, %ebp
leaq 0x22bc2(%rip), %rsi     # 0xa3138
leaq -0xd2f9(%rip), %rdx     # 0x73284
movq %r14, %rdi
callq 0x3a760
jmp 0x807aa
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x805b2
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x805b2
movq %rax, %rbx
movb $0x1, %bpl
movq 0x118(%rsp), %rdi
cmpq %r13, %rdi
je 0x805d7
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x805d7
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x415d4
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x80629
movq 0x68(%rsp), %rsi
jmp 0x80621
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r12, %rdi
je 0x80612
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3a480
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x80629
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3a480
testb %bpl, %bpl
jne 0x80668
jmp 0x80865
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x80668
movq 0x48(%rsp), %rsi
jmp 0x80659
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x80668
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x80668
jmp 0x80665
movq %rax, %rbx
movq %r14, %rdi
callq 0x3a340
jmp 0x80865
movq %rax, %rbx
movl $0x50, %esi
movq %r14, %rdi
callq 0x3a480
jmp 0x80865
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x80865
movq %rbx, %rdi
callq 0x3a1c0
movl $0xa8, %edi
callq 0x3a210
movq %rax, %r14
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa416(%rip), %rsi      # 0x8aad2
leaq 0xa41d(%rip), %rdx      # 0x8aae0
leaq 0x18(%rsp), %rdi
callq 0x44390
leaq 0xc8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xa3e8(%rip), %rsi      # 0x8aac8
leaq 0xa3ea(%rip), %rdx      # 0x8aad1
leaq 0xb8(%rsp), %rdi
callq 0x44390
leaq 0xa8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x9c27(%rip), %rsi      # 0x8a32e
leaq 0x9c24(%rip), %rdx      # 0x8a332
leaq 0x98(%rsp), %rdi
callq 0x44390
leaq 0xa3a6(%rip), %rsi      # 0x8aac8
movq %r15, %rdi
callq 0x41392
movzbl (%rax), %eax
cmpq $0x8, %rax
ja 0x80740
leaq 0x234d6(%rip), %rcx     # 0xa3c10
movq (%rcx,%rax,8), %rbx
jmp 0x80747
leaq 0x5ab4(%rip), %rbx      # 0x861fb
leaq 0x88(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rbx, %rdi
callq 0x3a1f0
leaq (%rax,%rbx), %rdx
leaq 0x78(%rsp), %rdi
movq %rbx, %rsi
callq 0x44390
movb $0x1, %r15b
leaq 0x18(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
leaq 0x98(%rsp), %rcx
leaq 0x78(%rsp), %r8
movq %r14, %rdi
callq 0x75496
xorl %r15d, %r15d
leaq 0x22b4d(%rip), %rsi     # 0xa32e8
leaq -0xae9c(%rip), %rdx     # 0x75906
movq %r14, %rdi
callq 0x3a760
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x807d9
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x807d9
jmp 0x807d3
movq %rax, %rbx
movb $0x1, %r15b
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x807fe
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x807fe
movq %rax, %rbx
movb $0x1, %r15b
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x8081b
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3a480
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x80832
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3a480
testb %r15b, %r15b
jne 0x80858
jmp 0x80860
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x80858
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3a480
jmp 0x80858
movq %rax, %rbx
movq %r14, %rdi
callq 0x3a340
callq 0x3a720
movq %rbx, %rdi
callq 0x3a790
movq %rax, %rdi
callq 0x4116b
nop