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

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

%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Ref.39" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.2 }
%union.anon.2 = type { <4 x float> }
%"class.JPH::CollideShapeSettings" = type <{ %"class.JPH::CollideSettingsBase", float, i8, [11 x i8] }>
%"class.JPH::CollideSettingsBase" = type { i8, i8, float, float, %"class.JPH::Vec3" }
%"class.JPH::AnyHitCollisionCollector" = type <{ %"class.JPH::CollisionCollector", [8 x i8], %"class.JPH::CollideShapeResult", i8, [15 x i8] }>
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"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.45", %"class.JPH::StaticArray.45" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::StaticArray.45" = 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::SubShapeIDCreator" = type { %"class.JPH::SubShapeID", i32 }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::RagdollSettings" = type { %"class.JPH::RefTarget", %"class.JPH::Ref.13", %"class.JPH::Array", %"class.JPH::Array.14", %"class.JPH::Array.17", %"class.JPH::Array.20" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Ref.13" = type { ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.14" = type { i64, i64, ptr }
%"class.JPH::Array.17" = type { i64, i64, ptr }
%"class.JPH::Array.20" = type { i64, i64, ptr }
%"class.JPH::Skeleton::Joint" = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.32 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.32 = type { i64, [8 x i8] }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.3", %"class.JPH::RefConst.4" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst", i32, i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::RefConst.3" = type { ptr }
%"class.JPH::RefConst.4" = type { ptr }

@.str.4 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH3RefINS_8SkeletonEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3JPH8Skeleton13GetJointCountEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(264) ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH20BodyCreationSettings17HasMassPropertiesEv(ptr noundef nonnull align 16 dereferenceable(256)) #4 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) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(68) ptr @_ZN3JPH8Skeleton8GetJointEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH15RagdollSettings28DisableParentChildCollisionsEPKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %1, float noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.JPH::AssertLastParam", align 1
  %9 = alloca %"class.JPH::Ref.39", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Mat44", align 16
  %20 = alloca %"class.JPH::Mat44", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Mat44", align 16
  %27 = alloca %"class.JPH::Mat44", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::CollideShapeSettings", align 16
  %30 = alloca %"class.JPH::AnyHitCollisionCollector", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::SubShapeIDCreator", align 4
  %34 = alloca %"class.JPH::SubShapeIDCreator", align 4
  %35 = alloca %"class.JPH::ShapeFilter", align 8
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::SubShapeIDCreator", align 4
  %39 = alloca %"class.JPH::SubShapeIDCreator", align 4
  %40 = alloca %"class.JPH::ShapeFilter", align 8
  %41 = alloca i32, align 4
  %42 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  %43 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %44 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %43, i32 0, i32 1
  %45 = call noundef ptr @_ZNK3JPH3RefINS_8SkeletonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44)
  %46 = call noundef i32 @_ZNK3JPH8Skeleton13GetJointCountEv(ptr noundef nonnull align 8 dereferenceable(32) %45)
  store i32 %46, ptr %7, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %3
  %48 = load i32, ptr %7, align 4, !tbaa !11
  %49 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %43, i32 0, i32 2
  %50 = call noundef i64 @_ZNK3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49)
  %51 = trunc i64 %50 to i32
  %52 = icmp eq i32 %48, %51
  br i1 %52, label %56, label %53

53:                                               ; preds = %47
  %54 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.6, ptr noundef @.str.4, i32 noundef 196)
  br i1 %54, label %55, label %56

55:                                               ; preds = %53
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !13
  br label %56

56:                                               ; preds = %55, %53, %47
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %59 = call noundef ptr @_ZN3JPH16GroupFilterTablenwEm(i64 noundef 40)
  %60 = load i32, ptr %7, align 4, !tbaa !11
  invoke void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40) %59, i32 noundef %60)
          to label %61 unwind label %67

61:                                               ; preds = %58
  call void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %59)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %62

62:                                               ; preds = %93, %61
  %63 = load i32, ptr %12, align 4, !tbaa !11
  %64 = load i32, ptr %7, align 4, !tbaa !11
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %71, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  br label %96

67:                                               ; preds = %58
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %10, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %11, align 4
  call void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef %59) #10
  br label %342

71:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  %72 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %43, i32 0, i32 1
  %73 = invoke noundef ptr @_ZNK3JPH3RefINS_8SkeletonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %74 unwind label %88

74:                                               ; preds = %71
  %75 = load i32, ptr %12, align 4, !tbaa !11
  %76 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN3JPH8Skeleton8GetJointEi(ptr noundef nonnull align 8 dereferenceable(32) %73, i32 noundef %75)
          to label %77 unwind label %88

77:                                               ; preds = %74
  %78 = getelementptr inbounds %"class.JPH::Skeleton::Joint", ptr %76, i32 0, i32 2
  %79 = load i32, ptr %78, align 8, !tbaa !14
  store i32 %79, ptr %13, align 4, !tbaa !11
  %80 = load i32, ptr %13, align 4, !tbaa !11
  %81 = icmp sge i32 %80, 0
  br i1 %81, label %82, label %92

82:                                               ; preds = %77
  %83 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %84 unwind label %88

84:                                               ; preds = %82
  %85 = load i32, ptr %12, align 4, !tbaa !11
  %86 = load i32, ptr %13, align 4, !tbaa !11
  invoke void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40) %83, i32 noundef %85, i32 noundef %86)
          to label %87 unwind label %88

87:                                               ; preds = %84
  br label %92

88:                                               ; preds = %84, %82, %74, %71
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %10, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  br label %341

92:                                               ; preds = %87, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %12, align 4, !tbaa !11
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %12, align 4, !tbaa !11
  br label %62, !llvm.loop !19

96:                                               ; preds = %66
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %312

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %100

100:                                              ; preds = %305, %99
  %101 = load i32, ptr %14, align 4, !tbaa !11
  %102 = load i32, ptr %7, align 4, !tbaa !11
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 7, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %311

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %106 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %43, i32 0, i32 2
  %107 = load i32, ptr %14, align 4, !tbaa !11
  %108 = sext i32 %107 to i64
  %109 = invoke noundef nonnull align 16 dereferenceable(264) ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %108)
          to label %110 unwind label %143

110:                                              ; preds = %105
  store ptr %109, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = invoke noundef ptr @_ZNK3JPH20BodyCreationSettings8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(256) %111)
          to label %113 unwind label %147

113:                                              ; preds = %110
  store ptr %112, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #10
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = load i32, ptr %14, align 4, !tbaa !11
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds %"class.JPH::Mat44", ptr %114, i64 %116
  %118 = load ptr, ptr %17, align 8, !tbaa !5
  %119 = load ptr, ptr %118, align 8, !tbaa !21
  %120 = getelementptr inbounds ptr, ptr %119, i64 3
  %121 = load ptr, ptr %120, align 8
  %122 = invoke { double, double } %121(ptr noundef nonnull align 8 dereferenceable(26) %118)
          to label %123 unwind label %151

123:                                              ; preds = %113
  %124 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %125 = getelementptr inbounds %union.anon, ptr %124, i32 0, i32 0
  %126 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 0
  %127 = extractvalue { double, double } %122, 0
  store double %127, ptr %126, align 16
  %128 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 1
  %129 = extractvalue { double, double } %122, 1
  store double %129, ptr %128, align 8
  %130 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %131 = load double, ptr %130, align 16
  %132 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %133 = load double, ptr %132, align 8
  invoke void @_ZNK3JPH5Mat4413PreTranslatedENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %20, ptr noundef nonnull align 16 dereferenceable(64) %117, double %131, double %133)
          to label %134 unwind label %151

134:                                              ; preds = %123
  invoke void @_ZNK3JPH5Mat449DecomposeERNS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %19, ptr noundef nonnull align 16 dereferenceable(64) %20, ptr noundef nonnull align 16 dereferenceable(16) %18)
          to label %135 unwind label %151

135:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  %136 = load i32, ptr %14, align 4, !tbaa !11
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %22, align 4, !tbaa !11
  br label %138

138:                                              ; preds = %300, %135
  %139 = load i32, ptr %22, align 4, !tbaa !11
  %140 = load i32, ptr %7, align 4, !tbaa !11
  %141 = icmp slt i32 %139, %140
  br i1 %141, label %155, label %142

142:                                              ; preds = %138
  store i32 10, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  br label %304

143:                                              ; preds = %105
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %10, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %11, align 4
  br label %310

147:                                              ; preds = %110
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %10, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %11, align 4
  br label %309

151:                                              ; preds = %134, %123, %113
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %10, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #10
  br label %308

155:                                              ; preds = %138
  %156 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %157 unwind label %223

157:                                              ; preds = %155
  %158 = load i32, ptr %14, align 4, !tbaa !11
  %159 = load i32, ptr %22, align 4, !tbaa !11
  %160 = invoke noundef zeroext i1 @_ZNK3JPH16GroupFilterTable18IsCollisionEnabledEjj(ptr noundef nonnull align 8 dereferenceable(40) %156, i32 noundef %158, i32 noundef %159)
          to label %161 unwind label %223

161:                                              ; preds = %157
  br i1 %160, label %162, label %299

162:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %163 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %43, i32 0, i32 2
  %164 = load i32, ptr %22, align 4, !tbaa !11
  %165 = sext i32 %164 to i64
  %166 = invoke noundef nonnull align 16 dereferenceable(264) ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %163, i64 noundef %165)
          to label %167 unwind label %227

167:                                              ; preds = %162
  store ptr %166, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %168 = load ptr, ptr %23, align 8, !tbaa !5
  %169 = invoke noundef ptr @_ZNK3JPH20BodyCreationSettings8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(256) %168)
          to label %170 unwind label %231

170:                                              ; preds = %167
  store ptr %169, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #10
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = load i32, ptr %22, align 4, !tbaa !11
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds %"class.JPH::Mat44", ptr %171, i64 %173
  %175 = load ptr, ptr %24, align 8, !tbaa !5
  %176 = load ptr, ptr %175, align 8, !tbaa !21
  %177 = getelementptr inbounds ptr, ptr %176, i64 3
  %178 = load ptr, ptr %177, align 8
  %179 = invoke { double, double } %178(ptr noundef nonnull align 8 dereferenceable(26) %175)
          to label %180 unwind label %235

180:                                              ; preds = %170
  %181 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %182 = getelementptr inbounds %union.anon, ptr %181, i32 0, i32 0
  %183 = getelementptr inbounds { double, double }, ptr %182, i32 0, i32 0
  %184 = extractvalue { double, double } %179, 0
  store double %184, ptr %183, align 16
  %185 = getelementptr inbounds { double, double }, ptr %182, i32 0, i32 1
  %186 = extractvalue { double, double } %179, 1
  store double %186, ptr %185, align 8
  %187 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %188 = load double, ptr %187, align 16
  %189 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %190 = load double, ptr %189, align 8
  invoke void @_ZNK3JPH5Mat4413PreTranslatedENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %27, ptr noundef nonnull align 16 dereferenceable(64) %174, double %188, double %190)
          to label %191 unwind label %235

191:                                              ; preds = %180
  invoke void @_ZNK3JPH5Mat449DecomposeERNS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %26, ptr noundef nonnull align 16 dereferenceable(64) %27, ptr noundef nonnull align 16 dereferenceable(16) %25)
          to label %192 unwind label %235

192:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr %29) #10
  invoke void @_ZN3JPH20CollideShapeSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(37) %29)
          to label %193 unwind label %239

193:                                              ; preds = %192
  %194 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %29, i32 0, i32 0
  store i8 1, ptr %194, align 16, !tbaa !23
  %195 = getelementptr inbounds %"class.JPH::CollideShapeSettings", ptr %29, i32 0, i32 2
  store i8 1, ptr %195, align 4, !tbaa !28
  %196 = load float, ptr %6, align 4, !tbaa !9
  %197 = getelementptr inbounds %"class.JPH::CollideShapeSettings", ptr %29, i32 0, i32 1
  store float %196, ptr %197, align 16, !tbaa !31
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = invoke noundef zeroext i1 @_ZNK3JPH20BodyCreationSettings17HasMassPropertiesEv(ptr noundef nonnull align 16 dereferenceable(256) %198)
          to label %200 unwind label %239

200:                                              ; preds = %193
  br i1 %199, label %205, label %201

201:                                              ; preds = %200
  %202 = load ptr, ptr %23, align 8, !tbaa !5
  %203 = invoke noundef zeroext i1 @_ZNK3JPH20BodyCreationSettings17HasMassPropertiesEv(ptr noundef nonnull align 16 dereferenceable(256) %202)
          to label %204 unwind label %239

204:                                              ; preds = %201
  br i1 %203, label %205, label %294

205:                                              ; preds = %204, %200
  call void @llvm.lifetime.start.p0(i64 1168, ptr %30) #10
  invoke void @_ZN3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEEC2Ev(ptr noundef nonnull align 16 dereferenceable(1153) %30)
          to label %206 unwind label %243

206:                                              ; preds = %205
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  %208 = invoke noundef zeroext i1 @_ZNK3JPH20BodyCreationSettings17HasMassPropertiesEv(ptr noundef nonnull align 16 dereferenceable(256) %207)
          to label %209 unwind label %247

209:                                              ; preds = %206
  br i1 %208, label %210, label %260

210:                                              ; preds = %209
  %211 = load ptr, ptr %17, align 8, !tbaa !5
  %212 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #10
  call void @llvm.memset.p0.i64(ptr align 4 %33, i8 0, i64 8, i1 false)
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %33) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #10
  call void @llvm.memset.p0.i64(ptr align 4 %34, i8 0, i64 8, i1 false)
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %34) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #10
  call void @llvm.memset.p0.i64(ptr align 8 %35, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %35)
          to label %213 unwind label %251

213:                                              ; preds = %210
  %214 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %215 = load double, ptr %214, align 16
  %216 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %217 = load double, ptr %216, align 8
  %218 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %219 = load double, ptr %218, align 16
  %220 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %221 = load double, ptr %220, align 8
  invoke void @_ZN3JPH17CollisionDispatch20sCollideShapeVsShapeEPKNS_5ShapeES3_NS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_17SubShapeIDCreatorESA_RKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef %211, ptr noundef %212, double %215, double %217, double %219, double %221, ptr noundef nonnull align 16 dereferenceable(64) %19, ptr noundef nonnull align 16 dereferenceable(64) %26, ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 16 dereferenceable(37) %29, ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(12) %35)
          to label %222 unwind label %255

222:                                              ; preds = %213
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %35) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  br label %282

223:                                              ; preds = %157, %155
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %10, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %11, align 4
  br label %303

227:                                              ; preds = %162
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %10, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %11, align 4
  br label %298

231:                                              ; preds = %167
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %10, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %11, align 4
  br label %297

235:                                              ; preds = %191, %180, %170
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %10, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #10
  br label %296

239:                                              ; preds = %201, %193, %192
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %10, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %11, align 4
  br label %295

243:                                              ; preds = %205
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %10, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %11, align 4
  br label %293

247:                                              ; preds = %287, %285, %282, %206
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %10, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %11, align 4
  br label %292

251:                                              ; preds = %210
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %10, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %11, align 4
  br label %259

255:                                              ; preds = %213
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %10, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %11, align 4
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %35) #10
  br label %259

259:                                              ; preds = %255, %251
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  br label %292

260:                                              ; preds = %209
  %261 = load ptr, ptr %24, align 8, !tbaa !5
  %262 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  call void @llvm.memset.p0.i64(ptr align 4 %38, i8 0, i64 8, i1 false)
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %38) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #10
  call void @llvm.memset.p0.i64(ptr align 4 %39, i8 0, i64 8, i1 false)
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %39) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #10
  call void @llvm.memset.p0.i64(ptr align 8 %40, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %40)
          to label %263 unwind label %273

263:                                              ; preds = %260
  %264 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %265 = load double, ptr %264, align 16
  %266 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %267 = load double, ptr %266, align 8
  %268 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %269 = load double, ptr %268, align 16
  %270 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %271 = load double, ptr %270, align 8
  invoke void @_ZN3JPH17CollisionDispatch20sCollideShapeVsShapeEPKNS_5ShapeES3_NS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_17SubShapeIDCreatorESA_RKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef %261, ptr noundef %262, double %265, double %267, double %269, double %271, ptr noundef nonnull align 16 dereferenceable(64) %26, ptr noundef nonnull align 16 dereferenceable(64) %19, ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %39, ptr noundef nonnull align 16 dereferenceable(37) %29, ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(12) %40)
          to label %272 unwind label %277

272:                                              ; preds = %263
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %40) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  br label %282

273:                                              ; preds = %260
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %10, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %11, align 4
  br label %281

277:                                              ; preds = %263
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %10, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %11, align 4
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %40) #10
  br label %281

281:                                              ; preds = %277, %273
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  br label %292

282:                                              ; preds = %272, %222
  %283 = invoke noundef zeroext i1 @_ZNK3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEE6HadHitEv(ptr noundef nonnull align 16 dereferenceable(1153) %30)
          to label %284 unwind label %247

284:                                              ; preds = %282
  br i1 %283, label %285, label %291

285:                                              ; preds = %284
  %286 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %287 unwind label %247

287:                                              ; preds = %285
  %288 = load i32, ptr %14, align 4, !tbaa !11
  %289 = load i32, ptr %22, align 4, !tbaa !11
  invoke void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40) %286, i32 noundef %288, i32 noundef %289)
          to label %290 unwind label %247

290:                                              ; preds = %287
  br label %291

291:                                              ; preds = %290, %284
  call void @_ZN3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEED2Ev(ptr noundef nonnull align 16 dereferenceable(1153) %30) #10
  call void @llvm.lifetime.end.p0(i64 1168, ptr %30) #10
  br label %294

292:                                              ; preds = %281, %259, %247
  call void @_ZN3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEED2Ev(ptr noundef nonnull align 16 dereferenceable(1153) %30) #10
  br label %293

293:                                              ; preds = %292, %243
  call void @llvm.lifetime.end.p0(i64 1168, ptr %30) #10
  br label %295

294:                                              ; preds = %291, %204
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  br label %299

295:                                              ; preds = %293, %239
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #10
  br label %296

296:                                              ; preds = %295, %235
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #10
  br label %297

297:                                              ; preds = %296, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %298

298:                                              ; preds = %297, %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  br label %303

299:                                              ; preds = %294, %161
  br label %300

300:                                              ; preds = %299
  %301 = load i32, ptr %22, align 4, !tbaa !11
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %22, align 4, !tbaa !11
  br label %138, !llvm.loop !34

303:                                              ; preds = %298, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  br label %308

304:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  br label %305

305:                                              ; preds = %304
  %306 = load i32, ptr %14, align 4, !tbaa !11
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %14, align 4, !tbaa !11
  br label %100, !llvm.loop !35

308:                                              ; preds = %303, %151
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #10
  br label %309

309:                                              ; preds = %308, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %310

310:                                              ; preds = %309, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %341

311:                                              ; preds = %104
  br label %312

312:                                              ; preds = %311, %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #10
  store i32 0, ptr %41, align 4, !tbaa !11
  br label %313

313:                                              ; preds = %333, %312
  %314 = load i32, ptr %41, align 4, !tbaa !11
  %315 = load i32, ptr %7, align 4, !tbaa !11
  %316 = icmp slt i32 %314, %315
  br i1 %316, label %318, label %317

317:                                              ; preds = %313
  store i32 13, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %340

318:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #10
  %319 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %43, i32 0, i32 2
  %320 = load i32, ptr %41, align 4, !tbaa !11
  %321 = sext i32 %320 to i64
  %322 = invoke noundef nonnull align 16 dereferenceable(264) ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %319, i64 noundef %321)
          to label %323 unwind label %336

323:                                              ; preds = %318
  store ptr %322, ptr %42, align 8, !tbaa !5
  %324 = load ptr, ptr %42, align 8, !tbaa !5
  %325 = getelementptr inbounds %"class.JPH::BodyCreationSettings", ptr %324, i32 0, i32 6
  %326 = load i32, ptr %41, align 4, !tbaa !11
  invoke void @_ZN3JPH14CollisionGroup13SetSubGroupIDEj(ptr noundef nonnull align 8 dereferenceable(16) %325, i32 noundef %326)
          to label %327 unwind label %336

327:                                              ; preds = %323
  %328 = load ptr, ptr %42, align 8, !tbaa !5
  %329 = getelementptr inbounds %"class.JPH::BodyCreationSettings", ptr %328, i32 0, i32 6
  %330 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %331 unwind label %336

331:                                              ; preds = %327
  invoke void @_ZN3JPH14CollisionGroup14SetGroupFilterEPKNS_11GroupFilterE(ptr noundef nonnull align 8 dereferenceable(16) %329, ptr noundef %330)
          to label %332 unwind label %336

332:                                              ; preds = %331
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  br label %333

333:                                              ; preds = %332
  %334 = load i32, ptr %41, align 4, !tbaa !11
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %41, align 4, !tbaa !11
  br label %313, !llvm.loop !36

336:                                              ; preds = %331, %327, %323, %318
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %10, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %341

340:                                              ; preds = %317
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  ret void

341:                                              ; preds = %336, %310, %88
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  br label %342

342:                                              ; preds = %341, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  br label %343

343:                                              ; preds = %342
  %344 = load ptr, ptr %10, align 8
  %345 = load i32, ptr %11, align 4
  %346 = insertvalue { ptr, i32 } poison, ptr %344, 0
  %347 = insertvalue { ptr, i32 } %346, i32 %345, 1
  resume { ptr, i32 } %347
}

; 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 noundef ptr @_ZN3JPH16GroupFilterTablenwEm(i64 noundef) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef) #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) #2 align 2

declare noundef ptr @_ZNK3JPH20BodyCreationSettings8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(256)) #8

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat449DecomposeERNS_4Vec3E(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(16)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH16GroupFilterTable18IsCollisionEnabledEjj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH20CollideShapeSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(37)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEEC2Ev(ptr noundef nonnull align 16 dereferenceable(1153)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH17CollisionDispatch20sCollideShapeVsShapeEPKNS_5ShapeES3_NS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_17SubShapeIDCreatorESA_RKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef, ptr noundef, double, double, double, double, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEE6HadHitEv(ptr noundef nonnull align 16 dereferenceable(1153)) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH14CollisionGroup13SetSubGroupIDEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH14CollisionGroup14SetGroupFilterEPKNS_11GroupFilterE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { 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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 2159895119}
!14 = !{!15, !12, i64 64}
!15 = !{!"_ZTSN3JPH8Skeleton5JointE", !16, i64 0, !16, i64 32, !12, i64 64}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !8, i64 0}
!23 = !{!24, !25, i64 0}
!24 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !25, i64 0, !26, i64 1, !10, i64 4, !10, i64 8, !27, i64 16}
!25 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !7, i64 0}
!26 = !{!"_ZTSN3JPH17ECollectFacesModeE", !7, i64 0}
!27 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!28 = !{!29, !30, i64 36}
!29 = !{!"_ZTSN3JPH20CollideShapeSettingsE", !24, i64 0, !10, i64 32, !30, i64 36}
!30 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!31 = !{!29, !10, i64 32}
!32 = !{i64 0, i64 16, !33}
!33 = !{!7, !7, i64 0}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20}
!36 = distinct !{!36, !20}


; 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::Ref.39" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.2 }
%union.anon.2 = type { <4 x float> }
%"class.JPH::CollideShapeSettings" = type <{ %"class.JPH::CollideSettingsBase", float, i8, [11 x i8] }>
%"class.JPH::CollideSettingsBase" = type { i8, i8, float, float, %"class.JPH::Vec3" }
%"class.JPH::AnyHitCollisionCollector" = type <{ %"class.JPH::CollisionCollector", [8 x i8], %"class.JPH::CollideShapeResult", i8, [15 x i8] }>
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"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.45", %"class.JPH::StaticArray.45" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::StaticArray.45" = 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::SubShapeIDCreator" = type { %"class.JPH::SubShapeID", i32 }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>

@.str.4 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH3RefINS_8SkeletonEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3JPH8Skeleton13GetJointCountEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(264) ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH20BodyCreationSettings17HasMassPropertiesEv(ptr noundef nonnull align 16 dereferenceable(256)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(68) ptr @_ZN3JPH8Skeleton8GetJointEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH15RagdollSettings28DisableParentChildCollisionsEPKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %1, float noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.JPH::Ref.39", align 8
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Mat44", align 16
  %7 = alloca %"class.JPH::Mat44", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Mat44", align 16
  %10 = alloca %"class.JPH::Mat44", align 16
  %11 = alloca %"class.JPH::CollideShapeSettings", align 16
  %12 = alloca %"class.JPH::AnyHitCollisionCollector", align 16
  %13 = alloca %"class.JPH::SubShapeIDCreator", align 8
  %14 = alloca %"class.JPH::SubShapeIDCreator", align 8
  %15 = alloca %"class.JPH::ShapeFilter", align 8
  %16 = alloca %"class.JPH::SubShapeIDCreator", align 8
  %17 = alloca %"class.JPH::SubShapeIDCreator", align 8
  %18 = alloca %"class.JPH::ShapeFilter", align 8
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = tail call noundef ptr @_ZNK3JPH3RefINS_8SkeletonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %21 = tail call noundef i32 @_ZNK3JPH8Skeleton13GetJointCountEv(ptr noundef nonnull align 8 dereferenceable(32) %20)
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = tail call noundef i64 @_ZNK3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
  %24 = trunc i64 %23 to i32
  %25 = icmp eq i32 %21, %24
  br i1 %25, label %29, label %26

26:                                               ; preds = %3
  %27 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.4, i32 noundef 196)
  br i1 %27, label %28, label %29

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

29:                                               ; preds = %28, %26, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %30 = tail call noundef ptr @_ZN3JPH16GroupFilterTablenwEm(i64 noundef 40)
  invoke void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40) %30, i32 noundef %21)
          to label %31 unwind label %36

31:                                               ; preds = %29
  call void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %30)
  %32 = icmp sgt i32 %21, 0
  br i1 %32, label %.lr.ph, label %._crit_edge108

._crit_edge:                                      ; preds = %48
  %.not = icmp ne ptr %1, null
  %or.cond = and i1 %.not, %32
  br i1 %or.cond, label %.lr.ph104, label %.loopexit

.lr.ph104:                                        ; preds = %._crit_edge
  %33 = getelementptr inbounds i8, ptr %11, i64 36
  %34 = getelementptr inbounds i8, ptr %11, i64 32
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %35 = zext nneg i32 %21 to i64
  %wide.trip.count116 = zext nneg i32 %21 to i64
  br label %50

36:                                               ; preds = %29
  %37 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef %30) #9
  br label %150

.lr.ph:                                           ; preds = %31, %48
  %.07396 = phi i32 [ %49, %48 ], [ 0, %31 ]
  %38 = call noundef ptr @_ZNK3JPH3RefINS_8SkeletonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %39 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN3JPH8Skeleton8GetJointEi(ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef %.07396)
          to label %40 unwind label %46

40:                                               ; preds = %.lr.ph
  %41 = getelementptr inbounds i8, ptr %39, i64 64
  %42 = load i32, ptr %41, align 8, !tbaa !6
  %43 = icmp sgt i32 %42, -1
  br i1 %43, label %44, label %48

44:                                               ; preds = %40
  %45 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  invoke void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40) %45, i32 noundef %.07396, i32 noundef %42)
          to label %48 unwind label %46

46:                                               ; preds = %44, %.lr.ph
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %149

48:                                               ; preds = %44, %40
  %49 = add nuw nsw i32 %.07396, 1
  %exitcond.not = icmp eq i32 %49, %21
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

50:                                               ; preds = %.lr.ph104, %._crit_edge102
  %indvars.iv113 = phi i64 [ 0, %.lr.ph104 ], [ %indvars.iv.next114, %._crit_edge102 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph104 ], [ %indvars.iv.next, %._crit_edge102 ]
  %51 = invoke noundef nonnull align 16 dereferenceable(264) ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv113)
          to label %52 unwind label %67

52:                                               ; preds = %50
  %53 = invoke noundef ptr @_ZNK3JPH20BodyCreationSettings8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(256) %51)
          to label %54 unwind label %69

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #9
  %55 = load ptr, ptr %53, align 8, !tbaa !17
  %56 = getelementptr inbounds i8, ptr %55, i64 24
  %57 = load ptr, ptr %56, align 8
  %58 = invoke { double, double } %57(ptr noundef nonnull align 8 dereferenceable(26) %53)
          to label %59 unwind label %71

59:                                               ; preds = %54
  %60 = getelementptr inbounds %"class.JPH::Mat44", ptr %1, i64 %indvars.iv113
  %61 = extractvalue { double, double } %58, 0
  %62 = extractvalue { double, double } %58, 1
  invoke void @_ZNK3JPH5Mat4413PreTranslatedENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %7, ptr noundef nonnull align 16 dereferenceable(64) %60, double %61, double %62)
          to label %63 unwind label %71

63:                                               ; preds = %59
  invoke void @_ZNK3JPH5Mat449DecomposeERNS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %6, ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 16 dereferenceable(16) %5)
          to label %64 unwind label %71

64:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #9
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %65 = icmp ult i64 %indvars.iv.next114, %35
  br i1 %65, label %.lr.ph101.preheader, label %._crit_edge102

.lr.ph101.preheader:                              ; preds = %64
  %66 = trunc nuw nsw i64 %indvars.iv113 to i32
  br label %.lr.ph101

._crit_edge102:                                   ; preds = %139, %64
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next114, %wide.trip.count116
  br i1 %exitcond117.not, label %.loopexit, label %50, !llvm.loop !19

67:                                               ; preds = %50
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %149

69:                                               ; preds = %52
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %149

71:                                               ; preds = %63, %59, %54
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #9
  br label %140

.lr.ph101:                                        ; preds = %.lr.ph101.preheader, %139
  %indvars.iv109 = phi i64 [ %indvars.iv, %.lr.ph101.preheader ], [ %indvars.iv.next110, %139 ]
  %73 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %74 = trunc nuw nsw i64 %indvars.iv109 to i32
  %75 = invoke noundef zeroext i1 @_ZNK3JPH16GroupFilterTable18IsCollisionEnabledEjj(ptr noundef nonnull align 8 dereferenceable(40) %73, i32 noundef %66, i32 noundef %74)
          to label %76 unwind label %102

76:                                               ; preds = %.lr.ph101
  br i1 %75, label %77, label %139

77:                                               ; preds = %76
  %78 = invoke noundef nonnull align 16 dereferenceable(264) ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv109)
          to label %79 unwind label %104

79:                                               ; preds = %77
  %80 = invoke noundef ptr @_ZNK3JPH20BodyCreationSettings8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(256) %78)
          to label %81 unwind label %106

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #9
  %82 = load ptr, ptr %80, align 8, !tbaa !17
  %83 = getelementptr inbounds i8, ptr %82, i64 24
  %84 = load ptr, ptr %83, align 8
  %85 = invoke { double, double } %84(ptr noundef nonnull align 8 dereferenceable(26) %80)
          to label %86 unwind label %108

86:                                               ; preds = %81
  %87 = getelementptr inbounds %"class.JPH::Mat44", ptr %1, i64 %indvars.iv109
  %88 = extractvalue { double, double } %85, 0
  %89 = extractvalue { double, double } %85, 1
  invoke void @_ZNK3JPH5Mat4413PreTranslatedENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %10, ptr noundef nonnull align 16 dereferenceable(64) %87, double %88, double %89)
          to label %90 unwind label %108

90:                                               ; preds = %86
  invoke void @_ZNK3JPH5Mat449DecomposeERNS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %9, ptr noundef nonnull align 16 dereferenceable(64) %10, ptr noundef nonnull align 16 dereferenceable(16) %8)
          to label %91 unwind label %108

91:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #9
  invoke void @_ZN3JPH20CollideShapeSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(37) %11)
          to label %92 unwind label %110

92:                                               ; preds = %91
  store i8 1, ptr %11, align 16, !tbaa !20
  store i8 1, ptr %33, align 4, !tbaa !26
  store float %2, ptr %34, align 16, !tbaa !29
  %93 = call noundef zeroext i1 @_ZNK3JPH20BodyCreationSettings17HasMassPropertiesEv(ptr noundef nonnull align 16 dereferenceable(256) %51)
  br i1 %93, label %96, label %94

94:                                               ; preds = %92
  %95 = call noundef zeroext i1 @_ZNK3JPH20BodyCreationSettings17HasMassPropertiesEv(ptr noundef nonnull align 16 dereferenceable(256) %78)
  br i1 %95, label %96, label %136

96:                                               ; preds = %94, %92
  call void @llvm.lifetime.start.p0(i64 1168, ptr nonnull %12) #9
  invoke void @_ZN3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEEC2Ev(ptr noundef nonnull align 16 dereferenceable(1153) %12)
          to label %97 unwind label %112

97:                                               ; preds = %96
  %98 = call noundef zeroext i1 @_ZNK3JPH20BodyCreationSettings17HasMassPropertiesEv(ptr noundef nonnull align 16 dereferenceable(256) %51)
  br i1 %98, label %99, label %121

99:                                               ; preds = %97
  %.sroa.09.0.copyload = load double, ptr %5, align 16
  %.sroa.210.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !30
  %.sroa.07.0.copyload = load double, ptr %8, align 16
  %.sroa.28.0.copyload = load double, ptr %.sroa.26.0..sroa_idx, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  store i64 0, ptr %13, align 8
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  store i64 0, ptr %14, align 8
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15)
          to label %100 unwind label %116

100:                                              ; preds = %99
  invoke void @_ZN3JPH17CollisionDispatch20sCollideShapeVsShapeEPKNS_5ShapeES3_NS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_17SubShapeIDCreatorESA_RKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef nonnull %53, ptr noundef nonnull %80, double %.sroa.09.0.copyload, double %.sroa.210.0.copyload, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(64) %9, ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 16 dereferenceable(37) %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(12) %15)
          to label %101 unwind label %118

101:                                              ; preds = %100
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %129

102:                                              ; preds = %.lr.ph101
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %140

104:                                              ; preds = %77
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %140

106:                                              ; preds = %79
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %140

108:                                              ; preds = %90, %86, %81
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #9
  br label %138

110:                                              ; preds = %91
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %137

112:                                              ; preds = %96
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %135

114:                                              ; preds = %131
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %134

116:                                              ; preds = %99
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %120

118:                                              ; preds = %100
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15) #9
  br label %120

120:                                              ; preds = %118, %116
  %.pn80 = phi { ptr, i32 } [ %119, %118 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %134

121:                                              ; preds = %97
  %.sroa.05.0.copyload = load double, ptr %8, align 16
  %.sroa.26.0.copyload = load double, ptr %.sroa.26.0..sroa_idx, align 8, !tbaa !30
  %.sroa.0.0.copyload = load double, ptr %5, align 16
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  store i64 0, ptr %16, align 8
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  store i64 0, ptr %17, align 8
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %17) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %18, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18)
          to label %122 unwind label %124

122:                                              ; preds = %121
  invoke void @_ZN3JPH17CollisionDispatch20sCollideShapeVsShapeEPKNS_5ShapeES3_NS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_17SubShapeIDCreatorESA_RKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef nonnull %80, ptr noundef nonnull %53, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, ptr noundef nonnull align 16 dereferenceable(64) %9, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 16 dereferenceable(37) %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(12) %18)
          to label %123 unwind label %126

123:                                              ; preds = %122
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br label %129

124:                                              ; preds = %121
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %128

126:                                              ; preds = %122
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18) #9
  br label %128

128:                                              ; preds = %126, %124
  %.pn = phi { ptr, i32 } [ %127, %126 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br label %134

129:                                              ; preds = %123, %101
  %130 = call noundef zeroext i1 @_ZNK3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEE6HadHitEv(ptr noundef nonnull align 16 dereferenceable(1153) %12)
  br i1 %130, label %131, label %133

131:                                              ; preds = %129
  %132 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  invoke void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40) %132, i32 noundef %66, i32 noundef %74)
          to label %133 unwind label %114

133:                                              ; preds = %131, %129
  call void @_ZN3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEED2Ev(ptr noundef nonnull align 16 dereferenceable(1153) %12) #9
  call void @llvm.lifetime.end.p0(i64 1168, ptr nonnull %12) #9
  br label %136

134:                                              ; preds = %128, %120, %114
  %.pn82 = phi { ptr, i32 } [ %115, %114 ], [ %.pn80, %120 ], [ %.pn, %128 ]
  call void @_ZN3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEED2Ev(ptr noundef nonnull align 16 dereferenceable(1153) %12) #9
  br label %135

135:                                              ; preds = %134, %112
  %.pn82.pn = phi { ptr, i32 } [ %.pn82, %134 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 1168, ptr nonnull %12) #9
  br label %137

136:                                              ; preds = %133, %94
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  br label %139

137:                                              ; preds = %135, %110
  %.pn82.pn.pn = phi { ptr, i32 } [ %.pn82.pn, %135 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #9
  br label %138

138:                                              ; preds = %137, %108
  %.pn82.pn.pn.pn = phi { ptr, i32 } [ %.pn82.pn.pn, %137 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  br label %140

139:                                              ; preds = %76, %136
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond112.not = icmp eq i64 %indvars.iv.next110, %wide.trip.count116
  br i1 %exitcond112.not, label %._crit_edge102, label %.lr.ph101, !llvm.loop !31

140:                                              ; preds = %102, %106, %138, %104, %71
  %.pn82.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %72, %71 ], [ %103, %102 ], [ %105, %104 ], [ %.pn82.pn.pn.pn, %138 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  br label %149

.loopexit:                                        ; preds = %._crit_edge102, %._crit_edge
  br i1 %32, label %.lr.ph107.preheader, label %._crit_edge108

.lr.ph107.preheader:                              ; preds = %.loopexit
  %wide.trip.count121 = zext nneg i32 %21 to i64
  br label %.lr.ph107

._crit_edge108:                                   ; preds = %146, %31, %.loopexit
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  ret void

.lr.ph107:                                        ; preds = %.lr.ph107.preheader, %146
  %indvars.iv118 = phi i64 [ 0, %.lr.ph107.preheader ], [ %indvars.iv.next119, %146 ]
  %141 = invoke noundef nonnull align 16 dereferenceable(264) ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv118)
          to label %142 unwind label %147

142:                                              ; preds = %.lr.ph107
  %143 = getelementptr inbounds i8, ptr %141, i64 80
  %144 = trunc nuw nsw i64 %indvars.iv118 to i32
  call void @_ZN3JPH14CollisionGroup13SetSubGroupIDEj(ptr noundef nonnull align 8 dereferenceable(16) %143, i32 noundef %144)
  %145 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
  invoke void @_ZN3JPH14CollisionGroup14SetGroupFilterEPKNS_11GroupFilterE(ptr noundef nonnull align 8 dereferenceable(16) %143, ptr noundef %145)
          to label %146 unwind label %147

146:                                              ; preds = %142
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %exitcond122.not = icmp eq i64 %indvars.iv.next119, %wide.trip.count121
  br i1 %exitcond122.not, label %._crit_edge108, label %.lr.ph107, !llvm.loop !32

147:                                              ; preds = %142, %.lr.ph107
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %149

149:                                              ; preds = %67, %140, %69, %147, %46
  %.pn93 = phi { ptr, i32 } [ %47, %46 ], [ %148, %147 ], [ %68, %67 ], [ %.pn82.pn.pn.pn.pn.pn.pn.pn, %140 ], [ %70, %69 ]
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  br label %150

150:                                              ; preds = %149, %36
  %.pn93.pn = phi { ptr, i32 } [ %.pn93, %149 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn93.pn
}

; 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 noundef ptr @_ZN3JPH16GroupFilterTablenwEm(i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

declare noundef ptr @_ZNK3JPH20BodyCreationSettings8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(256)) local_unnamed_addr #7

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat449DecomposeERNS_4Vec3E(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(16)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH16GroupFilterTable18IsCollisionEnabledEjj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH20CollideShapeSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(37)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEEC2Ev(ptr noundef nonnull align 16 dereferenceable(1153)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH17CollisionDispatch20sCollideShapeVsShapeEPKNS_5ShapeES3_NS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_17SubShapeIDCreatorESA_RKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef, ptr noundef, double, double, double, double, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH24AnyHitCollisionCollectorINS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEE6HadHitEv(ptr noundef nonnull align 16 dereferenceable(1153)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH14CollisionGroup13SetSubGroupIDEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH14CollisionGroup14SetGroupFilterEPKNS_11GroupFilterE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 nocallback nofree nounwind willreturn memory(argmem: write) }
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 2159895119}
!6 = !{!7, !14, i64 64}
!7 = !{!"_ZTSN3JPH8Skeleton5JointE", !8, i64 0, !8, i64 32, !14, i64 64}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !9, i64 0, !13, i64 8, !11, i64 16}
!9 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"int", !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !12, i64 0}
!19 = distinct !{!19, !16}
!20 = !{!21, !22, i64 0}
!21 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !22, i64 0, !23, i64 1, !24, i64 4, !24, i64 8, !25, i64 16}
!22 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !11, i64 0}
!23 = !{!"_ZTSN3JPH17ECollectFacesModeE", !11, i64 0}
!24 = !{!"float", !11, i64 0}
!25 = !{!"_ZTSN3JPH4Vec3E", !11, i64 0}
!26 = !{!27, !28, i64 36}
!27 = !{!"_ZTSN3JPH20CollideShapeSettingsE", !21, i64 0, !24, i64 32, !28, i64 36}
!28 = !{!"_ZTSN3JPH13EBackFaceModeE", !11, i64 0}
!29 = !{!27, !24, i64 32}
!30 = !{!11, !11, i64 0}
!31 = distinct !{!31, !16}
!32 = distinct !{!32, !16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass