; 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> }
%"struct.JPH::AssertLastParam" = type { i8 }
%"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::ShapeCastSettings" = type <{ %"class.JPH::CollideSettingsBase", i8, i8, i8, i8, [12 x i8] }>
%"class.JPH::CollideSettingsBase" = type { i8, i8, float, float, %"class.JPH::Vec3" }

@.str.1 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1

; 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 zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #3

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16)) #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH21CastSphereVsTriangles4CastENS_4Vec3ES1_S1_hRKNS_10SubShapeIDE(ptr noundef nonnull align 16 dereferenceable(100) %0, double %1, double %2, double %3, double %4, double %5, double %6, i8 noundef zeroext %7, ptr noundef nonnull align 4 dereferenceable(4) %8) #4 align 2 {
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca %"class.JPH::Vec3", align 16
  %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 %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %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 = 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 float, align 4
  %35 = alloca i32, align 4
  %36 = alloca float, align 4
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca i8, align 1
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca i32, align 4
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca float, align 4
  %46 = alloca float, align 4
  %47 = alloca float, align 4
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Vec3", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Vec3", align 16
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca float, align 4
  %60 = alloca %"class.JPH::Vec3", align 16
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca float, align 4
  %63 = alloca %"class.JPH::Vec3", align 16
  %64 = alloca %"class.JPH::Vec3", align 16
  %65 = alloca %"class.JPH::Vec3", align 16
  %66 = alloca %"class.JPH::Vec3", align 16
  %67 = alloca %"class.JPH::Vec3", align 16
  %68 = alloca %"class.JPH::Vec3", align 16
  %69 = alloca float, align 4
  %70 = alloca float, align 4
  %71 = alloca float, align 4
  %72 = alloca %"class.JPH::Vec3", align 16
  %73 = alloca %"class.JPH::Vec3", align 16
  %74 = alloca %"class.JPH::Vec3", align 16
  %75 = alloca %"class.JPH::Vec3", align 16
  %76 = alloca %"class.JPH::Vec3", align 16
  %77 = alloca %"class.JPH::Vec3", align 16
  %78 = alloca %"class.JPH::Vec3", align 16
  %79 = alloca %"class.JPH::Vec3", align 16
  %80 = alloca %"class.JPH::Vec3", align 16
  %81 = alloca float, align 4
  %82 = alloca %"class.JPH::Vec3", align 16
  %83 = alloca %"class.JPH::Vec3", align 16
  %84 = alloca %"class.JPH::Vec3", align 16
  %85 = alloca float, align 4
  %86 = alloca %"class.JPH::Vec3", align 16
  %87 = alloca %"class.JPH::Vec3", align 16
  %88 = alloca %"class.JPH::Vec3", align 16
  %89 = alloca float, align 4
  %90 = alloca %"class.JPH::Vec3", align 16
  %91 = alloca %"class.JPH::Vec3", align 16
  %92 = alloca %"class.JPH::Vec3", align 16
  %93 = alloca float, align 4
  %94 = alloca %"class.JPH::Vec3", align 16
  %95 = alloca %"class.JPH::Vec3", align 16
  %96 = alloca %"class.JPH::Vec3", align 16
  %97 = alloca float, align 4
  %98 = alloca %"class.JPH::Vec3", align 16
  %99 = alloca %"class.JPH::Vec3", align 16
  %100 = alloca %"class.JPH::Vec3", align 16
  %101 = alloca float, align 4
  %102 = alloca %"class.JPH::Vec3", align 16
  %103 = alloca %"class.JPH::Vec3", align 16
  %104 = alloca %"class.JPH::Vec3", align 16
  %105 = alloca %"struct.JPH::AssertLastParam", align 1
  %106 = alloca %"class.JPH::Vec3", align 16
  %107 = alloca %"class.JPH::Vec3", align 16
  %108 = alloca i32, align 4
  %109 = alloca %"class.JPH::Vec3", align 16
  %110 = alloca %"class.JPH::Vec3", align 16
  %111 = alloca %"class.JPH::Vec3", align 16
  %112 = alloca %"class.JPH::Vec3", align 16
  %113 = alloca %"class.JPH::Vec3", align 16
  %114 = alloca %"class.JPH::Vec3", align 16
  %115 = alloca %"class.JPH::Vec3", align 16
  %116 = alloca %"class.JPH::Vec3", align 16
  %117 = alloca %"class.JPH::Vec3", align 16
  %118 = alloca %"class.JPH::Vec3", align 16
  %119 = alloca %"class.JPH::Vec3", align 16
  %120 = alloca %"class.JPH::Vec3", align 16
  %121 = alloca %"class.JPH::Vec3", align 16
  %122 = alloca %"class.JPH::Vec3", align 16
  %123 = alloca %"class.JPH::Vec3", align 16
  %124 = alloca %"class.JPH::Vec3", align 16
  %125 = alloca %"class.JPH::Vec3", align 16
  %126 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  store double %1, ptr %126, align 16
  %127 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  store double %2, ptr %127, align 8
  %128 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %3, ptr %128, align 16
  %129 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %4, ptr %129, align 8
  %130 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %5, ptr %130, align 16
  %131 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %6, ptr %131, align 8
  store ptr %0, ptr %13, align 8, !tbaa !5
  store i8 %7, ptr %14, align 1, !tbaa !9
  store ptr %8, ptr %15, align 8, !tbaa !5
  %132 = load ptr, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %133 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !10
  %134 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %135 = load double, ptr %134, align 16
  %136 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %137 = load double, ptr %136, align 8
  %138 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %133, double %135, double %137)
  %139 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %140 = getelementptr inbounds %union.anon, ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds { double, double }, ptr %140, i32 0, i32 0
  %142 = extractvalue { double, double } %138, 0
  store double %142, ptr %141, align 16
  %143 = getelementptr inbounds { double, double }, ptr %140, i32 0, i32 1
  %144 = extractvalue { double, double } %138, 1
  store double %144, ptr %143, align 8
  %145 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %145, i64 16, i1 false), !tbaa.struct !10
  %146 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %147 = load double, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %149 = load double, ptr %148, align 8
  %150 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %147, double %149)
  %151 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %152 = getelementptr inbounds %union.anon, ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds { double, double }, ptr %152, i32 0, i32 0
  %154 = extractvalue { double, double } %150, 0
  store double %154, ptr %153, align 16
  %155 = getelementptr inbounds { double, double }, ptr %152, i32 0, i32 1
  %156 = extractvalue { double, double } %150, 1
  store double %156, ptr %155, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %157 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !10
  %158 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %159 = load double, ptr %158, align 16
  %160 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %161 = load double, ptr %160, align 8
  %162 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %157, double %159, double %161)
  %163 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %164 = getelementptr inbounds %union.anon, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 0
  %166 = extractvalue { double, double } %162, 0
  store double %166, ptr %165, align 16
  %167 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 1
  %168 = extractvalue { double, double } %162, 1
  store double %168, ptr %167, align 8
  %169 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %169, i64 16, i1 false), !tbaa.struct !10
  %170 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %171 = load double, ptr %170, align 16
  %172 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %173 = load double, ptr %172, align 8
  %174 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %171, double %173)
  %175 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %176 = getelementptr inbounds %union.anon, ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 0
  %178 = extractvalue { double, double } %174, 0
  store double %178, ptr %177, align 16
  %179 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 1
  %180 = extractvalue { double, double } %174, 1
  store double %180, ptr %179, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %181 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !10
  %182 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %183 = load double, ptr %182, align 16
  %184 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %185 = load double, ptr %184, align 8
  %186 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %181, double %183, double %185)
  %187 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %188 = getelementptr inbounds %union.anon, ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds { double, double }, ptr %188, i32 0, i32 0
  %190 = extractvalue { double, double } %186, 0
  store double %190, ptr %189, align 16
  %191 = getelementptr inbounds { double, double }, ptr %188, i32 0, i32 1
  %192 = extractvalue { double, double } %186, 1
  store double %192, ptr %191, align 8
  %193 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %193, i64 16, i1 false), !tbaa.struct !10
  %194 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %195 = load double, ptr %194, align 16
  %196 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %197 = load double, ptr %196, align 8
  %198 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %25, double %195, double %197)
  %199 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %200 = getelementptr inbounds %union.anon, ptr %199, i32 0, i32 0
  %201 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 0
  %202 = extractvalue { double, double } %198, 0
  store double %202, ptr %201, align 16
  %203 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 1
  %204 = extractvalue { double, double } %198, 1
  store double %204, ptr %203, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  %205 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 10
  %206 = load float, ptr %205, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  %207 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %208 = load double, ptr %207, align 16
  %209 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %210 = load double, ptr %209, align 8
  %211 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %208, double %210)
  %212 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %213 = getelementptr inbounds %union.anon, ptr %212, i32 0, i32 0
  %214 = getelementptr inbounds { double, double }, ptr %213, i32 0, i32 0
  %215 = extractvalue { double, double } %211, 0
  store double %215, ptr %214, align 16
  %216 = getelementptr inbounds { double, double }, ptr %213, i32 0, i32 1
  %217 = extractvalue { double, double } %211, 1
  store double %217, ptr %216, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  %218 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %219 = load double, ptr %218, align 16
  %220 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %221 = load double, ptr %220, align 8
  %222 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %219, double %221)
  %223 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %224 = getelementptr inbounds %union.anon, ptr %223, i32 0, i32 0
  %225 = getelementptr inbounds { double, double }, ptr %224, i32 0, i32 0
  %226 = extractvalue { double, double } %222, 0
  store double %226, ptr %225, align 16
  %227 = getelementptr inbounds { double, double }, ptr %224, i32 0, i32 1
  %228 = extractvalue { double, double } %222, 1
  store double %228, ptr %227, align 8
  %229 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %230 = load double, ptr %229, align 16
  %231 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %232 = load double, ptr %231, align 8
  %233 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %30, double %230, double %232)
  %234 = getelementptr inbounds %"class.JPH::Vec3", ptr %29, i32 0, i32 0
  %235 = getelementptr inbounds %union.anon, ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds { double, double }, ptr %235, i32 0, i32 0
  %237 = extractvalue { double, double } %233, 0
  store double %237, ptr %236, align 16
  %238 = getelementptr inbounds { double, double }, ptr %235, i32 0, i32 1
  %239 = extractvalue { double, double } %233, 1
  store double %239, ptr %238, align 8
  %240 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %241 = load double, ptr %240, align 16
  %242 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %243 = load double, ptr %242, align 8
  %244 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %206, double %241, double %243)
  %245 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %246 = getelementptr inbounds %union.anon, ptr %245, i32 0, i32 0
  %247 = getelementptr inbounds { double, double }, ptr %246, i32 0, i32 0
  %248 = extractvalue { double, double } %244, 0
  store double %248, ptr %247, align 16
  %249 = getelementptr inbounds { double, double }, ptr %246, i32 0, i32 1
  %250 = extractvalue { double, double } %244, 1
  store double %250, ptr %249, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %251 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %28)
  store float %251, ptr %34, align 4, !tbaa !18
  %252 = load float, ptr %34, align 4, !tbaa !18
  %253 = fcmp oeq float %252, 0.000000e+00
  br i1 %253, label %254, label %255

254:                                              ; preds = %9
  store i32 1, ptr %35, align 4
  br label %818

255:                                              ; preds = %9
  %256 = load float, ptr %34, align 4, !tbaa !18
  %257 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %28, float noundef %256)
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %258 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %258, i64 16, i1 false), !tbaa.struct !10
  %259 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %260 = load double, ptr %259, align 16
  %261 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %262 = load double, ptr %261, align 8
  %263 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %260, double %262)
  store float %263, ptr %36, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #8
  %264 = load float, ptr %36, align 4, !tbaa !18
  %265 = fcmp ogt float %264, 0.000000e+00
  %266 = zext i1 %265 to i8
  store i8 %266, ptr %38, align 1, !tbaa !19
  %267 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 4
  %268 = load ptr, ptr %267, align 8, !tbaa !21
  %269 = getelementptr inbounds %"class.JPH::ShapeCastSettings", ptr %268, i32 0, i32 1
  %270 = load i8, ptr %269, align 16, !tbaa !22
  %271 = icmp eq i8 %270, 0
  br i1 %271, label %272, label %276

272:                                              ; preds = %255
  %273 = load i8, ptr %38, align 1, !tbaa !19, !range !28, !noundef !29
  %274 = trunc i8 %273 to i1
  br i1 %274, label %275, label %276

275:                                              ; preds = %272
  store i32 1, ptr %35, align 4
  br label %817

276:                                              ; preds = %272, %255
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !10
  %277 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %278 = load double, ptr %277, align 16
  %279 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %280 = load double, ptr %279, align 8
  %281 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %278, double %280)
  %282 = call noundef float @_ZSt3absf(float noundef %281)
  %283 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 2
  %284 = load float, ptr %283, align 16, !tbaa !30
  %285 = fcmp ole float %282, %284
  br i1 %285, label %286, label %391

286:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !10
  %287 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %288 = load double, ptr %287, align 16
  %289 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %290 = load double, ptr %289, align 8
  %291 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %292 = load double, ptr %291, align 16
  %293 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %294 = load double, ptr %293, align 8
  %295 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %296 = load double, ptr %295, align 16
  %297 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %298 = load double, ptr %297, align 8
  %299 = call { double, double } @_ZN3JPH12ClosestPoint25GetClosestPointOnTriangleILb0EEENS_4Vec3ES2_S2_S2_Rj(double %288, double %290, double %292, double %294, double %296, double %298, ptr noundef nonnull align 4 dereferenceable(4) %40)
  %300 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %301 = getelementptr inbounds %union.anon, ptr %300, i32 0, i32 0
  %302 = getelementptr inbounds { double, double }, ptr %301, i32 0, i32 0
  %303 = extractvalue { double, double } %299, 0
  store double %303, ptr %302, align 16
  %304 = getelementptr inbounds { double, double }, ptr %301, i32 0, i32 1
  %305 = extractvalue { double, double } %299, 1
  store double %305, ptr %304, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  %306 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %41)
  store float %306, ptr %45, align 4, !tbaa !18
  %307 = load float, ptr %45, align 4, !tbaa !18
  %308 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 2
  %309 = load float, ptr %308, align 16, !tbaa !30
  %310 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %309)
  %311 = fcmp ole float %307, %310
  br i1 %311, label %312, label %387

312:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %313 = load float, ptr %45, align 4, !tbaa !18
  %314 = call noundef float @_ZSt4sqrtf(float noundef %313)
  store float %314, ptr %46, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  %315 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 2
  %316 = load float, ptr %315, align 16, !tbaa !30
  %317 = load float, ptr %46, align 4, !tbaa !18
  %318 = fsub float %316, %317
  store float %318, ptr %47, align 4, !tbaa !18
  %319 = load float, ptr %47, align 4, !tbaa !18
  %320 = fneg float %319
  %321 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 9
  %322 = load ptr, ptr %321, align 8, !tbaa !31
  %323 = call noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %322)
  %324 = fcmp oge float %320, %323
  br i1 %324, label %325, label %326

325:                                              ; preds = %312
  store i32 1, ptr %35, align 4
  br label %386

326:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #8
  %327 = load float, ptr %46, align 4, !tbaa !18
  %328 = fcmp ogt float %327, 0.000000e+00
  br i1 %328, label %329, label %338

329:                                              ; preds = %326
  %330 = load float, ptr %46, align 4, !tbaa !18
  %331 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %41, float noundef %330)
  %332 = getelementptr inbounds %"class.JPH::Vec3", ptr %48, i32 0, i32 0
  %333 = getelementptr inbounds %union.anon, ptr %332, i32 0, i32 0
  %334 = getelementptr inbounds { double, double }, ptr %333, i32 0, i32 0
  %335 = extractvalue { double, double } %331, 0
  store double %335, ptr %334, align 16
  %336 = getelementptr inbounds { double, double }, ptr %333, i32 0, i32 1
  %337 = extractvalue { double, double } %331, 1
  store double %337, ptr %336, align 8
  br label %346

338:                                              ; preds = %326
  %339 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %340 = getelementptr inbounds %"class.JPH::Vec3", ptr %48, i32 0, i32 0
  %341 = getelementptr inbounds %union.anon, ptr %340, i32 0, i32 0
  %342 = getelementptr inbounds { double, double }, ptr %341, i32 0, i32 0
  %343 = extractvalue { double, double } %339, 0
  store double %343, ptr %342, align 16
  %344 = getelementptr inbounds { double, double }, ptr %341, i32 0, i32 1
  %345 = extractvalue { double, double } %339, 1
  store double %345, ptr %344, align 8
  br label %346

346:                                              ; preds = %338, %329
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #8
  %347 = load float, ptr %47, align 4, !tbaa !18
  %348 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %48, float noundef %347)
  %349 = getelementptr inbounds %"class.JPH::Vec3", ptr %50, i32 0, i32 0
  %350 = getelementptr inbounds %union.anon, ptr %349, i32 0, i32 0
  %351 = getelementptr inbounds { double, double }, ptr %350, i32 0, i32 0
  %352 = extractvalue { double, double } %348, 0
  store double %352, ptr %351, align 16
  %353 = getelementptr inbounds { double, double }, ptr %350, i32 0, i32 1
  %354 = extractvalue { double, double } %348, 1
  store double %354, ptr %353, align 8
  %355 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %356 = load double, ptr %355, align 16
  %357 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %358 = load double, ptr %357, align 8
  %359 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %41, double %356, double %358)
  %360 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %361 = getelementptr inbounds %union.anon, ptr %360, i32 0, i32 0
  %362 = getelementptr inbounds { double, double }, ptr %361, i32 0, i32 0
  %363 = extractvalue { double, double } %359, 0
  store double %363, ptr %362, align 16
  %364 = getelementptr inbounds { double, double }, ptr %361, i32 0, i32 1
  %365 = extractvalue { double, double } %359, 1
  store double %365, ptr %364, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %52, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %53, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !10
  %366 = load i8, ptr %38, align 1, !tbaa !19, !range !28, !noundef !29
  %367 = trunc i8 %366 to i1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %55, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !10
  %368 = load i8, ptr %14, align 1, !tbaa !9
  %369 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %49, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %57, ptr align 16 %51, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %48, i64 16, i1 false), !tbaa.struct !10
  %370 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %371 = load double, ptr %370, align 16
  %372 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %373 = load double, ptr %372, align 8
  %374 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %375 = load double, ptr %374, align 16
  %376 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %377 = load double, ptr %376, align 8
  %378 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %379 = load double, ptr %378, align 16
  %380 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %381 = load double, ptr %380, align 8
  %382 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %383 = load double, ptr %382, align 16
  %384 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %385 = load double, ptr %384, align 8
  call void @_ZN3JPH21CastSphereVsTriangles29AddHitWithActiveEdgeDetectionENS_4Vec3ES1_S1_bS1_hRKNS_10SubShapeIDEfS1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(100) %132, double %371, double %373, double %375, double %377, double %379, double %381, i1 noundef zeroext %367, double %383, double %385, i8 noundef zeroext %368, ptr noundef nonnull align 4 dereferenceable(4) %369, float noundef 0.000000e+00, ptr noundef byval(%"class.JPH::Vec3") align 16 %56, ptr noundef byval(%"class.JPH::Vec3") align 16 %57, ptr noundef byval(%"class.JPH::Vec3") align 16 %58)
  store i32 1, ptr %35, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #8
  br label %386

386:                                              ; preds = %346, %325
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  br label %388

387:                                              ; preds = %286
  store i32 0, ptr %35, align 4
  br label %388

388:                                              ; preds = %387, %386
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  %389 = load i32, ptr %35, align 4
  switch i32 %389, label %817 [
    i32 0, label %390
  ]

390:                                              ; preds = %388
  br label %569

391:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #8
  %392 = load float, ptr %36, align 4, !tbaa !18
  %393 = call noundef float @_ZSt3absf(float noundef %392)
  store float %393, ptr %59, align 4, !tbaa !18
  %394 = load float, ptr %59, align 4, !tbaa !18
  %395 = fcmp ogt float %394, 0x3EB0C6F7A0000000
  br i1 %395, label %396, label %565

396:                                              ; preds = %391
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #8
  %397 = load float, ptr %36, align 4, !tbaa !18
  %398 = call noundef float @_ZN3JPH4SignIfEET_S1_(float noundef %397)
  %399 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 2
  %400 = load float, ptr %399, align 16, !tbaa !30
  %401 = fmul float %398, %400
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %61, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !10
  %402 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %403 = load double, ptr %402, align 16
  %404 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %405 = load double, ptr %404, align 8
  %406 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %401, double %403, double %405)
  %407 = getelementptr inbounds %"class.JPH::Vec3", ptr %60, i32 0, i32 0
  %408 = getelementptr inbounds %union.anon, ptr %407, i32 0, i32 0
  %409 = getelementptr inbounds { double, double }, ptr %408, i32 0, i32 0
  %410 = extractvalue { double, double } %406, 0
  store double %410, ptr %409, align 16
  %411 = getelementptr inbounds { double, double }, ptr %408, i32 0, i32 1
  %412 = extractvalue { double, double } %406, 1
  store double %412, ptr %411, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %60, i64 16, i1 false), !tbaa.struct !10
  %413 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %414 = load double, ptr %413, align 16
  %415 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %416 = load double, ptr %415, align 8
  %417 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %414, double %416)
  %418 = getelementptr inbounds %"class.JPH::Vec3", ptr %63, i32 0, i32 0
  %419 = getelementptr inbounds %union.anon, ptr %418, i32 0, i32 0
  %420 = getelementptr inbounds { double, double }, ptr %419, i32 0, i32 0
  %421 = extractvalue { double, double } %417, 0
  store double %421, ptr %420, align 16
  %422 = getelementptr inbounds { double, double }, ptr %419, i32 0, i32 1
  %423 = extractvalue { double, double } %417, 1
  store double %423, ptr %422, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %65, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !10
  %424 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 0
  %425 = load double, ptr %424, align 16
  %426 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 1
  %427 = load double, ptr %426, align 8
  %428 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %63, double %425, double %427)
  %429 = load float, ptr %36, align 4, !tbaa !18
  %430 = fdiv float %428, %429
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #8
  store float %430, ptr %62, align 4, !tbaa !18
  %431 = load float, ptr %62, align 4, !tbaa !18
  %432 = load float, ptr %59, align 4, !tbaa !18
  %433 = fmul float %431, %432
  %434 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 2
  %435 = load float, ptr %434, align 16, !tbaa !30
  %436 = fneg float %435
  %437 = fcmp olt float %433, %436
  br i1 %437, label %444, label %438

438:                                              ; preds = %396
  %439 = load float, ptr %62, align 4, !tbaa !18
  %440 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 9
  %441 = load ptr, ptr %440, align 8, !tbaa !31
  %442 = call noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %441)
  %443 = fcmp oge float %439, %442
  br i1 %443, label %444, label %445

444:                                              ; preds = %438, %396
  store i32 1, ptr %35, align 4
  br label %562

445:                                              ; preds = %438
  %446 = load float, ptr %62, align 4, !tbaa !18
  %447 = fcmp oge float %446, 0.000000e+00
  br i1 %447, label %448, label %561

448:                                              ; preds = %445
  call void @llvm.lifetime.start.p0(i64 16, ptr %66) #8
  %449 = load float, ptr %62, align 4, !tbaa !18
  %450 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %68, ptr align 16 %450, i64 16, i1 false), !tbaa.struct !10
  %451 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 0
  %452 = load double, ptr %451, align 16
  %453 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 1
  %454 = load double, ptr %453, align 8
  %455 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %449, double %452, double %454)
  %456 = getelementptr inbounds %"class.JPH::Vec3", ptr %67, i32 0, i32 0
  %457 = getelementptr inbounds %union.anon, ptr %456, i32 0, i32 0
  %458 = getelementptr inbounds { double, double }, ptr %457, i32 0, i32 0
  %459 = extractvalue { double, double } %455, 0
  store double %459, ptr %458, align 16
  %460 = getelementptr inbounds { double, double }, ptr %457, i32 0, i32 1
  %461 = extractvalue { double, double } %455, 1
  store double %461, ptr %460, align 8
  %462 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %463 = load double, ptr %462, align 16
  %464 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %465 = load double, ptr %464, align 8
  %466 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %60, double %463, double %465)
  %467 = getelementptr inbounds %"class.JPH::Vec3", ptr %66, i32 0, i32 0
  %468 = getelementptr inbounds %union.anon, ptr %467, i32 0, i32 0
  %469 = getelementptr inbounds { double, double }, ptr %468, i32 0, i32 0
  %470 = extractvalue { double, double } %466, 0
  store double %470, ptr %469, align 16
  %471 = getelementptr inbounds { double, double }, ptr %468, i32 0, i32 1
  %472 = extractvalue { double, double } %466, 1
  store double %472, ptr %471, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %73, ptr align 16 %66, i64 16, i1 false), !tbaa.struct !10
  %473 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %474 = load double, ptr %473, align 16
  %475 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %476 = load double, ptr %475, align 8
  %477 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %474, double %476)
  %478 = getelementptr inbounds %"class.JPH::Vec3", ptr %72, i32 0, i32 0
  %479 = getelementptr inbounds %union.anon, ptr %478, i32 0, i32 0
  %480 = getelementptr inbounds { double, double }, ptr %479, i32 0, i32 0
  %481 = extractvalue { double, double } %477, 0
  store double %481, ptr %480, align 16
  %482 = getelementptr inbounds { double, double }, ptr %479, i32 0, i32 1
  %483 = extractvalue { double, double } %477, 1
  store double %483, ptr %482, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %75, ptr align 16 %66, i64 16, i1 false), !tbaa.struct !10
  %484 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 0
  %485 = load double, ptr %484, align 16
  %486 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 1
  %487 = load double, ptr %486, align 8
  %488 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %485, double %487)
  %489 = getelementptr inbounds %"class.JPH::Vec3", ptr %74, i32 0, i32 0
  %490 = getelementptr inbounds %union.anon, ptr %489, i32 0, i32 0
  %491 = getelementptr inbounds { double, double }, ptr %490, i32 0, i32 0
  %492 = extractvalue { double, double } %488, 0
  store double %492, ptr %491, align 16
  %493 = getelementptr inbounds { double, double }, ptr %490, i32 0, i32 1
  %494 = extractvalue { double, double } %488, 1
  store double %494, ptr %493, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %77, ptr align 16 %66, i64 16, i1 false), !tbaa.struct !10
  %495 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %496 = load double, ptr %495, align 16
  %497 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %498 = load double, ptr %497, align 8
  %499 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %496, double %498)
  %500 = getelementptr inbounds %"class.JPH::Vec3", ptr %76, i32 0, i32 0
  %501 = getelementptr inbounds %union.anon, ptr %500, i32 0, i32 0
  %502 = getelementptr inbounds { double, double }, ptr %501, i32 0, i32 0
  %503 = extractvalue { double, double } %499, 0
  store double %503, ptr %502, align 16
  %504 = getelementptr inbounds { double, double }, ptr %501, i32 0, i32 1
  %505 = extractvalue { double, double } %499, 1
  store double %505, ptr %504, align 8
  %506 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 0
  %507 = load double, ptr %506, align 16
  %508 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 1
  %509 = load double, ptr %508, align 8
  %510 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 0
  %511 = load double, ptr %510, align 16
  %512 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 1
  %513 = load double, ptr %512, align 8
  %514 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %515 = load double, ptr %514, align 16
  %516 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %517 = load double, ptr %516, align 8
  %518 = call noundef zeroext i1 @_ZN3JPH12ClosestPoint25GetBaryCentricCoordinatesENS_4Vec3ES1_S1_RfS2_S2_(double %507, double %509, double %511, double %513, double %515, double %517, ptr noundef nonnull align 4 dereferenceable(4) %69, ptr noundef nonnull align 4 dereferenceable(4) %70, ptr noundef nonnull align 4 dereferenceable(4) %71)
  br i1 %518, label %519, label %557

519:                                              ; preds = %448
  %520 = load float, ptr %69, align 4, !tbaa !18
  %521 = fcmp oge float %520, 0.000000e+00
  br i1 %521, label %522, label %557

522:                                              ; preds = %519
  %523 = load float, ptr %70, align 4, !tbaa !18
  %524 = fcmp oge float %523, 0.000000e+00
  br i1 %524, label %525, label %557

525:                                              ; preds = %522
  %526 = load float, ptr %71, align 4, !tbaa !18
  %527 = fcmp oge float %526, 0.000000e+00
  br i1 %527, label %528, label %557

528:                                              ; preds = %525
  %529 = load i8, ptr %38, align 1, !tbaa !19, !range !28, !noundef !29
  %530 = trunc i8 %529 to i1
  %531 = load ptr, ptr %15, align 8, !tbaa !5
  %532 = load float, ptr %62, align 4, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %78, ptr align 16 %66, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %79, ptr align 16 %66, i64 16, i1 false), !tbaa.struct !10
  %533 = load i8, ptr %38, align 1, !tbaa !19, !range !28, !noundef !29
  %534 = trunc i8 %533 to i1
  br i1 %534, label %535, label %536

535:                                              ; preds = %528
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %80, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !10
  br label %544

536:                                              ; preds = %528
  %537 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %28)
  %538 = getelementptr inbounds %"class.JPH::Vec3", ptr %80, i32 0, i32 0
  %539 = getelementptr inbounds %union.anon, ptr %538, i32 0, i32 0
  %540 = getelementptr inbounds { double, double }, ptr %539, i32 0, i32 0
  %541 = extractvalue { double, double } %537, 0
  store double %541, ptr %540, align 16
  %542 = getelementptr inbounds { double, double }, ptr %539, i32 0, i32 1
  %543 = extractvalue { double, double } %537, 1
  store double %543, ptr %542, align 8
  br label %544

544:                                              ; preds = %536, %535
  %545 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 0
  %546 = load double, ptr %545, align 16
  %547 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 1
  %548 = load double, ptr %547, align 8
  %549 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 0
  %550 = load double, ptr %549, align 16
  %551 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 1
  %552 = load double, ptr %551, align 8
  %553 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 0
  %554 = load double, ptr %553, align 16
  %555 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 1
  %556 = load double, ptr %555, align 8
  call void @_ZN3JPH21CastSphereVsTriangles6AddHitEbRKNS_10SubShapeIDEfNS_4Vec3ES4_S4_(ptr noundef nonnull align 16 dereferenceable(100) %132, i1 noundef zeroext %530, ptr noundef nonnull align 4 dereferenceable(4) %531, float noundef %532, double %546, double %548, double %550, double %552, double %554, double %556)
  store i32 1, ptr %35, align 4
  br label %558

557:                                              ; preds = %525, %522, %519, %448
  store i32 0, ptr %35, align 4
  br label %558

558:                                              ; preds = %557, %544
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %66) #8
  %559 = load i32, ptr %35, align 4
  switch i32 %559, label %562 [
    i32 0, label %560
  ]

560:                                              ; preds = %558
  br label %561

561:                                              ; preds = %560, %445
  store i32 0, ptr %35, align 4
  br label %562

562:                                              ; preds = %561, %558, %444
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #8
  %563 = load i32, ptr %35, align 4
  switch i32 %563, label %566 [
    i32 0, label %564
  ]

564:                                              ; preds = %562
  br label %565

565:                                              ; preds = %564, %391
  store i32 0, ptr %35, align 4
  br label %566

566:                                              ; preds = %565, %562
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  %567 = load i32, ptr %35, align 4
  switch i32 %567, label %817 [
    i32 0, label %568
  ]

568:                                              ; preds = %566
  br label %569

569:                                              ; preds = %568, %390
  call void @llvm.lifetime.start.p0(i64 4, ptr %81) #8
  %570 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %82, ptr align 16 %570, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %83, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %84, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !10
  %571 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 2
  %572 = load float, ptr %571, align 16, !tbaa !30
  %573 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 0
  %574 = load double, ptr %573, align 16
  %575 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 1
  %576 = load double, ptr %575, align 8
  %577 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 0
  %578 = load double, ptr %577, align 16
  %579 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 1
  %580 = load double, ptr %579, align 8
  %581 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 0
  %582 = load double, ptr %581, align 16
  %583 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 1
  %584 = load double, ptr %583, align 8
  %585 = call noundef float @_ZNK3JPH21CastSphereVsTriangles11RayCylinderENS_4Vec3ES1_S1_f(ptr noundef nonnull align 16 dereferenceable(100) %132, double %574, double %576, double %578, double %580, double %582, double %584, float noundef %572)
  store float %585, ptr %81, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %85) #8
  %586 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %86, ptr align 16 %586, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %87, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %88, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !10
  %587 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 2
  %588 = load float, ptr %587, align 16, !tbaa !30
  %589 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 0
  %590 = load double, ptr %589, align 16
  %591 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 1
  %592 = load double, ptr %591, align 8
  %593 = getelementptr inbounds { double, double }, ptr %87, i32 0, i32 0
  %594 = load double, ptr %593, align 16
  %595 = getelementptr inbounds { double, double }, ptr %87, i32 0, i32 1
  %596 = load double, ptr %595, align 8
  %597 = getelementptr inbounds { double, double }, ptr %88, i32 0, i32 0
  %598 = load double, ptr %597, align 16
  %599 = getelementptr inbounds { double, double }, ptr %88, i32 0, i32 1
  %600 = load double, ptr %599, align 8
  %601 = call noundef float @_ZNK3JPH21CastSphereVsTriangles11RayCylinderENS_4Vec3ES1_S1_f(ptr noundef nonnull align 16 dereferenceable(100) %132, double %590, double %592, double %594, double %596, double %598, double %600, float noundef %588)
  store float %601, ptr %85, align 4, !tbaa !18
  %602 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %81, ptr noundef nonnull align 4 dereferenceable(4) %85)
  %603 = load float, ptr %602, align 4, !tbaa !18
  store float %603, ptr %81, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %85) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %89) #8
  %604 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %90, ptr align 16 %604, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %91, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %92, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  %605 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 2
  %606 = load float, ptr %605, align 16, !tbaa !30
  %607 = getelementptr inbounds { double, double }, ptr %90, i32 0, i32 0
  %608 = load double, ptr %607, align 16
  %609 = getelementptr inbounds { double, double }, ptr %90, i32 0, i32 1
  %610 = load double, ptr %609, align 8
  %611 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 0
  %612 = load double, ptr %611, align 16
  %613 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 1
  %614 = load double, ptr %613, align 8
  %615 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 0
  %616 = load double, ptr %615, align 16
  %617 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 1
  %618 = load double, ptr %617, align 8
  %619 = call noundef float @_ZNK3JPH21CastSphereVsTriangles11RayCylinderENS_4Vec3ES1_S1_f(ptr noundef nonnull align 16 dereferenceable(100) %132, double %608, double %610, double %612, double %614, double %616, double %618, float noundef %606)
  store float %619, ptr %89, align 4, !tbaa !18
  %620 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %81, ptr noundef nonnull align 4 dereferenceable(4) %89)
  %621 = load float, ptr %620, align 4, !tbaa !18
  store float %621, ptr %81, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %89) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %93) #8
  %622 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %623 = getelementptr inbounds %"class.JPH::Vec3", ptr %94, i32 0, i32 0
  %624 = getelementptr inbounds %union.anon, ptr %623, i32 0, i32 0
  %625 = getelementptr inbounds { double, double }, ptr %624, i32 0, i32 0
  %626 = extractvalue { double, double } %622, 0
  store double %626, ptr %625, align 16
  %627 = getelementptr inbounds { double, double }, ptr %624, i32 0, i32 1
  %628 = extractvalue { double, double } %622, 1
  store double %628, ptr %627, align 8
  %629 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %95, ptr align 16 %629, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %96, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  %630 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 2
  %631 = load float, ptr %630, align 16, !tbaa !30
  %632 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 0
  %633 = load double, ptr %632, align 16
  %634 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 1
  %635 = load double, ptr %634, align 8
  %636 = getelementptr inbounds { double, double }, ptr %95, i32 0, i32 0
  %637 = load double, ptr %636, align 16
  %638 = getelementptr inbounds { double, double }, ptr %95, i32 0, i32 1
  %639 = load double, ptr %638, align 8
  %640 = getelementptr inbounds { double, double }, ptr %96, i32 0, i32 0
  %641 = load double, ptr %640, align 16
  %642 = getelementptr inbounds { double, double }, ptr %96, i32 0, i32 1
  %643 = load double, ptr %642, align 8
  %644 = call noundef float @_ZN3JPH9RaySphereENS_4Vec3ES0_S0_f(double %633, double %635, double %637, double %639, double %641, double %643, float noundef %631)
  store float %644, ptr %93, align 4, !tbaa !18
  %645 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %81, ptr noundef nonnull align 4 dereferenceable(4) %93)
  %646 = load float, ptr %645, align 4, !tbaa !18
  store float %646, ptr %81, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %93) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %97) #8
  %647 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %648 = getelementptr inbounds %"class.JPH::Vec3", ptr %98, i32 0, i32 0
  %649 = getelementptr inbounds %union.anon, ptr %648, i32 0, i32 0
  %650 = getelementptr inbounds { double, double }, ptr %649, i32 0, i32 0
  %651 = extractvalue { double, double } %647, 0
  store double %651, ptr %650, align 16
  %652 = getelementptr inbounds { double, double }, ptr %649, i32 0, i32 1
  %653 = extractvalue { double, double } %647, 1
  store double %653, ptr %652, align 8
  %654 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %99, ptr align 16 %654, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %100, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !10
  %655 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 2
  %656 = load float, ptr %655, align 16, !tbaa !30
  %657 = getelementptr inbounds { double, double }, ptr %98, i32 0, i32 0
  %658 = load double, ptr %657, align 16
  %659 = getelementptr inbounds { double, double }, ptr %98, i32 0, i32 1
  %660 = load double, ptr %659, align 8
  %661 = getelementptr inbounds { double, double }, ptr %99, i32 0, i32 0
  %662 = load double, ptr %661, align 16
  %663 = getelementptr inbounds { double, double }, ptr %99, i32 0, i32 1
  %664 = load double, ptr %663, align 8
  %665 = getelementptr inbounds { double, double }, ptr %100, i32 0, i32 0
  %666 = load double, ptr %665, align 16
  %667 = getelementptr inbounds { double, double }, ptr %100, i32 0, i32 1
  %668 = load double, ptr %667, align 8
  %669 = call noundef float @_ZN3JPH9RaySphereENS_4Vec3ES0_S0_f(double %658, double %660, double %662, double %664, double %666, double %668, float noundef %656)
  store float %669, ptr %97, align 4, !tbaa !18
  %670 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %81, ptr noundef nonnull align 4 dereferenceable(4) %97)
  %671 = load float, ptr %670, align 4, !tbaa !18
  store float %671, ptr %81, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %97) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %101) #8
  %672 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %673 = getelementptr inbounds %"class.JPH::Vec3", ptr %102, i32 0, i32 0
  %674 = getelementptr inbounds %union.anon, ptr %673, i32 0, i32 0
  %675 = getelementptr inbounds { double, double }, ptr %674, i32 0, i32 0
  %676 = extractvalue { double, double } %672, 0
  store double %676, ptr %675, align 16
  %677 = getelementptr inbounds { double, double }, ptr %674, i32 0, i32 1
  %678 = extractvalue { double, double } %672, 1
  store double %678, ptr %677, align 8
  %679 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %103, ptr align 16 %679, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %104, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !10
  %680 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 2
  %681 = load float, ptr %680, align 16, !tbaa !30
  %682 = getelementptr inbounds { double, double }, ptr %102, i32 0, i32 0
  %683 = load double, ptr %682, align 16
  %684 = getelementptr inbounds { double, double }, ptr %102, i32 0, i32 1
  %685 = load double, ptr %684, align 8
  %686 = getelementptr inbounds { double, double }, ptr %103, i32 0, i32 0
  %687 = load double, ptr %686, align 16
  %688 = getelementptr inbounds { double, double }, ptr %103, i32 0, i32 1
  %689 = load double, ptr %688, align 8
  %690 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 0
  %691 = load double, ptr %690, align 16
  %692 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 1
  %693 = load double, ptr %692, align 8
  %694 = call noundef float @_ZN3JPH9RaySphereENS_4Vec3ES0_S0_f(double %683, double %685, double %687, double %689, double %691, double %693, float noundef %681)
  store float %694, ptr %101, align 4, !tbaa !18
  %695 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %81, ptr noundef nonnull align 4 dereferenceable(4) %101)
  %696 = load float, ptr %695, align 4, !tbaa !18
  store float %696, ptr %81, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #8
  br label %697

697:                                              ; preds = %569
  %698 = load float, ptr %81, align 4, !tbaa !18
  %699 = fcmp oge float %698, 0.000000e+00
  br i1 %699, label %703, label %700

700:                                              ; preds = %697
  %701 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 208)
  br i1 %701, label %702, label %703

702:                                              ; preds = %700
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !32
  br label %703

703:                                              ; preds = %702, %700, %697
  br label %704

704:                                              ; preds = %703
  br label %705

705:                                              ; preds = %704
  %706 = load float, ptr %81, align 4, !tbaa !18
  %707 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 9
  %708 = load ptr, ptr %707, align 8, !tbaa !31
  %709 = call noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %708)
  %710 = fcmp olt float %706, %709
  br i1 %710, label %711, label %816

711:                                              ; preds = %705
  call void @llvm.lifetime.start.p0(i64 16, ptr %106) #8
  %712 = load float, ptr %81, align 4, !tbaa !18
  %713 = getelementptr inbounds %"class.JPH::CastSphereVsTriangles", ptr %132, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %107, ptr align 16 %713, i64 16, i1 false), !tbaa.struct !10
  %714 = getelementptr inbounds { double, double }, ptr %107, i32 0, i32 0
  %715 = load double, ptr %714, align 16
  %716 = getelementptr inbounds { double, double }, ptr %107, i32 0, i32 1
  %717 = load double, ptr %716, align 8
  %718 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %712, double %715, double %717)
  %719 = getelementptr inbounds %"class.JPH::Vec3", ptr %106, i32 0, i32 0
  %720 = getelementptr inbounds %union.anon, ptr %719, i32 0, i32 0
  %721 = getelementptr inbounds { double, double }, ptr %720, i32 0, i32 0
  %722 = extractvalue { double, double } %718, 0
  store double %722, ptr %721, align 16
  %723 = getelementptr inbounds { double, double }, ptr %720, i32 0, i32 1
  %724 = extractvalue { double, double } %718, 1
  store double %724, ptr %723, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %108) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %109) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %111, ptr align 16 %106, i64 16, i1 false), !tbaa.struct !10
  %725 = getelementptr inbounds { double, double }, ptr %111, i32 0, i32 0
  %726 = load double, ptr %725, align 16
  %727 = getelementptr inbounds { double, double }, ptr %111, i32 0, i32 1
  %728 = load double, ptr %727, align 8
  %729 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %726, double %728)
  %730 = getelementptr inbounds %"class.JPH::Vec3", ptr %110, i32 0, i32 0
  %731 = getelementptr inbounds %union.anon, ptr %730, i32 0, i32 0
  %732 = getelementptr inbounds { double, double }, ptr %731, i32 0, i32 0
  %733 = extractvalue { double, double } %729, 0
  store double %733, ptr %732, align 16
  %734 = getelementptr inbounds { double, double }, ptr %731, i32 0, i32 1
  %735 = extractvalue { double, double } %729, 1
  store double %735, ptr %734, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %113, ptr align 16 %106, i64 16, i1 false), !tbaa.struct !10
  %736 = getelementptr inbounds { double, double }, ptr %113, i32 0, i32 0
  %737 = load double, ptr %736, align 16
  %738 = getelementptr inbounds { double, double }, ptr %113, i32 0, i32 1
  %739 = load double, ptr %738, align 8
  %740 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %737, double %739)
  %741 = getelementptr inbounds %"class.JPH::Vec3", ptr %112, i32 0, i32 0
  %742 = getelementptr inbounds %union.anon, ptr %741, i32 0, i32 0
  %743 = getelementptr inbounds { double, double }, ptr %742, i32 0, i32 0
  %744 = extractvalue { double, double } %740, 0
  store double %744, ptr %743, align 16
  %745 = getelementptr inbounds { double, double }, ptr %742, i32 0, i32 1
  %746 = extractvalue { double, double } %740, 1
  store double %746, ptr %745, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %115, ptr align 16 %106, i64 16, i1 false), !tbaa.struct !10
  %747 = getelementptr inbounds { double, double }, ptr %115, i32 0, i32 0
  %748 = load double, ptr %747, align 16
  %749 = getelementptr inbounds { double, double }, ptr %115, i32 0, i32 1
  %750 = load double, ptr %749, align 8
  %751 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %748, double %750)
  %752 = getelementptr inbounds %"class.JPH::Vec3", ptr %114, i32 0, i32 0
  %753 = getelementptr inbounds %union.anon, ptr %752, i32 0, i32 0
  %754 = getelementptr inbounds { double, double }, ptr %753, i32 0, i32 0
  %755 = extractvalue { double, double } %751, 0
  store double %755, ptr %754, align 16
  %756 = getelementptr inbounds { double, double }, ptr %753, i32 0, i32 1
  %757 = extractvalue { double, double } %751, 1
  store double %757, ptr %756, align 8
  %758 = getelementptr inbounds { double, double }, ptr %110, i32 0, i32 0
  %759 = load double, ptr %758, align 16
  %760 = getelementptr inbounds { double, double }, ptr %110, i32 0, i32 1
  %761 = load double, ptr %760, align 8
  %762 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 0
  %763 = load double, ptr %762, align 16
  %764 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 1
  %765 = load double, ptr %764, align 8
  %766 = getelementptr inbounds { double, double }, ptr %114, i32 0, i32 0
  %767 = load double, ptr %766, align 16
  %768 = getelementptr inbounds { double, double }, ptr %114, i32 0, i32 1
  %769 = load double, ptr %768, align 8
  %770 = call { double, double } @_ZN3JPH12ClosestPoint25GetClosestPointOnTriangleILb0EEENS_4Vec3ES2_S2_S2_Rj(double %759, double %761, double %763, double %765, double %767, double %769, ptr noundef nonnull align 4 dereferenceable(4) %108)
  %771 = getelementptr inbounds %"class.JPH::Vec3", ptr %109, i32 0, i32 0
  %772 = getelementptr inbounds %union.anon, ptr %771, i32 0, i32 0
  %773 = getelementptr inbounds { double, double }, ptr %772, i32 0, i32 0
  %774 = extractvalue { double, double } %770, 0
  store double %774, ptr %773, align 16
  %775 = getelementptr inbounds { double, double }, ptr %772, i32 0, i32 1
  %776 = extractvalue { double, double } %770, 1
  store double %776, ptr %775, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %116) #8
  %777 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %109)
  %778 = getelementptr inbounds %"class.JPH::Vec3", ptr %116, i32 0, i32 0
  %779 = getelementptr inbounds %union.anon, ptr %778, i32 0, i32 0
  %780 = getelementptr inbounds { double, double }, ptr %779, i32 0, i32 0
  %781 = extractvalue { double, double } %777, 0
  store double %781, ptr %780, align 16
  %782 = getelementptr inbounds { double, double }, ptr %779, i32 0, i32 1
  %783 = extractvalue { double, double } %777, 1
  store double %783, ptr %782, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %117) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %118, ptr align 16 %109, i64 16, i1 false), !tbaa.struct !10
  %784 = getelementptr inbounds { double, double }, ptr %118, i32 0, i32 0
  %785 = load double, ptr %784, align 16
  %786 = getelementptr inbounds { double, double }, ptr %118, i32 0, i32 1
  %787 = load double, ptr %786, align 8
  %788 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %106, double %785, double %787)
  %789 = getelementptr inbounds %"class.JPH::Vec3", ptr %117, i32 0, i32 0
  %790 = getelementptr inbounds %union.anon, ptr %789, i32 0, i32 0
  %791 = getelementptr inbounds { double, double }, ptr %790, i32 0, i32 0
  %792 = extractvalue { double, double } %788, 0
  store double %792, ptr %791, align 16
  %793 = getelementptr inbounds { double, double }, ptr %790, i32 0, i32 1
  %794 = extractvalue { double, double } %788, 1
  store double %794, ptr %793, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %119, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %120, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %121, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !10
  %795 = load i8, ptr %38, align 1, !tbaa !19, !range !28, !noundef !29
  %796 = trunc i8 %795 to i1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %122, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !10
  %797 = load i8, ptr %14, align 1, !tbaa !9
  %798 = load ptr, ptr %15, align 8, !tbaa !5
  %799 = load float, ptr %81, align 4, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %123, ptr align 16 %117, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %124, ptr align 16 %117, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %125, ptr align 16 %116, i64 16, i1 false), !tbaa.struct !10
  %800 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 0
  %801 = load double, ptr %800, align 16
  %802 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 1
  %803 = load double, ptr %802, align 8
  %804 = getelementptr inbounds { double, double }, ptr %120, i32 0, i32 0
  %805 = load double, ptr %804, align 16
  %806 = getelementptr inbounds { double, double }, ptr %120, i32 0, i32 1
  %807 = load double, ptr %806, align 8
  %808 = getelementptr inbounds { double, double }, ptr %121, i32 0, i32 0
  %809 = load double, ptr %808, align 16
  %810 = getelementptr inbounds { double, double }, ptr %121, i32 0, i32 1
  %811 = load double, ptr %810, align 8
  %812 = getelementptr inbounds { double, double }, ptr %122, i32 0, i32 0
  %813 = load double, ptr %812, align 16
  %814 = getelementptr inbounds { double, double }, ptr %122, i32 0, i32 1
  %815 = load double, ptr %814, align 8
  call void @_ZN3JPH21CastSphereVsTriangles29AddHitWithActiveEdgeDetectionENS_4Vec3ES1_S1_bS1_hRKNS_10SubShapeIDEfS1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(100) %132, double %801, double %803, double %805, double %807, double %809, double %811, i1 noundef zeroext %796, double %813, double %815, i8 noundef zeroext %797, ptr noundef nonnull align 4 dereferenceable(4) %798, float noundef %799, ptr noundef byval(%"class.JPH::Vec3") align 16 %123, ptr noundef byval(%"class.JPH::Vec3") align 16 %124, ptr noundef byval(%"class.JPH::Vec3") align 16 %125)
  call void @llvm.lifetime.end.p0(i64 16, ptr %117) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %116) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %109) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %108) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %106) #8
  br label %816

816:                                              ; preds = %711, %705
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #8
  store i32 0, ptr %35, align 4
  br label %817

817:                                              ; preds = %816, %566, %388, %275
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %818

818:                                              ; preds = %817, %254
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  %819 = load i32, ptr %35, align 4
  switch i32 %819, label %821 [
    i32 0, label %820
    i32 1, label %820
  ]

820:                                              ; preds = %818, %818
  ret void

821:                                              ; preds = %818
  unreachable
}

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH12ClosestPoint25GetBaryCentricCoordinatesENS_4Vec3ES1_S1_RfS2_S2_(double, double, double, double, double, double, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH9RaySphereENS_4Vec3ES0_S0_f(double, double, double, double, double, double, float noundef) #7

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16)) #7 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 = { 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 #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 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 = { 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 #7 = { 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 #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 = !{!7, !7, i64 0}
!10 = !{i64 0, i64 16, !9}
!11 = !{!12, !14, i64 96}
!12 = !{!"_ZTSN3JPH21CastSphereVsTrianglesE", !13, i64 0, !13, i64 16, !14, i64 32, !6, i64 40, !6, i64 48, !13, i64 64, !15, i64 80, !6, i64 88, !14, i64 96}
!13 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTSN3JPH17SubShapeIDCreatorE", !16, i64 0, !17, i64 4}
!16 = !{!"_ZTSN3JPH10SubShapeIDE", !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!14, !14, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!12, !6, i64 40}
!22 = !{!23, !27, i64 32}
!23 = !{!"_ZTSN3JPH17ShapeCastSettingsE", !24, i64 0, !27, i64 32, !27, i64 33, !20, i64 34, !20, i64 35}
!24 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !25, i64 0, !26, i64 1, !14, i64 4, !14, i64 8, !13, i64 16}
!25 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !7, i64 0}
!26 = !{!"_ZTSN3JPH17ECollectFacesModeE", !7, i64 0}
!27 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!12, !14, i64 32}
!31 = !{!12, !6, i64 88}
!32 = !{i64 2158114528}


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

@.str.1 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1

; 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 zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH21CastSphereVsTriangles4CastENS_4Vec3ES1_S1_hRKNS_10SubShapeIDE(ptr noundef nonnull align 16 dereferenceable(100) %0, double %1, double %2, double %3, double %4, double %5, double %6, i8 noundef zeroext %7, ptr noundef nonnull align 4 dereferenceable(4) %8) local_unnamed_addr #3 align 2 {
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca i32, 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 %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca i32, align 4
  %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
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %40 = getelementptr inbounds i8, ptr %0, i64 64
  %41 = tail call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %40, double %1, double %2)
  %42 = extractvalue { double, double } %41, 0
  store double %42, ptr %11, align 16
  %43 = getelementptr inbounds i8, ptr %11, i64 8
  %44 = extractvalue { double, double } %41, 1
  store double %44, ptr %43, align 8
  %.sroa.0167.0.copyload = load double, ptr %0, align 16
  %.sroa.2168.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.2168.0.copyload = load double, ptr %.sroa.2168.0..sroa_idx, align 8, !tbaa !5
  %45 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.0167.0.copyload, double %.sroa.2168.0.copyload)
  %46 = extractvalue { double, double } %45, 0
  store double %46, ptr %10, align 16
  %47 = getelementptr inbounds i8, ptr %10, i64 8
  %48 = extractvalue { double, double } %45, 1
  store double %48, ptr %47, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %49 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %40, double %3, double %4)
  %50 = extractvalue { double, double } %49, 0
  store double %50, ptr %13, align 16
  %51 = getelementptr inbounds i8, ptr %13, i64 8
  %52 = extractvalue { double, double } %49, 1
  store double %52, ptr %51, align 8
  %.sroa.0163.0.copyload = load double, ptr %0, align 16
  %.sroa.2164.0.copyload = load double, ptr %.sroa.2168.0..sroa_idx, align 8, !tbaa !5
  %53 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %.sroa.0163.0.copyload, double %.sroa.2164.0.copyload)
  %54 = extractvalue { double, double } %53, 0
  store double %54, ptr %12, align 16
  %55 = getelementptr inbounds i8, ptr %12, i64 8
  %56 = extractvalue { double, double } %53, 1
  store double %56, ptr %55, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  %57 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %40, double %5, double %6)
  %58 = extractvalue { double, double } %57, 0
  store double %58, ptr %15, align 16
  %59 = getelementptr inbounds i8, ptr %15, i64 8
  %60 = extractvalue { double, double } %57, 1
  store double %60, ptr %59, align 8
  %.sroa.0159.0.copyload = load double, ptr %0, align 16
  %.sroa.2160.0.copyload = load double, ptr %.sroa.2168.0..sroa_idx, align 8, !tbaa !5
  %61 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %.sroa.0159.0.copyload, double %.sroa.2160.0.copyload)
  %62 = extractvalue { double, double } %61, 0
  store double %62, ptr %14, align 16
  %63 = getelementptr inbounds i8, ptr %14, i64 8
  %64 = extractvalue { double, double } %61, 1
  store double %64, ptr %63, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  %65 = getelementptr inbounds i8, ptr %0, i64 96
  %66 = load float, ptr %65, align 16, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  %67 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %46, double %48)
  %68 = extractvalue { double, double } %67, 0
  store double %68, ptr %17, align 16
  %69 = getelementptr inbounds i8, ptr %17, i64 8
  %70 = extractvalue { double, double } %67, 1
  store double %70, ptr %69, align 8
  %71 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %46, double %48)
  %72 = extractvalue { double, double } %71, 0
  %73 = extractvalue { double, double } %71, 1
  %74 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %72, double %73)
  %75 = extractvalue { double, double } %74, 0
  %76 = extractvalue { double, double } %74, 1
  %77 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %66, double %75, double %76)
  %78 = extractvalue { double, double } %77, 0
  store double %78, ptr %16, align 16
  %79 = getelementptr inbounds i8, ptr %16, i64 8
  %80 = extractvalue { double, double } %77, 1
  store double %80, ptr %79, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  %81 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %82 = fcmp oeq float %81, 0.000000e+00
  br i1 %82, label %259, label %83

83:                                               ; preds = %9
  %84 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef %81)
  %85 = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.0139.0.copyload = load double, ptr %85, align 16
  %.sroa.2140.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.2140.0.copyload = load double, ptr %.sroa.2140.0..sroa_idx, align 8, !tbaa !5
  %86 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %.sroa.0139.0.copyload, double %.sroa.2140.0.copyload)
  %87 = fcmp ogt float %86, 0.000000e+00
  %88 = getelementptr inbounds i8, ptr %0, i64 40
  %89 = load ptr, ptr %88, align 8, !tbaa !16
  %90 = getelementptr inbounds i8, ptr %89, i64 32
  %91 = load i8, ptr %90, align 16, !tbaa !17
  %92 = icmp eq i8 %91, 0
  %brmerge.not = and i1 %87, %92
  br i1 %brmerge.not, label %259, label %93

93:                                               ; preds = %83
  %.sroa.0133.0.copyload = load double, ptr %16, align 16
  %.sroa.2134.0.copyload = load double, ptr %79, align 8, !tbaa !5
  %94 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %.sroa.0133.0.copyload, double %.sroa.2134.0.copyload)
  %95 = call noundef float @_ZSt3absf(float noundef %94)
  %96 = getelementptr inbounds i8, ptr %0, i64 32
  %97 = load float, ptr %96, align 16, !tbaa !24
  %98 = fcmp ugt float %95, %97
  br i1 %98, label %132, label %99

99:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  %.sroa.0131.0.copyload = load double, ptr %10, align 16
  %.sroa.2132.0.copyload = load double, ptr %47, align 8, !tbaa !5
  %.sroa.0129.0.copyload = load double, ptr %12, align 16
  %.sroa.2130.0.copyload = load double, ptr %55, align 8, !tbaa !5
  %.sroa.0127.0.copyload = load double, ptr %14, align 16
  %.sroa.2128.0.copyload = load double, ptr %63, align 8, !tbaa !5
  %100 = call { double, double } @_ZN3JPH12ClosestPoint25GetClosestPointOnTriangleILb0EEENS_4Vec3ES2_S2_S2_Rj(double %.sroa.0131.0.copyload, double %.sroa.2132.0.copyload, double %.sroa.0129.0.copyload, double %.sroa.2130.0.copyload, double %.sroa.0127.0.copyload, double %.sroa.2128.0.copyload, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %101 = extractvalue { double, double } %100, 0
  store double %101, ptr %19, align 16
  %102 = getelementptr inbounds i8, ptr %19, i64 8
  %103 = extractvalue { double, double } %100, 1
  store double %103, ptr %102, align 8
  %104 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %19)
  %105 = load float, ptr %96, align 16, !tbaa !24
  %106 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %105)
  %107 = fcmp ugt float %104, %106
  br i1 %107, label %.critedge, label %108

108:                                              ; preds = %99
  %109 = call noundef float @_ZSt4sqrtf(float noundef %104)
  %110 = load float, ptr %96, align 16, !tbaa !24
  %111 = fsub float %110, %109
  %112 = fneg float %111
  %113 = getelementptr inbounds i8, ptr %0, i64 88
  %114 = load ptr, ptr %113, align 8, !tbaa !25
  %115 = call noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %114)
  %116 = fcmp ugt float %115, %112
  br i1 %116, label %117, label %131

117:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #7
  %118 = fcmp ogt float %109, 0.000000e+00
  br i1 %118, label %119, label %121

119:                                              ; preds = %117
  %120 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef %109)
  br label %123

121:                                              ; preds = %117
  %122 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  br label %123

123:                                              ; preds = %121, %119
  %.pn = phi { double, double } [ %120, %119 ], [ %122, %121 ]
  %.sink = extractvalue { double, double } %.pn, 1
  %.sink194 = extractvalue { double, double } %.pn, 0
  store double %.sink194, ptr %20, align 16
  %124 = getelementptr inbounds i8, ptr %20, i64 8
  store double %.sink, ptr %124, align 8
  %125 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef %111)
  %126 = extractvalue { double, double } %125, 0
  %127 = extractvalue { double, double } %125, 1
  %128 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %126, double %127)
  %129 = extractvalue { double, double } %128, 0
  %130 = extractvalue { double, double } %128, 1
  %.sroa.0114.0.copyload = load <4 x float>, ptr %19, align 16, !tbaa !5
  %.sroa.0112.0.copyload = load double, ptr %10, align 16
  %.sroa.2113.0.copyload = load double, ptr %47, align 8, !tbaa !5
  %.sroa.0110.0.copyload = load double, ptr %12, align 16
  %.sroa.2111.0.copyload = load double, ptr %55, align 8, !tbaa !5
  %.sroa.0108.0.copyload = load double, ptr %14, align 16
  %.sroa.2109.0.copyload = load double, ptr %63, align 8, !tbaa !5
  %.sroa.0106.0.copyload = load double, ptr %16, align 16
  %.sroa.2107.0.copyload = load double, ptr %79, align 8, !tbaa !5
  store double %129, ptr %21, align 16
  %.sroa.4119.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 8
  store double %130, ptr %.sroa.4119.0..sroa_idx, align 8, !tbaa !5
  store <4 x float> %.sroa.0114.0.copyload, ptr %22, align 16, !tbaa !5
  call void @_ZN3JPH21CastSphereVsTriangles29AddHitWithActiveEdgeDetectionENS_4Vec3ES1_S1_bS1_hRKNS_10SubShapeIDEfS1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(100) %0, double %.sroa.0112.0.copyload, double %.sroa.2113.0.copyload, double %.sroa.0110.0.copyload, double %.sroa.2111.0.copyload, double %.sroa.0108.0.copyload, double %.sroa.2109.0.copyload, i1 noundef zeroext %87, double %.sroa.0106.0.copyload, double %.sroa.2107.0.copyload, i8 noundef zeroext %7, ptr noundef nonnull align 4 dereferenceable(4) %8, float noundef 0.000000e+00, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %21, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %22, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %20)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  br label %131

131:                                              ; preds = %123, %108
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  br label %259

132:                                              ; preds = %93
  %133 = call noundef float @_ZSt3absf(float noundef %86)
  %134 = fcmp ogt float %133, 0x3EB0C6F7A0000000
  br i1 %134, label %135, label %190

135:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  %136 = call noundef float @_ZN3JPH4SignIfEET_S1_(float noundef %86)
  %137 = load float, ptr %96, align 16, !tbaa !24
  %138 = fmul float %136, %137
  %.sroa.0102.0.copyload = load double, ptr %16, align 16
  %.sroa.2103.0.copyload = load double, ptr %79, align 8, !tbaa !5
  %139 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %138, double %.sroa.0102.0.copyload, double %.sroa.2103.0.copyload)
  %140 = extractvalue { double, double } %139, 0
  store double %140, ptr %23, align 16
  %141 = getelementptr inbounds i8, ptr %23, i64 8
  %142 = extractvalue { double, double } %139, 1
  store double %142, ptr %141, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #7
  %143 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %140, double %142)
  %144 = extractvalue { double, double } %143, 0
  store double %144, ptr %24, align 16
  %145 = getelementptr inbounds i8, ptr %24, i64 8
  %146 = extractvalue { double, double } %143, 1
  store double %146, ptr %145, align 8
  %.sroa.094.0.copyload = load double, ptr %16, align 16
  %.sroa.295.0.copyload = load double, ptr %79, align 8, !tbaa !5
  %147 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %.sroa.094.0.copyload, double %.sroa.295.0.copyload)
  %148 = fdiv float %147, %86
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  %149 = fmul float %133, %148
  %150 = load float, ptr %96, align 16, !tbaa !24
  %151 = fneg float %150
  %152 = fcmp olt float %149, %151
  br i1 %152, label %.critedge193, label %153

153:                                              ; preds = %135
  %154 = getelementptr inbounds i8, ptr %0, i64 88
  %155 = load ptr, ptr %154, align 8, !tbaa !25
  %156 = call noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %155)
  %157 = fcmp ult float %148, %156
  br i1 %157, label %158, label %.critedge193

158:                                              ; preds = %153
  %159 = fcmp ult float %148, 0.000000e+00
  br i1 %159, label %.critedge191, label %160

160:                                              ; preds = %158
  %.sroa.089.0.copyload = load double, ptr %85, align 16
  %.sroa.290.0.copyload = load double, ptr %.sroa.2140.0..sroa_idx, align 8, !tbaa !5
  %161 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %148, double %.sroa.089.0.copyload, double %.sroa.290.0.copyload)
  %162 = extractvalue { double, double } %161, 0
  %163 = extractvalue { double, double } %161, 1
  %164 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %23, double %162, double %163)
  %165 = extractvalue { double, double } %164, 0
  %166 = extractvalue { double, double } %164, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #7
  %167 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %165, double %166)
  %168 = extractvalue { double, double } %167, 0
  %169 = extractvalue { double, double } %167, 1
  %170 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %165, double %166)
  %171 = extractvalue { double, double } %170, 0
  %172 = extractvalue { double, double } %170, 1
  %173 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %165, double %166)
  %174 = extractvalue { double, double } %173, 0
  %175 = extractvalue { double, double } %173, 1
  %176 = call noundef zeroext i1 @_ZN3JPH12ClosestPoint25GetBaryCentricCoordinatesENS_4Vec3ES1_S1_RfS2_S2_(double %168, double %169, double %171, double %172, double %174, double %175, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %177 = load float, ptr %25, align 4
  %178 = fcmp oge float %177, 0.000000e+00
  %or.cond = select i1 %176, i1 %178, i1 false
  %179 = load float, ptr %26, align 4
  %180 = fcmp oge float %179, 0.000000e+00
  %or.cond6 = select i1 %or.cond, i1 %180, i1 false
  %181 = load float, ptr %27, align 4
  %182 = fcmp oge float %181, 0.000000e+00
  %or.cond8 = select i1 %or.cond6, i1 %182, i1 false
  br i1 %or.cond8, label %183, label %.critedge189

183:                                              ; preds = %160
  br i1 %87, label %184, label %185

184:                                              ; preds = %183
  %.sroa.072.0.copyload = load double, ptr %16, align 16
  %.sroa.3.0.copyload = load double, ptr %79, align 8, !tbaa !5
  br label %189

185:                                              ; preds = %183
  %186 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %187 = extractvalue { double, double } %186, 0
  %188 = extractvalue { double, double } %186, 1
  br label %189

189:                                              ; preds = %185, %184
  %.sroa.072.0 = phi double [ %.sroa.072.0.copyload, %184 ], [ %187, %185 ]
  %.sroa.3.0 = phi double [ %.sroa.3.0.copyload, %184 ], [ %188, %185 ]
  call void @_ZN3JPH21CastSphereVsTriangles6AddHitEbRKNS_10SubShapeIDEfNS_4Vec3ES4_S4_(ptr noundef nonnull align 16 dereferenceable(100) %0, i1 noundef zeroext %87, ptr noundef nonnull align 4 dereferenceable(4) %8, float noundef %148, double %165, double %166, double %165, double %166, double %.sroa.072.0, double %.sroa.3.0)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #7
  br label %.critedge193

.critedge189:                                     ; preds = %160
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #7
  br label %.critedge191

.critedge191:                                     ; preds = %.critedge189, %158
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  br label %190

.critedge193:                                     ; preds = %189, %135, %153
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  br label %259

.critedge:                                        ; preds = %99
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  br label %190

190:                                              ; preds = %.critedge191, %132, %.critedge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #7
  %.sroa.070.0.copyload = load double, ptr %85, align 16
  %.sroa.271.0.copyload = load double, ptr %.sroa.2140.0..sroa_idx, align 8, !tbaa !5
  %.sroa.068.0.copyload = load double, ptr %10, align 16
  %.sroa.269.0.copyload = load double, ptr %47, align 8, !tbaa !5
  %.sroa.066.0.copyload = load double, ptr %12, align 16
  %.sroa.267.0.copyload = load double, ptr %55, align 8, !tbaa !5
  %191 = load float, ptr %96, align 16, !tbaa !24
  %192 = call noundef float @_ZNK3JPH21CastSphereVsTriangles11RayCylinderENS_4Vec3ES1_S1_f(ptr noundef nonnull align 16 dereferenceable(100) %0, double %.sroa.070.0.copyload, double %.sroa.271.0.copyload, double %.sroa.068.0.copyload, double %.sroa.269.0.copyload, double %.sroa.066.0.copyload, double %.sroa.267.0.copyload, float noundef %191)
  store float %192, ptr %28, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #7
  %.sroa.064.0.copyload = load double, ptr %85, align 16
  %.sroa.265.0.copyload = load double, ptr %.sroa.2140.0..sroa_idx, align 8, !tbaa !5
  %.sroa.062.0.copyload = load double, ptr %12, align 16
  %.sroa.263.0.copyload = load double, ptr %55, align 8, !tbaa !5
  %.sroa.060.0.copyload = load double, ptr %14, align 16
  %.sroa.261.0.copyload = load double, ptr %63, align 8, !tbaa !5
  %193 = load float, ptr %96, align 16, !tbaa !24
  %194 = call noundef float @_ZNK3JPH21CastSphereVsTriangles11RayCylinderENS_4Vec3ES1_S1_f(ptr noundef nonnull align 16 dereferenceable(100) %0, double %.sroa.064.0.copyload, double %.sroa.265.0.copyload, double %.sroa.062.0.copyload, double %.sroa.263.0.copyload, double %.sroa.060.0.copyload, double %.sroa.261.0.copyload, float noundef %193)
  store float %194, ptr %29, align 4, !tbaa !26
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %196 = load float, ptr %195, align 4, !tbaa !26
  store float %196, ptr %28, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #7
  %.sroa.058.0.copyload = load double, ptr %85, align 16
  %.sroa.259.0.copyload = load double, ptr %.sroa.2140.0..sroa_idx, align 8, !tbaa !5
  %.sroa.056.0.copyload = load double, ptr %14, align 16
  %.sroa.257.0.copyload = load double, ptr %63, align 8, !tbaa !5
  %.sroa.054.0.copyload = load double, ptr %10, align 16
  %.sroa.255.0.copyload = load double, ptr %47, align 8, !tbaa !5
  %197 = load float, ptr %96, align 16, !tbaa !24
  %198 = call noundef float @_ZNK3JPH21CastSphereVsTriangles11RayCylinderENS_4Vec3ES1_S1_f(ptr noundef nonnull align 16 dereferenceable(100) %0, double %.sroa.058.0.copyload, double %.sroa.259.0.copyload, double %.sroa.056.0.copyload, double %.sroa.257.0.copyload, double %.sroa.054.0.copyload, double %.sroa.255.0.copyload, float noundef %197)
  store float %198, ptr %30, align 4, !tbaa !26
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %200 = load float, ptr %199, align 4, !tbaa !26
  store float %200, ptr %28, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #7
  %201 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %202 = extractvalue { double, double } %201, 0
  %203 = extractvalue { double, double } %201, 1
  %.sroa.050.0.copyload = load double, ptr %85, align 16
  %.sroa.251.0.copyload = load double, ptr %.sroa.2140.0..sroa_idx, align 8, !tbaa !5
  %.sroa.048.0.copyload = load double, ptr %10, align 16
  %.sroa.249.0.copyload = load double, ptr %47, align 8, !tbaa !5
  %204 = load float, ptr %96, align 16, !tbaa !24
  %205 = call noundef float @_ZN3JPH9RaySphereENS_4Vec3ES0_S0_f(double %202, double %203, double %.sroa.050.0.copyload, double %.sroa.251.0.copyload, double %.sroa.048.0.copyload, double %.sroa.249.0.copyload, float noundef %204)
  store float %205, ptr %31, align 4, !tbaa !26
  %206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %207 = load float, ptr %206, align 4, !tbaa !26
  store float %207, ptr %28, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #7
  %208 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %209 = extractvalue { double, double } %208, 0
  %210 = extractvalue { double, double } %208, 1
  %.sroa.044.0.copyload = load double, ptr %85, align 16
  %.sroa.245.0.copyload = load double, ptr %.sroa.2140.0..sroa_idx, align 8, !tbaa !5
  %.sroa.042.0.copyload = load double, ptr %12, align 16
  %.sroa.243.0.copyload = load double, ptr %55, align 8, !tbaa !5
  %211 = load float, ptr %96, align 16, !tbaa !24
  %212 = call noundef float @_ZN3JPH9RaySphereENS_4Vec3ES0_S0_f(double %209, double %210, double %.sroa.044.0.copyload, double %.sroa.245.0.copyload, double %.sroa.042.0.copyload, double %.sroa.243.0.copyload, float noundef %211)
  store float %212, ptr %32, align 4, !tbaa !26
  %213 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %214 = load float, ptr %213, align 4, !tbaa !26
  store float %214, ptr %28, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #7
  %215 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %216 = extractvalue { double, double } %215, 0
  %217 = extractvalue { double, double } %215, 1
  %.sroa.038.0.copyload = load double, ptr %85, align 16
  %.sroa.239.0.copyload = load double, ptr %.sroa.2140.0..sroa_idx, align 8, !tbaa !5
  %.sroa.036.0.copyload = load double, ptr %14, align 16
  %.sroa.237.0.copyload = load double, ptr %63, align 8, !tbaa !5
  %218 = load float, ptr %96, align 16, !tbaa !24
  %219 = call noundef float @_ZN3JPH9RaySphereENS_4Vec3ES0_S0_f(double %216, double %217, double %.sroa.038.0.copyload, double %.sroa.239.0.copyload, double %.sroa.036.0.copyload, double %.sroa.237.0.copyload, float noundef %218)
  store float %219, ptr %33, align 4, !tbaa !26
  %220 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %221 = load float, ptr %220, align 4, !tbaa !26
  store float %221, ptr %28, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #7
  %222 = fcmp ult float %221, 0.000000e+00
  br i1 %222, label %223, label %226

223:                                              ; preds = %190
  %224 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 208)
  br i1 %224, label %225, label %226

225:                                              ; preds = %223
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !27
  br label %226

226:                                              ; preds = %225, %223, %190
  %227 = load float, ptr %28, align 4, !tbaa !26
  %228 = getelementptr inbounds i8, ptr %0, i64 88
  %229 = load ptr, ptr %228, align 8, !tbaa !25
  %230 = call noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %229)
  %231 = fcmp olt float %227, %230
  br i1 %231, label %232, label %258

232:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #7
  %233 = load float, ptr %28, align 4, !tbaa !26
  %.sroa.034.0.copyload = load double, ptr %85, align 16
  %.sroa.235.0.copyload = load double, ptr %.sroa.2140.0..sroa_idx, align 8, !tbaa !5
  %234 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %233, double %.sroa.034.0.copyload, double %.sroa.235.0.copyload)
  %235 = extractvalue { double, double } %234, 0
  store double %235, ptr %34, align 16
  %236 = getelementptr inbounds i8, ptr %34, i64 8
  %237 = extractvalue { double, double } %234, 1
  store double %237, ptr %236, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %36) #7
  %238 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %235, double %237)
  %239 = extractvalue { double, double } %238, 0
  %240 = extractvalue { double, double } %238, 1
  %241 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %235, double %237)
  %242 = extractvalue { double, double } %241, 0
  %243 = extractvalue { double, double } %241, 1
  %244 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %235, double %237)
  %245 = extractvalue { double, double } %244, 0
  %246 = extractvalue { double, double } %244, 1
  %247 = call { double, double } @_ZN3JPH12ClosestPoint25GetClosestPointOnTriangleILb0EEENS_4Vec3ES2_S2_S2_Rj(double %239, double %240, double %242, double %243, double %245, double %246, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %248 = extractvalue { double, double } %247, 0
  store double %248, ptr %36, align 16
  %249 = getelementptr inbounds i8, ptr %36, i64 8
  %250 = extractvalue { double, double } %247, 1
  store double %250, ptr %249, align 8
  %251 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %36)
  %252 = extractvalue { double, double } %251, 0
  %253 = extractvalue { double, double } %251, 1
  %.sroa.015.0.copyload = load double, ptr %36, align 16
  %.sroa.216.0.copyload = load double, ptr %249, align 8, !tbaa !5
  %254 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %34, double %.sroa.015.0.copyload, double %.sroa.216.0.copyload)
  %255 = extractvalue { double, double } %254, 0
  %256 = extractvalue { double, double } %254, 1
  %.sroa.013.0.copyload = load double, ptr %10, align 16
  %.sroa.214.0.copyload = load double, ptr %47, align 8, !tbaa !5
  %.sroa.011.0.copyload = load double, ptr %12, align 16
  %.sroa.212.0.copyload = load double, ptr %55, align 8, !tbaa !5
  %.sroa.09.0.copyload = load double, ptr %14, align 16
  %.sroa.210.0.copyload = load double, ptr %63, align 8, !tbaa !5
  %.sroa.0.0.copyload = load double, ptr %16, align 16
  %.sroa.2.0.copyload = load double, ptr %79, align 8, !tbaa !5
  %257 = load float, ptr %28, align 4, !tbaa !26
  store double %255, ptr %37, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %37, i64 8
  store double %256, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !5
  store double %255, ptr %38, align 16
  %.sroa.5.0..sroa_idx19 = getelementptr inbounds i8, ptr %38, i64 8
  store double %256, ptr %.sroa.5.0..sroa_idx19, align 8, !tbaa !5
  store double %252, ptr %39, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %39, i64 8
  store double %253, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !5
  call void @_ZN3JPH21CastSphereVsTriangles29AddHitWithActiveEdgeDetectionENS_4Vec3ES1_S1_bS1_hRKNS_10SubShapeIDEfS1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(100) %0, double %.sroa.013.0.copyload, double %.sroa.214.0.copyload, double %.sroa.011.0.copyload, double %.sroa.212.0.copyload, double %.sroa.09.0.copyload, double %.sroa.210.0.copyload, i1 noundef zeroext %87, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, i8 noundef zeroext %7, ptr noundef nonnull align 4 dereferenceable(4) %8, float noundef %257, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %37, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %38, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %39)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #7
  br label %258

258:                                              ; preds = %232, %226
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #7
  br label %259

259:                                              ; preds = %131, %258, %83, %.critedge193, %9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  ret void
}

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH12ClosestPoint25GetClosestPointOnTriangleILb0EEENS_4Vec3ES2_S2_S2_Rj(double, double, double, double, double, double, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH12ClosestPoint25GetBaryCentricCoordinatesENS_4Vec3ES1_S1_RfS2_S2_(double, double, double, double, double, double, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH9RaySphereENS_4Vec3ES0_S0_f(double, double, double, double, double, double, float noundef) local_unnamed_addr #6

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #6 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 = { 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 = { 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 #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"="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 #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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 96}
!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 = !{!9, !12, i64 40}
!17 = !{!18, !22, i64 32}
!18 = !{!"_ZTSN3JPH17ShapeCastSettingsE", !19, i64 0, !22, i64 32, !22, i64 33, !23, i64 34, !23, i64 35}
!19 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !20, i64 0, !21, i64 1, !11, i64 4, !11, i64 8, !10, i64 16}
!20 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !6, i64 0}
!21 = !{!"_ZTSN3JPH17ECollectFacesModeE", !6, i64 0}
!22 = !{!"_ZTSN3JPH13EBackFaceModeE", !6, i64 0}
!23 = !{!"bool", !6, i64 0}
!24 = !{!9, !11, i64 32}
!25 = !{!9, !12, i64 88}
!26 = !{!11, !11, i64 0}
!27 = !{i64 2158114528}


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