; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/Physics/Collision/Shape (ConvexHullShape)

; 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> }
%"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 }
%"class.JPH::ConvexHullShape" = type <{ %"class.JPH::ConvexShape.base", [4 x i8], %"class.JPH::Vec3", %"class.JPH::Mat44", %"class.JPH::AABox", %"class.JPH::Array.8", %"class.JPH::Array.11", %"class.JPH::Array.14", %"class.JPH::Array.17", 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.5", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.5" = 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::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Array.8" = type { i64, i64, ptr }
%"class.JPH::Array.11" = type { i64, i64, ptr }
%"class.JPH::Array.14" = type { i64, i64, ptr }
%"class.JPH::Array.17" = type { i64, i64, ptr }
%"struct.JPH::ConvexHullShape::Face" = type { i16, i16 }
%"struct.JPH::ConvexHullShape::Point" = type { %"class.JPH::Vec3", i32, [3 x i32] }

; 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 { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #1 align 2

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

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

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

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

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

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

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

; 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 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 noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsNotScaledENS_4Vec3E(double, double) #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec310ReciprocalEv(ptr noundef nonnull align 16 dereferenceable(16)) #1 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsInsideOutENS_4Vec3E(double, double) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape5PointENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() #1 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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH15ConvexHullShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3EPNS_14SoftBodyVertexEjfS4_i(ptr noundef nonnull align 16 dereferenceable(272) %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::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::Mat44", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca i8, align 1
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca float, align 4
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca float, align 4
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca float, align 4
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca i32, align 4
  %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 i8, align 1
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Vec3", align 16
  %53 = alloca float, align 4
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca ptr, align 8
  %57 = alloca ptr, align 8
  %58 = alloca ptr, align 8
  %59 = alloca %"class.JPH::Vec3", align 16
  %60 = alloca %"class.JPH::Vec3", align 16
  %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::Vec3", align 16
  %65 = alloca %"class.JPH::Vec3", align 16
  %66 = alloca %"class.JPH::Vec3", align 16
  %67 = alloca %"class.JPH::Vec3", align 16
  %68 = alloca %"class.JPH::Vec3", align 16
  %69 = alloca i32, align 4
  %70 = alloca %"class.JPH::Vec3", align 16
  %71 = alloca %"class.JPH::Vec3", align 16
  %72 = alloca %"class.JPH::Vec3", align 16
  %73 = alloca %"class.JPH::Vec3", align 16
  %74 = alloca %"class.JPH::Vec3", align 16
  %75 = alloca float, align 4
  %76 = alloca %"class.JPH::Vec3", align 16
  %77 = alloca %"class.JPH::Vec3", align 16
  %78 = alloca %"class.JPH::Vec3", align 16
  %79 = alloca %"class.JPH::Vec3", align 16
  %80 = alloca float, align 4
  %81 = alloca float, align 4
  %82 = alloca %"class.JPH::Vec3", align 16
  %83 = alloca %"class.JPH::Vec3", align 16
  %84 = alloca %"class.JPH::Plane", align 16
  %85 = alloca %"class.JPH::Vec3", align 16
  %86 = alloca %"class.JPH::Vec3", align 16
  %87 = alloca %"class.JPH::Plane", align 16
  %88 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %2, ptr %88, align 16
  %89 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %3, ptr %89, align 8
  %90 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %7, ptr %90, align 16
  %91 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %8, ptr %91, 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
  %92 = load ptr, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #8
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %19, ptr noundef nonnull align 16 dereferenceable(64) %93)
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %94 = call { double, double } @_ZNK3JPH4Vec310ReciprocalEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %95 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %96 = getelementptr inbounds %union.anon.6, ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds { double, double }, ptr %96, i32 0, i32 0
  %98 = extractvalue { double, double } %94, 0
  store double %98, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %96, i32 0, i32 1
  %100 = extractvalue { double, double } %94, 1
  store double %100, ptr %99, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !13
  %101 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %102 = load double, ptr %101, align 16
  %103 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %104 = load double, ptr %103, align 8
  %105 = call noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsNotScaledENS_4Vec3E(double %102, double %104)
  %106 = zext i1 %105 to i8
  store i8 %106, ptr %21, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !13
  %107 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %108 = load double, ptr %107, align 16
  %109 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %110 = load double, ptr %109, align 8
  %111 = call noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsInsideOutENS_4Vec3E(double %108, double %110)
  %112 = zext i1 %111 to i64
  %113 = select i1 %111, float -1.000000e+00, float 1.000000e+00
  store float %113, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %114, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = load i32, ptr %16, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %115, i64 %117
  store ptr %118, ptr %26, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %566, %10
  %120 = load ptr, ptr %25, align 8, !tbaa !5
  %121 = load ptr, ptr %26, align 8, !tbaa !5
  %122 = icmp ult ptr %120, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  store i32 2, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %569

124:                                              ; preds = %119
  %125 = load ptr, ptr %25, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %125, i32 0, i32 7
  %127 = load float, ptr %126, align 4, !tbaa !17
  %128 = fcmp ogt float %127, 0.000000e+00
  br i1 %128, label %129, label %565

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  %130 = load ptr, ptr %25, align 8, !tbaa !5
  %131 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %130, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %131, i64 16, i1 false), !tbaa.struct !13
  %132 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %133 = load double, ptr %132, align 16
  %134 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %135 = load double, ptr %134, align 8
  %136 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %19, double %133, double %135)
  %137 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %138 = getelementptr inbounds %union.anon.6, ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds { double, double }, ptr %138, i32 0, i32 0
  %140 = extractvalue { double, double } %136, 0
  store double %140, ptr %139, align 16
  %141 = getelementptr inbounds { double, double }, ptr %138, i32 0, i32 1
  %142 = extractvalue { double, double } %136, 1
  store double %142, ptr %141, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store float 0xC7EFFFFFE0000000, ptr %30, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  %143 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %144 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %145 = getelementptr inbounds %union.anon.6, ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds { double, double }, ptr %145, i32 0, i32 0
  %147 = extractvalue { double, double } %143, 0
  store double %147, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %145, i32 0, i32 1
  %149 = extractvalue { double, double } %143, 1
  store double %149, ptr %148, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 0, ptr %32, align 4, !tbaa !9
  %150 = load i8, ptr %21, align 1, !tbaa !15, !range !22, !noundef !23
  %151 = trunc i8 %150 to i1
  br i1 %151, label %152, label %197

152:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %153 = getelementptr inbounds %"class.JPH::ConvexHullShape", ptr %92, i32 0, i32 7
  store ptr %153, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %154 = load ptr, ptr %33, align 8, !tbaa !5
  %155 = call noundef ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %154)
  store ptr %155, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %156 = load ptr, ptr %33, align 8, !tbaa !5
  %157 = call noundef ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %156)
  store ptr %157, ptr %35, align 8, !tbaa !5
  br label %158

158:                                              ; preds = %193, %152
  %159 = load ptr, ptr %34, align 8, !tbaa !5
  %160 = load ptr, ptr %35, align 8, !tbaa !5
  %161 = icmp ne ptr %159, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %158
  store i32 5, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %196

163:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %164 = load ptr, ptr %34, align 8, !tbaa !5
  store ptr %164, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %165 = load ptr, ptr %36, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !13
  %166 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %167 = load double, ptr %166, align 16
  %168 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %169 = load double, ptr %168, align 8
  %170 = call noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %165, double %167, double %169)
  store float %170, ptr %37, align 4, !tbaa !11
  %171 = load float, ptr %37, align 4, !tbaa !11
  %172 = load float, ptr %30, align 4, !tbaa !11
  %173 = fcmp ogt float %171, %172
  br i1 %173, label %174, label %192

174:                                              ; preds = %163
  %175 = load float, ptr %37, align 4, !tbaa !11
  store float %175, ptr %30, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #8
  %176 = load ptr, ptr %36, align 8, !tbaa !5
  %177 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %176)
  %178 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %179 = getelementptr inbounds %union.anon.6, ptr %178, i32 0, i32 0
  %180 = getelementptr inbounds { double, double }, ptr %179, i32 0, i32 0
  %181 = extractvalue { double, double } %177, 0
  store double %181, ptr %180, align 16
  %182 = getelementptr inbounds { double, double }, ptr %179, i32 0, i32 1
  %183 = extractvalue { double, double } %177, 1
  store double %183, ptr %182, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %39, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #8
  %184 = load ptr, ptr %36, align 8, !tbaa !5
  %185 = getelementptr inbounds %"class.JPH::ConvexHullShape", ptr %92, i32 0, i32 7
  %186 = call noundef ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %185)
  %187 = ptrtoint ptr %184 to i64
  %188 = ptrtoint ptr %186 to i64
  %189 = sub i64 %187, %188
  %190 = sdiv exact i64 %189, 16
  %191 = trunc i64 %190 to i32
  store i32 %191, ptr %32, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %174, %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %193

193:                                              ; preds = %192
  %194 = load ptr, ptr %34, align 8, !tbaa !5
  %195 = getelementptr inbounds %"class.JPH::Plane", ptr %194, i32 1
  store ptr %195, ptr %34, align 8, !tbaa !5
  br label %158

196:                                              ; preds = %162
  br label %287

197:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %283, %197
  %199 = load i32, ptr %40, align 4, !tbaa !9
  %200 = getelementptr inbounds %"class.JPH::ConvexHullShape", ptr %92, i32 0, i32 7
  %201 = call noundef i64 @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %200)
  %202 = trunc i64 %201 to i32
  %203 = icmp ult i32 %199, %202
  br i1 %203, label %205, label %204

204:                                              ; preds = %198
  store i32 7, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %286

205:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #8
  %206 = getelementptr inbounds %"class.JPH::ConvexHullShape", ptr %92, i32 0, i32 7
  %207 = load i32, ptr %40, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %206, i64 noundef %208)
  %210 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %209)
  %211 = getelementptr inbounds %"class.JPH::Vec3", ptr %43, i32 0, i32 0
  %212 = getelementptr inbounds %union.anon.6, ptr %211, i32 0, i32 0
  %213 = getelementptr inbounds { double, double }, ptr %212, i32 0, i32 0
  %214 = extractvalue { double, double } %210, 0
  store double %214, ptr %213, align 16
  %215 = getelementptr inbounds { double, double }, ptr %212, i32 0, i32 1
  %216 = extractvalue { double, double } %210, 1
  store double %216, ptr %215, align 8
  %217 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %218 = load double, ptr %217, align 16
  %219 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %220 = load double, ptr %219, align 8
  %221 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %218, double %220)
  %222 = getelementptr inbounds %"class.JPH::Vec3", ptr %42, i32 0, i32 0
  %223 = getelementptr inbounds %union.anon.6, ptr %222, i32 0, i32 0
  %224 = getelementptr inbounds { double, double }, ptr %223, i32 0, i32 0
  %225 = extractvalue { double, double } %221, 0
  store double %225, ptr %224, align 16
  %226 = getelementptr inbounds { double, double }, ptr %223, i32 0, i32 1
  %227 = extractvalue { double, double } %221, 1
  store double %227, ptr %226, align 8
  %228 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %42)
  %229 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %230 = getelementptr inbounds %union.anon.6, ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds { double, double }, ptr %230, i32 0, i32 0
  %232 = extractvalue { double, double } %228, 0
  store double %232, ptr %231, align 16
  %233 = getelementptr inbounds { double, double }, ptr %230, i32 0, i32 1
  %234 = extractvalue { double, double } %228, 1
  store double %234, ptr %233, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #8
  %235 = getelementptr inbounds %"class.JPH::ConvexHullShape", ptr %92, i32 0, i32 5
  %236 = getelementptr inbounds %"class.JPH::ConvexHullShape", ptr %92, i32 0, i32 8
  %237 = getelementptr inbounds %"class.JPH::ConvexHullShape", ptr %92, i32 0, i32 6
  %238 = load i32, ptr %40, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape4FaceENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %239)
  %241 = getelementptr inbounds %"struct.JPH::ConvexHullShape::Face", ptr %240, i32 0, i32 0
  %242 = load i16, ptr %241, align 2, !tbaa !24
  %243 = zext i16 %242 to i64
  %244 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %236, i64 noundef %243)
  %245 = load i8, ptr %244, align 1, !tbaa !14
  %246 = zext i8 %245 to i64
  %247 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape5PointENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %235, i64 noundef %246)
  %248 = getelementptr inbounds %"struct.JPH::ConvexHullShape::Point", ptr %247, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %248, i64 16, i1 false), !tbaa.struct !13
  %249 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %250 = load double, ptr %249, align 16
  %251 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %252 = load double, ptr %251, align 8
  %253 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %250, double %252)
  %254 = getelementptr inbounds %"class.JPH::Vec3", ptr %44, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %48, ptr align 16 %44, i64 16, i1 false), !tbaa.struct !13
  %260 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %261 = load double, ptr %260, align 16
  %262 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %263 = load double, ptr %262, align 8
  %264 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %261, double %263)
  %265 = getelementptr inbounds %"class.JPH::Vec3", ptr %47, 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
  %271 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %272 = load double, ptr %271, align 16
  %273 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %274 = load double, ptr %273, align 8
  %275 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %41, double %272, double %274)
  store float %275, ptr %46, align 4, !tbaa !11
  %276 = load float, ptr %46, align 4, !tbaa !11
  %277 = load float, ptr %30, align 4, !tbaa !11
  %278 = fcmp ogt float %276, %277
  br i1 %278, label %279, label %282

279:                                              ; preds = %205
  %280 = load float, ptr %46, align 4, !tbaa !11
  store float %280, ptr %30, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !13
  %281 = load i32, ptr %40, align 4, !tbaa !9
  store i32 %281, ptr %32, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %279, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  br label %283

283:                                              ; preds = %282
  %284 = load i32, ptr %40, align 4, !tbaa !9
  %285 = add i32 %284, 1
  store i32 %285, ptr %40, align 4, !tbaa !9
  br label %198, !llvm.loop !27

286:                                              ; preds = %204
  br label %287

287:                                              ; preds = %286, %196
  call void @llvm.lifetime.start.p0(i64 1, ptr %49) #8
  %288 = load float, ptr %30, align 4, !tbaa !11
  %289 = fcmp ogt float %288, 0.000000e+00
  %290 = zext i1 %289 to i8
  store i8 %290, ptr %49, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #8
  %291 = load float, ptr %30, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %52, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !13
  %292 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %293 = load double, ptr %292, align 16
  %294 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %295 = load double, ptr %294, align 8
  %296 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %291, double %293, double %295)
  %297 = getelementptr inbounds %"class.JPH::Vec3", ptr %51, i32 0, i32 0
  %298 = getelementptr inbounds %union.anon.6, ptr %297, i32 0, i32 0
  %299 = getelementptr inbounds { double, double }, ptr %298, i32 0, i32 0
  %300 = extractvalue { double, double } %296, 0
  store double %300, ptr %299, align 16
  %301 = getelementptr inbounds { double, double }, ptr %298, i32 0, i32 1
  %302 = extractvalue { double, double } %296, 1
  store double %302, ptr %301, align 8
  %303 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %304 = load double, ptr %303, align 16
  %305 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %306 = load double, ptr %305, align 8
  %307 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %304, double %306)
  %308 = getelementptr inbounds %"class.JPH::Vec3", ptr %50, i32 0, i32 0
  %309 = getelementptr inbounds %union.anon.6, ptr %308, i32 0, i32 0
  %310 = getelementptr inbounds { double, double }, ptr %309, i32 0, i32 0
  %311 = extractvalue { double, double } %307, 0
  store double %311, ptr %310, align 16
  %312 = getelementptr inbounds { double, double }, ptr %309, i32 0, i32 1
  %313 = extractvalue { double, double } %307, 1
  store double %313, ptr %312, align 8
  %314 = load i8, ptr %49, align 1, !tbaa !15, !range !22, !noundef !23
  %315 = trunc i8 %314 to i1
  br i1 %315, label %316, label %484

316:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  store float 0x47EFFFFFE0000000, ptr %53, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #8
  %317 = getelementptr inbounds %"class.JPH::ConvexHullShape", ptr %92, i32 0, i32 6
  %318 = load i32, ptr %32, align 4, !tbaa !9
  %319 = zext i32 %318 to i64
  %320 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape4FaceENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %317, i64 noundef %319)
  store ptr %320, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #8
  %321 = getelementptr inbounds %"class.JPH::ConvexHullShape", ptr %92, i32 0, i32 8
  %322 = load ptr, ptr %54, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.JPH::ConvexHullShape::Face", ptr %322, i32 0, i32 0
  %324 = load i16, ptr %323, align 2, !tbaa !24
  %325 = zext i16 %324 to i64
  %326 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %321, i64 noundef %325)
  store ptr %326, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  %327 = load ptr, ptr %55, align 8, !tbaa !5
  store ptr %327, ptr %56, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #8
  %328 = load ptr, ptr %55, align 8, !tbaa !5
  %329 = load ptr, ptr %54, align 8, !tbaa !5
  %330 = getelementptr inbounds %"struct.JPH::ConvexHullShape::Face", ptr %329, i32 0, i32 1
  %331 = load i16, ptr %330, align 2, !tbaa !29
  %332 = zext i16 %331 to i32
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds i8, ptr %328, i64 %333
  store ptr %334, ptr %57, align 8, !tbaa !5
  br label %335

335:                                              ; preds = %480, %316
  %336 = load ptr, ptr %56, align 8, !tbaa !5
  %337 = load ptr, ptr %57, align 8, !tbaa !5
  %338 = icmp ult ptr %336, %337
  br i1 %338, label %340, label %339

339:                                              ; preds = %335
  store i32 10, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #8
  br label %483

340:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #8
  %341 = load ptr, ptr %56, align 8, !tbaa !5
  %342 = getelementptr inbounds i8, ptr %341, i64 1
  store ptr %342, ptr %58, align 8, !tbaa !5
  %343 = load ptr, ptr %58, align 8, !tbaa !5
  %344 = load ptr, ptr %57, align 8, !tbaa !5
  %345 = icmp eq ptr %343, %344
  br i1 %345, label %346, label %348

346:                                              ; preds = %340
  %347 = load ptr, ptr %55, align 8, !tbaa !5
  store ptr %347, ptr %58, align 8, !tbaa !5
  br label %348

348:                                              ; preds = %346, %340
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #8
  %349 = getelementptr inbounds %"class.JPH::ConvexHullShape", ptr %92, i32 0, i32 5
  %350 = load ptr, ptr %56, align 8, !tbaa !5
  %351 = load i8, ptr %350, align 1, !tbaa !14
  %352 = zext i8 %351 to i64
  %353 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape5PointENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %349, i64 noundef %352)
  %354 = getelementptr inbounds %"struct.JPH::ConvexHullShape::Point", ptr %353, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %60, ptr align 16 %354, i64 16, i1 false), !tbaa.struct !13
  %355 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %356 = load double, ptr %355, align 16
  %357 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %358 = load double, ptr %357, align 8
  %359 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %356, double %358)
  %360 = getelementptr inbounds %"class.JPH::Vec3", ptr %59, i32 0, i32 0
  %361 = getelementptr inbounds %union.anon.6, ptr %360, i32 0, i32 0
  %362 = getelementptr inbounds { double, double }, ptr %361, i32 0, i32 0
  %363 = extractvalue { double, double } %359, 0
  store double %363, ptr %362, align 16
  %364 = getelementptr inbounds { double, double }, ptr %361, i32 0, i32 1
  %365 = extractvalue { double, double } %359, 1
  store double %365, ptr %364, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #8
  %366 = getelementptr inbounds %"class.JPH::ConvexHullShape", ptr %92, i32 0, i32 5
  %367 = load ptr, ptr %58, align 8, !tbaa !5
  %368 = load i8, ptr %367, align 1, !tbaa !14
  %369 = zext i8 %368 to i64
  %370 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape5PointENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %366, i64 noundef %369)
  %371 = getelementptr inbounds %"struct.JPH::ConvexHullShape::Point", ptr %370, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %62, ptr align 16 %371, i64 16, i1 false), !tbaa.struct !13
  %372 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %373 = load double, ptr %372, align 16
  %374 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %375 = load double, ptr %374, align 8
  %376 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %373, double %375)
  %377 = getelementptr inbounds %"class.JPH::Vec3", ptr %61, i32 0, i32 0
  %378 = getelementptr inbounds %union.anon.6, ptr %377, i32 0, i32 0
  %379 = getelementptr inbounds { double, double }, ptr %378, i32 0, i32 0
  %380 = extractvalue { double, double } %376, 0
  store double %380, ptr %379, align 16
  %381 = getelementptr inbounds { double, double }, ptr %378, i32 0, i32 1
  %382 = extractvalue { double, double } %376, 1
  store double %382, ptr %381, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %65, ptr align 16 %59, i64 16, i1 false), !tbaa.struct !13
  %383 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 0
  %384 = load double, ptr %383, align 16
  %385 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 1
  %386 = load double, ptr %385, align 8
  %387 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %61, double %384, double %386)
  %388 = getelementptr inbounds %"class.JPH::Vec3", ptr %64, i32 0, i32 0
  %389 = getelementptr inbounds %union.anon.6, ptr %388, i32 0, i32 0
  %390 = getelementptr inbounds { double, double }, ptr %389, i32 0, i32 0
  %391 = extractvalue { double, double } %387, 0
  store double %391, ptr %390, align 16
  %392 = getelementptr inbounds { double, double }, ptr %389, i32 0, i32 1
  %393 = extractvalue { double, double } %387, 1
  store double %393, ptr %392, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !13
  %394 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 0
  %395 = load double, ptr %394, align 16
  %396 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 1
  %397 = load double, ptr %396, align 8
  %398 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %64, double %395, double %397)
  %399 = getelementptr inbounds %"class.JPH::Vec3", ptr %63, i32 0, i32 0
  %400 = getelementptr inbounds %union.anon.6, ptr %399, i32 0, i32 0
  %401 = getelementptr inbounds { double, double }, ptr %400, i32 0, i32 0
  %402 = extractvalue { double, double } %398, 0
  store double %402, ptr %401, align 16
  %403 = getelementptr inbounds { double, double }, ptr %400, i32 0, i32 1
  %404 = extractvalue { double, double } %398, 1
  store double %404, ptr %403, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #8
  %405 = load float, ptr %23, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %68, ptr align 16 %59, i64 16, i1 false), !tbaa.struct !13
  %406 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 0
  %407 = load double, ptr %406, align 16
  %408 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 1
  %409 = load double, ptr %408, align 8
  %410 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %407, double %409)
  %411 = getelementptr inbounds %"class.JPH::Vec3", ptr %67, i32 0, i32 0
  %412 = getelementptr inbounds %union.anon.6, ptr %411, i32 0, i32 0
  %413 = getelementptr inbounds { double, double }, ptr %412, i32 0, i32 0
  %414 = extractvalue { double, double } %410, 0
  store double %414, ptr %413, align 16
  %415 = getelementptr inbounds { double, double }, ptr %412, i32 0, i32 1
  %416 = extractvalue { double, double } %410, 1
  store double %416, ptr %415, align 8
  %417 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %418 = load double, ptr %417, align 16
  %419 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %420 = load double, ptr %419, align 8
  %421 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %63, double %418, double %420)
  %422 = fmul float %405, %421
  %423 = fcmp ogt float %422, 0.000000e+00
  br i1 %423, label %424, label %479

424:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %70) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %72, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !13
  %425 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 0
  %426 = load double, ptr %425, align 16
  %427 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 1
  %428 = load double, ptr %427, align 8
  %429 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %59, double %426, double %428)
  %430 = getelementptr inbounds %"class.JPH::Vec3", ptr %71, i32 0, i32 0
  %431 = getelementptr inbounds %union.anon.6, ptr %430, i32 0, i32 0
  %432 = getelementptr inbounds { double, double }, ptr %431, i32 0, i32 0
  %433 = extractvalue { double, double } %429, 0
  store double %433, ptr %432, align 16
  %434 = getelementptr inbounds { double, double }, ptr %431, i32 0, i32 1
  %435 = extractvalue { double, double } %429, 1
  store double %435, ptr %434, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %74, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !13
  %436 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 0
  %437 = load double, ptr %436, align 16
  %438 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 1
  %439 = load double, ptr %438, align 8
  %440 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %61, double %437, double %439)
  %441 = getelementptr inbounds %"class.JPH::Vec3", ptr %73, i32 0, i32 0
  %442 = getelementptr inbounds %union.anon.6, ptr %441, i32 0, i32 0
  %443 = getelementptr inbounds { double, double }, ptr %442, i32 0, i32 0
  %444 = extractvalue { double, double } %440, 0
  store double %444, ptr %443, align 16
  %445 = getelementptr inbounds { double, double }, ptr %442, i32 0, i32 1
  %446 = extractvalue { double, double } %440, 1
  store double %446, ptr %445, align 8
  %447 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 0
  %448 = load double, ptr %447, align 16
  %449 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 1
  %450 = load double, ptr %449, align 8
  %451 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %452 = load double, ptr %451, align 16
  %453 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %454 = load double, ptr %453, align 8
  %455 = call { double, double } @_ZN3JPH12ClosestPoint21GetClosestPointOnLineENS_4Vec3ES1_Rj(double %448, double %450, double %452, double %454, ptr noundef nonnull align 4 dereferenceable(4) %69)
  %456 = getelementptr inbounds %"class.JPH::Vec3", ptr %70, i32 0, i32 0
  %457 = getelementptr inbounds %union.anon.6, ptr %456, i32 0, i32 0
  %458 = getelementptr inbounds { double, double }, ptr %457, i32 0, i32 0
  %459 = extractvalue { double, double } %455, 0
  store double %459, ptr %458, align 16
  %460 = getelementptr inbounds { double, double }, ptr %457, i32 0, i32 1
  %461 = extractvalue { double, double } %455, 1
  store double %461, ptr %460, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #8
  %462 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %70)
  store float %462, ptr %75, align 4, !tbaa !11
  %463 = load float, ptr %75, align 4, !tbaa !11
  %464 = load float, ptr %53, align 4, !tbaa !11
  %465 = fcmp olt float %463, %464
  br i1 %465, label %466, label %478

466:                                              ; preds = %424
  call void @llvm.lifetime.start.p0(i64 16, ptr %76) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %77, ptr align 16 %70, i64 16, i1 false), !tbaa.struct !13
  %467 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %468 = load double, ptr %467, align 16
  %469 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %470 = load double, ptr %469, align 8
  %471 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %468, double %470)
  %472 = getelementptr inbounds %"class.JPH::Vec3", ptr %76, i32 0, i32 0
  %473 = getelementptr inbounds %union.anon.6, ptr %472, i32 0, i32 0
  %474 = getelementptr inbounds { double, double }, ptr %473, i32 0, i32 0
  %475 = extractvalue { double, double } %471, 0
  store double %475, ptr %474, align 16
  %476 = getelementptr inbounds { double, double }, ptr %473, i32 0, i32 1
  %477 = extractvalue { double, double } %471, 1
  store double %477, ptr %476, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %50, ptr align 16 %76, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %76) #8
  br label %478

478:                                              ; preds = %466, %424
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #8
  br label %479

479:                                              ; preds = %478, %348
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  br label %480

480:                                              ; preds = %479
  %481 = load ptr, ptr %56, align 8, !tbaa !5
  %482 = getelementptr inbounds i8, ptr %481, i32 1
  store ptr %482, ptr %56, align 8, !tbaa !5
  br label %335, !llvm.loop !30

483:                                              ; preds = %339
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %484

484:                                              ; preds = %483, %287
  call void @llvm.lifetime.start.p0(i64 16, ptr %78) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %79, ptr align 16 %50, i64 16, i1 false), !tbaa.struct !13
  %485 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 0
  %486 = load double, ptr %485, align 16
  %487 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 1
  %488 = load double, ptr %487, align 8
  %489 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %486, double %488)
  %490 = getelementptr inbounds %"class.JPH::Vec3", ptr %78, i32 0, i32 0
  %491 = getelementptr inbounds %union.anon.6, ptr %490, i32 0, i32 0
  %492 = getelementptr inbounds { double, double }, ptr %491, i32 0, i32 0
  %493 = extractvalue { double, double } %489, 0
  store double %493, ptr %492, align 16
  %494 = getelementptr inbounds { double, double }, ptr %491, i32 0, i32 1
  %495 = extractvalue { double, double } %489, 1
  store double %495, ptr %494, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #8
  %496 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %78)
  store float %496, ptr %80, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %81) #8
  %497 = load float, ptr %80, align 4, !tbaa !11
  store float %497, ptr %81, align 4, !tbaa !11
  %498 = load i8, ptr %49, align 1, !tbaa !15, !range !22, !noundef !23
  %499 = trunc i8 %498 to i1
  br i1 %499, label %500, label %503

500:                                              ; preds = %484
  %501 = load float, ptr %81, align 4, !tbaa !11
  %502 = fneg float %501
  store float %502, ptr %81, align 4, !tbaa !11
  br label %511

503:                                              ; preds = %484
  call void @llvm.lifetime.start.p0(i64 16, ptr %82) #8
  %504 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %78)
  %505 = getelementptr inbounds %"class.JPH::Vec3", ptr %82, i32 0, i32 0
  %506 = getelementptr inbounds %union.anon.6, ptr %505, i32 0, i32 0
  %507 = getelementptr inbounds { double, double }, ptr %506, i32 0, i32 0
  %508 = extractvalue { double, double } %504, 0
  store double %508, ptr %507, align 16
  %509 = getelementptr inbounds { double, double }, ptr %506, i32 0, i32 1
  %510 = extractvalue { double, double } %504, 1
  store double %510, ptr %509, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %78, ptr align 16 %82, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %82) #8
  br label %511

511:                                              ; preds = %503, %500
  %512 = load float, ptr %81, align 4, !tbaa !11
  %513 = load ptr, ptr %25, align 8, !tbaa !5
  %514 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %513, i32 0, i32 6
  %515 = load float, ptr %514, align 8, !tbaa !31
  %516 = fcmp ogt float %512, %515
  br i1 %516, label %517, label %564

517:                                              ; preds = %511
  %518 = load float, ptr %81, align 4, !tbaa !11
  %519 = load ptr, ptr %25, align 8, !tbaa !5
  %520 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %519, i32 0, i32 6
  store float %518, ptr %520, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %83) #8
  %521 = load float, ptr %80, align 4, !tbaa !11
  %522 = fcmp ogt float %521, 0.000000e+00
  br i1 %522, label %523, label %532

523:                                              ; preds = %517
  %524 = load float, ptr %80, align 4, !tbaa !11
  %525 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %78, float noundef %524)
  %526 = getelementptr inbounds %"class.JPH::Vec3", ptr %83, i32 0, i32 0
  %527 = getelementptr inbounds %union.anon.6, ptr %526, i32 0, i32 0
  %528 = getelementptr inbounds { double, double }, ptr %527, i32 0, i32 0
  %529 = extractvalue { double, double } %525, 0
  store double %529, ptr %528, align 16
  %530 = getelementptr inbounds { double, double }, ptr %527, i32 0, i32 1
  %531 = extractvalue { double, double } %525, 1
  store double %531, ptr %530, align 8
  br label %533

532:                                              ; preds = %517
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %83, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !13
  br label %533

533:                                              ; preds = %532, %523
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %78, ptr align 16 %83, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %83) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %84) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %85, ptr align 16 %50, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %86, ptr align 16 %78, i64 16, i1 false), !tbaa.struct !13
  %534 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 0
  %535 = load double, ptr %534, align 16
  %536 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 1
  %537 = load double, ptr %536, align 8
  %538 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 0
  %539 = load double, ptr %538, align 16
  %540 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 1
  %541 = load double, ptr %540, align 8
  %542 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %535, double %537, double %539, double %541)
  %543 = getelementptr inbounds %"class.JPH::Plane", ptr %84, i32 0, i32 0
  %544 = getelementptr inbounds %"class.JPH::Vec4", ptr %543, i32 0, i32 0
  %545 = getelementptr inbounds %union.anon.7, ptr %544, i32 0, i32 0
  %546 = getelementptr inbounds { double, double }, ptr %545, i32 0, i32 0
  %547 = extractvalue { double, double } %542, 0
  store double %547, ptr %546, align 16
  %548 = getelementptr inbounds { double, double }, ptr %545, i32 0, i32 1
  %549 = extractvalue { double, double } %542, 1
  store double %549, ptr %548, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %87) #8
  %550 = load ptr, ptr %14, align 8, !tbaa !5
  %551 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %84, ptr noundef nonnull align 16 dereferenceable(64) %550)
  %552 = getelementptr inbounds %"class.JPH::Plane", ptr %87, i32 0, i32 0
  %553 = getelementptr inbounds %"class.JPH::Vec4", ptr %552, i32 0, i32 0
  %554 = getelementptr inbounds %union.anon.7, ptr %553, i32 0, i32 0
  %555 = getelementptr inbounds { double, double }, ptr %554, i32 0, i32 0
  %556 = extractvalue { double, double } %551, 0
  store double %556, ptr %555, align 16
  %557 = getelementptr inbounds { double, double }, ptr %554, i32 0, i32 1
  %558 = extractvalue { double, double } %551, 1
  store double %558, ptr %557, align 8
  %559 = load ptr, ptr %25, align 8, !tbaa !5
  %560 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %559, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %560, ptr align 16 %87, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %87) #8
  %561 = load i32, ptr %18, align 4, !tbaa !9
  %562 = load ptr, ptr %25, align 8, !tbaa !5
  %563 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %562, i32 0, i32 4
  store i32 %561, ptr %563, align 16, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 16, ptr %84) #8
  br label %564

564:                                              ; preds = %533, %511
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %78) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  br label %565

565:                                              ; preds = %564, %124
  br label %566

566:                                              ; preds = %565
  %567 = load ptr, ptr %25, align 8, !tbaa !5
  %568 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %567, i32 1
  store ptr %568, ptr %25, align 8, !tbaa !5
  br label %119, !llvm.loop !33

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH12ClosestPoint21GetClosestPointOnLineENS_4Vec3ES1_Rj(double, double, double, double, ptr noundef nonnull align 4 dereferenceable(4)) #6

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16)) #5 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: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(64)) #6 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 = { 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 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"="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 = { 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 #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!18, !12, i64 76}
!18 = !{!"_ZTSN3JPH14SoftBodyVertexE", !19, i64 0, !19, i64 16, !19, i64 32, !20, i64 48, !10, i64 64, !16, i64 68, !12, i64 72, !12, i64 76}
!19 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!20 = !{!"_ZTSN3JPH5PlaneE", !21, i64 0}
!21 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !26, i64 0}
!25 = !{!"_ZTSN3JPH15ConvexHullShape4FaceE", !26, i64 0, !26, i64 2}
!26 = !{!"short", !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!25, !26, i64 2}
!30 = distinct !{!30, !28}
!31 = !{!18, !12, i64 72}
!32 = !{!18, !10, i64 64}
!33 = distinct !{!33, !28}


; 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 }

; 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 { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) local_unnamed_addr #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 noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsNotScaledENS_4Vec3E(double, double) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec310ReciprocalEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsInsideOutENS_4Vec3E(double, double) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape5PointENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() local_unnamed_addr #1 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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH15ConvexHullShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3EPNS_14SoftBodyVertexEjfS4_i(ptr noundef nonnull align 16 dereferenceable(272) %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 #2 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 i32, align 4
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Plane", align 16
  store double %2, ptr %11, align 16
  %25 = getelementptr inbounds i8, ptr %11, i64 8
  store double %3, ptr %25, align 8
  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
  %26 = call { double, double } @_ZNK3JPH4Vec310ReciprocalEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %27 = extractvalue { double, double } %26, 0
  store double %27, ptr %13, align 16
  %28 = getelementptr inbounds i8, ptr %13, i64 8
  %29 = extractvalue { double, double } %26, 1
  store double %29, ptr %28, align 8
  %.sroa.0114.0.copyload = load double, ptr %11, align 16
  %.sroa.2115.0.copyload = load double, ptr %25, align 8, !tbaa !5
  %30 = call noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsNotScaledENS_4Vec3E(double %.sroa.0114.0.copyload, double %.sroa.2115.0.copyload)
  %.sroa.0111.0.copyload = load double, ptr %11, align 16
  %.sroa.2112.0.copyload = load double, ptr %25, align 8, !tbaa !5
  %31 = call noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsInsideOutENS_4Vec3E(double %.sroa.0111.0.copyload, double %.sroa.2112.0.copyload)
  %32 = zext i32 %5 to i64
  %33 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %4, i64 %32
  %.not170 = icmp eq i32 %5, 0
  br i1 %.not170, label %._crit_edge, label %.lr.ph169

.lr.ph169:                                        ; preds = %10
  %34 = getelementptr inbounds i8, ptr %14, i64 8
  %35 = getelementptr inbounds i8, ptr %0, i64 208
  %36 = getelementptr inbounds i8, ptr %16, i64 8
  %37 = getelementptr inbounds i8, ptr %15, i64 8
  %38 = getelementptr inbounds i8, ptr %0, i64 160
  %39 = getelementptr inbounds i8, ptr %0, i64 232
  %40 = getelementptr inbounds i8, ptr %0, i64 184
  %41 = getelementptr inbounds i8, ptr %17, i64 8
  %42 = getelementptr inbounds i8, ptr %18, i64 8
  %43 = getelementptr inbounds i8, ptr %20, i64 8
  %44 = getelementptr inbounds i8, ptr %19, i64 8
  %45 = getelementptr inbounds i8, ptr %22, i64 8
  %46 = getelementptr inbounds i8, ptr %23, i64 8
  %47 = getelementptr inbounds i8, ptr %24, i64 8
  br label %48

._crit_edge:                                      ; preds = %203, %10
  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

48:                                               ; preds = %.lr.ph169, %203
  %.0168 = phi ptr [ %4, %.lr.ph169 ], [ %204, %203 ]
  %49 = getelementptr inbounds i8, ptr %.0168, i64 76
  %50 = load float, ptr %49, align 4, !tbaa !8
  %51 = fcmp ogt float %50, 0.000000e+00
  br i1 %51, label %52, label %203

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %53 = getelementptr inbounds i8, ptr %.0168, i64 16
  %.sroa.0100.0.copyload = load double, ptr %53, align 16
  %.sroa.2101.0..sroa_idx = getelementptr inbounds i8, ptr %.0168, i64 24
  %.sroa.2101.0.copyload = load double, ptr %.sroa.2101.0..sroa_idx, align 8, !tbaa !5
  %54 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %12, double %.sroa.0100.0.copyload, double %.sroa.2101.0.copyload)
  %55 = extractvalue { double, double } %54, 0
  store double %55, ptr %14, align 16
  %56 = extractvalue { double, double } %54, 1
  store double %56, ptr %34, align 8
  %57 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %58 = extractvalue { double, double } %57, 0
  %59 = extractvalue { double, double } %57, 1
  br i1 %30, label %62, label %.preheader

.preheader:                                       ; preds = %52
  %60 = call noundef i64 @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %61 = and i64 %60, 4294967295
  %.not171 = icmp eq i64 %61, 0
  br i1 %.not171, label %.loopexit141, label %.lr.ph

62:                                               ; preds = %52
  %63 = call noundef ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %64 = call noundef ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %.not151 = icmp eq ptr %63, %64
  br i1 %.not151, label %.loopexit141, label %.lr.ph157

.lr.ph157:                                        ; preds = %62, %77
  %.0125156 = phi float [ %.1, %77 ], [ 0xC7EFFFFFE0000000, %62 ]
  %.sroa.8.0155 = phi double [ %.sroa.8.1, %77 ], [ %59, %62 ]
  %.sroa.095.0154 = phi double [ %.sroa.095.1, %77 ], [ %58, %62 ]
  %.0126153 = phi i32 [ %.1127, %77 ], [ 0, %62 ]
  %.0131152 = phi ptr [ %78, %77 ], [ %63, %62 ]
  %.sroa.081.0.copyload = load double, ptr %14, align 16
  %.sroa.282.0.copyload = load double, ptr %34, align 8, !tbaa !5
  %65 = call noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %.0131152, double %.sroa.081.0.copyload, double %.sroa.282.0.copyload)
  %66 = fcmp ogt float %65, %.0125156
  br i1 %66, label %67, label %77

67:                                               ; preds = %.lr.ph157
  %68 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %.0131152)
  %69 = extractvalue { double, double } %68, 0
  %70 = extractvalue { double, double } %68, 1
  %71 = call noundef ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %72 = ptrtoint ptr %.0131152 to i64
  %73 = ptrtoint ptr %71 to i64
  %74 = sub i64 %72, %73
  %75 = lshr exact i64 %74, 4
  %76 = trunc i64 %75 to i32
  br label %77

77:                                               ; preds = %67, %.lr.ph157
  %.1127 = phi i32 [ %76, %67 ], [ %.0126153, %.lr.ph157 ]
  %.sroa.095.1 = phi double [ %69, %67 ], [ %.sroa.095.0154, %.lr.ph157 ]
  %.sroa.8.1 = phi double [ %70, %67 ], [ %.sroa.8.0155, %.lr.ph157 ]
  %.1 = phi float [ %65, %67 ], [ %.0125156, %.lr.ph157 ]
  %78 = getelementptr inbounds i8, ptr %.0131152, i64 16
  %.not = icmp eq ptr %78, %64
  br i1 %.not, label %.loopexit141, label %.lr.ph157

.lr.ph:                                           ; preds = %.preheader, %106
  %indvars.iv = phi i64 [ %indvars.iv.next, %106 ], [ 0, %.preheader ]
  %.2147 = phi float [ %.3, %106 ], [ 0xC7EFFFFFE0000000, %.preheader ]
  %.sroa.8.2146 = phi double [ %.sroa.8.3, %106 ], [ %59, %.preheader ]
  %.sroa.095.2145 = phi double [ %.sroa.095.3, %106 ], [ %58, %.preheader ]
  %.2128144 = phi i32 [ %.3129, %106 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  %79 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %indvars.iv)
  %80 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %79)
  %81 = extractvalue { double, double } %80, 0
  %82 = extractvalue { double, double } %80, 1
  %83 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %81, double %82)
  %84 = extractvalue { double, double } %83, 0
  store double %84, ptr %16, align 16
  %85 = extractvalue { double, double } %83, 1
  store double %85, ptr %36, align 8
  %86 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %87 = extractvalue { double, double } %86, 0
  store double %87, ptr %15, align 16
  %88 = extractvalue { double, double } %86, 1
  store double %88, ptr %37, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  %89 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape4FaceENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %indvars.iv)
  %90 = load i16, ptr %89, align 2, !tbaa !16
  %91 = zext i16 %90 to i64
  %92 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %91)
  %93 = load i8, ptr %92, align 1, !tbaa !5
  %94 = zext i8 %93 to i64
  %95 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape5PointENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %94)
  %.sroa.068.0.copyload = load double, ptr %95, align 16
  %.sroa.269.0..sroa_idx = getelementptr inbounds i8, ptr %95, i64 8
  %.sroa.269.0.copyload = load double, ptr %.sroa.269.0..sroa_idx, align 8, !tbaa !5
  %96 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.068.0.copyload, double %.sroa.269.0.copyload)
  %97 = extractvalue { double, double } %96, 0
  %98 = extractvalue { double, double } %96, 1
  %99 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %97, double %98)
  %100 = extractvalue { double, double } %99, 0
  %101 = extractvalue { double, double } %99, 1
  %102 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %100, double %101)
  %103 = fcmp ogt float %102, %.2147
  br i1 %103, label %104, label %106

104:                                              ; preds = %.lr.ph
  %.sroa.095.0.copyload = load double, ptr %15, align 16
  %.sroa.8.0.copyload = load double, ptr %37, align 8, !tbaa !5
  %105 = trunc nuw i64 %indvars.iv to i32
  br label %106

106:                                              ; preds = %104, %.lr.ph
  %.3129 = phi i32 [ %105, %104 ], [ %.2128144, %.lr.ph ]
  %.sroa.095.3 = phi double [ %.sroa.095.0.copyload, %104 ], [ %.sroa.095.2145, %.lr.ph ]
  %.sroa.8.3 = phi double [ %.sroa.8.0.copyload, %104 ], [ %.sroa.8.2146, %.lr.ph ]
  %.3 = phi float [ %102, %104 ], [ %.2147, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %107 = call noundef i64 @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %108 = and i64 %107, 4294967295
  %109 = icmp ult i64 %indvars.iv.next, %108
  br i1 %109, label %.lr.ph, label %.loopexit141, !llvm.loop !19

.loopexit141:                                     ; preds = %106, %77, %.preheader, %62
  %.4130 = phi i32 [ 0, %62 ], [ 0, %.preheader ], [ %.1127, %77 ], [ %.3129, %106 ]
  %.sroa.095.4 = phi double [ %58, %62 ], [ %58, %.preheader ], [ %.sroa.095.1, %77 ], [ %.sroa.095.3, %106 ]
  %.sroa.8.4 = phi double [ %59, %62 ], [ %59, %.preheader ], [ %.sroa.8.1, %77 ], [ %.sroa.8.3, %106 ]
  %.4 = phi float [ 0xC7EFFFFFE0000000, %62 ], [ 0xC7EFFFFFE0000000, %.preheader ], [ %.1, %77 ], [ %.3, %106 ]
  %110 = fcmp ogt float %.4, 0.000000e+00
  %111 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %.4, double %.sroa.095.4, double %.sroa.8.4)
  %112 = extractvalue { double, double } %111, 0
  %113 = extractvalue { double, double } %111, 1
  %114 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %112, double %113)
  %115 = extractvalue { double, double } %114, 0
  %116 = extractvalue { double, double } %114, 1
  br i1 %110, label %117, label %.loopexit

117:                                              ; preds = %.loopexit141
  %118 = zext i32 %.4130 to i64
  %119 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape4FaceENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %118)
  %120 = load i16, ptr %119, align 2, !tbaa !16
  %121 = zext i16 %120 to i64
  %122 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %121)
  %123 = getelementptr inbounds i8, ptr %119, i64 2
  %124 = load i16, ptr %123, align 2, !tbaa !21
  %125 = zext i16 %124 to i64
  %126 = getelementptr inbounds i8, ptr %122, i64 %125
  %.not172 = icmp eq i16 %124, 0
  br i1 %.not172, label %.loopexit, label %.lr.ph165

.lr.ph165:                                        ; preds = %117, %171
  %.sroa.6.0164 = phi double [ %.sroa.6.2, %171 ], [ %116, %117 ]
  %.sroa.060.0163 = phi double [ %.sroa.060.2, %171 ], [ %115, %117 ]
  %.0134162 = phi ptr [ %127, %171 ], [ %122, %117 ]
  %127 = getelementptr inbounds i8, ptr %.0134162, i64 1
  %128 = icmp eq ptr %127, %126
  %spec.select = select i1 %128, ptr %122, ptr %127
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  %129 = load i8, ptr %.0134162, align 1, !tbaa !5
  %130 = zext i8 %129 to i64
  %131 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape5PointENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %130)
  %.sroa.040.0.copyload = load double, ptr %131, align 16
  %.sroa.241.0..sroa_idx = getelementptr inbounds i8, ptr %131, i64 8
  %.sroa.241.0.copyload = load double, ptr %.sroa.241.0..sroa_idx, align 8, !tbaa !5
  %132 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.040.0.copyload, double %.sroa.241.0.copyload)
  %133 = extractvalue { double, double } %132, 0
  store double %133, ptr %17, align 16
  %134 = extractvalue { double, double } %132, 1
  store double %134, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %135 = load i8, ptr %spec.select, align 1, !tbaa !5
  %136 = zext i8 %135 to i64
  %137 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH5ArrayINS_15ConvexHullShape5PointENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %136)
  %.sroa.038.0.copyload = load double, ptr %137, align 16
  %.sroa.239.0..sroa_idx = getelementptr inbounds i8, ptr %137, i64 8
  %.sroa.239.0.copyload = load double, ptr %.sroa.239.0..sroa_idx, align 8, !tbaa !5
  %138 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.038.0.copyload, double %.sroa.239.0.copyload)
  %139 = extractvalue { double, double } %138, 0
  store double %139, ptr %18, align 16
  %140 = extractvalue { double, double } %138, 1
  store double %140, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #7
  %.sroa.036.0.copyload = load double, ptr %17, align 16
  %.sroa.237.0.copyload = load double, ptr %41, align 8, !tbaa !5
  %141 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %.sroa.036.0.copyload, double %.sroa.237.0.copyload)
  %142 = extractvalue { double, double } %141, 0
  store double %142, ptr %20, align 16
  %143 = extractvalue { double, double } %141, 1
  store double %143, ptr %43, align 8
  %144 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %.sroa.095.4, double %.sroa.8.4)
  %145 = extractvalue { double, double } %144, 0
  store double %145, ptr %19, align 16
  %146 = extractvalue { double, double } %144, 1
  store double %146, ptr %44, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  %.sroa.030.0.copyload = load double, ptr %17, align 16
  %.sroa.231.0.copyload = load double, ptr %41, align 8, !tbaa !5
  %147 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %.sroa.030.0.copyload, double %.sroa.231.0.copyload)
  %148 = extractvalue { double, double } %147, 0
  %149 = extractvalue { double, double } %147, 1
  %150 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %148, double %149)
  %151 = fneg float %150
  %152 = select i1 %31, float %151, float %150
  %153 = fcmp ogt float %152, 0.000000e+00
  br i1 %153, label %154, label %171

154:                                              ; preds = %.lr.ph165
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #7
  %.sroa.026.0.copyload = load double, ptr %14, align 16
  %.sroa.227.0.copyload = load double, ptr %34, align 8, !tbaa !5
  %155 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %.sroa.026.0.copyload, double %.sroa.227.0.copyload)
  %156 = extractvalue { double, double } %155, 0
  %157 = extractvalue { double, double } %155, 1
  %.sroa.022.0.copyload = load double, ptr %14, align 16
  %.sroa.223.0.copyload = load double, ptr %34, align 8, !tbaa !5
  %158 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %.sroa.022.0.copyload, double %.sroa.223.0.copyload)
  %159 = extractvalue { double, double } %158, 0
  %160 = extractvalue { double, double } %158, 1
  %161 = call { double, double } @_ZN3JPH12ClosestPoint21GetClosestPointOnLineENS_4Vec3ES1_Rj(double %156, double %157, double %159, double %160, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %162 = extractvalue { double, double } %161, 0
  store double %162, ptr %22, align 16
  %163 = extractvalue { double, double } %161, 1
  store double %163, ptr %45, align 8
  %164 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  %165 = fcmp olt float %164, 0x47EFFFFFE0000000
  br i1 %165, label %166, label %170

166:                                              ; preds = %154
  %.sroa.017.0.copyload = load double, ptr %22, align 16
  %.sroa.218.0.copyload = load double, ptr %45, align 8, !tbaa !5
  %167 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %.sroa.017.0.copyload, double %.sroa.218.0.copyload)
  %168 = extractvalue { double, double } %167, 0
  %169 = extractvalue { double, double } %167, 1
  br label %170

170:                                              ; preds = %166, %154
  %.sroa.060.1 = phi double [ %168, %166 ], [ %.sroa.060.0163, %154 ]
  %.sroa.6.1 = phi double [ %169, %166 ], [ %.sroa.6.0164, %154 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  br label %171

171:                                              ; preds = %170, %.lr.ph165
  %.sroa.060.2 = phi double [ %.sroa.060.1, %170 ], [ %.sroa.060.0163, %.lr.ph165 ]
  %.sroa.6.2 = phi double [ %.sroa.6.1, %170 ], [ %.sroa.6.0164, %.lr.ph165 ]
  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
  %172 = icmp ult ptr %127, %126
  br i1 %172, label %.lr.ph165, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %171, %117, %.loopexit141
  %.sroa.060.3 = phi double [ %115, %.loopexit141 ], [ %115, %117 ], [ %.sroa.060.2, %171 ]
  %.sroa.6.3 = phi double [ %116, %.loopexit141 ], [ %116, %117 ], [ %.sroa.6.2, %171 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  %173 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %.sroa.060.3, double %.sroa.6.3)
  %174 = extractvalue { double, double } %173, 0
  store double %174, ptr %23, align 16
  %175 = extractvalue { double, double } %173, 1
  store double %175, ptr %46, align 8
  %176 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %23)
  br i1 %110, label %177, label %179

177:                                              ; preds = %.loopexit
  %178 = fneg float %176
  br label %183

179:                                              ; preds = %.loopexit
  %180 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %23)
  %181 = extractvalue { double, double } %180, 0
  %182 = extractvalue { double, double } %180, 1
  store double %181, ptr %23, align 16
  store double %182, ptr %46, align 8, !tbaa !5
  br label %183

183:                                              ; preds = %179, %177
  %.0133 = phi float [ %178, %177 ], [ %176, %179 ]
  %184 = getelementptr inbounds i8, ptr %.0168, i64 72
  %185 = load float, ptr %184, align 8, !tbaa !23
  %186 = fcmp ogt float %.0133, %185
  br i1 %186, label %187, label %202

187:                                              ; preds = %183
  store float %.0133, ptr %184, align 8, !tbaa !23
  %188 = fcmp ogt float %176, 0.000000e+00
  br i1 %188, label %189, label %193

189:                                              ; preds = %187
  %190 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %23, float noundef %176)
  %191 = extractvalue { double, double } %190, 0
  %192 = extractvalue { double, double } %190, 1
  br label %193

193:                                              ; preds = %187, %189
  %.sroa.5.0 = phi double [ %192, %189 ], [ %.sroa.8.4, %187 ]
  %.sroa.04.0 = phi double [ %191, %189 ], [ %.sroa.095.4, %187 ]
  store double %.sroa.04.0, ptr %23, align 16
  store double %.sroa.5.0, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #7
  %194 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %.sroa.060.3, double %.sroa.6.3, double %.sroa.04.0, double %.sroa.5.0)
  %195 = extractvalue { double, double } %194, 0
  store double %195, ptr %24, align 16
  %196 = extractvalue { double, double } %194, 1
  store double %196, ptr %47, align 8
  %197 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %24, ptr noundef nonnull align 16 dereferenceable(64) %1)
  %198 = extractvalue { double, double } %197, 0
  %199 = extractvalue { double, double } %197, 1
  %200 = getelementptr inbounds i8, ptr %.0168, i64 48
  store double %198, ptr %200, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %.0168, i64 56
  store double %199, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !5
  %201 = getelementptr inbounds i8, ptr %.0168, i64 64
  store i32 %9, ptr %201, align 16, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  br label %202

202:                                              ; preds = %193, %183
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %203

203:                                              ; preds = %48, %202
  %204 = getelementptr inbounds i8, ptr %.0168, i64 80
  %205 = icmp ult ptr %204, %33
  br i1 %205, label %48, label %._crit_edge, !llvm.loop !25
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH12ClosestPoint21GetClosestPointOnLineENS_4Vec3ES1_Rj(double, double, double, double, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !15, i64 76}
!9 = !{!"_ZTSN3JPH14SoftBodyVertexE", !10, i64 0, !10, i64 16, !10, i64 32, !11, i64 48, !13, i64 64, !14, i64 68, !15, i64 72, !15, i64 76}
!10 = !{!"_ZTSN3JPH4Vec3E", !6, i64 0}
!11 = !{!"_ZTSN3JPH5PlaneE", !12, i64 0}
!12 = !{!"_ZTSN3JPH4Vec4E", !6, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = !{!"bool", !6, i64 0}
!15 = !{!"float", !6, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSN3JPH15ConvexHullShape4FaceE", !18, i64 0, !18, i64 2}
!18 = !{!"short", !6, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!17, !18, i64 2}
!22 = distinct !{!22, !20}
!23 = !{!9, !15, i64 72}
!24 = !{!9, !13, i64 64}
!25 = distinct !{!25, !20}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass