// File: /workspace/github_c_makefile_star2_O0/Nealsbo[P]C-Software-Renderer/src/camera.c
// Function: Camera_ProcMovement
void Camera_ProcMovement ( camera_t *cam, int m_type, float delta ) {
    vec3  move, front, right;
    float speed_value = cam->speed * delta;
    switch( m_type ){
    case 1:
        move = vec3_mlt( cam->front, speed_value );
        break;

    case 2:
        move = vec3_mlt( cam->front, -speed_value );
        break;

    case 3:
        move = vec3_mlt( cam->right, speed_value );
        break;

    case 4:
        move = vec3_mlt( cam->right, -speed_value );
        break;
    }
    Camera_AddPosition( cam, move );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movss %xmm0, -0x10(%rbp)
movq -0x8(%rbp), %rax
movss 0x94(%rax), %xmm0
movss -0x10(%rbp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, -0x38(%rbp)
movl -0xc(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x110(%rbp)
subl $0x3, %eax
ja 0x285b
movq -0x110(%rbp), %rax
leaq 0xbaca(%rip), %rcx      # 0xe170
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movss -0x38(%rbp), %xmm2
movl 0x14(%rax), %ecx
movl %ecx, -0x50(%rbp)
movq 0xc(%rax), %rax
movq %rax, -0x58(%rbp)
movsd -0x58(%rbp), %xmm0
movss -0x50(%rbp), %xmm1
callq 0x4440
movss %xmm1, -0x60(%rbp)
movlpd %xmm0, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x44(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x44(%rbp), %rax
movq %rax, -0x1c(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x285b
movq -0x8(%rbp), %rax
movaps 0xba55(%rip), %xmm0     # 0xe160
movss -0x38(%rbp), %xmm2
pxor %xmm0, %xmm2
movl 0x14(%rax), %ecx
movl %ecx, -0x80(%rbp)
movq 0xc(%rax), %rax
movq %rax, -0x88(%rbp)
movsd -0x88(%rbp), %xmm0
movss -0x80(%rbp), %xmm1
callq 0x4440
movss %xmm1, -0x90(%rbp)
movlpd %xmm0, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x74(%rbp)
movl -0x90(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x74(%rbp), %rax
movq %rax, -0x1c(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x285b
movq -0x8(%rbp), %rax
movss -0x38(%rbp), %xmm2
movl 0x2c(%rax), %ecx
movl %ecx, -0xb0(%rbp)
movq 0x24(%rax), %rax
movq %rax, -0xb8(%rbp)
movsd -0xb8(%rbp), %xmm0
movss -0xb0(%rbp), %xmm1
callq 0x4440
movss %xmm1, -0xc0(%rbp)
movlpd %xmm0, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xa4(%rbp)
movl -0xc0(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0xa4(%rbp), %rax
movq %rax, -0x1c(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x285b
movq -0x8(%rbp), %rax
movaps 0xb975(%rip), %xmm0     # 0xe160
movss -0x38(%rbp), %xmm2
pxor %xmm0, %xmm2
movl 0x2c(%rax), %ecx
movl %ecx, -0xe0(%rbp)
movq 0x24(%rax), %rax
movq %rax, -0xe8(%rbp)
movsd -0xe8(%rbp), %xmm0
movss -0xe0(%rbp), %xmm1
callq 0x4440
movss %xmm1, -0xf0(%rbp)
movlpd %xmm0, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xd4(%rbp)
movl -0xf0(%rbp), %eax
movl %eax, -0xcc(%rbp)
movq -0xd4(%rbp), %rax
movq %rax, -0x1c(%rbp)
movl -0xcc(%rbp), %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %eax
movl %eax, -0x100(%rbp)
movq -0x1c(%rbp), %rax
movq %rax, -0x108(%rbp)
movsd -0x108(%rbp), %xmm0
movss -0x100(%rbp), %xmm1
callq 0x28a0
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)