// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/camera.c
// Function: Camera_UpdateVectors
static void Camera_UpdateVectors( camera_t *cam ) {
	vec3 front = vec3_create( cosf( to_radians(cam->yaw) ) * cosf( to_radians(cam->pitch)),
	                          sinf( to_radians(cam->pitch) ),
	                          sinf( to_radians(cam->yaw) ) * cosf( to_radians(cam->pitch)));
	front      = vec3_nrm(front);
	cam->front = front;
	cam->right = vec3_nrm( vec3_crs(cam->front, cam->worldUp) );
	cam->up    = vec3_nrm( vec3_crs(cam->right, cam->front)   );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movss 0x7c(%rax), %xmm0
callq 0x80c0
callq 0x10f0
movss %xmm0, -0x150(%rbp)
movq -0x8(%rbp), %rax
movss 0x80(%rax), %xmm0
callq 0x80c0
callq 0x10f0
movaps %xmm0, %xmm1
movss -0x150(%rbp), %xmm0
mulss %xmm1, %xmm0
movss %xmm0, -0x144(%rbp)
movq -0x8(%rbp), %rax
movss 0x80(%rax), %xmm0
callq 0x80c0
callq 0x1120
movss %xmm0, -0x148(%rbp)
movq -0x8(%rbp), %rax
movss 0x7c(%rax), %xmm0
callq 0x80c0
callq 0x1120
movss %xmm0, -0x14c(%rbp)
movq -0x8(%rbp), %rax
movss 0x80(%rax), %xmm0
callq 0x80c0
callq 0x10f0
movss -0x14c(%rbp), %xmm2
movss -0x148(%rbp), %xmm1
movaps %xmm0, %xmm3
movss -0x144(%rbp), %xmm0
mulss %xmm3, %xmm2
callq 0x4270
movss %xmm1, -0x20(%rbp)
movlpd %xmm0, -0x28(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
movsd -0x48(%rbp), %xmm0
movss -0x40(%rbp), %xmm1
callq 0x46f0
movss %xmm1, -0x50(%rbp)
movlpd %xmm0, -0x58(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x38(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x10(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl -0x10(%rbp), %ecx
movl %ecx, 0x14(%rax)
movq -0x18(%rbp), %rcx
movq %rcx, 0xc(%rax)
movq -0x8(%rbp), %rax
movq %rax, -0x140(%rbp)
movl 0x14(%rax), %ecx
movl %ecx, -0x80(%rbp)
movq 0xc(%rax), %rcx
movq %rcx, -0x88(%rbp)
movsd -0x88(%rbp), %xmm0
movss -0x80(%rbp), %xmm1
movl 0x38(%rax), %ecx
movl %ecx, -0x90(%rbp)
movq 0x30(%rax), %rax
movq %rax, -0x98(%rbp)
movsd -0x98(%rbp), %xmm2
movss -0x90(%rbp), %xmm3
callq 0x45c0
movss %xmm1, -0xa0(%rbp)
movlpd %xmm0, -0xa8(%rbp)
movl -0xa0(%rbp), %eax
movl %eax, -0x70(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x78(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0xb0(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xb8(%rbp)
movsd -0xb8(%rbp), %xmm0
movss -0xb0(%rbp), %xmm1
callq 0x46f0
movq -0x140(%rbp), %rax
movss %xmm1, -0xc0(%rbp)
movlpd %xmm0, -0xc8(%rbp)
movl -0xc0(%rbp), %ecx
movl %ecx, -0x60(%rbp)
movq -0xc8(%rbp), %rcx
movq %rcx, -0x68(%rbp)
movl -0x60(%rbp), %ecx
movl %ecx, 0x2c(%rax)
movq -0x68(%rbp), %rcx
movq %rcx, 0x24(%rax)
movq -0x8(%rbp), %rax
movq %rax, -0x138(%rbp)
movl 0x2c(%rax), %ecx
movl %ecx, -0xe8(%rbp)
movq 0x24(%rax), %rcx
movq %rcx, -0xf0(%rbp)
movsd -0xf0(%rbp), %xmm0
movss -0xe8(%rbp), %xmm1
movl 0x14(%rax), %ecx
movl %ecx, -0xf8(%rbp)
movq 0xc(%rax), %rax
movq %rax, -0x100(%rbp)
movsd -0x100(%rbp), %xmm2
movss -0xf8(%rbp), %xmm3
callq 0x45c0
movss %xmm1, -0x108(%rbp)
movlpd %xmm0, -0x110(%rbp)
movl -0x108(%rbp), %eax
movl %eax, -0xd8(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xe0(%rbp)
movl -0xd8(%rbp), %eax
movl %eax, -0x118(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x120(%rbp)
movsd -0x120(%rbp), %xmm0
movss -0x118(%rbp), %xmm1
callq 0x46f0
movq -0x138(%rbp), %rax
movss %xmm1, -0x128(%rbp)
movlpd %xmm0, -0x130(%rbp)
movq -0x130(%rbp), %rcx
movq %rcx, -0xd4(%rbp)
movl -0x128(%rbp), %ecx
movl %ecx, -0xcc(%rbp)
movq -0xd4(%rbp), %rcx
movq %rcx, 0x18(%rax)
movl -0xcc(%rbp), %ecx
movl %ecx, 0x20(%rax)
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nop