#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 mtxSRT(float *_result, float _sx, float _sy, float _sz, float _ax,
            float _ay, float _az, float _tx, float _ty, float _tz) {
  const float sx = sinf(_ax);
  const float cx = cosf(_ax);
  const float sy = sinf(_ay);
  const float cy = cosf(_ay);
  const float sz = sinf(_az);
  const float cz = cosf(_az);
  const float sxsz = sx * sz;
  const float cycz = cy * cz;
  _result[0] = _sx * (cycz - sxsz * sy);
  _result[1] = _sx * -cx * sz;
  _result[2] = _sx * (cz * sy + cy * sxsz);
  _result[3] = 0.0f;
  _result[4] = _sy * (cz * sx * sy + cy * sz);
  _result[5] = _sy * cx * cz;
  _result[6] = _sy * (sy * sz - cycz * sx);
  _result[7] = 0.0f;
  _result[8] = _sz * -cx * sy;
  _result[9] = _sz * sx;
  _result[10] = _sz * cx * cy;
  _result[11] = 0.0f;
  _result[12] = _tx;
  _result[13] = _ty;
  _result[14] = _tz;
  _result[15] = 1.0f;
}


x86 assembly (clang, -O0):
<mtxSRT>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movss  0x10(%rbp),%xmm8
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
movss  %xmm2,-0x14(%rbp)
movss  %xmm3,-0x18(%rbp)
movss  %xmm4,-0x1c(%rbp)
movss  %xmm5,-0x20(%rbp)
movss  %xmm6,-0x24(%rbp)
movss  %xmm7,-0x28(%rbp)
movss  -0x18(%rbp),%xmm0
call   1030 <sinf@plt>
movss  %xmm0,-0x2c(%rbp)
movss  -0x18(%rbp),%xmm0
call   1040 <cosf@plt>
movss  %xmm0,-0x30(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1030 <sinf@plt>
movss  %xmm0,-0x34(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1040 <cosf@plt>
movss  %xmm0,-0x38(%rbp)
movss  -0x20(%rbp),%xmm0
call   1030 <sinf@plt>
movss  %xmm0,-0x3c(%rbp)
movss  -0x20(%rbp),%xmm0
call   1040 <cosf@plt>
movss  %xmm0,-0x40(%rbp)
movss  -0x2c(%rbp),%xmm0
mulss  -0x3c(%rbp),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x38(%rbp),%xmm0
mulss  -0x40(%rbp),%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0x48(%rbp),%xmm2
movss  -0x44(%rbp),%xmm1
movss  -0x34(%rbp),%xmm3
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0xc(%rbp),%xmm0
movss  -0x30(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm1,%xmm0
mulss  -0x3c(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x4(%rax)
movss  -0xc(%rbp),%xmm0
movss  -0x40(%rbp),%xmm1
movss  -0x34(%rbp),%xmm3
movss  -0x38(%rbp),%xmm2
mulss  -0x44(%rbp),%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0xc(%rax)
movss  -0x10(%rbp),%xmm0
movss  -0x40(%rbp),%xmm1
mulss  -0x2c(%rbp),%xmm1
movss  -0x34(%rbp),%xmm3
movss  -0x38(%rbp),%xmm2
mulss  -0x3c(%rbp),%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x10(%rax)
movss  -0x10(%rbp),%xmm0
mulss  -0x30(%rbp),%xmm0
mulss  -0x40(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x14(%rax)
movss  -0x10(%rbp),%xmm0
movss  -0x34(%rbp),%xmm1
movss  -0x3c(%rbp),%xmm3
movss  -0x48(%rbp),%xmm2
mulss  -0x2c(%rbp),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x1c(%rax)
movss  -0x14(%rbp),%xmm0
movss  -0x30(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm1,%xmm0
mulss  -0x34(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x20(%rax)
movss  -0x14(%rbp),%xmm0
mulss  -0x2c(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x24(%rax)
movss  -0x14(%rbp),%xmm0
mulss  -0x30(%rbp),%xmm0
mulss  -0x38(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x28(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x2c(%rax)
movss  -0x24(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x30(%rax)
movss  -0x28(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x34(%rax)
movss  0x10(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x38(%rax)
mov    -0x8(%rbp),%rax
movss  0xc6e(%rip),%xmm0
movss  %xmm0,0x3c(%rax)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mtxSRT>:
push   %rbx
sub    $0x40,%rsp
movss  %xmm7,0x2c(%rsp)
movss  %xmm6,0x28(%rsp)
movss  %xmm5,0xc(%rsp)
movss  %xmm4,0x8(%rsp)
movss  %xmm3,0x30(%rsp)
movss  %xmm2,0x24(%rsp)
movss  %xmm1,0x20(%rsp)
movss  %xmm0,0x1c(%rsp)
mov    %rdi,%rbx
movaps %xmm3,%xmm0
call   1030 <sinf@plt>
movss  %xmm0,0x18(%rsp)
movss  0x30(%rsp),%xmm0
call   1040 <cosf@plt>
movaps %xmm0,0x30(%rsp)
movss  0x8(%rsp),%xmm0
call   1030 <sinf@plt>
movss  %xmm0,0x14(%rsp)
movss  0x8(%rsp),%xmm0
call   1040 <cosf@plt>
movss  %xmm0,0x8(%rsp)
movss  0xc(%rsp),%xmm0
call   1030 <sinf@plt>
movss  %xmm0,0x10(%rsp)
movss  0xc(%rsp),%xmm0
call   1040 <cosf@plt>
movss  0x18(%rsp),%xmm7
movaps %xmm7,%xmm2
movss  0x10(%rsp),%xmm13
mulss  %xmm13,%xmm2
movss  0x8(%rsp),%xmm9
movaps %xmm9,%xmm1
mulss  %xmm0,%xmm1
movaps %xmm9,%xmm3
mulss  %xmm2,%xmm3
movss  0x14(%rsp),%xmm12
mulss  %xmm12,%xmm2
movaps %xmm1,%xmm4
subss  %xmm2,%xmm4
movss  0x1c(%rsp),%xmm5
mulss  %xmm5,%xmm4
movss  %xmm4,(%rbx)
movaps 0xdf8(%rip),%xmm2
movaps 0x30(%rsp),%xmm6
xorps  %xmm6,%xmm2
movaps %xmm2,%xmm4
mulss  %xmm5,%xmm4
movaps %xmm5,%xmm8
mulss  %xmm13,%xmm4
movss  %xmm4,0x4(%rbx)
movaps %xmm7,%xmm4
movaps %xmm7,%xmm11
mulss  %xmm0,%xmm4
movaps %xmm6,%xmm5
movaps %xmm6,%xmm10
movss  0x20(%rsp),%xmm6
mulss  %xmm6,%xmm5
mulss  %xmm0,%xmm5
mulss  %xmm12,%xmm0
addss  %xmm3,%xmm0
mulss  %xmm8,%xmm0
movss  %xmm0,0x8(%rbx)
movl   $0x0,0xc(%rbx)
movaps %xmm9,%xmm0
mulss  %xmm13,%xmm0
mulss  %xmm12,%xmm4
addss  %xmm0,%xmm4
mulss  %xmm6,%xmm4
movss  %xmm4,0x10(%rbx)
movss  %xmm5,0x14(%rbx)
mulss  %xmm11,%xmm1
movaps %xmm13,%xmm0
mulss  %xmm12,%xmm0
subss  %xmm1,%xmm0
mulss  %xmm6,%xmm0
movss  %xmm0,0x18(%rbx)
movl   $0x0,0x1c(%rbx)
movss  0x24(%rsp),%xmm0
mulss  %xmm0,%xmm2
mulss  %xmm12,%xmm2
movss  %xmm2,0x20(%rbx)
movaps %xmm11,%xmm1
mulss  %xmm0,%xmm1
movss  %xmm1,0x24(%rbx)
movaps %xmm10,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm9,%xmm1
movss  %xmm1,0x28(%rbx)
movl   $0x0,0x2c(%rbx)
movss  0x28(%rsp),%xmm0
movss  %xmm0,0x30(%rbx)
movss  0x2c(%rsp),%xmm0
movss  %xmm0,0x34(%rbx)
movss  0x50(%rsp),%xmm0
movss  %xmm0,0x38(%rbx)
movl   $0x3f800000,0x3c(%rbx)
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @mtxSRT(float* %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9) {
%11 = alloca float*
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
%24 = alloca float
%25 = alloca float
%26 = alloca float
%27 = alloca float
%28 = alloca float
store float* %0, float** %11
store float %1, float* %12
store float %2, float* %13
store float %3, float* %14
store float %4, float* %15
store float %5, float* %16
store float %6, float* %17
store float %7, float* %18
store float %8, float* %19
store float %9, float* %20
%29 = load float, float* %15
%30 = call float @sinf(float %29)
store float %30, float* %21
%31 = load float, float* %15
%32 = call float @cosf(float %31)
store float %32, float* %22
%33 = load float, float* %16
%34 = call float @sinf(float %33)
store float %34, float* %23
%35 = load float, float* %16
%36 = call float @cosf(float %35)
store float %36, float* %24
%37 = load float, float* %17
%38 = call float @sinf(float %37)
store float %38, float* %25
%39 = load float, float* %17
%40 = call float @cosf(float %39)
store float %40, float* %26
%41 = load float, float* %21
%42 = load float, float* %25
%43 = fmul float %41, %42
store float %43, float* %27
%44 = load float, float* %24
%45 = load float, float* %26
%46 = fmul float %44, %45
store float %46, float* %28
%47 = load float, float* %12
%48 = load float, float* %28
%49 = load float, float* %27
%50 = load float, float* %23
%51 = fneg float %49
%52 = call float @llvm.fmuladd.f32(float %51, float %50, float %48)
%53 = fmul float %47, %52
%54 = load float*, float** %11
%55 = getelementptr inbounds float, float* %54, i64 0
store float %53, float* %55
%56 = load float, float* %12
%57 = load float, float* %22
%58 = fneg float %57
%59 = fmul float %56, %58
%60 = load float, float* %25
%61 = fmul float %59, %60
%62 = load float*, float** %11
%63 = getelementptr inbounds float, float* %62, i64 1
store float %61, float* %63
%64 = load float, float* %12
%65 = load float, float* %26
%66 = load float, float* %23
%67 = load float, float* %24
%68 = load float, float* %27
%69 = fmul float %67, %68
%70 = call float @llvm.fmuladd.f32(float %65, float %66, float %69)
%71 = fmul float %64, %70
%72 = load float*, float** %11
%73 = getelementptr inbounds float, float* %72, i64 2
store float %71, float* %73
%74 = load float*, float** %11
%75 = getelementptr inbounds float, float* %74, i64 3
store float 0.000000e+00, float* %75
%76 = load float, float* %13
%77 = load float, float* %26
%78 = load float, float* %21
%79 = fmul float %77, %78
%80 = load float, float* %23
%81 = load float, float* %24
%82 = load float, float* %25
%83 = fmul float %81, %82
%84 = call float @llvm.fmuladd.f32(float %79, float %80, float %83)
%85 = fmul float %76, %84
%86 = load float*, float** %11
%87 = getelementptr inbounds float, float* %86, i64 4
store float %85, float* %87
%88 = load float, float* %13
%89 = load float, float* %22
%90 = fmul float %88, %89
%91 = load float, float* %26
%92 = fmul float %90, %91
%93 = load float*, float** %11
%94 = getelementptr inbounds float, float* %93, i64 5
store float %92, float* %94
%95 = load float, float* %13
%96 = load float, float* %23
%97 = load float, float* %25
%98 = load float, float* %28
%99 = load float, float* %21
%100 = fmul float %98, %99
%101 = fneg float %100
%102 = call float @llvm.fmuladd.f32(float %96, float %97, float %101)
%103 = fmul float %95, %102
%104 = load float*, float** %11
%105 = getelementptr inbounds float, float* %104, i64 6
store float %103, float* %105
%106 = load float*, float** %11
%107 = getelementptr inbounds float, float* %106, i64 7
store float 0.000000e+00, float* %107
%108 = load float, float* %14
%109 = load float, float* %22
%110 = fneg float %109
%111 = fmul float %108, %110
%112 = load float, float* %23
%113 = fmul float %111, %112
%114 = load float*, float** %11
%115 = getelementptr inbounds float, float* %114, i64 8
store float %113, float* %115
%116 = load float, float* %14
%117 = load float, float* %21
%118 = fmul float %116, %117
%119 = load float*, float** %11
%120 = getelementptr inbounds float, float* %119, i64 9
store float %118, float* %120
%121 = load float, float* %14
%122 = load float, float* %22
%123 = fmul float %121, %122
%124 = load float, float* %24
%125 = fmul float %123, %124
%126 = load float*, float** %11
%127 = getelementptr inbounds float, float* %126, i64 10
store float %125, float* %127
%128 = load float*, float** %11
%129 = getelementptr inbounds float, float* %128, i64 11
store float 0.000000e+00, float* %129
%130 = load float, float* %18
%131 = load float*, float** %11
%132 = getelementptr inbounds float, float* %131, i64 12
store float %130, float* %132
%133 = load float, float* %19
%134 = load float*, float** %11
%135 = getelementptr inbounds float, float* %134, i64 13
store float %133, float* %135
%136 = load float, float* %20
%137 = load float*, float** %11
%138 = getelementptr inbounds float, float* %137, i64 14
store float %136, float* %138
%139 = load float*, float** %11
%140 = getelementptr inbounds float, float* %139, i64 15
store float 1.000000e+00, float* %140
ret void
}

LLVM IR (-O2):
define void @mtxSRT(float* nocapture writeonly %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9) {
%11 = tail call float @sinf(float %4)
%12 = tail call float @cosf(float %4)
%13 = tail call float @sinf(float %5)
%14 = tail call float @cosf(float %5)
%15 = tail call float @sinf(float %6)
%16 = tail call float @cosf(float %6)
%17 = fmul float %11, %15
%18 = fmul float %14, %16
%19 = fneg float %17
%20 = tail call float @llvm.fmuladd.f32(float %19, float %13, float %18)
%21 = fmul float %20, %1
store float %21, float* %0
%22 = fneg float %12
%23 = fmul float %22, %1
%24 = fmul float %23, %15
%25 = getelementptr inbounds float, float* %0, i64 1
store float %24, float* %25
%26 = fmul float %14, %17
%27 = tail call float @llvm.fmuladd.f32(float %16, float %13, float %26)
%28 = fmul float %27, %1
%29 = getelementptr inbounds float, float* %0, i64 2
store float %28, float* %29
%30 = getelementptr inbounds float, float* %0, i64 3
store float 0.000000e+00, float* %30
%31 = fmul float %11, %16
%32 = fmul float %14, %15
%33 = tail call float @llvm.fmuladd.f32(float %31, float %13, float %32)
%34 = fmul float %33, %2
%35 = getelementptr inbounds float, float* %0, i64 4
store float %34, float* %35
%36 = fmul float %12, %2
%37 = fmul float %36, %16
%38 = getelementptr inbounds float, float* %0, i64 5
store float %37, float* %38
%39 = fneg float %18
%40 = fmul float %11, %39
%41 = tail call float @llvm.fmuladd.f32(float %13, float %15, float %40)
%42 = fmul float %41, %2
%43 = getelementptr inbounds float, float* %0, i64 6
store float %42, float* %43
%44 = getelementptr inbounds float, float* %0, i64 7
store float 0.000000e+00, float* %44
%45 = fmul float %22, %3
%46 = fmul float %45, %13
%47 = getelementptr inbounds float, float* %0, i64 8
store float %46, float* %47
%48 = fmul float %11, %3
%49 = getelementptr inbounds float, float* %0, i64 9
store float %48, float* %49
%50 = fmul float %12, %3
%51 = fmul float %50, %14
%52 = getelementptr inbounds float, float* %0, i64 10
store float %51, float* %52
%53 = getelementptr inbounds float, float* %0, i64 11
store float 0.000000e+00, float* %53
%54 = getelementptr inbounds float, float* %0, i64 12
store float %7, float* %54
%55 = getelementptr inbounds float, float* %0, i64 13
store float %8, float* %55
%56 = getelementptr inbounds float, float* %0, i64 14
store float %9, float* %56
%57 = getelementptr inbounds float, float* %0, i64 15
store float 1.000000e+00, float* %57
ret void
}