; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Character (CharacterPlanetTest)

; 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> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"struct.JPH::CharacterVirtual::ExtendedUpdateSettings" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, %"class.JPH::Vec3" }
%"class.JPH::DefaultBroadPhaseLayerFilter" = type <{ %"class.JPH::BroadPhaseLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::DefaultObjectLayerFilter" = type <{ %"class.JPH::ObjectLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::ObjectLayerFilter" = type { ptr }
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::BodyID" = type { i32 }
%class.CharacterPlanetTest = type <{ %class.Test, %"class.JPH::PhysicsStepListener", %"class.JPH::CharacterContactListener", %"class.JPH::Ref", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", i8, i8, [14 x i8] }>
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.JPH::PhysicsStepListener" = type { ptr }
%"class.JPH::CharacterContactListener" = type { ptr }
%"class.JPH::Ref" = type { ptr }
%"class.Test::PreUpdateParams" = type { float, [12 x i8], %struct.CameraState }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19CharacterPlanetTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 16 dereferenceable(178) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Quat", align 16
  %10 = alloca %"class.JPH::Quat", align 16
  %11 = alloca %"class.JPH::Quat", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Quat", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", 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 %"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 %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %35 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca %"class.JPH::BodyFilter", align 8
  %39 = alloca %"class.JPH::ShapeFilter", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #12
  %41 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 3
  %42 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %41)
  %43 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %42)
  %44 = getelementptr inbounds %"class.JPH::Vec3", ptr %5, i32 0, i32 0
  %45 = getelementptr inbounds %union.anon, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %47 = extractvalue { double, double } %43, 0
  store double %47, ptr %46, align 16
  %48 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %49 = extractvalue { double, double } %43, 1
  store double %49, ptr %48, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #12
  %50 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 3
  %51 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %50)
  %52 = call { double, double } @_ZNK3JPH16CharacterVirtual11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(372) %51)
  %53 = getelementptr inbounds %"class.JPH::Vec3", ptr %7, i32 0, i32 0
  %54 = getelementptr inbounds %union.anon, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %56 = extractvalue { double, double } %52, 0
  store double %56, ptr %55, align 16
  %57 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %58 = extractvalue { double, double } %52, 1
  store double %58, ptr %57, align 8
  %59 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %7)
  %60 = getelementptr inbounds %"class.JPH::Vec3", ptr %6, i32 0, i32 0
  %61 = getelementptr inbounds %union.anon, ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %63 = extractvalue { double, double } %59, 0
  store double %63, ptr %62, align 16
  %64 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %65 = extractvalue { double, double } %59, 1
  store double %65, ptr %64, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #12
  %66 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 3
  %67 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %66)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !9
  %68 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %69 = load double, ptr %68, align 16
  %70 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %71 = load double, ptr %70, align 8
  call void @_ZN3JPH13CharacterBase5SetUpENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144) %67, double %69, double %71)
  %72 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 3
  %73 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %5, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !9
  %74 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %75 = load double, ptr %74, align 16
  %76 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %77 = load double, ptr %76, align 8
  %78 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %79 = load double, ptr %78, align 16
  %80 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %81 = load double, ptr %80, align 8
  %82 = call { double, double } @_ZN3JPH4Quat7sFromToENS_4Vec3ES1_(double %75, double %77, double %79, double %81)
  %83 = getelementptr inbounds %"class.JPH::Quat", ptr %11, i32 0, i32 0
  %84 = getelementptr inbounds %"class.JPH::Vec4", ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds %union.anon.4, ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 0
  %87 = extractvalue { double, double } %82, 0
  store double %87, ptr %86, align 16
  %88 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 1
  %89 = extractvalue { double, double } %82, 1
  store double %89, ptr %88, align 8
  %90 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 3
  %91 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %90)
  %92 = call { double, double } @_ZNK3JPH16CharacterVirtual11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(372) %91)
  %93 = getelementptr inbounds %"class.JPH::Quat", ptr %14, i32 0, i32 0
  %94 = getelementptr inbounds %"class.JPH::Vec4", ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds %union.anon.4, ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds { double, double }, ptr %95, i32 0, i32 0
  %97 = extractvalue { double, double } %92, 0
  store double %97, ptr %96, align 16
  %98 = getelementptr inbounds { double, double }, ptr %95, i32 0, i32 1
  %99 = extractvalue { double, double } %92, 1
  store double %99, ptr %98, align 8
  %100 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %101 = load double, ptr %100, align 16
  %102 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %103 = load double, ptr %102, align 8
  %104 = call { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %101, double %103)
  %105 = getelementptr inbounds %"class.JPH::Quat", ptr %10, i32 0, i32 0
  %106 = getelementptr inbounds %"class.JPH::Vec4", ptr %105, i32 0, i32 0
  %107 = getelementptr inbounds %union.anon.4, ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds { double, double }, ptr %107, i32 0, i32 0
  %109 = extractvalue { double, double } %104, 0
  store double %109, ptr %108, align 16
  %110 = getelementptr inbounds { double, double }, ptr %107, i32 0, i32 1
  %111 = extractvalue { double, double } %104, 1
  store double %111, ptr %110, align 8
  %112 = call { double, double } @_ZNK3JPH4Quat10NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %113 = getelementptr inbounds %"class.JPH::Quat", ptr %9, i32 0, i32 0
  %114 = getelementptr inbounds %"class.JPH::Vec4", ptr %113, i32 0, i32 0
  %115 = getelementptr inbounds %union.anon.4, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds { double, double }, ptr %115, i32 0, i32 0
  %117 = extractvalue { double, double } %112, 0
  store double %117, ptr %116, align 16
  %118 = getelementptr inbounds { double, double }, ptr %115, i32 0, i32 1
  %119 = extractvalue { double, double } %112, 1
  store double %119, ptr %118, align 8
  %120 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %121 = load double, ptr %120, align 16
  %122 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %123 = load double, ptr %122, align 8
  call void @_ZN3JPH16CharacterVirtual11SetRotationENS_4QuatE(ptr noundef nonnull align 16 dereferenceable(372) %73, double %121, double %123)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #12
  %124 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 3
  %125 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %124)
  %126 = call { double, double } @_ZNK3JPH16CharacterVirtual17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(372) %125)
  %127 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %128 = getelementptr inbounds %union.anon, ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds { double, double }, ptr %128, i32 0, i32 0
  %130 = extractvalue { double, double } %126, 0
  store double %130, ptr %129, align 16
  %131 = getelementptr inbounds { double, double }, ptr %128, i32 0, i32 1
  %132 = extractvalue { double, double } %126, 1
  store double %132, ptr %131, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !9
  %133 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %134 = load double, ptr %133, align 16
  %135 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %136 = load double, ptr %135, align 8
  %137 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %134, double %136)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !9
  %138 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %139 = load double, ptr %138, align 16
  %140 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %141 = load double, ptr %140, align 8
  %142 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %137, double %139, double %141)
  %143 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %144 = getelementptr inbounds %union.anon, ptr %143, i32 0, i32 0
  %145 = getelementptr inbounds { double, double }, ptr %144, i32 0, i32 0
  %146 = extractvalue { double, double } %142, 0
  store double %146, ptr %145, align 16
  %147 = getelementptr inbounds { double, double }, ptr %144, i32 0, i32 1
  %148 = extractvalue { double, double } %142, 1
  store double %148, ptr %147, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #12
  %149 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 3
  %150 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %149)
  %151 = call { double, double } @_ZNK3JPH13CharacterBase17GetGroundVelocityEv(ptr noundef nonnull align 16 dereferenceable(144) %150)
  %152 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %153 = getelementptr inbounds %union.anon, ptr %152, i32 0, i32 0
  %154 = getelementptr inbounds { double, double }, ptr %153, i32 0, i32 0
  %155 = extractvalue { double, double } %151, 0
  store double %155, ptr %154, align 16
  %156 = getelementptr inbounds { double, double }, ptr %153, i32 0, i32 1
  %157 = extractvalue { double, double } %151, 1
  store double %157, ptr %156, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #12
  %158 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 3
  %159 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %158)
  %160 = call noundef i32 @_ZNK3JPH13CharacterBase14GetGroundStateEv(ptr noundef nonnull align 16 dereferenceable(144) %159)
  %161 = icmp eq i32 %160, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #12
  br i1 %161, label %162, label %180

162:                                              ; preds = %2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %19, i64 16, i1 false), !tbaa.struct !9
  %163 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %164 = load double, ptr %163, align 16
  %165 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %166 = load double, ptr %165, align 8
  %167 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %164, double %166)
  %168 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %169 = getelementptr inbounds %union.anon, ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds { double, double }, ptr %169, i32 0, i32 0
  %171 = extractvalue { double, double } %167, 0
  store double %171, ptr %170, align 16
  %172 = getelementptr inbounds { double, double }, ptr %169, i32 0, i32 1
  %173 = extractvalue { double, double } %167, 1
  store double %173, ptr %172, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !9
  %174 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %175 = load double, ptr %174, align 16
  %176 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %177 = load double, ptr %176, align 8
  %178 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %175, double %177)
  %179 = fcmp olt float %178, 0x3FB99999A0000000
  br label %180

180:                                              ; preds = %162, %2
  %181 = phi i1 [ false, %2 ], [ %179, %162 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #12
  br i1 %181, label %182, label %204

182:                                              ; preds = %180
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %19, i64 16, i1 false), !tbaa.struct !9
  %183 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 7
  %184 = load i8, ptr %183, align 16, !tbaa !11, !range !25, !noundef !26
  %185 = trunc i8 %184 to i1
  br i1 %185, label %186, label %203

186:                                              ; preds = %182
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !9
  %187 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %188 = load double, ptr %187, align 16
  %189 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %190 = load double, ptr %189, align 8
  %191 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 4.000000e+00, double %188, double %190)
  %192 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %193 = getelementptr inbounds %union.anon, ptr %192, i32 0, i32 0
  %194 = getelementptr inbounds { double, double }, ptr %193, i32 0, i32 0
  %195 = extractvalue { double, double } %191, 0
  store double %195, ptr %194, align 16
  %196 = getelementptr inbounds { double, double }, ptr %193, i32 0, i32 1
  %197 = extractvalue { double, double } %191, 1
  store double %197, ptr %196, align 8
  %198 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %199 = load double, ptr %198, align 16
  %200 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %201 = load double, ptr %200, align 8
  %202 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %199, double %201)
  br label %203

203:                                              ; preds = %186, %182
  br label %205

204:                                              ; preds = %180
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !9
  br label %205

205:                                              ; preds = %204, %203
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #12
  %206 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %6)
  %207 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %208 = getelementptr inbounds %union.anon, ptr %207, i32 0, i32 0
  %209 = getelementptr inbounds { double, double }, ptr %208, i32 0, i32 0
  %210 = extractvalue { double, double } %206, 0
  store double %210, ptr %209, align 16
  %211 = getelementptr inbounds { double, double }, ptr %208, i32 0, i32 1
  %212 = extractvalue { double, double } %206, 1
  store double %212, ptr %211, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #12
  %213 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 2
  %214 = load ptr, ptr %213, align 16, !tbaa !27
  %215 = call { double, double } @_ZNK3JPH13PhysicsSystem10GetGravityEv(ptr noundef nonnull align 16 dereferenceable(1172) %214)
  %216 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %217 = getelementptr inbounds %union.anon, ptr %216, i32 0, i32 0
  %218 = getelementptr inbounds { double, double }, ptr %217, i32 0, i32 0
  %219 = extractvalue { double, double } %215, 0
  store double %219, ptr %218, align 16
  %220 = getelementptr inbounds { double, double }, ptr %217, i32 0, i32 1
  %221 = extractvalue { double, double } %215, 1
  store double %221, ptr %220, align 8
  %222 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %28)
  %223 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %27, float noundef %222)
  %224 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, 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.end.p0(i64 16, ptr %28) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #12
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %"class.Test::PreUpdateParams", ptr %230, i32 0, i32 0
  %232 = load float, ptr %231, align 16, !tbaa !28
  %233 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %26, float noundef %232)
  %234 = getelementptr inbounds %"class.JPH::Vec3", ptr %29, i32 0, i32 0
  %235 = getelementptr inbounds %union.anon, ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds { double, double }, ptr %235, i32 0, i32 0
  %237 = extractvalue { double, double } %233, 0
  store double %237, ptr %236, align 16
  %238 = getelementptr inbounds { double, double }, ptr %235, i32 0, i32 1
  %239 = extractvalue { double, double } %233, 1
  store double %239, ptr %238, align 8
  %240 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %241 = load double, ptr %240, align 16
  %242 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %243 = load double, ptr %242, align 8
  %244 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %241, double %243)
  %245 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %245, i64 16, i1 false), !tbaa.struct !9
  %246 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %247 = load double, ptr %246, align 16
  %248 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %249 = load double, ptr %248, align 8
  %250 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %247, double %249)
  %251 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 3
  %252 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %251)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !9
  %253 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %254 = load double, ptr %253, align 16
  %255 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %256 = load double, ptr %255, align 8
  call void @_ZN3JPH16CharacterVirtual17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %252, double %254, double %256)
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #12
  call void @_ZN3JPH16CharacterVirtual22ExtendedUpdateSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %32)
  %257 = getelementptr inbounds %class.CharacterPlanetTest, ptr %40, i32 0, i32 3
  %258 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %257)
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %"class.Test::PreUpdateParams", ptr %259, i32 0, i32 0
  %261 = load float, ptr %260, align 16, !tbaa !28
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #12
  %262 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 2
  %263 = load ptr, ptr %262, align 16, !tbaa !27
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %34, ptr noundef nonnull align 16 dereferenceable(1172) %263, i16 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #12
  %264 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 2
  %265 = load ptr, ptr %264, align 16, !tbaa !27
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %35, ptr noundef nonnull align 16 dereferenceable(1172) %265, i16 noundef zeroext 1)
          to label %266 unwind label %275

266:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #12
  call void @llvm.memset.p0.i64(ptr align 8 %38, i8 0, i64 8, i1 false)
  call void @_ZN3JPH10BodyFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #12
  call void @llvm.memset.p0.i64(ptr align 8 %39, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %39)
          to label %267 unwind label %279

267:                                              ; preds = %266
  %268 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 5
  %269 = load ptr, ptr %268, align 8, !tbaa !31
  %270 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %271 = load double, ptr %270, align 16
  %272 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %273 = load double, ptr %272, align 8
  invoke void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %258, float noundef %261, double %271, double %273, ptr noundef nonnull align 16 dereferenceable(64) %32, ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(12) %39, ptr noundef nonnull align 8 dereferenceable(8) %269)
          to label %274 unwind label %283

274:                                              ; preds = %267
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %39) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %35) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %34) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #12
  ret void

275:                                              ; preds = %205
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %36, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %37, align 4
  br label %288

279:                                              ; preds = %266
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %36, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %37, align 4
  br label %287

283:                                              ; preds = %267
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %36, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %37, align 4
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %39) #12
  br label %287

287:                                              ; preds = %283, %279
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %35) #12
  br label %288

288:                                              ; preds = %287, %275
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %34) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #12
  br label %289

289:                                              ; preds = %288
  %290 = load ptr, ptr %36, align 8
  %291 = load i32, ptr %37, align 4
  %292 = insertvalue { ptr, i32 } poison, ptr %290, 0
  %293 = insertvalue { ptr, i32 } %292, i32 %291, 1
  resume { ptr, i32 } %293
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13CharacterBase5SetUpENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144), double, double) #6 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH13CharacterBase14GetGroundStateEv(ptr noundef nonnull align 16 dereferenceable(144)) #6 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372), double, double) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual22ExtendedUpdateSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(64)) unnamed_addr #10 align 2

declare void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), float noundef, double, double, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8)) #11

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) #7 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #10 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { 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 #10 = { 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 #11 = { "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 #12 = { 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 = !{i64 0, i64 16, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !14, i64 176}
!12 = !{!"_ZTS19CharacterPlanetTest", !13, i64 0, !21, i64 112, !22, i64 120, !23, i64 128, !24, i64 144, !24, i64 160, !14, i64 176, !14, i64 177}
!13 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !15, i64 56}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !20, i64 0, !17, i64 8}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN3JPH19PhysicsStepListenerE"}
!22 = !{!"_ZTSN3JPH24CharacterContactListenerE"}
!23 = !{!"_ZTSN3JPH3RefINS_16CharacterVirtualEEE", !6, i64 0}
!24 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!13, !6, i64 16}
!28 = !{!29, !20, i64 0}
!29 = !{!"_ZTSN4Test15PreUpdateParamsE", !20, i64 0, !30, i64 16}
!30 = !{!"_ZTS11CameraState", !24, i64 0, !24, i64 16, !24, i64 32, !20, i64 48}
!31 = !{!13, !6, i64 40}


; 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::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"struct.JPH::CharacterVirtual::ExtendedUpdateSettings" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, %"class.JPH::Vec3" }
%"class.JPH::DefaultBroadPhaseLayerFilter" = type <{ %"class.JPH::BroadPhaseLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::DefaultObjectLayerFilter" = type <{ %"class.JPH::ObjectLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::ObjectLayerFilter" = type { ptr }
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::BodyID" = type { i32 }

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

declare i32 @__gxx_personality_v0(...)

; 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 } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) local_unnamed_addr #1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19CharacterPlanetTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 16 dereferenceable(178) %0, ptr nocapture noundef nonnull readonly align 16 dereferenceable(80) %1) unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Quat", align 16
  %6 = alloca %"class.JPH::Quat", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", align 16
  %15 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %16 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %17 = alloca %"class.JPH::BodyFilter", align 8
  %18 = alloca %"class.JPH::ShapeFilter", align 8
  %19 = getelementptr inbounds i8, ptr %0, i64 128
  %20 = tail call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %21 = tail call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %20)
  %22 = extractvalue { double, double } %21, 0
  %23 = extractvalue { double, double } %21, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #12
  %24 = tail call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %25 = tail call { double, double } @_ZNK3JPH16CharacterVirtual11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(372) %24)
  %26 = extractvalue { double, double } %25, 0
  store double %26, ptr %4, align 16
  %27 = getelementptr inbounds i8, ptr %4, i64 8
  %28 = extractvalue { double, double } %25, 1
  store double %28, ptr %27, align 8
  %29 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %30 = extractvalue { double, double } %29, 0
  store double %30, ptr %3, align 16
  %31 = getelementptr inbounds i8, ptr %3, i64 8
  %32 = extractvalue { double, double } %29, 1
  store double %32, ptr %31, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #12
  %33 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @_ZN3JPH13CharacterBase5SetUpENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144) %33, double %30, double %32)
  %34 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #12
  %35 = call { double, double } @_ZN3JPH4Quat7sFromToENS_4Vec3ES1_(double %22, double %23, double %30, double %32)
  %36 = extractvalue { double, double } %35, 0
  store double %36, ptr %6, align 16
  %37 = getelementptr inbounds i8, ptr %6, i64 8
  %38 = extractvalue { double, double } %35, 1
  store double %38, ptr %37, align 8
  %39 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %40 = call { double, double } @_ZNK3JPH16CharacterVirtual11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(372) %39)
  %41 = extractvalue { double, double } %40, 0
  %42 = extractvalue { double, double } %40, 1
  %43 = call { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %6, double %41, double %42)
  %44 = extractvalue { double, double } %43, 0
  store double %44, ptr %5, align 16
  %45 = getelementptr inbounds i8, ptr %5, i64 8
  %46 = extractvalue { double, double } %43, 1
  store double %46, ptr %45, align 8
  %47 = call { double, double } @_ZNK3JPH4Quat10NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %5)
  %48 = extractvalue { double, double } %47, 0
  %49 = extractvalue { double, double } %47, 1
  call void @_ZN3JPH16CharacterVirtual11SetRotationENS_4QuatE(ptr noundef nonnull align 16 dereferenceable(372) %34, double %48, double %49)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #12
  %50 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %51 = call { double, double } @_ZNK3JPH16CharacterVirtual17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(372) %50)
  %52 = extractvalue { double, double } %51, 0
  store double %52, ptr %8, align 16
  %53 = getelementptr inbounds i8, ptr %8, i64 8
  %54 = extractvalue { double, double } %51, 1
  store double %54, ptr %53, align 8
  %55 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %30, double %32)
  %56 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %55, double %30, double %32)
  %57 = extractvalue { double, double } %56, 0
  store double %57, ptr %7, align 16
  %58 = getelementptr inbounds i8, ptr %7, i64 8
  %59 = extractvalue { double, double } %56, 1
  store double %59, ptr %58, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #12
  %60 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %61 = call { double, double } @_ZNK3JPH13CharacterBase17GetGroundVelocityEv(ptr noundef nonnull align 16 dereferenceable(144) %60)
  %62 = extractvalue { double, double } %61, 0
  %63 = extractvalue { double, double } %61, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #12
  %64 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %65 = call noundef i32 @_ZNK3JPH13CharacterBase14GetGroundStateEv(ptr noundef nonnull align 16 dereferenceable(144) %64)
  %66 = icmp eq i32 %65, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #12
  br i1 %66, label %67, label %.critedge

67:                                               ; preds = %2
  %68 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %62, double %63)
  %69 = extractvalue { double, double } %68, 0
  store double %69, ptr %10, align 16
  %70 = getelementptr inbounds i8, ptr %10, i64 8
  %71 = extractvalue { double, double } %68, 1
  store double %71, ptr %70, align 8
  %72 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %30, double %32)
  %73 = fcmp olt float %72, 0x3FB99999A0000000
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #12
  br i1 %73, label %74, label %83

74:                                               ; preds = %67
  store double %62, ptr %9, align 16
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store double %63, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %0, i64 176
  %76 = load i8, ptr %75, align 16, !tbaa !8, !range !23, !noundef !24
  %77 = trunc nuw i8 %76 to i1
  br i1 %77, label %78, label %84

78:                                               ; preds = %74
  %79 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 4.000000e+00, double %30, double %32)
  %80 = extractvalue { double, double } %79, 0
  %81 = extractvalue { double, double } %79, 1
  %82 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %80, double %81)
  br label %84

.critedge:                                        ; preds = %2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #12
  br label %83

83:                                               ; preds = %.critedge, %67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !25
  br label %84

84:                                               ; preds = %74, %78, %83
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #12
  %85 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %3)
  %86 = extractvalue { double, double } %85, 0
  store double %86, ptr %12, align 16
  %87 = getelementptr inbounds i8, ptr %12, i64 8
  %88 = extractvalue { double, double } %85, 1
  store double %88, ptr %87, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #12
  %89 = getelementptr inbounds i8, ptr %0, i64 16
  %90 = load ptr, ptr %89, align 16, !tbaa !26
  %91 = call { double, double } @_ZNK3JPH13PhysicsSystem10GetGravityEv(ptr noundef nonnull align 16 dereferenceable(1172) %90)
  %92 = extractvalue { double, double } %91, 0
  store double %92, ptr %13, align 16
  %93 = getelementptr inbounds i8, ptr %13, i64 8
  %94 = extractvalue { double, double } %91, 1
  store double %94, ptr %93, align 8
  %95 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %96 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef %95)
  %97 = extractvalue { double, double } %96, 0
  store double %97, ptr %11, align 16
  %98 = getelementptr inbounds i8, ptr %11, i64 8
  %99 = extractvalue { double, double } %96, 1
  store double %99, ptr %98, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #12
  %100 = load float, ptr %1, align 16, !tbaa !27
  %101 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef %100)
  %102 = extractvalue { double, double } %101, 0
  %103 = extractvalue { double, double } %101, 1
  %104 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %102, double %103)
  %105 = getelementptr inbounds i8, ptr %0, i64 160
  %.sroa.03.0.copyload = load double, ptr %105, align 16
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 168
  %.sroa.24.0.copyload = load double, ptr %.sroa.24.0..sroa_idx, align 8, !tbaa !5
  %106 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload)
  %107 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %.sroa.01.0.copyload = load double, ptr %9, align 16
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !5
  call void @_ZN3JPH16CharacterVirtual17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %107, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #12
  call void @_ZN3JPH16CharacterVirtual22ExtendedUpdateSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %14)
  %108 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %109 = load float, ptr %1, align 16, !tbaa !27
  %.sroa.0.0.copyload = load double, ptr %11, align 16
  %.sroa.2.0.copyload = load double, ptr %98, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #12
  %110 = load ptr, ptr %89, align 16, !tbaa !26
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %15, ptr noundef nonnull align 16 dereferenceable(1172) %110, i16 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #12
  %111 = load ptr, ptr %89, align 16, !tbaa !26
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %16, ptr noundef nonnull align 16 dereferenceable(1172) %111, i16 noundef zeroext 1)
          to label %112 unwind label %117

112:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #12
  store i64 0, ptr %17, align 8
  call void @_ZN3JPH10BodyFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #12
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %18, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18)
          to label %113 unwind label %119

113:                                              ; preds = %112
  %114 = getelementptr inbounds i8, ptr %0, i64 40
  %115 = load ptr, ptr %114, align 8, !tbaa !30
  invoke void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %108, float noundef %109, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, ptr noundef nonnull align 16 dereferenceable(64) %14, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(12) %18, ptr noundef nonnull align 8 dereferenceable(8) %115)
          to label %116 unwind label %121

116:                                              ; preds = %113
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %16) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %15) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #12
  ret void

117:                                              ; preds = %84
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %124

119:                                              ; preds = %112
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %123

121:                                              ; preds = %113
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18) #12
  br label %123

123:                                              ; preds = %121, %119
  %.pn = phi { ptr, i32 } [ %122, %121 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %16) #12
  br label %124

124:                                              ; preds = %123, %117
  %.pn.pn = phi { ptr, i32 } [ %.pn, %123 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %15) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #12
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13CharacterBase5SetUpENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144), double, double) local_unnamed_addr #6 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH13CharacterBase14GetGroundStateEv(ptr noundef nonnull align 16 dereferenceable(144)) local_unnamed_addr #6 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #9 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372), double, double) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual22ExtendedUpdateSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(64)) unnamed_addr #10 align 2

declare void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), float noundef, double, double, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #11

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) local_unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #10 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { 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 #10 = { 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 #11 = { "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 #12 = { 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, !12, i64 176}
!9 = !{!"_ZTS19CharacterPlanetTest", !10, i64 0, !19, i64 112, !20, i64 120, !21, i64 128, !22, i64 144, !22, i64 160, !12, i64 176, !12, i64 177}
!10 = !{!"_ZTS4Test", !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !13, i64 56}
!11 = !{!"any pointer", !6, i64 0}
!12 = !{!"bool", !6, i64 0}
!13 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !11, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !11, i64 48}
!15 = !{!"long", !6, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !6, i64 0}
!19 = !{!"_ZTSN3JPH19PhysicsStepListenerE"}
!20 = !{!"_ZTSN3JPH24CharacterContactListenerE"}
!21 = !{!"_ZTSN3JPH3RefINS_16CharacterVirtualEEE", !11, i64 0}
!22 = !{!"_ZTSN3JPH4Vec3E", !6, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{i64 0, i64 16, !5}
!26 = !{!10, !11, i64 16}
!27 = !{!28, !18, i64 0}
!28 = !{!"_ZTSN4Test15PreUpdateParamsE", !18, i64 0, !29, i64 16}
!29 = !{!"_ZTS11CameraState", !22, i64 0, !22, i64 16, !22, i64 32, !18, i64 48}
!30 = !{!10, !11, i64 40}


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