#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*/ m4f_copy_m4fo(float *, float *);
void m4f_fill_trans_m4fo(float x, float y, float z, float *result) {
  float m[] = {
      1, 0, 0, x, 0, 1, 0, y, 0, 0, 1, z, 0, 0, 0, 1,
  };
  m4f_copy_m4fo(m, result);
}


x86 assembly (clang, -O0):
<m4f_fill_trans_m4fo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
mov    %rdi,-0x18(%rbp)
movss  0xecd(%rip),%xmm0
movss  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x58(%rbp)
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x54(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x50(%rbp)
movss  0xe9e(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x44(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  0xe6f(%rip),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  0xe40(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
lea    -0x60(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <m4f_copy_m4fo@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m4f_fill_trans_m4fo>:
sub    $0x48,%rsp
mov    %rdi,%rsi
movq   $0x3f800000,(%rsp)
3f
movl   $0x0,0x8(%rsp)
movss  %xmm0,0xc(%rsp)
movabs $0x3f80000000000000,%rax
mov    %rax,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movss  %xmm1,0x1c(%rsp)
movq   $0x0,0x20(%rsp)
movl   $0x3f800000,0x28(%rsp)
3f
movss  %xmm2,0x2c(%rsp)
movaps 0xe98(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
mov    %rsp,%rdi
call   1030 <m4f_copy_m4fo@plt>
add    $0x48,%rsp
ret

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

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