; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec3" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::SoftBodyCreationSettings" = type <{ %"class.JPH::RefConst", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Quat", i64, i16, [6 x i8], %"class.JPH::CollisionGroup", i32, float, float, float, float, float, float, i8, i8, i8, i8 }>
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.10", i32, i32 }
%"class.JPH::RefConst.10" = type { ptr }
%"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::Float3" = type { float, float, float }
%"class.JPH::Sphere" = type { %"class.JPH::Float3", float }
%"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" }
%"struct.std::atomic.11" = type { %"struct.std::__atomic_base.12" }
%"struct.std::__atomic_base.12" = type { i32 }
%"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::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", 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: mustprogress uwtable
declare dso_local void @_ZN3JPH24SoftBodyMotionProperties23CalculateMassAndInertiaEv(ptr noundef nonnull align 16 dereferenceable(372)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24SoftBodyMotionProperties10InitializeERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 16 dereferenceable(372) %0, ptr noundef nonnull align 16 dereferenceable(111) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.JPH::Mat44", align 16
  %6 = alloca %"class.JPH::Quat", align 16
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %17, i32 0, i32 0
  %19 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 2
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_22SoftBodySharedSettingsEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %21, i32 0, i32 8
  %23 = load i32, ptr %22, align 16, !tbaa !9
  %24 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 9
  store i32 %23, ptr %24, align 16, !tbaa !22
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %25, i32 0, i32 13
  %27 = load float, ptr %26, align 4, !tbaa !37
  %28 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 11
  store float %27, ptr %28, align 8, !tbaa !38
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %29, i32 0, i32 15
  %31 = load i8, ptr %30, align 4, !tbaa !39, !range !40, !noundef !41
  %32 = trunc i8 %31 to i1
  %33 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 13
  %34 = zext i1 %32 to i8
  store i8 %34, ptr %33, align 16, !tbaa !42
  %35 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 3
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %36, i32 0, i32 0
  %38 = call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %37)
  %39 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %38, i32 0, i32 1
  %40 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
  call void @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %40)
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #7
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %41, i32 0, i32 16
  %43 = load i8, ptr %42, align 1, !tbaa !43, !range !40, !noundef !41
  %44 = trunc i8 %43 to i1
  br i1 %44, label %45, label %52

45:                                               ; preds = %2
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %46, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 %47, i64 16, i1 false), !tbaa.struct !44
  %48 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %49 = load double, ptr %48, align 16
  %50 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %51 = load double, ptr %50, align 8
  call void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %5, double %49, double %51)
  br label %53

52:                                               ; preds = %2
  call void @_ZN3JPH5Mat449sIdentityEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %5)
  br label %53

53:                                               ; preds = %52, %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %54 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 3
  %55 = call noundef i64 @_ZNK3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54)
  store i64 %55, ptr %8, align 8, !tbaa !46
  br label %56

56:                                               ; preds = %116, %53
  %57 = load i64, ptr %7, align 8, !tbaa !46
  %58 = load i64, ptr %8, align 8, !tbaa !46
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %119

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %62, i32 0, i32 0
  %64 = call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %63)
  %65 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %64, i32 0, i32 1
  %66 = load i64, ptr %7, align 8, !tbaa !46
  %67 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %66)
  store ptr %67, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %68 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 3
  %69 = load i64, ptr %7, align 8, !tbaa !46
  %70 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %69)
  store ptr %70, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %71, i32 0, i32 0
  call void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(12) %72)
  %73 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %74 = load double, ptr %73, align 16
  %75 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %76 = load double, ptr %75, align 8
  %77 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %5, double %74, double %76)
  %78 = getelementptr inbounds %"class.JPH::Vec3", ptr %11, i32 0, i32 0
  %79 = getelementptr inbounds %union.anon.0, ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 0
  %81 = extractvalue { double, double } %77, 0
  store double %81, ptr %80, align 16
  %82 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 1
  %83 = extractvalue { double, double } %77, 1
  store double %83, ptr %82, align 8
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %84, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %85, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !44
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %86, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %87, ptr align 16 %85, i64 16, i1 false), !tbaa.struct !44
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %88, i32 0, i32 1
  call void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(12) %89)
  %90 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %91 = load double, ptr %90, align 16
  %92 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %93 = load double, ptr %92, align 8
  %94 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %5, double %91, double %93)
  %95 = getelementptr inbounds %"class.JPH::Vec3", ptr %13, i32 0, i32 0
  %96 = getelementptr inbounds %union.anon.0, ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds { double, double }, ptr %96, i32 0, i32 0
  %98 = extractvalue { double, double } %94, 0
  store double %98, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %96, i32 0, i32 1
  %100 = extractvalue { double, double } %94, 1
  store double %100, ptr %99, align 8
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %101, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %102, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !44
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN3JPH14SoftBodyVertex14ResetCollisionEv(ptr noundef nonnull align 16 dereferenceable(80) %103)
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %104, i32 0, i32 2
  %106 = load float, ptr %105, align 4, !tbaa !47
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %107, i32 0, i32 7
  store float %106, ptr %108, align 4, !tbaa !49
  %109 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 7
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %110, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %111, i64 16, i1 false), !tbaa.struct !44
  %112 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %113 = load double, ptr %112, align 16
  %114 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %115 = load double, ptr %114, align 8
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %109, double %113, double %115)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %116

116:                                              ; preds = %61
  %117 = load i64, ptr %7, align 8, !tbaa !46
  %118 = add i64 %117, 1
  store i64 %118, ptr %7, align 8, !tbaa !46
  br label %56, !llvm.loop !52

119:                                              ; preds = %60
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %120, i32 0, i32 0
  %122 = call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %121)
  %123 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %122, i32 0, i32 6
  %124 = call noundef zeroext i1 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %123)
  br i1 %124, label %129, label %125

125:                                              ; preds = %119
  %126 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 6
  %127 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 3
  %128 = call noundef i64 @_ZNK3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %127)
  call void @_ZN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %126, i64 noundef %128)
  br label %129

129:                                              ; preds = %125, %119
  %130 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 7
  %131 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %131, ptr align 16 %130, i64 32, i1 false), !tbaa.struct !54
  call void @_ZN3JPH24SoftBodyMotionProperties23CalculateMassAndInertiaEv(ptr noundef nonnull align 16 dereferenceable(372) %16)
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #7
  ret void
}

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

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

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat449sIdentityEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(28) ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH14SoftBodyVertex14ResetCollisionEv(ptr noundef nonnull align 16 dereferenceable(80)) #4 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !19, i64 80}
!10 = !{!"_ZTSN3JPH24SoftBodyCreationSettingsE", !11, i64 0, !12, i64 16, !13, i64 32, !15, i64 48, !16, i64 56, !17, i64 64, !19, i64 80, !20, i64 84, !20, i64 88, !20, i64 92, !20, i64 96, !20, i64 100, !20, i64 104, !21, i64 108, !21, i64 109, !21, i64 110}
!11 = !{!"_ZTSN3JPH8RefConstINS_22SoftBodySharedSettingsEEE", !6, i64 0}
!12 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!13 = !{!"_ZTSN3JPH4QuatE", !14, i64 0}
!14 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTSN3JPH14CollisionGroupE", !18, i64 0, !19, i64 8, !19, i64 12}
!18 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !6, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!23, !19, i64 352}
!23 = !{!"_ZTSN3JPH24SoftBodyMotionPropertiesE", !24, i64 0, !11, i64 184, !30, i64 192, !31, i64 216, !32, i64 240, !33, i64 264, !34, i64 288, !34, i64 320, !19, i64 352, !19, i64 356, !20, i64 360, !20, i64 364, !21, i64 368, !35, i64 369, !21, i64 370, !21, i64 371}
!24 = !{!"_ZTSN3JPH16MotionPropertiesE", !12, i64 0, !12, i64 16, !12, i64 32, !13, i64 48, !25, i64 64, !25, i64 76, !20, i64 88, !20, i64 92, !20, i64 96, !20, i64 100, !20, i64 104, !20, i64 108, !19, i64 112, !19, i64 116, !26, i64 120, !21, i64 121, !27, i64 122, !7, i64 123, !7, i64 124, !7, i64 128, !20, i64 176, !28, i64 180, !29, i64 181}
!25 = !{!"_ZTSN3JPH6Float3E", !20, i64 0, !20, i64 4, !20, i64 8}
!26 = !{!"_ZTSN3JPH14EMotionQualityE", !7, i64 0}
!27 = !{!"_ZTSN3JPH12EAllowedDOFsE", !7, i64 0}
!28 = !{!"_ZTSN3JPH9EBodyTypeE", !7, i64 0}
!29 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!30 = !{!"_ZTSN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEE", !15, i64 0, !15, i64 8, !6, i64 16}
!31 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties14CollidingShapeENS_12STLAllocatorIS2_EEEE", !15, i64 0, !15, i64 8, !6, i64 16}
!32 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties15CollidingSensorENS_12STLAllocatorIS2_EEEE", !15, i64 0, !15, i64 8, !6, i64 16}
!33 = !{!"_ZTSN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEEE", !15, i64 0, !15, i64 8, !6, i64 16}
!34 = !{!"_ZTSN3JPH5AABoxE", !12, i64 0, !12, i64 16}
!35 = !{!"_ZTSSt6atomicIbE", !36, i64 0}
!36 = !{!"_ZTSSt13__atomic_baseIbE", !21, i64 0}
!37 = !{!10, !20, i64 100}
!38 = !{!23, !20, i64 360}
!39 = !{!10, !21, i64 108}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!23, !21, i64 368}
!43 = !{!10, !21, i64 109}
!44 = !{i64 0, i64 16, !45}
!45 = !{!7, !7, i64 0}
!46 = !{!15, !15, i64 0}
!47 = !{!48, !20, i64 24}
!48 = !{!"_ZTSN3JPH22SoftBodySharedSettings6VertexE", !25, i64 0, !25, i64 12, !20, i64 24}
!49 = !{!50, !20, i64 76}
!50 = !{!"_ZTSN3JPH14SoftBodyVertexE", !12, i64 0, !12, i64 16, !12, i64 32, !51, i64 48, !19, i64 64, !21, i64 68, !20, i64 72, !20, i64 76}
!51 = !{!"_ZTSN3JPH5PlaneE", !14, i64 0}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}
!54 = !{i64 0, i64 16, !45, i64 16, i64 16, !45}


; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"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 uwtable
declare dso_local void @_ZN3JPH24SoftBodyMotionProperties23CalculateMassAndInertiaEv(ptr noundef nonnull align 16 dereferenceable(372)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24SoftBodyMotionProperties10InitializeERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 16 dereferenceable(372) %0, ptr noundef nonnull align 16 dereferenceable(111) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"class.JPH::Mat44", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = getelementptr inbounds i8, ptr %0, i64 184
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_22SoftBodySharedSettingsEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %8 = getelementptr inbounds i8, ptr %1, i64 80
  %9 = load i32, ptr %8, align 16, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 352
  store i32 %9, ptr %10, align 16, !tbaa !21
  %11 = getelementptr inbounds i8, ptr %1, i64 100
  %12 = load float, ptr %11, align 4, !tbaa !36
  %13 = getelementptr inbounds i8, ptr %0, i64 360
  store float %12, ptr %13, align 8, !tbaa !37
  %14 = getelementptr inbounds i8, ptr %1, i64 108
  %15 = load i8, ptr %14, align 4, !tbaa !38, !range !39, !noundef !40
  %16 = getelementptr inbounds i8, ptr %0, i64 368
  store i8 %15, ptr %16, align 16, !tbaa !41
  %17 = getelementptr inbounds i8, ptr %0, i64 192
  %18 = tail call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = tail call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19)
  tail call void @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %20)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #7
  %21 = getelementptr inbounds i8, ptr %1, i64 109
  %22 = load i8, ptr %21, align 1, !tbaa !42, !range !39, !noundef !40
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %24, label %26

24:                                               ; preds = %2
  %25 = getelementptr inbounds i8, ptr %1, i64 32
  %.sroa.016.0.copyload = load double, ptr %25, align 16
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 40
  %.sroa.217.0.copyload = load double, ptr %.sroa.217.0..sroa_idx, align 8, !tbaa !43
  call void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %3, double %.sroa.016.0.copyload, double %.sroa.217.0.copyload)
  br label %27

26:                                               ; preds = %2
  call void @_ZN3JPH5Mat449sIdentityEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %3)
  br label %27

27:                                               ; preds = %26, %24
  %28 = call noundef i64 @_ZNK3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %.not = icmp eq i64 %28, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %27
  %29 = getelementptr inbounds i8, ptr %4, i64 8
  %30 = getelementptr inbounds i8, ptr %5, i64 8
  %31 = getelementptr inbounds i8, ptr %0, i64 288
  br label %35

._crit_edge:                                      ; preds = %35, %27
  %32 = call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %33 = getelementptr inbounds i8, ptr %32, i64 128
  %34 = call noundef zeroext i1 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
  br i1 %34, label %60, label %57

35:                                               ; preds = %.lr.ph, %35
  %.028 = phi i64 [ 0, %.lr.ph ], [ %56, %35 ]
  %36 = call noundef ptr @_ZNK3JPH8RefConstINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %.028)
  %39 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.028)
  call void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(12) %38)
  %40 = load double, ptr %4, align 16
  %41 = load double, ptr %29, align 8
  %42 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %3, double %40, double %41)
  %43 = extractvalue { double, double } %42, 0
  %44 = extractvalue { double, double } %42, 1
  %45 = getelementptr inbounds i8, ptr %39, i64 16
  store double %43, ptr %45, align 16
  %.sroa.43.0..sroa_idx = getelementptr inbounds i8, ptr %39, i64 24
  store double %44, ptr %.sroa.43.0..sroa_idx, align 8, !tbaa !43
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %39, ptr noundef nonnull align 16 dereferenceable(16) %45, i64 16, i1 false), !tbaa.struct !44
  %46 = getelementptr inbounds i8, ptr %38, i64 12
  call void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %46)
  %47 = load double, ptr %5, align 16
  %48 = load double, ptr %30, align 8
  %49 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %3, double %47, double %48)
  %50 = extractvalue { double, double } %49, 0
  %51 = extractvalue { double, double } %49, 1
  %52 = getelementptr inbounds i8, ptr %39, i64 32
  store double %50, ptr %52, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %39, i64 40
  store double %51, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !43
  call void @_ZN3JPH14SoftBodyVertex14ResetCollisionEv(ptr noundef nonnull align 16 dereferenceable(80) %39)
  %53 = getelementptr inbounds i8, ptr %38, i64 24
  %54 = load float, ptr %53, align 4, !tbaa !45
  %55 = getelementptr inbounds i8, ptr %39, i64 76
  store float %54, ptr %55, align 4, !tbaa !47
  %.sroa.0.0.copyload = load double, ptr %45, align 16
  %.sroa.2.0.copyload = load double, ptr %.sroa.43.0..sroa_idx, align 8, !tbaa !43
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %31, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %56 = add nuw i64 %.028, 1
  %exitcond.not = icmp eq i64 %56, %28
  br i1 %exitcond.not, label %._crit_edge, label %35, !llvm.loop !50

57:                                               ; preds = %._crit_edge
  %58 = getelementptr inbounds i8, ptr %0, i64 264
  %59 = call noundef i64 @_ZNK3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  call void @_ZN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %59)
  br label %60

60:                                               ; preds = %57, %._crit_edge
  %61 = getelementptr inbounds i8, ptr %0, i64 288
  %62 = getelementptr inbounds i8, ptr %0, i64 320
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %62, ptr noundef nonnull align 16 dereferenceable(32) %61, i64 32, i1 false), !tbaa.struct !52
  call void @_ZN3JPH24SoftBodyMotionProperties23CalculateMassAndInertiaEv(ptr noundef nonnull align 16 dereferenceable(372) %0)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #7
  ret void
}

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

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

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat449sIdentityEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(28) ptr @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) local_unnamed_addr #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH14SoftBodyVertex14ResetCollisionEv(ptr noundef nonnull align 16 dereferenceable(80)) local_unnamed_addr #4 align 2

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

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

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

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


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