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

%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.46" = type { %"class.JPH::HashTable.base.48", [4 x i8] }
%"class.JPH::HashTable.base.48" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.50" = type { %"class.JPH::HashTable.base.52", [4 x i8] }
%"class.JPH::HashTable.base.52" = type <{ ptr, ptr, i32, i32, i32 }>
%"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::RagdollSettings::Part" = type <{ %"class.JPH::BodyCreationSettings", %"class.JPH::Ref", [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::Vec4" = type { %union.anon.2 }
%union.anon.2 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst", i32, i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.3" = type { ptr }
%"class.JPH::RefConst.4" = type { ptr }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::RagdollSettings::AdditionalConstraint" = type { [2 x i32], %"class.JPH::Ref" }

; 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: 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 @_ZNK3JPH15RagdollSettings15SaveBinaryStateERNS_9StreamOutEbb(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i1 noundef zeroext %2, i1 noundef zeroext %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca %"class.JPH::UnorderedMap", align 8
  %10 = alloca %"class.JPH::UnorderedMap.46", align 8
  %11 = alloca %"class.JPH::UnorderedMap.50", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %25 = zext i1 %2 to i8
  store i8 %25, ptr %7, align 1, !tbaa !9
  %26 = zext i1 %3 to i8
  store i8 %26, ptr %8, align 1, !tbaa !9
  %27 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  call void @_ZN3JPH12UnorderedMapIPKNS_5ShapeEjNS_4HashIS3_EESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  call void @_ZN3JPH12UnorderedMapIPKNS_15PhysicsMaterialEjNS_4HashIS3_EESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @_ZN3JPH12UnorderedMapIPKNS_11GroupFilterEjNS_4HashIS3_EESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #5
  %28 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %27, i32 0, i32 1
  %29 = invoke noundef ptr @_ZNK3JPH3RefINS_8SkeletonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %30 unwind label %51

30:                                               ; preds = %4
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3JPH8Skeleton15SaveBinaryStateERNS_9StreamOutE(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %32 unwind label %51

32:                                               ; preds = %30
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %34 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %27, i32 0, i32 2
  %35 = invoke noundef i64 @_ZNK3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
          to label %36 unwind label %55

36:                                               ; preds = %32
  %37 = trunc i64 %35 to i32
  store i32 %37, ptr %14, align 4, !tbaa !11
  invoke void @_ZN3JPH9StreamOut5WriteIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRKS3_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %38 unwind label %55

38:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %39 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %27, i32 0, i32 2
  store ptr %39, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %40 = load ptr, ptr %15, align 8, !tbaa !5
  %41 = invoke noundef ptr @_ZNK3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
          to label %42 unwind label %59

42:                                               ; preds = %38
  store ptr %41, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  %44 = invoke noundef ptr @_ZNK3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
          to label %45 unwind label %63

45:                                               ; preds = %42
  store ptr %44, ptr %17, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %120, %45
  %47 = load ptr, ptr %16, align 8, !tbaa !5
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  %49 = icmp ne ptr %47, %48
  br i1 %49, label %67, label %50

50:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %126

51:                                               ; preds = %30, %4
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %12, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %13, align 4
  br label %182

55:                                               ; preds = %36, %32
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %12, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %182

59:                                               ; preds = %38
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %12, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %13, align 4
  br label %125

63:                                               ; preds = %42
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %12, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %13, align 4
  br label %124

67:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %68, ptr %18, align 8, !tbaa !5
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %74

73:                                               ; preds = %67
  br label %75

74:                                               ; preds = %67
  br label %75

75:                                               ; preds = %74, %73
  %76 = phi ptr [ %9, %73 ], [ null, %74 ]
  %77 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %78 = trunc i8 %77 to i1
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  br label %81

80:                                               ; preds = %75
  br label %81

81:                                               ; preds = %80, %79
  %82 = phi ptr [ %10, %79 ], [ null, %80 ]
  %83 = load i8, ptr %8, align 1, !tbaa !9, !range !13, !noundef !14
  %84 = trunc i8 %83 to i1
  br i1 %84, label %85, label %86

85:                                               ; preds = %81
  br label %87

86:                                               ; preds = %81
  br label %87

87:                                               ; preds = %86, %85
  %88 = phi ptr [ %11, %85 ], [ null, %86 ]
  invoke void @_ZNK3JPH20BodyCreationSettings16SaveWithChildrenERNS_9StreamOutEPNS_12UnorderedMapIPKNS_5ShapeEjNS_4HashIS6_EESt8equal_toIS6_EEEPNS3_IPKNS_15PhysicsMaterialEjNS7_ISF_EES9_ISF_EEEPNS3_IPKNS_11GroupFilterEjNS7_ISM_EES9_ISM_EEE(ptr noundef nonnull align 16 dereferenceable(256) %69, ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef %76, ptr noundef %82, ptr noundef %88)
          to label %89 unwind label %111

89:                                               ; preds = %87
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.JPH::RagdollSettings::Part", ptr %91, i32 0, i32 1
  %93 = invoke noundef zeroext i1 @_ZNK3JPH3RefINS_25TwoBodyConstraintSettingsEEneEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef null)
          to label %94 unwind label %115

94:                                               ; preds = %89
  %95 = zext i1 %93 to i8
  store i8 %95, ptr %19, align 1, !tbaa !9
  invoke void @_ZN3JPH9StreamOut5WriteIbTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRKS3_(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %96 unwind label %115

96:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  %97 = load ptr, ptr %18, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.JPH::RagdollSettings::Part", ptr %97, i32 0, i32 1
  %99 = invoke noundef zeroext i1 @_ZNK3JPH3RefINS_25TwoBodyConstraintSettingsEEneEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef null)
          to label %100 unwind label %111

100:                                              ; preds = %96
  br i1 %99, label %101, label %119

101:                                              ; preds = %100
  %102 = load ptr, ptr %18, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.JPH::RagdollSettings::Part", ptr %102, i32 0, i32 1
  %104 = invoke noundef ptr @_ZNK3JPH3RefINS_25TwoBodyConstraintSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %103)
          to label %105 unwind label %111

105:                                              ; preds = %101
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load ptr, ptr %104, align 8, !tbaa !15
  %108 = getelementptr inbounds ptr, ptr %107, i64 4
  %109 = load ptr, ptr %108, align 8
  invoke void %109(ptr noundef nonnull align 8 dereferenceable(40) %104, ptr noundef nonnull align 8 dereferenceable(8) %106)
          to label %110 unwind label %111

110:                                              ; preds = %105
  br label %119

111:                                              ; preds = %105, %101, %96, %87
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %12, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %13, align 4
  br label %123

115:                                              ; preds = %94, %89
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %12, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %123

119:                                              ; preds = %110, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %120

120:                                              ; preds = %119
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.JPH::RagdollSettings::Part", ptr %121, i32 1
  store ptr %122, ptr %16, align 8, !tbaa !5
  br label %46

123:                                              ; preds = %115, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %124

124:                                              ; preds = %123, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %125

125:                                              ; preds = %124, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %182

126:                                              ; preds = %50
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %128 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %27, i32 0, i32 3
  %129 = invoke noundef i64 @_ZNK3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %128)
          to label %130 unwind label %145

130:                                              ; preds = %126
  %131 = trunc i64 %129 to i32
  store i32 %131, ptr %20, align 4, !tbaa !11
  invoke void @_ZN3JPH9StreamOut5WriteIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRKS3_(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %132 unwind label %145

132:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %133 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %27, i32 0, i32 3
  store ptr %133, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %134 = load ptr, ptr %21, align 8, !tbaa !5
  %135 = invoke noundef ptr @_ZNK3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %134)
          to label %136 unwind label %149

136:                                              ; preds = %132
  store ptr %135, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %137 = load ptr, ptr %21, align 8, !tbaa !5
  %138 = invoke noundef ptr @_ZNK3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %137)
          to label %139 unwind label %153

139:                                              ; preds = %136
  store ptr %138, ptr %23, align 8, !tbaa !5
  br label %140

140:                                              ; preds = %172, %139
  %141 = load ptr, ptr %22, align 8, !tbaa !5
  %142 = load ptr, ptr %23, align 8, !tbaa !5
  %143 = icmp ne ptr %141, %142
  br i1 %143, label %157, label %144

144:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %181

145:                                              ; preds = %130, %126
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %12, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %182

149:                                              ; preds = %132
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %12, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %13, align 4
  br label %180

153:                                              ; preds = %136
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %12, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %13, align 4
  br label %179

157:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %158 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %158, ptr %24, align 8, !tbaa !5
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = load ptr, ptr %24, align 8, !tbaa !5
  %161 = getelementptr inbounds %"class.JPH::RagdollSettings::AdditionalConstraint", ptr %160, i32 0, i32 0
  invoke void @_ZN3JPH9StreamOut5WriteIA2_iTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRKS4_(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull align 4 dereferenceable(8) %161)
          to label %162 unwind label %175

162:                                              ; preds = %157
  %163 = load ptr, ptr %24, align 8, !tbaa !5
  %164 = getelementptr inbounds %"class.JPH::RagdollSettings::AdditionalConstraint", ptr %163, i32 0, i32 1
  %165 = invoke noundef ptr @_ZNK3JPH3RefINS_25TwoBodyConstraintSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %164)
          to label %166 unwind label %175

166:                                              ; preds = %162
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = load ptr, ptr %165, align 8, !tbaa !15
  %169 = getelementptr inbounds ptr, ptr %168, i64 4
  %170 = load ptr, ptr %169, align 8
  invoke void %170(ptr noundef nonnull align 8 dereferenceable(40) %165, ptr noundef nonnull align 8 dereferenceable(8) %167)
          to label %171 unwind label %175

171:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %172

172:                                              ; preds = %171
  %173 = load ptr, ptr %22, align 8, !tbaa !5
  %174 = getelementptr inbounds %"class.JPH::RagdollSettings::AdditionalConstraint", ptr %173, i32 1
  store ptr %174, ptr %22, align 8, !tbaa !5
  br label %140

175:                                              ; preds = %166, %162, %157
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %12, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %179

179:                                              ; preds = %175, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %180

180:                                              ; preds = %179, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %182

181:                                              ; preds = %144
  call void @_ZN3JPH9HashTableIPKNS_11GroupFilterESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  call void @_ZN3JPH9HashTableIPKNS_15PhysicsMaterialESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @_ZN3JPH9HashTableIPKNS_5ShapeESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  ret void

182:                                              ; preds = %180, %145, %125, %55, %51
  call void @_ZN3JPH9HashTableIPKNS_11GroupFilterESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  call void @_ZN3JPH9HashTableIPKNS_15PhysicsMaterialESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @_ZN3JPH9HashTableIPKNS_5ShapeESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  br label %183

183:                                              ; preds = %182
  %184 = load ptr, ptr %12, align 8
  %185 = load i32, ptr %13, align 4
  %186 = insertvalue { ptr, i32 } poison, ptr %184, 0
  %187 = insertvalue { ptr, i32 } %186, i32 %185, 1
  resume { ptr, i32 } %187
}

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

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

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

declare void @_ZNK3JPH8Skeleton15SaveBinaryStateERNS_9StreamOutE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

declare void @_ZNK3JPH20BodyCreationSettings16SaveWithChildrenERNS_9StreamOutEPNS_12UnorderedMapIPKNS_5ShapeEjNS_4HashIS6_EESt8equal_toIS6_EEEPNS3_IPKNS_15PhysicsMaterialEjNS7_ISF_EES9_ISF_EEEPNS3_IPKNS_11GroupFilterEjNS7_ISM_EES9_ISM_EEE(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIPKNS_5ShapeESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4 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 = { "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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}


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

%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.46" = type { %"class.JPH::HashTable.base.48", [4 x i8] }
%"class.JPH::HashTable.base.48" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.50" = type { %"class.JPH::HashTable.base.52", [4 x i8] }
%"class.JPH::HashTable.base.52" = type <{ ptr, ptr, i32, i32, i32 }>

; 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: 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 @_ZNK3JPH15RagdollSettings15SaveBinaryStateERNS_9StreamOutEbb(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i1 noundef zeroext %2, i1 noundef zeroext %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.JPH::UnorderedMap", align 8
  %6 = alloca %"class.JPH::UnorderedMap.46", align 8
  %7 = alloca %"class.JPH::UnorderedMap.50", align 8
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @_ZN3JPH12UnorderedMapIPKNS_5ShapeEjNS_4HashIS3_EESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @_ZN3JPH12UnorderedMapIPKNS_15PhysicsMaterialEjNS_4HashIS3_EESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  call void @_ZN3JPH12UnorderedMapIPKNS_11GroupFilterEjNS_4HashIS3_EESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %7) #5
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = call noundef ptr @_ZNK3JPH3RefINS_8SkeletonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  invoke void @_ZNK3JPH8Skeleton15SaveBinaryStateERNS_9StreamOutE(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %13 unwind label %25

13:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = call noundef i64 @_ZNK3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %16 = trunc i64 %15 to i32
  store i32 %16, ptr %8, align 4, !tbaa !5
  invoke void @_ZN3JPH9StreamOut5WriteIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRKS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %17 unwind label %27

17:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %18 = call noundef ptr @_ZNK3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %19 = call noundef ptr @_ZNK3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %.not38 = icmp eq ptr %18, %19
  br i1 %.not38, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %17
  %. = select i1 %2, ptr %5, ptr null
  %20 = select i1 %2, ptr %6, ptr null
  %21 = select i1 %3, ptr %7, ptr null
  br label %29

._crit_edge:                                      ; preds = %45, %17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %22 = getelementptr inbounds i8, ptr %0, i64 40
  %23 = call noundef i64 @_ZNK3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
  %24 = trunc i64 %23 to i32
  store i32 %24, ptr %10, align 4, !tbaa !5
  invoke void @_ZN3JPH9StreamOut5WriteIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRKS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %47 unwind label %50

25:                                               ; preds = %4
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %62

27:                                               ; preds = %13
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %62

29:                                               ; preds = %.lr.ph, %45
  %.03439 = phi ptr [ %18, %.lr.ph ], [ %46, %45 ]
  invoke void @_ZNK3JPH20BodyCreationSettings16SaveWithChildrenERNS_9StreamOutEPNS_12UnorderedMapIPKNS_5ShapeEjNS_4HashIS6_EESt8equal_toIS6_EEEPNS3_IPKNS_15PhysicsMaterialEjNS7_ISF_EES9_ISF_EEEPNS3_IPKNS_11GroupFilterEjNS7_ISM_EES9_ISM_EEE(ptr noundef nonnull align 16 dereferenceable(256) %.03439, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %., ptr noundef %20, ptr noundef %21)
          to label %30 unwind label %41

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  %31 = getelementptr inbounds i8, ptr %.03439, i64 256
  %32 = call noundef zeroext i1 @_ZNK3JPH3RefINS_25TwoBodyConstraintSettingsEEneEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef null)
  %33 = zext i1 %32 to i8
  store i8 %33, ptr %9, align 1, !tbaa !9
  invoke void @_ZN3JPH9StreamOut5WriteIbTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRKS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %34 unwind label %43

34:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  %35 = call noundef zeroext i1 @_ZNK3JPH3RefINS_25TwoBodyConstraintSettingsEEneEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef null)
  br i1 %35, label %36, label %45

36:                                               ; preds = %34
  %37 = call noundef ptr @_ZNK3JPH3RefINS_25TwoBodyConstraintSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds i8, ptr %38, i64 32
  %40 = load ptr, ptr %39, align 8
  invoke void %40(ptr noundef nonnull align 8 dereferenceable(40) %37, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %45 unwind label %41

41:                                               ; preds = %36, %29
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %62

43:                                               ; preds = %30
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  br label %62

45:                                               ; preds = %36, %34
  %46 = getelementptr inbounds i8, ptr %.03439, i64 272
  %.not = icmp eq ptr %46, %19
  br i1 %.not, label %._crit_edge, label %29

47:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  %48 = call noundef ptr @_ZNK3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
  %49 = call noundef ptr @_ZNK3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
  %.not3540 = icmp eq ptr %48, %49
  br i1 %.not3540, label %._crit_edge44, label %.lr.ph43

._crit_edge44:                                    ; preds = %58, %47
  call void @_ZN3JPH9HashTableIPKNS_11GroupFilterESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @_ZN3JPH9HashTableIPKNS_15PhysicsMaterialESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @_ZN3JPH9HashTableIPKNS_5ShapeESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  ret void

50:                                               ; preds = %._crit_edge
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  br label %62

.lr.ph43:                                         ; preds = %47, %58
  %.03341 = phi ptr [ %59, %58 ], [ %48, %47 ]
  invoke void @_ZN3JPH9StreamOut5WriteIA2_iTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRKS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %.03341)
          to label %52 unwind label %60

52:                                               ; preds = %.lr.ph43
  %53 = getelementptr inbounds i8, ptr %.03341, i64 8
  %54 = call noundef ptr @_ZNK3JPH3RefINS_25TwoBodyConstraintSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = getelementptr inbounds i8, ptr %55, i64 32
  %57 = load ptr, ptr %56, align 8
  invoke void %57(ptr noundef nonnull align 8 dereferenceable(40) %54, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %58 unwind label %60

58:                                               ; preds = %52
  %59 = getelementptr inbounds i8, ptr %.03341, i64 16
  %.not35 = icmp eq ptr %59, %49
  br i1 %.not35, label %._crit_edge44, label %.lr.ph43

60:                                               ; preds = %52, %.lr.ph43
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %62

62:                                               ; preds = %41, %43, %60, %50, %27, %25
  %.pn.pn = phi { ptr, i32 } [ %61, %60 ], [ %51, %50 ], [ %28, %27 ], [ %26, %25 ], [ %42, %41 ], [ %44, %43 ]
  call void @_ZN3JPH9HashTableIPKNS_11GroupFilterESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @_ZN3JPH9HashTableIPKNS_15PhysicsMaterialESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @_ZN3JPH9HashTableIPKNS_5ShapeESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn.pn
}

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

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

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

declare void @_ZNK3JPH8Skeleton15SaveBinaryStateERNS_9StreamOutE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

declare void @_ZNK3JPH20BodyCreationSettings16SaveWithChildrenERNS_9StreamOutEPNS_12UnorderedMapIPKNS_5ShapeEjNS_4HashIS6_EESt8equal_toIS6_EEEPNS3_IPKNS_15PhysicsMaterialEjNS7_ISF_EES9_ISF_EEEPNS3_IPKNS_11GroupFilterEjNS7_ISM_EES9_ISM_EEE(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIPKNS_5ShapeESt4pairIS3_jENS_18UnorderedMapDetailIS3_jEENS_4HashIS3_EESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4 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 = { "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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass