#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ m44mulf_affine(float *, float *, int, float *);
void m44f_translate_right(float *src, float dx, float dy, float dz) {
  float T[4] = {dx, dy, dz, 1.0}, AT[4];
  float *t = src + 3;
  m44mulf_affine(src, T, 1, AT);
  t[0] = AT[0];
  t[4] = AT[1];
  t[8] = AT[2];
}


x86 assembly (clang, -O0):
<m44f_translate_right>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
movss  %xmm2,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  0xeaf(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x8(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x40(%rbp),%rcx
mov    $0x1,%edx
call   1030 <m44mulf_affine@plt>
movss  -0x40(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x3c(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movss  %xmm0,0x10(%rax)
movss  -0x38(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movss  %xmm0,0x20(%rax)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m44f_translate_right>:
push   %rbx
sub    $0x20,%rsp
mov    %rdi,%rbx
movss  %xmm0,(%rsp)
movss  %xmm1,0x4(%rsp)
movss  %xmm2,0x8(%rsp)
movl   $0x3f800000,0xc(%rsp)
3f
mov    %rsp,%rsi
lea    0x10(%rsp),%rcx
mov    $0x1,%edx
call   1030 <m44mulf_affine@plt>
movss  0x10(%rsp),%xmm0
movss  %xmm0,0xc(%rbx)
movss  0x14(%rsp),%xmm0
movss  %xmm0,0x1c(%rbx)
movss  0x18(%rsp),%xmm0
movss  %xmm0,0x2c(%rbx)
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @m44f_translate_right(float* %0, float %1, float %2, float %3) {
%5 = alloca float*
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca [4 x float]
%10 = alloca [4 x float]
%11 = alloca float*
store float* %0, float** %5
store float %1, float* %6
store float %2, float* %7
store float %3, float* %8
%12 = getelementptr inbounds [4 x float], [4 x float]* %9, i64 0, i64 0
%13 = load float, float* %6
store float %13, float* %12
%14 = getelementptr inbounds float, float* %12, i64 1
%15 = load float, float* %7
store float %15, float* %14
%16 = getelementptr inbounds float, float* %14, i64 1
%17 = load float, float* %8
store float %17, float* %16
%18 = getelementptr inbounds float, float* %16, i64 1
store float 1.000000e+00, float* %18
%19 = load float*, float** %5
%20 = getelementptr inbounds float, float* %19, i64 3
store float* %20, float** %11
%21 = load float*, float** %5
%22 = getelementptr inbounds [4 x float], [4 x float]* %9, i64 0, i64 0
%23 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 0
%24 = call i32 @m44mulf_affine(float* %21, float* %22, i32 1, float* %23)
%25 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 0
%26 = load float, float* %25
%27 = load float*, float** %11
%28 = getelementptr inbounds float, float* %27, i64 0
store float %26, float* %28
%29 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 1
%30 = load float, float* %29
%31 = load float*, float** %11
%32 = getelementptr inbounds float, float* %31, i64 4
store float %30, float* %32
%33 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 2
%34 = load float, float* %33
%35 = load float*, float** %11
%36 = getelementptr inbounds float, float* %35, i64 8
store float %34, float* %36
ret void
}

LLVM IR (-O2):
define void @m44f_translate_right(float* %0, float %1, float %2, float %3) {
%5 = alloca [4 x float]
%6 = alloca [4 x float]
%7 = bitcast [4 x float]* %5 to i8*
%8 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 0
store float %1, float* %8
%9 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 1
store float %2, float* %9
%10 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 2
store float %3, float* %10
%11 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 3
store float 1.000000e+00, float* %11
%12 = bitcast [4 x float]* %6 to i8*
%13 = getelementptr inbounds float, float* %0, i64 3
%14 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
%15 = call i32 @m44mulf_affine(float* %0, float* %8, i32 1, float* %14)
%16 = load float, float* %14
store float %16, float* %13
%17 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
%18 = load float, float* %17
%19 = getelementptr inbounds float, float* %0, i64 7
store float %18, float* %19
%20 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
%21 = load float, float* %20
%22 = getelementptr inbounds float, float* %0, i64 11
store float %21, float* %22
ret void
}