; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape (SphereShape)

; 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.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH11SphereShape15GetScaledRadiusENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48), double, double) #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH11SphereShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 16 dereferenceable(16) %7) unnamed_addr #4 align 2 {
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca float, align 4
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca float, align 4
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  store double %2, ptr %28, align 16
  %29 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  store double %3, ptr %29, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  store ptr %7, ptr %15, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !9
  %31 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %32 = load double, ptr %31, align 16
  %33 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %34 = load double, ptr %33, align 8
  %35 = call noundef float @_ZNK3JPH11SphereShape15GetScaledRadiusENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %30, double %32, double %34)
  store float %35, ptr %16, align 4, !tbaa !11
  %36 = load float, ptr %16, align 4, !tbaa !11
  %37 = call noundef float @_ZN3JPH5CubedIfEET_S1_(float noundef %36)
  %38 = fmul float 0x4010C15240000000, %37
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  store float %38, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %41)
  %43 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %44 = getelementptr inbounds %union.anon.4, ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %46 = extractvalue { double, double } %42, 0
  store double %46, ptr %45, align 16
  %47 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %48 = extractvalue { double, double } %42, 1
  store double %48, ptr %47, align 8
  %49 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %50 = load double, ptr %49, align 16
  %51 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %52 = load double, ptr %51, align 8
  %53 = call noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %40, double %50, double %52)
  store float %53, ptr %18, align 4, !tbaa !11
  %54 = load float, ptr %18, align 4, !tbaa !11
  %55 = load float, ptr %16, align 4, !tbaa !11
  %56 = fcmp oge float %54, %55
  br i1 %56, label %57, label %67

57:                                               ; preds = %8
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  store float 0.000000e+00, ptr %58, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %59 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %60 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %61 = getelementptr inbounds %union.anon.4, ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %63 = extractvalue { double, double } %59, 0
  store double %63, ptr %62, align 16
  %64 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %65 = extractvalue { double, double } %59, 1
  store double %65, ptr %64, align 8
  %66 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %150

67:                                               ; preds = %8
  %68 = load float, ptr %18, align 4, !tbaa !11
  %69 = load float, ptr %16, align 4, !tbaa !11
  %70 = fneg float %69
  %71 = fcmp ole float %68, %70
  br i1 %71, label %72, label %85

72:                                               ; preds = %67
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = load float, ptr %73, align 4, !tbaa !11
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  store float %74, ptr %75, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %76)
  %78 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %79 = getelementptr inbounds %union.anon.4, ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 0
  %81 = extractvalue { double, double } %77, 0
  store double %81, ptr %80, align 16
  %82 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 1
  %83 = extractvalue { double, double } %77, 1
  store double %83, ptr %82, align 8
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %84, ptr align 16 %21, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  br label %149

85:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %86 = load float, ptr %16, align 4, !tbaa !11
  %87 = load float, ptr %18, align 4, !tbaa !11
  %88 = fsub float %86, %87
  store float %88, ptr %22, align 4, !tbaa !11
  %89 = load float, ptr %22, align 4, !tbaa !11
  %90 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %89)
  %91 = fmul float 0x3FF0C15240000000, %90
  %92 = load float, ptr %16, align 4, !tbaa !11
  %93 = load float, ptr %22, align 4, !tbaa !11
  %94 = fneg float %93
  %95 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %92, float %94)
  %96 = fmul float %91, %95
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  store float %96, ptr %97, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %98 = load float, ptr %16, align 4, !tbaa !11
  %99 = load float, ptr %22, align 4, !tbaa !11
  %100 = fneg float %99
  %101 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %98, float %100)
  %102 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %101)
  %103 = fmul float 7.500000e-01, %102
  %104 = load float, ptr %16, align 4, !tbaa !11
  %105 = load float, ptr %22, align 4, !tbaa !11
  %106 = fneg float %105
  %107 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %104, float %106)
  %108 = fdiv float %103, %107
  store float %108, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %109)
  %111 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %112 = getelementptr inbounds %union.anon.4, ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 0
  %114 = extractvalue { double, double } %110, 0
  store double %114, ptr %113, align 16
  %115 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 1
  %116 = extractvalue { double, double } %110, 1
  store double %116, ptr %115, align 8
  %117 = load float, ptr %23, align 4, !tbaa !11
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %118)
  %120 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %121 = getelementptr inbounds %union.anon.4, ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds { double, double }, ptr %121, i32 0, i32 0
  %123 = extractvalue { double, double } %119, 0
  store double %123, ptr %122, align 16
  %124 = getelementptr inbounds { double, double }, ptr %121, i32 0, i32 1
  %125 = extractvalue { double, double } %119, 1
  store double %125, ptr %124, align 8
  %126 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %127 = load double, ptr %126, align 16
  %128 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %129 = load double, ptr %128, align 8
  %130 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %117, double %127, double %129)
  %131 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %132 = getelementptr inbounds %union.anon.4, ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds { double, double }, ptr %132, i32 0, i32 0
  %134 = extractvalue { double, double } %130, 0
  store double %134, ptr %133, align 16
  %135 = getelementptr inbounds { double, double }, ptr %132, i32 0, i32 1
  %136 = extractvalue { double, double } %130, 1
  store double %136, ptr %135, align 8
  %137 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %138 = load double, ptr %137, align 16
  %139 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %140 = load double, ptr %139, align 8
  %141 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %25, double %138, double %140)
  %142 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %143 = getelementptr inbounds %union.anon.4, ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds { double, double }, ptr %143, i32 0, i32 0
  %145 = extractvalue { double, double } %141, 0
  store double %145, ptr %144, align 16
  %146 = getelementptr inbounds { double, double }, ptr %143, i32 0, i32 1
  %147 = extractvalue { double, double } %141, 1
  store double %147, ptr %146, align 8
  %148 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %148, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %149

149:                                              ; preds = %85, %72
  br label %150

150:                                              ; preds = %149, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH5CubedIfEET_S1_(float noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16), double, double) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) #5

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #6

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { alwaysinline 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 = { 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 = { alwaysinline 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 #6 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 = !{i64 0, i64 16, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}


; 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.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x 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 uwtable
declare dso_local noundef float @_ZNK3JPH11SphereShape15GetScaledRadiusENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48), double, double) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH11SphereShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef nonnull align 16 dereferenceable(16) %4, ptr nocapture noundef nonnull align 4 dereferenceable(4) %5, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %6, ptr nocapture noundef nonnull writeonly align 16 dereferenceable(16) %7) unnamed_addr #3 align 2 {
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = tail call noundef float @_ZNK3JPH11SphereShape15GetScaledRadiusENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(48) %0, double %2, double %3)
  %11 = tail call noundef float @_ZN3JPH5CubedIfEET_S1_(float noundef %10)
  %12 = fmul float %11, 0x4010C15240000000
  store float %12, ptr %5, align 4, !tbaa !5
  %13 = tail call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %1)
  %14 = extractvalue { double, double } %13, 0
  %15 = extractvalue { double, double } %13, 1
  %16 = tail call noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %4, double %14, double %15)
  %17 = fcmp ult float %16, %10
  br i1 %17, label %22, label %18

18:                                               ; preds = %8
  store float 0.000000e+00, ptr %6, align 4, !tbaa !5
  %19 = tail call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %20 = extractvalue { double, double } %19, 0
  %21 = extractvalue { double, double } %19, 1
  store double %20, ptr %7, align 16
  %.sroa.411.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store double %21, ptr %.sroa.411.0..sroa_idx, align 8, !tbaa !9
  br label %54

22:                                               ; preds = %8
  %23 = fneg float %10
  %24 = fcmp ugt float %16, %23
  br i1 %24, label %30, label %25

25:                                               ; preds = %22
  %26 = load float, ptr %5, align 4, !tbaa !5
  store float %26, ptr %6, align 4, !tbaa !5
  %27 = tail call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %1)
  %28 = extractvalue { double, double } %27, 0
  %29 = extractvalue { double, double } %27, 1
  store double %28, ptr %7, align 16
  %.sroa.49.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store double %29, ptr %.sroa.49.0..sroa_idx, align 8, !tbaa !9
  br label %54

30:                                               ; preds = %22
  %31 = fsub float %10, %16
  %32 = tail call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %31)
  %33 = fmul float %32, 0x3FF0C15240000000
  %34 = fneg float %31
  %35 = tail call float @llvm.fmuladd.f32(float %10, float 3.000000e+00, float %34)
  %36 = fmul float %35, %33
  store float %36, ptr %6, align 4, !tbaa !5
  %37 = tail call float @llvm.fmuladd.f32(float %10, float 2.000000e+00, float %34)
  %38 = tail call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %37)
  %39 = fmul float %38, 7.500000e-01
  %40 = fdiv float %39, %35
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %41 = tail call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %1)
  %42 = extractvalue { double, double } %41, 0
  store double %42, ptr %9, align 16
  %43 = getelementptr inbounds i8, ptr %9, i64 8
  %44 = extractvalue { double, double } %41, 1
  store double %44, ptr %43, align 8
  %45 = tail call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %46 = extractvalue { double, double } %45, 0
  %47 = extractvalue { double, double } %45, 1
  %48 = tail call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %40, double %46, double %47)
  %49 = extractvalue { double, double } %48, 0
  %50 = extractvalue { double, double } %48, 1
  %51 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %49, double %50)
  %52 = extractvalue { double, double } %51, 0
  %53 = extractvalue { double, double } %51, 1
  store double %52, ptr %7, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store double %53, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %54

54:                                               ; preds = %25, %30, %18
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH5CubedIfEET_S1_(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) local_unnamed_addr #4

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

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 = { alwaysinline 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 = { alwaysinline 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 #5 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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"}
!9 = !{!7, !7, i64 0}


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