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

; 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::PhysicsSystem" = type <{ ptr, ptr, %"class.JPH::BodyManager", %"class.JPH::BodyLockInterfaceNoLock", %"class.JPH::BodyLockInterfaceLocking", %"class.JPH::BodyInterface", %"class.JPH::BodyInterface", %"class.JPH::NarrowPhaseQuery", %"class.JPH::NarrowPhaseQuery", ptr, ptr, ptr, %"class.std::function", %"struct.JPH::PhysicsSettings", [4 x i8], %"class.JPH::ContactConstraintManager", %"class.JPH::ConstraintManager", %"class.JPH::IslandBuilder", %"class.JPH::LargeIslandSplitter", %"class.JPH::Mutex", %"class.JPH::Array.10", %"class.JPH::Vec3", float, [12 x i8] }>
%"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::Array.3" = type { i64, i64, ptr }
%"class.JPH::BodyLockInterfaceNoLock" = type { %"class.JPH::BodyLockInterface" }
%"class.JPH::BodyLockInterface" = type { ptr, ptr }
%"class.JPH::BodyLockInterfaceLocking" = type { %"class.JPH::BodyLockInterface" }
%"class.JPH::BodyInterface" = type { ptr, ptr, ptr }
%"class.JPH::NarrowPhaseQuery" = type { ptr, ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.JPH::PhysicsSettings" = type <{ i32, i32, i32, float, float, float, float, float, float, float, float, float, float, float, i32, i32, float, float, float, i8, i8, i8, i8, i8, i8, i8, i8 }>
%"class.JPH::ContactConstraintManager" = type { [8 x i8], [2 x %"class.JPH::ContactConstraintManager::ManifoldCache"], i32, ptr, ptr, ptr, ptr, ptr, i32, %"struct.std::atomic", ptr }
%"class.JPH::ContactConstraintManager::ManifoldCache" = type <{ %"class.JPH::LFHMAllocator", %"class.JPH::LockFreeHashMap", %"class.JPH::LockFreeHashMap.6", i8, [7 x i8] }>
%"class.JPH::LFHMAllocator" = type { ptr, i32, %"struct.std::atomic" }
%"class.JPH::LockFreeHashMap" = type { ptr, %"struct.std::atomic", ptr, i32, i32 }
%"class.JPH::LockFreeHashMap.6" = type { ptr, %"struct.std::atomic", ptr, i32, i32 }
%"class.JPH::ConstraintManager" = type { ptr, %"class.JPH::Array.7", %"class.JPH::Mutex" }
%"class.JPH::Array.7" = type { i64, i64, ptr }
%"class.JPH::IslandBuilder" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32 }
%"class.JPH::LargeIslandSplitter" = type <{ i32, [4 x i8], ptr, ptr, ptr, i32, %"struct.std::atomic", i32, [4 x i8], ptr, %"struct.std::atomic", [4 x i8] }>
%"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.10" = type { i64, i64, ptr }
%"class.JPH::Vec3" = type { %union.anon.13 }
%union.anon.13 = type { <4 x float> }
%"struct.JPH::PhysicsUpdateContext::Step" = type { ptr, i8, i8, %"struct.JPH::BroadPhase::UpdateState", i32, %"struct.std::atomic", [60 x i8], %"struct.std::atomic", [60 x i8], %"struct.std::atomic", [60 x i8], %"struct.std::atomic", [60 x i8], %"struct.std::atomic", [60 x i8], %"struct.std::atomic", [60 x i8], %"class.JPH::StaticArray", i32, %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", ptr, i32, %"struct.std::atomic", %"struct.std::atomic", ptr, i32, %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::StaticArray.20", %"class.JPH::StaticArray.20", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::JobSystem::JobHandle", %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::JobSystem::JobHandle" }
%"struct.JPH::BroadPhase::UpdateState" = type { [4 x ptr] }
%"class.JPH::StaticArray" = type { i32, [32 x %"struct.JPH::StaticArray<JPH::PhysicsUpdateContext::BodyPairQueue, 32>::Storage"] }
%"struct.JPH::StaticArray<JPH::PhysicsUpdateContext::BodyPairQueue, 32>::Storage" = type { [128 x i8] }
%"class.JPH::StaticArray.20" = type { i32, [4 x i8], [32 x %"struct.JPH::StaticArray<JPH::JobSystem::JobHandle, 32>::Storage"] }
%"struct.JPH::StaticArray<JPH::JobSystem::JobHandle, 32>::Storage" = type { [8 x i8] }
%"class.JPH::JobSystem::JobHandle" = type { %"class.JPH::Ref" }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::PhysicsUpdateContext" = type <{ ptr, ptr, ptr, ptr, float, float, %"struct.std::atomic", [4 x i8], ptr, ptr, ptr, %"class.JPH::Array.19", i32, [4 x i8], ptr, %"struct.std::atomic", [4 x i8] }>
%"class.JPH::Array.19" = type { %"class.JPH::STLTempAllocator", i64, i64, ptr }
%"class.JPH::STLTempAllocator" = type { ptr }
%"class.JPH::BodyID" = type { i32 }

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

; 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 noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122)) #1 align 2

declare void @_ZNK3JPH13IslandBuilder17GetBodiesInIslandEjRPNS_6BodyIDES3_(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

declare void @_ZN3JPH4Body33CalculateWorldSpaceBoundsInternalEv(ptr noundef nonnull align 16 dereferenceable(122)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13PhysicsSystem25CheckSleepAndUpdateBoundsEjPKNS_20PhysicsUpdateContextEPKNS1_4StepERNS0_13BodiesToSleepE(ptr noundef nonnull align 16 dereferenceable(1172) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #1 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  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
  %21 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %22 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %21, i32 0, i32 17
  %23 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZNK3JPH13IslandBuilder17GetBodiesInIslandEjRPNS_6BodyIDES3_(ptr noundef nonnull align 8 dereferenceable(112) %22, i32 noundef %23, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %24, i32 0, i32 2
  %26 = load i8, ptr %25, align 1, !tbaa !11, !range !21, !noundef !22
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %78

28:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %29 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %21, i32 0, i32 13
  %30 = getelementptr inbounds %"struct.JPH::PhysicsSettings", ptr %29, i32 0, i32 24
  %31 = load i8, ptr %30, align 1, !tbaa !23, !range !21, !noundef !22
  %32 = trunc i8 %31 to i1
  %33 = zext i1 %32 to i64
  %34 = select i1 %32, i32 1, i32 0
  store i32 %34, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %35 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %21, i32 0, i32 13
  %36 = getelementptr inbounds %"struct.JPH::PhysicsSettings", ptr %35, i32 0, i32 17
  %37 = load float, ptr %36, align 4, !tbaa !51
  store float %37, ptr %14, align 4, !tbaa !52
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %38 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %21, i32 0, i32 13
  %39 = getelementptr inbounds %"struct.JPH::PhysicsSettings", ptr %38, i32 0, i32 18
  %40 = load float, ptr %39, align 8, !tbaa !53
  %41 = load float, ptr %14, align 4, !tbaa !52
  %42 = fmul float %40, %41
  store float %42, ptr %15, align 4, !tbaa !52
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %43, ptr %16, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %67, %28
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = icmp ult ptr %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %70

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %50 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %21, i32 0, i32 2
  %51 = load ptr, ptr %16, align 8, !tbaa !5
  %52 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %50, ptr noundef nonnull align 4 dereferenceable(4) %51)
  store ptr %52, ptr %17, align 8, !tbaa !5
  %53 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN3JPH4Body33CalculateWorldSpaceBoundsInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %53)
  %54 = load ptr, ptr %17, align 8, !tbaa !5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %55, i32 0, i32 4
  %57 = load float, ptr %56, align 8, !tbaa !54
  %58 = load float, ptr %15, align 4, !tbaa !52
  %59 = load float, ptr %14, align 4, !tbaa !52
  %60 = call noundef i32 @_ZN3JPH4Body24UpdateSleepStateInternalEfff(ptr noundef nonnull align 16 dereferenceable(122) %54, float noundef %57, float noundef %58, float noundef %59)
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = and i32 %61, %60
  store i32 %62, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  %64 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %63)
  store ptr %64, ptr %18, align 8, !tbaa !5
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN3JPH16MotionProperties10ResetForceEv(ptr noundef nonnull align 16 dereferenceable(182) %65)
  %66 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN3JPH16MotionProperties11ResetTorqueEv(ptr noundef nonnull align 16 dereferenceable(182) %66)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %67

67:                                               ; preds = %49
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.JPH::BodyID", ptr %68, i32 1
  store ptr %69, ptr %16, align 8, !tbaa !5
  br label %44, !llvm.loop !58

70:                                               ; preds = %48
  %71 = load i32, ptr %13, align 4, !tbaa !9
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %73, label %77

73:                                               ; preds = %70
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN3JPH13PhysicsSystem13BodiesToSleep10PutToSleepEPKNS_6BodyIDES4_(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef %75, ptr noundef %76)
  br label %77

77:                                               ; preds = %73, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %94

78:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %79, ptr %19, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %90, %78
  %81 = load ptr, ptr %19, align 8, !tbaa !5
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = icmp ult ptr %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %93

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %86 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %21, i32 0, i32 2
  %87 = load ptr, ptr %19, align 8, !tbaa !5
  %88 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %86, ptr noundef nonnull align 4 dereferenceable(4) %87)
  store ptr %88, ptr %20, align 8, !tbaa !5
  %89 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN3JPH4Body33CalculateWorldSpaceBoundsInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %89)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %90

90:                                               ; preds = %85
  %91 = load ptr, ptr %19, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.JPH::BodyID", ptr %91, i32 1
  store ptr %92, ptr %19, align 8, !tbaa !5
  br label %80, !llvm.loop !60

93:                                               ; preds = %84
  br label %94

94:                                               ; preds = %93, %77
  %95 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %21, i32 0, i32 9
  %96 = load ptr, ptr %95, align 16, !tbaa !61
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = ptrtoint ptr %98 to i64
  %101 = ptrtoint ptr %99 to i64
  %102 = sub i64 %100, %101
  %103 = sdiv exact i64 %102, 4
  %104 = trunc i64 %103 to i32
  %105 = load ptr, ptr %96, align 8, !tbaa !62
  %106 = getelementptr inbounds ptr, ptr %105, i64 19
  %107 = load ptr, ptr %106, align 8
  call void %107(ptr noundef nonnull align 8 dereferenceable(16) %96, ptr noundef %97, i32 noundef %104, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  ret void
}

declare noundef i32 @_ZN3JPH4Body24UpdateSleepStateInternalEfff(ptr noundef nonnull align 16 dereferenceable(122), float noundef, float noundef, float noundef) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH16MotionProperties10ResetForceEv(ptr noundef nonnull align 16 dereferenceable(182)) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH16MotionProperties11ResetTorqueEv(ptr noundef nonnull align 16 dereferenceable(182)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH13PhysicsSystem13BodiesToSleep10PutToSleepEPKNS_6BodyIDES4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) #4 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 = { "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 = { 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 #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 = { 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, !13, i64 9}
!12 = !{!"_ZTSN3JPH20PhysicsUpdateContext4StepE", !6, i64 0, !13, i64 8, !13, i64 9, !14, i64 16, !10, i64 48, !15, i64 52, !7, i64 56, !15, i64 116, !7, i64 120, !15, i64 180, !7, i64 184, !15, i64 244, !7, i64 248, !15, i64 308, !7, i64 312, !15, i64 372, !7, i64 376, !17, i64 436, !10, i64 4536, !15, i64 4540, !15, i64 4544, !15, i64 4548, !15, i64 4552, !15, i64 4556, !15, i64 4560, !6, i64 4568, !10, i64 4576, !15, i64 4580, !15, i64 4584, !6, i64 4592, !10, i64 4600, !18, i64 4608, !20, i64 4616, !20, i64 4880, !20, i64 5144, !20, i64 5408, !18, i64 5672, !20, i64 5680, !18, i64 5944, !18, i64 5952, !18, i64 5960, !20, i64 5968, !18, i64 6232, !20, i64 6240, !18, i64 6504, !18, i64 6512, !20, i64 6520, !18, i64 6784, !18, i64 6792, !20, i64 6800, !20, i64 7064, !18, i64 7328, !18, i64 7336}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN3JPH10BroadPhase11UpdateStateE", !7, i64 0}
!15 = !{!"_ZTSSt6atomicIjE", !16, i64 0}
!16 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!17 = !{!"_ZTSN3JPH11StaticArrayINS_20PhysicsUpdateContext13BodyPairQueueELj32EEE", !10, i64 0, !7, i64 4}
!18 = !{!"_ZTSN3JPH9JobSystem9JobHandleE", !19, i64 0}
!19 = !{!"_ZTSN3JPH3RefINS_9JobSystem3JobEEE", !6, i64 0}
!20 = !{!"_ZTSN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EEE", !10, i64 0, !7, i64 8}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!24, !13, i64 569}
!24 = !{!"_ZTSN3JPH13PhysicsSystemE", !6, i64 0, !6, i64 8, !25, i64 16, !35, i64 320, !37, i64 336, !38, i64 352, !38, i64 376, !39, i64 400, !39, i64 416, !6, i64 432, !6, i64 440, !6, i64 448, !40, i64 456, !42, i64 488, !44, i64 576, !45, i64 824, !47, i64 904, !48, i64 1016, !28, i64 1080, !49, i64 1128, !50, i64 1152, !43, i64 1168}
!25 = !{!"_ZTSN3JPH11BodyManagerE", !26, i64 0, !10, i64 24, !27, i64 32, !28, i64 40, !32, i64 88, !33, i64 104, !28, i64 128, !7, i64 176, !7, i64 192, !10, i64 200, !28, i64 208, !34, i64 256, !6, i64 280, !6, i64 288, !13, i64 296}
!26 = !{!"_ZTSN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEEE", !27, i64 0, !27, i64 8, !6, i64 16}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTSN3JPH5MutexE", !29, i64 0, !31, i64 40}
!29 = !{!"_ZTSSt5mutex", !30, i64 0}
!30 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!31 = !{!"_ZTSNSt6thread2idE", !27, i64 0}
!32 = !{!"_ZTSN3JPH10MutexArrayINS_11SharedMutexEEE", !6, i64 0, !10, i64 8}
!33 = !{!"_ZTSN3JPH5ArrayIhNS_12STLAllocatorIhEEEE", !27, i64 0, !27, i64 8, !6, i64 16}
!34 = !{!"_ZTSN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEE", !27, i64 0, !27, i64 8, !6, i64 16}
!35 = !{!"_ZTSN3JPH23BodyLockInterfaceNoLockE", !36, i64 0}
!36 = !{!"_ZTSN3JPH17BodyLockInterfaceE", !6, i64 8}
!37 = !{!"_ZTSN3JPH24BodyLockInterfaceLockingE", !36, i64 0}
!38 = !{!"_ZTSN3JPH13BodyInterfaceE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSN3JPH16NarrowPhaseQueryE", !6, i64 0, !6, i64 8}
!40 = !{!"_ZTSSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEE", !41, i64 0, !6, i64 24}
!41 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!42 = !{!"_ZTSN3JPH15PhysicsSettingsE", !10, i64 0, !10, i64 4, !10, i64 8, !43, i64 12, !43, i64 16, !43, i64 20, !43, i64 24, !43, i64 28, !43, i64 32, !43, i64 36, !43, i64 40, !43, i64 44, !43, i64 48, !43, i64 52, !10, i64 56, !10, i64 60, !43, i64 64, !43, i64 68, !43, i64 72, !13, i64 76, !13, i64 77, !13, i64 78, !13, i64 79, !13, i64 80, !13, i64 81, !13, i64 82}
!43 = !{!"float", !7, i64 0}
!44 = !{!"_ZTSN3JPH24ContactConstraintManagerE", !7, i64 8, !10, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !10, i64 232, !15, i64 236, !6, i64 240}
!45 = !{!"_ZTSN3JPH17ConstraintManagerE", !6, i64 0, !46, i64 8, !28, i64 32}
!46 = !{!"_ZTSN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEEE", !27, i64 0, !27, i64 8, !6, i64 16}
!47 = !{!"_ZTSN3JPH13IslandBuilderE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108}
!48 = !{!"_ZTSN3JPH19LargeIslandSplitterE", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !15, i64 36, !10, i64 40, !6, i64 48, !15, i64 56}
!49 = !{!"_ZTSN3JPH5ArrayIPNS_19PhysicsStepListenerENS_12STLAllocatorIS2_EEEE", !27, i64 0, !27, i64 8, !6, i64 16}
!50 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!51 = !{!24, !43, i64 556}
!52 = !{!43, !43, i64 0}
!53 = !{!24, !43, i64 560}
!54 = !{!55, !43, i64 32}
!55 = !{!"_ZTSN3JPH20PhysicsUpdateContextE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !43, i64 32, !43, i64 36, !15, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !56, i64 72, !10, i64 104, !6, i64 112, !15, i64 120}
!56 = !{!"_ZTSN3JPH5ArrayINS_20PhysicsUpdateContext4StepENS_16STLTempAllocatorIS2_EEEE", !57, i64 0, !27, i64 8, !27, i64 16, !6, i64 24}
!57 = !{!"_ZTSN3JPH16STLTempAllocatorINS_20PhysicsUpdateContext4StepEEE", !6, i64 0}
!58 = distinct !{!58, !59}
!59 = !{!"llvm.loop.mustprogress"}
!60 = distinct !{!60, !59}
!61 = !{!24, !6, i64 432}
!62 = !{!63, !63, i64 0}
!63 = !{!"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"

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

; 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 noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #1 align 2

declare void @_ZNK3JPH13IslandBuilder17GetBodiesInIslandEjRPNS_6BodyIDES3_(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

declare void @_ZN3JPH4Body33CalculateWorldSpaceBoundsInternalEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13PhysicsSystem25CheckSleepAndUpdateBoundsEjPKNS_20PhysicsUpdateContextEPKNS1_4StepERNS0_13BodiesToSleepE(ptr noundef nonnull align 16 dereferenceable(1172) %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #1 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 904
  call void @_ZNK3JPH13IslandBuilder17GetBodiesInIslandEjRPNS_6BodyIDES3_(ptr noundef nonnull align 8 dereferenceable(112) %8, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %9 = getelementptr inbounds i8, ptr %3, i64 9
  %10 = load i8, ptr %9, align 1, !tbaa !5, !range !19, !noundef !20
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %12, label %38

12:                                               ; preds = %5
  %13 = getelementptr inbounds i8, ptr %0, i64 569
  %14 = load i8, ptr %13, align 1, !tbaa !21, !range !19, !noundef !20
  %15 = zext nneg i8 %14 to i32
  %16 = getelementptr inbounds i8, ptr %0, i64 556
  %17 = load float, ptr %16, align 4, !tbaa !49
  %18 = getelementptr inbounds i8, ptr %0, i64 560
  %19 = load float, ptr %18, align 16, !tbaa !50
  %20 = fmul float %17, %19
  %21 = load ptr, ptr %6, align 8, !tbaa !51
  %22 = load ptr, ptr %7, align 8, !tbaa !51
  %23 = icmp ult ptr %21, %22
  br i1 %23, label %.lr.ph27, label %._crit_edge

.lr.ph27:                                         ; preds = %12
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = getelementptr inbounds i8, ptr %2, i64 32
  br label %27

._crit_edge:                                      ; preds = %27, %12
  %.0.lcssa = phi i32 [ %15, %12 ], [ %31, %27 ]
  %.lcssa = phi ptr [ %22, %12 ], [ %34, %27 ]
  %26 = icmp eq i32 %.0.lcssa, 1
  br i1 %26, label %36, label %.loopexit

27:                                               ; preds = %.lr.ph27, %27
  %.026 = phi i32 [ %15, %.lr.ph27 ], [ %31, %27 ]
  %.02225 = phi ptr [ %21, %.lr.ph27 ], [ %33, %27 ]
  %28 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %24, ptr noundef nonnull align 4 dereferenceable(4) %.02225)
  call void @_ZN3JPH4Body33CalculateWorldSpaceBoundsInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %28)
  %29 = load float, ptr %25, align 8, !tbaa !52
  %30 = call noundef i32 @_ZN3JPH4Body24UpdateSleepStateInternalEfff(ptr noundef nonnull align 16 dereferenceable(122) %28, float noundef %29, float noundef %20, float noundef %17)
  %31 = and i32 %30, %.026
  %32 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %28)
  call void @_ZN3JPH16MotionProperties10ResetForceEv(ptr noundef nonnull align 16 dereferenceable(182) %32)
  call void @_ZN3JPH16MotionProperties11ResetTorqueEv(ptr noundef nonnull align 16 dereferenceable(182) %32)
  %33 = getelementptr inbounds i8, ptr %.02225, i64 4
  %34 = load ptr, ptr %7, align 8, !tbaa !51
  %35 = icmp ult ptr %33, %34
  br i1 %35, label %27, label %._crit_edge, !llvm.loop !56

36:                                               ; preds = %._crit_edge
  %37 = load ptr, ptr %6, align 8, !tbaa !51
  call void @_ZN3JPH13PhysicsSystem13BodiesToSleep10PutToSleepEPKNS_6BodyIDES4_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef %37, ptr noundef %.lcssa)
  %.pre = load ptr, ptr %7, align 8, !tbaa !51
  br label %.loopexit

38:                                               ; preds = %5
  %39 = load ptr, ptr %6, align 8, !tbaa !51
  %40 = load ptr, ptr %7, align 8, !tbaa !51
  %41 = icmp ult ptr %39, %40
  br i1 %41, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %38
  %42 = getelementptr inbounds i8, ptr %0, i64 16
  br label %43

43:                                               ; preds = %.lr.ph, %43
  %.02124 = phi ptr [ %39, %.lr.ph ], [ %45, %43 ]
  %44 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %42, ptr noundef nonnull align 4 dereferenceable(4) %.02124)
  call void @_ZN3JPH4Body33CalculateWorldSpaceBoundsInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %44)
  %45 = getelementptr inbounds i8, ptr %.02124, i64 4
  %46 = load ptr, ptr %7, align 8, !tbaa !51
  %47 = icmp ult ptr %45, %46
  br i1 %47, label %43, label %.loopexit, !llvm.loop !58

.loopexit:                                        ; preds = %43, %38, %._crit_edge, %36
  %48 = phi ptr [ %40, %38 ], [ %.lcssa, %._crit_edge ], [ %.pre, %36 ], [ %46, %43 ]
  %49 = getelementptr inbounds i8, ptr %0, i64 432
  %50 = load ptr, ptr %49, align 16, !tbaa !59
  %51 = load ptr, ptr %6, align 8, !tbaa !51
  %52 = ptrtoint ptr %48 to i64
  %53 = ptrtoint ptr %51 to i64
  %54 = sub i64 %52, %53
  %55 = lshr exact i64 %54, 2
  %56 = trunc i64 %55 to i32
  %57 = load ptr, ptr %50, align 8, !tbaa !60
  %58 = getelementptr inbounds i8, ptr %57, i64 152
  %59 = load ptr, ptr %58, align 8
  call void %59(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef %51, i32 noundef %56, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  ret void
}

declare noundef i32 @_ZN3JPH4Body24UpdateSleepStateInternalEfff(ptr noundef nonnull align 16 dereferenceable(122), float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH16MotionProperties10ResetForceEv(ptr noundef nonnull align 16 dereferenceable(182)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH16MotionProperties11ResetTorqueEv(ptr noundef nonnull align 16 dereferenceable(182)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH13PhysicsSystem13BodiesToSleep10PutToSleepEPKNS_6BodyIDES4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) local_unnamed_addr #4 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 = { "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 = { 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 #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 = { 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, !10, i64 9}
!6 = !{!"_ZTSN3JPH20PhysicsUpdateContext4StepE", !7, i64 0, !10, i64 8, !10, i64 9, !11, i64 16, !12, i64 48, !13, i64 52, !8, i64 56, !13, i64 116, !8, i64 120, !13, i64 180, !8, i64 184, !13, i64 244, !8, i64 248, !13, i64 308, !8, i64 312, !13, i64 372, !8, i64 376, !15, i64 436, !12, i64 4536, !13, i64 4540, !13, i64 4544, !13, i64 4548, !13, i64 4552, !13, i64 4556, !13, i64 4560, !7, i64 4568, !12, i64 4576, !13, i64 4580, !13, i64 4584, !7, i64 4592, !12, i64 4600, !16, i64 4608, !18, i64 4616, !18, i64 4880, !18, i64 5144, !18, i64 5408, !16, i64 5672, !18, i64 5680, !16, i64 5944, !16, i64 5952, !16, i64 5960, !18, i64 5968, !16, i64 6232, !18, i64 6240, !16, i64 6504, !16, i64 6512, !18, i64 6520, !16, i64 6784, !16, i64 6792, !18, i64 6800, !18, i64 7064, !16, i64 7328, !16, i64 7336}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN3JPH10BroadPhase11UpdateStateE", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTSSt6atomicIjE", !14, i64 0}
!14 = !{!"_ZTSSt13__atomic_baseIjE", !12, i64 0}
!15 = !{!"_ZTSN3JPH11StaticArrayINS_20PhysicsUpdateContext13BodyPairQueueELj32EEE", !12, i64 0, !8, i64 4}
!16 = !{!"_ZTSN3JPH9JobSystem9JobHandleE", !17, i64 0}
!17 = !{!"_ZTSN3JPH3RefINS_9JobSystem3JobEEE", !7, i64 0}
!18 = !{!"_ZTSN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EEE", !12, i64 0, !8, i64 8}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !10, i64 569}
!22 = !{!"_ZTSN3JPH13PhysicsSystemE", !7, i64 0, !7, i64 8, !23, i64 16, !33, i64 320, !35, i64 336, !36, i64 352, !36, i64 376, !37, i64 400, !37, i64 416, !7, i64 432, !7, i64 440, !7, i64 448, !38, i64 456, !40, i64 488, !42, i64 576, !43, i64 824, !45, i64 904, !46, i64 1016, !26, i64 1080, !47, i64 1128, !48, i64 1152, !41, i64 1168}
!23 = !{!"_ZTSN3JPH11BodyManagerE", !24, i64 0, !12, i64 24, !25, i64 32, !26, i64 40, !30, i64 88, !31, i64 104, !26, i64 128, !8, i64 176, !8, i64 192, !12, i64 200, !26, i64 208, !32, i64 256, !7, i64 280, !7, i64 288, !10, i64 296}
!24 = !{!"_ZTSN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !7, i64 16}
!25 = !{!"long", !8, i64 0}
!26 = !{!"_ZTSN3JPH5MutexE", !27, i64 0, !29, i64 40}
!27 = !{!"_ZTSSt5mutex", !28, i64 0}
!28 = !{!"_ZTSSt12__mutex_base", !8, i64 0}
!29 = !{!"_ZTSNSt6thread2idE", !25, i64 0}
!30 = !{!"_ZTSN3JPH10MutexArrayINS_11SharedMutexEEE", !7, i64 0, !12, i64 8}
!31 = !{!"_ZTSN3JPH5ArrayIhNS_12STLAllocatorIhEEEE", !25, i64 0, !25, i64 8, !7, i64 16}
!32 = !{!"_ZTSN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEE", !25, i64 0, !25, i64 8, !7, i64 16}
!33 = !{!"_ZTSN3JPH23BodyLockInterfaceNoLockE", !34, i64 0}
!34 = !{!"_ZTSN3JPH17BodyLockInterfaceE", !7, i64 8}
!35 = !{!"_ZTSN3JPH24BodyLockInterfaceLockingE", !34, i64 0}
!36 = !{!"_ZTSN3JPH13BodyInterfaceE", !7, i64 0, !7, i64 8, !7, i64 16}
!37 = !{!"_ZTSN3JPH16NarrowPhaseQueryE", !7, i64 0, !7, i64 8}
!38 = !{!"_ZTSSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEE", !39, i64 0, !7, i64 24}
!39 = !{!"_ZTSSt14_Function_base", !8, i64 0, !7, i64 16}
!40 = !{!"_ZTSN3JPH15PhysicsSettingsE", !12, i64 0, !12, i64 4, !12, i64 8, !41, i64 12, !41, i64 16, !41, i64 20, !41, i64 24, !41, i64 28, !41, i64 32, !41, i64 36, !41, i64 40, !41, i64 44, !41, i64 48, !41, i64 52, !12, i64 56, !12, i64 60, !41, i64 64, !41, i64 68, !41, i64 72, !10, i64 76, !10, i64 77, !10, i64 78, !10, i64 79, !10, i64 80, !10, i64 81, !10, i64 82}
!41 = !{!"float", !8, i64 0}
!42 = !{!"_ZTSN3JPH24ContactConstraintManagerE", !8, i64 8, !12, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !12, i64 232, !13, i64 236, !7, i64 240}
!43 = !{!"_ZTSN3JPH17ConstraintManagerE", !7, i64 0, !44, i64 8, !26, i64 32}
!44 = !{!"_ZTSN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEEE", !25, i64 0, !25, i64 8, !7, i64 16}
!45 = !{!"_ZTSN3JPH13IslandBuilderE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108}
!46 = !{!"_ZTSN3JPH19LargeIslandSplitterE", !12, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !12, i64 32, !13, i64 36, !12, i64 40, !7, i64 48, !13, i64 56}
!47 = !{!"_ZTSN3JPH5ArrayIPNS_19PhysicsStepListenerENS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !7, i64 16}
!48 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!49 = !{!22, !41, i64 556}
!50 = !{!22, !41, i64 560}
!51 = !{!7, !7, i64 0}
!52 = !{!53, !41, i64 32}
!53 = !{!"_ZTSN3JPH20PhysicsUpdateContextE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !41, i64 32, !41, i64 36, !13, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !54, i64 72, !12, i64 104, !7, i64 112, !13, i64 120}
!54 = !{!"_ZTSN3JPH5ArrayINS_20PhysicsUpdateContext4StepENS_16STLTempAllocatorIS2_EEEE", !55, i64 0, !25, i64 8, !25, i64 16, !7, i64 24}
!55 = !{!"_ZTSN3JPH16STLTempAllocatorINS_20PhysicsUpdateContext4StepEEE", !7, i64 0}
!56 = distinct !{!56, !57}
!57 = !{!"llvm.loop.mustprogress"}
!58 = distinct !{!58, !57}
!59 = !{!22, !7, i64 432}
!60 = !{!61, !61, i64 0}
!61 = !{!"vtable pointer", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass