; 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::Volume" = type { [4 x i32], float, float }
%"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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24SoftBodyMotionProperties22ApplyVolumeConstraintsERKNS_21SoftBodyUpdateContextEjj(ptr noundef nonnull align 16 dereferenceable(372) %0, ptr noundef nonnull align 16 dereferenceable(196) %1, i32 noundef %2, i32 noundef %3) #7 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %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 %"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 %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %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 %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca float, align 4
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca float, align 4
  %46 = alloca float, align 4
  %47 = alloca float, align 4
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Vec3", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Vec3", align 16
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %60 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.JPH::SoftBodyUpdateContext", ptr %61, i32 0, i32 8
  %63 = load float, ptr %62, align 4, !tbaa !11
  %64 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %63)
  %65 = fdiv float 1.000000e+00, %64
  store float %65, ptr %9, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %66 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %60, i32 0, i32 2
  %67 = call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %66)
  %68 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %67, i32 0, i32 5
  %69 = call noundef ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %68)
  %70 = load i32, ptr %7, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %69, i64 %71
  store ptr %72, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %73 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %60, i32 0, i32 2
  %74 = call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %73)
  %75 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %74, i32 0, i32 5
  %76 = call noundef ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %75)
  %77 = load i32, ptr %8, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %76, i64 %78
  store ptr %79, ptr %11, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %389, %4
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = icmp ult ptr %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %392

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %86 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %60, i32 0, i32 3
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds [4 x i32], ptr %88, i64 0, i64 0
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %91)
  store ptr %92, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %93 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %60, i32 0, i32 3
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds [4 x i32], ptr %95, i64 0, i64 1
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %98)
  store ptr %99, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %100 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %60, i32 0, i32 3
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds [4 x i32], ptr %102, i64 0, i64 2
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %105)
  store ptr %106, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %107 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %60, i32 0, i32 3
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds [4 x i32], ptr %109, i64 0, i64 3
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %112)
  store ptr %113, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %114, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %115, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %116, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %117, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %118 = load ptr, ptr %15, align 8, !tbaa !5
  %119 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %118, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %119, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %120, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %121, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !22
  %122 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %123 = load double, ptr %122, align 16
  %124 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %125 = load double, ptr %124, align 8
  %126 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %123, double %125)
  %127 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %128 = getelementptr inbounds %union.anon.0, ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds { double, double }, ptr %128, i32 0, i32 0
  %130 = extractvalue { double, double } %126, 0
  store double %130, ptr %129, align 16
  %131 = getelementptr inbounds { double, double }, ptr %128, i32 0, i32 1
  %132 = extractvalue { double, double } %126, 1
  store double %132, ptr %131, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !22
  %133 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %134 = load double, ptr %133, align 16
  %135 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %136 = load double, ptr %135, align 8
  %137 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %134, double %136)
  %138 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %139 = getelementptr inbounds %union.anon.0, ptr %138, i32 0, i32 0
  %140 = getelementptr inbounds { double, double }, ptr %139, i32 0, i32 0
  %141 = extractvalue { double, double } %137, 0
  store double %141, ptr %140, align 16
  %142 = getelementptr inbounds { double, double }, ptr %139, i32 0, i32 1
  %143 = extractvalue { double, double } %137, 1
  store double %143, ptr %142, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !22
  %144 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %145 = load double, ptr %144, align 16
  %146 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %147 = load double, ptr %146, align 8
  %148 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %145, double %147)
  %149 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %150 = getelementptr inbounds %union.anon.0, ptr %149, i32 0, i32 0
  %151 = getelementptr inbounds { double, double }, ptr %150, i32 0, i32 0
  %152 = extractvalue { double, double } %148, 0
  store double %152, ptr %151, align 16
  %153 = getelementptr inbounds { double, double }, ptr %150, i32 0, i32 1
  %154 = extractvalue { double, double } %148, 1
  store double %154, ptr %153, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !22
  %155 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %156 = load double, ptr %155, align 16
  %157 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %158 = load double, ptr %157, align 8
  %159 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %156, double %158)
  %160 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %161 = getelementptr inbounds %union.anon.0, ptr %160, i32 0, i32 0
  %162 = getelementptr inbounds { double, double }, ptr %161, i32 0, i32 0
  %163 = extractvalue { double, double } %159, 0
  store double %163, ptr %162, align 16
  %164 = getelementptr inbounds { double, double }, ptr %161, i32 0, i32 1
  %165 = extractvalue { double, double } %159, 1
  store double %165, ptr %164, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !22
  %166 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %167 = load double, ptr %166, align 16
  %168 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %169 = load double, ptr %168, align 8
  %170 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %167, double %169)
  %171 = call noundef float @_ZSt3absf(float noundef %170)
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %172, i32 0, i32 1
  %174 = load float, ptr %173, align 4, !tbaa !24
  %175 = fsub float %171, %174
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  store float %175, ptr %27, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !22
  %176 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %177 = load double, ptr %176, align 16
  %178 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %179 = load double, ptr %178, align 8
  %180 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %177, double %179)
  %181 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %182 = getelementptr inbounds %union.anon.0, ptr %181, i32 0, i32 0
  %183 = getelementptr inbounds { double, double }, ptr %182, i32 0, i32 0
  %184 = extractvalue { double, double } %180, 0
  store double %184, ptr %183, align 16
  %185 = getelementptr inbounds { double, double }, ptr %182, i32 0, i32 1
  %186 = extractvalue { double, double } %180, 1
  store double %186, ptr %185, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !22
  %187 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %188 = load double, ptr %187, align 16
  %189 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %190 = load double, ptr %189, align 8
  %191 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %188, double %190)
  %192 = getelementptr inbounds %"class.JPH::Vec3", ptr %34, i32 0, i32 0
  %193 = getelementptr inbounds %union.anon.0, ptr %192, i32 0, i32 0
  %194 = getelementptr inbounds { double, double }, ptr %193, i32 0, i32 0
  %195 = extractvalue { double, double } %191, 0
  store double %195, ptr %194, align 16
  %196 = getelementptr inbounds { double, double }, ptr %193, i32 0, i32 1
  %197 = extractvalue { double, double } %191, 1
  store double %197, ptr %196, align 8
  %198 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %199 = load double, ptr %198, align 16
  %200 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %201 = load double, ptr %200, align 8
  %202 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %32, double %199, double %201)
  %203 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %204 = getelementptr inbounds %union.anon.0, ptr %203, i32 0, i32 0
  %205 = getelementptr inbounds { double, double }, ptr %204, i32 0, i32 0
  %206 = extractvalue { double, double } %202, 0
  store double %206, ptr %205, align 16
  %207 = getelementptr inbounds { double, double }, ptr %204, i32 0, i32 1
  %208 = extractvalue { double, double } %202, 1
  store double %208, ptr %207, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !22
  %209 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %210 = load double, ptr %209, align 16
  %211 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %212 = load double, ptr %211, align 8
  %213 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %23, double %210, double %212)
  %214 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %215 = getelementptr inbounds %union.anon.0, ptr %214, i32 0, i32 0
  %216 = getelementptr inbounds { double, double }, ptr %215, i32 0, i32 0
  %217 = extractvalue { double, double } %213, 0
  store double %217, ptr %216, align 16
  %218 = getelementptr inbounds { double, double }, ptr %215, i32 0, i32 1
  %219 = extractvalue { double, double } %213, 1
  store double %219, ptr %218, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %21, i64 16, i1 false), !tbaa.struct !22
  %220 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %221 = load double, ptr %220, align 16
  %222 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %223 = load double, ptr %222, align 8
  %224 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %25, double %221, double %223)
  %225 = getelementptr inbounds %"class.JPH::Vec3", ptr %38, i32 0, i32 0
  %226 = getelementptr inbounds %union.anon.0, ptr %225, i32 0, i32 0
  %227 = getelementptr inbounds { double, double }, ptr %226, i32 0, i32 0
  %228 = extractvalue { double, double } %224, 0
  store double %228, ptr %227, align 16
  %229 = getelementptr inbounds { double, double }, ptr %226, i32 0, i32 1
  %230 = extractvalue { double, double } %224, 1
  store double %230, ptr %229, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !22
  %231 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %232 = load double, ptr %231, align 16
  %233 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %234 = load double, ptr %233, align 8
  %235 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %232, double %234)
  %236 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, i32 0, i32 0
  %237 = getelementptr inbounds %union.anon.0, ptr %236, i32 0, i32 0
  %238 = getelementptr inbounds { double, double }, ptr %237, i32 0, i32 0
  %239 = extractvalue { double, double } %235, 0
  store double %239, ptr %238, align 16
  %240 = getelementptr inbounds { double, double }, ptr %237, i32 0, i32 1
  %241 = extractvalue { double, double } %235, 1
  store double %241, ptr %240, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %242 = load ptr, ptr %13, align 8, !tbaa !5
  %243 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %242, i32 0, i32 7
  %244 = load float, ptr %243, align 4, !tbaa !26
  store float %244, ptr %42, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %245 = load ptr, ptr %14, align 8, !tbaa !5
  %246 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %245, i32 0, i32 7
  %247 = load float, ptr %246, align 4, !tbaa !26
  store float %247, ptr %43, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  %248 = load ptr, ptr %15, align 8, !tbaa !5
  %249 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %248, i32 0, i32 7
  %250 = load float, ptr %249, align 4, !tbaa !26
  store float %250, ptr %44, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  %251 = load ptr, ptr %16, align 8, !tbaa !5
  %252 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %251, i32 0, i32 7
  %253 = load float, ptr %252, align 4, !tbaa !26
  store float %253, ptr %45, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %254 = load float, ptr %42, align 4, !tbaa !21
  %255 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %31)
  %256 = load float, ptr %43, align 4, !tbaa !21
  %257 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %36)
  %258 = fmul float %256, %257
  %259 = call float @llvm.fmuladd.f32(float %254, float %255, float %258)
  %260 = load float, ptr %44, align 4, !tbaa !21
  %261 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %38)
  %262 = call float @llvm.fmuladd.f32(float %260, float %261, float %259)
  %263 = load float, ptr %45, align 4, !tbaa !21
  %264 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %40)
  %265 = call float @llvm.fmuladd.f32(float %263, float %264, float %262)
  %266 = load ptr, ptr %10, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %266, i32 0, i32 2
  %268 = load float, ptr %267, align 4, !tbaa !31
  %269 = load float, ptr %9, align 4, !tbaa !21
  %270 = call float @llvm.fmuladd.f32(float %268, float %269, float %265)
  store float %270, ptr %46, align 4, !tbaa !21
  %271 = load float, ptr %46, align 4, !tbaa !21
  %272 = fcmp olt float %271, 0x3D71979980000000
  br i1 %272, label %273, label %274

273:                                              ; preds = %85
  store i32 4, ptr %12, align 4
  br label %386

274:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  %275 = load float, ptr %27, align 4, !tbaa !21
  %276 = load float, ptr %46, align 4, !tbaa !21
  %277 = fdiv float %275, %276
  store float %277, ptr %47, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #8
  %278 = load float, ptr %47, align 4, !tbaa !21
  %279 = load float, ptr %42, align 4, !tbaa !21
  %280 = fmul float %278, %279
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %50, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !22
  %281 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %282 = load double, ptr %281, align 16
  %283 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %284 = load double, ptr %283, align 8
  %285 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %280, double %282, double %284)
  %286 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %287 = getelementptr inbounds %union.anon.0, ptr %286, i32 0, i32 0
  %288 = getelementptr inbounds { double, double }, ptr %287, i32 0, i32 0
  %289 = extractvalue { double, double } %285, 0
  store double %289, ptr %288, align 16
  %290 = getelementptr inbounds { double, double }, ptr %287, i32 0, i32 1
  %291 = extractvalue { double, double } %285, 1
  store double %291, ptr %290, align 8
  %292 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %293 = load double, ptr %292, align 16
  %294 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %295 = load double, ptr %294, align 8
  %296 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %293, double %295)
  %297 = getelementptr inbounds %"class.JPH::Vec3", ptr %48, i32 0, i32 0
  %298 = getelementptr inbounds %union.anon.0, ptr %297, i32 0, i32 0
  %299 = getelementptr inbounds { double, double }, ptr %298, i32 0, i32 0
  %300 = extractvalue { double, double } %296, 0
  store double %300, ptr %299, align 16
  %301 = getelementptr inbounds { double, double }, ptr %298, i32 0, i32 1
  %302 = extractvalue { double, double } %296, 1
  store double %302, ptr %301, align 8
  %303 = load ptr, ptr %13, align 8, !tbaa !5
  %304 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %303, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %304, ptr align 16 %48, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #8
  %305 = load float, ptr %47, align 4, !tbaa !21
  %306 = load float, ptr %43, align 4, !tbaa !21
  %307 = fmul float %305, %306
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %53, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !22
  %308 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %309 = load double, ptr %308, align 16
  %310 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %311 = load double, ptr %310, align 8
  %312 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %307, double %309, double %311)
  %313 = getelementptr inbounds %"class.JPH::Vec3", ptr %52, i32 0, i32 0
  %314 = getelementptr inbounds %union.anon.0, ptr %313, i32 0, i32 0
  %315 = getelementptr inbounds { double, double }, ptr %314, i32 0, i32 0
  %316 = extractvalue { double, double } %312, 0
  store double %316, ptr %315, align 16
  %317 = getelementptr inbounds { double, double }, ptr %314, i32 0, i32 1
  %318 = extractvalue { double, double } %312, 1
  store double %318, ptr %317, align 8
  %319 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %320 = load double, ptr %319, align 16
  %321 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %322 = load double, ptr %321, align 8
  %323 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %320, double %322)
  %324 = getelementptr inbounds %"class.JPH::Vec3", ptr %51, i32 0, i32 0
  %325 = getelementptr inbounds %union.anon.0, ptr %324, i32 0, i32 0
  %326 = getelementptr inbounds { double, double }, ptr %325, i32 0, i32 0
  %327 = extractvalue { double, double } %323, 0
  store double %327, ptr %326, align 16
  %328 = getelementptr inbounds { double, double }, ptr %325, i32 0, i32 1
  %329 = extractvalue { double, double } %323, 1
  store double %329, ptr %328, align 8
  %330 = load ptr, ptr %14, align 8, !tbaa !5
  %331 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %330, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %331, ptr align 16 %51, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #8
  %332 = load float, ptr %47, align 4, !tbaa !21
  %333 = load float, ptr %44, align 4, !tbaa !21
  %334 = fmul float %332, %333
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %38, i64 16, i1 false), !tbaa.struct !22
  %335 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %336 = load double, ptr %335, align 16
  %337 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %338 = load double, ptr %337, align 8
  %339 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %334, double %336, double %338)
  %340 = getelementptr inbounds %"class.JPH::Vec3", ptr %55, i32 0, i32 0
  %341 = getelementptr inbounds %union.anon.0, ptr %340, i32 0, i32 0
  %342 = getelementptr inbounds { double, double }, ptr %341, i32 0, i32 0
  %343 = extractvalue { double, double } %339, 0
  store double %343, ptr %342, align 16
  %344 = getelementptr inbounds { double, double }, ptr %341, i32 0, i32 1
  %345 = extractvalue { double, double } %339, 1
  store double %345, ptr %344, align 8
  %346 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %347 = load double, ptr %346, align 16
  %348 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %349 = load double, ptr %348, align 8
  %350 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %347, double %349)
  %351 = getelementptr inbounds %"class.JPH::Vec3", ptr %54, i32 0, i32 0
  %352 = getelementptr inbounds %union.anon.0, ptr %351, i32 0, i32 0
  %353 = getelementptr inbounds { double, double }, ptr %352, i32 0, i32 0
  %354 = extractvalue { double, double } %350, 0
  store double %354, ptr %353, align 16
  %355 = getelementptr inbounds { double, double }, ptr %352, i32 0, i32 1
  %356 = extractvalue { double, double } %350, 1
  store double %356, ptr %355, align 8
  %357 = load ptr, ptr %15, align 8, !tbaa !5
  %358 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %357, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %358, ptr align 16 %54, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #8
  %359 = load float, ptr %47, align 4, !tbaa !21
  %360 = load float, ptr %45, align 4, !tbaa !21
  %361 = fmul float %359, %360
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !22
  %362 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %363 = load double, ptr %362, align 16
  %364 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %365 = load double, ptr %364, align 8
  %366 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %361, double %363, double %365)
  %367 = getelementptr inbounds %"class.JPH::Vec3", ptr %58, i32 0, i32 0
  %368 = getelementptr inbounds %union.anon.0, ptr %367, i32 0, i32 0
  %369 = getelementptr inbounds { double, double }, ptr %368, i32 0, i32 0
  %370 = extractvalue { double, double } %366, 0
  store double %370, ptr %369, align 16
  %371 = getelementptr inbounds { double, double }, ptr %368, i32 0, i32 1
  %372 = extractvalue { double, double } %366, 1
  store double %372, ptr %371, align 8
  %373 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %374 = load double, ptr %373, align 16
  %375 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %376 = load double, ptr %375, align 8
  %377 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %374, double %376)
  %378 = getelementptr inbounds %"class.JPH::Vec3", ptr %57, i32 0, i32 0
  %379 = getelementptr inbounds %union.anon.0, ptr %378, i32 0, i32 0
  %380 = getelementptr inbounds { double, double }, ptr %379, i32 0, i32 0
  %381 = extractvalue { double, double } %377, 0
  store double %381, ptr %380, align 16
  %382 = getelementptr inbounds { double, double }, ptr %379, i32 0, i32 1
  %383 = extractvalue { double, double } %377, 1
  store double %383, ptr %382, align 8
  %384 = load ptr, ptr %16, align 8, !tbaa !5
  %385 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %384, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %385, ptr align 16 %57, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  store i32 0, ptr %12, align 4
  br label %386

386:                                              ; preds = %274, %273
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  %387 = load i32, ptr %12, align 4
  switch i32 %387, label %393 [
    i32 0, label %388
    i32 4, label %389
  ]

388:                                              ; preds = %386
  br label %389

389:                                              ; preds = %388, %386
  %390 = load ptr, ptr %10, align 8, !tbaa !5
  %391 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %390, i32 1
  store ptr %391, ptr %10, align 8, !tbaa !5
  br label %80, !llvm.loop !32

392:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  ret void

393:                                              ; preds = %386
  unreachable
}

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !15, i64 132}
!12 = !{!"_ZTSN3JPH21SoftBodyUpdateContextE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !14, i64 96, !14, i64 112, !15, i64 128, !15, i64 132, !16, i64 136, !18, i64 140, !18, i64 144, !18, i64 148, !18, i64 152, !18, i64 156, !18, i64 160, !18, i64 164, !14, i64 176, !20, i64 192}
!13 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!14 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTSSt6atomicIN3JPH21SoftBodyUpdateContext6EStateEE", !17, i64 0}
!17 = !{!"_ZTSN3JPH21SoftBodyUpdateContext6EStateE", !7, i64 0}
!18 = !{!"_ZTSSt6atomicIjE", !19, i64 0}
!19 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!20 = !{!"_ZTSN3JPH9ECanSleepE", !7, i64 0}
!21 = !{!15, !15, i64 0}
!22 = !{i64 0, i64 16, !23}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !15, i64 16}
!25 = !{!"_ZTSN3JPH22SoftBodySharedSettings6VolumeE", !7, i64 0, !15, i64 16, !15, i64 20}
!26 = !{!27, !15, i64 76}
!27 = !{!"_ZTSN3JPH14SoftBodyVertexE", !14, i64 0, !14, i64 16, !14, i64 32, !28, i64 48, !10, i64 64, !30, i64 68, !15, i64 72, !15, i64 76}
!28 = !{!"_ZTSN3JPH5PlaneE", !29, i64 0}
!29 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{!25, !15, i64 20}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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

%"class.JPH::Vec3" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"struct.JPH::SoftBodySharedSettings::Volume" = type { [4 x i32], float, 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24SoftBodyMotionProperties22ApplyVolumeConstraintsERKNS_21SoftBodyUpdateContextEjj(ptr noundef nonnull align 16 dereferenceable(372) %0, ptr nocapture noundef nonnull readonly align 16 dereferenceable(196) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #7 align 2 {
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %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 = getelementptr inbounds i8, ptr %1, i64 132
  %19 = load float, ptr %18, align 4, !tbaa !5
  %20 = tail call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %19)
  %21 = fdiv float 1.000000e+00, %20
  %22 = getelementptr inbounds i8, ptr %0, i64 184
  %23 = tail call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %24 = getelementptr inbounds i8, ptr %23, i64 104
  %25 = tail call noundef ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %26 = zext i32 %2 to i64
  %27 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %25, i64 %26
  %28 = tail call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %29 = getelementptr inbounds i8, ptr %28, i64 104
  %30 = tail call noundef ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %29)
  %31 = zext i32 %3 to i64
  %32 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %30, i64 %31
  %33 = icmp ult ptr %27, %32
  br i1 %33, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %34 = getelementptr inbounds i8, ptr %0, i64 192
  %.sroa.257.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %35 = getelementptr inbounds i8, ptr %9, i64 8
  %36 = getelementptr inbounds i8, ptr %10, i64 8
  %37 = getelementptr inbounds i8, ptr %11, i64 8
  %38 = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.246.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %39 = getelementptr inbounds i8, ptr %14, i64 8
  %40 = getelementptr inbounds i8, ptr %13, i64 8
  %41 = getelementptr inbounds i8, ptr %15, i64 8
  %42 = getelementptr inbounds i8, ptr %16, i64 8
  %43 = getelementptr inbounds i8, ptr %17, i64 8
  br label %44

._crit_edge:                                      ; preds = %149, %4
  ret void

44:                                               ; preds = %.lr.ph, %149
  %.084 = phi ptr [ %27, %.lr.ph ], [ %150, %149 ]
  %45 = load i32, ptr %.084, align 4, !tbaa !19
  %46 = zext i32 %45 to i64
  %47 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %46)
  %48 = getelementptr inbounds i8, ptr %.084, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !19
  %50 = zext i32 %49 to i64
  %51 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %50)
  %52 = getelementptr inbounds i8, ptr %.084, i64 8
  %53 = load i32, ptr %52, align 4, !tbaa !19
  %54 = zext i32 %53 to i64
  %55 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %54)
  %56 = getelementptr inbounds i8, ptr %.084, i64 12
  %57 = load i32, ptr %56, align 4, !tbaa !19
  %58 = zext i32 %57 to i64
  %59 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %58)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  %60 = getelementptr inbounds i8, ptr %47, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %60, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %61 = getelementptr inbounds i8, ptr %51, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %61, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %62 = getelementptr inbounds i8, ptr %55, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 16 dereferenceable(16) %62, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %63 = getelementptr inbounds i8, ptr %59, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %63, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  %.sroa.056.0.copyload = load double, ptr %5, align 16
  %.sroa.257.0.copyload = load double, ptr %.sroa.257.0..sroa_idx, align 8, !tbaa !21
  %64 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %6, double %.sroa.056.0.copyload, double %.sroa.257.0.copyload)
  %65 = extractvalue { double, double } %64, 0
  store double %65, ptr %9, align 16
  %66 = extractvalue { double, double } %64, 1
  store double %66, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %.sroa.054.0.copyload = load double, ptr %5, align 16
  %.sroa.255.0.copyload = load double, ptr %.sroa.257.0..sroa_idx, align 8, !tbaa !21
  %67 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %.sroa.054.0.copyload, double %.sroa.255.0.copyload)
  %68 = extractvalue { double, double } %67, 0
  store double %68, ptr %10, align 16
  %69 = extractvalue { double, double } %67, 1
  store double %69, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %.sroa.052.0.copyload = load double, ptr %5, align 16
  %.sroa.253.0.copyload = load double, ptr %.sroa.257.0..sroa_idx, align 8, !tbaa !21
  %70 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %.sroa.052.0.copyload, double %.sroa.253.0.copyload)
  %71 = extractvalue { double, double } %70, 0
  store double %71, ptr %11, align 16
  %72 = extractvalue { double, double } %70, 1
  store double %72, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  %.sroa.049.0.copyload = load double, ptr %10, align 16
  %.sroa.250.0.copyload = load double, ptr %36, align 8, !tbaa !21
  %73 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %.sroa.049.0.copyload, double %.sroa.250.0.copyload)
  %74 = extractvalue { double, double } %73, 0
  store double %74, ptr %12, align 16
  %75 = extractvalue { double, double } %73, 1
  store double %75, ptr %38, align 8
  %.sroa.047.0.copyload = load double, ptr %11, align 16
  %.sroa.248.0.copyload = load double, ptr %37, align 8, !tbaa !21
  %76 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %.sroa.047.0.copyload, double %.sroa.248.0.copyload)
  %77 = call noundef float @_ZSt3absf(float noundef %76)
  %78 = getelementptr inbounds i8, ptr %.084, i64 16
  %79 = load float, ptr %78, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  %.sroa.045.0.copyload = load double, ptr %6, align 16
  %.sroa.246.0.copyload = load double, ptr %.sroa.246.0..sroa_idx, align 8, !tbaa !21
  %80 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %.sroa.045.0.copyload, double %.sroa.246.0.copyload)
  %81 = extractvalue { double, double } %80, 0
  store double %81, ptr %14, align 16
  %82 = extractvalue { double, double } %80, 1
  store double %82, ptr %39, align 8
  %.sroa.041.0.copyload = load double, ptr %6, align 16
  %.sroa.242.0.copyload = load double, ptr %.sroa.246.0..sroa_idx, align 8, !tbaa !21
  %83 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %.sroa.041.0.copyload, double %.sroa.242.0.copyload)
  %84 = extractvalue { double, double } %83, 0
  %85 = extractvalue { double, double } %83, 1
  %86 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %84, double %85)
  %87 = extractvalue { double, double } %86, 0
  store double %87, ptr %13, align 16
  %88 = extractvalue { double, double } %86, 1
  store double %88, ptr %40, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  %.sroa.039.0.copyload = load double, ptr %11, align 16
  %.sroa.240.0.copyload = load double, ptr %37, align 8, !tbaa !21
  %89 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %.sroa.039.0.copyload, double %.sroa.240.0.copyload)
  %90 = extractvalue { double, double } %89, 0
  store double %90, ptr %15, align 16
  %91 = extractvalue { double, double } %89, 1
  store double %91, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #8
  %.sroa.037.0.copyload = load double, ptr %9, align 16
  %.sroa.238.0.copyload = load double, ptr %35, align 8, !tbaa !21
  %92 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.037.0.copyload, double %.sroa.238.0.copyload)
  %93 = extractvalue { double, double } %92, 0
  store double %93, ptr %16, align 16
  %94 = extractvalue { double, double } %92, 1
  store double %94, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #8
  %.sroa.035.0.copyload = load double, ptr %10, align 16
  %.sroa.236.0.copyload = load double, ptr %36, align 8, !tbaa !21
  %95 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %.sroa.035.0.copyload, double %.sroa.236.0.copyload)
  %96 = extractvalue { double, double } %95, 0
  store double %96, ptr %17, align 16
  %97 = extractvalue { double, double } %95, 1
  store double %97, ptr %43, align 8
  %98 = getelementptr inbounds i8, ptr %47, i64 76
  %99 = load float, ptr %98, align 4, !tbaa !24
  %100 = getelementptr inbounds i8, ptr %51, i64 76
  %101 = load float, ptr %100, align 4, !tbaa !24
  %102 = getelementptr inbounds i8, ptr %55, i64 76
  %103 = load float, ptr %102, align 4, !tbaa !24
  %104 = getelementptr inbounds i8, ptr %59, i64 76
  %105 = load float, ptr %104, align 4, !tbaa !24
  %106 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %107 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %15)
  %108 = fmul float %101, %107
  %109 = call float @llvm.fmuladd.f32(float %99, float %106, float %108)
  %110 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %111 = call float @llvm.fmuladd.f32(float %103, float %110, float %109)
  %112 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
  %113 = call float @llvm.fmuladd.f32(float %105, float %112, float %111)
  %114 = getelementptr inbounds i8, ptr %.084, i64 20
  %115 = load float, ptr %114, align 4, !tbaa !29
  %116 = call float @llvm.fmuladd.f32(float %115, float %21, float %113)
  %117 = fcmp olt float %116, 0x3D71979980000000
  br i1 %117, label %149, label %118

118:                                              ; preds = %44
  %119 = fsub float %77, %79
  %120 = fdiv float %119, %116
  %121 = fmul float %99, %120
  %.sroa.016.0.copyload = load double, ptr %13, align 16
  %.sroa.217.0.copyload = load double, ptr %40, align 8, !tbaa !21
  %122 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %121, double %.sroa.016.0.copyload, double %.sroa.217.0.copyload)
  %123 = extractvalue { double, double } %122, 0
  %124 = extractvalue { double, double } %122, 1
  %125 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %123, double %124)
  %126 = extractvalue { double, double } %125, 0
  %127 = extractvalue { double, double } %125, 1
  store double %126, ptr %60, align 16
  %.sroa.421.0..sroa_idx = getelementptr inbounds i8, ptr %47, i64 24
  store double %127, ptr %.sroa.421.0..sroa_idx, align 8, !tbaa !21
  %128 = fmul float %101, %120
  %.sroa.010.0.copyload = load double, ptr %15, align 16
  %.sroa.211.0.copyload = load double, ptr %41, align 8, !tbaa !21
  %129 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %128, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload)
  %130 = extractvalue { double, double } %129, 0
  %131 = extractvalue { double, double } %129, 1
  %132 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %6, double %130, double %131)
  %133 = extractvalue { double, double } %132, 0
  %134 = extractvalue { double, double } %132, 1
  store double %133, ptr %61, align 16
  %.sroa.415.0..sroa_idx = getelementptr inbounds i8, ptr %51, i64 24
  store double %134, ptr %.sroa.415.0..sroa_idx, align 8, !tbaa !21
  %135 = fmul float %103, %120
  %.sroa.04.0.copyload = load double, ptr %16, align 16
  %.sroa.25.0.copyload = load double, ptr %42, align 8, !tbaa !21
  %136 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %135, double %.sroa.04.0.copyload, double %.sroa.25.0.copyload)
  %137 = extractvalue { double, double } %136, 0
  %138 = extractvalue { double, double } %136, 1
  %139 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %137, double %138)
  %140 = extractvalue { double, double } %139, 0
  %141 = extractvalue { double, double } %139, 1
  store double %140, ptr %62, align 16
  %.sroa.49.0..sroa_idx = getelementptr inbounds i8, ptr %55, i64 24
  store double %141, ptr %.sroa.49.0..sroa_idx, align 8, !tbaa !21
  %142 = fmul float %105, %120
  %.sroa.0.0.copyload = load double, ptr %17, align 16
  %.sroa.2.0.copyload = load double, ptr %43, align 8, !tbaa !21
  %143 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %142, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %144 = extractvalue { double, double } %143, 0
  %145 = extractvalue { double, double } %143, 1
  %146 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %144, double %145)
  %147 = extractvalue { double, double } %146, 0
  %148 = extractvalue { double, double } %146, 1
  store double %147, ptr %63, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %59, i64 24
  store double %148, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !21
  br label %149

149:                                              ; preds = %44, %118
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  %150 = getelementptr inbounds i8, ptr %.084, i64 24
  %151 = icmp ult ptr %150, %32
  br i1 %151, label %44, label %._crit_edge, !llvm.loop !30
}

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!17, !17, i64 0}
!20 = !{i64 0, i64 16, !21}
!21 = !{!8, !8, i64 0}
!22 = !{!23, !12, i64 16}
!23 = !{!"_ZTSN3JPH22SoftBodySharedSettings6VolumeE", !8, i64 0, !12, i64 16, !12, i64 20}
!24 = !{!25, !12, i64 76}
!25 = !{!"_ZTSN3JPH14SoftBodyVertexE", !11, i64 0, !11, i64 16, !11, i64 32, !26, i64 48, !17, i64 64, !28, i64 68, !12, i64 72, !12, i64 76}
!26 = !{!"_ZTSN3JPH5PlaneE", !27, i64 0}
!27 = !{!"_ZTSN3JPH4Vec4E", !8, i64 0}
!28 = !{!"bool", !8, i64 0}
!29 = !{!23, !12, i64 20}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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