; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/Physics/Collision/Shape (ConvexShape)

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

%"class.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::OrientedBox" = type { %"class.JPH::Mat44", %"class.JPH::Vec3" }
%"class.JPH::EPAPenetrationDepth" = type { %"class.JPH::GJKClosestPoint", float, [12 x i8] }
%"class.JPH::GJKClosestPoint" = type <{ [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], i32, [12 x i8] }>
%"class.JPH::ConvexShape::SupportBuffer" = type { [4160 x i8] }
%"struct.JPH::TransformedConvexObject" = type <{ %"class.JPH::Mat44", ptr, [8 x i8] }>
%"struct.JPH::AddConvexRadius" = type <{ ptr, float, [4 x i8] }>
%"class.JPH::CollideShapeResult" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, %"class.JPH::SubShapeID", %"class.JPH::SubShapeID", %"class.JPH::BodyID", %"class.JPH::StaticArray.7", %"class.JPH::StaticArray.7" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::StaticArray.7" = 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::CollideShapeSettings" = type <{ %"class.JPH::CollideSettingsBase", float, i8, [11 x i8] }>
%"class.JPH::CollideSettingsBase" = type { i8, i8, float, float, %"class.JPH::Vec3" }

@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 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: mustprogress uwtable
define dso_local void @_ZN3JPH11ConvexShape22sCollideConvexVsConvexEPKNS_5ShapeES3_NS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_17SubShapeIDCreatorESA_RKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef %0, ptr noundef %1, double %2, double %3, double %4, double %5, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 16 dereferenceable(37) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(12) %12) #1 align 2 personality ptr @__gxx_personality_v0 {
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"struct.JPH::AssertLastParam", align 1
  %26 = alloca %"struct.JPH::AssertLastParam", align 1
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"class.JPH::Mat44", align 16
  %30 = alloca %"class.JPH::Mat44", align 16
  %31 = alloca %"class.JPH::AABox", align 16
  %32 = alloca %"class.JPH::AABox", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::AABox", align 16
  %36 = alloca %"class.JPH::AABox", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::OrientedBox", align 16
  %39 = alloca i32, align 4
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::EPAPenetrationDepth", align 16
  %45 = alloca i32, align 4
  %46 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %47 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %48 = alloca ptr, align 8
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca ptr, align 8
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"struct.JPH::TransformedConvexObject", align 16
  %53 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %54 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %55 = alloca ptr, align 8
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca ptr, align 8
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca %"struct.JPH::AddConvexRadius", align 8
  %60 = alloca %"struct.JPH::TransformedConvexObject", align 16
  %61 = alloca float, align 4
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = alloca %"class.JPH::Vec3", align 16
  %64 = alloca float, align 4
  %65 = alloca %"class.JPH::Vec3", align 16
  %66 = alloca %"class.JPH::Vec3", align 16
  %67 = alloca %"class.JPH::Vec3", align 16
  %68 = alloca %"class.JPH::Vec3", align 16
  %69 = alloca %"class.JPH::Vec3", align 16
  %70 = alloca %"class.JPH::Vec3", align 16
  %71 = alloca %"class.JPH::Vec3", align 16
  %72 = alloca %"class.JPH::CollideShapeResult", 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::BodyID", align 4
  %77 = alloca %"class.JPH::SubShapeID", align 4
  %78 = alloca %"class.JPH::Vec3", align 16
  %79 = alloca ptr, align 8
  %80 = alloca i32, align 4
  %81 = alloca %"class.JPH::Vec3", align 16
  %82 = alloca %"class.JPH::SubShapeID", align 4
  %83 = alloca %"class.JPH::Vec3", align 16
  %84 = alloca %"class.JPH::Vec3", align 16
  %85 = alloca %"class.JPH::Vec3", align 16
  %86 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  store double %2, ptr %86, align 16
  %87 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  store double %3, ptr %87, align 8
  %88 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  store double %4, ptr %88, align 16
  %89 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  store double %5, ptr %89, align 8
  store ptr %0, ptr %16, align 8, !tbaa !5
  store ptr %1, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  store ptr %11, ptr %23, align 8, !tbaa !5
  store ptr %12, ptr %24, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %13
  %91 = load ptr, ptr %16, align 8, !tbaa !5
  %92 = call noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26) %91)
  %93 = icmp eq i8 %92, 0
  br i1 %93, label %97, label %94

94:                                               ; preds = %90
  %95 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 50)
  br i1 %95, label %96, label %97

96:                                               ; preds = %94
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #11, !srcloc !9
  br label %97

97:                                               ; preds = %96, %94, %90
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %17, align 8, !tbaa !5
  %101 = call noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26) %100)
  %102 = icmp eq i8 %101, 0
  br i1 %102, label %106, label %103

103:                                              ; preds = %99
  %104 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 51)
  br i1 %104, label %105, label %106

105:                                              ; preds = %103
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #11, !srcloc !10
  br label %106

106:                                              ; preds = %105, %103, %99
  br label %107

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #11
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %108, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #11
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %109, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #11
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %29, ptr noundef nonnull align 16 dereferenceable(64) %110)
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #11
  %111 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %30, ptr noundef nonnull align 16 dereferenceable(64) %29, ptr noundef nonnull align 16 dereferenceable(64) %111)
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #11
  %112 = load ptr, ptr %27, align 8, !tbaa !5
  %113 = load ptr, ptr %112, align 8, !tbaa !11
  %114 = getelementptr inbounds ptr, ptr %113, i64 4
  %115 = load ptr, ptr %114, align 8
  call void %115(ptr dead_on_unwind writable sret(%"class.JPH::AABox") align 16 %32, ptr noundef nonnull align 8 dereferenceable(26) %112)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !13
  %116 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %117 = load double, ptr %116, align 16
  %118 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %119 = load double, ptr %118, align 8
  call void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::AABox") align 16 %31, ptr noundef nonnull align 16 dereferenceable(32) %32, double %117, double %119)
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #11
  %120 = load ptr, ptr %22, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.JPH::CollideShapeSettings", ptr %120, i32 0, i32 1
  %122 = load float, ptr %121, align 16, !tbaa !15
  %123 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %122)
  %124 = getelementptr inbounds %"class.JPH::Vec3", ptr %34, i32 0, i32 0
  %125 = getelementptr inbounds %union.anon.4, ptr %124, i32 0, i32 0
  %126 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 0
  %127 = extractvalue { double, double } %123, 0
  store double %127, ptr %126, align 16
  %128 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 1
  %129 = extractvalue { double, double } %123, 1
  store double %129, ptr %128, align 8
  %130 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %131 = load double, ptr %130, align 16
  %132 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %133 = load double, ptr %132, align 8
  call void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %31, double %131, double %133)
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #11
  %134 = load ptr, ptr %28, align 8, !tbaa !5
  %135 = load ptr, ptr %134, align 8, !tbaa !11
  %136 = getelementptr inbounds ptr, ptr %135, i64 4
  %137 = load ptr, ptr %136, align 8
  call void %137(ptr dead_on_unwind writable sret(%"class.JPH::AABox") align 16 %36, ptr noundef nonnull align 8 dereferenceable(26) %134)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !13
  %138 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %139 = load double, ptr %138, align 16
  %140 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %141 = load double, ptr %140, align 8
  call void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::AABox") align 16 %35, ptr noundef nonnull align 16 dereferenceable(32) %36, double %139, double %141)
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #11
  call void @llvm.lifetime.start.p0(i64 80, ptr %38) #11
  call void @_ZN3JPH11OrientedBoxC2ERKNS_5Mat44ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(80) %38, ptr noundef nonnull align 16 dereferenceable(64) %30, ptr noundef nonnull align 16 dereferenceable(32) %35)
  %142 = call noundef zeroext i1 @_ZNK3JPH11OrientedBox8OverlapsERKNS_5AABoxEf(ptr noundef nonnull align 16 dereferenceable(80) %38, ptr noundef nonnull align 16 dereferenceable(32) %31, float noundef 0x3EB0C6F7A0000000)
  %143 = xor i1 %142, true
  call void @llvm.lifetime.end.p0(i64 80, ptr %38) #11
  br i1 %143, label %144, label %145

144:                                              ; preds = %107
  store i32 1, ptr %39, align 4
  br label %409

145:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #11
  %146 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %30)
  %147 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, i32 0, i32 0
  %148 = getelementptr inbounds %union.anon.4, ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds { double, double }, ptr %148, i32 0, i32 0
  %150 = extractvalue { double, double } %146, 0
  store double %150, ptr %149, align 16
  %151 = getelementptr inbounds { double, double }, ptr %148, i32 0, i32 1
  %152 = extractvalue { double, double } %146, 1
  store double %152, ptr %151, align 8
  %153 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %40, float noundef 0x3D71979980000000)
  br i1 %153, label %154, label %162

154:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #11
  %155 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %156 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %157 = getelementptr inbounds %union.anon.4, ptr %156, i32 0, i32 0
  %158 = getelementptr inbounds { double, double }, ptr %157, i32 0, i32 0
  %159 = extractvalue { double, double } %155, 0
  store double %159, ptr %158, align 16
  %160 = getelementptr inbounds { double, double }, ptr %157, i32 0, i32 1
  %161 = extractvalue { double, double } %155, 1
  store double %161, ptr %160, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #11
  br label %162

162:                                              ; preds = %154, %145
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #11
  call void @llvm.lifetime.start.p0(i64 224, ptr %44) #11
  call void @_ZN3JPH19EPAPenetrationDepthC2Ev(ptr noundef nonnull align 16 dereferenceable(212) %44) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #11
  call void @llvm.lifetime.start.p0(i64 4160, ptr %46) #11
  call void @llvm.lifetime.start.p0(i64 4160, ptr %47) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #11
  %163 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %49, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !13
  %164 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %165 = load double, ptr %164, align 16
  %166 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %167 = load double, ptr %166, align 8
  %168 = load ptr, ptr %163, align 8, !tbaa !11
  %169 = getelementptr inbounds ptr, ptr %168, i64 34
  %170 = load ptr, ptr %169, align 8
  %171 = call noundef ptr %170(ptr noundef nonnull align 8 dereferenceable(44) %163, i32 noundef 0, ptr noundef nonnull align 16 dereferenceable(4160) %46, double %165, double %167)
  store ptr %171, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #11
  %172 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !13
  %173 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %174 = load double, ptr %173, align 16
  %175 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %176 = load double, ptr %175, align 8
  %177 = load ptr, ptr %172, align 8, !tbaa !11
  %178 = getelementptr inbounds ptr, ptr %177, i64 34
  %179 = load ptr, ptr %178, align 8
  %180 = call noundef ptr %179(ptr noundef nonnull align 8 dereferenceable(44) %172, i32 noundef 0, ptr noundef nonnull align 16 dereferenceable(4160) %47, double %174, double %176)
  store ptr %180, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %52) #11
  %181 = load ptr, ptr %50, align 8, !tbaa !5
  call void @_ZN3JPH23TransformedConvexObjectINS_11ConvexShape7SupportEEC2ERKNS_5Mat44ERKS2_(ptr noundef nonnull align 16 dereferenceable(72) %52, ptr noundef nonnull align 16 dereferenceable(64) %30, ptr noundef nonnull align 8 dereferenceable(8) %181)
  %182 = load ptr, ptr %48, align 8, !tbaa !5
  %183 = load ptr, ptr %48, align 8, !tbaa !5
  %184 = load ptr, ptr %183, align 8, !tbaa !11
  %185 = getelementptr inbounds ptr, ptr %184, i64 3
  %186 = load ptr, ptr %185, align 8
  %187 = call noundef float %186(ptr noundef nonnull align 8 dereferenceable(8) %183)
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  %189 = getelementptr inbounds %"class.JPH::CollideShapeSettings", ptr %188, i32 0, i32 1
  %190 = load float, ptr %189, align 16, !tbaa !15
  %191 = fadd float %187, %190
  %192 = load ptr, ptr %50, align 8, !tbaa !5
  %193 = load ptr, ptr %192, align 8, !tbaa !11
  %194 = getelementptr inbounds ptr, ptr %193, i64 3
  %195 = load ptr, ptr %194, align 8
  %196 = call noundef float %195(ptr noundef nonnull align 8 dereferenceable(8) %192)
  %197 = load ptr, ptr %22, align 8, !tbaa !5
  %198 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %197, i32 0, i32 2
  %199 = load float, ptr %198, align 4, !tbaa !23
  %200 = call noundef i32 @_ZN3JPH19EPAPenetrationDepth26GetPenetrationDepthStepGJKINS_11ConvexShape7SupportENS_23TransformedConvexObjectIS3_EEEENS0_7EStatusERKT_fRKT0_ffRNS_4Vec3ESE_SE_(ptr noundef nonnull align 16 dereferenceable(212) %44, ptr noundef nonnull align 8 dereferenceable(8) %182, float noundef %191, ptr noundef nonnull align 16 dereferenceable(72) %52, float noundef %196, float noundef %199, ptr noundef nonnull align 16 dereferenceable(16) %40, ptr noundef nonnull align 16 dereferenceable(16) %42, ptr noundef nonnull align 16 dereferenceable(16) %43)
  store i32 %200, ptr %45, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 80, ptr %52) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #11
  call void @llvm.lifetime.end.p0(i64 4160, ptr %47) #11
  call void @llvm.lifetime.end.p0(i64 4160, ptr %46) #11
  %201 = load i32, ptr %45, align 4, !tbaa !24
  switch i32 %201, label %235 [
    i32 1, label %235
    i32 0, label %202
    i32 2, label %203
  ]

202:                                              ; preds = %162
  store i32 1, ptr %39, align 4
  br label %408

203:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4160, ptr %53) #11
  call void @llvm.lifetime.start.p0(i64 4160, ptr %54) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #11
  %204 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !13
  %205 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %206 = load double, ptr %205, align 16
  %207 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %208 = load double, ptr %207, align 8
  %209 = load ptr, ptr %204, align 8, !tbaa !11
  %210 = getelementptr inbounds ptr, ptr %209, i64 34
  %211 = load ptr, ptr %210, align 8
  %212 = call noundef ptr %211(ptr noundef nonnull align 8 dereferenceable(44) %204, i32 noundef 1, ptr noundef nonnull align 16 dereferenceable(4160) %53, double %206, double %208)
  store ptr %212, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #11
  %213 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !13
  %214 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %215 = load double, ptr %214, align 16
  %216 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %217 = load double, ptr %216, align 8
  %218 = load ptr, ptr %213, align 8, !tbaa !11
  %219 = getelementptr inbounds ptr, ptr %218, i64 34
  %220 = load ptr, ptr %219, align 8
  %221 = call noundef ptr %220(ptr noundef nonnull align 8 dereferenceable(44) %213, i32 noundef 1, ptr noundef nonnull align 16 dereferenceable(4160) %54, double %215, double %217)
  store ptr %221, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #11
  %222 = load ptr, ptr %55, align 8, !tbaa !5
  %223 = load ptr, ptr %22, align 8, !tbaa !5
  %224 = getelementptr inbounds %"class.JPH::CollideShapeSettings", ptr %223, i32 0, i32 1
  %225 = load float, ptr %224, align 16, !tbaa !15
  call void @_ZN3JPH15AddConvexRadiusINS_11ConvexShape7SupportEEC2ERKS2_f(ptr noundef nonnull align 8 dereferenceable(12) %59, ptr noundef nonnull align 8 dereferenceable(8) %222, float noundef %225)
  call void @llvm.lifetime.start.p0(i64 80, ptr %60) #11
  %226 = load ptr, ptr %57, align 8, !tbaa !5
  call void @_ZN3JPH23TransformedConvexObjectINS_11ConvexShape7SupportEEC2ERKNS_5Mat44ERKS2_(ptr noundef nonnull align 16 dereferenceable(72) %60, ptr noundef nonnull align 16 dereferenceable(64) %30, ptr noundef nonnull align 8 dereferenceable(8) %226)
  %227 = load ptr, ptr %22, align 8, !tbaa !5
  %228 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %227, i32 0, i32 3
  %229 = load float, ptr %228, align 8, !tbaa !26
  %230 = call noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth26GetPenetrationDepthStepEPAINS_15AddConvexRadiusINS_11ConvexShape7SupportEEENS_23TransformedConvexObjectIS4_EEEEbRKT_RKT0_fRNS_4Vec3ESF_SF_(ptr noundef nonnull align 16 dereferenceable(212) %44, ptr noundef nonnull align 8 dereferenceable(12) %59, ptr noundef nonnull align 16 dereferenceable(72) %60, float noundef %229, ptr noundef nonnull align 16 dereferenceable(16) %40, ptr noundef nonnull align 16 dereferenceable(16) %42, ptr noundef nonnull align 16 dereferenceable(16) %43)
  br i1 %230, label %232, label %231

231:                                              ; preds = %203
  store i32 1, ptr %39, align 4
  br label %233

232:                                              ; preds = %203
  store i32 6, ptr %39, align 4
  br label %233

233:                                              ; preds = %232, %231
  call void @llvm.lifetime.end.p0(i64 80, ptr %60) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #11
  call void @llvm.lifetime.end.p0(i64 4160, ptr %54) #11
  call void @llvm.lifetime.end.p0(i64 4160, ptr %53) #11
  %234 = load i32, ptr %39, align 4
  switch i32 %234, label %408 [
    i32 6, label %235
  ]

235:                                              ; preds = %233, %162, %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %63, ptr align 16 %42, i64 16, i1 false), !tbaa.struct !13
  %236 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %237 = load double, ptr %236, align 16
  %238 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %239 = load double, ptr %238, align 8
  %240 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %43, double %237, double %239)
  %241 = getelementptr inbounds %"class.JPH::Vec3", ptr %62, i32 0, i32 0
  %242 = getelementptr inbounds %union.anon.4, ptr %241, i32 0, i32 0
  %243 = getelementptr inbounds { double, double }, ptr %242, i32 0, i32 0
  %244 = extractvalue { double, double } %240, 0
  store double %244, ptr %243, align 16
  %245 = getelementptr inbounds { double, double }, ptr %242, i32 0, i32 1
  %246 = extractvalue { double, double } %240, 1
  store double %246, ptr %245, align 8
  %247 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %62)
  %248 = load ptr, ptr %22, align 8, !tbaa !5
  %249 = getelementptr inbounds %"class.JPH::CollideShapeSettings", ptr %248, i32 0, i32 1
  %250 = load float, ptr %249, align 16, !tbaa !15
  %251 = fsub float %247, %250
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #11
  store float %251, ptr %61, align 4, !tbaa !27
  %252 = load float, ptr %61, align 4, !tbaa !27
  %253 = fneg float %252
  %254 = load ptr, ptr %23, align 8, !tbaa !5
  %255 = call noundef float @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %254)
  %256 = fcmp oge float %253, %255
  br i1 %256, label %257, label %258

257:                                              ; preds = %235
  store i32 1, ptr %39, align 4
  br label %407

258:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #11
  %259 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %40)
  store float %259, ptr %64, align 4, !tbaa !27
  %260 = load float, ptr %64, align 4, !tbaa !27
  %261 = fcmp ogt float %260, 0.000000e+00
  br i1 %261, label %262, label %280

262:                                              ; preds = %258
  %263 = load ptr, ptr %22, align 8, !tbaa !5
  %264 = getelementptr inbounds %"class.JPH::CollideShapeSettings", ptr %263, i32 0, i32 1
  %265 = load float, ptr %264, align 16, !tbaa !15
  %266 = load float, ptr %64, align 4, !tbaa !27
  %267 = fdiv float %265, %266
  %268 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %40, float noundef %267)
  %269 = getelementptr inbounds %"class.JPH::Vec3", ptr %65, i32 0, i32 0
  %270 = getelementptr inbounds %union.anon.4, ptr %269, i32 0, i32 0
  %271 = getelementptr inbounds { double, double }, ptr %270, i32 0, i32 0
  %272 = extractvalue { double, double } %268, 0
  store double %272, ptr %271, align 16
  %273 = getelementptr inbounds { double, double }, ptr %270, i32 0, i32 1
  %274 = extractvalue { double, double } %268, 1
  store double %274, ptr %273, align 8
  %275 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 0
  %276 = load double, ptr %275, align 16
  %277 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 1
  %278 = load double, ptr %277, align 8
  %279 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %42, double %276, double %278)
  br label %280

280:                                              ; preds = %262, %258
  call void @llvm.lifetime.start.p0(i64 16, ptr %66) #11
  %281 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %67, ptr align 16 %42, i64 16, i1 false), !tbaa.struct !13
  %282 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %283 = load double, ptr %282, align 16
  %284 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %285 = load double, ptr %284, align 8
  %286 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %281, double %283, double %285)
  %287 = getelementptr inbounds %"class.JPH::Vec3", ptr %66, i32 0, i32 0
  %288 = getelementptr inbounds %union.anon.4, ptr %287, i32 0, i32 0
  %289 = getelementptr inbounds { double, double }, ptr %288, i32 0, i32 0
  %290 = extractvalue { double, double } %286, 0
  store double %290, ptr %289, align 16
  %291 = getelementptr inbounds { double, double }, ptr %288, i32 0, i32 1
  %292 = extractvalue { double, double } %286, 1
  store double %292, ptr %291, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %66, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %66) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %68) #11
  %293 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %69, ptr align 16 %43, i64 16, i1 false), !tbaa.struct !13
  %294 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 0
  %295 = load double, ptr %294, align 16
  %296 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 1
  %297 = load double, ptr %296, align 8
  %298 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %293, double %295, double %297)
  %299 = getelementptr inbounds %"class.JPH::Vec3", ptr %68, i32 0, i32 0
  %300 = getelementptr inbounds %union.anon.4, ptr %299, i32 0, i32 0
  %301 = getelementptr inbounds { double, double }, ptr %300, i32 0, i32 0
  %302 = extractvalue { double, double } %298, 0
  store double %302, ptr %301, align 16
  %303 = getelementptr inbounds { double, double }, ptr %300, i32 0, i32 1
  %304 = extractvalue { double, double } %298, 1
  store double %304, ptr %303, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %68, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %70) #11
  %305 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %71, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !13
  %306 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 0
  %307 = load double, ptr %306, align 16
  %308 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 1
  %309 = load double, ptr %308, align 8
  %310 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %305, double %307, double %309)
  %311 = getelementptr inbounds %"class.JPH::Vec3", ptr %70, i32 0, i32 0
  %312 = getelementptr inbounds %union.anon.4, ptr %311, i32 0, i32 0
  %313 = getelementptr inbounds { double, double }, ptr %312, i32 0, i32 0
  %314 = extractvalue { double, double } %310, 0
  store double %314, ptr %313, align 16
  %315 = getelementptr inbounds { double, double }, ptr %312, i32 0, i32 1
  %316 = extractvalue { double, double } %310, 1
  store double %316, ptr %315, align 8
  call void @llvm.lifetime.start.p0(i64 1120, ptr %72) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %73, ptr align 16 %42, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %74, ptr align 16 %43, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %75, ptr align 16 %70, i64 16, i1 false), !tbaa.struct !13
  %317 = load float, ptr %61, align 4, !tbaa !27
  %318 = load ptr, ptr %20, align 8, !tbaa !5
  %319 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %318)
  %320 = load ptr, ptr %21, align 8, !tbaa !5
  %321 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %320)
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #11
  %322 = load ptr, ptr %23, align 8, !tbaa !5
  %323 = call noundef ptr @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE10GetContextEv(ptr noundef nonnull align 8 dereferenceable(24) %322)
  %324 = call i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef %323)
  %325 = getelementptr inbounds %"class.JPH::BodyID", ptr %76, i32 0, i32 0
  store i32 %324, ptr %325, align 4
  %326 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %327 = load double, ptr %326, align 16
  %328 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %329 = load double, ptr %328, align 8
  %330 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 0
  %331 = load double, ptr %330, align 16
  %332 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 1
  %333 = load double, ptr %332, align 8
  %334 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 0
  %335 = load double, ptr %334, align 16
  %336 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 1
  %337 = load double, ptr %336, align 8
  call void @_ZN3JPH18CollideShapeResultC2ENS_4Vec3ES1_S1_fRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1120) %72, double %327, double %329, double %331, double %333, double %335, double %337, float noundef %317, ptr noundef nonnull align 4 dereferenceable(4) %319, ptr noundef nonnull align 4 dereferenceable(4) %321, ptr noundef nonnull align 4 dereferenceable(4) %76)
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #11
  %338 = load ptr, ptr %22, align 8, !tbaa !5
  %339 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %338, i32 0, i32 1
  %340 = load i8, ptr %339, align 1, !tbaa !28
  %341 = icmp eq i8 %340, 0
  br i1 %341, label %342, label %401

342:                                              ; preds = %280
  %343 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %77) #11
  call void @llvm.memset.p0.i64(ptr align 4 %77, i8 0, i64 4, i1 false)
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %77) #11
  %344 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %40)
          to label %345 unwind label %393

345:                                              ; preds = %342
  %346 = getelementptr inbounds %"class.JPH::Vec3", ptr %78, i32 0, i32 0
  %347 = getelementptr inbounds %union.anon.4, ptr %346, i32 0, i32 0
  %348 = getelementptr inbounds { double, double }, ptr %347, i32 0, i32 0
  %349 = extractvalue { double, double } %344, 0
  store double %349, ptr %348, align 16
  %350 = getelementptr inbounds { double, double }, ptr %347, i32 0, i32 1
  %351 = extractvalue { double, double } %344, 1
  store double %351, ptr %350, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %81, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !13
  %352 = load ptr, ptr %18, align 8, !tbaa !5
  %353 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %72, i32 0, i32 7
  %354 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 0
  %355 = load double, ptr %354, align 16
  %356 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 1
  %357 = load double, ptr %356, align 8
  %358 = getelementptr inbounds { double, double }, ptr %81, i32 0, i32 0
  %359 = load double, ptr %358, align 16
  %360 = getelementptr inbounds { double, double }, ptr %81, i32 0, i32 1
  %361 = load double, ptr %360, align 8
  %362 = load ptr, ptr %343, align 8, !tbaa !11
  %363 = getelementptr inbounds ptr, ptr %362, i64 11
  %364 = load ptr, ptr %363, align 8
  invoke void %364(ptr noundef nonnull align 8 dereferenceable(26) %343, ptr noundef nonnull align 4 dereferenceable(4) %77, double %355, double %357, double %359, double %361, ptr noundef nonnull align 16 dereferenceable(64) %352, ptr noundef nonnull align 16 dereferenceable(528) %353)
          to label %365 unwind label %393

365:                                              ; preds = %345
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #11
  %366 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %82) #11
  call void @llvm.memset.p0.i64(ptr align 4 %82, i8 0, i64 4, i1 false)
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %82) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %84, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !13
  %367 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 0
  %368 = load double, ptr %367, align 16
  %369 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 1
  %370 = load double, ptr %369, align 8
  %371 = invoke { double, double } @_ZNK3JPH5Mat4421Multiply3x3TransposedENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %30, double %368, double %370)
          to label %372 unwind label %397

372:                                              ; preds = %365
  %373 = getelementptr inbounds %"class.JPH::Vec3", ptr %83, i32 0, i32 0
  %374 = getelementptr inbounds %union.anon.4, ptr %373, i32 0, i32 0
  %375 = getelementptr inbounds { double, double }, ptr %374, i32 0, i32 0
  %376 = extractvalue { double, double } %371, 0
  store double %376, ptr %375, align 16
  %377 = getelementptr inbounds { double, double }, ptr %374, i32 0, i32 1
  %378 = extractvalue { double, double } %371, 1
  store double %378, ptr %377, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %85, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !13
  %379 = load ptr, ptr %19, align 8, !tbaa !5
  %380 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %72, i32 0, i32 8
  %381 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 0
  %382 = load double, ptr %381, align 16
  %383 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 1
  %384 = load double, ptr %383, align 8
  %385 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 0
  %386 = load double, ptr %385, align 16
  %387 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 1
  %388 = load double, ptr %387, align 8
  %389 = load ptr, ptr %366, align 8, !tbaa !11
  %390 = getelementptr inbounds ptr, ptr %389, i64 11
  %391 = load ptr, ptr %390, align 8
  invoke void %391(ptr noundef nonnull align 8 dereferenceable(26) %366, ptr noundef nonnull align 4 dereferenceable(4) %82, double %382, double %384, double %386, double %388, ptr noundef nonnull align 16 dereferenceable(64) %379, ptr noundef nonnull align 16 dereferenceable(528) %380)
          to label %392 unwind label %397

392:                                              ; preds = %372
  call void @llvm.lifetime.end.p0(i64 4, ptr %82) #11
  br label %401

393:                                              ; preds = %345, %342
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %79, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %80, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #11
  br label %416

397:                                              ; preds = %372, %365
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %79, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %80, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %82) #11
  br label %416

401:                                              ; preds = %392, %280
  %402 = load ptr, ptr %23, align 8, !tbaa !5
  %403 = load ptr, ptr %402, align 8, !tbaa !11
  %404 = getelementptr inbounds ptr, ptr %403, i64 5
  %405 = load ptr, ptr %404, align 8
  invoke void %405(ptr noundef nonnull align 8 dereferenceable(24) %402, ptr noundef nonnull align 16 dereferenceable(1120) %72)
          to label %406 unwind label %412

406:                                              ; preds = %401
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %72) #11
  call void @llvm.lifetime.end.p0(i64 1120, ptr %72) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #11
  store i32 0, ptr %39, align 4
  br label %407

407:                                              ; preds = %406, %257
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #11
  br label %408

408:                                              ; preds = %407, %233, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 224, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #11
  br label %409

409:                                              ; preds = %408, %144
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  %410 = load i32, ptr %39, align 4
  switch i32 %410, label %422 [
    i32 0, label %411
    i32 1, label %411
  ]

411:                                              ; preds = %409, %409
  ret void

412:                                              ; preds = %401
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %79, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %80, align 4
  br label %416

416:                                              ; preds = %412, %397, %393
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %72) #11
  call void @llvm.lifetime.end.p0(i64 1120, ptr %72) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 224, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  br label %417

417:                                              ; preds = %416
  %418 = load ptr, ptr %79, align 8
  %419 = load i32, ptr %80, align 4
  %420 = insertvalue { ptr, i32 } poison, ptr %418, 0
  %421 = insertvalue { ptr, i32 } %420, i32 %419, 1
  resume { ptr, i32 } %421

422:                                              ; preds = %409
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::AABox") align 16, ptr noundef nonnull align 16 dereferenceable(32), double, double) #1 align 2

; 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) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11OrientedBoxC2ERKNS_5Mat44ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK3JPH11OrientedBox8OverlapsERKNS_5AABoxEf(ptr noundef nonnull align 16 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(32), float noundef) #7

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH23TransformedConvexObjectINS_11ConvexShape7SupportEEC2ERKNS_5Mat44ERKS2_(ptr noundef nonnull align 16 dereferenceable(72), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3JPH19EPAPenetrationDepth26GetPenetrationDepthStepGJKINS_11ConvexShape7SupportENS_23TransformedConvexObjectIS3_EEEENS0_7EStatusERKT_fRKT0_ffRNS_4Vec3ESE_SE_(ptr noundef nonnull align 16 dereferenceable(212), ptr noundef nonnull align 8 dereferenceable(8), float noundef, ptr noundef nonnull align 16 dereferenceable(72), float noundef, float noundef, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15AddConvexRadiusINS_11ConvexShape7SupportEEC2ERKS2_f(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), float noundef) unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth26GetPenetrationDepthStepEPAINS_15AddConvexRadiusINS_11ConvexShape7SupportEEENS_23TransformedConvexObjectIS4_EEEEbRKT_RKT0_fRNS_4Vec3ESF_SF_(ptr noundef nonnull align 16 dereferenceable(212), ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 16 dereferenceable(72), float noundef, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef) #3 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #10

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

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

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

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

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

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

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


; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::OrientedBox" = type { %"class.JPH::Mat44", %"class.JPH::Vec3" }
%"class.JPH::EPAPenetrationDepth" = type { %"class.JPH::GJKClosestPoint", float, [12 x i8] }
%"class.JPH::GJKClosestPoint" = type <{ [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], i32, [12 x i8] }>
%"class.JPH::ConvexShape::SupportBuffer" = type { [4160 x i8] }
%"struct.JPH::TransformedConvexObject" = type <{ %"class.JPH::Mat44", ptr, [8 x i8] }>
%"struct.JPH::AddConvexRadius" = type <{ ptr, float, [4 x i8] }>
%"class.JPH::CollideShapeResult" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, %"class.JPH::SubShapeID", %"class.JPH::SubShapeID", %"class.JPH::BodyID", %"class.JPH::StaticArray.7", %"class.JPH::StaticArray.7" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::StaticArray.7" = 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.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 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 uwtable
define dso_local void @_ZN3JPH11ConvexShape22sCollideConvexVsConvexEPKNS_5ShapeES3_NS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_17SubShapeIDCreatorESA_RKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef nonnull %0, ptr noundef %1, double %2, double %3, double %4, double %5, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr nocapture noundef nonnull readonly align 16 dereferenceable(37) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr nocapture noundef nonnull readnone align 8 dereferenceable(12) %12) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %14 = alloca %"class.JPH::Mat44", align 16
  %15 = alloca %"class.JPH::Mat44", align 16
  %16 = alloca %"class.JPH::AABox", align 16
  %17 = alloca %"class.JPH::AABox", align 16
  %18 = alloca %"class.JPH::AABox", align 16
  %19 = alloca %"class.JPH::AABox", align 16
  %20 = alloca %"class.JPH::OrientedBox", 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::EPAPenetrationDepth", align 16
  %25 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %26 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %27 = alloca %"struct.JPH::TransformedConvexObject", align 16
  %28 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %29 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %30 = alloca %"struct.JPH::AddConvexRadius", align 8
  %31 = alloca %"struct.JPH::TransformedConvexObject", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::CollideShapeResult", align 16
  %34 = alloca %"class.JPH::BodyID", align 4
  %35 = alloca %"class.JPH::SubShapeID", align 4
  %36 = alloca %"class.JPH::SubShapeID", align 4
  %37 = tail call noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26) %0)
  %38 = icmp eq i8 %37, 0
  br i1 %38, label %42, label %39

39:                                               ; preds = %13
  %40 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 50)
  br i1 %40, label %41, label %42

41:                                               ; preds = %39
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !5
  br label %42

42:                                               ; preds = %41, %39, %13
  %43 = tail call noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26) %1)
  %44 = icmp eq i8 %43, 0
  br i1 %44, label %48, label %45

45:                                               ; preds = %42
  %46 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 51)
  br i1 %46, label %47, label %48

47:                                               ; preds = %45
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !6
  br label %48

48:                                               ; preds = %42, %45, %47
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #9
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %14, ptr noundef nonnull align 16 dereferenceable(64) %6)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #9
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %15, ptr noundef nonnull align 16 dereferenceable(64) %14, ptr noundef nonnull align 16 dereferenceable(64) %7)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #9
  %49 = load ptr, ptr %0, align 8, !tbaa !7
  %50 = getelementptr inbounds i8, ptr %49, i64 32
  %51 = load ptr, ptr %50, align 8
  call void %51(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %17, ptr noundef nonnull align 8 dereferenceable(26) %0)
  call void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %16, ptr noundef nonnull align 16 dereferenceable(32) %17, double %2, double %3)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #9
  %52 = getelementptr inbounds i8, ptr %10, i64 32
  %53 = load float, ptr %52, align 16, !tbaa !10
  %54 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %53)
  %55 = extractvalue { double, double } %54, 0
  %56 = extractvalue { double, double } %54, 1
  call void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %16, double %55, double %56)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #9
  %57 = load ptr, ptr %1, align 8, !tbaa !7
  %58 = getelementptr inbounds i8, ptr %57, i64 32
  %59 = load ptr, ptr %58, align 8
  call void %59(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %19, ptr noundef nonnull align 8 dereferenceable(26) %1)
  call void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %18, ptr noundef nonnull align 16 dereferenceable(32) %19, double %4, double %5)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %20) #9
  call void @_ZN3JPH11OrientedBoxC2ERKNS_5Mat44ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(80) %20, ptr noundef nonnull align 16 dereferenceable(64) %15, ptr noundef nonnull align 16 dereferenceable(32) %18)
  %60 = call noundef zeroext i1 @_ZNK3JPH11OrientedBox8OverlapsERKNS_5AABoxEf(ptr noundef nonnull align 16 dereferenceable(80) %20, ptr noundef nonnull align 16 dereferenceable(32) %16, float noundef 0x3EB0C6F7A0000000)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %20) #9
  br i1 %60, label %61, label %173

61:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #9
  %62 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %15)
  %63 = extractvalue { double, double } %62, 0
  store double %63, ptr %21, align 16
  %64 = getelementptr inbounds i8, ptr %21, i64 8
  %65 = extractvalue { double, double } %62, 1
  store double %65, ptr %64, align 8
  %66 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef 0x3D71979980000000)
  br i1 %66, label %67, label %71

67:                                               ; preds = %61
  %68 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %69 = extractvalue { double, double } %68, 0
  %70 = extractvalue { double, double } %68, 1
  store double %69, ptr %21, align 16
  store double %70, ptr %64, align 8, !tbaa !19
  br label %71

71:                                               ; preds = %67, %61
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %24) #9
  call void @_ZN3JPH19EPAPenetrationDepthC2Ev(ptr noundef nonnull align 16 dereferenceable(212) %24) #9
  call void @llvm.lifetime.start.p0(i64 4160, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 4160, ptr nonnull %26) #9
  %72 = load ptr, ptr %0, align 8, !tbaa !7
  %73 = getelementptr inbounds i8, ptr %72, i64 272
  %74 = load ptr, ptr %73, align 8
  %75 = call noundef ptr %74(ptr noundef nonnull align 8 dereferenceable(44) %0, i32 noundef 0, ptr noundef nonnull align 16 dereferenceable(4160) %25, double %2, double %3)
  %76 = load ptr, ptr %1, align 8, !tbaa !7
  %77 = getelementptr inbounds i8, ptr %76, i64 272
  %78 = load ptr, ptr %77, align 8
  %79 = call noundef ptr %78(ptr noundef nonnull align 8 dereferenceable(44) %1, i32 noundef 0, ptr noundef nonnull align 16 dereferenceable(4160) %26, double %4, double %5)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %27) #9
  call void @_ZN3JPH23TransformedConvexObjectINS_11ConvexShape7SupportEEC2ERKNS_5Mat44ERKS2_(ptr noundef nonnull align 16 dereferenceable(72) %27, ptr noundef nonnull align 16 dereferenceable(64) %15, ptr noundef nonnull align 8 dereferenceable(8) %79)
  %80 = load ptr, ptr %75, align 8, !tbaa !7
  %81 = getelementptr inbounds i8, ptr %80, i64 24
  %82 = load ptr, ptr %81, align 8
  %83 = call noundef float %82(ptr noundef nonnull align 8 dereferenceable(8) %75)
  %84 = load float, ptr %52, align 16, !tbaa !10
  %85 = fadd float %83, %84
  %86 = load ptr, ptr %79, align 8, !tbaa !7
  %87 = getelementptr inbounds i8, ptr %86, i64 24
  %88 = load ptr, ptr %87, align 8
  %89 = call noundef float %88(ptr noundef nonnull align 8 dereferenceable(8) %79)
  %90 = getelementptr inbounds i8, ptr %10, i64 4
  %91 = load float, ptr %90, align 4, !tbaa !20
  %92 = call noundef i32 @_ZN3JPH19EPAPenetrationDepth26GetPenetrationDepthStepGJKINS_11ConvexShape7SupportENS_23TransformedConvexObjectIS3_EEEENS0_7EStatusERKT_fRKT0_ffRNS_4Vec3ESE_SE_(ptr noundef nonnull align 16 dereferenceable(212) %24, ptr noundef nonnull align 8 dereferenceable(8) %75, float noundef %85, ptr noundef nonnull align 16 dereferenceable(72) %27, float noundef %89, float noundef %91, ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 16 dereferenceable(16) %23)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 4160, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 4160, ptr nonnull %25) #9
  switch i32 %92, label %106 [
    i32 2, label %93
    i32 0, label %172
  ]

93:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4160, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 4160, ptr nonnull %29) #9
  %94 = load ptr, ptr %0, align 8, !tbaa !7
  %95 = getelementptr inbounds i8, ptr %94, i64 272
  %96 = load ptr, ptr %95, align 8
  %97 = call noundef ptr %96(ptr noundef nonnull align 8 dereferenceable(44) %0, i32 noundef 1, ptr noundef nonnull align 16 dereferenceable(4160) %28, double %2, double %3)
  %98 = load ptr, ptr %1, align 8, !tbaa !7
  %99 = getelementptr inbounds i8, ptr %98, i64 272
  %100 = load ptr, ptr %99, align 8
  %101 = call noundef ptr %100(ptr noundef nonnull align 8 dereferenceable(44) %1, i32 noundef 1, ptr noundef nonnull align 16 dereferenceable(4160) %29, double %4, double %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #9
  %102 = load float, ptr %52, align 16, !tbaa !10
  call void @_ZN3JPH15AddConvexRadiusINS_11ConvexShape7SupportEEC2ERKS2_f(ptr noundef nonnull align 8 dereferenceable(12) %30, ptr noundef nonnull align 8 dereferenceable(8) %97, float noundef %102)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %31) #9
  call void @_ZN3JPH23TransformedConvexObjectINS_11ConvexShape7SupportEEC2ERKNS_5Mat44ERKS2_(ptr noundef nonnull align 16 dereferenceable(72) %31, ptr noundef nonnull align 16 dereferenceable(64) %15, ptr noundef nonnull align 8 dereferenceable(8) %101)
  %103 = getelementptr inbounds i8, ptr %10, i64 8
  %104 = load float, ptr %103, align 8, !tbaa !21
  %105 = call noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth26GetPenetrationDepthStepEPAINS_15AddConvexRadiusINS_11ConvexShape7SupportEEENS_23TransformedConvexObjectIS4_EEEEbRKT_RKT0_fRNS_4Vec3ESF_SF_(ptr noundef nonnull align 16 dereferenceable(212) %24, ptr noundef nonnull align 8 dereferenceable(12) %30, ptr noundef nonnull align 16 dereferenceable(72) %31, float noundef %104, ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 16 dereferenceable(16) %23)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 4160, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 4160, ptr nonnull %28) #9
  br i1 %105, label %106, label %172

106:                                              ; preds = %93, %71
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #9
  %.sroa.029.0.copyload = load double, ptr %22, align 16
  %.sroa.230.0..sroa_idx = getelementptr inbounds i8, ptr %22, i64 8
  %.sroa.230.0.copyload = load double, ptr %.sroa.230.0..sroa_idx, align 8, !tbaa !19
  %107 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %23, double %.sroa.029.0.copyload, double %.sroa.230.0.copyload)
  %108 = extractvalue { double, double } %107, 0
  store double %108, ptr %32, align 16
  %109 = getelementptr inbounds i8, ptr %32, i64 8
  %110 = extractvalue { double, double } %107, 1
  store double %110, ptr %109, align 8
  %111 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %32)
  %112 = load float, ptr %52, align 16, !tbaa !10
  %113 = fsub float %111, %112
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #9
  %114 = fneg float %113
  %115 = call noundef float @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %116 = fcmp ugt float %115, %114
  br i1 %116, label %117, label %172

117:                                              ; preds = %106
  %118 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %21)
  %119 = fcmp ogt float %118, 0.000000e+00
  br i1 %119, label %120, label %127

120:                                              ; preds = %117
  %121 = load float, ptr %52, align 16, !tbaa !10
  %122 = fdiv float %121, %118
  %123 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef %122)
  %124 = extractvalue { double, double } %123, 0
  %125 = extractvalue { double, double } %123, 1
  %126 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %22, double %124, double %125)
  br label %127

127:                                              ; preds = %120, %117
  %.sroa.021.0.copyload = load double, ptr %22, align 16
  %.sroa.222.0.copyload = load double, ptr %.sroa.230.0..sroa_idx, align 8, !tbaa !19
  %128 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %.sroa.021.0.copyload, double %.sroa.222.0.copyload)
  %129 = extractvalue { double, double } %128, 0
  %130 = extractvalue { double, double } %128, 1
  store double %129, ptr %22, align 16
  store double %130, ptr %.sroa.230.0..sroa_idx, align 8, !tbaa !19
  %.sroa.018.0.copyload = load double, ptr %23, align 16
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 8
  %.sroa.219.0.copyload = load double, ptr %.sroa.219.0..sroa_idx, align 8, !tbaa !19
  %131 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %.sroa.018.0.copyload, double %.sroa.219.0.copyload)
  %132 = extractvalue { double, double } %131, 0
  %133 = extractvalue { double, double } %131, 1
  store double %132, ptr %23, align 16
  store double %133, ptr %.sroa.219.0..sroa_idx, align 8, !tbaa !19
  %.sroa.015.0.copyload = load double, ptr %21, align 16
  %.sroa.216.0.copyload = load double, ptr %64, align 8, !tbaa !19
  %134 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %.sroa.015.0.copyload, double %.sroa.216.0.copyload)
  %135 = extractvalue { double, double } %134, 0
  %136 = extractvalue { double, double } %134, 1
  call void @llvm.lifetime.start.p0(i64 1120, ptr nonnull %33) #9
  %.sroa.013.0.copyload = load double, ptr %22, align 16
  %.sroa.214.0.copyload = load double, ptr %.sroa.230.0..sroa_idx, align 8, !tbaa !19
  %.sroa.011.0.copyload = load double, ptr %23, align 16
  %.sroa.212.0.copyload = load double, ptr %.sroa.219.0..sroa_idx, align 8, !tbaa !19
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #9
  %139 = call noundef ptr @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE10GetContextEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %140 = call i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef %139)
  store i32 %140, ptr %34, align 4
  call void @_ZN3JPH18CollideShapeResultC2ENS_4Vec3ES1_S1_fRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1120) %33, double %.sroa.013.0.copyload, double %.sroa.214.0.copyload, double %.sroa.011.0.copyload, double %.sroa.212.0.copyload, double %135, double %136, float noundef %113, ptr noundef nonnull align 4 dereferenceable(4) %137, ptr noundef nonnull align 4 dereferenceable(4) %138, ptr noundef nonnull align 4 dereferenceable(4) %34)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #9
  %141 = getelementptr inbounds i8, ptr %10, i64 1
  %142 = load i8, ptr %141, align 1, !tbaa !22
  %143 = icmp eq i8 %142, 0
  br i1 %143, label %144, label %167

144:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #9
  store i32 0, ptr %35, align 4
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %35) #9
  %145 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %21)
          to label %146 unwind label %163

146:                                              ; preds = %144
  %147 = extractvalue { double, double } %145, 0
  %148 = extractvalue { double, double } %145, 1
  %149 = getelementptr inbounds i8, ptr %33, i64 64
  %150 = load ptr, ptr %0, align 8, !tbaa !7
  %151 = getelementptr inbounds i8, ptr %150, i64 88
  %152 = load ptr, ptr %151, align 8
  invoke void %152(ptr noundef nonnull align 8 dereferenceable(26) %0, ptr noundef nonnull align 4 dereferenceable(4) %35, double %147, double %148, double %2, double %3, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(528) %149)
          to label %153 unwind label %163

153:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #9
  store i32 0, ptr %36, align 4
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %36) #9
  %.sroa.01.0.copyload = load double, ptr %21, align 16
  %.sroa.22.0.copyload = load double, ptr %64, align 8, !tbaa !19
  %154 = invoke { double, double } @_ZNK3JPH5Mat4421Multiply3x3TransposedENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %15, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload)
          to label %155 unwind label %165

155:                                              ; preds = %153
  %156 = extractvalue { double, double } %154, 0
  %157 = extractvalue { double, double } %154, 1
  %158 = getelementptr inbounds i8, ptr %33, i64 592
  %159 = load ptr, ptr %1, align 8, !tbaa !7
  %160 = getelementptr inbounds i8, ptr %159, i64 88
  %161 = load ptr, ptr %160, align 8
  invoke void %161(ptr noundef nonnull align 8 dereferenceable(26) %1, ptr noundef nonnull align 4 dereferenceable(4) %36, double %156, double %157, double %4, double %5, ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 16 dereferenceable(528) %158)
          to label %162 unwind label %165

162:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  br label %167

163:                                              ; preds = %146, %144
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #9
  br label %176

165:                                              ; preds = %155, %153
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  br label %176

167:                                              ; preds = %162, %127
  %168 = load ptr, ptr %11, align 8, !tbaa !7
  %169 = getelementptr inbounds i8, ptr %168, i64 40
  %170 = load ptr, ptr %169, align 8
  invoke void %170(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 16 dereferenceable(1120) %33)
          to label %171 unwind label %174

171:                                              ; preds = %167
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %33) #9
  call void @llvm.lifetime.end.p0(i64 1120, ptr nonnull %33) #9
  br label %172

172:                                              ; preds = %171, %106, %71, %93
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  br label %173

173:                                              ; preds = %48, %172
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #9
  ret void

174:                                              ; preds = %167
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %176

176:                                              ; preds = %174, %165, %163
  %.pn = phi { ptr, i32 } [ %175, %174 ], [ %166, %165 ], [ %164, %163 ]
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %33) #9
  call void @llvm.lifetime.end.p0(i64 1120, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #9
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26)) local_unnamed_addr #2 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 #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::AABox") align 16, ptr noundef nonnull align 16 dereferenceable(32), double, double) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11OrientedBoxC2ERKNS_5Mat44ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK3JPH11OrientedBox8OverlapsERKNS_5AABoxEf(ptr noundef nonnull align 16 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(32), float noundef) local_unnamed_addr #6

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH23TransformedConvexObjectINS_11ConvexShape7SupportEEC2ERKNS_5Mat44ERKS2_(ptr noundef nonnull align 16 dereferenceable(72), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3JPH19EPAPenetrationDepth26GetPenetrationDepthStepGJKINS_11ConvexShape7SupportENS_23TransformedConvexObjectIS3_EEEENS0_7EStatusERKT_fRKT0_ffRNS_4Vec3ESE_SE_(ptr noundef nonnull align 16 dereferenceable(212), ptr noundef nonnull align 8 dereferenceable(8), float noundef, ptr noundef nonnull align 16 dereferenceable(72), float noundef, float noundef, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15AddConvexRadiusINS_11ConvexShape7SupportEEC2ERKS2_f(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), float noundef) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth26GetPenetrationDepthStepEPAINS_15AddConvexRadiusINS_11ConvexShape7SupportEEENS_23TransformedConvexObjectIS4_EEEEbRKT_RKT0_fRNS_4Vec3ESF_SF_(ptr noundef nonnull align 16 dereferenceable(212), ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 16 dereferenceable(72), float noundef, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 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 #5 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #8 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 #5 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 #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef) local_unnamed_addr #3 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 #7 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 #7 align 2

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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 = { 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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{i64 2158246411}
!6 = !{i64 2158246804}
!7 = !{!8, !8, i64 0}
!8 = !{!"vtable pointer", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !16, i64 32}
!11 = !{!"_ZTSN3JPH20CollideShapeSettingsE", !12, i64 0, !16, i64 32, !18, i64 36}
!12 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !13, i64 0, !15, i64 1, !16, i64 4, !16, i64 8, !17, i64 16}
!13 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !14, i64 0}
!14 = !{!"omnipotent char", !9, i64 0}
!15 = !{!"_ZTSN3JPH17ECollectFacesModeE", !14, i64 0}
!16 = !{!"float", !14, i64 0}
!17 = !{!"_ZTSN3JPH4Vec3E", !14, i64 0}
!18 = !{!"_ZTSN3JPH13EBackFaceModeE", !14, i64 0}
!19 = !{!14, !14, i64 0}
!20 = !{!12, !16, i64 4}
!21 = !{!12, !16, i64 8}
!22 = !{!12, !15, i64 1}


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