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

; 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::TriangleConvexSupport" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::EPAPenetrationDepth" = type { %"class.JPH::GJKClosestPoint", float, [12 x i8] }
%"class.JPH::GJKClosestPoint" = type <{ [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], i32, [12 x i8] }>
%"class.JPH::ShapeCastResult" = type <{ %"class.JPH::CollideShapeResult", float, i8, [11 x i8] }>
%"class.JPH::CollideShapeResult" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, %"class.JPH::SubShapeID", %"class.JPH::SubShapeID", %"class.JPH::BodyID", %"class.JPH::StaticArray", %"class.JPH::StaticArray" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::StaticArray" = type { i32, [12 x i8], [32 x %"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage"] }
%"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage" = type { [16 x i8] }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::CastConvexVsTriangles" = type <{ ptr, ptr, ptr, [8 x i8], %"class.JPH::Vec3", %"class.JPH::SubShapeIDCreator", ptr, %"class.JPH::ConvexShape::SupportBuffer", ptr, float, [4 x i8] }>
%"class.JPH::SubShapeIDCreator" = type { %"class.JPH::SubShapeID", i32 }
%"class.JPH::ConvexShape::SupportBuffer" = type { [4160 x i8] }
%"struct.JPH::ShapeCastT" = type { ptr, %"class.JPH::Vec3", %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::AABox" }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"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" }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH21CastConvexVsTriangles4CastENS_4Vec3ES1_S1_hRKNS_10SubShapeIDE(ptr noundef nonnull align 16 dereferenceable(4236) %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) #2 align 2 personality ptr @__gxx_personality_v0 {
  %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 i8, align 1
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca i32, align 4
  %31 = alloca %"struct.JPH::TriangleConvexSupport", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca i32, align 4
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::EPAPenetrationDepth", align 16
  %38 = alloca float, align 4
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %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 %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %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 %"class.JPH::ShapeCastResult", align 16
  %60 = alloca %"class.JPH::Vec3", align 16
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = alloca %"class.JPH::BodyID", align 4
  %64 = alloca ptr, align 8
  %65 = alloca i32, align 4
  %66 = alloca %"class.JPH::Mat44", align 16
  %67 = alloca %"class.JPH::Vec3", align 16
  %68 = alloca %"class.JPH::Vec3", align 16
  %69 = alloca %"class.JPH::Vec3", align 16
  %70 = alloca %"class.JPH::Vec3", align 16
  %71 = alloca %"class.JPH::SubShapeID", 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::Mat44", align 16
  %76 = alloca %"class.JPH::Vec3", align 16
  %77 = alloca ptr, align 8
  %78 = alloca ptr, align 8
  %79 = alloca ptr, align 8
  %80 = alloca ptr, align 8
  %81 = alloca %"class.JPH::Vec3", align 16
  %82 = alloca %"class.JPH::Vec3", align 16
  %83 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  store double %1, ptr %83, align 16
  %84 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  store double %2, ptr %84, align 8
  %85 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %3, ptr %85, align 16
  %86 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %4, ptr %86, align 8
  %87 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %5, ptr %87, align 16
  %88 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %6, ptr %88, 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
  %89 = load ptr, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #11
  %90 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !10
  %91 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %92 = load double, ptr %91, align 16
  %93 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %94 = load double, ptr %93, align 8
  %95 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %90, double %92, double %94)
  %96 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %97 = getelementptr inbounds %union.anon, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds { double, double }, ptr %97, i32 0, i32 0
  %99 = extractvalue { double, double } %95, 0
  store double %99, ptr %98, align 16
  %100 = getelementptr inbounds { double, double }, ptr %97, i32 0, i32 1
  %101 = extractvalue { double, double } %95, 1
  store double %101, ptr %100, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #11
  %102 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !10
  %103 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %104 = load double, ptr %103, align 16
  %105 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %106 = load double, ptr %105, align 8
  %107 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %102, double %104, double %106)
  %108 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %109 = getelementptr inbounds %union.anon, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 0
  %111 = extractvalue { double, double } %107, 0
  store double %111, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 1
  %113 = extractvalue { double, double } %107, 1
  store double %113, ptr %112, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #11
  %114 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !10
  %115 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %116 = load double, ptr %115, align 16
  %117 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %118 = load double, ptr %117, align 8
  %119 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %114, double %116, double %118)
  %120 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %121 = getelementptr inbounds %union.anon, ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds { double, double }, ptr %121, i32 0, i32 0
  %123 = extractvalue { double, double } %119, 0
  store double %123, ptr %122, align 16
  %124 = getelementptr inbounds { double, double }, ptr %121, i32 0, i32 1
  %125 = extractvalue { double, double } %119, 1
  store double %125, ptr %124, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #11
  %126 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 9
  %127 = load float, ptr %126, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  %128 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %129 = load double, ptr %128, align 16
  %130 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %131 = load double, ptr %130, align 8
  %132 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %129, double %131)
  %133 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %134 = getelementptr inbounds %union.anon, ptr %133, i32 0, i32 0
  %135 = getelementptr inbounds { double, double }, ptr %134, i32 0, i32 0
  %136 = extractvalue { double, double } %132, 0
  store double %136, ptr %135, align 16
  %137 = getelementptr inbounds { double, double }, ptr %134, i32 0, i32 1
  %138 = extractvalue { double, double } %132, 1
  store double %138, ptr %137, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  %139 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %140 = load double, ptr %139, align 16
  %141 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %142 = load double, ptr %141, align 8
  %143 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %140, double %142)
  %144 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %145 = getelementptr inbounds %union.anon, ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds { double, double }, ptr %145, i32 0, i32 0
  %147 = extractvalue { double, double } %143, 0
  store double %147, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %145, i32 0, i32 1
  %149 = extractvalue { double, double } %143, 1
  store double %149, ptr %148, align 8
  %150 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %151 = load double, ptr %150, align 16
  %152 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %153 = load double, ptr %152, align 8
  %154 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %151, double %153)
  %155 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %156 = getelementptr inbounds %union.anon, ptr %155, i32 0, i32 0
  %157 = getelementptr inbounds { double, double }, ptr %156, i32 0, i32 0
  %158 = extractvalue { double, double } %154, 0
  store double %158, ptr %157, align 16
  %159 = getelementptr inbounds { double, double }, ptr %156, i32 0, i32 1
  %160 = extractvalue { double, double } %154, 1
  store double %160, ptr %159, align 8
  %161 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %162 = load double, ptr %161, align 16
  %163 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %164 = load double, ptr %163, align 8
  %165 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %127, double %162, double %164)
  %166 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %167 = getelementptr inbounds %union.anon, ptr %166, i32 0, i32 0
  %168 = getelementptr inbounds { double, double }, ptr %167, i32 0, i32 0
  %169 = extractvalue { double, double } %165, 0
  store double %169, ptr %168, align 16
  %170 = getelementptr inbounds { double, double }, ptr %167, i32 0, i32 1
  %171 = extractvalue { double, double } %165, 1
  store double %171, ptr %170, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #11
  %172 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 0
  %173 = load ptr, ptr %172, align 16, !tbaa !19
  %174 = getelementptr inbounds %"struct.JPH::ShapeCastT", ptr %173, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %174, i64 16, i1 false), !tbaa.struct !10
  %175 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %176 = load double, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %178 = load double, ptr %177, align 8
  %179 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %22, double %176, double %178)
  %180 = fcmp ogt float %179, 0.000000e+00
  %181 = zext i1 %180 to i8
  store i8 %181, ptr %28, align 1, !tbaa !20
  %182 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !22
  %184 = getelementptr inbounds %"class.JPH::ShapeCastSettings", ptr %183, i32 0, i32 1
  %185 = load i8, ptr %184, align 16, !tbaa !23
  %186 = icmp eq i8 %185, 0
  br i1 %186, label %187, label %191

187:                                              ; preds = %9
  %188 = load i8, ptr %28, align 1, !tbaa !20, !range !29, !noundef !30
  %189 = trunc i8 %188 to i1
  br i1 %189, label %190, label %191

190:                                              ; preds = %187
  store i32 1, ptr %30, align 4
  br label %590

191:                                              ; preds = %187, %9
  call void @llvm.lifetime.start.p0(i64 48, ptr %31) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !10
  %192 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %193 = load double, ptr %192, align 16
  %194 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %195 = load double, ptr %194, align 8
  %196 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %197 = load double, ptr %196, align 16
  %198 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %199 = load double, ptr %198, align 8
  %200 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %201 = load double, ptr %200, align 16
  %202 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %203 = load double, ptr %202, align 8
  call void @_ZN3JPH21TriangleConvexSupportC2ENS_4Vec3ES1_S1_(ptr noundef nonnull align 16 dereferenceable(48) %31, double %193, double %195, double %197, double %199, double %201, double %203)
  %204 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 8
  %205 = load ptr, ptr %204, align 16, !tbaa !31
  %206 = icmp eq ptr %205, null
  br i1 %206, label %207, label %233

207:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #11
  %208 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 1
  %209 = load ptr, ptr %208, align 8, !tbaa !22
  %210 = getelementptr inbounds %"class.JPH::ShapeCastSettings", ptr %209, i32 0, i32 3
  %211 = load i8, ptr %210, align 2, !tbaa !32, !range !29, !noundef !30
  %212 = trunc i8 %211 to i1
  %213 = zext i1 %212 to i64
  %214 = select i1 %212, i32 0, i32 2
  store i32 %214, ptr %35, align 4, !tbaa !33
  %215 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 0
  %216 = load ptr, ptr %215, align 16, !tbaa !19
  %217 = getelementptr inbounds %"struct.JPH::ShapeCastT", ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %217, align 16, !tbaa !35
  %219 = load i32, ptr %35, align 4, !tbaa !33
  %220 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 7
  %221 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 0
  %222 = load ptr, ptr %221, align 16, !tbaa !19
  %223 = getelementptr inbounds %"struct.JPH::ShapeCastT", ptr %222, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %223, i64 16, i1 false), !tbaa.struct !10
  %224 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %225 = load double, ptr %224, align 16
  %226 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %227 = load double, ptr %226, align 8
  %228 = load ptr, ptr %218, align 8, !tbaa !39
  %229 = getelementptr inbounds ptr, ptr %228, i64 35
  %230 = load ptr, ptr %229, align 8
  %231 = call noundef ptr %230(ptr noundef nonnull align 8 dereferenceable(44) %218, i32 noundef %219, ptr noundef nonnull align 16 dereferenceable(4160) %220, double %225, double %227)
  %232 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 8
  store ptr %231, ptr %232, align 16, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #11
  br label %233

233:                                              ; preds = %207, %191
  call void @llvm.lifetime.start.p0(i64 224, ptr %37) #11
  call void @_ZN3JPH19EPAPenetrationDepthC2Ev(ptr noundef nonnull align 16 dereferenceable(212) %37) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #11
  %234 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 6
  %235 = load ptr, ptr %234, align 8, !tbaa !41
  %236 = call noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %235)
  store float %236, ptr %38, align 4, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #11
  %237 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 0
  %238 = load ptr, ptr %237, align 16, !tbaa !19
  %239 = getelementptr inbounds %"struct.JPH::ShapeCastT", ptr %238, i32 0, i32 2
  %240 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 0
  %241 = load ptr, ptr %240, align 16, !tbaa !19
  %242 = getelementptr inbounds %"struct.JPH::ShapeCastT", ptr %241, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %242, i64 16, i1 false), !tbaa.struct !10
  %243 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 1
  %244 = load ptr, ptr %243, align 8, !tbaa !22
  %245 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %244, i32 0, i32 2
  %246 = load float, ptr %245, align 4, !tbaa !43
  %247 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 1
  %248 = load ptr, ptr %247, align 8, !tbaa !22
  %249 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %248, i32 0, i32 3
  %250 = load float, ptr %249, align 8, !tbaa !44
  %251 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 8
  %252 = load ptr, ptr %251, align 16, !tbaa !31
  %253 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 8
  %254 = load ptr, ptr %253, align 16, !tbaa !31
  %255 = load ptr, ptr %254, align 8, !tbaa !39
  %256 = getelementptr inbounds ptr, ptr %255, i64 3
  %257 = load ptr, ptr %256, align 8
  %258 = call noundef float %257(ptr noundef nonnull align 8 dereferenceable(8) %254)
  %259 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 1
  %260 = load ptr, ptr %259, align 8, !tbaa !22
  %261 = getelementptr inbounds %"class.JPH::ShapeCastSettings", ptr %260, i32 0, i32 4
  %262 = load i8, ptr %261, align 1, !tbaa !45, !range !29, !noundef !30
  %263 = trunc i8 %262 to i1
  %264 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %265 = load double, ptr %264, align 16
  %266 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %267 = load double, ptr %266, align 8
  %268 = call noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth9CastShapeINS_11ConvexShape7SupportENS_21TriangleConvexSupportEEEbRKNS_5Mat44ENS_4Vec3EffRKT_RKT0_ffbRfRS8_SG_SG_(ptr noundef nonnull align 16 dereferenceable(212) %37, ptr noundef nonnull align 16 dereferenceable(64) %239, double %265, double %267, float noundef %246, float noundef %250, ptr noundef nonnull align 8 dereferenceable(8) %252, ptr noundef nonnull align 16 dereferenceable(48) %31, float noundef %258, float noundef 0.000000e+00, i1 noundef zeroext %263, ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 16 dereferenceable(16) %39, ptr noundef nonnull align 16 dereferenceable(16) %40, ptr noundef nonnull align 16 dereferenceable(16) %41)
  br i1 %268, label %269, label %588

269:                                              ; preds = %233
  %270 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 1
  %271 = load ptr, ptr %270, align 8, !tbaa !22
  %272 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %271, i32 0, i32 0
  %273 = load i8, ptr %272, align 16, !tbaa !46
  %274 = icmp eq i8 %273, 0
  br i1 %274, label %275, label %332

275:                                              ; preds = %269
  %276 = load i8, ptr %14, align 1, !tbaa !9
  %277 = zext i8 %276 to i32
  %278 = icmp ne i32 %277, 7
  br i1 %278, label %279, label %332

279:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #11
  %280 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 2
  %281 = load ptr, ptr %280, align 16, !tbaa !47
  %282 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 1
  %283 = load ptr, ptr %282, align 8, !tbaa !22
  %284 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %283, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %284, i64 16, i1 false), !tbaa.struct !10
  %285 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %286 = load double, ptr %285, align 16
  %287 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %288 = load double, ptr %287, align 8
  %289 = call { double, double } @_ZNK3JPH5Mat4421Multiply3x3TransposedENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %281, double %286, double %288)
  %290 = getelementptr inbounds %"class.JPH::Vec3", ptr %43, i32 0, i32 0
  %291 = getelementptr inbounds %union.anon, ptr %290, i32 0, i32 0
  %292 = getelementptr inbounds { double, double }, ptr %291, i32 0, i32 0
  %293 = extractvalue { double, double } %289, 0
  store double %293, ptr %292, align 16
  %294 = getelementptr inbounds { double, double }, ptr %291, i32 0, i32 1
  %295 = extractvalue { double, double } %289, 1
  store double %295, ptr %294, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %46, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %47, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %48, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !10
  %296 = load i8, ptr %28, align 1, !tbaa !20, !range !29, !noundef !30
  %297 = trunc i8 %296 to i1
  br i1 %297, label %298, label %299

298:                                              ; preds = %279
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %49, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !10
  br label %307

299:                                              ; preds = %279
  %300 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  %301 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %302 = getelementptr inbounds %union.anon, ptr %301, i32 0, i32 0
  %303 = getelementptr inbounds { double, double }, ptr %302, i32 0, i32 0
  %304 = extractvalue { double, double } %300, 0
  store double %304, ptr %303, align 16
  %305 = getelementptr inbounds { double, double }, ptr %302, i32 0, i32 1
  %306 = extractvalue { double, double } %300, 1
  store double %306, ptr %305, align 8
  br label %307

307:                                              ; preds = %299, %298
  %308 = load i8, ptr %14, align 1, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %50, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !10
  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 %43, i64 16, i1 false), !tbaa.struct !10
  %309 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %310 = load double, ptr %309, align 16
  %311 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %312 = load double, ptr %311, align 8
  %313 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %314 = load double, ptr %313, align 16
  %315 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %316 = load double, ptr %315, align 8
  %317 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %318 = load double, ptr %317, align 16
  %319 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %320 = load double, ptr %319, align 8
  %321 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %322 = load double, ptr %321, align 16
  %323 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %324 = load double, ptr %323, align 8
  %325 = call { double, double } @_ZN3JPH11ActiveEdgesL9FixNormalENS_4Vec3ES1_S1_S1_hS1_S1_S1_(double %310, double %312, double %314, double %316, double %318, double %320, double %322, double %324, i8 noundef zeroext %308, ptr noundef byval(%"class.JPH::Vec3") align 16 %50, ptr noundef byval(%"class.JPH::Vec3") align 16 %51, ptr noundef byval(%"class.JPH::Vec3") align 16 %52)
  %326 = getelementptr inbounds %"class.JPH::Vec3", ptr %45, i32 0, i32 0
  %327 = getelementptr inbounds %union.anon, ptr %326, i32 0, i32 0
  %328 = getelementptr inbounds { double, double }, ptr %327, i32 0, i32 0
  %329 = extractvalue { double, double } %325, 0
  store double %329, ptr %328, align 16
  %330 = getelementptr inbounds { double, double }, ptr %327, i32 0, i32 1
  %331 = extractvalue { double, double } %325, 1
  store double %331, ptr %330, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %45, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #11
  br label %332

332:                                              ; preds = %307, %275, %269
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #11
  %333 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 2
  %334 = load ptr, ptr %333, align 16, !tbaa !47
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 16 %39, i64 16, i1 false), !tbaa.struct !10
  %335 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %336 = load double, ptr %335, align 16
  %337 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %338 = load double, ptr %337, align 8
  %339 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %334, double %336, double %338)
  %340 = getelementptr inbounds %"class.JPH::Vec3", ptr %53, 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
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %53, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #11
  %346 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 2
  %347 = load ptr, ptr %346, align 16, !tbaa !47
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !10
  %348 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %349 = load double, ptr %348, align 16
  %350 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %351 = load double, ptr %350, align 8
  %352 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %347, double %349, double %351)
  %353 = getelementptr inbounds %"class.JPH::Vec3", ptr %55, i32 0, i32 0
  %354 = getelementptr inbounds %union.anon, ptr %353, i32 0, i32 0
  %355 = getelementptr inbounds { double, double }, ptr %354, i32 0, i32 0
  %356 = extractvalue { double, double } %352, 0
  store double %356, ptr %355, align 16
  %357 = getelementptr inbounds { double, double }, ptr %354, i32 0, i32 1
  %358 = extractvalue { double, double } %352, 1
  store double %358, ptr %357, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %55, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #11
  %359 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 2
  %360 = load ptr, ptr %359, align 16, !tbaa !47
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !10
  %361 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %362 = load double, ptr %361, align 16
  %363 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %364 = load double, ptr %363, align 8
  %365 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %360, double %362, double %364)
  %366 = getelementptr inbounds %"class.JPH::Vec3", ptr %57, i32 0, i32 0
  %367 = getelementptr inbounds %union.anon, ptr %366, i32 0, i32 0
  %368 = getelementptr inbounds { double, double }, ptr %367, i32 0, i32 0
  %369 = extractvalue { double, double } %365, 0
  store double %369, ptr %368, align 16
  %370 = getelementptr inbounds { double, double }, ptr %367, i32 0, i32 1
  %371 = extractvalue { double, double } %365, 1
  store double %371, ptr %370, align 8
  call void @llvm.lifetime.start.p0(i64 1136, ptr %59) #11
  %372 = load float, ptr %38, align 4, !tbaa !42
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %60, ptr align 16 %39, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %61, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %62, ptr align 16 %57, i64 16, i1 false), !tbaa.struct !10
  %373 = load i8, ptr %28, align 1, !tbaa !20, !range !29, !noundef !30
  %374 = trunc i8 %373 to i1
  %375 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 5
  %376 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %375)
  %377 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #11
  %378 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 6
  %379 = load ptr, ptr %378, align 8, !tbaa !41
  %380 = call noundef ptr @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE10GetContextEv(ptr noundef nonnull align 8 dereferenceable(24) %379)
  %381 = call i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef %380)
  %382 = getelementptr inbounds %"class.JPH::BodyID", ptr %63, i32 0, i32 0
  store i32 %381, ptr %382, align 4
  %383 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %384 = load double, ptr %383, align 16
  %385 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %386 = load double, ptr %385, align 8
  %387 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %388 = load double, ptr %387, align 16
  %389 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %390 = load double, ptr %389, align 8
  %391 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %392 = load double, ptr %391, align 16
  %393 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %394 = load double, ptr %393, align 8
  call void @_ZN3JPH15ShapeCastResultC2EfNS_4Vec3ES1_S1_bRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1125) %59, float noundef %372, double %384, double %386, double %388, double %390, double %392, double %394, i1 noundef zeroext %374, ptr noundef nonnull align 4 dereferenceable(4) %376, ptr noundef nonnull align 4 dereferenceable(4) %377, ptr noundef nonnull align 4 dereferenceable(4) %63)
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #11
  %395 = load float, ptr %38, align 4, !tbaa !42
  %396 = fcmp oeq float %395, 0.000000e+00
  br i1 %396, label %397, label %411

397:                                              ; preds = %332
  %398 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %59, i32 0, i32 3
  %399 = load float, ptr %398, align 16, !tbaa !48
  %400 = fneg float %399
  %401 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 6
  %402 = load ptr, ptr %401, align 8, !tbaa !41
  %403 = invoke noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %402)
          to label %404 unwind label %407

404:                                              ; preds = %397
  %405 = fcmp oge float %400, %403
  br i1 %405, label %406, label %411

406:                                              ; preds = %404
  store i32 1, ptr %30, align 4
  br label %584

407:                                              ; preds = %577, %397
  %408 = landingpad { ptr, i32 }
          cleanup
  %409 = extractvalue { ptr, i32 } %408, 0
  store ptr %409, ptr %64, align 8
  %410 = extractvalue { ptr, i32 } %408, 1
  store i32 %410, ptr %65, align 4
  br label %587

411:                                              ; preds = %404, %332
  %412 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 1
  %413 = load ptr, ptr %412, align 8, !tbaa !22
  %414 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %413, i32 0, i32 1
  %415 = load i8, ptr %414, align 1, !tbaa !52
  %416 = icmp eq i8 %415, 0
  br i1 %416, label %417, label %577

417:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 64, ptr %66) #11
  %418 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 0
  %419 = load ptr, ptr %418, align 16, !tbaa !19
  %420 = getelementptr inbounds %"struct.JPH::ShapeCastT", ptr %419, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 16 %420, i64 64, i1 false), !tbaa.struct !53
  call void @llvm.lifetime.start.p0(i64 16, ptr %68) #11
  %421 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %66)
          to label %422 unwind label %523

422:                                              ; preds = %417
  %423 = getelementptr inbounds %"class.JPH::Vec3", ptr %68, i32 0, i32 0
  %424 = getelementptr inbounds %union.anon, ptr %423, i32 0, i32 0
  %425 = getelementptr inbounds { double, double }, ptr %424, i32 0, i32 0
  %426 = extractvalue { double, double } %421, 0
  store double %426, ptr %425, align 16
  %427 = getelementptr inbounds { double, double }, ptr %424, i32 0, i32 1
  %428 = extractvalue { double, double } %421, 1
  store double %428, ptr %427, align 8
  %429 = load float, ptr %38, align 4, !tbaa !42
  %430 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 0
  %431 = load ptr, ptr %430, align 16, !tbaa !19
  %432 = getelementptr inbounds %"struct.JPH::ShapeCastT", ptr %431, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %70, ptr align 16 %432, i64 16, i1 false), !tbaa.struct !10
  %433 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 0
  %434 = load double, ptr %433, align 16
  %435 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 1
  %436 = load double, ptr %435, align 8
  %437 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %429, double %434, double %436)
          to label %438 unwind label %523

438:                                              ; preds = %422
  %439 = getelementptr inbounds %"class.JPH::Vec3", ptr %69, i32 0, i32 0
  %440 = getelementptr inbounds %union.anon, ptr %439, i32 0, i32 0
  %441 = getelementptr inbounds { double, double }, ptr %440, i32 0, i32 0
  %442 = extractvalue { double, double } %437, 0
  store double %442, ptr %441, align 16
  %443 = getelementptr inbounds { double, double }, ptr %440, i32 0, i32 1
  %444 = extractvalue { double, double } %437, 1
  store double %444, ptr %443, align 8
  %445 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 0
  %446 = load double, ptr %445, align 16
  %447 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 1
  %448 = load double, ptr %447, align 8
  %449 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %68, double %446, double %448)
          to label %450 unwind label %523

450:                                              ; preds = %438
  %451 = getelementptr inbounds %"class.JPH::Vec3", ptr %67, i32 0, i32 0
  %452 = getelementptr inbounds %union.anon, ptr %451, i32 0, i32 0
  %453 = getelementptr inbounds { double, double }, ptr %452, i32 0, i32 0
  %454 = extractvalue { double, double } %449, 0
  store double %454, ptr %453, align 16
  %455 = getelementptr inbounds { double, double }, ptr %452, i32 0, i32 1
  %456 = extractvalue { double, double } %449, 1
  store double %456, ptr %455, align 8
  %457 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %458 = load double, ptr %457, align 16
  %459 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %460 = load double, ptr %459, align 8
  invoke void @_ZN3JPH5Mat4414SetTranslationENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %66, double %458, double %460)
          to label %461 unwind label %523

461:                                              ; preds = %450
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #11
  %462 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 0
  %463 = load ptr, ptr %462, align 16, !tbaa !19
  %464 = getelementptr inbounds %"struct.JPH::ShapeCastT", ptr %463, i32 0, i32 0
  %465 = load ptr, ptr %464, align 16, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #11
  call void @llvm.memset.p0.i64(ptr align 4 %71, i8 0, i64 4, i1 false)
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %71) #11
  %466 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %41)
          to label %467 unwind label %527

467:                                              ; preds = %461
  %468 = getelementptr inbounds %"class.JPH::Vec3", ptr %73, i32 0, i32 0
  %469 = getelementptr inbounds %union.anon, ptr %468, i32 0, i32 0
  %470 = getelementptr inbounds { double, double }, ptr %469, i32 0, i32 0
  %471 = extractvalue { double, double } %466, 0
  store double %471, ptr %470, align 16
  %472 = getelementptr inbounds { double, double }, ptr %469, i32 0, i32 1
  %473 = extractvalue { double, double } %466, 1
  store double %473, ptr %472, align 8
  %474 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %475 = load double, ptr %474, align 16
  %476 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %477 = load double, ptr %476, align 8
  %478 = invoke { double, double } @_ZNK3JPH5Mat4421Multiply3x3TransposedENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %66, double %475, double %477)
          to label %479 unwind label %527

479:                                              ; preds = %467
  %480 = getelementptr inbounds %"class.JPH::Vec3", ptr %72, i32 0, i32 0
  %481 = getelementptr inbounds %union.anon, ptr %480, i32 0, i32 0
  %482 = getelementptr inbounds { double, double }, ptr %481, i32 0, i32 0
  %483 = extractvalue { double, double } %478, 0
  store double %483, ptr %482, align 16
  %484 = getelementptr inbounds { double, double }, ptr %481, i32 0, i32 1
  %485 = extractvalue { double, double } %478, 1
  store double %485, ptr %484, align 8
  %486 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 0
  %487 = load ptr, ptr %486, align 16, !tbaa !19
  %488 = getelementptr inbounds %"struct.JPH::ShapeCastT", ptr %487, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %74, ptr align 16 %488, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.start.p0(i64 64, ptr %75) #11
  %489 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 2
  %490 = load ptr, ptr %489, align 16, !tbaa !47
  invoke void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %75, ptr noundef nonnull align 16 dereferenceable(64) %490, ptr noundef nonnull align 16 dereferenceable(64) %66)
          to label %491 unwind label %531

491:                                              ; preds = %479
  %492 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %59, i32 0, i32 7
  %493 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 0
  %494 = load double, ptr %493, align 16
  %495 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 1
  %496 = load double, ptr %495, align 8
  %497 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 0
  %498 = load double, ptr %497, align 16
  %499 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 1
  %500 = load double, ptr %499, align 8
  %501 = load ptr, ptr %465, align 8, !tbaa !39
  %502 = getelementptr inbounds ptr, ptr %501, i64 12
  %503 = load ptr, ptr %502, align 8
  invoke void %503(ptr noundef nonnull align 8 dereferenceable(26) %465, ptr noundef nonnull align 4 dereferenceable(4) %71, double %494, double %496, double %498, double %500, ptr noundef nonnull align 16 dereferenceable(64) %75, ptr noundef nonnull align 16 dereferenceable(528) %492)
          to label %504 unwind label %531

504:                                              ; preds = %491
  call void @llvm.lifetime.end.p0(i64 64, ptr %75) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %76, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !10
  %505 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %59, i32 0, i32 8
  %506 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %507 = load double, ptr %506, align 16
  %508 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %509 = load double, ptr %508, align 8
  invoke void @_ZNK3JPH21TriangleConvexSupport17GetSupportingFaceINS_11StaticArrayINS_4Vec3ELj32EEEEEvS3_RT_(ptr noundef nonnull align 16 dereferenceable(48) %31, double %507, double %509, ptr noundef nonnull align 16 dereferenceable(528) %505)
          to label %510 unwind label %536

510:                                              ; preds = %504
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #11
  %511 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %59, i32 0, i32 8
  store ptr %511, ptr %77, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #11
  %512 = load ptr, ptr %77, align 8, !tbaa !5
  %513 = invoke noundef ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE5beginEv(ptr noundef nonnull align 16 dereferenceable(528) %512)
          to label %514 unwind label %540

514:                                              ; preds = %510
  store ptr %513, ptr %78, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #11
  %515 = load ptr, ptr %77, align 8, !tbaa !5
  %516 = invoke noundef ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE3endEv(ptr noundef nonnull align 16 dereferenceable(528) %515)
          to label %517 unwind label %544

517:                                              ; preds = %514
  store ptr %516, ptr %79, align 8, !tbaa !5
  br label %518

518:                                              ; preds = %566, %517
  %519 = load ptr, ptr %78, align 8, !tbaa !5
  %520 = load ptr, ptr %79, align 8, !tbaa !5
  %521 = icmp ne ptr %519, %520
  br i1 %521, label %548, label %522

522:                                              ; preds = %518
  store i32 2, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #11
  br label %575

523:                                              ; preds = %450, %438, %422, %417
  %524 = landingpad { ptr, i32 }
          cleanup
  %525 = extractvalue { ptr, i32 } %524, 0
  store ptr %525, ptr %64, align 8
  %526 = extractvalue { ptr, i32 } %524, 1
  store i32 %526, ptr %65, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #11
  br label %576

527:                                              ; preds = %467, %461
  %528 = landingpad { ptr, i32 }
          cleanup
  %529 = extractvalue { ptr, i32 } %528, 0
  store ptr %529, ptr %64, align 8
  %530 = extractvalue { ptr, i32 } %528, 1
  store i32 %530, ptr %65, align 4
  br label %535

531:                                              ; preds = %491, %479
  %532 = landingpad { ptr, i32 }
          cleanup
  %533 = extractvalue { ptr, i32 } %532, 0
  store ptr %533, ptr %64, align 8
  %534 = extractvalue { ptr, i32 } %532, 1
  store i32 %534, ptr %65, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %75) #11
  br label %535

535:                                              ; preds = %531, %527
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #11
  br label %576

536:                                              ; preds = %504
  %537 = landingpad { ptr, i32 }
          cleanup
  %538 = extractvalue { ptr, i32 } %537, 0
  store ptr %538, ptr %64, align 8
  %539 = extractvalue { ptr, i32 } %537, 1
  store i32 %539, ptr %65, align 4
  br label %576

540:                                              ; preds = %510
  %541 = landingpad { ptr, i32 }
          cleanup
  %542 = extractvalue { ptr, i32 } %541, 0
  store ptr %542, ptr %64, align 8
  %543 = extractvalue { ptr, i32 } %541, 1
  store i32 %543, ptr %65, align 4
  br label %574

544:                                              ; preds = %514
  %545 = landingpad { ptr, i32 }
          cleanup
  %546 = extractvalue { ptr, i32 } %545, 0
  store ptr %546, ptr %64, align 8
  %547 = extractvalue { ptr, i32 } %545, 1
  store i32 %547, ptr %65, align 4
  br label %573

548:                                              ; preds = %518
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #11
  %549 = load ptr, ptr %78, align 8, !tbaa !5
  store ptr %549, ptr %80, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %81) #11
  %550 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 2
  %551 = load ptr, ptr %550, align 16, !tbaa !47
  %552 = load ptr, ptr %80, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %82, ptr align 16 %552, i64 16, i1 false), !tbaa.struct !10
  %553 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 0
  %554 = load double, ptr %553, align 16
  %555 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 1
  %556 = load double, ptr %555, align 8
  %557 = invoke { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %551, double %554, double %556)
          to label %558 unwind label %569

558:                                              ; preds = %548
  %559 = getelementptr inbounds %"class.JPH::Vec3", ptr %81, i32 0, i32 0
  %560 = getelementptr inbounds %union.anon, ptr %559, i32 0, i32 0
  %561 = getelementptr inbounds { double, double }, ptr %560, i32 0, i32 0
  %562 = extractvalue { double, double } %557, 0
  store double %562, ptr %561, align 16
  %563 = getelementptr inbounds { double, double }, ptr %560, i32 0, i32 1
  %564 = extractvalue { double, double } %557, 1
  store double %564, ptr %563, align 8
  %565 = load ptr, ptr %80, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %565, ptr align 16 %81, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %81) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #11
  br label %566

566:                                              ; preds = %558
  %567 = load ptr, ptr %78, align 8, !tbaa !5
  %568 = getelementptr inbounds %"class.JPH::Vec3", ptr %567, i32 1
  store ptr %568, ptr %78, align 8, !tbaa !5
  br label %518

569:                                              ; preds = %548
  %570 = landingpad { ptr, i32 }
          cleanup
  %571 = extractvalue { ptr, i32 } %570, 0
  store ptr %571, ptr %64, align 8
  %572 = extractvalue { ptr, i32 } %570, 1
  store i32 %572, ptr %65, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %81) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #11
  br label %573

573:                                              ; preds = %569, %544
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #11
  br label %574

574:                                              ; preds = %573, %540
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #11
  br label %576

575:                                              ; preds = %522
  call void @llvm.lifetime.end.p0(i64 64, ptr %66) #11
  br label %577

576:                                              ; preds = %574, %536, %535, %523
  call void @llvm.lifetime.end.p0(i64 64, ptr %66) #11
  br label %587

577:                                              ; preds = %575, %411
  %578 = getelementptr inbounds %"class.JPH::CastConvexVsTriangles", ptr %89, i32 0, i32 6
  %579 = load ptr, ptr %578, align 8, !tbaa !41
  %580 = load ptr, ptr %579, align 8, !tbaa !39
  %581 = getelementptr inbounds ptr, ptr %580, i64 6
  %582 = load ptr, ptr %581, align 8
  invoke void %582(ptr noundef nonnull align 8 dereferenceable(24) %579, ptr noundef nonnull align 16 dereferenceable(1125) %59)
          to label %583 unwind label %407

583:                                              ; preds = %577
  store i32 0, ptr %30, align 4
  br label %584

584:                                              ; preds = %583, %406
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1125) %59) #11
  call void @llvm.lifetime.end.p0(i64 1136, ptr %59) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #11
  %585 = load i32, ptr %30, align 4
  switch i32 %585, label %589 [
    i32 0, label %586
  ]

586:                                              ; preds = %584
  br label %588

587:                                              ; preds = %576, %407
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1125) %59) #11
  call void @llvm.lifetime.end.p0(i64 1136, ptr %59) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 224, ptr %37) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #11
  br label %593

588:                                              ; preds = %586, %233
  store i32 0, ptr %30, align 4
  br label %589

589:                                              ; preds = %588, %584
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 224, ptr %37) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #11
  br label %590

590:                                              ; preds = %589, %190
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #11
  %591 = load i32, ptr %30, align 4
  switch i32 %591, label %598 [
    i32 0, label %592
    i32 1, label %592
  ]

592:                                              ; preds = %590, %590
  ret void

593:                                              ; preds = %587
  %594 = load ptr, ptr %64, align 8
  %595 = load i32, ptr %65, align 4
  %596 = insertvalue { ptr, i32 } poison, ptr %594, 0
  %597 = insertvalue { ptr, i32 } %596, i32 %595, 1
  resume { ptr, i32 } %597

598:                                              ; preds = %590
  unreachable
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH21TriangleConvexSupportC2ENS_4Vec3ES1_S1_(ptr noundef nonnull align 16 dereferenceable(48), double, double, double, double, double, double) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH19EPAPenetrationDepthC2Ev(ptr noundef nonnull align 16 dereferenceable(212)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth9CastShapeINS_11ConvexShape7SupportENS_21TriangleConvexSupportEEEbRKNS_5Mat44ENS_4Vec3EffRKT_RKT0_ffbRfRS8_SG_SG_(ptr noundef nonnull align 16 dereferenceable(212), ptr noundef nonnull align 16 dereferenceable(64), double, double, float noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 16 dereferenceable(48), float noundef, float noundef, i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef) #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE10GetContextEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH15ShapeCastResultC2EfNS_4Vec3ES1_S1_bRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1125), float noundef, double, double, double, double, double, double, i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4414SetTranslationENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) #7 align 2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #10 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH21TriangleConvexSupport17GetSupportingFaceINS_11StaticArrayINS_4Vec3ELj32EEEEEvS3_RT_(ptr noundef nonnull align 16 dereferenceable(48), double, double, ptr noundef nonnull align 16 dereferenceable(528)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE5beginEv(ptr noundef nonnull align 16 dereferenceable(528)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE3endEv(ptr noundef nonnull align 16 dereferenceable(528)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120)) unnamed_addr #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="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 #4 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 #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 = { 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 #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { alwaysinline mustprogress nounwind 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 #11 = { 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, !18, i64 4232}
!12 = !{!"_ZTSN3JPH21CastConvexVsTrianglesE", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 32, !14, i64 48, !6, i64 56, !17, i64 64, !6, i64 4224, !18, i64 4232}
!13 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!14 = !{!"_ZTSN3JPH17SubShapeIDCreatorE", !15, i64 0, !16, i64 4}
!15 = !{!"_ZTSN3JPH10SubShapeIDE", !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN3JPH11ConvexShape13SupportBufferE", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!12, !6, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!12, !6, i64 8}
!23 = !{!24, !28, i64 32}
!24 = !{!"_ZTSN3JPH17ShapeCastSettingsE", !25, i64 0, !28, i64 32, !28, i64 33, !21, i64 34, !21, i64 35}
!25 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !26, i64 0, !27, i64 1, !18, i64 4, !18, i64 8, !13, i64 16}
!26 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !7, i64 0}
!27 = !{!"_ZTSN3JPH17ECollectFacesModeE", !7, i64 0}
!28 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!12, !6, i64 4224}
!32 = !{!24, !21, i64 34}
!33 = !{!34, !34, i64 0}
!34 = !{!"_ZTSN3JPH11ConvexShape12ESupportModeE", !7, i64 0}
!35 = !{!36, !6, i64 0}
!36 = !{!"_ZTSN3JPH10ShapeCastTINS_4Vec3ENS_5Mat44ENS_9ShapeCastEEE", !6, i64 0, !13, i64 16, !37, i64 32, !13, i64 96, !38, i64 112}
!37 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!38 = !{!"_ZTSN3JPH5AABoxE", !13, i64 0, !13, i64 16}
!39 = !{!40, !40, i64 0}
!40 = !{!"vtable pointer", !8, i64 0}
!41 = !{!12, !6, i64 56}
!42 = !{!18, !18, i64 0}
!43 = !{!25, !18, i64 4}
!44 = !{!25, !18, i64 8}
!45 = !{!24, !21, i64 35}
!46 = !{!25, !26, i64 0}
!47 = !{!12, !6, i64 16}
!48 = !{!49, !18, i64 48}
!49 = !{!"_ZTSN3JPH18CollideShapeResultE", !13, i64 0, !13, i64 16, !13, i64 32, !18, i64 48, !15, i64 52, !15, i64 56, !50, i64 60, !51, i64 64, !51, i64 592}
!50 = !{!"_ZTSN3JPH6BodyIDE", !16, i64 0}
!51 = !{!"_ZTSN3JPH11StaticArrayINS_4Vec3ELj32EEE", !16, i64 0, !7, i64 16}
!52 = !{!25, !27, i64 1}
!53 = !{i64 0, i64 64, !9}


; 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> }
%"struct.JPH::TriangleConvexSupport" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::EPAPenetrationDepth" = type { %"class.JPH::GJKClosestPoint", float, [12 x i8] }
%"class.JPH::GJKClosestPoint" = type <{ [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], i32, [12 x i8] }>
%"class.JPH::ShapeCastResult" = type <{ %"class.JPH::CollideShapeResult", float, i8, [11 x i8] }>
%"class.JPH::CollideShapeResult" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, %"class.JPH::SubShapeID", %"class.JPH::SubShapeID", %"class.JPH::BodyID", %"class.JPH::StaticArray", %"class.JPH::StaticArray" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::StaticArray" = type { i32, [12 x i8], [32 x %"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage"] }
%"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage" = type { [16 x i8] }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH21CastConvexVsTriangles4CastENS_4Vec3ES1_S1_hRKNS_10SubShapeIDE(ptr noundef nonnull align 16 dereferenceable(4236) %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 #2 align 2 personality ptr @__gxx_personality_v0 {
  %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 %"struct.JPH::TriangleConvexSupport", align 16
  %15 = alloca %"class.JPH::EPAPenetrationDepth", align 16
  %16 = alloca float, align 4
  %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::ShapeCastResult", align 16
  %22 = alloca %"class.JPH::BodyID", align 4
  %23 = alloca %"class.JPH::Mat44", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::SubShapeID", align 4
  %26 = alloca %"class.JPH::Mat44", align 16
  %27 = getelementptr inbounds i8, ptr %0, i64 32
  %28 = tail call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %27, double %1, double %2)
  %29 = extractvalue { double, double } %28, 0
  %30 = extractvalue { double, double } %28, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #10
  %31 = tail call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %27, double %3, double %4)
  %32 = extractvalue { double, double } %31, 0
  store double %32, ptr %10, align 16
  %33 = getelementptr inbounds i8, ptr %10, i64 8
  %34 = extractvalue { double, double } %31, 1
  store double %34, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #10
  %35 = tail call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %27, double %5, double %6)
  %36 = extractvalue { double, double } %35, 0
  store double %36, ptr %11, align 16
  %37 = getelementptr inbounds i8, ptr %11, i64 8
  %38 = extractvalue { double, double } %35, 1
  store double %38, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #10
  %39 = getelementptr inbounds i8, ptr %0, i64 4232
  %40 = load float, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #10
  %41 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %29, double %30)
  %42 = extractvalue { double, double } %41, 0
  store double %42, ptr %13, align 16
  %43 = getelementptr inbounds i8, ptr %13, i64 8
  %44 = extractvalue { double, double } %41, 1
  store double %44, ptr %43, align 8
  %45 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %29, double %30)
  %46 = extractvalue { double, double } %45, 0
  %47 = extractvalue { double, double } %45, 1
  %48 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %46, double %47)
  %49 = extractvalue { double, double } %48, 0
  %50 = extractvalue { double, double } %48, 1
  %51 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %40, double %49, double %50)
  %52 = extractvalue { double, double } %51, 0
  store double %52, ptr %12, align 16
  %53 = getelementptr inbounds i8, ptr %12, i64 8
  %54 = extractvalue { double, double } %51, 1
  store double %54, ptr %53, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  %55 = load ptr, ptr %0, align 16, !tbaa !16
  %56 = getelementptr inbounds i8, ptr %55, i64 96
  %.sroa.068.0.copyload = load double, ptr %56, align 16
  %.sroa.269.0..sroa_idx = getelementptr inbounds i8, ptr %55, i64 104
  %.sroa.269.0.copyload = load double, ptr %.sroa.269.0..sroa_idx, align 8, !tbaa !17
  %57 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %.sroa.068.0.copyload, double %.sroa.269.0.copyload)
  %58 = fcmp ogt float %57, 0.000000e+00
  %59 = getelementptr inbounds i8, ptr %0, i64 8
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  %61 = getelementptr inbounds i8, ptr %60, i64 32
  %62 = load i8, ptr %61, align 16, !tbaa !19
  %63 = icmp eq i8 %62, 0
  %brmerge.not = and i1 %58, %63
  br i1 %brmerge.not, label %229, label %64

64:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #10
  %.sroa.063.0.copyload = load double, ptr %10, align 16
  %.sroa.264.0.copyload = load double, ptr %33, align 8, !tbaa !17
  %.sroa.061.0.copyload = load double, ptr %11, align 16
  %.sroa.262.0.copyload = load double, ptr %37, align 8, !tbaa !17
  call void @_ZN3JPH21TriangleConvexSupportC2ENS_4Vec3ES1_S1_(ptr noundef nonnull align 16 dereferenceable(48) %14, double %29, double %30, double %.sroa.063.0.copyload, double %.sroa.264.0.copyload, double %.sroa.061.0.copyload, double %.sroa.262.0.copyload)
  %65 = getelementptr inbounds i8, ptr %0, i64 4224
  %66 = load ptr, ptr %65, align 16, !tbaa !26
  %67 = icmp eq ptr %66, null
  br i1 %67, label %68, label %82

68:                                               ; preds = %64
  %69 = load ptr, ptr %59, align 8, !tbaa !18
  %70 = getelementptr inbounds i8, ptr %69, i64 34
  %71 = load i8, ptr %70, align 2, !tbaa !27, !range !28, !noundef !29
  %72 = trunc nuw i8 %71 to i1
  %73 = select i1 %72, i32 0, i32 2
  %74 = load ptr, ptr %0, align 16, !tbaa !16
  %75 = load ptr, ptr %74, align 16, !tbaa !30
  %76 = getelementptr inbounds i8, ptr %0, i64 64
  %77 = getelementptr inbounds i8, ptr %74, i64 16
  %.sroa.058.0.copyload = load double, ptr %77, align 16
  %.sroa.259.0..sroa_idx = getelementptr inbounds i8, ptr %74, i64 24
  %.sroa.259.0.copyload = load double, ptr %.sroa.259.0..sroa_idx, align 8, !tbaa !17
  %78 = load ptr, ptr %75, align 8, !tbaa !34
  %79 = getelementptr inbounds i8, ptr %78, i64 280
  %80 = load ptr, ptr %79, align 8
  %81 = call noundef ptr %80(ptr noundef nonnull align 8 dereferenceable(44) %75, i32 noundef %73, ptr noundef nonnull align 16 dereferenceable(4160) %76, double %.sroa.058.0.copyload, double %.sroa.259.0.copyload)
  store ptr %81, ptr %65, align 16, !tbaa !26
  br label %82

82:                                               ; preds = %68, %64
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %15) #10
  call void @_ZN3JPH19EPAPenetrationDepthC2Ev(ptr noundef nonnull align 16 dereferenceable(212) %15) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #10
  %83 = getelementptr inbounds i8, ptr %0, i64 56
  %84 = load ptr, ptr %83, align 8, !tbaa !36
  %85 = call noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %84)
  store float %85, ptr %16, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #10
  %86 = load ptr, ptr %0, align 16, !tbaa !16
  %87 = getelementptr inbounds i8, ptr %86, i64 32
  %88 = getelementptr inbounds i8, ptr %86, i64 96
  %.sroa.056.0.copyload = load double, ptr %88, align 16
  %.sroa.257.0..sroa_idx = getelementptr inbounds i8, ptr %86, i64 104
  %.sroa.257.0.copyload = load double, ptr %.sroa.257.0..sroa_idx, align 8, !tbaa !17
  %89 = load ptr, ptr %59, align 8, !tbaa !18
  %90 = getelementptr inbounds i8, ptr %89, i64 4
  %91 = load float, ptr %90, align 4, !tbaa !38
  %92 = getelementptr inbounds i8, ptr %89, i64 8
  %93 = load float, ptr %92, align 8, !tbaa !39
  %94 = load ptr, ptr %65, align 16, !tbaa !26
  %95 = load ptr, ptr %94, align 8, !tbaa !34
  %96 = getelementptr inbounds i8, ptr %95, i64 24
  %97 = load ptr, ptr %96, align 8
  %98 = call noundef float %97(ptr noundef nonnull align 8 dereferenceable(8) %94)
  %99 = load ptr, ptr %59, align 8, !tbaa !18
  %100 = getelementptr inbounds i8, ptr %99, i64 35
  %101 = load i8, ptr %100, align 1, !tbaa !40, !range !28, !noundef !29
  %102 = trunc nuw i8 %101 to i1
  %103 = call noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth9CastShapeINS_11ConvexShape7SupportENS_21TriangleConvexSupportEEEbRKNS_5Mat44ENS_4Vec3EffRKT_RKT0_ffbRfRS8_SG_SG_(ptr noundef nonnull align 16 dereferenceable(212) %15, ptr noundef nonnull align 16 dereferenceable(64) %87, double %.sroa.056.0.copyload, double %.sroa.257.0.copyload, float noundef %91, float noundef %93, ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull align 16 dereferenceable(48) %14, float noundef %98, float noundef 0.000000e+00, i1 noundef zeroext %102, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 16 dereferenceable(16) %17, ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef nonnull align 16 dereferenceable(16) %19)
  br i1 %103, label %104, label %228

104:                                              ; preds = %82
  %105 = load ptr, ptr %59, align 8, !tbaa !18
  %106 = load i8, ptr %105, align 16, !tbaa !41
  %107 = icmp eq i8 %106, 0
  %108 = icmp ne i8 %7, 7
  %or.cond = and i1 %108, %107
  br i1 %or.cond, label %109, label %125

109:                                              ; preds = %104
  %110 = getelementptr inbounds i8, ptr %0, i64 16
  %111 = load ptr, ptr %110, align 16, !tbaa !42
  %112 = getelementptr inbounds i8, ptr %105, i64 16
  %.sroa.052.0.copyload = load double, ptr %112, align 16
  %.sroa.253.0..sroa_idx = getelementptr inbounds i8, ptr %105, i64 24
  %.sroa.253.0.copyload = load double, ptr %.sroa.253.0..sroa_idx, align 8, !tbaa !17
  %113 = call { double, double } @_ZNK3JPH5Mat4421Multiply3x3TransposedENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %111, double %.sroa.052.0.copyload, double %.sroa.253.0.copyload)
  %114 = extractvalue { double, double } %113, 0
  %115 = extractvalue { double, double } %113, 1
  %.sroa.046.0.copyload = load double, ptr %10, align 16
  %.sroa.247.0.copyload = load double, ptr %33, align 8, !tbaa !17
  %.sroa.044.0.copyload = load double, ptr %11, align 16
  %.sroa.245.0.copyload = load double, ptr %37, align 8, !tbaa !17
  br i1 %58, label %116, label %117

116:                                              ; preds = %109
  %.sroa.043.0.copyload = load double, ptr %12, align 16
  %.sroa.3.0.copyload = load double, ptr %53, align 8, !tbaa !17
  br label %121

117:                                              ; preds = %109
  %118 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %119 = extractvalue { double, double } %118, 0
  %120 = extractvalue { double, double } %118, 1
  br label %121

121:                                              ; preds = %117, %116
  %.sroa.043.0 = phi double [ %.sroa.043.0.copyload, %116 ], [ %119, %117 ]
  %.sroa.3.0 = phi double [ %.sroa.3.0.copyload, %116 ], [ %120, %117 ]
  store double %114, ptr %20, align 16
  %.sroa.455.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  store double %115, ptr %.sroa.455.0..sroa_idx, align 8, !tbaa !17
  %122 = call { double, double } @_ZN3JPH11ActiveEdgesL9FixNormalENS_4Vec3ES1_S1_S1_hS1_S1_S1_(double %29, double %30, double %.sroa.046.0.copyload, double %.sroa.247.0.copyload, double %.sroa.044.0.copyload, double %.sroa.245.0.copyload, double %.sroa.043.0, double %.sroa.3.0, i8 noundef zeroext %7, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %18, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %19, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %20)
  %123 = extractvalue { double, double } %122, 0
  %124 = extractvalue { double, double } %122, 1
  store double %123, ptr %19, align 16
  %.sroa.451.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  store double %124, ptr %.sroa.451.0..sroa_idx, align 8, !tbaa !17
  br label %125

125:                                              ; preds = %121, %104
  %126 = getelementptr inbounds i8, ptr %0, i64 16
  %127 = load ptr, ptr %126, align 16, !tbaa !42
  %.sroa.039.0.copyload = load double, ptr %17, align 16
  %.sroa.240.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  %.sroa.240.0.copyload = load double, ptr %.sroa.240.0..sroa_idx, align 8, !tbaa !17
  %128 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %127, double %.sroa.039.0.copyload, double %.sroa.240.0.copyload)
  %129 = extractvalue { double, double } %128, 0
  %130 = extractvalue { double, double } %128, 1
  store double %129, ptr %17, align 16
  store double %130, ptr %.sroa.240.0..sroa_idx, align 8, !tbaa !17
  %131 = load ptr, ptr %126, align 16, !tbaa !42
  %.sroa.036.0.copyload = load double, ptr %18, align 16
  %.sroa.237.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  %.sroa.237.0.copyload = load double, ptr %.sroa.237.0..sroa_idx, align 8, !tbaa !17
  %132 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %131, double %.sroa.036.0.copyload, double %.sroa.237.0.copyload)
  %133 = extractvalue { double, double } %132, 0
  %134 = extractvalue { double, double } %132, 1
  store double %133, ptr %18, align 16
  store double %134, ptr %.sroa.237.0..sroa_idx, align 8, !tbaa !17
  %135 = load ptr, ptr %126, align 16, !tbaa !42
  %.sroa.032.0.copyload = load double, ptr %19, align 16
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  %.sroa.233.0.copyload = load double, ptr %.sroa.233.0..sroa_idx, align 8, !tbaa !17
  %136 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %135, double %.sroa.032.0.copyload, double %.sroa.233.0.copyload)
  %137 = extractvalue { double, double } %136, 0
  %138 = extractvalue { double, double } %136, 1
  call void @llvm.lifetime.start.p0(i64 1136, ptr nonnull %21) #10
  %139 = load float, ptr %16, align 4, !tbaa !37
  %.sroa.030.0.copyload = load double, ptr %17, align 16
  %.sroa.231.0.copyload = load double, ptr %.sroa.240.0..sroa_idx, align 8, !tbaa !17
  %.sroa.028.0.copyload = load double, ptr %18, align 16
  %.sroa.229.0.copyload = load double, ptr %.sroa.237.0..sroa_idx, align 8, !tbaa !17
  %140 = getelementptr inbounds i8, ptr %0, i64 48
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %140)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #10
  %142 = load ptr, ptr %83, align 8, !tbaa !36
  %143 = call noundef ptr @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE10GetContextEv(ptr noundef nonnull align 8 dereferenceable(24) %142)
  %144 = call i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef %143)
  store i32 %144, ptr %22, align 4
  call void @_ZN3JPH15ShapeCastResultC2EfNS_4Vec3ES1_S1_bRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1125) %21, float noundef %139, double %.sroa.030.0.copyload, double %.sroa.231.0.copyload, double %.sroa.028.0.copyload, double %.sroa.229.0.copyload, double %137, double %138, i1 noundef zeroext %58, ptr noundef nonnull align 4 dereferenceable(4) %141, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #10
  %145 = load float, ptr %16, align 4, !tbaa !37
  %146 = fcmp oeq float %145, 0.000000e+00
  br i1 %146, label %147, label %156

147:                                              ; preds = %125
  %148 = getelementptr inbounds i8, ptr %21, i64 48
  %149 = load float, ptr %148, align 16, !tbaa !43
  %150 = fneg float %149
  %151 = load ptr, ptr %83, align 8, !tbaa !36
  %152 = call noundef float @_ZNK3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %151)
  %153 = fcmp ugt float %152, %150
  br i1 %153, label %156, label %.critedge

154:                                              ; preds = %221
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %227

156:                                              ; preds = %147, %125
  %157 = load ptr, ptr %59, align 8, !tbaa !18
  %158 = getelementptr inbounds i8, ptr %157, i64 1
  %159 = load i8, ptr %158, align 1, !tbaa !47
  %160 = icmp eq i8 %159, 0
  br i1 %160, label %161, label %221

161:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %23) #10
  %162 = load ptr, ptr %0, align 16, !tbaa !16
  %163 = getelementptr inbounds i8, ptr %162, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %23, ptr noundef nonnull align 16 dereferenceable(64) %163, i64 64, i1 false), !tbaa.struct !48
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #10
  %164 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %23)
          to label %165 unwind label %203

165:                                              ; preds = %161
  %166 = extractvalue { double, double } %164, 0
  store double %166, ptr %24, align 16
  %167 = getelementptr inbounds i8, ptr %24, i64 8
  %168 = extractvalue { double, double } %164, 1
  store double %168, ptr %167, align 8
  %169 = load float, ptr %16, align 4, !tbaa !37
  %170 = load ptr, ptr %0, align 16, !tbaa !16
  %171 = getelementptr inbounds i8, ptr %170, i64 96
  %.sroa.019.0.copyload = load double, ptr %171, align 16
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %170, i64 104
  %.sroa.220.0.copyload = load double, ptr %.sroa.220.0..sroa_idx, align 8, !tbaa !17
  %172 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %169, double %.sroa.019.0.copyload, double %.sroa.220.0.copyload)
          to label %173 unwind label %203

173:                                              ; preds = %165
  %174 = extractvalue { double, double } %172, 0
  %175 = extractvalue { double, double } %172, 1
  %176 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %174, double %175)
          to label %177 unwind label %203

177:                                              ; preds = %173
  %178 = extractvalue { double, double } %176, 0
  %179 = extractvalue { double, double } %176, 1
  invoke void @_ZN3JPH5Mat4414SetTranslationENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %23, double %178, double %179)
          to label %180 unwind label %203

180:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #10
  %181 = load ptr, ptr %0, align 16, !tbaa !16
  %182 = load ptr, ptr %181, align 16, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #10
  store i32 0, ptr %25, align 4
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %25) #10
  %183 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %19)
          to label %184 unwind label %205

184:                                              ; preds = %180
  %185 = extractvalue { double, double } %183, 0
  %186 = extractvalue { double, double } %183, 1
  %187 = invoke { double, double } @_ZNK3JPH5Mat4421Multiply3x3TransposedENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %23, double %185, double %186)
          to label %188 unwind label %205

188:                                              ; preds = %184
  %189 = extractvalue { double, double } %187, 0
  %190 = extractvalue { double, double } %187, 1
  %191 = load ptr, ptr %0, align 16, !tbaa !16
  %192 = getelementptr inbounds i8, ptr %191, i64 16
  %.sroa.013.0.copyload = load double, ptr %192, align 16
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %191, i64 24
  %.sroa.214.0.copyload = load double, ptr %.sroa.214.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %26) #10
  %193 = load ptr, ptr %126, align 16, !tbaa !42
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %26, ptr noundef nonnull align 16 dereferenceable(64) %193, ptr noundef nonnull align 16 dereferenceable(64) %23)
  %194 = getelementptr inbounds i8, ptr %21, i64 64
  %195 = load ptr, ptr %182, align 8, !tbaa !34
  %196 = getelementptr inbounds i8, ptr %195, i64 96
  %197 = load ptr, ptr %196, align 8
  invoke void %197(ptr noundef nonnull align 8 dereferenceable(26) %182, ptr noundef nonnull align 4 dereferenceable(4) %25, double %189, double %190, double %.sroa.013.0.copyload, double %.sroa.214.0.copyload, ptr noundef nonnull align 16 dereferenceable(64) %26, ptr noundef nonnull align 16 dereferenceable(528) %194)
          to label %198 unwind label %207

198:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %26) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #10
  %.sroa.011.0.copyload = load double, ptr %19, align 16
  %.sroa.212.0.copyload = load double, ptr %.sroa.233.0..sroa_idx, align 8, !tbaa !17
  %199 = getelementptr inbounds i8, ptr %21, i64 592
  invoke void @_ZNK3JPH21TriangleConvexSupport17GetSupportingFaceINS_11StaticArrayINS_4Vec3ELj32EEEEEvS3_RT_(ptr noundef nonnull align 16 dereferenceable(48) %14, double %.sroa.011.0.copyload, double %.sroa.212.0.copyload, ptr noundef nonnull align 16 dereferenceable(528) %199)
          to label %200 unwind label %210

200:                                              ; preds = %198
  %201 = call noundef ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE5beginEv(ptr noundef nonnull align 16 dereferenceable(528) %199)
  %202 = call noundef ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE3endEv(ptr noundef nonnull align 16 dereferenceable(528) %199)
  %.not110 = icmp eq ptr %201, %202
  br i1 %.not110, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %214, %200
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %23) #10
  br label %221

203:                                              ; preds = %177, %173, %165, %161
  %204 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #10
  br label %220

205:                                              ; preds = %184, %180
  %206 = landingpad { ptr, i32 }
          cleanup
  br label %209

207:                                              ; preds = %188
  %208 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %26) #10
  br label %209

209:                                              ; preds = %207, %205
  %.pn = phi { ptr, i32 } [ %208, %207 ], [ %206, %205 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #10
  br label %220

210:                                              ; preds = %198
  %211 = landingpad { ptr, i32 }
          cleanup
  br label %220

.lr.ph:                                           ; preds = %200, %214
  %.0102111 = phi ptr [ %217, %214 ], [ %201, %200 ]
  %212 = load ptr, ptr %126, align 16, !tbaa !42
  %.sroa.0.0.copyload = load double, ptr %.0102111, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %.0102111, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !17
  %213 = invoke { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %212, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
          to label %214 unwind label %218

214:                                              ; preds = %.lr.ph
  %215 = extractvalue { double, double } %213, 0
  %216 = extractvalue { double, double } %213, 1
  store double %215, ptr %.0102111, align 16
  store double %216, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !17
  %217 = getelementptr inbounds i8, ptr %.0102111, i64 16
  %.not = icmp eq ptr %217, %202
  br i1 %.not, label %._crit_edge, label %.lr.ph

218:                                              ; preds = %.lr.ph
  %219 = landingpad { ptr, i32 }
          cleanup
  br label %220

220:                                              ; preds = %218, %210, %209, %203
  %.pn104 = phi { ptr, i32 } [ %219, %218 ], [ %211, %210 ], [ %.pn, %209 ], [ %204, %203 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %23) #10
  br label %227

221:                                              ; preds = %._crit_edge, %156
  %222 = load ptr, ptr %83, align 8, !tbaa !36
  %223 = load ptr, ptr %222, align 8, !tbaa !34
  %224 = getelementptr inbounds i8, ptr %223, i64 48
  %225 = load ptr, ptr %224, align 8
  invoke void %225(ptr noundef nonnull align 8 dereferenceable(24) %222, ptr noundef nonnull align 16 dereferenceable(1125) %21)
          to label %226 unwind label %154

226:                                              ; preds = %221
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1125) %21) #10
  call void @llvm.lifetime.end.p0(i64 1136, ptr nonnull %21) #10
  br label %228

227:                                              ; preds = %220, %154
  %.pn104.pn = phi { ptr, i32 } [ %.pn104, %220 ], [ %155, %154 ]
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1125) %21) #10
  call void @llvm.lifetime.end.p0(i64 1136, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #10
  resume { ptr, i32 } %.pn104.pn

.critedge:                                        ; preds = %147
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1125) %21) #10
  call void @llvm.lifetime.end.p0(i64 1136, ptr nonnull %21) #10
  br label %228

228:                                              ; preds = %82, %226, %.critedge
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #10
  br label %229

229:                                              ; preds = %9, %228
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #10
  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 #3 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #3 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 #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH21TriangleConvexSupportC2ENS_4Vec3ES1_S1_(ptr noundef nonnull align 16 dereferenceable(48), double, double, double, double, double, double) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH19EPAPenetrationDepthC2Ev(ptr noundef nonnull align 16 dereferenceable(212)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth9CastShapeINS_11ConvexShape7SupportENS_21TriangleConvexSupportEEEbRKNS_5Mat44ENS_4Vec3EffRKT_RKT0_ffbRfRS8_SG_SG_(ptr noundef nonnull align 16 dereferenceable(212), ptr noundef nonnull align 16 dereferenceable(64), double, double, float noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 16 dereferenceable(48), float noundef, float noundef, i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef) local_unnamed_addr #8 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH15ShapeCastResultC2EfNS_4Vec3ES1_S1_bRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1125), float noundef, double, double, double, double, double, double, i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #7 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #9 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH21TriangleConvexSupport17GetSupportingFaceINS_11StaticArrayINS_4Vec3ELj32EEEEEvS3_RT_(ptr noundef nonnull align 16 dereferenceable(48), double, double, ptr noundef nonnull align 16 dereferenceable(528)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120)) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="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 #4 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 #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 = { 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 #9 = { alwaysinline mustprogress nounwind 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 #10 = { 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, !15, i64 4232}
!6 = !{!"_ZTSN3JPH21CastConvexVsTrianglesE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 32, !11, i64 48, !7, i64 56, !14, i64 64, !7, i64 4224, !15, i64 4232}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!11 = !{!"_ZTSN3JPH17SubShapeIDCreatorE", !12, i64 0, !13, i64 4}
!12 = !{!"_ZTSN3JPH10SubShapeIDE", !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!"_ZTSN3JPH11ConvexShape13SupportBufferE", !8, i64 0}
!15 = !{!"float", !8, i64 0}
!16 = !{!6, !7, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!6, !7, i64 8}
!19 = !{!20, !24, i64 32}
!20 = !{!"_ZTSN3JPH17ShapeCastSettingsE", !21, i64 0, !24, i64 32, !24, i64 33, !25, i64 34, !25, i64 35}
!21 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !22, i64 0, !23, i64 1, !15, i64 4, !15, i64 8, !10, i64 16}
!22 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !8, i64 0}
!23 = !{!"_ZTSN3JPH17ECollectFacesModeE", !8, i64 0}
!24 = !{!"_ZTSN3JPH13EBackFaceModeE", !8, i64 0}
!25 = !{!"bool", !8, i64 0}
!26 = !{!6, !7, i64 4224}
!27 = !{!20, !25, i64 34}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!31, !7, i64 0}
!31 = !{!"_ZTSN3JPH10ShapeCastTINS_4Vec3ENS_5Mat44ENS_9ShapeCastEEE", !7, i64 0, !10, i64 16, !32, i64 32, !10, i64 96, !33, i64 112}
!32 = !{!"_ZTSN3JPH5Mat44E", !8, i64 0}
!33 = !{!"_ZTSN3JPH5AABoxE", !10, i64 0, !10, i64 16}
!34 = !{!35, !35, i64 0}
!35 = !{!"vtable pointer", !9, i64 0}
!36 = !{!6, !7, i64 56}
!37 = !{!15, !15, i64 0}
!38 = !{!21, !15, i64 4}
!39 = !{!21, !15, i64 8}
!40 = !{!20, !25, i64 35}
!41 = !{!21, !22, i64 0}
!42 = !{!6, !7, i64 16}
!43 = !{!44, !15, i64 48}
!44 = !{!"_ZTSN3JPH18CollideShapeResultE", !10, i64 0, !10, i64 16, !10, i64 32, !15, i64 48, !12, i64 52, !12, i64 56, !45, i64 60, !46, i64 64, !46, i64 592}
!45 = !{!"_ZTSN3JPH6BodyIDE", !13, i64 0}
!46 = !{!"_ZTSN3JPH11StaticArrayINS_4Vec3ELj32EEE", !13, i64 0, !8, i64 16}
!47 = !{!21, !23, i64 1}
!48 = !{i64 0, i64 64, !17}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass