; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape (CapsuleShape)

; 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.12 }
%union.anon.12 = type { <4 x float> }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.14 }
%union.anon.14 = type { <4 x float> }
%"class.JPH::CollideSoftBodyVertexIterator" = type { %"class.JPH::StridedPtr", %"class.JPH::StridedPtr.15", %"class.JPH::StridedPtr.17", %"class.JPH::StridedPtr.19", %"class.JPH::StridedPtr.21" }
%"class.JPH::StridedPtr" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.15" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.17" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.19" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.21" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::CapsuleShape" = type { %"class.JPH::ConvexShape.base", float, float, [4 x i8] }
%"class.JPH::ConvexShape.base" = type <{ %"class.JPH::Shape.base", [6 x i8], %"class.JPH::RefConst", float }>
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.11", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.11" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst" = type { ptr }

@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [98 x i8], align 1

; 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 noundef zeroext i1 @_ZNK3JPH12CapsuleShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(56), double, double) unnamed_addr #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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH12CapsuleShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEji(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef nonnull align 8 dereferenceable(80) %4, i32 noundef %5, i32 noundef %6) unnamed_addr #1 align 2 {
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"struct.JPH::AssertLastParam", align 1
  %16 = alloca %"class.JPH::Mat44", align 16
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %21 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Plane", align 16
  %31 = alloca %"class.JPH::Plane", 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 float, align 4
  %38 = alloca float, align 4
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Plane", align 16
  %44 = alloca %"class.JPH::Plane", align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  store double %2, ptr %47, align 16
  %48 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  store double %3, ptr %48, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  store i32 %6, ptr %13, align 4, !tbaa !9
  %49 = load ptr, ptr %9, align 8
  br label %50

50:                                               ; preds = %7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %8, i64 16, i1 false), !tbaa.struct !11
  %51 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %52 = load double, ptr %51, align 16
  %53 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %54 = load double, ptr %53, align 8
  %55 = call noundef zeroext i1 @_ZNK3JPH12CapsuleShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(56) %49, double %52, double %54)
  br i1 %55, label %59, label %56

56:                                               ; preds = %50
  %57 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 326)
  br i1 %57, label %58, label %59

58:                                               ; preds = %56
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !13
  br label %59

59:                                               ; preds = %58, %56, %50
  br label %60

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #9
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %16, ptr noundef nonnull align 16 dereferenceable(64) %61)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %62 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %8)
  %63 = call noundef float @_ZSt3absf(float noundef %62)
  store float %63, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %64 = load float, ptr %17, align 4, !tbaa !14
  %65 = getelementptr inbounds %"class.JPH::CapsuleShape", ptr %49, i32 0, i32 2
  %66 = load float, ptr %65, align 8, !tbaa !16
  %67 = fmul float %64, %66
  store float %67, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %68 = load float, ptr %17, align 4, !tbaa !14
  %69 = getelementptr inbounds %"class.JPH::CapsuleShape", ptr %49, i32 0, i32 1
  %70 = load float, ptr %69, align 4, !tbaa !27
  %71 = fmul float %68, %70
  store float %71, ptr %19, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #9
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %72, i64 80, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #9
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZNK3JPH29CollideSoftBodyVertexIteratorplEi(ptr dead_on_unwind writable sret(%"class.JPH::CollideSoftBodyVertexIterator") align 8 %21, ptr noundef nonnull align 8 dereferenceable(80) %73, i32 noundef %74)
  br label %75

75:                                               ; preds = %254, %60
  %76 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %20, ptr noundef nonnull align 8 dereferenceable(80) %21)
  br i1 %76, label %78, label %77

77:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #9
  br label %256

78:                                               ; preds = %75
  %79 = call noundef float @_ZNK3JPH29CollideSoftBodyVertexIterator10GetInvMassEv(ptr noundef nonnull align 8 dereferenceable(80) %20)
  %80 = fcmp ogt float %79, 0.000000e+00
  br i1 %80, label %81, label %253

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
  %82 = call { double, double } @_ZNK3JPH29CollideSoftBodyVertexIterator11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(80) %20)
  %83 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %84 = getelementptr inbounds %union.anon.12, ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 0
  %86 = extractvalue { double, double } %82, 0
  store double %86, ptr %85, align 16
  %87 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 1
  %88 = extractvalue { double, double } %82, 1
  store double %88, ptr %87, align 8
  %89 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %90 = load double, ptr %89, align 16
  %91 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %92 = load double, ptr %91, align 8
  %93 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %16, double %90, double %92)
  %94 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %95 = getelementptr inbounds %union.anon.12, ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds { double, double }, ptr %95, i32 0, i32 0
  %97 = extractvalue { double, double } %93, 0
  store double %97, ptr %96, align 16
  %98 = getelementptr inbounds { double, double }, ptr %95, i32 0, i32 1
  %99 = extractvalue { double, double } %93, 1
  store double %99, ptr %98, align 8
  %100 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  %101 = call noundef float @_ZSt3absf(float noundef %100)
  %102 = load float, ptr %18, align 4, !tbaa !14
  %103 = fcmp ole float %101, %102
  br i1 %103, label %104, label %171

104:                                              ; preds = %81
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !11
  call void @_ZN3JPH4Vec34SetYEf(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %105 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %24)
  store float %105, ptr %25, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %106 = load float, ptr %19, align 4, !tbaa !14
  %107 = load float, ptr %25, align 4, !tbaa !14
  %108 = fsub float %106, %107
  store float %108, ptr %26, align 4, !tbaa !14
  %109 = load float, ptr %26, align 4, !tbaa !14
  %110 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIterator17UpdatePenetrationEf(ptr noundef nonnull align 8 dereferenceable(80) %20, float noundef %109)
  br i1 %110, label %111, label %170

111:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %112 = load float, ptr %25, align 4, !tbaa !14
  %113 = fcmp ogt float %112, 0.000000e+00
  br i1 %113, label %114, label %123

114:                                              ; preds = %111
  %115 = load float, ptr %25, align 4, !tbaa !14
  %116 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef %115)
  %117 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %118 = getelementptr inbounds %union.anon.12, ptr %117, i32 0, i32 0
  %119 = getelementptr inbounds { double, double }, ptr %118, i32 0, i32 0
  %120 = extractvalue { double, double } %116, 0
  store double %120, ptr %119, align 16
  %121 = getelementptr inbounds { double, double }, ptr %118, i32 0, i32 1
  %122 = extractvalue { double, double } %116, 1
  store double %122, ptr %121, align 8
  br label %131

123:                                              ; preds = %111
  %124 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %125 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %126 = getelementptr inbounds %union.anon.12, ptr %125, i32 0, i32 0
  %127 = getelementptr inbounds { double, double }, ptr %126, i32 0, i32 0
  %128 = extractvalue { double, double } %124, 0
  store double %128, ptr %127, align 16
  %129 = getelementptr inbounds { double, double }, ptr %126, i32 0, i32 1
  %130 = extractvalue { double, double } %124, 1
  store double %130, ptr %129, align 8
  br label %131

131:                                              ; preds = %123, %114
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #9
  %132 = load float, ptr %19, align 4, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !11
  %133 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %134 = load double, ptr %133, align 16
  %135 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %136 = load double, ptr %135, align 8
  %137 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %132, double %134, double %136)
  %138 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %139 = getelementptr inbounds %union.anon.12, 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 %30) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !11
  %144 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %145 = load double, ptr %144, align 16
  %146 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %147 = load double, ptr %146, align 8
  %148 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %149 = load double, ptr %148, align 16
  %150 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %151 = load double, ptr %150, align 8
  %152 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %145, double %147, double %149, double %151)
  %153 = getelementptr inbounds %"class.JPH::Plane", ptr %31, i32 0, i32 0
  %154 = getelementptr inbounds %"class.JPH::Vec4", ptr %153, i32 0, i32 0
  %155 = getelementptr inbounds %union.anon.14, ptr %154, i32 0, i32 0
  %156 = getelementptr inbounds { double, double }, ptr %155, i32 0, i32 0
  %157 = extractvalue { double, double } %152, 0
  store double %157, ptr %156, align 16
  %158 = getelementptr inbounds { double, double }, ptr %155, i32 0, i32 1
  %159 = extractvalue { double, double } %152, 1
  store double %159, ptr %158, align 8
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %31, ptr noundef nonnull align 16 dereferenceable(64) %160)
  %162 = getelementptr inbounds %"class.JPH::Plane", ptr %30, i32 0, i32 0
  %163 = getelementptr inbounds %"class.JPH::Vec4", ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds %union.anon.14, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 0
  %166 = extractvalue { double, double } %161, 0
  store double %166, ptr %165, align 16
  %167 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 1
  %168 = extractvalue { double, double } %161, 1
  store double %168, ptr %167, align 8
  %169 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZNK3JPH29CollideSoftBodyVertexIterator12SetCollisionERKNS_5PlaneEi(ptr noundef nonnull align 8 dereferenceable(80) %20, ptr noundef nonnull align 16 dereferenceable(16) %30, i32 noundef %169)
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  br label %170

170:                                              ; preds = %131, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  br label %252

171:                                              ; preds = %81
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #9
  %172 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  %173 = call noundef float @_ZN3JPH4SignIfEET_S1_(float noundef %172)
  %174 = load float, ptr %18, align 4, !tbaa !14
  %175 = fmul float %173, %174
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef 0.000000e+00, float noundef %175, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !11
  %176 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %177 = load double, ptr %176, align 16
  %178 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %179 = load double, ptr %178, align 8
  %180 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %22, double %177, double %179)
  %181 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %182 = getelementptr inbounds %union.anon.12, 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.lifetime.start.p0(i64 4, ptr %37) #9
  %187 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %35)
  store float %187, ptr %37, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  %188 = load float, ptr %19, align 4, !tbaa !14
  %189 = load float, ptr %37, align 4, !tbaa !14
  %190 = fsub float %188, %189
  store float %190, ptr %38, align 4, !tbaa !14
  %191 = load float, ptr %38, align 4, !tbaa !14
  %192 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIterator17UpdatePenetrationEf(ptr noundef nonnull align 8 dereferenceable(80) %20, float noundef %191)
  br i1 %192, label %193, label %251

193:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #9
  %194 = load float, ptr %37, align 4, !tbaa !14
  %195 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %35, float noundef %194)
  %196 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %197 = getelementptr inbounds %union.anon.12, ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds { double, double }, ptr %197, i32 0, i32 0
  %199 = extractvalue { double, double } %195, 0
  store double %199, ptr %198, align 16
  %200 = getelementptr inbounds { double, double }, ptr %197, i32 0, i32 1
  %201 = extractvalue { double, double } %195, 1
  store double %201, ptr %200, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #9
  %202 = load float, ptr %19, align 4, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %39, i64 16, i1 false), !tbaa.struct !11
  %203 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %204 = load double, ptr %203, align 16
  %205 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %206 = load double, ptr %205, align 8
  %207 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %202, double %204, double %206)
  %208 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %209 = getelementptr inbounds %union.anon.12, ptr %208, i32 0, i32 0
  %210 = getelementptr inbounds { double, double }, ptr %209, i32 0, i32 0
  %211 = extractvalue { double, double } %207, 0
  store double %211, ptr %210, align 16
  %212 = getelementptr inbounds { double, double }, ptr %209, i32 0, i32 1
  %213 = extractvalue { double, double } %207, 1
  store double %213, ptr %212, align 8
  %214 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %215 = load double, ptr %214, align 16
  %216 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %217 = load double, ptr %216, align 8
  %218 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %34, double %215, double %217)
  %219 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, i32 0, i32 0
  %220 = getelementptr inbounds %union.anon.12, ptr %219, i32 0, i32 0
  %221 = getelementptr inbounds { double, double }, ptr %220, i32 0, i32 0
  %222 = extractvalue { double, double } %218, 0
  store double %222, ptr %221, align 16
  %223 = getelementptr inbounds { double, double }, ptr %220, i32 0, i32 1
  %224 = extractvalue { double, double } %218, 1
  store double %224, ptr %223, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %46, ptr align 16 %39, i64 16, i1 false), !tbaa.struct !11
  %225 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %226 = load double, ptr %225, align 16
  %227 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %228 = load double, ptr %227, align 8
  %229 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %230 = load double, ptr %229, align 16
  %231 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %232 = load double, ptr %231, align 8
  %233 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %226, double %228, double %230, double %232)
  %234 = getelementptr inbounds %"class.JPH::Plane", ptr %44, i32 0, i32 0
  %235 = getelementptr inbounds %"class.JPH::Vec4", ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds %union.anon.14, ptr %235, i32 0, i32 0
  %237 = getelementptr inbounds { double, double }, ptr %236, i32 0, i32 0
  %238 = extractvalue { double, double } %233, 0
  store double %238, ptr %237, align 16
  %239 = getelementptr inbounds { double, double }, ptr %236, i32 0, i32 1
  %240 = extractvalue { double, double } %233, 1
  store double %240, ptr %239, align 8
  %241 = load ptr, ptr %10, align 8, !tbaa !5
  %242 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %44, ptr noundef nonnull align 16 dereferenceable(64) %241)
  %243 = getelementptr inbounds %"class.JPH::Plane", ptr %43, i32 0, i32 0
  %244 = getelementptr inbounds %"class.JPH::Vec4", ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds %union.anon.14, ptr %244, i32 0, i32 0
  %246 = getelementptr inbounds { double, double }, ptr %245, i32 0, i32 0
  %247 = extractvalue { double, double } %242, 0
  store double %247, ptr %246, align 16
  %248 = getelementptr inbounds { double, double }, ptr %245, i32 0, i32 1
  %249 = extractvalue { double, double } %242, 1
  store double %249, ptr %248, align 8
  %250 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZNK3JPH29CollideSoftBodyVertexIterator12SetCollisionERKNS_5PlaneEi(ptr noundef nonnull align 8 dereferenceable(80) %20, ptr noundef nonnull align 16 dereferenceable(16) %43, i32 noundef %250)
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #9
  br label %251

251:                                              ; preds = %193, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  br label %252

252:                                              ; preds = %251, %170
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  br label %253

253:                                              ; preds = %252, %78
  br label %254

254:                                              ; preds = %253
  %255 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80) %20)
  br label %75, !llvm.loop !29

256:                                              ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #9
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH29CollideSoftBodyVertexIteratorplEi(ptr dead_on_unwind noalias writable sret(%"class.JPH::CollideSoftBodyVertexIterator") align 8, ptr noundef nonnull align 8 dereferenceable(80), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH29CollideSoftBodyVertexIterator10GetInvMassEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH29CollideSoftBodyVertexIterator11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIterator17UpdatePenetrationEf(ptr noundef nonnull align 8 dereferenceable(80), float noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH29CollideSoftBodyVertexIterator12SetCollisionERKNS_5PlaneEi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double, double, double, double) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress 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 #7 = { 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 #8 = { 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 #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{i64 2157985656}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !15, i64 48}
!17 = !{!"_ZTSN3JPH12CapsuleShapeE", !18, i64 0, !15, i64 44, !15, i64 48}
!18 = !{!"_ZTSN3JPH11ConvexShapeE", !19, i64 0, !26, i64 32, !15, i64 40}
!19 = !{!"_ZTSN3JPH5ShapeE", !20, i64 8, !23, i64 16, !24, i64 24, !25, i64 25}
!20 = !{!"_ZTSN3JPH9RefTargetINS_5ShapeEEE", !21, i64 0}
!21 = !{!"_ZTSSt6atomicIjE", !22, i64 0}
!22 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSN3JPH10EShapeTypeE", !7, i64 0}
!25 = !{!"_ZTSN3JPH13EShapeSubTypeE", !7, i64 0}
!26 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !6, i64 0}
!27 = !{!17, !15, i64 44}
!28 = !{i64 0, i64 8, !5, i64 8, i64 4, !9, i64 16, i64 8, !5, i64 24, i64 4, !9, i64 32, i64 8, !5, i64 40, i64 4, !9, i64 48, i64 8, !5, i64 56, i64 4, !9, i64 64, i64 8, !5, i64 72, i64 4, !9}
!29 = distinct !{!29, !30}
!30 = !{!"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.12 }
%union.anon.12 = type { <4 x float> }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.14 }
%union.anon.14 = type { <4 x float> }
%"class.JPH::CollideSoftBodyVertexIterator" = type { %"class.JPH::StridedPtr", %"class.JPH::StridedPtr.15", %"class.JPH::StridedPtr.17", %"class.JPH::StridedPtr.19", %"class.JPH::StridedPtr.21" }
%"class.JPH::StridedPtr" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.15" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.17" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.19" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.21" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }

@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [98 x i8], align 1

; 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 noundef zeroext i1 @_ZNK3JPH12CapsuleShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(56), double, double) 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH12CapsuleShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEji(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef nonnull align 8 dereferenceable(80) %4, i32 noundef %5, i32 noundef %6) unnamed_addr #1 align 2 {
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Mat44", align 16
  %10 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %11 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Plane", align 16
  %15 = alloca %"class.JPH::Plane", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Plane", align 16
  %19 = alloca %"class.JPH::Plane", align 16
  store double %2, ptr %8, align 16
  %20 = getelementptr inbounds i8, ptr %8, i64 8
  store double %3, ptr %20, align 8
  %21 = tail call noundef zeroext i1 @_ZNK3JPH12CapsuleShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(56) %0, double %2, double %3)
  br i1 %21, label %25, label %22

22:                                               ; preds = %7
  %23 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef 326)
  br i1 %23, label %24, label %25

24:                                               ; preds = %22
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !5
  br label %25

25:                                               ; preds = %7, %22, %24
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #9
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %9, ptr noundef nonnull align 16 dereferenceable(64) %1)
  %26 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %8)
  %27 = call noundef float @_ZSt3absf(float noundef %26)
  %28 = getelementptr inbounds i8, ptr %0, i64 48
  %29 = load float, ptr %28, align 8, !tbaa !6
  %30 = fmul float %27, %29
  %31 = getelementptr inbounds i8, ptr %0, i64 44
  %32 = load float, ptr %31, align 4, !tbaa !22
  %33 = fmul float %27, %32
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, ptr noundef nonnull align 8 dereferenceable(80) %4, i64 80, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #9
  call void @_ZNK3JPH29CollideSoftBodyVertexIteratorplEi(ptr dead_on_unwind nonnull writable sret(%"class.JPH::CollideSoftBodyVertexIterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(80) %4, i32 noundef %5)
  %34 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %10, ptr noundef nonnull align 8 dereferenceable(80) %11)
  br i1 %34, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %25
  %35 = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.522.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %36 = getelementptr inbounds i8, ptr %15, i64 8
  %37 = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %38 = getelementptr inbounds i8, ptr %17, i64 8
  %39 = getelementptr inbounds i8, ptr %19, i64 8
  %40 = getelementptr inbounds i8, ptr %18, i64 8
  br label %41

._crit_edge:                                      ; preds = %103, %25
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #9
  ret void

41:                                               ; preds = %.lr.ph, %103
  %42 = call noundef float @_ZNK3JPH29CollideSoftBodyVertexIterator10GetInvMassEv(ptr noundef nonnull align 8 dereferenceable(80) %10)
  %43 = fcmp ogt float %42, 0.000000e+00
  br i1 %43, label %44, label %103

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  %45 = call { double, double } @_ZNK3JPH29CollideSoftBodyVertexIterator11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(80) %10)
  %46 = extractvalue { double, double } %45, 0
  %47 = extractvalue { double, double } %45, 1
  %48 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %9, double %46, double %47)
  %49 = extractvalue { double, double } %48, 0
  store double %49, ptr %12, align 16
  %50 = extractvalue { double, double } %48, 1
  store double %50, ptr %35, align 8
  %51 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %52 = call noundef float @_ZSt3absf(float noundef %51)
  %53 = fcmp ugt float %52, %30
  br i1 %53, label %75, label %54

54:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull align 16 dereferenceable(16) %12, i64 16, i1 false), !tbaa.struct !26
  call void @_ZN3JPH4Vec34SetYEf(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00)
  %55 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %56 = fsub float %33, %55
  %57 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIterator17UpdatePenetrationEf(ptr noundef nonnull align 8 dereferenceable(80) %10, float noundef %56)
  br i1 %57, label %58, label %74

58:                                               ; preds = %54
  %59 = fcmp ogt float %55, 0.000000e+00
  br i1 %59, label %60, label %62

60:                                               ; preds = %58
  %61 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef %55)
  br label %64

62:                                               ; preds = %58
  %63 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  br label %64

64:                                               ; preds = %62, %60
  %.pn = phi { double, double } [ %61, %60 ], [ %63, %62 ]
  %.sroa.522.0 = extractvalue { double, double } %.pn, 1
  %.sroa.021.0 = extractvalue { double, double } %.pn, 0
  store double %.sroa.021.0, ptr %13, align 16
  store double %.sroa.522.0, ptr %.sroa.522.0..sroa_idx, align 8, !tbaa !27
  %65 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %33, double %.sroa.021.0, double %.sroa.522.0)
  %66 = extractvalue { double, double } %65, 0
  %67 = extractvalue { double, double } %65, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  %.sroa.013.0.copyload = load double, ptr %13, align 16
  %.sroa.214.0.copyload = load double, ptr %.sroa.522.0..sroa_idx, align 8, !tbaa !27
  %68 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %66, double %67, double %.sroa.013.0.copyload, double %.sroa.214.0.copyload)
  %69 = extractvalue { double, double } %68, 0
  store double %69, ptr %15, align 16
  %70 = extractvalue { double, double } %68, 1
  store double %70, ptr %36, align 8
  %71 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(64) %1)
  %72 = extractvalue { double, double } %71, 0
  store double %72, ptr %14, align 16
  %73 = extractvalue { double, double } %71, 1
  store double %73, ptr %37, align 8
  call void @_ZNK3JPH29CollideSoftBodyVertexIterator12SetCollisionERKNS_5PlaneEi(ptr noundef nonnull align 8 dereferenceable(80) %10, ptr noundef nonnull align 16 dereferenceable(16) %14, i32 noundef %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  br label %74

74:                                               ; preds = %64, %54
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  br label %102

75:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #9
  %76 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %77 = call noundef float @_ZN3JPH4SignIfEET_S1_(float noundef %76)
  %78 = fmul float %30, %77
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef 0.000000e+00, float noundef %78, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #9
  %.sroa.011.0.copyload = load double, ptr %16, align 16
  %.sroa.212.0.copyload = load double, ptr %.sroa.212.0..sroa_idx, align 8, !tbaa !27
  %79 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %.sroa.011.0.copyload, double %.sroa.212.0.copyload)
  %80 = extractvalue { double, double } %79, 0
  store double %80, ptr %17, align 16
  %81 = extractvalue { double, double } %79, 1
  store double %81, ptr %38, align 8
  %82 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
  %83 = fsub float %33, %82
  %84 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIterator17UpdatePenetrationEf(ptr noundef nonnull align 8 dereferenceable(80) %10, float noundef %83)
  br i1 %84, label %85, label %101

85:                                               ; preds = %75
  %86 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %82)
  %87 = extractvalue { double, double } %86, 0
  %88 = extractvalue { double, double } %86, 1
  %89 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %33, double %87, double %88)
  %90 = extractvalue { double, double } %89, 0
  %91 = extractvalue { double, double } %89, 1
  %92 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %90, double %91)
  %93 = extractvalue { double, double } %92, 0
  %94 = extractvalue { double, double } %92, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  %95 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %93, double %94, double %87, double %88)
  %96 = extractvalue { double, double } %95, 0
  store double %96, ptr %19, align 16
  %97 = extractvalue { double, double } %95, 1
  store double %97, ptr %39, align 8
  %98 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %19, ptr noundef nonnull align 16 dereferenceable(64) %1)
  %99 = extractvalue { double, double } %98, 0
  store double %99, ptr %18, align 16
  %100 = extractvalue { double, double } %98, 1
  store double %100, ptr %40, align 8
  call void @_ZNK3JPH29CollideSoftBodyVertexIterator12SetCollisionERKNS_5PlaneEi(ptr noundef nonnull align 8 dereferenceable(80) %10, ptr noundef nonnull align 16 dereferenceable(16) %18, i32 noundef %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  br label %101

101:                                              ; preds = %85, %75
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  br label %102

102:                                              ; preds = %101, %74
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  br label %103

103:                                              ; preds = %41, %102
  %104 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80) %10)
  %105 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %10, ptr noundef nonnull align 8 dereferenceable(80) %11)
  br i1 %105, label %41, label %._crit_edge, !llvm.loop !28
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH29CollideSoftBodyVertexIteratorplEi(ptr dead_on_unwind noalias writable sret(%"class.JPH::CollideSoftBodyVertexIterator") align 8, ptr noundef nonnull align 8 dereferenceable(80), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH29CollideSoftBodyVertexIterator10GetInvMassEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH29CollideSoftBodyVertexIterator11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIterator17UpdatePenetrationEf(ptr noundef nonnull align 8 dereferenceable(80), float noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH29CollideSoftBodyVertexIterator12SetCollisionERKNS_5PlaneEi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double, double, double, double) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress 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 #7 = { 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 #8 = { 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 #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 2157985656}
!6 = !{!7, !21, i64 48}
!7 = !{!"_ZTSN3JPH12CapsuleShapeE", !8, i64 0, !21, i64 44, !21, i64 48}
!8 = !{!"_ZTSN3JPH11ConvexShapeE", !9, i64 0, !19, i64 32, !21, i64 40}
!9 = !{!"_ZTSN3JPH5ShapeE", !10, i64 8, !16, i64 16, !17, i64 24, !18, i64 25}
!10 = !{!"_ZTSN3JPH9RefTargetINS_5ShapeEEE", !11, i64 0}
!11 = !{!"_ZTSSt6atomicIjE", !12, i64 0}
!12 = !{!"_ZTSSt13__atomic_baseIjE", !13, i64 0}
!13 = !{!"int", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C++ TBAA"}
!16 = !{!"long", !14, i64 0}
!17 = !{!"_ZTSN3JPH10EShapeTypeE", !14, i64 0}
!18 = !{!"_ZTSN3JPH13EShapeSubTypeE", !14, i64 0}
!19 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !20, i64 0}
!20 = !{!"any pointer", !14, i64 0}
!21 = !{!"float", !14, i64 0}
!22 = !{!7, !21, i64 44}
!23 = !{i64 0, i64 8, !24, i64 8, i64 4, !25, i64 16, i64 8, !24, i64 24, i64 4, !25, i64 32, i64 8, !24, i64 40, i64 4, !25, i64 48, i64 8, !24, i64 56, i64 4, !25, i64 64, i64 8, !24, i64 72, i64 4, !25}
!24 = !{!20, !20, i64 0}
!25 = !{!13, !13, i64 0}
!26 = !{i64 0, i64 16, !27}
!27 = !{!14, !14, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


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