; LLVM IR from jrouwe/JoltPhysics :: HelloWorld (HelloWorld)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.JPH::TempAllocatorImpl" = type { %"class.JPH::TempAllocator", ptr, i64, i64 }
%"class.JPH::TempAllocator" = type { ptr }
%"class.JPH::JobSystemThreadPool" = type <{ %"class.JPH::JobSystemWithBarrier", %"class.std::function", %"class.std::function", [40 x i8], %"class.JPH::FixedSizeFreeList", %"class.JPH::Array", [1024 x %"struct.std::atomic.6"], ptr, [32 x i8], %"struct.std::atomic", [60 x i8], %"class.JPH::Semaphore", %"struct.std::atomic.10", [63 x i8] }>
%"class.JPH::JobSystemWithBarrier" = type { %"class.JPH::JobSystem", i32, ptr }
%"class.JPH::JobSystem" = type { 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 } }
%"class.JPH::FixedSizeFreeList" = type <{ i32, i32, i32, i32, i32, [4 x i8], ptr, [32 x i8], %"class.JPH::Mutex", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic.4", %"struct.std::atomic", [60 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 }
%"struct.std::atomic.4" = type { %"struct.std::__atomic_base.5" }
%"struct.std::__atomic_base.5" = type { i64 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Semaphore" = type { %"struct.std::atomic.8", %union.sem_t, [24 x i8] }
%"struct.std::atomic.8" = type { %"struct.std::__atomic_base.9" }
%"struct.std::__atomic_base.9" = type { i32 }
%union.sem_t = type { i64, [24 x i8] }
%"struct.std::atomic.10" = type { %"struct.std::__atomic_base.11" }
%"struct.std::__atomic_base.11" = type { i8 }
%class.BPLayerInterfaceImpl = type <{ %"class.JPH::BroadPhaseLayerInterface", [2 x %"class.JPH::BroadPhaseLayer"], [6 x i8] }>
%"class.JPH::BroadPhaseLayerInterface" = type { ptr }
%"class.JPH::BroadPhaseLayer" = type { i8 }
%class.ObjectVsBroadPhaseLayerFilterImpl = type { %"class.JPH::ObjectVsBroadPhaseLayerFilter" }
%"class.JPH::ObjectVsBroadPhaseLayerFilter" = type { ptr }
%class.ObjectLayerPairFilterImpl = type { %"class.JPH::ObjectLayerPairFilter" }
%"class.JPH::ObjectLayerPairFilter" = type { 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.21", %"struct.JPH::PhysicsSettings", [4 x i8], %"class.JPH::ContactConstraintManager", %"class.JPH::ConstraintManager", %"class.JPH::IslandBuilder", %"class.JPH::LargeIslandSplitter", %"class.JPH::Mutex", %"class.JPH::Array.27", %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::BodyManager" = type <{ %"class.JPH::Array.12", i32, [4 x i8], i64, %"class.JPH::Mutex", %"class.JPH::MutexArray", %"class.JPH::Array.15", %"class.JPH::Mutex", [2 x ptr], [2 x %"struct.std::atomic"], i32, [4 x i8], %"class.JPH::Mutex", %"class.JPH::Array.18", ptr, ptr, i8, [7 x i8] }>
%"class.JPH::Array.12" = type { i64, i64, ptr }
%"class.JPH::MutexArray" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::Array.15" = type { i64, i64, ptr }
%"class.JPH::Array.18" = 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.21" = 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.23", 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.23" = type { ptr, %"struct.std::atomic", ptr, i32, i32 }
%"class.JPH::ConstraintManager" = type { ptr, %"class.JPH::Array.24", %"class.JPH::Mutex" }
%"class.JPH::Array.24" = 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::Array.27" = type { i64, i64, ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%class.MyBodyActivationListener = type { %"class.JPH::BodyActivationListener" }
%"class.JPH::BodyActivationListener" = type { ptr }
%class.MyContactListener = type { %"class.JPH::ContactListener" }
%"class.JPH::ContactListener" = type { ptr }
%"class.JPH::BoxShapeSettings" = type <{ %"class.JPH::ConvexShapeSettings.base", [4 x i8], %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::ConvexShapeSettings.base" = type <{ %"class.JPH::ShapeSettings", %"class.JPH::RefConst", float }>
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"class.JPH::Result" = type <{ %union.anon.30, i8, [7 x i8] }>
%union.anon.30 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.33 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.33 = type { i64, [8 x i8] }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::RefConst.34" = type { ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.37", %"class.JPH::RefConst.34" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.35 }
%union.anon.35 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.36", i32, i32 }
%"class.JPH::RefConst.36" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.37" = type { ptr }
%"class.JPH::BodyID" = type { i32 }

@_ZN3JPH5TraceE = external global ptr, align 8
@_ZN3JPH12AssertFailedE = external global ptr, align 8
@_ZN3JPH7Factory9sInstanceE = external global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 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 norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.JPH::TempAllocatorImpl", align 8
  %7 = alloca %"class.JPH::JobSystemThreadPool", align 64
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %class.BPLayerInterfaceImpl, align 8
  %15 = alloca %class.ObjectVsBroadPhaseLayerFilterImpl, align 8
  %16 = alloca %class.ObjectLayerPairFilterImpl, align 8
  %17 = alloca %"class.JPH::PhysicsSystem", align 16
  %18 = alloca %class.MyBodyActivationListener, align 8
  %19 = alloca %class.MyContactListener, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.JPH::BoxShapeSettings", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Result", align 8
  %24 = alloca %"class.JPH::RefConst.34", align 8
  %25 = alloca %"class.JPH::BodyCreationSettings", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Quat", align 16
  %28 = alloca ptr, align 8
  %29 = alloca %"class.JPH::BodyCreationSettings", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Quat", align 16
  %32 = alloca %"class.JPH::BodyID", align 4
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca float, align 4
  %35 = alloca i32, align 4
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @_ZN3JPH24RegisterDefaultAllocatorEv()
  store ptr @_ZL9TraceImplPKcz, ptr @_ZN3JPH5TraceE, align 8, !tbaa !9
  store ptr @_ZL16AssertFailedImplPKcS0_S0_j, ptr @_ZN3JPH12AssertFailedE, align 8, !tbaa !9
  %39 = call noundef ptr @_ZN3JPH7FactorynwEm(i64 noundef 64)
  call void @llvm.memset.p0.i64(ptr align 8 %39, i8 0, i64 64, i1 false)
  call void @_ZN3JPH7FactoryC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %39) #12
  store ptr %39, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !9
  call void @_ZN3JPH13RegisterTypesEv()
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #12
  call void @_ZN3JPH17TempAllocatorImplC2Em(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef 10485760)
  call void @llvm.lifetime.start.p0(i64 8768, ptr %7) #12
  %40 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #12
  %41 = sub i32 %40, 1
  invoke void @_ZN3JPH19JobSystemThreadPoolC1Ejji(ptr noundef nonnull align 64 dereferenceable(8768) %7, i32 noundef 2048, i32 noundef 8, i32 noundef %41)
          to label %42 unwind label %210

42:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #12
  store i32 1024, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #12
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #12
  store i32 1024, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #12
  store i32 1024, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #12
  invoke void @_ZN20BPLayerInterfaceImplC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %43 unwind label %214

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #12
  call void @_ZN33ObjectVsBroadPhaseLayerFilterImplC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #12
  call void @_ZN25ObjectLayerPairFilterImplC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #12
  call void @llvm.lifetime.start.p0(i64 1184, ptr %17) #12
  invoke void @_ZN3JPH13PhysicsSystemC2Ev(ptr noundef nonnull align 16 dereferenceable(1172) %17)
          to label %44 unwind label %218

44:                                               ; preds = %43
  invoke void @_ZN3JPH13PhysicsSystem4InitEjjjjRKNS_24BroadPhaseLayerInterfaceERKNS_29ObjectVsBroadPhaseLayerFilterERKNS_21ObjectLayerPairFilterE(ptr noundef nonnull align 16 dereferenceable(1172) %17, i32 noundef 1024, i32 noundef 0, i32 noundef 1024, i32 noundef 1024, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %45 unwind label %222

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #12
  call void @_ZN24MyBodyActivationListenerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #12
  invoke void @_ZN3JPH13PhysicsSystem25SetBodyActivationListenerEPNS_22BodyActivationListenerE(ptr noundef nonnull align 16 dereferenceable(1172) %17, ptr noundef %18)
          to label %46 unwind label %226

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #12
  call void @_ZN17MyContactListenerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #12
  invoke void @_ZN3JPH13PhysicsSystem18SetContactListenerEPNS_15ContactListenerE(ptr noundef nonnull align 16 dereferenceable(1172) %17, ptr noundef %19)
          to label %47 unwind label %230

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #12
  %48 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH13PhysicsSystem16GetBodyInterfaceEv(ptr noundef nonnull align 16 dereferenceable(1172) %17)
          to label %49 unwind label %234

49:                                               ; preds = %47
  store ptr %48, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 112, ptr %21) #12
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef 1.000000e+02, float noundef 1.000000e+00, float noundef 1.000000e+02)
          to label %50 unwind label %238

50:                                               ; preds = %49
  %51 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %52 = load double, ptr %51, align 16
  %53 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %54 = load double, ptr %53, align 8
  invoke void @_ZN3JPH16BoxShapeSettingsC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(112) %21, double %52, double %54, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %55 unwind label %238

55:                                               ; preds = %50
  %56 = getelementptr inbounds i8, ptr %21, i64 8
  invoke void @_ZNK3JPH9RefTargetINS_13ShapeSettingsEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4) %56)
          to label %57 unwind label %242

57:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #12
  invoke void @_ZNK3JPH16BoxShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8 %23, ptr noundef nonnull align 16 dereferenceable(112) %21)
          to label %58 unwind label %246

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #12
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %23)
          to label %60 unwind label %250

60:                                               ; preds = %58
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2ERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %59)
          to label %61 unwind label %250

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 256, ptr %25) #12
  %62 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %63 unwind label %254

63:                                               ; preds = %61
  %64 = invoke noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK00000000000000000000)
          to label %65 unwind label %254

65:                                               ; preds = %63
  %66 = invoke noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK3FFF8000000000000000)
          to label %67 unwind label %254

67:                                               ; preds = %65
  %68 = fneg float %66
  %69 = invoke noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK00000000000000000000)
          to label %70 unwind label %254

70:                                               ; preds = %67
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %26, float noundef %64, float noundef %68, float noundef %69)
          to label %71 unwind label %254

71:                                               ; preds = %70
  %72 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %73 unwind label %254

73:                                               ; preds = %71
  %74 = getelementptr inbounds %"class.JPH::Quat", ptr %27, i32 0, i32 0
  %75 = getelementptr inbounds %"class.JPH::Vec4", ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds %union.anon.35, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %78 = extractvalue { double, double } %72, 0
  store double %78, ptr %77, align 16
  %79 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %80 = extractvalue { double, double } %72, 1
  store double %80, ptr %79, align 8
  %81 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %82 = load double, ptr %81, align 16
  %83 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %84 = load double, ptr %83, align 8
  %85 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %86 = load double, ptr %85, align 16
  %87 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %88 = load double, ptr %87, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %25, ptr noundef %62, double %82, double %84, double %86, double %88, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %89 unwind label %254

89:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #12
  %90 = load ptr, ptr %20, align 8, !tbaa !9
  %91 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %90, ptr noundef nonnull align 16 dereferenceable(256) %25)
          to label %92 unwind label %258

92:                                               ; preds = %89
  store ptr %91, ptr %28, align 8, !tbaa !9
  %93 = load ptr, ptr %20, align 8, !tbaa !9
  %94 = load ptr, ptr %28, align 8, !tbaa !9
  %95 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %94)
          to label %96 unwind label %258

96:                                               ; preds = %92
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 4 dereferenceable(4) %95, i32 noundef 1)
          to label %97 unwind label %258

97:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 256, ptr %29) #12
  %98 = invoke noundef ptr @_ZN3JPH11SphereShapenwEm(i64 noundef 48)
          to label %99 unwind label %262

99:                                               ; preds = %97
  invoke void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48) %98, float noundef 5.000000e-01, ptr noundef null)
          to label %100 unwind label %266

100:                                              ; preds = %99
  %101 = invoke noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK00000000000000000000)
          to label %102 unwind label %262

102:                                              ; preds = %100
  %103 = invoke noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK40008000000000000000)
          to label %104 unwind label %262

104:                                              ; preds = %102
  %105 = invoke noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK00000000000000000000)
          to label %106 unwind label %262

106:                                              ; preds = %104
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %30, float noundef %101, float noundef %103, float noundef %105)
          to label %107 unwind label %262

107:                                              ; preds = %106
  %108 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %109 unwind label %262

109:                                              ; preds = %107
  %110 = getelementptr inbounds %"class.JPH::Quat", ptr %31, i32 0, i32 0
  %111 = getelementptr inbounds %"class.JPH::Vec4", ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds %union.anon.35, ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 0
  %114 = extractvalue { double, double } %108, 0
  store double %114, ptr %113, align 16
  %115 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 1
  %116 = extractvalue { double, double } %108, 1
  store double %116, ptr %115, align 8
  %117 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %118 = load double, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %120 = load double, ptr %119, align 8
  %121 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %122 = load double, ptr %121, align 16
  %123 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %124 = load double, ptr %123, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %29, ptr noundef %98, double %118, double %120, double %122, double %124, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %125 unwind label %262

125:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #12
  %126 = load ptr, ptr %20, align 8, !tbaa !9
  %127 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %126, ptr noundef nonnull align 16 dereferenceable(256) %29, i32 noundef 0)
          to label %128 unwind label %270

128:                                              ; preds = %125
  %129 = getelementptr inbounds %"class.JPH::BodyID", ptr %32, i32 0, i32 0
  store i32 %127, ptr %129, align 4
  %130 = load ptr, ptr %20, align 8, !tbaa !9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %33, float noundef 0.000000e+00, float noundef -5.000000e+00, float noundef 0.000000e+00)
          to label %131 unwind label %270

131:                                              ; preds = %128
  %132 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %133 = load double, ptr %132, align 16
  %134 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %135 = load double, ptr %134, align 8
  invoke void @_ZN3JPH13BodyInterface17SetLinearVelocityERKNS_6BodyIDENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(24) %130, ptr noundef nonnull align 4 dereferenceable(4) %32, double %133, double %135)
          to label %136 unwind label %270

136:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #12
  store float 0x3F91111120000000, ptr %34, align 4, !tbaa !11
  invoke void @_ZN3JPH13PhysicsSystem18OptimizeBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(1172) %17)
          to label %137 unwind label %274

137:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #12
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %209, %137
  %139 = load ptr, ptr %20, align 8, !tbaa !9
  %140 = invoke noundef zeroext i1 @_ZNK3JPH13BodyInterface8IsActiveERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %141 unwind label %278

141:                                              ; preds = %138
  br i1 %140, label %142, label %296

142:                                              ; preds = %141
  %143 = load i32, ptr %35, align 4, !tbaa !5
  %144 = add i32 %143, 1
  store i32 %144, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #12
  %145 = load ptr, ptr %20, align 8, !tbaa !9
  %146 = invoke { double, double } @_ZNK3JPH13BodyInterface23GetCenterOfMassPositionERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %145, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %147 unwind label %282

147:                                              ; preds = %142
  %148 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %149 = getelementptr inbounds %union.anon, ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds { double, double }, ptr %149, i32 0, i32 0
  %151 = extractvalue { double, double } %146, 0
  store double %151, ptr %150, align 16
  %152 = getelementptr inbounds { double, double }, ptr %149, i32 0, i32 1
  %153 = extractvalue { double, double } %146, 1
  store double %153, ptr %152, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #12
  %154 = load ptr, ptr %20, align 8, !tbaa !9
  %155 = invoke { double, double } @_ZNK3JPH13BodyInterface17GetLinearVelocityERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %156 unwind label %286

156:                                              ; preds = %147
  %157 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i32 0, i32 0
  %158 = getelementptr inbounds %union.anon, ptr %157, i32 0, i32 0
  %159 = getelementptr inbounds { double, double }, ptr %158, i32 0, i32 0
  %160 = extractvalue { double, double } %155, 0
  store double %160, ptr %159, align 16
  %161 = getelementptr inbounds { double, double }, ptr %158, i32 0, i32 1
  %162 = extractvalue { double, double } %155, 1
  store double %162, ptr %161, align 8
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %164 unwind label %286

164:                                              ; preds = %156
  %165 = load i32, ptr %35, align 4, !tbaa !5
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %163, i32 noundef %165)
          to label %167 unwind label %286

167:                                              ; preds = %164
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef @.str.2)
          to label %169 unwind label %286

169:                                              ; preds = %167
  %170 = invoke noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %36)
          to label %171 unwind label %286

171:                                              ; preds = %169
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %168, float noundef %170)
          to label %173 unwind label %286

173:                                              ; preds = %171
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef @.str.3)
          to label %175 unwind label %286

175:                                              ; preds = %173
  %176 = invoke noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %36)
          to label %177 unwind label %286

177:                                              ; preds = %175
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %174, float noundef %176)
          to label %179 unwind label %286

179:                                              ; preds = %177
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef @.str.3)
          to label %181 unwind label %286

181:                                              ; preds = %179
  %182 = invoke noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %36)
          to label %183 unwind label %286

183:                                              ; preds = %181
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %180, float noundef %182)
          to label %185 unwind label %286

185:                                              ; preds = %183
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef @.str.4)
          to label %187 unwind label %286

187:                                              ; preds = %185
  %188 = invoke noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %37)
          to label %189 unwind label %286

189:                                              ; preds = %187
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %186, float noundef %188)
          to label %191 unwind label %286

191:                                              ; preds = %189
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %190, ptr noundef @.str.3)
          to label %193 unwind label %286

193:                                              ; preds = %191
  %194 = invoke noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %37)
          to label %195 unwind label %286

195:                                              ; preds = %193
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %192, float noundef %194)
          to label %197 unwind label %286

197:                                              ; preds = %195
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef @.str.3)
          to label %199 unwind label %286

199:                                              ; preds = %197
  %200 = invoke noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %37)
          to label %201 unwind label %286

201:                                              ; preds = %199
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %198, float noundef %200)
          to label %203 unwind label %286

203:                                              ; preds = %201
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef @.str.5)
          to label %205 unwind label %286

205:                                              ; preds = %203
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %207 unwind label %286

207:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #12
  store i32 1, ptr %38, align 4, !tbaa !5
  %208 = invoke noundef i32 @_ZN3JPH13PhysicsSystem6UpdateEfiPNS_13TempAllocatorEPNS_9JobSystemE(ptr noundef nonnull align 16 dereferenceable(1172) %17, float noundef 0x3F91111120000000, i32 noundef 1, ptr noundef %6, ptr noundef %7)
          to label %209 unwind label %290

209:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #12
  br label %138, !llvm.loop !13

210:                                              ; preds = %2
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %8, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %9, align 4
  br label %333

214:                                              ; preds = %42
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %8, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %9, align 4
  br label %332

218:                                              ; preds = %43
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %8, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %9, align 4
  br label %331

222:                                              ; preds = %44
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %8, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %9, align 4
  br label %330

226:                                              ; preds = %45
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %8, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %9, align 4
  br label %329

230:                                              ; preds = %46
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %8, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %9, align 4
  br label %328

234:                                              ; preds = %47
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %8, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %9, align 4
  br label %327

238:                                              ; preds = %50, %49
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %8, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %9, align 4
  br label %326

242:                                              ; preds = %55
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %8, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %9, align 4
  br label %325

246:                                              ; preds = %57
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %8, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %9, align 4
  br label %324

250:                                              ; preds = %60, %58
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %8, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %9, align 4
  br label %323

254:                                              ; preds = %73, %71, %70, %67, %65, %63, %61
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %8, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %9, align 4
  br label %322

258:                                              ; preds = %96, %92, %89
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %8, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %9, align 4
  br label %321

262:                                              ; preds = %109, %107, %106, %104, %102, %100, %97
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %8, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %9, align 4
  br label %320

266:                                              ; preds = %99
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %8, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %9, align 4
  call void @_ZN3JPH11SphereShapedlEPv(ptr noundef %98) #12
  br label %320

270:                                              ; preds = %131, %128, %125
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %8, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %9, align 4
  br label %319

274:                                              ; preds = %136
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %8, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %9, align 4
  br label %318

278:                                              ; preds = %310, %309, %305, %304, %300, %298, %296, %138
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %8, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %9, align 4
  br label %317

282:                                              ; preds = %142
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %8, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %9, align 4
  br label %295

286:                                              ; preds = %205, %203, %201, %199, %197, %195, %193, %191, %189, %187, %185, %183, %181, %179, %177, %175, %173, %171, %169, %167, %164, %156, %147
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %8, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %9, align 4
  br label %294

290:                                              ; preds = %207
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %8, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #12
  br label %294

294:                                              ; preds = %290, %286
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #12
  br label %295

295:                                              ; preds = %294, %282
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #12
  br label %317

296:                                              ; preds = %141
  %297 = load ptr, ptr %20, align 8, !tbaa !9
  invoke void @_ZN3JPH13BodyInterface10RemoveBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %297, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %298 unwind label %278

298:                                              ; preds = %296
  %299 = load ptr, ptr %20, align 8, !tbaa !9
  invoke void @_ZN3JPH13BodyInterface11DestroyBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %299, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %300 unwind label %278

300:                                              ; preds = %298
  %301 = load ptr, ptr %20, align 8, !tbaa !9
  %302 = load ptr, ptr %28, align 8, !tbaa !9
  %303 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %302)
          to label %304 unwind label %278

304:                                              ; preds = %300
  invoke void @_ZN3JPH13BodyInterface10RemoveBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %301, ptr noundef nonnull align 4 dereferenceable(4) %303)
          to label %305 unwind label %278

305:                                              ; preds = %304
  %306 = load ptr, ptr %20, align 8, !tbaa !9
  %307 = load ptr, ptr %28, align 8, !tbaa !9
  %308 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %307)
          to label %309 unwind label %278

309:                                              ; preds = %305
  invoke void @_ZN3JPH13BodyInterface11DestroyBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %306, ptr noundef nonnull align 4 dereferenceable(4) %308)
          to label %310 unwind label %278

310:                                              ; preds = %309
  invoke void @_ZN3JPH15UnregisterTypesEv()
          to label %311 unwind label %278

311:                                              ; preds = %310
  %312 = load ptr, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !9
  %313 = icmp eq ptr %312, null
  br i1 %313, label %315, label %314

314:                                              ; preds = %311
  call void @_ZN3JPH7FactoryD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %312) #12
  call void @_ZN3JPH7FactorydlEPv(ptr noundef %312) #12
  br label %315

315:                                              ; preds = %314, %311
  store ptr null, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !9
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #12
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %29) #12
  call void @llvm.lifetime.end.p0(i64 256, ptr %29) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #12
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %25) #12
  call void @llvm.lifetime.end.p0(i64 256, ptr %25) #12
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #12
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %23) #12
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #12
  call void @_ZN3JPH19ConvexShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %21) #12
  call void @llvm.lifetime.end.p0(i64 112, ptr %21) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #12
  call void @_ZN3JPH15ContactListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #12
  call void @_ZN3JPH22BodyActivationListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #12
  call void @_ZN3JPH13PhysicsSystemD1Ev(ptr noundef nonnull align 16 dereferenceable(1172) %17) #12
  call void @llvm.lifetime.end.p0(i64 1184, ptr %17) #12
  call void @_ZN3JPH21ObjectLayerPairFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #12
  call void @_ZN3JPH29ObjectVsBroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #12
  call void @_ZN3JPH24BroadPhaseLayerInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #12
  call void @_ZN3JPH19JobSystemThreadPoolD1Ev(ptr noundef nonnull align 64 dereferenceable(8768) %7) #12
  call void @llvm.lifetime.end.p0(i64 8768, ptr %7) #12
  call void @_ZN3JPH17TempAllocatorImplD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #12
  %316 = load i32, ptr %3, align 4
  ret i32 %316

317:                                              ; preds = %295, %278
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #12
  br label %318

318:                                              ; preds = %317, %274
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #12
  br label %319

319:                                              ; preds = %318, %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #12
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %29) #12
  br label %320

320:                                              ; preds = %319, %266, %262
  call void @llvm.lifetime.end.p0(i64 256, ptr %29) #12
  br label %321

321:                                              ; preds = %320, %258
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #12
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %25) #12
  br label %322

322:                                              ; preds = %321, %254
  call void @llvm.lifetime.end.p0(i64 256, ptr %25) #12
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #12
  br label %323

323:                                              ; preds = %322, %250
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #12
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %23) #12
  br label %324

324:                                              ; preds = %323, %246
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #12
  br label %325

325:                                              ; preds = %324, %242
  call void @_ZN3JPH19ConvexShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %21) #12
  br label %326

326:                                              ; preds = %325, %238
  call void @llvm.lifetime.end.p0(i64 112, ptr %21) #12
  br label %327

327:                                              ; preds = %326, %234
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #12
  br label %328

328:                                              ; preds = %327, %230
  call void @_ZN3JPH15ContactListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #12
  br label %329

329:                                              ; preds = %328, %226
  call void @_ZN3JPH22BodyActivationListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #12
  br label %330

330:                                              ; preds = %329, %222
  call void @_ZN3JPH13PhysicsSystemD1Ev(ptr noundef nonnull align 16 dereferenceable(1172) %17) #12
  br label %331

331:                                              ; preds = %330, %218
  call void @llvm.lifetime.end.p0(i64 1184, ptr %17) #12
  call void @_ZN3JPH21ObjectLayerPairFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #12
  call void @_ZN3JPH29ObjectVsBroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #12
  call void @_ZN3JPH24BroadPhaseLayerInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #12
  br label %332

332:                                              ; preds = %331, %214
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #12
  call void @_ZN3JPH19JobSystemThreadPoolD1Ev(ptr noundef nonnull align 64 dereferenceable(8768) %7) #12
  br label %333

333:                                              ; preds = %332, %210
  call void @llvm.lifetime.end.p0(i64 8768, ptr %7) #12
  call void @_ZN3JPH17TempAllocatorImplD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #12
  br label %334

334:                                              ; preds = %333
  %335 = load ptr, ptr %8, align 8
  %336 = load i32, ptr %9, align 4
  %337 = insertvalue { ptr, i32 } poison, ptr %335, 0
  %338 = insertvalue { ptr, i32 } %337, i32 %336, 1
  resume { ptr, i32 } %338
}

declare void @_ZN3JPH24RegisterDefaultAllocatorEv() #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9TraceImplPKcz(ptr noundef, ...) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL16AssertFailedImplPKcS0_S0_j(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH13RegisterTypesEv() #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH17TempAllocatorImplC2Em(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #7

declare void @_ZN3JPH19JobSystemThreadPoolC1Ejji(ptr noundef nonnull align 64 dereferenceable(8768), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2

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

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

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

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

declare void @_ZN3JPH13PhysicsSystem4InitEjjjjRKNS_24BroadPhaseLayerInterfaceERKNS_29ObjectVsBroadPhaseLayerFilterERKNS_21ObjectLayerPairFilterE(ptr noundef nonnull align 16 dereferenceable(1172), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13PhysicsSystem25SetBodyActivationListenerEPNS_22BodyActivationListenerE(ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13PhysicsSystem18SetContactListenerEPNS_15ContactListenerE(ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef) #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #9 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16BoxShapeSettingsC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(112), double, double, float noundef, ptr noundef) unnamed_addr #3 align 2

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

declare void @_ZNK3JPH16BoxShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8, ptr noundef nonnull align 16 dereferenceable(112)) unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef) #8

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sIdentityEv() #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #3 align 2

declare noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256)) #2

declare void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48), float noundef, ptr noundef) unnamed_addr #3 align 2

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

declare i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256), i32 noundef) #2

declare void @_ZN3JPH13BodyInterface17SetLinearVelocityERKNS_6BodyIDENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), double, double) #2

declare void @_ZN3JPH13PhysicsSystem18OptimizeBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(1172)) #2

declare noundef zeroext i1 @_ZNK3JPH13BodyInterface8IsActiveERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2

declare { double, double } @_ZNK3JPH13BodyInterface23GetCenterOfMassPositionERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2

declare { double, double } @_ZNK3JPH13BodyInterface17GetLinearVelocityERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #10

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16)) #9 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) #11 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16)) #11 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #10

declare noundef i32 @_ZN3JPH13PhysicsSystem6UpdateEfiPNS_13TempAllocatorEPNS_9JobSystemE(ptr noundef nonnull align 16 dereferenceable(1172), float noundef, i32 noundef, ptr noundef, ptr noundef) #2

declare void @_ZN3JPH13BodyInterface10RemoveBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2

declare void @_ZN3JPH13BodyInterface11DestroyBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2

declare void @_ZN3JPH15UnregisterTypesEv() #2

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN3JPH13PhysicsSystemD1Ev(ptr noundef nonnull align 16 dereferenceable(1172)) unnamed_addr #7

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

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

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

; Function Attrs: nounwind
declare void @_ZN3JPH19JobSystemThreadPoolD1Ev(ptr noundef nonnull align 64 dereferenceable(8768)) unnamed_addr #7

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

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

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

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


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.JPH::TempAllocatorImpl" = type { %"class.JPH::TempAllocator", ptr, i64, i64 }
%"class.JPH::TempAllocator" = type { ptr }
%"class.JPH::JobSystemThreadPool" = type <{ %"class.JPH::JobSystemWithBarrier", %"class.std::function", %"class.std::function", [40 x i8], %"class.JPH::FixedSizeFreeList", %"class.JPH::Array", [1024 x %"struct.std::atomic.6"], ptr, [32 x i8], %"struct.std::atomic", [60 x i8], %"class.JPH::Semaphore", %"struct.std::atomic.10", [63 x i8] }>
%"class.JPH::JobSystemWithBarrier" = type { %"class.JPH::JobSystem", i32, ptr }
%"class.JPH::JobSystem" = type { 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 } }
%"class.JPH::FixedSizeFreeList" = type <{ i32, i32, i32, i32, i32, [4 x i8], ptr, [32 x i8], %"class.JPH::Mutex", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic.4", %"struct.std::atomic", [60 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 }
%"struct.std::atomic.4" = type { %"struct.std::__atomic_base.5" }
%"struct.std::__atomic_base.5" = type { i64 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Semaphore" = type { %"struct.std::atomic.8", %union.sem_t, [24 x i8] }
%"struct.std::atomic.8" = type { %"struct.std::__atomic_base.9" }
%"struct.std::__atomic_base.9" = type { i32 }
%union.sem_t = type { i64, [24 x i8] }
%"struct.std::atomic.10" = type { %"struct.std::__atomic_base.11" }
%"struct.std::__atomic_base.11" = type { i8 }
%class.BPLayerInterfaceImpl = type <{ %"class.JPH::BroadPhaseLayerInterface", [2 x %"class.JPH::BroadPhaseLayer"], [6 x i8] }>
%"class.JPH::BroadPhaseLayerInterface" = type { ptr }
%"class.JPH::BroadPhaseLayer" = type { i8 }
%class.ObjectVsBroadPhaseLayerFilterImpl = type { %"class.JPH::ObjectVsBroadPhaseLayerFilter" }
%"class.JPH::ObjectVsBroadPhaseLayerFilter" = type { ptr }
%class.ObjectLayerPairFilterImpl = type { %"class.JPH::ObjectLayerPairFilter" }
%"class.JPH::ObjectLayerPairFilter" = type { 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.21", %"struct.JPH::PhysicsSettings", [4 x i8], %"class.JPH::ContactConstraintManager", %"class.JPH::ConstraintManager", %"class.JPH::IslandBuilder", %"class.JPH::LargeIslandSplitter", %"class.JPH::Mutex", %"class.JPH::Array.27", %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::BodyManager" = type <{ %"class.JPH::Array.12", i32, [4 x i8], i64, %"class.JPH::Mutex", %"class.JPH::MutexArray", %"class.JPH::Array.15", %"class.JPH::Mutex", [2 x ptr], [2 x %"struct.std::atomic"], i32, [4 x i8], %"class.JPH::Mutex", %"class.JPH::Array.18", ptr, ptr, i8, [7 x i8] }>
%"class.JPH::Array.12" = type { i64, i64, ptr }
%"class.JPH::MutexArray" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::Array.15" = type { i64, i64, ptr }
%"class.JPH::Array.18" = 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.21" = 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.23", 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.23" = type { ptr, %"struct.std::atomic", ptr, i32, i32 }
%"class.JPH::ConstraintManager" = type { ptr, %"class.JPH::Array.24", %"class.JPH::Mutex" }
%"class.JPH::Array.24" = 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::Array.27" = type { i64, i64, ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%class.MyBodyActivationListener = type { %"class.JPH::BodyActivationListener" }
%"class.JPH::BodyActivationListener" = type { ptr }
%class.MyContactListener = type { %"class.JPH::ContactListener" }
%"class.JPH::ContactListener" = type { ptr }
%"class.JPH::BoxShapeSettings" = type <{ %"class.JPH::ConvexShapeSettings.base", [4 x i8], %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::ConvexShapeSettings.base" = type <{ %"class.JPH::ShapeSettings", %"class.JPH::RefConst", float }>
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"class.JPH::Result" = type <{ %union.anon.30, i8, [7 x i8] }>
%union.anon.30 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.33 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.33 = type { i64, [8 x i8] }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::RefConst.34" = type { ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.37", %"class.JPH::RefConst.34" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.35 }
%union.anon.35 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.36", i32, i32 }
%"class.JPH::RefConst.36" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.37" = type { ptr }
%"class.JPH::BodyID" = type { i32 }

@_ZN3JPH5TraceE = external local_unnamed_addr global ptr, align 8
@_ZN3JPH12AssertFailedE = external local_unnamed_addr global ptr, align 8
@_ZN3JPH7Factory9sInstanceE = external local_unnamed_addr global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 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 norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::TempAllocatorImpl", align 8
  %4 = alloca %"class.JPH::JobSystemThreadPool", align 64
  %5 = alloca %class.BPLayerInterfaceImpl, align 8
  %6 = alloca %class.ObjectVsBroadPhaseLayerFilterImpl, align 8
  %7 = alloca %class.ObjectLayerPairFilterImpl, align 8
  %8 = alloca %"class.JPH::PhysicsSystem", align 16
  %9 = alloca %class.MyBodyActivationListener, align 8
  %10 = alloca %class.MyContactListener, align 8
  %11 = alloca %"class.JPH::BoxShapeSettings", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Result", align 8
  %14 = alloca %"class.JPH::RefConst.34", align 8
  %15 = alloca %"class.JPH::BodyCreationSettings", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::BodyCreationSettings", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::BodyID", align 4
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  tail call void @_ZN3JPH24RegisterDefaultAllocatorEv()
  store ptr @_ZL9TraceImplPKcz, ptr @_ZN3JPH5TraceE, align 8, !tbaa !5
  store ptr @_ZL16AssertFailedImplPKcS0_S0_j, ptr @_ZN3JPH12AssertFailedE, align 8, !tbaa !5
  %23 = tail call noundef ptr @_ZN3JPH7FactorynwEm(i64 noundef 64)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %23, i8 0, i64 64, i1 false)
  tail call void @_ZN3JPH7FactoryC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %23) #12
  store ptr %23, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !5
  tail call void @_ZN3JPH13RegisterTypesEv()
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #12
  call void @_ZN3JPH17TempAllocatorImplC2Em(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 10485760)
  call void @llvm.lifetime.start.p0(i64 8768, ptr nonnull %4) #12
  %24 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #12
  %25 = add i32 %24, -1
  invoke void @_ZN3JPH19JobSystemThreadPoolC1Ejji(ptr noundef nonnull align 64 dereferenceable(8768) %4, i32 noundef 2048, i32 noundef 8, i32 noundef %25)
          to label %26 unwind label %140

26:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #12
  call void @_ZN20BPLayerInterfaceImplC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #12
  call void @_ZN33ObjectVsBroadPhaseLayerFilterImplC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #12
  call void @_ZN25ObjectLayerPairFilterImplC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #12
  call void @llvm.lifetime.start.p0(i64 1184, ptr nonnull %8) #12
  invoke void @_ZN3JPH13PhysicsSystemC2Ev(ptr noundef nonnull align 16 dereferenceable(1172) %8)
          to label %27 unwind label %142

27:                                               ; preds = %26
  invoke void @_ZN3JPH13PhysicsSystem4InitEjjjjRKNS_24BroadPhaseLayerInterfaceERKNS_29ObjectVsBroadPhaseLayerFilterERKNS_21ObjectLayerPairFilterE(ptr noundef nonnull align 16 dereferenceable(1172) %8, i32 noundef 1024, i32 noundef 0, i32 noundef 1024, i32 noundef 1024, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %28 unwind label %144

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #12
  call void @_ZN24MyBodyActivationListenerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #12
  invoke void @_ZN3JPH13PhysicsSystem25SetBodyActivationListenerEPNS_22BodyActivationListenerE(ptr noundef nonnull align 16 dereferenceable(1172) %8, ptr noundef nonnull %9)
          to label %29 unwind label %146

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #12
  call void @_ZN17MyContactListenerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #12
  invoke void @_ZN3JPH13PhysicsSystem18SetContactListenerEPNS_15ContactListenerE(ptr noundef nonnull align 16 dereferenceable(1172) %8, ptr noundef nonnull %10)
          to label %30 unwind label %148

30:                                               ; preds = %29
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH13PhysicsSystem16GetBodyInterfaceEv(ptr noundef nonnull align 16 dereferenceable(1172) %8)
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %11) #12
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef 1.000000e+02, float noundef 1.000000e+00, float noundef 1.000000e+02)
          to label %32 unwind label %150

32:                                               ; preds = %30
  %33 = load double, ptr %12, align 16
  %34 = getelementptr inbounds i8, ptr %12, i64 8
  %35 = load double, ptr %34, align 8
  invoke void @_ZN3JPH16BoxShapeSettingsC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(112) %11, double %33, double %35, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %36 unwind label %150

36:                                               ; preds = %32
  %37 = getelementptr inbounds i8, ptr %11, i64 8
  invoke void @_ZNK3JPH9RefTargetINS_13ShapeSettingsEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %38 unwind label %152

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #12
  invoke void @_ZNK3JPH16BoxShapeSettings6CreateEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result") align 8 %13, ptr noundef nonnull align 16 dereferenceable(112) %11)
          to label %39 unwind label %154

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #12
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %13)
          to label %41 unwind label %156

41:                                               ; preds = %39
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2ERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %42 unwind label %156

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %15) #12
  %43 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %44 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK00000000000000000000)
  %45 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK3FFF8000000000000000)
  %46 = fneg float %45
  %47 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK00000000000000000000)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef %44, float noundef %46, float noundef %47)
          to label %48 unwind label %158

48:                                               ; preds = %42
  %49 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %50 unwind label %158

50:                                               ; preds = %48
  %51 = extractvalue { double, double } %49, 0
  %52 = extractvalue { double, double } %49, 1
  %53 = load double, ptr %16, align 16
  %54 = getelementptr inbounds i8, ptr %16, i64 8
  %55 = load double, ptr %54, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %15, ptr noundef %43, double %53, double %55, double %51, double %52, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %56 unwind label %158

56:                                               ; preds = %50
  %57 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 16 dereferenceable(256) %15)
          to label %58 unwind label %160

58:                                               ; preds = %56
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %57)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %59, i32 noundef 1)
          to label %60 unwind label %160

60:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %17) #12
  %61 = invoke noundef ptr @_ZN3JPH11SphereShapenwEm(i64 noundef 48)
          to label %62 unwind label %162

62:                                               ; preds = %60
  invoke void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48) %61, float noundef 5.000000e-01, ptr noundef null)
          to label %63 unwind label %164

63:                                               ; preds = %62
  %64 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK00000000000000000000)
  %65 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK40008000000000000000)
  %66 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK00000000000000000000)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef %64, float noundef %65, float noundef %66)
          to label %67 unwind label %162

67:                                               ; preds = %63
  %68 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %69 unwind label %162

69:                                               ; preds = %67
  %70 = extractvalue { double, double } %68, 0
  %71 = extractvalue { double, double } %68, 1
  %72 = load double, ptr %18, align 16
  %73 = getelementptr inbounds i8, ptr %18, i64 8
  %74 = load double, ptr %73, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %17, ptr noundef nonnull %61, double %72, double %74, double %70, double %71, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %75 unwind label %162

75:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #12
  %76 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 16 dereferenceable(256) %17, i32 noundef 0)
          to label %77 unwind label %166

77:                                               ; preds = %75
  store i32 %76, ptr %19, align 4
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef 0.000000e+00, float noundef -5.000000e+00, float noundef 0.000000e+00)
          to label %78 unwind label %166

78:                                               ; preds = %77
  %79 = load double, ptr %20, align 16
  %80 = getelementptr inbounds i8, ptr %20, i64 8
  %81 = load double, ptr %80, align 8
  invoke void @_ZN3JPH13BodyInterface17SetLinearVelocityERKNS_6BodyIDENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %19, double %79, double %81)
          to label %82 unwind label %166

82:                                               ; preds = %78
  invoke void @_ZN3JPH13PhysicsSystem18OptimizeBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(1172) %8)
          to label %.preheader unwind label %168

.preheader:                                       ; preds = %82
  %83 = getelementptr inbounds i8, ptr %21, i64 8
  %84 = getelementptr inbounds i8, ptr %22, i64 8
  br label %85

85:                                               ; preds = %.preheader, %139
  %.0 = phi i32 [ %89, %139 ], [ 0, %.preheader ]
  %86 = invoke noundef zeroext i1 @_ZNK3JPH13BodyInterface8IsActiveERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %87 unwind label %.loopexit

87:                                               ; preds = %85
  br i1 %86, label %88, label %178

88:                                               ; preds = %87
  %89 = add i32 %.0, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #12
  %90 = invoke { double, double } @_ZNK3JPH13BodyInterface23GetCenterOfMassPositionERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %91 unwind label %170

91:                                               ; preds = %88
  %92 = extractvalue { double, double } %90, 0
  store double %92, ptr %21, align 16
  %93 = extractvalue { double, double } %90, 1
  store double %93, ptr %83, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #12
  %94 = invoke { double, double } @_ZNK3JPH13BodyInterface17GetLinearVelocityERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %95 unwind label %172

95:                                               ; preds = %91
  %96 = extractvalue { double, double } %94, 0
  store double %96, ptr %22, align 16
  %97 = extractvalue { double, double } %94, 1
  store double %97, ptr %84, align 8
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %99 unwind label %172

99:                                               ; preds = %95
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %98, i32 noundef %89)
          to label %101 unwind label %172

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull @.str.2)
          to label %103 unwind label %172

103:                                              ; preds = %101
  %104 = invoke noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %21)
          to label %105 unwind label %172

105:                                              ; preds = %103
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %102, float noundef %104)
          to label %107 unwind label %172

107:                                              ; preds = %105
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull @.str.3)
          to label %109 unwind label %172

109:                                              ; preds = %107
  %110 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %21)
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %108, float noundef %110)
          to label %112 unwind label %172

112:                                              ; preds = %109
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef nonnull @.str.3)
          to label %114 unwind label %172

114:                                              ; preds = %112
  %115 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %21)
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %113, float noundef %115)
          to label %117 unwind label %172

117:                                              ; preds = %114
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull @.str.4)
          to label %119 unwind label %172

119:                                              ; preds = %117
  %120 = invoke noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
          to label %121 unwind label %172

121:                                              ; preds = %119
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %118, float noundef %120)
          to label %123 unwind label %172

123:                                              ; preds = %121
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef nonnull @.str.3)
          to label %125 unwind label %172

125:                                              ; preds = %123
  %126 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %124, float noundef %126)
          to label %128 unwind label %172

128:                                              ; preds = %125
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull @.str.3)
          to label %130 unwind label %172

130:                                              ; preds = %128
  %131 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %129, float noundef %131)
          to label %133 unwind label %172

133:                                              ; preds = %130
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull @.str.5)
          to label %135 unwind label %172

135:                                              ; preds = %133
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %137 unwind label %172

137:                                              ; preds = %135
  %138 = invoke noundef i32 @_ZN3JPH13PhysicsSystem6UpdateEfiPNS_13TempAllocatorEPNS_9JobSystemE(ptr noundef nonnull align 16 dereferenceable(1172) %8, float noundef 0x3F91111120000000, i32 noundef 1, ptr noundef nonnull %3, ptr noundef nonnull %4)
          to label %139 unwind label %174

139:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #12
  br label %85, !llvm.loop !9

140:                                              ; preds = %2
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %202

142:                                              ; preds = %26
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %201

144:                                              ; preds = %27
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %200

146:                                              ; preds = %28
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %199

148:                                              ; preds = %29
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %198

150:                                              ; preds = %32, %30
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %197

152:                                              ; preds = %36
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %196

154:                                              ; preds = %38
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %195

156:                                              ; preds = %41, %39
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %194

158:                                              ; preds = %50, %48, %42
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %193

160:                                              ; preds = %58, %56
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %192

162:                                              ; preds = %69, %67, %63, %60
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %191

164:                                              ; preds = %62
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11SphereShapedlEPv(ptr noundef %61) #12
  br label %191

166:                                              ; preds = %78, %77, %75
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %190

168:                                              ; preds = %82
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %190

.loopexit:                                        ; preds = %85
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %190

.loopexit.split-lp:                               ; preds = %178, %179, %180, %182, %184
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %190

170:                                              ; preds = %88
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %177

172:                                              ; preds = %135, %133, %130, %128, %125, %123, %121, %119, %117, %114, %112, %109, %107, %105, %103, %101, %99, %95, %91
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %176

174:                                              ; preds = %137
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %176

176:                                              ; preds = %174, %172
  %.pn = phi { ptr, i32 } [ %175, %174 ], [ %173, %172 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #12
  br label %177

177:                                              ; preds = %176, %170
  %.pn.pn = phi { ptr, i32 } [ %.pn, %176 ], [ %171, %170 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #12
  br label %190

178:                                              ; preds = %87
  invoke void @_ZN3JPH13BodyInterface10RemoveBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %179 unwind label %.loopexit.split-lp

179:                                              ; preds = %178
  invoke void @_ZN3JPH13BodyInterface11DestroyBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %180 unwind label %.loopexit.split-lp

180:                                              ; preds = %179
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %57)
  invoke void @_ZN3JPH13BodyInterface10RemoveBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %181)
          to label %182 unwind label %.loopexit.split-lp

182:                                              ; preds = %180
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %57)
  invoke void @_ZN3JPH13BodyInterface11DestroyBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %183)
          to label %184 unwind label %.loopexit.split-lp

184:                                              ; preds = %182
  invoke void @_ZN3JPH15UnregisterTypesEv()
          to label %185 unwind label %.loopexit.split-lp

185:                                              ; preds = %184
  %186 = load ptr, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !5
  %187 = icmp eq ptr %186, null
  br i1 %187, label %189, label %188

188:                                              ; preds = %185
  call void @_ZN3JPH7FactoryD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %186) #12
  call void @_ZN3JPH7FactorydlEPv(ptr noundef nonnull %186) #12
  br label %189

189:                                              ; preds = %188, %185
  store ptr null, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #12
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %17) #12
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %17) #12
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %15) #12
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %15) #12
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #12
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %13) #12
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #12
  call void @_ZN3JPH19ConvexShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %11) #12
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %11) #12
  call void @_ZN3JPH15ContactListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #12
  call void @_ZN3JPH22BodyActivationListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #12
  call void @_ZN3JPH13PhysicsSystemD1Ev(ptr noundef nonnull align 16 dereferenceable(1172) %8) #12
  call void @llvm.lifetime.end.p0(i64 1184, ptr nonnull %8) #12
  call void @_ZN3JPH21ObjectLayerPairFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #12
  call void @_ZN3JPH29ObjectVsBroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #12
  call void @_ZN3JPH24BroadPhaseLayerInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #12
  call void @_ZN3JPH19JobSystemThreadPoolD1Ev(ptr noundef nonnull align 64 dereferenceable(8768) %4) #12
  call void @llvm.lifetime.end.p0(i64 8768, ptr nonnull %4) #12
  call void @_ZN3JPH17TempAllocatorImplD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #12
  ret i32 0

190:                                              ; preds = %.loopexit, %.loopexit.split-lp, %168, %177, %166
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %167, %166 ], [ %169, %168 ], [ %.pn.pn, %177 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #12
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %17) #12
  br label %191

191:                                              ; preds = %190, %164, %162
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %190 ], [ %163, %162 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %17) #12
  br label %192

192:                                              ; preds = %191, %160
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %191 ], [ %161, %160 ]
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %15) #12
  br label %193

193:                                              ; preds = %192, %158
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %192 ], [ %159, %158 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %15) #12
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #12
  br label %194

194:                                              ; preds = %193, %156
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %193 ], [ %157, %156 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #12
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %13) #12
  br label %195

195:                                              ; preds = %194, %154
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %194 ], [ %155, %154 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #12
  br label %196

196:                                              ; preds = %195, %152
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %195 ], [ %153, %152 ]
  call void @_ZN3JPH19ConvexShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %11) #12
  br label %197

197:                                              ; preds = %196, %150
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %196 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %11) #12
  br label %198

198:                                              ; preds = %197, %148
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %197 ], [ %149, %148 ]
  call void @_ZN3JPH15ContactListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #12
  br label %199

199:                                              ; preds = %198, %146
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %198 ], [ %147, %146 ]
  call void @_ZN3JPH22BodyActivationListenerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #12
  br label %200

200:                                              ; preds = %199, %144
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %199 ], [ %145, %144 ]
  call void @_ZN3JPH13PhysicsSystemD1Ev(ptr noundef nonnull align 16 dereferenceable(1172) %8) #12
  br label %201

201:                                              ; preds = %200, %142
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %200 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 1184, ptr nonnull %8) #12
  call void @_ZN3JPH21ObjectLayerPairFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #12
  call void @_ZN3JPH29ObjectVsBroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #12
  call void @_ZN3JPH24BroadPhaseLayerInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #12
  call void @_ZN3JPH19JobSystemThreadPoolD1Ev(ptr noundef nonnull align 64 dereferenceable(8768) %4) #12
  br label %202

202:                                              ; preds = %201, %140
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %201 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 8768, ptr nonnull %4) #12
  call void @_ZN3JPH17TempAllocatorImplD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #12
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

declare void @_ZN3JPH24RegisterDefaultAllocatorEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9TraceImplPKcz(ptr noundef, ...) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL16AssertFailedImplPKcS0_S0_j(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH13RegisterTypesEv() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH17TempAllocatorImplC2Em(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare noundef i32 @_ZNSt6thread20hardware_concurrencyEv() local_unnamed_addr #7

declare void @_ZN3JPH19JobSystemThreadPoolC1Ejji(ptr noundef nonnull align 64 dereferenceable(8768), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2

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

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

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

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

declare void @_ZN3JPH13PhysicsSystem4InitEjjjjRKNS_24BroadPhaseLayerInterfaceERKNS_29ObjectVsBroadPhaseLayerFilterERKNS_21ObjectLayerPairFilterE(ptr noundef nonnull align 16 dereferenceable(1172), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13PhysicsSystem25SetBodyActivationListenerEPNS_22BodyActivationListenerE(ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13PhysicsSystem18SetContactListenerEPNS_15ContactListenerE(ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #9 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16BoxShapeSettingsC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(112), double, double, float noundef, ptr noundef) unnamed_addr #3 align 2

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

declare void @_ZNK3JPH16BoxShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8, ptr noundef nonnull align 16 dereferenceable(112)) unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef) local_unnamed_addr #8

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sIdentityEv() local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #3 align 2

declare noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256)) local_unnamed_addr #2

declare void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48), float noundef, ptr noundef) unnamed_addr #3 align 2

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

declare i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256), i32 noundef) local_unnamed_addr #2

declare void @_ZN3JPH13BodyInterface17SetLinearVelocityERKNS_6BodyIDENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), double, double) local_unnamed_addr #2

declare void @_ZN3JPH13PhysicsSystem18OptimizeBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(1172)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZNK3JPH13BodyInterface8IsActiveERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

declare { double, double } @_ZNK3JPH13BodyInterface23GetCenterOfMassPositionERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

declare { double, double } @_ZNK3JPH13BodyInterface17GetLinearVelocityERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #10

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #9 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #11 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #11 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #10

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

declare void @_ZN3JPH13BodyInterface10RemoveBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

declare void @_ZN3JPH13BodyInterface11DestroyBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

declare void @_ZN3JPH15UnregisterTypesEv() local_unnamed_addr #2

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN3JPH13PhysicsSystemD1Ev(ptr noundef nonnull align 16 dereferenceable(1172)) unnamed_addr #7

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

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

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

; Function Attrs: nounwind
declare void @_ZN3JPH19JobSystemThreadPoolD1Ev(ptr noundef nonnull align 64 dereferenceable(8768)) unnamed_addr #7

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress norecurse 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 = { 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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 #10 = { 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 #11 = { 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 #12 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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