// File: alan0201tw[P]RayTracer/include/camera.hpp
// Function: camera::get_ray(float, float) const
inline ray get_ray(float u, float v) const
    {
        // add time to construct ray
        vec3 rd = lens_radius * random_in_unit_disk();
        vec3 offset = camera_right * rd.x() + camera_up * rd.y();

        float time = open_time + drand48() * (close_time - open_time);

        return ray(origin + offset, lower_left_corner + u * horizontal + v * vertical - origin - offset, time);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
movq %rdi, -0x198(%rbp)
movq %rdi, -0x190(%rbp)
movq %rsi, -0x8(%rbp)
movss %xmm0, -0xc(%rbp)
movss %xmm1, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movss 0x54(%rax), %xmm0
movss %xmm0, -0x1e4(%rbp)
callq 0x24350
movaps %xmm0, %xmm2
movss -0x1e4(%rbp), %xmm0
movaps %xmm2, -0x1e0(%rbp)
movaps %xmm1, %xmm2
movaps -0x1e0(%rbp), %xmm1
movss %xmm2, -0x38(%rbp)
movlpd %xmm1, -0x40(%rbp)
movl -0x38(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xfaa0
movq -0x1b0(%rbp), %rax
movss %xmm1, -0x48(%rbp)
movlpd %xmm0, -0x50(%rbp)
movl -0x48(%rbp), %ecx
movl %ecx, -0x18(%rbp)
movq -0x50(%rbp), %rcx
movq %rcx, -0x20(%rbp)
addq $0x3c, %rax
movq %rax, -0x1d0(%rbp)
leaq -0x20(%rbp), %rdi
movq %rdi, -0x1c8(%rbp)
callq 0x8d70
movq -0x1d0(%rbp), %rdi
callq 0x10120
movq -0x1c8(%rbp), %rdi
movq -0x1b0(%rbp), %rax
movss %xmm1, -0x78(%rbp)
movlpd %xmm0, -0x80(%rbp)
movl -0x78(%rbp), %ecx
movl %ecx, -0x68(%rbp)
movq -0x80(%rbp), %rcx
movq %rcx, -0x70(%rbp)
addq $0x48, %rax
movq %rax, -0x1c0(%rbp)
callq 0x8d90
movq -0x1c0(%rbp), %rdi
callq 0x10120
movss %xmm1, -0x98(%rbp)
movlpd %xmm0, -0xa0(%rbp)
movl -0x98(%rbp), %eax
movl %eax, -0x88(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xfa30
movq -0x1b0(%rbp), %rax
movss %xmm1, -0xa8(%rbp)
movlpd %xmm0, -0xb0(%rbp)
movl -0xa8(%rbp), %ecx
movl %ecx, -0x58(%rbp)
movq -0xb0(%rbp), %rcx
movq %rcx, -0x60(%rbp)
movss 0x58(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x1b8(%rbp)
callq 0x7480
movsd -0x1b8(%rbp), %xmm1
movq -0x1b0(%rbp), %rdi
movss 0x58(%rdi), %xmm3
movss 0x5c(%rdi), %xmm2
subss %xmm3, %xmm2
cvtss2sd %xmm2, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0xb4(%rbp)
addq $0x24, %rdi
movq %rdi, -0x1a8(%rbp)
leaq -0x60(%rbp), %rsi
movq %rsi, -0x1a0(%rbp)
callq 0xfa30
movq -0x1b0(%rbp), %rdi
movss %xmm1, -0xc8(%rbp)
movlpd %xmm0, -0xd0(%rbp)
movl -0xc8(%rbp), %eax
movl %eax, -0xb8(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0xc0(%rbp)
movss -0xc(%rbp), %xmm0
addq $0xc, %rdi
callq 0xfaa0
movq -0x1b0(%rbp), %rdi
movss %xmm1, -0x120(%rbp)
movlpd %xmm0, -0x128(%rbp)
movl -0x120(%rbp), %eax
movl %eax, -0x110(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq -0x118(%rbp), %rsi
callq 0xfa30
movq -0x1b0(%rbp), %rdi
movss %xmm1, -0x130(%rbp)
movlpd %xmm0, -0x138(%rbp)
movl -0x130(%rbp), %eax
movl %eax, -0x100(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x108(%rbp)
movss -0x10(%rbp), %xmm0
addq $0x18, %rdi
callq 0xfaa0
movss %xmm1, -0x150(%rbp)
movlpd %xmm0, -0x158(%rbp)
movl -0x150(%rbp), %eax
movl %eax, -0x140(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq -0x108(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0xfa30
movq -0x1a8(%rbp), %rsi
movss %xmm1, -0x160(%rbp)
movlpd %xmm0, -0x168(%rbp)
movl -0x160(%rbp), %eax
movl %eax, -0xf0(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0x11890
movq -0x1a0(%rbp), %rsi
movss %xmm1, -0x170(%rbp)
movlpd %xmm0, -0x178(%rbp)
movl -0x170(%rbp), %eax
movl %eax, -0xe0(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x11890
movq -0x198(%rbp), %rdi
movss %xmm1, -0x180(%rbp)
movlpd %xmm0, -0x188(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0xdc(%rbp)
movl -0x180(%rbp), %eax
movl %eax, -0xd4(%rbp)
movss -0xb4(%rbp), %xmm0
leaq -0xc0(%rbp), %rsi
leaq -0xdc(%rbp), %rdx
callq 0x55430
movq -0x190(%rbp), %rax
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)