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

; 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.9" = type <{ %union.anon.10, i8, [15 x i8] }>
%union.anon.10 = 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" = type <{ %union.anon.5, i8, [7 x i8] }>
%union.anon.5 = 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.6 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.6 = type { i64, [8 x i8] }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.JPH::Result.13" = type <{ %union.anon.14, i8, [7 x i8] }>
%union.anon.14 = type { %"class.std::__cxx11::basic_string" }

@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH20BodyCreationSettings20sRestoreWithChildrenERNS_8StreamInERNS_5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS6_EEEERNS3_INS4_INS_15PhysicsMaterialEEENS7_ISC_EEEERNS3_INS4_INS_11GroupFilterEEENS7_ISH_EEEE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Result.9") align 16 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 %2, ptr noundef nonnull align 1 %3, ptr noundef nonnull align 1 %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i1, align 1
  %12 = alloca %"class.JPH::BodyCreationSettings", align 16
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.JPH::Result", align 8
  %17 = alloca %"class.std::basic_string_view", align 8
  %18 = alloca %"class.JPH::Result.13", align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  store i1 false, ptr %11, align 1
  call void @_ZN3JPH6ResultINS_20BodyCreationSettingsEEC2Ev(ptr noundef nonnull align 16 dereferenceable(257) %0)
  call void @llvm.lifetime.start.p0(i64 256, ptr %12) #6
  invoke void @_ZN3JPH20BodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(256) %12)
          to label %20 unwind label %38

20:                                               ; preds = %5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH20BodyCreationSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 16 dereferenceable(256) %12, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %22 unwind label %42

22:                                               ; preds = %20
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds ptr, ptr %24, i64 3
  %26 = load ptr, ptr %25, align 8
  %27 = invoke noundef zeroext i1 %26(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %28 unwind label %42

28:                                               ; preds = %22
  br i1 %27, label %36, label %29

29:                                               ; preds = %28
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 4
  %33 = load ptr, ptr %32, align 8
  %34 = invoke noundef zeroext i1 %33(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %35 unwind label %42

35:                                               ; preds = %29
  br i1 %34, label %36, label %46

36:                                               ; preds = %35, %28
  invoke void @_ZN3JPH6ResultINS_20BodyCreationSettingsEE8SetErrorEPKc(ptr noundef nonnull align 16 dereferenceable(257) %0, ptr noundef @.str.6)
          to label %37 unwind label %42

37:                                               ; preds = %36
  store i1 true, ptr %11, align 1
  store i32 1, ptr %15, align 4
  br label %120

38:                                               ; preds = %5
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %13, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %14, align 4
  br label %123

42:                                               ; preds = %36, %29, %22, %20
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %13, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %14, align 4
  br label %122

46:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #6
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN3JPH5Shape20sRestoreWithChildrenERNS_8StreamInERNS_5ArrayINS_3RefIS0_EENS_12STLAllocatorIS5_EEEERNS3_INS4_INS_15PhysicsMaterialEEENS6_ISB_EEEE(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 1 %48, ptr noundef nonnull align 1 %49)
          to label %50 unwind label %62

50:                                               ; preds = %46
  %51 = invoke noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33) %16)
          to label %52 unwind label %66

52:                                               ; preds = %50
  br i1 %51, label %53, label %74

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %54 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %16)
          to label %55 unwind label %70

55:                                               ; preds = %53
  %56 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %54) #6
  %57 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 0
  %58 = extractvalue { i64, ptr } %56, 0
  store i64 %58, ptr %57, align 8
  %59 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 1
  %60 = extractvalue { i64, ptr } %56, 1
  store ptr %60, ptr %59, align 8
  invoke void @_ZN3JPH6ResultINS_20BodyCreationSettingsEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 16 dereferenceable(257) %0, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %61 unwind label %70

61:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  store i1 true, ptr %11, align 1
  store i32 1, ptr %15, align 4
  br label %117

62:                                               ; preds = %46
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %13, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %14, align 4
  br label %119

66:                                               ; preds = %78, %76, %74, %50
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %13, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %14, align 4
  br label %118

70:                                               ; preds = %55, %53
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %13, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %118

74:                                               ; preds = %52
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %16)
          to label %76 unwind label %66

76:                                               ; preds = %74
  %77 = invoke noundef ptr @_ZNK3JPH3RefINS_5ShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %78 unwind label %66

78:                                               ; preds = %76
  invoke void @_ZN3JPH20BodyCreationSettings8SetShapeEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(256) %12, ptr noundef %77)
          to label %79 unwind label %66

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #6
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN3JPH11StreamUtils22RestoreObjectReferenceINS_11GroupFilterEEENS_6ResultINS_3RefIT_EEEERNS_8StreamInERNS_5ArrayIS6_NS_12STLAllocatorIS6_EEEE(ptr dead_on_unwind writable sret(%"class.JPH::Result.13") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull align 1 %81)
          to label %82 unwind label %94

82:                                               ; preds = %79
  %83 = invoke noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_11GroupFilterEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33) %18)
          to label %84 unwind label %98

84:                                               ; preds = %82
  br i1 %83, label %85, label %106

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %86 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_11GroupFilterEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %18)
          to label %87 unwind label %102

87:                                               ; preds = %85
  %88 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %86) #6
  %89 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 0
  %90 = extractvalue { i64, ptr } %88, 0
  store i64 %90, ptr %89, align 8
  %91 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 1
  %92 = extractvalue { i64, ptr } %88, 1
  store ptr %92, ptr %91, align 8
  invoke void @_ZN3JPH6ResultINS_20BodyCreationSettingsEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 16 dereferenceable(257) %0, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %93 unwind label %102

93:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  store i1 true, ptr %11, align 1
  store i32 1, ptr %15, align 4
  br label %114

94:                                               ; preds = %79
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %13, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %14, align 4
  br label %116

98:                                               ; preds = %112, %111, %109, %106, %82
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %13, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %14, align 4
  br label %115

102:                                              ; preds = %87, %85
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %13, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %115

106:                                              ; preds = %84
  %107 = getelementptr inbounds %"class.JPH::BodyCreationSettings", ptr %12, i32 0, i32 6
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_11GroupFilterEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %18)
          to label %109 unwind label %98

109:                                              ; preds = %106
  %110 = invoke noundef ptr @_ZNK3JPH3RefINS_11GroupFilterEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %108)
          to label %111 unwind label %98

111:                                              ; preds = %109
  invoke void @_ZN3JPH14CollisionGroup14SetGroupFilterEPKNS_11GroupFilterE(ptr noundef nonnull align 8 dereferenceable(16) %107, ptr noundef %110)
          to label %112 unwind label %98

112:                                              ; preds = %111
  invoke void @_ZN3JPH6ResultINS_20BodyCreationSettingsEE3SetERKS1_(ptr noundef nonnull align 16 dereferenceable(257) %0, ptr noundef nonnull align 16 dereferenceable(256) %12)
          to label %113 unwind label %98

113:                                              ; preds = %112
  store i1 true, ptr %11, align 1
  store i32 1, ptr %15, align 4
  br label %114

114:                                              ; preds = %113, %93
  call void @_ZN3JPH6ResultINS_3RefINS_11GroupFilterEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %18) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  br label %117

115:                                              ; preds = %102, %98
  call void @_ZN3JPH6ResultINS_3RefINS_11GroupFilterEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %18) #6
  br label %116

116:                                              ; preds = %115, %94
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  br label %118

117:                                              ; preds = %114, %61
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %16) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #6
  br label %120

118:                                              ; preds = %116, %70, %66
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %16) #6
  br label %119

119:                                              ; preds = %118, %62
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #6
  br label %122

120:                                              ; preds = %117, %37
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %12) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %12) #6
  %121 = load i1, ptr %11, align 1
  br i1 %121, label %125, label %124

122:                                              ; preds = %119, %42
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %12) #6
  br label %123

123:                                              ; preds = %122, %38
  call void @llvm.lifetime.end.p0(i64 256, ptr %12) #6
  call void @_ZN3JPH6ResultINS_20BodyCreationSettingsEED2Ev(ptr noundef nonnull align 16 dereferenceable(257) %0) #6
  br label %126

124:                                              ; preds = %120
  call void @_ZN3JPH6ResultINS_20BodyCreationSettingsEED2Ev(ptr noundef nonnull align 16 dereferenceable(257) %0) #6
  br label %125

125:                                              ; preds = %124, %120
  ret void

126:                                              ; preds = %123
  %127 = load ptr, ptr %13, align 8
  %128 = load i32, ptr %14, align 4
  %129 = insertvalue { ptr, i32 } poison, ptr %127, 0
  %130 = insertvalue { ptr, i32 } %129, i32 %128, 1
  resume { ptr, i32 } %130
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH6ResultINS_20BodyCreationSettingsEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 16 dereferenceable(257), ptr noundef nonnull align 8 dereferenceable(16)) #1 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)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11StreamUtils22RestoreObjectReferenceINS_11GroupFilterEEENS_6ResultINS_3RefIT_EEEERNS_8StreamInERNS_5ArrayIS6_NS_12STLAllocatorIS6_EEEE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Result.13") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1) #1

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256)) 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 #2 align 2

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


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

%"class.JPH::Result.9" = type <{ %union.anon.10, i8, [15 x i8] }>
%union.anon.10 = 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" = type <{ %union.anon.5, i8, [7 x i8] }>
%union.anon.5 = 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.6 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.6 = type { i64, [8 x i8] }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.JPH::Result.13" = type <{ %union.anon.14, i8, [7 x i8] }>
%union.anon.14 = type { %"class.std::__cxx11::basic_string" }

@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH20BodyCreationSettings20sRestoreWithChildrenERNS_8StreamInERNS_5ArrayINS_3RefINS_5ShapeEEENS_12STLAllocatorIS6_EEEERNS3_INS4_INS_15PhysicsMaterialEEENS7_ISC_EEEERNS3_INS4_INS_11GroupFilterEEENS7_ISH_EEEE(ptr dead_on_unwind noalias nonnull writable sret(%"class.JPH::Result.9") align 16 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 %2, ptr noundef nonnull align 1 %3, ptr noundef nonnull align 1 %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.JPH::BodyCreationSettings", align 16
  %7 = alloca %"class.JPH::Result", align 8
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca %"class.JPH::Result.13", align 8
  %10 = alloca %"class.std::basic_string_view", align 8
  tail call void @_ZN3JPH6ResultINS_20BodyCreationSettingsEEC2Ev(ptr noundef nonnull align 16 dereferenceable(257) %0)
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #6
  invoke void @_ZN3JPH20BodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6)
          to label %11 unwind label %25

11:                                               ; preds = %5
  invoke void @_ZN3JPH20BodyCreationSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 16 dereferenceable(256) %6, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %12 unwind label %27

12:                                               ; preds = %11
  %13 = load ptr, ptr %1, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 24
  %15 = load ptr, ptr %14, align 8
  %16 = invoke noundef zeroext i1 %15(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %17 unwind label %27

17:                                               ; preds = %12
  br i1 %16, label %24, label %18

18:                                               ; preds = %17
  %19 = load ptr, ptr %1, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 32
  %21 = load ptr, ptr %20, align 8
  %22 = invoke noundef zeroext i1 %21(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %23 unwind label %27

23:                                               ; preds = %18
  br i1 %22, label %24, label %29

24:                                               ; preds = %23, %17
  invoke void @_ZN3JPH6ResultINS_20BodyCreationSettingsEE8SetErrorEPKc(ptr noundef nonnull align 16 dereferenceable(257) %0, ptr noundef nonnull @.str.6)
          to label %79 unwind label %27

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

27:                                               ; preds = %24, %18, %12, %11
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %80

29:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #6
  invoke void @_ZN3JPH5Shape20sRestoreWithChildrenERNS_8StreamInERNS_5ArrayINS_3RefIS0_EENS_12STLAllocatorIS5_EEEERNS3_INS4_INS_15PhysicsMaterialEEENS6_ISB_EEEE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 %2, ptr noundef nonnull align 1 %3)
          to label %30 unwind label %40

30:                                               ; preds = %29
  %31 = call noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33) %7)
  br i1 %31, label %32, label %46

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %33 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %7)
          to label %34 unwind label %44

34:                                               ; preds = %32
  %35 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  %36 = extractvalue { i64, ptr } %35, 0
  store i64 %36, ptr %8, align 8
  %37 = getelementptr inbounds i8, ptr %8, i64 8
  %38 = extractvalue { i64, ptr } %35, 1
  store ptr %38, ptr %37, align 8
  invoke void @_ZN3JPH6ResultINS_20BodyCreationSettingsEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 16 dereferenceable(257) %0, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %39 unwind label %44

39:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %76

40:                                               ; preds = %29
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %78

42:                                               ; preds = %48, %46
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %77

44:                                               ; preds = %34, %32
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %77

46:                                               ; preds = %30
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %7)
          to label %48 unwind label %42

48:                                               ; preds = %46
  %49 = call noundef ptr @_ZNK3JPH3RefINS_5ShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %47)
  invoke void @_ZN3JPH20BodyCreationSettings8SetShapeEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(256) %6, ptr noundef %49)
          to label %50 unwind label %42

50:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #6
  invoke void @_ZN3JPH11StreamUtils22RestoreObjectReferenceINS_11GroupFilterEEENS_6ResultINS_3RefIT_EEEERNS_8StreamInERNS_5ArrayIS6_NS_12STLAllocatorIS6_EEEE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result.13") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 %4)
          to label %51 unwind label %61

51:                                               ; preds = %50
  %52 = call noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_11GroupFilterEEEE8HasErrorEv(ptr noundef nonnull align 8 dereferenceable(33) %9)
  br i1 %52, label %53, label %67

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %54 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_11GroupFilterEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %9)
          to label %55 unwind label %65

55:                                               ; preds = %53
  %56 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %54) #6
  %57 = extractvalue { i64, ptr } %56, 0
  store i64 %57, ptr %10, align 8
  %58 = getelementptr inbounds i8, ptr %10, i64 8
  %59 = extractvalue { i64, ptr } %56, 1
  store ptr %59, ptr %58, align 8
  invoke void @_ZN3JPH6ResultINS_20BodyCreationSettingsEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 16 dereferenceable(257) %0, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %60 unwind label %65

60:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %73

61:                                               ; preds = %50
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %75

63:                                               ; preds = %72, %69, %67
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %74

65:                                               ; preds = %55, %53
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %74

67:                                               ; preds = %51
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_11GroupFilterEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %9)
          to label %69 unwind label %63

69:                                               ; preds = %67
  %70 = getelementptr inbounds i8, ptr %6, i64 80
  %71 = call noundef ptr @_ZNK3JPH3RefINS_11GroupFilterEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %68)
  invoke void @_ZN3JPH14CollisionGroup14SetGroupFilterEPKNS_11GroupFilterE(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef %71)
          to label %72 unwind label %63

72:                                               ; preds = %69
  invoke void @_ZN3JPH6ResultINS_20BodyCreationSettingsEE3SetERKS1_(ptr noundef nonnull align 16 dereferenceable(257) %0, ptr noundef nonnull align 16 dereferenceable(256) %6)
          to label %73 unwind label %63

73:                                               ; preds = %72, %60
  call void @_ZN3JPH6ResultINS_3RefINS_11GroupFilterEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  br label %76

74:                                               ; preds = %65, %63
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @_ZN3JPH6ResultINS_3RefINS_11GroupFilterEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %9) #6
  br label %75

75:                                               ; preds = %74, %61
  %.pn.pn = phi { ptr, i32 } [ %.pn, %74 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  br label %77

76:                                               ; preds = %73, %39
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  br label %79

77:                                               ; preds = %75, %44, %42
  %.pn21 = phi { ptr, i32 } [ %45, %44 ], [ %.pn.pn, %75 ], [ %43, %42 ]
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %7) #6
  br label %78

78:                                               ; preds = %77, %40
  %.pn21.pn = phi { ptr, i32 } [ %.pn21, %77 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  br label %80

79:                                               ; preds = %24, %76
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #6
  ret void

80:                                               ; preds = %78, %27
  %.pn24 = phi { ptr, i32 } [ %28, %27 ], [ %.pn21.pn, %78 ]
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #6
  br label %81

81:                                               ; preds = %80, %25
  %.pn24.pn = phi { ptr, i32 } [ %.pn24, %80 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #6
  call void @_ZN3JPH6ResultINS_20BodyCreationSettingsEED2Ev(ptr noundef nonnull align 16 dereferenceable(257) %0) #6
  resume { ptr, i32 } %.pn24.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH6ResultINS_20BodyCreationSettingsEE8SetErrorERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 16 dereferenceable(257), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 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 #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11StreamUtils22RestoreObjectReferenceINS_11GroupFilterEEENS_6ResultINS_3RefIT_EEEERNS_8StreamInERNS_5ArrayIS6_NS_12STLAllocatorIS6_EEEE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Result.13") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1) local_unnamed_addr #1

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256)) 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 #2 align 2

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


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