; 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::Color" = type { %union.anon }
%union.anon = type { i32 }
%"class.JPH::BodyAccess::Grant" = type { i8 }
%"class.JPH::Array.3" = type { i64, i64, ptr }
%"class.JPH::JobSystem::JobHandle" = type { %"class.JPH::Ref" }
%"class.JPH::Ref" = type { ptr }
%"class.std::function.21" = 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 } }
%class.anon.75 = type { ptr, ptr }
%class.anon.76 = type <{ ptr, i32, [4 x i8] }>
%class.anon.78 = type { ptr, ptr }
%"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::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 }
%"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::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::SoftBodyUpdateContext" = type <{ ptr, ptr, ptr, ptr, %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"struct.std::atomic.74", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", [8 x i8], %"class.JPH::Vec3", i32, [12 x i8] }>
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.42 }
%union.anon.42 = type { <4 x float> }
%"struct.std::atomic.74" = type { i32 }

@_ZN3JPHL21cColorSoftBodyCollideE = external hidden global %"class.JPH::Color", align 4
@_ZN3JPHL22cColorSoftBodySimulateE = external hidden global %"class.JPH::Color", align 4
@_ZN3JPHL22cColorSoftBodyFinalizeE = external hidden global %"class.JPH::Color", align 4
@.str.65 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [16 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 noundef i32 @_ZNK3JPH20PhysicsUpdateContext17GetMaxConcurrencyEv(ptr noundef nonnull align 8 dereferenceable(124)) #1 align 2

; 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) #2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNSt13__atomic_baseIjE5storeEjSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) #5 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH10BodyAccess5GrantC2ENS0_7EAccessES2_(ptr noundef nonnull align 1 dereferenceable(1), i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #6 align 2

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

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS_20PhysicsUpdateContextEPNS1_4StepE(ptr noundef nonnull align 16 dereferenceable(1172) %0, ptr noundef %1, ptr noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.JPH::BodyAccess::Grant", align 1
  %8 = alloca %"class.JPH::Array.3", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.JPH::JobSystem::JobHandle", align 8
  %18 = alloca %"class.JPH::Color", align 4
  %19 = alloca %"class.std::function.21", align 8
  %20 = alloca %class.anon.75, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.JPH::JobSystem::JobHandle", align 8
  %23 = alloca %"class.JPH::Color", align 4
  %24 = alloca %"class.std::function.21", align 8
  %25 = alloca %class.anon.76, align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.JPH::JobSystem::JobHandle", align 8
  %28 = alloca %"class.JPH::Color", align 4
  %29 = alloca %"class.std::function.21", align 8
  %30 = alloca %class.anon.78, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #8
  call void @_ZN3JPH10BodyAccess5GrantC2ENS0_7EAccessES2_(ptr noundef nonnull align 1 dereferenceable(1) %7, i8 noundef zeroext 0, i8 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #8
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %32 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %31, i32 0, i32 2
  invoke void @_ZNK3JPH11BodyManager15GetActiveBodiesENS_9EBodyTypeERNS_5ArrayINS_6BodyIDENS_12STLAllocatorIS3_EEEE(ptr noundef nonnull align 8 dereferenceable(297) %32, i8 noundef zeroext 1, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %33 unwind label %45

33:                                               ; preds = %3
  %34 = invoke noundef zeroext i1 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %35 unwind label %45

35:                                               ; preds = %33
  br i1 %34, label %36, label %50

36:                                               ; preds = %35
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %37, i32 0, i32 52
  %39 = invoke noundef zeroext i1 @_ZNK3JPH9JobSystem9JobHandle7IsValidEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %40 unwind label %45

40:                                               ; preds = %36
  br i1 %39, label %41, label %49

41:                                               ; preds = %40
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %42, i32 0, i32 52
  invoke void @_ZNK3JPH9JobSystem9JobHandle16RemoveDependencyEi(ptr noundef nonnull align 8 dereferenceable(8) %43, i32 noundef 1)
          to label %44 unwind label %45

44:                                               ; preds = %41
  br label %49

45:                                               ; preds = %57, %55, %54, %52, %50, %41, %36, %33, %3
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %9, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %10, align 4
  br label %172

49:                                               ; preds = %44, %40
  store i32 1, ptr %11, align 4
  br label %131

50:                                               ; preds = %35
  %51 = invoke noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %52 unwind label %45

52:                                               ; preds = %50
  %53 = invoke noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %54 unwind label %45

54:                                               ; preds = %52
  invoke void @_ZN3JPH9QuickSortIPNS_6BodyIDEEEvT_S3_(ptr noundef %51, ptr noundef %53)
          to label %55 unwind label %45

55:                                               ; preds = %54
  %56 = invoke noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %57 unwind label %45

57:                                               ; preds = %55
  %58 = trunc i64 %56 to i32
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %59, i32 0, i32 12
  store i32 %58, ptr %60, align 8, !tbaa !9
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %61, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %64, i32 0, i32 12
  %66 = load i32, ptr %65, align 8, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = mul i64 %67, 208
  %69 = trunc i64 %68 to i32
  %70 = load ptr, ptr %63, align 8, !tbaa !19
  %71 = getelementptr inbounds ptr, ptr %70, i64 2
  %72 = load ptr, ptr %71, align 8
  %73 = invoke noundef ptr %72(ptr noundef nonnull align 8 dereferenceable(8) %63, i32 noundef %69)
          to label %74 unwind label %45

74:                                               ; preds = %57
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %75, i32 0, i32 14
  store ptr %73, ptr %76, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %77, i32 0, i32 14
  %79 = load ptr, ptr %78, align 8, !tbaa !21
  store ptr %79, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %80, i32 0, i32 14
  %82 = load ptr, ptr %81, align 8, !tbaa !21
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %83, i32 0, i32 12
  %85 = load i32, ptr %84, align 8, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %82, i64 %86
  store ptr %87, ptr %13, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %118, %74
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = icmp ult ptr %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %130

93:                                               ; preds = %88
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN3JPH21SoftBodyUpdateContextC2Ev(ptr noundef nonnull align 16 dereferenceable(196) %94) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %95 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %31, i32 0, i32 2
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %97, i32 0, i32 14
  %99 = load ptr, ptr %98, align 8, !tbaa !21
  %100 = ptrtoint ptr %96 to i64
  %101 = ptrtoint ptr %99 to i64
  %102 = sub i64 %100, %101
  %103 = sdiv exact i64 %102, 208
  %104 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %103)
          to label %105 unwind label %121

105:                                              ; preds = %93
  %106 = invoke noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %95, ptr noundef nonnull align 4 dereferenceable(4) %104)
          to label %107 unwind label %121

107:                                              ; preds = %105
  store ptr %106, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = invoke noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %108)
          to label %110 unwind label %125

110:                                              ; preds = %107
  store ptr %109, ptr %15, align 8, !tbaa !5
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %112, i32 0, i32 4
  %114 = load float, ptr %113, align 8, !tbaa !22
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN3JPH24SoftBodyMotionProperties23InitializeUpdateContextEfRNS_4BodyERKNS_13PhysicsSystemERNS_21SoftBodyUpdateContextE(ptr noundef nonnull align 16 dereferenceable(372) %111, float noundef %114, ptr noundef nonnull align 16 dereferenceable(122) %115, ptr noundef nonnull align 16 dereferenceable(1172) %31, ptr noundef nonnull align 16 dereferenceable(196) %116)
          to label %117 unwind label %125

117:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %118

118:                                              ; preds = %117
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %119, i32 1
  store ptr %120, ptr %12, align 8, !tbaa !5
  br label %88, !llvm.loop !23

121:                                              ; preds = %105, %93
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %9, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %10, align 4
  br label %129

125:                                              ; preds = %110, %107
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %9, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %129

129:                                              ; preds = %125, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %172

130:                                              ; preds = %92
  store i32 0, ptr %11, align 4
  br label %131

131:                                              ; preds = %130, %49
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @_ZN3JPH10BodyAccess5GrantD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  %132 = load i32, ptr %11, align 4
  switch i32 %132, label %285 [
    i32 0, label %133
    i32 1, label %278
  ]

133:                                              ; preds = %131
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %134, i32 0, i32 15
  call void @_ZNSt13__atomic_baseIjE5storeEjSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %135, i32 noundef 0, i32 noundef 3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = call noundef i32 @_ZNK3JPH20PhysicsUpdateContext17GetMaxConcurrencyEv(ptr noundef nonnull align 8 dereferenceable(124) %136)
  store i32 %137, ptr %16, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %138, i32 0, i32 2
  %140 = load ptr, ptr %139, align 8, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 @_ZN3JPHL22cColorSoftBodyFinalizeE, i64 4, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %141 = getelementptr inbounds %class.anon.75, ptr %20, i32 0, i32 0
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %142, ptr %141, align 8, !tbaa !29
  %143 = getelementptr inbounds %class.anon.75, ptr %20, i32 0, i32 1
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %144, ptr %143, align 8, !tbaa !31
  call void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  %145 = load i32, ptr %16, align 4, !tbaa !25
  %146 = getelementptr inbounds %"class.JPH::Color", ptr %18, i32 0, i32 0
  %147 = getelementptr inbounds %union.anon, ptr %146, i32 0, i32 0
  %148 = load i32, ptr %147, align 4
  %149 = load ptr, ptr %140, align 8, !tbaa !19
  %150 = getelementptr inbounds ptr, ptr %149, i64 3
  %151 = load ptr, ptr %150, align 8
  invoke void %151(ptr dead_on_unwind writable sret(%"class.JPH::JobSystem::JobHandle") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef @.str.65, i32 %148, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %145)
          to label %152 unwind label %173

152:                                              ; preds = %133
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %153, i32 0, i32 51
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH9JobSystem9JobHandleaSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @_ZN3JPH3RefINS_9JobSystem3JobEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %156, i32 0, i32 3
  %158 = load ptr, ptr %157, align 8, !tbaa !32
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %159, i32 0, i32 51
  %161 = load ptr, ptr %158, align 8, !tbaa !19
  %162 = getelementptr inbounds ptr, ptr %161, i64 0
  %163 = load ptr, ptr %162, align 8
  call void %163(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef nonnull align 8 dereferenceable(8) %160)
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %164, i32 0, i32 50
  %166 = load i32, ptr %16, align 4, !tbaa !25
  call void @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE6resizeEj(ptr noundef nonnull align 8 dereferenceable(264) %165, i32 noundef %166)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !25
  br label %167

167:                                              ; preds = %199, %152
  %168 = load i32, ptr %21, align 4, !tbaa !25
  %169 = load i32, ptr %16, align 4, !tbaa !25
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %177, label %171

171:                                              ; preds = %167
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %211

172:                                              ; preds = %129, %45
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @_ZN3JPH10BodyAccess5GrantD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  br label %280

173:                                              ; preds = %133
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %9, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %279

177:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %178, i32 0, i32 2
  %180 = load ptr, ptr %179, align 8, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 @_ZN3JPHL22cColorSoftBodySimulateE, i64 4, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %181 = getelementptr inbounds %class.anon.76, ptr %25, i32 0, i32 0
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %182, ptr %181, align 8, !tbaa !33
  %183 = getelementptr inbounds %class.anon.76, ptr %25, i32 0, i32 1
  %184 = load i32, ptr %21, align 4, !tbaa !25
  store i32 %184, ptr %183, align 8, !tbaa !35
  call void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(12) %25) #8
  %185 = load i32, ptr %16, align 4, !tbaa !25
  %186 = getelementptr inbounds %"class.JPH::Color", ptr %23, i32 0, i32 0
  %187 = getelementptr inbounds %union.anon, ptr %186, i32 0, i32 0
  %188 = load i32, ptr %187, align 4
  %189 = load ptr, ptr %180, align 8, !tbaa !19
  %190 = getelementptr inbounds ptr, ptr %189, i64 3
  %191 = load ptr, ptr %190, align 8
  invoke void %191(ptr dead_on_unwind writable sret(%"class.JPH::JobSystem::JobHandle") align 8 %22, ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef @.str.66, i32 %188, ptr noundef nonnull align 8 dereferenceable(32) %24, i32 noundef %185)
          to label %192 unwind label %202

192:                                              ; preds = %177
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %193, i32 0, i32 50
  %195 = load i32, ptr %21, align 4, !tbaa !25
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EEixEj(ptr noundef nonnull align 8 dereferenceable(264) %194, i32 noundef %195)
          to label %197 unwind label %206

197:                                              ; preds = %192
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH9JobSystem9JobHandleaSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  call void @_ZN3JPH3RefINS_9JobSystem3JobEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %199

199:                                              ; preds = %197
  %200 = load i32, ptr %21, align 4, !tbaa !25
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %21, align 4, !tbaa !25
  br label %167, !llvm.loop !36

202:                                              ; preds = %177
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %9, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %10, align 4
  br label %210

206:                                              ; preds = %192
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %9, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %10, align 4
  call void @_ZN3JPH3RefINS_9JobSystem3JobEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br label %210

210:                                              ; preds = %206, %202
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %279

211:                                              ; preds = %171
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %212, i32 0, i32 3
  %214 = load ptr, ptr %213, align 8, !tbaa !32
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %215, i32 0, i32 50
  %217 = call noundef ptr @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE4dataEv(ptr noundef nonnull align 8 dereferenceable(264) %216)
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %218, i32 0, i32 50
  %220 = call noundef i32 @_ZNK3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(264) %219)
  %221 = load ptr, ptr %214, align 8, !tbaa !19
  %222 = getelementptr inbounds ptr, ptr %221, i64 1
  %223 = load ptr, ptr %222, align 8
  call void %223(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef %217, i32 noundef %220)
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %224, i32 0, i32 49
  %226 = load i32, ptr %16, align 4, !tbaa !25
  call void @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE6resizeEj(ptr noundef nonnull align 8 dereferenceable(264) %225, i32 noundef %226)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !25
  br label %227

227:                                              ; preds = %253, %211
  %228 = load i32, ptr %26, align 4, !tbaa !25
  %229 = load i32, ptr %16, align 4, !tbaa !25
  %230 = icmp slt i32 %228, %229
  br i1 %230, label %232, label %231

231:                                              ; preds = %227
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %265

232:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %233, i32 0, i32 2
  %235 = load ptr, ptr %234, align 8, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 @_ZN3JPHL21cColorSoftBodyCollideE, i64 4, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %236 = getelementptr inbounds %class.anon.78, ptr %30, i32 0, i32 0
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %237, ptr %236, align 8, !tbaa !37
  %238 = getelementptr inbounds %class.anon.78, ptr %30, i32 0, i32 1
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %239, ptr %238, align 8, !tbaa !39
  call void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(16) %30) #8
  %240 = getelementptr inbounds %"class.JPH::Color", ptr %28, i32 0, i32 0
  %241 = getelementptr inbounds %union.anon, ptr %240, i32 0, i32 0
  %242 = load i32, ptr %241, align 4
  %243 = load ptr, ptr %235, align 8, !tbaa !19
  %244 = getelementptr inbounds ptr, ptr %243, i64 3
  %245 = load ptr, ptr %244, align 8
  invoke void %245(ptr dead_on_unwind writable sret(%"class.JPH::JobSystem::JobHandle") align 8 %27, ptr noundef nonnull align 8 dereferenceable(8) %235, ptr noundef @.str.67, i32 %242, ptr noundef nonnull align 8 dereferenceable(32) %29, i32 noundef 0)
          to label %246 unwind label %256

246:                                              ; preds = %232
  %247 = load ptr, ptr %6, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %247, i32 0, i32 49
  %249 = load i32, ptr %26, align 4, !tbaa !25
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EEixEj(ptr noundef nonnull align 8 dereferenceable(264) %248, i32 noundef %249)
          to label %251 unwind label %260

251:                                              ; preds = %246
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH9JobSystem9JobHandleaSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  call void @_ZN3JPH3RefINS_9JobSystem3JobEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %253

253:                                              ; preds = %251
  %254 = load i32, ptr %26, align 4, !tbaa !25
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %26, align 4, !tbaa !25
  br label %227, !llvm.loop !40

256:                                              ; preds = %232
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %9, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %10, align 4
  br label %264

260:                                              ; preds = %246
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %9, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %10, align 4
  call void @_ZN3JPH3RefINS_9JobSystem3JobEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br label %264

264:                                              ; preds = %260, %256
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %279

265:                                              ; preds = %231
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %266, i32 0, i32 3
  %268 = load ptr, ptr %267, align 8, !tbaa !32
  %269 = load ptr, ptr %6, align 8, !tbaa !5
  %270 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %269, i32 0, i32 49
  %271 = call noundef ptr @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE4dataEv(ptr noundef nonnull align 8 dereferenceable(264) %270)
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %272, i32 0, i32 49
  %274 = call noundef i32 @_ZNK3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(264) %273)
  %275 = load ptr, ptr %268, align 8, !tbaa !19
  %276 = getelementptr inbounds ptr, ptr %275, i64 1
  %277 = load ptr, ptr %276, align 8
  call void %277(ptr noundef nonnull align 8 dereferenceable(8) %268, ptr noundef %271, i32 noundef %274)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %278

278:                                              ; preds = %265, %131
  ret void

279:                                              ; preds = %264, %210, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %280

280:                                              ; preds = %279, %172
  %281 = load ptr, ptr %9, align 8
  %282 = load i32, ptr %10, align 4
  %283 = insertvalue { ptr, i32 } poison, ptr %281, 0
  %284 = insertvalue { ptr, i32 } %283, i32 %282, 1
  resume { ptr, i32 } %284

285:                                              ; preds = %131
  unreachable
}

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

declare void @_ZNK3JPH11BodyManager15GetActiveBodiesENS_9EBodyTypeERNS_5ArrayINS_6BodyIDENS_12STLAllocatorIS3_EEEE(ptr noundef nonnull align 8 dereferenceable(297), i8 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24)) #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH9QuickSortIPNS_6BodyIDEEEvT_S3_(ptr noundef, ptr noundef) #6

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

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

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

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

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

declare void @_ZN3JPH24SoftBodyMotionProperties23InitializeUpdateContextEfRNS_4BodyERKNS_13PhysicsSystemERNS_21SoftBodyUpdateContextE(ptr noundef nonnull align 16 dereferenceable(372), float noundef, ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef nonnull align 16 dereferenceable(196)) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(264)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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, !14, i64 104}
!10 = !{!"_ZTSN3JPH20PhysicsUpdateContextE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !12, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !15, i64 72, !14, i64 104, !6, i64 112, !12, i64 120}
!11 = !{!"float", !7, i64 0}
!12 = !{!"_ZTSSt6atomicIjE", !13, i64 0}
!13 = !{!"_ZTSSt13__atomic_baseIjE", !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN3JPH5ArrayINS_20PhysicsUpdateContext4StepENS_16STLTempAllocatorIS2_EEEE", !16, i64 0, !17, i64 8, !17, i64 16, !6, i64 24}
!16 = !{!"_ZTSN3JPH16STLTempAllocatorINS_20PhysicsUpdateContext4StepEEE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!10, !6, i64 8}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !8, i64 0}
!21 = !{!10, !6, i64 112}
!22 = !{!10, !11, i64 32}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!14, !14, i64 0}
!26 = !{!10, !6, i64 16}
!27 = !{i64 0, i64 4, !28}
!28 = !{!7, !7, i64 0}
!29 = !{!30, !6, i64 0}
!30 = !{!"_ZTSZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS_20PhysicsUpdateContextEPNS1_4StepEE3$_0", !6, i64 0, !6, i64 8}
!31 = !{!30, !6, i64 8}
!32 = !{!10, !6, i64 24}
!33 = !{!34, !6, i64 0}
!34 = !{!"_ZTSZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS_20PhysicsUpdateContextEPNS1_4StepEE3$_1", !6, i64 0, !14, i64 8}
!35 = !{!34, !14, i64 8}
!36 = distinct !{!36, !24}
!37 = !{!38, !6, i64 0}
!38 = !{!"_ZTSZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS_20PhysicsUpdateContextEPNS1_4StepEE3$_2", !6, i64 0, !6, i64 8}
!39 = !{!38, !6, i64 8}
!40 = distinct !{!40, !24}


; 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::Color" = type { %union.anon }
%union.anon = type { i32 }
%"class.JPH::BodyAccess::Grant" = type { i8 }
%"class.JPH::Array.3" = type { i64, i64, ptr }
%"class.JPH::JobSystem::JobHandle" = type { %"class.JPH::Ref" }
%"class.JPH::Ref" = type { ptr }
%"class.std::function.21" = 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 } }
%class.anon.75 = type { ptr, ptr }
%class.anon.76 = type <{ ptr, i32, [4 x i8] }>
%class.anon.78 = type { ptr, ptr }
%"class.JPH::SoftBodyUpdateContext" = type <{ ptr, ptr, ptr, ptr, %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"struct.std::atomic.74", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", [8 x i8], %"class.JPH::Vec3", i32, [12 x i8] }>
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.42 }
%union.anon.42 = type { <4 x float> }
%"struct.std::atomic.74" = type { i32 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Vec3" = type { %union.anon.13 }
%union.anon.13 = type { <4 x float> }

@_ZN3JPHL21cColorSoftBodyCollideE = external hidden local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN3JPHL22cColorSoftBodySimulateE = external hidden local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN3JPHL22cColorSoftBodyFinalizeE = external hidden local_unnamed_addr global %"class.JPH::Color", align 4
@.str.65 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [16 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 noundef i32 @_ZNK3JPH20PhysicsUpdateContext17GetMaxConcurrencyEv(ptr noundef nonnull align 8 dereferenceable(124)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNSt13__atomic_baseIjE5storeEjSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH10BodyAccess5GrantC2ENS0_7EAccessES2_(ptr noundef nonnull align 1 dereferenceable(1), i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #5 align 2

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

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS_20PhysicsUpdateContextEPNS1_4StepE(ptr noundef nonnull align 16 dereferenceable(1172) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.JPH::BodyAccess::Grant", align 1
  %5 = alloca %"class.JPH::Array.3", align 8
  %6 = alloca %"class.JPH::JobSystem::JobHandle", align 8
  %7 = alloca %"class.std::function.21", align 8
  %8 = alloca %class.anon.75, align 8
  %9 = alloca %"class.JPH::JobSystem::JobHandle", align 8
  %10 = alloca %"class.std::function.21", align 8
  %11 = alloca %class.anon.76, align 8
  %12 = alloca %"class.JPH::JobSystem::JobHandle", align 8
  %13 = alloca %"class.std::function.21", align 8
  %14 = alloca %class.anon.78, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  call void @_ZN3JPH10BodyAccess5GrantC2ENS0_7EAccessES2_(ptr noundef nonnull align 1 dereferenceable(1) %4, i8 noundef zeroext 0, i8 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZNK3JPH11BodyManager15GetActiveBodiesENS_9EBodyTypeERNS_5ArrayINS_6BodyIDENS_12STLAllocatorIS3_EEEE(ptr noundef nonnull align 8 dereferenceable(297) %15, i8 noundef zeroext 1, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %16 unwind label %22

16:                                               ; preds = %3
  %17 = call noundef zeroext i1 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %17, label %18, label %24

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %2, i64 7336
  %20 = call noundef zeroext i1 @_ZNK3JPH9JobSystem9JobHandle7IsValidEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  br i1 %20, label %21, label %.loopexit

21:                                               ; preds = %18
  invoke void @_ZNK3JPH9JobSystem9JobHandle16RemoveDependencyEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 1)
          to label %.loopexit unwind label %22

22:                                               ; preds = %27, %24, %21, %3
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %91

24:                                               ; preds = %16
  %25 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %26 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  invoke void @_ZN3JPH9QuickSortIPNS_6BodyIDEEEvT_S3_(ptr noundef %25, ptr noundef %26)
          to label %27 unwind label %22

27:                                               ; preds = %24
  %28 = call noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %29 = trunc i64 %28 to i32
  %30 = getelementptr inbounds i8, ptr %1, i64 104
  store i32 %29, ptr %30, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %1, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = mul i32 %29, 208
  %34 = load ptr, ptr %32, align 8, !tbaa !18
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %36 = load ptr, ptr %35, align 8
  %37 = invoke noundef ptr %36(ptr noundef nonnull align 8 dereferenceable(8) %32, i32 noundef %33)
          to label %38 unwind label %22

38:                                               ; preds = %27
  %39 = getelementptr inbounds i8, ptr %1, i64 112
  store ptr %37, ptr %39, align 8, !tbaa !20
  %40 = load i32, ptr %30, align 8, !tbaa !5
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %37, i64 %41
  %.not = icmp eq i32 %40, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %38
  %43 = getelementptr inbounds i8, ptr %1, i64 32
  br label %44

44:                                               ; preds = %.lr.ph, %57
  %.07082 = phi ptr [ %37, %.lr.ph ], [ %58, %57 ]
  call void @_ZN3JPH21SoftBodyUpdateContextC2Ev(ptr noundef nonnull align 16 dereferenceable(196) %.07082) #7
  %45 = load ptr, ptr %39, align 8, !tbaa !20
  %46 = ptrtoint ptr %.07082 to i64
  %47 = ptrtoint ptr %45 to i64
  %48 = sub i64 %46, %47
  %49 = sdiv exact i64 %48, 208
  %50 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %49)
          to label %51 unwind label %60

51:                                               ; preds = %44
  %52 = invoke noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %15, ptr noundef nonnull align 4 dereferenceable(4) %50)
          to label %53 unwind label %60

53:                                               ; preds = %51
  %54 = invoke noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %52)
          to label %55 unwind label %62

55:                                               ; preds = %53
  %56 = load float, ptr %43, align 8, !tbaa !21
  invoke void @_ZN3JPH24SoftBodyMotionProperties23InitializeUpdateContextEfRNS_4BodyERKNS_13PhysicsSystemERNS_21SoftBodyUpdateContextE(ptr noundef nonnull align 16 dereferenceable(372) %54, float noundef %56, ptr noundef nonnull align 16 dereferenceable(122) %52, ptr noundef nonnull align 16 dereferenceable(1172) %0, ptr noundef nonnull align 16 dereferenceable(196) %.07082)
          to label %57 unwind label %62

57:                                               ; preds = %55
  %58 = getelementptr inbounds i8, ptr %.07082, i64 208
  %59 = icmp ult ptr %58, %42
  br i1 %59, label %44, label %.loopexit, !llvm.loop !22

60:                                               ; preds = %51, %44
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %91

62:                                               ; preds = %55, %53
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %91

.loopexit:                                        ; preds = %57, %38, %18, %21
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN3JPH10BodyAccess5GrantD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  br i1 %17, label %130, label %64

64:                                               ; preds = %.loopexit
  %65 = getelementptr inbounds i8, ptr %1, i64 120
  call void @_ZNSt13__atomic_baseIjE5storeEjSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %65, i32 noundef 0, i32 noundef 3) #7
  %66 = call noundef i32 @_ZNK3JPH20PhysicsUpdateContext17GetMaxConcurrencyEv(ptr noundef nonnull align 8 dereferenceable(124) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %67 = getelementptr inbounds i8, ptr %1, i64 16
  %68 = load ptr, ptr %67, align 8, !tbaa !24
  %.sroa.08.0.copyload = load i32, ptr @_ZN3JPHL22cColorSoftBodyFinalizeE, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  store ptr %1, ptr %8, align 8, !tbaa !26
  %69 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %2, ptr %69, align 8, !tbaa !28
  call void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  %70 = load ptr, ptr %68, align 8, !tbaa !18
  %71 = getelementptr inbounds i8, ptr %70, i64 24
  %72 = load ptr, ptr %71, align 8
  invoke void %72(ptr dead_on_unwind nonnull writable sret(%"class.JPH::JobSystem::JobHandle") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @.str.65, i32 %.sroa.08.0.copyload, ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef %66)
          to label %73 unwind label %92

73:                                               ; preds = %64
  %74 = getelementptr inbounds i8, ptr %2, i64 7328
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH9JobSystem9JobHandleaSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @_ZN3JPH3RefINS_9JobSystem3JobEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %76 = getelementptr inbounds i8, ptr %1, i64 24
  %77 = load ptr, ptr %76, align 8, !tbaa !29
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  %79 = load ptr, ptr %78, align 8
  call void %79(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull align 8 dereferenceable(8) %74)
  %80 = getelementptr inbounds i8, ptr %2, i64 7064
  call void @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE6resizeEj(ptr noundef nonnull align 8 dereferenceable(264) %80, i32 noundef %66)
  %81 = icmp sgt i32 %66, 0
  br i1 %81, label %.lr.ph84, label %._crit_edge

.lr.ph84:                                         ; preds = %73
  %82 = getelementptr inbounds i8, ptr %11, i64 8
  br label %94

._crit_edge:                                      ; preds = %101, %73
  %83 = load ptr, ptr %76, align 8, !tbaa !29
  %84 = call noundef ptr @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE4dataEv(ptr noundef nonnull align 8 dereferenceable(264) %80)
  %85 = call noundef i32 @_ZNK3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(264) %80)
  %86 = load ptr, ptr %83, align 8, !tbaa !18
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  %88 = load ptr, ptr %87, align 8
  call void %88(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef %84, i32 noundef %85)
  %89 = getelementptr inbounds i8, ptr %2, i64 6800
  call void @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE6resizeEj(ptr noundef nonnull align 8 dereferenceable(264) %89, i32 noundef %66)
  br i1 %81, label %.lr.ph87, label %._crit_edge88

.lr.ph87:                                         ; preds = %._crit_edge
  %90 = getelementptr inbounds i8, ptr %14, i64 8
  br label %115

91:                                               ; preds = %60, %62, %22
  %.pn74 = phi { ptr, i32 } [ %23, %22 ], [ %63, %62 ], [ %61, %60 ]
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN3JPH10BodyAccess5GrantD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  br label %131

92:                                               ; preds = %64
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %131

94:                                               ; preds = %.lr.ph84, %101
  %.06883 = phi i32 [ 0, %.lr.ph84 ], [ %103, %101 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %95 = load ptr, ptr %67, align 8, !tbaa !24
  %.sroa.03.0.copyload = load i32, ptr @_ZN3JPHL22cColorSoftBodySimulateE, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  store ptr %2, ptr %11, align 8, !tbaa !30
  store i32 %.06883, ptr %82, align 8, !tbaa !32
  call void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(12) %11) #7
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = getelementptr inbounds i8, ptr %96, i64 24
  %98 = load ptr, ptr %97, align 8
  invoke void %98(ptr dead_on_unwind nonnull writable sret(%"class.JPH::JobSystem::JobHandle") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull @.str.66, i32 %.sroa.03.0.copyload, ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef %66)
          to label %99 unwind label %104

99:                                               ; preds = %94
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EEixEj(ptr noundef nonnull align 8 dereferenceable(264) %80, i32 noundef %.06883)
          to label %101 unwind label %106

101:                                              ; preds = %99
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH9JobSystem9JobHandleaSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @_ZN3JPH3RefINS_9JobSystem3JobEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %103 = add nuw nsw i32 %.06883, 1
  %exitcond.not = icmp eq i32 %103, %66
  br i1 %exitcond.not, label %._crit_edge, label %94, !llvm.loop !33

104:                                              ; preds = %94
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %108

106:                                              ; preds = %99
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH3RefINS_9JobSystem3JobEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br label %108

108:                                              ; preds = %106, %104
  %.pn78 = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %131

._crit_edge88:                                    ; preds = %122, %._crit_edge
  %109 = load ptr, ptr %76, align 8, !tbaa !29
  %110 = call noundef ptr @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE4dataEv(ptr noundef nonnull align 8 dereferenceable(264) %89)
  %111 = call noundef i32 @_ZNK3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(264) %89)
  %112 = load ptr, ptr %109, align 8, !tbaa !18
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = load ptr, ptr %113, align 8
  call void %114(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef %110, i32 noundef %111)
  br label %130

115:                                              ; preds = %.lr.ph87, %122
  %.06185 = phi i32 [ 0, %.lr.ph87 ], [ %124, %122 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %116 = load ptr, ptr %67, align 8, !tbaa !24
  %.sroa.0.0.copyload = load i32, ptr @_ZN3JPHL21cColorSoftBodyCollideE, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  store ptr %1, ptr %14, align 8, !tbaa !34
  store ptr %2, ptr %90, align 8, !tbaa !36
  call void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  %117 = load ptr, ptr %116, align 8, !tbaa !18
  %118 = getelementptr inbounds i8, ptr %117, i64 24
  %119 = load ptr, ptr %118, align 8
  invoke void %119(ptr dead_on_unwind nonnull writable sret(%"class.JPH::JobSystem::JobHandle") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull @.str.67, i32 %.sroa.0.0.copyload, ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef 0)
          to label %120 unwind label %125

120:                                              ; preds = %115
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EEixEj(ptr noundef nonnull align 8 dereferenceable(264) %89, i32 noundef %.06185)
          to label %122 unwind label %127

122:                                              ; preds = %120
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH9JobSystem9JobHandleaSEOS1_(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @_ZN3JPH3RefINS_9JobSystem3JobEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %124 = add nuw nsw i32 %.06185, 1
  %exitcond89.not = icmp eq i32 %124, %66
  br i1 %exitcond89.not, label %._crit_edge88, label %115, !llvm.loop !37

125:                                              ; preds = %115
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %129

127:                                              ; preds = %120
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH3RefINS_9JobSystem3JobEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %129

129:                                              ; preds = %127, %125
  %.pn76 = phi { ptr, i32 } [ %128, %127 ], [ %126, %125 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %131

130:                                              ; preds = %.loopexit, %._crit_edge88
  ret void

131:                                              ; preds = %92, %108, %129, %91
  %.pn78.pn.pn = phi { ptr, i32 } [ %.pn74, %91 ], [ %.pn78, %108 ], [ %.pn76, %129 ], [ %93, %92 ]
  resume { ptr, i32 } %.pn78.pn.pn
}

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

declare void @_ZNK3JPH11BodyManager15GetActiveBodiesENS_9EBodyTypeERNS_5ArrayINS_6BodyIDENS_12STLAllocatorIS3_EEEE(ptr noundef nonnull align 8 dereferenceable(297), i8 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH9QuickSortIPNS_6BodyIDEEEvT_S3_(ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

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

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

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

declare void @_ZN3JPH24SoftBodyMotionProperties23InitializeUpdateContextEfRNS_4BodyERKNS_13PhysicsSystemERNS_21SoftBodyUpdateContextE(ptr noundef nonnull align 16 dereferenceable(372), float noundef, ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef nonnull align 16 dereferenceable(196)) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS3_20PhysicsUpdateContextEPNS5_4StepEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 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 = { 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 #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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { "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, !13, i64 104}
!6 = !{!"_ZTSN3JPH20PhysicsUpdateContextE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !11, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !14, i64 72, !13, i64 104, !7, i64 112, !11, i64 120}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"_ZTSSt6atomicIjE", !12, i64 0}
!12 = !{!"_ZTSSt13__atomic_baseIjE", !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!"_ZTSN3JPH5ArrayINS_20PhysicsUpdateContext4StepENS_16STLTempAllocatorIS2_EEEE", !15, i64 0, !16, i64 8, !16, i64 16, !7, i64 24}
!15 = !{!"_ZTSN3JPH16STLTempAllocatorINS_20PhysicsUpdateContext4StepEEE", !7, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!6, !7, i64 8}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !9, i64 0}
!20 = !{!6, !7, i64 112}
!21 = !{!6, !10, i64 32}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!6, !7, i64 16}
!25 = !{!8, !8, i64 0}
!26 = !{!27, !7, i64 0}
!27 = !{!"_ZTSZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS_20PhysicsUpdateContextEPNS1_4StepEE3$_0", !7, i64 0, !7, i64 8}
!28 = !{!27, !7, i64 8}
!29 = !{!6, !7, i64 24}
!30 = !{!31, !7, i64 0}
!31 = !{!"_ZTSZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS_20PhysicsUpdateContextEPNS1_4StepEE3$_1", !7, i64 0, !13, i64 8}
!32 = !{!31, !13, i64 8}
!33 = distinct !{!33, !23}
!34 = !{!35, !7, i64 0}
!35 = !{!"_ZTSZN3JPH13PhysicsSystem18JobSoftBodyPrepareEPNS_20PhysicsUpdateContextEPNS1_4StepEE3$_2", !7, i64 0, !7, i64 8}
!36 = !{!35, !7, i64 8}
!37 = distinct !{!37, !23}


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