#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 */
float cosf(float);
float sinf(float);
void vec4_GetEilerOrientationTransform(float R[4], float ang[3]) {
  float t, Rt[4], T[4];
  t = ang[2] / 2.0;
  R[0] = 0.0;
  R[1] = 0.0;
  R[2] = -sinf(t);
  R[3] = cosf(t);
  t = ang[0] / 2.0;
  Rt[0] = sinf(t);
  Rt[1] = 0.0;
  Rt[2] = 0.0;
  Rt[3] = cosf(t);
  {
    (T)[0] = (R)[3] * (Rt)[0] + (R)[0] * (Rt)[3] + (R)[1] * (Rt)[2] -
             (R)[2] * (Rt)[1];
    (T)[1] = (R)[3] * (Rt)[1] + (R)[1] * (Rt)[3] + (R)[2] * (Rt)[0] -
             (R)[0] * (Rt)[2];
    (T)[2] = (R)[3] * (Rt)[2] + (R)[2] * (Rt)[3] + (R)[0] * (Rt)[1] -
             (R)[1] * (Rt)[0];
    (T)[3] = (R)[3] * (Rt)[3] - (R)[0] * (Rt)[0] - (R)[1] * (Rt)[1] -
             (R)[2] * (Rt)[2];
  }
  t = ang[1] / 2.0;
  Rt[0] = 0.0;
  Rt[1] = sinf(t);
  Rt[2] = 0.0;
  Rt[3] = cosf(t);
  {
    (R)[0] = (T)[3] * (Rt)[0] + (T)[0] * (Rt)[3] + (T)[1] * (Rt)[2] -
             (T)[2] * (Rt)[1];
    (R)[1] = (T)[3] * (Rt)[1] + (T)[1] * (Rt)[3] + (T)[2] * (Rt)[0] -
             (T)[0] * (Rt)[2];
    (R)[2] = (T)[3] * (Rt)[2] + (T)[2] * (Rt)[3] + (T)[0] * (Rt)[1] -
             (T)[1] * (Rt)[0];
    (R)[3] = (T)[3] * (Rt)[3] - (T)[0] * (Rt)[0] - (T)[1] * (Rt)[1] -
             (T)[2] * (Rt)[2];
  }
}


x86 assembly (clang, -O0):
<vec4_GetEilerOrientationTransform>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xebb(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x4(%rax)
movss  -0x14(%rbp),%xmm0
call   1030 <sinf@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x8(%rax)
movss  -0x14(%rbp),%xmm0
call   1040 <cosf@plt>
mov    -0x8(%rbp),%rax
movss  %xmm0,0xc(%rax)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe50(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
call   1030 <sinf@plt>
movss  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x14(%rbp),%xmm0
call   1040 <cosf@plt>
movss  %xmm0,-0x24(%rbp)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  -0x30(%rbp),%xmm2
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm1
mulss  -0x24(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm1
movss  -0x28(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  -0x2c(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  -0x2c(%rbp),%xmm2
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm1
mulss  -0x24(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm1
movss  -0x30(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
movss  -0x28(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x3c(%rbp)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  -0x28(%rbp),%xmm2
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm1
mulss  -0x24(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm1
movss  -0x2c(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  -0x30(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  -0x24(%rbp),%xmm2
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm1
mulss  -0x30(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm1
movss  -0x2c(%rbp),%xmm2
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  -0x28(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x34(%rbp)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc62(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x14(%rbp),%xmm0
call   1030 <sinf@plt>
movss  %xmm0,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x14(%rbp),%xmm0
call   1040 <cosf@plt>
movss  %xmm0,-0x24(%rbp)
movss  -0x34(%rbp),%xmm0
movss  -0x30(%rbp),%xmm2
movss  -0x40(%rbp),%xmm1
mulss  -0x24(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x3c(%rbp),%xmm1
movss  -0x28(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x38(%rbp),%xmm0
movss  -0x2c(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x34(%rbp),%xmm0
movss  -0x2c(%rbp),%xmm2
movss  -0x3c(%rbp),%xmm1
mulss  -0x24(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x38(%rbp),%xmm1
movss  -0x30(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x40(%rbp),%xmm0
movss  -0x28(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x4(%rax)
movss  -0x34(%rbp),%xmm0
movss  -0x28(%rbp),%xmm2
movss  -0x38(%rbp),%xmm1
mulss  -0x24(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x40(%rbp),%xmm1
movss  -0x2c(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x3c(%rbp),%xmm0
movss  -0x30(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x8(%rax)
movss  -0x34(%rbp),%xmm0
movss  -0x24(%rbp),%xmm2
movss  -0x40(%rbp),%xmm1
mulss  -0x30(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x3c(%rbp),%xmm1
movss  -0x2c(%rbp),%xmm2
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x38(%rbp),%xmm0
movss  -0x28(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0xc(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vec4_GetEilerOrientationTransform>:
push   %r14
push   %rbx
sub    $0x58,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movss  0x8(%rsi),%xmm0
mulss  0xec6(%rip),%xmm0
movss  %xmm0,0x10(%rsp)
movq   $0x0,(%rdi)
call   1030 <sinf@plt>
xorps  0xebd(%rip),%xmm0
movss  %xmm0,0x8(%rbx)
movss  0x10(%rsp),%xmm0
call   1040 <cosf@plt>
movss  %xmm0,0xc(%rbx)
movss  (%r14),%xmm0
mulss  0xe8b(%rip),%xmm0
movss  %xmm0,0x20(%rsp)
call   1030 <sinf@plt>
movaps %xmm0,0x10(%rsp)
movss  0x20(%rsp),%xmm0
call   1040 <cosf@plt>
movss  0xc(%rbx),%xmm10
movsd  (%rbx),%xmm4
movaps %xmm10,%xmm9
movaps %xmm0,%xmm8
movaps %xmm10,%xmm5
mulss  %xmm0,%xmm10
mulss  %xmm4,%xmm0
movaps 0x10(%rsp),%xmm2
mulss  %xmm2,%xmm9
addss  %xmm0,%xmm9
movss  0x8(%rbx),%xmm0
movaps %xmm0,%xmm1
movaps %xmm4,%xmm6
movss  %xmm0,%xmm6
movlhps %xmm4,%xmm0
shufps $0xe2,%xmm4,%xmm0
movq   %xmm2,%xmm7
movaps %xmm2,%xmm3
xorps  %xmm2,%xmm2
shufps $0xe2,%xmm2,%xmm7
mulps  %xmm7,%xmm0
movaps %xmm4,%xmm2
mulps  %xmm4,%xmm7
shufps $0x55,%xmm4,%xmm4
xorps  %xmm11,%xmm11
mulss  %xmm11,%xmm4
addss  %xmm9,%xmm4
shufps $0x0,%xmm8,%xmm8
mulps  %xmm8,%xmm6
movss  0xdf5(%rip),%xmm8
mulss  %xmm8,%xmm1
addss  %xmm1,%xmm4
movaps %xmm4,0x40(%rsp)
mulss  %xmm11,%xmm5
shufps $0x0,%xmm5,%xmm5
addps  %xmm6,%xmm5
addps  %xmm5,%xmm0
shufps $0xe1,%xmm0,%xmm0
xorps  0xdd9(%rip),%xmm2
subps  %xmm7,%xmm0
movaps %xmm0,0x30(%rsp)
mulss  %xmm2,%xmm3
addss  %xmm3,%xmm10
pshufd $0x55,%xmm2,%xmm0
mulss  %xmm11,%xmm0
addss  %xmm10,%xmm0
addss  %xmm1,%xmm0
movaps %xmm0,0x10(%rsp)
movss  0xd98(%rip),%xmm0
mulss  0x4(%r14),%xmm0
movss  %xmm0,0xc(%rsp)
call   1030 <sinf@plt>
movaps %xmm0,0x20(%rsp)
movss  0xc(%rsp),%xmm0
call   1040 <cosf@plt>
movaps 0x40(%rsp),%xmm4
movaps %xmm4,%xmm1
movaps 0xd78(%rip),%xmm5
xorps  %xmm5,%xmm1
movaps 0x30(%rsp),%xmm7
xorps  %xmm7,%xmm5
movaps %xmm4,%xmm2
unpcklps %xmm7,%xmm2
movaps %xmm0,%xmm3
unpcklps %xmm4,%xmm3
movaps %xmm4,%xmm8
movlhps %xmm3,%xmm2
movaps %xmm7,%xmm3
movss  0xd43(%rip),%xmm4
shufps $0xc5,%xmm4,%xmm3
xorps  %xmm4,%xmm4
movss  %xmm0,%xmm4
shufps $0x80,%xmm3,%xmm0
mulps  %xmm2,%xmm0
movaps 0x10(%rsp),%xmm3
shufps $0x0,%xmm3,%xmm3
xorps  %xmm2,%xmm2
movaps 0x20(%rsp),%xmm6
movss  %xmm6,%xmm2
shufps $0xd4,%xmm5,%xmm1
shufps $0x42,%xmm5,%xmm1
mulps  %xmm2,%xmm1
shufps $0x11,%xmm4,%xmm2
mulps  %xmm3,%xmm2
addps  %xmm0,%xmm2
movaps %xmm5,%xmm0
movlhps %xmm8,%xmm0
shufps $0x24,%xmm0,%xmm7
xorps  %xmm0,%xmm0
shufps $0x4,%xmm6,%xmm0
mulps  %xmm7,%xmm0
addps  %xmm2,%xmm0
addps  %xmm0,%xmm1
movups %xmm1,(%rbx)
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @vec4_GetEilerOrientationTransform(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
%5 = alloca float
%6 = alloca [4 x float]
%7 = alloca [4 x float]
store float* %0, float** %3
store float* %1, float** %4
%8 = load float*, float** %4
%9 = getelementptr inbounds float, float* %8, i64 2
%10 = load float, float* %9
%11 = fpext float %10 to double
%12 = fdiv double %11, 2.000000e+00
%13 = fptrunc double %12 to float
store float %13, float* %5
%14 = load float*, float** %3
%15 = getelementptr inbounds float, float* %14, i64 0
store float 0.000000e+00, float* %15
%16 = load float*, float** %3
%17 = getelementptr inbounds float, float* %16, i64 1
store float 0.000000e+00, float* %17
%18 = load float, float* %5
%19 = call float @sinf(float %18)
%20 = fneg float %19
%21 = load float*, float** %3
%22 = getelementptr inbounds float, float* %21, i64 2
store float %20, float* %22
%23 = load float, float* %5
%24 = call float @cosf(float %23)
%25 = load float*, float** %3
%26 = getelementptr inbounds float, float* %25, i64 3
store float %24, float* %26
%27 = load float*, float** %4
%28 = getelementptr inbounds float, float* %27, i64 0
%29 = load float, float* %28
%30 = fpext float %29 to double
%31 = fdiv double %30, 2.000000e+00
%32 = fptrunc double %31 to float
store float %32, float* %5
%33 = load float, float* %5
%34 = call float @sinf(float %33)
%35 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
store float %34, float* %35
%36 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
store float 0.000000e+00, float* %36
%37 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
store float 0.000000e+00, float* %37
%38 = load float, float* %5
%39 = call float @cosf(float %38)
%40 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
store float %39, float* %40
%41 = load float*, float** %3
%42 = getelementptr inbounds float, float* %41, i64 3
%43 = load float, float* %42
%44 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
%45 = load float, float* %44
%46 = load float*, float** %3
%47 = getelementptr inbounds float, float* %46, i64 0
%48 = load float, float* %47
%49 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
%50 = load float, float* %49
%51 = fmul float %48, %50
%52 = call float @llvm.fmuladd.f32(float %43, float %45, float %51)
%53 = load float*, float** %3
%54 = getelementptr inbounds float, float* %53, i64 1
%55 = load float, float* %54
%56 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
%57 = load float, float* %56
%58 = call float @llvm.fmuladd.f32(float %55, float %57, float %52)
%59 = load float*, float** %3
%60 = getelementptr inbounds float, float* %59, i64 2
%61 = load float, float* %60
%62 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
%63 = load float, float* %62
%64 = fneg float %61
%65 = call float @llvm.fmuladd.f32(float %64, float %63, float %58)
%66 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 0
store float %65, float* %66
%67 = load float*, float** %3
%68 = getelementptr inbounds float, float* %67, i64 3
%69 = load float, float* %68
%70 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
%71 = load float, float* %70
%72 = load float*, float** %3
%73 = getelementptr inbounds float, float* %72, i64 1
%74 = load float, float* %73
%75 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
%76 = load float, float* %75
%77 = fmul float %74, %76
%78 = call float @llvm.fmuladd.f32(float %69, float %71, float %77)
%79 = load float*, float** %3
%80 = getelementptr inbounds float, float* %79, i64 2
%81 = load float, float* %80
%82 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
%83 = load float, float* %82
%84 = call float @llvm.fmuladd.f32(float %81, float %83, float %78)
%85 = load float*, float** %3
%86 = getelementptr inbounds float, float* %85, i64 0
%87 = load float, float* %86
%88 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
%89 = load float, float* %88
%90 = fneg float %87
%91 = call float @llvm.fmuladd.f32(float %90, float %89, float %84)
%92 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 1
store float %91, float* %92
%93 = load float*, float** %3
%94 = getelementptr inbounds float, float* %93, i64 3
%95 = load float, float* %94
%96 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
%97 = load float, float* %96
%98 = load float*, float** %3
%99 = getelementptr inbounds float, float* %98, i64 2
%100 = load float, float* %99
%101 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
%102 = load float, float* %101
%103 = fmul float %100, %102
%104 = call float @llvm.fmuladd.f32(float %95, float %97, float %103)
%105 = load float*, float** %3
%106 = getelementptr inbounds float, float* %105, i64 0
%107 = load float, float* %106
%108 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
%109 = load float, float* %108
%110 = call float @llvm.fmuladd.f32(float %107, float %109, float %104)
%111 = load float*, float** %3
%112 = getelementptr inbounds float, float* %111, i64 1
%113 = load float, float* %112
%114 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
%115 = load float, float* %114
%116 = fneg float %113
%117 = call float @llvm.fmuladd.f32(float %116, float %115, float %110)
%118 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 2
store float %117, float* %118
%119 = load float*, float** %3
%120 = getelementptr inbounds float, float* %119, i64 3
%121 = load float, float* %120
%122 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
%123 = load float, float* %122
%124 = load float*, float** %3
%125 = getelementptr inbounds float, float* %124, i64 0
%126 = load float, float* %125
%127 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
%128 = load float, float* %127
%129 = fmul float %126, %128
%130 = fneg float %129
%131 = call float @llvm.fmuladd.f32(float %121, float %123, float %130)
%132 = load float*, float** %3
%133 = getelementptr inbounds float, float* %132, i64 1
%134 = load float, float* %133
%135 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
%136 = load float, float* %135
%137 = fneg float %134
%138 = call float @llvm.fmuladd.f32(float %137, float %136, float %131)
%139 = load float*, float** %3
%140 = getelementptr inbounds float, float* %139, i64 2
%141 = load float, float* %140
%142 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
%143 = load float, float* %142
%144 = fneg float %141
%145 = call float @llvm.fmuladd.f32(float %144, float %143, float %138)
%146 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 3
store float %145, float* %146
%147 = load float*, float** %4
%148 = getelementptr inbounds float, float* %147, i64 1
%149 = load float, float* %148
%150 = fpext float %149 to double
%151 = fdiv double %150, 2.000000e+00
%152 = fptrunc double %151 to float
store float %152, float* %5
%153 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
store float 0.000000e+00, float* %153
%154 = load float, float* %5
%155 = call float @sinf(float %154)
%156 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
store float %155, float* %156
%157 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
store float 0.000000e+00, float* %157
%158 = load float, float* %5
%159 = call float @cosf(float %158)
%160 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
store float %159, float* %160
%161 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 3
%162 = load float, float* %161
%163 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
%164 = load float, float* %163
%165 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 0
%166 = load float, float* %165
%167 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
%168 = load float, float* %167
%169 = fmul float %166, %168
%170 = call float @llvm.fmuladd.f32(float %162, float %164, float %169)
%171 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 1
%172 = load float, float* %171
%173 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
%174 = load float, float* %173
%175 = call float @llvm.fmuladd.f32(float %172, float %174, float %170)
%176 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 2
%177 = load float, float* %176
%178 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
%179 = load float, float* %178
%180 = fneg float %177
%181 = call float @llvm.fmuladd.f32(float %180, float %179, float %175)
%182 = load float*, float** %3
%183 = getelementptr inbounds float, float* %182, i64 0
store float %181, float* %183
%184 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 3
%185 = load float, float* %184
%186 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
%187 = load float, float* %186
%188 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 1
%189 = load float, float* %188
%190 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
%191 = load float, float* %190
%192 = fmul float %189, %191
%193 = call float @llvm.fmuladd.f32(float %185, float %187, float %192)
%194 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 2
%195 = load float, float* %194
%196 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
%197 = load float, float* %196
%198 = call float @llvm.fmuladd.f32(float %195, float %197, float %193)
%199 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 0
%200 = load float, float* %199
%201 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
%202 = load float, float* %201
%203 = fneg float %200
%204 = call float @llvm.fmuladd.f32(float %203, float %202, float %198)
%205 = load float*, float** %3
%206 = getelementptr inbounds float, float* %205, i64 1
store float %204, float* %206
%207 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 3
%208 = load float, float* %207
%209 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
%210 = load float, float* %209
%211 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 2
%212 = load float, float* %211
%213 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
%214 = load float, float* %213
%215 = fmul float %212, %214
%216 = call float @llvm.fmuladd.f32(float %208, float %210, float %215)
%217 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 0
%218 = load float, float* %217
%219 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
%220 = load float, float* %219
%221 = call float @llvm.fmuladd.f32(float %218, float %220, float %216)
%222 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 1
%223 = load float, float* %222
%224 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
%225 = load float, float* %224
%226 = fneg float %223
%227 = call float @llvm.fmuladd.f32(float %226, float %225, float %221)
%228 = load float*, float** %3
%229 = getelementptr inbounds float, float* %228, i64 2
store float %227, float* %229
%230 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 3
%231 = load float, float* %230
%232 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
%233 = load float, float* %232
%234 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 0
%235 = load float, float* %234
%236 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
%237 = load float, float* %236
%238 = fmul float %235, %237
%239 = fneg float %238
%240 = call float @llvm.fmuladd.f32(float %231, float %233, float %239)
%241 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 1
%242 = load float, float* %241
%243 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
%244 = load float, float* %243
%245 = fneg float %242
%246 = call float @llvm.fmuladd.f32(float %245, float %244, float %240)
%247 = getelementptr inbounds [4 x float], [4 x float]* %7, i64 0, i64 2
%248 = load float, float* %247
%249 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
%250 = load float, float* %249
%251 = fneg float %248
%252 = call float @llvm.fmuladd.f32(float %251, float %250, float %246)
%253 = load float*, float** %3
%254 = getelementptr inbounds float, float* %253, i64 3
store float %252, float* %254
ret void
}

LLVM IR (-O2):
define void @vec4_GetEilerOrientationTransform(float* nocapture %0, float* nocapture %1) {
%3 = getelementptr inbounds float, float* %1, i64 2
%4 = load float, float* %3
%5 = fmul float %4, 5.000000e-01
store float 0.000000e+00, float* %0
%6 = getelementptr inbounds float, float* %0, i64 1
store float 0.000000e+00, float* %6
%7 = tail call float @sinf(float %5)
%8 = fneg float %7
%9 = getelementptr inbounds float, float* %0, i64 2
store float %8, float* %9
%10 = tail call float @cosf(float %5)
%11 = getelementptr inbounds float, float* %0, i64 3
store float %10, float* %11
%12 = load float, float* %1
%13 = fmul float %12, 5.000000e-01
%14 = tail call float @sinf(float %13)
%15 = tail call float @cosf(float %13)
%16 = load float, float* %11
%17 = bitcast float* %0 to <2 x float>*
%18 = load <2 x float>, <2 x float>* %17
%19 = extractelement <2 x float> %18, i64 0
%20 = fmul float %15, %19
%21 = tail call float @llvm.fmuladd.f32(float %16, float %14, float %20)
%22 = extractelement <2 x float> %18, i64 1
%23 = tail call float @llvm.fmuladd.f32(float %22, float 0.000000e+00, float %21)
%24 = load float, float* %9
%25 = fneg float %24
%26 = tail call float @llvm.fmuladd.f32(float %25, float 0.000000e+00, float %23)
%27 = insertelement <2 x float> poison, float %15, i64 0
%28 = shufflevector <2 x float> %27, <2 x float> poison, <2 x i32> zeroinitializer
%29 = insertelement <2 x float> %18, float %24, i64 0
%30 = fmul <2 x float> %28, %29
%31 = insertelement <2 x float> poison, float %16, i64 0
%32 = shufflevector <2 x float> %31, <2 x float> poison, <2 x i32> zeroinitializer
%33 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %32, <2 x float> zeroinitializer, <2 x float> %30)
%34 = insertelement <2 x float> %18, float %24, i64 1
%35 = insertelement <2 x float> <float 0.000000e+00, float poison>, float %14, i64 1
%36 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %34, <2 x float> %35, <2 x float> %33)
%37 = shufflevector <2 x float> %36, <2 x float> poison, <2 x i32> <i32 1, i32 0>
%38 = fneg <2 x float> %18
%39 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %38, <2 x float> %35, <2 x float> %37)
%40 = shufflevector <2 x float> %39, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
%41 = extractelement <2 x float> %38, i64 0
%42 = fmul float %14, %41
%43 = tail call float @llvm.fmuladd.f32(float %16, float %15, float %42)
%44 = extractelement <2 x float> %38, i64 1
%45 = tail call float @llvm.fmuladd.f32(float %44, float 0.000000e+00, float %43)
%46 = tail call float @llvm.fmuladd.f32(float %25, float 0.000000e+00, float %45)
%47 = getelementptr inbounds float, float* %1, i64 1
%48 = load float, float* %47
%49 = fmul float %48, 5.000000e-01
%50 = tail call float @sinf(float %49)
%51 = tail call float @cosf(float %49)
%52 = fneg float %26
%53 = fneg <2 x float> %39
%54 = shufflevector <2 x float> %53, <2 x float> poison, <4 x i32> <i32 0, i32 undef, i32 undef, i32 undef>
%55 = insertelement <4 x float> poison, float %26, i64 0
%56 = extractelement <2 x float> %39, i64 0
%57 = insertelement <4 x float> %55, float %56, i64 1
%58 = insertelement <4 x float> %57, float %51, i64 2
%59 = insertelement <4 x float> %58, float %26, i64 3
%60 = insertelement <4 x float> <float poison, float poison, float poison, float -0.000000e+00>, float %51, i64 0
%61 = insertelement <4 x float> %60, float %51, i64 1
%62 = extractelement <2 x float> %39, i64 1
%63 = shufflevector <4 x float> %61, <4 x float> %40, <4 x i32> <i32 0, i32 1, i32 5, i32 3>
%64 = fmul <4 x float> %59, %63
%65 = insertelement <4 x float> poison, float %46, i64 0
%66 = shufflevector <4 x float> %65, <4 x float> poison, <4 x i32> zeroinitializer
%67 = insertelement <4 x float> <float 0.000000e+00, float poison, float 0.000000e+00, float poison>, float %50, i64 1
%68 = insertelement <4 x float> %67, float %51, i64 3
%69 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %66, <4 x float> %68, <4 x float> %64)
%70 = insertelement <4 x float> %40, float %62, i64 1
%71 = insertelement <4 x float> %70, float %26, i64 2
%72 = shufflevector <4 x float> %71, <4 x float> %54, <4 x i32> <i32 0, i32 1, i32 2, i32 4>
%73 = insertelement <4 x float> <float 0.000000e+00, float 0.000000e+00, float poison, float poison>, float %50, i64 2
%74 = insertelement <4 x float> %73, float %50, i64 3
%75 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %72, <4 x float> %74, <4 x float> %69)
%76 = extractelement <2 x float> %53, i64 1
%77 = insertelement <4 x float> poison, float %76, i64 0
%78 = insertelement <4 x float> %77, float %52, i64 1
%79 = shufflevector <2 x float> %53, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
%80 = shufflevector <4 x float> %78, <4 x float> %79, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
%81 = insertelement <4 x float> <float poison, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00>, float %50, i64 0
%82 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %80, <4 x float> %81, <4 x float> %75)
%83 = bitcast float* %0 to <4 x float>*
store <4 x float> %82, <4 x float>* %83
ret void
}