; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/Physics/SoftBody (SoftBodyMotionProperties)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::SoftBodyManifold" = type { ptr, ptr }
%"class.JPH::Vec3" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::SoftBodyMotionProperties" = type { %"class.JPH::MotionProperties.base", %"class.JPH::RefConst", %"class.JPH::Array", %"class.JPH::Array.1", %"class.JPH::Array.4", %"class.JPH::AABox", %"class.JPH::AABox", i32, float, float, i8, i8, i8, i8 }
%"class.JPH::MotionProperties.base" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Float3", %"class.JPH::Float3", float, float, float, float, float, float, i32, i32, i8, i8, i8, i8, i8, [3 x i8], [3 x %"class.JPH::Sphere"], float, i8, i8 }>
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Sphere" = type { %"class.JPH::Float3", float }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.1" = type { i64, i64, ptr }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::SoftBodyUpdateContext" = type <{ ptr, ptr, ptr, [8 x i8], %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"struct.std::atomic.44", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"class.JPH::Vec3", i32, [12 x i8] }>
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"struct.std::atomic.44" = type { i32 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::SoftBodyVertex" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Plane", i32, i8, float, float }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"struct.JPH::SoftBodyMotionProperties::SkinState" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"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 }>

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) #3

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24SoftBodyMotionProperties19UpdateSoftBodyStateERNS_21SoftBodyUpdateContextERKNS_15PhysicsSettingsE(ptr noundef nonnull align 16 dereferenceable(352) %0, ptr noundef nonnull align 16 dereferenceable(180) %1, ptr noundef nonnull align 4 dereferenceable(83) %2) #5 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.JPH::SoftBodyManifold", align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::AABox", align 16
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca float, align 4
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca float, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %4, align 8
  %51 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 11
  %52 = load i8, ptr %51, align 1, !tbaa !9, !range !29, !noundef !30
  %53 = trunc i8 %52 to i1
  br i1 %53, label %54, label %69

54:                                               ; preds = %3
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %55, i32 0, i32 2
  %57 = load ptr, ptr %56, align 16, !tbaa !31
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %69

59:                                               ; preds = %54
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 16, !tbaa !31
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 16, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #9
  call void @_ZN3JPH16SoftBodyManifoldC2EPKNS_24SoftBodyMotionPropertiesE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %50)
  %66 = load ptr, ptr %62, align 8, !tbaa !40
  %67 = getelementptr inbounds ptr, ptr %66, i64 3
  %68 = load ptr, ptr %67, align 8
  call void %68(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 16 dereferenceable(122) %65, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #9
  br label %69

69:                                               ; preds = %59, %54, %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %70, i32 0, i32 7
  %72 = load float, ptr %71, align 16, !tbaa !42
  store float %72, ptr %8, align 4, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %73 = call noundef float @_ZNK3JPH16MotionProperties20GetMaxLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(182) %50)
  %74 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %73)
  store float %74, ptr %9, align 4, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store float 0.000000e+00, ptr %10, align 4, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  %75 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %76 = getelementptr inbounds %"class.JPH::Vec3", ptr %11, i32 0, i32 0
  %77 = getelementptr inbounds %union.anon.0, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %79 = extractvalue { double, double } %75, 0
  store double %79, ptr %78, align 16
  %80 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %81 = extractvalue { double, double } %75, 1
  store double %81, ptr %80, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  %82 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %83 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %84 = getelementptr inbounds %union.anon.0, ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 0
  %86 = extractvalue { double, double } %82, 0
  store double %86, ptr %85, align 16
  %87 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 1
  %88 = extractvalue { double, double } %82, 1
  store double %88, ptr %87, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #9
  call void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %13)
  %89 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %89, ptr align 16 %13, i64 32, i1 false), !tbaa.struct !44
  %90 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %90, ptr align 16 %89, i64 32, i1 false), !tbaa.struct !44
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #9
  %91 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 11
  store i8 0, ptr %91, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %92 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 2
  store ptr %92, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = call noundef ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %93)
  store ptr %94, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = call noundef ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %95)
  store ptr %96, ptr %16, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %202, %69
  %98 = load ptr, ptr %15, align 8, !tbaa !5
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = icmp ne ptr %98, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %205

102:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %103, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %104, i32 0, i32 2
  %106 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %105)
  store float %106, ptr %18, align 4, !tbaa !43
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %108 = load float, ptr %107, align 4, !tbaa !43
  store float %108, ptr %10, align 4, !tbaa !43
  %109 = load float, ptr %18, align 4, !tbaa !43
  %110 = load float, ptr %9, align 4, !tbaa !43
  %111 = fcmp ogt float %109, %110
  br i1 %111, label %112, label %120

112:                                              ; preds = %102
  %113 = load float, ptr %9, align 4, !tbaa !43
  %114 = load float, ptr %18, align 4, !tbaa !43
  %115 = fdiv float %113, %114
  %116 = call noundef float @_ZSt4sqrtf(float noundef %115)
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %117, i32 0, i32 2
  %119 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mLEf(ptr noundef nonnull align 16 dereferenceable(16) %118, float noundef %116)
  br label %120

120:                                              ; preds = %112, %102
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %121, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %122, i64 16, i1 false), !tbaa.struct !46
  %123 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %124 = load double, ptr %123, align 16
  %125 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %126 = load double, ptr %125, align 8
  %127 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %124, double %126)
  %128 = load ptr, ptr %17, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %128, i32 0, i32 1
  %130 = load ptr, ptr %17, align 8, !tbaa !5
  %131 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %130, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %131, i64 16, i1 false), !tbaa.struct !46
  %132 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %133 = load double, ptr %132, align 16
  %134 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %135 = load double, ptr %134, align 8
  %136 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %129, double %133, double %135)
  %137 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %138 = getelementptr inbounds %union.anon.0, ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds { double, double }, ptr %138, i32 0, i32 0
  %140 = extractvalue { double, double } %136, 0
  store double %140, ptr %139, align 16
  %141 = getelementptr inbounds { double, double }, ptr %138, i32 0, i32 1
  %142 = extractvalue { double, double } %136, 1
  store double %142, ptr %141, align 8
  %143 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %144 = load double, ptr %143, align 16
  %145 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %146 = load double, ptr %145, align 8
  %147 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %144, double %146)
  %148 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 5
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %149, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %150, i64 16, i1 false), !tbaa.struct !46
  %151 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %152 = load double, ptr %151, align 16
  %153 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %154 = load double, ptr %153, align 8
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %148, double %152, double %154)
  %155 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #9
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %156, i32 0, i32 1
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %158, i32 0, i32 2
  %160 = load float, ptr %8, align 4, !tbaa !43
  %161 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %159, float noundef %160)
  %162 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %163 = getelementptr inbounds %union.anon.0, ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds { double, double }, ptr %163, i32 0, i32 0
  %165 = extractvalue { double, double } %161, 0
  store double %165, ptr %164, align 16
  %166 = getelementptr inbounds { double, double }, ptr %163, i32 0, i32 1
  %167 = extractvalue { double, double } %161, 1
  store double %167, ptr %166, align 8
  %168 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %169 = load double, ptr %168, align 16
  %170 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %171 = load double, ptr %170, align 8
  %172 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %157, double %169, double %171)
  %173 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %174 = getelementptr inbounds %union.anon.0, ptr %173, i32 0, i32 0
  %175 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 0
  %176 = extractvalue { double, double } %172, 0
  store double %176, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 1
  %178 = extractvalue { double, double } %172, 1
  store double %178, ptr %177, align 8
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %179, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %180, i64 16, i1 false), !tbaa.struct !46
  %181 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %182 = load double, ptr %181, align 16
  %183 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %184 = load double, ptr %183, align 8
  %185 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %182, double %184)
  %186 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %187 = getelementptr inbounds %union.anon.0, ptr %186, i32 0, i32 0
  %188 = getelementptr inbounds { double, double }, ptr %187, i32 0, i32 0
  %189 = extractvalue { double, double } %185, 0
  store double %189, ptr %188, align 16
  %190 = getelementptr inbounds { double, double }, ptr %187, i32 0, i32 1
  %191 = extractvalue { double, double } %185, 1
  store double %191, ptr %190, align 8
  %192 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %193 = load double, ptr %192, align 16
  %194 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %195 = load double, ptr %194, align 8
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %155, double %193, double %195)
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  %196 = load ptr, ptr %17, align 8, !tbaa !5
  %197 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %196, i32 0, i32 4
  store i32 -1, ptr %197, align 16, !tbaa !47
  %198 = load ptr, ptr %17, align 8, !tbaa !5
  %199 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %198, i32 0, i32 5
  store i8 0, ptr %199, align 4, !tbaa !50
  %200 = load ptr, ptr %17, align 8, !tbaa !5
  %201 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %200, i32 0, i32 6
  store float 0xC7EFFFFFE0000000, ptr %201, align 8, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %202

202:                                              ; preds = %120
  %203 = load ptr, ptr %15, align 8, !tbaa !5
  %204 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %203, i32 1
  store ptr %204, ptr %15, align 8, !tbaa !5
  br label %97

205:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  %206 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 2
  %207 = call noundef i64 @_ZNK3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %206)
  %208 = trunc i64 %207 to i32
  store i32 %208, ptr %28, align 4, !tbaa !52
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 1, ptr %29, align 4, !tbaa !52
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %210 = load i32, ptr %209, align 4, !tbaa !52
  %211 = sitofp i32 %210 to float
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  store float %211, ptr %27, align 4, !tbaa !43
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %212, i32 0, i32 4
  %214 = load float, ptr %27, align 4, !tbaa !43
  %215 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef %214)
  %216 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %217 = getelementptr inbounds %union.anon.0, ptr %216, i32 0, i32 0
  %218 = getelementptr inbounds { double, double }, ptr %217, i32 0, i32 0
  %219 = extractvalue { double, double } %215, 0
  store double %219, ptr %218, align 16
  %220 = getelementptr inbounds { double, double }, ptr %217, i32 0, i32 1
  %221 = extractvalue { double, double } %215, 1
  store double %221, ptr %220, align 8
  %222 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %223 = load double, ptr %222, align 16
  %224 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %225 = load double, ptr %224, align 8
  %226 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %213, double %223, double %225)
  %227 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %228 = getelementptr inbounds %union.anon.0, ptr %227, i32 0, i32 0
  %229 = getelementptr inbounds { double, double }, ptr %228, i32 0, i32 0
  %230 = extractvalue { double, double } %226, 0
  store double %230, ptr %229, align 16
  %231 = getelementptr inbounds { double, double }, ptr %228, i32 0, i32 1
  %232 = extractvalue { double, double } %226, 1
  store double %232, ptr %231, align 8
  %233 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %234 = load double, ptr %233, align 16
  %235 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %236 = load double, ptr %235, align 8
  call void @_ZN3JPH16MotionProperties17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182) %50, double %234, double %236)
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %237, i32 0, i32 4
  %239 = load float, ptr %27, align 4, !tbaa !43
  %240 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef %239)
  %241 = getelementptr inbounds %"class.JPH::Vec3", ptr %33, i32 0, i32 0
  %242 = getelementptr inbounds %union.anon.0, ptr %241, i32 0, i32 0
  %243 = getelementptr inbounds { double, double }, ptr %242, i32 0, i32 0
  %244 = extractvalue { double, double } %240, 0
  store double %244, ptr %243, align 16
  %245 = getelementptr inbounds { double, double }, ptr %242, i32 0, i32 1
  %246 = extractvalue { double, double } %240, 1
  store double %246, ptr %245, align 8
  %247 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %248 = load double, ptr %247, align 16
  %249 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %250 = load double, ptr %249, align 8
  %251 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %238, double %248, double %250)
  %252 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %253 = getelementptr inbounds %union.anon.0, ptr %252, i32 0, i32 0
  %254 = getelementptr inbounds { double, double }, ptr %253, i32 0, i32 0
  %255 = extractvalue { double, double } %251, 0
  store double %255, ptr %254, align 16
  %256 = getelementptr inbounds { double, double }, ptr %253, i32 0, i32 1
  %257 = extractvalue { double, double } %251, 1
  store double %257, ptr %256, align 8
  %258 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %259 = load double, ptr %258, align 16
  %260 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %261 = load double, ptr %260, align 8
  call void @_ZN3JPH16MotionProperties18SetAngularVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182) %50, double %259, double %261)
  %262 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 10
  %263 = load i8, ptr %262, align 4, !tbaa !53, !range !29, !noundef !30
  %264 = trunc i8 %263 to i1
  br i1 %264, label %265, label %359

265:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #9
  %266 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 5
  %267 = call { double, double } @_ZNK3JPH5AABox9GetCenterEv(ptr noundef nonnull align 16 dereferenceable(32) %266)
  %268 = getelementptr inbounds %"class.JPH::Vec3", ptr %34, i32 0, i32 0
  %269 = getelementptr inbounds %union.anon.0, ptr %268, i32 0, i32 0
  %270 = getelementptr inbounds { double, double }, ptr %269, i32 0, i32 0
  %271 = extractvalue { double, double } %267, 0
  store double %271, ptr %270, align 16
  %272 = getelementptr inbounds { double, double }, ptr %269, i32 0, i32 1
  %273 = extractvalue { double, double } %267, 1
  store double %273, ptr %272, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #9
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %274, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !46
  %276 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %277 = load double, ptr %276, align 16
  %278 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %279 = load double, ptr %278, align 8
  %280 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %275, double %277, double %279)
  %281 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %282 = getelementptr inbounds %union.anon.0, ptr %281, i32 0, i32 0
  %283 = getelementptr inbounds { double, double }, ptr %282, i32 0, i32 0
  %284 = extractvalue { double, double } %280, 0
  store double %284, ptr %283, align 16
  %285 = getelementptr inbounds { double, double }, ptr %282, i32 0, i32 1
  %286 = extractvalue { double, double } %280, 1
  store double %286, ptr %285, align 8
  %287 = load ptr, ptr %5, align 8, !tbaa !5
  %288 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %287, i32 0, i32 15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %288, ptr align 16 %35, i64 16, i1 false), !tbaa.struct !46
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %289 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 2
  store ptr %289, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  %290 = load ptr, ptr %37, align 8, !tbaa !5
  %291 = call noundef ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %290)
  store ptr %291, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %292 = load ptr, ptr %37, align 8, !tbaa !5
  %293 = call noundef ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %292)
  store ptr %293, ptr %39, align 8, !tbaa !5
  br label %294

294:                                              ; preds = %308, %265
  %295 = load ptr, ptr %38, align 8, !tbaa !5
  %296 = load ptr, ptr %39, align 8, !tbaa !5
  %297 = icmp ne ptr %295, %296
  br i1 %297, label %299, label %298

298:                                              ; preds = %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %311

299:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %300 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %300, ptr %40, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !46
  %301 = load ptr, ptr %40, align 8, !tbaa !5
  %302 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %301, i32 0, i32 1
  %303 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %304 = load double, ptr %303, align 16
  %305 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %306 = load double, ptr %305, align 8
  %307 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %302, double %304, double %306)
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %308

308:                                              ; preds = %299
  %309 = load ptr, ptr %38, align 8, !tbaa !5
  %310 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %309, i32 1
  store ptr %310, ptr %38, align 8, !tbaa !5
  br label %294

311:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %312 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 4
  store ptr %312, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #9
  %313 = load ptr, ptr %42, align 8, !tbaa !5
  %314 = call noundef ptr @_ZN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %313)
  store ptr %314, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #9
  %315 = load ptr, ptr %42, align 8, !tbaa !5
  %316 = call noundef ptr @_ZN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %315)
  store ptr %316, ptr %44, align 8, !tbaa !5
  br label %317

317:                                              ; preds = %331, %311
  %318 = load ptr, ptr %43, align 8, !tbaa !5
  %319 = load ptr, ptr %44, align 8, !tbaa !5
  %320 = icmp ne ptr %318, %319
  br i1 %320, label %322, label %321

321:                                              ; preds = %317
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  br label %334

322:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  %323 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %323, ptr %45, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %46, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !46
  %324 = load ptr, ptr %45, align 8, !tbaa !5
  %325 = getelementptr inbounds %"struct.JPH::SoftBodyMotionProperties::SkinState", ptr %324, i32 0, i32 1
  %326 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %327 = load double, ptr %326, align 16
  %328 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %329 = load double, ptr %328, align 8
  %330 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %325, double %327, double %329)
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  br label %331

331:                                              ; preds = %322
  %332 = load ptr, ptr %43, align 8, !tbaa !5
  %333 = getelementptr inbounds %"struct.JPH::SoftBodyMotionProperties::SkinState", ptr %332, i32 1
  store ptr %333, ptr %43, align 8, !tbaa !5
  br label %317

334:                                              ; preds = %321
  %335 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 5
  %336 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %34)
  %337 = getelementptr inbounds %"class.JPH::Vec3", ptr %47, i32 0, i32 0
  %338 = getelementptr inbounds %union.anon.0, ptr %337, i32 0, i32 0
  %339 = getelementptr inbounds { double, double }, ptr %338, i32 0, i32 0
  %340 = extractvalue { double, double } %336, 0
  store double %340, ptr %339, align 16
  %341 = getelementptr inbounds { double, double }, ptr %338, i32 0, i32 1
  %342 = extractvalue { double, double } %336, 1
  store double %342, ptr %341, align 8
  %343 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %344 = load double, ptr %343, align 16
  %345 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %346 = load double, ptr %345, align 8
  call void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %335, double %344, double %346)
  %347 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 6
  %348 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %34)
  %349 = getelementptr inbounds %"class.JPH::Vec3", ptr %48, i32 0, i32 0
  %350 = getelementptr inbounds %union.anon.0, ptr %349, i32 0, i32 0
  %351 = getelementptr inbounds { double, double }, ptr %350, i32 0, i32 0
  %352 = extractvalue { double, double } %348, 0
  store double %352, ptr %351, align 16
  %353 = getelementptr inbounds { double, double }, ptr %350, i32 0, i32 1
  %354 = extractvalue { double, double } %348, 1
  store double %354, ptr %353, align 8
  %355 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %356 = load double, ptr %355, align 16
  %357 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %358 = load double, ptr %357, align 8
  call void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %347, double %356, double %358)
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  br label %369

359:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #9
  %360 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %361 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %362 = getelementptr inbounds %union.anon.0, ptr %361, i32 0, i32 0
  %363 = getelementptr inbounds { double, double }, ptr %362, i32 0, i32 0
  %364 = extractvalue { double, double } %360, 0
  store double %364, ptr %363, align 16
  %365 = getelementptr inbounds { double, double }, ptr %362, i32 0, i32 1
  %366 = extractvalue { double, double } %360, 1
  store double %366, ptr %365, align 8
  %367 = load ptr, ptr %5, align 8, !tbaa !5
  %368 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %367, i32 0, i32 15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %368, ptr align 16 %49, i64 16, i1 false), !tbaa.struct !46
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #9
  br label %369

369:                                              ; preds = %359, %334
  %370 = call noundef zeroext i1 @_ZNK3JPH16MotionProperties16GetAllowSleepingEv(ptr noundef nonnull align 16 dereferenceable(182) %50)
  br i1 %370, label %371, label %389

371:                                              ; preds = %369
  %372 = load float, ptr %10, align 4, !tbaa !43
  %373 = load ptr, ptr %6, align 8, !tbaa !5
  %374 = getelementptr inbounds %"struct.JPH::PhysicsSettings", ptr %373, i32 0, i32 18
  %375 = load float, ptr %374, align 4, !tbaa !54
  %376 = fcmp ogt float %372, %375
  br i1 %376, label %377, label %380

377:                                              ; preds = %371
  call void @_ZN3JPH16MotionProperties19ResetSleepTestTimerEv(ptr noundef nonnull align 16 dereferenceable(182) %50)
  %378 = load ptr, ptr %5, align 8, !tbaa !5
  %379 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %378, i32 0, i32 16
  store i32 0, ptr %379, align 16, !tbaa !56
  br label %388

380:                                              ; preds = %371
  %381 = load float, ptr %8, align 4, !tbaa !43
  %382 = load ptr, ptr %6, align 8, !tbaa !5
  %383 = getelementptr inbounds %"struct.JPH::PhysicsSettings", ptr %382, i32 0, i32 17
  %384 = load float, ptr %383, align 4, !tbaa !57
  %385 = call noundef i32 @_ZN3JPH16MotionProperties19AccumulateSleepTimeEff(ptr noundef nonnull align 16 dereferenceable(182) %50, float noundef %381, float noundef %384)
  %386 = load ptr, ptr %5, align 8, !tbaa !5
  %387 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %386, i32 0, i32 16
  store i32 %385, ptr %387, align 16, !tbaa !56
  br label %388

388:                                              ; preds = %380, %377
  br label %392

389:                                              ; preds = %369
  %390 = load ptr, ptr %5, align 8, !tbaa !5
  %391 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %390, i32 0, i32 16
  store i32 0, ptr %391, align 16, !tbaa !56
  br label %392

392:                                              ; preds = %389, %388
  %393 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %50, i32 0, i32 13
  store i8 0, ptr %393, align 1, !tbaa !58
  call void @_ZN3JPH16MotionProperties10ResetForceEv(ptr noundef nonnull align 16 dereferenceable(182) %50)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties20GetMaxLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(182)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16MotionProperties17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182), double, double) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16MotionProperties18SetAngularVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182), double, double) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5AABox9GetCenterEv(ptr noundef nonnull align 16 dereferenceable(32)) #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH16MotionProperties16GetAllowSleepingEv(ptr noundef nonnull align 16 dereferenceable(182)) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3JPH16MotionProperties19AccumulateSleepTimeEff(ptr noundef nonnull align 16 dereferenceable(182), float noundef, float noundef) #1 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !19, i64 349}
!10 = !{!"_ZTSN3JPH24SoftBodyMotionPropertiesE", !11, i64 0, !23, i64 184, !24, i64 192, !26, i64 216, !27, i64 240, !28, i64 272, !28, i64 304, !17, i64 336, !16, i64 340, !16, i64 344, !19, i64 348, !19, i64 349, !19, i64 350, !19, i64 351}
!11 = !{!"_ZTSN3JPH16MotionPropertiesE", !12, i64 0, !12, i64 16, !12, i64 32, !13, i64 48, !15, i64 64, !15, i64 76, !16, i64 88, !16, i64 92, !16, i64 96, !16, i64 100, !16, i64 104, !16, i64 108, !17, i64 112, !17, i64 116, !18, i64 120, !19, i64 121, !20, i64 122, !7, i64 123, !7, i64 124, !7, i64 128, !16, i64 176, !21, i64 180, !22, i64 181}
!12 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!13 = !{!"_ZTSN3JPH4QuatE", !14, i64 0}
!14 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!15 = !{!"_ZTSN3JPH6Float3E", !16, i64 0, !16, i64 4, !16, i64 8}
!16 = !{!"float", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN3JPH14EMotionQualityE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN3JPH12EAllowedDOFsE", !7, i64 0}
!21 = !{!"_ZTSN3JPH9EBodyTypeE", !7, i64 0}
!22 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!23 = !{!"_ZTSN3JPH8RefConstINS_22SoftBodySharedSettingsEEE", !6, i64 0}
!24 = !{!"_ZTSN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties14CollidingShapeENS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!27 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!28 = !{!"_ZTSN3JPH5AABoxE", !12, i64 0, !12, i64 16}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!32, !6, i64 16}
!32 = !{!"_ZTSN3JPH21SoftBodyUpdateContextE", !6, i64 0, !6, i64 8, !6, i64 16, !33, i64 32, !12, i64 96, !12, i64 112, !16, i64 128, !16, i64 132, !34, i64 136, !36, i64 140, !36, i64 144, !36, i64 148, !36, i64 152, !36, i64 156, !12, i64 160, !38, i64 176}
!33 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!34 = !{!"_ZTSSt6atomicIN3JPH21SoftBodyUpdateContext6EStateEE", !35, i64 0}
!35 = !{!"_ZTSN3JPH21SoftBodyUpdateContext6EStateE", !7, i64 0}
!36 = !{!"_ZTSSt6atomicIjE", !37, i64 0}
!37 = !{!"_ZTSSt13__atomic_baseIjE", !17, i64 0}
!38 = !{!"_ZTSN3JPH9ECanSleepE", !7, i64 0}
!39 = !{!32, !6, i64 0}
!40 = !{!41, !41, i64 0}
!41 = !{!"vtable pointer", !8, i64 0}
!42 = !{!32, !16, i64 128}
!43 = !{!16, !16, i64 0}
!44 = !{i64 0, i64 16, !45, i64 16, i64 16, !45}
!45 = !{!7, !7, i64 0}
!46 = !{i64 0, i64 16, !45}
!47 = !{!48, !17, i64 64}
!48 = !{!"_ZTSN3JPH14SoftBodyVertexE", !12, i64 0, !12, i64 16, !12, i64 32, !49, i64 48, !17, i64 64, !19, i64 68, !16, i64 72, !16, i64 76}
!49 = !{!"_ZTSN3JPH5PlaneE", !14, i64 0}
!50 = !{!48, !19, i64 68}
!51 = !{!48, !16, i64 72}
!52 = !{!17, !17, i64 0}
!53 = !{!10, !19, i64 348}
!54 = !{!55, !16, i64 72}
!55 = !{!"_ZTSN3JPH15PhysicsSettingsE", !17, i64 0, !17, i64 4, !17, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !16, i64 40, !16, i64 44, !16, i64 48, !16, i64 52, !17, i64 56, !17, i64 60, !16, i64 64, !16, i64 68, !16, i64 72, !19, i64 76, !19, i64 77, !19, i64 78, !19, i64 79, !19, i64 80, !19, i64 81, !19, i64 82}
!56 = !{!32, !38, i64 176}
!57 = !{!55, !16, i64 68}
!58 = !{!10, !19, i64 351}


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

%"class.JPH::SoftBodyManifold" = type { ptr, ptr }
%"class.JPH::Vec3" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) local_unnamed_addr #3

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24SoftBodyMotionProperties19UpdateSoftBodyStateERNS_21SoftBodyUpdateContextERKNS_15PhysicsSettingsE(ptr noundef nonnull align 16 dereferenceable(352) %0, ptr noundef nonnull align 16 dereferenceable(180) %1, ptr nocapture noundef nonnull readonly align 4 dereferenceable(83) %2) local_unnamed_addr #5 align 2 {
  %4 = alloca %"class.JPH::SoftBodyManifold", align 8
  %5 = alloca float, align 4
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::AABox", align 16
  %9 = alloca float, align 4
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = getelementptr inbounds i8, ptr %0, i64 349
  %15 = load i8, ptr %14, align 1, !tbaa !5, !range !28, !noundef !29
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %25

17:                                               ; preds = %3
  %18 = getelementptr inbounds i8, ptr %1, i64 16
  %19 = load ptr, ptr %18, align 16, !tbaa !30
  %.not = icmp eq ptr %19, null
  br i1 %.not, label %25, label %20

20:                                               ; preds = %17
  %21 = load ptr, ptr %1, align 16, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  call void @_ZN3JPH16SoftBodyManifoldC2EPKNS_24SoftBodyMotionPropertiesE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %0)
  %22 = load ptr, ptr %19, align 8, !tbaa !39
  %23 = getelementptr inbounds i8, ptr %22, i64 24
  %24 = load ptr, ptr %23, align 8
  call void %24(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 16 dereferenceable(122) %21, ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br label %25

25:                                               ; preds = %20, %17, %3
  %26 = getelementptr inbounds i8, ptr %1, i64 128
  %27 = load float, ptr %26, align 16, !tbaa !41
  %28 = call noundef float @_ZNK3JPH16MotionProperties20GetMaxLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(182) %0)
  %29 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store float 0.000000e+00, ptr %5, align 4, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  %30 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %31 = extractvalue { double, double } %30, 0
  store double %31, ptr %6, align 16
  %32 = getelementptr inbounds i8, ptr %6, i64 8
  %33 = extractvalue { double, double } %30, 1
  store double %33, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  %34 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %35 = extractvalue { double, double } %34, 0
  store double %35, ptr %7, align 16
  %36 = getelementptr inbounds i8, ptr %7, i64 8
  %37 = extractvalue { double, double } %34, 1
  store double %37, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  call void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %8)
  %38 = getelementptr inbounds i8, ptr %0, i64 272
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %38, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !43
  %39 = getelementptr inbounds i8, ptr %0, i64 304
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %39, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  store i8 0, ptr %14, align 1, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %0, i64 192
  %41 = call noundef ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %42 = call noundef ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %.not9194 = icmp eq ptr %41, %42
  br i1 %.not9194, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %25
  %43 = getelementptr inbounds i8, ptr %10, i64 8
  %44 = getelementptr inbounds i8, ptr %1, i64 112
  %.sroa.236.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 120
  br label %66

._crit_edge:                                      ; preds = %77, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  %45 = call noundef i64 @_ZNK3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr %11, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  store i32 1, ptr %12, align 4, !tbaa !45
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %48 = load i32, ptr %47, align 4, !tbaa !45
  %49 = sitofp i32 %48 to float
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  %50 = getelementptr inbounds i8, ptr %1, i64 32
  %51 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef %49)
  %52 = extractvalue { double, double } %51, 0
  %53 = extractvalue { double, double } %51, 1
  %54 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %50, double %52, double %53)
  %55 = extractvalue { double, double } %54, 0
  %56 = extractvalue { double, double } %54, 1
  call void @_ZN3JPH16MotionProperties17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182) %0, double %55, double %56)
  %57 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef %49)
  %58 = extractvalue { double, double } %57, 0
  %59 = extractvalue { double, double } %57, 1
  %60 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %50, double %58, double %59)
  %61 = extractvalue { double, double } %60, 0
  %62 = extractvalue { double, double } %60, 1
  call void @_ZN3JPH16MotionProperties18SetAngularVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182) %0, double %61, double %62)
  %63 = getelementptr inbounds i8, ptr %0, i64 348
  %64 = load i8, ptr %63, align 4, !tbaa !46, !range !28, !noundef !29
  %65 = trunc nuw i8 %64 to i1
  br i1 %65, label %97, label %123

66:                                               ; preds = %.lr.ph, %77
  %.095 = phi ptr [ %41, %.lr.ph ], [ %96, %77 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  %67 = getelementptr inbounds i8, ptr %.095, i64 32
  %68 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %67)
  store float %68, ptr %9, align 4, !tbaa !42
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %70 = load float, ptr %69, align 4, !tbaa !42
  store float %70, ptr %5, align 4, !tbaa !42
  %71 = load float, ptr %9, align 4, !tbaa !42
  %72 = fcmp ogt float %71, %29
  br i1 %72, label %73, label %77

73:                                               ; preds = %66
  %74 = fdiv float %29, %71
  %75 = call noundef float @_ZSt4sqrtf(float noundef %74)
  %76 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mLEf(ptr noundef nonnull align 16 dereferenceable(16) %67, float noundef %75)
  br label %77

77:                                               ; preds = %73, %66
  %.sroa.047.0.copyload = load double, ptr %67, align 16
  %.sroa.248.0..sroa_idx = getelementptr inbounds i8, ptr %.095, i64 40
  %.sroa.248.0.copyload = load double, ptr %.sroa.248.0..sroa_idx, align 8, !tbaa !44
  %78 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %6, double %.sroa.047.0.copyload, double %.sroa.248.0.copyload)
  %79 = getelementptr inbounds i8, ptr %.095, i64 16
  %.sroa.043.0.copyload = load double, ptr %67, align 16
  %.sroa.244.0.copyload = load double, ptr %.sroa.248.0..sroa_idx, align 8, !tbaa !44
  %80 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %79, double %.sroa.043.0.copyload, double %.sroa.244.0.copyload)
  %81 = extractvalue { double, double } %80, 0
  %82 = extractvalue { double, double } %80, 1
  %83 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %81, double %82)
  %.sroa.041.0.copyload = load double, ptr %79, align 16
  %.sroa.242.0..sroa_idx = getelementptr inbounds i8, ptr %.095, i64 24
  %.sroa.242.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !44
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %38, double %.sroa.041.0.copyload, double %.sroa.242.0.copyload)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  %84 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %67, float noundef %27)
  %85 = extractvalue { double, double } %84, 0
  %86 = extractvalue { double, double } %84, 1
  %87 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %79, double %85, double %86)
  %88 = extractvalue { double, double } %87, 0
  store double %88, ptr %10, align 16
  %89 = extractvalue { double, double } %87, 1
  store double %89, ptr %43, align 8
  %.sroa.035.0.copyload = load double, ptr %44, align 16
  %.sroa.236.0.copyload = load double, ptr %.sroa.236.0..sroa_idx, align 8, !tbaa !44
  %90 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %.sroa.035.0.copyload, double %.sroa.236.0.copyload)
  %91 = extractvalue { double, double } %90, 0
  %92 = extractvalue { double, double } %90, 1
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %39, double %91, double %92)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  %93 = getelementptr inbounds i8, ptr %.095, i64 64
  store i32 -1, ptr %93, align 16, !tbaa !47
  %94 = getelementptr inbounds i8, ptr %.095, i64 68
  store i8 0, ptr %94, align 4, !tbaa !50
  %95 = getelementptr inbounds i8, ptr %.095, i64 72
  store float 0xC7EFFFFFE0000000, ptr %95, align 8, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  %96 = getelementptr inbounds i8, ptr %.095, i64 80
  %.not91 = icmp eq ptr %96, %42
  br i1 %.not91, label %._crit_edge, label %66

97:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  %98 = call { double, double } @_ZNK3JPH5AABox9GetCenterEv(ptr noundef nonnull align 16 dereferenceable(32) %38)
  %99 = extractvalue { double, double } %98, 0
  store double %99, ptr %13, align 16
  %100 = getelementptr inbounds i8, ptr %13, i64 8
  %101 = extractvalue { double, double } %98, 1
  store double %101, ptr %100, align 8
  %102 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %50, double %99, double %101)
  %103 = extractvalue { double, double } %102, 0
  %104 = extractvalue { double, double } %102, 1
  %105 = getelementptr inbounds i8, ptr %1, i64 160
  store double %103, ptr %105, align 16
  %.sroa.424.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 168
  store double %104, ptr %.sroa.424.0..sroa_idx, align 8, !tbaa !44
  %106 = call noundef ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %107 = call noundef ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %.not9296 = icmp eq ptr %106, %107
  br i1 %.not9296, label %._crit_edge100, label %.lr.ph99

._crit_edge100:                                   ; preds = %.lr.ph99, %97
  %108 = getelementptr inbounds i8, ptr %0, i64 240
  %109 = call noundef ptr @_ZN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %108)
  %110 = call noundef ptr @_ZN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %108)
  %.not93101 = icmp eq ptr %109, %110
  br i1 %.not93101, label %._crit_edge105, label %.lr.ph104

.lr.ph99:                                         ; preds = %97, %.lr.ph99
  %.08697 = phi ptr [ %113, %.lr.ph99 ], [ %106, %97 ]
  %.sroa.012.0.copyload = load double, ptr %13, align 16
  %.sroa.213.0.copyload = load double, ptr %100, align 8, !tbaa !44
  %111 = getelementptr inbounds i8, ptr %.08697, i64 16
  %112 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %111, double %.sroa.012.0.copyload, double %.sroa.213.0.copyload)
  %113 = getelementptr inbounds i8, ptr %.08697, i64 80
  %.not92 = icmp eq ptr %113, %107
  br i1 %.not92, label %._crit_edge100, label %.lr.ph99

._crit_edge105:                                   ; preds = %.lr.ph104, %._crit_edge100
  %114 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %115 = extractvalue { double, double } %114, 0
  %116 = extractvalue { double, double } %114, 1
  call void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %38, double %115, double %116)
  %117 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %118 = extractvalue { double, double } %117, 0
  %119 = extractvalue { double, double } %117, 1
  call void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %39, double %118, double %119)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  br label %128

.lr.ph104:                                        ; preds = %._crit_edge100, %.lr.ph104
  %.087102 = phi ptr [ %122, %.lr.ph104 ], [ %109, %._crit_edge100 ]
  %.sroa.04.0.copyload = load double, ptr %13, align 16
  %.sroa.25.0.copyload = load double, ptr %100, align 8, !tbaa !44
  %120 = getelementptr inbounds i8, ptr %.087102, i64 16
  %121 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %120, double %.sroa.04.0.copyload, double %.sroa.25.0.copyload)
  %122 = getelementptr inbounds i8, ptr %.087102, i64 48
  %.not93 = icmp eq ptr %122, %110
  br i1 %.not93, label %._crit_edge105, label %.lr.ph104

123:                                              ; preds = %._crit_edge
  %124 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %125 = extractvalue { double, double } %124, 0
  %126 = extractvalue { double, double } %124, 1
  %127 = getelementptr inbounds i8, ptr %1, i64 160
  store double %125, ptr %127, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 168
  store double %126, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !44
  br label %128

128:                                              ; preds = %123, %._crit_edge105
  %129 = call noundef zeroext i1 @_ZNK3JPH16MotionProperties16GetAllowSleepingEv(ptr noundef nonnull align 16 dereferenceable(182) %0)
  br i1 %129, label %130, label %140

130:                                              ; preds = %128
  %131 = load float, ptr %5, align 4, !tbaa !42
  %132 = getelementptr inbounds i8, ptr %2, i64 72
  %133 = load float, ptr %132, align 4, !tbaa !52
  %134 = fcmp ogt float %131, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %130
  call void @_ZN3JPH16MotionProperties19ResetSleepTestTimerEv(ptr noundef nonnull align 16 dereferenceable(182) %0)
  br label %140

136:                                              ; preds = %130
  %137 = getelementptr inbounds i8, ptr %2, i64 68
  %138 = load float, ptr %137, align 4, !tbaa !54
  %139 = call noundef i32 @_ZN3JPH16MotionProperties19AccumulateSleepTimeEff(ptr noundef nonnull align 16 dereferenceable(182) %0, float noundef %27, float noundef %138)
  br label %140

140:                                              ; preds = %128, %135, %136
  %.sink = phi i32 [ 0, %135 ], [ %139, %136 ], [ 0, %128 ]
  %141 = getelementptr inbounds i8, ptr %1, i64 176
  store i32 %.sink, ptr %141, align 16, !tbaa !55
  %142 = getelementptr inbounds i8, ptr %0, i64 351
  store i8 0, ptr %142, align 1, !tbaa !56
  call void @_ZN3JPH16MotionProperties10ResetForceEv(ptr noundef nonnull align 16 dereferenceable(182) %0)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties20GetMaxLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(182)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16MotionProperties17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182), double, double) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16MotionProperties18SetAngularVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182), double, double) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5AABox9GetCenterEv(ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) local_unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16MotionProperties19ResetSleepTestTimerEv(ptr noundef nonnull align 16 dereferenceable(182)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3JPH16MotionProperties19AccumulateSleepTimeEff(ptr noundef nonnull align 16 dereferenceable(182), float noundef, float noundef) local_unnamed_addr #1 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress nounwind 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 #7 = { 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 #8 = { 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 #9 = { 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, !17, i64 349}
!6 = !{!"_ZTSN3JPH24SoftBodyMotionPropertiesE", !7, i64 0, !21, i64 184, !23, i64 192, !25, i64 216, !26, i64 240, !27, i64 272, !27, i64 304, !15, i64 336, !14, i64 340, !14, i64 344, !17, i64 348, !17, i64 349, !17, i64 350, !17, i64 351}
!7 = !{!"_ZTSN3JPH16MotionPropertiesE", !8, i64 0, !8, i64 16, !8, i64 32, !11, i64 48, !13, i64 64, !13, i64 76, !14, i64 88, !14, i64 92, !14, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !15, i64 112, !15, i64 116, !16, i64 120, !17, i64 121, !18, i64 122, !9, i64 123, !9, i64 124, !9, i64 128, !14, i64 176, !19, i64 180, !20, i64 181}
!8 = !{!"_ZTSN3JPH4Vec3E", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN3JPH4QuatE", !12, i64 0}
!12 = !{!"_ZTSN3JPH4Vec4E", !9, i64 0}
!13 = !{!"_ZTSN3JPH6Float3E", !14, i64 0, !14, i64 4, !14, i64 8}
!14 = !{!"float", !9, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!"_ZTSN3JPH14EMotionQualityE", !9, i64 0}
!17 = !{!"bool", !9, i64 0}
!18 = !{!"_ZTSN3JPH12EAllowedDOFsE", !9, i64 0}
!19 = !{!"_ZTSN3JPH9EBodyTypeE", !9, i64 0}
!20 = !{!"_ZTSN3JPH11EMotionTypeE", !9, i64 0}
!21 = !{!"_ZTSN3JPH8RefConstINS_22SoftBodySharedSettingsEEE", !22, i64 0}
!22 = !{!"any pointer", !9, i64 0}
!23 = !{!"_ZTSN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEE", !24, i64 0, !24, i64 8, !22, i64 16}
!24 = !{!"long", !9, i64 0}
!25 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties14CollidingShapeENS_12STLAllocatorIS2_EEEE", !24, i64 0, !24, i64 8, !22, i64 16}
!26 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEEE", !24, i64 0, !24, i64 8, !22, i64 16}
!27 = !{!"_ZTSN3JPH5AABoxE", !8, i64 0, !8, i64 16}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!31, !22, i64 16}
!31 = !{!"_ZTSN3JPH21SoftBodyUpdateContextE", !22, i64 0, !22, i64 8, !22, i64 16, !32, i64 32, !8, i64 96, !8, i64 112, !14, i64 128, !14, i64 132, !33, i64 136, !35, i64 140, !35, i64 144, !35, i64 148, !35, i64 152, !35, i64 156, !8, i64 160, !37, i64 176}
!32 = !{!"_ZTSN3JPH5Mat44E", !9, i64 0}
!33 = !{!"_ZTSSt6atomicIN3JPH21SoftBodyUpdateContext6EStateEE", !34, i64 0}
!34 = !{!"_ZTSN3JPH21SoftBodyUpdateContext6EStateE", !9, i64 0}
!35 = !{!"_ZTSSt6atomicIjE", !36, i64 0}
!36 = !{!"_ZTSSt13__atomic_baseIjE", !15, i64 0}
!37 = !{!"_ZTSN3JPH9ECanSleepE", !9, i64 0}
!38 = !{!31, !22, i64 0}
!39 = !{!40, !40, i64 0}
!40 = !{!"vtable pointer", !10, i64 0}
!41 = !{!31, !14, i64 128}
!42 = !{!14, !14, i64 0}
!43 = !{i64 0, i64 16, !44, i64 16, i64 16, !44}
!44 = !{!9, !9, i64 0}
!45 = !{!15, !15, i64 0}
!46 = !{!6, !17, i64 348}
!47 = !{!48, !15, i64 64}
!48 = !{!"_ZTSN3JPH14SoftBodyVertexE", !8, i64 0, !8, i64 16, !8, i64 32, !49, i64 48, !15, i64 64, !17, i64 68, !14, i64 72, !14, i64 76}
!49 = !{!"_ZTSN3JPH5PlaneE", !12, i64 0}
!50 = !{!48, !17, i64 68}
!51 = !{!48, !14, i64 72}
!52 = !{!53, !14, i64 72}
!53 = !{!"_ZTSN3JPH15PhysicsSettingsE", !15, i64 0, !15, i64 4, !15, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !15, i64 56, !15, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !17, i64 76, !17, i64 77, !17, i64 78, !17, i64 79, !17, i64 80, !17, i64 81, !17, i64 82}
!54 = !{!53, !14, i64 68}
!55 = !{!31, !37, i64 176}
!56 = !{!6, !17, i64 351}


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