; 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::Result" = type <{ %union.anon.55, i8, [7 x i8] }>
%union.anon.55 = type { %"class.std::__cxx11::basic_string" }
%"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::Result.57" = type <{ %union.anon.58, i8, [7 x i8] }>
%union.anon.58 = type { %"class.std::__cxx11::basic_string" }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.JPH::Ref.56" = type { ptr }
%"class.JPH::Array.60" = type { i64, i64, ptr }
%"class.JPH::Array.63" = type { i64, i64, ptr }
%"class.JPH::Array.66" = type { i64, i64, ptr }
%"class.JPH::Result.69" = type <{ %union.anon.70, i8, [15 x i8] }>
%union.anon.70 = type { %"class.JPH::BodyCreationSettings" }
%"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::Result.72" = type <{ %union.anon.73, i8, [7 x i8] }>
%union.anon.73 = type { %"class.std::__cxx11::basic_string" }
%"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::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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH15RagdollSettings23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Result") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca %"class.JPH::Result.57", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::basic_string_view", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.JPH::Ref.56", align 8
  %12 = alloca %"class.JPH::Array.60", align 8
  %13 = alloca %"class.JPH::Array.63", align 8
  %14 = alloca %"class.JPH::Array.66", align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.JPH::Result.69", align 16
  %21 = alloca %"class.std::basic_string_view", align 8
  %22 = alloca i8, align 1
  %23 = alloca %"class.JPH::Result.72", align 8
  %24 = alloca %"class.std::basic_string_view", align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"class.JPH::Result.72", align 8
  %30 = alloca %"class.std::basic_string_view", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0)
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #9
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3JPH8Skeleton23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind writable sret(%"class.JPH::Result.57") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %32 unwind label %44

32:                                               ; preds = %2
  %33 = invoke noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_8SkeletonEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33) %6)
          to label %34 unwind label %48

34:                                               ; preds = %32
  br i1 %33, label %35, label %56

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  %36 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_8SkeletonEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %6)
          to label %37 unwind label %52

37:                                               ; preds = %35
  %38 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %36) #9
  %39 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 0
  %40 = extractvalue { i64, ptr } %38, 0
  store i64 %40, ptr %39, align 8
  %41 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 1
  %42 = extractvalue { i64, ptr } %38, 1
  store ptr %42, ptr %41, align 8
  invoke void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %43 unwind label %52

43:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  store i1 true, ptr %5, align 1
  store i32 1, ptr %10, align 4
  br label %334

44:                                               ; preds = %2
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %7, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %8, align 4
  br label %337

48:                                               ; preds = %32
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %7, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %8, align 4
  br label %336

52:                                               ; preds = %37, %35
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %7, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  br label %336

56:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %57 = invoke noundef ptr @_ZN3JPH15RagdollSettingsnwEm(i64 noundef 112)
          to label %58 unwind label %93

58:                                               ; preds = %56
  call void @llvm.memset.p0.i64(ptr align 8 %57, i8 0, i64 112, i1 false)
  invoke void @_ZN3JPH15RagdollSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %57)
          to label %59 unwind label %97

59:                                               ; preds = %58
  invoke void @_ZN3JPH3RefINS_15RagdollSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %57)
          to label %60 unwind label %93

60:                                               ; preds = %59
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_8SkeletonEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %6)
          to label %62 unwind label %101

62:                                               ; preds = %60
  %63 = invoke noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %64 unwind label %101

64:                                               ; preds = %62
  %65 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %63, i32 0, i32 1
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_8SkeletonEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(8) %61)
          to label %67 unwind label %101

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_11GroupFilterEEENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  invoke void @_ZN3JPH5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 1024)
          to label %68 unwind label %105

68:                                               ; preds = %67
  invoke void @_ZN3JPH5ArrayINS_3RefINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 128)
          to label %69 unwind label %105

69:                                               ; preds = %68
  invoke void @_ZN3JPH5ArrayINS_3RefINS_11GroupFilterEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 128)
          to label %70 unwind label %105

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 0, ptr %15, align 4, !tbaa !9
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %72 unwind label %109

72:                                               ; preds = %70
  %73 = invoke noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %74 unwind label %109

74:                                               ; preds = %72
  %75 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %73, i32 0, i32 2
  %76 = load i32, ptr %15, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  invoke void @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77)
          to label %78 unwind label %109

78:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %79 = invoke noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %80 unwind label %113

80:                                               ; preds = %78
  %81 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %79, i32 0, i32 2
  store ptr %81, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  %83 = invoke noundef ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %82)
          to label %84 unwind label %117

84:                                               ; preds = %80
  store ptr %83, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  %86 = invoke noundef ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %85)
          to label %87 unwind label %121

87:                                               ; preds = %84
  store ptr %86, ptr %18, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %214, %87
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  %91 = icmp ne ptr %89, %90
  br i1 %91, label %125, label %92

92:                                               ; preds = %88
  store i32 2, ptr %10, align 4
  br label %220

93:                                               ; preds = %59, %56
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %7, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %8, align 4
  br label %333

97:                                               ; preds = %58
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %7, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %8, align 4
  call void @_ZN3JPH15RagdollSettingsdlEPv(ptr noundef %57) #9
  br label %333

101:                                              ; preds = %64, %62, %60
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  br label %332

105:                                              ; preds = %69, %68, %67
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %7, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %8, align 4
  br label %331

109:                                              ; preds = %327, %326, %324, %323, %321, %229, %227, %225, %74, %72, %70
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %7, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %8, align 4
  br label %330

113:                                              ; preds = %78
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %7, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %8, align 4
  br label %224

117:                                              ; preds = %80
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %7, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %8, align 4
  br label %223

121:                                              ; preds = %84
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %7, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %8, align 4
  br label %222

125:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %126, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 272, ptr %20) #9
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3JPH20BodyCreationSettings20sRestoreWithChildrenERNS_8StreamInERNS_5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS6_EEEERNS3_INS4_INS_15PhysicsMaterialEEENS7_ISC_EEEERNS3_INS4_INS_11GroupFilterEEENS7_ISH_EEEE(ptr dead_on_unwind writable sret(%"class.JPH::Result.69") align 16 %20, ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %128 unwind label %140

128:                                              ; preds = %125
  %129 = invoke noundef zeroext i1 @_ZNK3JPH6ResultINS_20BodyCreationSettingsEE8HasErrorEv(ptr noundef nonnull align 16 dereferenceable(257) %20)
          to label %130 unwind label %144

130:                                              ; preds = %128
  br i1 %129, label %131, label %152

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #9
  %132 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_20BodyCreationSettingsEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 16 dereferenceable(257) %20)
          to label %133 unwind label %148

133:                                              ; preds = %131
  %134 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %132) #9
  %135 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 0
  %136 = extractvalue { i64, ptr } %134, 0
  store i64 %136, ptr %135, align 8
  %137 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 1
  %138 = extractvalue { i64, ptr } %134, 1
  store ptr %138, ptr %137, align 8
  invoke void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %139 unwind label %148

139:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  store i1 true, ptr %5, align 1
  store i32 1, ptr %10, align 4
  br label %208

140:                                              ; preds = %125
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %7, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %8, align 4
  br label %219

144:                                              ; preds = %154, %152, %128
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %7, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %8, align 4
  br label %218

148:                                              ; preds = %133, %131
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %7, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  br label %218

152:                                              ; preds = %130
  %153 = invoke noundef nonnull align 16 dereferenceable(256) ptr @_ZNK3JPH6ResultINS_20BodyCreationSettingsEE3GetEv(ptr noundef nonnull align 16 dereferenceable(257) %20)
          to label %154 unwind label %144

154:                                              ; preds = %152
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = invoke noundef nonnull align 16 dereferenceable(256) ptr @_ZN3JPH20BodyCreationSettingsaSERKS0_(ptr noundef nonnull align 16 dereferenceable(256) %155, ptr noundef nonnull align 16 dereferenceable(256) %153)
          to label %157 unwind label %144

157:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #9
  store i8 0, ptr %22, align 1, !tbaa !11
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadIbTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %159 unwind label %176

159:                                              ; preds = %157
  %160 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %161 = trunc i8 %160 to i1
  br i1 %161, label %162, label %206

162:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #9
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3JPH18ConstraintSettings23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind writable sret(%"class.JPH::Result.72") align 8 %23, ptr noundef nonnull align 8 dereferenceable(8) %163)
          to label %164 unwind label %180

164:                                              ; preds = %162
  %165 = invoke noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33) %23)
          to label %166 unwind label %184

166:                                              ; preds = %164
  br i1 %165, label %167, label %192

167:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #9
  %168 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %23)
          to label %169 unwind label %188

169:                                              ; preds = %167
  %170 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %168) #9
  %171 = getelementptr inbounds { i64, ptr }, ptr %24, i32 0, i32 0
  %172 = extractvalue { i64, ptr } %170, 0
  store i64 %172, ptr %171, align 8
  %173 = getelementptr inbounds { i64, ptr }, ptr %24, i32 0, i32 1
  %174 = extractvalue { i64, ptr } %170, 1
  store ptr %174, ptr %173, align 8
  invoke void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %175 unwind label %188

175:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  store i1 true, ptr %5, align 1
  store i32 1, ptr %10, align 4
  br label %201

176:                                              ; preds = %157
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %7, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %8, align 4
  br label %217

180:                                              ; preds = %162
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %7, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %8, align 4
  br label %205

184:                                              ; preds = %196, %194, %192, %164
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %7, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %8, align 4
  br label %204

188:                                              ; preds = %169, %167
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %7, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  br label %204

192:                                              ; preds = %166
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %23)
          to label %194 unwind label %184

194:                                              ; preds = %192
  %195 = invoke noundef ptr @_ZN3JPH11DynamicCastINS_25TwoBodyConstraintSettingsENS_18ConstraintSettingsEEEPT_RKNS_3RefIT0_EE(ptr noundef nonnull align 8 dereferenceable(8) %193)
          to label %196 unwind label %184

196:                                              ; preds = %194
  %197 = load ptr, ptr %19, align 8, !tbaa !5
  %198 = getelementptr inbounds %"class.JPH::RagdollSettings::Part", ptr %197, i32 0, i32 1
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_25TwoBodyConstraintSettingsEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef %195)
          to label %200 unwind label %184

200:                                              ; preds = %196
  store i32 0, ptr %10, align 4
  br label %201

201:                                              ; preds = %200, %175
  call void @_ZN3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %23) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #9
  %202 = load i32, ptr %10, align 4
  switch i32 %202, label %207 [
    i32 0, label %203
  ]

203:                                              ; preds = %201
  br label %206

204:                                              ; preds = %188, %184
  call void @_ZN3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %23) #9
  br label %205

205:                                              ; preds = %204, %180
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #9
  br label %217

206:                                              ; preds = %203, %159
  store i32 0, ptr %10, align 4
  br label %207

207:                                              ; preds = %206, %201
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #9
  br label %208

208:                                              ; preds = %207, %139
  call void @_ZN3JPH6ResultINS_20BodyCreationSettingsEED2Ev(ptr noundef nonnull align 16 dereferenceable(257) %20) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr %20) #9
  %209 = load i32, ptr %10, align 4
  switch i32 %209, label %211 [
    i32 0, label %210
  ]

210:                                              ; preds = %208
  store i32 0, ptr %10, align 4
  br label %211

211:                                              ; preds = %210, %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  %212 = load i32, ptr %10, align 4
  switch i32 %212, label %220 [
    i32 0, label %213
  ]

213:                                              ; preds = %211
  br label %214

214:                                              ; preds = %213
  %215 = load ptr, ptr %17, align 8, !tbaa !5
  %216 = getelementptr inbounds %"class.JPH::RagdollSettings::Part", ptr %215, i32 1
  store ptr %216, ptr %17, align 8, !tbaa !5
  br label %88

217:                                              ; preds = %205, %176
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #9
  br label %218

218:                                              ; preds = %217, %148, %144
  call void @_ZN3JPH6ResultINS_20BodyCreationSettingsEED2Ev(ptr noundef nonnull align 16 dereferenceable(257) %20) #9
  br label %219

219:                                              ; preds = %218, %140
  call void @llvm.lifetime.end.p0(i64 272, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %222

220:                                              ; preds = %211, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  %221 = load i32, ptr %10, align 4
  switch i32 %221, label %329 [
    i32 2, label %225
  ]

222:                                              ; preds = %219, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %223

223:                                              ; preds = %222, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %224

224:                                              ; preds = %223, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %330

225:                                              ; preds = %220
  store i32 0, ptr %15, align 4, !tbaa !9
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %227 unwind label %109

227:                                              ; preds = %225
  %228 = invoke noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %229 unwind label %109

229:                                              ; preds = %227
  %230 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %228, i32 0, i32 3
  %231 = load i32, ptr %15, align 4, !tbaa !9
  %232 = zext i32 %231 to i64
  invoke void @_ZN3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %230, i64 noundef %232)
          to label %233 unwind label %109

233:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %234 = invoke noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %235 unwind label %248

235:                                              ; preds = %233
  %236 = getelementptr inbounds %"class.JPH::RagdollSettings", ptr %234, i32 0, i32 3
  store ptr %236, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %237 = load ptr, ptr %25, align 8, !tbaa !5
  %238 = invoke noundef ptr @_ZN3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %237)
          to label %239 unwind label %252

239:                                              ; preds = %235
  store ptr %238, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %240 = load ptr, ptr %25, align 8, !tbaa !5
  %241 = invoke noundef ptr @_ZN3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %240)
          to label %242 unwind label %256

242:                                              ; preds = %239
  store ptr %241, ptr %27, align 8, !tbaa !5
  br label %243

243:                                              ; preds = %310, %242
  %244 = load ptr, ptr %26, align 8, !tbaa !5
  %245 = load ptr, ptr %27, align 8, !tbaa !5
  %246 = icmp ne ptr %244, %245
  br i1 %246, label %260, label %247

247:                                              ; preds = %243
  store i32 4, ptr %10, align 4
  br label %316

248:                                              ; preds = %233
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %7, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %8, align 4
  br label %320

252:                                              ; preds = %235
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %7, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %8, align 4
  br label %319

256:                                              ; preds = %239
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %7, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %8, align 4
  br label %318

260:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %261 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %261, ptr %28, align 8, !tbaa !5
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = load ptr, ptr %28, align 8, !tbaa !5
  %264 = getelementptr inbounds %"class.JPH::RagdollSettings::AdditionalConstraint", ptr %263, i32 0, i32 0
  invoke void @_ZN3JPH8StreamIn4ReadIA2_iTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %262, ptr noundef nonnull align 4 dereferenceable(8) %264)
          to label %265 unwind label %279

265:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 40, ptr %29) #9
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3JPH18ConstraintSettings23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind writable sret(%"class.JPH::Result.72") align 8 %29, ptr noundef nonnull align 8 dereferenceable(8) %266)
          to label %267 unwind label %283

267:                                              ; preds = %265
  %268 = invoke noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33) %29)
          to label %269 unwind label %287

269:                                              ; preds = %267
  br i1 %268, label %270, label %295

270:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #9
  %271 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %29)
          to label %272 unwind label %291

272:                                              ; preds = %270
  %273 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %271) #9
  %274 = getelementptr inbounds { i64, ptr }, ptr %30, i32 0, i32 0
  %275 = extractvalue { i64, ptr } %273, 0
  store i64 %275, ptr %274, align 8
  %276 = getelementptr inbounds { i64, ptr }, ptr %30, i32 0, i32 1
  %277 = extractvalue { i64, ptr } %273, 1
  store ptr %277, ptr %276, align 8
  invoke void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %278 unwind label %291

278:                                              ; preds = %272
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #9
  store i1 true, ptr %5, align 1
  store i32 1, ptr %10, align 4
  br label %304

279:                                              ; preds = %260
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %7, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %8, align 4
  br label %315

283:                                              ; preds = %265
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %7, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %8, align 4
  br label %314

287:                                              ; preds = %299, %297, %295, %267
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %7, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %8, align 4
  br label %313

291:                                              ; preds = %272, %270
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %7, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #9
  br label %313

295:                                              ; preds = %269
  %296 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %29)
          to label %297 unwind label %287

297:                                              ; preds = %295
  %298 = invoke noundef ptr @_ZN3JPH11DynamicCastINS_25TwoBodyConstraintSettingsENS_18ConstraintSettingsEEEPT_RKNS_3RefIT0_EE(ptr noundef nonnull align 8 dereferenceable(8) %296)
          to label %299 unwind label %287

299:                                              ; preds = %297
  %300 = load ptr, ptr %28, align 8, !tbaa !5
  %301 = getelementptr inbounds %"class.JPH::RagdollSettings::AdditionalConstraint", ptr %300, i32 0, i32 1
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_25TwoBodyConstraintSettingsEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %301, ptr noundef %298)
          to label %303 unwind label %287

303:                                              ; preds = %299
  store i32 0, ptr %10, align 4
  br label %304

304:                                              ; preds = %303, %278
  call void @_ZN3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %29) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #9
  %305 = load i32, ptr %10, align 4
  switch i32 %305, label %307 [
    i32 0, label %306
  ]

306:                                              ; preds = %304
  store i32 0, ptr %10, align 4
  br label %307

307:                                              ; preds = %306, %304
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  %308 = load i32, ptr %10, align 4
  switch i32 %308, label %316 [
    i32 0, label %309
  ]

309:                                              ; preds = %307
  br label %310

310:                                              ; preds = %309
  %311 = load ptr, ptr %26, align 8, !tbaa !5
  %312 = getelementptr inbounds %"class.JPH::RagdollSettings::AdditionalConstraint", ptr %311, i32 1
  store ptr %312, ptr %26, align 8, !tbaa !5
  br label %243

313:                                              ; preds = %291, %287
  call void @_ZN3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %29) #9
  br label %314

314:                                              ; preds = %313, %283
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #9
  br label %315

315:                                              ; preds = %314, %279
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %318

316:                                              ; preds = %307, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  %317 = load i32, ptr %10, align 4
  switch i32 %317, label %329 [
    i32 4, label %321
  ]

318:                                              ; preds = %315, %256
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %319

319:                                              ; preds = %318, %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %320

320:                                              ; preds = %319, %248
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %330

321:                                              ; preds = %316
  %322 = invoke noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %323 unwind label %109

323:                                              ; preds = %321
  invoke void @_ZN3JPH15RagdollSettings35CalculateBodyIndexToConstraintIndexEv(ptr noundef nonnull align 8 dereferenceable(112) %322)
          to label %324 unwind label %109

324:                                              ; preds = %323
  %325 = invoke noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %326 unwind label %109

326:                                              ; preds = %324
  invoke void @_ZN3JPH15RagdollSettings37CalculateConstraintIndexToBodyIdxPairEv(ptr noundef nonnull align 8 dereferenceable(112) %325)
          to label %327 unwind label %109

327:                                              ; preds = %326
  invoke void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEE3SetERKS3_(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %328 unwind label %109

328:                                              ; preds = %327
  store i1 true, ptr %5, align 1
  store i32 1, ptr %10, align 4
  br label %329

329:                                              ; preds = %328, %316, %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_11GroupFilterEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
  call void @_ZN3JPH3RefINS_15RagdollSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %334

330:                                              ; preds = %320, %224, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %331

331:                                              ; preds = %330, %105
  call void @_ZN3JPH5ArrayINS_3RefINS_11GroupFilterEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
  br label %332

332:                                              ; preds = %331, %101
  call void @_ZN3JPH3RefINS_15RagdollSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br label %333

333:                                              ; preds = %332, %97, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %336

334:                                              ; preds = %329, %43
  call void @_ZN3JPH6ResultINS_3RefINS_8SkeletonEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %6) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #9
  %335 = load i1, ptr %5, align 1
  br i1 %335, label %339, label %338

336:                                              ; preds = %333, %52, %48
  call void @_ZN3JPH6ResultINS_3RefINS_8SkeletonEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %6) #9
  br label %337

337:                                              ; preds = %336, %44
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #9
  call void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0) #9
  br label %340

338:                                              ; preds = %334
  call void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0) #9
  br label %339

339:                                              ; preds = %338, %334
  ret void

340:                                              ; preds = %337
  %341 = load ptr, ptr %7, align 8
  %342 = load i32, ptr %8, align 4
  %343 = insertvalue { ptr, i32 } poison, ptr %341, 0
  %344 = insertvalue { ptr, i32 } %343, i32 %342, 1
  resume { ptr, i32 } %344
}

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

declare void @_ZN3JPH8Skeleton23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind writable sret(%"class.JPH::Result.57") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_8SkeletonEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33)) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH15RagdollSettingsnwEm(i64 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH15RagdollSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_8SkeletonEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33)) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_8SkeletonEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_3RefINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_3RefINS_11GroupFilterEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

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

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

declare void @_ZN3JPH20BodyCreationSettings20sRestoreWithChildrenERNS_8StreamInERNS_5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS6_EEEERNS3_INS4_INS_15PhysicsMaterialEEENS7_ISC_EEEERNS3_INS4_INS_11GroupFilterEEENS7_ISH_EEEE(ptr dead_on_unwind writable sret(%"class.JPH::Result.69") align 16, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6ResultINS_20BodyCreationSettingsEE8HasErrorEv(ptr noundef nonnull align 16 dereferenceable(257)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(256) ptr @_ZNK3JPH6ResultINS_20BodyCreationSettingsEE3GetEv(ptr noundef nonnull align 16 dereferenceable(257)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(256) ptr @_ZN3JPH20BodyCreationSettingsaSERKS0_(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef nonnull align 16 dereferenceable(256)) #6 align 2

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

declare void @_ZN3JPH18ConstraintSettings23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind writable sret(%"class.JPH::Result.72") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33)) #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH11DynamicCastINS_25TwoBodyConstraintSettingsENS_18ConstraintSettingsEEEPT_RKNS_3RefIT0_EE(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_25TwoBodyConstraintSettingsEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6ResultINS_20BodyCreationSettingsEED2Ev(ptr noundef nonnull align 16 dereferenceable(257)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #4 = { "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 = { 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 #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 = { 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 #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


; 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::Result" = type <{ %union.anon.55, i8, [7 x i8] }>
%union.anon.55 = type { %"class.std::__cxx11::basic_string" }
%"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::Result.57" = type <{ %union.anon.58, i8, [7 x i8] }>
%union.anon.58 = type { %"class.std::__cxx11::basic_string" }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.JPH::Ref.56" = type { ptr }
%"class.JPH::Array.60" = type { i64, i64, ptr }
%"class.JPH::Array.63" = type { i64, i64, ptr }
%"class.JPH::Array.66" = type { i64, i64, ptr }
%"class.JPH::Result.69" = type <{ %union.anon.70, i8, [15 x i8] }>
%union.anon.70 = type { %"class.JPH::BodyCreationSettings" }
%"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::Result.72" = type <{ %union.anon.73, i8, [7 x i8] }>
%union.anon.73 = type { %"class.std::__cxx11::basic_string" }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH15RagdollSettings23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind noalias nonnull writable sret(%"class.JPH::Result") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::Result.57", align 8
  %4 = alloca %"class.std::basic_string_view", align 8
  %5 = alloca %"class.JPH::Ref.56", align 8
  %6 = alloca %"class.JPH::Array.60", align 8
  %7 = alloca %"class.JPH::Array.63", align 8
  %8 = alloca %"class.JPH::Array.66", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.JPH::Result.69", align 16
  %11 = alloca %"class.std::basic_string_view", align 8
  %12 = alloca i8, align 1
  %13 = alloca %"class.JPH::Result.72", align 8
  %14 = alloca %"class.std::basic_string_view", align 8
  %15 = alloca %"class.JPH::Result.72", align 8
  %16 = alloca %"class.std::basic_string_view", align 8
  tail call void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #9
  invoke void @_ZN3JPH8Skeleton23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result.57") align 8 %3, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %17 unwind label %26

17:                                               ; preds = %2
  %18 = call noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_8SkeletonEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33) %3)
  br i1 %18, label %19, label %30

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_8SkeletonEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %3)
          to label %21 unwind label %28

21:                                               ; preds = %19
  %22 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  %23 = extractvalue { i64, ptr } %22, 0
  store i64 %23, ptr %4, align 8
  %24 = getelementptr inbounds i8, ptr %4, i64 8
  %25 = extractvalue { i64, ptr } %22, 1
  store ptr %25, ptr %24, align 8
  invoke void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %.critedge unwind label %28

.critedge:                                        ; preds = %21
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @_ZN3JPH6ResultINS_3RefINS_8SkeletonEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %3) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #9
  br label %171

26:                                               ; preds = %2
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %170

28:                                               ; preds = %21, %19
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br label %169

30:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %31 = invoke noundef ptr @_ZN3JPH15RagdollSettingsnwEm(i64 noundef 112)
          to label %32 unwind label %54

32:                                               ; preds = %30
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(112) %31, i8 0, i64 112, i1 false)
  invoke void @_ZN3JPH15RagdollSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %31)
          to label %33 unwind label %56

33:                                               ; preds = %32
  invoke void @_ZN3JPH3RefINS_15RagdollSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull %31)
          to label %34 unwind label %54

34:                                               ; preds = %33
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_8SkeletonEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %3)
          to label %36 unwind label %58

36:                                               ; preds = %34
  %37 = call noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_8SkeletonEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %40 unwind label %58

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_11GroupFilterEEENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  invoke void @_ZN3JPH5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 1024)
          to label %41 unwind label %60

41:                                               ; preds = %40
  invoke void @_ZN3JPH5ArrayINS_3RefINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 128)
          to label %42 unwind label %60

42:                                               ; preds = %41
  invoke void @_ZN3JPH5ArrayINS_3RefINS_11GroupFilterEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 128)
          to label %43 unwind label %60

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 0, ptr %9, align 4, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %44 unwind label %62

44:                                               ; preds = %43
  %45 = call noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %47 = load i32, ptr %9, align 4, !tbaa !5
  %48 = zext i32 %47 to i64
  invoke void @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48)
          to label %49 unwind label %62

49:                                               ; preds = %44
  %50 = call noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  %52 = call noundef ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51)
  %53 = call noundef ptr @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51)
  %.not110 = icmp eq ptr %52, %53
  br i1 %.not110, label %._crit_edge, label %.lr.ph

54:                                               ; preds = %33, %30
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %168

56:                                               ; preds = %32
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH15RagdollSettingsdlEPv(ptr noundef nonnull %31) #9
  br label %168

58:                                               ; preds = %36, %34
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %167

60:                                               ; preds = %42, %41, %40
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %166

62:                                               ; preds = %164, %162, %._crit_edge116, %121, %._crit_edge, %44, %43
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %165

.lr.ph:                                           ; preds = %49, %116
  %.072111 = phi ptr [ %117, %116 ], [ %52, %49 ]
  call void @llvm.lifetime.start.p0(i64 272, ptr nonnull %10) #9
  invoke void @_ZN3JPH20BodyCreationSettings20sRestoreWithChildrenERNS_8StreamInERNS_5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS6_EEEERNS3_INS4_INS_15PhysicsMaterialEEENS7_ISC_EEEERNS3_INS4_INS_11GroupFilterEEENS7_ISH_EEEE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result.69") align 16 %10, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %64 unwind label %73

64:                                               ; preds = %.lr.ph
  %65 = call noundef zeroext i1 @_ZNK3JPH6ResultINS_20BodyCreationSettingsEE8HasErrorEv(ptr noundef nonnull align 16 dereferenceable(257) %10)
  br i1 %65, label %66, label %79

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  %67 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_20BodyCreationSettingsEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 16 dereferenceable(257) %10)
          to label %68 unwind label %77

68:                                               ; preds = %66
  %69 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %67) #9
  %70 = extractvalue { i64, ptr } %69, 0
  store i64 %70, ptr %11, align 8
  %71 = getelementptr inbounds i8, ptr %11, i64 8
  %72 = extractvalue { i64, ptr } %69, 1
  store ptr %72, ptr %71, align 8
  invoke void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %.thread unwind label %77

.thread:                                          ; preds = %68
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN3JPH6ResultINS_20BodyCreationSettingsEED2Ev(ptr noundef nonnull align 16 dereferenceable(257) %10) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %10) #9
  br label %.thread101

73:                                               ; preds = %.lr.ph
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %120

75:                                               ; preds = %81, %79
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %119

77:                                               ; preds = %68, %66
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  br label %119

79:                                               ; preds = %64
  %80 = invoke noundef nonnull align 16 dereferenceable(256) ptr @_ZNK3JPH6ResultINS_20BodyCreationSettingsEE3GetEv(ptr noundef nonnull align 16 dereferenceable(257) %10)
          to label %81 unwind label %75

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 16 dereferenceable(256) ptr @_ZN3JPH20BodyCreationSettingsaSERKS0_(ptr noundef nonnull align 16 dereferenceable(256) %.072111, ptr noundef nonnull align 16 dereferenceable(256) %80)
          to label %83 unwind label %75

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #9
  store i8 0, ptr %12, align 1, !tbaa !9
  invoke void @_ZN3JPH8StreamIn4ReadIbTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %84 unwind label %97

84:                                               ; preds = %83
  %85 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %86 = trunc nuw i8 %85 to i1
  br i1 %86, label %87, label %116

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #9
  invoke void @_ZN3JPH18ConstraintSettings23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result.72") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %88 unwind label %99

88:                                               ; preds = %87
  %89 = call noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33) %13)
  br i1 %89, label %90, label %105

90:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %91 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %13)
          to label %92 unwind label %103

92:                                               ; preds = %90
  %93 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %91) #9
  %94 = extractvalue { i64, ptr } %93, 0
  store i64 %94, ptr %14, align 8
  %95 = getelementptr inbounds i8, ptr %14, i64 8
  %96 = extractvalue { i64, ptr } %93, 1
  store ptr %96, ptr %95, align 8
  invoke void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %115 unwind label %103

97:                                               ; preds = %83
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %118

99:                                               ; preds = %87
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %114

101:                                              ; preds = %109, %107, %105
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %113

103:                                              ; preds = %92, %90
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  br label %113

105:                                              ; preds = %88
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %13)
          to label %107 unwind label %101

107:                                              ; preds = %105
  %108 = invoke noundef ptr @_ZN3JPH11DynamicCastINS_25TwoBodyConstraintSettingsENS_18ConstraintSettingsEEEPT_RKNS_3RefIT0_EE(ptr noundef nonnull align 8 dereferenceable(8) %106)
          to label %109 unwind label %101

109:                                              ; preds = %107
  %110 = getelementptr inbounds i8, ptr %.072111, i64 256
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_25TwoBodyConstraintSettingsEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef %108)
          to label %112 unwind label %101

112:                                              ; preds = %109
  call void @_ZN3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %13) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #9
  br label %116

113:                                              ; preds = %103, %101
  %.pn = phi { ptr, i32 } [ %104, %103 ], [ %102, %101 ]
  call void @_ZN3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %13) #9
  br label %114

114:                                              ; preds = %113, %99
  %.pn.pn = phi { ptr, i32 } [ %.pn, %113 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #9
  br label %118

115:                                              ; preds = %92
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @_ZN3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %13) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #9
  call void @_ZN3JPH6ResultINS_20BodyCreationSettingsEED2Ev(ptr noundef nonnull align 16 dereferenceable(257) %10) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %10) #9
  br label %.thread101

116:                                              ; preds = %112, %84
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #9
  call void @_ZN3JPH6ResultINS_20BodyCreationSettingsEED2Ev(ptr noundef nonnull align 16 dereferenceable(257) %10) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %10) #9
  %117 = getelementptr inbounds i8, ptr %.072111, i64 272
  %.not = icmp eq ptr %117, %53
  br i1 %.not, label %._crit_edge, label %.lr.ph

118:                                              ; preds = %114, %97
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %114 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #9
  br label %119

119:                                              ; preds = %118, %77, %75
  %.pn76 = phi { ptr, i32 } [ %78, %77 ], [ %.pn.pn.pn, %118 ], [ %76, %75 ]
  call void @_ZN3JPH6ResultINS_20BodyCreationSettingsEED2Ev(ptr noundef nonnull align 16 dereferenceable(257) %10) #9
  br label %120

120:                                              ; preds = %119, %73
  %.pn76.pn = phi { ptr, i32 } [ %.pn76, %119 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %10) #9
  br label %165

._crit_edge:                                      ; preds = %116, %49
  store i32 0, ptr %9, align 4, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %121 unwind label %62

121:                                              ; preds = %._crit_edge
  %122 = call noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %123 = getelementptr inbounds i8, ptr %122, i64 40
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = zext i32 %124 to i64
  invoke void @_ZN3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %125)
          to label %126 unwind label %62

126:                                              ; preds = %121
  %127 = call noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %128 = getelementptr inbounds i8, ptr %127, i64 40
  %129 = call noundef ptr @_ZN3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %128)
  %130 = call noundef ptr @_ZN3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %128)
  %.not79112 = icmp eq ptr %129, %130
  br i1 %.not79112, label %._crit_edge116, label %.lr.ph115

.lr.ph115:                                        ; preds = %126, %156
  %.051113 = phi ptr [ %157, %156 ], [ %129, %126 ]
  invoke void @_ZN3JPH8StreamIn4ReadIA2_iTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %.051113)
          to label %131 unwind label %141

131:                                              ; preds = %.lr.ph115
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #9
  invoke void @_ZN3JPH18ConstraintSettings23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result.72") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %132 unwind label %143

132:                                              ; preds = %131
  %133 = call noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33) %15)
  br i1 %133, label %134, label %149

134:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #9
  %135 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %15)
          to label %136 unwind label %147

136:                                              ; preds = %134
  %137 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %135) #9
  %138 = extractvalue { i64, ptr } %137, 0
  store i64 %138, ptr %16, align 8
  %139 = getelementptr inbounds i8, ptr %16, i64 8
  %140 = extractvalue { i64, ptr } %137, 1
  store ptr %140, ptr %139, align 8
  invoke void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %160 unwind label %147

141:                                              ; preds = %.lr.ph115
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %165

143:                                              ; preds = %131
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %159

145:                                              ; preds = %153, %151, %149
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %158

147:                                              ; preds = %136, %134
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  br label %158

149:                                              ; preds = %132
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %15)
          to label %151 unwind label %145

151:                                              ; preds = %149
  %152 = invoke noundef ptr @_ZN3JPH11DynamicCastINS_25TwoBodyConstraintSettingsENS_18ConstraintSettingsEEEPT_RKNS_3RefIT0_EE(ptr noundef nonnull align 8 dereferenceable(8) %150)
          to label %153 unwind label %145

153:                                              ; preds = %151
  %154 = getelementptr inbounds i8, ptr %.051113, i64 8
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_25TwoBodyConstraintSettingsEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef %152)
          to label %156 unwind label %145

156:                                              ; preds = %153
  call void @_ZN3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %15) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #9
  %157 = getelementptr inbounds i8, ptr %.051113, i64 16
  %.not79 = icmp eq ptr %157, %130
  br i1 %.not79, label %._crit_edge116, label %.lr.ph115

158:                                              ; preds = %147, %145
  %.pn80 = phi { ptr, i32 } [ %148, %147 ], [ %146, %145 ]
  call void @_ZN3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %15) #9
  br label %159

159:                                              ; preds = %158, %143
  %.pn80.pn = phi { ptr, i32 } [ %.pn80, %158 ], [ %144, %143 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #9
  br label %165

160:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  call void @_ZN3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %15) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #9
  br label %.thread101

._crit_edge116:                                   ; preds = %156, %126
  %161 = call noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  invoke void @_ZN3JPH15RagdollSettings35CalculateBodyIndexToConstraintIndexEv(ptr noundef nonnull align 8 dereferenceable(112) %161)
          to label %162 unwind label %62

162:                                              ; preds = %._crit_edge116
  %163 = call noundef ptr @_ZNK3JPH3RefINS_15RagdollSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  invoke void @_ZN3JPH15RagdollSettings37CalculateConstraintIndexToBodyIdxPairEv(ptr noundef nonnull align 8 dereferenceable(112) %163)
          to label %164 unwind label %62

164:                                              ; preds = %162
  invoke void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEE3SetERKS3_(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %.thread101 unwind label %62

.thread101:                                       ; preds = %.thread, %115, %160, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_11GroupFilterEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  call void @_ZN3JPH3RefINS_15RagdollSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @_ZN3JPH6ResultINS_3RefINS_8SkeletonEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %3) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #9
  br label %171

165:                                              ; preds = %141, %159, %120, %62
  %.pn84 = phi { ptr, i32 } [ %63, %62 ], [ %.pn76.pn, %120 ], [ %.pn80.pn, %159 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  br label %166

166:                                              ; preds = %165, %60
  %.pn84.pn = phi { ptr, i32 } [ %.pn84, %165 ], [ %61, %60 ]
  call void @_ZN3JPH5ArrayINS_3RefINS_11GroupFilterEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @_ZN3JPH5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  br label %167

167:                                              ; preds = %166, %58
  %.pn84.pn.pn = phi { ptr, i32 } [ %.pn84.pn, %166 ], [ %59, %58 ]
  call void @_ZN3JPH3RefINS_15RagdollSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br label %168

168:                                              ; preds = %167, %56, %54
  %.pn84.pn.pn.pn = phi { ptr, i32 } [ %.pn84.pn.pn, %167 ], [ %55, %54 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br label %169

169:                                              ; preds = %168, %28
  %.pn89 = phi { ptr, i32 } [ %29, %28 ], [ %.pn84.pn.pn.pn, %168 ]
  call void @_ZN3JPH6ResultINS_3RefINS_8SkeletonEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %3) #9
  br label %170

170:                                              ; preds = %169, %26
  %.pn89.pn = phi { ptr, i32 } [ %.pn89, %169 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #9
  call void @_ZN3JPH6ResultINS_3RefINS_15RagdollSettingsEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0) #9
  resume { ptr, i32 } %.pn89.pn

171:                                              ; preds = %.thread101, %.critedge
  ret void
}

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

declare void @_ZN3JPH8Skeleton23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind writable sret(%"class.JPH::Result.57") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_8SkeletonEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH15RagdollSettingsnwEm(i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH15RagdollSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #6 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_8SkeletonEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_3RefINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_3RefINS_11GroupFilterEEENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_15RagdollSettings4PartENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #6 align 2

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

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

declare void @_ZN3JPH20BodyCreationSettings20sRestoreWithChildrenERNS_8StreamInERNS_5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS6_EEEERNS3_INS4_INS_15PhysicsMaterialEEENS7_ISC_EEEERNS3_INS4_INS_11GroupFilterEEENS7_ISH_EEEE(ptr dead_on_unwind writable sret(%"class.JPH::Result.69") align 16, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6ResultINS_20BodyCreationSettingsEE8HasErrorEv(ptr noundef nonnull align 16 dereferenceable(257)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(256) ptr @_ZNK3JPH6ResultINS_20BodyCreationSettingsEE3GetEv(ptr noundef nonnull align 16 dereferenceable(257)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(256) ptr @_ZN3JPH20BodyCreationSettingsaSERKS0_(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef nonnull align 16 dereferenceable(256)) local_unnamed_addr #6 align 2

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

declare void @_ZN3JPH18ConstraintSettings23sRestoreFromBinaryStateERNS_8StreamInE(ptr dead_on_unwind writable sret(%"class.JPH::Result.72") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_18ConstraintSettingsEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH11DynamicCastINS_25TwoBodyConstraintSettingsENS_18ConstraintSettingsEEEPT_RKNS_3RefIT0_EE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_25TwoBodyConstraintSettingsEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6ResultINS_20BodyCreationSettingsEED2Ev(ptr noundef nonnull align 16 dereferenceable(257)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_15RagdollSettings20AdditionalConstraintENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #6 align 2

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #4 = { "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 = { 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 #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 = { 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 #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{i8 0, i8 2}
!12 = !{}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass