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

; 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 }
%"class.Riemann::Cylinder3" = type { float, float, %"class.Maths::TVector3", %"class.Maths::TVector3" }

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

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

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

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

; 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: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann9Cylinder316IntersectSegmentERKN5Maths8TVector3IfEES5_(ptr noundef nonnull align 4 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) #3 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %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 float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, 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 float, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #6
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #6
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %27)
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #6
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %28)
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %29 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %10)
  store float %29, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %30 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %10)
  store float %30, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %31 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %10)
  store float %31, ptr %15, align 4, !tbaa !9
  %32 = load float, ptr %13, align 4, !tbaa !9
  %33 = fcmp olt float %32, 0.000000e+00
  br i1 %33, label %34, label %40

34:                                               ; preds = %3
  %35 = load float, ptr %13, align 4, !tbaa !9
  %36 = load float, ptr %14, align 4, !tbaa !9
  %37 = fadd float %35, %36
  %38 = fcmp olt float %37, 0.000000e+00
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  store i1 false, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %174

40:                                               ; preds = %34, %3
  %41 = load float, ptr %13, align 4, !tbaa !9
  %42 = load float, ptr %15, align 4, !tbaa !9
  %43 = fcmp ogt float %41, %42
  br i1 %43, label %44, label %51

44:                                               ; preds = %40
  %45 = load float, ptr %13, align 4, !tbaa !9
  %46 = load float, ptr %14, align 4, !tbaa !9
  %47 = fadd float %45, %46
  %48 = load float, ptr %15, align 4, !tbaa !9
  %49 = fcmp ogt float %47, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %44
  store i1 false, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %174

51:                                               ; preds = %44, %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %52 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %12)
  store float %52, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %53 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %11)
  store float %53, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %54 = load float, ptr %15, align 4, !tbaa !9
  %55 = load float, ptr %17, align 4, !tbaa !9
  %56 = load float, ptr %14, align 4, !tbaa !9
  %57 = load float, ptr %14, align 4, !tbaa !9
  %58 = fmul float %56, %57
  %59 = fneg float %58
  %60 = call float @llvm.fmuladd.f32(float %54, float %55, float %59)
  store float %60, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %61 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %62 = getelementptr inbounds %"class.Riemann::Cylinder3", ptr %25, i32 0, i32 0
  %63 = load float, ptr %62, align 4, !tbaa !11
  %64 = getelementptr inbounds %"class.Riemann::Cylinder3", ptr %25, i32 0, i32 0
  %65 = load float, ptr %64, align 4, !tbaa !11
  %66 = fneg float %63
  %67 = call float @llvm.fmuladd.f32(float %66, float %65, float %61)
  store float %67, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %68 = load float, ptr %15, align 4, !tbaa !9
  %69 = load float, ptr %20, align 4, !tbaa !9
  %70 = load float, ptr %13, align 4, !tbaa !9
  %71 = load float, ptr %13, align 4, !tbaa !9
  %72 = fmul float %70, %71
  %73 = fneg float %72
  %74 = call float @llvm.fmuladd.f32(float %68, float %69, float %73)
  store float %74, ptr %21, align 4, !tbaa !9
  %75 = load float, ptr %19, align 4, !tbaa !9
  %76 = call float @llvm.fabs.f32(float %75)
  %77 = fcmp olt float %76, 0x3EB0C6F7A0000000
  br i1 %77, label %78, label %81

78:                                               ; preds = %51
  %79 = load float, ptr %21, align 4, !tbaa !9
  %80 = fcmp ole float %79, 0.000000e+00
  store i1 %80, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %173

81:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %82 = load float, ptr %15, align 4, !tbaa !9
  %83 = load float, ptr %18, align 4, !tbaa !9
  %84 = load float, ptr %14, align 4, !tbaa !9
  %85 = load float, ptr %13, align 4, !tbaa !9
  %86 = fmul float %84, %85
  %87 = fneg float %86
  %88 = call float @llvm.fmuladd.f32(float %82, float %83, float %87)
  store float %88, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %89 = load float, ptr %22, align 4, !tbaa !9
  %90 = load float, ptr %22, align 4, !tbaa !9
  %91 = load float, ptr %19, align 4, !tbaa !9
  %92 = load float, ptr %21, align 4, !tbaa !9
  %93 = fmul float %91, %92
  %94 = fneg float %93
  %95 = call float @llvm.fmuladd.f32(float %89, float %90, float %94)
  store float %95, ptr %23, align 4, !tbaa !9
  %96 = load float, ptr %23, align 4, !tbaa !9
  %97 = fcmp olt float %96, 0.000000e+00
  br i1 %97, label %98, label %99

98:                                               ; preds = %81
  store i1 false, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %172

99:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %100 = load float, ptr %22, align 4, !tbaa !9
  %101 = fneg float %100
  %102 = load float, ptr %23, align 4, !tbaa !9
  %103 = call float @sqrtf(float noundef %102) #6
  %104 = fsub float %101, %103
  %105 = load float, ptr %19, align 4, !tbaa !9
  %106 = fdiv float %104, %105
  store float %106, ptr %24, align 4, !tbaa !9
  %107 = load float, ptr %24, align 4, !tbaa !9
  %108 = fcmp olt float %107, 0.000000e+00
  br i1 %108, label %112, label %109

109:                                              ; preds = %99
  %110 = load float, ptr %24, align 4, !tbaa !9
  %111 = fcmp ogt float %110, 1.000000e+00
  br i1 %111, label %112, label %113

112:                                              ; preds = %109, %99
  store i1 false, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %171

113:                                              ; preds = %109
  %114 = load float, ptr %13, align 4, !tbaa !9
  %115 = load float, ptr %24, align 4, !tbaa !9
  %116 = load float, ptr %14, align 4, !tbaa !9
  %117 = call float @llvm.fmuladd.f32(float %115, float %116, float %114)
  %118 = fcmp olt float %117, 0.000000e+00
  br i1 %118, label %119, label %137

119:                                              ; preds = %113
  %120 = load float, ptr %14, align 4, !tbaa !9
  %121 = fcmp ole float %120, 0.000000e+00
  br i1 %121, label %122, label %123

122:                                              ; preds = %119
  store i1 false, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %171

123:                                              ; preds = %119
  %124 = load float, ptr %13, align 4, !tbaa !9
  %125 = fneg float %124
  %126 = load float, ptr %14, align 4, !tbaa !9
  %127 = fdiv float %125, %126
  store float %127, ptr %24, align 4, !tbaa !9
  %128 = load float, ptr %20, align 4, !tbaa !9
  %129 = load float, ptr %24, align 4, !tbaa !9
  %130 = fmul float 2.000000e+00, %129
  %131 = load float, ptr %18, align 4, !tbaa !9
  %132 = load float, ptr %24, align 4, !tbaa !9
  %133 = load float, ptr %17, align 4, !tbaa !9
  %134 = call float @llvm.fmuladd.f32(float %132, float %133, float %131)
  %135 = call float @llvm.fmuladd.f32(float %130, float %134, float %128)
  %136 = fcmp ole float %135, 0.000000e+00
  store i1 %136, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %171

137:                                              ; preds = %113
  %138 = load float, ptr %13, align 4, !tbaa !9
  %139 = load float, ptr %24, align 4, !tbaa !9
  %140 = load float, ptr %14, align 4, !tbaa !9
  %141 = call float @llvm.fmuladd.f32(float %139, float %140, float %138)
  %142 = load float, ptr %15, align 4, !tbaa !9
  %143 = fcmp ogt float %141, %142
  br i1 %143, label %144, label %169

144:                                              ; preds = %137
  %145 = load float, ptr %14, align 4, !tbaa !9
  %146 = fcmp oge float %145, 0.000000e+00
  br i1 %146, label %147, label %148

147:                                              ; preds = %144
  store i1 false, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %171

148:                                              ; preds = %144
  %149 = load float, ptr %15, align 4, !tbaa !9
  %150 = load float, ptr %13, align 4, !tbaa !9
  %151 = fsub float %149, %150
  %152 = load float, ptr %14, align 4, !tbaa !9
  %153 = fdiv float %151, %152
  store float %153, ptr %24, align 4, !tbaa !9
  %154 = load float, ptr %20, align 4, !tbaa !9
  %155 = load float, ptr %15, align 4, !tbaa !9
  %156 = fadd float %154, %155
  %157 = load float, ptr %13, align 4, !tbaa !9
  %158 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %157, float %156)
  %159 = load float, ptr %24, align 4, !tbaa !9
  %160 = load float, ptr %18, align 4, !tbaa !9
  %161 = load float, ptr %14, align 4, !tbaa !9
  %162 = fsub float %160, %161
  %163 = load float, ptr %24, align 4, !tbaa !9
  %164 = load float, ptr %17, align 4, !tbaa !9
  %165 = fmul float %163, %164
  %166 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %162, float %165)
  %167 = call float @llvm.fmuladd.f32(float %159, float %166, float %158)
  %168 = fcmp ole float %167, 0.000000e+00
  store i1 %168, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %171

169:                                              ; preds = %137
  br label %170

170:                                              ; preds = %169
  store i1 true, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %171

171:                                              ; preds = %170, %148, %147, %123, %122, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %172

172:                                              ; preds = %171, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %173

173:                                              ; preds = %172, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %174

174:                                              ; preds = %173, %50, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  %175 = load i1, ptr %4, align 1
  ret i1 %175
}

; 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 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)) #4 align 2

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #5

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #4 = { 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 #5 = { nounwind "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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN7Riemann9Cylinder3E", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 20}
!13 = !{!"_ZTSN5Maths8TVector3IfEE", !10, i64 0, !10, i64 4, !10, i64 8}


; 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 speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #0

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

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

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

; 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 uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann9Cylinder316IntersectSegmentERKN5Maths8TVector3IfEES5_(ptr nocapture noundef nonnull readonly align 4 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) local_unnamed_addr #3 align 2 {
  %4 = alloca %"class.Maths::TVector3", align 4
  %5 = alloca %"class.Maths::TVector3", align 4
  %6 = alloca %"class.Maths::TVector3", align 4
  %7 = alloca %"class.Maths::TVector3", align 4
  %8 = alloca %"class.Maths::TVector3", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(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) %2)
  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) %5, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %9 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %10 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %11 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %12 = fcmp olt float %9, 0.000000e+00
  %13 = fadd float %9, %10
  %14 = fcmp olt float %13, 0.000000e+00
  %or.cond75 = and i1 %12, %14
  br i1 %or.cond75, label %74, label %15

15:                                               ; preds = %3
  %16 = fcmp ogt float %9, %11
  %17 = fcmp ogt float %13, %11
  %or.cond77 = and i1 %16, %17
  br i1 %or.cond77, label %74, label %18

18:                                               ; preds = %15
  %19 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %20 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %21 = fneg float %10
  %22 = fmul float %10, %21
  %23 = call float @llvm.fmuladd.f32(float %11, float %19, float %22)
  %24 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %25 = load float, ptr %0, align 4, !tbaa !5
  %26 = fneg float %25
  %27 = call float @llvm.fmuladd.f32(float %26, float %25, float %24)
  %28 = fneg float %9
  %29 = fmul float %9, %28
  %30 = call float @llvm.fmuladd.f32(float %11, float %27, float %29)
  %31 = call float @llvm.fabs.f32(float %23)
  %32 = fcmp olt float %31, 0x3EB0C6F7A0000000
  br i1 %32, label %33, label %35

33:                                               ; preds = %18
  %34 = fcmp ole float %30, 0.000000e+00
  br label %74

35:                                               ; preds = %18
  %36 = fmul float %9, %21
  %37 = call float @llvm.fmuladd.f32(float %11, float %20, float %36)
  %38 = fneg float %23
  %39 = fmul float %30, %38
  %40 = call float @llvm.fmuladd.f32(float %37, float %37, float %39)
  %41 = fcmp olt float %40, 0.000000e+00
  br i1 %41, label %74, label %42

42:                                               ; preds = %35
  %43 = fneg float %37
  %44 = call float @sqrtf(float noundef %40) #6
  %45 = fsub float %43, %44
  %46 = fdiv float %45, %23
  %47 = fcmp olt float %46, 0.000000e+00
  %48 = fcmp ogt float %46, 1.000000e+00
  %or.cond = or i1 %47, %48
  br i1 %or.cond, label %74, label %49

49:                                               ; preds = %42
  %50 = call float @llvm.fmuladd.f32(float %46, float %10, float %9)
  %51 = fcmp olt float %50, 0.000000e+00
  br i1 %51, label %52, label %60

52:                                               ; preds = %49
  %53 = fcmp ugt float %10, 0.000000e+00
  br i1 %53, label %54, label %74

54:                                               ; preds = %52
  %55 = fdiv float %28, %10
  %56 = fmul float %55, 2.000000e+00
  %57 = call float @llvm.fmuladd.f32(float %55, float %19, float %20)
  %58 = call float @llvm.fmuladd.f32(float %56, float %57, float %27)
  %59 = fcmp ole float %58, 0.000000e+00
  br label %74

60:                                               ; preds = %49
  %61 = fcmp ogt float %50, %11
  br i1 %61, label %62, label %74

62:                                               ; preds = %60
  %63 = fcmp ult float %10, 0.000000e+00
  br i1 %63, label %64, label %74

64:                                               ; preds = %62
  %65 = fsub float %11, %9
  %66 = fdiv float %65, %10
  %67 = fadd float %11, %27
  %68 = call float @llvm.fmuladd.f32(float %9, float -2.000000e+00, float %67)
  %69 = fsub float %20, %10
  %70 = fmul float %66, %19
  %71 = call float @llvm.fmuladd.f32(float %69, float 2.000000e+00, float %70)
  %72 = call float @llvm.fmuladd.f32(float %66, float %71, float %68)
  %73 = fcmp ole float %72, 0.000000e+00
  br label %74

74:                                               ; preds = %33, %54, %64, %42, %52, %62, %60, %35, %15, %3
  %.3 = phi i1 [ false, %3 ], [ false, %15 ], [ %34, %33 ], [ false, %35 ], [ %59, %54 ], [ %73, %64 ], [ false, %42 ], [ false, %52 ], [ false, %62 ], [ true, %60 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  ret i1 %.3
}

; 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 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 #4 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #4 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(write) "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 #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 = !{!"_ZTSN7Riemann9Cylinder3E", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 20}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN5Maths8TVector3IfEE", !7, i64 0, !7, i64 4, !7, i64 8}


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