; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/Physics/Body/Body.ll (ZN3JPH4Body20ApplyBuoyancyImpulseENS_4Vec3ES1_fffS1_S1_f)

; 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 }
%union.anon = type { <4 x float> }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Body" = type <{ %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::AABox", %"class.JPH::RefConst.1", ptr, i64, %"class.JPH::CollisionGroup", float, float, %"class.JPH::BodyID", i16, i8, %"class.JPH::BroadPhaseLayer", i8, %"struct.std::atomic.3", [6 x i8] }>
%"class.JPH::RefConst.1" = type { ptr }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.2", i32, i32 }
%"class.JPH::RefConst.2" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::BroadPhaseLayer" = type { i8 }
%"struct.std::atomic.3" = type { %"struct.std::__atomic_base.4" }
%"struct.std::__atomic_base.4" = type { i8 }

@.str.3 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body11IsRigidBodyEv(ptr noundef nonnull align 16 dereferenceable(122)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #3

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH4Body20ApplyBuoyancyImpulseENS_4Vec3ES1_fffS1_S1_f(ptr noundef nonnull align 16 dereferenceable(122) %0, double %1, double %2, double %3, double %4, float noundef %5, float noundef %6, float noundef %7, ptr noundef byval(%"class.JPH::Vec3") align 16 %8, ptr noundef byval(%"class.JPH::Vec3") align 16 %9, float noundef %10) #6 align 2 {
  %12 = alloca i1, align 1
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca ptr, align 8
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca %"struct.JPH::AssertLastParam", align 1
  %21 = alloca %"class.JPH::Mat44", align 16
  %22 = alloca %"class.JPH::Quat", align 16
  %23 = alloca %"class.JPH::Plane", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"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::Vec3", align 16
  %44 = alloca %"class.JPH::AABox", align 16
  %45 = alloca float, align 4
  %46 = alloca float, align 4
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Quat", align 16
  %49 = alloca %"class.JPH::Quat", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Vec3", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Vec3", align 16
  %58 = alloca float, align 4
  %59 = alloca float, align 4
  %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 float, align 4
  %66 = alloca %"class.JPH::Vec3", align 16
  %67 = alloca %"class.JPH::Vec3", align 16
  %68 = alloca %"class.JPH::Mat44", align 16
  %69 = alloca %"class.JPH::Vec3", align 16
  %70 = alloca %"class.JPH::Vec3", align 16
  %71 = alloca float, align 4
  %72 = alloca float, align 4
  %73 = alloca %"class.JPH::Vec3", align 16
  %74 = alloca %"class.JPH::Vec3", align 16
  %75 = alloca %"class.JPH::Vec3", align 16
  %76 = alloca %"class.JPH::Vec3", align 16
  %77 = alloca %"class.JPH::Vec3", align 16
  %78 = alloca %"class.JPH::Vec3", align 16
  %79 = alloca i32, align 4
  %80 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  store double %1, ptr %80, align 16
  %81 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  store double %2, ptr %81, align 8
  %82 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  store double %3, ptr %82, align 16
  %83 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  store double %4, ptr %83, align 8
  store ptr %0, ptr %15, align 8, !tbaa !5
  store float %5, ptr %16, align 4, !tbaa !9
  store float %6, ptr %17, align 4, !tbaa !9
  store float %7, ptr %18, align 4, !tbaa !9
  store float %10, ptr %19, align 4, !tbaa !9
  %84 = load ptr, ptr %15, align 8
  br label %85

85:                                               ; preds = %11
  %86 = call noundef zeroext i1 @_ZNK3JPH4Body11IsRigidBodyEv(ptr noundef nonnull align 16 dereferenceable(122) %84)
  br i1 %86, label %90, label %87

87:                                               ; preds = %85
  %88 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 190)
  br i1 %88, label %89, label %90

89:                                               ; preds = %87
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !11
  br label %90

90:                                               ; preds = %89, %87, %85
  br label %91

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #9
  %92 = getelementptr inbounds %"class.JPH::Body", ptr %84, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %92, i64 16, i1 false), !tbaa.struct !12
  %93 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %94 = load double, ptr %93, align 16
  %95 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %96 = load double, ptr %95, align 8
  call void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %21, double %94, double %96)
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  %97 = getelementptr inbounds %"class.JPH::Body", ptr %84, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %97, i64 16, i1 false), !tbaa.struct !12
  %98 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %99 = load double, ptr %98, align 16
  %100 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %101 = load double, ptr %100, align 8
  %102 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %99, double %101)
  %103 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %104 = getelementptr inbounds %union.anon, 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.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !12
  %109 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %110 = load double, ptr %109, align 16
  %111 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %112 = load double, ptr %111, align 8
  %113 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %114 = load double, ptr %113, align 16
  %115 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %116 = load double, ptr %115, align 8
  %117 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %110, double %112, double %114, double %116)
  %118 = getelementptr inbounds %"class.JPH::Plane", ptr %23, i32 0, i32 0
  %119 = getelementptr inbounds %"class.JPH::Vec4", ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds %union.anon.0, ptr %119, i32 0, i32 0
  %121 = getelementptr inbounds { double, double }, ptr %120, i32 0, i32 0
  %122 = extractvalue { double, double } %117, 0
  store double %122, ptr %121, align 16
  %123 = getelementptr inbounds { double, double }, ptr %120, i32 0, i32 1
  %124 = extractvalue { double, double } %117, 1
  store double %124, ptr %123, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #9
  %125 = getelementptr inbounds %"class.JPH::Body", ptr %84, i32 0, i32 3
  %126 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %125)
  %127 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 1.000000e+00)
  %128 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %129 = getelementptr inbounds %union.anon, ptr %128, i32 0, i32 0
  %130 = getelementptr inbounds { double, double }, ptr %129, i32 0, i32 0
  %131 = extractvalue { double, double } %127, 0
  store double %131, ptr %130, align 16
  %132 = getelementptr inbounds { double, double }, ptr %129, i32 0, i32 1
  %133 = extractvalue { double, double } %127, 1
  store double %133, ptr %132, align 8
  %134 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %135 = load double, ptr %134, align 16
  %136 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %137 = load double, ptr %136, align 8
  %138 = load ptr, ptr %126, align 8, !tbaa !14
  %139 = getelementptr inbounds ptr, ptr %138, i64 14
  %140 = load ptr, ptr %139, align 8
  call void %140(ptr noundef nonnull align 8 dereferenceable(26) %126, ptr noundef nonnull align 16 dereferenceable(64) %21, double %135, double %137, ptr noundef nonnull align 16 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 16 dereferenceable(16) %29)
  %141 = load float, ptr %28, align 4, !tbaa !9
  %142 = fcmp ogt float %141, 0.000000e+00
  br i1 %142, label %143, label %489

143:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  %144 = getelementptr inbounds %"class.JPH::Body", ptr %84, i32 0, i32 4
  %145 = load ptr, ptr %144, align 8, !tbaa !16
  %146 = call noundef float @_ZNK3JPH16MotionProperties14GetInverseMassEv(ptr noundef nonnull align 16 dereferenceable(182) %145)
  store float %146, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  %147 = load float, ptr %16, align 4, !tbaa !9
  %148 = load float, ptr %27, align 4, !tbaa !9
  %149 = load float, ptr %31, align 4, !tbaa !9
  %150 = fmul float %148, %149
  %151 = fdiv float %147, %150
  store float %151, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #9
  %152 = load float, ptr %32, align 4, !tbaa !9
  %153 = fneg float %152
  %154 = load float, ptr %28, align 4, !tbaa !9
  %155 = fmul float %153, %154
  %156 = getelementptr inbounds %"class.JPH::Body", ptr %84, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !16
  %158 = call noundef float @_ZNK3JPH16MotionProperties16GetGravityFactorEv(ptr noundef nonnull align 16 dereferenceable(182) %157)
  %159 = fmul float %155, %158
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !12
  %160 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %161 = load double, ptr %160, align 16
  %162 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %163 = load double, ptr %162, align 8
  %164 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %159, double %161, double %163)
  %165 = getelementptr inbounds %"class.JPH::Vec3", ptr %34, i32 0, i32 0
  %166 = getelementptr inbounds %union.anon, ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds { double, double }, ptr %166, i32 0, i32 0
  %168 = extractvalue { double, double } %164, 0
  store double %168, ptr %167, align 16
  %169 = getelementptr inbounds { double, double }, ptr %166, i32 0, i32 1
  %170 = extractvalue { double, double } %164, 1
  store double %170, ptr %169, align 8
  %171 = load float, ptr %19, align 4, !tbaa !9
  %172 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef %171)
  %173 = getelementptr inbounds %"class.JPH::Vec3", ptr %33, i32 0, i32 0
  %174 = getelementptr inbounds %union.anon, ptr %173, i32 0, i32 0
  %175 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 0
  %176 = extractvalue { double, double } %172, 0
  store double %176, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 1
  %178 = extractvalue { double, double } %172, 1
  store double %178, ptr %177, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #9
  %179 = getelementptr inbounds %"class.JPH::Body", ptr %84, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !16
  %181 = call { double, double } @_ZNK3JPH16MotionProperties17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(182) %180)
  %182 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %183 = getelementptr inbounds %union.anon, ptr %182, i32 0, i32 0
  %184 = getelementptr inbounds { double, double }, ptr %183, i32 0, i32 0
  %185 = extractvalue { double, double } %181, 0
  store double %185, ptr %184, align 16
  %186 = getelementptr inbounds { double, double }, ptr %183, i32 0, i32 1
  %187 = extractvalue { double, double } %181, 1
  store double %187, ptr %186, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #9
  %188 = getelementptr inbounds %"class.JPH::Body", ptr %84, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !16
  %190 = call { double, double } @_ZNK3JPH16MotionProperties18GetAngularVelocityEv(ptr noundef nonnull align 16 dereferenceable(182) %189)
  %191 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i32 0, i32 0
  %192 = getelementptr inbounds %union.anon, 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
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %29, i64 16, i1 false), !tbaa.struct !12
  %197 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %198 = load double, ptr %197, align 16
  %199 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %200 = load double, ptr %199, align 8
  %201 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %37, double %198, double %200)
  %202 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %203 = getelementptr inbounds %union.anon, ptr %202, i32 0, i32 0
  %204 = getelementptr inbounds { double, double }, ptr %203, i32 0, i32 0
  %205 = extractvalue { double, double } %201, 0
  store double %205, ptr %204, align 16
  %206 = getelementptr inbounds { double, double }, ptr %203, i32 0, i32 1
  %207 = extractvalue { double, double } %201, 1
  store double %207, ptr %206, align 8
  %208 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %209 = load double, ptr %208, align 16
  %210 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %211 = load double, ptr %210, align 8
  %212 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %36, double %209, double %211)
  %213 = getelementptr inbounds %"class.JPH::Vec3", ptr %38, i32 0, i32 0
  %214 = getelementptr inbounds %union.anon, ptr %213, i32 0, i32 0
  %215 = getelementptr inbounds { double, double }, ptr %214, i32 0, i32 0
  %216 = extractvalue { double, double } %212, 0
  store double %216, ptr %215, align 16
  %217 = getelementptr inbounds { double, double }, ptr %214, i32 0, i32 1
  %218 = extractvalue { double, double } %212, 1
  store double %218, ptr %217, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %38, i64 16, i1 false), !tbaa.struct !12
  %219 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %220 = load double, ptr %219, align 16
  %221 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %222 = load double, ptr %221, align 8
  %223 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %220, double %222)
  %224 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %225 = getelementptr inbounds %union.anon, ptr %224, i32 0, i32 0
  %226 = getelementptr inbounds { double, double }, ptr %225, i32 0, i32 0
  %227 = extractvalue { double, double } %223, 0
  store double %227, ptr %226, align 16
  %228 = getelementptr inbounds { double, double }, ptr %225, i32 0, i32 1
  %229 = extractvalue { double, double } %223, 1
  store double %229, ptr %228, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #9
  %230 = getelementptr inbounds %"class.JPH::Body", ptr %84, i32 0, i32 3
  %231 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %230)
  %232 = load ptr, ptr %231, align 8, !tbaa !14
  %233 = getelementptr inbounds ptr, ptr %232, i64 4
  %234 = load ptr, ptr %233, align 8
  call void %234(ptr dead_on_unwind writable sret(%"class.JPH::AABox") align 16 %44, ptr noundef nonnull align 8 dereferenceable(26) %231)
  %235 = call { double, double } @_ZNK3JPH5AABox7GetSizeEv(ptr noundef nonnull align 16 dereferenceable(32) %44)
  %236 = getelementptr inbounds %"class.JPH::Vec3", ptr %43, i32 0, i32 0
  %237 = getelementptr inbounds %union.anon, ptr %236, i32 0, i32 0
  %238 = getelementptr inbounds { double, double }, ptr %237, i32 0, i32 0
  %239 = extractvalue { double, double } %235, 0
  store double %239, ptr %238, align 16
  %240 = getelementptr inbounds { double, double }, ptr %237, i32 0, i32 1
  %241 = extractvalue { double, double } %235, 1
  store double %241, ptr %240, align 8
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #9
  store float 0.000000e+00, ptr %45, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  %242 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %41)
  store float %242, ptr %46, align 4, !tbaa !9
  %243 = load float, ptr %46, align 4, !tbaa !9
  %244 = fcmp ogt float %243, 0x3D71979980000000
  br i1 %244, label %245, label %313

245:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #9
  %246 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %84)
  %247 = getelementptr inbounds %"class.JPH::Quat", ptr %49, i32 0, i32 0
  %248 = getelementptr inbounds %"class.JPH::Vec4", ptr %247, i32 0, i32 0
  %249 = getelementptr inbounds %union.anon.0, ptr %248, i32 0, i32 0
  %250 = getelementptr inbounds { double, double }, ptr %249, i32 0, i32 0
  %251 = extractvalue { double, double } %246, 0
  store double %251, ptr %250, align 16
  %252 = getelementptr inbounds { double, double }, ptr %249, i32 0, i32 1
  %253 = extractvalue { double, double } %246, 1
  store double %253, ptr %252, align 8
  %254 = call { double, double } @_ZNK3JPH4Quat10ConjugatedEv(ptr noundef nonnull align 16 dereferenceable(16) %49)
  %255 = getelementptr inbounds %"class.JPH::Quat", ptr %48, i32 0, i32 0
  %256 = getelementptr inbounds %"class.JPH::Vec4", ptr %255, i32 0, i32 0
  %257 = getelementptr inbounds %union.anon.0, 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
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %50, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !12
  %262 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %263 = load double, ptr %262, align 16
  %264 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %265 = load double, ptr %264, align 8
  %266 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %48, double %263, double %265)
  %267 = getelementptr inbounds %"class.JPH::Vec3", ptr %47, i32 0, i32 0
  %268 = getelementptr inbounds %union.anon, ptr %267, i32 0, i32 0
  %269 = getelementptr inbounds { double, double }, ptr %268, i32 0, i32 0
  %270 = extractvalue { double, double } %266, 0
  store double %270, ptr %269, align 16
  %271 = getelementptr inbounds { double, double }, ptr %268, i32 0, i32 1
  %272 = extractvalue { double, double } %266, 1
  store double %272, ptr %271, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #9
  %273 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %47)
  %274 = getelementptr inbounds %"class.JPH::Vec3", ptr %51, i32 0, i32 0
  %275 = getelementptr inbounds %union.anon, 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 16, ptr %53) #9
  %280 = call { double, double } @_ZNK3JPH4Vec37SwizzleILj1ELj2ELj0EEES0_v(ptr noundef nonnull align 16 dereferenceable(16) %43)
  %281 = getelementptr inbounds %"class.JPH::Vec3", ptr %53, i32 0, i32 0
  %282 = getelementptr inbounds %union.anon, ptr %281, i32 0, i32 0
  %283 = getelementptr inbounds { double, double }, ptr %282, i32 0, i32 0
  %284 = extractvalue { double, double } %280, 0
  store double %284, ptr %283, align 16
  %285 = getelementptr inbounds { double, double }, ptr %282, i32 0, i32 1
  %286 = extractvalue { double, double } %280, 1
  store double %286, ptr %285, align 8
  %287 = call { double, double } @_ZNK3JPH4Vec37SwizzleILj2ELj0ELj1EEES0_v(ptr noundef nonnull align 16 dereferenceable(16) %43)
  %288 = getelementptr inbounds %"class.JPH::Vec3", ptr %54, i32 0, i32 0
  %289 = getelementptr inbounds %union.anon, ptr %288, i32 0, i32 0
  %290 = getelementptr inbounds { double, double }, ptr %289, i32 0, i32 0
  %291 = extractvalue { double, double } %287, 0
  store double %291, ptr %290, align 16
  %292 = getelementptr inbounds { double, double }, ptr %289, i32 0, i32 1
  %293 = extractvalue { double, double } %287, 1
  store double %293, ptr %292, align 8
  %294 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %295 = load double, ptr %294, align 16
  %296 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %297 = load double, ptr %296, align 8
  %298 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %53, double %295, double %297)
  %299 = getelementptr inbounds %"class.JPH::Vec3", ptr %52, i32 0, i32 0
  %300 = getelementptr inbounds %union.anon, ptr %299, i32 0, i32 0
  %301 = getelementptr inbounds { double, double }, ptr %300, i32 0, i32 0
  %302 = extractvalue { double, double } %298, 0
  store double %302, ptr %301, align 16
  %303 = getelementptr inbounds { double, double }, ptr %300, i32 0, i32 1
  %304 = extractvalue { double, double } %298, 1
  store double %304, ptr %303, align 8
  %305 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %306 = load double, ptr %305, align 16
  %307 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %308 = load double, ptr %307, align 8
  %309 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %51, double %306, double %308)
  %310 = load float, ptr %46, align 4, !tbaa !9
  %311 = call noundef float @_ZSt4sqrtf(float noundef %310)
  %312 = fdiv float %309, %311
  store float %312, ptr %45, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #9
  br label %313

313:                                              ; preds = %245, %143
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #9
  %314 = load float, ptr %32, align 4, !tbaa !9
  %315 = fmul float 5.000000e-01, %314
  %316 = load float, ptr %17, align 4, !tbaa !9
  %317 = fmul float %315, %316
  %318 = load float, ptr %45, align 4, !tbaa !9
  %319 = fmul float %317, %318
  %320 = load float, ptr %19, align 4, !tbaa !9
  %321 = fmul float %319, %320
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %57, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !12
  %322 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 0
  %323 = load double, ptr %322, align 16
  %324 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 1
  %325 = load double, ptr %324, align 8
  %326 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %321, double %323, double %325)
  %327 = getelementptr inbounds %"class.JPH::Vec3", ptr %56, i32 0, i32 0
  %328 = getelementptr inbounds %union.anon, ptr %327, i32 0, i32 0
  %329 = getelementptr inbounds { double, double }, ptr %328, i32 0, i32 0
  %330 = extractvalue { double, double } %326, 0
  store double %330, ptr %329, align 16
  %331 = getelementptr inbounds { double, double }, ptr %328, i32 0, i32 1
  %332 = extractvalue { double, double } %326, 1
  store double %332, ptr %331, align 8
  %333 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %41)
  %334 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %56, float noundef %333)
  %335 = getelementptr inbounds %"class.JPH::Vec3", ptr %55, i32 0, i32 0
  %336 = getelementptr inbounds %union.anon, ptr %335, i32 0, i32 0
  %337 = getelementptr inbounds { double, double }, ptr %336, i32 0, i32 0
  %338 = extractvalue { double, double } %334, 0
  store double %338, ptr %337, align 16
  %339 = getelementptr inbounds { double, double }, ptr %336, i32 0, i32 1
  %340 = extractvalue { double, double } %334, 1
  store double %340, ptr %339, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #9
  %341 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %36)
  store float %341, ptr %58, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #9
  %342 = load float, ptr %31, align 4, !tbaa !9
  %343 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %55, float noundef %342)
  %344 = getelementptr inbounds %"class.JPH::Vec3", ptr %60, i32 0, i32 0
  %345 = getelementptr inbounds %union.anon, ptr %344, i32 0, i32 0
  %346 = getelementptr inbounds { double, double }, ptr %345, i32 0, i32 0
  %347 = extractvalue { double, double } %343, 0
  store double %347, ptr %346, align 16
  %348 = getelementptr inbounds { double, double }, ptr %345, i32 0, i32 1
  %349 = extractvalue { double, double } %343, 1
  store double %349, ptr %348, align 8
  %350 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %60)
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #9
  store float %350, ptr %59, align 4, !tbaa !9
  %351 = load float, ptr %59, align 4, !tbaa !9
  %352 = load float, ptr %58, align 4, !tbaa !9
  %353 = fcmp ogt float %351, %352
  br i1 %353, label %354, label %360

354:                                              ; preds = %313
  %355 = load float, ptr %58, align 4, !tbaa !9
  %356 = load float, ptr %59, align 4, !tbaa !9
  %357 = fdiv float %355, %356
  %358 = call noundef float @_ZSt4sqrtf(float noundef %357)
  %359 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mLEf(ptr noundef nonnull align 16 dereferenceable(16) %55, float noundef %358)
  br label %360

360:                                              ; preds = %354, %313
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %63, ptr align 16 %33, i64 16, i1 false), !tbaa.struct !12
  %361 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %362 = load double, ptr %361, align 16
  %363 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %364 = load double, ptr %363, align 8
  %365 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %55, double %362, double %364)
  %366 = getelementptr inbounds %"class.JPH::Vec3", ptr %62, i32 0, i32 0
  %367 = getelementptr inbounds %union.anon, ptr %366, i32 0, i32 0
  %368 = getelementptr inbounds { double, double }, ptr %367, i32 0, i32 0
  %369 = extractvalue { double, double } %365, 0
  store double %369, ptr %368, align 16
  %370 = getelementptr inbounds { double, double }, ptr %367, i32 0, i32 1
  %371 = extractvalue { double, double } %365, 1
  store double %371, ptr %370, align 8
  %372 = load float, ptr %31, align 4, !tbaa !9
  %373 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %62, float noundef %372)
  %374 = getelementptr inbounds %"class.JPH::Vec3", ptr %61, i32 0, i32 0
  %375 = getelementptr inbounds %union.anon, ptr %374, i32 0, i32 0
  %376 = getelementptr inbounds { double, double }, ptr %375, i32 0, i32 0
  %377 = extractvalue { double, double } %373, 0
  store double %377, ptr %376, align 16
  %378 = getelementptr inbounds { double, double }, ptr %375, i32 0, i32 1
  %379 = extractvalue { double, double } %373, 1
  store double %379, ptr %378, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #9
  %380 = getelementptr inbounds %"class.JPH::Body", ptr %84, i32 0, i32 4
  %381 = load ptr, ptr %380, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %61, i64 16, i1 false), !tbaa.struct !12
  %382 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %383 = load double, ptr %382, align 16
  %384 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %385 = load double, ptr %384, align 8
  call void @_ZN3JPH16MotionProperties21AddLinearVelocityStepENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182) %381, double %383, double %385)
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #9
  %386 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %43)
  %387 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %43)
  %388 = fadd float %386, %387
  %389 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %43)
  %390 = fadd float %388, %389
  %391 = fdiv float %390, 3.000000e+00
  store float %391, ptr %65, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %66) #9
  %392 = load float, ptr %18, align 4, !tbaa !9
  %393 = fneg float %392
  %394 = load float, ptr %28, align 4, !tbaa !9
  %395 = fmul float %393, %394
  %396 = load float, ptr %27, align 4, !tbaa !9
  %397 = fdiv float %395, %396
  %398 = load float, ptr %19, align 4, !tbaa !9
  %399 = fmul float %397, %398
  %400 = load float, ptr %65, align 4, !tbaa !9
  %401 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %400)
  %402 = fmul float %399, %401
  %403 = load float, ptr %31, align 4, !tbaa !9
  %404 = fdiv float %402, %403
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %67, ptr align 16 %37, i64 16, i1 false), !tbaa.struct !12
  %405 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %406 = load double, ptr %405, align 16
  %407 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %408 = load double, ptr %407, align 8
  %409 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %404, double %406, double %408)
  %410 = getelementptr inbounds %"class.JPH::Vec3", ptr %66, i32 0, i32 0
  %411 = getelementptr inbounds %union.anon, ptr %410, i32 0, i32 0
  %412 = getelementptr inbounds { double, double }, ptr %411, i32 0, i32 0
  %413 = extractvalue { double, double } %409, 0
  store double %413, ptr %412, align 16
  %414 = getelementptr inbounds { double, double }, ptr %411, i32 0, i32 1
  %415 = extractvalue { double, double } %409, 1
  store double %415, ptr %414, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %68) #9
  call void @_ZNK3JPH4Body17GetInverseInertiaEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %68, ptr noundef nonnull align 16 dereferenceable(122) %84)
  call void @llvm.lifetime.start.p0(i64 16, ptr %69) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %70, ptr align 16 %66, i64 16, i1 false), !tbaa.struct !12
  %416 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 0
  %417 = load double, ptr %416, align 16
  %418 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 1
  %419 = load double, ptr %418, align 8
  %420 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %68, double %417, double %419)
  %421 = getelementptr inbounds %"class.JPH::Vec3", ptr %69, i32 0, i32 0
  %422 = getelementptr inbounds %union.anon, ptr %421, i32 0, i32 0
  %423 = getelementptr inbounds { double, double }, ptr %422, i32 0, i32 0
  %424 = extractvalue { double, double } %420, 0
  store double %424, ptr %423, align 16
  %425 = getelementptr inbounds { double, double }, ptr %422, i32 0, i32 1
  %426 = extractvalue { double, double } %420, 1
  store double %426, ptr %425, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #9
  %427 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %37)
  store float %427, ptr %71, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #9
  %428 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %69)
  store float %428, ptr %72, align 4, !tbaa !9
  %429 = load float, ptr %72, align 4, !tbaa !9
  %430 = load float, ptr %71, align 4, !tbaa !9
  %431 = fcmp ogt float %429, %430
  br i1 %431, label %432, label %438

432:                                              ; preds = %360
  %433 = load float, ptr %71, align 4, !tbaa !9
  %434 = load float, ptr %72, align 4, !tbaa !9
  %435 = fdiv float %433, %434
  %436 = call noundef float @_ZSt4sqrtf(float noundef %435)
  %437 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mLEf(ptr noundef nonnull align 16 dereferenceable(16) %69, float noundef %436)
  br label %438

438:                                              ; preds = %432, %360
  call void @llvm.lifetime.start.p0(i64 16, ptr %73) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %77, ptr align 16 %55, i64 16, i1 false), !tbaa.struct !12
  %439 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %440 = load double, ptr %439, align 16
  %441 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %442 = load double, ptr %441, align 8
  %443 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %33, double %440, double %442)
  %444 = getelementptr inbounds %"class.JPH::Vec3", ptr %76, i32 0, i32 0
  %445 = getelementptr inbounds %union.anon, ptr %444, i32 0, i32 0
  %446 = getelementptr inbounds { double, double }, ptr %445, i32 0, i32 0
  %447 = extractvalue { double, double } %443, 0
  store double %447, ptr %446, align 16
  %448 = getelementptr inbounds { double, double }, ptr %445, i32 0, i32 1
  %449 = extractvalue { double, double } %443, 1
  store double %449, ptr %448, align 8
  %450 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %451 = load double, ptr %450, align 16
  %452 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %453 = load double, ptr %452, align 8
  %454 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %29, double %451, double %453)
  %455 = getelementptr inbounds %"class.JPH::Vec3", ptr %75, i32 0, i32 0
  %456 = getelementptr inbounds %union.anon, ptr %455, i32 0, i32 0
  %457 = getelementptr inbounds { double, double }, ptr %456, i32 0, i32 0
  %458 = extractvalue { double, double } %454, 0
  store double %458, ptr %457, align 16
  %459 = getelementptr inbounds { double, double }, ptr %456, i32 0, i32 1
  %460 = extractvalue { double, double } %454, 1
  store double %460, ptr %459, align 8
  %461 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 0
  %462 = load double, ptr %461, align 16
  %463 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 1
  %464 = load double, ptr %463, align 8
  %465 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %68, double %462, double %464)
  %466 = getelementptr inbounds %"class.JPH::Vec3", ptr %74, i32 0, i32 0
  %467 = getelementptr inbounds %union.anon, ptr %466, i32 0, i32 0
  %468 = getelementptr inbounds { double, double }, ptr %467, i32 0, i32 0
  %469 = extractvalue { double, double } %465, 0
  store double %469, ptr %468, align 16
  %470 = getelementptr inbounds { double, double }, ptr %467, i32 0, i32 1
  %471 = extractvalue { double, double } %465, 1
  store double %471, ptr %470, align 8
  %472 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 0
  %473 = load double, ptr %472, align 16
  %474 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 1
  %475 = load double, ptr %474, align 8
  %476 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %69, double %473, double %475)
  %477 = getelementptr inbounds %"class.JPH::Vec3", ptr %73, i32 0, i32 0
  %478 = getelementptr inbounds %union.anon, ptr %477, i32 0, i32 0
  %479 = getelementptr inbounds { double, double }, ptr %478, i32 0, i32 0
  %480 = extractvalue { double, double } %476, 0
  store double %480, ptr %479, align 16
  %481 = getelementptr inbounds { double, double }, ptr %478, i32 0, i32 1
  %482 = extractvalue { double, double } %476, 1
  store double %482, ptr %481, align 8
  %483 = getelementptr inbounds %"class.JPH::Body", ptr %84, i32 0, i32 4
  %484 = load ptr, ptr %483, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %78, ptr align 16 %73, i64 16, i1 false), !tbaa.struct !12
  %485 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 0
  %486 = load double, ptr %485, align 16
  %487 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 1
  %488 = load double, ptr %487, align 8
  call void @_ZN3JPH16MotionProperties22AddAngularVelocityStepENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182) %484, double %486, double %488)
  store i1 true, ptr %12, align 1
  store i32 1, ptr %79, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %73) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %69) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %68) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %66) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %490

489:                                              ; preds = %91
  store i1 false, ptr %12, align 1
  store i32 1, ptr %79, align 4
  br label %490

490:                                              ; preds = %489, %438
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #9
  %491 = load i1, ptr %12, align 1
  ret i1 %491
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties16GetGravityFactorEv(ptr noundef nonnull align 16 dereferenceable(182)) #2 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3JPH4Body17GetInverseInertiaEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(122)) #3 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{i64 2158279502}
!12 = !{i64 0, i64 16, !13}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = !{!17, !6, i64 72}
!17 = !{!"_ZTSN3JPH4BodyE", !18, i64 0, !19, i64 16, !21, i64 32, !22, i64 64, !6, i64 72, !23, i64 80, !24, i64 88, !10, i64 104, !10, i64 108, !27, i64 112, !28, i64 116, !29, i64 118, !30, i64 119, !31, i64 120, !32, i64 121}
!18 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!19 = !{!"_ZTSN3JPH4QuatE", !20, i64 0}
!20 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!21 = !{!"_ZTSN3JPH5AABoxE", !18, i64 0, !18, i64 16}
!22 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSN3JPH14CollisionGroupE", !25, i64 0, !26, i64 8, !26, i64 12}
!25 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !6, i64 0}
!26 = !{!"int", !7, i64 0}
!27 = !{!"_ZTSN3JPH6BodyIDE", !26, i64 0}
!28 = !{!"short", !7, i64 0}
!29 = !{!"_ZTSN3JPH9EBodyTypeE", !7, i64 0}
!30 = !{!"_ZTSN3JPH15BroadPhaseLayerE", !7, i64 0}
!31 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!32 = !{!"_ZTSSt6atomicIhE", !33, i64 0}
!33 = !{!"_ZTSSt13__atomic_baseIhE", !7, i64 0}


; 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 }
%union.anon = type { <4 x float> }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }

@.str.3 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body11IsRigidBodyEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) 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 #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH4Body20ApplyBuoyancyImpulseENS_4Vec3ES1_fffS1_S1_f(ptr noundef nonnull align 16 dereferenceable(122) %0, double %1, double %2, double %3, double %4, float noundef %5, float noundef %6, float noundef %7, ptr noundef byval(%"class.JPH::Vec3") align 16 %8, ptr nocapture noundef readonly byval(%"class.JPH::Vec3") align 16 %9, float noundef %10) local_unnamed_addr #5 align 2 {
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Mat44", align 16
  %14 = alloca %"class.JPH::Plane", align 16
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::AABox", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Quat", align 16
  %27 = alloca %"class.JPH::Quat", 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::Mat44", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  store double %1, ptr %12, align 16
  %36 = getelementptr inbounds i8, ptr %12, i64 8
  store double %2, ptr %36, align 8
  %37 = tail call noundef zeroext i1 @_ZNK3JPH4Body11IsRigidBodyEv(ptr noundef nonnull align 16 dereferenceable(122) %0)
  br i1 %37, label %41, label %38

38:                                               ; preds = %11
  %39 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 190)
  br i1 %39, label %40, label %41

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

41:                                               ; preds = %11, %38, %40
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #8
  %42 = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.065.0.copyload = load double, ptr %42, align 16
  %.sroa.266.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.266.0.copyload = load double, ptr %.sroa.266.0..sroa_idx, align 8, !tbaa !6
  call void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, double %.sroa.065.0.copyload, double %.sroa.266.0.copyload)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  %.sroa.061.0.copyload = load double, ptr %0, align 16
  %.sroa.262.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.262.0.copyload = load double, ptr %.sroa.262.0..sroa_idx, align 8, !tbaa !6
  %43 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %.sroa.061.0.copyload, double %.sroa.262.0.copyload)
  %44 = extractvalue { double, double } %43, 0
  %45 = extractvalue { double, double } %43, 1
  %46 = call { double, double } @_ZN3JPH5Plane19sFromPointAndNormalENS_4Vec3ES1_(double %44, double %45, double %3, double %4)
  %47 = extractvalue { double, double } %46, 0
  store double %47, ptr %14, align 16
  %48 = getelementptr inbounds i8, ptr %14, i64 8
  %49 = extractvalue { double, double } %46, 1
  store double %49, ptr %48, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #8
  %50 = getelementptr inbounds i8, ptr %0, i64 64
  %51 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
  %52 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 1.000000e+00)
  %53 = extractvalue { double, double } %52, 0
  %54 = extractvalue { double, double } %52, 1
  %55 = load ptr, ptr %51, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %55, i64 112
  %57 = load ptr, ptr %56, align 8
  call void %57(ptr noundef nonnull align 8 dereferenceable(26) %51, ptr noundef nonnull align 16 dereferenceable(64) %13, double %53, double %54, ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
  %58 = load float, ptr %16, align 4, !tbaa !11
  %59 = fcmp ogt float %58, 0.000000e+00
  br i1 %59, label %60, label %218

60:                                               ; preds = %41
  %61 = getelementptr inbounds i8, ptr %0, i64 72
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = call noundef float @_ZNK3JPH16MotionProperties14GetInverseMassEv(ptr noundef nonnull align 16 dereferenceable(182) %62)
  %64 = load float, ptr %15, align 4, !tbaa !11
  %65 = fmul float %63, %64
  %66 = fdiv float %5, %65
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #8
  %67 = fneg float %66
  %68 = load float, ptr %16, align 4, !tbaa !11
  %69 = fmul float %68, %67
  %70 = load ptr, ptr %61, align 8, !tbaa !13
  %71 = call noundef float @_ZNK3JPH16MotionProperties16GetGravityFactorEv(ptr noundef nonnull align 16 dereferenceable(182) %70)
  %72 = fmul float %69, %71
  %.sroa.049.0.copyload = load double, ptr %9, align 16
  %.sroa.250.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.250.0.copyload = load double, ptr %.sroa.250.0..sroa_idx, align 8, !tbaa !6
  %73 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %72, double %.sroa.049.0.copyload, double %.sroa.250.0.copyload)
  %74 = extractvalue { double, double } %73, 0
  store double %74, ptr %19, align 16
  %75 = getelementptr inbounds i8, ptr %19, i64 8
  %76 = extractvalue { double, double } %73, 1
  store double %76, ptr %75, align 8
  %77 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef %10)
  %78 = extractvalue { double, double } %77, 0
  store double %78, ptr %18, align 16
  %79 = getelementptr inbounds i8, ptr %18, i64 8
  %80 = extractvalue { double, double } %77, 1
  store double %80, ptr %79, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #8
  %81 = load ptr, ptr %61, align 8, !tbaa !13
  %82 = call { double, double } @_ZNK3JPH16MotionProperties17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(182) %81)
  %83 = extractvalue { double, double } %82, 0
  store double %83, ptr %20, align 16
  %84 = getelementptr inbounds i8, ptr %20, i64 8
  %85 = extractvalue { double, double } %82, 1
  store double %85, ptr %84, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #8
  %86 = load ptr, ptr %61, align 8, !tbaa !13
  %87 = call { double, double } @_ZNK3JPH16MotionProperties18GetAngularVelocityEv(ptr noundef nonnull align 16 dereferenceable(182) %86)
  %88 = extractvalue { double, double } %87, 0
  store double %88, ptr %21, align 16
  %89 = getelementptr inbounds i8, ptr %21, i64 8
  %90 = extractvalue { double, double } %87, 1
  store double %90, ptr %89, align 8
  %.sroa.043.0.copyload = load double, ptr %17, align 16
  %.sroa.244.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  %.sroa.244.0.copyload = load double, ptr %.sroa.244.0..sroa_idx, align 8, !tbaa !6
  %91 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %.sroa.043.0.copyload, double %.sroa.244.0.copyload)
  %92 = extractvalue { double, double } %91, 0
  %93 = extractvalue { double, double } %91, 1
  %94 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %92, double %93)
  %95 = extractvalue { double, double } %94, 0
  %96 = extractvalue { double, double } %94, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #8
  %97 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %95, double %96)
  %98 = extractvalue { double, double } %97, 0
  store double %98, ptr %22, align 16
  %99 = getelementptr inbounds i8, ptr %22, i64 8
  %100 = extractvalue { double, double } %97, 1
  store double %100, ptr %99, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #8
  %101 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = getelementptr inbounds i8, ptr %102, i64 32
  %104 = load ptr, ptr %103, align 8
  call void %104(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %24, ptr noundef nonnull align 8 dereferenceable(26) %101)
  %105 = call { double, double } @_ZNK3JPH5AABox7GetSizeEv(ptr noundef nonnull align 16 dereferenceable(32) %24)
  %106 = extractvalue { double, double } %105, 0
  store double %106, ptr %23, align 16
  %107 = getelementptr inbounds i8, ptr %23, i64 8
  %108 = extractvalue { double, double } %105, 1
  store double %108, ptr %107, align 8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #8
  %109 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  %110 = fcmp ogt float %109, 0x3D71979980000000
  br i1 %110, label %111, label %141

111:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #8
  %112 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %0)
  %113 = extractvalue { double, double } %112, 0
  store double %113, ptr %27, align 16
  %114 = getelementptr inbounds i8, ptr %27, i64 8
  %115 = extractvalue { double, double } %112, 1
  store double %115, ptr %114, align 8
  %116 = call { double, double } @_ZNK3JPH4Quat10ConjugatedEv(ptr noundef nonnull align 16 dereferenceable(16) %27)
  %117 = extractvalue { double, double } %116, 0
  store double %117, ptr %26, align 16
  %118 = getelementptr inbounds i8, ptr %26, i64 8
  %119 = extractvalue { double, double } %116, 1
  store double %119, ptr %118, align 8
  %.sroa.036.0.copyload = load double, ptr %22, align 16
  %.sroa.237.0.copyload = load double, ptr %99, align 8, !tbaa !6
  %120 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %26, double %.sroa.036.0.copyload, double %.sroa.237.0.copyload)
  %121 = extractvalue { double, double } %120, 0
  store double %121, ptr %25, align 16
  %122 = getelementptr inbounds i8, ptr %25, i64 8
  %123 = extractvalue { double, double } %120, 1
  store double %123, ptr %122, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #8
  %124 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %25)
  %125 = extractvalue { double, double } %124, 0
  store double %125, ptr %28, align 16
  %126 = getelementptr inbounds i8, ptr %28, i64 8
  %127 = extractvalue { double, double } %124, 1
  store double %127, ptr %126, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #8
  %128 = call { double, double } @_ZNK3JPH4Vec37SwizzleILj1ELj2ELj0EEES0_v(ptr noundef nonnull align 16 dereferenceable(16) %23)
  %129 = extractvalue { double, double } %128, 0
  store double %129, ptr %29, align 16
  %130 = getelementptr inbounds i8, ptr %29, i64 8
  %131 = extractvalue { double, double } %128, 1
  store double %131, ptr %130, align 8
  %132 = call { double, double } @_ZNK3JPH4Vec37SwizzleILj2ELj0ELj1EEES0_v(ptr noundef nonnull align 16 dereferenceable(16) %23)
  %133 = extractvalue { double, double } %132, 0
  %134 = extractvalue { double, double } %132, 1
  %135 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %29, double %133, double %134)
  %136 = extractvalue { double, double } %135, 0
  %137 = extractvalue { double, double } %135, 1
  %138 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %136, double %137)
  %139 = call noundef float @_ZSt4sqrtf(float noundef %109)
  %140 = fdiv float %138, %139
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #8
  br label %141

141:                                              ; preds = %111, %60
  %.077 = phi float [ %140, %111 ], [ 0.000000e+00, %60 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #8
  %142 = fmul float %66, 5.000000e-01
  %143 = fmul float %142, %6
  %144 = fmul float %143, %.077
  %145 = fmul float %144, %10
  %.sroa.030.0.copyload = load double, ptr %22, align 16
  %.sroa.231.0.copyload = load double, ptr %99, align 8, !tbaa !6
  %146 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %145, double %.sroa.030.0.copyload, double %.sroa.231.0.copyload)
  %147 = extractvalue { double, double } %146, 0
  store double %147, ptr %31, align 16
  %148 = getelementptr inbounds i8, ptr %31, i64 8
  %149 = extractvalue { double, double } %146, 1
  store double %149, ptr %148, align 8
  %150 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
  %151 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %31, float noundef %150)
  %152 = extractvalue { double, double } %151, 0
  store double %152, ptr %30, align 16
  %153 = getelementptr inbounds i8, ptr %30, i64 8
  %154 = extractvalue { double, double } %151, 1
  store double %154, ptr %153, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #8
  %155 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %20)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #8
  %156 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %30, float noundef %63)
  %157 = extractvalue { double, double } %156, 0
  store double %157, ptr %32, align 16
  %158 = getelementptr inbounds i8, ptr %32, i64 8
  %159 = extractvalue { double, double } %156, 1
  store double %159, ptr %158, align 8
  %160 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #8
  %161 = fcmp ogt float %160, %155
  br i1 %161, label %162, label %166

162:                                              ; preds = %141
  %163 = fdiv float %155, %160
  %164 = call noundef float @_ZSt4sqrtf(float noundef %163)
  %165 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mLEf(ptr noundef nonnull align 16 dereferenceable(16) %30, float noundef %164)
  br label %166

166:                                              ; preds = %162, %141
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #8
  %167 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %30, double %78, double %80)
  %168 = extractvalue { double, double } %167, 0
  store double %168, ptr %33, align 16
  %169 = getelementptr inbounds i8, ptr %33, i64 8
  %170 = extractvalue { double, double } %167, 1
  store double %170, ptr %169, align 8
  %171 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %33, float noundef %63)
  %172 = extractvalue { double, double } %171, 0
  %173 = extractvalue { double, double } %171, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #8
  %174 = load ptr, ptr %61, align 8, !tbaa !13
  call void @_ZN3JPH16MotionProperties21AddLinearVelocityStepENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182) %174, double %172, double %173)
  %175 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %23)
  %176 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %23)
  %177 = fadd float %175, %176
  %178 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %23)
  %179 = fadd float %177, %178
  %180 = fdiv float %179, 3.000000e+00
  %181 = fneg float %7
  %182 = load float, ptr %16, align 4, !tbaa !11
  %183 = fmul float %182, %181
  %184 = load float, ptr %15, align 4, !tbaa !11
  %185 = fdiv float %183, %184
  %186 = fmul float %185, %10
  %187 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %180)
  %188 = fmul float %187, %186
  %189 = fdiv float %188, %63
  %.sroa.015.0.copyload = load double, ptr %21, align 16
  %.sroa.216.0.copyload = load double, ptr %89, align 8, !tbaa !6
  %190 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %189, double %.sroa.015.0.copyload, double %.sroa.216.0.copyload)
  %191 = extractvalue { double, double } %190, 0
  %192 = extractvalue { double, double } %190, 1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %34) #8
  call void @_ZNK3JPH4Body17GetInverseInertiaEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %34, ptr noundef nonnull align 16 dereferenceable(122) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %35) #8
  %193 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %34, double %191, double %192)
  %194 = extractvalue { double, double } %193, 0
  store double %194, ptr %35, align 16
  %195 = getelementptr inbounds i8, ptr %35, i64 8
  %196 = extractvalue { double, double } %193, 1
  store double %196, ptr %195, align 8
  %197 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %21)
  %198 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %35)
  %199 = fcmp ogt float %198, %197
  br i1 %199, label %200, label %204

200:                                              ; preds = %166
  %201 = fdiv float %197, %198
  %202 = call noundef float @_ZSt4sqrtf(float noundef %201)
  %203 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mLEf(ptr noundef nonnull align 16 dereferenceable(16) %35, float noundef %202)
  br label %204

204:                                              ; preds = %200, %166
  %.sroa.01.0.copyload = load double, ptr %30, align 16
  %.sroa.22.0.copyload = load double, ptr %153, align 8, !tbaa !6
  %205 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload)
  %206 = extractvalue { double, double } %205, 0
  %207 = extractvalue { double, double } %205, 1
  %208 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %206, double %207)
  %209 = extractvalue { double, double } %208, 0
  %210 = extractvalue { double, double } %208, 1
  %211 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %34, double %209, double %210)
  %212 = extractvalue { double, double } %211, 0
  %213 = extractvalue { double, double } %211, 1
  %214 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %35, double %212, double %213)
  %215 = extractvalue { double, double } %214, 0
  %216 = extractvalue { double, double } %214, 1
  %217 = load ptr, ptr %61, align 8, !tbaa !13
  call void @_ZN3JPH16MotionProperties22AddAngularVelocityStepENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182) %217, double %215, double %216)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %34) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  br label %218

218:                                              ; preds = %41, %204
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #8
  ret i1 %59
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties16GetGravityFactorEv(ptr noundef nonnull align 16 dereferenceable(182)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3JPH4Body17GetInverseInertiaEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(122)) 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 #3 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 2158279502}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !20, i64 72}
!14 = !{!"_ZTSN3JPH4BodyE", !15, i64 0, !16, i64 16, !18, i64 32, !19, i64 64, !20, i64 72, !21, i64 80, !22, i64 88, !12, i64 104, !12, i64 108, !25, i64 112, !26, i64 116, !27, i64 118, !28, i64 119, !29, i64 120, !30, i64 121}
!15 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!16 = !{!"_ZTSN3JPH4QuatE", !17, i64 0}
!17 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!18 = !{!"_ZTSN3JPH5AABoxE", !15, i64 0, !15, i64 16}
!19 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !20, i64 0}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSN3JPH14CollisionGroupE", !23, i64 0, !24, i64 8, !24, i64 12}
!23 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !20, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!"_ZTSN3JPH6BodyIDE", !24, i64 0}
!26 = !{!"short", !7, i64 0}
!27 = !{!"_ZTSN3JPH9EBodyTypeE", !7, i64 0}
!28 = !{!"_ZTSN3JPH15BroadPhaseLayerE", !7, i64 0}
!29 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!30 = !{!"_ZTSSt6atomicIhE", !31, i64 0}
!31 = !{!"_ZTSSt13__atomic_baseIhE", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass