; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::ShapeCastSettings" = type <{ %"class.JPH::CollideSettingsBase", i8, i8, i8, i8, [12 x i8] }>
%"class.JPH::CollideSettingsBase" = type { i8, i8, float, float, %"class.JPH::Vec3" }
%"class.JPH::IgnoreSingleBodyFilterChained" = type { %"class.JPH::BodyFilter", %"class.JPH::BodyID", ptr }
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"struct.JPH::CharacterVirtual::Contact" = type <{ %"class.JPH::CharacterVirtual::ContactKey", [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, i8, i8, [6 x i8], ptr, i64, ptr, i8, i8, i8, [5 x i8] }>
%"class.JPH::CharacterVirtual::ContactKey" = type { %"class.JPH::BodyID", %"class.JPH::CharacterID", %"class.JPH::SubShapeID" }
%"class.JPH::CharacterID" = type { i32 }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::CharacterVirtual::ContactCastCollector" = type <{ %"class.JPH::CollisionCollector.6", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", ptr, ptr, ptr, ptr, ptr, [8 x i8] }>
%"class.JPH::CollisionCollector.6" = type { ptr, float, ptr }
%"struct.JPH::RShapeCast" = type { %"struct.JPH::ShapeCastT.33" }
%"struct.JPH::ShapeCastT.33" = type { ptr, %"class.JPH::Vec3", %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::AABox" }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::TransformedShape" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::RefConst", %"class.JPH::Float3", %"class.JPH::BodyID", %"class.JPH::SubShapeIDCreator" }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::SubShapeIDCreator" = type { %"class.JPH::SubShapeID", i32 }
%"class.JPH::StaticArray" = type { i32, [12 x i8], [32 x %"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage"] }
%"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage" = type { [16 x i8] }
%"struct.JPH::PolygonConvexSupport" = type { ptr }
%"struct.JPH::AddConvexRadius" = type <{ ptr, float, [4 x i8] }>
%"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::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::RefConst.1" = type { ptr }
%"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 }>

; 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: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144)) #2 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) #3

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH11CharacterID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6BodyID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual7ContactC2Ev(ptr noundef nonnull align 16 dereferenceable(123)) unnamed_addr #9 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3JPH16CharacterVirtual23GetFirstContactForSweepENS_4Vec3ES1_RNS0_7ContactERKNS_5ArrayINS0_10ContactKeyENS_16STLTempAllocatorIS5_EEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(372) %0, double %1, double %2, double %3, double %4, ptr noundef nonnull align 16 dereferenceable(123) %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(12) %10) #2 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca i1, align 1
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %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 ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca float, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.JPH::Mat44", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Quat", align 16
  %27 = alloca %"class.JPH::ShapeCastSettings", align 16
  %28 = alloca float, align 4
  %29 = alloca %"class.JPH::IgnoreSingleBodyFilterChained", align 8
  %30 = alloca %"class.JPH::BodyID", align 4
  %31 = alloca %"struct.JPH::CharacterVirtual::Contact", align 16
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::CharacterVirtual::ContactCastCollector", 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 %"struct.JPH::RShapeCast", 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 %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::TransformedShape", align 16
  %46 = alloca float, align 4
  %47 = alloca %"class.JPH::Mat44", align 16
  %48 = alloca %"class.JPH::TransformedShape", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca %"class.JPH::Quat", align 16
  %51 = alloca %"class.JPH::BodyID", align 4
  %52 = alloca %"class.JPH::SubShapeIDCreator", align 4
  %53 = alloca %"class.JPH::TransformedShape", align 16
  %54 = alloca %"class.JPH::StaticArray", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca i8, align 1
  %58 = alloca %"struct.JPH::PolygonConvexSupport", align 8
  %59 = alloca %"struct.JPH::AddConvexRadius", align 8
  %60 = alloca %"class.JPH::Mat44", align 16
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = alloca float, align 4
  %64 = alloca float, align 4
  %65 = alloca float, align 4
  %66 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  store double %1, ptr %66, align 16
  %67 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  store double %2, ptr %67, align 8
  %68 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  store double %3, ptr %68, align 16
  %69 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  store double %4, ptr %69, align 8
  store ptr %0, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  store ptr %9, ptr %20, align 8, !tbaa !5
  store ptr %10, ptr %21, align 8, !tbaa !5
  %70 = load ptr, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #11
  %71 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
  store float %71, ptr %22, align 4, !tbaa !9
  %72 = load float, ptr %22, align 4, !tbaa !9
  %73 = fcmp olt float %72, 0x3E45798EE0000000
  br i1 %73, label %74, label %75

74:                                               ; preds = %11
  store i1 false, ptr %12, align 1
  store i32 1, ptr %23, align 4
  br label %421

75:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !11
  %76 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %70, i32 0, i32 23
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %76, i64 16, i1 false), !tbaa.struct !11
  %77 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %70, i32 0, i32 3
  %78 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %77)
  %79 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %80 = load double, ptr %79, align 16
  %81 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %82 = load double, ptr %81, align 8
  %83 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %84 = load double, ptr %83, align 16
  %85 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %86 = load double, ptr %85, align 8
  call void @_ZNK3JPH16CharacterVirtual24GetCenterOfMassTransformENS_4Vec3ENS_4QuatEPKNS_5ShapeE(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %24, ptr noundef nonnull align 16 dereferenceable(372) %70, double %80, double %82, double %84, double %86, ptr noundef %78)
  call void @llvm.lifetime.start.p0(i64 48, ptr %27) #11
  call void @_ZN3JPH17ShapeCastSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(36) %27)
  %87 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %70, i32 0, i32 5
  %88 = load i8, ptr %87, align 8, !tbaa !13
  %89 = getelementptr inbounds %"class.JPH::ShapeCastSettings", ptr %27, i32 0, i32 1
  store i8 %88, ptr %89, align 16, !tbaa !36
  %90 = getelementptr inbounds %"class.JPH::ShapeCastSettings", ptr %27, i32 0, i32 2
  store i8 0, ptr %90, align 1, !tbaa !41
  %91 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %27, i32 0, i32 0
  store i8 0, ptr %91, align 16, !tbaa !42
  %92 = getelementptr inbounds %"class.JPH::ShapeCastSettings", ptr %27, i32 0, i32 3
  store i8 1, ptr %92, align 2, !tbaa !43
  %93 = getelementptr inbounds %"class.JPH::ShapeCastSettings", ptr %27, i32 0, i32 4
  store i8 0, ptr %93, align 1, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #11
  %94 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %70, i32 0, i32 12
  %95 = load float, ptr %94, align 16, !tbaa !45
  %96 = load float, ptr %22, align 4, !tbaa !9
  %97 = call noundef float @_ZSt4sqrtf(float noundef %96)
  %98 = fdiv float %95, %97
  store float %98, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #11
  %99 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %70, i32 0, i32 33
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 16 %99, i64 4, i1 false), !tbaa.struct !46
  %100 = load ptr, ptr %20, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.JPH::BodyID", ptr %30, i32 0, i32 0
  %102 = load i32, ptr %101, align 4
  call void @_ZN3JPH29IgnoreSingleBodyFilterChainedC2ENS_6BodyIDERKNS_10BodyFilterE(ptr noundef nonnull align 8 dereferenceable(24) %29, i32 %102, ptr noundef nonnull align 8 dereferenceable(8) %100)
  call void @llvm.lifetime.start.p0(i64 128, ptr %31) #11
  invoke void @_ZN3JPH16CharacterVirtual7ContactC2Ev(ptr noundef nonnull align 16 dereferenceable(123) %31)
          to label %103 unwind label %186

103:                                              ; preds = %75
  %104 = load float, ptr %28, align 4, !tbaa !9
  %105 = fadd float 1.000000e+00, %104
  %106 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %31, i32 0, i32 7
  store float %105, ptr %106, align 4, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #11
  %107 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %24)
          to label %108 unwind label %190

108:                                              ; preds = %103
  %109 = getelementptr inbounds %"class.JPH::Vec3", ptr %34, i32 0, i32 0
  %110 = getelementptr inbounds %union.anon, ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds { double, double }, ptr %110, i32 0, i32 0
  %112 = extractvalue { double, double } %107, 0
  store double %112, ptr %111, align 16
  %113 = getelementptr inbounds { double, double }, ptr %110, i32 0, i32 1
  %114 = extractvalue { double, double } %107, 1
  store double %114, ptr %113, align 8
  call void @llvm.lifetime.start.p0(i64 128, ptr %35) #11
  %115 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %70, i32 0, i32 2
  %116 = load ptr, ptr %115, align 16, !tbaa !52
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !11
  %117 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %70, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %117, i64 16, i1 false), !tbaa.struct !11
  %118 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !11
  %119 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %120 = load double, ptr %119, align 16
  %121 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %122 = load double, ptr %121, align 8
  %123 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %124 = load double, ptr %123, align 16
  %125 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %126 = load double, ptr %125, align 8
  %127 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %128 = load double, ptr %127, align 16
  %129 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %130 = load double, ptr %129, align 8
  invoke void @_ZN3JPH16CharacterVirtual20ContactCastCollectorC2EPNS_13PhysicsSystemEPKS0_NS_4Vec3ES6_RKNS_5ArrayINS0_10ContactKeyENS_16STLTempAllocatorIS8_EEEES6_RNS0_7ContactE(ptr noundef nonnull align 16 dereferenceable(120) %35, ptr noundef %116, ptr noundef %70, double %120, double %122, double %124, double %126, ptr noundef nonnull align 8 dereferenceable(32) %118, double %128, double %130, ptr noundef nonnull align 16 dereferenceable(123) %31)
          to label %131 unwind label %194

131:                                              ; preds = %108
  %132 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %31, i32 0, i32 7
  %133 = load float, ptr %132, align 4, !tbaa !48
  invoke void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE21ResetEarlyOutFractionEf(ptr noundef nonnull align 8 dereferenceable(24) %35, float noundef %133)
          to label %134 unwind label %198

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 144, ptr %39) #11
  %135 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %70, i32 0, i32 3
  %136 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %135)
          to label %137 unwind label %202

137:                                              ; preds = %134
  %138 = invoke { double, double } @_ZN3JPH4Vec34sOneEv()
          to label %139 unwind label %202

139:                                              ; preds = %137
  %140 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, i32 0, i32 0
  %141 = getelementptr inbounds %union.anon, ptr %140, i32 0, i32 0
  %142 = getelementptr inbounds { double, double }, ptr %141, i32 0, i32 0
  %143 = extractvalue { double, double } %138, 0
  store double %143, ptr %142, align 16
  %144 = getelementptr inbounds { double, double }, ptr %141, i32 0, i32 1
  %145 = extractvalue { double, double } %138, 1
  store double %145, ptr %144, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !11
  %146 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %147 = load double, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %149 = load double, ptr %148, align 8
  %150 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %151 = load double, ptr %150, align 16
  %152 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %153 = load double, ptr %152, align 8
  invoke void @_ZN3JPH10RShapeCastCI2NS_10ShapeCastTINS_4Vec3ENS_5Mat44ES0_EEEPKNS_5ShapeES2_RKS3_S2_(ptr noundef nonnull align 16 dereferenceable(144) %39, ptr noundef %136, double %147, double %149, ptr noundef nonnull align 16 dereferenceable(64) %24, double %151, double %153)
          to label %154 unwind label %202

154:                                              ; preds = %139
  %155 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %70, i32 0, i32 2
  %156 = load ptr, ptr %155, align 16, !tbaa !52
  %157 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem19GetNarrowPhaseQueryEv(ptr noundef nonnull align 16 dereferenceable(1172) %156)
          to label %158 unwind label %202

158:                                              ; preds = %154
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !11
  %159 = load ptr, ptr %18, align 8, !tbaa !5
  %160 = load ptr, ptr %19, align 8, !tbaa !5
  %161 = load ptr, ptr %21, align 8, !tbaa !5
  %162 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %163 = load double, ptr %162, align 16
  %164 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %165 = load double, ptr %164, align 8
  invoke void @_ZNK3JPH16NarrowPhaseQuery9CastShapeERKNS_10RShapeCastERKNS_17ShapeCastSettingsENS_4Vec3ERNS_18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 8 dereferenceable(16) %157, ptr noundef nonnull align 16 dereferenceable(144) %39, ptr noundef nonnull align 16 dereferenceable(36) %27, double %163, double %165, ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull align 8 dereferenceable(8) %160, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(12) %161)
          to label %166 unwind label %202

166:                                              ; preds = %158
  %167 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %70, i32 0, i32 4
  %168 = load ptr, ptr %167, align 16, !tbaa !53
  %169 = icmp ne ptr %168, null
  br i1 %169, label %170, label %206

170:                                              ; preds = %166
  invoke void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE10SetContextEPKNS_16TransformedShapeE(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef null)
          to label %171 unwind label %202

171:                                              ; preds = %170
  %172 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %70, i32 0, i32 4
  %173 = load ptr, ptr %172, align 16, !tbaa !53
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !11
  %174 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %175 = load double, ptr %174, align 16
  %176 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %177 = load double, ptr %176, align 8
  %178 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %179 = load double, ptr %178, align 16
  %180 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %181 = load double, ptr %180, align 8
  %182 = load ptr, ptr %173, align 8, !tbaa !54
  %183 = getelementptr inbounds ptr, ptr %182, i64 3
  %184 = load ptr, ptr %183, align 8
  invoke void %184(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef %70, ptr noundef nonnull align 16 dereferenceable(64) %24, double %175, double %177, ptr noundef nonnull align 16 dereferenceable(36) %27, double %179, double %181, ptr noundef nonnull align 8 dereferenceable(24) %35)
          to label %185 unwind label %202

185:                                              ; preds = %171
  br label %206

186:                                              ; preds = %75
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %32, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %33, align 4
  br label %420

190:                                              ; preds = %103
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %32, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %33, align 4
  br label %419

194:                                              ; preds = %108
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %32, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %33, align 4
  br label %418

198:                                              ; preds = %131
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %32, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %33, align 4
  br label %417

202:                                              ; preds = %210, %206, %171, %170, %158, %154, %139, %137, %134
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %32, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %33, align 4
  br label %416

206:                                              ; preds = %185, %166
  %207 = getelementptr inbounds %"class.JPH::CharacterVirtual::ContactKey", ptr %31, i32 0, i32 0
  %208 = invoke noundef zeroext i1 @_ZNK3JPH6BodyID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4) %207)
          to label %209 unwind label %202

209:                                              ; preds = %206
  br i1 %208, label %210, label %215

210:                                              ; preds = %209
  %211 = getelementptr inbounds %"class.JPH::CharacterVirtual::ContactKey", ptr %31, i32 0, i32 1
  %212 = invoke noundef zeroext i1 @_ZNK3JPH11CharacterID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4) %211)
          to label %213 unwind label %202

213:                                              ; preds = %210
  br i1 %212, label %214, label %215

214:                                              ; preds = %213
  store i1 false, ptr %12, align 1
  store i32 1, ptr %23, align 4
  br label %415

215:                                              ; preds = %213, %209
  %216 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %216, ptr align 16 %31, i64 123, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #11
  invoke void @_ZN3JPH16TransformedShapeC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %45)
          to label %217 unwind label %269

217:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #11
  %218 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %70, i32 0, i32 12
  %219 = load float, ptr %218, align 16, !tbaa !45
  store float %219, ptr %46, align 4, !tbaa !9
  %220 = load ptr, ptr %16, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %220, i32 0, i32 11
  %222 = load ptr, ptr %221, align 16, !tbaa !56
  %223 = icmp ne ptr %222, null
  br i1 %223, label %224, label %292

224:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 64, ptr %47) #11
  %225 = load ptr, ptr %16, align 8, !tbaa !5
  %226 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %225, i32 0, i32 11
  %227 = load ptr, ptr %226, align 16, !tbaa !56
  invoke void @_ZNK3JPH16CharacterVirtual24GetCenterOfMassTransformEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %47, ptr noundef nonnull align 16 dereferenceable(372) %227)
          to label %228 unwind label %273

228:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 64, ptr %48) #11
  %229 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %47)
          to label %230 unwind label %277

230:                                              ; preds = %228
  %231 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %232 = getelementptr inbounds %union.anon, ptr %231, i32 0, i32 0
  %233 = getelementptr inbounds { double, double }, ptr %232, i32 0, i32 0
  %234 = extractvalue { double, double } %229, 0
  store double %234, ptr %233, align 16
  %235 = getelementptr inbounds { double, double }, ptr %232, i32 0, i32 1
  %236 = extractvalue { double, double } %229, 1
  store double %236, ptr %235, align 8
  %237 = invoke { double, double } @_ZNK3JPH5Mat4413GetQuaternionEv(ptr noundef nonnull align 16 dereferenceable(64) %47)
          to label %238 unwind label %277

238:                                              ; preds = %230
  %239 = getelementptr inbounds %"class.JPH::Quat", ptr %50, i32 0, i32 0
  %240 = getelementptr inbounds %"class.JPH::Vec4", ptr %239, i32 0, i32 0
  %241 = getelementptr inbounds %union.anon.0, ptr %240, i32 0, i32 0
  %242 = getelementptr inbounds { double, double }, ptr %241, i32 0, i32 0
  %243 = extractvalue { double, double } %237, 0
  store double %243, ptr %242, align 16
  %244 = getelementptr inbounds { double, double }, ptr %241, i32 0, i32 1
  %245 = extractvalue { double, double } %237, 1
  store double %245, ptr %244, align 8
  %246 = load ptr, ptr %16, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %246, i32 0, i32 11
  %248 = load ptr, ptr %247, align 16, !tbaa !56
  %249 = invoke noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144) %248)
          to label %250 unwind label %277

250:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #11
  invoke void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %51)
          to label %251 unwind label %281

251:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #11
  call void @llvm.memset.p0.i64(ptr align 4 %52, i8 0, i64 8, i1 false)
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %52) #11
  %252 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %253 = load double, ptr %252, align 16
  %254 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %255 = load double, ptr %254, align 8
  %256 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %257 = load double, ptr %256, align 16
  %258 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %259 = load double, ptr %258, align 8
  invoke void @_ZN3JPH16TransformedShapeC2ENS_4Vec3ENS_4QuatEPKNS_5ShapeERKNS_6BodyIDERKNS_17SubShapeIDCreatorE(ptr noundef nonnull align 16 dereferenceable(64) %48, double %253, double %255, double %257, double %259, ptr noundef %249, ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(8) %52)
          to label %260 unwind label %285

260:                                              ; preds = %251
  %261 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH16TransformedShapeaSEOS0_(ptr noundef nonnull align 16 dereferenceable(64) %45, ptr noundef nonnull align 16 dereferenceable(64) %48) #11
  call void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %48) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %48) #11
  %262 = load ptr, ptr %16, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %262, i32 0, i32 11
  %264 = load ptr, ptr %263, align 16, !tbaa !56
  %265 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %264, i32 0, i32 12
  %266 = load float, ptr %265, align 16, !tbaa !45
  %267 = load float, ptr %46, align 4, !tbaa !9
  %268 = fadd float %267, %266
  store float %268, ptr %46, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 64, ptr %47) #11
  br label %305

269:                                              ; preds = %215
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %32, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %33, align 4
  br label %414

273:                                              ; preds = %224
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %32, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %33, align 4
  br label %291

277:                                              ; preds = %238, %230, %228
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %32, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %33, align 4
  br label %290

281:                                              ; preds = %250
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %32, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %33, align 4
  br label %289

285:                                              ; preds = %251
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %32, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #11
  br label %289

289:                                              ; preds = %285, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #11
  br label %290

290:                                              ; preds = %289, %277
  call void @llvm.lifetime.end.p0(i64 64, ptr %48) #11
  br label %291

291:                                              ; preds = %290, %273
  call void @llvm.lifetime.end.p0(i64 64, ptr %47) #11
  br label %413

292:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 64, ptr %53) #11
  %293 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %70, i32 0, i32 2
  %294 = load ptr, ptr %293, align 16, !tbaa !52
  %295 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH13PhysicsSystem16GetBodyInterfaceEv(ptr noundef nonnull align 16 dereferenceable(1172) %294)
          to label %296 unwind label %301

296:                                              ; preds = %292
  %297 = load ptr, ptr %16, align 8, !tbaa !5
  %298 = getelementptr inbounds %"class.JPH::CharacterVirtual::ContactKey", ptr %297, i32 0, i32 0
  invoke void @_ZNK3JPH13BodyInterface19GetTransformedShapeERKNS_6BodyIDE(ptr dead_on_unwind writable sret(%"class.JPH::TransformedShape") align 16 %53, ptr noundef nonnull align 8 dereferenceable(24) %295, ptr noundef nonnull align 4 dereferenceable(4) %298)
          to label %299 unwind label %301

299:                                              ; preds = %296
  %300 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH16TransformedShapeaSEOS0_(ptr noundef nonnull align 16 dereferenceable(64) %45, ptr noundef nonnull align 16 dereferenceable(64) %53) #11
  call void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %53) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %53) #11
  br label %305

301:                                              ; preds = %296, %292
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %32, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %53) #11
  br label %413

305:                                              ; preds = %299, %260
  call void @llvm.lifetime.start.p0(i64 528, ptr %54) #11
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EEC2Ev(ptr noundef nonnull align 16 dereferenceable(528) %54) #11
  %306 = load ptr, ptr %16, align 8, !tbaa !5
  %307 = getelementptr inbounds %"class.JPH::CharacterVirtual::ContactKey", ptr %306, i32 0, i32 2
  %308 = load ptr, ptr %16, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %308, i32 0, i32 4
  %310 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %309)
          to label %311 unwind label %359

311:                                              ; preds = %305
  %312 = getelementptr inbounds %"class.JPH::Vec3", ptr %55, i32 0, i32 0
  %313 = getelementptr inbounds %union.anon, ptr %312, i32 0, i32 0
  %314 = getelementptr inbounds { double, double }, ptr %313, i32 0, i32 0
  %315 = extractvalue { double, double } %310, 0
  store double %315, ptr %314, align 16
  %316 = getelementptr inbounds { double, double }, ptr %313, i32 0, i32 1
  %317 = extractvalue { double, double } %310, 1
  store double %317, ptr %316, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !11
  %318 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %319 = load double, ptr %318, align 16
  %320 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %321 = load double, ptr %320, align 8
  %322 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %323 = load double, ptr %322, align 16
  %324 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %325 = load double, ptr %324, align 8
  invoke void @_ZNK3JPH16TransformedShape17GetSupportingFaceERKNS_10SubShapeIDENS_4Vec3ES4_RNS_11StaticArrayIS4_Lj32EEE(ptr noundef nonnull align 16 dereferenceable(64) %45, ptr noundef nonnull align 4 dereferenceable(4) %307, double %319, double %321, double %323, double %325, ptr noundef nonnull align 16 dereferenceable(528) %54)
          to label %326 unwind label %359

326:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 1, ptr %57) #11
  store i8 0, ptr %57, align 1, !tbaa !57
  %327 = invoke noundef i32 @_ZNK3JPH11StaticArrayINS_4Vec3ELj32EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(528) %54)
          to label %328 unwind label %363

328:                                              ; preds = %326
  %329 = icmp uge i32 %327, 2
  br i1 %329, label %330, label %381

330:                                              ; preds = %328
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #11
  invoke void @_ZN3JPH20PolygonConvexSupportINS_11StaticArrayINS_4Vec3ELj32EEEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 16 dereferenceable(528) %54)
          to label %331 unwind label %367

331:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #11
  %332 = load float, ptr %46, align 4, !tbaa !9
  invoke void @_ZN3JPH15AddConvexRadiusINS_20PolygonConvexSupportINS_11StaticArrayINS_4Vec3ELj32EEEEEEC2ERKS5_f(ptr noundef nonnull align 8 dereferenceable(12) %59, ptr noundef nonnull align 8 dereferenceable(8) %58, float noundef %332)
          to label %333 unwind label %371

333:                                              ; preds = %331
  %334 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %70, i32 0, i32 3
  %335 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %334)
          to label %336 unwind label %371

336:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 64, ptr %60) #11
  invoke void @_ZNK3JPH5Mat4411GetRotationEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %60, ptr noundef nonnull align 16 dereferenceable(64) %24)
          to label %337 unwind label %375

337:                                              ; preds = %336
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %61, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !11
  %338 = invoke { double, double } @_ZN3JPH4Vec34sOneEv()
          to label %339 unwind label %375

339:                                              ; preds = %337
  %340 = getelementptr inbounds %"class.JPH::Vec3", ptr %62, i32 0, i32 0
  %341 = getelementptr inbounds %union.anon, ptr %340, i32 0, i32 0
  %342 = getelementptr inbounds { double, double }, ptr %341, i32 0, i32 0
  %343 = extractvalue { double, double } %338, 0
  store double %343, ptr %342, align 16
  %344 = getelementptr inbounds { double, double }, ptr %341, i32 0, i32 1
  %345 = extractvalue { double, double } %338, 1
  store double %345, ptr %344, align 8
  %346 = load ptr, ptr %16, align 8, !tbaa !5
  %347 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %346, i32 0, i32 7
  %348 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %349 = load double, ptr %348, align 16
  %350 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %351 = load double, ptr %350, align 8
  %352 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %353 = load double, ptr %352, align 16
  %354 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %355 = load double, ptr %354, align 8
  %356 = invoke noundef zeroext i1 @_ZN3JPHL35sCorrectFractionForCharacterPaddingINS_15AddConvexRadiusINS_20PolygonConvexSupportINS_11StaticArrayINS_4Vec3ELj32EEEEEEEEEbPKNS_5ShapeERKNS_5Mat44ES4_S4_RKT_Rf(ptr noundef %335, ptr noundef nonnull align 16 dereferenceable(64) %60, double %349, double %351, double %353, double %355, ptr noundef nonnull align 8 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(4) %347)
          to label %357 unwind label %375

357:                                              ; preds = %339
  %358 = zext i1 %356 to i8
  store i8 %358, ptr %57, align 1, !tbaa !57
  call void @llvm.lifetime.end.p0(i64 64, ptr %60) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #11
  br label %381

359:                                              ; preds = %311, %305
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %32, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %33, align 4
  br label %412

363:                                              ; preds = %326
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %32, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %33, align 4
  br label %411

367:                                              ; preds = %330
  %368 = landingpad { ptr, i32 }
          cleanup
  %369 = extractvalue { ptr, i32 } %368, 0
  store ptr %369, ptr %32, align 8
  %370 = extractvalue { ptr, i32 } %368, 1
  store i32 %370, ptr %33, align 4
  br label %380

371:                                              ; preds = %333, %331
  %372 = landingpad { ptr, i32 }
          cleanup
  %373 = extractvalue { ptr, i32 } %372, 0
  store ptr %373, ptr %32, align 8
  %374 = extractvalue { ptr, i32 } %372, 1
  store i32 %374, ptr %33, align 4
  br label %379

375:                                              ; preds = %339, %337, %336
  %376 = landingpad { ptr, i32 }
          cleanup
  %377 = extractvalue { ptr, i32 } %376, 0
  store ptr %377, ptr %32, align 8
  %378 = extractvalue { ptr, i32 } %376, 1
  store i32 %378, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %60) #11
  br label %379

379:                                              ; preds = %375, %371
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #11
  br label %380

380:                                              ; preds = %379, %367
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #11
  br label %411

381:                                              ; preds = %357, %328
  %382 = load i8, ptr %57, align 1, !tbaa !57, !range !58, !noundef !59
  %383 = trunc i8 %382 to i1
  br i1 %383, label %399, label %384

384:                                              ; preds = %381
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #11
  store float 0.000000e+00, ptr %63, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #11
  %385 = load ptr, ptr %16, align 8, !tbaa !5
  %386 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %385, i32 0, i32 7
  %387 = load float, ptr %386, align 4, !tbaa !48
  %388 = load float, ptr %28, align 4, !tbaa !9
  %389 = fsub float %387, %388
  store float %389, ptr %64, align 4, !tbaa !9
  %390 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(4) %64)
          to label %391 unwind label %395

391:                                              ; preds = %384
  %392 = load float, ptr %390, align 4, !tbaa !9
  %393 = load ptr, ptr %16, align 8, !tbaa !5
  %394 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %393, i32 0, i32 7
  store float %392, ptr %394, align 4, !tbaa !48
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #11
  br label %399

395:                                              ; preds = %384
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %32, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #11
  br label %411

399:                                              ; preds = %391, %381
  %400 = load ptr, ptr %16, align 8, !tbaa !5
  %401 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %400, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #11
  store float 1.000000e+00, ptr %65, align 4, !tbaa !9
  %402 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %401, ptr noundef nonnull align 4 dereferenceable(4) %65)
          to label %403 unwind label %407

403:                                              ; preds = %399
  %404 = load float, ptr %402, align 4, !tbaa !9
  %405 = load ptr, ptr %16, align 8, !tbaa !5
  %406 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %405, i32 0, i32 7
  store float %404, ptr %406, align 4, !tbaa !48
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #11
  store i1 true, ptr %12, align 1
  store i32 1, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #11
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EED2Ev(ptr noundef nonnull align 16 dereferenceable(528) %54) #11
  call void @llvm.lifetime.end.p0(i64 528, ptr %54) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #11
  call void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %45) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #11
  br label %415

407:                                              ; preds = %399
  %408 = landingpad { ptr, i32 }
          cleanup
  %409 = extractvalue { ptr, i32 } %408, 0
  store ptr %409, ptr %32, align 8
  %410 = extractvalue { ptr, i32 } %408, 1
  store i32 %410, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #11
  br label %411

411:                                              ; preds = %407, %395, %380, %363
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #11
  br label %412

412:                                              ; preds = %411, %359
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EED2Ev(ptr noundef nonnull align 16 dereferenceable(528) %54) #11
  call void @llvm.lifetime.end.p0(i64 528, ptr %54) #11
  br label %413

413:                                              ; preds = %412, %301, %291
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #11
  call void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %45) #11
  br label %414

414:                                              ; preds = %413, %269
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #11
  br label %416

415:                                              ; preds = %403, %214
  call void @llvm.lifetime.end.p0(i64 144, ptr %39) #11
  call void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(120) %35) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr %31) #11
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #11
  br label %421

416:                                              ; preds = %414, %202
  call void @llvm.lifetime.end.p0(i64 144, ptr %39) #11
  br label %417

417:                                              ; preds = %416, %198
  call void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(120) %35) #11
  br label %418

418:                                              ; preds = %417, %194
  call void @llvm.lifetime.end.p0(i64 128, ptr %35) #11
  br label %419

419:                                              ; preds = %418, %190
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #11
  br label %420

420:                                              ; preds = %419, %186
  call void @llvm.lifetime.end.p0(i64 128, ptr %31) #11
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  br label %423

421:                                              ; preds = %415, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  %422 = load i1, ptr %12, align 1
  ret i1 %422

423:                                              ; preds = %420
  %424 = load ptr, ptr %32, align 8
  %425 = load i32, ptr %33, align 4
  %426 = insertvalue { ptr, i32 } poison, ptr %424, 0
  %427 = insertvalue { ptr, i32 } %426, i32 %425, 1
  resume { ptr, i32 } %427
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH17ShapeCastSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(36)) unnamed_addr #9 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual20ContactCastCollectorC2EPNS_13PhysicsSystemEPKS0_NS_4Vec3ES6_RKNS_5ArrayINS0_10ContactKeyENS_16STLTempAllocatorIS8_EEEES6_RNS0_7ContactE(ptr noundef nonnull align 16 dereferenceable(120), ptr noundef, ptr noundef, double, double, double, double, ptr noundef nonnull align 8 dereferenceable(32), double, double, ptr noundef nonnull align 16 dereferenceable(123)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE21ResetEarlyOutFractionEf(ptr noundef nonnull align 8 dereferenceable(24), float noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH10RShapeCastCI2NS_10ShapeCastTINS_4Vec3ENS_5Mat44ES0_EEEPKNS_5ShapeES2_RKS3_S2_(ptr noundef nonnull align 16 dereferenceable(144), ptr noundef, double, double, ptr noundef nonnull align 16 dereferenceable(64), double, double) unnamed_addr #9 align 2

declare void @_ZNK3JPH16NarrowPhaseQuery9CastShapeERKNS_10RShapeCastERKNS_17ShapeCastSettingsENS_4Vec3ERNS_18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(144), ptr noundef nonnull align 16 dereferenceable(36), double, double, ptr noundef nonnull align 8 dereferenceable(24), 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)) #10

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16TransformedShapeC2ENS_4Vec3ENS_4QuatEPKNS_5ShapeERKNS_6BodyIDERKNS_17SubShapeIDCreatorE(ptr noundef nonnull align 16 dereferenceable(64), double, double, double, double, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH16TransformedShapeaSEOS0_(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #6 align 2

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

declare void @_ZNK3JPH13BodyInterface19GetTransformedShapeERKNS_6BodyIDE(ptr dead_on_unwind writable sret(%"class.JPH::TransformedShape") align 16, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #10

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH11StaticArrayINS_4Vec3ELj32EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(528)) #7 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3JPHL35sCorrectFractionForCharacterPaddingINS_15AddConvexRadiusINS_20PolygonConvexSupportINS_11StaticArrayINS_4Vec3ELj32EEEEEEEEEbPKNS_5ShapeERKNS_5Mat44ES4_S4_RKT_Rf(ptr noundef, ptr noundef nonnull align 16 dereferenceable(64), double, double, double, double, ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4)) #9

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat4411GetRotationEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64)) #4 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)) #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { 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, !30, i64 168}
!14 = !{!"_ZTSN3JPH16CharacterVirtualE", !15, i64 0, !29, i64 144, !6, i64 152, !6, i64 160, !30, i64 168, !10, i64 172, !19, i64 176, !19, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !19, i64 196, !10, i64 200, !10, i64 204, !31, i64 208, !10, i64 212, !10, i64 216, !21, i64 224, !21, i64 240, !32, i64 256, !21, i64 272, !33, i64 288, !19, i64 312, !34, i64 320, !10, i64 352, !31, i64 356, !28, i64 360, !25, i64 368}
!15 = !{!"_ZTSN3JPH13CharacterBaseE", !16, i64 8, !6, i64 16, !20, i64 24, !21, i64 32, !22, i64 48, !10, i64 64, !24, i64 68, !25, i64 72, !26, i64 76, !21, i64 80, !21, i64 96, !21, i64 112, !27, i64 128, !28, i64 136}
!16 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !17, i64 0}
!17 = !{!"_ZTSSt6atomicIjE", !18, i64 0}
!18 = !{!"_ZTSSt13__atomic_baseIjE", !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!21 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!22 = !{!"_ZTSN3JPH5PlaneE", !23, i64 0}
!23 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!24 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !7, i64 0}
!25 = !{!"_ZTSN3JPH6BodyIDE", !19, i64 0}
!26 = !{!"_ZTSN3JPH10SubShapeIDE", !19, i64 0}
!27 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !6, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSN3JPH11CharacterIDE", !19, i64 0}
!30 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"_ZTSN3JPH4QuatE", !23, i64 0}
!33 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEE", !28, i64 0, !28, i64 8, !6, i64 16}
!34 = !{!"_ZTSN3JPH12UnorderedMapINS_16CharacterVirtual10ContactKeyENS1_20ListenerContactValueENS_4HashIS2_EESt8equal_toIS2_EEE", !35, i64 0}
!35 = !{!"_ZTSN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !19, i64 16, !19, i64 20, !19, i64 24}
!36 = !{!37, !30, i64 32}
!37 = !{!"_ZTSN3JPH17ShapeCastSettingsE", !38, i64 0, !30, i64 32, !30, i64 33, !31, i64 34, !31, i64 35}
!38 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !39, i64 0, !40, i64 1, !10, i64 4, !10, i64 8, !21, i64 16}
!39 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !7, i64 0}
!40 = !{!"_ZTSN3JPH17ECollectFacesModeE", !7, i64 0}
!41 = !{!37, !30, i64 33}
!42 = !{!38, !39, i64 0}
!43 = !{!37, !31, i64 34}
!44 = !{!37, !31, i64 35}
!45 = !{!14, !10, i64 192}
!46 = !{i64 0, i64 4, !47}
!47 = !{!19, !19, i64 0}
!48 = !{!49, !10, i64 84}
!49 = !{!"_ZTSN3JPH16CharacterVirtual7ContactE", !50, i64 0, !21, i64 16, !21, i64 32, !21, i64 48, !21, i64 64, !10, i64 80, !10, i64 84, !51, i64 88, !31, i64 89, !6, i64 96, !28, i64 104, !6, i64 112, !31, i64 120, !31, i64 121, !31, i64 122}
!50 = !{!"_ZTSN3JPH16CharacterVirtual10ContactKeyE", !25, i64 0, !29, i64 4, !26, i64 8}
!51 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!52 = !{!15, !6, i64 16}
!53 = !{!14, !6, i64 160}
!54 = !{!55, !55, i64 0}
!55 = !{!"vtable pointer", !8, i64 0}
!56 = !{!49, !6, i64 96}
!57 = !{!31, !31, i64 0}
!58 = !{i8 0, i8 2}
!59 = !{}


; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::ShapeCastSettings" = type <{ %"class.JPH::CollideSettingsBase", i8, i8, i8, i8, [12 x i8] }>
%"class.JPH::CollideSettingsBase" = type { i8, i8, float, float, %"class.JPH::Vec3" }
%"class.JPH::IgnoreSingleBodyFilterChained" = type { %"class.JPH::BodyFilter", %"class.JPH::BodyID", ptr }
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"struct.JPH::CharacterVirtual::Contact" = type <{ %"class.JPH::CharacterVirtual::ContactKey", [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, i8, i8, [6 x i8], ptr, i64, ptr, i8, i8, i8, [5 x i8] }>
%"class.JPH::CharacterVirtual::ContactKey" = type { %"class.JPH::BodyID", %"class.JPH::CharacterID", %"class.JPH::SubShapeID" }
%"class.JPH::CharacterID" = type { i32 }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::CharacterVirtual::ContactCastCollector" = type <{ %"class.JPH::CollisionCollector.6", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", ptr, ptr, ptr, ptr, ptr, [8 x i8] }>
%"class.JPH::CollisionCollector.6" = type { ptr, float, ptr }
%"struct.JPH::RShapeCast" = type { %"struct.JPH::ShapeCastT.33" }
%"struct.JPH::ShapeCastT.33" = type { ptr, %"class.JPH::Vec3", %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::AABox" }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::TransformedShape" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::RefConst", %"class.JPH::Float3", %"class.JPH::BodyID", %"class.JPH::SubShapeIDCreator" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::SubShapeIDCreator" = type { %"class.JPH::SubShapeID", i32 }
%"class.JPH::StaticArray" = type { i32, [12 x i8], [32 x %"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage"] }
%"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage" = type { [16 x i8] }
%"struct.JPH::PolygonConvexSupport" = type { ptr }
%"struct.JPH::AddConvexRadius" = type <{ ptr, float, [4 x i8] }>

; 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 uwtable
declare dso_local noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144)) local_unnamed_addr #2 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) #3

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH11CharacterID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6BodyID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #5

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3JPH16CharacterVirtual23GetFirstContactForSweepENS_4Vec3ES1_RNS0_7ContactERKNS_5ArrayINS0_10ContactKeyENS_16STLTempAllocatorIS5_EEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(372) %0, double %1, double %2, double %3, double %4, ptr noundef nonnull align 16 dereferenceable(123) %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(12) %10) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Mat44", align 16
  %14 = alloca %"class.JPH::ShapeCastSettings", align 16
  %15 = alloca %"class.JPH::IgnoreSingleBodyFilterChained", align 8
  %16 = alloca %"struct.JPH::CharacterVirtual::Contact", align 16
  %17 = alloca %"class.JPH::CharacterVirtual::ContactCastCollector", align 16
  %18 = alloca %"struct.JPH::RShapeCast", align 16
  %19 = alloca %"class.JPH::TransformedShape", align 16
  %20 = alloca %"class.JPH::Mat44", align 16
  %21 = alloca %"class.JPH::TransformedShape", align 16
  %22 = alloca %"class.JPH::BodyID", align 4
  %23 = alloca %"class.JPH::SubShapeIDCreator", align 8
  %24 = alloca %"class.JPH::TransformedShape", align 16
  %25 = alloca %"class.JPH::StaticArray", align 16
  %26 = alloca %"struct.JPH::PolygonConvexSupport", align 8
  %27 = alloca %"struct.JPH::AddConvexRadius", align 8
  %28 = alloca %"class.JPH::Mat44", align 16
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  store double %3, ptr %12, align 16
  %32 = getelementptr inbounds i8, ptr %12, i64 8
  store double %4, ptr %32, align 8
  %33 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %34 = fcmp olt float %33, 0x3E45798EE0000000
  br i1 %34, label %168, label %35

35:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #10
  %36 = getelementptr inbounds i8, ptr %0, i64 256
  %.sroa.034.0.copyload = load double, ptr %36, align 16
  %.sroa.235.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 264
  %.sroa.235.0.copyload = load double, ptr %.sroa.235.0..sroa_idx, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %0, i64 24
  %38 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %37)
  call void @_ZNK3JPH16CharacterVirtual24GetCenterOfMassTransformENS_4Vec3ENS_4QuatEPKNS_5ShapeE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(372) %0, double %1, double %2, double %.sroa.034.0.copyload, double %.sroa.235.0.copyload, ptr noundef %38)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #10
  call void @_ZN3JPH17ShapeCastSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(36) %14)
  %39 = getelementptr inbounds i8, ptr %0, i64 168
  %40 = load i8, ptr %39, align 8, !tbaa !8
  %41 = getelementptr inbounds i8, ptr %14, i64 32
  store i8 %40, ptr %41, align 16, !tbaa !33
  %42 = getelementptr inbounds i8, ptr %14, i64 33
  store i8 0, ptr %42, align 1, !tbaa !38
  store i8 0, ptr %14, align 16, !tbaa !39
  %43 = getelementptr inbounds i8, ptr %14, i64 34
  store i8 1, ptr %43, align 2, !tbaa !40
  %44 = getelementptr inbounds i8, ptr %14, i64 35
  store i8 0, ptr %44, align 1, !tbaa !41
  %45 = getelementptr inbounds i8, ptr %0, i64 192
  %46 = load float, ptr %45, align 16, !tbaa !42
  %47 = call noundef float @_ZSt4sqrtf(float noundef %33)
  %48 = fdiv float %46, %47
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #10
  %49 = getelementptr inbounds i8, ptr %0, i64 368
  %.sroa.031.0.copyload = load i32, ptr %49, align 16, !tbaa !43
  call void @_ZN3JPH29IgnoreSingleBodyFilterChainedC2ENS_6BodyIDERKNS_10BodyFilterE(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 %.sroa.031.0.copyload, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %16) #10
  invoke void @_ZN3JPH16CharacterVirtual7ContactC2Ev(ptr noundef nonnull align 16 dereferenceable(123) %16)
          to label %50 unwind label %77

50:                                               ; preds = %35
  %51 = fadd float %48, 1.000000e+00
  %52 = getelementptr inbounds i8, ptr %16, i64 84
  store float %51, ptr %52, align 4, !tbaa !44
  %53 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %13)
          to label %54 unwind label %79

54:                                               ; preds = %50
  %55 = extractvalue { double, double } %53, 0
  %56 = extractvalue { double, double } %53, 1
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %17) #10
  %57 = getelementptr inbounds i8, ptr %0, i64 16
  %58 = load ptr, ptr %57, align 16, !tbaa !48
  %.sroa.026.0.copyload = load double, ptr %12, align 16
  %.sroa.227.0.copyload = load double, ptr %32, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.024.0.copyload = load double, ptr %59, align 16
  %.sroa.225.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  %.sroa.225.0.copyload = load double, ptr %.sroa.225.0..sroa_idx, align 8, !tbaa !5
  call void @_ZN3JPH16CharacterVirtual20ContactCastCollectorC2EPNS_13PhysicsSystemEPKS0_NS_4Vec3ES6_RKNS_5ArrayINS0_10ContactKeyENS_16STLTempAllocatorIS8_EEEES6_RNS0_7ContactE(ptr noundef nonnull align 16 dereferenceable(120) %17, ptr noundef %58, ptr noundef nonnull %0, double %.sroa.026.0.copyload, double %.sroa.227.0.copyload, double %.sroa.024.0.copyload, double %.sroa.225.0.copyload, ptr noundef nonnull align 8 dereferenceable(32) %6, double %55, double %56, ptr noundef nonnull align 16 dereferenceable(123) %16)
  %60 = load float, ptr %52, align 4, !tbaa !44
  call void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE21ResetEarlyOutFractionEf(ptr noundef nonnull align 8 dereferenceable(24) %17, float noundef %60)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %18) #10
  %61 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %37)
  %62 = invoke { double, double } @_ZN3JPH4Vec34sOneEv()
          to label %63 unwind label %81

63:                                               ; preds = %54
  %64 = extractvalue { double, double } %62, 0
  %65 = extractvalue { double, double } %62, 1
  %.sroa.018.0.copyload = load double, ptr %12, align 16
  %.sroa.219.0.copyload = load double, ptr %32, align 8, !tbaa !5
  invoke void @_ZN3JPH10RShapeCastCI2NS_10ShapeCastTINS_4Vec3ENS_5Mat44ES0_EEEPKNS_5ShapeES2_RKS3_S2_(ptr noundef nonnull align 16 dereferenceable(144) %18, ptr noundef %61, double %64, double %65, ptr noundef nonnull align 16 dereferenceable(64) %13, double %.sroa.018.0.copyload, double %.sroa.219.0.copyload)
          to label %66 unwind label %81

66:                                               ; preds = %63
  %67 = load ptr, ptr %57, align 16, !tbaa !48
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem19GetNarrowPhaseQueryEv(ptr noundef nonnull align 16 dereferenceable(1172) %67)
  invoke void @_ZNK3JPH16NarrowPhaseQuery9CastShapeERKNS_10RShapeCastERKNS_17ShapeCastSettingsENS_4Vec3ERNS_18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 16 dereferenceable(144) %18, ptr noundef nonnull align 16 dereferenceable(36) %14, double %55, double %56, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(12) %10)
          to label %69 unwind label %81

69:                                               ; preds = %66
  %70 = getelementptr inbounds i8, ptr %0, i64 160
  %71 = load ptr, ptr %70, align 16, !tbaa !49
  %.not = icmp eq ptr %71, null
  br i1 %.not, label %83, label %72

72:                                               ; preds = %69
  call void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE10SetContextEPKNS_16TransformedShapeE(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef null)
  %73 = load ptr, ptr %70, align 16, !tbaa !49
  %.sroa.014.0.copyload = load double, ptr %12, align 16
  %.sroa.215.0.copyload = load double, ptr %32, align 8, !tbaa !5
  %74 = load ptr, ptr %73, align 8, !tbaa !50
  %75 = getelementptr inbounds i8, ptr %74, i64 24
  %76 = load ptr, ptr %75, align 8
  invoke void %76(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull %0, ptr noundef nonnull align 16 dereferenceable(64) %13, double %.sroa.014.0.copyload, double %.sroa.215.0.copyload, ptr noundef nonnull align 16 dereferenceable(36) %14, double %55, double %56, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %83 unwind label %81

77:                                               ; preds = %35
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %167

79:                                               ; preds = %50
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %167

81:                                               ; preds = %72, %66, %63, %54
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %166

83:                                               ; preds = %72, %69
  %84 = call noundef zeroext i1 @_ZNK3JPH6BodyID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4) %16)
  br i1 %84, label %85, label %88

85:                                               ; preds = %83
  %86 = getelementptr inbounds i8, ptr %16, i64 4
  %87 = call noundef zeroext i1 @_ZNK3JPH11CharacterID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4) %86)
  br i1 %87, label %165, label %88

88:                                               ; preds = %85, %83
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(123) %5, ptr noundef nonnull align 16 dereferenceable(123) %16, i64 123, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #10
  invoke void @_ZN3JPH16TransformedShapeC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %19)
          to label %89 unwind label %112

89:                                               ; preds = %88
  %90 = load float, ptr %45, align 16, !tbaa !42
  %91 = getelementptr inbounds i8, ptr %5, i64 96
  %92 = load ptr, ptr %91, align 16, !tbaa !52
  %.not75 = icmp eq ptr %92, null
  br i1 %.not75, label %122, label %93

93:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #10
  invoke void @_ZNK3JPH16CharacterVirtual24GetCenterOfMassTransformEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %20, ptr noundef nonnull align 16 dereferenceable(372) %92)
          to label %94 unwind label %114

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #10
  %95 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %20)
          to label %96 unwind label %116

96:                                               ; preds = %94
  %97 = extractvalue { double, double } %95, 0
  %98 = extractvalue { double, double } %95, 1
  %99 = invoke { double, double } @_ZNK3JPH5Mat4413GetQuaternionEv(ptr noundef nonnull align 16 dereferenceable(64) %20)
          to label %100 unwind label %116

100:                                              ; preds = %96
  %101 = load ptr, ptr %91, align 16, !tbaa !52
  %102 = invoke noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144) %101)
          to label %103 unwind label %116

103:                                              ; preds = %100
  %104 = extractvalue { double, double } %99, 1
  %105 = extractvalue { double, double } %99, 0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #10
  call void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #10
  store i64 0, ptr %23, align 8
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %23) #10
  invoke void @_ZN3JPH16TransformedShapeC2ENS_4Vec3ENS_4QuatEPKNS_5ShapeERKNS_6BodyIDERKNS_17SubShapeIDCreatorE(ptr noundef nonnull align 16 dereferenceable(64) %21, double %97, double %98, double %105, double %104, ptr noundef %102, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %106 unwind label %118

106:                                              ; preds = %103
  %107 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH16TransformedShapeaSEOS0_(ptr noundef nonnull align 16 dereferenceable(64) %19, ptr noundef nonnull align 16 dereferenceable(64) %21) #10
  call void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #10
  %108 = load ptr, ptr %91, align 16, !tbaa !52
  %109 = getelementptr inbounds i8, ptr %108, i64 192
  %110 = load float, ptr %109, align 16, !tbaa !42
  %111 = fadd float %90, %110
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #10
  br label %129

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

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

116:                                              ; preds = %100, %96, %94
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %120

118:                                              ; preds = %103
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #10
  br label %120

120:                                              ; preds = %118, %116
  %.pn = phi { ptr, i32 } [ %119, %118 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #10
  br label %121

121:                                              ; preds = %120, %114
  %.pn.pn = phi { ptr, i32 } [ %.pn, %120 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #10
  br label %163

122:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %24) #10
  %123 = load ptr, ptr %57, align 16, !tbaa !48
  %124 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH13PhysicsSystem16GetBodyInterfaceEv(ptr noundef nonnull align 16 dereferenceable(1172) %123)
  invoke void @_ZNK3JPH13BodyInterface19GetTransformedShapeERKNS_6BodyIDE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::TransformedShape") align 16 %24, ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %125 unwind label %127

125:                                              ; preds = %122
  %126 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH16TransformedShapeaSEOS0_(ptr noundef nonnull align 16 dereferenceable(64) %19, ptr noundef nonnull align 16 dereferenceable(64) %24) #10
  call void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %24) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #10
  br label %129

127:                                              ; preds = %122
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #10
  br label %163

129:                                              ; preds = %125, %106
  %.073 = phi float [ %111, %106 ], [ %90, %125 ]
  call void @llvm.lifetime.start.p0(i64 528, ptr nonnull %25) #10
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EEC2Ev(ptr noundef nonnull align 16 dereferenceable(528) %25) #10
  %130 = getelementptr inbounds i8, ptr %5, i64 48
  %131 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %130)
          to label %132 unwind label %149

132:                                              ; preds = %129
  %133 = getelementptr inbounds i8, ptr %5, i64 8
  %134 = extractvalue { double, double } %131, 0
  %135 = extractvalue { double, double } %131, 1
  invoke void @_ZNK3JPH16TransformedShape17GetSupportingFaceERKNS_10SubShapeIDENS_4Vec3ES4_RNS_11StaticArrayIS4_Lj32EEE(ptr noundef nonnull align 16 dereferenceable(64) %19, ptr noundef nonnull align 4 dereferenceable(4) %133, double %134, double %135, double %55, double %56, ptr noundef nonnull align 16 dereferenceable(528) %25)
          to label %136 unwind label %149

136:                                              ; preds = %132
  %137 = call noundef i32 @_ZNK3JPH11StaticArrayINS_4Vec3ELj32EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(528) %25)
  %138 = icmp ugt i32 %137, 1
  br i1 %138, label %139, label %.critedge

139:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #10
  call void @_ZN3JPH20PolygonConvexSupportINS_11StaticArrayINS_4Vec3ELj32EEEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 16 dereferenceable(528) %25)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #10
  call void @_ZN3JPH15AddConvexRadiusINS_20PolygonConvexSupportINS_11StaticArrayINS_4Vec3ELj32EEEEEEC2ERKS5_f(ptr noundef nonnull align 8 dereferenceable(12) %27, ptr noundef nonnull align 8 dereferenceable(8) %26, float noundef %.073)
  %140 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %37)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %28) #10
  invoke void @_ZNK3JPH5Mat4411GetRotationEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %28, ptr noundef nonnull align 16 dereferenceable(64) %13)
          to label %141 unwind label %151

141:                                              ; preds = %139
  %.sroa.01.0.copyload = load double, ptr %12, align 16
  %.sroa.22.0.copyload = load double, ptr %32, align 8, !tbaa !5
  %142 = invoke { double, double } @_ZN3JPH4Vec34sOneEv()
          to label %143 unwind label %151

143:                                              ; preds = %141
  %144 = extractvalue { double, double } %142, 0
  %145 = extractvalue { double, double } %142, 1
  %146 = getelementptr inbounds i8, ptr %5, i64 84
  %147 = invoke noundef zeroext i1 @_ZN3JPHL35sCorrectFractionForCharacterPaddingINS_15AddConvexRadiusINS_20PolygonConvexSupportINS_11StaticArrayINS_4Vec3ELj32EEEEEEEEEbPKNS_5ShapeERKNS_5Mat44ES4_S4_RKT_Rf(ptr noundef %140, ptr noundef nonnull align 16 dereferenceable(64) %28, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload, double %144, double %145, ptr noundef nonnull align 8 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(4) %146)
          to label %148 unwind label %151

148:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %28) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #10
  br i1 %147, label %158, label %.critedge

149:                                              ; preds = %132, %129
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %162

151:                                              ; preds = %143, %141, %139
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %28) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #10
  br label %162

.critedge:                                        ; preds = %136, %148
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #10
  store float 0.000000e+00, ptr %29, align 4, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #10
  %153 = getelementptr inbounds i8, ptr %5, i64 84
  %154 = load float, ptr %153, align 4, !tbaa !44
  %155 = fsub float %154, %48
  store float %155, ptr %30, align 4, !tbaa !53
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %157 = load float, ptr %156, align 4, !tbaa !53
  store float %157, ptr %153, align 4, !tbaa !44
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #10
  br label %158

158:                                              ; preds = %.critedge, %148
  %159 = getelementptr inbounds i8, ptr %5, i64 84
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #10
  store float 1.000000e+00, ptr %31, align 4, !tbaa !53
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %159, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %161 = load float, ptr %160, align 4, !tbaa !53
  store float %161, ptr %159, align 4, !tbaa !44
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #10
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EED2Ev(ptr noundef nonnull align 16 dereferenceable(528) %25) #10
  call void @llvm.lifetime.end.p0(i64 528, ptr nonnull %25) #10
  call void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %19) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #10
  br label %165

162:                                              ; preds = %151, %149
  %.pn78 = phi { ptr, i32 } [ %152, %151 ], [ %150, %149 ]
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EED2Ev(ptr noundef nonnull align 16 dereferenceable(528) %25) #10
  call void @llvm.lifetime.end.p0(i64 528, ptr nonnull %25) #10
  br label %163

163:                                              ; preds = %162, %127, %121
  %.pn78.pn = phi { ptr, i32 } [ %.pn78, %162 ], [ %.pn.pn, %121 ], [ %128, %127 ]
  call void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %19) #10
  br label %164

164:                                              ; preds = %163, %112
  %.pn78.pn.pn = phi { ptr, i32 } [ %.pn78.pn, %163 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #10
  br label %166

165:                                              ; preds = %85, %158
  %.0 = phi i1 [ true, %158 ], [ false, %85 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %18) #10
  call void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(120) %17) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %16) #10
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #10
  br label %168

166:                                              ; preds = %164, %81
  %.pn78.pn.pn.pn = phi { ptr, i32 } [ %.pn78.pn.pn, %164 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %18) #10
  call void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(120) %17) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %17) #10
  br label %167

167:                                              ; preds = %79, %166, %77
  %.pn78.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %78, %77 ], [ %.pn78.pn.pn.pn, %166 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %16) #10
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #10
  resume { ptr, i32 } %.pn78.pn.pn.pn.pn.pn

168:                                              ; preds = %11, %165
  %.1 = phi i1 [ %.0, %165 ], [ false, %11 ]
  ret i1 %.1
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual20ContactCastCollectorC2EPNS_13PhysicsSystemEPKS0_NS_4Vec3ES6_RKNS_5ArrayINS0_10ContactKeyENS_16STLTempAllocatorIS8_EEEES6_RNS0_7ContactE(ptr noundef nonnull align 16 dereferenceable(120), ptr noundef, ptr noundef, double, double, double, double, ptr noundef nonnull align 8 dereferenceable(32), double, double, ptr noundef nonnull align 16 dereferenceable(123)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE21ResetEarlyOutFractionEf(ptr noundef nonnull align 8 dereferenceable(24), float noundef) local_unnamed_addr #5 align 2

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

declare void @_ZNK3JPH16NarrowPhaseQuery9CastShapeERKNS_10RShapeCastERKNS_17ShapeCastSettingsENS_4Vec3ERNS_18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(144), ptr noundef nonnull align 16 dereferenceable(36), double, double, ptr noundef nonnull align 8 dereferenceable(24), 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)) local_unnamed_addr #9

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEE10SetContextEPKNS_16TransformedShapeE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16TransformedShapeC2ENS_4Vec3ENS_4QuatEPKNS_5ShapeERKNS_6BodyIDERKNS_17SubShapeIDCreatorE(ptr noundef nonnull align 16 dereferenceable(64), double, double, double, double, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH16TransformedShapeaSEOS0_(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #5 align 2

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

declare void @_ZNK3JPH13BodyInterface19GetTransformedShapeERKNS_6BodyIDE(ptr dead_on_unwind writable sret(%"class.JPH::TransformedShape") align 16, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #9

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3JPHL35sCorrectFractionForCharacterPaddingINS_15AddConvexRadiusINS_20PolygonConvexSupportINS_11StaticArrayINS_4Vec3ELj32EEEEEEEEEbPKNS_5ShapeERKNS_5Mat44ES4_S4_RKT_Rf(ptr noundef, ptr noundef nonnull align 16 dereferenceable(64), double, double, double, double, ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #8

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !27, i64 168}
!9 = !{!"_ZTSN3JPH16CharacterVirtualE", !10, i64 0, !26, i64 144, !15, i64 152, !15, i64 160, !27, i64 168, !20, i64 172, !14, i64 176, !14, i64 180, !20, i64 184, !20, i64 188, !20, i64 192, !14, i64 196, !20, i64 200, !20, i64 204, !28, i64 208, !20, i64 212, !20, i64 216, !17, i64 224, !17, i64 240, !29, i64 256, !17, i64 272, !30, i64 288, !14, i64 312, !31, i64 320, !20, i64 352, !28, i64 356, !25, i64 360, !22, i64 368}
!10 = !{!"_ZTSN3JPH13CharacterBaseE", !11, i64 8, !15, i64 16, !16, i64 24, !17, i64 32, !18, i64 48, !20, i64 64, !21, i64 68, !22, i64 72, !23, i64 76, !17, i64 80, !17, i64 96, !17, i64 112, !24, i64 128, !25, i64 136}
!11 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !12, i64 0}
!12 = !{!"_ZTSSt6atomicIjE", !13, i64 0}
!13 = !{!"_ZTSSt13__atomic_baseIjE", !14, i64 0}
!14 = !{!"int", !6, i64 0}
!15 = !{!"any pointer", !6, i64 0}
!16 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !15, i64 0}
!17 = !{!"_ZTSN3JPH4Vec3E", !6, i64 0}
!18 = !{!"_ZTSN3JPH5PlaneE", !19, i64 0}
!19 = !{!"_ZTSN3JPH4Vec4E", !6, i64 0}
!20 = !{!"float", !6, i64 0}
!21 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !6, i64 0}
!22 = !{!"_ZTSN3JPH6BodyIDE", !14, i64 0}
!23 = !{!"_ZTSN3JPH10SubShapeIDE", !14, i64 0}
!24 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !15, i64 0}
!25 = !{!"long", !6, i64 0}
!26 = !{!"_ZTSN3JPH11CharacterIDE", !14, i64 0}
!27 = !{!"_ZTSN3JPH13EBackFaceModeE", !6, i64 0}
!28 = !{!"bool", !6, i64 0}
!29 = !{!"_ZTSN3JPH4QuatE", !19, i64 0}
!30 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !15, i64 16}
!31 = !{!"_ZTSN3JPH12UnorderedMapINS_16CharacterVirtual10ContactKeyENS1_20ListenerContactValueENS_4HashIS2_EESt8equal_toIS2_EEE", !32, i64 0}
!32 = !{!"_ZTSN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EEE", !15, i64 0, !15, i64 8, !14, i64 16, !14, i64 20, !14, i64 24}
!33 = !{!34, !27, i64 32}
!34 = !{!"_ZTSN3JPH17ShapeCastSettingsE", !35, i64 0, !27, i64 32, !27, i64 33, !28, i64 34, !28, i64 35}
!35 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !36, i64 0, !37, i64 1, !20, i64 4, !20, i64 8, !17, i64 16}
!36 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !6, i64 0}
!37 = !{!"_ZTSN3JPH17ECollectFacesModeE", !6, i64 0}
!38 = !{!34, !27, i64 33}
!39 = !{!35, !36, i64 0}
!40 = !{!34, !28, i64 34}
!41 = !{!34, !28, i64 35}
!42 = !{!9, !20, i64 192}
!43 = !{!14, !14, i64 0}
!44 = !{!45, !20, i64 84}
!45 = !{!"_ZTSN3JPH16CharacterVirtual7ContactE", !46, i64 0, !17, i64 16, !17, i64 32, !17, i64 48, !17, i64 64, !20, i64 80, !20, i64 84, !47, i64 88, !28, i64 89, !15, i64 96, !25, i64 104, !15, i64 112, !28, i64 120, !28, i64 121, !28, i64 122}
!46 = !{!"_ZTSN3JPH16CharacterVirtual10ContactKeyE", !22, i64 0, !26, i64 4, !23, i64 8}
!47 = !{!"_ZTSN3JPH11EMotionTypeE", !6, i64 0}
!48 = !{!10, !15, i64 16}
!49 = !{!9, !15, i64 160}
!50 = !{!51, !51, i64 0}
!51 = !{!"vtable pointer", !7, i64 0}
!52 = !{!45, !15, i64 96}
!53 = !{!20, !20, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass