; LLVM IR from zig-gamedev/zphysics :: libs/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::CharacterVirtual" = type <{ %"class.JPH::CharacterBase", ptr, ptr, i8, [3 x i8], float, i32, i32, float, float, float, i32, float, float, i8, [3 x i8], float, float, [12 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Array.2", float, i8, [3 x i8], i64, %"class.JPH::BodyID", [4 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::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Array.2" = type { i64, i64, ptr }
%"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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(332) %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) #7 align 2 {
  %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::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca i8, align 1
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca float, align 4
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca float, align 4
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca float, align 4
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca float, align 4
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Vec3", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Vec3", align 16
  %58 = alloca %"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 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %2, ptr %62, align 16
  %63 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %3, ptr %63, 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
  %64 = load ptr, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #9
  %65 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %64, i32 0, i32 22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %65, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !11
  %66 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %67 = load double, ptr %66, align 16
  %68 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %69 = load double, ptr %68, align 8
  %70 = call { double, double } @_ZNK3JPH16CharacterVirtual32CancelVelocityTowardsSteepSlopesENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(332) %64, double %67, double %69)
  %71 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %72 = getelementptr inbounds %union.anon, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 0
  %74 = extractvalue { double, double } %70, 0
  store double %74, ptr %73, align 16
  %75 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 1
  %76 = extractvalue { double, double } %70, 1
  store double %76, ptr %75, align 8
  %77 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %64, i32 0, i32 22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %77, ptr align 16 %21, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  %78 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %64, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %78, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #9
  %79 = call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %64)
  %80 = zext i1 %79 to i8
  store i8 %80, ptr %24, align 1, !tbaa !13
  %81 = load float, ptr %13, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !11
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = load ptr, ptr %18, align 8, !tbaa !5
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  %87 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %88 = load double, ptr %87, align 16
  %89 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %90 = load double, ptr %89, align 8
  call void @_ZN3JPH16CharacterVirtual6UpdateEfNS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(332) %64, float noundef %81, double %88, double %90, ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull align 8 dereferenceable(12) %85, ptr noundef nonnull align 8 dereferenceable(8) %86)
  %91 = call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %64)
  br i1 %91, label %92, label %93

92:                                               ; preds = %10
  store i8 0, ptr %24, align 1, !tbaa !13
  br label %93

93:                                               ; preds = %92, %10
  %94 = load i8, ptr %24, align 1, !tbaa !13, !range !15, !noundef !16
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %137

96:                                               ; preds = %93
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %97, i32 0, i32 0
  %99 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %98, float noundef 0x3D71979980000000)
  br i1 %99, label %137, label %100

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %101 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %64, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !11
  %102 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %103 = load double, ptr %102, align 16
  %104 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %105 = load double, ptr %104, align 8
  %106 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %101, double %103, double %105)
  %107 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %108 = getelementptr inbounds %union.anon, ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds { double, double }, ptr %108, i32 0, i32 0
  %110 = extractvalue { double, double } %106, 0
  store double %110, ptr %109, align 16
  %111 = getelementptr inbounds { double, double }, ptr %108, i32 0, i32 1
  %112 = extractvalue { double, double } %106, 1
  store double %112, ptr %111, align 8
  %113 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %64, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %113, i64 16, i1 false), !tbaa.struct !11
  %114 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %115 = load double, ptr %114, align 16
  %116 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %117 = load double, ptr %116, align 8
  %118 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %27, double %115, double %117)
  %119 = load float, ptr %13, align 4, !tbaa !9
  %120 = fdiv float %118, %119
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  store float %120, ptr %26, align 4, !tbaa !9
  %121 = load float, ptr %26, align 4, !tbaa !9
  %122 = fcmp ole float %121, 0x3EB0C6F7A0000000
  br i1 %122, label %123, label %136

123:                                              ; preds = %100
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %124, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %125, i64 16, i1 false), !tbaa.struct !11
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = load ptr, ptr %17, align 8, !tbaa !5
  %129 = load ptr, ptr %18, align 8, !tbaa !5
  %130 = load ptr, ptr %19, align 8, !tbaa !5
  %131 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %132 = load double, ptr %131, align 16
  %133 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %134 = load double, ptr %133, align 8
  %135 = call noundef zeroext i1 @_ZN3JPH16CharacterVirtual12StickToFloorENS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(332) %64, double %132, double %134, ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull align 8 dereferenceable(12) %129, ptr noundef nonnull align 8 dereferenceable(8) %130)
  br label %136

136:                                              ; preds = %123, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %137

137:                                              ; preds = %136, %96, %93
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %138, i32 0, i32 1
  %140 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %139, float noundef 0x3D71979980000000)
  br i1 %140, label %346, label %141

141:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #9
  %142 = load float, ptr %13, align 4, !tbaa !9
  %143 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef %142)
  %144 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, 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 %"class.JPH::CharacterBase", ptr %64, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %150, i64 16, i1 false), !tbaa.struct !11
  %151 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %152 = load double, ptr %151, align 16
  %153 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %154 = load double, ptr %153, align 8
  %155 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %152, double %154)
  %156 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %64, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %156, i64 16, i1 false), !tbaa.struct !11
  %157 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %158 = load double, ptr %157, align 16
  %159 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %160 = load double, ptr %159, align 8
  %161 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %155, double %158, double %160)
  %162 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %163 = getelementptr inbounds %union.anon, ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds { double, double }, ptr %163, i32 0, i32 0
  %165 = extractvalue { double, double } %161, 0
  store double %165, ptr %164, align 16
  %166 = getelementptr inbounds { double, double }, ptr %163, i32 0, i32 1
  %167 = extractvalue { double, double } %161, 1
  store double %167, ptr %166, align 8
  %168 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %169 = load double, ptr %168, align 16
  %170 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %171 = load double, ptr %170, align 8
  %172 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %169, double %171)
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  %173 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %31)
  store float %173, ptr %35, align 4, !tbaa !9
  %174 = load float, ptr %35, align 4, !tbaa !9
  %175 = fcmp ogt float %174, 0.000000e+00
  br i1 %175, label %176, label %345

176:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #9
  %177 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %64, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !11
  %178 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %179 = load double, ptr %178, align 16
  %180 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %181 = load double, ptr %180, align 8
  %182 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %177, double %179, double %181)
  %183 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %184 = getelementptr inbounds %union.anon, ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds { double, double }, ptr %184, i32 0, i32 0
  %186 = extractvalue { double, double } %182, 0
  store double %186, ptr %185, align 16
  %187 = getelementptr inbounds { double, double }, ptr %184, i32 0, i32 1
  %188 = extractvalue { double, double } %182, 1
  store double %188, ptr %187, align 8
  %189 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %64, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %189, i64 16, i1 false), !tbaa.struct !11
  %190 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %191 = load double, ptr %190, align 16
  %192 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %193 = load double, ptr %192, align 8
  %194 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %36, double %191, double %193)
  %195 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %64, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %195, i64 16, i1 false), !tbaa.struct !11
  %196 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %197 = load double, ptr %196, align 16
  %198 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %199 = load double, ptr %198, align 8
  %200 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %194, double %197, double %199)
  %201 = getelementptr inbounds %"class.JPH::Vec3", ptr %38, i32 0, i32 0
  %202 = getelementptr inbounds %union.anon, ptr %201, i32 0, i32 0
  %203 = getelementptr inbounds { double, double }, ptr %202, i32 0, i32 0
  %204 = extractvalue { double, double } %200, 0
  store double %204, ptr %203, align 16
  %205 = getelementptr inbounds { double, double }, ptr %202, i32 0, i32 1
  %206 = extractvalue { double, double } %200, 1
  store double %206, ptr %205, align 8
  %207 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %208 = load double, ptr %207, align 16
  %209 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %210 = load double, ptr %209, align 8
  %211 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %36, double %208, double %210)
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #9
  %212 = load float, ptr %35, align 4, !tbaa !9
  %213 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %31, float noundef %212)
  %214 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %215 = getelementptr inbounds %union.anon, ptr %214, i32 0, i32 0
  %216 = getelementptr inbounds { double, double }, ptr %215, i32 0, i32 0
  %217 = extractvalue { double, double } %213, 0
  store double %217, ptr %216, align 16
  %218 = getelementptr inbounds { double, double }, ptr %215, i32 0, i32 1
  %219 = extractvalue { double, double } %213, 1
  store double %219, ptr %218, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #9
  store float 0.000000e+00, ptr %43, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !11
  %220 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %221 = load double, ptr %220, align 16
  %222 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %223 = load double, ptr %222, align 8
  %224 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %36, double %221, double %223)
  store float %224, ptr %44, align 4, !tbaa !9
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
  %226 = load float, ptr %225, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %46, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !11
  %227 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %228 = load double, ptr %227, align 16
  %229 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %230 = load double, ptr %229, align 8
  %231 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %226, double %228, double %230)
  %232 = getelementptr inbounds %"class.JPH::Vec3", ptr %42, i32 0, i32 0
  %233 = getelementptr inbounds %union.anon, ptr %232, i32 0, i32 0
  %234 = getelementptr inbounds { double, double }, ptr %233, i32 0, i32 0
  %235 = extractvalue { double, double } %231, 0
  store double %235, ptr %234, align 16
  %236 = getelementptr inbounds { double, double }, ptr %233, i32 0, i32 1
  %237 = extractvalue { double, double } %231, 1
  store double %237, ptr %236, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %42, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  %238 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %36)
  store float %238, ptr %47, align 4, !tbaa !9
  %239 = load float, ptr %47, align 4, !tbaa !9
  %240 = fadd float %239, 0x3F1A36E2E0000000
  %241 = load float, ptr %35, align 4, !tbaa !9
  %242 = fcmp olt float %240, %241
  br i1 %242, label %243, label %344

243:                                              ; preds = %176
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %48, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !11
  %244 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %245 = load double, ptr %244, align 16
  %246 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %247 = load double, ptr %246, align 8
  %248 = call noundef zeroext i1 @_ZNK3JPH16CharacterVirtual13CanWalkStairsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(332) %64, double %245, double %247)
  br i1 %248, label %249, label %344

249:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #9
  %250 = load ptr, ptr %14, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %250, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #9
  %252 = load float, ptr %35, align 4, !tbaa !9
  %253 = load float, ptr %47, align 4, !tbaa !9
  %254 = fsub float %252, %253
  store float %254, ptr %50, align 4, !tbaa !9
  %255 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %251, ptr noundef nonnull align 4 dereferenceable(4) %50)
  %256 = load float, ptr %255, align 4, !tbaa !9
  %257 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %41, float noundef %256)
  %258 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %259 = getelementptr inbounds %union.anon, ptr %258, i32 0, i32 0
  %260 = getelementptr inbounds { double, double }, ptr %259, i32 0, i32 0
  %261 = extractvalue { double, double } %257, 0
  store double %261, ptr %260, align 16
  %262 = getelementptr inbounds { double, double }, ptr %259, i32 0, i32 1
  %263 = extractvalue { double, double } %257, 1
  store double %263, ptr %262, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #9
  %264 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %64, i32 0, i32 11
  %265 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %264)
  %266 = getelementptr inbounds %"class.JPH::Vec3", ptr %51, i32 0, i32 0
  %267 = getelementptr inbounds %union.anon, ptr %266, i32 0, i32 0
  %268 = getelementptr inbounds { double, double }, ptr %267, i32 0, i32 0
  %269 = extractvalue { double, double } %265, 0
  store double %269, ptr %268, align 16
  %270 = getelementptr inbounds { double, double }, ptr %267, i32 0, i32 1
  %271 = extractvalue { double, double } %265, 1
  store double %271, ptr %270, align 8
  %272 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %64, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %53, ptr align 16 %272, i64 16, i1 false), !tbaa.struct !11
  %273 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %274 = load double, ptr %273, align 16
  %275 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %276 = load double, ptr %275, align 8
  %277 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %51, double %274, double %276)
  %278 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %64, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 16 %278, i64 16, i1 false), !tbaa.struct !11
  %279 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %280 = load double, ptr %279, align 16
  %281 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %282 = load double, ptr %281, align 8
  %283 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %277, double %280, double %282)
  %284 = getelementptr inbounds %"class.JPH::Vec3", ptr %52, i32 0, i32 0
  %285 = getelementptr inbounds %union.anon, ptr %284, i32 0, i32 0
  %286 = getelementptr inbounds { double, double }, ptr %285, i32 0, i32 0
  %287 = extractvalue { double, double } %283, 0
  store double %287, ptr %286, align 16
  %288 = getelementptr inbounds { double, double }, ptr %285, i32 0, i32 1
  %289 = extractvalue { double, double } %283, 1
  store double %289, ptr %288, align 8
  %290 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %291 = load double, ptr %290, align 16
  %292 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %293 = load double, ptr %292, align 8
  %294 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %51, double %291, double %293)
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !11
  %295 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %296 = load double, ptr %295, align 16
  %297 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %298 = load double, ptr %297, align 8
  %299 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %51, double %296, double %298)
  %300 = getelementptr inbounds %"class.JPH::Vec3", ptr %55, i32 0, i32 0
  %301 = getelementptr inbounds %union.anon, ptr %300, i32 0, i32 0
  %302 = getelementptr inbounds { double, double }, ptr %301, i32 0, i32 0
  %303 = extractvalue { double, double } %299, 0
  store double %303, ptr %302, align 16
  %304 = getelementptr inbounds { double, double }, ptr %301, i32 0, i32 1
  %305 = extractvalue { double, double } %299, 1
  store double %305, ptr %304, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %55, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %57, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !11
  %306 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 0
  %307 = load double, ptr %306, align 16
  %308 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 1
  %309 = load double, ptr %308, align 8
  %310 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %51, double %307, double %309)
  %311 = load ptr, ptr %14, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %311, i32 0, i32 4
  %313 = load float, ptr %312, align 8, !tbaa !17
  %314 = fcmp olt float %310, %313
  br i1 %314, label %315, label %316

315:                                              ; preds = %249
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !11
  br label %316

316:                                              ; preds = %315, %249
  %317 = load ptr, ptr %14, align 8, !tbaa !5
  %318 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %317, i32 0, i32 3
  %319 = load float, ptr %318, align 4, !tbaa !20
  %320 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mLEf(ptr noundef nonnull align 16 dereferenceable(16) %51, float noundef %319)
  %321 = load float, ptr %13, align 4, !tbaa !9
  %322 = load ptr, ptr %14, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %322, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %323, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %49, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %60, ptr align 16 %51, i64 16, i1 false), !tbaa.struct !11
  %324 = load ptr, ptr %14, align 8, !tbaa !5
  %325 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", ptr %324, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %61, ptr align 16 %325, i64 16, i1 false), !tbaa.struct !11
  %326 = load ptr, ptr %15, align 8, !tbaa !5
  %327 = load ptr, ptr %16, align 8, !tbaa !5
  %328 = load ptr, ptr %17, align 8, !tbaa !5
  %329 = load ptr, ptr %18, align 8, !tbaa !5
  %330 = load ptr, ptr %19, align 8, !tbaa !5
  %331 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %332 = load double, ptr %331, align 16
  %333 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %334 = load double, ptr %333, align 8
  %335 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %336 = load double, ptr %335, align 16
  %337 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %338 = load double, ptr %337, align 8
  %339 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %340 = load double, ptr %339, align 16
  %341 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %342 = load double, ptr %341, align 8
  %343 = call noundef zeroext i1 @_ZN3JPH16CharacterVirtual10WalkStairsEfNS_4Vec3ES1_S1_S1_RKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(332) %64, float noundef %321, double %332, double %334, double %336, double %338, double %340, double %342, ptr noundef byval(%"class.JPH::Vec3") align 16 %61, ptr noundef nonnull align 8 dereferenceable(8) %326, ptr noundef nonnull align 8 dereferenceable(8) %327, ptr noundef nonnull align 8 dereferenceable(8) %328, ptr noundef nonnull align 8 dereferenceable(12) %329, ptr noundef nonnull align 8 dereferenceable(8) %330)
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #9
  br label %344

344:                                              ; preds = %316, %243, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #9
  br label %345

345:                                              ; preds = %344, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  br label %346

346:                                              ; preds = %345, %137
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  ret void
}

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 = { 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 #7 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !10, i64 40}
!18 = !{!"_ZTSN3JPH16CharacterVirtual22ExtendedUpdateSettingsE", !19, i64 0, !19, i64 16, !10, i64 32, !10, i64 36, !10, i64 40, !19, i64 48}
!19 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!20 = !{!18, !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> }

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef 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(332), double, double) local_unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(332) %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 #7 align 2 {
  %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 float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca %"class.JPH::Vec3", align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  %20 = getelementptr inbounds i8, ptr %0, i64 272
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %20, i64 16, i1 false), !tbaa.struct !5
  %.sroa.055.0.copyload = load double, ptr %11, align 16
  %.sroa.256.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.256.0.copyload = load double, ptr %.sroa.256.0..sroa_idx, align 8, !tbaa !6
  %21 = tail call { double, double } @_ZNK3JPH16CharacterVirtual32CancelVelocityTowardsSteepSlopesENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(332) %0, double %.sroa.055.0.copyload, double %.sroa.256.0.copyload)
  %22 = extractvalue { double, double } %21, 0
  %23 = extractvalue { double, double } %21, 1
  store double %22, ptr %20, align 16
  %.sroa.458.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 280
  store double %23, ptr %.sroa.458.0..sroa_idx, align 8, !tbaa !6
  %24 = getelementptr inbounds i8, ptr %0, i64 240
  %.sroa.054.0.copyload = load double, ptr %24, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 248
  %.sroa.5.0.copyload = load double, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !6
  %25 = tail call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %0)
  tail call void @_ZN3JPH16CharacterVirtual6UpdateEfNS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(332) %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)
  %26 = tail call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %0)
  %not. = xor i1 %26, true
  %spec.select = and i1 %25, %not.
  br i1 %spec.select, label %27, label %40

27:                                               ; preds = %10
  %28 = tail call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 0x3D71979980000000)
  br i1 %28, label %40, label %29

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  %30 = tail call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %.sroa.054.0.copyload, double %.sroa.5.0.copyload)
  %31 = extractvalue { double, double } %30, 0
  store double %31, ptr %12, align 16
  %32 = getelementptr inbounds i8, ptr %12, i64 8
  %33 = extractvalue { double, double } %30, 1
  store double %33, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.047.0.copyload = load double, ptr %34, 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 !6
  %35 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %.sroa.047.0.copyload, double %.sroa.248.0.copyload)
  %36 = fdiv float %35, %1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  %37 = fcmp ugt float %36, 0x3EB0C6F7A0000000
  br i1 %37, label %40, label %38

38:                                               ; preds = %29
  %.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 !6
  %39 = call noundef zeroext i1 @_ZN3JPH16CharacterVirtual12StickToFloorENS_4Vec3ERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(332) %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)
  br label %40

40:                                               ; preds = %29, %38, %27, %10
  %41 = getelementptr inbounds i8, ptr %4, i64 16
  %42 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %41, float noundef 0x3D71979980000000)
  br i1 %42, label %115, label %43

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  %44 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef %1)
  %45 = extractvalue { double, double } %44, 0
  store double %45, ptr %13, align 16
  %46 = getelementptr inbounds i8, ptr %13, i64 8
  %47 = extractvalue { double, double } %44, 1
  store double %47, ptr %46, align 8
  %48 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.041.0.copyload = load double, ptr %48, 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 !6
  %49 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %.sroa.041.0.copyload, double %.sroa.242.0.copyload)
  %.sroa.039.0.copyload = load double, ptr %48, align 16
  %.sroa.240.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !6
  %50 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %49, double %.sroa.039.0.copyload, double %.sroa.240.0.copyload)
  %51 = extractvalue { double, double } %50, 0
  %52 = extractvalue { double, double } %50, 1
  %53 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %51, double %52)
  %54 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %55 = fcmp ogt float %54, 0.000000e+00
  br i1 %55, label %56, label %114

56:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %57 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %.sroa.054.0.copyload, double %.sroa.5.0.copyload)
  %58 = extractvalue { double, double } %57, 0
  store double %58, ptr %14, align 16
  %59 = getelementptr inbounds i8, ptr %14, i64 8
  %60 = extractvalue { double, double } %57, 1
  store double %60, ptr %59, align 8
  %.sroa.029.0.copyload = load double, ptr %48, align 16
  %.sroa.230.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !6
  %61 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %.sroa.029.0.copyload, double %.sroa.230.0.copyload)
  %.sroa.027.0.copyload = load double, ptr %48, align 16
  %.sroa.228.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !6
  %62 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %61, double %.sroa.027.0.copyload, double %.sroa.228.0.copyload)
  %63 = extractvalue { double, double } %62, 0
  %64 = extractvalue { double, double } %62, 1
  %65 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %63, double %64)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  %66 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef %54)
  %67 = extractvalue { double, double } %66, 0
  store double %67, ptr %15, align 16
  %68 = getelementptr inbounds i8, ptr %15, i64 8
  %69 = extractvalue { double, double } %66, 1
  store double %69, ptr %68, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  store float 0.000000e+00, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  %70 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %67, double %69)
  store float %70, ptr %17, align 4, !tbaa !9
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %72 = load float, ptr %71, align 4, !tbaa !9
  %73 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %72, double %67, double %69)
  %74 = extractvalue { double, double } %73, 0
  %75 = extractvalue { double, double } %73, 1
  store double %74, ptr %14, align 16
  store double %75, ptr %59, align 8, !tbaa !6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  %76 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
  %77 = fadd float %76, 0x3F1A36E2E0000000
  %78 = fcmp olt float %77, %54
  br i1 %78, label %79, label %113

79:                                               ; preds = %56
  %.sroa.018.0.copyload = load double, ptr %11, align 16
  %.sroa.219.0.copyload = load double, ptr %.sroa.256.0..sroa_idx, align 8, !tbaa !6
  %80 = call noundef zeroext i1 @_ZNK3JPH16CharacterVirtual13CanWalkStairsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(332) %0, double %.sroa.018.0.copyload, double %.sroa.219.0.copyload)
  br i1 %80, label %81, label %113

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %4, i64 32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  %83 = fsub float %54, %76
  store float %83, ptr %18, align 4, !tbaa !9
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %82, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %85 = load float, ptr %84, align 4, !tbaa !9
  %86 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef %85)
  %87 = extractvalue { double, double } %86, 0
  %88 = extractvalue { double, double } %86, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  %89 = getelementptr inbounds i8, ptr %0, i64 96
  %90 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %89)
  %91 = extractvalue { double, double } %90, 0
  store double %91, ptr %19, align 16
  %92 = getelementptr inbounds i8, ptr %19, i64 8
  %93 = extractvalue { double, double } %90, 1
  store double %93, ptr %92, align 8
  %.sroa.012.0.copyload = load double, ptr %48, align 16
  %.sroa.213.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !6
  %94 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %.sroa.012.0.copyload, double %.sroa.213.0.copyload)
  %.sroa.010.0.copyload = load double, ptr %48, align 16
  %.sroa.211.0.copyload = load double, ptr %.sroa.242.0..sroa_idx, align 8, !tbaa !6
  %95 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %94, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload)
  %96 = extractvalue { double, double } %95, 0
  %97 = extractvalue { double, double } %95, 1
  %98 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %96, double %97)
  %.sroa.07.0.copyload = load double, ptr %15, align 16
  %.sroa.28.0.copyload = load double, ptr %68, align 8, !tbaa !6
  %99 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload)
  %100 = extractvalue { double, double } %99, 0
  %101 = extractvalue { double, double } %99, 1
  store double %100, ptr %19, align 16
  store double %101, ptr %92, align 8, !tbaa !6
  %.sroa.05.0.copyload = load double, ptr %15, align 16
  %.sroa.26.0.copyload = load double, ptr %68, align 8, !tbaa !6
  %102 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload)
  %103 = getelementptr inbounds i8, ptr %4, i64 40
  %104 = load float, ptr %103, align 8, !tbaa !11
  %105 = fcmp olt float %102, %104
  br i1 %105, label %106, label %107

106:                                              ; preds = %81
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %19, ptr noundef nonnull align 16 dereferenceable(16) %15, i64 16, i1 false), !tbaa.struct !5
  br label %107

107:                                              ; preds = %106, %81
  %108 = getelementptr inbounds i8, ptr %4, i64 36
  %109 = load float, ptr %108, align 4, !tbaa !14
  %110 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mLEf(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef %109)
  %.sroa.03.0.copyload = load double, ptr %41, 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 !6
  %.sroa.0.0.copyload = load double, ptr %19, align 16
  %.sroa.2.0.copyload = load double, ptr %92, align 8, !tbaa !6
  %111 = getelementptr inbounds i8, ptr %4, i64 48
  %112 = call noundef zeroext i1 @_ZN3JPH16CharacterVirtual10WalkStairsEfNS_4Vec3ES1_S1_S1_RKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(332) %0, float noundef %1, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, double %87, double %88, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %111, 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)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  br label %113

113:                                              ; preds = %107, %79, %56
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  br label %114

114:                                              ; preds = %113, %43
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  br label %115

115:                                              ; preds = %114, %40
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  ret void
}

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 = { 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 #7 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{i64 0, i64 16, !6}
!6 = !{!7, !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, !10, i64 40}
!12 = !{!"_ZTSN3JPH16CharacterVirtual22ExtendedUpdateSettingsE", !13, i64 0, !13, i64 16, !10, i64 32, !10, i64 36, !10, i64 40, !13, i64 48}
!13 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!14 = !{!12, !10, i64 36}


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