; LLVM IR from atlantis13579/Riemann :: Src/CollisionPrimitive (Triangle3)

; 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"

%"class.Maths::TVector3" = type { float, float, float }

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7Riemann9Triangle313IntersectAABBERKN5Maths8TVector3IfEES5_S5_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4) #4 align 2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca %"class.Maths::TVector3", align 4
  %14 = alloca %"class.Maths::TVector3", align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca %"class.Maths::TVector3", align 4
  %25 = alloca %"class.Maths::TVector3", align 4
  %26 = alloca %"class.Maths::TVector3", align 4
  %27 = alloca %"class.Maths::TVector3", align 4
  %28 = alloca %"class.Maths::TVector3", align 4
  %29 = alloca %"class.Maths::TVector3", align 4
  %30 = alloca i32, align 4
  %31 = alloca %"class.Maths::TVector3", align 4
  %32 = alloca %"class.Maths::TVector3", align 4
  %33 = alloca %"class.Maths::TVector3", align 4
  %34 = alloca float, align 4
  %35 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #5
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %37)
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #5
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #5
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %25, ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #5
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %26, ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %27, ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %28, ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %29, ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %26)
  %42 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 0
  %43 = load float, ptr %42, align 4, !tbaa !9
  %44 = call float @llvm.fabs.f32(float %43)
  store float %44, ptr %21, align 4, !tbaa !12
  %45 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 1
  %46 = load float, ptr %45, align 4, !tbaa !13
  %47 = call float @llvm.fabs.f32(float %46)
  store float %47, ptr %22, align 4, !tbaa !12
  %48 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 2
  %49 = load float, ptr %48, align 4, !tbaa !14
  %50 = call float @llvm.fabs.f32(float %49)
  store float %50, ptr %23, align 4, !tbaa !12
  %51 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 2
  %52 = load float, ptr %51, align 4, !tbaa !14
  %53 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 1
  %54 = load float, ptr %53, align 4, !tbaa !13
  %55 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 1
  %56 = load float, ptr %55, align 4, !tbaa !13
  %57 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 2
  %58 = load float, ptr %57, align 4, !tbaa !14
  %59 = fmul float %56, %58
  %60 = fneg float %59
  %61 = call float @llvm.fmuladd.f32(float %52, float %54, float %60)
  store float %61, ptr %17, align 4, !tbaa !12
  %62 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 2
  %63 = load float, ptr %62, align 4, !tbaa !14
  %64 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 1
  %65 = load float, ptr %64, align 4, !tbaa !13
  %66 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 1
  %67 = load float, ptr %66, align 4, !tbaa !13
  %68 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 2
  %69 = load float, ptr %68, align 4, !tbaa !14
  %70 = fmul float %67, %69
  %71 = fneg float %70
  %72 = call float @llvm.fmuladd.f32(float %63, float %65, float %71)
  store float %72, ptr %19, align 4, !tbaa !12
  %73 = load float, ptr %17, align 4, !tbaa !12
  %74 = load float, ptr %19, align 4, !tbaa !12
  %75 = fcmp olt float %73, %74
  br i1 %75, label %76, label %79

76:                                               ; preds = %5
  %77 = load float, ptr %17, align 4, !tbaa !12
  store float %77, ptr %15, align 4, !tbaa !12
  %78 = load float, ptr %19, align 4, !tbaa !12
  store float %78, ptr %16, align 4, !tbaa !12
  br label %82

79:                                               ; preds = %5
  %80 = load float, ptr %19, align 4, !tbaa !12
  store float %80, ptr %15, align 4, !tbaa !12
  %81 = load float, ptr %17, align 4, !tbaa !12
  store float %81, ptr %16, align 4, !tbaa !12
  br label %82

82:                                               ; preds = %79, %76
  %83 = load float, ptr %23, align 4, !tbaa !12
  %84 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 1
  %85 = load float, ptr %84, align 4, !tbaa !13
  %86 = load float, ptr %22, align 4, !tbaa !12
  %87 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 2
  %88 = load float, ptr %87, align 4, !tbaa !14
  %89 = fmul float %86, %88
  %90 = call float @llvm.fmuladd.f32(float %83, float %85, float %89)
  store float %90, ptr %20, align 4, !tbaa !12
  %91 = load float, ptr %15, align 4, !tbaa !12
  %92 = load float, ptr %20, align 4, !tbaa !12
  %93 = fcmp ogt float %91, %92
  br i1 %93, label %99, label %94

94:                                               ; preds = %82
  %95 = load float, ptr %16, align 4, !tbaa !12
  %96 = load float, ptr %20, align 4, !tbaa !12
  %97 = fneg float %96
  %98 = fcmp olt float %95, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %94, %82
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

100:                                              ; preds = %94
  %101 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 2
  %102 = load float, ptr %101, align 4, !tbaa !14
  %103 = fneg float %102
  %104 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 0
  %105 = load float, ptr %104, align 4, !tbaa !9
  %106 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 0
  %107 = load float, ptr %106, align 4, !tbaa !9
  %108 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 2
  %109 = load float, ptr %108, align 4, !tbaa !14
  %110 = fmul float %107, %109
  %111 = call float @llvm.fmuladd.f32(float %103, float %105, float %110)
  store float %111, ptr %17, align 4, !tbaa !12
  %112 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 2
  %113 = load float, ptr %112, align 4, !tbaa !14
  %114 = fneg float %113
  %115 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 0
  %116 = load float, ptr %115, align 4, !tbaa !9
  %117 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 0
  %118 = load float, ptr %117, align 4, !tbaa !9
  %119 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 2
  %120 = load float, ptr %119, align 4, !tbaa !14
  %121 = fmul float %118, %120
  %122 = call float @llvm.fmuladd.f32(float %114, float %116, float %121)
  store float %122, ptr %19, align 4, !tbaa !12
  %123 = load float, ptr %17, align 4, !tbaa !12
  %124 = load float, ptr %19, align 4, !tbaa !12
  %125 = fcmp olt float %123, %124
  br i1 %125, label %126, label %129

126:                                              ; preds = %100
  %127 = load float, ptr %17, align 4, !tbaa !12
  store float %127, ptr %15, align 4, !tbaa !12
  %128 = load float, ptr %19, align 4, !tbaa !12
  store float %128, ptr %16, align 4, !tbaa !12
  br label %132

129:                                              ; preds = %100
  %130 = load float, ptr %19, align 4, !tbaa !12
  store float %130, ptr %15, align 4, !tbaa !12
  %131 = load float, ptr %17, align 4, !tbaa !12
  store float %131, ptr %16, align 4, !tbaa !12
  br label %132

132:                                              ; preds = %129, %126
  %133 = load float, ptr %23, align 4, !tbaa !12
  %134 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 0
  %135 = load float, ptr %134, align 4, !tbaa !9
  %136 = load float, ptr %21, align 4, !tbaa !12
  %137 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 2
  %138 = load float, ptr %137, align 4, !tbaa !14
  %139 = fmul float %136, %138
  %140 = call float @llvm.fmuladd.f32(float %133, float %135, float %139)
  store float %140, ptr %20, align 4, !tbaa !12
  %141 = load float, ptr %15, align 4, !tbaa !12
  %142 = load float, ptr %20, align 4, !tbaa !12
  %143 = fcmp ogt float %141, %142
  br i1 %143, label %149, label %144

144:                                              ; preds = %132
  %145 = load float, ptr %16, align 4, !tbaa !12
  %146 = load float, ptr %20, align 4, !tbaa !12
  %147 = fneg float %146
  %148 = fcmp olt float %145, %147
  br i1 %148, label %149, label %150

149:                                              ; preds = %144, %132
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

150:                                              ; preds = %144
  %151 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 1
  %152 = load float, ptr %151, align 4, !tbaa !13
  %153 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 0
  %154 = load float, ptr %153, align 4, !tbaa !9
  %155 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 0
  %156 = load float, ptr %155, align 4, !tbaa !9
  %157 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 1
  %158 = load float, ptr %157, align 4, !tbaa !13
  %159 = fmul float %156, %158
  %160 = fneg float %159
  %161 = call float @llvm.fmuladd.f32(float %152, float %154, float %160)
  store float %161, ptr %18, align 4, !tbaa !12
  %162 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 1
  %163 = load float, ptr %162, align 4, !tbaa !13
  %164 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 0
  %165 = load float, ptr %164, align 4, !tbaa !9
  %166 = getelementptr inbounds %"class.Maths::TVector3", ptr %27, i32 0, i32 0
  %167 = load float, ptr %166, align 4, !tbaa !9
  %168 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 1
  %169 = load float, ptr %168, align 4, !tbaa !13
  %170 = fmul float %167, %169
  %171 = fneg float %170
  %172 = call float @llvm.fmuladd.f32(float %163, float %165, float %171)
  store float %172, ptr %19, align 4, !tbaa !12
  %173 = load float, ptr %19, align 4, !tbaa !12
  %174 = load float, ptr %18, align 4, !tbaa !12
  %175 = fcmp olt float %173, %174
  br i1 %175, label %176, label %179

176:                                              ; preds = %150
  %177 = load float, ptr %19, align 4, !tbaa !12
  store float %177, ptr %15, align 4, !tbaa !12
  %178 = load float, ptr %18, align 4, !tbaa !12
  store float %178, ptr %16, align 4, !tbaa !12
  br label %182

179:                                              ; preds = %150
  %180 = load float, ptr %18, align 4, !tbaa !12
  store float %180, ptr %15, align 4, !tbaa !12
  %181 = load float, ptr %19, align 4, !tbaa !12
  store float %181, ptr %16, align 4, !tbaa !12
  br label %182

182:                                              ; preds = %179, %176
  %183 = load float, ptr %22, align 4, !tbaa !12
  %184 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 0
  %185 = load float, ptr %184, align 4, !tbaa !9
  %186 = load float, ptr %21, align 4, !tbaa !12
  %187 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 1
  %188 = load float, ptr %187, align 4, !tbaa !13
  %189 = fmul float %186, %188
  %190 = call float @llvm.fmuladd.f32(float %183, float %185, float %189)
  store float %190, ptr %20, align 4, !tbaa !12
  %191 = load float, ptr %15, align 4, !tbaa !12
  %192 = load float, ptr %20, align 4, !tbaa !12
  %193 = fcmp ogt float %191, %192
  br i1 %193, label %199, label %194

194:                                              ; preds = %182
  %195 = load float, ptr %16, align 4, !tbaa !12
  %196 = load float, ptr %20, align 4, !tbaa !12
  %197 = fneg float %196
  %198 = fcmp olt float %195, %197
  br i1 %198, label %199, label %200

199:                                              ; preds = %194, %182
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

200:                                              ; preds = %194
  %201 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 0
  %202 = load float, ptr %201, align 4, !tbaa !9
  %203 = call float @llvm.fabs.f32(float %202)
  store float %203, ptr %21, align 4, !tbaa !12
  %204 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 1
  %205 = load float, ptr %204, align 4, !tbaa !13
  %206 = call float @llvm.fabs.f32(float %205)
  store float %206, ptr %22, align 4, !tbaa !12
  %207 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 2
  %208 = load float, ptr %207, align 4, !tbaa !14
  %209 = call float @llvm.fabs.f32(float %208)
  store float %209, ptr %23, align 4, !tbaa !12
  %210 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 2
  %211 = load float, ptr %210, align 4, !tbaa !14
  %212 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 1
  %213 = load float, ptr %212, align 4, !tbaa !13
  %214 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 1
  %215 = load float, ptr %214, align 4, !tbaa !13
  %216 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 2
  %217 = load float, ptr %216, align 4, !tbaa !14
  %218 = fmul float %215, %217
  %219 = fneg float %218
  %220 = call float @llvm.fmuladd.f32(float %211, float %213, float %219)
  store float %220, ptr %17, align 4, !tbaa !12
  %221 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 2
  %222 = load float, ptr %221, align 4, !tbaa !14
  %223 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 1
  %224 = load float, ptr %223, align 4, !tbaa !13
  %225 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 1
  %226 = load float, ptr %225, align 4, !tbaa !13
  %227 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 2
  %228 = load float, ptr %227, align 4, !tbaa !14
  %229 = fmul float %226, %228
  %230 = fneg float %229
  %231 = call float @llvm.fmuladd.f32(float %222, float %224, float %230)
  store float %231, ptr %19, align 4, !tbaa !12
  %232 = load float, ptr %17, align 4, !tbaa !12
  %233 = load float, ptr %19, align 4, !tbaa !12
  %234 = fcmp olt float %232, %233
  br i1 %234, label %235, label %238

235:                                              ; preds = %200
  %236 = load float, ptr %17, align 4, !tbaa !12
  store float %236, ptr %15, align 4, !tbaa !12
  %237 = load float, ptr %19, align 4, !tbaa !12
  store float %237, ptr %16, align 4, !tbaa !12
  br label %241

238:                                              ; preds = %200
  %239 = load float, ptr %19, align 4, !tbaa !12
  store float %239, ptr %15, align 4, !tbaa !12
  %240 = load float, ptr %17, align 4, !tbaa !12
  store float %240, ptr %16, align 4, !tbaa !12
  br label %241

241:                                              ; preds = %238, %235
  %242 = load float, ptr %23, align 4, !tbaa !12
  %243 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 1
  %244 = load float, ptr %243, align 4, !tbaa !13
  %245 = load float, ptr %22, align 4, !tbaa !12
  %246 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 2
  %247 = load float, ptr %246, align 4, !tbaa !14
  %248 = fmul float %245, %247
  %249 = call float @llvm.fmuladd.f32(float %242, float %244, float %248)
  store float %249, ptr %20, align 4, !tbaa !12
  %250 = load float, ptr %15, align 4, !tbaa !12
  %251 = load float, ptr %20, align 4, !tbaa !12
  %252 = fcmp ogt float %250, %251
  br i1 %252, label %258, label %253

253:                                              ; preds = %241
  %254 = load float, ptr %16, align 4, !tbaa !12
  %255 = load float, ptr %20, align 4, !tbaa !12
  %256 = fneg float %255
  %257 = fcmp olt float %254, %256
  br i1 %257, label %258, label %259

258:                                              ; preds = %253, %241
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

259:                                              ; preds = %253
  %260 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 2
  %261 = load float, ptr %260, align 4, !tbaa !14
  %262 = fneg float %261
  %263 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 0
  %264 = load float, ptr %263, align 4, !tbaa !9
  %265 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 0
  %266 = load float, ptr %265, align 4, !tbaa !9
  %267 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 2
  %268 = load float, ptr %267, align 4, !tbaa !14
  %269 = fmul float %266, %268
  %270 = call float @llvm.fmuladd.f32(float %262, float %264, float %269)
  store float %270, ptr %17, align 4, !tbaa !12
  %271 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 2
  %272 = load float, ptr %271, align 4, !tbaa !14
  %273 = fneg float %272
  %274 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 0
  %275 = load float, ptr %274, align 4, !tbaa !9
  %276 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 0
  %277 = load float, ptr %276, align 4, !tbaa !9
  %278 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 2
  %279 = load float, ptr %278, align 4, !tbaa !14
  %280 = fmul float %277, %279
  %281 = call float @llvm.fmuladd.f32(float %273, float %275, float %280)
  store float %281, ptr %19, align 4, !tbaa !12
  %282 = load float, ptr %17, align 4, !tbaa !12
  %283 = load float, ptr %19, align 4, !tbaa !12
  %284 = fcmp olt float %282, %283
  br i1 %284, label %285, label %288

285:                                              ; preds = %259
  %286 = load float, ptr %17, align 4, !tbaa !12
  store float %286, ptr %15, align 4, !tbaa !12
  %287 = load float, ptr %19, align 4, !tbaa !12
  store float %287, ptr %16, align 4, !tbaa !12
  br label %291

288:                                              ; preds = %259
  %289 = load float, ptr %19, align 4, !tbaa !12
  store float %289, ptr %15, align 4, !tbaa !12
  %290 = load float, ptr %17, align 4, !tbaa !12
  store float %290, ptr %16, align 4, !tbaa !12
  br label %291

291:                                              ; preds = %288, %285
  %292 = load float, ptr %23, align 4, !tbaa !12
  %293 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 0
  %294 = load float, ptr %293, align 4, !tbaa !9
  %295 = load float, ptr %21, align 4, !tbaa !12
  %296 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 2
  %297 = load float, ptr %296, align 4, !tbaa !14
  %298 = fmul float %295, %297
  %299 = call float @llvm.fmuladd.f32(float %292, float %294, float %298)
  store float %299, ptr %20, align 4, !tbaa !12
  %300 = load float, ptr %15, align 4, !tbaa !12
  %301 = load float, ptr %20, align 4, !tbaa !12
  %302 = fcmp ogt float %300, %301
  br i1 %302, label %308, label %303

303:                                              ; preds = %291
  %304 = load float, ptr %16, align 4, !tbaa !12
  %305 = load float, ptr %20, align 4, !tbaa !12
  %306 = fneg float %305
  %307 = fcmp olt float %304, %306
  br i1 %307, label %308, label %309

308:                                              ; preds = %303, %291
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

309:                                              ; preds = %303
  %310 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 1
  %311 = load float, ptr %310, align 4, !tbaa !13
  %312 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 0
  %313 = load float, ptr %312, align 4, !tbaa !9
  %314 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 0
  %315 = load float, ptr %314, align 4, !tbaa !9
  %316 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 1
  %317 = load float, ptr %316, align 4, !tbaa !13
  %318 = fmul float %315, %317
  %319 = fneg float %318
  %320 = call float @llvm.fmuladd.f32(float %311, float %313, float %319)
  store float %320, ptr %17, align 4, !tbaa !12
  %321 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 1
  %322 = load float, ptr %321, align 4, !tbaa !13
  %323 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 0
  %324 = load float, ptr %323, align 4, !tbaa !9
  %325 = getelementptr inbounds %"class.Maths::TVector3", ptr %28, i32 0, i32 0
  %326 = load float, ptr %325, align 4, !tbaa !9
  %327 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 1
  %328 = load float, ptr %327, align 4, !tbaa !13
  %329 = fmul float %326, %328
  %330 = fneg float %329
  %331 = call float @llvm.fmuladd.f32(float %322, float %324, float %330)
  store float %331, ptr %18, align 4, !tbaa !12
  %332 = load float, ptr %17, align 4, !tbaa !12
  %333 = load float, ptr %18, align 4, !tbaa !12
  %334 = fcmp olt float %332, %333
  br i1 %334, label %335, label %338

335:                                              ; preds = %309
  %336 = load float, ptr %17, align 4, !tbaa !12
  store float %336, ptr %15, align 4, !tbaa !12
  %337 = load float, ptr %18, align 4, !tbaa !12
  store float %337, ptr %16, align 4, !tbaa !12
  br label %341

338:                                              ; preds = %309
  %339 = load float, ptr %18, align 4, !tbaa !12
  store float %339, ptr %15, align 4, !tbaa !12
  %340 = load float, ptr %17, align 4, !tbaa !12
  store float %340, ptr %16, align 4, !tbaa !12
  br label %341

341:                                              ; preds = %338, %335
  %342 = load float, ptr %22, align 4, !tbaa !12
  %343 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 0
  %344 = load float, ptr %343, align 4, !tbaa !9
  %345 = load float, ptr %21, align 4, !tbaa !12
  %346 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 1
  %347 = load float, ptr %346, align 4, !tbaa !13
  %348 = fmul float %345, %347
  %349 = call float @llvm.fmuladd.f32(float %342, float %344, float %348)
  store float %349, ptr %20, align 4, !tbaa !12
  %350 = load float, ptr %15, align 4, !tbaa !12
  %351 = load float, ptr %20, align 4, !tbaa !12
  %352 = fcmp ogt float %350, %351
  br i1 %352, label %358, label %353

353:                                              ; preds = %341
  %354 = load float, ptr %16, align 4, !tbaa !12
  %355 = load float, ptr %20, align 4, !tbaa !12
  %356 = fneg float %355
  %357 = fcmp olt float %354, %356
  br i1 %357, label %358, label %359

358:                                              ; preds = %353, %341
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

359:                                              ; preds = %353
  %360 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 0
  %361 = load float, ptr %360, align 4, !tbaa !9
  %362 = call float @llvm.fabs.f32(float %361)
  store float %362, ptr %21, align 4, !tbaa !12
  %363 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 1
  %364 = load float, ptr %363, align 4, !tbaa !13
  %365 = call float @llvm.fabs.f32(float %364)
  store float %365, ptr %22, align 4, !tbaa !12
  %366 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 2
  %367 = load float, ptr %366, align 4, !tbaa !14
  %368 = call float @llvm.fabs.f32(float %367)
  store float %368, ptr %23, align 4, !tbaa !12
  %369 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 2
  %370 = load float, ptr %369, align 4, !tbaa !14
  %371 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 1
  %372 = load float, ptr %371, align 4, !tbaa !13
  %373 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 1
  %374 = load float, ptr %373, align 4, !tbaa !13
  %375 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 2
  %376 = load float, ptr %375, align 4, !tbaa !14
  %377 = fmul float %374, %376
  %378 = fneg float %377
  %379 = call float @llvm.fmuladd.f32(float %370, float %372, float %378)
  store float %379, ptr %17, align 4, !tbaa !12
  %380 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 2
  %381 = load float, ptr %380, align 4, !tbaa !14
  %382 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 1
  %383 = load float, ptr %382, align 4, !tbaa !13
  %384 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 1
  %385 = load float, ptr %384, align 4, !tbaa !13
  %386 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 2
  %387 = load float, ptr %386, align 4, !tbaa !14
  %388 = fmul float %385, %387
  %389 = fneg float %388
  %390 = call float @llvm.fmuladd.f32(float %381, float %383, float %389)
  store float %390, ptr %18, align 4, !tbaa !12
  %391 = load float, ptr %17, align 4, !tbaa !12
  %392 = load float, ptr %18, align 4, !tbaa !12
  %393 = fcmp olt float %391, %392
  br i1 %393, label %394, label %397

394:                                              ; preds = %359
  %395 = load float, ptr %17, align 4, !tbaa !12
  store float %395, ptr %15, align 4, !tbaa !12
  %396 = load float, ptr %18, align 4, !tbaa !12
  store float %396, ptr %16, align 4, !tbaa !12
  br label %400

397:                                              ; preds = %359
  %398 = load float, ptr %18, align 4, !tbaa !12
  store float %398, ptr %15, align 4, !tbaa !12
  %399 = load float, ptr %17, align 4, !tbaa !12
  store float %399, ptr %16, align 4, !tbaa !12
  br label %400

400:                                              ; preds = %397, %394
  %401 = load float, ptr %23, align 4, !tbaa !12
  %402 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 1
  %403 = load float, ptr %402, align 4, !tbaa !13
  %404 = load float, ptr %22, align 4, !tbaa !12
  %405 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 2
  %406 = load float, ptr %405, align 4, !tbaa !14
  %407 = fmul float %404, %406
  %408 = call float @llvm.fmuladd.f32(float %401, float %403, float %407)
  store float %408, ptr %20, align 4, !tbaa !12
  %409 = load float, ptr %15, align 4, !tbaa !12
  %410 = load float, ptr %20, align 4, !tbaa !12
  %411 = fcmp ogt float %409, %410
  br i1 %411, label %417, label %412

412:                                              ; preds = %400
  %413 = load float, ptr %16, align 4, !tbaa !12
  %414 = load float, ptr %20, align 4, !tbaa !12
  %415 = fneg float %414
  %416 = fcmp olt float %413, %415
  br i1 %416, label %417, label %418

417:                                              ; preds = %412, %400
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

418:                                              ; preds = %412
  %419 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 2
  %420 = load float, ptr %419, align 4, !tbaa !14
  %421 = fneg float %420
  %422 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 0
  %423 = load float, ptr %422, align 4, !tbaa !9
  %424 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 0
  %425 = load float, ptr %424, align 4, !tbaa !9
  %426 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 2
  %427 = load float, ptr %426, align 4, !tbaa !14
  %428 = fmul float %425, %427
  %429 = call float @llvm.fmuladd.f32(float %421, float %423, float %428)
  store float %429, ptr %17, align 4, !tbaa !12
  %430 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 2
  %431 = load float, ptr %430, align 4, !tbaa !14
  %432 = fneg float %431
  %433 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 0
  %434 = load float, ptr %433, align 4, !tbaa !9
  %435 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 0
  %436 = load float, ptr %435, align 4, !tbaa !9
  %437 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 2
  %438 = load float, ptr %437, align 4, !tbaa !14
  %439 = fmul float %436, %438
  %440 = call float @llvm.fmuladd.f32(float %432, float %434, float %439)
  store float %440, ptr %18, align 4, !tbaa !12
  %441 = load float, ptr %17, align 4, !tbaa !12
  %442 = load float, ptr %18, align 4, !tbaa !12
  %443 = fcmp olt float %441, %442
  br i1 %443, label %444, label %447

444:                                              ; preds = %418
  %445 = load float, ptr %17, align 4, !tbaa !12
  store float %445, ptr %15, align 4, !tbaa !12
  %446 = load float, ptr %18, align 4, !tbaa !12
  store float %446, ptr %16, align 4, !tbaa !12
  br label %450

447:                                              ; preds = %418
  %448 = load float, ptr %18, align 4, !tbaa !12
  store float %448, ptr %15, align 4, !tbaa !12
  %449 = load float, ptr %17, align 4, !tbaa !12
  store float %449, ptr %16, align 4, !tbaa !12
  br label %450

450:                                              ; preds = %447, %444
  %451 = load float, ptr %23, align 4, !tbaa !12
  %452 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 0
  %453 = load float, ptr %452, align 4, !tbaa !9
  %454 = load float, ptr %21, align 4, !tbaa !12
  %455 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 2
  %456 = load float, ptr %455, align 4, !tbaa !14
  %457 = fmul float %454, %456
  %458 = call float @llvm.fmuladd.f32(float %451, float %453, float %457)
  store float %458, ptr %20, align 4, !tbaa !12
  %459 = load float, ptr %15, align 4, !tbaa !12
  %460 = load float, ptr %20, align 4, !tbaa !12
  %461 = fcmp ogt float %459, %460
  br i1 %461, label %467, label %462

462:                                              ; preds = %450
  %463 = load float, ptr %16, align 4, !tbaa !12
  %464 = load float, ptr %20, align 4, !tbaa !12
  %465 = fneg float %464
  %466 = fcmp olt float %463, %465
  br i1 %466, label %467, label %468

467:                                              ; preds = %462, %450
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

468:                                              ; preds = %462
  %469 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 1
  %470 = load float, ptr %469, align 4, !tbaa !13
  %471 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 0
  %472 = load float, ptr %471, align 4, !tbaa !9
  %473 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 0
  %474 = load float, ptr %473, align 4, !tbaa !9
  %475 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 1
  %476 = load float, ptr %475, align 4, !tbaa !13
  %477 = fmul float %474, %476
  %478 = fneg float %477
  %479 = call float @llvm.fmuladd.f32(float %470, float %472, float %478)
  store float %479, ptr %18, align 4, !tbaa !12
  %480 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 1
  %481 = load float, ptr %480, align 4, !tbaa !13
  %482 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 0
  %483 = load float, ptr %482, align 4, !tbaa !9
  %484 = getelementptr inbounds %"class.Maths::TVector3", ptr %29, i32 0, i32 0
  %485 = load float, ptr %484, align 4, !tbaa !9
  %486 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 1
  %487 = load float, ptr %486, align 4, !tbaa !13
  %488 = fmul float %485, %487
  %489 = fneg float %488
  %490 = call float @llvm.fmuladd.f32(float %481, float %483, float %489)
  store float %490, ptr %19, align 4, !tbaa !12
  %491 = load float, ptr %19, align 4, !tbaa !12
  %492 = load float, ptr %18, align 4, !tbaa !12
  %493 = fcmp olt float %491, %492
  br i1 %493, label %494, label %497

494:                                              ; preds = %468
  %495 = load float, ptr %19, align 4, !tbaa !12
  store float %495, ptr %15, align 4, !tbaa !12
  %496 = load float, ptr %18, align 4, !tbaa !12
  store float %496, ptr %16, align 4, !tbaa !12
  br label %500

497:                                              ; preds = %468
  %498 = load float, ptr %18, align 4, !tbaa !12
  store float %498, ptr %15, align 4, !tbaa !12
  %499 = load float, ptr %19, align 4, !tbaa !12
  store float %499, ptr %16, align 4, !tbaa !12
  br label %500

500:                                              ; preds = %497, %494
  %501 = load float, ptr %22, align 4, !tbaa !12
  %502 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 0
  %503 = load float, ptr %502, align 4, !tbaa !9
  %504 = load float, ptr %21, align 4, !tbaa !12
  %505 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 1
  %506 = load float, ptr %505, align 4, !tbaa !13
  %507 = fmul float %504, %506
  %508 = call float @llvm.fmuladd.f32(float %501, float %503, float %507)
  store float %508, ptr %20, align 4, !tbaa !12
  %509 = load float, ptr %15, align 4, !tbaa !12
  %510 = load float, ptr %20, align 4, !tbaa !12
  %511 = fcmp ogt float %509, %510
  br i1 %511, label %517, label %512

512:                                              ; preds = %500
  %513 = load float, ptr %16, align 4, !tbaa !12
  %514 = load float, ptr %20, align 4, !tbaa !12
  %515 = fneg float %514
  %516 = fcmp olt float %513, %515
  br i1 %516, label %517, label %518

517:                                              ; preds = %512, %500
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

518:                                              ; preds = %512
  %519 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 0
  %520 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 0
  %521 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 0
  %522 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %520, ptr noundef nonnull align 4 dereferenceable(4) %521)
  %523 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %519, ptr noundef nonnull align 4 dereferenceable(4) %522)
  %524 = load float, ptr %523, align 4, !tbaa !12
  store float %524, ptr %15, align 4, !tbaa !12
  %525 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 0
  %526 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 0
  %527 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 0
  %528 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %526, ptr noundef nonnull align 4 dereferenceable(4) %527)
  %529 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %525, ptr noundef nonnull align 4 dereferenceable(4) %528)
  %530 = load float, ptr %529, align 4, !tbaa !12
  store float %530, ptr %16, align 4, !tbaa !12
  %531 = load float, ptr %15, align 4, !tbaa !12
  %532 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 0
  %533 = load float, ptr %532, align 4, !tbaa !9
  %534 = fcmp ogt float %531, %533
  br i1 %534, label %541, label %535

535:                                              ; preds = %518
  %536 = load float, ptr %16, align 4, !tbaa !12
  %537 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 0
  %538 = load float, ptr %537, align 4, !tbaa !9
  %539 = fneg float %538
  %540 = fcmp olt float %536, %539
  br i1 %540, label %541, label %542

541:                                              ; preds = %535, %518
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

542:                                              ; preds = %535
  %543 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 1
  %544 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 1
  %545 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 1
  %546 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %544, ptr noundef nonnull align 4 dereferenceable(4) %545)
  %547 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %543, ptr noundef nonnull align 4 dereferenceable(4) %546)
  %548 = load float, ptr %547, align 4, !tbaa !12
  store float %548, ptr %15, align 4, !tbaa !12
  %549 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 1
  %550 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 1
  %551 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 1
  %552 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %550, ptr noundef nonnull align 4 dereferenceable(4) %551)
  %553 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %549, ptr noundef nonnull align 4 dereferenceable(4) %552)
  %554 = load float, ptr %553, align 4, !tbaa !12
  store float %554, ptr %16, align 4, !tbaa !12
  %555 = load float, ptr %15, align 4, !tbaa !12
  %556 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 1
  %557 = load float, ptr %556, align 4, !tbaa !13
  %558 = fcmp ogt float %555, %557
  br i1 %558, label %565, label %559

559:                                              ; preds = %542
  %560 = load float, ptr %16, align 4, !tbaa !12
  %561 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 1
  %562 = load float, ptr %561, align 4, !tbaa !13
  %563 = fneg float %562
  %564 = fcmp olt float %560, %563
  br i1 %564, label %565, label %566

565:                                              ; preds = %559, %542
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

566:                                              ; preds = %559
  %567 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 2
  %568 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 2
  %569 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 2
  %570 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %568, ptr noundef nonnull align 4 dereferenceable(4) %569)
  %571 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %567, ptr noundef nonnull align 4 dereferenceable(4) %570)
  %572 = load float, ptr %571, align 4, !tbaa !12
  store float %572, ptr %15, align 4, !tbaa !12
  %573 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i32 0, i32 2
  %574 = getelementptr inbounds %"class.Maths::TVector3", ptr %25, i32 0, i32 2
  %575 = getelementptr inbounds %"class.Maths::TVector3", ptr %26, i32 0, i32 2
  %576 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %574, ptr noundef nonnull align 4 dereferenceable(4) %575)
  %577 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %573, ptr noundef nonnull align 4 dereferenceable(4) %576)
  %578 = load float, ptr %577, align 4, !tbaa !12
  store float %578, ptr %16, align 4, !tbaa !12
  %579 = load float, ptr %15, align 4, !tbaa !12
  %580 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 2
  %581 = load float, ptr %580, align 4, !tbaa !14
  %582 = fcmp ogt float %579, %581
  br i1 %582, label %589, label %583

583:                                              ; preds = %566
  %584 = load float, ptr %16, align 4, !tbaa !12
  %585 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 2
  %586 = load float, ptr %585, align 4, !tbaa !14
  %587 = fneg float %586
  %588 = fcmp olt float %584, %587
  br i1 %588, label %589, label %590

589:                                              ; preds = %583, %566
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %649

590:                                              ; preds = %583
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #5
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %31, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %28)
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %32)
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 0, ptr %35, align 4, !tbaa !15
  br label %591

591:                                              ; preds = %636, %590
  %592 = load i32, ptr %35, align 4, !tbaa !15
  %593 = icmp sle i32 %592, 2
  br i1 %593, label %595, label %594

594:                                              ; preds = %591
  store i32 2, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %639

595:                                              ; preds = %591
  %596 = load i32, ptr %35, align 4, !tbaa !15
  %597 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %24, i32 noundef %596)
  %598 = load float, ptr %597, align 4, !tbaa !12
  store float %598, ptr %34, align 4, !tbaa !12
  %599 = load i32, ptr %35, align 4, !tbaa !15
  %600 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %31, i32 noundef %599)
  %601 = load float, ptr %600, align 4, !tbaa !12
  %602 = fcmp ogt float %601, 0.000000e+00
  br i1 %602, label %603, label %619

603:                                              ; preds = %595
  %604 = load i32, ptr %35, align 4, !tbaa !15
  %605 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef %604)
  %606 = load float, ptr %605, align 4, !tbaa !12
  %607 = fneg float %606
  %608 = load float, ptr %34, align 4, !tbaa !12
  %609 = fsub float %607, %608
  %610 = load i32, ptr %35, align 4, !tbaa !15
  %611 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %32, i32 noundef %610)
  store float %609, ptr %611, align 4, !tbaa !12
  %612 = load i32, ptr %35, align 4, !tbaa !15
  %613 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef %612)
  %614 = load float, ptr %613, align 4, !tbaa !12
  %615 = load float, ptr %34, align 4, !tbaa !12
  %616 = fsub float %614, %615
  %617 = load i32, ptr %35, align 4, !tbaa !15
  %618 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %33, i32 noundef %617)
  store float %616, ptr %618, align 4, !tbaa !12
  br label %635

619:                                              ; preds = %595
  %620 = load i32, ptr %35, align 4, !tbaa !15
  %621 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef %620)
  %622 = load float, ptr %621, align 4, !tbaa !12
  %623 = load float, ptr %34, align 4, !tbaa !12
  %624 = fsub float %622, %623
  %625 = load i32, ptr %35, align 4, !tbaa !15
  %626 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %32, i32 noundef %625)
  store float %624, ptr %626, align 4, !tbaa !12
  %627 = load i32, ptr %35, align 4, !tbaa !15
  %628 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef %627)
  %629 = load float, ptr %628, align 4, !tbaa !12
  %630 = fneg float %629
  %631 = load float, ptr %34, align 4, !tbaa !12
  %632 = fsub float %630, %631
  %633 = load i32, ptr %35, align 4, !tbaa !15
  %634 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %33, i32 noundef %633)
  store float %632, ptr %634, align 4, !tbaa !12
  br label %635

635:                                              ; preds = %619, %603
  br label %636

636:                                              ; preds = %635
  %637 = load i32, ptr %35, align 4, !tbaa !15
  %638 = add nsw i32 %637, 1
  store i32 %638, ptr %35, align 4, !tbaa !15
  br label %591, !llvm.loop !17

639:                                              ; preds = %594
  %640 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %32)
  %641 = fcmp ogt float %640, 0.000000e+00
  br i1 %641, label %642, label %643

642:                                              ; preds = %639
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %648

643:                                              ; preds = %639
  %644 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %33)
  %645 = fcmp olt float %644, 0.000000e+00
  br i1 %645, label %646, label %647

646:                                              ; preds = %643
  store i1 false, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %648

647:                                              ; preds = %643
  store i1 true, ptr %6, align 1
  store i32 1, ptr %30, align 4
  br label %648

648:                                              ; preds = %647, %646, %642
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #5
  br label %649

649:                                              ; preds = %648, %589, %565, %541, %517, %467, %417, %358, %308, %258, %199, %149, %99
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  %650 = load i1, ptr %6, align 1
  ret i1 %650
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "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 #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, !11, i64 0}
!10 = !{!"_ZTSN5Maths8TVector3IfEE", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"float", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !11, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; 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"

%"class.Maths::TVector3" = type { float, float, float }

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7Riemann9Triangle313IntersectAABBERKN5Maths8TVector3IfEES5_S5_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4) local_unnamed_addr #4 align 2 {
  %6 = alloca %"class.Maths::TVector3", align 4
  %7 = alloca %"class.Maths::TVector3", align 4
  %8 = alloca %"class.Maths::TVector3", align 4
  %9 = alloca %"class.Maths::TVector3", align 4
  %10 = alloca %"class.Maths::TVector3", align 4
  %11 = alloca %"class.Maths::TVector3", align 4
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca %"class.Maths::TVector3", align 4
  %14 = alloca %"class.Maths::TVector3", align 4
  %15 = alloca %"class.Maths::TVector3", align 4
  %16 = alloca %"class.Maths::TVector3", align 4
  %17 = alloca %"class.Maths::TVector3", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %18 = load float, ptr %12, align 4, !tbaa !5
  %19 = call float @llvm.fabs.f32(float %18)
  %20 = getelementptr inbounds i8, ptr %12, i64 4
  %21 = load float, ptr %20, align 4, !tbaa !10
  %22 = call float @llvm.fabs.f32(float %21)
  %23 = getelementptr inbounds i8, ptr %12, i64 8
  %24 = load float, ptr %23, align 4, !tbaa !11
  %25 = call float @llvm.fabs.f32(float %24)
  %26 = getelementptr inbounds i8, ptr %9, i64 4
  %27 = load float, ptr %26, align 4, !tbaa !10
  %28 = getelementptr inbounds i8, ptr %9, i64 8
  %29 = load float, ptr %28, align 4, !tbaa !11
  %30 = fneg float %21
  %31 = getelementptr inbounds i8, ptr %11, i64 4
  %32 = load float, ptr %31, align 4, !tbaa !10
  %33 = getelementptr inbounds i8, ptr %11, i64 8
  %34 = load float, ptr %33, align 4, !tbaa !11
  %35 = insertelement <2 x float> poison, float %29, i64 0
  %36 = insertelement <2 x float> %35, float %34, i64 1
  %37 = insertelement <2 x float> poison, float %30, i64 0
  %38 = shufflevector <2 x float> %37, <2 x float> poison, <2 x i32> zeroinitializer
  %39 = fmul <2 x float> %36, %38
  %40 = insertelement <2 x float> poison, float %24, i64 0
  %41 = shufflevector <2 x float> %40, <2 x float> poison, <2 x i32> zeroinitializer
  %42 = insertelement <2 x float> poison, float %27, i64 0
  %43 = insertelement <2 x float> %42, float %32, i64 1
  %44 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %41, <2 x float> %43, <2 x float> %39)
  %45 = extractelement <2 x float> %44, i64 0
  %46 = extractelement <2 x float> %44, i64 1
  %47 = fcmp olt float %45, %46
  %. = select i1 %47, float %45, float %46
  %.196 = select i1 %47, float %46, float %45
  %48 = getelementptr inbounds i8, ptr %8, i64 4
  %49 = load float, ptr %48, align 4, !tbaa !10
  %50 = getelementptr inbounds i8, ptr %8, i64 8
  %51 = load float, ptr %50, align 4, !tbaa !11
  %52 = fmul float %22, %51
  %53 = call float @llvm.fmuladd.f32(float %25, float %49, float %52)
  %54 = fcmp ogt float %., %53
  %55 = fneg float %53
  %56 = fcmp olt float %.196, %55
  %or.cond = or i1 %54, %56
  br i1 %or.cond, label %327, label %57

57:                                               ; preds = %5
  %58 = fneg float %24
  %59 = load float, ptr %9, align 4, !tbaa !5
  %60 = insertelement <2 x float> poison, float %18, i64 0
  %61 = shufflevector <2 x float> %60, <2 x float> poison, <2 x i32> zeroinitializer
  %62 = fmul <2 x float> %61, %36
  %63 = load float, ptr %11, align 4, !tbaa !5
  %64 = insertelement <2 x float> poison, float %58, i64 0
  %65 = shufflevector <2 x float> %64, <2 x float> poison, <2 x i32> zeroinitializer
  %66 = insertelement <2 x float> poison, float %59, i64 0
  %67 = insertelement <2 x float> %66, float %63, i64 1
  %68 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %65, <2 x float> %67, <2 x float> %62)
  %69 = extractelement <2 x float> %68, i64 0
  %70 = extractelement <2 x float> %68, i64 1
  %71 = fcmp olt float %69, %70
  %.198 = select i1 %71, float %69, float %70
  %.199 = select i1 %71, float %70, float %69
  %72 = load float, ptr %8, align 4, !tbaa !5
  %73 = fmul float %19, %51
  %74 = call float @llvm.fmuladd.f32(float %25, float %72, float %73)
  %75 = fcmp ogt float %.198, %74
  %76 = fneg float %74
  %77 = fcmp olt float %.199, %76
  %or.cond201 = or i1 %75, %77
  br i1 %or.cond201, label %327, label %78

78:                                               ; preds = %57
  %79 = load float, ptr %10, align 4, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %10, i64 4
  %81 = load float, ptr %80, align 4, !tbaa !10
  %82 = fneg float %18
  %83 = insertelement <2 x float> poison, float %32, i64 0
  %84 = insertelement <2 x float> %83, float %81, i64 1
  %85 = insertelement <2 x float> poison, float %82, i64 0
  %86 = shufflevector <2 x float> %85, <2 x float> poison, <2 x i32> zeroinitializer
  %87 = fmul <2 x float> %84, %86
  %88 = insertelement <2 x float> poison, float %21, i64 0
  %89 = shufflevector <2 x float> %88, <2 x float> poison, <2 x i32> zeroinitializer
  %90 = insertelement <2 x float> poison, float %63, i64 0
  %91 = insertelement <2 x float> %90, float %79, i64 1
  %92 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %89, <2 x float> %91, <2 x float> %87)
  %93 = extractelement <2 x float> %92, i64 0
  %94 = extractelement <2 x float> %92, i64 1
  %95 = fcmp olt float %93, %94
  %.202 = select i1 %95, float %93, float %94
  %.203 = select i1 %95, float %94, float %93
  %96 = fmul float %19, %49
  %97 = call float @llvm.fmuladd.f32(float %22, float %72, float %96)
  %98 = fcmp ogt float %.202, %97
  %99 = fneg float %97
  %100 = fcmp olt float %.203, %99
  %or.cond205 = or i1 %98, %100
  br i1 %or.cond205, label %327, label %101

101:                                              ; preds = %78
  %102 = load float, ptr %13, align 4, !tbaa !5
  %103 = call float @llvm.fabs.f32(float %102)
  %104 = getelementptr inbounds i8, ptr %13, i64 4
  %105 = load float, ptr %104, align 4, !tbaa !10
  %106 = call float @llvm.fabs.f32(float %105)
  %107 = getelementptr inbounds i8, ptr %13, i64 8
  %108 = load float, ptr %107, align 4, !tbaa !11
  %109 = call float @llvm.fabs.f32(float %108)
  %110 = fneg float %105
  %111 = insertelement <2 x float> poison, float %110, i64 0
  %112 = shufflevector <2 x float> %111, <2 x float> poison, <2 x i32> zeroinitializer
  %113 = fmul <2 x float> %36, %112
  %114 = insertelement <2 x float> poison, float %108, i64 0
  %115 = shufflevector <2 x float> %114, <2 x float> poison, <2 x i32> zeroinitializer
  %116 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %115, <2 x float> %43, <2 x float> %113)
  %117 = extractelement <2 x float> %116, i64 0
  %118 = extractelement <2 x float> %116, i64 1
  %119 = fcmp olt float %117, %118
  %.206 = select i1 %119, float %117, float %118
  %.207 = select i1 %119, float %118, float %117
  %120 = fmul float %51, %106
  %121 = call float @llvm.fmuladd.f32(float %109, float %49, float %120)
  %122 = fcmp ogt float %.206, %121
  %123 = fneg float %121
  %124 = fcmp olt float %.207, %123
  %or.cond209 = or i1 %122, %124
  br i1 %or.cond209, label %327, label %125

125:                                              ; preds = %101
  %126 = fneg float %108
  %127 = insertelement <2 x float> poison, float %102, i64 0
  %128 = shufflevector <2 x float> %127, <2 x float> poison, <2 x i32> zeroinitializer
  %129 = fmul <2 x float> %36, %128
  %130 = insertelement <2 x float> poison, float %126, i64 0
  %131 = shufflevector <2 x float> %130, <2 x float> poison, <2 x i32> zeroinitializer
  %132 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %131, <2 x float> %67, <2 x float> %129)
  %133 = extractelement <2 x float> %132, i64 0
  %134 = extractelement <2 x float> %132, i64 1
  %135 = fcmp olt float %133, %134
  %.210 = select i1 %135, float %133, float %134
  %.211 = select i1 %135, float %134, float %133
  %136 = fmul float %51, %103
  %137 = call float @llvm.fmuladd.f32(float %109, float %72, float %136)
  %138 = fcmp ogt float %.210, %137
  %139 = fneg float %137
  %140 = fcmp olt float %.211, %139
  %or.cond213 = or i1 %138, %140
  br i1 %or.cond213, label %327, label %141

141:                                              ; preds = %125
  %142 = fneg float %102
  %143 = insertelement <2 x float> %42, float %81, i64 1
  %144 = insertelement <2 x float> poison, float %142, i64 0
  %145 = shufflevector <2 x float> %144, <2 x float> poison, <2 x i32> zeroinitializer
  %146 = fmul <2 x float> %143, %145
  %147 = insertelement <2 x float> poison, float %105, i64 0
  %148 = shufflevector <2 x float> %147, <2 x float> poison, <2 x i32> zeroinitializer
  %149 = insertelement <2 x float> %66, float %79, i64 1
  %150 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %148, <2 x float> %149, <2 x float> %146)
  %151 = extractelement <2 x float> %150, i64 0
  %152 = extractelement <2 x float> %150, i64 1
  %153 = fcmp olt float %151, %152
  %.214 = select i1 %153, float %151, float %152
  %.215 = select i1 %153, float %152, float %151
  %154 = fmul float %49, %103
  %155 = call float @llvm.fmuladd.f32(float %106, float %72, float %154)
  %156 = fcmp ogt float %.214, %155
  %157 = fneg float %155
  %158 = fcmp olt float %.215, %157
  %or.cond217 = or i1 %156, %158
  br i1 %or.cond217, label %327, label %159

159:                                              ; preds = %141
  %160 = load float, ptr %14, align 4, !tbaa !5
  %161 = call float @llvm.fabs.f32(float %160)
  %162 = getelementptr inbounds i8, ptr %14, i64 4
  %163 = load float, ptr %162, align 4, !tbaa !10
  %164 = call float @llvm.fabs.f32(float %163)
  %165 = getelementptr inbounds i8, ptr %14, i64 8
  %166 = load float, ptr %165, align 4, !tbaa !11
  %167 = call float @llvm.fabs.f32(float %166)
  %168 = fneg float %163
  %169 = getelementptr inbounds i8, ptr %10, i64 8
  %170 = load float, ptr %169, align 4, !tbaa !11
  %171 = insertelement <2 x float> %35, float %170, i64 1
  %172 = insertelement <2 x float> poison, float %168, i64 0
  %173 = shufflevector <2 x float> %172, <2 x float> poison, <2 x i32> zeroinitializer
  %174 = fmul <2 x float> %171, %173
  %175 = insertelement <2 x float> poison, float %166, i64 0
  %176 = shufflevector <2 x float> %175, <2 x float> poison, <2 x i32> zeroinitializer
  %177 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %176, <2 x float> %143, <2 x float> %174)
  %178 = extractelement <2 x float> %177, i64 0
  %179 = extractelement <2 x float> %177, i64 1
  %180 = fcmp olt float %178, %179
  %.218 = select i1 %180, float %178, float %179
  %.219 = select i1 %180, float %179, float %178
  %181 = fmul float %51, %164
  %182 = call float @llvm.fmuladd.f32(float %167, float %49, float %181)
  %183 = fcmp ogt float %.218, %182
  %184 = fneg float %182
  %185 = fcmp olt float %.219, %184
  %or.cond221 = or i1 %183, %185
  br i1 %or.cond221, label %327, label %186

186:                                              ; preds = %159
  %187 = fneg float %166
  %188 = insertelement <2 x float> poison, float %160, i64 0
  %189 = shufflevector <2 x float> %188, <2 x float> poison, <2 x i32> zeroinitializer
  %190 = fmul <2 x float> %171, %189
  %191 = insertelement <2 x float> poison, float %187, i64 0
  %192 = shufflevector <2 x float> %191, <2 x float> poison, <2 x i32> zeroinitializer
  %193 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %192, <2 x float> %149, <2 x float> %190)
  %194 = extractelement <2 x float> %193, i64 0
  %195 = extractelement <2 x float> %193, i64 1
  %196 = fcmp olt float %194, %195
  %.222 = select i1 %196, float %194, float %195
  %.223 = select i1 %196, float %195, float %194
  %197 = fmul float %51, %161
  %198 = call float @llvm.fmuladd.f32(float %167, float %72, float %197)
  %199 = fcmp ogt float %.222, %198
  %200 = fneg float %198
  %201 = fcmp olt float %.223, %200
  %or.cond225 = or i1 %199, %201
  br i1 %or.cond225, label %327, label %202

202:                                              ; preds = %186
  %203 = fneg float %160
  %204 = insertelement <2 x float> poison, float %203, i64 0
  %205 = shufflevector <2 x float> %204, <2 x float> poison, <2 x i32> zeroinitializer
  %206 = fmul <2 x float> %84, %205
  %207 = insertelement <2 x float> poison, float %163, i64 0
  %208 = shufflevector <2 x float> %207, <2 x float> poison, <2 x i32> zeroinitializer
  %209 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %208, <2 x float> %91, <2 x float> %206)
  %210 = extractelement <2 x float> %209, i64 0
  %211 = extractelement <2 x float> %209, i64 1
  %212 = fcmp olt float %210, %211
  %.226 = select i1 %212, float %210, float %211
  %.227 = select i1 %212, float %211, float %210
  %213 = fmul float %49, %161
  %214 = call float @llvm.fmuladd.f32(float %164, float %72, float %213)
  %215 = fcmp ogt float %.226, %214
  %216 = fneg float %214
  %217 = fcmp olt float %.227, %216
  %or.cond229 = or i1 %215, %217
  br i1 %or.cond229, label %327, label %218

218:                                              ; preds = %202
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %220 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %219)
  %221 = load float, ptr %220, align 4, !tbaa !12
  %222 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %223 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %222)
  %224 = load float, ptr %8, align 4, !tbaa !5
  %225 = fcmp ogt float %221, %224
  br i1 %225, label %327, label %226

226:                                              ; preds = %218
  %227 = load float, ptr %223, align 4, !tbaa !12
  %228 = fneg float %224
  %229 = fcmp olt float %227, %228
  br i1 %229, label %327, label %230

230:                                              ; preds = %226
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %80, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %231)
  %233 = load float, ptr %232, align 4, !tbaa !12
  %234 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %80, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %235 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %234)
  %236 = load float, ptr %48, align 4, !tbaa !10
  %237 = fcmp ogt float %233, %236
  br i1 %237, label %327, label %238

238:                                              ; preds = %230
  %239 = load float, ptr %235, align 4, !tbaa !12
  %240 = fneg float %236
  %241 = fcmp olt float %239, %240
  br i1 %241, label %327, label %242

242:                                              ; preds = %238
  %243 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %169, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %244 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %243)
  %245 = load float, ptr %244, align 4, !tbaa !12
  %246 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %169, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %247 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %246)
  %248 = load float, ptr %50, align 4, !tbaa !11
  %249 = fcmp ogt float %245, %248
  br i1 %249, label %327, label %250

250:                                              ; preds = %242
  %251 = load float, ptr %247, align 4, !tbaa !12
  %252 = fneg float %248
  %253 = fcmp olt float %251, %252
  br i1 %253, label %327, label %254

254:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #6
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %13)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #6
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #6
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %17)
  %255 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef 0)
  %256 = load float, ptr %255, align 4, !tbaa !12
  %257 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 0)
  %258 = load float, ptr %257, align 4, !tbaa !12
  %259 = fcmp ogt float %258, 0.000000e+00
  %260 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 0)
  %261 = load float, ptr %260, align 4, !tbaa !12
  br i1 %259, label %262, label %268

262:                                              ; preds = %254
  %263 = fneg float %261
  %264 = fsub float %263, %256
  %265 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 0)
  store float %264, ptr %265, align 4, !tbaa !12
  %266 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 0)
  %267 = load float, ptr %266, align 4, !tbaa !12
  br label %274

268:                                              ; preds = %254
  %269 = fsub float %261, %256
  %270 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 0)
  store float %269, ptr %270, align 4, !tbaa !12
  %271 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 0)
  %272 = load float, ptr %271, align 4, !tbaa !12
  %273 = fneg float %272
  br label %274

274:                                              ; preds = %262, %268
  %.sink233 = phi float [ %267, %262 ], [ %273, %268 ]
  %275 = fsub float %.sink233, %256
  %276 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 0)
  store float %275, ptr %276, align 4, !tbaa !12
  %277 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef 1)
  %278 = load float, ptr %277, align 4, !tbaa !12
  %279 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 1)
  %280 = load float, ptr %279, align 4, !tbaa !12
  %281 = fcmp ogt float %280, 0.000000e+00
  %282 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 1)
  %283 = load float, ptr %282, align 4, !tbaa !12
  br i1 %281, label %290, label %284

284:                                              ; preds = %274
  %285 = fsub float %283, %278
  %286 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 1)
  store float %285, ptr %286, align 4, !tbaa !12
  %287 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 1)
  %288 = load float, ptr %287, align 4, !tbaa !12
  %289 = fneg float %288
  br label %296

290:                                              ; preds = %274
  %291 = fneg float %283
  %292 = fsub float %291, %278
  %293 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 1)
  store float %292, ptr %293, align 4, !tbaa !12
  %294 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 1)
  %295 = load float, ptr %294, align 4, !tbaa !12
  br label %296

296:                                              ; preds = %290, %284
  %.sink235 = phi float [ %295, %290 ], [ %289, %284 ]
  %297 = fsub float %.sink235, %278
  %298 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 1)
  store float %297, ptr %298, align 4, !tbaa !12
  %299 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef 2)
  %300 = load float, ptr %299, align 4, !tbaa !12
  %301 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 2)
  %302 = load float, ptr %301, align 4, !tbaa !12
  %303 = fcmp ogt float %302, 0.000000e+00
  %304 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 2)
  %305 = load float, ptr %304, align 4, !tbaa !12
  br i1 %303, label %312, label %306

306:                                              ; preds = %296
  %307 = fsub float %305, %300
  %308 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 2)
  store float %307, ptr %308, align 4, !tbaa !12
  %309 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 2)
  %310 = load float, ptr %309, align 4, !tbaa !12
  %311 = fneg float %310
  br label %318

312:                                              ; preds = %296
  %313 = fneg float %305
  %314 = fsub float %313, %300
  %315 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 2)
  store float %314, ptr %315, align 4, !tbaa !12
  %316 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 2)
  %317 = load float, ptr %316, align 4, !tbaa !12
  br label %318

318:                                              ; preds = %312, %306
  %.sink237 = phi float [ %317, %312 ], [ %311, %306 ]
  %319 = fsub float %.sink237, %300
  %320 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 2)
  store float %319, ptr %320, align 4, !tbaa !12
  %321 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %16)
  %322 = fcmp ogt float %321, 0.000000e+00
  br i1 %322, label %326, label %323

323:                                              ; preds = %318
  %324 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %17)
  %325 = fcmp uge float %324, 0.000000e+00
  br label %326

326:                                              ; preds = %323, %318
  %.0136 = phi i1 [ false, %318 ], [ %325, %323 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #6
  br label %327

327:                                              ; preds = %242, %250, %230, %238, %218, %226, %202, %186, %159, %141, %125, %101, %78, %57, %5, %326
  %.1 = phi i1 [ %.0136, %326 ], [ false, %5 ], [ false, %57 ], [ false, %78 ], [ false, %101 ], [ false, %125 ], [ false, %141 ], [ false, %159 ], [ false, %186 ], [ false, %202 ], [ false, %226 ], [ false, %218 ], [ false, %238 ], [ false, %230 ], [ false, %250 ], [ false, %242 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  ret i1 %.1
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Maths8TVector3IfEixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"_ZTSN5Maths8TVector3IfEE", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
!12 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass