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

; 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.3 }
%union.anon.3 = type { <4 x float> }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::BoxShape" = type <{ %"class.JPH::ConvexShape.base", [4 x i8], %"class.JPH::Vec3", float, [12 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.4", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.4" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::SoftBodyVertex" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Plane", i32, i8, float, float }

; 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: 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) #1

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i32 @_ZNK3JPH4Vec323GetLowestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH8BoxShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3EPNS_14SoftBodyVertexEjfS4_i(ptr noundef nonnull align 16 dereferenceable(80) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef %4, i32 noundef %5, float noundef %6, double %7, double %8, i32 noundef %9) unnamed_addr #4 align 2 {
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.JPH::Mat44", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca i32, align 4
  %36 = alloca float, align 4
  %37 = alloca [3 x %"class.JPH::Vec3"], align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Plane", align 16
  %44 = alloca %"class.JPH::Plane", align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca float, align 4
  %50 = alloca float, align 4
  %51 = alloca %"class.JPH::Plane", align 16
  %52 = alloca %"class.JPH::Plane", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %2, ptr %55, align 16
  %56 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %3, ptr %56, align 8
  %57 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %7, ptr %57, align 16
  %58 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %8, ptr %58, 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
  %59 = load ptr, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #7
  %60 = 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) %60)
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %61 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %62 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %63 = getelementptr inbounds %union.anon.3, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %65 = extractvalue { double, double } %61, 0
  store double %65, ptr %64, align 16
  %66 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %67 = extractvalue { double, double } %61, 1
  store double %67, ptr %66, align 8
  %68 = getelementptr inbounds %"class.JPH::BoxShape", ptr %59, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %68, i64 16, i1 false), !tbaa.struct !13
  %69 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %70 = load double, ptr %69, align 16
  %71 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %72 = load double, ptr %71, align 8
  %73 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %70, double %72)
  %74 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %75 = getelementptr inbounds %union.anon.3, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 0
  %77 = extractvalue { double, double } %73, 0
  store double %77, ptr %76, align 16
  %78 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 1
  %79 = extractvalue { double, double } %73, 1
  store double %79, ptr %78, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %80, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = load i32, ptr %16, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %81, i64 %83
  store ptr %84, ptr %24, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %327, %10
  %86 = load ptr, ptr %23, align 8, !tbaa !5
  %87 = load ptr, ptr %24, align 8, !tbaa !5
  %88 = icmp ult ptr %86, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %330

90:                                               ; preds = %85
  %91 = load ptr, ptr %23, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %91, i32 0, i32 7
  %93 = load float, ptr %92, align 4, !tbaa !15
  %94 = fcmp ogt float %93, 0.000000e+00
  br i1 %94, label %95, label %326

95:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  %96 = load ptr, ptr %23, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %96, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %97, i64 16, i1 false), !tbaa.struct !13
  %98 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %99 = load double, ptr %98, align 16
  %100 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %101 = load double, ptr %100, align 8
  %102 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %19, double %99, double %101)
  %103 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %104 = getelementptr inbounds %union.anon.3, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 0
  %106 = extractvalue { double, double } %102, 0
  store double %106, ptr %105, align 16
  %107 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 1
  %108 = extractvalue { double, double } %102, 1
  store double %108, ptr %107, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !13
  %109 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %110 = load double, ptr %109, align 16
  %111 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %112 = load double, ptr %111, align 8
  %113 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %114 = load double, ptr %113, align 16
  %115 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %116 = load double, ptr %115, align 8
  %117 = call { double, double } @_ZN3JPH4Vec34sMinES0_S0_(double %110, double %112, double %114, double %116)
  %118 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %119 = getelementptr inbounds %union.anon.3, ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 0
  %121 = extractvalue { double, double } %117, 0
  store double %121, ptr %120, align 16
  %122 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 1
  %123 = extractvalue { double, double } %117, 1
  store double %123, ptr %122, align 8
  %124 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %20)
  %125 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %126 = getelementptr inbounds %union.anon.3, ptr %125, i32 0, i32 0
  %127 = getelementptr inbounds { double, double }, ptr %126, i32 0, i32 0
  %128 = extractvalue { double, double } %124, 0
  store double %128, ptr %127, align 16
  %129 = getelementptr inbounds { double, double }, ptr %126, i32 0, i32 1
  %130 = extractvalue { double, double } %124, 1
  store double %130, ptr %129, align 8
  %131 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %132 = load double, ptr %131, align 16
  %133 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %134 = load double, ptr %133, align 8
  %135 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %136 = load double, ptr %135, align 16
  %137 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %138 = load double, ptr %137, align 8
  %139 = call { double, double } @_ZN3JPH4Vec34sMaxES0_S0_(double %132, double %134, double %136, double %138)
  %140 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %141 = getelementptr inbounds %union.anon.3, ptr %140, i32 0, i32 0
  %142 = getelementptr inbounds { double, double }, ptr %141, i32 0, i32 0
  %143 = extractvalue { double, double } %139, 0
  store double %143, ptr %142, align 16
  %144 = getelementptr inbounds { double, double }, ptr %141, i32 0, i32 1
  %145 = extractvalue { double, double } %139, 1
  store double %145, ptr %144, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !13
  %146 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %147 = load double, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %149 = load double, ptr %148, align 8
  %150 = call noundef zeroext i1 @_ZNK3JPH4Vec3eqES0_(ptr noundef nonnull align 16 dereferenceable(16) %27, double %147, double %149)
  br i1 %150, label %151, label %268

151:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %152 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %25)
  %153 = getelementptr inbounds %"class.JPH::Vec3", ptr %34, i32 0, i32 0
  %154 = getelementptr inbounds %union.anon.3, ptr %153, i32 0, i32 0
  %155 = getelementptr inbounds { double, double }, ptr %154, i32 0, i32 0
  %156 = extractvalue { double, double } %152, 0
  store double %156, ptr %155, align 16
  %157 = getelementptr inbounds { double, double }, ptr %154, i32 0, i32 1
  %158 = extractvalue { double, double } %152, 1
  store double %158, ptr %157, align 8
  %159 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %160 = load double, ptr %159, align 16
  %161 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %162 = load double, ptr %161, align 8
  %163 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %160, double %162)
  %164 = getelementptr inbounds %"class.JPH::Vec3", ptr %33, i32 0, i32 0
  %165 = getelementptr inbounds %union.anon.3, ptr %164, i32 0, i32 0
  %166 = getelementptr inbounds { double, double }, ptr %165, i32 0, i32 0
  %167 = extractvalue { double, double } %163, 0
  store double %167, ptr %166, align 16
  %168 = getelementptr inbounds { double, double }, ptr %165, i32 0, i32 1
  %169 = extractvalue { double, double } %163, 1
  store double %169, ptr %168, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %170 = call noundef i32 @_ZNK3JPH4Vec323GetLowestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16) %33)
  store i32 %170, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %171 = load i32, ptr %35, align 4, !tbaa !9
  %172 = call noundef float @_ZNK3JPH4Vec3ixEj(ptr noundef nonnull align 16 dereferenceable(16) %33, i32 noundef %171)
  store float %172, ptr %36, align 4, !tbaa !11
  %173 = load float, ptr %36, align 4, !tbaa !11
  %174 = load ptr, ptr %23, align 8, !tbaa !5
  %175 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %174, i32 0, i32 6
  %176 = load float, ptr %175, align 8, !tbaa !21
  %177 = fcmp ogt float %173, %176
  br i1 %177, label %178, label %267

178:                                              ; preds = %151
  %179 = load float, ptr %36, align 4, !tbaa !11
  %180 = load ptr, ptr %23, align 8, !tbaa !5
  %181 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %180, i32 0, i32 6
  store float %179, ptr %181, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 48, ptr %37) #7
  %182 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %183 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i32 0, i32 0
  %184 = getelementptr inbounds %union.anon.3, ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds { double, double }, ptr %184, i32 0, i32 0
  %186 = extractvalue { double, double } %182, 0
  store double %186, ptr %185, align 16
  %187 = getelementptr inbounds { double, double }, ptr %184, i32 0, i32 1
  %188 = extractvalue { double, double } %182, 1
  store double %188, ptr %187, align 8
  %189 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i64 1
  %190 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %191 = getelementptr inbounds %"class.JPH::Vec3", ptr %189, i32 0, i32 0
  %192 = getelementptr inbounds %union.anon.3, ptr %191, i32 0, i32 0
  %193 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 0
  %194 = extractvalue { double, double } %190, 0
  store double %194, ptr %193, align 16
  %195 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 1
  %196 = extractvalue { double, double } %190, 1
  store double %196, ptr %195, align 8
  %197 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i64 2
  %198 = call { double, double } @_ZN3JPH4Vec36sAxisZEv()
  %199 = getelementptr inbounds %"class.JPH::Vec3", ptr %197, i32 0, i32 0
  %200 = getelementptr inbounds %union.anon.3, ptr %199, i32 0, i32 0
  %201 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 0
  %202 = extractvalue { double, double } %198, 0
  store double %202, ptr %201, align 16
  %203 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 1
  %204 = extractvalue { double, double } %198, 1
  store double %204, ptr %203, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #7
  %205 = call { double, double } @_ZNK3JPH4Vec37GetSignEv(ptr noundef nonnull align 16 dereferenceable(16) %25)
  %206 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %207 = getelementptr inbounds %union.anon.3, ptr %206, i32 0, i32 0
  %208 = getelementptr inbounds { double, double }, ptr %207, i32 0, i32 0
  %209 = extractvalue { double, double } %205, 0
  store double %209, ptr %208, align 16
  %210 = getelementptr inbounds { double, double }, ptr %207, i32 0, i32 1
  %211 = extractvalue { double, double } %205, 1
  store double %211, ptr %210, align 8
  %212 = load i32, ptr %35, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [3 x %"class.JPH::Vec3"], ptr %37, i64 0, i64 %213
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %214, i64 16, i1 false), !tbaa.struct !13
  %215 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %216 = load double, ptr %215, align 16
  %217 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %218 = load double, ptr %217, align 8
  %219 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %39, double %216, double %218)
  %220 = getelementptr inbounds %"class.JPH::Vec3", ptr %38, i32 0, i32 0
  %221 = getelementptr inbounds %union.anon.3, ptr %220, i32 0, i32 0
  %222 = getelementptr inbounds { double, double }, ptr %221, i32 0, i32 0
  %223 = extractvalue { double, double } %219, 0
  store double %223, ptr %222, align 16
  %224 = getelementptr inbounds { double, double }, ptr %221, i32 0, i32 1
  %225 = extractvalue { double, double } %219, 1
  store double %225, ptr %224, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !13
  %226 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %227 = load double, ptr %226, align 16
  %228 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %229 = load double, ptr %228, align 8
  %230 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %38, double %227, double %229)
  %231 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %232 = getelementptr inbounds %union.anon.3, ptr %231, i32 0, i32 0
  %233 = getelementptr inbounds { double, double }, ptr %232, i32 0, i32 0
  %234 = extractvalue { double, double } %230, 0
  store double %234, ptr %233, align 16
  %235 = getelementptr inbounds { double, double }, ptr %232, i32 0, i32 1
  %236 = extractvalue { double, double } %230, 1
  store double %236, ptr %235, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %46, ptr align 16 %38, i64 16, i1 false), !tbaa.struct !13
  %237 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %238 = load double, ptr %237, align 16
  %239 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %240 = load double, ptr %239, align 8
  %241 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %242 = load double, ptr %241, align 16
  %243 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %244 = load double, ptr %243, align 8
  %245 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %238, double %240, double %242, double %244)
  %246 = getelementptr inbounds %"class.JPH::Plane", ptr %44, i32 0, i32 0
  %247 = getelementptr inbounds %"class.JPH::Vec4", ptr %246, i32 0, i32 0
  %248 = getelementptr inbounds %union.anon.6, ptr %247, i32 0, i32 0
  %249 = getelementptr inbounds { double, double }, ptr %248, i32 0, i32 0
  %250 = extractvalue { double, double } %245, 0
  store double %250, ptr %249, align 16
  %251 = getelementptr inbounds { double, double }, ptr %248, i32 0, i32 1
  %252 = extractvalue { double, double } %245, 1
  store double %252, ptr %251, align 8
  %253 = load ptr, ptr %14, align 8, !tbaa !5
  %254 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %44, ptr noundef nonnull align 16 dereferenceable(64) %253)
  %255 = getelementptr inbounds %"class.JPH::Plane", ptr %43, i32 0, i32 0
  %256 = getelementptr inbounds %"class.JPH::Vec4", ptr %255, i32 0, i32 0
  %257 = getelementptr inbounds %union.anon.6, ptr %256, i32 0, i32 0
  %258 = getelementptr inbounds { double, double }, ptr %257, i32 0, i32 0
  %259 = extractvalue { double, double } %254, 0
  store double %259, ptr %258, align 16
  %260 = getelementptr inbounds { double, double }, ptr %257, i32 0, i32 1
  %261 = extractvalue { double, double } %254, 1
  store double %261, ptr %260, align 8
  %262 = load ptr, ptr %23, align 8, !tbaa !5
  %263 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %262, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %263, ptr align 16 %43, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #7
  %264 = load i32, ptr %18, align 4, !tbaa !9
  %265 = load ptr, ptr %23, align 8, !tbaa !5
  %266 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %265, i32 0, i32 4
  store i32 %264, ptr %266, align 16, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #7
  br label %267

267:                                              ; preds = %178, %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  br label %325

268:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %48, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !13
  %269 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %270 = load double, ptr %269, align 16
  %271 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %272 = load double, ptr %271, align 8
  %273 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %25, double %270, double %272)
  %274 = getelementptr inbounds %"class.JPH::Vec3", ptr %47, i32 0, i32 0
  %275 = getelementptr inbounds %union.anon.3, ptr %274, i32 0, i32 0
  %276 = getelementptr inbounds { double, double }, ptr %275, i32 0, i32 0
  %277 = extractvalue { double, double } %273, 0
  store double %277, ptr %276, align 16
  %278 = getelementptr inbounds { double, double }, ptr %275, i32 0, i32 1
  %279 = extractvalue { double, double } %273, 1
  store double %279, ptr %278, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  %280 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %47)
  store float %280, ptr %49, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #7
  %281 = load float, ptr %49, align 4, !tbaa !11
  %282 = fneg float %281
  store float %282, ptr %50, align 4, !tbaa !11
  %283 = load float, ptr %50, align 4, !tbaa !11
  %284 = load ptr, ptr %23, align 8, !tbaa !5
  %285 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %284, i32 0, i32 6
  %286 = load float, ptr %285, align 8, !tbaa !21
  %287 = fcmp ogt float %283, %286
  br i1 %287, label %288, label %324

288:                                              ; preds = %268
  %289 = load float, ptr %49, align 4, !tbaa !11
  %290 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %47, float noundef %289)
  %291 = load float, ptr %50, align 4, !tbaa !11
  %292 = load ptr, ptr %23, align 8, !tbaa !5
  %293 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %292, i32 0, i32 6
  store float %291, ptr %293, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %53, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 16 %47, i64 16, i1 false), !tbaa.struct !13
  %294 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %295 = load double, ptr %294, align 16
  %296 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %297 = load double, ptr %296, align 8
  %298 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %299 = load double, ptr %298, align 16
  %300 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %301 = load double, ptr %300, align 8
  %302 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %295, double %297, double %299, double %301)
  %303 = getelementptr inbounds %"class.JPH::Plane", ptr %52, i32 0, i32 0
  %304 = getelementptr inbounds %"class.JPH::Vec4", ptr %303, i32 0, i32 0
  %305 = getelementptr inbounds %union.anon.6, ptr %304, i32 0, i32 0
  %306 = getelementptr inbounds { double, double }, ptr %305, i32 0, i32 0
  %307 = extractvalue { double, double } %302, 0
  store double %307, ptr %306, align 16
  %308 = getelementptr inbounds { double, double }, ptr %305, i32 0, i32 1
  %309 = extractvalue { double, double } %302, 1
  store double %309, ptr %308, align 8
  %310 = load ptr, ptr %14, align 8, !tbaa !5
  %311 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %52, ptr noundef nonnull align 16 dereferenceable(64) %310)
  %312 = getelementptr inbounds %"class.JPH::Plane", ptr %51, i32 0, i32 0
  %313 = getelementptr inbounds %"class.JPH::Vec4", ptr %312, i32 0, i32 0
  %314 = getelementptr inbounds %union.anon.6, ptr %313, i32 0, i32 0
  %315 = getelementptr inbounds { double, double }, ptr %314, i32 0, i32 0
  %316 = extractvalue { double, double } %311, 0
  store double %316, ptr %315, align 16
  %317 = getelementptr inbounds { double, double }, ptr %314, i32 0, i32 1
  %318 = extractvalue { double, double } %311, 1
  store double %318, ptr %317, align 8
  %319 = load ptr, ptr %23, align 8, !tbaa !5
  %320 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %319, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %320, ptr align 16 %51, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #7
  %321 = load i32, ptr %18, align 4, !tbaa !9
  %322 = load ptr, ptr %23, align 8, !tbaa !5
  %323 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %322, i32 0, i32 4
  store i32 %321, ptr %323, align 16, !tbaa !22
  br label %324

324:                                              ; preds = %288, %268
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #7
  br label %325

325:                                              ; preds = %324, %267
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  br label %326

326:                                              ; preds = %325, %90
  br label %327

327:                                              ; preds = %326
  %328 = load ptr, ptr %23, align 8, !tbaa !5
  %329 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %328, i32 1
  store ptr %329, ptr %23, align 8, !tbaa !5
  br label %85, !llvm.loop !23

330:                                              ; preds = %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #7
  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)) #3 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Vec3eqES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #3 align 2

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

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

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

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

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

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

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon.3 }
%union.anon.3 = type { <4 x float> }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.6 }
%union.anon.6 = 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 } @_ZNK3JPH4Vec33AbsEv(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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH8BoxShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3EPNS_14SoftBodyVertexEjfS4_i(ptr nocapture noundef nonnull readonly align 16 dereferenceable(80) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef %4, i32 noundef %5, float noundef %6, double %7, double %8, i32 noundef %9) unnamed_addr #3 align 2 {
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Mat44", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca [3 x %"class.JPH::Vec3"], align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Plane", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Plane", align 16
  store double %2, ptr %11, align 16
  %24 = getelementptr inbounds i8, ptr %11, i64 8
  store double %3, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #6
  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) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %25 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %26 = extractvalue { double, double } %25, 0
  store double %26, ptr %14, align 16
  %27 = getelementptr inbounds i8, ptr %14, i64 8
  %28 = extractvalue { double, double } %25, 1
  store double %28, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr %0, i64 48
  %.sroa.051.0.copyload = load double, ptr %29, align 16
  %.sroa.252.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 56
  %.sroa.252.0.copyload = load double, ptr %.sroa.252.0..sroa_idx, align 8, !tbaa !5
  %30 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %.sroa.051.0.copyload, double %.sroa.252.0.copyload)
  %31 = extractvalue { double, double } %30, 0
  store double %31, ptr %13, align 16
  %32 = getelementptr inbounds i8, ptr %13, i64 8
  %33 = extractvalue { double, double } %30, 1
  store double %33, ptr %32, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  %34 = zext i32 %5 to i64
  %35 = getelementptr inbounds %"class.JPH::SoftBodyVertex", ptr %4, i64 %34
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %10
  %36 = getelementptr inbounds i8, ptr %15, i64 8
  %37 = getelementptr inbounds i8, ptr %16, i64 8
  %38 = getelementptr inbounds i8, ptr %22, i64 8
  %39 = getelementptr inbounds i8, ptr %23, i64 8
  %40 = getelementptr inbounds i8, ptr %17, i64 8
  %41 = getelementptr inbounds i8, ptr %18, i64 8
  %42 = getelementptr inbounds i8, ptr %18, i64 16
  %43 = getelementptr inbounds i8, ptr %18, i64 24
  %44 = getelementptr inbounds i8, ptr %18, i64 32
  %45 = getelementptr inbounds i8, ptr %18, i64 40
  %46 = getelementptr inbounds i8, ptr %20, i64 8
  %47 = getelementptr inbounds i8, ptr %19, i64 8
  %48 = getelementptr inbounds i8, ptr %21, i64 8
  br label %49

._crit_edge:                                      ; preds = %131, %10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #6
  ret void

49:                                               ; preds = %.lr.ph, %131
  %.065 = phi ptr [ %4, %.lr.ph ], [ %132, %131 ]
  %50 = getelementptr inbounds i8, ptr %.065, i64 76
  %51 = load float, ptr %50, align 4, !tbaa !8
  %52 = fcmp ogt float %51, 0.000000e+00
  br i1 %52, label %53, label %131

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %54 = getelementptr inbounds i8, ptr %.065, i64 16
  %.sroa.036.0.copyload = load double, ptr %54, align 16
  %.sroa.237.0..sroa_idx = getelementptr inbounds i8, ptr %.065, i64 24
  %.sroa.237.0.copyload = load double, ptr %.sroa.237.0..sroa_idx, align 8, !tbaa !5
  %55 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %12, double %.sroa.036.0.copyload, double %.sroa.237.0.copyload)
  %56 = extractvalue { double, double } %55, 0
  store double %56, ptr %15, align 16
  %57 = extractvalue { double, double } %55, 1
  store double %57, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  %.sroa.030.0.copyload = load double, ptr %13, align 16
  %.sroa.231.0.copyload = load double, ptr %32, align 8, !tbaa !5
  %58 = call { double, double } @_ZN3JPH4Vec34sMinES0_S0_(double %56, double %57, double %.sroa.030.0.copyload, double %.sroa.231.0.copyload)
  %59 = extractvalue { double, double } %58, 0
  %60 = extractvalue { double, double } %58, 1
  %61 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %62 = extractvalue { double, double } %61, 0
  %63 = extractvalue { double, double } %61, 1
  %64 = call { double, double } @_ZN3JPH4Vec34sMaxES0_S0_(double %59, double %60, double %62, double %63)
  %65 = extractvalue { double, double } %64, 0
  store double %65, ptr %16, align 16
  %66 = extractvalue { double, double } %64, 1
  store double %66, ptr %37, align 8
  %.sroa.026.0.copyload = load double, ptr %15, align 16
  %.sroa.227.0.copyload = load double, ptr %36, align 8, !tbaa !5
  %67 = call noundef zeroext i1 @_ZNK3JPH4Vec3eqES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %.sroa.026.0.copyload, double %.sroa.227.0.copyload)
  br i1 %67, label %68, label %110

68:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  %69 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %15)
  %70 = extractvalue { double, double } %69, 0
  %71 = extractvalue { double, double } %69, 1
  %72 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %70, double %71)
  %73 = extractvalue { double, double } %72, 0
  store double %73, ptr %17, align 16
  %74 = extractvalue { double, double } %72, 1
  store double %74, ptr %40, align 8
  %75 = call noundef i32 @_ZNK3JPH4Vec323GetLowestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
  %76 = call noundef float @_ZNK3JPH4Vec3ixEj(ptr noundef nonnull align 16 dereferenceable(16) %17, i32 noundef %75)
  %77 = getelementptr inbounds i8, ptr %.065, i64 72
  %78 = load float, ptr %77, align 8, !tbaa !16
  %79 = fcmp ogt float %76, %78
  br i1 %79, label %80, label %109

80:                                               ; preds = %68
  store float %76, ptr %77, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %18) #6
  %81 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %82 = extractvalue { double, double } %81, 0
  store double %82, ptr %18, align 16
  %83 = extractvalue { double, double } %81, 1
  store double %83, ptr %41, align 8
  %84 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %85 = extractvalue { double, double } %84, 0
  store double %85, ptr %42, align 16
  %86 = extractvalue { double, double } %84, 1
  store double %86, ptr %43, align 8
  %87 = call { double, double } @_ZN3JPH4Vec36sAxisZEv()
  %88 = extractvalue { double, double } %87, 0
  store double %88, ptr %44, align 16
  %89 = extractvalue { double, double } %87, 1
  store double %89, ptr %45, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  %90 = call { double, double } @_ZNK3JPH4Vec37GetSignEv(ptr noundef nonnull align 16 dereferenceable(16) %15)
  %91 = extractvalue { double, double } %90, 0
  store double %91, ptr %20, align 16
  %92 = extractvalue { double, double } %90, 1
  store double %92, ptr %46, align 8
  %93 = sext i32 %75 to i64
  %94 = getelementptr inbounds [3 x %"class.JPH::Vec3"], ptr %18, i64 0, i64 %93
  %.sroa.019.0.copyload = load double, ptr %94, align 16
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %94, i64 8
  %.sroa.220.0.copyload = load double, ptr %.sroa.220.0..sroa_idx, align 8, !tbaa !5
  %95 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %.sroa.019.0.copyload, double %.sroa.220.0.copyload)
  %96 = extractvalue { double, double } %95, 0
  store double %96, ptr %19, align 16
  %97 = extractvalue { double, double } %95, 1
  store double %97, ptr %47, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  %.sroa.015.0.copyload = load double, ptr %13, align 16
  %.sroa.216.0.copyload = load double, ptr %32, align 8, !tbaa !5
  %98 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %.sroa.015.0.copyload, double %.sroa.216.0.copyload)
  %99 = extractvalue { double, double } %98, 0
  %100 = extractvalue { double, double } %98, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  %.sroa.09.0.copyload = load double, ptr %19, align 16
  %.sroa.210.0.copyload = load double, ptr %47, align 8, !tbaa !5
  %101 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %99, double %100, double %.sroa.09.0.copyload, double %.sroa.210.0.copyload)
  %102 = extractvalue { double, double } %101, 0
  store double %102, ptr %21, align 16
  %103 = extractvalue { double, double } %101, 1
  store double %103, ptr %48, align 8
  %104 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 16 dereferenceable(64) %1)
  %105 = extractvalue { double, double } %104, 0
  %106 = extractvalue { double, double } %104, 1
  %107 = getelementptr inbounds i8, ptr %.065, i64 48
  store double %105, ptr %107, align 16
  %.sroa.414.0..sroa_idx = getelementptr inbounds i8, ptr %.065, i64 56
  store double %106, ptr %.sroa.414.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  %108 = getelementptr inbounds i8, ptr %.065, i64 64
  store i32 %9, ptr %108, align 16, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #6
  br label %109

109:                                              ; preds = %80, %68
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  br label %130

110:                                              ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #6
  %.sroa.07.0.copyload = load double, ptr %16, align 16
  %.sroa.28.0.copyload = load double, ptr %37, align 8, !tbaa !5
  %111 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload)
  %112 = extractvalue { double, double } %111, 0
  store double %112, ptr %22, align 16
  %113 = extractvalue { double, double } %111, 1
  store double %113, ptr %38, align 8
  %114 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  %115 = fneg float %114
  %116 = getelementptr inbounds i8, ptr %.065, i64 72
  %117 = load float, ptr %116, align 8, !tbaa !16
  %118 = fcmp olt float %117, %115
  br i1 %118, label %119, label %129

119:                                              ; preds = %110
  %120 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef %114)
  store float %115, ptr %116, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #6
  %.sroa.01.0.copyload = load double, ptr %16, align 16
  %.sroa.22.0.copyload = load double, ptr %37, align 8, !tbaa !5
  %.sroa.0.0.copyload = load double, ptr %22, align 16
  %.sroa.2.0.copyload = load double, ptr %38, align 8, !tbaa !5
  %121 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %.sroa.01.0.copyload, double %.sroa.22.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %122 = extractvalue { double, double } %121, 0
  store double %122, ptr %23, align 16
  %123 = extractvalue { double, double } %121, 1
  store double %123, ptr %39, align 8
  %124 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %23, ptr noundef nonnull align 16 dereferenceable(64) %1)
  %125 = extractvalue { double, double } %124, 0
  %126 = extractvalue { double, double } %124, 1
  %127 = getelementptr inbounds i8, ptr %.065, i64 48
  store double %125, ptr %127, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %.065, i64 56
  store double %126, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  %128 = getelementptr inbounds i8, ptr %.065, i64 64
  store i32 %9, ptr %128, align 16, !tbaa !17
  br label %129

129:                                              ; preds = %119, %110
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  br label %130

130:                                              ; preds = %129, %109
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %131

131:                                              ; preds = %49, %130
  %132 = getelementptr inbounds i8, ptr %.065, i64 80
  %133 = icmp ult ptr %132, %35
  br i1 %133, label %49, label %._crit_edge, !llvm.loop !18
}

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Vec3eqES0_(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 } @_ZN3JPH4Vec36sAxisXEv() local_unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) 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 = { 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 #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 = { 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 #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!9, !15, i64 72}
!17 = !{!9, !13, i64 64}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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