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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::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::CollideSphereVsTriangles" = type { ptr, ptr, ptr, %"class.JPH::Vec3", %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::SubShapeID", float, float, float }
%"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::CollideShapeSettings" = type <{ %"class.JPH::CollideSettingsBase", float, i8, [11 x i8] }>
%"class.JPH::CollideSettingsBase" = type { i8, i8, float, float, %"class.JPH::Vec3" }

@.str.1 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZN3JPHL32sClosestFeatureToActiveEdgesMaskE = external hidden constant [7 x i8], align 1

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

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

; 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #4

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

215:                                              ; preds = %9
  %216 = load i8, ptr %34, align 1, !tbaa !18, !range !27, !noundef !28
  %217 = trunc i8 %216 to i1
  br i1 %217, label %218, label %219

218:                                              ; preds = %215
  store i32 1, ptr %36, align 4
  br label %561

219:                                              ; preds = %215, %9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !10
  %220 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %221 = load double, ptr %220, align 16
  %222 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %223 = load double, ptr %222, align 8
  %224 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %225 = load double, ptr %224, align 16
  %226 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %227 = load double, ptr %226, align 8
  %228 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %229 = load double, ptr %228, align 16
  %230 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %231 = load double, ptr %230, align 8
  %232 = call { double, double } @_ZN3JPH12ClosestPoint25GetClosestPointOnTriangleILb0EEENS_4Vec3ES2_S2_S2_Rj(double %221, double %223, double %225, double %227, double %229, double %231, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %233 = getelementptr inbounds %"class.JPH::Vec3", ptr %38, i32 0, i32 0
  %234 = getelementptr inbounds %union.anon, ptr %233, i32 0, i32 0
  %235 = getelementptr inbounds { double, double }, ptr %234, i32 0, i32 0
  %236 = extractvalue { double, double } %232, 0
  store double %236, ptr %235, align 16
  %237 = getelementptr inbounds { double, double }, ptr %234, i32 0, i32 1
  %238 = extractvalue { double, double } %232, 1
  store double %238, ptr %237, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  %239 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %38)
  store float %239, ptr %42, align 4, !tbaa !29
  %240 = load float, ptr %42, align 4, !tbaa !29
  %241 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 9
  %242 = load float, ptr %241, align 4, !tbaa !30
  %243 = fcmp ogt float %240, %242
  br i1 %243, label %244, label %245

244:                                              ; preds = %219
  store i32 1, ptr %36, align 4
  br label %560

245:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #9
  %246 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 8
  %247 = load float, ptr %246, align 8, !tbaa !31
  %248 = load float, ptr %42, align 4, !tbaa !29
  %249 = call noundef float @_ZSt4sqrtf(float noundef %248)
  %250 = fsub float %247, %249
  store float %250, ptr %43, align 4, !tbaa !29
  %251 = load float, ptr %43, align 4, !tbaa !29
  %252 = fneg float %251
  %253 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 1
  %254 = load ptr, ptr %253, align 8, !tbaa !32
  %255 = call noundef float @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %254)
  %256 = fcmp oge float %252, %255
  br i1 %256, label %257, label %258

257:                                              ; preds = %245
  store i32 1, ptr %36, align 4
  br label %559

258:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #9
  %259 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %260 = getelementptr inbounds %"class.JPH::Vec3", ptr %45, i32 0, i32 0
  %261 = getelementptr inbounds %union.anon, ptr %260, i32 0, i32 0
  %262 = getelementptr inbounds { double, double }, ptr %261, i32 0, i32 0
  %263 = extractvalue { double, double } %259, 0
  store double %263, ptr %262, align 16
  %264 = getelementptr inbounds { double, double }, ptr %261, i32 0, i32 1
  %265 = extractvalue { double, double } %259, 1
  store double %265, ptr %264, align 8
  %266 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %267 = load double, ptr %266, align 16
  %268 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %269 = load double, ptr %268, align 8
  %270 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %38, double %267, double %269)
  %271 = getelementptr inbounds %"class.JPH::Vec3", ptr %44, i32 0, i32 0
  %272 = getelementptr inbounds %union.anon, ptr %271, i32 0, i32 0
  %273 = getelementptr inbounds { double, double }, ptr %272, i32 0, i32 0
  %274 = extractvalue { double, double } %270, 0
  store double %274, ptr %273, align 16
  %275 = getelementptr inbounds { double, double }, ptr %272, i32 0, i32 1
  %276 = extractvalue { double, double } %270, 1
  store double %276, ptr %275, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #9
  %277 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 8
  %278 = load float, ptr %277, align 8, !tbaa !31
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %47, ptr align 16 %44, i64 16, i1 false), !tbaa.struct !10
  %279 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %280 = load double, ptr %279, align 16
  %281 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %282 = load double, ptr %281, align 8
  %283 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %278, double %280, double %282)
  %284 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %285 = getelementptr inbounds %union.anon, ptr %284, i32 0, i32 0
  %286 = getelementptr inbounds { double, double }, ptr %285, i32 0, i32 0
  %287 = extractvalue { double, double } %283, 0
  store double %287, ptr %286, align 16
  %288 = getelementptr inbounds { double, double }, ptr %285, i32 0, i32 1
  %289 = extractvalue { double, double } %283, 1
  store double %289, ptr %288, align 8
  br label %290

290:                                              ; preds = %258
  %291 = load i32, ptr %37, align 4, !tbaa !33
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %296, label %293

293:                                              ; preds = %290
  %294 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 84)
  br i1 %294, label %295, label %296

295:                                              ; preds = %293
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !34
  br label %296

296:                                              ; preds = %295, %293, %290
  br label %297

297:                                              ; preds = %296
  br label %298

298:                                              ; preds = %297
  %299 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 0
  %300 = load ptr, ptr %299, align 16, !tbaa !20
  %301 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %300, i32 0, i32 0
  %302 = load i8, ptr %301, align 16, !tbaa !35
  %303 = icmp eq i8 %302, 0
  br i1 %303, label %304, label %360

304:                                              ; preds = %298
  %305 = load i32, ptr %37, align 4, !tbaa !33
  %306 = icmp ne i32 %305, 7
  br i1 %306, label %307, label %360

307:                                              ; preds = %304
  %308 = load i8, ptr %14, align 1, !tbaa !9
  %309 = zext i8 %308 to i32
  %310 = load i32, ptr %37, align 4, !tbaa !33
  %311 = zext i32 %310 to i64
  %312 = getelementptr inbounds [7 x i8], ptr @_ZN3JPHL32sClosestFeatureToActiveEdgesMaskE, i64 0, i64 %311
  %313 = load i8, ptr %312, align 1, !tbaa !9
  %314 = zext i8 %313 to i32
  %315 = and i32 %309, %314
  %316 = icmp eq i32 %315, 0
  br i1 %316, label %317, label %360

317:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #9
  %318 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 4
  %319 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 0
  %320 = load ptr, ptr %319, align 16, !tbaa !20
  %321 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %320, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %50, ptr align 16 %321, i64 16, i1 false), !tbaa.struct !10
  %322 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %323 = load double, ptr %322, align 16
  %324 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %325 = load double, ptr %324, align 8
  %326 = call { double, double } @_ZNK3JPH5Mat4421Multiply3x3TransposedENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %318, double %323, double %325)
  %327 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %328 = getelementptr inbounds %union.anon, ptr %327, i32 0, i32 0
  %329 = getelementptr inbounds { double, double }, ptr %328, i32 0, i32 0
  %330 = extractvalue { double, double } %326, 0
  store double %330, ptr %329, align 16
  %331 = getelementptr inbounds { double, double }, ptr %328, i32 0, i32 1
  %332 = extractvalue { double, double } %326, 1
  store double %332, ptr %331, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #9
  %333 = load i8, ptr %34, align 1, !tbaa !18, !range !27, !noundef !28
  %334 = trunc i8 %333 to i1
  br i1 %334, label %335, label %336

335:                                              ; preds = %317
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !10
  br label %344

336:                                              ; preds = %317
  %337 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %28)
  %338 = getelementptr inbounds %"class.JPH::Vec3", ptr %51, i32 0, i32 0
  %339 = getelementptr inbounds %union.anon, ptr %338, i32 0, i32 0
  %340 = getelementptr inbounds { double, double }, ptr %339, i32 0, i32 0
  %341 = extractvalue { double, double } %337, 0
  store double %341, ptr %340, align 16
  %342 = getelementptr inbounds { double, double }, ptr %339, i32 0, i32 1
  %343 = extractvalue { double, double } %337, 1
  store double %343, ptr %342, align 8
  br label %344

344:                                              ; preds = %336, %335
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %52, ptr align 16 %44, i64 16, i1 false), !tbaa.struct !10
  %345 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %346 = load double, ptr %345, align 16
  %347 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %348 = load double, ptr %347, align 8
  %349 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %49, double %346, double %348)
  %350 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %51)
  %351 = fmul float %349, %350
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %53, ptr align 16 %51, i64 16, i1 false), !tbaa.struct !10
  %352 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %353 = load double, ptr %352, align 16
  %354 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %355 = load double, ptr %354, align 8
  %356 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %49, double %353, double %355)
  %357 = fcmp oge float %351, %356
  br i1 %357, label %358, label %359

358:                                              ; preds = %344
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %51, i64 16, i1 false), !tbaa.struct !10
  br label %359

359:                                              ; preds = %358, %344
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #9
  br label %360

360:                                              ; preds = %359, %307, %304, %298
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #9
  %361 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 4
  %362 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %46, i64 16, i1 false), !tbaa.struct !10
  %363 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %364 = load double, ptr %363, align 16
  %365 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %366 = load double, ptr %365, align 8
  %367 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %362, double %364, double %366)
  %368 = getelementptr inbounds %"class.JPH::Vec3", ptr %55, i32 0, i32 0
  %369 = getelementptr inbounds %union.anon, ptr %368, i32 0, i32 0
  %370 = getelementptr inbounds { double, double }, ptr %369, i32 0, i32 0
  %371 = extractvalue { double, double } %367, 0
  store double %371, ptr %370, align 16
  %372 = getelementptr inbounds { double, double }, ptr %369, i32 0, i32 1
  %373 = extractvalue { double, double } %367, 1
  store double %373, ptr %372, align 8
  %374 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %375 = load double, ptr %374, align 16
  %376 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %377 = load double, ptr %376, align 8
  %378 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %361, double %375, double %377)
  %379 = getelementptr inbounds %"class.JPH::Vec3", ptr %54, i32 0, i32 0
  %380 = getelementptr inbounds %union.anon, ptr %379, i32 0, i32 0
  %381 = getelementptr inbounds { double, double }, ptr %380, i32 0, i32 0
  %382 = extractvalue { double, double } %378, 0
  store double %382, ptr %381, align 16
  %383 = getelementptr inbounds { double, double }, ptr %380, i32 0, i32 1
  %384 = extractvalue { double, double } %378, 1
  store double %384, ptr %383, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %46, ptr align 16 %54, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #9
  %385 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 4
  %386 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %38, i64 16, i1 false), !tbaa.struct !10
  %387 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %388 = load double, ptr %387, align 16
  %389 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %390 = load double, ptr %389, align 8
  %391 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %386, double %388, double %390)
  %392 = getelementptr inbounds %"class.JPH::Vec3", ptr %58, i32 0, i32 0
  %393 = getelementptr inbounds %union.anon, ptr %392, i32 0, i32 0
  %394 = getelementptr inbounds { double, double }, ptr %393, i32 0, i32 0
  %395 = extractvalue { double, double } %391, 0
  store double %395, ptr %394, align 16
  %396 = getelementptr inbounds { double, double }, ptr %393, i32 0, i32 1
  %397 = extractvalue { double, double } %391, 1
  store double %397, ptr %396, align 8
  %398 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %399 = load double, ptr %398, align 16
  %400 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %401 = load double, ptr %400, align 8
  %402 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %385, double %399, double %401)
  %403 = getelementptr inbounds %"class.JPH::Vec3", ptr %57, i32 0, i32 0
  %404 = getelementptr inbounds %union.anon, ptr %403, i32 0, i32 0
  %405 = getelementptr inbounds { double, double }, ptr %404, i32 0, i32 0
  %406 = extractvalue { double, double } %402, 0
  store double %406, ptr %405, align 16
  %407 = getelementptr inbounds { double, double }, ptr %404, i32 0, i32 1
  %408 = extractvalue { double, double } %402, 1
  store double %408, ptr %407, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %57, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #9
  %409 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %61, ptr align 16 %44, i64 16, i1 false), !tbaa.struct !10
  %410 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %411 = load double, ptr %410, align 16
  %412 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %413 = load double, ptr %412, align 8
  %414 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %409, double %411, double %413)
  %415 = getelementptr inbounds %"class.JPH::Vec3", ptr %60, i32 0, i32 0
  %416 = getelementptr inbounds %union.anon, ptr %415, i32 0, i32 0
  %417 = getelementptr inbounds { double, double }, ptr %416, i32 0, i32 0
  %418 = extractvalue { double, double } %414, 0
  store double %418, ptr %417, align 16
  %419 = getelementptr inbounds { double, double }, ptr %416, i32 0, i32 1
  %420 = extractvalue { double, double } %414, 1
  store double %420, ptr %419, align 8
  call void @llvm.lifetime.start.p0(i64 1120, ptr %62) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %63, ptr align 16 %46, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %38, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %65, ptr align 16 %60, i64 16, i1 false), !tbaa.struct !10
  %421 = load float, ptr %43, align 4, !tbaa !29
  %422 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 6
  %423 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #9
  %424 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 1
  %425 = load ptr, ptr %424, align 8, !tbaa !32
  %426 = call noundef ptr @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE10GetContextEv(ptr noundef nonnull align 8 dereferenceable(24) %425)
  %427 = call i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef %426)
  %428 = getelementptr inbounds %"class.JPH::BodyID", ptr %66, i32 0, i32 0
  store i32 %427, ptr %428, align 4
  %429 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %430 = load double, ptr %429, align 16
  %431 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %432 = load double, ptr %431, align 8
  %433 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %434 = load double, ptr %433, align 16
  %435 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %436 = load double, ptr %435, align 8
  %437 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 0
  %438 = load double, ptr %437, align 16
  %439 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 1
  %440 = load double, ptr %439, align 8
  call void @_ZN3JPH18CollideShapeResultC2ENS_4Vec3ES1_S1_fRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1120) %62, double %430, double %432, double %434, double %436, double %438, double %440, float noundef %421, ptr noundef nonnull align 4 dereferenceable(4) %422, ptr noundef nonnull align 4 dereferenceable(4) %423, ptr noundef nonnull align 4 dereferenceable(4) %66)
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #9
  %441 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 0
  %442 = load ptr, ptr %441, align 16, !tbaa !20
  %443 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %442, i32 0, i32 1
  %444 = load i8, ptr %443, align 1, !tbaa !36
  %445 = icmp eq i8 %444, 0
  br i1 %445, label %446, label %552

446:                                              ; preds = %360
  %447 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %62, i32 0, i32 8
  invoke void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE6resizeEj(ptr noundef nonnull align 16 dereferenceable(528) %447, i32 noundef 3)
          to label %448 unwind label %536

448:                                              ; preds = %446
  call void @llvm.lifetime.start.p0(i64 16, ptr %69) #9
  %449 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 4
  %450 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %71, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !10
  %451 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 0
  %452 = load double, ptr %451, align 16
  %453 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 1
  %454 = load double, ptr %453, align 8
  %455 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %450, double %452, double %454)
          to label %456 unwind label %540

456:                                              ; preds = %448
  %457 = getelementptr inbounds %"class.JPH::Vec3", ptr %70, i32 0, i32 0
  %458 = getelementptr inbounds %union.anon, ptr %457, i32 0, i32 0
  %459 = getelementptr inbounds { double, double }, ptr %458, i32 0, i32 0
  %460 = extractvalue { double, double } %455, 0
  store double %460, ptr %459, align 16
  %461 = getelementptr inbounds { double, double }, ptr %458, i32 0, i32 1
  %462 = extractvalue { double, double } %455, 1
  store double %462, ptr %461, align 8
  %463 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 0
  %464 = load double, ptr %463, align 16
  %465 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 1
  %466 = load double, ptr %465, align 8
  %467 = invoke { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %449, double %464, double %466)
          to label %468 unwind label %540

468:                                              ; preds = %456
  %469 = getelementptr inbounds %"class.JPH::Vec3", ptr %69, i32 0, i32 0
  %470 = getelementptr inbounds %union.anon, ptr %469, i32 0, i32 0
  %471 = getelementptr inbounds { double, double }, ptr %470, i32 0, i32 0
  %472 = extractvalue { double, double } %467, 0
  store double %472, ptr %471, align 16
  %473 = getelementptr inbounds { double, double }, ptr %470, i32 0, i32 1
  %474 = extractvalue { double, double } %467, 1
  store double %474, ptr %473, align 8
  %475 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %62, i32 0, i32 8
  %476 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EEixEj(ptr noundef nonnull align 16 dereferenceable(528) %475, i32 noundef 0)
          to label %477 unwind label %540

477:                                              ; preds = %468
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %476, ptr align 16 %69, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %69) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %72) #9
  %478 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 4
  %479 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %74, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !10
  %480 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 0
  %481 = load double, ptr %480, align 16
  %482 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 1
  %483 = load double, ptr %482, align 8
  %484 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %479, double %481, double %483)
          to label %485 unwind label %544

485:                                              ; preds = %477
  %486 = getelementptr inbounds %"class.JPH::Vec3", ptr %73, i32 0, i32 0
  %487 = getelementptr inbounds %union.anon, ptr %486, i32 0, i32 0
  %488 = getelementptr inbounds { double, double }, ptr %487, i32 0, i32 0
  %489 = extractvalue { double, double } %484, 0
  store double %489, ptr %488, align 16
  %490 = getelementptr inbounds { double, double }, ptr %487, i32 0, i32 1
  %491 = extractvalue { double, double } %484, 1
  store double %491, ptr %490, align 8
  %492 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %493 = load double, ptr %492, align 16
  %494 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %495 = load double, ptr %494, align 8
  %496 = invoke { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %478, double %493, double %495)
          to label %497 unwind label %544

497:                                              ; preds = %485
  %498 = getelementptr inbounds %"class.JPH::Vec3", ptr %72, i32 0, i32 0
  %499 = getelementptr inbounds %union.anon, ptr %498, i32 0, i32 0
  %500 = getelementptr inbounds { double, double }, ptr %499, i32 0, i32 0
  %501 = extractvalue { double, double } %496, 0
  store double %501, ptr %500, align 16
  %502 = getelementptr inbounds { double, double }, ptr %499, i32 0, i32 1
  %503 = extractvalue { double, double } %496, 1
  store double %503, ptr %502, align 8
  %504 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %62, i32 0, i32 8
  %505 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EEixEj(ptr noundef nonnull align 16 dereferenceable(528) %504, i32 noundef 1)
          to label %506 unwind label %544

506:                                              ; preds = %497
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %505, ptr align 16 %72, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %72) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %75) #9
  %507 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 4
  %508 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %77, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !10
  %509 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %510 = load double, ptr %509, align 16
  %511 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %512 = load double, ptr %511, align 8
  %513 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %508, double %510, double %512)
          to label %514 unwind label %548

514:                                              ; preds = %506
  %515 = getelementptr inbounds %"class.JPH::Vec3", ptr %76, i32 0, i32 0
  %516 = getelementptr inbounds %union.anon, ptr %515, i32 0, i32 0
  %517 = getelementptr inbounds { double, double }, ptr %516, i32 0, i32 0
  %518 = extractvalue { double, double } %513, 0
  store double %518, ptr %517, align 16
  %519 = getelementptr inbounds { double, double }, ptr %516, i32 0, i32 1
  %520 = extractvalue { double, double } %513, 1
  store double %520, ptr %519, align 8
  %521 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %522 = load double, ptr %521, align 16
  %523 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %524 = load double, ptr %523, align 8
  %525 = invoke { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %507, double %522, double %524)
          to label %526 unwind label %548

526:                                              ; preds = %514
  %527 = getelementptr inbounds %"class.JPH::Vec3", ptr %75, i32 0, i32 0
  %528 = getelementptr inbounds %union.anon, ptr %527, i32 0, i32 0
  %529 = getelementptr inbounds { double, double }, ptr %528, i32 0, i32 0
  %530 = extractvalue { double, double } %525, 0
  store double %530, ptr %529, align 16
  %531 = getelementptr inbounds { double, double }, ptr %528, i32 0, i32 1
  %532 = extractvalue { double, double } %525, 1
  store double %532, ptr %531, align 8
  %533 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %62, i32 0, i32 8
  %534 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EEixEj(ptr noundef nonnull align 16 dereferenceable(528) %533, i32 noundef 2)
          to label %535 unwind label %548

535:                                              ; preds = %526
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %534, ptr align 16 %75, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %75) #9
  br label %552

536:                                              ; preds = %552, %446
  %537 = landingpad { ptr, i32 }
          cleanup
  %538 = extractvalue { ptr, i32 } %537, 0
  store ptr %538, ptr %67, align 8
  %539 = extractvalue { ptr, i32 } %537, 1
  store i32 %539, ptr %68, align 4
  br label %564

540:                                              ; preds = %468, %456, %448
  %541 = landingpad { ptr, i32 }
          cleanup
  %542 = extractvalue { ptr, i32 } %541, 0
  store ptr %542, ptr %67, align 8
  %543 = extractvalue { ptr, i32 } %541, 1
  store i32 %543, ptr %68, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %69) #9
  br label %564

544:                                              ; preds = %497, %485, %477
  %545 = landingpad { ptr, i32 }
          cleanup
  %546 = extractvalue { ptr, i32 } %545, 0
  store ptr %546, ptr %67, align 8
  %547 = extractvalue { ptr, i32 } %545, 1
  store i32 %547, ptr %68, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %72) #9
  br label %564

548:                                              ; preds = %526, %514, %506
  %549 = landingpad { ptr, i32 }
          cleanup
  %550 = extractvalue { ptr, i32 } %549, 0
  store ptr %550, ptr %67, align 8
  %551 = extractvalue { ptr, i32 } %549, 1
  store i32 %551, ptr %68, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %75) #9
  br label %564

552:                                              ; preds = %535, %360
  %553 = getelementptr inbounds %"class.JPH::CollideSphereVsTriangles", ptr %84, i32 0, i32 1
  %554 = load ptr, ptr %553, align 8, !tbaa !32
  %555 = load ptr, ptr %554, align 8, !tbaa !37
  %556 = getelementptr inbounds ptr, ptr %555, i64 6
  %557 = load ptr, ptr %556, align 8
  invoke void %557(ptr noundef nonnull align 8 dereferenceable(24) %554, ptr noundef nonnull align 16 dereferenceable(1120) %62)
          to label %558 unwind label %536

558:                                              ; preds = %552
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %62) #9
  call void @llvm.lifetime.end.p0(i64 1120, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #9
  store i32 0, ptr %36, align 4
  br label %559

559:                                              ; preds = %558, %257
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  br label %560

560:                                              ; preds = %559, %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  br label %561

561:                                              ; preds = %560, %218
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  %562 = load i32, ptr %36, align 4
  switch i32 %562, label %570 [
    i32 0, label %563
    i32 1, label %563
  ]

563:                                              ; preds = %561, %561
  ret void

564:                                              ; preds = %548, %544, %540, %536
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %62) #9
  call void @llvm.lifetime.end.p0(i64 1120, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  br label %565

565:                                              ; preds = %564
  %566 = load ptr, ptr %67, align 8
  %567 = load i32, ptr %68, align 4
  %568 = insertvalue { ptr, i32 } poison, ptr %566, 0
  %569 = insertvalue { ptr, i32 } %568, i32 %567, 1
  resume { ptr, i32 } %569

570:                                              ; preds = %561
  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 } @_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) #6 align 2

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

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

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

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

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

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

; 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 nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollideShapeResultC2ENS_4Vec3ES1_S1_fRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1120), double, double, double, double, double, double, float noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE6resizeEj(ptr noundef nonnull align 16 dereferenceable(528), i32 noundef) #5 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { 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 #9 = { 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, !17, i64 132}
!12 = !{!"_ZTSN3JPH24CollideSphereVsTrianglesE", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 32, !14, i64 48, !13, i64 112, !15, i64 128, !17, i64 132, !17, i64 136, !17, i64 140}
!13 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!14 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!15 = !{!"_ZTSN3JPH10SubShapeIDE", !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!12, !6, i64 0}
!21 = !{!22, !26, i64 36}
!22 = !{!"_ZTSN3JPH20CollideShapeSettingsE", !23, i64 0, !17, i64 32, !26, i64 36}
!23 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !24, i64 0, !25, i64 1, !17, i64 4, !17, i64 8, !13, i64 16}
!24 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !7, i64 0}
!25 = !{!"_ZTSN3JPH17ECollectFacesModeE", !7, i64 0}
!26 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!17, !17, i64 0}
!30 = !{!12, !17, i64 140}
!31 = !{!12, !17, i64 136}
!32 = !{!12, !6, i64 8}
!33 = !{!16, !16, i64 0}
!34 = !{i64 2158048853}
!35 = !{!23, !24, i64 0}
!36 = !{!23, !25, i64 1}
!37 = !{!38, !38, i64 0}
!38 = !{!"vtable pointer", !8, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"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] }

@.str.1 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZN3JPHL32sClosestFeatureToActiveEdgesMaskE = external hidden local_unnamed_addr constant [7 x i8], align 1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24CollideSphereVsTriangles7CollideENS_4Vec3ES1_S1_hRKNS_10SubShapeIDE(ptr noundef nonnull align 16 dereferenceable(144) %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 #5 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 %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca i32, align 4
  %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::CollideShapeResult", align 16
  %22 = alloca %"class.JPH::BodyID", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %24 = tail call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %23, double %1, double %2)
  %25 = extractvalue { double, double } %24, 0
  store double %25, ptr %10, align 16
  %26 = getelementptr inbounds i8, ptr %10, i64 8
  %27 = extractvalue { double, double } %24, 1
  store double %27, ptr %26, align 8
  %28 = getelementptr inbounds i8, ptr %0, i64 112
  %.sroa.080.0.copyload = load double, ptr %28, align 16
  %.sroa.281.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 120
  %.sroa.281.0.copyload = load double, ptr %.sroa.281.0..sroa_idx, align 8, !tbaa !5
  %29 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %.sroa.080.0.copyload, double %.sroa.281.0.copyload)
  %30 = extractvalue { double, double } %29, 0
  %31 = extractvalue { double, double } %29, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  %32 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %23, double %3, double %4)
  %33 = extractvalue { double, double } %32, 0
  store double %33, ptr %12, align 16
  %34 = getelementptr inbounds i8, ptr %12, i64 8
  %35 = extractvalue { double, double } %32, 1
  store double %35, ptr %34, align 8
  %.sroa.076.0.copyload = load double, ptr %28, align 16
  %.sroa.277.0.copyload = load double, ptr %.sroa.281.0..sroa_idx, align 8, !tbaa !5
  %36 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %.sroa.076.0.copyload, double %.sroa.277.0.copyload)
  %37 = extractvalue { double, double } %36, 0
  store double %37, ptr %11, align 16
  %38 = getelementptr inbounds i8, ptr %11, i64 8
  %39 = extractvalue { double, double } %36, 1
  store double %39, ptr %38, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %40 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %23, double %5, double %6)
  %41 = extractvalue { double, double } %40, 0
  store double %41, ptr %14, align 16
  %42 = getelementptr inbounds i8, ptr %14, i64 8
  %43 = extractvalue { double, double } %40, 1
  store double %43, ptr %42, align 8
  %.sroa.072.0.copyload = load double, ptr %28, align 16
  %.sroa.273.0.copyload = load double, ptr %.sroa.281.0..sroa_idx, align 8, !tbaa !5
  %44 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %.sroa.072.0.copyload, double %.sroa.273.0.copyload)
  %45 = extractvalue { double, double } %44, 0
  store double %45, ptr %13, align 16
  %46 = getelementptr inbounds i8, ptr %13, i64 8
  %47 = extractvalue { double, double } %44, 1
  store double %47, ptr %46, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  %48 = getelementptr inbounds i8, ptr %0, i64 132
  %49 = load float, ptr %48, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #9
  %50 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %30, double %31)
  %51 = extractvalue { double, double } %50, 0
  store double %51, ptr %16, align 16
  %52 = getelementptr inbounds i8, ptr %16, i64 8
  %53 = extractvalue { double, double } %50, 1
  store double %53, ptr %52, align 8
  %54 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %30, double %31)
  %55 = extractvalue { double, double } %54, 0
  %56 = extractvalue { double, double } %54, 1
  %57 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %55, double %56)
  %58 = extractvalue { double, double } %57, 0
  %59 = extractvalue { double, double } %57, 1
  %60 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %49, double %58, double %59)
  %61 = extractvalue { double, double } %60, 0
  store double %61, ptr %15, align 16
  %62 = getelementptr inbounds i8, ptr %15, i64 8
  %63 = extractvalue { double, double } %60, 1
  store double %63, ptr %62, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  %64 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %30, double %31)
  %65 = fcmp ule float %64, 0.000000e+00
  %66 = load ptr, ptr %0, align 16, !tbaa !16
  %67 = getelementptr inbounds i8, ptr %66, i64 36
  %68 = load i8, ptr %67, align 4, !tbaa !17
  %69 = icmp ne i8 %68, 0
  %brmerge = or i1 %65, %69
  br i1 %brmerge, label %70, label %208

70:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #9
  %.sroa.056.0.copyload = load double, ptr %11, align 16
  %.sroa.257.0.copyload = load double, ptr %38, align 8, !tbaa !5
  %.sroa.054.0.copyload = load double, ptr %13, align 16
  %.sroa.255.0.copyload = load double, ptr %46, align 8, !tbaa !5
  %71 = call { double, double } @_ZN3JPH12ClosestPoint25GetClosestPointOnTriangleILb0EEENS_4Vec3ES2_S2_S2_Rj(double %30, double %31, double %.sroa.056.0.copyload, double %.sroa.257.0.copyload, double %.sroa.054.0.copyload, double %.sroa.255.0.copyload, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %72 = extractvalue { double, double } %71, 0
  store double %72, ptr %18, align 16
  %73 = getelementptr inbounds i8, ptr %18, i64 8
  %74 = extractvalue { double, double } %71, 1
  store double %74, ptr %73, align 8
  %75 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %18)
  %76 = getelementptr inbounds i8, ptr %0, i64 140
  %77 = load float, ptr %76, align 4, !tbaa !23
  %78 = fcmp ogt float %75, %77
  br i1 %78, label %207, label %79

79:                                               ; preds = %70
  %80 = getelementptr inbounds i8, ptr %0, i64 136
  %81 = load float, ptr %80, align 8, !tbaa !24
  %82 = call noundef float @_ZSt4sqrtf(float noundef %75)
  %83 = fsub float %81, %82
  %84 = fneg float %83
  %85 = getelementptr inbounds i8, ptr %0, i64 8
  %86 = load ptr, ptr %85, align 8, !tbaa !25
  %87 = call noundef float @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %86)
  %88 = fcmp ugt float %87, %84
  br i1 %88, label %89, label %207

89:                                               ; preds = %79
  %90 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %91 = extractvalue { double, double } %90, 0
  %92 = extractvalue { double, double } %90, 1
  %93 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %91, double %92)
  %94 = extractvalue { double, double } %93, 0
  %95 = extractvalue { double, double } %93, 1
  %96 = load float, ptr %80, align 8, !tbaa !24
  %97 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %96, double %94, double %95)
  %98 = extractvalue { double, double } %97, 0
  %99 = extractvalue { double, double } %97, 1
  %100 = load i32, ptr %17, align 4, !tbaa !26
  %.not = icmp eq i32 %100, 0
  br i1 %.not, label %101, label %104

101:                                              ; preds = %89
  %102 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 84)
  br i1 %102, label %103, label %104

103:                                              ; preds = %101
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !27
  br label %104

104:                                              ; preds = %103, %101, %89
  %105 = load ptr, ptr %0, align 16, !tbaa !16
  %106 = load i8, ptr %105, align 16, !tbaa !28
  %107 = icmp eq i8 %106, 0
  %108 = load i32, ptr %17, align 4
  %109 = icmp ne i32 %108, 7
  %or.cond = select i1 %107, i1 %109, i1 false
  br i1 %or.cond, label %110, label %135

110:                                              ; preds = %104
  %111 = zext i32 %108 to i64
  %112 = getelementptr inbounds [7 x i8], ptr @_ZN3JPHL32sClosestFeatureToActiveEdgesMaskE, i64 0, i64 %111
  %113 = load i8, ptr %112, align 1, !tbaa !5
  %114 = and i8 %113, %7
  %115 = icmp eq i8 %114, 0
  br i1 %115, label %116, label %135

116:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  %117 = getelementptr inbounds i8, ptr %0, i64 48
  %118 = getelementptr inbounds i8, ptr %105, i64 16
  %.sroa.042.0.copyload = load double, ptr %118, align 16
  %.sroa.243.0..sroa_idx = getelementptr inbounds i8, ptr %105, i64 24
  %.sroa.243.0.copyload = load double, ptr %.sroa.243.0..sroa_idx, align 8, !tbaa !5
  %119 = call { double, double } @_ZNK3JPH5Mat4421Multiply3x3TransposedENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %117, double %.sroa.042.0.copyload, double %.sroa.243.0.copyload)
  %120 = extractvalue { double, double } %119, 0
  store double %120, ptr %19, align 16
  %121 = getelementptr inbounds i8, ptr %19, i64 8
  %122 = extractvalue { double, double } %119, 1
  store double %122, ptr %121, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #9
  br i1 %65, label %124, label %123

123:                                              ; preds = %116
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %20, ptr noundef nonnull align 16 dereferenceable(16) %15, i64 16, i1 false), !tbaa.struct !29
  br label %129

124:                                              ; preds = %116
  %125 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %15)
  %126 = extractvalue { double, double } %125, 0
  store double %126, ptr %20, align 16
  %127 = getelementptr inbounds i8, ptr %20, i64 8
  %128 = extractvalue { double, double } %125, 1
  store double %128, ptr %127, align 8
  br label %129

129:                                              ; preds = %124, %123
  %130 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %94, double %95)
  %131 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %20)
  %132 = fmul float %130, %131
  %.sroa.038.0.copyload = load double, ptr %20, align 16
  %.sroa.239.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  %.sroa.239.0.copyload = load double, ptr %.sroa.239.0..sroa_idx, align 8, !tbaa !5
  %133 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %.sroa.038.0.copyload, double %.sroa.239.0.copyload)
  %134 = fcmp ult float %132, %133
  %.sroa.049.0.copyload = load double, ptr %20, align 16
  %.sroa.8.0.copyload = load double, ptr %.sroa.239.0..sroa_idx, align 8
  %.sroa.049.0 = select i1 %134, double %94, double %.sroa.049.0.copyload
  %.sroa.8.0 = select i1 %134, double %95, double %.sroa.8.0.copyload
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  br label %135

135:                                              ; preds = %129, %110, %104
  %.sroa.049.1 = phi double [ %.sroa.049.0, %129 ], [ %94, %110 ], [ %94, %104 ]
  %.sroa.8.1 = phi double [ %.sroa.8.0, %129 ], [ %95, %110 ], [ %95, %104 ]
  %136 = getelementptr inbounds i8, ptr %0, i64 48
  %137 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %98, double %99)
  %138 = extractvalue { double, double } %137, 0
  %139 = extractvalue { double, double } %137, 1
  %140 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %136, double %138, double %139)
  %141 = extractvalue { double, double } %140, 0
  %142 = extractvalue { double, double } %140, 1
  %.sroa.027.0.copyload = load double, ptr %18, align 16
  %.sroa.228.0.copyload = load double, ptr %73, align 8, !tbaa !5
  %143 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %.sroa.027.0.copyload, double %.sroa.228.0.copyload)
  %144 = extractvalue { double, double } %143, 0
  %145 = extractvalue { double, double } %143, 1
  %146 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %136, double %144, double %145)
  %147 = extractvalue { double, double } %146, 0
  %148 = extractvalue { double, double } %146, 1
  store double %147, ptr %18, align 16
  store double %148, ptr %73, align 8, !tbaa !5
  %149 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %136, double %.sroa.049.1, double %.sroa.8.1)
  %150 = extractvalue { double, double } %149, 0
  %151 = extractvalue { double, double } %149, 1
  call void @llvm.lifetime.start.p0(i64 1120, ptr nonnull %21) #9
  %.sroa.019.0.copyload = load double, ptr %18, align 16
  %.sroa.220.0.copyload = load double, ptr %73, align 8, !tbaa !5
  %152 = getelementptr inbounds i8, ptr %0, i64 128
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #9
  %153 = load ptr, ptr %85, align 8, !tbaa !25
  %154 = call noundef ptr @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE10GetContextEv(ptr noundef nonnull align 8 dereferenceable(24) %153)
  %155 = call i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef %154)
  store i32 %155, ptr %22, align 4
  call void @_ZN3JPH18CollideShapeResultC2ENS_4Vec3ES1_S1_fRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1120) %21, double %141, double %142, double %.sroa.019.0.copyload, double %.sroa.220.0.copyload, double %150, double %151, float noundef %83, ptr noundef nonnull align 4 dereferenceable(4) %152, 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) #9
  %156 = load ptr, ptr %0, align 16, !tbaa !16
  %157 = getelementptr inbounds i8, ptr %156, i64 1
  %158 = load i8, ptr %157, align 1, !tbaa !30
  %159 = icmp eq i8 %158, 0
  br i1 %159, label %160, label %201

160:                                              ; preds = %135
  %161 = getelementptr inbounds i8, ptr %21, i64 592
  invoke void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE6resizeEj(ptr noundef nonnull align 16 dereferenceable(528) %161, i32 noundef 3)
          to label %162 unwind label %193

162:                                              ; preds = %160
  %163 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %30, double %31)
          to label %164 unwind label %195

164:                                              ; preds = %162
  %165 = extractvalue { double, double } %163, 0
  %166 = extractvalue { double, double } %163, 1
  %167 = invoke { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %136, double %165, double %166)
          to label %168 unwind label %195

168:                                              ; preds = %164
  %169 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EEixEj(ptr noundef nonnull align 16 dereferenceable(528) %161, i32 noundef 0)
          to label %170 unwind label %195

170:                                              ; preds = %168
  %171 = extractvalue { double, double } %167, 1
  %172 = extractvalue { double, double } %167, 0
  store double %172, ptr %169, align 16
  %.sroa.516.0..sroa_idx = getelementptr inbounds i8, ptr %169, i64 8
  store double %171, ptr %.sroa.516.0..sroa_idx, align 8, !tbaa !5
  %.sroa.05.0.copyload = load double, ptr %11, align 16
  %.sroa.26.0.copyload = load double, ptr %38, align 8, !tbaa !5
  %173 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload)
          to label %174 unwind label %197

174:                                              ; preds = %170
  %175 = extractvalue { double, double } %173, 0
  %176 = extractvalue { double, double } %173, 1
  %177 = invoke { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %136, double %175, double %176)
          to label %178 unwind label %197

178:                                              ; preds = %174
  %179 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EEixEj(ptr noundef nonnull align 16 dereferenceable(528) %161, i32 noundef 1)
          to label %180 unwind label %197

180:                                              ; preds = %178
  %181 = extractvalue { double, double } %177, 1
  %182 = extractvalue { double, double } %177, 0
  store double %182, ptr %179, align 16
  %.sroa.510.0..sroa_idx = getelementptr inbounds i8, ptr %179, i64 8
  store double %181, ptr %.sroa.510.0..sroa_idx, align 8, !tbaa !5
  %.sroa.0.0.copyload = load double, ptr %13, align 16
  %.sroa.2.0.copyload = load double, ptr %46, align 8, !tbaa !5
  %183 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
          to label %184 unwind label %199

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

188:                                              ; preds = %184
  %189 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EEixEj(ptr noundef nonnull align 16 dereferenceable(528) %161, i32 noundef 2)
          to label %190 unwind label %199

190:                                              ; preds = %188
  %191 = extractvalue { double, double } %187, 1
  %192 = extractvalue { double, double } %187, 0
  store double %192, ptr %189, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %189, i64 8
  store double %191, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !5
  br label %201

193:                                              ; preds = %201, %160
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %209

195:                                              ; preds = %168, %164, %162
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %209

197:                                              ; preds = %178, %174, %170
  %198 = landingpad { ptr, i32 }
          cleanup
  br label %209

199:                                              ; preds = %188, %184, %180
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %209

201:                                              ; preds = %190, %135
  %202 = load ptr, ptr %85, align 8, !tbaa !25
  %203 = load ptr, ptr %202, align 8, !tbaa !31
  %204 = getelementptr inbounds i8, ptr %203, i64 48
  %205 = load ptr, ptr %204, align 8
  invoke void %205(ptr noundef nonnull align 8 dereferenceable(24) %202, ptr noundef nonnull align 16 dereferenceable(1120) %21)
          to label %206 unwind label %193

206:                                              ; preds = %201
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %21) #9
  call void @llvm.lifetime.end.p0(i64 1120, ptr nonnull %21) #9
  br label %207

207:                                              ; preds = %206, %79, %70
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  br label %208

208:                                              ; preds = %9, %207
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  ret void

209:                                              ; preds = %199, %197, %195, %193
  %.pn = phi { ptr, i32 } [ %194, %193 ], [ %200, %199 ], [ %198, %197 ], [ %196, %195 ]
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %21) #9
  call void @llvm.lifetime.end.p0(i64 1120, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  resume { ptr, i32 } %.pn
}

; 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 } @_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 #6 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollideShapeResultC2ENS_4Vec3ES1_S1_fRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1120), double, double, double, double, double, double, float noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE6resizeEj(ptr noundef nonnull align 16 dereferenceable(528), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH11StaticArrayINS_4Vec3ELj32EEixEj(ptr noundef nonnull align 16 dereferenceable(528), i32 noundef) 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 #7 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { 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 #9 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !15, i64 132}
!9 = !{!"_ZTSN3JPH24CollideSphereVsTrianglesE", !10, i64 0, !10, i64 8, !10, i64 16, !11, i64 32, !12, i64 48, !11, i64 112, !13, i64 128, !15, i64 132, !15, i64 136, !15, i64 140}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"_ZTSN3JPH4Vec3E", !6, i64 0}
!12 = !{!"_ZTSN3JPH5Mat44E", !6, i64 0}
!13 = !{!"_ZTSN3JPH10SubShapeIDE", !14, i64 0}
!14 = !{!"int", !6, i64 0}
!15 = !{!"float", !6, i64 0}
!16 = !{!9, !10, i64 0}
!17 = !{!18, !22, i64 36}
!18 = !{!"_ZTSN3JPH20CollideShapeSettingsE", !19, i64 0, !15, i64 32, !22, i64 36}
!19 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !20, i64 0, !21, i64 1, !15, i64 4, !15, i64 8, !11, i64 16}
!20 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !6, i64 0}
!21 = !{!"_ZTSN3JPH17ECollectFacesModeE", !6, i64 0}
!22 = !{!"_ZTSN3JPH13EBackFaceModeE", !6, i64 0}
!23 = !{!9, !15, i64 140}
!24 = !{!9, !15, i64 136}
!25 = !{!9, !10, i64 8}
!26 = !{!14, !14, i64 0}
!27 = !{i64 2158048853}
!28 = !{!19, !20, i64 0}
!29 = !{i64 0, i64 16, !5}
!30 = !{!19, !21, i64 1}
!31 = !{!32, !32, i64 0}
!32 = !{!"vtable pointer", !7, i64 0}


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