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

; 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.6 }
%union.anon.6 = type { <4 x float> }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.7 }
%union.anon.7 = type { <4 x float> }
%"class.JPH::CollideSoftBodyVertexIterator" = type { %"class.JPH::StridedPtr", %"class.JPH::StridedPtr.9", %"class.JPH::StridedPtr.11", %"class.JPH::StridedPtr.13", %"class.JPH::StridedPtr.15" }
%"class.JPH::StridedPtr" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.9" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.11" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.13" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.15" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::TaperedCapsuleShape" = type <{ %"class.JPH::ConvexShape.base", [4 x i8], %"class.JPH::Vec3", float, float, float, float, float, 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.3", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.3" = 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 [105 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 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: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) 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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH19TaperedCapsuleShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96), double, double) unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH19TaperedCapsuleShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEji(ptr noundef nonnull align 16 dereferenceable(96) %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 #4 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 %"class.JPH::Vec3", align 16
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %26 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %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::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca float, align 4
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca float, align 4
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Plane", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca float, align 4
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Vec3", align 16
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca %"class.JPH::Plane", align 16
  %60 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  store double %2, ptr %60, align 16
  %61 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  store double %3, ptr %61, 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
  %62 = load ptr, ptr %9, align 8
  br label %63

63:                                               ; preds = %7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %8, i64 16, i1 false), !tbaa.struct !11
  %64 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %65 = load double, ptr %64, align 16
  %66 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %67 = load double, ptr %66, align 8
  %68 = call noundef zeroext i1 @_ZNK3JPH19TaperedCapsuleShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %62, double %65, double %67)
  br i1 %68, label %72, label %69

69:                                               ; preds = %63
  %70 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.8, ptr noundef @.str.6, i32 noundef 306)
  br i1 %70, label %71, label %72

71:                                               ; preds = %69
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !13
  br label %72

72:                                               ; preds = %71, %69, %63
  br label %73

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #8
  %74 = 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) %74)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %75 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %8)
  %76 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %77 = getelementptr inbounds %union.anon.6, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %79 = extractvalue { double, double } %75, 0
  store double %79, ptr %78, align 16
  %80 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %81 = extractvalue { double, double } %75, 1
  store double %81, ptr %80, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %82 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
  store float %82, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %83 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
  store float %83, ptr %19, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %84 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %8)
  %85 = call noundef float @_ZN3JPH4SignIfEET_S1_(float noundef %84)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef 1.000000e+00, float noundef %85, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %86 = load float, ptr %18, align 4, !tbaa !14
  %87 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %62, i32 0, i32 5
  %88 = load float, ptr %87, align 8, !tbaa !16
  %89 = fmul float %86, %88
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef 0.000000e+00, float noundef %89, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  %90 = load float, ptr %18, align 4, !tbaa !14
  %91 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %62, i32 0, i32 6
  %92 = load float, ptr %91, align 4, !tbaa !28
  %93 = fmul float %90, %92
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef 0.000000e+00, float noundef %93, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %94 = load float, ptr %19, align 4, !tbaa !14
  %95 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %62, i32 0, i32 3
  %96 = load float, ptr %95, align 16, !tbaa !29
  %97 = fmul float %94, %96
  store float %97, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %98 = load float, ptr %19, align 4, !tbaa !14
  %99 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %62, i32 0, i32 4
  %100 = load float, ptr %99, align 4, !tbaa !30
  %101 = fmul float %98, %100
  store float %101, ptr %24, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 80, ptr %25) #8
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %102, i64 80, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 80, ptr %26) #8
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZNK3JPH29CollideSoftBodyVertexIteratorplEi(ptr dead_on_unwind writable sret(%"class.JPH::CollideSoftBodyVertexIterator") align 8 %26, ptr noundef nonnull align 8 dereferenceable(80) %103, i32 noundef %104)
  br label %105

105:                                              ; preds = %375, %73
  %106 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %25, ptr noundef nonnull align 8 dereferenceable(80) %26)
  br i1 %106, label %108, label %107

107:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 80, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %25) #8
  br label %377

108:                                              ; preds = %105
  %109 = call noundef float @_ZNK3JPH29CollideSoftBodyVertexIterator10GetInvMassEv(ptr noundef nonnull align 8 dereferenceable(80) %25)
  %110 = fcmp ogt float %109, 0.000000e+00
  br i1 %110, label %111, label %374

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %112 = call { double, double } @_ZNK3JPH29CollideSoftBodyVertexIterator11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(80) %25)
  %113 = getelementptr inbounds %"class.JPH::Vec3", ptr %29, i32 0, i32 0
  %114 = getelementptr inbounds %union.anon.6, ptr %113, i32 0, i32 0
  %115 = getelementptr inbounds { double, double }, ptr %114, i32 0, i32 0
  %116 = extractvalue { double, double } %112, 0
  store double %116, ptr %115, align 16
  %117 = getelementptr inbounds { double, double }, ptr %114, i32 0, i32 1
  %118 = extractvalue { double, double } %112, 1
  store double %118, ptr %117, align 8
  %119 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %120 = load double, ptr %119, align 16
  %121 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %122 = load double, ptr %121, align 8
  %123 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %16, double %120, double %122)
  %124 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %125 = getelementptr inbounds %union.anon.6, ptr %124, i32 0, i32 0
  %126 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 0
  %127 = extractvalue { double, double } %123, 0
  store double %127, ptr %126, align 16
  %128 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 1
  %129 = extractvalue { double, double } %123, 1
  store double %129, ptr %128, align 8
  %130 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %131 = load double, ptr %130, align 16
  %132 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %133 = load double, ptr %132, align 8
  %134 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %131, double %133)
  %135 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %136 = getelementptr inbounds %union.anon.6, ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds { double, double }, ptr %136, i32 0, i32 0
  %138 = extractvalue { double, double } %134, 0
  store double %138, ptr %137, align 16
  %139 = getelementptr inbounds { double, double }, ptr %136, i32 0, i32 1
  %140 = extractvalue { double, double } %134, 1
  store double %140, ptr %139, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %21, i64 16, i1 false), !tbaa.struct !11
  %141 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %142 = load double, ptr %141, align 16
  %143 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %144 = load double, ptr %143, align 8
  %145 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %27, double %142, double %144)
  %146 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %147 = getelementptr inbounds %union.anon.6, ptr %146, i32 0, i32 0
  %148 = getelementptr inbounds { double, double }, ptr %147, i32 0, i32 0
  %149 = extractvalue { double, double } %145, 0
  store double %149, ptr %148, align 16
  %150 = getelementptr inbounds { double, double }, ptr %147, i32 0, i32 1
  %151 = extractvalue { double, double } %145, 1
  store double %151, ptr %150, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %152 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %32)
  store float %152, ptr %34, align 4, !tbaa !14
  %153 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %32)
  %154 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %62, i32 0, i32 8
  %155 = load float, ptr %154, align 4, !tbaa !32
  %156 = load float, ptr %34, align 4, !tbaa !14
  %157 = fmul float %155, %156
  %158 = fcmp oge float %153, %157
  br i1 %158, label %159, label %203

159:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  %160 = load float, ptr %34, align 4, !tbaa !14
  %161 = fcmp une float %160, 0.000000e+00
  br i1 %161, label %162, label %171

162:                                              ; preds = %159
  %163 = load float, ptr %34, align 4, !tbaa !14
  %164 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %32, float noundef %163)
  %165 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %166 = getelementptr inbounds %union.anon.6, ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds { double, double }, ptr %166, i32 0, i32 0
  %168 = extractvalue { double, double } %164, 0
  store double %168, ptr %167, align 16
  %169 = getelementptr inbounds { double, double }, ptr %166, i32 0, i32 1
  %170 = extractvalue { double, double } %164, 1
  store double %170, ptr %169, align 8
  br label %179

171:                                              ; preds = %159
  %172 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %173 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %174 = getelementptr inbounds %union.anon.6, ptr %173, i32 0, i32 0
  %175 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 0
  %176 = extractvalue { double, double } %172, 0
  store double %176, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 1
  %178 = extractvalue { double, double } %172, 1
  store double %178, ptr %177, align 8
  br label %179

179:                                              ; preds = %171, %162
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %35, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #8
  %180 = load float, ptr %23, align 4, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !11
  %181 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %182 = load double, ptr %181, align 16
  %183 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %184 = load double, ptr %183, align 8
  %185 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %180, double %182, double %184)
  %186 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i32 0, i32 0
  %187 = getelementptr inbounds %union.anon.6, ptr %186, i32 0, i32 0
  %188 = getelementptr inbounds { double, double }, ptr %187, i32 0, i32 0
  %189 = extractvalue { double, double } %185, 0
  store double %189, ptr %188, align 16
  %190 = getelementptr inbounds { double, double }, ptr %187, i32 0, i32 1
  %191 = extractvalue { double, double } %185, 1
  store double %191, ptr %190, align 8
  %192 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %193 = load double, ptr %192, align 16
  %194 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %195 = load double, ptr %194, align 8
  %196 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %193, double %195)
  %197 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %198 = getelementptr inbounds %union.anon.6, ptr %197, i32 0, i32 0
  %199 = getelementptr inbounds { double, double }, ptr %198, i32 0, i32 0
  %200 = extractvalue { double, double } %196, 0
  store double %200, ptr %199, align 16
  %201 = getelementptr inbounds { double, double }, ptr %198, i32 0, i32 1
  %202 = extractvalue { double, double } %196, 1
  store double %202, ptr %201, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  br label %315

203:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !11
  %204 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %205 = load double, ptr %204, align 16
  %206 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %207 = load double, ptr %206, align 8
  %208 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %27, double %205, double %207)
  %209 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %210 = getelementptr inbounds %union.anon.6, ptr %209, i32 0, i32 0
  %211 = getelementptr inbounds { double, double }, ptr %210, i32 0, i32 0
  %212 = extractvalue { double, double } %208, 0
  store double %212, ptr %211, align 16
  %213 = getelementptr inbounds { double, double }, ptr %210, i32 0, i32 1
  %214 = extractvalue { double, double } %208, 1
  store double %214, ptr %213, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %215 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %39)
  store float %215, ptr %41, align 4, !tbaa !14
  %216 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %39)
  %217 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %62, i32 0, i32 8
  %218 = load float, ptr %217, align 4, !tbaa !32
  %219 = load float, ptr %41, align 4, !tbaa !14
  %220 = fmul float %218, %219
  %221 = fcmp ole float %216, %220
  br i1 %221, label %222, label %250

222:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #8
  %223 = load float, ptr %41, align 4, !tbaa !14
  %224 = fcmp une float %223, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #8
  br i1 %224, label %225, label %234

225:                                              ; preds = %222
  %226 = load float, ptr %41, align 4, !tbaa !14
  %227 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %39, float noundef %226)
  %228 = getelementptr inbounds %"class.JPH::Vec3", ptr %42, i32 0, i32 0
  %229 = getelementptr inbounds %union.anon.6, ptr %228, i32 0, i32 0
  %230 = getelementptr inbounds { double, double }, ptr %229, i32 0, i32 0
  %231 = extractvalue { double, double } %227, 0
  store double %231, ptr %230, align 16
  %232 = getelementptr inbounds { double, double }, ptr %229, i32 0, i32 1
  %233 = extractvalue { double, double } %227, 1
  store double %233, ptr %232, align 8
  br label %249

234:                                              ; preds = %222
  %235 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %236 = getelementptr inbounds %"class.JPH::Vec3", ptr %43, i32 0, i32 0
  %237 = getelementptr inbounds %union.anon.6, ptr %236, i32 0, i32 0
  %238 = getelementptr inbounds { double, double }, ptr %237, i32 0, i32 0
  %239 = extractvalue { double, double } %235, 0
  store double %239, ptr %238, align 16
  %240 = getelementptr inbounds { double, double }, ptr %237, i32 0, i32 1
  %241 = extractvalue { double, double } %235, 1
  store double %241, ptr %240, align 8
  %242 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %43)
  %243 = getelementptr inbounds %"class.JPH::Vec3", ptr %42, i32 0, i32 0
  %244 = getelementptr inbounds %union.anon.6, ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds { double, double }, ptr %244, i32 0, i32 0
  %246 = extractvalue { double, double } %242, 0
  store double %246, ptr %245, align 16
  %247 = getelementptr inbounds { double, double }, ptr %244, i32 0, i32 1
  %248 = extractvalue { double, double } %242, 1
  store double %248, ptr %247, align 8
  br label %249

249:                                              ; preds = %234, %225
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %42, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  br label %291

250:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #8
  %251 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %27)
  %252 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %27)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %45, float noundef %251, float noundef 0.000000e+00, float noundef %252)
  %253 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %254 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %255 = getelementptr inbounds %union.anon.6, ptr %254, i32 0, i32 0
  %256 = getelementptr inbounds { double, double }, ptr %255, i32 0, i32 0
  %257 = extractvalue { double, double } %253, 0
  store double %257, ptr %256, align 16
  %258 = getelementptr inbounds { double, double }, ptr %255, i32 0, i32 1
  %259 = extractvalue { double, double } %253, 1
  store double %259, ptr %258, align 8
  %260 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %261 = load double, ptr %260, align 16
  %262 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %263 = load double, ptr %262, align 8
  %264 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %45, double %261, double %263)
  %265 = getelementptr inbounds %"class.JPH::Vec3", ptr %44, i32 0, i32 0
  %266 = getelementptr inbounds %union.anon.6, ptr %265, i32 0, i32 0
  %267 = getelementptr inbounds { double, double }, ptr %266, i32 0, i32 0
  %268 = extractvalue { double, double } %264, 0
  store double %268, ptr %267, align 16
  %269 = getelementptr inbounds { double, double }, ptr %266, i32 0, i32 1
  %270 = extractvalue { double, double } %264, 1
  store double %270, ptr %269, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %44, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #8
  %271 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %62, i32 0, i32 9
  %272 = load float, ptr %271, align 8, !tbaa !33
  call void @_ZN3JPH4Vec34SetYEf(ptr noundef nonnull align 16 dereferenceable(16) %31, float noundef %272)
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #8
  %273 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %274 = getelementptr inbounds %"class.JPH::Vec3", ptr %48, i32 0, i32 0
  %275 = getelementptr inbounds %union.anon.6, ptr %274, i32 0, i32 0
  %276 = getelementptr inbounds { double, double }, ptr %275, i32 0, i32 0
  %277 = extractvalue { double, double } %273, 0
  store double %277, ptr %276, align 16
  %278 = getelementptr inbounds { double, double }, ptr %275, i32 0, i32 1
  %279 = extractvalue { double, double } %273, 1
  store double %279, ptr %278, align 8
  %280 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %281 = load double, ptr %280, align 16
  %282 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %283 = load double, ptr %282, align 8
  %284 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %281, double %283)
  %285 = getelementptr inbounds %"class.JPH::Vec3", ptr %47, i32 0, i32 0
  %286 = getelementptr inbounds %union.anon.6, ptr %285, i32 0, i32 0
  %287 = getelementptr inbounds { double, double }, ptr %286, i32 0, i32 0
  %288 = extractvalue { double, double } %284, 0
  store double %288, ptr %287, align 16
  %289 = getelementptr inbounds { double, double }, ptr %286, i32 0, i32 1
  %290 = extractvalue { double, double } %284, 1
  store double %290, ptr %289, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %47, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #8
  br label %291

291:                                              ; preds = %250, %249
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #8
  %292 = load float, ptr %24, align 4, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !11
  %293 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %294 = load double, ptr %293, align 16
  %295 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %296 = load double, ptr %295, align 8
  %297 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %292, double %294, double %296)
  %298 = getelementptr inbounds %"class.JPH::Vec3", ptr %50, i32 0, i32 0
  %299 = getelementptr inbounds %union.anon.6, ptr %298, i32 0, i32 0
  %300 = getelementptr inbounds { double, double }, ptr %299, i32 0, i32 0
  %301 = extractvalue { double, double } %297, 0
  store double %301, ptr %300, align 16
  %302 = getelementptr inbounds { double, double }, ptr %299, i32 0, i32 1
  %303 = extractvalue { double, double } %297, 1
  store double %303, ptr %302, align 8
  %304 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %305 = load double, ptr %304, align 16
  %306 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %307 = load double, ptr %306, align 8
  %308 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %22, double %305, double %307)
  %309 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %310 = getelementptr inbounds %union.anon.6, ptr %309, i32 0, i32 0
  %311 = getelementptr inbounds { double, double }, ptr %310, i32 0, i32 0
  %312 = extractvalue { double, double } %308, 0
  store double %312, ptr %311, align 16
  %313 = getelementptr inbounds { double, double }, ptr %310, i32 0, i32 1
  %314 = extractvalue { double, double } %308, 1
  store double %314, ptr %313, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %49, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #8
  br label %315

315:                                              ; preds = %291, %179
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %53, ptr align 16 %30, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !11
  %316 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %317 = load double, ptr %316, align 16
  %318 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %319 = load double, ptr %318, align 8
  %320 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %321 = load double, ptr %320, align 16
  %322 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %323 = load double, ptr %322, align 8
  %324 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %317, double %319, double %321, double %323)
  %325 = getelementptr inbounds %"class.JPH::Plane", ptr %52, i32 0, i32 0
  %326 = getelementptr inbounds %"class.JPH::Vec4", ptr %325, i32 0, i32 0
  %327 = getelementptr inbounds %union.anon.7, ptr %326, i32 0, i32 0
  %328 = getelementptr inbounds { double, double }, ptr %327, i32 0, i32 0
  %329 = extractvalue { double, double } %324, 0
  store double %329, ptr %328, align 16
  %330 = getelementptr inbounds { double, double }, ptr %327, i32 0, i32 1
  %331 = extractvalue { double, double } %324, 1
  store double %331, ptr %330, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !11
  %332 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %333 = load double, ptr %332, align 16
  %334 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %335 = load double, ptr %334, align 8
  %336 = call noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %52, double %333, double %335)
  %337 = fneg float %336
  store float %337, ptr %55, align 4, !tbaa !14
  %338 = load float, ptr %55, align 4, !tbaa !14
  %339 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIterator17UpdatePenetrationEf(ptr noundef nonnull align 8 dereferenceable(80) %25, float noundef %338)
  br i1 %339, label %340, label %373

340:                                              ; preds = %315
  %341 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %52)
  %342 = getelementptr inbounds %"class.JPH::Vec3", ptr %58, i32 0, i32 0
  %343 = getelementptr inbounds %union.anon.6, ptr %342, i32 0, i32 0
  %344 = getelementptr inbounds { double, double }, ptr %343, i32 0, i32 0
  %345 = extractvalue { double, double } %341, 0
  store double %345, ptr %344, align 16
  %346 = getelementptr inbounds { double, double }, ptr %343, i32 0, i32 1
  %347 = extractvalue { double, double } %341, 1
  store double %347, ptr %346, align 8
  %348 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %349 = load double, ptr %348, align 16
  %350 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %351 = load double, ptr %350, align 8
  %352 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %349, double %351)
  %353 = getelementptr inbounds %"class.JPH::Vec3", ptr %57, i32 0, i32 0
  %354 = getelementptr inbounds %union.anon.6, ptr %353, i32 0, i32 0
  %355 = getelementptr inbounds { double, double }, ptr %354, i32 0, i32 0
  %356 = extractvalue { double, double } %352, 0
  store double %356, ptr %355, align 16
  %357 = getelementptr inbounds { double, double }, ptr %354, i32 0, i32 1
  %358 = extractvalue { double, double } %352, 1
  store double %358, ptr %357, align 8
  %359 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 0
  %360 = load double, ptr %359, align 16
  %361 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 1
  %362 = load double, ptr %361, align 8
  call void @_ZN3JPH5Plane9SetNormalENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %52, double %360, double %362)
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #8
  %363 = load ptr, ptr %10, align 8, !tbaa !5
  %364 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %52, ptr noundef nonnull align 16 dereferenceable(64) %363)
  %365 = getelementptr inbounds %"class.JPH::Plane", ptr %59, i32 0, i32 0
  %366 = getelementptr inbounds %"class.JPH::Vec4", ptr %365, i32 0, i32 0
  %367 = getelementptr inbounds %union.anon.7, ptr %366, i32 0, i32 0
  %368 = getelementptr inbounds { double, double }, ptr %367, i32 0, i32 0
  %369 = extractvalue { double, double } %364, 0
  store double %369, ptr %368, align 16
  %370 = getelementptr inbounds { double, double }, ptr %367, i32 0, i32 1
  %371 = extractvalue { double, double } %364, 1
  store double %371, ptr %370, align 8
  %372 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZNK3JPH29CollideSoftBodyVertexIterator12SetCollisionERKNS_5PlaneEi(ptr noundef nonnull align 8 dereferenceable(80) %25, ptr noundef nonnull align 16 dereferenceable(16) %59, i32 noundef %372)
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #8
  br label %373

373:                                              ; preds = %340, %315
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  br label %374

374:                                              ; preds = %373, %108
  br label %375

375:                                              ; preds = %374
  %376 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80) %25)
  br label %105, !llvm.loop !34

377:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #8
  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)) #7 align 2

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

; 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) #4 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)) #4 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{i64 2157954938}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !15, i64 72}
!17 = !{!"_ZTSN3JPH19TaperedCapsuleShapeE", !18, i64 0, !27, i64 48, !15, i64 64, !15, i64 68, !15, i64 72, !15, i64 76, !15, i64 80, !15, i64 84, !15, i64 88}
!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 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!28 = !{!17, !15, i64 76}
!29 = !{!17, !15, i64 64}
!30 = !{!17, !15, i64 68}
!31 = !{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}
!32 = !{!17, !15, i64 84}
!33 = !{!17, !15, i64 88}
!34 = distinct !{!34, !35}
!35 = !{!"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.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.7 }
%union.anon.7 = type { <4 x float> }
%"class.JPH::CollideSoftBodyVertexIterator" = type { %"class.JPH::StridedPtr", %"class.JPH::StridedPtr.9", %"class.JPH::StridedPtr.11", %"class.JPH::StridedPtr.13", %"class.JPH::StridedPtr.15" }
%"class.JPH::StridedPtr" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.9" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.11" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.13" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.15" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }

@.str.6 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 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: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) 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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH19TaperedCapsuleShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96), double, double) unnamed_addr #4 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16)) 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 #6 align 2

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisXEv() local_unnamed_addr #7 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 #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 #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH19TaperedCapsuleShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEji(ptr noundef nonnull align 16 dereferenceable(96) %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 #4 align 2 {
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Mat44", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %15 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Plane", align 16
  %23 = alloca %"class.JPH::Plane", align 16
  store double %2, ptr %8, align 16
  %24 = getelementptr inbounds i8, ptr %8, i64 8
  store double %3, ptr %24, align 8
  %25 = tail call noundef zeroext i1 @_ZNK3JPH19TaperedCapsuleShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %0, double %2, double %3)
  br i1 %25, label %29, label %26

26:                                               ; preds = %7
  %27 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.6, i32 noundef 306)
  br i1 %27, label %28, label %29

28:                                               ; preds = %26
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !5
  br label %29

29:                                               ; preds = %7, %26, %28
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #8
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %9, ptr noundef nonnull align 16 dereferenceable(64) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %30 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %8)
  %31 = extractvalue { double, double } %30, 0
  store double %31, ptr %10, align 16
  %32 = getelementptr inbounds i8, ptr %10, i64 8
  %33 = extractvalue { double, double } %30, 1
  store double %33, ptr %32, align 8
  %34 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %35 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %36 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %8)
  %37 = call noundef float @_ZN3JPH4SignIfEET_S1_(float noundef %36)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 1.000000e+00, float noundef %37, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  %38 = getelementptr inbounds i8, ptr %0, i64 72
  %39 = load float, ptr %38, align 8, !tbaa !6
  %40 = fmul float %34, %39
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef 0.000000e+00, float noundef %40, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  %41 = getelementptr inbounds i8, ptr %0, i64 76
  %42 = load float, ptr %41, align 4, !tbaa !23
  %43 = fmul float %34, %42
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef %43, float noundef 0.000000e+00)
  %44 = getelementptr inbounds i8, ptr %0, i64 64
  %45 = load float, ptr %44, align 16, !tbaa !24
  %46 = fmul float %35, %45
  %47 = getelementptr inbounds i8, ptr %0, i64 68
  %48 = load float, ptr %47, align 4, !tbaa !25
  %49 = fmul float %35, %48
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 8 dereferenceable(80) %4, i64 80, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %15) #8
  call void @_ZNK3JPH29CollideSoftBodyVertexIteratorplEi(ptr dead_on_unwind nonnull writable sret(%"class.JPH::CollideSoftBodyVertexIterator") align 8 %15, ptr noundef nonnull align 8 dereferenceable(80) %4, i32 noundef %5)
  %50 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 8 dereferenceable(80) %15)
  br i1 %50, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %29
  %51 = getelementptr inbounds i8, ptr %16, i64 8
  %.sroa.240.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %52 = getelementptr inbounds i8, ptr %18, i64 8
  %53 = getelementptr inbounds i8, ptr %0, i64 84
  %.sroa.535.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %54 = getelementptr inbounds i8, ptr %19, i64 8
  %55 = getelementptr inbounds i8, ptr %20, i64 8
  %56 = getelementptr inbounds i8, ptr %0, i64 88
  %57 = getelementptr inbounds i8, ptr %22, i64 8
  %58 = getelementptr inbounds i8, ptr %23, i64 8
  br label %59

._crit_edge:                                      ; preds = %149, %29
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #8
  ret void

59:                                               ; preds = %.lr.ph, %149
  %60 = call noundef float @_ZNK3JPH29CollideSoftBodyVertexIterator10GetInvMassEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %61 = fcmp ogt float %60, 0.000000e+00
  br i1 %61, label %62, label %149

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #8
  %63 = call { double, double } @_ZNK3JPH29CollideSoftBodyVertexIterator11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %64 = extractvalue { double, double } %63, 0
  %65 = extractvalue { double, double } %63, 1
  %66 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %9, double %64, double %65)
  %67 = extractvalue { double, double } %66, 0
  %68 = extractvalue { double, double } %66, 1
  %69 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %67, double %68)
  %70 = extractvalue { double, double } %69, 0
  store double %70, ptr %16, align 16
  %71 = extractvalue { double, double } %69, 1
  store double %71, ptr %51, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  %.sroa.039.0.copyload = load double, ptr %12, align 16
  %.sroa.240.0.copyload = load double, ptr %.sroa.240.0..sroa_idx, align 8, !tbaa !29
  %72 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %.sroa.039.0.copyload, double %.sroa.240.0.copyload)
  %73 = extractvalue { double, double } %72, 0
  store double %73, ptr %18, align 16
  %74 = extractvalue { double, double } %72, 1
  store double %74, ptr %52, align 8
  %75 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %18)
  %76 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %18)
  %77 = load float, ptr %53, align 4, !tbaa !30
  %78 = fmul float %75, %77
  %79 = fcmp ult float %76, %78
  br i1 %79, label %91, label %80

80:                                               ; preds = %62
  %81 = fcmp une float %75, 0.000000e+00
  br i1 %81, label %82, label %84

82:                                               ; preds = %80
  %83 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef %75)
  br label %86

84:                                               ; preds = %80
  %85 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  br label %86

86:                                               ; preds = %84, %82
  %.pn63 = phi { double, double } [ %83, %82 ], [ %85, %84 ]
  %.sroa.535.0 = extractvalue { double, double } %.pn63, 1
  %.sroa.034.0 = extractvalue { double, double } %.pn63, 0
  store double %.sroa.034.0, ptr %17, align 16
  store double %.sroa.535.0, ptr %.sroa.535.0..sroa_idx, align 8, !tbaa !29
  %87 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %46, double %.sroa.034.0, double %.sroa.535.0)
  %88 = extractvalue { double, double } %87, 0
  %89 = extractvalue { double, double } %87, 1
  %90 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %88, double %89)
  br label %131

91:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #8
  %.sroa.026.0.copyload = load double, ptr %13, align 16
  %.sroa.227.0.copyload = load double, ptr %.sroa.227.0..sroa_idx, align 8, !tbaa !29
  %92 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %.sroa.026.0.copyload, double %.sroa.227.0.copyload)
  %93 = extractvalue { double, double } %92, 0
  store double %93, ptr %19, align 16
  %94 = extractvalue { double, double } %92, 1
  store double %94, ptr %54, align 8
  %95 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %19)
  %96 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %19)
  %97 = load float, ptr %53, align 4, !tbaa !30
  %98 = fmul float %95, %97
  %99 = fcmp ugt float %96, %98
  br i1 %99, label %110, label %100

100:                                              ; preds = %91
  %101 = fcmp une float %95, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #8
  br i1 %101, label %102, label %104

102:                                              ; preds = %100
  %103 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef %95)
  br label %109

104:                                              ; preds = %100
  %105 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %106 = extractvalue { double, double } %105, 0
  store double %106, ptr %20, align 16
  %107 = extractvalue { double, double } %105, 1
  store double %107, ptr %55, align 8
  %108 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %20)
  br label %109

109:                                              ; preds = %104, %102
  %.pn = phi { double, double } [ %103, %102 ], [ %108, %104 ]
  %.sroa.5.0 = extractvalue { double, double } %.pn, 1
  %.sroa.022.0 = extractvalue { double, double } %.pn, 0
  store double %.sroa.022.0, ptr %17, align 16
  store double %.sroa.5.0, ptr %.sroa.535.0..sroa_idx, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #8
  br label %126

110:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #8
  %111 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %112 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef %111, float noundef 0.000000e+00, float noundef %112)
  %113 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %114 = extractvalue { double, double } %113, 0
  %115 = extractvalue { double, double } %113, 1
  %116 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %114, double %115)
  %117 = extractvalue { double, double } %116, 0
  %118 = extractvalue { double, double } %116, 1
  store double %117, ptr %17, align 16
  store double %118, ptr %.sroa.535.0..sroa_idx, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  %119 = load float, ptr %56, align 8, !tbaa !31
  call void @_ZN3JPH4Vec34SetYEf(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %119)
  %120 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %121 = extractvalue { double, double } %120, 0
  %122 = extractvalue { double, double } %120, 1
  %123 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %121, double %122)
  %124 = extractvalue { double, double } %123, 0
  %125 = extractvalue { double, double } %123, 1
  store double %124, ptr %17, align 16
  store double %125, ptr %.sroa.535.0..sroa_idx, align 8, !tbaa !29
  br label %126

126:                                              ; preds = %110, %109
  %.sroa.210.0.copyload = phi double [ %125, %110 ], [ %.sroa.5.0, %109 ]
  %.sroa.09.0.copyload = phi double [ %124, %110 ], [ %.sroa.022.0, %109 ]
  %127 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %49, double %.sroa.09.0.copyload, double %.sroa.210.0.copyload)
  %128 = extractvalue { double, double } %127, 0
  %129 = extractvalue { double, double } %127, 1
  %130 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %128, double %129)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #8
  br label %131

131:                                              ; preds = %126, %86
  %.pn65 = phi { double, double } [ %90, %86 ], [ %130, %126 ]
  %.sroa.542.0 = extractvalue { double, double } %.pn65, 1
  %.sroa.041.0 = extractvalue { double, double } %.pn65, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #8
  %.sroa.05.0.copyload = load double, ptr %17, align 16
  %.sroa.26.0.copyload = load double, ptr %.sroa.535.0..sroa_idx, align 8, !tbaa !29
  %132 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %.sroa.041.0, double %.sroa.542.0, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload)
  %133 = extractvalue { double, double } %132, 0
  store double %133, ptr %22, align 16
  %134 = extractvalue { double, double } %132, 1
  store double %134, ptr %57, align 8
  %.sroa.03.0.copyload = load double, ptr %16, align 16
  %.sroa.24.0.copyload = load double, ptr %51, align 8, !tbaa !29
  %135 = call noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %22, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload)
  %136 = fneg float %135
  %137 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIterator17UpdatePenetrationEf(ptr noundef nonnull align 8 dereferenceable(80) %14, float noundef %136)
  br i1 %137, label %138, label %148

138:                                              ; preds = %131
  %139 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  %140 = extractvalue { double, double } %139, 0
  %141 = extractvalue { double, double } %139, 1
  %142 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %140, double %141)
  %143 = extractvalue { double, double } %142, 0
  %144 = extractvalue { double, double } %142, 1
  call void @_ZN3JPH5Plane9SetNormalENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %22, double %143, double %144)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #8
  %145 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 16 dereferenceable(64) %1)
  %146 = extractvalue { double, double } %145, 0
  store double %146, ptr %23, align 16
  %147 = extractvalue { double, double } %145, 1
  store double %147, ptr %58, align 8
  call void @_ZNK3JPH29CollideSoftBodyVertexIterator12SetCollisionERKNS_5PlaneEi(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 16 dereferenceable(16) %23, i32 noundef %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #8
  br label %148

148:                                              ; preds = %138, %131
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #8
  br label %149

149:                                              ; preds = %59, %148
  %150 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %151 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 8 dereferenceable(80) %15)
  br i1 %151, label %59, label %._crit_edge, !llvm.loop !32
}

; 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 #7 align 2

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

; 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 #4 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 #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #4 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 #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #4 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 #4 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: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 2157954938}
!6 = !{!7, !21, i64 72}
!7 = !{!"_ZTSN3JPH19TaperedCapsuleShapeE", !8, i64 0, !22, i64 48, !21, i64 64, !21, i64 68, !21, i64 72, !21, i64 76, !21, i64 80, !21, i64 84, !21, i64 88}
!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 = !{!"_ZTSN3JPH4Vec3E", !14, i64 0}
!23 = !{!7, !21, i64 76}
!24 = !{!7, !21, i64 64}
!25 = !{!7, !21, i64 68}
!26 = !{i64 0, i64 8, !27, i64 8, i64 4, !28, i64 16, i64 8, !27, i64 24, i64 4, !28, i64 32, i64 8, !27, i64 40, i64 4, !28, i64 48, i64 8, !27, i64 56, i64 4, !28, i64 64, i64 8, !27, i64 72, i64 4, !28}
!27 = !{!20, !20, i64 0}
!28 = !{!13, !13, i64 0}
!29 = !{!14, !14, i64 0}
!30 = !{!7, !21, i64 84}
!31 = !{!7, !21, i64 88}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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