; LLVM IR from yangfengzzz/DigitalVox3 :: vox.render/runtime/animation/ik_aim_job.ll (ZNK3vox9animation8IKAimJob3RunEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.vox::math::Float4x4" = type { [4 x <4 x float>] }
%"struct.vox::math::SimdQuaternion" = type { <4 x float> }
%"struct.vox::animation::IKAimJob" = type { <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, float, float, ptr, ptr, ptr }

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float44zeroEv() #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox9animation8IKAimJob8ValidateEv(ptr noundef nonnull align 16 dereferenceable(112)) #1 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3vox4math11AreAllTrue1EDv2_x(<2 x i64> noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3vox9animation8IKAimJob3RunEv(ptr noundef nonnull align 16 dereferenceable(112) %0) #1 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca <2 x i64>, align 16
  %5 = alloca %"struct.vox::math::Float4x4", align 16
  %6 = alloca <4 x float>, align 16
  %7 = alloca <4 x float>, align 16
  %8 = alloca <4 x float>, align 16
  %9 = alloca i8, align 1
  %10 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %11 = alloca i32, align 4
  %12 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %13 = alloca <4 x float>, align 16
  %14 = alloca <4 x float>, align 16
  %15 = alloca <4 x float>, align 16
  %16 = alloca <4 x float>, align 16
  %17 = alloca <4 x float>, align 16
  %18 = alloca <4 x float>, align 16
  %19 = alloca <4 x float>, align 16
  %20 = alloca <4 x float>, align 16
  %21 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %22 = alloca <4 x float>, align 16
  %23 = alloca <4 x float>, align 16
  %24 = alloca <4 x float>, align 16
  %25 = alloca <4 x float>, align 16
  %26 = alloca <4 x float>, align 16
  %27 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %28 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %29 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %30 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %31 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %32 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %33 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %34 = alloca <4 x float>, align 16
  %35 = alloca <4 x float>, align 16
  %36 = alloca <4 x float>, align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  %37 = load ptr, ptr %3, align 8
  %38 = call noundef zeroext i1 @_ZNK3vox9animation8IKAimJob8ValidateEv(ptr noundef nonnull align 16 dereferenceable(112) %37)
  br i1 %38, label %40, label %39

39:                                               ; preds = %1
  store i1 false, ptr %2, align 1
  br label %207

40:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #5
  %41 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 7
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  call void @_ZN3vox4math6InvertERKNS0_8Float4x4EPDv2_x(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %5, ptr noundef nonnull align 16 dereferenceable(64) %42, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  %43 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 0
  %44 = load <4 x float>, ptr %43, align 16, !tbaa !12
  %45 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %5, <4 x float> noundef %44)
  store <4 x float> %45, ptr %6, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  %46 = load <4 x float>, ptr %6, align 16, !tbaa !12
  %47 = call noundef <4 x float> @_ZN3vox4math10Length3SqrEDv4_f(<4 x float> noundef %46)
  store <4 x float> %47, ptr %7, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  %48 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 1
  %49 = load <4 x float>, ptr %48, align 16, !tbaa !12
  %50 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 2
  %51 = load <4 x float>, ptr %50, align 16, !tbaa !12
  %52 = load <4 x float>, ptr %6, align 16, !tbaa !12
  %53 = call noundef zeroext i1 @_ZN3vox9animation12_GLOBAL__N_123ComputeOffsettedForwardEDv4_fS2_S2_PS2_(<4 x float> noundef %49, <4 x float> noundef %51, <4 x float> noundef %52, ptr noundef %8)
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %9, align 1, !tbaa !13
  %55 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 9
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %64

58:                                               ; preds = %40
  %59 = load i8, ptr %9, align 1, !tbaa !13, !range !16, !noundef !17
  %60 = trunc i8 %59 to i1
  %61 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 9
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = zext i1 %60 to i8
  store i8 %63, ptr %62, align 1, !tbaa !13
  br label %64

64:                                               ; preds = %58, %40
  %65 = load i8, ptr %9, align 1, !tbaa !13, !range !16, !noundef !17
  %66 = trunc i8 %65 to i1
  br i1 %66, label %67, label %72

67:                                               ; preds = %64
  %68 = load <4 x float>, ptr %7, align 16, !tbaa !12
  %69 = call noundef <4 x float> @_ZN3vox4math11simd_float44zeroEv()
  %70 = call noundef <2 x i64> @_ZN3vox4math5CmpEqEDv4_fS1_(<4 x float> noundef %68, <4 x float> noundef %69)
  %71 = call noundef zeroext i1 @_ZN3vox4math11AreAllTrue1EDv2_x(<2 x i64> noundef %70)
  br i1 %71, label %72, label %77

72:                                               ; preds = %67, %64
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %73 = call <4 x float> @_ZN3vox4math14SimdQuaternion8identityEv()
  %74 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %10, i32 0, i32 0
  store <4 x float> %73, ptr %74, align 16
  %75 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 8
  %76 = load ptr, ptr %75, align 16, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %76, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  store i1 true, ptr %2, align 1
  store i32 1, ptr %11, align 4
  br label %206

77:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %78 = load <4 x float>, ptr %8, align 16, !tbaa !12
  %79 = load <4 x float>, ptr %6, align 16, !tbaa !12
  %80 = call <4 x float> @_ZN3vox4math14SimdQuaternion11FromVectorsEDv4_fS2_(<4 x float> noundef %78, <4 x float> noundef %79)
  %81 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %12, i32 0, i32 0
  store <4 x float> %80, ptr %81, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %82 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 3
  %83 = load <4 x float>, ptr %82, align 16, !tbaa !12
  %84 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_14SimdQuaternionEDv4_f(ptr noundef nonnull align 16 dereferenceable(16) %12, <4 x float> noundef %83)
  store <4 x float> %84, ptr %13, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %85 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 4
  %86 = load <4 x float>, ptr %85, align 16, !tbaa !12
  %87 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %5, <4 x float> noundef %86)
  store <4 x float> %87, ptr %14, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %88 = load <4 x float>, ptr %14, align 16, !tbaa !12
  %89 = load <4 x float>, ptr %6, align 16, !tbaa !12
  %90 = call noundef <4 x float> @_ZN3vox4math6Cross3EDv4_fS1_(<4 x float> noundef %88, <4 x float> noundef %89)
  store <4 x float> %90, ptr %15, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %91 = load <4 x float>, ptr %13, align 16, !tbaa !12
  %92 = load <4 x float>, ptr %6, align 16, !tbaa !12
  %93 = call noundef <4 x float> @_ZN3vox4math6Cross3EDv4_fS1_(<4 x float> noundef %91, <4 x float> noundef %92)
  store <4 x float> %93, ptr %16, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %94 = load <4 x float>, ptr %15, align 16, !tbaa !12
  %95 = call noundef <4 x float> @_ZN3vox4math10Length3SqrEDv4_f(<4 x float> noundef %94)
  store <4 x float> %95, ptr %17, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %96 = load <4 x float>, ptr %16, align 16, !tbaa !12
  %97 = call noundef <4 x float> @_ZN3vox4math10Length3SqrEDv4_f(<4 x float> noundef %96)
  store <4 x float> %97, ptr %18, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %98 = load <4 x float>, ptr %7, align 16, !tbaa !12
  %99 = load <4 x float>, ptr %18, align 16, !tbaa !12
  %100 = call noundef <4 x float> @_ZN3vox4math4SetYEDv4_fS1_(<4 x float> noundef %98, <4 x float> noundef %99)
  %101 = load <4 x float>, ptr %17, align 16, !tbaa !12
  %102 = call noundef <4 x float> @_ZN3vox4math4SetZEDv4_fS1_(<4 x float> noundef %100, <4 x float> noundef %101)
  store <4 x float> %102, ptr %19, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %103 = load <4 x float>, ptr %19, align 16, !tbaa !12
  %104 = call noundef <4 x float> @_ZN3vox4math11simd_float44zeroEv()
  %105 = call noundef <2 x i64> @_ZN3vox4math5CmpNeEDv4_fS1_(<4 x float> noundef %103, <4 x float> noundef %104)
  %106 = call noundef zeroext i1 @_ZN3vox4math11AreAllTrue3EDv2_x(<2 x i64> noundef %105)
  br i1 %106, label %107, label %145

107:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %108 = load <4 x float>, ptr %7, align 16, !tbaa !12
  %109 = load <4 x float>, ptr %18, align 16, !tbaa !12
  %110 = call noundef <4 x float> @_ZN3vox4math4SetYEDv4_fS1_(<4 x float> noundef %108, <4 x float> noundef %109)
  %111 = load <4 x float>, ptr %17, align 16, !tbaa !12
  %112 = call noundef <4 x float> @_ZN3vox4math4SetZEDv4_fS1_(<4 x float> noundef %110, <4 x float> noundef %111)
  %113 = call noundef <4 x float> @_ZN3vox4math10RSqrtEstNREDv4_f(<4 x float> noundef %112)
  store <4 x float> %113, ptr %22, align 16, !tbaa !12
  %114 = load <4 x float>, ptr %6, align 16, !tbaa !12
  %115 = load <4 x float>, ptr %22, align 16, !tbaa !12
  %116 = call noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef %115)
  %117 = fmul <4 x float> %114, %116
  store <4 x float> %117, ptr %20, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  %118 = load <4 x float>, ptr %16, align 16, !tbaa !12
  %119 = load <4 x float>, ptr %22, align 16, !tbaa !12
  %120 = call noundef <4 x float> @_ZN3vox4math6SplatYEDv4_f(<4 x float> noundef %119)
  %121 = fmul <4 x float> %118, %120
  %122 = load <4 x float>, ptr %15, align 16, !tbaa !12
  %123 = load <4 x float>, ptr %22, align 16, !tbaa !12
  %124 = call noundef <4 x float> @_ZN3vox4math6SplatZEDv4_f(<4 x float> noundef %123)
  %125 = fmul <4 x float> %122, %124
  %126 = call noundef <4 x float> @_ZN3vox4math4Dot3EDv4_fS1_(<4 x float> noundef %121, <4 x float> noundef %125)
  store <4 x float> %126, ptr %23, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %127 = load <4 x float>, ptr %15, align 16, !tbaa !12
  %128 = load <4 x float>, ptr %13, align 16, !tbaa !12
  %129 = call noundef <4 x float> @_ZN3vox4math4Dot3EDv4_fS1_(<4 x float> noundef %127, <4 x float> noundef %128)
  %130 = call noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef %129)
  %131 = call noundef <2 x i64> @_ZN3vox4math9simd_int49mask_signEv()
  %132 = call noundef <4 x float> @_ZN3vox4math3AndEDv4_fDv2_x(<4 x float> noundef %130, <2 x i64> noundef %131)
  store <4 x float> %132, ptr %24, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %133 = load <4 x float>, ptr %20, align 16, !tbaa !12
  %134 = load <4 x float>, ptr %24, align 16, !tbaa !12
  %135 = call noundef <4 x float> @_ZN3vox4math3XorEDv4_fS1_(<4 x float> noundef %133, <4 x float> noundef %134)
  store <4 x float> %135, ptr %25, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %136 = call noundef <4 x float> @_ZN3vox4math11simd_float43oneEv()
  store <4 x float> %136, ptr %26, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  %137 = load <4 x float>, ptr %25, align 16, !tbaa !12
  %138 = load <4 x float>, ptr %26, align 16, !tbaa !12
  %139 = fneg <4 x float> %138
  %140 = load <4 x float>, ptr %23, align 16, !tbaa !12
  %141 = load <4 x float>, ptr %26, align 16, !tbaa !12
  %142 = call noundef <4 x float> @_ZN3vox4math5ClampEDv4_fS1_S1_(<4 x float> noundef %139, <4 x float> noundef %140, <4 x float> noundef %141)
  %143 = call <4 x float> @_ZN3vox4math14SimdQuaternion16FromAxisCosAngleEDv4_fS2_(<4 x float> noundef %137, <4 x float> noundef %142)
  %144 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %27, i32 0, i32 0
  store <4 x float> %143, ptr %144, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %153

145:                                              ; preds = %77
  %146 = load <4 x float>, ptr %6, align 16, !tbaa !12
  %147 = load <4 x float>, ptr %19, align 16, !tbaa !12
  %148 = call noundef <4 x float> @_ZN3vox4math11RSqrtEstXNREDv4_f(<4 x float> noundef %147)
  %149 = call noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef %148)
  %150 = fmul <4 x float> %146, %149
  store <4 x float> %150, ptr %20, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  %151 = call <4 x float> @_ZN3vox4math14SimdQuaternion8identityEv()
  %152 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %28, i32 0, i32 0
  store <4 x float> %151, ptr %152, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  br label %153

153:                                              ; preds = %145, %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  %154 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 5
  %155 = load float, ptr %154, align 16, !tbaa !20
  %156 = fcmp une float %155, 0.000000e+00
  br i1 %156, label %157, label %168

157:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #5
  %158 = load <4 x float>, ptr %20, align 16, !tbaa !12
  %159 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 5
  %160 = load float, ptr %159, align 16, !tbaa !20
  %161 = call noundef <4 x float> @_ZN3vox4math11simd_float45Load1Ef(float noundef %160)
  %162 = call <4 x float> @_ZN3vox4math14SimdQuaternion13FromAxisAngleEDv4_fS2_(<4 x float> noundef %158, <4 x float> noundef %161)
  %163 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %30, i32 0, i32 0
  store <4 x float> %162, ptr %163, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  %164 = call <4 x float> @_ZN3vox4mathmlERKNS0_14SimdQuaternionES3_(ptr noundef nonnull align 16 dereferenceable(16) %30, ptr noundef nonnull align 16 dereferenceable(16) %21)
  %165 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %32, i32 0, i32 0
  store <4 x float> %164, ptr %165, align 16
  %166 = call <4 x float> @_ZN3vox4mathmlERKNS0_14SimdQuaternionES3_(ptr noundef nonnull align 16 dereferenceable(16) %32, ptr noundef nonnull align 16 dereferenceable(16) %12)
  %167 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %31, i32 0, i32 0
  store <4 x float> %166, ptr %167, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #5
  br label %171

168:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #5
  %169 = call <4 x float> @_ZN3vox4mathmlERKNS0_14SimdQuaternionES3_(ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 16 dereferenceable(16) %12)
  %170 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %33, i32 0, i32 0
  store <4 x float> %169, ptr %170, align 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %33, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #5
  br label %171

171:                                              ; preds = %168, %157
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #5
  %172 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %29, i32 0, i32 0
  %173 = load <4 x float>, ptr %172, align 16, !tbaa !12
  %174 = call noundef <2 x i64> @_ZN3vox4math9simd_int49mask_signEv()
  %175 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %29, i32 0, i32 0
  %176 = load <4 x float>, ptr %175, align 16, !tbaa !12
  %177 = call noundef <4 x float> @_ZN3vox4math6SplatWEDv4_f(<4 x float> noundef %176)
  %178 = call noundef <4 x float> @_ZN3vox4math11simd_float44zeroEv()
  %179 = call noundef <2 x i64> @_ZN3vox4math5CmpLtEDv4_fS1_(<4 x float> noundef %177, <4 x float> noundef %178)
  %180 = call noundef <2 x i64> @_ZN3vox4math3AndEDv2_xS1_(<2 x i64> noundef %174, <2 x i64> noundef %179)
  %181 = call noundef <4 x float> @_ZN3vox4math3XorEDv4_fDv2_x(<4 x float> noundef %173, <2 x i64> noundef %180)
  store <4 x float> %181, ptr %34, align 16, !tbaa !12
  %182 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 6
  %183 = load float, ptr %182, align 4, !tbaa !21
  %184 = fcmp olt float %183, 1.000000e+00
  br i1 %184, label %185, label %200

185:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #5
  %186 = call noundef <4 x float> @_ZN3vox4math11simd_float46w_axisEv()
  store <4 x float> %186, ptr %35, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #5
  %187 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 6
  %188 = load float, ptr %187, align 4, !tbaa !21
  %189 = call noundef <4 x float> @_ZN3vox4math11simd_float45Load1Ef(float noundef %188)
  %190 = call noundef <4 x float> @_ZN3vox4math4Max0EDv4_f(<4 x float> noundef %189)
  store <4 x float> %190, ptr %36, align 16, !tbaa !12
  %191 = load <4 x float>, ptr %35, align 16, !tbaa !12
  %192 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %29, i32 0, i32 0
  %193 = load <4 x float>, ptr %192, align 16, !tbaa !12
  %194 = load <4 x float>, ptr %36, align 16, !tbaa !12
  %195 = call noundef <4 x float> @_ZN3vox4math4LerpEDv4_fS1_S1_(<4 x float> noundef %191, <4 x float> noundef %193, <4 x float> noundef %194)
  %196 = call noundef <4 x float> @_ZN3vox4math13NormalizeEst4EDv4_f(<4 x float> noundef %195)
  %197 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 8
  %198 = load ptr, ptr %197, align 16, !tbaa !18
  %199 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %198, i32 0, i32 0
  store <4 x float> %196, ptr %199, align 16, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #5
  br label %205

200:                                              ; preds = %171
  %201 = load <4 x float>, ptr %34, align 16, !tbaa !12
  %202 = getelementptr inbounds %"struct.vox::animation::IKAimJob", ptr %37, i32 0, i32 8
  %203 = load ptr, ptr %202, align 16, !tbaa !18
  %204 = getelementptr inbounds %"struct.vox::math::SimdQuaternion", ptr %203, i32 0, i32 0
  store <4 x float> %201, ptr %204, align 16, !tbaa !12
  br label %205

205:                                              ; preds = %200, %185
  store i1 true, ptr %2, align 1
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %206

206:                                              ; preds = %205, %72
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  br label %207

207:                                              ; preds = %206, %39
  %208 = load i1, ptr %2, align 1
  ret i1 %208
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3vox4math6InvertERKNS0_8Float4x4EPDv2_x(ptr dead_on_unwind noalias writable sret(%"struct.vox::math::Float4x4") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef) #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math10Length3SqrEDv4_f(<4 x float> noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3vox9animation12_GLOBAL__N_123ComputeOffsettedForwardEDv4_fS2_S2_PS2_(<4 x float> noundef, <4 x float> noundef, <4 x float> noundef, ptr noundef) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <2 x i64> @_ZN3vox4math5CmpEqEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_ZN3vox4math14SimdQuaternion8identityEv() #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_ZN3vox4math14SimdQuaternion11FromVectorsEDv4_fS2_(<4 x float> noundef, <4 x float> noundef) #0 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_14SimdQuaternionEDv4_f(ptr noundef nonnull align 16 dereferenceable(16), <4 x float> noundef) #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6Cross3EDv4_fS1_(<4 x float> noundef, <4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math4SetZEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math4SetYEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox4math11AreAllTrue3EDv2_x(<2 x i64> noundef) #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <2 x i64> @_ZN3vox4math5CmpNeEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math10RSqrtEstNREDv4_f(<4 x float> noundef) #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math4Dot3EDv4_fS1_(<4 x float> noundef, <4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6SplatYEDv4_f(<4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6SplatZEDv4_f(<4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math3AndEDv4_fDv2_x(<4 x float> noundef, <2 x i64> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <2 x i64> @_ZN3vox4math9simd_int49mask_signEv() #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math3XorEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float43oneEv() #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_ZN3vox4math14SimdQuaternion16FromAxisCosAngleEDv4_fS2_(<4 x float> noundef, <4 x float> noundef) #0 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math5ClampEDv4_fS1_S1_(<4 x float> noundef, <4 x float> noundef, <4 x float> noundef) #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11RSqrtEstXNREDv4_f(<4 x float> noundef) #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_ZN3vox4math14SimdQuaternion13FromAxisAngleEDv4_fS2_(<4 x float> noundef, <4 x float> noundef) #0 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float45Load1Ef(float noundef) #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_ZN3vox4mathmlERKNS0_14SimdQuaternionES3_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math3XorEDv4_fDv2_x(<4 x float> noundef, <2 x i64> noundef) #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <2 x i64> @_ZN3vox4math3AndEDv2_xS1_(<2 x i64> noundef, <2 x i64> noundef) #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <2 x i64> @_ZN3vox4math5CmpLtEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6SplatWEDv4_f(<4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float46w_axisEv() #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math4Max0EDv4_f(<4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math13NormalizeEst4EDv4_f(<4 x float> noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math4LerpEDv4_fS1_S1_(<4 x float> noundef, <4 x float> noundef, <4 x float> noundef) #3

attributes #0 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 88}
!10 = !{!"_ZTSN3vox9animation8IKAimJobE", !7, i64 0, !7, i64 16, !7, i64 32, !7, i64 48, !7, i64 64, !11, i64 80, !11, i64 84, !6, i64 88, !6, i64 96, !6, i64 104}
!11 = !{!"float", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!10, !6, i64 104}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!10, !6, i64 96}
!19 = !{i64 0, i64 16, !12}
!20 = !{!10, !11, i64 80}
!21 = !{!10, !11, i64 84}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.vox::math::Float4x4" = type { [4 x <4 x float>] }
%"struct.vox::math::SimdQuaternion" = type { <4 x float> }

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float44zeroEv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox9animation8IKAimJob8ValidateEv(ptr noundef nonnull align 16 dereferenceable(112)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3vox4math11AreAllTrue1EDv2_x(<2 x i64> noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3vox9animation8IKAimJob3RunEv(ptr noundef nonnull align 16 dereferenceable(112) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca <2 x i64>, align 16
  %3 = alloca %"struct.vox::math::Float4x4", align 16
  %4 = alloca <4 x float>, align 16
  %5 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %6 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %7 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %8 = alloca %"struct.vox::math::SimdQuaternion", align 16
  %9 = tail call noundef zeroext i1 @_ZNK3vox9animation8IKAimJob8ValidateEv(ptr noundef nonnull align 16 dereferenceable(112) %0)
  br i1 %9, label %10, label %109

10:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #4
  %11 = getelementptr inbounds i8, ptr %0, i64 88
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN3vox4math6InvertERKNS0_8Float4x4EPDv2_x(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %3, ptr noundef nonnull align 16 dereferenceable(64) %12, ptr noundef nonnull %2)
  %13 = load <4 x float>, ptr %0, align 16, !tbaa !11
  %14 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %3, <4 x float> noundef %13)
  %15 = call noundef <4 x float> @_ZN3vox4math10Length3SqrEDv4_f(<4 x float> noundef %14)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load <4 x float>, ptr %16, align 16, !tbaa !11
  %18 = getelementptr inbounds i8, ptr %0, i64 32
  %19 = load <4 x float>, ptr %18, align 16, !tbaa !11
  %20 = call noundef zeroext i1 @_ZN3vox9animation12_GLOBAL__N_123ComputeOffsettedForwardEDv4_fS2_S2_PS2_(<4 x float> noundef %17, <4 x float> noundef %19, <4 x float> noundef %14, ptr noundef nonnull %4)
  %21 = getelementptr inbounds i8, ptr %0, i64 104
  %22 = load ptr, ptr %21, align 8, !tbaa !12
  %.not = icmp eq ptr %22, null
  br i1 %.not, label %25, label %23

23:                                               ; preds = %10
  %24 = zext i1 %20 to i8
  store i8 %24, ptr %22, align 1, !tbaa !13
  br label %25

25:                                               ; preds = %23, %10
  br i1 %20, label %26, label %30

26:                                               ; preds = %25
  %27 = call noundef <4 x float> @_ZN3vox4math11simd_float44zeroEv()
  %28 = call noundef <2 x i64> @_ZN3vox4math5CmpEqEDv4_fS1_(<4 x float> noundef %15, <4 x float> noundef %27)
  %29 = call noundef zeroext i1 @_ZN3vox4math11AreAllTrue1EDv2_x(<2 x i64> noundef %28)
  br i1 %29, label %30, label %34

30:                                               ; preds = %26, %25
  %31 = call <4 x float> @_ZN3vox4math14SimdQuaternion8identityEv()
  %32 = getelementptr inbounds i8, ptr %0, i64 96
  %33 = load ptr, ptr %32, align 16, !tbaa !15
  store <4 x float> %31, ptr %33, align 16, !tbaa !11
  br label %108

34:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %35 = load <4 x float>, ptr %4, align 16, !tbaa !11
  %36 = call <4 x float> @_ZN3vox4math14SimdQuaternion11FromVectorsEDv4_fS2_(<4 x float> noundef %35, <4 x float> noundef %14)
  store <4 x float> %36, ptr %5, align 16
  %37 = getelementptr inbounds i8, ptr %0, i64 48
  %38 = load <4 x float>, ptr %37, align 16, !tbaa !11
  %39 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_14SimdQuaternionEDv4_f(ptr noundef nonnull align 16 dereferenceable(16) %5, <4 x float> noundef %38)
  %40 = getelementptr inbounds i8, ptr %0, i64 64
  %41 = load <4 x float>, ptr %40, align 16, !tbaa !11
  %42 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %3, <4 x float> noundef %41)
  %43 = call noundef <4 x float> @_ZN3vox4math6Cross3EDv4_fS1_(<4 x float> noundef %42, <4 x float> noundef %14)
  %44 = call noundef <4 x float> @_ZN3vox4math6Cross3EDv4_fS1_(<4 x float> noundef %39, <4 x float> noundef %14)
  %45 = call noundef <4 x float> @_ZN3vox4math10Length3SqrEDv4_f(<4 x float> noundef %43)
  %46 = call noundef <4 x float> @_ZN3vox4math10Length3SqrEDv4_f(<4 x float> noundef %44)
  %47 = call noundef <4 x float> @_ZN3vox4math4SetYEDv4_fS1_(<4 x float> noundef %15, <4 x float> noundef %46)
  %48 = call noundef <4 x float> @_ZN3vox4math4SetZEDv4_fS1_(<4 x float> noundef %47, <4 x float> noundef %45)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %49 = call noundef <4 x float> @_ZN3vox4math11simd_float44zeroEv()
  %50 = call noundef <2 x i64> @_ZN3vox4math5CmpNeEDv4_fS1_(<4 x float> noundef %48, <4 x float> noundef %49)
  %51 = call noundef zeroext i1 @_ZN3vox4math11AreAllTrue3EDv2_x(<2 x i64> noundef %50)
  br i1 %51, label %52, label %72

52:                                               ; preds = %34
  %53 = call noundef <4 x float> @_ZN3vox4math4SetYEDv4_fS1_(<4 x float> noundef %15, <4 x float> noundef %46)
  %54 = call noundef <4 x float> @_ZN3vox4math4SetZEDv4_fS1_(<4 x float> noundef %53, <4 x float> noundef %45)
  %55 = call noundef <4 x float> @_ZN3vox4math10RSqrtEstNREDv4_f(<4 x float> noundef %54)
  %56 = call noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef %55)
  %57 = fmul <4 x float> %14, %56
  %58 = call noundef <4 x float> @_ZN3vox4math6SplatYEDv4_f(<4 x float> noundef %55)
  %59 = fmul <4 x float> %44, %58
  %60 = call noundef <4 x float> @_ZN3vox4math6SplatZEDv4_f(<4 x float> noundef %55)
  %61 = fmul <4 x float> %43, %60
  %62 = call noundef <4 x float> @_ZN3vox4math4Dot3EDv4_fS1_(<4 x float> noundef %59, <4 x float> noundef %61)
  %63 = call noundef <4 x float> @_ZN3vox4math4Dot3EDv4_fS1_(<4 x float> noundef %43, <4 x float> noundef %39)
  %64 = call noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef %63)
  %65 = call noundef <2 x i64> @_ZN3vox4math9simd_int49mask_signEv()
  %66 = call noundef <4 x float> @_ZN3vox4math3AndEDv4_fDv2_x(<4 x float> noundef %64, <2 x i64> noundef %65)
  %67 = call noundef <4 x float> @_ZN3vox4math3XorEDv4_fS1_(<4 x float> noundef %57, <4 x float> noundef %66)
  %68 = call noundef <4 x float> @_ZN3vox4math11simd_float43oneEv()
  %69 = fneg <4 x float> %68
  %70 = call noundef <4 x float> @_ZN3vox4math5ClampEDv4_fS1_S1_(<4 x float> noundef %69, <4 x float> noundef %62, <4 x float> noundef %68)
  %71 = call <4 x float> @_ZN3vox4math14SimdQuaternion16FromAxisCosAngleEDv4_fS2_(<4 x float> noundef %67, <4 x float> noundef %70)
  br label %77

72:                                               ; preds = %34
  %73 = call noundef <4 x float> @_ZN3vox4math11RSqrtEstXNREDv4_f(<4 x float> noundef %48)
  %74 = call noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef %73)
  %75 = fmul <4 x float> %14, %74
  %76 = call <4 x float> @_ZN3vox4math14SimdQuaternion8identityEv()
  br label %77

77:                                               ; preds = %72, %52
  %storemerge = phi <4 x float> [ %76, %72 ], [ %71, %52 ]
  %.047 = phi <4 x float> [ %75, %72 ], [ %57, %52 ]
  store <4 x float> %storemerge, ptr %6, align 16, !tbaa !11
  %78 = getelementptr inbounds i8, ptr %0, i64 80
  %79 = load float, ptr %78, align 16, !tbaa !16
  %80 = fcmp une float %79, 0.000000e+00
  br i1 %80, label %81, label %86

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %82 = call noundef <4 x float> @_ZN3vox4math11simd_float45Load1Ef(float noundef %79)
  %83 = call <4 x float> @_ZN3vox4math14SimdQuaternion13FromAxisAngleEDv4_fS2_(<4 x float> noundef %.047, <4 x float> noundef %82)
  store <4 x float> %83, ptr %7, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  %84 = call <4 x float> @_ZN3vox4mathmlERKNS0_14SimdQuaternionES3_(ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 16 dereferenceable(16) %6)
  store <4 x float> %84, ptr %8, align 16
  %85 = call <4 x float> @_ZN3vox4mathmlERKNS0_14SimdQuaternionES3_(ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br label %88

86:                                               ; preds = %77
  %87 = call <4 x float> @_ZN3vox4mathmlERKNS0_14SimdQuaternionES3_(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %5)
  br label %88

88:                                               ; preds = %86, %81
  %.sroa.04.0 = phi <4 x float> [ %85, %81 ], [ %87, %86 ]
  %89 = call noundef <2 x i64> @_ZN3vox4math9simd_int49mask_signEv()
  %90 = call noundef <4 x float> @_ZN3vox4math6SplatWEDv4_f(<4 x float> noundef %.sroa.04.0)
  %91 = call noundef <4 x float> @_ZN3vox4math11simd_float44zeroEv()
  %92 = call noundef <2 x i64> @_ZN3vox4math5CmpLtEDv4_fS1_(<4 x float> noundef %90, <4 x float> noundef %91)
  %93 = call noundef <2 x i64> @_ZN3vox4math3AndEDv2_xS1_(<2 x i64> noundef %89, <2 x i64> noundef %92)
  %94 = call noundef <4 x float> @_ZN3vox4math3XorEDv4_fDv2_x(<4 x float> noundef %.sroa.04.0, <2 x i64> noundef %93)
  %95 = getelementptr inbounds i8, ptr %0, i64 84
  %96 = load float, ptr %95, align 4, !tbaa !17
  %97 = fcmp olt float %96, 1.000000e+00
  br i1 %97, label %98, label %105

98:                                               ; preds = %88
  %99 = call noundef <4 x float> @_ZN3vox4math11simd_float46w_axisEv()
  %100 = load float, ptr %95, align 4, !tbaa !17
  %101 = call noundef <4 x float> @_ZN3vox4math11simd_float45Load1Ef(float noundef %100)
  %102 = call noundef <4 x float> @_ZN3vox4math4Max0EDv4_f(<4 x float> noundef %101)
  %103 = call noundef <4 x float> @_ZN3vox4math4LerpEDv4_fS1_S1_(<4 x float> noundef %99, <4 x float> noundef %.sroa.04.0, <4 x float> noundef %102)
  %104 = call noundef <4 x float> @_ZN3vox4math13NormalizeEst4EDv4_f(<4 x float> noundef %103)
  br label %105

105:                                              ; preds = %88, %98
  %.sink = phi <4 x float> [ %104, %98 ], [ %94, %88 ]
  %106 = getelementptr inbounds i8, ptr %0, i64 96
  %107 = load ptr, ptr %106, align 16, !tbaa !15
  store <4 x float> %.sink, ptr %107, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %108

108:                                              ; preds = %105, %30
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #4
  br label %109

109:                                              ; preds = %1, %108
  ret i1 %9
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3vox4math6InvertERKNS0_8Float4x4EPDv2_x(ptr dead_on_unwind noalias writable sret(%"struct.vox::math::Float4x4") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math10Length3SqrEDv4_f(<4 x float> noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3vox9animation12_GLOBAL__N_123ComputeOffsettedForwardEDv4_fS2_S2_PS2_(<4 x float> noundef, <4 x float> noundef, <4 x float> noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <2 x i64> @_ZN3vox4math5CmpEqEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_ZN3vox4math14SimdQuaternion8identityEv() local_unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_ZN3vox4math14SimdQuaternion11FromVectorsEDv4_fS2_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_14SimdQuaternionEDv4_f(ptr noundef nonnull align 16 dereferenceable(16), <4 x float> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6Cross3EDv4_fS1_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math4SetZEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math4SetYEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox4math11AreAllTrue3EDv2_x(<2 x i64> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <2 x i64> @_ZN3vox4math5CmpNeEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math10RSqrtEstNREDv4_f(<4 x float> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math4Dot3EDv4_fS1_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6SplatYEDv4_f(<4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6SplatZEDv4_f(<4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math3AndEDv4_fDv2_x(<4 x float> noundef, <2 x i64> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <2 x i64> @_ZN3vox4math9simd_int49mask_signEv() local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math3XorEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float43oneEv() local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_ZN3vox4math14SimdQuaternion16FromAxisCosAngleEDv4_fS2_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math5ClampEDv4_fS1_S1_(<4 x float> noundef, <4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11RSqrtEstXNREDv4_f(<4 x float> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_ZN3vox4math14SimdQuaternion13FromAxisAngleEDv4_fS2_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float45Load1Ef(float noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <4 x float> @_ZN3vox4mathmlERKNS0_14SimdQuaternionES3_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math3XorEDv4_fDv2_x(<4 x float> noundef, <2 x i64> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <2 x i64> @_ZN3vox4math3AndEDv2_xS1_(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <2 x i64> @_ZN3vox4math5CmpLtEDv4_fS1_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6SplatWEDv4_f(<4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float46w_axisEv() local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math4Max0EDv4_f(<4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math13NormalizeEst4EDv4_f(<4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math4LerpEDv4_fS1_S1_(<4 x float> noundef, <4 x float> noundef, <4 x float> noundef) local_unnamed_addr #3

attributes #0 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 88}
!6 = !{!"_ZTSN3vox9animation8IKAimJobE", !7, i64 0, !7, i64 16, !7, i64 32, !7, i64 48, !7, i64 64, !9, i64 80, !9, i64 84, !10, i64 88, !10, i64 96, !10, i64 104}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"float", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 104}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!6, !10, i64 96}
!16 = !{!6, !9, i64 80}
!17 = !{!6, !9, i64 84}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass