#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_SetZXYRotations(float v[4], float rot[3]) {
  float angle, sin_t2, cos_t2, qt[4], qX[4], qY[4], qZ[4];
  angle = 3.14159265358979323846 * rot[2] / 360.0;
  sin_t2 = sinf(angle);
  cos_t2 = cosf(angle);
  qZ[3] = cos_t2;
  qZ[0] = 0.0 * sin_t2;
  qZ[1] = 0.0 * sin_t2;
  qZ[2] = 1.0 * sin_t2;
  angle = 3.14159265358979323846 * rot[0] / 360.0;
  sin_t2 = sinf(angle);
  cos_t2 = cosf(angle);
  qX[3] = cos_t2;
  qX[0] = 1.0 * sin_t2;
  qX[1] = 0.0 * sin_t2;
  qX[2] = 0.0 * sin_t2;
  angle = 3.14159265358979323846 * rot[1] / 360.0;
  sin_t2 = sinf(angle);
  cos_t2 = cosf(angle);
  qY[3] = cos_t2;
  qY[0] = 0.0 * sin_t2;
  qY[1] = 1.0 * sin_t2;
  qY[2] = 0.0 * sin_t2;
  {
    (qt)[0] = (qZ)[3] * (qX)[0] + (qZ)[0] * (qX)[3] + (qZ)[1] * (qX)[2] -
              (qZ)[2] * (qX)[1];
    (qt)[1] = (qZ)[3] * (qX)[1] + (qZ)[1] * (qX)[3] + (qZ)[2] * (qX)[0] -
              (qZ)[0] * (qX)[2];
    (qt)[2] = (qZ)[3] * (qX)[2] + (qZ)[2] * (qX)[3] + (qZ)[0] * (qX)[1] -
              (qZ)[1] * (qX)[0];
    (qt)[3] = (qZ)[3] * (qX)[3] - (qZ)[0] * (qX)[0] - (qZ)[1] * (qX)[1] -
              (qZ)[2] * (qX)[2];
  };
  {
    (v)[0] = (qt)[3] * (qY)[0] + (qt)[0] * (qY)[3] + (qt)[1] * (qY)[2] -
             (qt)[2] * (qY)[1];
    (v)[1] = (qt)[3] * (qY)[1] + (qt)[1] * (qY)[3] + (qt)[2] * (qY)[0] -
             (qt)[0] * (qY)[2];
    (v)[2] = (qt)[3] * (qY)[2] + (qt)[2] * (qY)[3] + (qt)[0] * (qY)[1] -
             (qt)[1] * (qY)[0];
    (v)[3] = (qt)[3] * (qY)[3] - (qt)[0] * (qY)[0] - (qt)[1] * (qY)[1] -
             (qt)[2] * (qY)[2];
  };
}


x86 assembly (clang, -O0):
<vec4_SetZXYRotations>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xecb(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xeb7(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
call   1030 <sinf@plt>
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
call   1040 <cosf@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x60(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe37(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe26(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe12(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
call   1030 <sinf@plt>
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
call   1040 <cosf@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xdc4(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd80(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd6c(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
call   1030 <sinf@plt>
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
call   1040 <cosf@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd05(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x54(%rbp),%xmm0
movss  -0x40(%rbp),%xmm2
movss  -0x60(%rbp),%xmm1
mulss  -0x34(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x5c(%rbp),%xmm1
movss  -0x38(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x58(%rbp),%xmm0
movss  -0x3c(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x54(%rbp),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x5c(%rbp),%xmm1
mulss  -0x34(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x58(%rbp),%xmm1
movss  -0x40(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x60(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x54(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  -0x34(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x60(%rbp),%xmm1
movss  -0x3c(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x5c(%rbp),%xmm0
movss  -0x40(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x54(%rbp),%xmm0
movss  -0x34(%rbp),%xmm2
movss  -0x60(%rbp),%xmm1
mulss  -0x40(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x5c(%rbp),%xmm1
movss  -0x3c(%rbp),%xmm2
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x58(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
movss  -0x50(%rbp),%xmm2
movss  -0x30(%rbp),%xmm1
mulss  -0x44(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x2c(%rbp),%xmm1
movss  -0x48(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x28(%rbp),%xmm0
movss  -0x4c(%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  -0x24(%rbp),%xmm0
movss  -0x4c(%rbp),%xmm2
movss  -0x2c(%rbp),%xmm1
mulss  -0x44(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x28(%rbp),%xmm1
movss  -0x50(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x30(%rbp),%xmm0
movss  -0x48(%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  -0x24(%rbp),%xmm0
movss  -0x48(%rbp),%xmm2
movss  -0x28(%rbp),%xmm1
mulss  -0x44(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x30(%rbp),%xmm1
movss  -0x4c(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x2c(%rbp),%xmm0
movss  -0x50(%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  -0x24(%rbp),%xmm0
movss  -0x44(%rbp),%xmm2
movss  -0x30(%rbp),%xmm1
mulss  -0x50(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x2c(%rbp),%xmm1
movss  -0x4c(%rbp),%xmm2
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x28(%rbp),%xmm0
movss  -0x48(%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    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vec4_SetZXYRotations>:
push   %r14
push   %rbx
sub    $0x88,%rsp
mov    %rsi,%rbx
mov    %rdi,%r14
movss  0x8(%rsi),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xebf(%rip),%xmm0
divsd  0xebf(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
call   1030 <sinf@plt>
movaps %xmm0,0x30(%rsp)
movss  0x10(%rsp),%xmm0
call   1040 <cosf@plt>
movaps %xmm0,0x70(%rsp)
xorps  %xmm0,%xmm0
movaps 0x30(%rsp),%xmm1
mulss  %xmm0,%xmm1
movaps %xmm1,0x60(%rsp)
movss  (%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xe72(%rip),%xmm0
divsd  0xe72(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x20(%rsp)
call   1030 <sinf@plt>
movaps %xmm0,0x10(%rsp)
movss  0x20(%rsp),%xmm0
call   1040 <cosf@plt>
movaps %xmm0,0x50(%rsp)
movaps 0x10(%rsp),%xmm0
mulss  0xe59(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movss  0x4(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xe23(%rip),%xmm0
divsd  0xe23(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
call   1030 <sinf@plt>
movaps %xmm0,0x40(%rsp)
movss  0xc(%rsp),%xmm0
call   1040 <cosf@plt>
xorps  %xmm8,%xmm8
movaps 0x40(%rsp),%xmm10
mulss  %xmm10,%xmm8
movaps 0x60(%rsp),%xmm4
movaps %xmm4,%xmm1
movaps 0x30(%rsp),%xmm6
unpcklps %xmm6,%xmm1
movaps 0x50(%rsp),%xmm12
movaps %xmm12,%xmm3
shufps $0x0,%xmm12,%xmm3
mulps  %xmm1,%xmm3
movaps 0x70(%rsp),%xmm7
movaps %xmm7,%xmm1
movaps 0x10(%rsp),%xmm13
mulss  %xmm13,%xmm1
addss  %xmm3,%xmm1
movaps %xmm4,%xmm9
movaps %xmm4,%xmm11
movaps 0x20(%rsp),%xmm4
mulss  %xmm4,%xmm9
addss  %xmm9,%xmm1
movaps 0xda6(%rip),%xmm2
movaps %xmm6,%xmm5
movaps %xmm6,%xmm14
xorps  %xmm2,%xmm5
mulss  %xmm4,%xmm5
addss  %xmm5,%xmm1
movaps %xmm7,%xmm6
mulss  %xmm4,%xmm6
shufps $0x0,%xmm6,%xmm6
addps  %xmm3,%xmm6
unpcklps %xmm11,%xmm14
movaps %xmm13,%xmm3
unpcklps %xmm4,%xmm3
mulps  %xmm14,%xmm3
addps  %xmm6,%xmm3
movaps %xmm11,%xmm6
shufps $0x0,%xmm11,%xmm6
unpcklps %xmm13,%xmm4
mulps  %xmm6,%xmm4
subps  %xmm4,%xmm3
mulss  %xmm13,%xmm11
mulss  %xmm12,%xmm7
subss  %xmm11,%xmm7
subss  %xmm9,%xmm7
addss  %xmm5,%xmm7
movaps %xmm1,%xmm9
xorps  %xmm2,%xmm9
xorps  %xmm3,%xmm2
movaps %xmm0,%xmm5
unpcklps %xmm8,%xmm5
shufps $0x40,%xmm5,%xmm5
movaps %xmm9,%xmm6
shufps $0xd4,%xmm2,%xmm9
shufps $0x42,%xmm2,%xmm9
movlhps %xmm1,%xmm2
movlhps %xmm3,%xmm1
shufps $0xd4,%xmm3,%xmm6
shufps $0x28,%xmm6,%xmm1
mulps  %xmm5,%xmm1
shufps $0x0,%xmm7,%xmm7
movaps %xmm8,%xmm5
movaps %xmm10,%xmm4
unpcklps %xmm10,%xmm5
movlhps %xmm8,%xmm0
shufps $0x24,%xmm0,%xmm5
mulps  %xmm7,%xmm5
addps  %xmm1,%xmm5
shufps $0x24,%xmm2,%xmm3
movaps %xmm8,%xmm0
shufps $0x0,%xmm10,%xmm0
mulps  %xmm3,%xmm0
addps  %xmm5,%xmm0
unpcklps %xmm8,%xmm4
shufps $0x54,%xmm4,%xmm4
mulps  %xmm9,%xmm4
addps  %xmm0,%xmm4
movups %xmm4,(%r14)
add    $0x88,%rsp
pop    %rbx
pop    %r14
ret

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

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