; LLVM IR from zig-gamedev/zphysics :: libs/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::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 }
%"class.JPH::SoftBodyVertex" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Plane", i32, i8, float, float }

@.str.6 = external hidden unnamed_addr constant [112 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_4Vec3EPNS_14SoftBodyVertexEjfS4_i(ptr noundef nonnull align 16 dereferenceable(96) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef %4, i32 noundef %5, float noundef %6, double %7, double %8, i32 noundef %9) unnamed_addr #4 align 2 {
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"struct.JPH::AssertLastParam", align 1
  %21 = alloca %"class.JPH::Mat44", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca float, align 4
  %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::Vec3", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca float, align 4
  %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::Vec3", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Plane", align 16
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca %"class.JPH::Vec3", align 16
  %60 = alloca float, align 4
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = alloca %"class.JPH::Vec3", align 16
  %64 = alloca %"class.JPH::Plane", align 16
  %65 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %2, ptr %65, align 16
  %66 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %3, ptr %66, align 8
  %67 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %7, ptr %67, align 16
  %68 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %8, ptr %68, align 8
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store i32 %5, ptr %16, align 4, !tbaa !9
  store float %6, ptr %17, align 4, !tbaa !11
  store i32 %9, ptr %18, align 4, !tbaa !9
  %69 = load ptr, ptr %13, align 8
  br label %70

70:                                               ; preds = %10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !13
  %71 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %72 = load double, ptr %71, align 16
  %73 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %74 = load double, ptr %73, align 8
  %75 = call noundef zeroext i1 @_ZNK3JPH19TaperedCapsuleShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %69, double %72, double %74)
  br i1 %75, label %79, label %76

76:                                               ; preds = %70
  %77 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.8, ptr noundef @.str.6, i32 noundef 306)
  br i1 %77, label %78, label %79

78:                                               ; preds = %76
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !15
  br label %79

79:                                               ; preds = %78, %76, %70
  br label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #8
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %21, ptr noundef nonnull align 16 dereferenceable(64) %81)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  %82 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %83 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %84 = getelementptr inbounds %union.anon.6, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %89 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  store float %89, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %90 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  store float %90, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %91 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %92 = call noundef float @_ZN3JPH4SignIfEET_S1_(float noundef %91)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %25, float noundef 1.000000e+00, float noundef %92, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  %93 = load float, ptr %23, align 4, !tbaa !11
  %94 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %69, i32 0, i32 5
  %95 = load float, ptr %94, align 8, !tbaa !16
  %96 = fmul float %93, %95
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %26, float noundef 0.000000e+00, float noundef %96, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %97 = load float, ptr %23, align 4, !tbaa !11
  %98 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %69, i32 0, i32 6
  %99 = load float, ptr %98, align 4, !tbaa !28
  %100 = fmul float %97, %99
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %27, float noundef 0.000000e+00, float noundef %100, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %101 = load float, ptr %24, align 4, !tbaa !11
  %102 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %69, i32 0, i32 3
  %103 = load float, ptr %102, align 16, !tbaa !29
  %104 = fmul float %101, %103
  store float %104, ptr %28, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %105 = load float, ptr %24, align 4, !tbaa !11
  %106 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %69, i32 0, i32 4
  %107 = load float, ptr %106, align 4, !tbaa !30
  %108 = fmul float %105, %107
  store float %108, ptr %29, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %109, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %110, i64 %112
  store ptr %113, ptr %31, align 8, !tbaa !5
  br label %114

114:                                              ; preds = %393, %80
  %115 = load ptr, ptr %30, align 8, !tbaa !5
  %116 = load ptr, ptr %31, align 8, !tbaa !5
  %117 = icmp ult ptr %115, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %396

119:                                              ; preds = %114
  %120 = load ptr, ptr %30, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %120, i32 0, i32 7
  %122 = load float, ptr %121, align 4, !tbaa !31
  %123 = fcmp ogt float %122, 0.000000e+00
  br i1 %123, label %124, label %392

124:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  %125 = load ptr, ptr %30, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %125, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %126, i64 16, i1 false), !tbaa.struct !13
  %127 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %128 = load double, ptr %127, align 16
  %129 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %130 = load double, ptr %129, align 8
  %131 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %21, double %128, double %130)
  %132 = getelementptr inbounds %"class.JPH::Vec3", ptr %33, i32 0, i32 0
  %133 = getelementptr inbounds %union.anon.6, ptr %132, i32 0, i32 0
  %134 = getelementptr inbounds { double, double }, ptr %133, i32 0, i32 0
  %135 = extractvalue { double, double } %131, 0
  store double %135, ptr %134, align 16
  %136 = getelementptr inbounds { double, double }, ptr %133, i32 0, i32 1
  %137 = extractvalue { double, double } %131, 1
  store double %137, ptr %136, align 8
  %138 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %139 = load double, ptr %138, align 16
  %140 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %141 = load double, ptr %140, align 8
  %142 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %25, double %139, double %141)
  %143 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %144 = getelementptr inbounds %union.anon.6, ptr %143, i32 0, i32 0
  %145 = getelementptr inbounds { double, double }, ptr %144, i32 0, i32 0
  %146 = extractvalue { double, double } %142, 0
  store double %146, ptr %145, align 16
  %147 = getelementptr inbounds { double, double }, ptr %144, i32 0, i32 1
  %148 = extractvalue { double, double } %142, 1
  store double %148, ptr %147, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !13
  %149 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %150 = load double, ptr %149, align 16
  %151 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %152 = load double, ptr %151, align 8
  %153 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %32, double %150, double %152)
  %154 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i32 0, i32 0
  %155 = getelementptr inbounds %union.anon.6, ptr %154, i32 0, i32 0
  %156 = getelementptr inbounds { double, double }, ptr %155, i32 0, i32 0
  %157 = extractvalue { double, double } %153, 0
  store double %157, ptr %156, align 16
  %158 = getelementptr inbounds { double, double }, ptr %155, i32 0, i32 1
  %159 = extractvalue { double, double } %153, 1
  store double %159, ptr %158, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %160 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %37)
  store float %160, ptr %39, align 4, !tbaa !11
  %161 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %37)
  %162 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %69, i32 0, i32 8
  %163 = load float, ptr %162, align 4, !tbaa !36
  %164 = load float, ptr %39, align 4, !tbaa !11
  %165 = fmul float %163, %164
  %166 = fcmp oge float %161, %165
  br i1 %166, label %167, label %211

167:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  %168 = load float, ptr %39, align 4, !tbaa !11
  %169 = fcmp une float %168, 0.000000e+00
  br i1 %169, label %170, label %179

170:                                              ; preds = %167
  %171 = load float, ptr %39, align 4, !tbaa !11
  %172 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %37, float noundef %171)
  %173 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, 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 %187

179:                                              ; preds = %167
  %180 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %181 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, i32 0, i32 0
  %182 = getelementptr inbounds %union.anon.6, 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
  br label %187

187:                                              ; preds = %179, %170
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #8
  %188 = load float, ptr %28, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !13
  %189 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %190 = load double, ptr %189, align 16
  %191 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %192 = load double, ptr %191, align 8
  %193 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %188, double %190, double %192)
  %194 = getelementptr inbounds %"class.JPH::Vec3", ptr %42, i32 0, i32 0
  %195 = getelementptr inbounds %union.anon.6, ptr %194, i32 0, i32 0
  %196 = getelementptr inbounds { double, double }, ptr %195, i32 0, i32 0
  %197 = extractvalue { double, double } %193, 0
  store double %197, ptr %196, align 16
  %198 = getelementptr inbounds { double, double }, ptr %195, i32 0, i32 1
  %199 = extractvalue { double, double } %193, 1
  store double %199, ptr %198, align 8
  %200 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %201 = load double, ptr %200, align 16
  %202 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %203 = load double, ptr %202, align 8
  %204 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %26, double %201, double %203)
  %205 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %206 = getelementptr inbounds %union.anon.6, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds { double, double }, ptr %206, i32 0, i32 0
  %208 = extractvalue { double, double } %204, 0
  store double %208, ptr %207, align 16
  %209 = getelementptr inbounds { double, double }, ptr %206, i32 0, i32 1
  %210 = extractvalue { double, double } %204, 1
  store double %210, ptr %209, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  br label %323

211:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !13
  %212 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %213 = load double, ptr %212, align 16
  %214 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %215 = load double, ptr %214, align 8
  %216 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %32, double %213, double %215)
  %217 = getelementptr inbounds %"class.JPH::Vec3", ptr %44, i32 0, i32 0
  %218 = getelementptr inbounds %union.anon.6, ptr %217, i32 0, i32 0
  %219 = getelementptr inbounds { double, double }, ptr %218, i32 0, i32 0
  %220 = extractvalue { double, double } %216, 0
  store double %220, ptr %219, align 16
  %221 = getelementptr inbounds { double, double }, ptr %218, i32 0, i32 1
  %222 = extractvalue { double, double } %216, 1
  store double %222, ptr %221, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %223 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %44)
  store float %223, ptr %46, align 4, !tbaa !11
  %224 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %44)
  %225 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %69, i32 0, i32 8
  %226 = load float, ptr %225, align 4, !tbaa !36
  %227 = load float, ptr %46, align 4, !tbaa !11
  %228 = fmul float %226, %227
  %229 = fcmp ole float %224, %228
  br i1 %229, label %230, label %258

230:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #8
  %231 = load float, ptr %46, align 4, !tbaa !11
  %232 = fcmp une float %231, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #8
  br i1 %232, label %233, label %242

233:                                              ; preds = %230
  %234 = load float, ptr %46, align 4, !tbaa !11
  %235 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %44, float noundef %234)
  %236 = getelementptr inbounds %"class.JPH::Vec3", ptr %47, 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
  br label %257

242:                                              ; preds = %230
  %243 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %244 = getelementptr inbounds %"class.JPH::Vec3", ptr %48, i32 0, i32 0
  %245 = getelementptr inbounds %union.anon.6, ptr %244, i32 0, i32 0
  %246 = getelementptr inbounds { double, double }, ptr %245, i32 0, i32 0
  %247 = extractvalue { double, double } %243, 0
  store double %247, ptr %246, align 16
  %248 = getelementptr inbounds { double, double }, ptr %245, i32 0, i32 1
  %249 = extractvalue { double, double } %243, 1
  store double %249, ptr %248, align 8
  %250 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %48)
  %251 = getelementptr inbounds %"class.JPH::Vec3", ptr %47, i32 0, i32 0
  %252 = getelementptr inbounds %union.anon.6, ptr %251, i32 0, i32 0
  %253 = getelementptr inbounds { double, double }, ptr %252, i32 0, i32 0
  %254 = extractvalue { double, double } %250, 0
  store double %254, ptr %253, align 16
  %255 = getelementptr inbounds { double, double }, ptr %252, i32 0, i32 1
  %256 = extractvalue { double, double } %250, 1
  store double %256, ptr %255, align 8
  br label %257

257:                                              ; preds = %242, %233
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %47, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #8
  br label %299

258:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #8
  %259 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %32)
  %260 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %50, float noundef %259, float noundef 0.000000e+00, float noundef %260)
  %261 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %262 = getelementptr inbounds %"class.JPH::Vec3", ptr %51, i32 0, i32 0
  %263 = getelementptr inbounds %union.anon.6, ptr %262, i32 0, i32 0
  %264 = getelementptr inbounds { double, double }, ptr %263, i32 0, i32 0
  %265 = extractvalue { double, double } %261, 0
  store double %265, ptr %264, align 16
  %266 = getelementptr inbounds { double, double }, ptr %263, i32 0, i32 1
  %267 = extractvalue { double, double } %261, 1
  store double %267, ptr %266, align 8
  %268 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %269 = load double, ptr %268, align 16
  %270 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %271 = load double, ptr %270, align 8
  %272 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %50, double %269, double %271)
  %273 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %274 = getelementptr inbounds %union.anon.6, ptr %273, i32 0, i32 0
  %275 = getelementptr inbounds { double, double }, ptr %274, i32 0, i32 0
  %276 = extractvalue { double, double } %272, 0
  store double %276, ptr %275, align 16
  %277 = getelementptr inbounds { double, double }, ptr %274, i32 0, i32 1
  %278 = extractvalue { double, double } %272, 1
  store double %278, ptr %277, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %49, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #8
  %279 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %69, i32 0, i32 9
  %280 = load float, ptr %279, align 8, !tbaa !37
  call void @_ZN3JPH4Vec34SetYEf(ptr noundef nonnull align 16 dereferenceable(16) %36, float noundef %280)
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #8
  %281 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %282 = getelementptr inbounds %"class.JPH::Vec3", ptr %53, i32 0, i32 0
  %283 = getelementptr inbounds %union.anon.6, ptr %282, i32 0, i32 0
  %284 = getelementptr inbounds { double, double }, ptr %283, i32 0, i32 0
  %285 = extractvalue { double, double } %281, 0
  store double %285, ptr %284, align 16
  %286 = getelementptr inbounds { double, double }, ptr %283, i32 0, i32 1
  %287 = extractvalue { double, double } %281, 1
  store double %287, ptr %286, align 8
  %288 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %289 = load double, ptr %288, align 16
  %290 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %291 = load double, ptr %290, align 8
  %292 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %36, double %289, double %291)
  %293 = getelementptr inbounds %"class.JPH::Vec3", ptr %52, i32 0, i32 0
  %294 = getelementptr inbounds %union.anon.6, ptr %293, i32 0, i32 0
  %295 = getelementptr inbounds { double, double }, ptr %294, i32 0, i32 0
  %296 = extractvalue { double, double } %292, 0
  store double %296, ptr %295, align 16
  %297 = getelementptr inbounds { double, double }, ptr %294, i32 0, i32 1
  %298 = extractvalue { double, double } %292, 1
  store double %298, ptr %297, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %52, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #8
  br label %299

299:                                              ; preds = %258, %257
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #8
  %300 = load float, ptr %29, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !13
  %301 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %302 = load double, ptr %301, align 16
  %303 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %304 = load double, ptr %303, align 8
  %305 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %300, double %302, double %304)
  %306 = getelementptr inbounds %"class.JPH::Vec3", ptr %55, i32 0, i32 0
  %307 = getelementptr inbounds %union.anon.6, ptr %306, i32 0, i32 0
  %308 = getelementptr inbounds { double, double }, ptr %307, i32 0, i32 0
  %309 = extractvalue { double, double } %305, 0
  store double %309, ptr %308, align 16
  %310 = getelementptr inbounds { double, double }, ptr %307, i32 0, i32 1
  %311 = extractvalue { double, double } %305, 1
  store double %311, ptr %310, align 8
  %312 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %313 = load double, ptr %312, align 16
  %314 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %315 = load double, ptr %314, align 8
  %316 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %27, double %313, double %315)
  %317 = getelementptr inbounds %"class.JPH::Vec3", ptr %54, i32 0, i32 0
  %318 = getelementptr inbounds %union.anon.6, ptr %317, i32 0, i32 0
  %319 = getelementptr inbounds { double, double }, ptr %318, i32 0, i32 0
  %320 = extractvalue { double, double } %316, 0
  store double %320, ptr %319, align 16
  %321 = getelementptr inbounds { double, double }, ptr %318, i32 0, i32 1
  %322 = extractvalue { double, double } %316, 1
  store double %322, ptr %321, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %54, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #8
  br label %323

323:                                              ; preds = %299, %187
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %35, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !13
  %324 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %325 = load double, ptr %324, align 16
  %326 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %327 = load double, ptr %326, align 8
  %328 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %329 = load double, ptr %328, align 16
  %330 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %331 = load double, ptr %330, align 8
  %332 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %325, double %327, double %329, double %331)
  %333 = getelementptr inbounds %"class.JPH::Plane", ptr %57, i32 0, i32 0
  %334 = getelementptr inbounds %"class.JPH::Vec4", ptr %333, i32 0, i32 0
  %335 = getelementptr inbounds %union.anon.7, ptr %334, i32 0, i32 0
  %336 = getelementptr inbounds { double, double }, ptr %335, i32 0, i32 0
  %337 = extractvalue { double, double } %332, 0
  store double %337, ptr %336, align 16
  %338 = getelementptr inbounds { double, double }, ptr %335, i32 0, i32 1
  %339 = extractvalue { double, double } %332, 1
  store double %339, ptr %338, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %61, ptr align 16 %32, i64 16, i1 false), !tbaa.struct !13
  %340 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %341 = load double, ptr %340, align 16
  %342 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %343 = load double, ptr %342, align 8
  %344 = call noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %57, double %341, double %343)
  %345 = fneg float %344
  store float %345, ptr %60, align 4, !tbaa !11
  %346 = load float, ptr %60, align 4, !tbaa !11
  %347 = load ptr, ptr %30, align 8, !tbaa !5
  %348 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %347, i32 0, i32 6
  %349 = load float, ptr %348, align 8, !tbaa !38
  %350 = fcmp ogt float %346, %349
  br i1 %350, label %351, label %391

351:                                              ; preds = %323
  %352 = load float, ptr %60, align 4, !tbaa !11
  %353 = load ptr, ptr %30, align 8, !tbaa !5
  %354 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %353, i32 0, i32 6
  store float %352, ptr %354, align 8, !tbaa !38
  %355 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %57)
  %356 = getelementptr inbounds %"class.JPH::Vec3", ptr %63, i32 0, i32 0
  %357 = getelementptr inbounds %union.anon.6, ptr %356, i32 0, i32 0
  %358 = getelementptr inbounds { double, double }, ptr %357, i32 0, i32 0
  %359 = extractvalue { double, double } %355, 0
  store double %359, ptr %358, align 16
  %360 = getelementptr inbounds { double, double }, ptr %357, i32 0, i32 1
  %361 = extractvalue { double, double } %355, 1
  store double %361, ptr %360, align 8
  %362 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %363 = load double, ptr %362, align 16
  %364 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %365 = load double, ptr %364, align 8
  %366 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %25, double %363, double %365)
  %367 = getelementptr inbounds %"class.JPH::Vec3", ptr %62, i32 0, i32 0
  %368 = getelementptr inbounds %union.anon.6, ptr %367, i32 0, i32 0
  %369 = getelementptr inbounds { double, double }, ptr %368, i32 0, i32 0
  %370 = extractvalue { double, double } %366, 0
  store double %370, ptr %369, align 16
  %371 = getelementptr inbounds { double, double }, ptr %368, i32 0, i32 1
  %372 = extractvalue { double, double } %366, 1
  store double %372, ptr %371, align 8
  %373 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %374 = load double, ptr %373, align 16
  %375 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %376 = load double, ptr %375, align 8
  call void @_ZN3JPH5Plane9SetNormalENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %57, double %374, double %376)
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #8
  %377 = load ptr, ptr %14, align 8, !tbaa !5
  %378 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %57, ptr noundef nonnull align 16 dereferenceable(64) %377)
  %379 = getelementptr inbounds %"class.JPH::Plane", ptr %64, i32 0, i32 0
  %380 = getelementptr inbounds %"class.JPH::Vec4", ptr %379, i32 0, i32 0
  %381 = getelementptr inbounds %union.anon.7, ptr %380, i32 0, i32 0
  %382 = getelementptr inbounds { double, double }, ptr %381, i32 0, i32 0
  %383 = extractvalue { double, double } %378, 0
  store double %383, ptr %382, align 16
  %384 = getelementptr inbounds { double, double }, ptr %381, i32 0, i32 1
  %385 = extractvalue { double, double } %378, 1
  store double %385, ptr %384, align 8
  %386 = load ptr, ptr %30, align 8, !tbaa !5
  %387 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %386, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %387, ptr align 16 %64, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #8
  %388 = load i32, ptr %18, align 4, !tbaa !9
  %389 = load ptr, ptr %30, align 8, !tbaa !5
  %390 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %389, i32 0, i32 4
  store i32 %388, ptr %390, align 16, !tbaa !39
  br label %391

391:                                              ; preds = %351, %323
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  br label %392

392:                                              ; preds = %391, %119
  br label %393

393:                                              ; preds = %392
  %394 = load ptr, ptr %30, align 8, !tbaa !5
  %395 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %394, i32 1
  store ptr %395, ptr %30, align 8, !tbaa !5
  br label %114, !llvm.loop !40

396:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  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 64, ptr %21) #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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #1 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 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: 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

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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{i64 0, i64 16, !14}
!14 = !{!7, !7, i64 0}
!15 = !{i64 2157772769}
!16 = !{!17, !12, i64 72}
!17 = !{!"_ZTSN3JPH19TaperedCapsuleShapeE", !18, i64 0, !27, i64 48, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88}
!18 = !{!"_ZTSN3JPH11ConvexShapeE", !19, i64 0, !26, i64 32, !12, 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, !12, i64 76}
!29 = !{!17, !12, i64 64}
!30 = !{!17, !12, i64 68}
!31 = !{!32, !12, i64 76}
!32 = !{!"_ZTSN3JPH14SoftBodyVertexE", !27, i64 0, !27, i64 16, !27, i64 32, !33, i64 48, !10, i64 64, !35, i64 68, !12, i64 72, !12, i64 76}
!33 = !{!"_ZTSN3JPH5PlaneE", !34, i64 0}
!34 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!35 = !{!"bool", !7, i64 0}
!36 = !{!17, !12, i64 84}
!37 = !{!17, !12, i64 88}
!38 = !{!32, !12, i64 72}
!39 = !{!32, !10, i64 64}
!40 = distinct !{!40, !41}
!41 = !{!"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::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::SoftBodyVertex" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Plane", i32, i8, float, float }

@.str.6 = external hidden unnamed_addr constant [112 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH19TaperedCapsuleShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96), double, double) unnamed_addr #3 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 #4 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisXEv() local_unnamed_addr #6 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 #5 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_4Vec3EPNS_14SoftBodyVertexEjfS4_i(ptr noundef nonnull align 16 dereferenceable(96) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef %4, i32 noundef %5, float noundef %6, double %7, double %8, i32 noundef %9) unnamed_addr #3 align 2 {
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Mat44", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Plane", align 16
  store double %2, ptr %11, align 16
  %24 = getelementptr inbounds i8, ptr %11, 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 = %10
  %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}"() #7, !srcloc !5
  br label %29

29:                                               ; preds = %10, %26, %28
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #7
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %30 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %31 = extractvalue { double, double } %30, 0
  store double %31, ptr %13, align 16
  %32 = getelementptr inbounds i8, ptr %13, 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) %13)
  %35 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %36 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %37 = call noundef float @_ZN3JPH4SignIfEET_S1_(float noundef %36)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 1.000000e+00, float noundef %37, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  %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) %15, float noundef 0.000000e+00, float noundef %40, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  %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) %16, 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
  %50 = zext i32 %5 to i64
  %51 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %4, i64 %50
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %29
  %52 = getelementptr inbounds i8, ptr %17, i64 8
  %.sroa.243.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %53 = getelementptr inbounds i8, ptr %19, i64 8
  %54 = getelementptr inbounds i8, ptr %0, i64 84
  %.sroa.538.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  %.sroa.230.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %55 = getelementptr inbounds i8, ptr %20, i64 8
  %56 = getelementptr inbounds i8, ptr %21, i64 8
  %57 = getelementptr inbounds i8, ptr %0, i64 88
  %58 = getelementptr inbounds i8, ptr %23, i64 8
  br label %59

._crit_edge:                                      ; preds = %152, %29
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  ret void

59:                                               ; preds = %.lr.ph, %152
  %.082 = phi ptr [ %4, %.lr.ph ], [ %153, %152 ]
  %60 = getelementptr inbounds i8, ptr %.082, i64 76
  %61 = load float, ptr %60, align 4, !tbaa !26
  %62 = fcmp ogt float %61, 0.000000e+00
  br i1 %62, label %63, label %152

63:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  %64 = getelementptr inbounds i8, ptr %.082, i64 16
  %.sroa.046.0.copyload = load double, ptr %64, align 16
  %.sroa.247.0..sroa_idx = getelementptr inbounds i8, ptr %.082, i64 24
  %.sroa.247.0.copyload = load double, ptr %.sroa.247.0..sroa_idx, align 8, !tbaa !31
  %65 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %12, double %.sroa.046.0.copyload, double %.sroa.247.0.copyload)
  %66 = extractvalue { double, double } %65, 0
  %67 = extractvalue { double, double } %65, 1
  %68 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %66, double %67)
  %69 = extractvalue { double, double } %68, 0
  store double %69, ptr %17, align 16
  %70 = extractvalue { double, double } %68, 1
  store double %70, ptr %52, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  %.sroa.042.0.copyload = load double, ptr %15, align 16
  %.sroa.243.0.copyload = load double, ptr %.sroa.243.0..sroa_idx, align 8, !tbaa !31
  %71 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %.sroa.042.0.copyload, double %.sroa.243.0.copyload)
  %72 = extractvalue { double, double } %71, 0
  store double %72, ptr %19, align 16
  %73 = extractvalue { double, double } %71, 1
  store double %73, ptr %53, align 8
  %74 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %19)
  %75 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %19)
  %76 = load float, ptr %54, align 4, !tbaa !32
  %77 = fmul float %74, %76
  %78 = fcmp ult float %75, %77
  br i1 %78, label %90, label %79

79:                                               ; preds = %63
  %80 = fcmp une float %74, 0.000000e+00
  br i1 %80, label %81, label %83

81:                                               ; preds = %79
  %82 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef %74)
  br label %85

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

85:                                               ; preds = %83, %81
  %.pn78 = phi { double, double } [ %82, %81 ], [ %84, %83 ]
  %.sroa.538.0 = extractvalue { double, double } %.pn78, 1
  %.sroa.037.0 = extractvalue { double, double } %.pn78, 0
  store double %.sroa.037.0, ptr %18, align 16
  store double %.sroa.538.0, ptr %.sroa.538.0..sroa_idx, align 8, !tbaa !31
  %86 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %46, double %.sroa.037.0, double %.sroa.538.0)
  %87 = extractvalue { double, double } %86, 0
  %88 = extractvalue { double, double } %86, 1
  %89 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %87, double %88)
  br label %130

90:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #7
  %.sroa.029.0.copyload = load double, ptr %16, align 16
  %.sroa.230.0.copyload = load double, ptr %.sroa.230.0..sroa_idx, align 8, !tbaa !31
  %91 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %.sroa.029.0.copyload, double %.sroa.230.0.copyload)
  %92 = extractvalue { double, double } %91, 0
  store double %92, ptr %20, align 16
  %93 = extractvalue { double, double } %91, 1
  store double %93, ptr %55, align 8
  %94 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %20)
  %95 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %20)
  %96 = load float, ptr %54, align 4, !tbaa !32
  %97 = fmul float %94, %96
  %98 = fcmp ugt float %95, %97
  br i1 %98, label %109, label %99

99:                                               ; preds = %90
  %100 = fcmp une float %94, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  br i1 %100, label %101, label %103

101:                                              ; preds = %99
  %102 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef %94)
  br label %108

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

108:                                              ; preds = %103, %101
  %.pn = phi { double, double } [ %102, %101 ], [ %107, %103 ]
  %.sroa.5.0 = extractvalue { double, double } %.pn, 1
  %.sroa.025.0 = extractvalue { double, double } %.pn, 0
  store double %.sroa.025.0, ptr %18, align 16
  store double %.sroa.5.0, ptr %.sroa.538.0..sroa_idx, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  br label %125

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

125:                                              ; preds = %109, %108
  %.sroa.212.0.copyload = phi double [ %124, %109 ], [ %.sroa.5.0, %108 ]
  %.sroa.011.0.copyload = phi double [ %123, %109 ], [ %.sroa.025.0, %108 ]
  %126 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %49, double %.sroa.011.0.copyload, double %.sroa.212.0.copyload)
  %127 = extractvalue { double, double } %126, 0
  %128 = extractvalue { double, double } %126, 1
  %129 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %127, double %128)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  br label %130

130:                                              ; preds = %125, %85
  %.pn80 = phi { double, double } [ %89, %85 ], [ %129, %125 ]
  %.sroa.545.0 = extractvalue { double, double } %.pn80, 1
  %.sroa.044.0 = extractvalue { double, double } %.pn80, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  %.sroa.07.0.copyload = load double, ptr %18, align 16
  %.sroa.28.0.copyload = load double, ptr %.sroa.538.0..sroa_idx, align 8, !tbaa !31
  %131 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %.sroa.044.0, double %.sroa.545.0, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload)
  %132 = extractvalue { double, double } %131, 0
  store double %132, ptr %23, align 16
  %133 = extractvalue { double, double } %131, 1
  store double %133, ptr %58, align 8
  %.sroa.04.0.copyload = load double, ptr %17, align 16
  %.sroa.25.0.copyload = load double, ptr %52, align 8, !tbaa !31
  %134 = call noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %23, double %.sroa.04.0.copyload, double %.sroa.25.0.copyload)
  %135 = fneg float %134
  %136 = getelementptr inbounds i8, ptr %.082, i64 72
  %137 = load float, ptr %136, align 8, !tbaa !34
  %138 = fcmp olt float %137, %135
  br i1 %138, label %139, label %151

139:                                              ; preds = %130
  store float %135, ptr %136, align 8, !tbaa !34
  %140 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %23)
  %141 = extractvalue { double, double } %140, 0
  %142 = extractvalue { double, double } %140, 1
  %143 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %141, double %142)
  %144 = extractvalue { double, double } %143, 0
  %145 = extractvalue { double, double } %143, 1
  call void @_ZN3JPH5Plane9SetNormalENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %23, double %144, double %145)
  %146 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %23, ptr noundef nonnull align 16 dereferenceable(64) %1)
  %147 = extractvalue { double, double } %146, 0
  %148 = extractvalue { double, double } %146, 1
  %149 = getelementptr inbounds i8, ptr %.082, i64 48
  store double %147, ptr %149, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %.082, i64 56
  store double %148, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !31
  %150 = getelementptr inbounds i8, ptr %.082, i64 64
  store i32 %9, ptr %150, align 16, !tbaa !35
  br label %151

151:                                              ; preds = %139, %130
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br label %152

152:                                              ; preds = %59, %151
  %153 = getelementptr inbounds i8, ptr %.082, i64 80
  %154 = icmp ult ptr %153, %51
  br i1 %154, label %59, label %._crit_edge, !llvm.loop !36
}

; 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH4SignIfEET_S1_(float noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 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 #2 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 = { 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 #3 = { 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 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 #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 = { 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 2157772769}
!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 = !{!27, !21, i64 76}
!27 = !{!"_ZTSN3JPH14SoftBodyVertexE", !22, i64 0, !22, i64 16, !22, i64 32, !28, i64 48, !13, i64 64, !30, i64 68, !21, i64 72, !21, i64 76}
!28 = !{!"_ZTSN3JPH5PlaneE", !29, i64 0}
!29 = !{!"_ZTSN3JPH4Vec4E", !14, i64 0}
!30 = !{!"bool", !14, i64 0}
!31 = !{!14, !14, i64 0}
!32 = !{!7, !21, i64 84}
!33 = !{!7, !21, i64 88}
!34 = !{!27, !21, i64 72}
!35 = !{!27, !13, i64 64}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}


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