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

; 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::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::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.12 }
%union.anon.12 = type { <4 x float> }
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::BodyID" = type { i32 }
%class.CharacterVirtualTest = type { %class.CharacterBaseTest.base, %"class.JPH::CharacterContactListener", %"class.JPH::Ref.7", %"class.JPH::Vec3", i8, %"class.JPH::Array.8" }
%class.CharacterBaseTest.base = type <{ %class.Test, %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::Array", float, %"class.JPH::BodyID", %"class.JPH::BodyID", [4 x i8], %"class.JPH::CharacterVsCharacterCollisionSimple", float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", float, %"class.JPH::BodyID", [4 x i8], %"class.JPH::Ref", %"class.JPH::Ref.7", %"class.JPH::Ref.7", [8 x i8], %"class.JPH::Vec3", i8, i8, i8, 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::RefConst" = type { ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::CharacterVsCharacterCollisionSimple" = type { %"class.JPH::CharacterVsCharacterCollision", %"class.JPH::Array.4" }
%"class.JPH::CharacterVsCharacterCollision" = type { ptr }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::CharacterContactListener" = type { ptr }
%"class.JPH::Ref.7" = type { ptr }
%"class.JPH::Array.8" = type { i64, i64, ptr }
%class.CharacterBaseTest = type <{ %class.Test, %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::Array", float, %"class.JPH::BodyID", %"class.JPH::BodyID", [4 x i8], %"class.JPH::CharacterVsCharacterCollisionSimple", float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", float, %"class.JPH::BodyID", [4 x i8], %"class.JPH::Ref", %"class.JPH::Ref.7", %"class.JPH::Ref.7", [8 x i8], %"class.JPH::Vec3", i8, i8, i8, i8, [12 x i8] }>
%"struct.JPH::PhysicsSettings" = type <{ i32, i32, i32, float, float, float, float, float, float, float, float, float, float, float, i32, i32, float, float, float, i8, i8, i8, i8, i8, i8, i8, i8 }>

@_ZN17CharacterBaseTest26sControlMovementDuringJumpE = external dso_local global i8, align 1
@_ZN20CharacterVirtualTest23sEnableCharacterInertiaE = external dso_local global i8, align 1
@_ZN17CharacterBaseTest15sCharacterSpeedE = external dso_local global float, align 4
@_ZN20CharacterVirtualTest12sUpRotationXE = external dso_local global float, align 4
@_ZN20CharacterVirtualTest12sUpRotationZE = external dso_local global float, align 4
@_ZN17CharacterBaseTest10sJumpSpeedE = external dso_local global float, align 4

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144)) #4 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20CharacterVirtualTest11HandleInputEN3JPH4Vec3Ebbf(ptr noundef nonnull align 16 dereferenceable(400) %0, double %1, double %2, i1 noundef zeroext %3, i1 noundef zeroext %4, float noundef %5) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca float, align 4
  %12 = alloca i8, align 1
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Quat", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Quat", 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 i8, align 1
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"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 i8, align 1
  %44 = alloca ptr, align 8
  %45 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %46 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %47 = alloca ptr, align 8
  %48 = alloca i32, align 4
  %49 = alloca %"class.JPH::BodyFilter", align 8
  %50 = alloca %"class.JPH::ShapeFilter", align 8
  %51 = alloca ptr, align 8
  %52 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  store double %1, ptr %52, align 16
  %53 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  store double %2, ptr %53, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  %54 = zext i1 %3 to i8
  store i8 %54, ptr %9, align 1, !tbaa !9
  %55 = zext i1 %4 to i8
  store i8 %55, ptr %10, align 1, !tbaa !9
  store float %5, ptr %11, align 4, !tbaa !11
  %56 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #12
  %57 = load i8, ptr @_ZN17CharacterBaseTest26sControlMovementDuringJumpE, align 1, !tbaa !9, !range !13, !noundef !14
  %58 = trunc i8 %57 to i1
  br i1 %58, label %63, label %59

59:                                               ; preds = %6
  %60 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %61 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %60)
  %62 = call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %61)
  br label %63

63:                                               ; preds = %59, %6
  %64 = phi i1 [ true, %6 ], [ %62, %59 ]
  %65 = zext i1 %64 to i8
  store i8 %65, ptr %12, align 1, !tbaa !9
  %66 = load i8, ptr %12, align 1, !tbaa !9, !range !13, !noundef !14
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %129

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #12
  %69 = load i8, ptr @_ZN20CharacterVirtualTest23sEnableCharacterInertiaE, align 1, !tbaa !9, !range !13, !noundef !14
  %70 = trunc i8 %69 to i1
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #12
  br i1 %70, label %71, label %114

71:                                               ; preds = %68
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %7, i64 16, i1 false), !tbaa.struct !15
  %72 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %73 = load double, ptr %72, align 16
  %74 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %75 = load double, ptr %74, align 8
  %76 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 2.500000e-01, double %73, double %75)
  %77 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %78 = getelementptr inbounds %union.anon, ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 0
  %80 = extractvalue { double, double } %76, 0
  store double %80, ptr %79, align 16
  %81 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 1
  %82 = extractvalue { double, double } %76, 1
  store double %82, ptr %81, align 8
  %83 = load float, ptr @_ZN17CharacterBaseTest15sCharacterSpeedE, align 4, !tbaa !11
  %84 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef %83)
  %85 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %86 = getelementptr inbounds %union.anon, ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 0
  %88 = extractvalue { double, double } %84, 0
  store double %88, ptr %87, align 16
  %89 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 1
  %90 = extractvalue { double, double } %84, 1
  store double %90, ptr %89, align 8
  %91 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %91, i64 16, i1 false), !tbaa.struct !15
  %92 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %93 = load double, ptr %92, align 16
  %94 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %95 = load double, ptr %94, align 8
  %96 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 7.500000e-01, double %93, double %95)
  %97 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %98 = getelementptr inbounds %union.anon, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds { double, double }, ptr %98, i32 0, i32 0
  %100 = extractvalue { double, double } %96, 0
  store double %100, ptr %99, align 16
  %101 = getelementptr inbounds { double, double }, ptr %98, i32 0, i32 1
  %102 = extractvalue { double, double } %96, 1
  store double %102, ptr %101, align 8
  %103 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %104 = load double, ptr %103, align 16
  %105 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %106 = load double, ptr %105, align 8
  %107 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %104, double %106)
  %108 = getelementptr inbounds %"class.JPH::Vec3", ptr %13, i32 0, i32 0
  %109 = getelementptr inbounds %union.anon, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 0
  %111 = extractvalue { double, double } %107, 0
  store double %111, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 1
  %113 = extractvalue { double, double } %107, 1
  store double %113, ptr %112, align 8
  br label %123

114:                                              ; preds = %68
  %115 = load float, ptr @_ZN17CharacterBaseTest15sCharacterSpeedE, align 4, !tbaa !11
  %116 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef %115)
  %117 = getelementptr inbounds %"class.JPH::Vec3", ptr %13, i32 0, i32 0
  %118 = getelementptr inbounds %union.anon, ptr %117, i32 0, i32 0
  %119 = getelementptr inbounds { double, double }, ptr %118, i32 0, i32 0
  %120 = extractvalue { double, double } %116, 0
  store double %120, ptr %119, align 16
  %121 = getelementptr inbounds { double, double }, ptr %118, i32 0, i32 1
  %122 = extractvalue { double, double } %116, 1
  store double %122, ptr %121, align 8
  br label %123

123:                                              ; preds = %114, %71
  %124 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %124, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #12
  %125 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 0x3D71979980000000)
  %126 = xor i1 %125, true
  %127 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 4
  %128 = zext i1 %126 to i8
  store i8 %128, ptr %127, align 16, !tbaa !17
  br label %131

129:                                              ; preds = %63
  %130 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 4
  store i8 1, ptr %130, align 16, !tbaa !17
  br label %131

131:                                              ; preds = %129, %123
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #12
  %132 = load float, ptr @_ZN20CharacterVirtualTest12sUpRotationXE, align 4, !tbaa !11
  %133 = load float, ptr @_ZN20CharacterVirtualTest12sUpRotationZE, align 4, !tbaa !11
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef %132, float noundef 0.000000e+00, float noundef %133)
  %134 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %135 = load double, ptr %134, align 16
  %136 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %137 = load double, ptr %136, align 8
  %138 = call { double, double } @_ZN3JPH4Quat12sEulerAnglesENS_4Vec3E(double %135, double %137)
  %139 = getelementptr inbounds %"class.JPH::Quat", ptr %19, i32 0, i32 0
  %140 = getelementptr inbounds %"class.JPH::Vec4", ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds %union.anon.12, ptr %140, i32 0, i32 0
  %142 = getelementptr inbounds { double, double }, ptr %141, i32 0, i32 0
  %143 = extractvalue { double, double } %138, 0
  store double %143, ptr %142, align 16
  %144 = getelementptr inbounds { double, double }, ptr %141, i32 0, i32 1
  %145 = extractvalue { double, double } %138, 1
  store double %145, ptr %144, align 8
  %146 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %147 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %146)
  %148 = call { double, double } @_ZNK3JPH4Quat11RotateAxisYEv(ptr noundef nonnull align 16 dereferenceable(16) %19)
  %149 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %150 = getelementptr inbounds %union.anon, ptr %149, i32 0, i32 0
  %151 = getelementptr inbounds { double, double }, ptr %150, i32 0, i32 0
  %152 = extractvalue { double, double } %148, 0
  store double %152, ptr %151, align 16
  %153 = getelementptr inbounds { double, double }, ptr %150, i32 0, i32 1
  %154 = extractvalue { double, double } %148, 1
  store double %154, ptr %153, align 8
  %155 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %156 = load double, ptr %155, align 16
  %157 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %158 = load double, ptr %157, align 8
  call void @_ZN3JPH13CharacterBase5SetUpENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144) %147, double %156, double %158)
  %159 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %160 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %159)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %19, i64 16, i1 false), !tbaa.struct !15
  %161 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %162 = load double, ptr %161, align 16
  %163 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %164 = load double, ptr %163, align 8
  call void @_ZN3JPH16CharacterVirtual11SetRotationENS_4QuatE(ptr noundef nonnull align 16 dereferenceable(372) %160, double %162, double %164)
  %165 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %166 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %165)
  call void @_ZN3JPH16CharacterVirtual20UpdateGroundVelocityEv(ptr noundef nonnull align 16 dereferenceable(372) %166)
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #12
  %167 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %168 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %167)
  %169 = call { double, double } @_ZNK3JPH16CharacterVirtual17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(372) %168)
  %170 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %171 = getelementptr inbounds %union.anon, ptr %170, i32 0, i32 0
  %172 = getelementptr inbounds { double, double }, ptr %171, i32 0, i32 0
  %173 = extractvalue { double, double } %169, 0
  store double %173, ptr %172, align 16
  %174 = getelementptr inbounds { double, double }, ptr %171, i32 0, i32 1
  %175 = extractvalue { double, double } %169, 1
  store double %175, ptr %174, align 8
  %176 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %177 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %176)
  %178 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %177)
  %179 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %180 = getelementptr inbounds %union.anon, ptr %179, i32 0, i32 0
  %181 = getelementptr inbounds { double, double }, ptr %180, i32 0, i32 0
  %182 = extractvalue { double, double } %178, 0
  store double %182, ptr %181, align 16
  %183 = getelementptr inbounds { double, double }, ptr %180, i32 0, i32 1
  %184 = extractvalue { double, double } %178, 1
  store double %184, ptr %183, align 8
  %185 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %186 = load double, ptr %185, align 16
  %187 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %188 = load double, ptr %187, align 8
  %189 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %186, double %188)
  %190 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %191 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %190)
  %192 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %191)
  %193 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %194 = getelementptr inbounds %union.anon, ptr %193, i32 0, i32 0
  %195 = getelementptr inbounds { double, double }, ptr %194, i32 0, i32 0
  %196 = extractvalue { double, double } %192, 0
  store double %196, ptr %195, align 16
  %197 = getelementptr inbounds { double, double }, ptr %194, i32 0, i32 1
  %198 = extractvalue { double, double } %192, 1
  store double %198, ptr %197, align 8
  %199 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %200 = load double, ptr %199, align 16
  %201 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %202 = load double, ptr %201, align 8
  %203 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %189, double %200, double %202)
  %204 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %205 = getelementptr inbounds %union.anon, ptr %204, i32 0, i32 0
  %206 = getelementptr inbounds { double, double }, ptr %205, i32 0, i32 0
  %207 = extractvalue { double, double } %203, 0
  store double %207, ptr %206, align 16
  %208 = getelementptr inbounds { double, double }, ptr %205, i32 0, i32 1
  %209 = extractvalue { double, double } %203, 1
  store double %209, ptr %208, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #12
  %210 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %211 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %210)
  %212 = call { double, double } @_ZNK3JPH13CharacterBase17GetGroundVelocityEv(ptr noundef nonnull align 16 dereferenceable(144) %211)
  %213 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, 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 %28) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #12
  %219 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %23)
  %220 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %27)
  %221 = fsub float %219, %220
  %222 = fcmp olt float %221, 0x3FB99999A0000000
  %223 = zext i1 %222 to i8
  store i8 %223, ptr %29, align 1, !tbaa !9
  %224 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %225 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %224)
  %226 = call noundef i32 @_ZNK3JPH13CharacterBase14GetGroundStateEv(ptr noundef nonnull align 16 dereferenceable(144) %225)
  %227 = icmp eq i32 %226, 0
  br i1 %227, label %228, label %285

228:                                              ; preds = %131
  %229 = load i8, ptr @_ZN20CharacterVirtualTest23sEnableCharacterInertiaE, align 1, !tbaa !9, !range !13, !noundef !14
  %230 = trunc i8 %229 to i1
  br i1 %230, label %231, label %234

231:                                              ; preds = %228
  %232 = load i8, ptr %29, align 1, !tbaa !9, !range !13, !noundef !14
  %233 = trunc i8 %232 to i1
  br i1 %233, label %251, label %285

234:                                              ; preds = %228
  %235 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %236 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %235)
  %237 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %238 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %237)
  %239 = call { double, double } @_ZNK3JPH13CharacterBase15GetGroundNormalEv(ptr noundef nonnull align 16 dereferenceable(144) %238)
  %240 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %241 = getelementptr inbounds %union.anon, ptr %240, i32 0, i32 0
  %242 = getelementptr inbounds { double, double }, ptr %241, i32 0, i32 0
  %243 = extractvalue { double, double } %239, 0
  store double %243, ptr %242, align 16
  %244 = getelementptr inbounds { double, double }, ptr %241, i32 0, i32 1
  %245 = extractvalue { double, double } %239, 1
  store double %245, ptr %244, align 8
  %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 zeroext i1 @_ZNK3JPH13CharacterBase15IsSlopeTooSteepENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144) %236, double %247, double %249)
  br i1 %250, label %285, label %251

251:                                              ; preds = %234, %231
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !15
  %252 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %253 = trunc i8 %252 to i1
  br i1 %253, label %254, label %284

254:                                              ; preds = %251
  %255 = load i8, ptr %29, align 1, !tbaa !9, !range !13, !noundef !14
  %256 = trunc i8 %255 to i1
  br i1 %256, label %257, label %284

257:                                              ; preds = %254
  %258 = load float, ptr @_ZN17CharacterBaseTest10sJumpSpeedE, align 4, !tbaa !11
  %259 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %260 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %259)
  %261 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %260)
  %262 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %263 = getelementptr inbounds %union.anon, ptr %262, i32 0, i32 0
  %264 = getelementptr inbounds { double, double }, ptr %263, i32 0, i32 0
  %265 = extractvalue { double, double } %261, 0
  store double %265, ptr %264, align 16
  %266 = getelementptr inbounds { double, double }, ptr %263, i32 0, i32 1
  %267 = extractvalue { double, double } %261, 1
  store double %267, ptr %266, align 8
  %268 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %269 = load double, ptr %268, align 16
  %270 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %271 = load double, ptr %270, align 8
  %272 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %258, double %269, double %271)
  %273 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %274 = getelementptr inbounds %union.anon, ptr %273, i32 0, i32 0
  %275 = getelementptr inbounds { double, double }, ptr %274, i32 0, i32 0
  %276 = extractvalue { double, double } %272, 0
  store double %276, ptr %275, align 16
  %277 = getelementptr inbounds { double, double }, ptr %274, i32 0, i32 1
  %278 = extractvalue { double, double } %272, 1
  store double %278, ptr %277, align 8
  %279 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %280 = load double, ptr %279, align 16
  %281 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %282 = load double, ptr %281, align 8
  %283 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %280, double %282)
  br label %284

284:                                              ; preds = %257, %254, %251
  br label %286

285:                                              ; preds = %234, %231, %131
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !15
  br label %286

286:                                              ; preds = %285, %284
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #12
  %287 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 2
  %288 = load ptr, ptr %287, align 16, !tbaa !38
  %289 = call { double, double } @_ZNK3JPH13PhysicsSystem10GetGravityEv(ptr noundef nonnull align 16 dereferenceable(1172) %288)
  %290 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %291 = getelementptr inbounds %union.anon, ptr %290, i32 0, i32 0
  %292 = getelementptr inbounds { double, double }, ptr %291, i32 0, i32 0
  %293 = extractvalue { double, double } %289, 0
  store double %293, ptr %292, align 16
  %294 = getelementptr inbounds { double, double }, ptr %291, i32 0, i32 1
  %295 = extractvalue { double, double } %289, 1
  store double %295, ptr %294, align 8
  %296 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %297 = load double, ptr %296, align 16
  %298 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %299 = load double, ptr %298, align 8
  %300 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %19, double %297, double %299)
  %301 = getelementptr inbounds %"class.JPH::Vec3", ptr %34, i32 0, i32 0
  %302 = getelementptr inbounds %union.anon, ptr %301, i32 0, i32 0
  %303 = getelementptr inbounds { double, double }, ptr %302, i32 0, i32 0
  %304 = extractvalue { double, double } %300, 0
  store double %304, ptr %303, align 16
  %305 = getelementptr inbounds { double, double }, ptr %302, i32 0, i32 1
  %306 = extractvalue { double, double } %300, 1
  store double %306, ptr %305, align 8
  %307 = load float, ptr %11, align 4, !tbaa !11
  %308 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef %307)
  %309 = getelementptr inbounds %"class.JPH::Vec3", ptr %33, i32 0, i32 0
  %310 = getelementptr inbounds %union.anon, ptr %309, i32 0, i32 0
  %311 = getelementptr inbounds { double, double }, ptr %310, i32 0, i32 0
  %312 = extractvalue { double, double } %308, 0
  store double %312, ptr %311, align 16
  %313 = getelementptr inbounds { double, double }, ptr %310, i32 0, i32 1
  %314 = extractvalue { double, double } %308, 1
  store double %314, ptr %313, align 8
  %315 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %316 = load double, ptr %315, align 16
  %317 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %318 = load double, ptr %317, align 8
  %319 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %316, double %318)
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #12
  %320 = load i8, ptr %12, align 1, !tbaa !9, !range !13, !noundef !14
  %321 = trunc i8 %320 to i1
  br i1 %321, label %322, label %340

322:                                              ; preds = %286
  %323 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %323, i64 16, i1 false), !tbaa.struct !15
  %324 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %325 = load double, ptr %324, align 16
  %326 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %327 = load double, ptr %326, align 8
  %328 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %19, double %325, double %327)
  %329 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %330 = getelementptr inbounds %union.anon, ptr %329, i32 0, i32 0
  %331 = getelementptr inbounds { double, double }, ptr %330, i32 0, i32 0
  %332 = extractvalue { double, double } %328, 0
  store double %332, ptr %331, align 16
  %333 = getelementptr inbounds { double, double }, ptr %330, i32 0, i32 1
  %334 = extractvalue { double, double } %328, 1
  store double %334, ptr %333, align 8
  %335 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %336 = load double, ptr %335, align 16
  %337 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %338 = load double, ptr %337, align 8
  %339 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %336, double %338)
  br label %366

340:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #12
  %341 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %342 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %341)
  %343 = call { double, double } @_ZNK3JPH16CharacterVirtual17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(372) %342)
  %344 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, 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
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !15
  %350 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %351 = load double, ptr %350, align 16
  %352 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %353 = load double, ptr %352, align 8
  %354 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %39, double %351, double %353)
  %355 = getelementptr inbounds %"class.JPH::Vec3", ptr %38, i32 0, i32 0
  %356 = getelementptr inbounds %union.anon, ptr %355, i32 0, i32 0
  %357 = getelementptr inbounds { double, double }, ptr %356, i32 0, i32 0
  %358 = extractvalue { double, double } %354, 0
  store double %358, ptr %357, align 16
  %359 = getelementptr inbounds { double, double }, ptr %356, i32 0, i32 1
  %360 = extractvalue { double, double } %354, 1
  store double %360, ptr %359, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %38, i64 16, i1 false), !tbaa.struct !15
  %361 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %362 = load double, ptr %361, align 16
  %363 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %364 = load double, ptr %363, align 8
  %365 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %362, double %364)
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #12
  br label %366

366:                                              ; preds = %340, %322
  %367 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %368 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %367)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !15
  %369 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %370 = load double, ptr %369, align 16
  %371 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %372 = load double, ptr %371, align 8
  call void @_ZN3JPH16CharacterVirtual17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %368, double %370, double %372)
  %373 = load i8, ptr %10, align 1, !tbaa !9, !range !13, !noundef !14
  %374 = trunc i8 %373 to i1
  br i1 %374, label %375, label %439

375:                                              ; preds = %366
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #12
  %376 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %377 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %376)
  %378 = call noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144) %377)
  %379 = getelementptr inbounds %class.CharacterBaseTest, ptr %56, i32 0, i32 1
  %380 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %379)
  %381 = icmp eq ptr %378, %380
  %382 = zext i1 %381 to i8
  store i8 %382, ptr %43, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #12
  %383 = load i8, ptr %43, align 1, !tbaa !9, !range !13, !noundef !14
  %384 = trunc i8 %383 to i1
  br i1 %384, label %385, label %387

385:                                              ; preds = %375
  %386 = getelementptr inbounds %class.CharacterBaseTest, ptr %56, i32 0, i32 2
  br label %389

387:                                              ; preds = %375
  %388 = getelementptr inbounds %class.CharacterBaseTest, ptr %56, i32 0, i32 1
  br label %389

389:                                              ; preds = %387, %385
  %390 = phi ptr [ %386, %385 ], [ %388, %387 ]
  %391 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %390)
  store ptr %391, ptr %44, align 8, !tbaa !5
  %392 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %393 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %392)
  %394 = load ptr, ptr %44, align 8, !tbaa !5
  %395 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 2
  %396 = load ptr, ptr %395, align 16, !tbaa !38
  %397 = call noundef nonnull align 4 dereferenceable(83) ptr @_ZNK3JPH13PhysicsSystem18GetPhysicsSettingsEv(ptr noundef nonnull align 16 dereferenceable(1172) %396)
  %398 = getelementptr inbounds %"struct.JPH::PhysicsSettings", ptr %397, i32 0, i32 5
  %399 = load float, ptr %398, align 4, !tbaa !39
  %400 = fmul float 1.500000e+00, %399
  call void @llvm.lifetime.start.p0(i64 24, ptr %45) #12
  %401 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 2
  %402 = load ptr, ptr %401, align 16, !tbaa !38
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %45, ptr noundef nonnull align 16 dereferenceable(1172) %402, i16 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #12
  %403 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 2
  %404 = load ptr, ptr %403, align 16, !tbaa !38
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %46, ptr noundef nonnull align 16 dereferenceable(1172) %404, i16 noundef zeroext 1)
          to label %405 unwind label %424

405:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #12
  call void @llvm.memset.p0.i64(ptr align 8 %49, i8 0, i64 8, i1 false)
  call void @_ZN3JPH10BodyFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %49) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #12
  call void @llvm.memset.p0.i64(ptr align 8 %50, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %50)
          to label %406 unwind label %428

406:                                              ; preds = %405
  %407 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 5
  %408 = load ptr, ptr %407, align 8, !tbaa !41
  %409 = invoke noundef zeroext i1 @_ZN3JPH16CharacterVirtual8SetShapeEPKNS_5ShapeEfRKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %393, ptr noundef %394, float noundef %400, ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(12) %50, ptr noundef nonnull align 8 dereferenceable(8) %408)
          to label %410 unwind label %432

410:                                              ; preds = %406
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %50) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %49) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %46) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %45) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #12
  br i1 %409, label %411, label %438

411:                                              ; preds = %410
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #12
  %412 = load i8, ptr %43, align 1, !tbaa !9, !range !13, !noundef !14
  %413 = trunc i8 %412 to i1
  br i1 %413, label %414, label %416

414:                                              ; preds = %411
  %415 = getelementptr inbounds %class.CharacterBaseTest, ptr %56, i32 0, i32 3
  br label %418

416:                                              ; preds = %411
  %417 = getelementptr inbounds %class.CharacterBaseTest, ptr %56, i32 0, i32 4
  br label %418

418:                                              ; preds = %416, %414
  %419 = phi ptr [ %415, %414 ], [ %417, %416 ]
  %420 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %419)
  store ptr %420, ptr %51, align 8, !tbaa !5
  %421 = getelementptr inbounds %class.CharacterVirtualTest, ptr %56, i32 0, i32 2
  %422 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %421)
  %423 = load ptr, ptr %51, align 8, !tbaa !5
  call void @_ZN3JPH16CharacterVirtual17SetInnerBodyShapeEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(372) %422, ptr noundef %423)
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #12
  br label %438

424:                                              ; preds = %389
  %425 = landingpad { ptr, i32 }
          cleanup
  %426 = extractvalue { ptr, i32 } %425, 0
  store ptr %426, ptr %47, align 8
  %427 = extractvalue { ptr, i32 } %425, 1
  store i32 %427, ptr %48, align 4
  br label %437

428:                                              ; preds = %405
  %429 = landingpad { ptr, i32 }
          cleanup
  %430 = extractvalue { ptr, i32 } %429, 0
  store ptr %430, ptr %47, align 8
  %431 = extractvalue { ptr, i32 } %429, 1
  store i32 %431, ptr %48, align 4
  br label %436

432:                                              ; preds = %406
  %433 = landingpad { ptr, i32 }
          cleanup
  %434 = extractvalue { ptr, i32 } %433, 0
  store ptr %434, ptr %47, align 8
  %435 = extractvalue { ptr, i32 } %433, 1
  store i32 %435, ptr %48, align 4
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %50) #12
  br label %436

436:                                              ; preds = %432, %428
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %49) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %46) #12
  br label %437

437:                                              ; preds = %436, %424
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %45) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #12
  br label %440

438:                                              ; preds = %418, %410
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #12
  br label %439

439:                                              ; preds = %438, %366
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #12
  ret void

440:                                              ; preds = %437
  %441 = load ptr, ptr %47, align 8
  %442 = load i32, ptr %48, align 4
  %443 = insertvalue { ptr, i32 } poison, ptr %441, 0
  %444 = insertvalue { ptr, i32 } %443, i32 %442, 1
  resume { ptr, i32 } %444
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144)) #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat12sEulerAnglesENS_4Vec3E(double, double) #7 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #9 align 2

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

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

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

declare void @_ZN3JPH16CharacterVirtual20UpdateGroundVelocityEv(ptr noundef nonnull align 16 dereferenceable(372)) #11

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH13CharacterBase15IsSlopeTooSteepENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144), double, double) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK3JPH13CharacterBase15GetGroundNormalEv(ptr noundef nonnull align 16 dereferenceable(144)) #5 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 } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16), double, double) #10 align 2

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

declare noundef zeroext i1 @_ZN3JPH16CharacterVirtual8SetShapeEPKNS_5ShapeEfRKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), ptr noundef, float noundef, 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(83) ptr @_ZNK3JPH13PhysicsSystem18GetPhysicsSettingsEv(ptr noundef nonnull align 16 dereferenceable(1172)) #5 align 2

declare void @_ZN3JPH16CharacterVirtual17SetInnerBodyShapeEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(372), ptr noundef) #11

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #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 = { 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 #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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{i64 0, i64 16, !16}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !10, i64 368}
!18 = !{!"_ZTS20CharacterVirtualTest", !19, i64 0, !36, i64 328, !35, i64 336, !33, i64 352, !10, i64 368, !37, i64 376}
!19 = !{!"_ZTS17CharacterBaseTest", !20, i64 0, !26, i64 112, !26, i64 120, !26, i64 128, !26, i64 136, !27, i64 144, !12, i64 168, !28, i64 172, !28, i64 176, !30, i64 184, !12, i64 216, !33, i64 224, !28, i64 240, !28, i64 244, !28, i64 248, !28, i64 252, !28, i64 256, !12, i64 260, !28, i64 264, !34, i64 272, !35, i64 280, !35, i64 288, !33, i64 304, !10, i64 320, !10, i64 321, !10, i64 322, !10, i64 323}
!20 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !21, i64 56}
!21 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !22, i64 0}
!22 = !{!"_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, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !6, i64 48}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !12, i64 0, !23, i64 8}
!26 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!27 = !{!"_ZTSN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEE", !23, i64 0, !23, i64 8, !6, i64 16}
!28 = !{!"_ZTSN3JPH6BodyIDE", !29, i64 0}
!29 = !{!"int", !7, i64 0}
!30 = !{!"_ZTSN3JPH35CharacterVsCharacterCollisionSimpleE", !31, i64 0, !32, i64 8}
!31 = !{!"_ZTSN3JPH29CharacterVsCharacterCollisionE"}
!32 = !{!"_ZTSN3JPH5ArrayIPNS_16CharacterVirtualENS_12STLAllocatorIS2_EEEE", !23, i64 0, !23, i64 8, !6, i64 16}
!33 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!34 = !{!"_ZTSN3JPH3RefINS_9CharacterEEE", !6, i64 0}
!35 = !{!"_ZTSN3JPH3RefINS_16CharacterVirtualEEE", !6, i64 0}
!36 = !{!"_ZTSN3JPH24CharacterContactListenerE"}
!37 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual10ContactKeyENS_12STLAllocatorIS2_EEEE", !23, i64 0, !23, i64 8, !6, i64 16}
!38 = !{!20, !6, i64 16}
!39 = !{!40, !12, i64 20}
!40 = !{!"_ZTSN3JPH15PhysicsSettingsE", !29, i64 0, !29, i64 4, !29, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !29, i64 56, !29, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !10, i64 76, !10, i64 77, !10, i64 78, !10, i64 79, !10, i64 80, !10, i64 81, !10, i64 82}
!41 = !{!20, !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::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::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.12 }
%union.anon.12 = type { <4 x float> }
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::BodyID" = type { i32 }

@_ZN17CharacterBaseTest26sControlMovementDuringJumpE = external dso_local local_unnamed_addr global i8, align 1
@_ZN20CharacterVirtualTest23sEnableCharacterInertiaE = external dso_local local_unnamed_addr global i8, align 1
@_ZN17CharacterBaseTest15sCharacterSpeedE = external dso_local local_unnamed_addr global float, align 4
@_ZN20CharacterVirtualTest12sUpRotationXE = external dso_local local_unnamed_addr global float, align 4
@_ZN20CharacterVirtualTest12sUpRotationZE = external dso_local local_unnamed_addr global float, align 4
@_ZN17CharacterBaseTest10sJumpSpeedE = external dso_local local_unnamed_addr global float, align 4

; 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 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 #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20CharacterVirtualTest11HandleInputEN3JPH4Vec3Ebbf(ptr noundef nonnull align 16 dereferenceable(400) %0, double %1, double %2, i1 noundef zeroext %3, i1 noundef zeroext %4, float noundef %5) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %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::Quat", 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 %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %19 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %20 = alloca %"class.JPH::BodyFilter", align 8
  %21 = alloca %"class.JPH::ShapeFilter", align 8
  store double %1, ptr %7, align 16
  %22 = getelementptr inbounds i8, ptr %7, i64 8
  store double %2, ptr %22, align 8
  %23 = load i8, ptr @_ZN17CharacterBaseTest26sControlMovementDuringJumpE, align 1, !tbaa !5, !range !9, !noundef !10
  %24 = trunc nuw i8 %23 to i1
  br i1 %24, label %.thread, label %25

25:                                               ; preds = %6
  %26 = getelementptr inbounds i8, ptr %0, i64 336
  %27 = tail call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %28 = tail call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %27)
  br i1 %28, label %.thread, label %55

.thread:                                          ; preds = %6, %25
  %29 = load i8, ptr @_ZN20CharacterVirtualTest23sEnableCharacterInertiaE, align 1, !tbaa !5, !range !9, !noundef !10
  %30 = trunc nuw i8 %29 to i1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #12
  br i1 %30, label %31, label %46

31:                                               ; preds = %.thread
  %32 = tail call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 2.500000e-01, double %1, double %2)
  %33 = extractvalue { double, double } %32, 0
  store double %33, ptr %9, align 16
  %34 = getelementptr inbounds i8, ptr %9, i64 8
  %35 = extractvalue { double, double } %32, 1
  store double %35, ptr %34, align 8
  %36 = load float, ptr @_ZN17CharacterBaseTest15sCharacterSpeedE, align 4, !tbaa !11
  %37 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef %36)
  %38 = extractvalue { double, double } %37, 0
  store double %38, ptr %8, align 16
  %39 = getelementptr inbounds i8, ptr %8, i64 8
  %40 = extractvalue { double, double } %37, 1
  store double %40, ptr %39, align 8
  %41 = getelementptr inbounds i8, ptr %0, i64 352
  %.sroa.034.0.copyload = load double, ptr %41, align 16
  %.sroa.235.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 360
  %.sroa.235.0.copyload = load double, ptr %.sroa.235.0..sroa_idx, align 8, !tbaa !13
  %42 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 7.500000e-01, double %.sroa.034.0.copyload, double %.sroa.235.0.copyload)
  %43 = extractvalue { double, double } %42, 0
  %44 = extractvalue { double, double } %42, 1
  %45 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %43, double %44)
  br label %49

46:                                               ; preds = %.thread
  %47 = load float, ptr @_ZN17CharacterBaseTest15sCharacterSpeedE, align 4, !tbaa !11
  %48 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef %47)
  br label %49

49:                                               ; preds = %46, %31
  %.pn = phi { double, double } [ %45, %31 ], [ %48, %46 ]
  %.sroa.5.0 = extractvalue { double, double } %.pn, 1
  %.sroa.040.0 = extractvalue { double, double } %.pn, 0
  %50 = getelementptr inbounds i8, ptr %0, i64 352
  store double %.sroa.040.0, ptr %50, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 360
  store double %.sroa.5.0, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #12
  %51 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 0x3D71979980000000)
  %52 = xor i1 %51, true
  %53 = getelementptr inbounds i8, ptr %0, i64 368
  %54 = zext i1 %52 to i8
  store i8 %54, ptr %53, align 16, !tbaa !14
  br label %57

55:                                               ; preds = %25
  %56 = getelementptr inbounds i8, ptr %0, i64 368
  store i8 1, ptr %56, align 16, !tbaa !14
  br label %57

57:                                               ; preds = %55, %49
  %58 = phi i1 [ false, %55 ], [ true, %49 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #12
  %59 = load float, ptr @_ZN20CharacterVirtualTest12sUpRotationXE, align 4, !tbaa !11
  %60 = load float, ptr @_ZN20CharacterVirtualTest12sUpRotationZE, align 4, !tbaa !11
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef %59, float noundef 0.000000e+00, float noundef %60)
  %61 = load double, ptr %11, align 16
  %62 = getelementptr inbounds i8, ptr %11, i64 8
  %63 = load double, ptr %62, align 8
  %64 = call { double, double } @_ZN3JPH4Quat12sEulerAnglesENS_4Vec3E(double %61, double %63)
  %65 = extractvalue { double, double } %64, 0
  store double %65, ptr %10, align 16
  %66 = getelementptr inbounds i8, ptr %10, i64 8
  %67 = extractvalue { double, double } %64, 1
  store double %67, ptr %66, align 8
  %68 = getelementptr inbounds i8, ptr %0, i64 336
  %69 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %70 = call { double, double } @_ZNK3JPH4Quat11RotateAxisYEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %71 = extractvalue { double, double } %70, 0
  %72 = extractvalue { double, double } %70, 1
  call void @_ZN3JPH13CharacterBase5SetUpENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144) %69, double %71, double %72)
  %73 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %.sroa.030.0.copyload = load double, ptr %10, align 16
  %.sroa.231.0.copyload = load double, ptr %66, align 8, !tbaa !13
  call void @_ZN3JPH16CharacterVirtual11SetRotationENS_4QuatE(ptr noundef nonnull align 16 dereferenceable(372) %73, double %.sroa.030.0.copyload, double %.sroa.231.0.copyload)
  %74 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  call void @_ZN3JPH16CharacterVirtual20UpdateGroundVelocityEv(ptr noundef nonnull align 16 dereferenceable(372) %74)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #12
  %75 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %76 = call { double, double } @_ZNK3JPH16CharacterVirtual17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(372) %75)
  %77 = extractvalue { double, double } %76, 0
  store double %77, ptr %13, align 16
  %78 = getelementptr inbounds i8, ptr %13, i64 8
  %79 = extractvalue { double, double } %76, 1
  store double %79, ptr %78, align 8
  %80 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %81 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %80)
  %82 = extractvalue { double, double } %81, 0
  %83 = extractvalue { double, double } %81, 1
  %84 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %82, double %83)
  %85 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %86 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %85)
  %87 = extractvalue { double, double } %86, 0
  %88 = extractvalue { double, double } %86, 1
  %89 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %84, double %87, double %88)
  %90 = extractvalue { double, double } %89, 0
  store double %90, ptr %12, align 16
  %91 = getelementptr inbounds i8, ptr %12, i64 8
  %92 = extractvalue { double, double } %89, 1
  store double %92, ptr %91, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #12
  %93 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %94 = call { double, double } @_ZNK3JPH13CharacterBase17GetGroundVelocityEv(ptr noundef nonnull align 16 dereferenceable(144) %93)
  %95 = extractvalue { double, double } %94, 0
  store double %95, ptr %14, align 16
  %96 = getelementptr inbounds i8, ptr %14, i64 8
  %97 = extractvalue { double, double } %94, 1
  store double %97, ptr %96, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #12
  %98 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %99 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
  %100 = fsub float %98, %99
  %101 = fcmp olt float %100, 0x3FB99999A0000000
  %102 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %103 = call noundef i32 @_ZNK3JPH13CharacterBase14GetGroundStateEv(ptr noundef nonnull align 16 dereferenceable(144) %102)
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %127

105:                                              ; preds = %57
  %106 = load i8, ptr @_ZN20CharacterVirtualTest23sEnableCharacterInertiaE, align 1, !tbaa !5, !range !9, !noundef !10
  %107 = trunc nuw i8 %106 to i1
  br i1 %107, label %108, label %109

108:                                              ; preds = %105
  br i1 %101, label %116, label %127

109:                                              ; preds = %105
  %110 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %111 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %112 = call { double, double } @_ZNK3JPH13CharacterBase15GetGroundNormalEv(ptr noundef nonnull align 16 dereferenceable(144) %111)
  %113 = extractvalue { double, double } %112, 0
  %114 = extractvalue { double, double } %112, 1
  %115 = call noundef zeroext i1 @_ZNK3JPH13CharacterBase15IsSlopeTooSteepENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144) %110, double %113, double %114)
  br i1 %115, label %127, label %116

116:                                              ; preds = %109, %108
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(16) %14, i64 16, i1 false), !tbaa.struct !36
  %brmerge.not = and i1 %101, %3
  br i1 %brmerge.not, label %117, label %128

117:                                              ; preds = %116
  %118 = load float, ptr @_ZN17CharacterBaseTest10sJumpSpeedE, align 4, !tbaa !11
  %119 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %120 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %119)
  %121 = extractvalue { double, double } %120, 0
  %122 = extractvalue { double, double } %120, 1
  %123 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %118, double %121, double %122)
  %124 = extractvalue { double, double } %123, 0
  %125 = extractvalue { double, double } %123, 1
  %126 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %124, double %125)
  br label %128

127:                                              ; preds = %109, %108, %57
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 16 dereferenceable(16) %12, i64 16, i1 false), !tbaa.struct !36
  br label %128

128:                                              ; preds = %116, %117, %127
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #12
  %129 = getelementptr inbounds i8, ptr %0, i64 16
  %130 = load ptr, ptr %129, align 16, !tbaa !37
  %131 = call { double, double } @_ZNK3JPH13PhysicsSystem10GetGravityEv(ptr noundef nonnull align 16 dereferenceable(1172) %130)
  %132 = extractvalue { double, double } %131, 0
  %133 = extractvalue { double, double } %131, 1
  %134 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %10, double %132, double %133)
  %135 = extractvalue { double, double } %134, 0
  store double %135, ptr %16, align 16
  %136 = getelementptr inbounds i8, ptr %16, i64 8
  %137 = extractvalue { double, double } %134, 1
  store double %137, ptr %136, align 8
  %138 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef %5)
  %139 = extractvalue { double, double } %138, 0
  %140 = extractvalue { double, double } %138, 1
  %141 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %139, double %140)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #12
  br i1 %58, label %142, label %148

142:                                              ; preds = %128
  %143 = getelementptr inbounds i8, ptr %0, i64 352
  %.sroa.010.0.copyload = load double, ptr %143, align 16
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 360
  %.sroa.211.0.copyload = load double, ptr %.sroa.211.0..sroa_idx, align 8, !tbaa !13
  %144 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %10, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload)
  %145 = extractvalue { double, double } %144, 0
  %146 = extractvalue { double, double } %144, 1
  %147 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %145, double %146)
  br label %158

148:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #12
  %149 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %150 = call { double, double } @_ZNK3JPH16CharacterVirtual17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(372) %149)
  %151 = extractvalue { double, double } %150, 0
  store double %151, ptr %17, align 16
  %152 = getelementptr inbounds i8, ptr %17, i64 8
  %153 = extractvalue { double, double } %150, 1
  store double %153, ptr %152, align 8
  %.sroa.07.0.copyload = load double, ptr %12, align 16
  %.sroa.28.0.copyload = load double, ptr %91, align 8, !tbaa !13
  %154 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload)
  %155 = extractvalue { double, double } %154, 0
  %156 = extractvalue { double, double } %154, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #12
  %157 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %155, double %156)
  br label %158

158:                                              ; preds = %148, %142
  %159 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %.sroa.0.0.copyload = load double, ptr %15, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !13
  call void @_ZN3JPH16CharacterVirtual17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %159, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  br i1 %4, label %160, label %195

160:                                              ; preds = %158
  %161 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %162 = call noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144) %161)
  %163 = getelementptr inbounds i8, ptr %0, i64 112
  %164 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %163)
  %165 = icmp eq ptr %162, %164
  %166 = getelementptr inbounds i8, ptr %0, i64 120
  %167 = select i1 %165, ptr %166, ptr %163
  %168 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %167)
  %169 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %170 = load ptr, ptr %129, align 16, !tbaa !37
  %171 = call noundef nonnull align 4 dereferenceable(83) ptr @_ZNK3JPH13PhysicsSystem18GetPhysicsSettingsEv(ptr noundef nonnull align 16 dereferenceable(1172) %170)
  %172 = getelementptr inbounds i8, ptr %171, i64 20
  %173 = load float, ptr %172, align 4, !tbaa !38
  %174 = fmul float %173, 1.500000e+00
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #12
  %175 = load ptr, ptr %129, align 16, !tbaa !37
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %18, ptr noundef nonnull align 16 dereferenceable(1172) %175, i16 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #12
  %176 = load ptr, ptr %129, align 16, !tbaa !37
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %19, ptr noundef nonnull align 16 dereferenceable(1172) %176, i16 noundef zeroext 1)
          to label %177 unwind label %187

177:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #12
  store i64 0, ptr %20, align 8
  call void @_ZN3JPH10BodyFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #12
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %21, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %21)
          to label %178 unwind label %189

178:                                              ; preds = %177
  %179 = getelementptr inbounds i8, ptr %0, i64 40
  %180 = load ptr, ptr %179, align 8, !tbaa !40
  %181 = invoke noundef zeroext i1 @_ZN3JPH16CharacterVirtual8SetShapeEPKNS_5ShapeEfRKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %169, ptr noundef %168, float noundef %174, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(12) %21, ptr noundef nonnull align 8 dereferenceable(8) %180)
          to label %182 unwind label %191

182:                                              ; preds = %178
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %21) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %19) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %18) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #12
  br i1 %181, label %183, label %195

183:                                              ; preds = %182
  %.v = select i1 %165, i64 128, i64 136
  %184 = getelementptr inbounds i8, ptr %0, i64 %.v
  %185 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %184)
  %186 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
  call void @_ZN3JPH16CharacterVirtual17SetInnerBodyShapeEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(372) %186, ptr noundef %185)
  br label %195

187:                                              ; preds = %160
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %194

189:                                              ; preds = %177
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %193

191:                                              ; preds = %178
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %21) #12
  br label %193

193:                                              ; preds = %191, %189
  %.pn50 = phi { ptr, i32 } [ %192, %191 ], [ %190, %189 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %19) #12
  br label %194

194:                                              ; preds = %193, %187
  %.pn50.pn = phi { ptr, i32 } [ %.pn50, %193 ], [ %188, %187 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %18) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #12
  resume { ptr, i32 } %.pn50.pn

195:                                              ; preds = %182, %183, %158
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #12
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144)) local_unnamed_addr #5 align 2

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

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

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

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

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

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

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

declare void @_ZN3JPH16CharacterVirtual20UpdateGroundVelocityEv(ptr noundef nonnull align 16 dereferenceable(372)) local_unnamed_addr #11

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH13CharacterBase15IsSlopeTooSteepENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144), double, double) local_unnamed_addr #5 align 2

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

declare noundef zeroext i1 @_ZN3JPH16CharacterVirtual8SetShapeEPKNS_5ShapeEfRKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), ptr noundef, float noundef, 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(83) ptr @_ZNK3JPH13PhysicsSystem18GetPhysicsSettingsEv(ptr noundef nonnull align 16 dereferenceable(1172)) local_unnamed_addr #5 align 2

declare void @_ZN3JPH16CharacterVirtual17SetInnerBodyShapeEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(372), ptr noundef) local_unnamed_addr #11

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #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 = { 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 #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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 368}
!15 = !{!"_ZTS20CharacterVirtualTest", !16, i64 0, !34, i64 328, !33, i64 336, !31, i64 352, !6, i64 368, !35, i64 376}
!16 = !{!"_ZTS17CharacterBaseTest", !17, i64 0, !24, i64 112, !24, i64 120, !24, i64 128, !24, i64 136, !25, i64 144, !12, i64 168, !26, i64 172, !26, i64 176, !28, i64 184, !12, i64 216, !31, i64 224, !26, i64 240, !26, i64 244, !26, i64 248, !26, i64 252, !26, i64 256, !12, i64 260, !26, i64 264, !32, i64 272, !33, i64 280, !33, i64 288, !31, i64 304, !6, i64 320, !6, i64 321, !6, i64 322, !6, i64 323}
!17 = !{!"_ZTS4Test", !18, i64 8, !18, i64 16, !18, i64 24, !18, i64 32, !18, i64 40, !6, i64 48, !19, i64 56}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !20, i64 0}
!20 = !{!"_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", !18, i64 0, !21, i64 8, !22, i64 16, !21, i64 24, !23, i64 32, !18, i64 48}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !18, i64 0}
!23 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !12, i64 0, !21, i64 8}
!24 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !18, i64 0}
!25 = !{!"_ZTSN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEE", !21, i64 0, !21, i64 8, !18, i64 16}
!26 = !{!"_ZTSN3JPH6BodyIDE", !27, i64 0}
!27 = !{!"int", !7, i64 0}
!28 = !{!"_ZTSN3JPH35CharacterVsCharacterCollisionSimpleE", !29, i64 0, !30, i64 8}
!29 = !{!"_ZTSN3JPH29CharacterVsCharacterCollisionE"}
!30 = !{!"_ZTSN3JPH5ArrayIPNS_16CharacterVirtualENS_12STLAllocatorIS2_EEEE", !21, i64 0, !21, i64 8, !18, i64 16}
!31 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!32 = !{!"_ZTSN3JPH3RefINS_9CharacterEEE", !18, i64 0}
!33 = !{!"_ZTSN3JPH3RefINS_16CharacterVirtualEEE", !18, i64 0}
!34 = !{!"_ZTSN3JPH24CharacterContactListenerE"}
!35 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual10ContactKeyENS_12STLAllocatorIS2_EEEE", !21, i64 0, !21, i64 8, !18, i64 16}
!36 = !{i64 0, i64 16, !13}
!37 = !{!17, !18, i64 16}
!38 = !{!39, !12, i64 20}
!39 = !{!"_ZTSN3JPH15PhysicsSettingsE", !27, i64 0, !27, i64 4, !27, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !27, i64 56, !27, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !6, i64 76, !6, i64 77, !6, i64 78, !6, i64 79, !6, i64 80, !6, i64 81, !6, i64 82}
!40 = !{!17, !18, i64 40}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass