#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 */
double acos(double);
float cos(double);
int /*<<< orphan*/ normalizeVector(float *, int);
float sin(double);
void slerp(float v0[4], float v1[4], double t, float result[4]) {
  int i;
  normalizeVector(v0, 4);
  normalizeVector(v1, 4);
  double dot = v0[0] * v1[0] + v0[1] * v1[1] + v0[2] * v1[2] + v0[3] * v1[3];
  const double DOT_THRESHOLD = 0.9995;
  if (dot > DOT_THRESHOLD) {
    for (i = 0; i < 4; i++) {
      result[i] = v0[i] + t * (v1[i] - v0[i]);
    }
    normalizeVector(result, 4);
    return;
  }
  if (dot < -1)
    dot = -1;
  if (dot > 1)
    dot = 1;
  double theta_0 = acos(dot);
  double theta = theta_0 * t;
  float v2[4] = {0, 0, 0, 0};
  for (i = 0; i < 4; i++) {
    v2[i] = v1[i] - v0[i] * dot;
  }
  normalizeVector(v2, 4);
  for (i = 0; i < 4; i++) {
    result[i] = v0[i] * cos(theta) + v2[i] * sin(theta);
  }
  return;
}


x86 assembly (clang, -O0):
<slerp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x4,%esi
call   1030 <normalizeVector@plt>
mov    -0x10(%rbp),%rdi
mov    $0x4,%esi
call   1030 <normalizeVector@plt>
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x10(%rbp),%rax
mulss  0x4(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm1
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  0xc(%rax),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe0c(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xdfa(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    128f <slerp+0x13f>
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    127c <slerp+0x12c>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
subss  (%rax,%rcx,4),%xmm2
cvtss2sd %xmm2,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1217 <slerp+0xc7>
mov    -0x20(%rbp),%rdi
mov    $0x4,%esi
call   1030 <normalizeVector@plt>
jmp    140b <slerp+0x2bb>
movsd  0xd71(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
jbe    12af <slerp+0x15f>
movsd  0xd5e(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xd54(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    12d3 <slerp+0x183>
movsd  0xd42(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1040 <acos@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1050 <memset@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    1374 <slerp+0x224>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  -0x30(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movslq -0x24(%rbp),%rax
movss  %xmm0,-0x60(%rbp,%rax,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1308 <slerp+0x1b8>
lea    -0x60(%rbp),%rdi
mov    $0x4,%esi
call   1030 <normalizeVector@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    1406 <slerp+0x2b6>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x64(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1070 <cos@plt>
movss  %xmm0,-0x68(%rbp)
movslq -0x24(%rbp),%rax
movss  -0x60(%rbp,%rax,4),%xmm0
movss  %xmm0,-0x6c(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1060 <sin@plt>
movss  -0x6c(%rbp),%xmm1
movss  -0x68(%rbp),%xmm2
movaps %xmm0,%xmm3
movss  -0x64(%rbp),%xmm0
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1389 <slerp+0x239>
jmp    140b <slerp+0x2bb>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<slerp>:
push   %r15
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    %rdx,%r14
movsd  %xmm0,0x8(%rsp)
mov    %rsi,%rbx
mov    %rdi,%r15
mov    $0x4,%esi
call   1030 <normalizeVector@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1030 <normalizeVector@plt>
movss  (%r15),%xmm0
movss  0x4(%r15),%xmm2
movss  (%rbx),%xmm1
mulss  0x4(%rbx),%xmm2
movaps %xmm0,%xmm3
mulss  %xmm1,%xmm3
addss  %xmm2,%xmm3
movss  0x8(%r15),%xmm4
mulss  0x8(%rbx),%xmm4
addss  %xmm3,%xmm4
movss  0xc(%r15),%xmm2
mulss  0xc(%rbx),%xmm2
addss  %xmm4,%xmm2
xorps  %xmm3,%xmm3
cvtss2sd %xmm2,%xmm3
ucomisd 0xe45(%rip),%xmm3
jbe    128d <slerp+0x14d>
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
subss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
movsd  0x8(%rsp),%xmm3
mulsd  %xmm3,%xmm0
addsd  %xmm2,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%r14)
movss  0x4(%r15),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movss  0x4(%rbx),%xmm2
subss  %xmm0,%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x4(%r14)
movss  0x8(%r15),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movss  0x8(%rbx),%xmm2
subss  %xmm0,%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x8(%r14)
movss  0xc(%r15),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movss  0xc(%rbx),%xmm2
subss  %xmm0,%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0xc(%r14)
mov    %r14,%rdi
mov    $0x4,%esi
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <normalizeVector@plt>
movss  0xd7b(%rip),%xmm0
maxss  %xmm2,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movsd  0xd60(%rip),%xmm0
minsd  %xmm1,%xmm0
movapd %xmm0,0x10(%rsp)
call   1040 <acos@plt>
cvtps2pd 0x8(%rbx),%xmm1
cvtps2pd (%rbx),%xmm2
cvtps2pd 0x8(%r15),%xmm3
cvtps2pd (%r15),%xmm4
movapd 0x10(%rsp),%xmm5
unpcklpd %xmm5,%xmm5
mulpd  %xmm5,%xmm4
subpd  %xmm4,%xmm2
mulpd  %xmm3,%xmm5
subpd  %xmm5,%xmm1
cvtpd2ps %xmm1,%xmm1
cvtpd2ps %xmm2,%xmm2
unpcklpd %xmm1,%xmm2
movapd %xmm2,0x20(%rsp)
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x20(%rsp),%rdi
mov    $0x4,%esi
call   1030 <normalizeVector@plt>
movss  (%r15),%xmm0
movss  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1060 <cos@plt>
movss  %xmm0,0x4(%rsp)
movss  0x20(%rsp),%xmm0
movss  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <sin@plt>
mulss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
mulss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,(%r14)
movss  0x4(%r15),%xmm0
movss  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1060 <cos@plt>
movss  %xmm0,0x4(%rsp)
movss  0x24(%rsp),%xmm0
movss  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <sin@plt>
mulss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
mulss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x4(%r14)
movss  0x8(%r15),%xmm0
movss  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1060 <cos@plt>
movss  %xmm0,0x4(%rsp)
movss  0x28(%rsp),%xmm0
movss  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <sin@plt>
mulss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
mulss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x8(%r14)
movss  0xc(%r15),%xmm0
movss  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1060 <cos@plt>
movss  %xmm0,0x4(%rsp)
movss  0x2c(%rsp),%xmm0
movss  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <sin@plt>
mulss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
mulss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%r14)
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @slerp(float* %0, float* %1, double %2, float* %3) {
%5 = alloca float*
%6 = alloca float*
%7 = alloca double
%8 = alloca float*
%9 = alloca i32
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca [4 x float]
store float* %0, float** %5
store float* %1, float** %6
store double %2, double* %7
store float* %3, float** %8
%15 = load float*, float** %5
%16 = call i32 @normalizeVector(float* %15, i32 4)
%17 = load float*, float** %6
%18 = call i32 @normalizeVector(float* %17, i32 4)
%19 = load float*, float** %5
%20 = getelementptr inbounds float, float* %19, i64 0
%21 = load float, float* %20
%22 = load float*, float** %6
%23 = getelementptr inbounds float, float* %22, i64 0
%24 = load float, float* %23
%25 = load float*, float** %5
%26 = getelementptr inbounds float, float* %25, i64 1
%27 = load float, float* %26
%28 = load float*, float** %6
%29 = getelementptr inbounds float, float* %28, i64 1
%30 = load float, float* %29
%31 = fmul float %27, %30
%32 = call float @llvm.fmuladd.f32(float %21, float %24, float %31)
%33 = load float*, float** %5
%34 = getelementptr inbounds float, float* %33, i64 2
%35 = load float, float* %34
%36 = load float*, float** %6
%37 = getelementptr inbounds float, float* %36, i64 2
%38 = load float, float* %37
%39 = call float @llvm.fmuladd.f32(float %35, float %38, float %32)
%40 = load float*, float** %5
%41 = getelementptr inbounds float, float* %40, i64 3
%42 = load float, float* %41
%43 = load float*, float** %6
%44 = getelementptr inbounds float, float* %43, i64 3
%45 = load float, float* %44
%46 = call float @llvm.fmuladd.f32(float %42, float %45, float %39)
%47 = fpext float %46 to double
store double %47, double* %10
store double 9.995000e-01, double* %11
%48 = load double, double* %10
%49 = fcmp ogt double %48, 9.995000e-01
br i1 %49, label %50, label %86
50: ; preds = %4
store i32 0, i32* %9
br label %51
51: ; preds = %80, %50
%52 = load i32, i32* %9
%53 = icmp slt i32 %52, 4
br i1 %53, label %54, label %83
54: ; preds = %51
%55 = load float*, float** %5
%56 = load i32, i32* %9
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds float, float* %55, i64 %57
%59 = load float, float* %58
%60 = fpext float %59 to double
%61 = load double, double* %7
%62 = load float*, float** %6
%63 = load i32, i32* %9
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds float, float* %62, i64 %64
%66 = load float, float* %65
%67 = load float*, float** %5
%68 = load i32, i32* %9
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds float, float* %67, i64 %69
%71 = load float, float* %70
%72 = fsub float %66, %71
%73 = fpext float %72 to double
%74 = call double @llvm.fmuladd.f64(double %61, double %73, double %60)
%75 = fptrunc double %74 to float
%76 = load float*, float** %8
%77 = load i32, i32* %9
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds float, float* %76, i64 %78
store float %75, float* %79
br label %80
80: ; preds = %54
%81 = load i32, i32* %9
%82 = add nsw i32 %81, 1
store i32 %82, i32* %9
br label %51
83: ; preds = %51
%84 = load float*, float** %8
%85 = call i32 @normalizeVector(float* %84, i32 4)
br label %157
86: ; preds = %4
%87 = load double, double* %10
%88 = fcmp olt double %87, -1.000000e+00
br i1 %88, label %89, label %90
89: ; preds = %86
store double -1.000000e+00, double* %10
br label %90
90: ; preds = %89, %86
%91 = load double, double* %10
%92 = fcmp ogt double %91, 1.000000e+00
br i1 %92, label %93, label %94
93: ; preds = %90
store double 1.000000e+00, double* %10
br label %94
94: ; preds = %93, %90
%95 = load double, double* %10
%96 = call double @acos(double %95)
store double %96, double* %12
%97 = load double, double* %12
%98 = load double, double* %7
%99 = fmul double %97, %98
store double %99, double* %13
%100 = bitcast [4 x float]* %14 to i8*
store i32 0, i32* %9
br label %101
101: ; preds = %124, %94
%102 = load i32, i32* %9
%103 = icmp slt i32 %102, 4
br i1 %103, label %104, label %127
104: ; preds = %101
%105 = load float*, float** %6
%106 = load i32, i32* %9
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds float, float* %105, i64 %107
%109 = load float, float* %108
%110 = fpext float %109 to double
%111 = load float*, float** %5
%112 = load i32, i32* %9
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds float, float* %111, i64 %113
%115 = load float, float* %114
%116 = fpext float %115 to double
%117 = load double, double* %10
%118 = fneg double %116
%119 = call double @llvm.fmuladd.f64(double %118, double %117, double %110)
%120 = fptrunc double %119 to float
%121 = load i32, i32* %9
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [4 x float], [4 x float]* %14, i64 0, i64 %122
store float %120, float* %123
br label %124
124: ; preds = %104
%125 = load i32, i32* %9
%126 = add nsw i32 %125, 1
store i32 %126, i32* %9
br label %101
127: ; preds = %101
%128 = getelementptr inbounds [4 x float], [4 x float]* %14, i64 0, i64 0
%129 = call i32 @normalizeVector(float* %128, i32 4)
store i32 0, i32* %9
br label %130
130: ; preds = %153, %127
%131 = load i32, i32* %9
%132 = icmp slt i32 %131, 4
br i1 %132, label %133, label %156
133: ; preds = %130
%134 = load float*, float** %5
%135 = load i32, i32* %9
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds float, float* %134, i64 %136
%138 = load float, float* %137
%139 = load double, double* %13
%140 = call float @cos(double %139)
%141 = load i32, i32* %9
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [4 x float], [4 x float]* %14, i64 0, i64 %142
%144 = load float, float* %143
%145 = load double, double* %13
%146 = call float @sin(double %145)
%147 = fmul float %144, %146
%148 = call float @llvm.fmuladd.f32(float %138, float %140, float %147)
%149 = load float*, float** %8
%150 = load i32, i32* %9
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds float, float* %149, i64 %151
store float %148, float* %152
br label %153
153: ; preds = %133
%154 = load i32, i32* %9
%155 = add nsw i32 %154, 1
store i32 %155, i32* %9
br label %130
156: ; preds = %130
br label %157
157: ; preds = %156, %83
ret void
}

LLVM IR (-O2):
define void @slerp(float* %0, float* %1, double %2, float* %3) {
%5 = alloca <4 x float>
%6 = tail call i32 @normalizeVector(float* %0, i32 4)
%7 = tail call i32 @normalizeVector(float* %1, i32 4)
%8 = load float, float* %0
%9 = load float, float* %1
%10 = getelementptr inbounds float, float* %0, i64 1
%11 = load float, float* %10
%12 = getelementptr inbounds float, float* %1, i64 1
%13 = load float, float* %12
%14 = fmul float %11, %13
%15 = tail call float @llvm.fmuladd.f32(float %8, float %9, float %14)
%16 = getelementptr inbounds float, float* %0, i64 2
%17 = load float, float* %16
%18 = getelementptr inbounds float, float* %1, i64 2
%19 = load float, float* %18
%20 = tail call float @llvm.fmuladd.f32(float %17, float %19, float %15)
%21 = getelementptr inbounds float, float* %0, i64 3
%22 = load float, float* %21
%23 = getelementptr inbounds float, float* %1, i64 3
%24 = load float, float* %23
%25 = tail call float @llvm.fmuladd.f32(float %22, float %24, float %20)
%26 = fpext float %25 to double
%27 = fcmp ogt double %26, 9.995000e-01
br i1 %27, label %28, label %59
28: ; preds = %4
%29 = fpext float %8 to double
%30 = fsub float %9, %8
%31 = fpext float %30 to double
%32 = tail call double @llvm.fmuladd.f64(double %2, double %31, double %29)
%33 = fptrunc double %32 to float
store float %33, float* %3
%34 = load float, float* %10
%35 = fpext float %34 to double
%36 = load float, float* %12
%37 = fsub float %36, %34
%38 = fpext float %37 to double
%39 = tail call double @llvm.fmuladd.f64(double %2, double %38, double %35)
%40 = fptrunc double %39 to float
%41 = getelementptr inbounds float, float* %3, i64 1
store float %40, float* %41
%42 = load float, float* %16
%43 = fpext float %42 to double
%44 = load float, float* %18
%45 = fsub float %44, %42
%46 = fpext float %45 to double
%47 = tail call double @llvm.fmuladd.f64(double %2, double %46, double %43)
%48 = fptrunc double %47 to float
%49 = getelementptr inbounds float, float* %3, i64 2
store float %48, float* %49
%50 = load float, float* %21
%51 = fpext float %50 to double
%52 = load float, float* %23
%53 = fsub float %52, %50
%54 = fpext float %53 to double
%55 = tail call double @llvm.fmuladd.f64(double %2, double %54, double %51)
%56 = fptrunc double %55 to float
%57 = getelementptr inbounds float, float* %3, i64 3
store float %56, float* %57
%58 = tail call i32 @normalizeVector(float* %3, i32 4)
br label %111
59: ; preds = %4
%60 = fcmp ole float %25, -1.000000e+00
%61 = select i1 %60, float -1.000000e+00, float %25
%62 = fpext float %61 to double
%63 = fcmp ogt double %62, 1.000000e+00
%64 = select i1 %63, double 1.000000e+00, double %62
%65 = tail call double @acos(double %64)
%66 = bitcast <4 x float>* %5 to i8*
%67 = getelementptr inbounds <4 x float>, <4 x float>* %5, i64 0, i64 0
%68 = getelementptr inbounds <4 x float>, <4 x float>* %5, i64 0, i64 1
%69 = getelementptr inbounds <4 x float>, <4 x float>* %5, i64 0, i64 2
%70 = bitcast float* %1 to <4 x float>*
%71 = load <4 x float>, <4 x float>* %70
%72 = fpext <4 x float> %71 to <4 x double>
%73 = bitcast float* %0 to <4 x float>*
%74 = load <4 x float>, <4 x float>* %73
%75 = fpext <4 x float> %74 to <4 x double>
%76 = fneg <4 x double> %75
%77 = insertelement <4 x double> poison, double %64, i64 0
%78 = shufflevector <4 x double> %77, <4 x double> poison, <4 x i32> zeroinitializer
%79 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %76, <4 x double> %78, <4 x double> %72)
%80 = fptrunc <4 x double> %79 to <4 x float>
%81 = getelementptr inbounds <4 x float>, <4 x float>* %5, i64 0, i64 3
store <4 x float> %80, <4 x float>* %5
%82 = fmul double %65, %2
%83 = call i32 @normalizeVector(float* %67, i32 4)
%84 = load float, float* %0
%85 = call float @cos(double %82)
%86 = load float, float* %67
%87 = call float @sin(double %82)
%88 = fmul float %86, %87
%89 = call float @llvm.fmuladd.f32(float %84, float %85, float %88)
store float %89, float* %3
%90 = load float, float* %10
%91 = call float @cos(double %82)
%92 = load float, float* %68
%93 = call float @sin(double %82)
%94 = fmul float %92, %93
%95 = call float @llvm.fmuladd.f32(float %90, float %91, float %94)
%96 = getelementptr inbounds float, float* %3, i64 1
store float %95, float* %96
%97 = load float, float* %16
%98 = call float @cos(double %82)
%99 = load float, float* %69
%100 = call float @sin(double %82)
%101 = fmul float %99, %100
%102 = call float @llvm.fmuladd.f32(float %97, float %98, float %101)
%103 = getelementptr inbounds float, float* %3, i64 2
store float %102, float* %103
%104 = load float, float* %21
%105 = call float @cos(double %82)
%106 = load float, float* %81
%107 = call float @sin(double %82)
%108 = fmul float %106, %107
%109 = call float @llvm.fmuladd.f32(float %104, float %105, float %108)
%110 = getelementptr inbounds float, float* %3, i64 3
store float %109, float* %110
br label %111
111: ; preds = %59, %28
ret void
}