// File: GUI-Graphics[P]cpuraytracing/camera.cpp
// Function: gui::Camera::getRay(float, float) const
Ray Camera::getRay(float px, float py) const {
		Vector3 offset = Math::randomDisk() * apeture;
		offset = x * offset.x + y * offset.y;
		float u = (px - film.width * 0.5f) / resolution;
		float v = (film.height * 0.5f - py) / resolution;
		return Ray(position + offset, x * u + y * v - z - offset / focal);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1c0, %rsp            # imm = 0x1C0
movq %rdi, -0x1a0(%rbp)
movq %rdi, -0x198(%rbp)
movq %rsi, -0x8(%rbp)
movss %xmm0, -0xc(%rbp)
movss %xmm1, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x1b0(%rbp)
callq 0x4450
movq -0x1b0(%rbp), %rax
movss %xmm1, -0x38(%rbp)
movlpd %xmm0, -0x40(%rbp)
movl -0x38(%rbp), %ecx
movl %ecx, -0x28(%rbp)
movq -0x40(%rbp), %rcx
movq %rcx, -0x30(%rbp)
movss 0xc(%rax), %xmm0
leaq -0x30(%rbp), %rdi
callq 0x47d0
movq -0x1b0(%rbp), %rdi
movss %xmm1, -0x48(%rbp)
movlpd %xmm0, -0x50(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x20(%rbp)
addq $0x20, %rdi
movq %rdi, -0x1c0(%rbp)
movss -0x20(%rbp), %xmm0
callq 0x47d0
movq -0x1b0(%rbp), %rdi
movss %xmm1, -0x78(%rbp)
movlpd %xmm0, -0x80(%rbp)
movl -0x78(%rbp), %eax
movl %eax, -0x68(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
addq $0x2c, %rdi
movq %rdi, -0x1b8(%rbp)
movss -0x1c(%rbp), %xmm0
callq 0x47d0
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 0x5970
movq -0x1b0(%rbp), %rdi
movss %xmm1, -0xa8(%rbp)
movlpd %xmm0, -0xb0(%rbp)
movl -0xa8(%rbp), %eax
movl %eax, -0x58(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x20(%rbp)
movss -0xc(%rbp), %xmm0
movq (%rdi), %rax
cvtsi2ssl (%rax), %xmm1
movss 0x2a15(%rip), %xmm2     # 0x8028
mulss %xmm2, %xmm1
subss %xmm1, %xmm0
movss 0x8(%rdi), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0xb4(%rbp)
movq (%rdi), %rax
cvtsi2ssl 0x4(%rax), %xmm0
movss -0x10(%rbp), %xmm1
mulss %xmm2, %xmm0
subss %xmm1, %xmm0
movss 0x8(%rdi), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0xb8(%rbp)
addq $0x14, %rdi
leaq -0x20(%rbp), %rsi
movq %rsi, -0x1a8(%rbp)
callq 0x5970
movq -0x1c0(%rbp), %rdi
movss %xmm1, -0xd0(%rbp)
movlpd %xmm0, -0xd8(%rbp)
movl -0xd0(%rbp), %eax
movl %eax, -0xc0(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movss -0xb4(%rbp), %xmm0
callq 0x47d0
movq -0x1b8(%rbp), %rdi
movss %xmm1, -0x118(%rbp)
movlpd %xmm0, -0x120(%rbp)
movl -0x118(%rbp), %eax
movl %eax, -0x108(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x110(%rbp)
movss -0xb8(%rbp), %xmm0
callq 0x47d0
movss %xmm1, -0x138(%rbp)
movlpd %xmm0, -0x140(%rbp)
movl -0x138(%rbp), %eax
movl %eax, -0x128(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq -0x110(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0x5970
movq -0x1b0(%rbp), %rsi
movss %xmm1, -0x148(%rbp)
movlpd %xmm0, -0x150(%rbp)
movl -0x148(%rbp), %eax
movl %eax, -0xf8(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x100(%rbp)
addq $0x38, %rsi
leaq -0x100(%rbp), %rdi
callq 0x4830
movq -0x1b0(%rbp), %rax
movq -0x1a8(%rbp), %rdi
movss %xmm1, -0x158(%rbp)
movlpd %xmm0, -0x160(%rbp)
movl -0x158(%rbp), %ecx
movl %ecx, -0xe8(%rbp)
movq -0x160(%rbp), %rcx
movq %rcx, -0xf0(%rbp)
movss 0x10(%rax), %xmm0
callq 0x59e0
movss %xmm1, -0x178(%rbp)
movlpd %xmm0, -0x180(%rbp)
movl -0x178(%rbp), %eax
movl %eax, -0x168(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq -0xf0(%rbp), %rdi
leaq -0x170(%rbp), %rsi
callq 0x4830
movq -0x1a0(%rbp), %rdi
movss %xmm1, -0x188(%rbp)
movlpd %xmm0, -0x190(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0xe4(%rbp)
movl -0x188(%rbp), %eax
movl %eax, -0xdc(%rbp)
leaq -0xc8(%rbp), %rsi
leaq -0xe4(%rbp), %rdx
callq 0x5a60
movq -0x198(%rbp), %rax
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbp
retq
nopw %cs:(%rax,%rax)