; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Body/BodyManager.ll (ZN3JPH11BodyManager14ActivateBodiesEPKNS_6BodyIDEi)

; 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::UniqueLock" = type <{ ptr, ptr, i32, [4 x i8] }>
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::BodyManager" = type <{ %"class.JPH::Array", i32, [4 x i8], i64, %"class.JPH::Mutex", %"class.JPH::MutexArray", %"class.JPH::Array.0", %"class.JPH::Mutex", [2 x ptr], [2 x %"struct.std::atomic"], i32, [4 x i8], %"class.JPH::Mutex", %"class.JPH::Array.3", ptr, ptr, i8, [7 x i8] }>
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::MutexArray" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::Array.0" = type { i64, i64, ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Mutex" = type { %"class.std::mutex", %"class.std::thread::id" }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::thread::id" = type { i64 }
%"class.JPH::Array.3" = type { i64, i64, ptr }
%"class.JPH::Body" = type <{ %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::AABox", %"class.JPH::RefConst", ptr, i64, %"class.JPH::CollisionGroup", float, float, %"class.JPH::BodyID", i16, i8, %"class.JPH::BroadPhaseLayer", i8, %"struct.std::atomic.8", [6 x i8] }>
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.7", i32, i32 }
%"class.JPH::RefConst.7" = type { ptr }
%"class.JPH::BroadPhaseLayer" = type { i8 }
%"struct.std::atomic.8" = type { %"struct.std::__atomic_base.9" }
%"struct.std::__atomic_base.9" = type { i8 }
%"class.JPH::MotionProperties" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Float3", %"class.JPH::Float3", float, float, float, float, float, float, i32, i32, i8, i8, i8, i8, i8, [3 x i8], [3 x %"class.JPH::Sphere"], float, i8, i8, [10 x i8] }>
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Sphere" = type { %"class.JPH::Float3", float }

@_ZN3JPHL24sOverrideAllowActivationE = external hidden thread_local global i8, align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [50 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6BodyID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH6BodyID8GetIndexEv(ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH11BodyManager14ActivateBodiesEPKNS_6BodyIDEi(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef %1, i32 noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.JPH::UniqueLock", align 8
  %8 = alloca %"struct.JPH::AssertLastParam", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.JPH::BodyID", align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.JPH::AssertLastParam", align 1
  %16 = alloca %"struct.JPH::AssertLastParam", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %17 = load ptr, ptr %4, align 8
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = icmp sle i32 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %3
  br label %134

21:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  %22 = getelementptr inbounds %"class.JPH::BodyManager", ptr %17, i32 0, i32 7
  call void @_ZN3JPH10UniqueLockINS_5MutexEEC2ERS1_PKNS_11BodyManagerENS_17EPhysicsLockTypesE(ptr noundef nonnull align 8 dereferenceable(20) %7, ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef %17, i32 noundef 32)
  br label %23

23:                                               ; preds = %21
  %24 = getelementptr inbounds %"class.JPH::BodyManager", ptr %17, i32 0, i32 16
  %25 = load i8, ptr %24, align 8, !tbaa !11, !range !23, !noundef !24
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %39

27:                                               ; preds = %23
  %28 = call align 1 ptr @llvm.threadlocal.address.p0(ptr align 1 @_ZN3JPHL24sOverrideAllowActivationE)
  %29 = load i8, ptr %28, align 1, !tbaa !25, !range !23, !noundef !24
  %30 = trunc i8 %29 to i1
  br i1 %30, label %39, label %31

31:                                               ; preds = %27
  %32 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 552)
          to label %33 unwind label %35

33:                                               ; preds = %31
  br i1 %32, label %34, label %39

34:                                               ; preds = %33
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !26
  br label %39

35:                                               ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %9, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %10, align 4
  br label %135

39:                                               ; preds = %34, %33, %27, %23
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %42, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = load i32, ptr %6, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds %"class.JPH::BodyID", ptr %43, i64 %45
  store ptr %46, ptr %12, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %129, %41
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = icmp ult ptr %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %133

52:                                               ; preds = %47
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = invoke noundef zeroext i1 @_ZNK3JPH6BodyID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4) %53)
          to label %55 unwind label %75

55:                                               ; preds = %52
  br i1 %54, label %128, label %56

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %57, i64 4, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %58 = getelementptr inbounds %"class.JPH::BodyManager", ptr %17, i32 0, i32 0
  %59 = invoke noundef i32 @_ZNK3JPH6BodyID8GetIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %60 unwind label %79

60:                                               ; preds = %56
  %61 = zext i32 %59 to i64
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %61)
          to label %63 unwind label %79

63:                                               ; preds = %60
  %64 = load ptr, ptr %62, align 8, !tbaa !5
  store ptr %64, ptr %14, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %63
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %66)
          to label %68 unwind label %79

68:                                               ; preds = %65
  %69 = invoke noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %70 unwind label %79

70:                                               ; preds = %68
  br i1 %69, label %83, label %71

71:                                               ; preds = %70
  %72 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 560)
          to label %73 unwind label %79

73:                                               ; preds = %71
  br i1 %72, label %74, label %83

74:                                               ; preds = %73
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !28
  br label %83

75:                                               ; preds = %52
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %9, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %10, align 4
  br label %132

79:                                               ; preds = %120, %115, %109, %100, %96, %90, %86, %71, %68, %65, %60, %56
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %9, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %132

83:                                               ; preds = %74, %73, %70
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = invoke noundef zeroext i1 @_ZNK3JPH4Body14IsInBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(122) %87)
          to label %89 unwind label %79

89:                                               ; preds = %86
  br i1 %88, label %94, label %90

90:                                               ; preds = %89
  %91 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 561, ptr noundef @.str.13)
          to label %92 unwind label %79

92:                                               ; preds = %90
  br i1 %91, label %93, label %94

93:                                               ; preds = %92
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !29
  br label %94

94:                                               ; preds = %93, %92, %89
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = invoke noundef zeroext i1 @_ZNK3JPH4Body8IsStaticEv(ptr noundef nonnull align 16 dereferenceable(122) %97)
          to label %99 unwind label %79

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

100:                                              ; preds = %99
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN3JPH4Body15ResetSleepTimerEv(ptr noundef nonnull align 16 dereferenceable(122) %101)
          to label %102 unwind label %79

102:                                              ; preds = %100
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.JPH::Body", ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !30
  %106 = getelementptr inbounds %"class.JPH::MotionProperties", ptr %105, i32 0, i32 12
  %107 = load i32, ptr %106, align 16, !tbaa !47
  %108 = icmp eq i32 %107, -1
  br i1 %108, label %109, label %126

109:                                              ; preds = %102
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN3JPH11BodyManager21AddBodyToActiveBodiesERNS_4BodyE(ptr noundef nonnull align 8 dereferenceable(297) %17, ptr noundef nonnull align 16 dereferenceable(122) %110)
          to label %111 unwind label %79

111:                                              ; preds = %109
  %112 = getelementptr inbounds %"class.JPH::BodyManager", ptr %17, i32 0, i32 14
  %113 = load ptr, ptr %112, align 8, !tbaa !52
  %114 = icmp ne ptr %113, null
  br i1 %114, label %115, label %125

115:                                              ; preds = %111
  %116 = getelementptr inbounds %"class.JPH::BodyManager", ptr %17, i32 0, i32 14
  %117 = load ptr, ptr %116, align 8, !tbaa !52
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = invoke noundef i64 @_ZNK3JPH4Body11GetUserDataEv(ptr noundef nonnull align 16 dereferenceable(122) %118)
          to label %120 unwind label %79

120:                                              ; preds = %115
  %121 = load ptr, ptr %117, align 8, !tbaa !53
  %122 = getelementptr inbounds ptr, ptr %121, i64 2
  %123 = load ptr, ptr %122, align 8
  invoke void %123(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull align 4 dereferenceable(4) %13, i64 noundef %119)
          to label %124 unwind label %79

124:                                              ; preds = %120
  br label %125

125:                                              ; preds = %124, %111
  br label %126

126:                                              ; preds = %125, %102
  br label %127

127:                                              ; preds = %126, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %128

128:                                              ; preds = %127, %55
  br label %129

129:                                              ; preds = %128
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds %"class.JPH::BodyID", ptr %130, i32 1
  store ptr %131, ptr %11, align 8, !tbaa !5
  br label %47, !llvm.loop !55

132:                                              ; preds = %79, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %135

133:                                              ; preds = %51
  call void @_ZN3JPH10UniqueLockINS_5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  br label %134

134:                                              ; preds = %133, %20
  ret void

135:                                              ; preds = %132, %35
  call void @_ZN3JPH10UniqueLockINS_5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  br label %136

136:                                              ; preds = %135
  %137 = load ptr, ptr %9, align 8
  %138 = load i32, ptr %10, align 4
  %139 = insertvalue { ptr, i32 } poison, ptr %137, 0
  %140 = insertvalue { ptr, i32 } %139, i32 %138, 1
  resume { ptr, i32 } %140
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body14IsInBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(122)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body8IsStaticEv(ptr noundef nonnull align 16 dereferenceable(122)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH4Body15ResetSleepTimerEv(ptr noundef nonnull align 16 dereferenceable(122)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH11BodyManager21AddBodyToActiveBodiesERNS_4BodyE(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef nonnull align 16 dereferenceable(122)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH4Body11GetUserDataEv(ptr noundef nonnull align 16 dereferenceable(122)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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, !22, i64 296}
!12 = !{!"_ZTSN3JPH11BodyManagerE", !13, i64 0, !10, i64 24, !14, i64 32, !15, i64 40, !19, i64 88, !20, i64 104, !15, i64 128, !7, i64 176, !7, i64 192, !10, i64 200, !15, i64 208, !21, i64 256, !6, i64 280, !6, i64 288, !22, i64 296}
!13 = !{!"_ZTSN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEEE", !14, i64 0, !14, i64 8, !6, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN3JPH5MutexE", !16, i64 0, !18, i64 40}
!16 = !{!"_ZTSSt5mutex", !17, i64 0}
!17 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!18 = !{!"_ZTSNSt6thread2idE", !14, i64 0}
!19 = !{!"_ZTSN3JPH10MutexArrayINS_11SharedMutexEEE", !6, i64 0, !10, i64 8}
!20 = !{!"_ZTSN3JPH5ArrayIhNS_12STLAllocatorIhEEEE", !14, i64 0, !14, i64 8, !6, i64 16}
!21 = !{!"_ZTSN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEE", !14, i64 0, !14, i64 8, !6, i64 16}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!22, !22, i64 0}
!26 = !{i64 2158735898}
!27 = !{i64 0, i64 4, !9}
!28 = !{i64 2158736238}
!29 = !{i64 2158736626}
!30 = !{!31, !6, i64 72}
!31 = !{!"_ZTSN3JPH4BodyE", !32, i64 0, !33, i64 16, !35, i64 32, !36, i64 64, !6, i64 72, !14, i64 80, !37, i64 88, !39, i64 104, !39, i64 108, !40, i64 112, !41, i64 116, !42, i64 118, !43, i64 119, !44, i64 120, !45, i64 121}
!32 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!33 = !{!"_ZTSN3JPH4QuatE", !34, i64 0}
!34 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!35 = !{!"_ZTSN3JPH5AABoxE", !32, i64 0, !32, i64 16}
!36 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!37 = !{!"_ZTSN3JPH14CollisionGroupE", !38, i64 0, !10, i64 8, !10, i64 12}
!38 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !6, i64 0}
!39 = !{!"float", !7, i64 0}
!40 = !{!"_ZTSN3JPH6BodyIDE", !10, i64 0}
!41 = !{!"short", !7, i64 0}
!42 = !{!"_ZTSN3JPH9EBodyTypeE", !7, i64 0}
!43 = !{!"_ZTSN3JPH15BroadPhaseLayerE", !7, i64 0}
!44 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!45 = !{!"_ZTSSt6atomicIhE", !46, i64 0}
!46 = !{!"_ZTSSt13__atomic_baseIhE", !7, i64 0}
!47 = !{!48, !10, i64 112}
!48 = !{!"_ZTSN3JPH16MotionPropertiesE", !32, i64 0, !32, i64 16, !32, i64 32, !33, i64 48, !49, i64 64, !49, i64 76, !39, i64 88, !39, i64 92, !39, i64 96, !39, i64 100, !39, i64 104, !39, i64 108, !10, i64 112, !10, i64 116, !50, i64 120, !22, i64 121, !51, i64 122, !7, i64 123, !7, i64 124, !7, i64 128, !39, i64 176, !42, i64 180, !44, i64 181}
!49 = !{!"_ZTSN3JPH6Float3E", !39, i64 0, !39, i64 4, !39, i64 8}
!50 = !{!"_ZTSN3JPH14EMotionQualityE", !7, i64 0}
!51 = !{!"_ZTSN3JPH12EAllowedDOFsE", !7, i64 0}
!52 = !{!12, !6, i64 280}
!53 = !{!54, !54, i64 0}
!54 = !{!"vtable pointer", !8, i64 0}
!55 = distinct !{!55, !56}
!56 = !{!"llvm.loop.mustprogress"}


; 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::UniqueLock" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.JPH::BodyID" = type { i32 }

@_ZN3JPHL24sOverrideAllowActivationE = external hidden thread_local local_unnamed_addr global i8, align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [50 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6BodyID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH6BodyID8GetIndexEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH11BodyManager14ActivateBodiesEPKNS_6BodyIDEi(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.JPH::UniqueLock", align 8
  %5 = alloca %"class.JPH::BodyID", align 4
  %6 = icmp slt i32 %2, 1
  br i1 %6, label %69, label %7

7:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %8 = getelementptr inbounds i8, ptr %0, i64 128
  call void @_ZN3JPH10UniqueLockINS_5MutexEEC2ERS1_PKNS_11BodyManagerENS_17EPhysicsLockTypesE(ptr noundef nonnull align 8 dereferenceable(20) %4, ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull %0, i32 noundef 32)
  %9 = getelementptr inbounds i8, ptr %0, i64 296
  %10 = load i8, ptr %9, align 8, !tbaa !5, !range !21, !noundef !22
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %12, label %.lr.ph

12:                                               ; preds = %7
  %13 = call align 1 ptr @llvm.threadlocal.address.p0(ptr align 1 @_ZN3JPHL24sOverrideAllowActivationE)
  %14 = load i8, ptr %13, align 1, !tbaa !23, !range !21, !noundef !22
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %.lr.ph, label %16

16:                                               ; preds = %12
  %17 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 552)
          to label %18 unwind label %20

18:                                               ; preds = %16
  br i1 %17, label %19, label %.lr.ph

19:                                               ; preds = %18
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !24
  br label %.lr.ph

20:                                               ; preds = %16
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %70

.lr.ph:                                           ; preds = %7, %12, %18, %19
  %22 = zext nneg i32 %2 to i64
  %23 = getelementptr inbounds %"class.JPH::BodyID", ptr %1, i64 %22
  %24 = getelementptr inbounds i8, ptr %0, i64 280
  br label %25

._crit_edge:                                      ; preds = %66
  call void @_ZN3JPH10UniqueLockINS_5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %69

25:                                               ; preds = %.lr.ph, %66
  %.01923 = phi ptr [ %1, %.lr.ph ], [ %67, %66 ]
  %26 = call noundef zeroext i1 @_ZNK3JPH6BodyID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4) %.01923)
  br i1 %26, label %66, label %27

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %28 = load i32, ptr %.01923, align 4, !tbaa !25
  store i32 %28, ptr %5, align 4, !tbaa !25
  %29 = call noundef i32 @_ZNK3JPH6BodyID8GetIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  %30 = zext i32 %29 to i64
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %30)
          to label %32 unwind label %40

32:                                               ; preds = %27
  %33 = load ptr, ptr %31, align 8, !tbaa !26
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %33)
  %35 = call noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %35, label %42, label %36

36:                                               ; preds = %32
  %37 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 560)
          to label %38 unwind label %40

38:                                               ; preds = %36
  br i1 %37, label %39, label %42

39:                                               ; preds = %38
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !27
  br label %42

40:                                               ; preds = %60, %57, %50, %44, %36, %27
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %70

42:                                               ; preds = %32, %38, %39
  %43 = call noundef zeroext i1 @_ZNK3JPH4Body14IsInBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(122) %33)
  br i1 %43, label %48, label %44

44:                                               ; preds = %42
  %45 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 561, ptr noundef nonnull @.str.13)
          to label %46 unwind label %40

46:                                               ; preds = %44
  br i1 %45, label %47, label %48

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

48:                                               ; preds = %47, %46, %42
  %49 = call noundef zeroext i1 @_ZNK3JPH4Body8IsStaticEv(ptr noundef nonnull align 16 dereferenceable(122) %33)
  br i1 %49, label %65, label %50

50:                                               ; preds = %48
  invoke void @_ZN3JPH4Body15ResetSleepTimerEv(ptr noundef nonnull align 16 dereferenceable(122) %33)
          to label %51 unwind label %40

51:                                               ; preds = %50
  %52 = getelementptr inbounds i8, ptr %33, i64 72
  %53 = load ptr, ptr %52, align 8, !tbaa !29
  %54 = getelementptr inbounds i8, ptr %53, i64 112
  %55 = load i32, ptr %54, align 16, !tbaa !46
  %56 = icmp eq i32 %55, -1
  br i1 %56, label %57, label %65

57:                                               ; preds = %51
  invoke void @_ZN3JPH11BodyManager21AddBodyToActiveBodiesERNS_4BodyE(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull align 16 dereferenceable(122) %33)
          to label %58 unwind label %40

58:                                               ; preds = %57
  %59 = load ptr, ptr %24, align 8, !tbaa !51
  %.not = icmp eq ptr %59, null
  br i1 %.not, label %65, label %60

60:                                               ; preds = %58
  %61 = call noundef i64 @_ZNK3JPH4Body11GetUserDataEv(ptr noundef nonnull align 16 dereferenceable(122) %33)
  %62 = load ptr, ptr %59, align 8, !tbaa !52
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  %64 = load ptr, ptr %63, align 8
  invoke void %64(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(4) %5, i64 noundef %61)
          to label %65 unwind label %40

65:                                               ; preds = %51, %60, %58, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %66

66:                                               ; preds = %25, %65
  %67 = getelementptr inbounds i8, ptr %.01923, i64 4
  %68 = icmp ult ptr %67, %23
  br i1 %68, label %25, label %._crit_edge, !llvm.loop !54

69:                                               ; preds = %3, %._crit_edge
  ret void

70:                                               ; preds = %40, %20
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %21, %20 ]
  call void @_ZN3JPH10UniqueLockINS_5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH4Body15ResetSleepTimerEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH4Body11GetUserDataEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #5 = { 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 #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, !20, i64 296}
!6 = !{!"_ZTSN3JPH11BodyManagerE", !7, i64 0, !12, i64 24, !8, i64 32, !13, i64 40, !17, i64 88, !18, i64 104, !13, i64 128, !9, i64 176, !9, i64 192, !12, i64 200, !13, i64 208, !19, i64 256, !11, i64 280, !11, i64 288, !20, i64 296}
!7 = !{!"_ZTSN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEEE", !8, i64 0, !8, i64 8, !11, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!"_ZTSN3JPH5MutexE", !14, i64 0, !16, i64 40}
!14 = !{!"_ZTSSt5mutex", !15, i64 0}
!15 = !{!"_ZTSSt12__mutex_base", !9, i64 0}
!16 = !{!"_ZTSNSt6thread2idE", !8, i64 0}
!17 = !{!"_ZTSN3JPH10MutexArrayINS_11SharedMutexEEE", !11, i64 0, !12, i64 8}
!18 = !{!"_ZTSN3JPH5ArrayIhNS_12STLAllocatorIhEEEE", !8, i64 0, !8, i64 8, !11, i64 16}
!19 = !{!"_ZTSN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEE", !8, i64 0, !8, i64 8, !11, i64 16}
!20 = !{!"bool", !9, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!20, !20, i64 0}
!24 = !{i64 2158735898}
!25 = !{!12, !12, i64 0}
!26 = !{!11, !11, i64 0}
!27 = !{i64 2158736238}
!28 = !{i64 2158736626}
!29 = !{!30, !11, i64 72}
!30 = !{!"_ZTSN3JPH4BodyE", !31, i64 0, !32, i64 16, !34, i64 32, !35, i64 64, !11, i64 72, !8, i64 80, !36, i64 88, !38, i64 104, !38, i64 108, !39, i64 112, !40, i64 116, !41, i64 118, !42, i64 119, !43, i64 120, !44, i64 121}
!31 = !{!"_ZTSN3JPH4Vec3E", !9, i64 0}
!32 = !{!"_ZTSN3JPH4QuatE", !33, i64 0}
!33 = !{!"_ZTSN3JPH4Vec4E", !9, i64 0}
!34 = !{!"_ZTSN3JPH5AABoxE", !31, i64 0, !31, i64 16}
!35 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !11, i64 0}
!36 = !{!"_ZTSN3JPH14CollisionGroupE", !37, i64 0, !12, i64 8, !12, i64 12}
!37 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !11, i64 0}
!38 = !{!"float", !9, i64 0}
!39 = !{!"_ZTSN3JPH6BodyIDE", !12, i64 0}
!40 = !{!"short", !9, i64 0}
!41 = !{!"_ZTSN3JPH9EBodyTypeE", !9, i64 0}
!42 = !{!"_ZTSN3JPH15BroadPhaseLayerE", !9, i64 0}
!43 = !{!"_ZTSN3JPH11EMotionTypeE", !9, i64 0}
!44 = !{!"_ZTSSt6atomicIhE", !45, i64 0}
!45 = !{!"_ZTSSt13__atomic_baseIhE", !9, i64 0}
!46 = !{!47, !12, i64 112}
!47 = !{!"_ZTSN3JPH16MotionPropertiesE", !31, i64 0, !31, i64 16, !31, i64 32, !32, i64 48, !48, i64 64, !48, i64 76, !38, i64 88, !38, i64 92, !38, i64 96, !38, i64 100, !38, i64 104, !38, i64 108, !12, i64 112, !12, i64 116, !49, i64 120, !20, i64 121, !50, i64 122, !9, i64 123, !9, i64 124, !9, i64 128, !38, i64 176, !41, i64 180, !43, i64 181}
!48 = !{!"_ZTSN3JPH6Float3E", !38, i64 0, !38, i64 4, !38, i64 8}
!49 = !{!"_ZTSN3JPH14EMotionQualityE", !9, i64 0}
!50 = !{!"_ZTSN3JPH12EAllowedDOFsE", !9, i64 0}
!51 = !{!6, !11, i64 280}
!52 = !{!53, !53, i64 0}
!53 = !{!"vtable pointer", !10, i64 0}
!54 = distinct !{!54, !55}
!55 = !{!"llvm.loop.mustprogress"}


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