; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/RegisterTypes.ll (ZN3JPH21RegisterTypesInternalEm)

; 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::RefConst" = type { ptr }
%"class.JPH::Color" = type { %union.anon.23 }
%union.anon.23 = type { i32 }
%class.anon = type { i64 }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.std::basic_string_view" = type { i64, ptr }

@_ZN3JPH5TraceE = external global ptr, align 8
@.str = external hidden unnamed_addr constant [109 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZN3JPH8AllocateE = external global ptr, align 8
@_ZN3JPH10ReallocateE = external global ptr, align 8
@_ZN3JPH4FreeE = external global ptr, align 8
@_ZN3JPH15AlignedAllocateE = external global ptr, align 8
@_ZN3JPH11AlignedFreeE = external global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [69 x i8], align 1
@_ZN3JPH7Factory9sInstanceE = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@_ZN3JPH15PhysicsMaterial8sDefaultE = external global %"class.JPH::RefConst", align 8
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZN3JPH5Color5sGreyE = external global %"class.JPH::Color", align 4

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH27VerifyJoltVersionIDInternalEm(i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH21RegisterTypesInternalEm(i64 noundef %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %class.anon, align 8
  %5 = alloca %"struct.JPH::AssertLastParam", align 1
  %6 = alloca %"struct.JPH::AssertLastParam", align 1
  %7 = alloca [42 x ptr], align 16
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca %"class.JPH::Color", align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i1, align 1
  store i64 %0, ptr %2, align 8, !tbaa !5
  %13 = load i64, ptr %2, align 8, !tbaa !5
  %14 = call noundef zeroext i1 @_ZN3JPH27VerifyJoltVersionIDInternalEm(i64 noundef %13)
  br i1 %14, label %21, label %15

15:                                               ; preds = %1
  %16 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !9
  call void (ptr, ...) %16(ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %17 = load i64, ptr %2, align 8, !tbaa !5
  %18 = xor i64 327936, %17
  store i64 %18, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #10
  %19 = getelementptr inbounds %class.anon, ptr %4, i32 0, i32 0
  %20 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %20, ptr %19, align 8, !tbaa !11
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 1, ptr noundef @.str.1)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 2, ptr noundef @.str.2)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 3, ptr noundef @.str.3)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 4, ptr noundef @.str.4)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 5, ptr noundef @.str.5)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 6, ptr noundef @.str.6)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 7, ptr noundef @.str.7)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 8, ptr noundef @.str.8)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 9, ptr noundef @.str.9)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 10, ptr noundef @.str.10)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 11, ptr noundef @.str.11)
  call void @abort() #11
  unreachable

21:                                               ; preds = %1
  br label %22

22:                                               ; preds = %21
  %23 = load ptr, ptr @_ZN3JPH8AllocateE, align 8, !tbaa !9
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %37

25:                                               ; preds = %22
  %26 = load ptr, ptr @_ZN3JPH10ReallocateE, align 8, !tbaa !9
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %37

28:                                               ; preds = %25
  %29 = load ptr, ptr @_ZN3JPH4FreeE, align 8, !tbaa !9
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %37

31:                                               ; preds = %28
  %32 = load ptr, ptr @_ZN3JPH15AlignedAllocateE, align 8, !tbaa !9
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %37

34:                                               ; preds = %31
  %35 = load ptr, ptr @_ZN3JPH11AlignedFreeE, align 8, !tbaa !9
  %36 = icmp ne ptr %35, null
  br i1 %36, label %40, label %37

37:                                               ; preds = %34, %31, %28, %25, %22
  %38 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef @.str.12, ptr noundef @.str.13, i32 noundef 101, ptr noundef @.str.14)
  br i1 %38, label %39, label %40

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

40:                                               ; preds = %39, %37, %34
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !9
  %44 = icmp ne ptr %43, null
  br i1 %44, label %48, label %45

45:                                               ; preds = %42
  %46 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef @.str.15, ptr noundef @.str.13, i32 noundef 104, ptr noundef @.str.16)
  br i1 %46, label %47, label %48

47:                                               ; preds = %45
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !14
  br label %48

48:                                               ; preds = %47, %45, %42
  br label %49

49:                                               ; preds = %48
  call void @_ZN3JPH17CollisionDispatch5sInitEv()
  call void @_ZN3JPH13CompoundShape9sRegisterEv()
  call void @_ZN3JPH11ConvexShape9sRegisterEv()
  call void @_ZN3JPH20MutableCompoundShape9sRegisterEv()
  call void @_ZN3JPH19StaticCompoundShape9sRegisterEv()
  call void @_ZN3JPH13TriangleShape9sRegisterEv()
  call void @_ZN3JPH11SphereShape9sRegisterEv()
  call void @_ZN3JPH8BoxShape9sRegisterEv()
  call void @_ZN3JPH12CapsuleShape9sRegisterEv()
  call void @_ZN3JPH19TaperedCapsuleShape9sRegisterEv()
  call void @_ZN3JPH13CylinderShape9sRegisterEv()
  call void @_ZN3JPH9MeshShape9sRegisterEv()
  call void @_ZN3JPH15ConvexHullShape9sRegisterEv()
  call void @_ZN3JPH16HeightFieldShape9sRegisterEv()
  call void @_ZN3JPH13SoftBodyShape9sRegisterEv()
  call void @_ZN3JPH22RotatedTranslatedShape9sRegisterEv()
  call void @_ZN3JPH23OffsetCenterOfMassShape9sRegisterEv()
  call void @_ZN3JPH11ScaledShape9sRegisterEv()
  call void @llvm.lifetime.start.p0(i64 336, ptr %7) #10
  %50 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_17SkeletalAnimationE(ptr noundef null)
  store ptr %50, ptr %7, align 8, !tbaa !9
  %51 = getelementptr inbounds ptr, ptr %7, i64 1
  %52 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_8SkeletonE(ptr noundef null)
  store ptr %52, ptr %51, align 8, !tbaa !9
  %53 = getelementptr inbounds ptr, ptr %7, i64 2
  %54 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21CompoundShapeSettingsE(ptr noundef null)
  store ptr %54, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %7, i64 3
  %56 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_27StaticCompoundShapeSettingsE(ptr noundef null)
  store ptr %56, ptr %55, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %7, i64 4
  %58 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_28MutableCompoundShapeSettingsE(ptr noundef null)
  store ptr %58, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %7, i64 5
  %60 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21TriangleShapeSettingsE(ptr noundef null)
  store ptr %60, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %7, i64 6
  %62 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_19SphereShapeSettingsE(ptr noundef null)
  store ptr %62, ptr %61, align 8, !tbaa !9
  %63 = getelementptr inbounds ptr, ptr %7, i64 7
  %64 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_16BoxShapeSettingsE(ptr noundef null)
  store ptr %64, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds ptr, ptr %7, i64 8
  %66 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_20CapsuleShapeSettingsE(ptr noundef null)
  store ptr %66, ptr %65, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %7, i64 9
  %68 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_27TaperedCapsuleShapeSettingsE(ptr noundef null)
  store ptr %68, ptr %67, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %7, i64 10
  %70 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21CylinderShapeSettingsE(ptr noundef null)
  store ptr %70, ptr %69, align 8, !tbaa !9
  %71 = getelementptr inbounds ptr, ptr %7, i64 11
  %72 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_19ScaledShapeSettingsE(ptr noundef null)
  store ptr %72, ptr %71, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %7, i64 12
  %74 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_17MeshShapeSettingsE(ptr noundef null)
  store ptr %74, ptr %73, align 8, !tbaa !9
  %75 = getelementptr inbounds ptr, ptr %7, i64 13
  %76 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23ConvexHullShapeSettingsE(ptr noundef null)
  store ptr %76, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds ptr, ptr %7, i64 14
  %78 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24HeightFieldShapeSettingsE(ptr noundef null)
  store ptr %78, ptr %77, align 8, !tbaa !9
  %79 = getelementptr inbounds ptr, ptr %7, i64 15
  %80 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_30RotatedTranslatedShapeSettingsE(ptr noundef null)
  store ptr %80, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %7, i64 16
  %82 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_31OffsetCenterOfMassShapeSettingsE(ptr noundef null)
  store ptr %82, ptr %81, align 8, !tbaa !9
  %83 = getelementptr inbounds ptr, ptr %7, i64 17
  %84 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_15RagdollSettingsE(ptr noundef null)
  store ptr %84, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds ptr, ptr %7, i64 18
  %86 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23PointConstraintSettingsE(ptr noundef null)
  store ptr %86, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds ptr, ptr %7, i64 19
  %88 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SixDOFConstraintSettingsE(ptr noundef null)
  store ptr %88, ptr %87, align 8, !tbaa !9
  %89 = getelementptr inbounds ptr, ptr %7, i64 20
  %90 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SliderConstraintSettingsE(ptr noundef null)
  store ptr %90, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds ptr, ptr %7, i64 21
  %92 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_28SwingTwistConstraintSettingsE(ptr noundef null)
  store ptr %92, ptr %91, align 8, !tbaa !9
  %93 = getelementptr inbounds ptr, ptr %7, i64 22
  %94 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_26DistanceConstraintSettingsE(ptr noundef null)
  store ptr %94, ptr %93, align 8, !tbaa !9
  %95 = getelementptr inbounds ptr, ptr %7, i64 23
  %96 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23HingeConstraintSettingsE(ptr noundef null)
  store ptr %96, ptr %95, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %7, i64 24
  %98 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23FixedConstraintSettingsE(ptr noundef null)
  store ptr %98, ptr %97, align 8, !tbaa !9
  %99 = getelementptr inbounds ptr, ptr %7, i64 25
  %100 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22ConeConstraintSettingsE(ptr noundef null)
  store ptr %100, ptr %99, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %7, i64 26
  %102 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22PathConstraintSettingsE(ptr noundef null)
  store ptr %102, ptr %101, align 8, !tbaa !9
  %103 = getelementptr inbounds ptr, ptr %7, i64 27
  %104 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_25VehicleConstraintSettingsE(ptr noundef null)
  store ptr %104, ptr %103, align 8, !tbaa !9
  %105 = getelementptr inbounds ptr, ptr %7, i64 28
  %106 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_32WheeledVehicleControllerSettingsE(ptr noundef null)
  store ptr %106, ptr %105, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %7, i64 29
  %108 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_18PathConstraintPathE(ptr noundef null)
  store ptr %108, ptr %107, align 8, !tbaa !9
  %109 = getelementptr inbounds ptr, ptr %7, i64 30
  %110 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_25PathConstraintPathHermiteE(ptr noundef null)
  store ptr %110, ptr %109, align 8, !tbaa !9
  %111 = getelementptr inbounds ptr, ptr %7, i64 31
  %112 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_31RackAndPinionConstraintSettingsE(ptr noundef null)
  store ptr %112, ptr %111, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %7, i64 32
  %114 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22GearConstraintSettingsE(ptr noundef null)
  store ptr %114, ptr %113, align 8, !tbaa !9
  %115 = getelementptr inbounds ptr, ptr %7, i64 33
  %116 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24PulleyConstraintSettingsE(ptr noundef null)
  store ptr %116, ptr %115, align 8, !tbaa !9
  %117 = getelementptr inbounds ptr, ptr %7, i64 34
  %118 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_13MotorSettingsE(ptr noundef null)
  store ptr %118, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds ptr, ptr %7, i64 35
  %120 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_12PhysicsSceneE(ptr noundef null)
  store ptr %120, ptr %119, align 8, !tbaa !9
  %121 = getelementptr inbounds ptr, ptr %7, i64 36
  %122 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_15PhysicsMaterialE(ptr noundef null)
  store ptr %122, ptr %121, align 8, !tbaa !9
  %123 = getelementptr inbounds ptr, ptr %7, i64 37
  %124 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21PhysicsMaterialSimpleE(ptr noundef null)
  store ptr %124, ptr %123, align 8, !tbaa !9
  %125 = getelementptr inbounds ptr, ptr %7, i64 38
  %126 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_11GroupFilterE(ptr noundef null)
  store ptr %126, ptr %125, align 8, !tbaa !9
  %127 = getelementptr inbounds ptr, ptr %7, i64 39
  %128 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_16GroupFilterTableE(ptr noundef null)
  store ptr %128, ptr %127, align 8, !tbaa !9
  %129 = getelementptr inbounds ptr, ptr %7, i64 40
  %130 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_20BodyCreationSettingsE(ptr noundef null)
  store ptr %130, ptr %129, align 8, !tbaa !9
  %131 = getelementptr inbounds ptr, ptr %7, i64 41
  %132 = call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SoftBodyCreationSettingsE(ptr noundef null)
  store ptr %132, ptr %131, align 8, !tbaa !9
  %133 = load ptr, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !9
  %134 = getelementptr inbounds [42 x ptr], ptr %7, i64 0, i64 0
  %135 = call noundef i64 @_ZSt4sizeIPKN3JPH4RTTIELm42EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(336) %7) #10
  %136 = trunc i64 %135 to i32
  %137 = call noundef zeroext i1 @_ZN3JPH7Factory8RegisterEPPKNS_4RTTIEj(ptr noundef nonnull align 8 dereferenceable(112) %133, ptr noundef %134, i32 noundef %136)
  %138 = call noundef zeroext i1 @_ZNK3JPH8RefConstINS_15PhysicsMaterialEEeqEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3JPH15PhysicsMaterial8sDefaultE, ptr noundef null)
  br i1 %138, label %139, label %154

139:                                              ; preds = %49
  %140 = call noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 56)
  store i1 true, ptr %12, align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef @.str.17) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 @_ZN3JPH5Color5sGreyE, i64 4, i1 false), !tbaa.struct !15
  %141 = getelementptr inbounds %"class.JPH::Color", ptr %9, i32 0, i32 0
  %142 = getelementptr inbounds %union.anon.23, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 4
  invoke void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52) %140, ptr noundef nonnull align 8 dereferenceable(16) %8, i32 %143)
          to label %144 unwind label %147

144:                                              ; preds = %139
  store i1 false, ptr %12, align 1
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_15PhysicsMaterialEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3JPH15PhysicsMaterial8sDefaultE, ptr noundef %140)
          to label %146 unwind label %147

146:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #10
  br label %154

147:                                              ; preds = %144, %139
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %10, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #10
  %151 = load i1, ptr %12, align 1
  br i1 %151, label %152, label %153

152:                                              ; preds = %147
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %140) #10
  br label %153

153:                                              ; preds = %152, %147
  call void @llvm.lifetime.end.p0(i64 336, ptr %7) #10
  br label %155

154:                                              ; preds = %146, %49
  call void @llvm.lifetime.end.p0(i64 336, ptr %7) #10
  ret void

155:                                              ; preds = %153
  %156 = load ptr, ptr %10, align 8
  %157 = load i32, ptr %11, align 4
  %158 = insertvalue { ptr, i32 } poison, ptr %156, 0
  %159 = insertvalue { ptr, i32 } %158, i32 %157, 1
  resume { ptr, i32 } %159
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef) #3 align 2

; Function Attrs: noreturn nounwind
declare void @abort() #4

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

declare void @_ZN3JPH17CollisionDispatch5sInitEv() #5

declare void @_ZN3JPH13CompoundShape9sRegisterEv() #5

declare void @_ZN3JPH11ConvexShape9sRegisterEv() #5

declare void @_ZN3JPH20MutableCompoundShape9sRegisterEv() #5

declare void @_ZN3JPH19StaticCompoundShape9sRegisterEv() #5

declare void @_ZN3JPH13TriangleShape9sRegisterEv() #5

declare void @_ZN3JPH11SphereShape9sRegisterEv() #5

declare void @_ZN3JPH8BoxShape9sRegisterEv() #5

declare void @_ZN3JPH12CapsuleShape9sRegisterEv() #5

declare void @_ZN3JPH19TaperedCapsuleShape9sRegisterEv() #5

declare void @_ZN3JPH13CylinderShape9sRegisterEv() #5

declare void @_ZN3JPH9MeshShape9sRegisterEv() #5

declare void @_ZN3JPH15ConvexHullShape9sRegisterEv() #5

declare void @_ZN3JPH16HeightFieldShape9sRegisterEv() #5

declare void @_ZN3JPH13SoftBodyShape9sRegisterEv() #5

declare void @_ZN3JPH22RotatedTranslatedShape9sRegisterEv() #5

declare void @_ZN3JPH23OffsetCenterOfMassShape9sRegisterEv() #5

declare void @_ZN3JPH11ScaledShape9sRegisterEv() #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_17SkeletalAnimationE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_8SkeletonE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21CompoundShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_27StaticCompoundShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_28MutableCompoundShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21TriangleShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_19SphereShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_16BoxShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_20CapsuleShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_27TaperedCapsuleShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21CylinderShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_19ScaledShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_17MeshShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23ConvexHullShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24HeightFieldShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_30RotatedTranslatedShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_31OffsetCenterOfMassShapeSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_15RagdollSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23PointConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SixDOFConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SliderConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_28SwingTwistConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_26DistanceConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23HingeConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23FixedConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22ConeConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22PathConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_25VehicleConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_32WheeledVehicleControllerSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_18PathConstraintPathE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_25PathConstraintPathHermiteE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_31RackAndPinionConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22GearConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24PulleyConstraintSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_13MotorSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_12PhysicsSceneE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_15PhysicsMaterialE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21PhysicsMaterialSimpleE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_11GroupFilterE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_16GroupFilterTableE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_20BodyCreationSettingsE(ptr noundef) #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SoftBodyCreationSettingsE(ptr noundef) #5

declare noundef zeroext i1 @_ZN3JPH7Factory8RegisterEPPKNS_4RTTIEj(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt4sizeIPKN3JPH4RTTIELm42EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(336)) #1

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef) #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(16), i32) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_15PhysicsMaterialEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef) #9 align 2

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


; 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::RefConst" = type { ptr }
%"class.JPH::Color" = type { %union.anon.23 }
%union.anon.23 = type { i32 }
%class.anon = type { i64 }
%"class.std::basic_string_view" = type { i64, ptr }

@_ZN3JPH5TraceE = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [109 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZN3JPH8AllocateE = external local_unnamed_addr global ptr, align 8
@_ZN3JPH10ReallocateE = external local_unnamed_addr global ptr, align 8
@_ZN3JPH4FreeE = external local_unnamed_addr global ptr, align 8
@_ZN3JPH15AlignedAllocateE = external local_unnamed_addr global ptr, align 8
@_ZN3JPH11AlignedFreeE = external local_unnamed_addr global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [69 x i8], align 1
@_ZN3JPH7Factory9sInstanceE = external local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@_ZN3JPH15PhysicsMaterial8sDefaultE = external global %"class.JPH::RefConst", align 8
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZN3JPH5Color5sGreyE = external local_unnamed_addr global %"class.JPH::Color", align 4

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH27VerifyJoltVersionIDInternalEm(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH21RegisterTypesInternalEm(i64 noundef %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.anon, align 8
  %3 = alloca [42 x ptr], align 16
  %4 = alloca %"class.std::basic_string_view", align 8
  %5 = tail call noundef zeroext i1 @_ZN3JPH27VerifyJoltVersionIDInternalEm(i64 noundef %0)
  br i1 %5, label %9, label %6

6:                                                ; preds = %1
  %7 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !5
  tail call void (ptr, ...) %7(ptr noundef nonnull @.str)
  %8 = xor i64 %0, 327936
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  store i64 %8, ptr %2, align 8, !tbaa !9
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 1, ptr noundef nonnull @.str.1)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 2, ptr noundef nonnull @.str.2)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 3, ptr noundef nonnull @.str.3)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 4, ptr noundef nonnull @.str.4)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 5, ptr noundef nonnull @.str.5)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 6, ptr noundef nonnull @.str.6)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 7, ptr noundef nonnull @.str.7)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 8, ptr noundef nonnull @.str.8)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 9, ptr noundef nonnull @.str.9)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 10, ptr noundef nonnull @.str.10)
  call void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 11, ptr noundef nonnull @.str.11)
  call void @abort() #10
  unreachable

9:                                                ; preds = %1
  %10 = load ptr, ptr @_ZN3JPH8AllocateE, align 8, !tbaa !5
  %11 = load ptr, ptr @_ZN3JPH10ReallocateE, align 8
  %12 = load ptr, ptr @_ZN3JPH4FreeE, align 8
  %13 = load ptr, ptr @_ZN3JPH15AlignedAllocateE, align 8
  %14 = insertelement <4 x ptr> poison, ptr %10, i64 0
  %15 = insertelement <4 x ptr> %14, ptr %11, i64 1
  %16 = insertelement <4 x ptr> %15, ptr %12, i64 2
  %17 = insertelement <4 x ptr> %16, ptr %13, i64 3
  %.fr = freeze <4 x ptr> %17
  %18 = load ptr, ptr @_ZN3JPH11AlignedFreeE, align 8
  %19 = icmp ne ptr %18, null
  %20 = icmp eq <4 x ptr> %.fr, zeroinitializer
  %21 = bitcast <4 x i1> %20 to i4
  %22 = icmp eq i4 %21, 0
  %op.rdx = select i1 %22, i1 %19, i1 false
  br i1 %op.rdx, label %26, label %23

23:                                               ; preds = %9
  %24 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.13, i32 noundef 101, ptr noundef nonnull @.str.14)
  br i1 %24, label %25, label %26

25:                                               ; preds = %23
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !12
  br label %26

26:                                               ; preds = %9, %25, %23
  %27 = load ptr, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !5
  %.not = icmp eq ptr %27, null
  br i1 %.not, label %28, label %31

28:                                               ; preds = %26
  %29 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.13, i32 noundef 104, ptr noundef nonnull @.str.16)
  br i1 %29, label %30, label %31

30:                                               ; preds = %28
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !13
  br label %31

31:                                               ; preds = %26, %28, %30
  tail call void @_ZN3JPH17CollisionDispatch5sInitEv()
  tail call void @_ZN3JPH13CompoundShape9sRegisterEv()
  tail call void @_ZN3JPH11ConvexShape9sRegisterEv()
  tail call void @_ZN3JPH20MutableCompoundShape9sRegisterEv()
  tail call void @_ZN3JPH19StaticCompoundShape9sRegisterEv()
  tail call void @_ZN3JPH13TriangleShape9sRegisterEv()
  tail call void @_ZN3JPH11SphereShape9sRegisterEv()
  tail call void @_ZN3JPH8BoxShape9sRegisterEv()
  tail call void @_ZN3JPH12CapsuleShape9sRegisterEv()
  tail call void @_ZN3JPH19TaperedCapsuleShape9sRegisterEv()
  tail call void @_ZN3JPH13CylinderShape9sRegisterEv()
  tail call void @_ZN3JPH9MeshShape9sRegisterEv()
  tail call void @_ZN3JPH15ConvexHullShape9sRegisterEv()
  tail call void @_ZN3JPH16HeightFieldShape9sRegisterEv()
  tail call void @_ZN3JPH13SoftBodyShape9sRegisterEv()
  tail call void @_ZN3JPH22RotatedTranslatedShape9sRegisterEv()
  tail call void @_ZN3JPH23OffsetCenterOfMassShape9sRegisterEv()
  tail call void @_ZN3JPH11ScaledShape9sRegisterEv()
  call void @llvm.lifetime.start.p0(i64 336, ptr nonnull %3) #9
  %32 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_17SkeletalAnimationE(ptr noundef null)
  store ptr %32, ptr %3, align 16, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %3, i64 8
  %34 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_8SkeletonE(ptr noundef null)
  store ptr %34, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %3, i64 16
  %36 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21CompoundShapeSettingsE(ptr noundef null)
  store ptr %36, ptr %35, align 16, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %3, i64 24
  %38 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_27StaticCompoundShapeSettingsE(ptr noundef null)
  store ptr %38, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %3, i64 32
  %40 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_28MutableCompoundShapeSettingsE(ptr noundef null)
  store ptr %40, ptr %39, align 16, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %3, i64 40
  %42 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21TriangleShapeSettingsE(ptr noundef null)
  store ptr %42, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %3, i64 48
  %44 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_19SphereShapeSettingsE(ptr noundef null)
  store ptr %44, ptr %43, align 16, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %3, i64 56
  %46 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_16BoxShapeSettingsE(ptr noundef null)
  store ptr %46, ptr %45, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %3, i64 64
  %48 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_20CapsuleShapeSettingsE(ptr noundef null)
  store ptr %48, ptr %47, align 16, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %3, i64 72
  %50 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_27TaperedCapsuleShapeSettingsE(ptr noundef null)
  store ptr %50, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %3, i64 80
  %52 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21CylinderShapeSettingsE(ptr noundef null)
  store ptr %52, ptr %51, align 16, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %3, i64 88
  %54 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_19ScaledShapeSettingsE(ptr noundef null)
  store ptr %54, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %3, i64 96
  %56 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_17MeshShapeSettingsE(ptr noundef null)
  store ptr %56, ptr %55, align 16, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %3, i64 104
  %58 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23ConvexHullShapeSettingsE(ptr noundef null)
  store ptr %58, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %3, i64 112
  %60 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24HeightFieldShapeSettingsE(ptr noundef null)
  store ptr %60, ptr %59, align 16, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %3, i64 120
  %62 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_30RotatedTranslatedShapeSettingsE(ptr noundef null)
  store ptr %62, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %3, i64 128
  %64 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_31OffsetCenterOfMassShapeSettingsE(ptr noundef null)
  store ptr %64, ptr %63, align 16, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %3, i64 136
  %66 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_15RagdollSettingsE(ptr noundef null)
  store ptr %66, ptr %65, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %3, i64 144
  %68 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23PointConstraintSettingsE(ptr noundef null)
  store ptr %68, ptr %67, align 16, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %3, i64 152
  %70 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SixDOFConstraintSettingsE(ptr noundef null)
  store ptr %70, ptr %69, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %3, i64 160
  %72 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SliderConstraintSettingsE(ptr noundef null)
  store ptr %72, ptr %71, align 16, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %3, i64 168
  %74 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_28SwingTwistConstraintSettingsE(ptr noundef null)
  store ptr %74, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %3, i64 176
  %76 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_26DistanceConstraintSettingsE(ptr noundef null)
  store ptr %76, ptr %75, align 16, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %3, i64 184
  %78 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23HingeConstraintSettingsE(ptr noundef null)
  store ptr %78, ptr %77, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %3, i64 192
  %80 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23FixedConstraintSettingsE(ptr noundef null)
  store ptr %80, ptr %79, align 16, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %3, i64 200
  %82 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22ConeConstraintSettingsE(ptr noundef null)
  store ptr %82, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %3, i64 208
  %84 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22PathConstraintSettingsE(ptr noundef null)
  store ptr %84, ptr %83, align 16, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %3, i64 216
  %86 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_25VehicleConstraintSettingsE(ptr noundef null)
  store ptr %86, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %3, i64 224
  %88 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_32WheeledVehicleControllerSettingsE(ptr noundef null)
  store ptr %88, ptr %87, align 16, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %3, i64 232
  %90 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_18PathConstraintPathE(ptr noundef null)
  store ptr %90, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %3, i64 240
  %92 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_25PathConstraintPathHermiteE(ptr noundef null)
  store ptr %92, ptr %91, align 16, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %3, i64 248
  %94 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_31RackAndPinionConstraintSettingsE(ptr noundef null)
  store ptr %94, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %3, i64 256
  %96 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22GearConstraintSettingsE(ptr noundef null)
  store ptr %96, ptr %95, align 16, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %3, i64 264
  %98 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24PulleyConstraintSettingsE(ptr noundef null)
  store ptr %98, ptr %97, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %3, i64 272
  %100 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_13MotorSettingsE(ptr noundef null)
  store ptr %100, ptr %99, align 16, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %3, i64 280
  %102 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_12PhysicsSceneE(ptr noundef null)
  store ptr %102, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %3, i64 288
  %104 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_15PhysicsMaterialE(ptr noundef null)
  store ptr %104, ptr %103, align 16, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %3, i64 296
  %106 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21PhysicsMaterialSimpleE(ptr noundef null)
  store ptr %106, ptr %105, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %3, i64 304
  %108 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_11GroupFilterE(ptr noundef null)
  store ptr %108, ptr %107, align 16, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %3, i64 312
  %110 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_16GroupFilterTableE(ptr noundef null)
  store ptr %110, ptr %109, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %3, i64 320
  %112 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_20BodyCreationSettingsE(ptr noundef null)
  store ptr %112, ptr %111, align 16, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %3, i64 328
  %114 = tail call noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SoftBodyCreationSettingsE(ptr noundef null)
  store ptr %114, ptr %113, align 8, !tbaa !5
  %115 = load ptr, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !5
  %116 = call noundef i64 @_ZSt4sizeIPKN3JPH4RTTIELm42EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(336) %3) #9
  %117 = trunc i64 %116 to i32
  %118 = call noundef zeroext i1 @_ZN3JPH7Factory8RegisterEPPKNS_4RTTIEj(ptr noundef nonnull align 8 dereferenceable(112) %115, ptr noundef nonnull %3, i32 noundef %117)
  %119 = call noundef zeroext i1 @_ZNK3JPH8RefConstINS_15PhysicsMaterialEEeqEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3JPH15PhysicsMaterial8sDefaultE, ptr noundef null)
  br i1 %119, label %120, label %126

120:                                              ; preds = %31
  %121 = call noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 56)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef @.str.17) #9
  %.sroa.0.0.copyload = load i32, ptr @_ZN3JPH5Color5sGreyE, align 4, !tbaa !14
  invoke void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52) %121, ptr noundef nonnull align 8 dereferenceable(16) %4, i32 %.sroa.0.0.copyload)
          to label %122 unwind label %124

122:                                              ; preds = %120
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_15PhysicsMaterialEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3JPH15PhysicsMaterial8sDefaultE, ptr noundef nonnull %121)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br label %126

124:                                              ; preds = %120
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %121) #9
  call void @llvm.lifetime.end.p0(i64 336, ptr nonnull %3) #9
  resume { ptr, i32 } %125

126:                                              ; preds = %122, %31
  call void @llvm.lifetime.end.p0(i64 336, ptr nonnull %3) #9
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3JPH21RegisterTypesInternalEmENK3$_0clEiPKc"(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #4

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

declare void @_ZN3JPH17CollisionDispatch5sInitEv() local_unnamed_addr #5

declare void @_ZN3JPH13CompoundShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH11ConvexShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH20MutableCompoundShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH19StaticCompoundShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH13TriangleShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH11SphereShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH8BoxShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH12CapsuleShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH19TaperedCapsuleShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH13CylinderShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH9MeshShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH15ConvexHullShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH16HeightFieldShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH13SoftBodyShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH22RotatedTranslatedShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH23OffsetCenterOfMassShape9sRegisterEv() local_unnamed_addr #5

declare void @_ZN3JPH11ScaledShape9sRegisterEv() local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_17SkeletalAnimationE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_8SkeletonE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21CompoundShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_27StaticCompoundShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_28MutableCompoundShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21TriangleShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_19SphereShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_16BoxShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_20CapsuleShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_27TaperedCapsuleShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21CylinderShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_19ScaledShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_17MeshShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23ConvexHullShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24HeightFieldShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_30RotatedTranslatedShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_31OffsetCenterOfMassShapeSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_15RagdollSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23PointConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SixDOFConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SliderConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_28SwingTwistConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_26DistanceConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23HingeConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_23FixedConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22ConeConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22PathConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_25VehicleConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_32WheeledVehicleControllerSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_18PathConstraintPathE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_25PathConstraintPathHermiteE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_31RackAndPinionConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_22GearConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24PulleyConstraintSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_13MotorSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_12PhysicsSceneE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_15PhysicsMaterialE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_21PhysicsMaterialSimpleE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_11GroupFilterE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_16GroupFilterTableE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_20BodyCreationSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZN3JPH13GetRTTIOfTypeEPNS_24SoftBodyCreationSettingsE(ptr noundef) local_unnamed_addr #5

declare noundef zeroext i1 @_ZN3JPH7Factory8RegisterEPPKNS_4RTTIEj(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt4sizeIPKN3JPH4RTTIELm42EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH8RefConstINS_15PhysicsMaterialEEeqEPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef) local_unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(16), i32) unnamed_addr #2 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef) local_unnamed_addr #8 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = { nounwind }
attributes #10 = { noreturn 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, !11, i64 0}
!10 = !{!"_ZTSZN3JPH21RegisterTypesInternalEmE3$_0", !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{i64 2158166395}
!13 = !{i64 2158166777}
!14 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass