; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Vehicle (VehicleCollisionTester)

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

%"class.JPH::DefaultBroadPhaseLayerFilter" = type <{ %"class.JPH::BroadPhaseLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::DefaultObjectLayerFilter" = type <{ %"class.JPH::ObjectLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::ObjectLayerFilter" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::IgnoreSingleBodyFilter" = type <{ %"class.JPH::BodyFilter", %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::SphereShape" = type { %"class.JPH::ConvexShape.base", float }
%"class.JPH::ConvexShape.base" = type <{ %"class.JPH::Shape.base", [6 x i8], %"class.JPH::RefConst.28", float }>
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.27", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.27" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst.28" = type { ptr }
%"struct.JPH::RShapeCast" = type { %"struct.JPH::ShapeCastT" }
%"struct.JPH::ShapeCastT" = type { ptr, %"class.JPH::Vec3", %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::AABox" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.29 }
%union.anon.29 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"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.MyCollector.30 = type <{ %"class.JPH::CollisionCollector.31", ptr, ptr, [8 x i8], %"class.JPH::Vec3", float, [4 x i8], ptr, %"class.JPH::SubShapeID", [12 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::CollisionCollector.31" = type { ptr, float, ptr }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::VehicleCollisionTester" = type <{ ptr, %"class.JPH::RefTarget", [4 x i8], ptr, ptr, ptr, i16, [6 x i8] }>
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"class.JPH::VehicleCollisionTesterCastSphere" = type <{ %"class.JPH::VehicleCollisionTester.base", [2 x i8], float, %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::VehicleCollisionTester.base" = type <{ ptr, %"class.JPH::RefTarget", [4 x i8], ptr, ptr, ptr, i16 }>
%"class.JPH::WheelSettings" = type <{ %"class.JPH::SerializableObject", %"class.JPH::RefTarget.25", [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, %"class.JPH::SpringSettings", float, float, i8, [15 x i8] }>
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.25" = type { %"struct.std::atomic" }
%"class.JPH::SpringSettings" = type { i8, %union.anon.26, float }
%union.anon.26 = type { float }

; 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: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH5Wheel11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(404)) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem25GetNarrowPhaseQueryNoLockEv(ptr noundef nonnull align 16 dereferenceable(1172)) #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) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #2 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #7

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3JPH32VehicleCollisionTesterCastSphere7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_Rf(ptr noundef nonnull align 16 dereferenceable(68) %0, ptr noundef nonnull align 16 dereferenceable(1172) %1, ptr noundef nonnull align 16 dereferenceable(408) %2, i32 noundef %3, double %4, double %5, double %6, double %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %13) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %15 = alloca i1, align 1
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca %"class.JPH::IgnoreSingleBodyFilter", align 8
  %35 = alloca ptr, align 8
  %36 = alloca %"class.JPH::SphereShape", align 8
  %37 = alloca ptr, align 8
  %38 = alloca float, align 4
  %39 = alloca float, align 4
  %40 = alloca %"struct.JPH::RShapeCast", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Mat44", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::ShapeCastSettings", align 16
  %46 = alloca %class.MyCollector.30, align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::ShapeFilter", align 8
  %50 = alloca i32, align 4
  %51 = alloca float, align 4
  %52 = alloca float, align 4
  %53 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  store double %4, ptr %53, align 16
  %54 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  store double %5, ptr %54, align 8
  %55 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  store double %6, ptr %55, align 16
  %56 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  store double %7, ptr %56, align 8
  store ptr %0, ptr %18, align 8, !tbaa !5
  store ptr %1, ptr %19, align 8, !tbaa !5
  store ptr %2, ptr %20, align 8, !tbaa !5
  store i32 %3, ptr %21, align 4, !tbaa !9
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  store ptr %12, ptr %26, align 8, !tbaa !5
  store ptr %13, ptr %27, align 8, !tbaa !5
  %57 = load ptr, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #11
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %57, i32 0, i32 6
  %60 = load i16, ptr %59, align 8, !tbaa !11
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %28, ptr noundef nonnull align 16 dereferenceable(1172) %58, i16 noundef zeroext %60)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #11
  %61 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %57, i32 0, i32 3
  %62 = load ptr, ptr %61, align 16, !tbaa !17
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %67

64:                                               ; preds = %14
  %65 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %57, i32 0, i32 3
  %66 = load ptr, ptr %65, align 16, !tbaa !17
  br label %68

67:                                               ; preds = %14
  br label %68

68:                                               ; preds = %67, %64
  %69 = phi ptr [ %66, %64 ], [ %28, %67 ]
  store ptr %69, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #11
  %70 = load ptr, ptr %19, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %57, i32 0, i32 6
  %72 = load i16, ptr %71, align 8, !tbaa !11
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %30, ptr noundef nonnull align 16 dereferenceable(1172) %70, i16 noundef zeroext %72)
          to label %73 unwind label %184

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #11
  %74 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %57, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !18
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %80

77:                                               ; preds = %73
  %78 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %57, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !18
  br label %81

80:                                               ; preds = %73
  br label %81

81:                                               ; preds = %80, %77
  %82 = phi ptr [ %79, %77 ], [ %30, %80 ]
  store ptr %82, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #11
  %83 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZN3JPH22IgnoreSingleBodyFilterC2ERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(4) %83)
          to label %84 unwind label %188

84:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #11
  %85 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %57, i32 0, i32 5
  %86 = load ptr, ptr %85, align 16, !tbaa !19
  %87 = icmp ne ptr %86, null
  br i1 %87, label %88, label %91

88:                                               ; preds = %84
  %89 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %57, i32 0, i32 5
  %90 = load ptr, ptr %89, align 16, !tbaa !19
  br label %92

91:                                               ; preds = %84
  br label %92

92:                                               ; preds = %91, %88
  %93 = phi ptr [ %90, %88 ], [ %34, %91 ]
  store ptr %93, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %36) #11
  %94 = getelementptr inbounds %"class.JPH::VehicleCollisionTesterCastSphere", ptr %57, i32 0, i32 2
  %95 = load float, ptr %94, align 4, !tbaa !20
  invoke void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48) %36, float noundef %95, ptr noundef null)
          to label %96 unwind label %192

96:                                               ; preds = %92
  %97 = getelementptr inbounds i8, ptr %36, i64 8
  invoke void @_ZNK3JPH9RefTargetINS_5ShapeEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4) %97)
          to label %98 unwind label %196

98:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #11
  %99 = load ptr, ptr %20, align 8, !tbaa !5
  %100 = load i32, ptr %21, align 4, !tbaa !9
  %101 = invoke noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408) %99, i32 noundef %100)
          to label %102 unwind label %200

102:                                              ; preds = %98
  %103 = invoke noundef ptr @_ZNK3JPH5Wheel11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(404) %101)
          to label %104 unwind label %200

104:                                              ; preds = %102
  store ptr %103, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #11
  %105 = load ptr, ptr %37, align 8, !tbaa !5
  %106 = getelementptr inbounds %"class.JPH::WheelSettings", ptr %105, i32 0, i32 13
  %107 = load float, ptr %106, align 8, !tbaa !24
  store float %107, ptr %38, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #11
  %108 = load ptr, ptr %37, align 8, !tbaa !5
  %109 = getelementptr inbounds %"class.JPH::WheelSettings", ptr %108, i32 0, i32 10
  %110 = load float, ptr %109, align 4, !tbaa !32
  %111 = load float, ptr %38, align 4, !tbaa !31
  %112 = fadd float %110, %111
  %113 = getelementptr inbounds %"class.JPH::VehicleCollisionTesterCastSphere", ptr %57, i32 0, i32 2
  %114 = load float, ptr %113, align 4, !tbaa !20
  %115 = fsub float %112, %114
  store float %115, ptr %39, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 144, ptr %40) #11
  %116 = invoke { double, double } @_ZN3JPH4Vec34sOneEv()
          to label %117 unwind label %204

117:                                              ; preds = %104
  %118 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %119 = getelementptr inbounds %union.anon, ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 0
  %121 = extractvalue { double, double } %116, 0
  store double %121, ptr %120, align 16
  %122 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 1
  %123 = extractvalue { double, double } %116, 1
  store double %123, ptr %122, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %42) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !33
  %124 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %125 = load double, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %127 = load double, ptr %126, align 8
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %42, double %125, double %127)
          to label %128 unwind label %208

128:                                              ; preds = %117
  %129 = load float, ptr %39, align 4, !tbaa !31
  %130 = invoke { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %129)
          to label %131 unwind label %208

131:                                              ; preds = %128
  %132 = getelementptr inbounds %"class.JPH::Vec3", ptr %44, i32 0, i32 0
  %133 = getelementptr inbounds %union.anon, ptr %132, i32 0, i32 0
  %134 = getelementptr inbounds { double, double }, ptr %133, i32 0, i32 0
  %135 = extractvalue { double, double } %130, 0
  store double %135, ptr %134, align 16
  %136 = getelementptr inbounds { double, double }, ptr %133, i32 0, i32 1
  %137 = extractvalue { double, double } %130, 1
  store double %137, ptr %136, align 8
  %138 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %139 = load double, ptr %138, align 16
  %140 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %141 = load double, ptr %140, align 8
  %142 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %143 = load double, ptr %142, align 16
  %144 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %145 = load double, ptr %144, align 8
  invoke void @_ZN3JPH10RShapeCastCI2NS_10ShapeCastTINS_4Vec3ENS_5Mat44ES0_EEEPKNS_5ShapeES2_RKS3_S2_(ptr noundef nonnull align 16 dereferenceable(144) %40, ptr noundef %36, double %139, double %141, ptr noundef nonnull align 16 dereferenceable(64) %42, double %143, double %145)
          to label %146 unwind label %208

146:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 64, ptr %42) #11
  call void @llvm.lifetime.start.p0(i64 48, ptr %45) #11
  invoke void @_ZN3JPH17ShapeCastSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(36) %45)
          to label %147 unwind label %212

147:                                              ; preds = %146
  %148 = getelementptr inbounds %"class.JPH::ShapeCastSettings", ptr %45, i32 0, i32 3
  store i8 1, ptr %148, align 2, !tbaa !35
  %149 = getelementptr inbounds %"class.JPH::ShapeCastSettings", ptr %45, i32 0, i32 4
  store i8 1, ptr %149, align 1, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 144, ptr %46) #11
  %150 = load ptr, ptr %19, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.JPH::VehicleCollisionTesterCastSphere", ptr %57, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %47, ptr align 16 %151, i64 16, i1 false), !tbaa.struct !33
  %152 = getelementptr inbounds %"class.JPH::VehicleCollisionTesterCastSphere", ptr %57, i32 0, i32 4
  %153 = load float, ptr %152, align 16, !tbaa !42
  %154 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %155 = load double, ptr %154, align 16
  %156 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %157 = load double, ptr %156, align 8
  invoke void @_ZZNK3JPH32VehicleCollisionTesterCastSphere7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfEN11MyCollectorC2ES2_RKNS_10RShapeCastES6_f(ptr noundef nonnull align 16 dereferenceable(132) %46, ptr noundef nonnull align 16 dereferenceable(1172) %150, ptr noundef nonnull align 16 dereferenceable(144) %40, double %155, double %157, float noundef %153)
          to label %158 unwind label %216

158:                                              ; preds = %147
  %159 = load ptr, ptr %19, align 8, !tbaa !5
  %160 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem25GetNarrowPhaseQueryNoLockEv(ptr noundef nonnull align 16 dereferenceable(1172) %159)
          to label %161 unwind label %220

161:                                              ; preds = %158
  %162 = getelementptr inbounds %"struct.JPH::ShapeCastT", ptr %40, i32 0, i32 2
  %163 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %162)
          to label %164 unwind label %220

164:                                              ; preds = %161
  %165 = getelementptr inbounds %"class.JPH::Vec3", ptr %48, i32 0, i32 0
  %166 = getelementptr inbounds %union.anon, ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds { double, double }, ptr %166, i32 0, i32 0
  %168 = extractvalue { double, double } %163, 0
  store double %168, ptr %167, align 16
  %169 = getelementptr inbounds { double, double }, ptr %166, i32 0, i32 1
  %170 = extractvalue { double, double } %163, 1
  store double %170, ptr %169, align 8
  %171 = load ptr, ptr %29, align 8, !tbaa !5
  %172 = load ptr, ptr %33, align 8, !tbaa !5
  %173 = load ptr, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #11
  call void @llvm.memset.p0.i64(ptr align 8 %49, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %49)
          to label %174 unwind label %224

174:                                              ; preds = %164
  %175 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %176 = load double, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %178 = load double, ptr %177, align 8
  invoke void @_ZNK3JPH16NarrowPhaseQuery9CastShapeERKNS_10RShapeCastERKNS_17ShapeCastSettingsENS_4Vec3ERNS_18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 8 dereferenceable(16) %160, ptr noundef nonnull align 16 dereferenceable(144) %40, ptr noundef nonnull align 16 dereferenceable(36) %45, double %176, double %178, ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull align 8 dereferenceable(12) %49)
          to label %179 unwind label %228

179:                                              ; preds = %174
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %49) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #11
  %180 = getelementptr inbounds %class.MyCollector.30, ptr %46, i32 0, i32 7
  %181 = load ptr, ptr %180, align 8, !tbaa !43
  %182 = icmp eq ptr %181, null
  br i1 %182, label %183, label %233

183:                                              ; preds = %179
  store i1 false, ptr %15, align 1
  store i32 1, ptr %50, align 4
  br label %259

184:                                              ; preds = %68
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %31, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %32, align 4
  br label %269

188:                                              ; preds = %81
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %31, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %32, align 4
  br label %268

192:                                              ; preds = %92
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %31, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %32, align 4
  br label %267

196:                                              ; preds = %96
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %31, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %32, align 4
  br label %266

200:                                              ; preds = %102, %98
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %31, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %32, align 4
  br label %265

204:                                              ; preds = %104
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %31, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %32, align 4
  br label %264

208:                                              ; preds = %131, %128, %117
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %31, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %42) #11
  br label %264

212:                                              ; preds = %146
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %31, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %32, align 4
  br label %263

216:                                              ; preds = %147
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %31, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %32, align 4
  br label %262

220:                                              ; preds = %161, %158
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %31, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %32, align 4
  br label %261

224:                                              ; preds = %164
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %31, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %32, align 4
  br label %232

228:                                              ; preds = %174
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %31, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %32, align 4
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %49) #11
  br label %232

232:                                              ; preds = %228, %224
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #11
  br label %261

233:                                              ; preds = %179
  %234 = getelementptr inbounds %class.MyCollector.30, ptr %46, i32 0, i32 7
  %235 = load ptr, ptr %234, align 8, !tbaa !43
  %236 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %235, ptr %236, align 8, !tbaa !5
  %237 = getelementptr inbounds %class.MyCollector.30, ptr %46, i32 0, i32 8
  %238 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %238, ptr align 16 %237, i64 4, i1 false), !tbaa.struct !47
  %239 = getelementptr inbounds %class.MyCollector.30, ptr %46, i32 0, i32 10
  %240 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %240, ptr align 16 %239, i64 16, i1 false), !tbaa.struct !33
  %241 = getelementptr inbounds %class.MyCollector.30, ptr %46, i32 0, i32 11
  %242 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %242, ptr align 16 %241, i64 16, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #11
  store float 0.000000e+00, ptr %51, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #11
  %243 = load float, ptr %39, align 4, !tbaa !31
  %244 = getelementptr inbounds %class.MyCollector.30, ptr %46, i32 0, i32 12
  %245 = load float, ptr %244, align 16, !tbaa !48
  %246 = getelementptr inbounds %"class.JPH::VehicleCollisionTesterCastSphere", ptr %57, i32 0, i32 2
  %247 = load float, ptr %246, align 4, !tbaa !20
  %248 = call float @llvm.fmuladd.f32(float %243, float %245, float %247)
  %249 = load float, ptr %38, align 4, !tbaa !31
  %250 = fsub float %248, %249
  store float %250, ptr %52, align 4, !tbaa !31
  %251 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %52)
          to label %252 unwind label %255

252:                                              ; preds = %233
  %253 = load float, ptr %251, align 4, !tbaa !31
  %254 = load ptr, ptr %27, align 8, !tbaa !5
  store float %253, ptr %254, align 4, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #11
  store i1 true, ptr %15, align 1
  store i32 1, ptr %50, align 4
  br label %259

255:                                              ; preds = %233
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %31, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #11
  br label %261

259:                                              ; preds = %252, %183
  call void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(132) %46) #11
  call void @llvm.lifetime.end.p0(i64 144, ptr %46) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 144, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #11
  call void @_ZN3JPH11ConvexShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %36) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %34) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %30) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %28) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #11
  %260 = load i1, ptr %15, align 1
  ret i1 %260

261:                                              ; preds = %255, %232, %220
  call void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(132) %46) #11
  br label %262

262:                                              ; preds = %261, %216
  call void @llvm.lifetime.end.p0(i64 144, ptr %46) #11
  br label %263

263:                                              ; preds = %262, %212
  call void @llvm.lifetime.end.p0(i64 48, ptr %45) #11
  br label %264

264:                                              ; preds = %263, %208, %204
  call void @llvm.lifetime.end.p0(i64 144, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  br label %265

265:                                              ; preds = %264, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #11
  br label %266

266:                                              ; preds = %265, %196
  call void @_ZN3JPH11ConvexShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %36) #11
  br label %267

267:                                              ; preds = %266, %192
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %34) #11
  br label %268

268:                                              ; preds = %267, %188
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %30) #11
  br label %269

269:                                              ; preds = %268, %184
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %28) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #11
  br label %270

270:                                              ; preds = %269
  %271 = load ptr, ptr %31, align 8
  %272 = load i32, ptr %32, align 4
  %273 = insertvalue { ptr, i32 } poison, ptr %271, 0
  %274 = insertvalue { ptr, i32 } %273, i32 %272, 1
  resume { ptr, i32 } %274
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48), float noundef, ptr noundef) unnamed_addr #1 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) #8 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZNK3JPH32VehicleCollisionTesterCastSphere7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfEN11MyCollectorC2ES2_RKNS_10RShapeCastES6_f(ptr noundef nonnull align 16 dereferenceable(132), ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef nonnull align 16 dereferenceable(144), double, double, float noundef) unnamed_addr #2 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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64)) #8 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !16, i64 40}
!12 = !{!"_ZTSN3JPH22VehicleCollisionTesterE", !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !16, i64 40}
!13 = !{!"_ZTSN3JPH9RefTargetINS_22VehicleCollisionTesterEEE", !14, i64 0}
!14 = !{!"_ZTSSt6atomicIjE", !15, i64 0}
!15 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!12, !6, i64 16}
!18 = !{!12, !6, i64 24}
!19 = !{!12, !6, i64 32}
!20 = !{!21, !22, i64 44}
!21 = !{!"_ZTSN3JPH32VehicleCollisionTesterCastSphereE", !12, i64 0, !22, i64 44, !23, i64 48, !22, i64 64}
!22 = !{!"float", !7, i64 0}
!23 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!24 = !{!25, !22, i64 136}
!25 = !{!"_ZTSN3JPH13WheelSettingsE", !26, i64 0, !27, i64 8, !23, i64 16, !23, i64 32, !23, i64 48, !23, i64 64, !23, i64 80, !23, i64 96, !22, i64 112, !22, i64 116, !22, i64 120, !28, i64 124, !22, i64 136, !22, i64 140, !30, i64 144}
!26 = !{!"_ZTSN3JPH18SerializableObjectE"}
!27 = !{!"_ZTSN3JPH9RefTargetINS_13WheelSettingsEEE", !14, i64 0}
!28 = !{!"_ZTSN3JPH14SpringSettingsE", !29, i64 0, !7, i64 4, !22, i64 8}
!29 = !{!"_ZTSN3JPH11ESpringModeE", !7, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{!22, !22, i64 0}
!32 = !{!25, !22, i64 116}
!33 = !{i64 0, i64 16, !34}
!34 = !{!7, !7, i64 0}
!35 = !{!36, !30, i64 34}
!36 = !{!"_ZTSN3JPH17ShapeCastSettingsE", !37, i64 0, !40, i64 32, !40, i64 33, !30, i64 34, !30, i64 35}
!37 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !38, i64 0, !39, i64 1, !22, i64 4, !22, i64 8, !23, i64 16}
!38 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !7, i64 0}
!39 = !{!"_ZTSN3JPH17ECollectFacesModeE", !7, i64 0}
!40 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!41 = !{!36, !30, i64 35}
!42 = !{!21, !22, i64 64}
!43 = !{!44, !6, i64 72}
!44 = !{!"_ZTSZNK3JPH32VehicleCollisionTesterCastSphere7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfE11MyCollector", !45, i64 0, !6, i64 24, !6, i64 32, !23, i64 48, !22, i64 64, !6, i64 72, !46, i64 80, !23, i64 96, !23, i64 112, !22, i64 128}
!45 = !{!"_ZTSN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEEE", !22, i64 8, !6, i64 16}
!46 = !{!"_ZTSN3JPH10SubShapeIDE", !10, i64 0}
!47 = !{i64 0, i64 4, !9}
!48 = !{!44, !22, i64 128}


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

%"class.JPH::DefaultBroadPhaseLayerFilter" = type <{ %"class.JPH::BroadPhaseLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::DefaultObjectLayerFilter" = type <{ %"class.JPH::ObjectLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::ObjectLayerFilter" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::IgnoreSingleBodyFilter" = type <{ %"class.JPH::BodyFilter", %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::SphereShape" = type { %"class.JPH::ConvexShape.base", float }
%"class.JPH::ConvexShape.base" = type <{ %"class.JPH::Shape.base", [6 x i8], %"class.JPH::RefConst.28", float }>
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.27", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.27" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst.28" = type { ptr }
%"struct.JPH::RShapeCast" = type { %"struct.JPH::ShapeCastT" }
%"struct.JPH::ShapeCastT" = type { ptr, %"class.JPH::Vec3", %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::AABox" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.29 }
%union.anon.29 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"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.MyCollector.30 = type <{ %"class.JPH::CollisionCollector.31", ptr, ptr, [8 x i8], %"class.JPH::Vec3", float, [4 x i8], ptr, %"class.JPH::SubShapeID", [12 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::CollisionCollector.31" = type { ptr, float, ptr }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [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: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH5Wheel11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(404)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #7

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3JPH32VehicleCollisionTesterCastSphere7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_Rf(ptr nocapture noundef nonnull readonly align 16 dereferenceable(68) %0, ptr noundef nonnull align 16 dereferenceable(1172) %1, ptr noundef nonnull align 16 dereferenceable(408) %2, i32 noundef %3, double %4, double %5, double %6, double %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %9, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %10, ptr nocapture noundef nonnull writeonly align 16 dereferenceable(16) %11, ptr nocapture noundef nonnull writeonly align 16 dereferenceable(16) %12, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %13) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %17 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %18 = alloca %"class.JPH::IgnoreSingleBodyFilter", align 8
  %19 = alloca %"class.JPH::SphereShape", align 8
  %20 = alloca %"struct.JPH::RShapeCast", align 16
  %21 = alloca %"class.JPH::Mat44", align 16
  %22 = alloca %"class.JPH::ShapeCastSettings", align 16
  %23 = alloca %class.MyCollector.30, align 16
  %24 = alloca %"class.JPH::ShapeFilter", align 8
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  store double %6, ptr %15, align 16
  %27 = getelementptr inbounds i8, ptr %15, i64 8
  store double %7, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #11
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %29 = load i16, ptr %28, align 8, !tbaa !5
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %16, ptr noundef nonnull align 16 dereferenceable(1172) %1, i16 noundef zeroext %29)
  %30 = getelementptr inbounds i8, ptr %0, i64 16
  %31 = load ptr, ptr %30, align 16, !tbaa !15
  %.not = icmp eq ptr %31, null
  %spec.select = select i1 %.not, ptr %16, ptr %31
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #11
  %32 = load i16, ptr %28, align 8, !tbaa !5
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %17, ptr noundef nonnull align 16 dereferenceable(1172) %1, i16 noundef zeroext %32)
          to label %33 unwind label %82

33:                                               ; preds = %14
  %34 = getelementptr inbounds i8, ptr %0, i64 24
  %35 = load ptr, ptr %34, align 8, !tbaa !16
  %.not47 = icmp eq ptr %35, null
  %spec.select57 = select i1 %.not47, ptr %17, ptr %35
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #11
  call void @_ZN3JPH22IgnoreSingleBodyFilterC2ERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  %37 = load ptr, ptr %36, align 16, !tbaa !17
  %.not48 = icmp eq ptr %37, null
  %38 = select i1 %.not48, ptr %18, ptr %37
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %19) #11
  %39 = getelementptr inbounds i8, ptr %0, i64 44
  %40 = load float, ptr %39, align 4, !tbaa !18
  invoke void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48) %19, float noundef %40, ptr noundef null)
          to label %41 unwind label %84

41:                                               ; preds = %33
  %42 = getelementptr inbounds i8, ptr %19, i64 8
  invoke void @_ZNK3JPH9RefTargetINS_5ShapeEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4) %42)
          to label %43 unwind label %86

43:                                               ; preds = %41
  %44 = invoke noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408) %2, i32 noundef %3)
          to label %45 unwind label %88

45:                                               ; preds = %43
  %46 = invoke noundef ptr @_ZNK3JPH5Wheel11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(404) %44)
          to label %47 unwind label %88

47:                                               ; preds = %45
  %48 = getelementptr inbounds i8, ptr %46, i64 136
  %49 = load float, ptr %48, align 8, !tbaa !22
  %50 = getelementptr inbounds i8, ptr %46, i64 116
  %51 = load float, ptr %50, align 4, !tbaa !29
  %52 = fadd float %49, %51
  %53 = load float, ptr %39, align 4, !tbaa !18
  %54 = fsub float %52, %53
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %20) #11
  %55 = invoke { double, double } @_ZN3JPH4Vec34sOneEv()
          to label %56 unwind label %90

56:                                               ; preds = %47
  %57 = extractvalue { double, double } %55, 0
  %58 = extractvalue { double, double } %55, 1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #11
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %21, double %4, double %5)
          to label %59 unwind label %92

59:                                               ; preds = %56
  %60 = invoke { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef %54)
          to label %61 unwind label %92

61:                                               ; preds = %59
  %62 = extractvalue { double, double } %60, 0
  %63 = extractvalue { double, double } %60, 1
  invoke void @_ZN3JPH10RShapeCastCI2NS_10ShapeCastTINS_4Vec3ENS_5Mat44ES0_EEEPKNS_5ShapeES2_RKS3_S2_(ptr noundef nonnull align 16 dereferenceable(144) %20, ptr noundef nonnull %19, double %57, double %58, ptr noundef nonnull align 16 dereferenceable(64) %21, double %62, double %63)
          to label %64 unwind label %92

64:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #11
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %22) #11
  invoke void @_ZN3JPH17ShapeCastSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(36) %22)
          to label %65 unwind label %94

65:                                               ; preds = %64
  %66 = getelementptr inbounds i8, ptr %22, i64 34
  store i8 1, ptr %66, align 2, !tbaa !30
  %67 = getelementptr inbounds i8, ptr %22, i64 35
  store i8 1, ptr %67, align 1, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %23) #11
  %68 = getelementptr inbounds i8, ptr %0, i64 48
  %.sroa.01.0.copyload = load double, ptr %68, align 16
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 56
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !37
  %69 = getelementptr inbounds i8, ptr %0, i64 64
  %70 = load float, ptr %69, align 16, !tbaa !38
  call void @_ZZNK3JPH32VehicleCollisionTesterCastSphere7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfEN11MyCollectorC2ES2_RKNS_10RShapeCastES6_f(ptr noundef nonnull align 16 dereferenceable(132) %23, ptr noundef nonnull align 16 dereferenceable(1172) %1, ptr noundef nonnull align 16 dereferenceable(144) %20, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload, float noundef %70)
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem25GetNarrowPhaseQueryNoLockEv(ptr noundef nonnull align 16 dereferenceable(1172) %1)
  %72 = getelementptr inbounds i8, ptr %20, i64 32
  %73 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %72)
          to label %74 unwind label %96

74:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %24)
          to label %75 unwind label %98

75:                                               ; preds = %74
  %76 = extractvalue { double, double } %73, 1
  %77 = extractvalue { double, double } %73, 0
  invoke void @_ZNK3JPH16NarrowPhaseQuery9CastShapeERKNS_10RShapeCastERKNS_17ShapeCastSettingsENS_4Vec3ERNS_18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 8 dereferenceable(16) %71, ptr noundef nonnull align 16 dereferenceable(144) %20, ptr noundef nonnull align 16 dereferenceable(36) %22, double %77, double %76, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(8) %spec.select, ptr noundef nonnull align 8 dereferenceable(8) %spec.select57, ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(12) %24)
          to label %78 unwind label %100

78:                                               ; preds = %75
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %24) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #11
  %79 = getelementptr inbounds i8, ptr %23, i64 72
  %80 = load ptr, ptr %79, align 8, !tbaa !39
  %81 = icmp ne ptr %80, null
  br i1 %81, label %103, label %115

82:                                               ; preds = %14
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %121

84:                                               ; preds = %33
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %120

86:                                               ; preds = %41
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %119

88:                                               ; preds = %45, %43
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %119

90:                                               ; preds = %47
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %118

92:                                               ; preds = %61, %59, %56
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #11
  br label %118

94:                                               ; preds = %64
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %117

96:                                               ; preds = %65
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %116

98:                                               ; preds = %74
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %102

100:                                              ; preds = %75
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %24) #11
  br label %102

102:                                              ; preds = %100, %98
  %.pn = phi { ptr, i32 } [ %101, %100 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #11
  br label %116

103:                                              ; preds = %78
  store ptr %80, ptr %9, align 8, !tbaa !43
  %104 = getelementptr inbounds i8, ptr %23, i64 80
  %105 = load i32, ptr %104, align 16, !tbaa !44
  store i32 %105, ptr %10, align 4, !tbaa !44
  %106 = getelementptr inbounds i8, ptr %23, i64 96
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %106, i64 16, i1 false), !tbaa.struct !45
  %107 = getelementptr inbounds i8, ptr %23, i64 112
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 16 dereferenceable(16) %107, i64 16, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #11
  store float 0.000000e+00, ptr %25, align 4, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #11
  %108 = getelementptr inbounds i8, ptr %23, i64 128
  %109 = load float, ptr %108, align 16, !tbaa !47
  %110 = load float, ptr %39, align 4, !tbaa !18
  %111 = call float @llvm.fmuladd.f32(float %54, float %109, float %110)
  %112 = fsub float %111, %49
  store float %112, ptr %26, align 4, !tbaa !46
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %114 = load float, ptr %113, align 4, !tbaa !46
  store float %114, ptr %13, align 4, !tbaa !46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #11
  br label %115

115:                                              ; preds = %78, %103
  call void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(132) %23) #11
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %23) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #11
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %20) #11
  call void @_ZN3JPH11ConvexShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %19) #11
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #11
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %17) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #11
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %16) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #11
  ret i1 %81

116:                                              ; preds = %102, %96
  %.pn.pn = phi { ptr, i32 } [ %.pn, %102 ], [ %97, %96 ]
  call void @_ZN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(132) %23) #11
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %23) #11
  br label %117

117:                                              ; preds = %116, %94
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %116 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #11
  br label %118

118:                                              ; preds = %117, %92, %90
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %117 ], [ %93, %92 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %20) #11
  br label %119

119:                                              ; preds = %88, %118, %86
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %87, %86 ], [ %.pn.pn.pn.pn, %118 ], [ %89, %88 ]
  call void @_ZN3JPH11ConvexShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #11
  br label %120

120:                                              ; preds = %119, %84
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %119 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %19) #11
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #11
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %17) #11
  br label %121

121:                                              ; preds = %120, %82
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %120 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #11
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %16) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #11
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48), float noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3JPH9RefTargetINS_5ShapeEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) local_unnamed_addr #8 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZNK3JPH32VehicleCollisionTesterCastSphere7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfEN11MyCollectorC2ES2_RKNS_10RShapeCastES6_f(ptr noundef nonnull align 16 dereferenceable(132), ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef nonnull align 16 dereferenceable(144), double, double, float noundef) unnamed_addr #2 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 #10

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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 #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, !14, i64 40}
!6 = !{!"_ZTSN3JPH22VehicleCollisionTesterE", !7, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !14, i64 40}
!7 = !{!"_ZTSN3JPH9RefTargetINS_22VehicleCollisionTesterEEE", !8, i64 0}
!8 = !{!"_ZTSSt6atomicIjE", !9, i64 0}
!9 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!"short", !11, i64 0}
!15 = !{!6, !13, i64 16}
!16 = !{!6, !13, i64 24}
!17 = !{!6, !13, i64 32}
!18 = !{!19, !20, i64 44}
!19 = !{!"_ZTSN3JPH32VehicleCollisionTesterCastSphereE", !6, i64 0, !20, i64 44, !21, i64 48, !20, i64 64}
!20 = !{!"float", !11, i64 0}
!21 = !{!"_ZTSN3JPH4Vec3E", !11, i64 0}
!22 = !{!23, !20, i64 136}
!23 = !{!"_ZTSN3JPH13WheelSettingsE", !24, i64 0, !25, i64 8, !21, i64 16, !21, i64 32, !21, i64 48, !21, i64 64, !21, i64 80, !21, i64 96, !20, i64 112, !20, i64 116, !20, i64 120, !26, i64 124, !20, i64 136, !20, i64 140, !28, i64 144}
!24 = !{!"_ZTSN3JPH18SerializableObjectE"}
!25 = !{!"_ZTSN3JPH9RefTargetINS_13WheelSettingsEEE", !8, i64 0}
!26 = !{!"_ZTSN3JPH14SpringSettingsE", !27, i64 0, !11, i64 4, !20, i64 8}
!27 = !{!"_ZTSN3JPH11ESpringModeE", !11, i64 0}
!28 = !{!"bool", !11, i64 0}
!29 = !{!23, !20, i64 116}
!30 = !{!31, !28, i64 34}
!31 = !{!"_ZTSN3JPH17ShapeCastSettingsE", !32, i64 0, !35, i64 32, !35, i64 33, !28, i64 34, !28, i64 35}
!32 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !33, i64 0, !34, i64 1, !20, i64 4, !20, i64 8, !21, i64 16}
!33 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !11, i64 0}
!34 = !{!"_ZTSN3JPH17ECollectFacesModeE", !11, i64 0}
!35 = !{!"_ZTSN3JPH13EBackFaceModeE", !11, i64 0}
!36 = !{!31, !28, i64 35}
!37 = !{!11, !11, i64 0}
!38 = !{!19, !20, i64 64}
!39 = !{!40, !13, i64 72}
!40 = !{!"_ZTSZNK3JPH32VehicleCollisionTesterCastSphere7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfE11MyCollector", !41, i64 0, !13, i64 24, !13, i64 32, !21, i64 48, !20, i64 64, !13, i64 72, !42, i64 80, !21, i64 96, !21, i64 112, !20, i64 128}
!41 = !{!"_ZTSN3JPH18CollisionCollectorINS_15ShapeCastResultENS_33CollisionCollectorTraitsCastShapeEEE", !20, i64 8, !13, i64 16}
!42 = !{!"_ZTSN3JPH10SubShapeIDE", !10, i64 0}
!43 = !{!13, !13, i64 0}
!44 = !{!10, !10, i64 0}
!45 = !{i64 0, i64 16, !37}
!46 = !{!20, !20, i64 0}
!47 = !{!40, !20, i64 128}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass