// File: 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:
subq $0x268, %rsp            # imm = 0x268
movq %rdi, 0x98(%rsp)
movq %rdi, 0x260(%rsp)
callq 0xd9b20
testb $0x1, %al
jne 0x16a2c7
movb $0x1, 0x1be(%rsp)
movl $0x88, %edi
callq 0xd02b0
movq %rax, 0x88(%rsp)
leaq 0x23f(%rsp), %rdi
movq %rdi, 0x90(%rsp)
callq 0xd0a20
movq 0x90(%rsp), %rdx
leaq 0xe3a0(%rip), %rsi      # 0x178472
leaq 0x240(%rsp), %rdi
callq 0xd8b80
jmp 0x16a0e1
leaq 0x1e8(%rsp), %rdi
callq 0x155e60
movq 0x1e8(%rsp), %rsi
movq 0x1f0(%rsp), %rdx
leaq 0x1f8(%rsp), %rdi
callq 0x15a2a0
jmp 0x16a10d
leaq 0x1f8(%rsp), %rdi
callq 0x1302d0
movq %rax, 0x78(%rsp)
leaq 0x1e7(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0xd0a20
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
leaq 0x208(%rsp), %rdi
callq 0xd8b80
jmp 0x16a150
movq 0x98(%rsp), %rdi
callq 0x1302d0
movq %rax, 0x68(%rsp)
leaq 0x1bf(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0xd0a20
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x1c0(%rsp), %rdi
callq 0xd8b80
jmp 0x16a18d
movq 0x88(%rsp), %rdi
leaq 0x240(%rsp), %rsi
leaq 0x208(%rsp), %rdx
leaq 0x1c0(%rsp), %rcx
callq 0x156180
jmp 0x16a1b4
movq 0x88(%rsp), %rdi
movb $0x0, 0x1be(%rsp)
leaq 0x412a5(%rip), %rsi     # 0x1ab470
leaq -0x13e42(%rip), %rdx    # 0x156390
callq 0xd09b0
jmp 0x16a798
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
jmp 0x16a29c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
jmp 0x16a28f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
jmp 0x16a275
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
jmp 0x16a25b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
leaq 0x1c0(%rsp), %rdi
callq 0xd0b38
leaq 0x1bf(%rsp), %rdi
callq 0xd0630
leaq 0x208(%rsp), %rdi
callq 0xd0b38
leaq 0x1e7(%rsp), %rdi
callq 0xd0630
leaq 0x1f8(%rsp), %rdi
callq 0xd9f30
leaq 0x240(%rsp), %rdi
callq 0xd0b38
leaq 0x23f(%rsp), %rdi
callq 0xd0630
testb $0x1, 0x1be(%rsp)
jne 0x16a2b5
jmp 0x16a2c2
movq 0x88(%rsp), %rdi
callq 0xd0430
jmp 0x16a783
movq 0x98(%rsp), %rdi
leaq 0xe192(%rip), %rsi      # 0x178468
callq 0xd9b40
movq %rax, %rdi
callq 0xd9da0
testb $0x1, %al
jne 0x16a2ec
jmp 0x16a42d
movb $0x1, 0x16e(%rsp)
movl $0x68, %edi
callq 0xd02b0
movq %rax, 0x58(%rsp)
leaq 0x197(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0xd0a20
movq 0x60(%rsp), %rdx
leaq 0xe151(%rip), %rsi      # 0x178472
leaq 0x198(%rsp), %rdi
callq 0xd8b80
jmp 0x16a330
leaq 0x16f(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0xd0a20
movq 0x50(%rsp), %rdx
leaq 0xe11a(%rip), %rsi      # 0x178468
leaq 0x170(%rsp), %rdi
callq 0xd8b80
jmp 0x16a35d
movq 0x58(%rsp), %rdi
leaq 0x198(%rsp), %rsi
leaq 0x170(%rsp), %rdx
callq 0x15a2f0
jmp 0x16a379
movq 0x58(%rsp), %rdi
movb $0x0, 0x16e(%rsp)
leaq 0x41233(%rip), %rsi     # 0x1ab5c0
leaq -0xff64(%rip), %rdx     # 0x15a430
callq 0xd09b0
jmp 0x16a798
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
jmp 0x16a405
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
jmp 0x16a3eb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
leaq 0x170(%rsp), %rdi
callq 0xd0b38
leaq 0x16f(%rsp), %rdi
callq 0xd0630
leaq 0x198(%rsp), %rdi
callq 0xd0b38
leaq 0x197(%rsp), %rdi
callq 0xd0630
testb $0x1, 0x16e(%rsp)
jne 0x16a41e
jmp 0x16a428
movq 0x58(%rsp), %rdi
callq 0xd0430
jmp 0x16a783
movq 0x98(%rsp), %rdi
leaq 0xe02c(%rip), %rsi      # 0x178468
callq 0xd9b40
movq %rax, 0x48(%rsp)
jmp 0x16a448
movq 0x48(%rsp), %rdi
callq 0x16a800
movq %rax, 0x40(%rsp)
jmp 0x16a459
movq 0x40(%rsp), %rax
movq %rax, 0x150(%rsp)
leaq 0x158(%rsp), %rdi
leaq 0x150(%rsp), %rsi
callq 0x16a830
jmp 0x16a47d
movq 0x158(%rsp), %rax
movq %rax, 0x160(%rsp)
jmp 0x16a722
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
movl 0x22c(%rsp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x16a783
movq 0x230(%rsp), %rdi
callq 0xd0210
movq %rax, 0x148(%rsp)
movb $0x1, 0xae(%rsp)
movl $0xa8, %edi
callq 0xd02b0
movq %rax, 0x30(%rsp)
leaq 0x127(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0xd0a20
movq 0x38(%rsp), %rdx
leaq 0xdf6e(%rip), %rsi      # 0x178472
leaq 0x128(%rsp), %rdi
callq 0xd8b80
jmp 0x16a513
leaq 0xff(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0xd0a20
movq 0x28(%rsp), %rdx
leaq 0xdf37(%rip), %rsi      # 0x178468
leaq 0x100(%rsp), %rdi
callq 0xd8b80
jmp 0x16a540
leaq 0xd7(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xd0a20
movq 0x20(%rsp), %rdx
leaq 0xd7b0(%rip), %rsi      # 0x177d0e
leaq 0xd8(%rsp), %rdi
callq 0xd8b80
jmp 0x16a56d
movq 0x98(%rsp), %rdi
leaq 0xdeec(%rip), %rsi      # 0x178468
callq 0xd9b40
movq %rax, 0x18(%rsp)
jmp 0x16a588
movq 0x18(%rsp), %rdi
callq 0x1302d0
movq %rax, 0x8(%rsp)
leaq 0xaf(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xd0a20
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0xb0(%rsp), %rdi
callq 0xd8b80
jmp 0x16a5c2
movq 0x30(%rsp), %rdi
leaq 0x128(%rsp), %rsi
leaq 0x100(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
leaq 0xb0(%rsp), %r8
callq 0x15a4a0
jmp 0x16a5ee
movq 0x30(%rsp), %rdi
movb $0x0, 0xae(%rsp)
leaq 0x40fd6(%rip), %rsi     # 0x1ab5d8
leaq -0xfe69(%rip), %rdx     # 0x15a7a0
callq 0xd09b0
jmp 0x16a798
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
jmp 0x16a6f6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
jmp 0x16a6dc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
jmp 0x16a6c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
jmp 0x16a6b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
jmp 0x16a6a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0xd0b38
leaq 0xaf(%rsp), %rdi
callq 0xd0630
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
testb $0x1, 0xae(%rsp)
jne 0x16a70f
jmp 0x16a719
movq 0x30(%rsp), %rdi
callq 0xd0430
callq 0xd0940
jmp 0x16a720
jmp 0x16a783
movl $0x50, %edi
callq 0xd05d0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, (%rsp)
movq 0x160(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rsi
callq 0x169c30
jmp 0x16a755
movq (%rsp), %rax
addq $0x268, %rsp            # imm = 0x268
retq
movq (%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x230(%rsp)
movl %eax, 0x22c(%rsp)
movl $0x50, %esi
callq 0xd05e0
movq 0x230(%rsp), %rdi
callq 0xd0a10
movq %rax, %rdi
callq 0xd9890
nopl (%rax,%rax)