#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 sqrtf(float);
int /*<<< orphan*/ tdCross(float *, float *, float *);
int /*<<< orphan*/ tdMultiply(float *, float *, float *);
int /*<<< orphan*/ tdTranslate(float *, float, float, float);
void tdLookAt(float *m, float *eye, float *at, float *up) {
  float out[16];
  float F[3] = {at[0] - eye[0], at[1] - eye[1], at[2] - eye[2]};
  float fdiv = 1. / sqrtf(F[0] * F[0] + F[1] * F[1] + F[2] * F[2]);
  float f[3] = {F[0] * fdiv, F[1] * fdiv, F[2] * fdiv};
  float udiv = 1. / sqrtf(up[0] * up[0] + up[1] * up[1] + up[2] * up[2]);
  float UP[3] = {up[0] * udiv, up[1] * udiv, up[2] * udiv};
  float s[3];
  float u[3];
  tdCross(f, UP, s);
  tdCross(s, f, u);
  out[0] = s[0];
  out[1] = s[1];
  out[2] = s[2];
  out[3] = 0;
  out[4] = u[0];
  out[5] = u[1];
  out[6] = u[2];
  out[7] = 0;
  out[8] = -f[0];
  out[9] = -f[1];
  out[10] = -f[2];
  out[11] = 0;
  out[12] = 0;
  out[13] = 0;
  out[14] = 0;
  out[15] = 1;
  tdMultiply(m, out, m);
  tdTranslate(m, -eye[0], -eye[1], -eye[2]);
}


x86 assembly (clang, -O0):
<tdLookAt>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x10(%rbp),%rax
subss  (%rax),%xmm0
movss  %xmm0,-0x6c(%rbp)
mov    -0x18(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x10(%rbp),%rax
subss  0x4(%rax),%xmm0
movss  %xmm0,-0x68(%rbp)
mov    -0x18(%rbp),%rax
movss  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
subss  0x8(%rax),%xmm0
movss  %xmm0,-0x64(%rbp)
movss  -0x6c(%rbp),%xmm1
movss  -0x6c(%rbp),%xmm2
movss  -0x68(%rbp),%xmm0
mulss  -0x68(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x64(%rbp),%xmm0
movss  -0x64(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <sqrtf@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe2b(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0x6c(%rbp),%xmm0
mulss  -0x70(%rbp),%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  -0x68(%rbp),%xmm0
mulss  -0x70(%rbp),%xmm0
movss  %xmm0,-0x78(%rbp)
movss  -0x64(%rbp),%xmm0
mulss  -0x70(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x20(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x20(%rbp),%rax
mulss  0x4(%rax),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
movss  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movss  0x8(%rax),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <sqrtf@plt>
cvtsi2sd %eax,%xmm1
movsd  0xd9c(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x80(%rbp)
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
mulss  -0x80(%rbp),%xmm0
movss  %xmm0,-0x8c(%rbp)
ff
mov    -0x20(%rbp),%rax
movss  0x4(%rax),%xmm0
mulss  -0x80(%rbp),%xmm0
movss  %xmm0,-0x88(%rbp)
ff
mov    -0x20(%rbp),%rax
movss  0x8(%rax),%xmm0
mulss  -0x80(%rbp),%xmm0
movss  %xmm0,-0x84(%rbp)
ff
lea    -0x7c(%rbp),%rdi
lea    -0x8c(%rbp),%rsi
lea    -0x98(%rbp),%rdx
call   1040 <tdCross@plt>
lea    -0x98(%rbp),%rdi
lea    -0x7c(%rbp),%rsi
lea    -0xa4(%rbp),%rdx
call   1040 <tdCross@plt>
movss  -0x98(%rbp),%xmm0
ff
movss  %xmm0,-0x60(%rbp)
movss  -0x94(%rbp),%xmm0
ff
movss  %xmm0,-0x5c(%rbp)
movss  -0x90(%rbp),%xmm0
ff
movss  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0xa4(%rbp),%xmm0
ff
movss  %xmm0,-0x50(%rbp)
movss  -0xa0(%rbp),%xmm0
ff
movss  %xmm0,-0x4c(%rbp)
movss  -0x9c(%rbp),%xmm0
ff
movss  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x7c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x78(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x74(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x38(%rbp)
xorps  %xmm0,%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  0xc4d(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x60(%rbp),%rsi
mov    -0x8(%rbp),%rdx
call   1060 <tdMultiply@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
call   1030 <tdTranslate@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tdLookAt>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rcx,%rbx
mov    %rsi,%r15
mov    %rdi,%r14
movss  (%rdx),%xmm1
movss  0x4(%rdx),%xmm0
subss  (%rsi),%xmm1
movss  %xmm1,0x10(%rsp)
subss  0x4(%rsi),%xmm0
movss  %xmm0,0x18(%rsp)
movss  0x8(%rdx),%xmm2
subss  0x8(%rsi),%xmm2
movss  %xmm2,0x14(%rsp)
mulss  %xmm0,%xmm0
mulss  %xmm1,%xmm1
addss  %xmm0,%xmm1
movaps %xmm2,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <sqrtf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xe50(%rip),%xmm1
divsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  0x10(%rsp),%xmm1
mulss  %xmm0,%xmm1
movss  %xmm1,0x4(%rsp)
movss  0x18(%rsp),%xmm1
mulss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0x14(%rsp),%xmm1
mulss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  (%rbx),%xmm1
movss  0x4(%rbx),%xmm0
mulss  %xmm0,%xmm0
mulss  %xmm1,%xmm1
addss  %xmm0,%xmm1
movss  0x8(%rbx),%xmm0
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
call   1050 <sqrtf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xddf(%rip),%xmm1
divsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  (%rbx),%xmm1
mulss  %xmm0,%xmm1
movss  %xmm1,0x1c(%rsp)
movss  0x4(%rbx),%xmm1
mulss  %xmm0,%xmm1
movss  %xmm1,0x20(%rsp)
mulss  0x8(%rbx),%xmm0
movss  %xmm0,0x24(%rsp)
lea    0x4(%rsp),%r12
lea    0x1c(%rsp),%rsi
lea    0x34(%rsp),%rbx
mov    %r12,%rdi
mov    %rbx,%rdx
call   1040 <tdCross@plt>
lea    0x28(%rsp),%rdx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <tdCross@plt>
movss  0x34(%rsp),%xmm0
movss  %xmm0,0x40(%rsp)
mov    0x38(%rsp),%rax
mov    %rax,0x44(%rsp)
movl   $0x0,0x4c(%rsp)
movss  0x28(%rsp),%xmm0
movss  %xmm0,0x50(%rsp)
mov    0x2c(%rsp),%rax
mov    %rax,0x54(%rsp)
movl   $0x0,0x5c(%rsp)
movss  0x4(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
movss  0xc(%rsp),%xmm2
movaps 0xd3d(%rip),%xmm3
xorps  %xmm3,%xmm0
movss  %xmm0,0x60(%rsp)
xorps  %xmm3,%xmm1
movss  %xmm1,0x64(%rsp)
xorps  %xmm3,%xmm2
movss  %xmm2,0x68(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x6c(%rsp)
movl   $0x3f800000,0x7c(%rsp)
3f
lea    0x40(%rsp),%rsi
mov    %r14,%rdi
mov    %r14,%rdx
call   1060 <tdMultiply@plt>
movss  (%r15),%xmm0
movss  0x4(%r15),%xmm1
movss  0x8(%r15),%xmm2
movaps 0xcea(%rip),%xmm3
xorps  %xmm3,%xmm0
xorps  %xmm3,%xmm1
xorps  %xmm3,%xmm2
mov    %r14,%rdi
call   1030 <tdTranslate@plt>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @tdLookAt(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]
%10 = alloca [3 x float]
%11 = alloca float
%12 = alloca [3 x float]
%13 = alloca float
%14 = alloca [3 x float]
%15 = alloca [3 x float]
%16 = alloca [3 x float]
store float* %0, float** %5
store float* %1, float** %6
store float* %2, float** %7
store float* %3, float** %8
%17 = getelementptr inbounds [3 x float], [3 x float]* %10, i64 0, i64 0
%18 = load float*, float** %7
%19 = getelementptr inbounds float, float* %18, i64 0
%20 = load float, float* %19
%21 = load float*, float** %6
%22 = getelementptr inbounds float, float* %21, i64 0
%23 = load float, float* %22
%24 = fsub float %20, %23
store float %24, float* %17
%25 = getelementptr inbounds float, float* %17, i64 1
%26 = load float*, float** %7
%27 = getelementptr inbounds float, float* %26, i64 1
%28 = load float, float* %27
%29 = load float*, float** %6
%30 = getelementptr inbounds float, float* %29, i64 1
%31 = load float, float* %30
%32 = fsub float %28, %31
store float %32, float* %25
%33 = getelementptr inbounds float, float* %25, i64 1
%34 = load float*, float** %7
%35 = getelementptr inbounds float, float* %34, i64 2
%36 = load float, float* %35
%37 = load float*, float** %6
%38 = getelementptr inbounds float, float* %37, i64 2
%39 = load float, float* %38
%40 = fsub float %36, %39
store float %40, float* %33
%41 = getelementptr inbounds [3 x float], [3 x float]* %10, i64 0, i64 0
%42 = load float, float* %41
%43 = getelementptr inbounds [3 x float], [3 x float]* %10, i64 0, i64 0
%44 = load float, float* %43
%45 = getelementptr inbounds [3 x float], [3 x float]* %10, i64 0, i64 1
%46 = load float, float* %45
%47 = getelementptr inbounds [3 x float], [3 x float]* %10, i64 0, i64 1
%48 = load float, float* %47
%49 = fmul float %46, %48
%50 = call float @llvm.fmuladd.f32(float %42, float %44, float %49)
%51 = getelementptr inbounds [3 x float], [3 x float]* %10, i64 0, i64 2
%52 = load float, float* %51
%53 = getelementptr inbounds [3 x float], [3 x float]* %10, i64 0, i64 2
%54 = load float, float* %53
%55 = call float @llvm.fmuladd.f32(float %52, float %54, float %50)
%56 = call i32 @sqrtf(float %55)
%57 = sitofp i32 %56 to double
%58 = fdiv double 1.000000e+00, %57
%59 = fptrunc double %58 to float
store float %59, float* %11
%60 = getelementptr inbounds [3 x float], [3 x float]* %12, i64 0, i64 0
%61 = getelementptr inbounds [3 x float], [3 x float]* %10, i64 0, i64 0
%62 = load float, float* %61
%63 = load float, float* %11
%64 = fmul float %62, %63
store float %64, float* %60
%65 = getelementptr inbounds float, float* %60, i64 1
%66 = getelementptr inbounds [3 x float], [3 x float]* %10, i64 0, i64 1
%67 = load float, float* %66
%68 = load float, float* %11
%69 = fmul float %67, %68
store float %69, float* %65
%70 = getelementptr inbounds float, float* %65, i64 1
%71 = getelementptr inbounds [3 x float], [3 x float]* %10, i64 0, i64 2
%72 = load float, float* %71
%73 = load float, float* %11
%74 = fmul float %72, %73
store float %74, float* %70
%75 = load float*, float** %8
%76 = getelementptr inbounds float, float* %75, i64 0
%77 = load float, float* %76
%78 = load float*, float** %8
%79 = getelementptr inbounds float, float* %78, i64 0
%80 = load float, float* %79
%81 = load float*, float** %8
%82 = getelementptr inbounds float, float* %81, i64 1
%83 = load float, float* %82
%84 = load float*, float** %8
%85 = getelementptr inbounds float, float* %84, i64 1
%86 = load float, float* %85
%87 = fmul float %83, %86
%88 = call float @llvm.fmuladd.f32(float %77, float %80, float %87)
%89 = load float*, float** %8
%90 = getelementptr inbounds float, float* %89, i64 2
%91 = load float, float* %90
%92 = load float*, float** %8
%93 = getelementptr inbounds float, float* %92, i64 2
%94 = load float, float* %93
%95 = call float @llvm.fmuladd.f32(float %91, float %94, float %88)
%96 = call i32 @sqrtf(float %95)
%97 = sitofp i32 %96 to double
%98 = fdiv double 1.000000e+00, %97
%99 = fptrunc double %98 to float
store float %99, float* %13
%100 = getelementptr inbounds [3 x float], [3 x float]* %14, i64 0, i64 0
%101 = load float*, float** %8
%102 = getelementptr inbounds float, float* %101, i64 0
%103 = load float, float* %102
%104 = load float, float* %13
%105 = fmul float %103, %104
store float %105, float* %100
%106 = getelementptr inbounds float, float* %100, i64 1
%107 = load float*, float** %8
%108 = getelementptr inbounds float, float* %107, i64 1
%109 = load float, float* %108
%110 = load float, float* %13
%111 = fmul float %109, %110
store float %111, float* %106
%112 = getelementptr inbounds float, float* %106, i64 1
%113 = load float*, float** %8
%114 = getelementptr inbounds float, float* %113, i64 2
%115 = load float, float* %114
%116 = load float, float* %13
%117 = fmul float %115, %116
store float %117, float* %112
%118 = getelementptr inbounds [3 x float], [3 x float]* %12, i64 0, i64 0
%119 = getelementptr inbounds [3 x float], [3 x float]* %14, i64 0, i64 0
%120 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 0
%121 = call i32 @tdCross(float* %118, float* %119, float* %120)
%122 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 0
%123 = getelementptr inbounds [3 x float], [3 x float]* %12, i64 0, i64 0
%124 = getelementptr inbounds [3 x float], [3 x float]* %16, i64 0, i64 0
%125 = call i32 @tdCross(float* %122, float* %123, float* %124)
%126 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 0
%127 = load float, float* %126
%128 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 0
store float %127, float* %128
%129 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 1
%130 = load float, float* %129
%131 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 1
store float %130, float* %131
%132 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 2
%133 = load float, float* %132
%134 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 2
store float %133, float* %134
%135 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 3
store float 0.000000e+00, float* %135
%136 = getelementptr inbounds [3 x float], [3 x float]* %16, i64 0, i64 0
%137 = load float, float* %136
%138 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 4
store float %137, float* %138
%139 = getelementptr inbounds [3 x float], [3 x float]* %16, i64 0, i64 1
%140 = load float, float* %139
%141 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 5
store float %140, float* %141
%142 = getelementptr inbounds [3 x float], [3 x float]* %16, i64 0, i64 2
%143 = load float, float* %142
%144 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 6
store float %143, float* %144
%145 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 7
store float 0.000000e+00, float* %145
%146 = getelementptr inbounds [3 x float], [3 x float]* %12, i64 0, i64 0
%147 = load float, float* %146
%148 = fneg float %147
%149 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 8
store float %148, float* %149
%150 = getelementptr inbounds [3 x float], [3 x float]* %12, i64 0, i64 1
%151 = load float, float* %150
%152 = fneg float %151
%153 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 9
store float %152, float* %153
%154 = getelementptr inbounds [3 x float], [3 x float]* %12, i64 0, i64 2
%155 = load float, float* %154
%156 = fneg float %155
%157 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 10
store float %156, float* %157
%158 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 11
store float 0.000000e+00, float* %158
%159 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 12
store float 0.000000e+00, float* %159
%160 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 13
store float 0.000000e+00, float* %160
%161 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 14
store float 0.000000e+00, float* %161
%162 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 15
store float 1.000000e+00, float* %162
%163 = load float*, float** %5
%164 = getelementptr inbounds [16 x float], [16 x float]* %9, i64 0, i64 0
%165 = load float*, float** %5
%166 = call i32 @tdMultiply(float* %163, float* %164, float* %165)
%167 = load float*, float** %5
%168 = load float*, float** %6
%169 = getelementptr inbounds float, float* %168, i64 0
%170 = load float, float* %169
%171 = fneg float %170
%172 = load float*, float** %6
%173 = getelementptr inbounds float, float* %172, i64 1
%174 = load float, float* %173
%175 = fneg float %174
%176 = load float*, float** %6
%177 = getelementptr inbounds float, float* %176, i64 2
%178 = load float, float* %177
%179 = fneg float %178
%180 = call i32 @tdTranslate(float* %167, float %171, float %175, float %179)
ret void
}

LLVM IR (-O2):
define void @tdLookAt(float* %0, float* nocapture %1, float* nocapture %2, float* nocapture %3) {
%5 = alloca [16 x float]
%6 = alloca [3 x float]
%7 = alloca [3 x float]
%8 = alloca [3 x float]
%9 = alloca [3 x float]
%10 = bitcast [16 x float]* %5 to i8*
%11 = load float, float* %2
%12 = load float, float* %1
%13 = fsub float %11, %12
%14 = getelementptr inbounds float, float* %2, i64 1
%15 = load float, float* %14
%16 = getelementptr inbounds float, float* %1, i64 1
%17 = load float, float* %16
%18 = fsub float %15, %17
%19 = getelementptr inbounds float, float* %2, i64 2
%20 = load float, float* %19
%21 = getelementptr inbounds float, float* %1, i64 2
%22 = load float, float* %21
%23 = fsub float %20, %22
%24 = fmul float %18, %18
%25 = tail call float @llvm.fmuladd.f32(float %13, float %13, float %24)
%26 = tail call float @llvm.fmuladd.f32(float %23, float %23, float %25)
%27 = tail call i32 @sqrtf(float %26)
%28 = sitofp i32 %27 to double
%29 = fdiv double 1.000000e+00, %28
%30 = fptrunc double %29 to float
%31 = bitcast [3 x float]* %6 to i8*
%32 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 0
%33 = fmul float %13, %30
store float %33, float* %32
%34 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 1
%35 = fmul float %18, %30
store float %35, float* %34
%36 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 2
%37 = fmul float %23, %30
store float %37, float* %36
%38 = load float, float* %3
%39 = getelementptr inbounds float, float* %3, i64 1
%40 = load float, float* %39
%41 = fmul float %40, %40
%42 = tail call float @llvm.fmuladd.f32(float %38, float %38, float %41)
%43 = getelementptr inbounds float, float* %3, i64 2
%44 = load float, float* %43
%45 = tail call float @llvm.fmuladd.f32(float %44, float %44, float %42)
%46 = tail call i32 @sqrtf(float %45)
%47 = sitofp i32 %46 to double
%48 = fdiv double 1.000000e+00, %47
%49 = fptrunc double %48 to float
%50 = bitcast [3 x float]* %7 to i8*
%51 = getelementptr inbounds [3 x float], [3 x float]* %7, i64 0, i64 0
%52 = load float, float* %3
%53 = fmul float %52, %49
store float %53, float* %51
%54 = getelementptr inbounds [3 x float], [3 x float]* %7, i64 0, i64 1
%55 = load float, float* %39
%56 = fmul float %55, %49
store float %56, float* %54
%57 = getelementptr inbounds [3 x float], [3 x float]* %7, i64 0, i64 2
%58 = load float, float* %43
%59 = fmul float %58, %49
store float %59, float* %57
%60 = bitcast [3 x float]* %8 to i8*
%61 = bitcast [3 x float]* %9 to i8*
%62 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 0
%63 = call i32 @tdCross(float* %32, float* %51, float* %62)
%64 = getelementptr inbounds [3 x float], [3 x float]* %9, i64 0, i64 0
%65 = call i32 @tdCross(float* %62, float* %32, float* %64)
%66 = load float, float* %62
%67 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 0
store float %66, float* %67
%68 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 1
%69 = load float, float* %68
%70 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 1
store float %69, float* %70
%71 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 2
%72 = load float, float* %71
%73 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 2
store float %72, float* %73
%74 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 3
store float 0.000000e+00, float* %74
%75 = load float, float* %64
%76 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 4
store float %75, float* %76
%77 = getelementptr inbounds [3 x float], [3 x float]* %9, i64 0, i64 1
%78 = load float, float* %77
%79 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 5
store float %78, float* %79
%80 = getelementptr inbounds [3 x float], [3 x float]* %9, i64 0, i64 2
%81 = load float, float* %80
%82 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 6
store float %81, float* %82
%83 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 7
store float 0.000000e+00, float* %83
%84 = load float, float* %32
%85 = fneg float %84
%86 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 8
store float %85, float* %86
%87 = load float, float* %34
%88 = fneg float %87
%89 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 9
store float %88, float* %89
%90 = load float, float* %36
%91 = fneg float %90
%92 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 10
store float %91, float* %92
%93 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 11
%94 = getelementptr inbounds [16 x float], [16 x float]* %5, i64 0, i64 15
%95 = bitcast float* %93 to i8*
store float 1.000000e+00, float* %94
%96 = call i32 @tdMultiply(float* %0, float* %67, float* %0)
%97 = load float, float* %1
%98 = fneg float %97
%99 = load float, float* %16
%100 = fneg float %99
%101 = load float, float* %21
%102 = fneg float %101
%103 = call i32 @tdTranslate(float* %0, float %98, float %100, float %102)
ret void
}