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

; 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 }
%union.anon = type { <4 x float> }
%"class.JPH::CastSphereVsTriangles" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", float, [4 x i8], ptr, ptr, [8 x i8], %"class.JPH::Vec3", %"class.JPH::SubShapeIDCreator", ptr, float, [12 x i8] }>
%"class.JPH::SubShapeIDCreator" = type { %"class.JPH::SubShapeID", i32 }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::CollideSettingsBase" = type { i8, i8, float, float, %"class.JPH::Vec3" }

; 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: mustprogress uwtable
declare dso_local void @_ZN3JPH21CastSphereVsTriangles6AddHitEbRKNS_10SubShapeIDEfNS_4Vec3ES4_S4_(ptr noundef nonnull align 16 dereferenceable(100), i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(4), float noundef, double, double, double, double, double, double) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH21CastSphereVsTriangles29AddHitWithActiveEdgeDetectionENS_4Vec3ES1_S1_bS1_hRKNS_10SubShapeIDEfS1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(100) %0, double %1, double %2, double %3, double %4, double %5, double %6, i1 noundef zeroext %7, double %8, double %9, i8 noundef zeroext %10, ptr noundef nonnull align 4 dereferenceable(4) %11, float noundef %12, ptr noundef byval(%"class.JPH::Vec3") align 16 %13, ptr noundef byval(%"class.JPH::Vec3") align 16 %14, ptr noundef byval(%"class.JPH::Vec3") align 16 %15) #2 align 2 {
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca ptr, align 8
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca ptr, align 8
  %25 = alloca float, align 4
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  store double %1, ptr %40, align 16
  %41 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  store double %2, ptr %41, align 8
  %42 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  store double %3, ptr %42, align 16
  %43 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  store double %4, ptr %43, align 8
  %44 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  store double %5, ptr %44, align 16
  %45 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  store double %6, ptr %45, align 8
  %46 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  store double %8, ptr %46, align 16
  %47 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  store double %9, ptr %47, align 8
  store ptr %0, ptr %21, align 8, !tbaa !5
  %48 = zext i1 %7 to i8
  store i8 %48, ptr %22, align 1, !tbaa !9
  store i8 %10, ptr %23, align 1, !tbaa !11
  store ptr %11, ptr %24, align 8, !tbaa !5
  store float %12, ptr %25, align 4, !tbaa !12
  %49 = load ptr, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !14
  %50 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %49, i32 0, i32 4
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %51, i32 0, i32 0
  %53 = load i8, ptr %52, align 16, !tbaa !21
  %54 = icmp eq i8 %53, 0
  br i1 %54, label %55, label %112

55:                                               ; preds = %16
  %56 = load i8, ptr %23, align 1, !tbaa !11
  %57 = zext i8 %56 to i32
  %58 = icmp ne i32 %57, 7
  br i1 %58, label %59, label %112

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  %60 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %49, i32 0, i32 5
  %61 = load ptr, ptr %60, align 16, !tbaa !25
  %62 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %49, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !15
  %64 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %63, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %64, i64 16, i1 false), !tbaa.struct !14
  %65 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %66 = load double, ptr %65, align 16
  %67 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %68 = load double, ptr %67, align 8
  %69 = call { double, double } @_ZNK3JPH5Mat4421Multiply3x3TransposedENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %61, double %66, double %68)
  %70 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %71 = getelementptr inbounds %union.anon, ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 0
  %73 = extractvalue { double, double } %69, 0
  store double %73, ptr %72, align 16
  %74 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 1
  %75 = extractvalue { double, double } %69, 1
  store double %75, ptr %74, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %19, i64 16, i1 false), !tbaa.struct !14
  %76 = load i8, ptr %22, align 1, !tbaa !9, !range !26, !noundef !27
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %79

78:                                               ; preds = %59
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !14
  br label %87

79:                                               ; preds = %59
  %80 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %20)
  %81 = getelementptr inbounds %"class.JPH::Vec3", ptr %33, i32 0, i32 0
  %82 = getelementptr inbounds %union.anon, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 0
  %84 = extractvalue { double, double } %80, 0
  store double %84, ptr %83, align 16
  %85 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 1
  %86 = extractvalue { double, double } %80, 1
  store double %86, ptr %85, align 8
  br label %87

87:                                               ; preds = %79, %78
  %88 = load i8, ptr %23, align 1, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !14
  %89 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %90 = load double, ptr %89, align 16
  %91 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %92 = load double, ptr %91, align 8
  %93 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %94 = load double, ptr %93, align 16
  %95 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %96 = load double, ptr %95, align 8
  %97 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %98 = load double, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %100 = load double, ptr %99, align 8
  %101 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %102 = load double, ptr %101, align 16
  %103 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %104 = load double, ptr %103, align 8
  %105 = call { double, double } @_ZN3JPH11ActiveEdgesL9FixNormalENS_4Vec3ES1_S1_S1_hS1_S1_S1_(double %90, double %92, double %94, double %96, double %98, double %100, double %102, double %104, i8 noundef zeroext %88, ptr noundef byval(%"class.JPH::Vec3") align 16 %34, ptr noundef byval(%"class.JPH::Vec3") align 16 %35, ptr noundef byval(%"class.JPH::Vec3") align 16 %36)
  %106 = getelementptr inbounds %"class.JPH::Vec3", ptr %29, i32 0, i32 0
  %107 = getelementptr inbounds %union.anon, ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds { double, double }, ptr %107, i32 0, i32 0
  %109 = extractvalue { double, double } %105, 0
  store double %109, ptr %108, align 16
  %110 = getelementptr inbounds { double, double }, ptr %107, i32 0, i32 1
  %111 = extractvalue { double, double } %105, 1
  store double %111, ptr %110, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %29, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %112

112:                                              ; preds = %87, %55, %16
  %113 = load i8, ptr %22, align 1, !tbaa !9, !range !26, !noundef !27
  %114 = trunc i8 %113 to i1
  %115 = load ptr, ptr %24, align 8, !tbaa !5
  %116 = load float, ptr %25, align 4, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !14
  %117 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %118 = load double, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %120 = load double, ptr %119, align 8
  %121 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %122 = load double, ptr %121, align 16
  %123 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %124 = load double, ptr %123, align 8
  %125 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %126 = load double, ptr %125, align 16
  %127 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %128 = load double, ptr %127, align 8
  call void @_ZN3JPH21CastSphereVsTriangles6AddHitEbRKNS_10SubShapeIDEfNS_4Vec3ES4_S4_(ptr noundef nonnull align 16 dereferenceable(100) %49, i1 noundef zeroext %114, ptr noundef nonnull align 4 dereferenceable(4) %115, float noundef %116, double %118, double %120, double %122, double %124, double %126, double %128)
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZN3JPH11ActiveEdgesL9FixNormalENS_4Vec3ES1_S1_S1_hS1_S1_S1_(double, double, double, double, double, double, double, double, i8 noundef zeroext, ptr noundef byval(%"class.JPH::Vec3") align 16, ptr noundef byval(%"class.JPH::Vec3") align 16, ptr noundef byval(%"class.JPH::Vec3") align 16) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 = { 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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{i64 0, i64 16, !11}
!15 = !{!16, !6, i64 40}
!16 = !{!"_ZTSN3JPH21CastSphereVsTrianglesE", !17, i64 0, !17, i64 16, !13, i64 32, !6, i64 40, !6, i64 48, !17, i64 64, !18, i64 80, !6, i64 88, !13, i64 96}
!17 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!18 = !{!"_ZTSN3JPH17SubShapeIDCreatorE", !19, i64 0, !20, i64 4}
!19 = !{!"_ZTSN3JPH10SubShapeIDE", !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!22, !23, i64 0}
!22 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !23, i64 0, !24, i64 1, !13, i64 4, !13, i64 8, !17, i64 16}
!23 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !7, i64 0}
!24 = !{!"_ZTSN3JPH17ECollectFacesModeE", !7, i64 0}
!25 = !{!16, !6, i64 48}
!26 = !{i8 0, i8 2}
!27 = !{}


; 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 }
%union.anon = type { <4 x float> }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH21CastSphereVsTriangles6AddHitEbRKNS_10SubShapeIDEfNS_4Vec3ES4_S4_(ptr noundef nonnull align 16 dereferenceable(100), i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(4), float noundef, double, double, double, double, double, double) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH21CastSphereVsTriangles29AddHitWithActiveEdgeDetectionENS_4Vec3ES1_S1_bS1_hRKNS_10SubShapeIDEfS1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(100) %0, double %1, double %2, double %3, double %4, double %5, double %6, i1 noundef zeroext %7, double %8, double %9, i8 noundef zeroext %10, ptr noundef nonnull align 4 dereferenceable(4) %11, float noundef %12, ptr nocapture noundef readonly byval(%"class.JPH::Vec3") align 16 %13, ptr nocapture noundef readonly byval(%"class.JPH::Vec3") align 16 %14, ptr nocapture noundef readonly byval(%"class.JPH::Vec3") align 16 %15) local_unnamed_addr #0 align 2 {
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  store double %8, ptr %17, align 16
  %19 = getelementptr inbounds i8, ptr %17, i64 8
  store double %9, ptr %19, align 8
  %.sroa.019.0.copyload = load double, ptr %15, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %.sroa.5.0.copyload = load double, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = load ptr, ptr %20, align 8, !tbaa !8
  %22 = load i8, ptr %21, align 16, !tbaa !16
  %23 = icmp eq i8 %22, 0
  %24 = icmp ne i8 %10, 7
  %or.cond = and i1 %24, %23
  br i1 %or.cond, label %25, label %40

25:                                               ; preds = %16
  %26 = getelementptr inbounds i8, ptr %0, i64 48
  %27 = load ptr, ptr %26, align 16, !tbaa !20
  %28 = getelementptr inbounds i8, ptr %21, i64 16
  %.sroa.015.0.copyload = load double, ptr %28, align 16
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 24
  %.sroa.216.0.copyload = load double, ptr %.sroa.216.0..sroa_idx, align 8, !tbaa !5
  %29 = tail call { double, double } @_ZNK3JPH5Mat4421Multiply3x3TransposedENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %27, double %.sroa.015.0.copyload, double %.sroa.216.0.copyload)
  %30 = extractvalue { double, double } %29, 0
  %31 = extractvalue { double, double } %29, 1
  br i1 %7, label %36, label %32

32:                                               ; preds = %25
  %33 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
  %34 = extractvalue { double, double } %33, 0
  %35 = extractvalue { double, double } %33, 1
  br label %36

36:                                               ; preds = %25, %32
  %.sroa.07.0 = phi double [ %34, %32 ], [ %8, %25 ]
  %.sroa.3.0 = phi double [ %35, %32 ], [ %9, %25 ]
  store double %30, ptr %18, align 16
  %.sroa.418.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  store double %31, ptr %.sroa.418.0..sroa_idx, align 8, !tbaa !5
  %37 = call { double, double } @_ZN3JPH11ActiveEdgesL9FixNormalENS_4Vec3ES1_S1_S1_hS1_S1_S1_(double %1, double %2, double %3, double %4, double %5, double %6, double %.sroa.07.0, double %.sroa.3.0, i8 noundef zeroext %10, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %14, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %15, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %18)
  %38 = extractvalue { double, double } %37, 0
  %39 = extractvalue { double, double } %37, 1
  br label %40

40:                                               ; preds = %36, %16
  %.sroa.019.0 = phi double [ %38, %36 ], [ %.sroa.019.0.copyload, %16 ]
  %.sroa.5.0 = phi double [ %39, %36 ], [ %.sroa.5.0.copyload, %16 ]
  %.sroa.05.0.copyload = load double, ptr %13, align 16
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %.sroa.26.0.copyload = load double, ptr %.sroa.26.0..sroa_idx, align 8, !tbaa !5
  %.sroa.03.0.copyload = load double, ptr %14, align 16
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.24.0.copyload = load double, ptr %.sroa.24.0..sroa_idx, align 8, !tbaa !5
  call void @_ZN3JPH21CastSphereVsTriangles6AddHitEbRKNS_10SubShapeIDEfNS_4Vec3ES4_S4_(ptr noundef nonnull align 16 dereferenceable(100) %0, i1 noundef zeroext %7, ptr noundef nonnull align 4 dereferenceable(4) %11, float noundef %12, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, double %.sroa.019.0, double %.sroa.5.0)
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZN3JPH11ActiveEdgesL9FixNormalENS_4Vec3ES1_S1_S1_hS1_S1_S1_(double, double, double, double, double, double, double, double, i8 noundef zeroext, ptr noundef byval(%"class.JPH::Vec3") align 16, ptr noundef byval(%"class.JPH::Vec3") align 16, ptr noundef byval(%"class.JPH::Vec3") align 16) local_unnamed_addr #2

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

attributes #0 = { 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 #1 = { 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 #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"="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" }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !12, i64 40}
!9 = !{!"_ZTSN3JPH21CastSphereVsTrianglesE", !10, i64 0, !10, i64 16, !11, i64 32, !12, i64 40, !12, i64 48, !10, i64 64, !13, i64 80, !12, i64 88, !11, i64 96}
!10 = !{!"_ZTSN3JPH4Vec3E", !6, i64 0}
!11 = !{!"float", !6, i64 0}
!12 = !{!"any pointer", !6, i64 0}
!13 = !{!"_ZTSN3JPH17SubShapeIDCreatorE", !14, i64 0, !15, i64 4}
!14 = !{!"_ZTSN3JPH10SubShapeIDE", !15, i64 0}
!15 = !{!"int", !6, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !18, i64 0, !19, i64 1, !11, i64 4, !11, i64 8, !10, i64 16}
!18 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !6, i64 0}
!19 = !{!"_ZTSN3JPH17ECollectFacesModeE", !6, i64 0}
!20 = !{!9, !12, i64 48}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass