#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 cosf(float);
int /*<<< orphan*/ m4f_copy_m4fo(float *, float *);
int sinf(float);
void m4f_fill_rotx_m4fo(float rx, float *result) {
  float m[] = {
      1, 0,        0,        0, 0, cosf(rx), -sinf(rx), 0,
      0, sinf(rx), cosf(rx), 0, 0, 0,        0,         1,
  };
  m4f_copy_m4fo(m, result);
}


x86 assembly (clang, -O0):
<m4f_fill_rotx_m4fo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
movss  0xeb7(%rip),%xmm0
movss  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x4(%rbp),%xmm0
call   1040 <cosf@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <sinf@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <sinf@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x4(%rbp),%xmm0
call   1040 <cosf@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xe08(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x50(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <m4f_copy_m4fo@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m4f_fill_rotx_m4fo>:
push   %rbx
sub    $0x50,%rsp
mov    %rdi,%rbx
movss  %xmm0,0xc(%rsp)
movl   $0x3f800000,0x10(%rsp)
3f
xorps  %xmm1,%xmm1
movups %xmm1,0x14(%rsp)
call   1040 <cosf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x24(%rsp)
movss  0xc(%rsp),%xmm0
call   1030 <sinf@plt>
neg    %eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x28(%rsp)
movq   $0x0,0x2c(%rsp)
movss  0xc(%rsp),%xmm0
call   1030 <sinf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x34(%rsp)
movss  0xc(%rsp),%xmm0
call   1040 <cosf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x38(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x3c(%rsp)
movl   $0x3f800000,0x4c(%rsp)
3f
lea    0x10(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <m4f_copy_m4fo@plt>
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @m4f_fill_rotx_m4fo(float %0, float* %1) {
%3 = alloca float
%4 = alloca float*
%5 = alloca [16 x float]
store float %0, float* %3
store float* %1, float** %4
%6 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 0
store float 1.000000e+00, float* %6
%7 = getelementptr inbounds float, float* %6, i64 1
store float 0.000000e+00, float* %7
%8 = getelementptr inbounds float, float* %7, i64 1
store float 0.000000e+00, float* %8
%9 = getelementptr inbounds float, float* %8, i64 1
store float 0.000000e+00, float* %9
%10 = getelementptr inbounds float, float* %9, i64 1
store float 0.000000e+00, float* %10
%11 = getelementptr inbounds float, float* %10, i64 1
%12 = load float, float* %3
%13 = call i32 @cosf(float %12)
%14 = sitofp i32 %13 to float
store float %14, float* %11
%15 = getelementptr inbounds float, float* %11, i64 1
%16 = load float, float* %3
%17 = call i32 @sinf(float %16)
%18 = sub nsw i32 0, %17
%19 = sitofp i32 %18 to float
store float %19, float* %15
%20 = getelementptr inbounds float, float* %15, 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
%23 = load float, float* %3
%24 = call i32 @sinf(float %23)
%25 = sitofp i32 %24 to float
store float %25, float* %22
%26 = getelementptr inbounds float, float* %22, i64 1
%27 = load float, float* %3
%28 = call i32 @cosf(float %27)
%29 = sitofp i32 %28 to float
store float %29, float* %26
%30 = getelementptr inbounds float, float* %26, i64 1
store float 0.000000e+00, float* %30
%31 = getelementptr inbounds float, float* %30, i64 1
store float 0.000000e+00, float* %31
%32 = getelementptr inbounds float, float* %31, i64 1
store float 0.000000e+00, float* %32
%33 = getelementptr inbounds float, float* %32, i64 1
store float 0.000000e+00, float* %33
%34 = getelementptr inbounds float, float* %33, i64 1
store float 1.000000e+00, float* %34
%35 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 0
%36 = load float*, float** %4
%37 = call i32 @m4f_copy_m4fo(float* %35, float* %36)
ret void
}

LLVM IR (-O2):
define void @m4f_fill_rotx_m4fo(float %0, float* %1) {
%3 = alloca [16 x float]
%4 = bitcast [16 x float]* %3 to i8*
%5 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 0
store float 1.000000e+00, float* %5
%6 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 1
%7 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 5
%8 = bitcast float* %6 to i8*
%9 = tail call i32 @cosf(float %0)
%10 = sitofp i32 %9 to float
store float %10, float* %7
%11 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 6
%12 = tail call i32 @sinf(float %0)
%13 = sub nsw i32 0, %12
%14 = sitofp i32 %13 to float
store float %14, float* %11
%15 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 7
store float 0.000000e+00, float* %15
%16 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 8
store float 0.000000e+00, float* %16
%17 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 9
%18 = tail call i32 @sinf(float %0)
%19 = sitofp i32 %18 to float
store float %19, float* %17
%20 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 10
%21 = tail call i32 @cosf(float %0)
%22 = sitofp i32 %21 to float
store float %22, float* %20
%23 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 11
%24 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 15
%25 = bitcast float* %23 to i8*
store float 1.000000e+00, float* %24
%26 = call i32 @m4f_copy_m4fo(float* %5, float* %1)
ret void
}