; 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::Color" = type { %union.anon.39 }
%union.anon.39 = type { i32 }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.12 }
%union.anon.12 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"struct.JPH::CharacterVirtual::ExtendedUpdateSettings" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, %"class.JPH::Vec3" }
%"class.JPH::DefaultBroadPhaseLayerFilter" = type <{ %"class.JPH::BroadPhaseLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::DefaultObjectLayerFilter" = type <{ %"class.JPH::ObjectLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::ObjectLayerFilter" = type { ptr }
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::BodyID" = type { i32 }
%"struct.JPH::AssertLastParam" = type { i8 }
%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] }>
%"class.Test::PreUpdateParams" = type { float, [12 x i8], %struct.CameraState }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%"struct.JPH::CharacterVirtual::Contact" = type <{ %"class.JPH::CharacterVirtual::ContactKey", [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, i8, i8, [6 x i8], ptr, i64, ptr, i8, i8, i8, [5 x i8] }>
%"class.JPH::CharacterVirtual::ContactKey" = type { %"class.JPH::BodyID", %"class.JPH::CharacterID", %"class.JPH::SubShapeID" }
%"class.JPH::CharacterID" = type { i32 }
%"class.JPH::SubShapeID" = type { i32 }

@_ZN3JPH5Color5sGreyE = external global %"class.JPH::Color", align 4
@_ZN20CharacterVirtualTest19sEnableStickToFloorE = external dso_local global i8, align 1
@_ZN20CharacterVirtualTest17sEnableWalkStairsE = external dso_local global i8, align 1
@.str.4 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1

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

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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20CharacterVirtualTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 16 dereferenceable(400) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.JPH::Mat44", align 16
  %6 = alloca %"class.JPH::Mat44", align 16
  %7 = alloca %"class.JPH::Color", align 4
  %8 = alloca %"class.JPH::Color", align 4
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", 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::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %23 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.JPH::BodyFilter", align 8
  %27 = alloca %"class.JPH::ShapeFilter", align 8
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca %"struct.JPH::AssertLastParam", align 1
  %34 = alloca %"struct.JPH::AssertLastParam", align 1
  %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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %3, align 8
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN17CharacterBaseTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 16 dereferenceable(324) %40, ptr noundef nonnull align 16 dereferenceable(80) %41)
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #10
  %42 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %43 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %42)
  call void @_ZNK3JPH16CharacterVirtual24GetCenterOfMassTransformEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %5, ptr noundef nonnull align 16 dereferenceable(372) %43)
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #10
  %44 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %45 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44)
  call void @_ZNK3JPH16CharacterVirtual17GetWorldTransformEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %6, ptr noundef nonnull align 16 dereferenceable(372) %45)
  %46 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %47 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %46)
  %48 = call noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144) %47)
  %49 = call noundef ptr @_ZNK3JPH14DecoratedShape13GetInnerShapeEv(ptr noundef nonnull align 8 dereferenceable(40) %48)
  %50 = call noundef zeroext i8 @_ZNK3JPH5Shape10GetSubTypeEv(ptr noundef nonnull align 8 dereferenceable(26) %49)
  %51 = icmp eq i8 %50, 3
  br i1 %51, label %52, label %80

52:                                               ; preds = %2
  %53 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %54 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
  %55 = call noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144) %54)
  %56 = getelementptr inbounds %class.CharacterBaseTest, ptr %40, i32 0, i32 1
  %57 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %56)
  %58 = icmp eq ptr %55, %57
  br i1 %58, label %59, label %69

59:                                               ; preds = %52
  %60 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 4
  %61 = load ptr, ptr %60, align 16, !tbaa !9
  %62 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %63 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %62)
  %64 = call noundef float @_ZNK3JPH16CharacterVirtual19GetCharacterPaddingEv(ptr noundef nonnull align 16 dereferenceable(372) %63)
  %65 = fadd float 0x3FD3333340000000, %64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 @_ZN3JPH5Color5sGreyE, i64 4, i1 false), !tbaa.struct !18
  %66 = getelementptr inbounds %"class.JPH::Color", ptr %7, i32 0, i32 0
  %67 = getelementptr inbounds %union.anon.39, ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 4
  call void @_ZN3JPH13DebugRenderer11DrawCapsuleERKNS_5Mat44EffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %61, ptr noundef nonnull align 16 dereferenceable(64) %5, float noundef 0x3FE59999A0000000, float noundef %65, i32 %68, i32 noundef 1, i32 noundef 1)
  br label %79

69:                                               ; preds = %52
  %70 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 4
  %71 = load ptr, ptr %70, align 16, !tbaa !9
  %72 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %73 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
  %74 = call noundef float @_ZNK3JPH16CharacterVirtual19GetCharacterPaddingEv(ptr noundef nonnull align 16 dereferenceable(372) %73)
  %75 = fadd float 0x3FD3333340000000, %74
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 @_ZN3JPH5Color5sGreyE, i64 4, i1 false), !tbaa.struct !18
  %76 = getelementptr inbounds %"class.JPH::Color", ptr %8, i32 0, i32 0
  %77 = getelementptr inbounds %union.anon.39, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 4
  call void @_ZN3JPH13DebugRenderer11DrawCapsuleERKNS_5Mat44EffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %71, ptr noundef nonnull align 16 dereferenceable(64) %5, float noundef 0x3FD99999A0000000, float noundef %75, i32 %78, i32 noundef 1, i32 noundef 1)
  br label %79

79:                                               ; preds = %69, %59
  br label %80

80:                                               ; preds = %79, %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #10
  %81 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %82 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %81)
  %83 = call { double, double } @_ZNK3JPH16CharacterVirtual11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(372) %82)
  %84 = getelementptr inbounds %"class.JPH::Vec3", ptr %9, i32 0, i32 0
  %85 = getelementptr inbounds %union.anon, ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 0
  %87 = extractvalue { double, double } %83, 0
  store double %87, ptr %86, align 16
  %88 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 1
  %89 = extractvalue { double, double } %83, 1
  store double %89, ptr %88, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #10
  call void @_ZN3JPH16CharacterVirtual22ExtendedUpdateSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %10)
  %90 = load i8, ptr @_ZN20CharacterVirtualTest19sEnableStickToFloorE, align 1, !tbaa !20, !range !21, !noundef !22
  %91 = trunc i8 %90 to i1
  br i1 %91, label %101, label %92

92:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #10
  %93 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %94 = getelementptr inbounds %"class.JPH::Vec3", ptr %11, i32 0, i32 0
  %95 = getelementptr inbounds %union.anon, ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds { double, double }, ptr %95, i32 0, i32 0
  %97 = extractvalue { double, double } %93, 0
  store double %97, ptr %96, align 16
  %98 = getelementptr inbounds { double, double }, ptr %95, i32 0, i32 1
  %99 = extractvalue { double, double } %93, 1
  store double %99, ptr %98, align 8
  %100 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %10, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %100, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #10
  br label %128

101:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #10
  %102 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %103 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %102)
  %104 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %103)
  %105 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %106 = getelementptr inbounds %union.anon, ptr %105, i32 0, i32 0
  %107 = getelementptr inbounds { double, double }, ptr %106, i32 0, i32 0
  %108 = extractvalue { double, double } %104, 0
  store double %108, ptr %107, align 16
  %109 = getelementptr inbounds { double, double }, ptr %106, i32 0, i32 1
  %110 = extractvalue { double, double } %104, 1
  store double %110, ptr %109, align 8
  %111 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
  %112 = getelementptr inbounds %"class.JPH::Vec3", ptr %13, i32 0, i32 0
  %113 = getelementptr inbounds %union.anon, ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds { double, double }, ptr %113, i32 0, i32 0
  %115 = extractvalue { double, double } %111, 0
  store double %115, ptr %114, align 16
  %116 = getelementptr inbounds { double, double }, ptr %113, i32 0, i32 1
  %117 = extractvalue { double, double } %111, 1
  store double %117, ptr %116, align 8
  %118 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %10, i32 0, i32 0
  %119 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %118)
  %120 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef %119)
  %121 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %122 = getelementptr inbounds %union.anon, ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds { double, double }, ptr %122, i32 0, i32 0
  %124 = extractvalue { double, double } %120, 0
  store double %124, ptr %123, align 16
  %125 = getelementptr inbounds { double, double }, ptr %122, i32 0, i32 1
  %126 = extractvalue { double, double } %120, 1
  store double %126, ptr %125, align 8
  %127 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %10, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %127, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  br label %128

128:                                              ; preds = %101, %92
  %129 = load i8, ptr @_ZN20CharacterVirtualTest17sEnableWalkStairsE, align 1, !tbaa !20, !range !21, !noundef !22
  %130 = trunc i8 %129 to i1
  br i1 %130, label %140, label %131

131:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #10
  %132 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %133 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %134 = getelementptr inbounds %union.anon, ptr %133, i32 0, i32 0
  %135 = getelementptr inbounds { double, double }, ptr %134, i32 0, i32 0
  %136 = extractvalue { double, double } %132, 0
  store double %136, ptr %135, align 16
  %137 = getelementptr inbounds { double, double }, ptr %134, i32 0, i32 1
  %138 = extractvalue { double, double } %132, 1
  store double %138, ptr %137, align 8
  %139 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %10, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %139, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  br label %160

140:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #10
  %141 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %142 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %141)
  %143 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %142)
  %144 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %145 = getelementptr inbounds %union.anon, ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds { double, double }, ptr %145, i32 0, i32 0
  %147 = extractvalue { double, double } %143, 0
  store double %147, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %145, i32 0, i32 1
  %149 = extractvalue { double, double } %143, 1
  store double %149, ptr %148, align 8
  %150 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %10, i32 0, i32 1
  %151 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %150)
  %152 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %151)
  %153 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %154 = getelementptr inbounds %union.anon, ptr %153, i32 0, i32 0
  %155 = getelementptr inbounds { double, double }, ptr %154, i32 0, i32 0
  %156 = extractvalue { double, double } %152, 0
  store double %156, ptr %155, align 16
  %157 = getelementptr inbounds { double, double }, ptr %154, i32 0, i32 1
  %158 = extractvalue { double, double } %152, 1
  store double %158, ptr %157, align 8
  %159 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %10, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %159, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #10
  br label %160

160:                                              ; preds = %140, %131
  %161 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %162 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %161)
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %"class.Test::PreUpdateParams", ptr %163, i32 0, i32 0
  %165 = load float, ptr %164, align 16, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #10
  %166 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %167 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %166)
  %168 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %167)
  %169 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %170 = getelementptr inbounds %union.anon, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds { double, double }, ptr %170, i32 0, i32 0
  %172 = extractvalue { double, double } %168, 0
  store double %172, ptr %171, align 16
  %173 = getelementptr inbounds { double, double }, ptr %170, i32 0, i32 1
  %174 = extractvalue { double, double } %168, 1
  store double %174, ptr %173, align 8
  %175 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %20)
  %176 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %177 = getelementptr inbounds %union.anon, ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds { double, double }, ptr %177, i32 0, i32 0
  %179 = extractvalue { double, double } %175, 0
  store double %179, ptr %178, align 16
  %180 = getelementptr inbounds { double, double }, ptr %177, i32 0, i32 1
  %181 = extractvalue { double, double } %175, 1
  store double %181, ptr %180, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #10
  %182 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 2
  %183 = load ptr, ptr %182, align 16, !tbaa !28
  %184 = call { double, double } @_ZNK3JPH13PhysicsSystem10GetGravityEv(ptr noundef nonnull align 16 dereferenceable(1172) %183)
  %185 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %186 = getelementptr inbounds %union.anon, ptr %185, i32 0, i32 0
  %187 = getelementptr inbounds { double, double }, ptr %186, i32 0, i32 0
  %188 = extractvalue { double, double } %184, 0
  store double %188, ptr %187, align 16
  %189 = getelementptr inbounds { double, double }, ptr %186, i32 0, i32 1
  %190 = extractvalue { double, double } %184, 1
  store double %190, ptr %189, align 8
  %191 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %21)
  %192 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef %191)
  %193 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, 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
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #10
  %199 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 2
  %200 = load ptr, ptr %199, align 16, !tbaa !28
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %22, ptr noundef nonnull align 16 dereferenceable(1172) %200, i16 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #10
  %201 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 2
  %202 = load ptr, ptr %201, align 16, !tbaa !28
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %23, ptr noundef nonnull align 16 dereferenceable(1172) %202, i16 noundef zeroext 1)
          to label %203 unwind label %224

203:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 8, i1 false)
  call void @_ZN3JPH10BodyFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #10
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %27)
          to label %204 unwind label %228

204:                                              ; preds = %203
  %205 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 5
  %206 = load ptr, ptr %205, align 8, !tbaa !29
  %207 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %208 = load double, ptr %207, align 16
  %209 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %210 = load double, ptr %209, align 8
  invoke void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %162, float noundef %165, double %208, double %210, ptr noundef nonnull align 16 dereferenceable(64) %10, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(12) %27, ptr noundef nonnull align 8 dereferenceable(8) %206)
          to label %211 unwind label %232

211:                                              ; preds = %204
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %27) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #10
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %23) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #10
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %22) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  store i32 0, ptr %28, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %212 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %213 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %212)
  %214 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3JPH16CharacterVirtual17GetActiveContactsEv(ptr noundef nonnull align 16 dereferenceable(372) %213)
  store ptr %214, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  %215 = load ptr, ptr %29, align 8, !tbaa !5
  %216 = call noundef ptr @_ZNK3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %215)
  store ptr %216, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  %217 = load ptr, ptr %29, align 8, !tbaa !5
  %218 = call noundef ptr @_ZNK3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %217)
  store ptr %218, ptr %31, align 8, !tbaa !5
  br label %219

219:                                              ; preds = %264, %211
  %220 = load ptr, ptr %30, align 8, !tbaa !5
  %221 = load ptr, ptr %31, align 8, !tbaa !5
  %222 = icmp ne ptr %220, %221
  br i1 %222, label %238, label %223

223:                                              ; preds = %219
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  br label %267

224:                                              ; preds = %160
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %24, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %25, align 4
  br label %237

228:                                              ; preds = %203
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %24, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %25, align 4
  br label %236

232:                                              ; preds = %204
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %24, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %25, align 4
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %27) #10
  br label %236

236:                                              ; preds = %232, %228
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #10
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %23) #10
  br label %237

237:                                              ; preds = %236, %224
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #10
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %22) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #10
  br label %316

238:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  %239 = load ptr, ptr %30, align 8, !tbaa !5
  store ptr %239, ptr %32, align 8, !tbaa !5
  %240 = load ptr, ptr %32, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %240, i32 0, i32 14
  %242 = load i8, ptr %241, align 8, !tbaa !32, !range !21, !noundef !22
  %243 = trunc i8 %242 to i1
  br i1 %243, label %244, label %263

244:                                              ; preds = %238
  br label %245

245:                                              ; preds = %244
  %246 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 5
  %247 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual10ContactKeyENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %246)
  %248 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 5
  %249 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual10ContactKeyENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %248)
  %250 = load ptr, ptr %32, align 8, !tbaa !5
  %251 = call noundef ptr @_ZSt4findIPN3JPH16CharacterVirtual10ContactKeyENS1_7ContactEET_S5_S5_RKT0_(ptr noundef %247, ptr noundef %249, ptr noundef nonnull align 16 dereferenceable(123) %250)
  %252 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 5
  %253 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual10ContactKeyENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %252)
  %254 = icmp ne ptr %251, %253
  br i1 %254, label %258, label %255

255:                                              ; preds = %245
  %256 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 102)
  br i1 %256, label %257, label %258

257:                                              ; preds = %255
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !39
  br label %258

258:                                              ; preds = %257, %255, %245
  br label %259

259:                                              ; preds = %258
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr %28, align 4, !tbaa !30
  %262 = add i32 %261, 1
  store i32 %262, ptr %28, align 4, !tbaa !30
  br label %263

263:                                              ; preds = %260, %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %264

264:                                              ; preds = %263
  %265 = load ptr, ptr %30, align 8, !tbaa !5
  %266 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %265, i32 1
  store ptr %266, ptr %30, align 8, !tbaa !5
  br label %219

267:                                              ; preds = %223
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %28, align 4, !tbaa !30
  %270 = zext i32 %269 to i64
  %271 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 5
  %272 = call noundef i64 @_ZNK3JPH5ArrayINS_16CharacterVirtual10ContactKeyENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %271)
  %273 = icmp eq i64 %270, %272
  br i1 %273, label %277, label %274

274:                                              ; preds = %268
  %275 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.6, ptr noundef @.str.5, i32 noundef 105)
  br i1 %275, label %276, label %277

276:                                              ; preds = %274
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !40
  br label %277

277:                                              ; preds = %276, %274, %268
  br label %278

278:                                              ; preds = %277
  br label %279

279:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #10
  %280 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %281 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %280)
  %282 = call { double, double } @_ZNK3JPH16CharacterVirtual11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(372) %281)
  %283 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %284 = getelementptr inbounds %union.anon, ptr %283, i32 0, i32 0
  %285 = getelementptr inbounds { double, double }, ptr %284, i32 0, i32 0
  %286 = extractvalue { double, double } %282, 0
  store double %286, ptr %285, align 16
  %287 = getelementptr inbounds { double, double }, ptr %284, i32 0, i32 1
  %288 = extractvalue { double, double } %282, 1
  store double %288, ptr %287, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !23
  %289 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %290 = load double, ptr %289, align 16
  %291 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %292 = load double, ptr %291, align 8
  %293 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %35, double %290, double %292)
  %294 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i32 0, i32 0
  %295 = getelementptr inbounds %union.anon, ptr %294, i32 0, i32 0
  %296 = getelementptr inbounds { double, double }, ptr %295, i32 0, i32 0
  %297 = extractvalue { double, double } %293, 0
  store double %297, ptr %296, align 16
  %298 = getelementptr inbounds { double, double }, ptr %295, i32 0, i32 1
  %299 = extractvalue { double, double } %293, 1
  store double %299, ptr %298, align 8
  %300 = load ptr, ptr %4, align 8, !tbaa !5
  %301 = getelementptr inbounds %"class.Test::PreUpdateParams", ptr %300, i32 0, i32 0
  %302 = load float, ptr %301, align 16, !tbaa !24
  %303 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %37, float noundef %302)
  %304 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %305 = getelementptr inbounds %union.anon, ptr %304, i32 0, i32 0
  %306 = getelementptr inbounds { double, double }, ptr %305, i32 0, i32 0
  %307 = extractvalue { double, double } %303, 0
  store double %307, ptr %306, align 16
  %308 = getelementptr inbounds { double, double }, ptr %305, i32 0, i32 1
  %309 = extractvalue { double, double } %303, 1
  store double %309, ptr %308, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #10
  %310 = getelementptr inbounds %class.CharacterVirtualTest, ptr %40, i32 0, i32 2
  %311 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %310)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !23
  %312 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %313 = load double, ptr %312, align 16
  %314 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %315 = load double, ptr %314, align 8
  call void @_ZN17CharacterBaseTest18DrawCharacterStateEPKN3JPH13CharacterBaseERKNS0_5Mat44ENS0_4Vec3E(ptr noundef nonnull align 16 dereferenceable(324) %40, ptr noundef %311, ptr noundef nonnull align 16 dereferenceable(64) %6, double %313, double %315)
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #10
  ret void

316:                                              ; preds = %237
  %317 = load ptr, ptr %24, align 8
  %318 = load i32, ptr %25, align 4
  %319 = insertvalue { ptr, i32 } poison, ptr %317, 0
  %320 = insertvalue { ptr, i32 } %319, i32 %318, 1
  resume { ptr, i32 } %320
}

declare void @_ZN17CharacterBaseTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 16 dereferenceable(324), ptr noundef nonnull align 16 dereferenceable(80)) unnamed_addr #6

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH14DecoratedShape13GetInnerShapeEv(ptr noundef nonnull align 8 dereferenceable(40)) #5 align 2

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

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

declare void @_ZN3JPH13DebugRenderer11DrawCapsuleERKNS_5Mat44EffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 16 dereferenceable(64), float noundef, float noundef, i32, i32 noundef, i32 noundef) #6

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4findIPN3JPH16CharacterVirtual10ContactKeyENS1_7ContactEET_S5_S5_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 16 dereferenceable(123)) #8

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

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

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

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

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

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

declare void @_ZN17CharacterBaseTest18DrawCharacterStateEPKN3JPH13CharacterBaseERKNS0_5Mat44ENS0_4Vec3E(ptr noundef nonnull align 16 dereferenceable(324), ptr noundef, ptr noundef nonnull align 16 dereferenceable(64), double, double) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { 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 #10 = { 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, !6, i64 32}
!10 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !12, i64 56}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !13, i64 0}
!13 = !{!"_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, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !6, i64 48}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{i64 0, i64 4, !19}
!19 = !{!7, !7, i64 0}
!20 = !{!11, !11, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{i64 0, i64 16, !19}
!24 = !{!25, !17, i64 0}
!25 = !{!"_ZTSN4Test15PreUpdateParamsE", !17, i64 0, !26, i64 16}
!26 = !{!"_ZTS11CameraState", !27, i64 0, !27, i64 16, !27, i64 32, !17, i64 48}
!27 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!28 = !{!10, !6, i64 16}
!29 = !{!10, !6, i64 40}
!30 = !{!31, !31, i64 0}
!31 = !{!"int", !7, i64 0}
!32 = !{!33, !11, i64 120}
!33 = !{!"_ZTSN3JPH16CharacterVirtual7ContactE", !34, i64 0, !27, i64 16, !27, i64 32, !27, i64 48, !27, i64 64, !17, i64 80, !17, i64 84, !38, i64 88, !11, i64 89, !6, i64 96, !14, i64 104, !6, i64 112, !11, i64 120, !11, i64 121, !11, i64 122}
!34 = !{!"_ZTSN3JPH16CharacterVirtual10ContactKeyE", !35, i64 0, !36, i64 4, !37, i64 8}
!35 = !{!"_ZTSN3JPH6BodyIDE", !31, i64 0}
!36 = !{!"_ZTSN3JPH11CharacterIDE", !31, i64 0}
!37 = !{!"_ZTSN3JPH10SubShapeIDE", !31, i64 0}
!38 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!39 = !{i64 2160320043}
!40 = !{i64 2160320428}


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

@_ZN3JPH5Color5sGreyE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN20CharacterVirtualTest19sEnableStickToFloorE = external dso_local local_unnamed_addr global i8, align 1
@_ZN20CharacterVirtualTest17sEnableWalkStairsE = external dso_local local_unnamed_addr global i8, align 1
@.str.4 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1

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

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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() local_unnamed_addr #2 align 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20CharacterVirtualTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 16 dereferenceable(400) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::Mat44", align 16
  %4 = alloca %"class.JPH::Mat44", align 16
  %5 = alloca %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %13 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %14 = alloca %"class.JPH::BodyFilter", align 8
  %15 = alloca %"class.JPH::ShapeFilter", align 8
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  tail call void @_ZN17CharacterBaseTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 16 dereferenceable(324) %0, ptr noundef nonnull align 16 dereferenceable(80) %1)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #9
  %18 = getelementptr inbounds i8, ptr %0, i64 336
  %19 = tail call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @_ZNK3JPH16CharacterVirtual24GetCenterOfMassTransformEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %3, ptr noundef nonnull align 16 dereferenceable(372) %19)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #9
  %20 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @_ZNK3JPH16CharacterVirtual17GetWorldTransformEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %4, ptr noundef nonnull align 16 dereferenceable(372) %20)
  %21 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %22 = call noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144) %21)
  %23 = call noundef ptr @_ZNK3JPH14DecoratedShape13GetInnerShapeEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  %24 = call noundef zeroext i8 @_ZNK3JPH5Shape10GetSubTypeEv(ptr noundef nonnull align 8 dereferenceable(26) %23)
  %25 = icmp eq i8 %24, 3
  br i1 %25, label %.sink.split, label %36

.sink.split:                                      ; preds = %2
  %26 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %27 = call noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144) %26)
  %28 = getelementptr inbounds i8, ptr %0, i64 112
  %29 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %28)
  %30 = icmp eq ptr %27, %29
  %31 = getelementptr inbounds i8, ptr %0, i64 32
  %32 = load ptr, ptr %31, align 16, !tbaa !5
  %33 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %34 = call noundef float @_ZNK3JPH16CharacterVirtual19GetCharacterPaddingEv(ptr noundef nonnull align 16 dereferenceable(372) %33)
  %35 = fadd float %34, 0x3FD3333340000000
  %.sroa.026.0.copyload = load i32, ptr @_ZN3JPH5Color5sGreyE, align 4, !tbaa !17
  %. = select i1 %30, float 0x3FE59999A0000000, float 0x3FD99999A0000000
  call void @_ZN3JPH13DebugRenderer11DrawCapsuleERKNS_5Mat44EffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %32, ptr noundef nonnull align 16 dereferenceable(64) %3, float noundef %., float noundef %35, i32 %.sroa.026.0.copyload, i32 noundef 1, i32 noundef 1)
  br label %36

36:                                               ; preds = %.sink.split, %2
  %37 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %38 = call { double, double } @_ZNK3JPH16CharacterVirtual11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(372) %37)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #9
  call void @_ZN3JPH16CharacterVirtual22ExtendedUpdateSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %5)
  %39 = load i8, ptr @_ZN20CharacterVirtualTest19sEnableStickToFloorE, align 1, !tbaa !18, !range !19, !noundef !20
  %40 = trunc nuw i8 %39 to i1
  br i1 %40, label %43, label %41

41:                                               ; preds = %36
  %42 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  br label %55

43:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  %44 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %45 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %44)
  %46 = extractvalue { double, double } %45, 0
  store double %46, ptr %7, align 16
  %47 = getelementptr inbounds i8, ptr %7, i64 8
  %48 = extractvalue { double, double } %45, 1
  store double %48, ptr %47, align 8
  %49 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %7)
  %50 = extractvalue { double, double } %49, 0
  store double %50, ptr %6, align 16
  %51 = getelementptr inbounds i8, ptr %6, i64 8
  %52 = extractvalue { double, double } %49, 1
  store double %52, ptr %51, align 8
  %53 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %5)
  %54 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef %53)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  br label %55

55:                                               ; preds = %43, %41
  %.pn44 = phi { double, double } [ %54, %43 ], [ %42, %41 ]
  %.sink = extractvalue { double, double } %.pn44, 1
  %.sink42 = extractvalue { double, double } %.pn44, 0
  store double %.sink42, ptr %5, align 16
  %56 = getelementptr inbounds i8, ptr %5, i64 8
  store double %.sink, ptr %56, align 8
  %57 = load i8, ptr @_ZN20CharacterVirtualTest17sEnableWalkStairsE, align 1, !tbaa !18, !range !19, !noundef !20
  %58 = trunc nuw i8 %57 to i1
  br i1 %58, label %63, label %59

59:                                               ; preds = %55
  %60 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %61 = extractvalue { double, double } %60, 0
  %62 = getelementptr inbounds i8, ptr %5, i64 16
  store double %61, ptr %62, align 16
  br label %73

63:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  %64 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %65 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %64)
  %66 = extractvalue { double, double } %65, 0
  store double %66, ptr %8, align 16
  %67 = getelementptr inbounds i8, ptr %8, i64 8
  %68 = extractvalue { double, double } %65, 1
  store double %68, ptr %67, align 8
  %69 = getelementptr inbounds i8, ptr %5, i64 16
  %70 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %69)
  %71 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef %70)
  %72 = extractvalue { double, double } %71, 0
  store double %72, ptr %69, align 16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  br label %73

73:                                               ; preds = %63, %59
  %.pn46 = phi { double, double } [ %71, %63 ], [ %60, %59 ]
  %.sink43 = extractvalue { double, double } %.pn46, 1
  %74 = getelementptr inbounds i8, ptr %5, i64 24
  store double %.sink43, ptr %74, align 8
  %75 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %76 = load float, ptr %1, align 16, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  %77 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %78 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %77)
  %79 = extractvalue { double, double } %78, 0
  store double %79, ptr %10, align 16
  %80 = getelementptr inbounds i8, ptr %10, i64 8
  %81 = extractvalue { double, double } %78, 1
  store double %81, ptr %80, align 8
  %82 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %83 = extractvalue { double, double } %82, 0
  store double %83, ptr %9, align 16
  %84 = getelementptr inbounds i8, ptr %9, i64 8
  %85 = extractvalue { double, double } %82, 1
  store double %85, ptr %84, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  %86 = getelementptr inbounds i8, ptr %0, i64 16
  %87 = load ptr, ptr %86, align 16, !tbaa !25
  %88 = call { double, double } @_ZNK3JPH13PhysicsSystem10GetGravityEv(ptr noundef nonnull align 16 dereferenceable(1172) %87)
  %89 = extractvalue { double, double } %88, 0
  store double %89, ptr %11, align 16
  %90 = getelementptr inbounds i8, ptr %11, i64 8
  %91 = extractvalue { double, double } %88, 1
  store double %91, ptr %90, align 8
  %92 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %93 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef %92)
  %94 = extractvalue { double, double } %93, 0
  %95 = extractvalue { double, double } %93, 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #9
  %96 = load ptr, ptr %86, align 16, !tbaa !25
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %12, ptr noundef nonnull align 16 dereferenceable(1172) %96, i16 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #9
  %97 = load ptr, ptr %86, align 16, !tbaa !25
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %13, ptr noundef nonnull align 16 dereferenceable(1172) %97, i16 noundef zeroext 1)
          to label %98 unwind label %112

98:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  store i64 0, ptr %14, align 8
  call void @_ZN3JPH10BodyFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15)
          to label %99 unwind label %114

99:                                               ; preds = %98
  %100 = getelementptr inbounds i8, ptr %0, i64 40
  %101 = load ptr, ptr %100, align 8, !tbaa !26
  invoke void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %75, float noundef %76, double %94, double %95, ptr noundef nonnull align 16 dereferenceable(64) %5, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull align 8 dereferenceable(8) %101)
          to label %102 unwind label %116

102:                                              ; preds = %99
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  %103 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3JPH16CharacterVirtual17GetActiveContactsEv(ptr noundef nonnull align 16 dereferenceable(372) %103)
  %105 = call noundef ptr @_ZNK3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %104)
  %106 = call noundef ptr @_ZNK3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %104)
  %.not39 = icmp eq ptr %105, %106
  br i1 %.not39, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %102
  %107 = getelementptr inbounds i8, ptr %0, i64 376
  br label %120

._crit_edge.loopexit:                             ; preds = %134
  %108 = zext i32 %.134 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %102
  %.033.lcssa = phi i64 [ 0, %102 ], [ %108, %._crit_edge.loopexit ]
  %109 = getelementptr inbounds i8, ptr %0, i64 376
  %110 = call noundef i64 @_ZNK3JPH5ArrayINS_16CharacterVirtual10ContactKeyENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %109)
  %111 = icmp eq i64 %110, %.033.lcssa
  br i1 %111, label %139, label %136

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

114:                                              ; preds = %98
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %118

116:                                              ; preds = %99
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15) #9
  br label %118

118:                                              ; preds = %116, %114
  %.pn = phi { ptr, i32 } [ %117, %116 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %13) #9
  br label %119

119:                                              ; preds = %118, %112
  %.pn.pn = phi { ptr, i32 } [ %.pn, %118 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn.pn

120:                                              ; preds = %.lr.ph, %134
  %.03341 = phi i32 [ 0, %.lr.ph ], [ %.134, %134 ]
  %.03540 = phi ptr [ %105, %.lr.ph ], [ %135, %134 ]
  %121 = getelementptr inbounds i8, ptr %.03540, i64 120
  %122 = load i8, ptr %121, align 8, !tbaa !27, !range !19, !noundef !20
  %123 = trunc nuw i8 %122 to i1
  br i1 %123, label %124, label %134

124:                                              ; preds = %120
  %125 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual10ContactKeyENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %107)
  %126 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual10ContactKeyENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %107)
  %127 = call noundef ptr @_ZSt4findIPN3JPH16CharacterVirtual10ContactKeyENS1_7ContactEET_S5_S5_RKT0_(ptr noundef %125, ptr noundef %126, ptr noundef nonnull align 16 dereferenceable(123) %.03540)
  %128 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual10ContactKeyENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %107)
  %.not38 = icmp eq ptr %127, %128
  br i1 %.not38, label %129, label %132

129:                                              ; preds = %124
  %130 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 102)
  br i1 %130, label %131, label %132

131:                                              ; preds = %129
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !35
  br label %132

132:                                              ; preds = %131, %129, %124
  %133 = add i32 %.03341, 1
  br label %134

134:                                              ; preds = %132, %120
  %.134 = phi i32 [ %133, %132 ], [ %.03341, %120 ]
  %135 = getelementptr inbounds i8, ptr %.03540, i64 128
  %.not = icmp eq ptr %135, %106
  br i1 %.not, label %._crit_edge.loopexit, label %120

136:                                              ; preds = %._crit_edge
  %137 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.5, i32 noundef 105)
  br i1 %137, label %138, label %139

138:                                              ; preds = %136
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !36
  br label %139

139:                                              ; preds = %138, %136, %._crit_edge
  %140 = extractvalue { double, double } %38, 1
  %141 = extractvalue { double, double } %38, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #9
  %142 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %143 = call { double, double } @_ZNK3JPH16CharacterVirtual11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(372) %142)
  %144 = extractvalue { double, double } %143, 0
  store double %144, ptr %16, align 16
  %145 = getelementptr inbounds i8, ptr %16, i64 8
  %146 = extractvalue { double, double } %143, 1
  store double %146, ptr %145, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #9
  %147 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %141, double %140)
  %148 = extractvalue { double, double } %147, 0
  store double %148, ptr %17, align 16
  %149 = getelementptr inbounds i8, ptr %17, i64 8
  %150 = extractvalue { double, double } %147, 1
  store double %150, ptr %149, align 8
  %151 = load float, ptr %1, align 16, !tbaa !21
  %152 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %151)
  %153 = extractvalue { double, double } %152, 0
  %154 = extractvalue { double, double } %152, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  %155 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @_ZN17CharacterBaseTest18DrawCharacterStateEPKN3JPH13CharacterBaseERKNS0_5Mat44ENS0_4Vec3E(ptr noundef nonnull align 16 dereferenceable(324) %0, ptr noundef %155, ptr noundef nonnull align 16 dereferenceable(64) %4, double %153, double %154)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #9
  ret void
}

declare void @_ZN17CharacterBaseTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 16 dereferenceable(324), ptr noundef nonnull align 16 dereferenceable(80)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH16CharacterVirtual24GetCenterOfMassTransformEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(372)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH16CharacterVirtual17GetWorldTransformEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(372)) local_unnamed_addr #4 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: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH14DecoratedShape13GetInnerShapeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

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

declare void @_ZN3JPH13DebugRenderer11DrawCapsuleERKNS_5Mat44EffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 16 dereferenceable(64), float noundef, float noundef, i32, i32 noundef, i32 noundef) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4findIPN3JPH16CharacterVirtual10ContactKeyENS1_7ContactEET_S5_S5_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 16 dereferenceable(123)) local_unnamed_addr #7

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

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

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

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

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

declare void @_ZN17CharacterBaseTest18DrawCharacterStateEPKN3JPH13CharacterBaseERKNS0_5Mat44ENS0_4Vec3E(ptr noundef nonnull align 16 dereferenceable(324), ptr noundef, ptr noundef nonnull align 16 dereferenceable(64), double, double) local_unnamed_addr #5

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 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 = { 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, !7, i64 32}
!6 = !{!"_ZTS4Test", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !11, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !12, i64 0}
!12 = !{!"_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", !7, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !7, i64 48}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !13, i64 8}
!16 = !{!"float", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!10, !10, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !16, i64 0}
!22 = !{!"_ZTSN4Test15PreUpdateParamsE", !16, i64 0, !23, i64 16}
!23 = !{!"_ZTS11CameraState", !24, i64 0, !24, i64 16, !24, i64 32, !16, i64 48}
!24 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!25 = !{!6, !7, i64 16}
!26 = !{!6, !7, i64 40}
!27 = !{!28, !10, i64 120}
!28 = !{!"_ZTSN3JPH16CharacterVirtual7ContactE", !29, i64 0, !24, i64 16, !24, i64 32, !24, i64 48, !24, i64 64, !16, i64 80, !16, i64 84, !34, i64 88, !10, i64 89, !7, i64 96, !13, i64 104, !7, i64 112, !10, i64 120, !10, i64 121, !10, i64 122}
!29 = !{!"_ZTSN3JPH16CharacterVirtual10ContactKeyE", !30, i64 0, !32, i64 4, !33, i64 8}
!30 = !{!"_ZTSN3JPH6BodyIDE", !31, i64 0}
!31 = !{!"int", !8, i64 0}
!32 = !{!"_ZTSN3JPH11CharacterIDE", !31, i64 0}
!33 = !{!"_ZTSN3JPH10SubShapeIDE", !31, i64 0}
!34 = !{!"_ZTSN3JPH11EMotionTypeE", !8, i64 0}
!35 = !{i64 2160320043}
!36 = !{i64 2160320428}


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