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

; 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::OrientedBox3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::Matrix3" }
%"class.Maths::Matrix3" = type { [3 x [3 x float]] }

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(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 @_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)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix36ColumnEi(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(36), i32 noundef) #2 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)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann12OrientedBox312PenetrateOBBERKS0_PN5Maths8TVector3IfEEPf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef %2, ptr noundef %3) #3 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.Maths::TVector3", align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.Maths::TVector3", align 4
  %15 = alloca %"class.Maths::TVector3", align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.Maths::TVector3", align 4
  %19 = alloca %"class.Maths::TVector3", align 4
  %20 = alloca %"class.Maths::TVector3", align 4
  %21 = alloca %"class.Maths::TVector3", align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #4
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store float 0x47EFFFFFE0000000, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %23

23:                                               ; preds = %43, %4
  %24 = load i32, ptr %12, align 4, !tbaa !11
  %25 = icmp slt i32 %24, 3
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  store i32 2, ptr %13, align 4
  br label %46

27:                                               ; preds = %23
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #4
  %29 = getelementptr inbounds %"class.Riemann::OrientedBox3", ptr %22, i32 0, i32 2
  %30 = load i32, ptr %12, align 4, !tbaa !11
  call void @_ZNK5Maths7Matrix36ColumnEi(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(36) %29, i32 noundef %30)
  %31 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %22, ptr noundef nonnull align 4 dereferenceable(60) %28, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef %10, ptr noundef %11)
  %32 = xor i1 %31, true
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #4
  br i1 %32, label %33, label %34

33:                                               ; preds = %27
  store i1 false, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %46

34:                                               ; preds = %27
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #4
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.Riemann::OrientedBox3", ptr %36, i32 0, i32 2
  %38 = load i32, ptr %12, align 4, !tbaa !11
  call void @_ZNK5Maths7Matrix36ColumnEi(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(36) %37, i32 noundef %38)
  %39 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %22, ptr noundef nonnull align 4 dereferenceable(60) %35, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef %10, ptr noundef %11)
  %40 = xor i1 %39, true
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #4
  br i1 %40, label %41, label %42

41:                                               ; preds = %34
  store i1 false, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %46

42:                                               ; preds = %34
  br label %43

43:                                               ; preds = %42
  %44 = load i32, ptr %12, align 4, !tbaa !11
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %12, align 4, !tbaa !11
  br label %23, !llvm.loop !13

46:                                               ; preds = %41, %33, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %47 = load i32, ptr %13, align 4
  switch i32 %47, label %102 [
    i32 2, label %48
  ]

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %49

49:                                               ; preds = %84, %48
  %50 = load i32, ptr %16, align 4, !tbaa !11
  %51 = icmp slt i32 %50, 3
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  store i32 5, ptr %13, align 4
  br label %87

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %54

54:                                               ; preds = %78, %53
  %55 = load i32, ptr %17, align 4, !tbaa !11
  %56 = icmp slt i32 %55, 3
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  store i32 8, ptr %13, align 4
  br label %81

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #4
  %59 = getelementptr inbounds %"class.Riemann::OrientedBox3", ptr %22, i32 0, i32 2
  %60 = load i32, ptr %17, align 4, !tbaa !11
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %59, i32 noundef %60)
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.Riemann::OrientedBox3", ptr %62, i32 0, i32 2
  %64 = load i32, ptr %16, align 4, !tbaa !11
  %65 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %63, i32 noundef %64)
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %18, ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %65)
  %66 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %18)
  %67 = fcmp ogt float %66, 0x3EB0C6F7A0000000
  br i1 %67, label %68, label %74

68:                                               ; preds = %58
  %69 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %18)
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %22, ptr noundef nonnull align 4 dereferenceable(60) %70, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef %10, ptr noundef %11)
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i1 false, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %75

73:                                               ; preds = %68
  br label %74

74:                                               ; preds = %73, %58
  store i32 0, ptr %13, align 4
  br label %75

75:                                               ; preds = %74, %72
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #4
  %76 = load i32, ptr %13, align 4
  switch i32 %76, label %81 [
    i32 0, label %77
  ]

77:                                               ; preds = %75
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %17, align 4, !tbaa !11
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %17, align 4, !tbaa !11
  br label %54, !llvm.loop !15

81:                                               ; preds = %75, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %82 = load i32, ptr %13, align 4
  switch i32 %82, label %87 [
    i32 8, label %83
  ]

83:                                               ; preds = %81
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %16, align 4, !tbaa !11
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %16, align 4, !tbaa !11
  br label %49, !llvm.loop !16

87:                                               ; preds = %81, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  %88 = load i32, ptr %13, align 4
  switch i32 %88, label %102 [
    i32 5, label %89
  ]

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #4
  %90 = getelementptr inbounds %"class.Riemann::OrientedBox3", ptr %22, i32 0, i32 0
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.Riemann::OrientedBox3", ptr %91, i32 0, i32 0
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %19, ptr noundef nonnull align 4 dereferenceable(12) %90, ptr noundef nonnull align 4 dereferenceable(12) %92)
  %93 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %19)
  %94 = fcmp olt float %93, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #4
  br i1 %94, label %95, label %97

95:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #4
  call void @_ZNK5Maths8TVector3IfEngEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %96 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %20)
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #4
  br label %97

97:                                               ; preds = %95, %89
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #4
  call void @_ZNK5Maths8TVector3IfEngEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %21, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %98, ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #4
  %100 = load float, ptr %11, align 4, !tbaa !9
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  store float %100, ptr %101, align 4, !tbaa !9
  store i1 true, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %102

102:                                              ; preds = %97, %87, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #4
  %103 = load i1, ptr %5, align 1
  ret i1 %103
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60), ptr noundef nonnull align 4 dereferenceable(60), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36), i32 noundef) #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)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(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 @_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 #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix36ColumnEi(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(36), i32 noundef) local_unnamed_addr #2 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 #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann12OrientedBox312PenetrateOBBERKS0_PN5Maths8TVector3IfEEPf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #3 align 2 {
  %5 = alloca %"class.Maths::TVector3", align 4
  %6 = alloca float, 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
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #4
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store float 0x47EFFFFFE0000000, ptr %6, align 4, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = getelementptr inbounds i8, ptr %1, i64 24
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #4
  call void @_ZNK5Maths7Matrix36ColumnEi(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %7, ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 0)
  %15 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull %5, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  br i1 %15, label %28, label %.loopexit

16:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #4
  call void @_ZNK5Maths7Matrix36ColumnEi(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %7, ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 1)
  %17 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull %5, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  br i1 %17, label %18, label %.loopexit

18:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #4
  call void @_ZNK5Maths7Matrix36ColumnEi(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 1)
  %19 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull %5, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #4
  br i1 %19, label %20, label %.loopexit

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #4
  call void @_ZNK5Maths7Matrix36ColumnEi(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %7, ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 2)
  %21 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull %5, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  br i1 %21, label %22, label %.loopexit

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #4
  call void @_ZNK5Maths7Matrix36ColumnEi(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 2)
  %23 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull %5, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #4
  br i1 %23, label %.critedge.preheader, label %.loopexit

.critedge.preheader:                              ; preds = %22
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  %24 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 0)
  %25 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 0)
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %25)
  %26 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %27 = fcmp ogt float %26, 0x3EB0C6F7A0000000
  br i1 %27, label %30, label %.critedge34

28:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #4
  call void @_ZNK5Maths7Matrix36ColumnEi(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 0)
  %29 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull %5, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #4
  br i1 %29, label %16, label %.loopexit

30:                                               ; preds = %.critedge.preheader
  %31 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %32 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull %5, ptr noundef nonnull %6)
  br i1 %32, label %.critedge34, label %91

.critedge34:                                      ; preds = %30, %.critedge.preheader
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  %33 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 1)
  %34 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 0)
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(12) %34)
  %35 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %36 = fcmp ogt float %35, 0x3EB0C6F7A0000000
  br i1 %36, label %37, label %.critedge34.1

37:                                               ; preds = %.critedge34
  %38 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %39 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull %5, ptr noundef nonnull %6)
  br i1 %39, label %.critedge34.1, label %91

.critedge34.1:                                    ; preds = %37, %.critedge34
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  %40 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 2)
  %41 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 0)
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %41)
  %42 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %43 = fcmp ogt float %42, 0x3EB0C6F7A0000000
  br i1 %43, label %44, label %.critedge34.2

44:                                               ; preds = %.critedge34.1
  %45 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %46 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull %5, ptr noundef nonnull %6)
  br i1 %46, label %.critedge34.2, label %91

.critedge34.2:                                    ; preds = %44, %.critedge34.1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  %47 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 0)
  %48 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 1)
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %48)
  %49 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %50 = fcmp ogt float %49, 0x3EB0C6F7A0000000
  br i1 %50, label %51, label %.critedge34.142

51:                                               ; preds = %.critedge34.2
  %52 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %53 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull %5, ptr noundef nonnull %6)
  br i1 %53, label %.critedge34.142, label %91

.critedge34.142:                                  ; preds = %51, %.critedge34.2
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  %54 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 1)
  %55 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 1)
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %54, ptr noundef nonnull align 4 dereferenceable(12) %55)
  %56 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %57 = fcmp ogt float %56, 0x3EB0C6F7A0000000
  br i1 %57, label %58, label %.critedge34.1.1

58:                                               ; preds = %.critedge34.142
  %59 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %60 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull %5, ptr noundef nonnull %6)
  br i1 %60, label %.critedge34.1.1, label %91

.critedge34.1.1:                                  ; preds = %58, %.critedge34.142
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 2)
  %62 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 1)
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %62)
  %63 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %64 = fcmp ogt float %63, 0x3EB0C6F7A0000000
  br i1 %64, label %65, label %.critedge34.2.1

65:                                               ; preds = %.critedge34.1.1
  %66 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %67 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull %5, ptr noundef nonnull %6)
  br i1 %67, label %.critedge34.2.1, label %91

.critedge34.2.1:                                  ; preds = %65, %.critedge34.1.1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  %68 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 0)
  %69 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 2)
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %68, ptr noundef nonnull align 4 dereferenceable(12) %69)
  %70 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %71 = fcmp ogt float %70, 0x3EB0C6F7A0000000
  br i1 %71, label %72, label %.critedge34.243

72:                                               ; preds = %.critedge34.2.1
  %73 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %74 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull %5, ptr noundef nonnull %6)
  br i1 %74, label %.critedge34.243, label %91

.critedge34.243:                                  ; preds = %72, %.critedge34.2.1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  %75 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 1)
  %76 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 2)
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %75, ptr noundef nonnull align 4 dereferenceable(12) %76)
  %77 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %78 = fcmp ogt float %77, 0x3EB0C6F7A0000000
  br i1 %78, label %79, label %.critedge34.1.2

79:                                               ; preds = %.critedge34.243
  %80 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %81 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull %5, ptr noundef nonnull %6)
  br i1 %81, label %.critedge34.1.2, label %91

.critedge34.1.2:                                  ; preds = %79, %.critedge34.243
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  %82 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %13, i32 noundef 2)
  %83 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 2)
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %82, ptr noundef nonnull align 4 dereferenceable(12) %83)
  %84 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %85 = fcmp ogt float %84, 0x3EB0C6F7A0000000
  br i1 %85, label %86, label %.critedge34.2.2

86:                                               ; preds = %.critedge34.1.2
  %87 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %88 = call noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(60) %1, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull %5, ptr noundef nonnull %6)
  br i1 %88, label %.critedge34.2.2, label %91

.critedge34.2.2:                                  ; preds = %86, %.critedge34.1.2
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #4
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %89 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %90 = fcmp olt float %89, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #4
  br i1 %90, label %92, label %94

91:                                               ; preds = %86, %79, %72, %65, %58, %51, %44, %37, %30
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  br label %.loopexit

92:                                               ; preds = %.critedge34.2.2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #4
  call void @_ZNK5Maths8TVector3IfEngEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %93 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #4
  br label %94

94:                                               ; preds = %92, %.critedge34.2.2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #4
  call void @_ZNK5Maths8TVector3IfEngEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %95 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #4
  %96 = load float, ptr %6, align 4, !tbaa !5
  store float %96, ptr %3, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %4, %28, %16, %18, %20, %22, %91, %94
  %.6 = phi i1 [ true, %94 ], [ false, %91 ], [ false, %22 ], [ false, %20 ], [ false, %18 ], [ false, %16 ], [ false, %28 ], [ false, %4 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #4
  ret i1 %.6
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7RiemannL14testBoxBoxAxisERKNS_12OrientedBox3ES2_RKN5Maths8TVector3IfEEPS5_Pf(ptr noundef nonnull align 4 dereferenceable(60), ptr noundef nonnull align 4 dereferenceable(60), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK5Maths7Matrix33RowEi(ptr noundef nonnull align 4 dereferenceable(36), i32 noundef) 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 #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: ConstraintEliminationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass