; LLVM IR from jrouwe/JoltPhysics :: 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 [97 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 float, align 4
  %32 = alloca %"class.JPH::AABox", align 16
  %33 = alloca %"class.JPH::AABox", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::AABox", align 16
  %37 = alloca %"class.JPH::AABox", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::OrientedBox", align 16
  %40 = alloca i32, align 4
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::EPAPenetrationDepth", align 16
  %46 = alloca i32, align 4
  %47 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %48 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %49 = alloca ptr, align 8
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca ptr, align 8
  %52 = alloca %"class.JPH::Vec3", align 16
  %53 = alloca %"struct.JPH::TransformedConvexObject", align 16
  %54 = alloca float, align 4
  %55 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %56 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %57 = alloca ptr, align 8
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca ptr, align 8
  %60 = alloca %"class.JPH::Vec3", align 16
  %61 = alloca %"struct.JPH::AddConvexRadius", align 8
  %62 = alloca %"struct.JPH::TransformedConvexObject", align 16
  %63 = alloca float, align 4
  %64 = alloca %"class.JPH::Vec3", align 16
  %65 = alloca %"class.JPH::Vec3", align 16
  %66 = alloca float, align 4
  %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::Vec3", align 16
  %73 = alloca %"class.JPH::Vec3", align 16
  %74 = alloca %"class.JPH::CollideShapeResult", align 16
  %75 = alloca %"class.JPH::Vec3", align 16
  %76 = alloca %"class.JPH::Vec3", align 16
  %77 = alloca %"class.JPH::Vec3", align 16
  %78 = alloca %"class.JPH::BodyID", align 4
  %79 = alloca %"class.JPH::SubShapeID", align 4
  %80 = alloca %"class.JPH::Vec3", align 16
  %81 = alloca ptr, align 8
  %82 = alloca i32, align 4
  %83 = alloca %"class.JPH::Vec3", align 16
  %84 = alloca %"class.JPH::SubShapeID", align 4
  %85 = alloca %"class.JPH::Vec3", align 16
  %86 = alloca %"class.JPH::Vec3", align 16
  %87 = alloca %"class.JPH::Vec3", align 16
  %88 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  store double %2, ptr %88, align 16
  %89 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  store double %3, ptr %89, align 8
  %90 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  store double %4, ptr %90, align 16
  %91 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  store double %5, ptr %91, 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 %92

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

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

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

99:                                               ; preds = %98, %96, %92
  br label %100

100:                                              ; preds = %99
  br label %101

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

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

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

108:                                              ; preds = %107, %105, %101
  br label %109

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

147:                                              ; preds = %109
  store i32 1, ptr %40, align 4
  br label %406

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

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

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

203:                                              ; preds = %165
  store i32 1, ptr %40, align 4
  br label %405

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

232:                                              ; preds = %204
  store i32 1, ptr %40, align 4
  br label %234

233:                                              ; preds = %204
  store i32 6, ptr %40, align 4
  br label %234

234:                                              ; preds = %233, %232
  call void @llvm.lifetime.end.p0(i64 80, ptr %62) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #11
  call void @llvm.lifetime.end.p0(i64 4160, ptr %56) #11
  call void @llvm.lifetime.end.p0(i64 4160, ptr %55) #11
  %235 = load i32, ptr %40, align 4
  switch i32 %235, label %405 [
    i32 6, label %236
  ]

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

256:                                              ; preds = %236
  store i32 1, ptr %40, align 4
  br label %404

257:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #11
  %258 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %41)
  store float %258, ptr %66, align 4, !tbaa !19
  %259 = load float, ptr %66, align 4, !tbaa !19
  %260 = fcmp ogt float %259, 0.000000e+00
  br i1 %260, label %261, label %277

261:                                              ; preds = %257
  %262 = load float, ptr %31, align 4, !tbaa !19
  %263 = load float, ptr %66, align 4, !tbaa !19
  %264 = fdiv float %262, %263
  %265 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %41, float noundef %264)
  %266 = getelementptr inbounds %"class.JPH::Vec3", ptr %67, i32 0, i32 0
  %267 = getelementptr inbounds %union.anon.4, ptr %266, i32 0, i32 0
  %268 = getelementptr inbounds { double, double }, ptr %267, i32 0, i32 0
  %269 = extractvalue { double, double } %265, 0
  store double %269, ptr %268, align 16
  %270 = getelementptr inbounds { double, double }, ptr %267, i32 0, i32 1
  %271 = extractvalue { double, double } %265, 1
  store double %271, ptr %270, align 8
  %272 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %273 = load double, ptr %272, align 16
  %274 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %275 = load double, ptr %274, align 8
  %276 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %43, double %273, double %275)
  br label %277

277:                                              ; preds = %261, %257
  call void @llvm.lifetime.start.p0(i64 16, ptr %68) #11
  %278 = 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 !22
  %279 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 0
  %280 = load double, ptr %279, align 16
  %281 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 1
  %282 = load double, ptr %281, align 8
  %283 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %278, double %280, double %282)
  %284 = getelementptr inbounds %"class.JPH::Vec3", ptr %68, i32 0, i32 0
  %285 = getelementptr inbounds %union.anon.4, 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
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %68, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %70) #11
  %290 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %71, ptr align 16 %44, i64 16, i1 false), !tbaa.struct !22
  %291 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 0
  %292 = load double, ptr %291, align 16
  %293 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 1
  %294 = load double, ptr %293, align 8
  %295 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %290, double %292, double %294)
  %296 = getelementptr inbounds %"class.JPH::Vec3", ptr %70, i32 0, i32 0
  %297 = getelementptr inbounds %union.anon.4, ptr %296, i32 0, i32 0
  %298 = getelementptr inbounds { double, double }, ptr %297, i32 0, i32 0
  %299 = extractvalue { double, double } %295, 0
  store double %299, ptr %298, align 16
  %300 = getelementptr inbounds { double, double }, ptr %297, i32 0, i32 1
  %301 = extractvalue { double, double } %295, 1
  store double %301, ptr %300, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %70, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %72) #11
  %302 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %73, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !22
  %303 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %304 = load double, ptr %303, align 16
  %305 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %306 = load double, ptr %305, align 8
  %307 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %302, double %304, double %306)
  %308 = getelementptr inbounds %"class.JPH::Vec3", ptr %72, i32 0, i32 0
  %309 = getelementptr inbounds %union.anon.4, ptr %308, i32 0, i32 0
  %310 = getelementptr inbounds { double, double }, ptr %309, i32 0, i32 0
  %311 = extractvalue { double, double } %307, 0
  store double %311, ptr %310, align 16
  %312 = getelementptr inbounds { double, double }, ptr %309, i32 0, i32 1
  %313 = extractvalue { double, double } %307, 1
  store double %313, ptr %312, align 8
  call void @llvm.lifetime.start.p0(i64 1120, ptr %74) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %75, ptr align 16 %43, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %76, ptr align 16 %44, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %77, ptr align 16 %72, i64 16, i1 false), !tbaa.struct !22
  %314 = load float, ptr %63, align 4, !tbaa !19
  %315 = load ptr, ptr %20, align 8, !tbaa !5
  %316 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %315)
  %317 = load ptr, ptr %21, align 8, !tbaa !5
  %318 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %317)
  call void @llvm.lifetime.start.p0(i64 4, ptr %78) #11
  %319 = load ptr, ptr %23, align 8, !tbaa !5
  %320 = call noundef ptr @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE10GetContextEv(ptr noundef nonnull align 8 dereferenceable(24) %319)
  %321 = call i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef %320)
  %322 = getelementptr inbounds %"class.JPH::BodyID", ptr %78, i32 0, i32 0
  store i32 %321, ptr %322, align 4
  %323 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 0
  %324 = load double, ptr %323, align 16
  %325 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 1
  %326 = load double, ptr %325, align 8
  %327 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %328 = load double, ptr %327, align 16
  %329 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %330 = load double, ptr %329, align 8
  %331 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %332 = load double, ptr %331, align 16
  %333 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %334 = load double, ptr %333, align 8
  call void @_ZN3JPH18CollideShapeResultC2ENS_4Vec3ES1_S1_fRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1120) %74, double %324, double %326, double %328, double %330, double %332, double %334, float noundef %314, ptr noundef nonnull align 4 dereferenceable(4) %316, ptr noundef nonnull align 4 dereferenceable(4) %318, ptr noundef nonnull align 4 dereferenceable(4) %78)
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #11
  %335 = load ptr, ptr %22, align 8, !tbaa !5
  %336 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %335, i32 0, i32 1
  %337 = load i8, ptr %336, align 1, !tbaa !28
  %338 = icmp eq i8 %337, 0
  br i1 %338, label %339, label %398

339:                                              ; preds = %277
  %340 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %79) #11
  call void @llvm.memset.p0.i64(ptr align 4 %79, i8 0, i64 4, i1 false)
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %79) #11
  %341 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %41)
          to label %342 unwind label %390

342:                                              ; preds = %339
  %343 = getelementptr inbounds %"class.JPH::Vec3", ptr %80, i32 0, i32 0
  %344 = getelementptr inbounds %union.anon.4, ptr %343, i32 0, i32 0
  %345 = getelementptr inbounds { double, double }, ptr %344, i32 0, i32 0
  %346 = extractvalue { double, double } %341, 0
  store double %346, ptr %345, align 16
  %347 = getelementptr inbounds { double, double }, ptr %344, i32 0, i32 1
  %348 = extractvalue { double, double } %341, 1
  store double %348, ptr %347, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %83, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !22
  %349 = load ptr, ptr %18, align 8, !tbaa !5
  %350 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %74, i32 0, i32 7
  %351 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 0
  %352 = load double, ptr %351, align 16
  %353 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 1
  %354 = load double, ptr %353, align 8
  %355 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 0
  %356 = load double, ptr %355, align 16
  %357 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 1
  %358 = load double, ptr %357, align 8
  %359 = load ptr, ptr %340, align 8, !tbaa !20
  %360 = getelementptr inbounds ptr, ptr %359, i64 12
  %361 = load ptr, ptr %360, align 8
  invoke void %361(ptr noundef nonnull align 8 dereferenceable(26) %340, ptr noundef nonnull align 4 dereferenceable(4) %79, double %352, double %354, double %356, double %358, ptr noundef nonnull align 16 dereferenceable(64) %349, ptr noundef nonnull align 16 dereferenceable(528) %350)
          to label %362 unwind label %390

362:                                              ; preds = %342
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #11
  %363 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #11
  call void @llvm.memset.p0.i64(ptr align 4 %84, i8 0, i64 4, i1 false)
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %84) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %86, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !22
  %364 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 0
  %365 = load double, ptr %364, align 16
  %366 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 1
  %367 = load double, ptr %366, align 8
  %368 = invoke { double, double } @_ZNK3JPH5Mat4421Multiply3x3TransposedENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %30, double %365, double %367)
          to label %369 unwind label %394

369:                                              ; preds = %362
  %370 = getelementptr inbounds %"class.JPH::Vec3", ptr %85, i32 0, i32 0
  %371 = getelementptr inbounds %union.anon.4, ptr %370, i32 0, i32 0
  %372 = getelementptr inbounds { double, double }, ptr %371, i32 0, i32 0
  %373 = extractvalue { double, double } %368, 0
  store double %373, ptr %372, align 16
  %374 = getelementptr inbounds { double, double }, ptr %371, i32 0, i32 1
  %375 = extractvalue { double, double } %368, 1
  store double %375, ptr %374, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %87, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !22
  %376 = load ptr, ptr %19, align 8, !tbaa !5
  %377 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %74, i32 0, i32 8
  %378 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 0
  %379 = load double, ptr %378, align 16
  %380 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 1
  %381 = load double, ptr %380, align 8
  %382 = getelementptr inbounds { double, double }, ptr %87, i32 0, i32 0
  %383 = load double, ptr %382, align 16
  %384 = getelementptr inbounds { double, double }, ptr %87, i32 0, i32 1
  %385 = load double, ptr %384, align 8
  %386 = load ptr, ptr %363, align 8, !tbaa !20
  %387 = getelementptr inbounds ptr, ptr %386, i64 12
  %388 = load ptr, ptr %387, align 8
  invoke void %388(ptr noundef nonnull align 8 dereferenceable(26) %363, ptr noundef nonnull align 4 dereferenceable(4) %84, double %379, double %381, double %383, double %385, ptr noundef nonnull align 16 dereferenceable(64) %376, ptr noundef nonnull align 16 dereferenceable(528) %377)
          to label %389 unwind label %394

389:                                              ; preds = %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #11
  br label %398

390:                                              ; preds = %342, %339
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %81, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %82, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #11
  br label %413

394:                                              ; preds = %369, %362
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %81, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %82, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #11
  br label %413

398:                                              ; preds = %389, %277
  %399 = load ptr, ptr %23, align 8, !tbaa !5
  %400 = load ptr, ptr %399, align 8, !tbaa !20
  %401 = getelementptr inbounds ptr, ptr %400, i64 6
  %402 = load ptr, ptr %401, align 8
  invoke void %402(ptr noundef nonnull align 8 dereferenceable(24) %399, ptr noundef nonnull align 16 dereferenceable(1120) %74)
          to label %403 unwind label %409

403:                                              ; preds = %398
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %74) #11
  call void @llvm.lifetime.end.p0(i64 1120, ptr %74) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %72) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #11
  store i32 0, ptr %40, align 4
  br label %404

404:                                              ; preds = %403, %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #11
  br label %405

405:                                              ; preds = %404, %234, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #11
  call void @llvm.lifetime.end.p0(i64 224, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #11
  br label %406

406:                                              ; preds = %405, %147
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 4, 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
  %407 = load i32, ptr %40, align 4
  switch i32 %407, label %419 [
    i32 0, label %408
    i32 1, label %408
  ]

408:                                              ; preds = %406, %406
  ret void

409:                                              ; preds = %398
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %81, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %82, align 4
  br label %413

413:                                              ; preds = %409, %394, %390
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %74) #11
  call void @llvm.lifetime.end.p0(i64 1120, ptr %74) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %72) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #11
  call void @llvm.lifetime.end.p0(i64 224, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 4, 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 %414

414:                                              ; preds = %413
  %415 = load ptr, ptr %81, align 8
  %416 = load i32, ptr %82, align 4
  %417 = insertvalue { ptr, i32 } poison, ptr %415, 0
  %418 = insertvalue { ptr, i32 } %417, i32 %416, 1
  resume { ptr, i32 } %418

419:                                              ; preds = %406
  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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #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 2158390873}
!10 = !{i64 2158391259}
!11 = !{!12, !16, i64 32}
!12 = !{!"_ZTSN3JPH20CollideShapeSettingsE", !13, i64 0, !16, i64 32, !18, i64 36}
!13 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !14, i64 0, !15, i64 1, !16, i64 4, !16, i64 8, !17, i64 16}
!14 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !7, i64 0}
!15 = !{!"_ZTSN3JPH17ECollectFacesModeE", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!18 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!19 = !{!16, !16, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !8, i64 0}
!22 = !{i64 0, i64 16, !23}
!23 = !{!7, !7, i64 0}
!24 = !{!13, !16, i64 4}
!25 = !{!26, !26, i64 0}
!26 = !{!"_ZTSN3JPH19EPAPenetrationDepth7EStatusE", !7, i64 0}
!27 = !{!13, !16, i64 8}
!28 = !{!13, !15, 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 [97 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 float, align 4
  %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::AABox", align 16
  %21 = alloca %"class.JPH::OrientedBox", 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::EPAPenetrationDepth", align 16
  %26 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %27 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %28 = alloca %"struct.JPH::TransformedConvexObject", align 16
  %29 = alloca float, align 4
  %30 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %31 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %32 = alloca %"struct.JPH::AddConvexRadius", align 8
  %33 = alloca %"struct.JPH::TransformedConvexObject", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::CollideShapeResult", align 16
  %36 = alloca %"class.JPH::BodyID", align 4
  %37 = alloca %"class.JPH::SubShapeID", align 4
  %38 = alloca %"class.JPH::SubShapeID", align 4
  %39 = tail call noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26) %0)
  %40 = icmp eq i8 %39, 0
  br i1 %40, label %44, label %41

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

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

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

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

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

50:                                               ; preds = %44, %47, %49
  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 4, ptr nonnull %16) #9
  %51 = getelementptr inbounds i8, ptr %10, i64 32
  %52 = load float, ptr %51, align 16, !tbaa !7
  store float %52, ptr %16, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #9
  %53 = load ptr, ptr %0, align 8, !tbaa !18
  %54 = getelementptr inbounds i8, ptr %53, i64 32
  %55 = load ptr, ptr %54, align 8
  call void %55(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %18, ptr noundef nonnull align 8 dereferenceable(26) %0)
  call void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %17, ptr noundef nonnull align 16 dereferenceable(32) %18, double %2, double %3)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #9
  %56 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %52)
  %57 = extractvalue { double, double } %56, 0
  %58 = extractvalue { double, double } %56, 1
  call void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %17, double %57, double %58)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #9
  %59 = load ptr, ptr %1, align 8, !tbaa !18
  %60 = getelementptr inbounds i8, ptr %59, i64 32
  %61 = load ptr, ptr %60, align 8
  call void %61(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %20, ptr noundef nonnull align 8 dereferenceable(26) %1)
  call void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %19, ptr noundef nonnull align 16 dereferenceable(32) %20, double %4, double %5)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %21) #9
  call void @_ZN3JPH11OrientedBoxC2ERKNS_5Mat44ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(80) %21, ptr noundef nonnull align 16 dereferenceable(64) %15, ptr noundef nonnull align 16 dereferenceable(32) %19)
  %62 = call noundef zeroext i1 @_ZNK3JPH11OrientedBox8OverlapsERKNS_5AABoxEf(ptr noundef nonnull align 16 dereferenceable(80) %21, ptr noundef nonnull align 16 dereferenceable(32) %17, float noundef 0x3EB0C6F7A0000000)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %21) #9
  br i1 %62, label %63, label %176

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

69:                                               ; preds = %63
  %70 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %71 = extractvalue { double, double } %70, 0
  %72 = extractvalue { double, double } %70, 1
  store double %71, ptr %22, align 16
  store double %72, ptr %66, align 8, !tbaa !20
  br label %73

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

94:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #9
  store float 1.000000e+00, ptr %29, align 4, !tbaa !17
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %96 = load float, ptr %95, align 4, !tbaa !17
  store float %96, ptr %16, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #9
  call void @llvm.lifetime.start.p0(i64 4160, ptr nonnull %30) #9
  call void @llvm.lifetime.start.p0(i64 4160, ptr nonnull %31) #9
  %97 = load ptr, ptr %0, align 8, !tbaa !18
  %98 = getelementptr inbounds i8, ptr %97, i64 280
  %99 = load ptr, ptr %98, align 8
  %100 = call noundef ptr %99(ptr noundef nonnull align 8 dereferenceable(44) %0, i32 noundef 1, ptr noundef nonnull align 16 dereferenceable(4160) %30, double %2, double %3)
  %101 = load ptr, ptr %1, align 8, !tbaa !18
  %102 = getelementptr inbounds i8, ptr %101, i64 280
  %103 = load ptr, ptr %102, align 8
  %104 = call noundef ptr %103(ptr noundef nonnull align 8 dereferenceable(44) %1, i32 noundef 1, ptr noundef nonnull align 16 dereferenceable(4160) %31, double %4, double %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #9
  %105 = load float, ptr %16, align 4, !tbaa !17
  call void @_ZN3JPH15AddConvexRadiusINS_11ConvexShape7SupportEEC2ERKS2_f(ptr noundef nonnull align 8 dereferenceable(12) %32, ptr noundef nonnull align 8 dereferenceable(8) %100, float noundef %105)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %33) #9
  call void @_ZN3JPH23TransformedConvexObjectINS_11ConvexShape7SupportEEC2ERKNS_5Mat44ERKS2_(ptr noundef nonnull align 16 dereferenceable(72) %33, ptr noundef nonnull align 16 dereferenceable(64) %15, ptr noundef nonnull align 8 dereferenceable(8) %104)
  %106 = getelementptr inbounds i8, ptr %10, i64 8
  %107 = load float, ptr %106, align 8, !tbaa !22
  %108 = call noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth26GetPenetrationDepthStepEPAINS_15AddConvexRadiusINS_11ConvexShape7SupportEEENS_23TransformedConvexObjectIS4_EEEEbRKT_RKT0_fRNS_4Vec3ESF_SF_(ptr noundef nonnull align 16 dereferenceable(212) %25, ptr noundef nonnull align 8 dereferenceable(12) %32, ptr noundef nonnull align 16 dereferenceable(72) %33, float noundef %107, ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 16 dereferenceable(16) %23, ptr noundef nonnull align 16 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #9
  call void @llvm.lifetime.end.p0(i64 4160, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 4160, ptr nonnull %30) #9
  br i1 %108, label %109, label %175

109:                                              ; preds = %94, %73
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #9
  %.sroa.029.0.copyload = load double, ptr %23, align 16
  %.sroa.230.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 8
  %.sroa.230.0.copyload = load double, ptr %.sroa.230.0..sroa_idx, align 8, !tbaa !20
  %110 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %.sroa.029.0.copyload, double %.sroa.230.0.copyload)
  %111 = extractvalue { double, double } %110, 0
  store double %111, ptr %34, align 16
  %112 = getelementptr inbounds i8, ptr %34, i64 8
  %113 = extractvalue { double, double } %110, 1
  store double %113, ptr %112, align 8
  %114 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %34)
  %115 = load float, ptr %16, align 4, !tbaa !17
  %116 = fsub float %114, %115
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #9
  %117 = fneg float %116
  %118 = call noundef float @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %119 = fcmp ugt float %118, %117
  br i1 %119, label %120, label %175

120:                                              ; preds = %109
  %121 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  %122 = fcmp ogt float %121, 0.000000e+00
  br i1 %122, label %123, label %130

123:                                              ; preds = %120
  %124 = load float, ptr %16, align 4, !tbaa !17
  %125 = fdiv float %124, %121
  %126 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef %125)
  %127 = extractvalue { double, double } %126, 0
  %128 = extractvalue { double, double } %126, 1
  %129 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %23, double %127, double %128)
  br label %130

130:                                              ; preds = %123, %120
  %.sroa.021.0.copyload = load double, ptr %23, align 16
  %.sroa.222.0.copyload = load double, ptr %.sroa.230.0..sroa_idx, align 8, !tbaa !20
  %131 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %.sroa.021.0.copyload, double %.sroa.222.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.230.0..sroa_idx, align 8, !tbaa !20
  %.sroa.018.0.copyload = load double, ptr %24, align 16
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 8
  %.sroa.219.0.copyload = load double, ptr %.sroa.219.0..sroa_idx, align 8, !tbaa !20
  %134 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %.sroa.018.0.copyload, double %.sroa.219.0.copyload)
  %135 = extractvalue { double, double } %134, 0
  %136 = extractvalue { double, double } %134, 1
  store double %135, ptr %24, align 16
  store double %136, ptr %.sroa.219.0..sroa_idx, align 8, !tbaa !20
  %.sroa.015.0.copyload = load double, ptr %22, align 16
  %.sroa.216.0.copyload = load double, ptr %66, align 8, !tbaa !20
  %137 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %.sroa.015.0.copyload, double %.sroa.216.0.copyload)
  %138 = extractvalue { double, double } %137, 0
  %139 = extractvalue { double, double } %137, 1
  call void @llvm.lifetime.start.p0(i64 1120, ptr nonnull %35) #9
  %.sroa.013.0.copyload = load double, ptr %23, align 16
  %.sroa.214.0.copyload = load double, ptr %.sroa.230.0..sroa_idx, align 8, !tbaa !20
  %.sroa.011.0.copyload = load double, ptr %24, align 16
  %.sroa.212.0.copyload = load double, ptr %.sroa.219.0..sroa_idx, align 8, !tbaa !20
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %141 = 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 %36) #9
  %142 = call noundef ptr @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE10GetContextEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %143 = call i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef %142)
  store i32 %143, ptr %36, align 4
  call void @_ZN3JPH18CollideShapeResultC2ENS_4Vec3ES1_S1_fRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1120) %35, double %.sroa.013.0.copyload, double %.sroa.214.0.copyload, double %.sroa.011.0.copyload, double %.sroa.212.0.copyload, double %138, double %139, float noundef %116, ptr noundef nonnull align 4 dereferenceable(4) %140, ptr noundef nonnull align 4 dereferenceable(4) %141, ptr noundef nonnull align 4 dereferenceable(4) %36)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  %144 = getelementptr inbounds i8, ptr %10, i64 1
  %145 = load i8, ptr %144, align 1, !tbaa !23
  %146 = icmp eq i8 %145, 0
  br i1 %146, label %147, label %170

147:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #9
  store i32 0, ptr %37, align 4
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %37) #9
  %148 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
          to label %149 unwind label %166

149:                                              ; preds = %147
  %150 = extractvalue { double, double } %148, 0
  %151 = extractvalue { double, double } %148, 1
  %152 = getelementptr inbounds i8, ptr %35, i64 64
  %153 = load ptr, ptr %0, align 8, !tbaa !18
  %154 = getelementptr inbounds i8, ptr %153, i64 96
  %155 = load ptr, ptr %154, align 8
  invoke void %155(ptr noundef nonnull align 8 dereferenceable(26) %0, ptr noundef nonnull align 4 dereferenceable(4) %37, double %150, double %151, double %2, double %3, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(528) %152)
          to label %156 unwind label %166

156:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %38) #9
  store i32 0, ptr %38, align 4
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %38) #9
  %.sroa.01.0.copyload = load double, ptr %22, align 16
  %.sroa.22.0.copyload = load double, ptr %66, align 8, !tbaa !20
  %157 = 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 %158 unwind label %168

158:                                              ; preds = %156
  %159 = extractvalue { double, double } %157, 0
  %160 = extractvalue { double, double } %157, 1
  %161 = getelementptr inbounds i8, ptr %35, i64 592
  %162 = load ptr, ptr %1, align 8, !tbaa !18
  %163 = getelementptr inbounds i8, ptr %162, i64 96
  %164 = load ptr, ptr %163, align 8
  invoke void %164(ptr noundef nonnull align 8 dereferenceable(26) %1, ptr noundef nonnull align 4 dereferenceable(4) %38, double %159, double %160, double %4, double %5, ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 16 dereferenceable(528) %161)
          to label %165 unwind label %168

165:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #9
  br label %170

166:                                              ; preds = %149, %147
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  br label %179

168:                                              ; preds = %158, %156
  %169 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #9
  br label %179

170:                                              ; preds = %165, %130
  %171 = load ptr, ptr %11, align 8, !tbaa !18
  %172 = getelementptr inbounds i8, ptr %171, i64 48
  %173 = load ptr, ptr %172, align 8
  invoke void %173(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 16 dereferenceable(1120) %35)
          to label %174 unwind label %177

174:                                              ; preds = %170
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %35) #9
  call void @llvm.lifetime.end.p0(i64 1120, ptr nonnull %35) #9
  br label %175

175:                                              ; preds = %174, %109, %73, %94
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 16, 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
  br label %176

176:                                              ; preds = %50, %175
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 4, 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

177:                                              ; preds = %170
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %179

179:                                              ; preds = %177, %168, %166
  %.pn = phi { ptr, i32 } [ %178, %177 ], [ %169, %168 ], [ %167, %166 ]
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %35) #9
  call void @llvm.lifetime.end.p0(i64 1120, ptr nonnull %35) #9
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 16, 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 32, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 4, 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: 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 2158390873}
!6 = !{i64 2158391259}
!7 = !{!8, !14, i64 32}
!8 = !{!"_ZTSN3JPH20CollideShapeSettingsE", !9, i64 0, !14, i64 32, !16, i64 36}
!9 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !10, i64 0, !13, i64 1, !14, i64 4, !14, i64 8, !15, i64 16}
!10 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN3JPH17ECollectFacesModeE", !11, i64 0}
!14 = !{!"float", !11, i64 0}
!15 = !{!"_ZTSN3JPH4Vec3E", !11, i64 0}
!16 = !{!"_ZTSN3JPH13EBackFaceModeE", !11, i64 0}
!17 = !{!14, !14, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !12, i64 0}
!20 = !{!11, !11, i64 0}
!21 = !{!9, !14, i64 4}
!22 = !{!9, !14, i64 8}
!23 = !{!9, !13, i64 1}


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