// File: Lut99[P]RayTracer/src/lib/Camera.cpp
// Function: RayTracer::Camera::to_json[abi:cxx11]() const
json Camera::to_json() const {
    json j;
    j["lookat"] = this->lookat.to_json();
    j["lookfrom"] = this->lookfrom.to_json();
    j["up"] = this->up.to_json();
    j["vfov"] = this->vfov;
    j["aperture"] = this->aperture;
    if (this->animation != nullptr) {
        j["animation"] = this->animation->to_json();
    }
    return j;
}

// Assembly:
subq $0xf8, %rsp
movq %rdi, 0x58(%rsp)
movq %rdi, %rax
movq %rax, 0x60(%rsp)
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x68(%rsp)
movb $0x0, 0xe7(%rsp)
xorl %eax, %eax
movl %eax, %esi
callq 0xd99c0
movq 0x68(%rsp), %rsi
addq $0x40, %rsi
leaq 0xd0(%rsp), %rdi
callq 0x154f50
jmp 0x16164a
movq 0x58(%rsp), %rdi
leaq 0x16a82(%rip), %rsi     # 0x1780d8
callq 0xd9b40
movq %rax, 0x50(%rsp)
jmp 0x161662
movq 0x50(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
movq %rsi, 0x48(%rsp)
callq 0x128ba0
movq 0x48(%rsp), %rdi
callq 0xd9f30
movq 0x68(%rsp), %rsi
addq $0x20, %rsi
leaq 0xb0(%rsp), %rdi
callq 0x154f50
jmp 0x16169b
movq 0x58(%rsp), %rdi
leaq 0x16a38(%rip), %rsi     # 0x1780df
callq 0xd9b40
movq %rax, 0x40(%rsp)
jmp 0x1616b3
movq 0x40(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
movq %rsi, 0x38(%rsp)
callq 0x128ba0
movq 0x38(%rsp), %rdi
callq 0xd9f30
movq 0x68(%rsp), %rsi
addq $0x60, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x154f50
jmp 0x1616ec
movq 0x58(%rsp), %rdi
leaq 0x169f0(%rip), %rsi     # 0x1780e8
callq 0xd9b40
movq %rax, 0x30(%rsp)
jmp 0x161704
movq 0x30(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
movq %rsi, 0x20(%rsp)
callq 0x128ba0
movq 0x20(%rsp), %rdi
callq 0xd9f30
movq 0x68(%rsp), %rsi
subq $-0x80, %rsi
leaq 0x90(%rsp), %rdi
callq 0x155e80
movq 0x58(%rsp), %rdi
leaq 0xf719(%rip), %rsi      # 0x170e60
callq 0xd9b40
movq %rax, 0x28(%rsp)
jmp 0x161753
movq 0x28(%rsp), %rdi
leaq 0x90(%rsp), %rsi
movq %rsi, 0x10(%rsp)
callq 0x128ba0
movq 0x10(%rsp), %rdi
callq 0xd9f30
movq 0x68(%rsp), %rsi
addq $0x88, %rsi
leaq 0x80(%rsp), %rdi
callq 0x155e80
movq 0x58(%rsp), %rdi
leaq 0x16961(%rip), %rsi     # 0x1780fa
callq 0xd9b40
movq %rax, 0x18(%rsp)
jmp 0x1617a5
movq 0x18(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x128ba0
leaq 0x80(%rsp), %rdi
callq 0xd9f30
movq 0x68(%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x161914
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rsi
movq (%rsi), %rax
movq 0x28(%rax), %rax
leaq 0x70(%rsp), %rdi
callq *%rax
jmp 0x1617ed
movq 0x58(%rsp), %rdi
leaq 0xf861(%rip), %rsi      # 0x17105a
callq 0xd9b40
movq %rax, 0x8(%rsp)
jmp 0x161805
movq 0x8(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x128ba0
leaq 0x70(%rsp), %rdi
callq 0xd9f30
jmp 0x161914
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
jmp 0x16193d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0xd9f30
jmp 0x16193d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0xd9f30
jmp 0x16193d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0xd9f30
jmp 0x16193d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0x90(%rsp), %rdi
callq 0xd9f30
jmp 0x16193d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0x80(%rsp), %rdi
callq 0xd9f30
jmp 0x16193d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0x70(%rsp), %rdi
callq 0xd9f30
jmp 0x16193d
movb $0x1, 0xe7(%rsp)
testb $0x1, 0xe7(%rsp)
jne 0x161930
movq 0x58(%rsp), %rdi
callq 0xd9f30
movq 0x60(%rsp), %rax
addq $0xf8, %rsp
retq
movq 0x58(%rsp), %rdi
callq 0xd9f30
movq 0xc8(%rsp), %rdi
callq 0xd0a10
nopw %cs:(%rax,%rax)