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

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

%"class.JPH::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.7", i32, i32 }
%"class.JPH::RefConst.7" = type { ptr }
%"class.JPH::SoftBodyMotionProperties" = type { %"class.JPH::MotionProperties.base", %"class.JPH::RefConst", %"class.JPH::Array", %"class.JPH::Array.1", %"class.JPH::Array.4", %"class.JPH::AABox", %"class.JPH::AABox", i32, float, float, i8, i8, i8, i8 }
%"class.JPH::MotionProperties.base" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Float3", %"class.JPH::Float3", float, float, float, float, float, float, i32, i32, i8, i8, i8, i8, i8, [3 x i8], [3 x %"class.JPH::Sphere"], float, i8, i8 }>
%"class.JPH::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::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::SoftBodySharedSettings" = type { %"class.JPH::RefTarget", %"class.JPH::Array.8", %"class.JPH::Array.11", %"class.JPH::Array.14", %"class.JPH::Array.17", %"class.JPH::Array.20", %"class.JPH::Array.23", %"class.JPH::Array.26", %"class.JPH::Array.29", %"class.JPH::Array.32", float, %"class.JPH::Array.35", %"class.JPH::Array.38", %"class.JPH::Array.41" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array.8" = type { i64, i64, ptr }
%"class.JPH::Array.11" = type { i64, i64, ptr }
%"class.JPH::Array.14" = type { i64, i64, ptr }
%"class.JPH::Array.17" = type { i64, i64, ptr }
%"class.JPH::Array.20" = type { i64, i64, ptr }
%"class.JPH::Array.23" = type { i64, i64, ptr }
%"class.JPH::Array.26" = type { i64, i64, ptr }
%"class.JPH::Array.29" = type { i64, i64, ptr }
%"class.JPH::Array.32" = type { i64, i64, ptr }
%"class.JPH::Array.35" = type { i64, i64, ptr }
%"class.JPH::Array.38" = type { i64, i64, ptr }
%"class.JPH::Array.41" = 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(352)) #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(352) %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 1
  %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 7
  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 !34
  %28 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 8
  store float %27, ptr %28, align 4, !tbaa !35
  %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 !36, !range !37, !noundef !38
  %32 = trunc i8 %31 to i1
  %33 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 10
  %34 = zext i1 %32 to i8
  store i8 %34, ptr %33, align 4, !tbaa !39
  %35 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 2
  %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 !40, !range !37, !noundef !38
  %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 !41
  %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 !43
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %54 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 2
  %55 = call noundef i64 @_ZNK3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54)
  store i64 %55, ptr %8, align 8, !tbaa !43
  br label %56

56:                                               ; preds = %121, %53
  %57 = load i64, ptr %7, align 8, !tbaa !43
  %58 = load i64, ptr %8, align 8, !tbaa !43
  %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 %124

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 !43
  %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 2
  %69 = load i64, ptr %7, align 8, !tbaa !43
  %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 !41
  %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 !41
  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 !41
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %103, i32 0, i32 4
  store i32 -1, ptr %104, align 16, !tbaa !44
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %105, i32 0, i32 5
  store i8 0, ptr %106, align 4, !tbaa !47
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %107, i32 0, i32 6
  store float 0xC7EFFFFFE0000000, ptr %108, align 8, !tbaa !48
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %109, i32 0, i32 2
  %111 = load float, ptr %110, align 4, !tbaa !49
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %112, i32 0, i32 7
  store float %111, ptr %113, align 4, !tbaa !51
  %114 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 5
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %115, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %116, i64 16, i1 false), !tbaa.struct !41
  %117 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %118 = load double, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %120 = load double, ptr %119, align 8
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %114, double %118, double %120)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %121

121:                                              ; preds = %61
  %122 = load i64, ptr %7, align 8, !tbaa !43
  %123 = add i64 %122, 1
  store i64 %123, ptr %7, align 8, !tbaa !43
  br label %56, !llvm.loop !52

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

130:                                              ; preds = %124
  %131 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 4
  %132 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 2
  %133 = call noundef i64 @_ZNK3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %132)
  call void @_ZN3JPH5ArrayINS_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %133)
  br label %134

134:                                              ; preds = %130, %124
  %135 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 5
  %136 = getelementptr inbounds %"class.JPH::SoftBodyMotionProperties", ptr %16, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %136, ptr align 16 %135, i64 32, i1 false), !tbaa.struct !54
  call void @_ZN3JPH24SoftBodyMotionProperties23CalculateMassAndInertiaEv(ptr noundef nonnull align 16 dereferenceable(352) %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: 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 336}
!23 = !{!"_ZTSN3JPH24SoftBodyMotionPropertiesE", !24, i64 0, !11, i64 184, !30, i64 192, !31, i64 216, !32, i64 240, !33, i64 272, !33, i64 304, !19, i64 336, !20, i64 340, !20, i64 344, !21, i64 348, !21, i64 349, !21, i64 350, !21, i64 351}
!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_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEEE", !15, i64 0, !15, i64 8, !6, i64 16}
!33 = !{!"_ZTSN3JPH5AABoxE", !12, i64 0, !12, i64 16}
!34 = !{!10, !20, i64 100}
!35 = !{!23, !20, i64 340}
!36 = !{!10, !21, i64 108}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!23, !21, i64 348}
!40 = !{!10, !21, i64 109}
!41 = !{i64 0, i64 16, !42}
!42 = !{!7, !7, i64 0}
!43 = !{!15, !15, i64 0}
!44 = !{!45, !19, i64 64}
!45 = !{!"_ZTSN3JPH14SoftBodyVertexE", !12, i64 0, !12, i64 16, !12, i64 32, !46, i64 48, !19, i64 64, !21, i64 68, !20, i64 72, !20, i64 76}
!46 = !{!"_ZTSN3JPH5PlaneE", !14, i64 0}
!47 = !{!45, !21, i64 68}
!48 = !{!45, !20, i64 72}
!49 = !{!50, !20, i64 24}
!50 = !{!"_ZTSN3JPH22SoftBodySharedSettings6VertexE", !25, i64 0, !25, i64 12, !20, i64 24}
!51 = !{!45, !20, i64 76}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}
!54 = !{i64 0, i64 16, !42, i64 16, i64 16, !42}


; 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(352)) 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(352) %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 336
  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 !33
  %13 = getelementptr inbounds i8, ptr %0, i64 340
  store float %12, ptr %13, align 4, !tbaa !34
  %14 = getelementptr inbounds i8, ptr %1, i64 108
  %15 = load i8, ptr %14, align 4, !tbaa !35, !range !36, !noundef !37
  %16 = getelementptr inbounds i8, ptr %0, i64 348
  store i8 %15, ptr %16, align 4, !tbaa !38
  %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 !39, !range !36, !noundef !37
  %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.018.0.copyload = load double, ptr %25, align 16
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 40
  %.sroa.219.0.copyload = load double, ptr %.sroa.219.0..sroa_idx, align 8, !tbaa !40
  call void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %3, double %.sroa.018.0.copyload, double %.sroa.219.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 272
  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 %63, label %60

35:                                               ; preds = %.lr.ph, %35
  %.030 = phi i64 [ 0, %.lr.ph ], [ %59, %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 %.030)
  %39 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN3JPH5ArrayINS_14SoftBodyVertexENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.030)
  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 !40
  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 !41
  %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 !40
  %53 = getelementptr inbounds i8, ptr %39, i64 64
  store i32 -1, ptr %53, align 16, !tbaa !42
  %54 = getelementptr inbounds i8, ptr %39, i64 68
  store i8 0, ptr %54, align 4, !tbaa !45
  %55 = getelementptr inbounds i8, ptr %39, i64 72
  store float 0xC7EFFFFFE0000000, ptr %55, align 8, !tbaa !46
  %56 = getelementptr inbounds i8, ptr %38, i64 24
  %57 = load float, ptr %56, align 4, !tbaa !47
  %58 = getelementptr inbounds i8, ptr %39, i64 76
  store float %57, ptr %58, align 4, !tbaa !49
  %.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 !40
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %31, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %59 = add nuw i64 %.030, 1
  %exitcond.not = icmp eq i64 %59, %28
  br i1 %exitcond.not, label %._crit_edge, label %35, !llvm.loop !50

60:                                               ; preds = %._crit_edge
  %61 = getelementptr inbounds i8, ptr %0, i64 240
  %62 = 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) %61, i64 noundef %62)
  br label %63

63:                                               ; preds = %60, %._crit_edge
  %64 = getelementptr inbounds i8, ptr %0, i64 272
  %65 = getelementptr inbounds i8, ptr %0, i64 304
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %65, ptr noundef nonnull align 16 dereferenceable(32) %64, i64 32, i1 false), !tbaa.struct !52
  call void @_ZN3JPH24SoftBodyMotionProperties23CalculateMassAndInertiaEv(ptr noundef nonnull align 16 dereferenceable(352) %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: 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 336}
!22 = !{!"_ZTSN3JPH24SoftBodyMotionPropertiesE", !23, i64 0, !7, i64 184, !29, i64 192, !30, i64 216, !31, i64 240, !32, i64 272, !32, i64 304, !18, i64 336, !19, i64 340, !19, i64 344, !20, i64 348, !20, i64 349, !20, i64 350, !20, i64 351}
!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_24SoftBodyMotionProperties9SkinStateENS_12STLAllocatorIS2_EEEE", !14, i64 0, !14, i64 8, !8, i64 16}
!32 = !{!"_ZTSN3JPH5AABoxE", !11, i64 0, !11, i64 16}
!33 = !{!6, !19, i64 100}
!34 = !{!22, !19, i64 340}
!35 = !{!6, !20, i64 108}
!36 = !{i8 0, i8 2}
!37 = !{}
!38 = !{!22, !20, i64 348}
!39 = !{!6, !20, i64 109}
!40 = !{!9, !9, i64 0}
!41 = !{i64 0, i64 16, !40}
!42 = !{!43, !18, i64 64}
!43 = !{!"_ZTSN3JPH14SoftBodyVertexE", !11, i64 0, !11, i64 16, !11, i64 32, !44, i64 48, !18, i64 64, !20, i64 68, !19, i64 72, !19, i64 76}
!44 = !{!"_ZTSN3JPH5PlaneE", !13, i64 0}
!45 = !{!43, !20, i64 68}
!46 = !{!43, !19, i64 72}
!47 = !{!48, !19, i64 24}
!48 = !{!"_ZTSN3JPH22SoftBodySharedSettings6VertexE", !24, i64 0, !24, i64 12, !19, i64 24}
!49 = !{!43, !19, i64 76}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = !{i64 0, i64 16, !40, i64 16, i64 16, !40}


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