; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Character (CharacterVirtual)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::ScopeExit.48" = type <{ %class.anon.49, i8, [7 x i8] }>
%class.anon.49 = type { ptr }
%"class.JPH::CharacterVirtual" = type <{ %"class.JPH::CharacterBase", %"class.JPH::CharacterID", [4 x i8], ptr, ptr, i8, [3 x i8], float, i32, i32, float, float, float, i32, float, float, i8, [3 x i8], float, float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Array.2", i32, [4 x i8], %"class.JPH::UnorderedMap", float, i8, [3 x i8], i64, %"class.JPH::BodyID", [12 x i8] }>
%"class.JPH::CharacterBase" = type { ptr, %"class.JPH::RefTarget", ptr, %"class.JPH::RefConst", %"class.JPH::Vec3", %"class.JPH::Plane", float, i32, %"class.JPH::BodyID", %"class.JPH::SubShapeID", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::RefConst.1", i64 }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::RefConst.1" = type { ptr }
%"class.JPH::CharacterID" = type { i32 }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Array.2" = type { i64, i64, ptr }
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::BodyID" = type { i32 }
%"struct.JPH::CharacterVirtual::ExtendedUpdateSettings" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, %"class.JPH::Vec3" }

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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 } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #1 align 2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual6UpdateEfNS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), float noundef, double, double, 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 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH16CharacterVirtual13CanWalkStairsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372), double, double) #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH16CharacterVirtual10WalkStairsEfNS_4Vec3ES1_S1_S1_RKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), float noundef, double, double, double, double, double, double, ptr noundef byval(%"class.JPH::Vec3") align 16, 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 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH16CharacterVirtual12StickToFloorENS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), double, double, 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 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %0, float noundef %1, double %2, double %3, ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6 align 2 personality ptr @__gxx_personality_v0 {
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.JPH::ScopeExit.48", align 8
  %21 = alloca %class.anon.49, align 8
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca i8, align 1
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca float, align 4
  %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 float, align 4
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca float, align 4
  %48 = alloca float, align 4
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca float, align 4
  %52 = alloca %"class.JPH::Vec3", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca float, align 4
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Vec3", align 16
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca %"class.JPH::Vec3", align 16
  %60 = alloca %"class.JPH::Vec3", align 16
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = alloca %"class.JPH::Vec3", align 16
  %64 = alloca %"class.JPH::Vec3", align 16
  %65 = alloca %"class.JPH::Vec3", align 16
  %66 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %2, ptr %66, align 16
  %67 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %3, ptr %67, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store float %1, ptr %13, align 4, !tbaa !9
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  store ptr %9, ptr %19, align 8, !tbaa !5
  %68 = load ptr, ptr %12, align 8
  call void @_ZN3JPH16CharacterVirtual27StartTrackingContactChangesEv(ptr noundef nonnull align 16 dereferenceable(372) %68)
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %69 = getelementptr inbounds %class.anon.49, ptr %21, i32 0, i32 0
  store ptr %68, ptr %69, align 8, !tbaa !11
  call void @"_ZN3JPH9ScopeExitIZNS_16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS1_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0EC2EOSK_"(ptr noundef nonnull align 8 dereferenceable(9) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
  %70 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %68, i32 0, i32 24
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %70, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !13
  %71 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %72 = load double, ptr %71, align 16
  %73 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %74 = load double, ptr %73, align 8
  %75 = invoke { double, double } @_ZNK3JPH16CharacterVirtual32CancelVelocityTowardsSteepSlopesENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %68, double %72, double %74)
          to label %76 unwind label %102

76:                                               ; preds = %10
  %77 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, 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 } %75, 0
  store double %80, ptr %79, align 16
  %81 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 1
  %82 = extractvalue { double, double } %75, 1
  store double %82, ptr %81, align 8
  %83 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %68, i32 0, i32 24
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %83, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %84 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %68, i32 0, i32 22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %84, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #9
  %85 = invoke noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %68)
          to label %86 unwind label %106

86:                                               ; preds = %76
  %87 = zext i1 %85 to i8
  store i8 %87, ptr %28, align 1, !tbaa !15
  %88 = load float, ptr %13, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !13
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = load ptr, ptr %17, align 8, !tbaa !5
  %92 = load ptr, ptr %18, align 8, !tbaa !5
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %95 = load double, ptr %94, align 16
  %96 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %97 = load double, ptr %96, align 8
  invoke void @_ZN3JPH16CharacterVirtual6UpdateEfNS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %68, float noundef %88, double %95, double %97, ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull align 8 dereferenceable(12) %92, ptr noundef nonnull align 8 dereferenceable(8) %93)
          to label %98 unwind label %106

98:                                               ; preds = %86
  %99 = invoke noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %68)
          to label %100 unwind label %106

100:                                              ; preds = %98
  br i1 %99, label %101, label %110

101:                                              ; preds = %100
  store i8 0, ptr %28, align 1, !tbaa !15
  br label %110

102:                                              ; preds = %10
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %25, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  br label %447

106:                                              ; preds = %167, %113, %98, %86, %76
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %25, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %26, align 4
  br label %446

110:                                              ; preds = %101, %100
  %111 = load i8, ptr %28, align 1, !tbaa !15, !range !17, !noundef !18
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %167

113:                                              ; preds = %110
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %114, i32 0, i32 0
  %116 = invoke noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %115, float noundef 0x3D71979980000000)
          to label %117 unwind label %106

117:                                              ; preds = %113
  br i1 %116, label %167, label %118

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #9
  %119 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %68, i32 0, i32 22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !13
  %120 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %121 = load double, ptr %120, align 16
  %122 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %123 = load double, ptr %122, align 8
  %124 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %119, double %121, double %123)
          to label %125 unwind label %157

125:                                              ; preds = %118
  %126 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %127 = getelementptr inbounds %union.anon, ptr %126, i32 0, i32 0
  %128 = getelementptr inbounds { double, double }, ptr %127, i32 0, i32 0
  %129 = extractvalue { double, double } %124, 0
  store double %129, ptr %128, align 16
  %130 = getelementptr inbounds { double, double }, ptr %127, i32 0, i32 1
  %131 = extractvalue { double, double } %124, 1
  store double %131, ptr %130, align 8
  %132 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %68, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %132, i64 16, i1 false), !tbaa.struct !13
  %133 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %134 = load double, ptr %133, align 16
  %135 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %136 = load double, ptr %135, align 8
  %137 = invoke noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %134, double %136)
          to label %138 unwind label %157

138:                                              ; preds = %125
  %139 = load float, ptr %13, align 4, !tbaa !9
  %140 = fdiv float %137, %139
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  store float %140, ptr %30, align 4, !tbaa !9
  %141 = load float, ptr %30, align 4, !tbaa !9
  %142 = fcmp ole float %141, 0x3EB0C6F7A0000000
  br i1 %142, label %143, label %165

143:                                              ; preds = %138
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %144, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %145, i64 16, i1 false), !tbaa.struct !13
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = load ptr, ptr %16, align 8, !tbaa !5
  %148 = load ptr, ptr %17, align 8, !tbaa !5
  %149 = load ptr, ptr %18, align 8, !tbaa !5
  %150 = load ptr, ptr %19, align 8, !tbaa !5
  %151 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %152 = load double, ptr %151, align 16
  %153 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %154 = load double, ptr %153, align 8
  %155 = invoke noundef zeroext i1 @_ZN3JPH16CharacterVirtual12StickToFloorENS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %68, double %152, double %154, ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef nonnull align 8 dereferenceable(12) %149, ptr noundef nonnull align 8 dereferenceable(8) %150)
          to label %156 unwind label %161

156:                                              ; preds = %143
  br label %165

157:                                              ; preds = %125, %118
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %25, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  br label %166

161:                                              ; preds = %143
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %25, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %26, align 4
  br label %166

165:                                              ; preds = %156, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %167

166:                                              ; preds = %161, %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %446

167:                                              ; preds = %165, %117, %110
  %168 = load ptr, ptr %14, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %168, i32 0, i32 1
  %170 = invoke noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %169, float noundef 0x3D71979980000000)
          to label %171 unwind label %106

171:                                              ; preds = %167
  br i1 %170, label %445, label %172

172:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #9
  %173 = load float, ptr %13, align 4, !tbaa !9
  %174 = invoke { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef %173)
          to label %175 unwind label %370

175:                                              ; preds = %172
  %176 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, 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 } %174, 0
  store double %179, ptr %178, align 16
  %180 = getelementptr inbounds { double, double }, ptr %177, i32 0, i32 1
  %181 = extractvalue { double, double } %174, 1
  store double %181, ptr %180, align 8
  %182 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %68, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %182, i64 16, i1 false), !tbaa.struct !13
  %183 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %184 = load double, ptr %183, align 16
  %185 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %186 = load double, ptr %185, align 8
  %187 = invoke noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %35, double %184, double %186)
          to label %188 unwind label %370

188:                                              ; preds = %175
  %189 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %68, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %189, i64 16, i1 false), !tbaa.struct !13
  %190 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %191 = load double, ptr %190, align 16
  %192 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %193 = load double, ptr %192, align 8
  %194 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %187, double %191, double %193)
          to label %195 unwind label %370

195:                                              ; preds = %188
  %196 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %197 = getelementptr inbounds %union.anon, ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds { double, double }, ptr %197, i32 0, i32 0
  %199 = extractvalue { double, double } %194, 0
  store double %199, ptr %198, align 16
  %200 = getelementptr inbounds { double, double }, ptr %197, i32 0, i32 1
  %201 = extractvalue { double, double } %194, 1
  store double %201, ptr %200, align 8
  %202 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %203 = load double, ptr %202, align 16
  %204 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %205 = load double, ptr %204, align 8
  %206 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %35, double %203, double %205)
          to label %207 unwind label %370

207:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  %208 = invoke noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %35)
          to label %209 unwind label %374

209:                                              ; preds = %207
  store float %208, ptr %39, align 4, !tbaa !9
  %210 = load float, ptr %39, align 4, !tbaa !9
  %211 = fcmp ogt float %210, 0.000000e+00
  br i1 %211, label %212, label %442

212:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #9
  %213 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %68, i32 0, i32 22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !13
  %214 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %215 = load double, ptr %214, align 16
  %216 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %217 = load double, ptr %216, align 8
  %218 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %213, double %215, double %217)
          to label %219 unwind label %378

219:                                              ; preds = %212
  %220 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, i32 0, i32 0
  %221 = getelementptr inbounds %union.anon, ptr %220, i32 0, i32 0
  %222 = getelementptr inbounds { double, double }, ptr %221, i32 0, i32 0
  %223 = extractvalue { double, double } %218, 0
  store double %223, ptr %222, align 16
  %224 = getelementptr inbounds { double, double }, ptr %221, i32 0, i32 1
  %225 = extractvalue { double, double } %218, 1
  store double %225, ptr %224, align 8
  %226 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %68, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %226, i64 16, i1 false), !tbaa.struct !13
  %227 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %228 = load double, ptr %227, align 16
  %229 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %230 = load double, ptr %229, align 8
  %231 = invoke noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %40, double %228, double %230)
          to label %232 unwind label %378

232:                                              ; preds = %219
  %233 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %68, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %233, i64 16, i1 false), !tbaa.struct !13
  %234 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %235 = load double, ptr %234, align 16
  %236 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %237 = load double, ptr %236, align 8
  %238 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %231, double %235, double %237)
          to label %239 unwind label %378

239:                                              ; preds = %232
  %240 = getelementptr inbounds %"class.JPH::Vec3", ptr %42, 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 } %238, 0
  store double %243, ptr %242, align 16
  %244 = getelementptr inbounds { double, double }, ptr %241, i32 0, i32 1
  %245 = extractvalue { double, double } %238, 1
  store double %245, ptr %244, align 8
  %246 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %247 = load double, ptr %246, align 16
  %248 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %249 = load double, ptr %248, align 8
  %250 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %40, double %247, double %249)
          to label %251 unwind label %378

251:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #9
  %252 = load float, ptr %39, align 4, !tbaa !9
  %253 = invoke { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %35, float noundef %252)
          to label %254 unwind label %382

254:                                              ; preds = %251
  %255 = getelementptr inbounds %"class.JPH::Vec3", ptr %45, i32 0, i32 0
  %256 = getelementptr inbounds %union.anon, ptr %255, i32 0, i32 0
  %257 = getelementptr inbounds { double, double }, ptr %256, i32 0, i32 0
  %258 = extractvalue { double, double } %253, 0
  store double %258, ptr %257, align 16
  %259 = getelementptr inbounds { double, double }, ptr %256, i32 0, i32 1
  %260 = extractvalue { double, double } %253, 1
  store double %260, ptr %259, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  store float 0.000000e+00, ptr %47, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %49, ptr align 16 %45, i64 16, i1 false), !tbaa.struct !13
  %261 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %262 = load double, ptr %261, align 16
  %263 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %264 = load double, ptr %263, align 8
  %265 = invoke noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %40, double %262, double %264)
          to label %266 unwind label %386

266:                                              ; preds = %254
  store float %265, ptr %48, align 4, !tbaa !9
  %267 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %48)
          to label %268 unwind label %386

268:                                              ; preds = %266
  %269 = load float, ptr %267, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %50, ptr align 16 %45, i64 16, i1 false), !tbaa.struct !13
  %270 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %271 = load double, ptr %270, align 16
  %272 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %273 = load double, ptr %272, align 8
  %274 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %269, double %271, double %273)
          to label %275 unwind label %386

275:                                              ; preds = %268
  %276 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %277 = getelementptr inbounds %union.anon, ptr %276, i32 0, i32 0
  %278 = getelementptr inbounds { double, double }, ptr %277, i32 0, i32 0
  %279 = extractvalue { double, double } %274, 0
  store double %279, ptr %278, align 16
  %280 = getelementptr inbounds { double, double }, ptr %277, i32 0, i32 1
  %281 = extractvalue { double, double } %274, 1
  store double %281, ptr %280, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %46, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #9
  %282 = invoke noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %40)
          to label %283 unwind label %390

283:                                              ; preds = %275
  store float %282, ptr %51, align 4, !tbaa !9
  %284 = load float, ptr %51, align 4, !tbaa !9
  %285 = fadd float %284, 0x3F1A36E2E0000000
  %286 = load float, ptr %39, align 4, !tbaa !9
  %287 = fcmp olt float %285, %286
  br i1 %287, label %288, label %438

288:                                              ; preds = %283
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %52, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !13
  %289 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %290 = load double, ptr %289, align 16
  %291 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %292 = load double, ptr %291, align 8
  %293 = invoke noundef zeroext i1 @_ZNK3JPH16CharacterVirtual13CanWalkStairsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %68, double %290, double %292)
          to label %294 unwind label %390

294:                                              ; preds = %288
  br i1 %293, label %295, label %438

295:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #9
  %296 = load ptr, ptr %14, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %296, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #9
  %298 = load float, ptr %39, align 4, !tbaa !9
  %299 = load float, ptr %51, align 4, !tbaa !9
  %300 = fsub float %298, %299
  store float %300, ptr %54, align 4, !tbaa !9
  %301 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %297, ptr noundef nonnull align 4 dereferenceable(4) %54)
          to label %302 unwind label %394

302:                                              ; preds = %295
  %303 = load float, ptr %301, align 4, !tbaa !9
  %304 = invoke { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %45, float noundef %303)
          to label %305 unwind label %394

305:                                              ; preds = %302
  %306 = getelementptr inbounds %"class.JPH::Vec3", ptr %53, i32 0, i32 0
  %307 = getelementptr inbounds %union.anon, ptr %306, i32 0, i32 0
  %308 = getelementptr inbounds { double, double }, ptr %307, i32 0, i32 0
  %309 = extractvalue { double, double } %304, 0
  store double %309, ptr %308, align 16
  %310 = getelementptr inbounds { double, double }, ptr %307, i32 0, i32 1
  %311 = extractvalue { double, double } %304, 1
  store double %311, ptr %310, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #9
  %312 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %68, i32 0, i32 11
  %313 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %312)
          to label %314 unwind label %398

314:                                              ; preds = %305
  %315 = getelementptr inbounds %"class.JPH::Vec3", ptr %55, i32 0, i32 0
  %316 = getelementptr inbounds %union.anon, ptr %315, i32 0, i32 0
  %317 = getelementptr inbounds { double, double }, ptr %316, i32 0, i32 0
  %318 = extractvalue { double, double } %313, 0
  store double %318, ptr %317, align 16
  %319 = getelementptr inbounds { double, double }, ptr %316, i32 0, i32 1
  %320 = extractvalue { double, double } %313, 1
  store double %320, ptr %319, align 8
  %321 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %68, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %57, ptr align 16 %321, i64 16, i1 false), !tbaa.struct !13
  %322 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 0
  %323 = load double, ptr %322, align 16
  %324 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 1
  %325 = load double, ptr %324, align 8
  %326 = invoke noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %55, double %323, double %325)
          to label %327 unwind label %398

327:                                              ; preds = %314
  %328 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %68, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %328, i64 16, i1 false), !tbaa.struct !13
  %329 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %330 = load double, ptr %329, align 16
  %331 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %332 = load double, ptr %331, align 8
  %333 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %326, double %330, double %332)
          to label %334 unwind label %398

334:                                              ; preds = %327
  %335 = getelementptr inbounds %"class.JPH::Vec3", ptr %56, i32 0, i32 0
  %336 = getelementptr inbounds %union.anon, ptr %335, i32 0, i32 0
  %337 = getelementptr inbounds { double, double }, ptr %336, i32 0, i32 0
  %338 = extractvalue { double, double } %333, 0
  store double %338, ptr %337, align 16
  %339 = getelementptr inbounds { double, double }, ptr %336, i32 0, i32 1
  %340 = extractvalue { double, double } %333, 1
  store double %340, ptr %339, align 8
  %341 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %342 = load double, ptr %341, align 16
  %343 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %344 = load double, ptr %343, align 8
  %345 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %55, double %342, double %344)
          to label %346 unwind label %398

346:                                              ; preds = %334
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %60, ptr align 16 %45, i64 16, i1 false), !tbaa.struct !13
  %347 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %348 = load double, ptr %347, align 16
  %349 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %350 = load double, ptr %349, align 8
  %351 = invoke { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %55, double %348, double %350)
          to label %352 unwind label %402

352:                                              ; preds = %346
  %353 = getelementptr inbounds %"class.JPH::Vec3", ptr %59, i32 0, i32 0
  %354 = getelementptr inbounds %union.anon, ptr %353, i32 0, i32 0
  %355 = getelementptr inbounds { double, double }, ptr %354, i32 0, i32 0
  %356 = extractvalue { double, double } %351, 0
  store double %356, ptr %355, align 16
  %357 = getelementptr inbounds { double, double }, ptr %354, i32 0, i32 1
  %358 = extractvalue { double, double } %351, 1
  store double %358, ptr %357, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %55, ptr align 16 %59, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %61, ptr align 16 %45, i64 16, i1 false), !tbaa.struct !13
  %359 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %360 = load double, ptr %359, align 16
  %361 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %362 = load double, ptr %361, align 8
  %363 = invoke noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %55, double %360, double %362)
          to label %364 unwind label %398

364:                                              ; preds = %352
  %365 = load ptr, ptr %14, align 8, !tbaa !5
  %366 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %365, i32 0, i32 4
  %367 = load float, ptr %366, align 8, !tbaa !19
  %368 = fcmp olt float %363, %367
  br i1 %368, label %369, label %406

369:                                              ; preds = %364
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %55, ptr align 16 %45, i64 16, i1 false), !tbaa.struct !13
  br label %406

370:                                              ; preds = %195, %188, %175, %172
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %25, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %26, align 4
  br label %444

374:                                              ; preds = %207
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %25, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %26, align 4
  br label %443

378:                                              ; preds = %239, %232, %219, %212
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %25, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %26, align 4
  br label %441

382:                                              ; preds = %251
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %25, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %26, align 4
  br label %440

386:                                              ; preds = %268, %266, %254
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %25, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #9
  br label %440

390:                                              ; preds = %288, %275
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %25, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %26, align 4
  br label %439

394:                                              ; preds = %302, %295
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %25, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #9
  br label %437

398:                                              ; preds = %411, %406, %352, %334, %327, %314, %305
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %25, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %26, align 4
  br label %436

402:                                              ; preds = %346
  %403 = landingpad { ptr, i32 }
          cleanup
  %404 = extractvalue { ptr, i32 } %403, 0
  store ptr %404, ptr %25, align 8
  %405 = extractvalue { ptr, i32 } %403, 1
  store i32 %405, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #9
  br label %436

406:                                              ; preds = %369, %364
  %407 = load ptr, ptr %14, align 8, !tbaa !5
  %408 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %407, i32 0, i32 3
  %409 = load float, ptr %408, align 4, !tbaa !22
  %410 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mLEf(ptr noundef nonnull align 16 dereferenceable(16) %55, float noundef %409)
          to label %411 unwind label %398

411:                                              ; preds = %406
  %412 = load float, ptr %13, align 4, !tbaa !9
  %413 = load ptr, ptr %14, align 8, !tbaa !5
  %414 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %413, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %62, ptr align 16 %414, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %63, ptr align 16 %53, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %55, i64 16, i1 false), !tbaa.struct !13
  %415 = load ptr, ptr %14, align 8, !tbaa !5
  %416 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %415, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %65, ptr align 16 %416, i64 16, i1 false), !tbaa.struct !13
  %417 = load ptr, ptr %15, align 8, !tbaa !5
  %418 = load ptr, ptr %16, align 8, !tbaa !5
  %419 = load ptr, ptr %17, align 8, !tbaa !5
  %420 = load ptr, ptr %18, align 8, !tbaa !5
  %421 = load ptr, ptr %19, align 8, !tbaa !5
  %422 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %423 = load double, ptr %422, align 16
  %424 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %425 = load double, ptr %424, align 8
  %426 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %427 = load double, ptr %426, align 16
  %428 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %429 = load double, ptr %428, align 8
  %430 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %431 = load double, ptr %430, align 16
  %432 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %433 = load double, ptr %432, align 8
  %434 = invoke noundef zeroext i1 @_ZN3JPH16CharacterVirtual10WalkStairsEfNS_4Vec3ES1_S1_S1_RKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %68, float noundef %412, double %423, double %425, double %427, double %429, double %431, double %433, ptr noundef byval(%"class.JPH::Vec3") align 16 %65, ptr noundef nonnull align 8 dereferenceable(8) %417, ptr noundef nonnull align 8 dereferenceable(8) %418, ptr noundef nonnull align 8 dereferenceable(8) %419, ptr noundef nonnull align 8 dereferenceable(12) %420, ptr noundef nonnull align 8 dereferenceable(8) %421)
          to label %435 unwind label %398

435:                                              ; preds = %411
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #9
  br label %438

436:                                              ; preds = %402, %398
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #9
  br label %437

437:                                              ; preds = %436, %394
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #9
  br label %439

438:                                              ; preds = %435, %294, %283
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #9
  br label %442

439:                                              ; preds = %437, %390
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  br label %440

440:                                              ; preds = %439, %386, %382
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #9
  br label %441

441:                                              ; preds = %440, %378
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #9
  br label %443

442:                                              ; preds = %438, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #9
  br label %445

443:                                              ; preds = %441, %374
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %444

444:                                              ; preds = %443, %370
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #9
  br label %446

445:                                              ; preds = %442, %171
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  call void @"_ZN3JPH9ScopeExitIZNS_16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS1_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(9) %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  ret void

446:                                              ; preds = %444, %166, %106
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  br label %447

447:                                              ; preds = %446, %102
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  call void @"_ZN3JPH9ScopeExitIZNS_16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS1_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(9) %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  br label %448

448:                                              ; preds = %447
  %449 = load ptr, ptr %25, align 8
  %450 = load i32, ptr %26, align 4
  %451 = insertvalue { ptr, i32 } poison, ptr %449, 0
  %452 = insertvalue { ptr, i32 } %451, i32 %450, 1
  resume { ptr, i32 } %452
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS1_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0EC2EOSK_"(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS1_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0", !6, i64 0}
!13 = !{i64 0, i64 16, !14}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !10, i64 40}
!20 = !{!"_ZTSN3JPH16CharacterVirtual22ExtendedUpdateSettingsE", !21, i64 0, !21, i64 16, !10, i64 32, !10, i64 36, !10, i64 40, !21, i64 48}
!21 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!22 = !{!20, !10, i64 36}


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

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::ScopeExit.48" = type <{ %class.anon.49, i8, [7 x i8] }>
%class.anon.49 = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) 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 #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual6UpdateEfNS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), float noundef, double, double, 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 #6 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH16CharacterVirtual10WalkStairsEfNS_4Vec3ES1_S1_S1_RKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), float noundef, double, double, double, double, double, double, ptr noundef byval(%"class.JPH::Vec3") align 16, 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 #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH16CharacterVirtual12StickToFloorENS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), double, double, 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 #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %0, float noundef %1, double %2, double %3, ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %11 = alloca %"class.JPH::ScopeExit.48", align 8
  %12 = alloca %class.anon.49, align 8
  %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 float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca %"class.JPH::Vec3", align 16
  tail call void @_ZN3JPH16CharacterVirtual27StartTrackingContactChangesEv(ptr noundef nonnull align 16 dereferenceable(372) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  store ptr %0, ptr %12, align 8, !tbaa !5
  call void @"_ZN3JPH9ScopeExitIZNS_16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS1_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0EC2EOSK_"(ptr noundef nonnull align 8 dereferenceable(9) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  %22 = getelementptr inbounds i8, ptr %0, i64 272
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull align 16 dereferenceable(16) %22, i64 16, i1 false), !tbaa.struct !10
  %.sroa.057.0.copyload = load double, ptr %13, align 16
  %.sroa.258.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %.sroa.258.0.copyload = load double, ptr %.sroa.258.0..sroa_idx, align 8, !tbaa !11
  %23 = invoke { double, double } @_ZNK3JPH16CharacterVirtual32CancelVelocityTowardsSteepSlopesENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %0, double %.sroa.057.0.copyload, double %.sroa.258.0.copyload)
          to label %24 unwind label %31

24:                                               ; preds = %10
  %25 = extractvalue { double, double } %23, 0
  %26 = extractvalue { double, double } %23, 1
  store double %25, ptr %22, align 16
  %.sroa.560.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 280
  store double %26, ptr %.sroa.560.0..sroa_idx, align 8, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %0, i64 240
  %.sroa.054.0.copyload = load double, ptr %27, align 16
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 248
  %.sroa.6.0.copyload = load double, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !11
  %28 = call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %0)
  invoke void @_ZN3JPH16CharacterVirtual6UpdateEfNS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %0, float noundef %1, double %2, double %3, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %29 unwind label %33

29:                                               ; preds = %24
  %30 = call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %0)
  %not. = xor i1 %30, true
  %spec.select = and i1 %28, %not.
  br i1 %spec.select, label %35, label %53

31:                                               ; preds = %10
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %161

33:                                               ; preds = %24
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %161

35:                                               ; preds = %29
  %36 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 0x3D71979980000000)
  br i1 %36, label %53, label %37

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %38 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %27, double %.sroa.054.0.copyload, double %.sroa.6.0.copyload)
          to label %39 unwind label %49

39:                                               ; preds = %37
  %40 = extractvalue { double, double } %38, 0
  store double %40, ptr %14, align 16
  %41 = getelementptr inbounds i8, ptr %14, i64 8
  %42 = extractvalue { double, double } %38, 1
  store double %42, ptr %41, align 8
  %43 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.047.0.copyload = load double, ptr %43, align 16
  %.sroa.248.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  %.sroa.248.0.copyload = load double, ptr %.sroa.248.0..sroa_idx, align 8, !tbaa !11
  %44 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %.sroa.047.0.copyload, double %.sroa.248.0.copyload)
  %45 = fdiv float %44, %1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  %46 = fcmp ugt float %45, 0x3EB0C6F7A0000000
  br i1 %46, label %53, label %47

47:                                               ; preds = %39
  %.sroa.045.0.copyload = load double, ptr %4, align 16
  %.sroa.246.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  %.sroa.246.0.copyload = load double, ptr %.sroa.246.0..sroa_idx, align 8, !tbaa !11
  %48 = invoke noundef zeroext i1 @_ZN3JPH16CharacterVirtual12StickToFloorENS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %0, double %.sroa.045.0.copyload, double %.sroa.246.0.copyload, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %53 unwind label %51

49:                                               ; preds = %37
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  br label %161

51:                                               ; preds = %47
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %161

53:                                               ; preds = %39, %47, %35, %29
  %54 = getelementptr inbounds i8, ptr %4, i64 16
  %55 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %54, float noundef 0x3D71979980000000)
  br i1 %55, label %160, label %56

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  %57 = invoke { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef %1)
          to label %58 unwind label %131

58:                                               ; preds = %56
  %59 = extractvalue { double, double } %57, 0
  store double %59, ptr %15, align 16
  %60 = getelementptr inbounds i8, ptr %15, i64 8
  %61 = extractvalue { double, double } %57, 1
  store double %61, ptr %60, align 8
  %62 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.041.0.copyload = load double, ptr %62, align 16
  %.sroa.242.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  %.sroa.242.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !11
  %63 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %.sroa.041.0.copyload, double %.sroa.242.0.copyload)
  %.sroa.039.0.copyload = load double, ptr %62, align 16
  %.sroa.240.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !11
  %64 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %63, double %.sroa.039.0.copyload, double %.sroa.240.0.copyload)
          to label %65 unwind label %131

65:                                               ; preds = %58
  %66 = extractvalue { double, double } %64, 0
  %67 = extractvalue { double, double } %64, 1
  %68 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %66, double %67)
  %69 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %15)
  %70 = fcmp ogt float %69, 0.000000e+00
  br i1 %70, label %71, label %158

71:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #9
  %72 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %27, double %.sroa.054.0.copyload, double %.sroa.6.0.copyload)
          to label %73 unwind label %133

73:                                               ; preds = %71
  %74 = extractvalue { double, double } %72, 0
  store double %74, ptr %16, align 16
  %75 = getelementptr inbounds i8, ptr %16, i64 8
  %76 = extractvalue { double, double } %72, 1
  store double %76, ptr %75, align 8
  %.sroa.029.0.copyload = load double, ptr %62, align 16
  %.sroa.230.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !11
  %77 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %.sroa.029.0.copyload, double %.sroa.230.0.copyload)
  %.sroa.027.0.copyload = load double, ptr %62, align 16
  %.sroa.228.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !11
  %78 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %77, double %.sroa.027.0.copyload, double %.sroa.228.0.copyload)
          to label %79 unwind label %133

79:                                               ; preds = %73
  %80 = extractvalue { double, double } %78, 0
  %81 = extractvalue { double, double } %78, 1
  %82 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %80, double %81)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #9
  %83 = invoke { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef %69)
          to label %84 unwind label %135

84:                                               ; preds = %79
  %85 = extractvalue { double, double } %83, 0
  store double %85, ptr %17, align 16
  %86 = getelementptr inbounds i8, ptr %17, i64 8
  %87 = extractvalue { double, double } %83, 1
  store double %87, ptr %86, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  store float 0.000000e+00, ptr %18, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #9
  %88 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %85, double %87)
  store float %88, ptr %19, align 4, !tbaa !12
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %90 = load float, ptr %89, align 4, !tbaa !12
  %91 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %90, double %85, double %87)
          to label %92 unwind label %137

92:                                               ; preds = %84
  %93 = extractvalue { double, double } %91, 0
  %94 = extractvalue { double, double } %91, 1
  store double %93, ptr %16, align 16
  store double %94, ptr %75, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  %95 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %96 = fadd float %95, 0x3F1A36E2E0000000
  %97 = fcmp olt float %96, %69
  br i1 %97, label %98, label %155

98:                                               ; preds = %92
  %.sroa.018.0.copyload = load double, ptr %13, align 16
  %.sroa.219.0.copyload = load double, ptr %.sroa.258.0..sroa_idx, align 8, !tbaa !11
  %99 = invoke noundef zeroext i1 @_ZNK3JPH16CharacterVirtual13CanWalkStairsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %0, double %.sroa.018.0.copyload, double %.sroa.219.0.copyload)
          to label %100 unwind label %139

100:                                              ; preds = %98
  br i1 %99, label %101, label %155

101:                                              ; preds = %100
  %102 = getelementptr inbounds i8, ptr %4, i64 32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #9
  %103 = fsub float %69, %95
  store float %103, ptr %20, align 4, !tbaa !12
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %102, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %105 = load float, ptr %104, align 4, !tbaa !12
  %106 = invoke { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %105)
          to label %107 unwind label %141

107:                                              ; preds = %101
  %108 = extractvalue { double, double } %106, 0
  %109 = extractvalue { double, double } %106, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #9
  %110 = getelementptr inbounds i8, ptr %0, i64 96
  %111 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %110)
          to label %112 unwind label %143

112:                                              ; preds = %107
  %113 = extractvalue { double, double } %111, 0
  store double %113, ptr %21, align 16
  %114 = getelementptr inbounds i8, ptr %21, i64 8
  %115 = extractvalue { double, double } %111, 1
  store double %115, ptr %114, align 8
  %.sroa.012.0.copyload = load double, ptr %62, align 16
  %.sroa.213.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !11
  %116 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %.sroa.012.0.copyload, double %.sroa.213.0.copyload)
  %.sroa.010.0.copyload = load double, ptr %62, align 16
  %.sroa.211.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !11
  %117 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %116, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload)
          to label %118 unwind label %143

118:                                              ; preds = %112
  %119 = extractvalue { double, double } %117, 0
  %120 = extractvalue { double, double } %117, 1
  %121 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %119, double %120)
  %.sroa.07.0.copyload = load double, ptr %17, align 16
  %.sroa.28.0.copyload = load double, ptr %86, align 8, !tbaa !11
  %122 = invoke { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload)
          to label %123 unwind label %145

123:                                              ; preds = %118
  %124 = extractvalue { double, double } %122, 0
  %125 = extractvalue { double, double } %122, 1
  store double %124, ptr %21, align 16
  store double %125, ptr %114, align 8, !tbaa !11
  %.sroa.05.0.copyload = load double, ptr %17, align 16
  %.sroa.26.0.copyload = load double, ptr %86, align 8, !tbaa !11
  %126 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload)
  %127 = getelementptr inbounds i8, ptr %4, i64 40
  %128 = load float, ptr %127, align 8, !tbaa !14
  %129 = fcmp olt float %126, %128
  br i1 %129, label %130, label %147

130:                                              ; preds = %123
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 16 dereferenceable(16) %17, i64 16, i1 false), !tbaa.struct !10
  br label %147

131:                                              ; preds = %58, %56
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %159

133:                                              ; preds = %73, %71
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %157

135:                                              ; preds = %79
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %156

137:                                              ; preds = %84
  %138 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  br label %156

139:                                              ; preds = %98
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %156

141:                                              ; preds = %101
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #9
  br label %156

143:                                              ; preds = %147, %112, %107
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %154

145:                                              ; preds = %118
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %154

147:                                              ; preds = %130, %123
  %148 = getelementptr inbounds i8, ptr %4, i64 36
  %149 = load float, ptr %148, align 4, !tbaa !17
  %150 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mLEf(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef %149)
  %.sroa.03.0.copyload = load double, ptr %54, align 16
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 24
  %.sroa.24.0.copyload = load double, ptr %.sroa.24.0..sroa_idx, align 8, !tbaa !11
  %.sroa.0.0.copyload = load double, ptr %21, align 16
  %.sroa.2.0.copyload = load double, ptr %114, align 8, !tbaa !11
  %151 = getelementptr inbounds i8, ptr %4, i64 48
  %152 = invoke noundef zeroext i1 @_ZN3JPH16CharacterVirtual10WalkStairsEfNS_4Vec3ES1_S1_S1_RKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %0, float noundef %1, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, double %108, double %109, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %151, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %153 unwind label %143

153:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  br label %155

154:                                              ; preds = %145, %143
  %.pn103 = phi { ptr, i32 } [ %144, %143 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  br label %156

155:                                              ; preds = %153, %100, %92
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  br label %158

156:                                              ; preds = %139, %154, %141, %137, %135
  %.pn103.pn.pn.pn = phi { ptr, i32 } [ %138, %137 ], [ %136, %135 ], [ %140, %139 ], [ %.pn103, %154 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  br label %157

157:                                              ; preds = %156, %133
  %.pn103.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn103.pn.pn.pn, %156 ], [ %134, %133 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  br label %159

158:                                              ; preds = %155, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  br label %160

159:                                              ; preds = %157, %131
  %.pn103.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn103.pn.pn.pn.pn, %157 ], [ %132, %131 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  br label %161

160:                                              ; preds = %158, %53
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @"_ZN3JPH9ScopeExitIZNS_16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS1_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(9) %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  ret void

161:                                              ; preds = %33, %159, %51, %49, %31
  %.pn103.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %32, %31 ], [ %.pn103.pn.pn.pn.pn.pn, %159 ], [ %34, %33 ], [ %52, %51 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @"_ZN3JPH9ScopeExitIZNS_16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS1_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(9) %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  resume { ptr, i32 } %.pn103.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS1_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0EC2EOSK_"(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS1_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { alwaysinline mustprogress 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 = { 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 = { 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 0}
!6 = !{!"_ZTSZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorEE3$_0", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{i64 0, i64 16, !11}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = !{!15, !13, i64 40}
!15 = !{!"_ZTSN3JPH16CharacterVirtual22ExtendedUpdateSettingsE", !16, i64 0, !16, i64 16, !13, i64 32, !13, i64 36, !13, i64 40, !16, i64 48}
!16 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!17 = !{!15, !13, i64 36}


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