; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/Physics/Character (CharacterVirtual)

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

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.8", %"class.JPH::RefConst" }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.7", i32, i32 }
%"class.JPH::RefConst.7" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.8" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::CharacterVirtual" = type <{ %"class.JPH::CharacterBase", ptr, ptr, i8, [3 x i8], float, i32, i32, float, float, float, i32, float, float, i8, [3 x i8], float, float, [12 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Array.2", float, i8, [3 x i8], i64, %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::CharacterBase" = type { ptr, %"class.JPH::RefTarget", ptr, %"class.JPH::RefConst", %"class.JPH::Vec3", %"class.JPH::Plane", float, i32, %"class.JPH::BodyID", %"class.JPH::SubShapeID", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::RefConst.1", i64 }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::RefConst.1" = type { ptr }
%"class.JPH::Array.2" = type { i64, i64, ptr }
%"class.JPH::CharacterVirtualSettings" = type <{ %"class.JPH::CharacterBaseSettings", float, float, [8 x i8], %"class.JPH::Vec3", i8, [3 x i8], float, i32, i32, float, float, float, i32, float, float, %"class.JPH::RefConst", i16, [14 x i8] }>
%"class.JPH::CharacterBaseSettings" = type { ptr, %"class.JPH::RefTarget.6", %"class.JPH::Vec3", %"class.JPH::Plane", float, i8, %"class.JPH::RefConst" }
%"class.JPH::RefTarget.6" = type { %"struct.std::atomic" }

@_ZTVN3JPH16CharacterVirtualE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

; 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: 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) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH16CharacterVirtualC2EPKNS_24CharacterVirtualSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(332) %0, ptr noundef %1, double %2, double %3, double %4, double %5, i64 noundef %6, ptr noundef %7) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Quat", align 16
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.JPH::BodyCreationSettings", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Quat", align 16
  %20 = alloca %"class.JPH::BodyID", align 4
  %21 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  store double %2, ptr %21, align 16
  %22 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  store double %3, ptr %22, align 8
  %23 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  store double %4, ptr %23, align 16
  %24 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  store double %5, ptr %24, align 8
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store i64 %6, ptr %13, align 8, !tbaa !9
  store ptr %7, ptr %14, align 8, !tbaa !5
  %25 = load ptr, ptr %11, align 8
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN3JPH13CharacterBaseC2EPKNS_21CharacterBaseSettingsEPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(144) %25, ptr noundef %26, ptr noundef %27)
  store ptr getelementptr inbounds inrange(-16, 32) ({ [6 x ptr] }, ptr @_ZTVN3JPH16CharacterVirtualE, i32 0, i32 0, i32 2), ptr %25, align 16, !tbaa !11
  %28 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 1
  store ptr null, ptr %28, align 16, !tbaa !13
  %29 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 2
  store ptr null, ptr %29, align 8, !tbaa !33
  %30 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 3
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %31, i32 0, i32 5
  %33 = load i8, ptr %32, align 16, !tbaa !34
  store i8 %33, ptr %30, align 16, !tbaa !39
  %34 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 5
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %35, i32 0, i32 7
  %37 = load float, ptr %36, align 4, !tbaa !40
  store float %37, ptr %34, align 4, !tbaa !41
  %38 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 6
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %39, i32 0, i32 8
  %41 = load i32, ptr %40, align 8, !tbaa !42
  store i32 %41, ptr %38, align 8, !tbaa !43
  %42 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 7
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %43, i32 0, i32 9
  %45 = load i32, ptr %44, align 4, !tbaa !44
  store i32 %45, ptr %42, align 4, !tbaa !45
  %46 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 8
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %47, i32 0, i32 10
  %49 = load float, ptr %48, align 16, !tbaa !46
  store float %49, ptr %46, align 16, !tbaa !47
  %50 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 9
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %51, i32 0, i32 11
  %53 = load float, ptr %52, align 4, !tbaa !48
  store float %53, ptr %50, align 4, !tbaa !49
  %54 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 10
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %55, i32 0, i32 12
  %57 = load float, ptr %56, align 8, !tbaa !50
  store float %57, ptr %54, align 8, !tbaa !51
  %58 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 11
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %59, i32 0, i32 13
  %61 = load i32, ptr %60, align 4, !tbaa !52
  store i32 %61, ptr %58, align 4, !tbaa !53
  %62 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 12
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %63, i32 0, i32 14
  %65 = load float, ptr %64, align 16, !tbaa !54
  store float %65, ptr %62, align 16, !tbaa !55
  %66 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 13
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %67, i32 0, i32 15
  %69 = load float, ptr %68, align 4, !tbaa !56
  store float %69, ptr %66, align 4, !tbaa !57
  %70 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 14
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.JPH::CharacterBaseSettings", ptr %71, i32 0, i32 5
  %73 = load i8, ptr %72, align 4, !tbaa !58, !range !59, !noundef !60
  %74 = trunc i8 %73 to i1
  %75 = zext i1 %74 to i8
  store i8 %75, ptr %70, align 8, !tbaa !61
  %76 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 19
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %77, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %76, ptr align 16 %78, i64 16, i1 false), !tbaa.struct !62
  %79 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %79, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !62
  %80 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 21
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %80, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !62
  %81 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 22
  %82 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %83 unwind label %145

83:                                               ; preds = %8
  %84 = getelementptr inbounds %"class.JPH::Vec3", ptr %81, i32 0, i32 0
  %85 = getelementptr inbounds %union.anon, ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 0
  %87 = extractvalue { double, double } %82, 0
  store double %87, ptr %86, align 16
  %88 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 1
  %89 = extractvalue { double, double } %82, 1
  store double %89, ptr %88, align 8
  %90 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 23
  call void @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %90) #8
  %91 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 24
  store float 0x3F91111120000000, ptr %91, align 8, !tbaa !64
  %92 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 25
  store i8 0, ptr %92, align 4, !tbaa !65
  %93 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 27
  %94 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %94, ptr %93, align 16, !tbaa !66
  %95 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 28
  invoke void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %95)
          to label %96 unwind label %149

96:                                               ; preds = %83
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %97, i32 0, i32 2
  %99 = load float, ptr %98, align 4, !tbaa !67
  invoke void @_ZN3JPH16CharacterVirtual14SetMaxStrengthEf(ptr noundef nonnull align 16 dereferenceable(332) %25, float noundef %99)
          to label %100 unwind label %149

100:                                              ; preds = %96
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %101, i32 0, i32 1
  %103 = load float, ptr %102, align 16, !tbaa !68
  invoke void @_ZN3JPH16CharacterVirtual7SetMassEf(ptr noundef nonnull align 16 dereferenceable(332) %25, float noundef %103)
          to label %104 unwind label %149

104:                                              ; preds = %100
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %105, i32 0, i32 16
  %107 = invoke noundef zeroext i1 @_ZNK3JPH8RefConstINS_5ShapeEEneEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef null)
          to label %108 unwind label %149

108:                                              ; preds = %104
  br i1 %107, label %109, label %162

109:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 256, ptr %17) #8
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %110, i32 0, i32 16
  %112 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %111)
          to label %113 unwind label %153

113:                                              ; preds = %109
  %114 = invoke { double, double } @_ZNK3JPH16CharacterVirtual20GetInnerBodyPositionEv(ptr noundef nonnull align 16 dereferenceable(332) %25)
          to label %115 unwind label %153

115:                                              ; preds = %113
  %116 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %117 = getelementptr inbounds %union.anon, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds { double, double }, ptr %117, i32 0, i32 0
  %119 = extractvalue { double, double } %114, 0
  store double %119, ptr %118, align 16
  %120 = getelementptr inbounds { double, double }, ptr %117, i32 0, i32 1
  %121 = extractvalue { double, double } %114, 1
  store double %121, ptr %120, align 8
  %122 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 21
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %122, i64 16, i1 false), !tbaa.struct !62
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %123, i32 0, i32 17
  %125 = load i16, ptr %124, align 16, !tbaa !69
  %126 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %127 = load double, ptr %126, align 16
  %128 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %129 = load double, ptr %128, align 8
  %130 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %131 = load double, ptr %130, align 16
  %132 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %133 = load double, ptr %132, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %17, ptr noundef %112, double %127, double %129, double %131, double %133, i8 noundef zeroext 1, i16 noundef zeroext %125)
          to label %134 unwind label %153

134:                                              ; preds = %115
  %135 = getelementptr inbounds %"class.JPH::BodyCreationSettings", ptr %17, i32 0, i32 16
  store i8 0, ptr %135, align 1, !tbaa !70
  %136 = load i64, ptr %13, align 8, !tbaa !9
  %137 = getelementptr inbounds %"class.JPH::BodyCreationSettings", ptr %17, i32 0, i32 4
  store i64 %136, ptr %137, align 16, !tbaa !81
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH13PhysicsSystem16GetBodyInterfaceEv(ptr noundef nonnull align 16 dereferenceable(1140) %138)
          to label %140 unwind label %157

140:                                              ; preds = %134
  %141 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 16 dereferenceable(256) %17, i32 noundef 0)
          to label %142 unwind label %157

142:                                              ; preds = %140
  %143 = getelementptr inbounds %"class.JPH::BodyID", ptr %20, i32 0, i32 0
  store i32 %141, ptr %143, align 4
  %144 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %25, i32 0, i32 28
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %144, ptr align 4 %20, i64 4, i1 false), !tbaa.struct !82
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %17) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr %17) #8
  br label %162

145:                                              ; preds = %8
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %15, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %16, align 4
  br label %164

149:                                              ; preds = %104, %100, %96, %83
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %15, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %16, align 4
  br label %163

153:                                              ; preds = %115, %113, %109
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %15, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %16, align 4
  br label %161

157:                                              ; preds = %140, %134
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %15, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %17) #8
  br label %161

161:                                              ; preds = %157, %153
  call void @llvm.lifetime.end.p0(i64 256, ptr %17) #8
  br label %163

162:                                              ; preds = %142, %108
  ret void

163:                                              ; preds = %161, %149
  call void @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %90) #8
  br label %164

164:                                              ; preds = %163, %145
  call void @_ZN3JPH13CharacterBaseD2Ev(ptr noundef nonnull align 16 dereferenceable(144) %25) #8
  br label %165

165:                                              ; preds = %164
  %166 = load ptr, ptr %15, align 8
  %167 = load i32, ptr %16, align 4
  %168 = insertvalue { ptr, i32 } poison, ptr %166, 0
  %169 = insertvalue { ptr, i32 } %168, i32 %167, 1
  resume { ptr, i32 } %169
}

declare void @_ZN3JPH13CharacterBaseC2EPKNS_21CharacterBaseSettingsEPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(144), ptr noundef, ptr noundef) unnamed_addr #3

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #2 align 2

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

declare i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256), i32 noundef) #3

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { 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 #8 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !6, i64 144}
!14 = !{!"_ZTSN3JPH16CharacterVirtualE", !15, i64 0, !6, i64 144, !6, i64 152, !29, i64 160, !24, i64 164, !19, i64 168, !19, i64 172, !24, i64 176, !24, i64 180, !24, i64 184, !19, i64 188, !24, i64 192, !24, i64 196, !30, i64 200, !24, i64 204, !24, i64 208, !21, i64 224, !21, i64 240, !31, i64 256, !21, i64 272, !32, i64 288, !24, i64 312, !30, i64 316, !10, i64 320, !26, i64 328}
!15 = !{!"_ZTSN3JPH13CharacterBaseE", !16, i64 8, !6, i64 16, !20, i64 24, !21, i64 32, !22, i64 48, !24, i64 64, !25, i64 68, !26, i64 72, !27, i64 76, !21, i64 80, !21, i64 96, !21, i64 112, !28, i64 128, !10, i64 136}
!16 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !17, i64 0}
!17 = !{!"_ZTSSt6atomicIjE", !18, i64 0}
!18 = !{!"_ZTSSt13__atomic_baseIjE", !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!21 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!22 = !{!"_ZTSN3JPH5PlaneE", !23, i64 0}
!23 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !7, i64 0}
!26 = !{!"_ZTSN3JPH6BodyIDE", !19, i64 0}
!27 = !{!"_ZTSN3JPH10SubShapeIDE", !19, i64 0}
!28 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !6, i64 0}
!29 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSN3JPH4QuatE", !23, i64 0}
!32 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEE", !10, i64 0, !10, i64 8, !6, i64 16}
!33 = !{!14, !6, i64 152}
!34 = !{!35, !29, i64 96}
!35 = !{!"_ZTSN3JPH24CharacterVirtualSettingsE", !36, i64 0, !24, i64 64, !24, i64 68, !21, i64 80, !29, i64 96, !24, i64 100, !19, i64 104, !19, i64 108, !24, i64 112, !24, i64 116, !24, i64 120, !19, i64 124, !24, i64 128, !24, i64 132, !20, i64 136, !38, i64 144}
!36 = !{!"_ZTSN3JPH21CharacterBaseSettingsE", !37, i64 8, !21, i64 16, !22, i64 32, !24, i64 48, !30, i64 52, !20, i64 56}
!37 = !{!"_ZTSN3JPH9RefTargetINS_21CharacterBaseSettingsEEE", !17, i64 0}
!38 = !{!"short", !7, i64 0}
!39 = !{!14, !29, i64 160}
!40 = !{!35, !24, i64 100}
!41 = !{!14, !24, i64 164}
!42 = !{!35, !19, i64 104}
!43 = !{!14, !19, i64 168}
!44 = !{!35, !19, i64 108}
!45 = !{!14, !19, i64 172}
!46 = !{!35, !24, i64 112}
!47 = !{!14, !24, i64 176}
!48 = !{!35, !24, i64 116}
!49 = !{!14, !24, i64 180}
!50 = !{!35, !24, i64 120}
!51 = !{!14, !24, i64 184}
!52 = !{!35, !19, i64 124}
!53 = !{!14, !19, i64 188}
!54 = !{!35, !24, i64 128}
!55 = !{!14, !24, i64 192}
!56 = !{!35, !24, i64 132}
!57 = !{!14, !24, i64 196}
!58 = !{!36, !30, i64 52}
!59 = !{i8 0, i8 2}
!60 = !{}
!61 = !{!14, !30, i64 200}
!62 = !{i64 0, i64 16, !63}
!63 = !{!7, !7, i64 0}
!64 = !{!14, !24, i64 312}
!65 = !{!14, !30, i64 316}
!66 = !{!14, !10, i64 320}
!67 = !{!35, !24, i64 68}
!68 = !{!35, !24, i64 64}
!69 = !{!35, !38, i64 144}
!70 = !{!71, !30, i64 105}
!71 = !{!"_ZTSN3JPH20BodyCreationSettingsE", !21, i64 0, !31, i64 16, !21, i64 32, !21, i64 48, !10, i64 64, !38, i64 72, !72, i64 80, !74, i64 96, !75, i64 97, !30, i64 98, !30, i64 99, !30, i64 100, !30, i64 101, !30, i64 102, !76, i64 103, !30, i64 104, !30, i64 105, !24, i64 108, !24, i64 112, !24, i64 116, !24, i64 120, !24, i64 124, !24, i64 128, !24, i64 132, !19, i64 136, !19, i64 140, !77, i64 144, !24, i64 148, !78, i64 160, !80, i64 240, !20, i64 248}
!72 = !{!"_ZTSN3JPH14CollisionGroupE", !73, i64 0, !19, i64 8, !19, i64 12}
!73 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !6, i64 0}
!74 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!75 = !{!"_ZTSN3JPH12EAllowedDOFsE", !7, i64 0}
!76 = !{!"_ZTSN3JPH14EMotionQualityE", !7, i64 0}
!77 = !{!"_ZTSN3JPH23EOverrideMassPropertiesE", !7, i64 0}
!78 = !{!"_ZTSN3JPH14MassPropertiesE", !24, i64 0, !79, i64 16}
!79 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!80 = !{!"_ZTSN3JPH8RefConstINS_13ShapeSettingsEEE", !6, i64 0}
!81 = !{!71, !10, i64 64}
!82 = !{i64 0, i64 4, !83}
!83 = !{!19, !19, 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::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.8", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.7", i32, i32 }
%"class.JPH::RefConst.7" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.8" = type { ptr }
%"class.JPH::RefConst" = type { ptr }

@_ZTVN3JPH16CharacterVirtualE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

; 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 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) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH16CharacterVirtualC2EPKNS_24CharacterVirtualSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(332) %0, ptr noundef %1, double %2, double %3, double %4, double %5, i64 noundef %6, ptr noundef %7) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"class.JPH::BodyCreationSettings", align 16
  tail call void @_ZN3JPH13CharacterBaseC2EPKNS_21CharacterBaseSettingsEPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(144) %0, ptr noundef %1, ptr noundef %7)
  store ptr getelementptr inbounds inrange(-16, 32) (i8, ptr @_ZTVN3JPH16CharacterVirtualE, i64 16), ptr %0, align 16, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 144
  %11 = getelementptr inbounds i8, ptr %0, i64 160
  %12 = getelementptr inbounds i8, ptr %1, i64 96
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %10, i8 0, i64 16, i1 false)
  %13 = load i8, ptr %12, align 16, !tbaa !8
  store i8 %13, ptr %11, align 16, !tbaa !25
  %14 = getelementptr inbounds i8, ptr %0, i64 164
  %15 = getelementptr inbounds i8, ptr %1, i64 100
  %16 = load float, ptr %15, align 4, !tbaa !36
  store float %16, ptr %14, align 4, !tbaa !37
  %17 = getelementptr inbounds i8, ptr %0, i64 168
  %18 = getelementptr inbounds i8, ptr %1, i64 104
  %19 = load <2 x i32>, ptr %18, align 8, !tbaa !38
  store <2 x i32> %19, ptr %17, align 8, !tbaa !38
  %20 = getelementptr inbounds i8, ptr %0, i64 176
  %21 = getelementptr inbounds i8, ptr %1, i64 112
  %22 = load <2 x float>, ptr %21, align 16, !tbaa !39
  store <2 x float> %22, ptr %20, align 16, !tbaa !39
  %23 = getelementptr inbounds i8, ptr %0, i64 184
  %24 = getelementptr inbounds i8, ptr %1, i64 120
  %25 = load float, ptr %24, align 8, !tbaa !40
  store float %25, ptr %23, align 8, !tbaa !41
  %26 = getelementptr inbounds i8, ptr %0, i64 188
  %27 = getelementptr inbounds i8, ptr %1, i64 124
  %28 = load i32, ptr %27, align 4, !tbaa !42
  store i32 %28, ptr %26, align 4, !tbaa !43
  %29 = getelementptr inbounds i8, ptr %0, i64 192
  %30 = getelementptr inbounds i8, ptr %1, i64 128
  %31 = load <2 x float>, ptr %30, align 16, !tbaa !39
  store <2 x float> %31, ptr %29, align 16, !tbaa !39
  %32 = getelementptr inbounds i8, ptr %0, i64 200
  %33 = getelementptr inbounds i8, ptr %1, i64 52
  %34 = load i8, ptr %33, align 4, !tbaa !44, !range !45, !noundef !46
  store i8 %34, ptr %32, align 8, !tbaa !47
  %35 = getelementptr inbounds i8, ptr %0, i64 224
  %36 = getelementptr inbounds i8, ptr %1, i64 80
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %35, ptr noundef nonnull align 16 dereferenceable(16) %36, i64 16, i1 false), !tbaa.struct !48
  %37 = getelementptr inbounds i8, ptr %0, i64 240
  store double %2, ptr %37, align 16
  %.sroa.230.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 248
  store double %3, ptr %.sroa.230.0..sroa_idx, align 8, !tbaa !49
  %38 = getelementptr inbounds i8, ptr %0, i64 256
  store double %4, ptr %38, align 16
  %.sroa.228.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 264
  store double %5, ptr %.sroa.228.0..sroa_idx, align 8, !tbaa !49
  %39 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %40 unwind label %70

40:                                               ; preds = %8
  %41 = getelementptr inbounds i8, ptr %0, i64 272
  %42 = extractvalue { double, double } %39, 0
  store double %42, ptr %41, align 16
  %43 = getelementptr inbounds i8, ptr %0, i64 280
  %44 = extractvalue { double, double } %39, 1
  store double %44, ptr %43, align 8
  %45 = getelementptr inbounds i8, ptr %0, i64 288
  tail call void @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  %46 = getelementptr inbounds i8, ptr %0, i64 312
  store float 0x3F91111120000000, ptr %46, align 8, !tbaa !50
  %47 = getelementptr inbounds i8, ptr %0, i64 316
  store i8 0, ptr %47, align 4, !tbaa !51
  %48 = getelementptr inbounds i8, ptr %0, i64 320
  store i64 %6, ptr %48, align 16, !tbaa !52
  %49 = getelementptr inbounds i8, ptr %0, i64 328
  tail call void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %49)
  %50 = getelementptr inbounds i8, ptr %1, i64 68
  %51 = load float, ptr %50, align 4, !tbaa !53
  tail call void @_ZN3JPH16CharacterVirtual14SetMaxStrengthEf(ptr noundef nonnull align 16 dereferenceable(332) %0, float noundef %51)
  %52 = getelementptr inbounds i8, ptr %1, i64 64
  %53 = load float, ptr %52, align 16, !tbaa !54
  tail call void @_ZN3JPH16CharacterVirtual7SetMassEf(ptr noundef nonnull align 16 dereferenceable(332) %0, float noundef %53)
  %54 = getelementptr inbounds i8, ptr %1, i64 136
  %55 = tail call noundef zeroext i1 @_ZNK3JPH8RefConstINS_5ShapeEEneEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef null)
  br i1 %55, label %56, label %77

56:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %9) #9
  %57 = tail call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %54)
  %58 = invoke { double, double } @_ZNK3JPH16CharacterVirtual20GetInnerBodyPositionEv(ptr noundef nonnull align 16 dereferenceable(332) %0)
          to label %59 unwind label %72

59:                                               ; preds = %56
  %60 = extractvalue { double, double } %58, 0
  %61 = extractvalue { double, double } %58, 1
  %.sroa.01.0.copyload = load double, ptr %38, align 16
  %.sroa.2.0.copyload = load double, ptr %.sroa.228.0..sroa_idx, align 8, !tbaa !49
  %62 = getelementptr inbounds i8, ptr %1, i64 144
  %63 = load i16, ptr %62, align 16, !tbaa !55
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %9, ptr noundef %57, double %60, double %61, double %.sroa.01.0.copyload, double %.sroa.2.0.copyload, i8 noundef zeroext 1, i16 noundef zeroext %63)
          to label %64 unwind label %72

64:                                               ; preds = %59
  %65 = getelementptr inbounds i8, ptr %9, i64 105
  store i8 0, ptr %65, align 1, !tbaa !56
  %66 = getelementptr inbounds i8, ptr %9, i64 64
  store i64 %6, ptr %66, align 16, !tbaa !67
  %67 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH13PhysicsSystem16GetBodyInterfaceEv(ptr noundef nonnull align 16 dereferenceable(1140) %7)
  %68 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 16 dereferenceable(256) %9, i32 noundef 0)
          to label %69 unwind label %74

69:                                               ; preds = %64
  store i32 %68, ptr %49, align 8, !tbaa !38
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %9) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #9
  br label %77

70:                                               ; preds = %8
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %78

72:                                               ; preds = %59, %56
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %64
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %9) #9
  br label %76

76:                                               ; preds = %74, %72
  %.pn = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #9
  call void @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  br label %78

77:                                               ; preds = %69, %40
  ret void

78:                                               ; preds = %76, %70
  %.pn.pn = phi { ptr, i32 } [ %.pn, %76 ], [ %71, %70 ]
  call void @_ZN3JPH13CharacterBaseD2Ev(ptr noundef nonnull align 16 dereferenceable(144) %0) #9
  resume { ptr, i32 } %.pn.pn
}

declare void @_ZN3JPH13CharacterBaseC2EPKNS_21CharacterBaseSettingsEPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(144), ptr noundef, ptr noundef) unnamed_addr #3

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #2 align 2

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

declare i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256), i32 noundef) local_unnamed_addr #3

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !23, i64 96}
!9 = !{!"_ZTSN3JPH24CharacterVirtualSettingsE", !10, i64 0, !19, i64 64, !19, i64 68, !16, i64 80, !23, i64 96, !19, i64 100, !14, i64 104, !14, i64 108, !19, i64 112, !19, i64 116, !19, i64 120, !14, i64 124, !19, i64 128, !19, i64 132, !21, i64 136, !24, i64 144}
!10 = !{!"_ZTSN3JPH21CharacterBaseSettingsE", !11, i64 8, !16, i64 16, !17, i64 32, !19, i64 48, !20, i64 52, !21, i64 56}
!11 = !{!"_ZTSN3JPH9RefTargetINS_21CharacterBaseSettingsEEE", !12, i64 0}
!12 = !{!"_ZTSSt6atomicIjE", !13, i64 0}
!13 = !{!"_ZTSSt13__atomic_baseIjE", !14, i64 0}
!14 = !{!"int", !15, i64 0}
!15 = !{!"omnipotent char", !7, i64 0}
!16 = !{!"_ZTSN3JPH4Vec3E", !15, i64 0}
!17 = !{!"_ZTSN3JPH5PlaneE", !18, i64 0}
!18 = !{!"_ZTSN3JPH4Vec4E", !15, i64 0}
!19 = !{!"float", !15, i64 0}
!20 = !{!"bool", !15, i64 0}
!21 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !22, i64 0}
!22 = !{!"any pointer", !15, i64 0}
!23 = !{!"_ZTSN3JPH13EBackFaceModeE", !15, i64 0}
!24 = !{!"short", !15, i64 0}
!25 = !{!26, !23, i64 160}
!26 = !{!"_ZTSN3JPH16CharacterVirtualE", !27, i64 0, !22, i64 144, !22, i64 152, !23, i64 160, !19, i64 164, !14, i64 168, !14, i64 172, !19, i64 176, !19, i64 180, !19, i64 184, !14, i64 188, !19, i64 192, !19, i64 196, !20, i64 200, !19, i64 204, !19, i64 208, !16, i64 224, !16, i64 240, !34, i64 256, !16, i64 272, !35, i64 288, !19, i64 312, !20, i64 316, !33, i64 320, !30, i64 328}
!27 = !{!"_ZTSN3JPH13CharacterBaseE", !28, i64 8, !22, i64 16, !21, i64 24, !16, i64 32, !17, i64 48, !19, i64 64, !29, i64 68, !30, i64 72, !31, i64 76, !16, i64 80, !16, i64 96, !16, i64 112, !32, i64 128, !33, i64 136}
!28 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !12, i64 0}
!29 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !15, i64 0}
!30 = !{!"_ZTSN3JPH6BodyIDE", !14, i64 0}
!31 = !{!"_ZTSN3JPH10SubShapeIDE", !14, i64 0}
!32 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !22, i64 0}
!33 = !{!"long", !15, i64 0}
!34 = !{!"_ZTSN3JPH4QuatE", !18, i64 0}
!35 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEE", !33, i64 0, !33, i64 8, !22, i64 16}
!36 = !{!9, !19, i64 100}
!37 = !{!26, !19, i64 164}
!38 = !{!14, !14, i64 0}
!39 = !{!19, !19, i64 0}
!40 = !{!9, !19, i64 120}
!41 = !{!26, !19, i64 184}
!42 = !{!9, !14, i64 124}
!43 = !{!26, !14, i64 188}
!44 = !{!10, !20, i64 52}
!45 = !{i8 0, i8 2}
!46 = !{}
!47 = !{!26, !20, i64 200}
!48 = !{i64 0, i64 16, !49}
!49 = !{!15, !15, i64 0}
!50 = !{!26, !19, i64 312}
!51 = !{!26, !20, i64 316}
!52 = !{!26, !33, i64 320}
!53 = !{!9, !19, i64 68}
!54 = !{!9, !19, i64 64}
!55 = !{!9, !24, i64 144}
!56 = !{!57, !20, i64 105}
!57 = !{!"_ZTSN3JPH20BodyCreationSettingsE", !16, i64 0, !34, i64 16, !16, i64 32, !16, i64 48, !33, i64 64, !24, i64 72, !58, i64 80, !60, i64 96, !61, i64 97, !20, i64 98, !20, i64 99, !20, i64 100, !20, i64 101, !20, i64 102, !62, i64 103, !20, i64 104, !20, i64 105, !19, i64 108, !19, i64 112, !19, i64 116, !19, i64 120, !19, i64 124, !19, i64 128, !19, i64 132, !14, i64 136, !14, i64 140, !63, i64 144, !19, i64 148, !64, i64 160, !66, i64 240, !21, i64 248}
!58 = !{!"_ZTSN3JPH14CollisionGroupE", !59, i64 0, !14, i64 8, !14, i64 12}
!59 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !22, i64 0}
!60 = !{!"_ZTSN3JPH11EMotionTypeE", !15, i64 0}
!61 = !{!"_ZTSN3JPH12EAllowedDOFsE", !15, i64 0}
!62 = !{!"_ZTSN3JPH14EMotionQualityE", !15, i64 0}
!63 = !{!"_ZTSN3JPH23EOverrideMassPropertiesE", !15, i64 0}
!64 = !{!"_ZTSN3JPH14MassPropertiesE", !19, i64 0, !65, i64 16}
!65 = !{!"_ZTSN3JPH5Mat44E", !15, i64 0}
!66 = !{!"_ZTSN3JPH8RefConstINS_13ShapeSettingsEEE", !22, i64 0}
!67 = !{!57, !33, i64 64}


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