; LLVM IR from jrouwe/JoltPhysics :: 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::Vec3" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::SoftBodyUpdateContext" = type <{ ptr, ptr, ptr, ptr, %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"struct.std::atomic.49", %"struct.std::atomic.11", %"struct.std::atomic.11", %"struct.std::atomic.11", %"struct.std::atomic.11", %"struct.std::atomic.11", %"struct.std::atomic.11", %"struct.std::atomic.11", [8 x i8], %"class.JPH::Vec3", i32, [12 x i8] }>
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"struct.std::atomic.49" = type { i32 }
%"struct.std::atomic.11" = type { %"struct.std::__atomic_base.12" }
%"struct.std::__atomic_base.12" = type { i32 }
%"class.JPH::SoftBodyMotionProperties" = type <{ %"class.JPH::MotionProperties.base", [2 x i8], %"class.JPH::RefConst", %"class.JPH::Array", %"class.JPH::Array.1", %"class.JPH::Array.4", %"class.JPH::Array.7", %"class.JPH::AABox", %"class.JPH::AABox", i32, i32, float, float, i8, %"struct.std::atomic", i8, i8, [12 x 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::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::Array.7" = type { i64, i64, ptr }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"class.JPH::SoftBodySharedSettings" = type { %"class.JPH::RefTarget", %"class.JPH::Array.13", %"class.JPH::Array.16", %"class.JPH::Array.19", %"class.JPH::Array.22", %"class.JPH::Array.25", %"class.JPH::Array.28", %"class.JPH::Array.31", %"class.JPH::Array.34", %"class.JPH::Array.37", float, %"class.JPH::Array.40", %"class.JPH::Array.43", %"class.JPH::Array.46" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic.11" }
%"class.JPH::Array.13" = type { i64, i64, ptr }
%"class.JPH::Array.16" = type { i64, i64, ptr }
%"class.JPH::Array.19" = type { i64, i64, ptr }
%"class.JPH::Array.22" = type { i64, i64, ptr }
%"class.JPH::Array.25" = type { i64, i64, ptr }
%"class.JPH::Array.28" = type { i64, i64, ptr }
%"class.JPH::Array.31" = type { i64, i64, ptr }
%"class.JPH::Array.34" = type { i64, i64, ptr }
%"class.JPH::Array.37" = type { i64, i64, ptr }
%"class.JPH::Array.40" = type { i64, i64, ptr }
%"class.JPH::Array.43" = type { i64, i64, ptr }
%"class.JPH::Array.46" = type { i64, i64, ptr }
%"struct.JPH::SoftBodySharedSettings::Face" = type { [3 x i32], 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" }

; 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: 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) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH24SoftBodyMotionProperties17GetVolumeTimesSixEv(ptr noundef nonnull align 16 dereferenceable(372)) #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24SoftBodyMotionProperties13ApplyPressureERKNS_21SoftBodyUpdateContextE(ptr noundef nonnull align 16 dereferenceable(372) %0, ptr noundef nonnull align 16 dereferenceable(196) %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %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 ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %31, i32 0, i32 8
  %33 = load float, ptr %32, align 4, !tbaa !9
  store float %33, ptr %5, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %34 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %30, i32 0, i32 11
  %35 = load float, ptr %34, align 8, !tbaa !21
  store float %35, ptr %6, align 4, !tbaa !20
  %36 = load float, ptr %6, align 4, !tbaa !20
  %37 = fcmp ogt float %36, 0.000000e+00
  br i1 %37, label %38, label %180

38:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %39 = call noundef float @_ZNK3JPH24SoftBodyMotionProperties17GetVolumeTimesSixEv(ptr noundef nonnull align 16 dereferenceable(372) %30)
  store float %39, ptr %7, align 4, !tbaa !20
  %40 = load float, ptr %7, align 4, !tbaa !20
  %41 = fcmp ogt float %40, 0.000000e+00
  br i1 %41, label %42, label %179

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %43 = load float, ptr %6, align 4, !tbaa !20
  %44 = load float, ptr %5, align 4, !tbaa !20
  %45 = fmul float %43, %44
  %46 = load float, ptr %7, align 4, !tbaa !20
  %47 = fdiv float %45, %46
  store float %47, ptr %8, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %48 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %30, i32 0, i32 2
  %49 = call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48)
  %50 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %49, i32 0, i32 2
  store ptr %50, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = call noundef ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51)
  store ptr %52, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = call noundef ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  store ptr %54, ptr %11, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %175, %42
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = icmp ne ptr %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %178

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %61, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %62 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %30, i32 0, i32 3
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds [3 x i32], ptr %64, i64 0, i64 0
  %66 = load i32, ptr %65, align 4, !tbaa !41
  %67 = zext i32 %66 to i64
  %68 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %67)
  %69 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %68, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %69, i64 16, i1 false), !tbaa.struct !42
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %70 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %30, i32 0, i32 3
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds [3 x i32], ptr %72, i64 0, i64 1
  %74 = load i32, ptr %73, align 4, !tbaa !41
  %75 = zext i32 %74 to i64
  %76 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %75)
  %77 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %76, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %77, i64 16, i1 false), !tbaa.struct !42
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %78 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %30, i32 0, i32 3
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %79, i32 0, i32 0
  %81 = getelementptr inbounds [3 x i32], ptr %80, i64 0, i64 2
  %82 = load i32, ptr %81, align 4, !tbaa !41
  %83 = zext i32 %82 to i64
  %84 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %83)
  %85 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %84, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %85, i64 16, i1 false), !tbaa.struct !42
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %86 = load float, ptr %8, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !42
  %87 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %88 = load double, ptr %87, align 16
  %89 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %90 = load double, ptr %89, align 8
  %91 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %88, double %90)
  %92 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %93 = getelementptr inbounds %union.anon.0, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds { double, double }, ptr %93, i32 0, i32 0
  %95 = extractvalue { double, double } %91, 0
  store double %95, ptr %94, align 16
  %96 = getelementptr inbounds { double, double }, ptr %93, i32 0, i32 1
  %97 = extractvalue { double, double } %91, 1
  store double %97, ptr %96, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !42
  %98 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %99 = load double, ptr %98, align 16
  %100 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %101 = load double, ptr %100, align 8
  %102 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %99, double %101)
  %103 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %104 = getelementptr inbounds %union.anon.0, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 0
  %106 = extractvalue { double, double } %102, 0
  store double %106, ptr %105, align 16
  %107 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 1
  %108 = extractvalue { double, double } %102, 1
  store double %108, ptr %107, align 8
  %109 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %110 = load double, ptr %109, align 16
  %111 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %112 = load double, ptr %111, align 8
  %113 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %110, double %112)
  %114 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %115 = getelementptr inbounds %union.anon.0, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds { double, double }, ptr %115, i32 0, i32 0
  %117 = extractvalue { double, double } %113, 0
  store double %117, ptr %116, align 16
  %118 = getelementptr inbounds { double, double }, ptr %115, i32 0, i32 1
  %119 = extractvalue { double, double } %113, 1
  store double %119, ptr %118, align 8
  %120 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %121 = load double, ptr %120, align 16
  %122 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %123 = load double, ptr %122, align 8
  %124 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %86, double %121, double %123)
  %125 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %126 = getelementptr inbounds %union.anon.0, ptr %125, i32 0, i32 0
  %127 = getelementptr inbounds { double, double }, ptr %126, i32 0, i32 0
  %128 = extractvalue { double, double } %124, 0
  store double %128, ptr %127, align 16
  %129 = getelementptr inbounds { double, double }, ptr %126, i32 0, i32 1
  %130 = extractvalue { double, double } %124, 1
  store double %130, ptr %129, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %131, i32 0, i32 0
  store ptr %132, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %133 = load ptr, ptr %23, align 8, !tbaa !5
  %134 = getelementptr inbounds [3 x i32], ptr %133, i64 0, i64 0
  store ptr %134, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %135 = load ptr, ptr %23, align 8, !tbaa !5
  %136 = getelementptr inbounds [3 x i32], ptr %135, i64 0, i64 0
  %137 = getelementptr inbounds i32, ptr %136, i64 3
  store ptr %137, ptr %25, align 8, !tbaa !5
  br label %138

138:                                              ; preds = %171, %60
  %139 = load ptr, ptr %24, align 8, !tbaa !5
  %140 = load ptr, ptr %25, align 8, !tbaa !5
  %141 = icmp ne ptr %139, %140
  br i1 %141, label %143, label %142

142:                                              ; preds = %138
  store i32 4, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %174

143:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %144 = load ptr, ptr %24, align 8, !tbaa !5
  %145 = load i32, ptr %144, align 4, !tbaa !41
  store i32 %145, ptr %26, align 4, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %146 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %30, i32 0, i32 3
  %147 = load i32, ptr %26, align 4, !tbaa !41
  %148 = zext i32 %147 to i64
  %149 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %148)
  store ptr %149, ptr %27, align 8, !tbaa !5
  %150 = load ptr, ptr %27, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %150, i32 0, i32 7
  %152 = load float, ptr %151, align 4, !tbaa !44
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !42
  %153 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %154 = load double, ptr %153, align 16
  %155 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %156 = load double, ptr %155, align 8
  %157 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %152, double %154, double %156)
  %158 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %159 = getelementptr inbounds %union.anon.0, ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds { double, double }, ptr %159, i32 0, i32 0
  %161 = extractvalue { double, double } %157, 0
  store double %161, ptr %160, align 16
  %162 = getelementptr inbounds { double, double }, ptr %159, i32 0, i32 1
  %163 = extractvalue { double, double } %157, 1
  store double %163, ptr %162, align 8
  %164 = load ptr, ptr %27, align 8, !tbaa !5
  %165 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %164, i32 0, i32 2
  %166 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %167 = load double, ptr %166, align 16
  %168 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %169 = load double, ptr %168, align 8
  %170 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %165, double %167, double %169)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %171

171:                                              ; preds = %143
  %172 = load ptr, ptr %24, align 8, !tbaa !5
  %173 = getelementptr inbounds i32, ptr %172, i32 1
  store ptr %173, ptr %24, align 8, !tbaa !5
  br label %138

174:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %175

175:                                              ; preds = %174
  %176 = load ptr, ptr %10, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %176, i32 1
  store ptr %177, ptr %10, align 8, !tbaa !5
  br label %55

178:                                              ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %179

179:                                              ; preds = %178, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %180

180:                                              ; preds = %179, %2
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #5 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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 = { 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 #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 = { 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, !13, i64 132}
!10 = !{!"_ZTSN3JPH21SoftBodyUpdateContextE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !12, i64 96, !12, i64 112, !13, i64 128, !13, i64 132, !14, i64 136, !16, i64 140, !16, i64 144, !16, i64 148, !16, i64 152, !16, i64 156, !16, i64 160, !16, i64 164, !12, i64 176, !19, i64 192}
!11 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!12 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTSSt6atomicIN3JPH21SoftBodyUpdateContext6EStateEE", !15, i64 0}
!15 = !{!"_ZTSN3JPH21SoftBodyUpdateContext6EStateE", !7, i64 0}
!16 = !{!"_ZTSSt6atomicIjE", !17, i64 0}
!17 = !{!"_ZTSSt13__atomic_baseIjE", !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN3JPH9ECanSleepE", !7, i64 0}
!20 = !{!13, !13, i64 0}
!21 = !{!22, !13, i64 360}
!22 = !{!"_ZTSN3JPH24SoftBodyMotionPropertiesE", !23, i64 0, !32, i64 184, !33, i64 192, !35, i64 216, !36, i64 240, !37, i64 264, !38, i64 288, !38, i64 320, !18, i64 352, !18, i64 356, !13, i64 360, !13, i64 364, !28, i64 368, !39, i64 369, !28, i64 370, !28, i64 371}
!23 = !{!"_ZTSN3JPH16MotionPropertiesE", !12, i64 0, !12, i64 16, !12, i64 32, !24, i64 48, !26, i64 64, !26, i64 76, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !18, i64 112, !18, i64 116, !27, i64 120, !28, i64 121, !29, i64 122, !7, i64 123, !7, i64 124, !7, i64 128, !13, i64 176, !30, i64 180, !31, i64 181}
!24 = !{!"_ZTSN3JPH4QuatE", !25, i64 0}
!25 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!26 = !{!"_ZTSN3JPH6Float3E", !13, i64 0, !13, i64 4, !13, i64 8}
!27 = !{!"_ZTSN3JPH14EMotionQualityE", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSN3JPH12EAllowedDOFsE", !7, i64 0}
!30 = !{!"_ZTSN3JPH9EBodyTypeE", !7, i64 0}
!31 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!32 = !{!"_ZTSN3JPH8RefConstINS_22SoftBodySharedSettingsEEE", !6, i64 0}
!33 = !{!"_ZTSN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEE", !34, i64 0, !34, i64 8, !6, i64 16}
!34 = !{!"long", !7, i64 0}
!35 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties14CollidingShapeENS_12STLAllocatorIS2_EEEE", !34, i64 0, !34, i64 8, !6, i64 16}
!36 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties15CollidingSensorENS_12STLAllocatorIS2_EEEE", !34, i64 0, !34, i64 8, !6, i64 16}
!37 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEEE", !34, i64 0, !34, i64 8, !6, i64 16}
!38 = !{!"_ZTSN3JPH5AABoxE", !12, i64 0, !12, i64 16}
!39 = !{!"_ZTSSt6atomicIbE", !40, i64 0}
!40 = !{!"_ZTSSt13__atomic_baseIbE", !28, i64 0}
!41 = !{!18, !18, i64 0}
!42 = !{i64 0, i64 16, !43}
!43 = !{!7, !7, i64 0}
!44 = !{!45, !13, i64 76}
!45 = !{!"_ZTSN3JPH14SoftBodyVertexE", !12, i64 0, !12, i64 16, !12, i64 32, !46, i64 48, !18, i64 64, !28, i64 68, !13, i64 72, !13, i64 76}
!46 = !{!"_ZTSN3JPH5PlaneE", !25, i64 0}


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

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

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

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

; Function Attrs: mustprogress 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) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH24SoftBodyMotionProperties17GetVolumeTimesSixEv(ptr noundef nonnull align 16 dereferenceable(372)) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24SoftBodyMotionProperties13ApplyPressureERKNS_21SoftBodyUpdateContextE(ptr noundef nonnull align 16 dereferenceable(372) %0, ptr nocapture noundef nonnull readonly align 16 dereferenceable(196) %1) local_unnamed_addr #4 align 2 {
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = getelementptr inbounds i8, ptr %1, i64 132
  %7 = load float, ptr %6, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 360
  %9 = load float, ptr %8, align 8, !tbaa !19
  %10 = fcmp ogt float %9, 0.000000e+00
  br i1 %10, label %11, label %.loopexit

11:                                               ; preds = %2
  %12 = tail call noundef float @_ZNK3JPH24SoftBodyMotionProperties17GetVolumeTimesSixEv(ptr noundef nonnull align 16 dereferenceable(372) %0)
  %13 = fcmp ogt float %12, 0.000000e+00
  br i1 %13, label %14, label %.loopexit

14:                                               ; preds = %11
  %15 = fmul float %7, %9
  %16 = fdiv float %15, %12
  %17 = getelementptr inbounds i8, ptr %0, i64 184
  %18 = tail call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
  %19 = getelementptr inbounds i8, ptr %18, i64 32
  %20 = tail call noundef ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19)
  %21 = tail call noundef ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19)
  %.not43 = icmp eq ptr %20, %21
  br i1 %.not43, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %14
  %22 = getelementptr inbounds i8, ptr %0, i64 192
  %23 = getelementptr inbounds i8, ptr %5, i64 8
  br label %24

24:                                               ; preds = %.lr.ph, %24
  %.044 = phi ptr [ %20, %.lr.ph ], [ %81, %24 ]
  %25 = load i32, ptr %.044, align 4, !tbaa !39
  %26 = zext i32 %25 to i64
  %27 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %26)
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %.sroa.019.0.copyload = load double, ptr %28, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %27, i64 24
  %.sroa.5.0.copyload = load double, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  %29 = getelementptr inbounds i8, ptr %.044, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !39
  %31 = zext i32 %30 to i64
  %32 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %31)
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) %33, i64 16, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %34 = getelementptr inbounds i8, ptr %.044, i64 8
  %35 = load i32, ptr %34, align 4, !tbaa !39
  %36 = zext i32 %35 to i64
  %37 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %36)
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %38, i64 16, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %39 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %.sroa.019.0.copyload, double %.sroa.5.0.copyload)
  %40 = extractvalue { double, double } %39, 0
  store double %40, ptr %5, align 16
  %41 = extractvalue { double, double } %39, 1
  store double %41, ptr %23, align 8
  %42 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %.sroa.019.0.copyload, double %.sroa.5.0.copyload)
  %43 = extractvalue { double, double } %42, 0
  %44 = extractvalue { double, double } %42, 1
  %45 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %43, double %44)
  %46 = extractvalue { double, double } %45, 0
  %47 = extractvalue { double, double } %45, 1
  %48 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %16, double %46, double %47)
  %49 = extractvalue { double, double } %48, 0
  %50 = extractvalue { double, double } %48, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  %51 = load i32, ptr %.044, align 4, !tbaa !39
  %52 = zext i32 %51 to i64
  %53 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %52)
  %54 = getelementptr inbounds i8, ptr %53, i64 76
  %55 = load float, ptr %54, align 4, !tbaa !42
  %56 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %55, double %49, double %50)
  %57 = extractvalue { double, double } %56, 0
  %58 = extractvalue { double, double } %56, 1
  %59 = getelementptr inbounds i8, ptr %53, i64 32
  %60 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %59, double %57, double %58)
  %61 = load i32, ptr %29, align 4, !tbaa !39
  %62 = zext i32 %61 to i64
  %63 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %62)
  %64 = getelementptr inbounds i8, ptr %63, i64 76
  %65 = load float, ptr %64, align 4, !tbaa !42
  %66 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %65, double %49, double %50)
  %67 = extractvalue { double, double } %66, 0
  %68 = extractvalue { double, double } %66, 1
  %69 = getelementptr inbounds i8, ptr %63, i64 32
  %70 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %69, double %67, double %68)
  %71 = load i32, ptr %34, align 4, !tbaa !39
  %72 = zext i32 %71 to i64
  %73 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %72)
  %74 = getelementptr inbounds i8, ptr %73, i64 76
  %75 = load float, ptr %74, align 4, !tbaa !42
  %76 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %75, double %49, double %50)
  %77 = extractvalue { double, double } %76, 0
  %78 = extractvalue { double, double } %76, 1
  %79 = getelementptr inbounds i8, ptr %73, i64 32
  %80 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %79, double %77, double %78)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  %81 = getelementptr inbounds i8, ptr %.044, i64 16
  %.not = icmp eq ptr %81, %21
  br i1 %.not, label %.loopexit, label %24

.loopexit:                                        ; preds = %24, %14, %11, %2
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #5 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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 = { 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 #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 = { 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, !12, i64 132}
!6 = !{!"_ZTSN3JPH21SoftBodyUpdateContextE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 96, !11, i64 112, !12, i64 128, !12, i64 132, !13, i64 136, !15, i64 140, !15, i64 144, !15, i64 148, !15, i64 152, !15, i64 156, !15, i64 160, !15, i64 164, !11, i64 176, !18, i64 192}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3JPH5Mat44E", !8, i64 0}
!11 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!"_ZTSSt6atomicIN3JPH21SoftBodyUpdateContext6EStateEE", !14, i64 0}
!14 = !{!"_ZTSN3JPH21SoftBodyUpdateContext6EStateE", !8, i64 0}
!15 = !{!"_ZTSSt6atomicIjE", !16, i64 0}
!16 = !{!"_ZTSSt13__atomic_baseIjE", !17, i64 0}
!17 = !{!"int", !8, i64 0}
!18 = !{!"_ZTSN3JPH9ECanSleepE", !8, i64 0}
!19 = !{!20, !12, i64 360}
!20 = !{!"_ZTSN3JPH24SoftBodyMotionPropertiesE", !21, i64 0, !30, i64 184, !31, i64 192, !33, i64 216, !34, i64 240, !35, i64 264, !36, i64 288, !36, i64 320, !17, i64 352, !17, i64 356, !12, i64 360, !12, i64 364, !26, i64 368, !37, i64 369, !26, i64 370, !26, i64 371}
!21 = !{!"_ZTSN3JPH16MotionPropertiesE", !11, i64 0, !11, i64 16, !11, i64 32, !22, i64 48, !24, i64 64, !24, i64 76, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !17, i64 112, !17, i64 116, !25, i64 120, !26, i64 121, !27, i64 122, !8, i64 123, !8, i64 124, !8, i64 128, !12, i64 176, !28, i64 180, !29, i64 181}
!22 = !{!"_ZTSN3JPH4QuatE", !23, i64 0}
!23 = !{!"_ZTSN3JPH4Vec4E", !8, i64 0}
!24 = !{!"_ZTSN3JPH6Float3E", !12, i64 0, !12, i64 4, !12, i64 8}
!25 = !{!"_ZTSN3JPH14EMotionQualityE", !8, i64 0}
!26 = !{!"bool", !8, i64 0}
!27 = !{!"_ZTSN3JPH12EAllowedDOFsE", !8, i64 0}
!28 = !{!"_ZTSN3JPH9EBodyTypeE", !8, i64 0}
!29 = !{!"_ZTSN3JPH11EMotionTypeE", !8, i64 0}
!30 = !{!"_ZTSN3JPH8RefConstINS_22SoftBodySharedSettingsEEE", !7, i64 0}
!31 = !{!"_ZTSN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEE", !32, i64 0, !32, i64 8, !7, i64 16}
!32 = !{!"long", !8, i64 0}
!33 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties14CollidingShapeENS_12STLAllocatorIS2_EEEE", !32, i64 0, !32, i64 8, !7, i64 16}
!34 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties15CollidingSensorENS_12STLAllocatorIS2_EEEE", !32, i64 0, !32, i64 8, !7, i64 16}
!35 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEEE", !32, i64 0, !32, i64 8, !7, i64 16}
!36 = !{!"_ZTSN3JPH5AABoxE", !11, i64 0, !11, i64 16}
!37 = !{!"_ZTSSt6atomicIbE", !38, i64 0}
!38 = !{!"_ZTSSt13__atomic_baseIbE", !26, i64 0}
!39 = !{!17, !17, i64 0}
!40 = !{!8, !8, i64 0}
!41 = !{i64 0, i64 16, !40}
!42 = !{!43, !12, i64 76}
!43 = !{!"_ZTSN3JPH14SoftBodyVertexE", !11, i64 0, !11, i64 16, !11, i64 32, !44, i64 48, !17, i64 64, !26, i64 68, !12, i64 72, !12, i64 76}
!44 = !{!"_ZTSN3JPH5PlaneE", !23, i64 0}


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