; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape/Shape.ll (ZNK3JPH5Shape10ScaleShapeENS_4Vec3E)

; 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::Result" = type <{ %union.anon, i8, [7 x i8] }>
%union.anon = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.JPH::Vec3" = type { %union.anon.2 }
%union.anon.2 = type { <4 x float> }
%"class.JPH::Ref" = type { ptr }
%struct.Collector = type { %"class.JPH::CollisionCollector", %"class.JPH::Array.28" }
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"class.JPH::Array.28" = type { i64, i64, ptr }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.3 }
%union.anon.3 = type { <4 x float> }
%"class.JPH::StaticCompoundShapeSettings" = type { %"class.JPH::CompoundShapeSettings" }
%"class.JPH::CompoundShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::Array.31" }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array.31" = type { i64, i64, ptr }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::TransformedShape" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::RefConst", %"class.JPH::Float3", %"class.JPH::BodyID", %"class.JPH::SubShapeIDCreator" }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::SubShapeIDCreator" = type { %"class.JPH::SubShapeID", i32 }
%"class.JPH::SubShapeID" = type { i32 }

@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1

; 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 nounwind uwtable
declare dso_local void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH5Shape10ScaleShapeENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Result") align 8 %0, ptr noundef nonnull align 8 dereferenceable(26) %1, double %2, double %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca ptr, align 8
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca i1, align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca i1, align 1
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Ref", align 8
  %17 = alloca %"class.JPH::Ref", align 8
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %struct.Collector, align 8
  %20 = alloca %"class.JPH::Mat44", align 16
  %21 = alloca %"class.JPH::Mat44", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Mat44", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::StaticCompoundShapeSettings", align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Quat", align 16
  store ptr %0, ptr %5, align 8
  %39 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  store double %2, ptr %39, align 16
  %40 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  store double %3, ptr %40, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  %41 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #10
  %42 = call { double, double } @_ZN3JPH4Vec34sOneEv()
  %43 = getelementptr inbounds %"class.JPH::Vec3", ptr %8, i32 0, i32 0
  %44 = getelementptr inbounds %union.anon.2, ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %46 = extractvalue { double, double } %42, 0
  store double %46, ptr %45, align 16
  %47 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %48 = extractvalue { double, double } %42, 1
  store double %48, ptr %47, align 8
  %49 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 0x3D71979980000000)
  br i1 %49, label %50, label %59

50:                                               ; preds = %4
  store i1 false, ptr %9, align 1
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0)
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef @.str.8)
          to label %51 unwind label %53

51:                                               ; preds = %50
  store i1 true, ptr %9, align 1
  store i32 1, ptr %12, align 4
  %52 = load i1, ptr %9, align 1
  br i1 %52, label %58, label %57

53:                                               ; preds = %50
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0) #10
  br label %301

57:                                               ; preds = %51
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0) #10
  br label %58

58:                                               ; preds = %57, %51
  br label %300

59:                                               ; preds = %4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !9
  %60 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %61 = load double, ptr %60, align 16
  %62 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %63 = load double, ptr %62, align 8
  %64 = load ptr, ptr %41, align 8, !tbaa !11
  %65 = getelementptr inbounds ptr, ptr %64, i64 32
  %66 = load ptr, ptr %65, align 8
  %67 = call noundef zeroext i1 %66(ptr noundef nonnull align 8 dereferenceable(26) %41, double %61, double %63)
  br i1 %67, label %68, label %119

68:                                               ; preds = %59
  store i1 false, ptr %14, align 1
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %8, i64 16, i1 false), !tbaa.struct !9
  %69 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %70 = load double, ptr %69, align 16
  %71 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %72 = load double, ptr %71, align 8
  %73 = invoke noundef zeroext i1 @_ZNK3JPH4Vec37IsCloseES0_f(ptr noundef nonnull align 16 dereferenceable(16) %6, double %70, double %72, float noundef 0x3D71979980000000)
          to label %74 unwind label %78

74:                                               ; preds = %68
  br i1 %73, label %75, label %91

75:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  invoke void @_ZN3JPH3RefINS_5ShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %41)
          to label %76 unwind label %82

76:                                               ; preds = %75
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE3SetEOS3_(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %77 unwind label %86

77:                                               ; preds = %76
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  br label %114

78:                                               ; preds = %68
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %10, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %11, align 4
  br label %118

82:                                               ; preds = %75
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %10, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %11, align 4
  br label %90

86:                                               ; preds = %76
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %10, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %11, align 4
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #10
  br label %90

90:                                               ; preds = %86, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  br label %118

91:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %92 = invoke noundef ptr @_ZN3JPH11ScaledShapenwEm(i64 noundef 64)
          to label %93 unwind label %101

93:                                               ; preds = %91
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !9
  %94 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %95 = load double, ptr %94, align 16
  %96 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %97 = load double, ptr %96, align 8
  invoke void @_ZN3JPH11ScaledShapeC2EPKNS_5ShapeENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %92, ptr noundef %41, double %95, double %97)
          to label %98 unwind label %105

98:                                               ; preds = %93
  invoke void @_ZN3JPH3RefINS_5ShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef %92)
          to label %99 unwind label %101

99:                                               ; preds = %98
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE3SetEOS3_(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %100 unwind label %109

100:                                              ; preds = %99
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %114

101:                                              ; preds = %98, %91
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %10, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %11, align 4
  br label %113

105:                                              ; preds = %93
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %10, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %11, align 4
  call void @_ZN3JPH11ScaledShapedlEPv(ptr noundef %92) #10
  br label %113

109:                                              ; preds = %99
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %10, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %11, align 4
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #10
  br label %113

113:                                              ; preds = %109, %105, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %118

114:                                              ; preds = %100, %77
  store i1 true, ptr %14, align 1
  store i32 1, ptr %12, align 4
  %115 = load i1, ptr %14, align 1
  br i1 %115, label %117, label %116

116:                                              ; preds = %114
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0) #10
  br label %117

117:                                              ; preds = %116, %114
  br label %300

118:                                              ; preds = %113, %90, %78
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0) #10
  br label %301

119:                                              ; preds = %59
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #10
  call void @_ZZNK3JPH5Shape10ScaleShapeENS_4Vec3EEN9CollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !9
  %120 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %121 = load double, ptr %120, align 16
  %122 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %123 = load double, ptr %122, align 8
  invoke void @_ZN3JPH5Mat446sScaleENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %21, double %121, double %123)
          to label %124 unwind label %164

124:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #10
  %125 = load ptr, ptr %41, align 8, !tbaa !11
  %126 = getelementptr inbounds ptr, ptr %125, i64 3
  %127 = load ptr, ptr %126, align 8
  %128 = invoke { double, double } %127(ptr noundef nonnull align 8 dereferenceable(26) %41)
          to label %129 unwind label %168

129:                                              ; preds = %124
  %130 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %131 = getelementptr inbounds %union.anon.2, ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds { double, double }, ptr %131, i32 0, i32 0
  %133 = extractvalue { double, double } %128, 0
  store double %133, ptr %132, align 16
  %134 = getelementptr inbounds { double, double }, ptr %131, i32 0, i32 1
  %135 = extractvalue { double, double } %128, 1
  store double %135, ptr %134, align 8
  %136 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %137 = load double, ptr %136, align 16
  %138 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %139 = load double, ptr %138, align 8
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %23, double %137, double %139)
          to label %140 unwind label %168

140:                                              ; preds = %129
  invoke void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %20, ptr noundef nonnull align 16 dereferenceable(64) %21, ptr noundef nonnull align 16 dereferenceable(64) %23)
          to label %141 unwind label %168

141:                                              ; preds = %140
  %142 = load ptr, ptr %41, align 8, !tbaa !11
  %143 = getelementptr inbounds ptr, ptr %142, i64 21
  %144 = load ptr, ptr %143, align 8
  invoke void %144(ptr noundef nonnull align 8 dereferenceable(26) %41, ptr noundef nonnull align 16 dereferenceable(64) %20, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %145 unwind label %168

145:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 88, ptr %25) #10
  invoke void @_ZN3JPH27StaticCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %25)
          to label %146 unwind label %173

146:                                              ; preds = %145
  %147 = getelementptr inbounds %"class.JPH::CompoundShapeSettings", ptr %25, i32 0, i32 1
  %148 = getelementptr inbounds %struct.Collector, ptr %19, i32 0, i32 1
  %149 = invoke noundef i64 @_ZNK3JPH5ArrayINS_16TransformedShapeENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %148)
          to label %150 unwind label %177

150:                                              ; preds = %146
  invoke void @_ZN3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %149)
          to label %151 unwind label %177

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %152 = getelementptr inbounds %struct.Collector, ptr %19, i32 0, i32 1
  store ptr %152, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  %153 = load ptr, ptr %26, align 8, !tbaa !5
  %154 = invoke noundef ptr @_ZN3JPH5ArrayINS_16TransformedShapeENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %153)
          to label %155 unwind label %181

155:                                              ; preds = %151
  store ptr %154, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  %156 = load ptr, ptr %26, align 8, !tbaa !5
  %157 = invoke noundef ptr @_ZN3JPH5ArrayINS_16TransformedShapeENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %156)
          to label %158 unwind label %185

158:                                              ; preds = %155
  store ptr %157, ptr %28, align 8, !tbaa !5
  br label %159

159:                                              ; preds = %284, %158
  %160 = load ptr, ptr %27, align 8, !tbaa !5
  %161 = load ptr, ptr %28, align 8, !tbaa !5
  %162 = icmp ne ptr %160, %161
  br i1 %162, label %189, label %163

163:                                              ; preds = %159
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %295

164:                                              ; preds = %119
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %10, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %11, align 4
  br label %172

168:                                              ; preds = %141, %140, %129, %124
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %10, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #10
  br label %172

172:                                              ; preds = %168, %164
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #10
  br label %299

173:                                              ; preds = %145
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %10, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %11, align 4
  br label %298

177:                                              ; preds = %295, %150, %146
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %10, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %11, align 4
  br label %297

181:                                              ; preds = %151
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %10, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %11, align 4
  br label %294

185:                                              ; preds = %155
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %10, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %11, align 4
  br label %293

189:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %190 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %190, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  %191 = load ptr, ptr %29, align 8, !tbaa !5
  %192 = getelementptr inbounds %"class.JPH::TransformedShape", ptr %191, i32 0, i32 2
  %193 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %192)
          to label %194 unwind label %219

194:                                              ; preds = %189
  store ptr %193, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #10
  %195 = load ptr, ptr %29, align 8, !tbaa !5
  %196 = invoke { double, double } @_ZNK3JPH16TransformedShape13GetShapeScaleEv(ptr noundef nonnull align 16 dereferenceable(64) %195)
          to label %197 unwind label %223

197:                                              ; preds = %194
  %198 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %199 = getelementptr inbounds %union.anon.2, ptr %198, i32 0, i32 0
  %200 = getelementptr inbounds { double, double }, ptr %199, i32 0, i32 0
  %201 = extractvalue { double, double } %196, 0
  store double %201, ptr %200, align 16
  %202 = getelementptr inbounds { double, double }, ptr %199, i32 0, i32 1
  %203 = extractvalue { double, double } %196, 1
  store double %203, ptr %202, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %8, i64 16, i1 false), !tbaa.struct !9
  %204 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %205 = load double, ptr %204, align 16
  %206 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %207 = load double, ptr %206, align 8
  %208 = invoke noundef zeroext i1 @_ZNK3JPH4Vec37IsCloseES0_f(ptr noundef nonnull align 16 dereferenceable(16) %31, double %205, double %207, float noundef 0x3D71979980000000)
          to label %209 unwind label %223

209:                                              ; preds = %197
  br i1 %208, label %231, label %210

210:                                              ; preds = %209
  %211 = invoke noundef ptr @_ZN3JPH11ScaledShapenwEm(i64 noundef 64)
          to label %212 unwind label %223

212:                                              ; preds = %210
  %213 = load ptr, ptr %30, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !9
  %214 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %215 = load double, ptr %214, align 16
  %216 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %217 = load double, ptr %216, align 8
  invoke void @_ZN3JPH11ScaledShapeC2EPKNS_5ShapeENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %211, ptr noundef %213, double %215, double %217)
          to label %218 unwind label %227

218:                                              ; preds = %212
  store ptr %211, ptr %30, align 8, !tbaa !5
  br label %231

219:                                              ; preds = %189
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %10, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %11, align 4
  br label %292

223:                                              ; preds = %210, %197, %194
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %10, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %11, align 4
  br label %291

227:                                              ; preds = %212
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %10, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %11, align 4
  call void @_ZN3JPH11ScaledShapedlEPv(ptr noundef %211) #10
  br label %291

231:                                              ; preds = %218, %209
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #10
  %232 = load ptr, ptr %29, align 8, !tbaa !5
  %233 = getelementptr inbounds %"class.JPH::TransformedShape", ptr %232, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %233, i64 16, i1 false), !tbaa.struct !9
  %234 = load ptr, ptr %29, align 8, !tbaa !5
  %235 = getelementptr inbounds %"class.JPH::TransformedShape", ptr %234, i32 0, i32 1
  %236 = load ptr, ptr %30, align 8, !tbaa !5
  %237 = load ptr, ptr %236, align 8, !tbaa !11
  %238 = getelementptr inbounds ptr, ptr %237, i64 3
  %239 = load ptr, ptr %238, align 8
  %240 = invoke { double, double } %239(ptr noundef nonnull align 8 dereferenceable(26) %236)
          to label %241 unwind label %287

241:                                              ; preds = %231
  %242 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i32 0, i32 0
  %243 = getelementptr inbounds %union.anon.2, ptr %242, i32 0, i32 0
  %244 = getelementptr inbounds { double, double }, ptr %243, i32 0, i32 0
  %245 = extractvalue { double, double } %240, 0
  store double %245, ptr %244, align 16
  %246 = getelementptr inbounds { double, double }, ptr %243, i32 0, i32 1
  %247 = extractvalue { double, double } %240, 1
  store double %247, ptr %246, align 8
  %248 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %249 = load double, ptr %248, align 16
  %250 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %251 = load double, ptr %250, align 8
  %252 = invoke { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %235, double %249, double %251)
          to label %253 unwind label %287

253:                                              ; preds = %241
  %254 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %255 = getelementptr inbounds %union.anon.2, ptr %254, i32 0, i32 0
  %256 = getelementptr inbounds { double, double }, ptr %255, i32 0, i32 0
  %257 = extractvalue { double, double } %252, 0
  store double %257, ptr %256, align 16
  %258 = getelementptr inbounds { double, double }, ptr %255, i32 0, i32 1
  %259 = extractvalue { double, double } %252, 1
  store double %259, ptr %258, align 8
  %260 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %261 = load double, ptr %260, align 16
  %262 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %263 = load double, ptr %262, align 8
  %264 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %35, double %261, double %263)
          to label %265 unwind label %287

265:                                              ; preds = %253
  %266 = getelementptr inbounds %"class.JPH::Vec3", ptr %34, i32 0, i32 0
  %267 = getelementptr inbounds %union.anon.2, ptr %266, i32 0, i32 0
  %268 = getelementptr inbounds { double, double }, ptr %267, i32 0, i32 0
  %269 = extractvalue { double, double } %264, 0
  store double %269, ptr %268, align 16
  %270 = getelementptr inbounds { double, double }, ptr %267, i32 0, i32 1
  %271 = extractvalue { double, double } %264, 1
  store double %271, ptr %270, align 8
  %272 = load ptr, ptr %29, align 8, !tbaa !5
  %273 = getelementptr inbounds %"class.JPH::TransformedShape", ptr %272, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %273, i64 16, i1 false), !tbaa.struct !9
  %274 = load ptr, ptr %30, align 8, !tbaa !5
  %275 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %276 = load double, ptr %275, align 16
  %277 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %278 = load double, ptr %277, align 8
  %279 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %280 = load double, ptr %279, align 16
  %281 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %282 = load double, ptr %281, align 8
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %25, double %276, double %278, double %280, double %282, ptr noundef %274, i32 noundef 0)
          to label %283 unwind label %287

283:                                              ; preds = %265
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  br label %284

284:                                              ; preds = %283
  %285 = load ptr, ptr %27, align 8, !tbaa !5
  %286 = getelementptr inbounds %"class.JPH::TransformedShape", ptr %285, i32 1
  store ptr %286, ptr %27, align 8, !tbaa !5
  br label %159

287:                                              ; preds = %265, %253, %241, %231
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %10, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #10
  br label %291

291:                                              ; preds = %287, %227, %223
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  br label %292

292:                                              ; preds = %291, %219
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  br label %293

293:                                              ; preds = %292, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  br label %294

294:                                              ; preds = %293, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %297

295:                                              ; preds = %163
  invoke void @_ZNK3JPH27StaticCompoundShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %25)
          to label %296 unwind label %177

296:                                              ; preds = %295
  store i32 1, ptr %12, align 4
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %25) #10
  call void @llvm.lifetime.end.p0(i64 88, ptr %25) #10
  call void @_ZZNK3JPH5Shape10ScaleShapeENS_4Vec3EEN9CollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #10
  br label %300

297:                                              ; preds = %294, %177
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %25) #10
  br label %298

298:                                              ; preds = %297, %173
  call void @llvm.lifetime.end.p0(i64 88, ptr %25) #10
  br label %299

299:                                              ; preds = %298, %172
  call void @_ZZNK3JPH5Shape10ScaleShapeENS_4Vec3EEN9CollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #10
  br label %301

300:                                              ; preds = %296, %117, %58
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #10
  ret void

301:                                              ; preds = %299, %118, %53
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #10
  br label %302

302:                                              ; preds = %301
  %303 = load ptr, ptr %10, align 8
  %304 = load i32, ptr %11, align 4
  %305 = insertvalue { ptr, i32 } poison, ptr %303, 0
  %306 = insertvalue { ptr, i32 } %305, i32 %304, 1
  resume { ptr, i32 } %306
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #7 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Vec37IsCloseES0_f(ptr noundef nonnull align 16 dereferenceable(16), double, double, float noundef) #6 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZNK3JPH5Shape10ScaleShapeENS_4Vec3EEN9CollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

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

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

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

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

declare void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88), double, double, double, double, ptr noundef, i32 noundef) #9

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

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

declare void @_ZNK3JPH27StaticCompoundShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8, ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #9

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZNK3JPH5Shape10ScaleShapeENS_4Vec3EEN9CollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 16, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, 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::Result" = type <{ %union.anon, i8, [7 x i8] }>
%union.anon = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.JPH::Vec3" = type { %union.anon.2 }
%union.anon.2 = type { <4 x float> }
%"class.JPH::Ref" = type { ptr }
%struct.Collector = type { %"class.JPH::CollisionCollector", %"class.JPH::Array.28" }
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"class.JPH::Array.28" = type { i64, i64, ptr }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.3 }
%union.anon.3 = type { <4 x float> }
%"class.JPH::StaticCompoundShapeSettings" = type { %"class.JPH::CompoundShapeSettings" }
%"class.JPH::CompoundShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::Array.31" }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array.31" = type { i64, i64, ptr }

@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1

; 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 nounwind uwtable
declare dso_local void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH5Shape10ScaleShapeENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Result") align 8 %0, ptr noundef nonnull align 8 dereferenceable(26) %1, double %2, double %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Ref", align 8
  %7 = alloca %"class.JPH::Ref", align 8
  %8 = alloca %struct.Collector, align 8
  %9 = alloca %"class.JPH::Mat44", align 16
  %10 = alloca %"class.JPH::Mat44", align 16
  %11 = alloca %"class.JPH::Mat44", align 16
  %12 = alloca %"class.JPH::StaticCompoundShapeSettings", align 8
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  store double %2, ptr %5, align 16
  %15 = getelementptr inbounds i8, ptr %5, i64 8
  store double %3, ptr %15, align 8
  %16 = tail call { double, double } @_ZN3JPH4Vec34sOneEv()
  %17 = extractvalue { double, double } %16, 0
  %18 = extractvalue { double, double } %16, 1
  %19 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef 0x3D71979980000000)
  br i1 %19, label %20, label %23

20:                                               ; preds = %4
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0)
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull @.str.8)
          to label %122 unwind label %21

21:                                               ; preds = %20
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0) #10
  br label %123

23:                                               ; preds = %4
  %.sroa.033.0.copyload = load double, ptr %5, align 16
  %.sroa.234.0.copyload = load double, ptr %15, align 8, !tbaa !5
  %24 = load ptr, ptr %1, align 8, !tbaa !8
  %25 = getelementptr inbounds i8, ptr %24, i64 256
  %26 = load ptr, ptr %25, align 8
  %27 = call noundef zeroext i1 %26(ptr noundef nonnull align 8 dereferenceable(26) %1, double %.sroa.033.0.copyload, double %.sroa.234.0.copyload)
  br i1 %27, label %28, label %48

28:                                               ; preds = %23
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0)
  %29 = invoke noundef zeroext i1 @_ZNK3JPH4Vec37IsCloseES0_f(ptr noundef nonnull align 16 dereferenceable(16) %5, double %17, double %18, float noundef 0x3D71979980000000)
          to label %30 unwind label %33

30:                                               ; preds = %28
  br i1 %29, label %31, label %37

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  invoke void @_ZN3JPH3RefINS_5ShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull %1)
          to label %32 unwind label %35

32:                                               ; preds = %31
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE3SetEOS3_(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  br label %122

33:                                               ; preds = %28
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %47

35:                                               ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  br label %47

37:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #10
  %38 = invoke noundef ptr @_ZN3JPH11ScaledShapenwEm(i64 noundef 64)
          to label %39 unwind label %42

39:                                               ; preds = %37
  %.sroa.028.0.copyload = load double, ptr %5, align 16
  %.sroa.229.0.copyload = load double, ptr %15, align 8, !tbaa !5
  invoke void @_ZN3JPH11ScaledShapeC2EPKNS_5ShapeENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %38, ptr noundef nonnull %1, double %.sroa.028.0.copyload, double %.sroa.229.0.copyload)
          to label %40 unwind label %44

40:                                               ; preds = %39
  invoke void @_ZN3JPH3RefINS_5ShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %38)
          to label %41 unwind label %42

41:                                               ; preds = %40
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE3SetEOS3_(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  br label %122

42:                                               ; preds = %40, %37
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %46

44:                                               ; preds = %39
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11ScaledShapedlEPv(ptr noundef %38) #10
  br label %46

46:                                               ; preds = %44, %42
  %.pn55 = phi { ptr, i32 } [ %43, %42 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  br label %47

47:                                               ; preds = %46, %35, %33
  %.pn57 = phi { ptr, i32 } [ %36, %35 ], [ %.pn55, %46 ], [ %34, %33 ]
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0) #10
  br label %123

48:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #10
  call void @_ZZNK3JPH5Shape10ScaleShapeENS_4Vec3EEN9CollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #10
  %.sroa.026.0.copyload = load double, ptr %5, align 16
  %.sroa.227.0.copyload = load double, ptr %15, align 8, !tbaa !5
  invoke void @_ZN3JPH5Mat446sScaleENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %10, double %.sroa.026.0.copyload, double %.sroa.227.0.copyload)
          to label %49 unwind label %71

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #10
  %50 = load ptr, ptr %1, align 8, !tbaa !8
  %51 = getelementptr inbounds i8, ptr %50, i64 24
  %52 = load ptr, ptr %51, align 8
  %53 = invoke { double, double } %52(ptr noundef nonnull align 8 dereferenceable(26) %1)
          to label %54 unwind label %73

54:                                               ; preds = %49
  %55 = extractvalue { double, double } %53, 0
  %56 = extractvalue { double, double } %53, 1
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %11, double %55, double %56)
          to label %57 unwind label %73

57:                                               ; preds = %54
  invoke void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %9, ptr noundef nonnull align 16 dereferenceable(64) %10, ptr noundef nonnull align 16 dereferenceable(64) %11)
          to label %58 unwind label %73

58:                                               ; preds = %57
  %59 = load ptr, ptr %1, align 8, !tbaa !8
  %60 = getelementptr inbounds i8, ptr %59, i64 168
  %61 = load ptr, ptr %60, align 8
  invoke void %61(ptr noundef nonnull align 8 dereferenceable(26) %1, ptr noundef nonnull align 16 dereferenceable(64) %9, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %62 unwind label %73

62:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %12) #10
  invoke void @_ZN3JPH27StaticCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %12)
          to label %63 unwind label %76

63:                                               ; preds = %62
  %64 = getelementptr inbounds i8, ptr %12, i64 64
  %65 = getelementptr inbounds i8, ptr %8, i64 24
  %66 = call noundef i64 @_ZNK3JPH5ArrayINS_16TransformedShapeENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  invoke void @_ZN3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66)
          to label %67 unwind label %78

67:                                               ; preds = %63
  %68 = call noundef ptr @_ZN3JPH5ArrayINS_16TransformedShapeENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  %69 = call noundef ptr @_ZN3JPH5ArrayINS_16TransformedShapeENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  %.not61 = icmp eq ptr %68, %69
  br i1 %.not61, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %67
  %70 = getelementptr inbounds i8, ptr %13, i64 8
  br label %80

._crit_edge:                                      ; preds = %113, %67
  invoke void @_ZNK3JPH27StaticCompoundShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %12)
          to label %118 unwind label %78

71:                                               ; preds = %48
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %58, %57, %54, %49
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #10
  br label %75

75:                                               ; preds = %73, %71
  %.pn = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #10
  br label %121

76:                                               ; preds = %62
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %120

78:                                               ; preds = %._crit_edge, %63
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %119

80:                                               ; preds = %.lr.ph, %113
  %.04762 = phi ptr [ %68, %.lr.ph ], [ %114, %113 ]
  %81 = getelementptr inbounds i8, ptr %.04762, i64 32
  %82 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %81)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #10
  %83 = invoke { double, double } @_ZNK3JPH16TransformedShape13GetShapeScaleEv(ptr noundef nonnull align 16 dereferenceable(64) %.04762)
          to label %84 unwind label %92

84:                                               ; preds = %80
  %85 = extractvalue { double, double } %83, 0
  store double %85, ptr %13, align 16
  %86 = extractvalue { double, double } %83, 1
  store double %86, ptr %70, align 8
  %87 = invoke noundef zeroext i1 @_ZNK3JPH4Vec37IsCloseES0_f(ptr noundef nonnull align 16 dereferenceable(16) %13, double %17, double %18, float noundef 0x3D71979980000000)
          to label %88 unwind label %92

88:                                               ; preds = %84
  br i1 %87, label %96, label %89

89:                                               ; preds = %88
  %90 = invoke noundef ptr @_ZN3JPH11ScaledShapenwEm(i64 noundef 64)
          to label %91 unwind label %92

91:                                               ; preds = %89
  %.sroa.07.0.copyload = load double, ptr %13, align 16
  %.sroa.28.0.copyload = load double, ptr %70, align 8, !tbaa !5
  invoke void @_ZN3JPH11ScaledShapeC2EPKNS_5ShapeENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %90, ptr noundef %82, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload)
          to label %96 unwind label %94

92:                                               ; preds = %89, %84, %80
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %117

94:                                               ; preds = %91
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11ScaledShapedlEPv(ptr noundef %90) #10
  br label %117

96:                                               ; preds = %91, %88
  %.048 = phi ptr [ %82, %88 ], [ %90, %91 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 16 dereferenceable(16) %.04762, i64 16, i1 false), !tbaa.struct !10
  %97 = getelementptr inbounds i8, ptr %.04762, i64 16
  %98 = load ptr, ptr %.048, align 8, !tbaa !8
  %99 = getelementptr inbounds i8, ptr %98, i64 24
  %100 = load ptr, ptr %99, align 8
  %101 = invoke { double, double } %100(ptr noundef nonnull align 8 dereferenceable(26) %.048)
          to label %102 unwind label %115

102:                                              ; preds = %96
  %103 = extractvalue { double, double } %101, 0
  %104 = extractvalue { double, double } %101, 1
  %105 = invoke { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %97, double %103, double %104)
          to label %106 unwind label %115

106:                                              ; preds = %102
  %107 = extractvalue { double, double } %105, 0
  %108 = extractvalue { double, double } %105, 1
  %109 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %107, double %108)
          to label %110 unwind label %115

110:                                              ; preds = %106
  %111 = extractvalue { double, double } %109, 0
  %112 = extractvalue { double, double } %109, 1
  %.sroa.0.0.copyload = load double, ptr %97, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %.04762, i64 24
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !5
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %12, double %111, double %112, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, ptr noundef nonnull %.048, i32 noundef 0)
          to label %113 unwind label %115

113:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  %114 = getelementptr inbounds i8, ptr %.04762, i64 64
  %.not = icmp eq ptr %114, %69
  br i1 %.not, label %._crit_edge, label %80

115:                                              ; preds = %110, %106, %102, %96
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  br label %117

117:                                              ; preds = %115, %94, %92
  %.pn50 = phi { ptr, i32 } [ %116, %115 ], [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  br label %119

118:                                              ; preds = %._crit_edge
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %12) #10
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %12) #10
  call void @_ZZNK3JPH5Shape10ScaleShapeENS_4Vec3EEN9CollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  br label %122

119:                                              ; preds = %117, %78
  %.pn50.pn = phi { ptr, i32 } [ %.pn50, %117 ], [ %79, %78 ]
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %12) #10
  br label %120

120:                                              ; preds = %119, %76
  %.pn50.pn.pn = phi { ptr, i32 } [ %.pn50.pn, %119 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %12) #10
  br label %121

121:                                              ; preds = %120, %75
  %.pn50.pn.pn.pn = phi { ptr, i32 } [ %.pn50.pn.pn, %120 ], [ %.pn, %75 ]
  call void @_ZZNK3JPH5Shape10ScaleShapeENS_4Vec3EEN9CollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  br label %123

122:                                              ; preds = %32, %41, %20, %118
  ret void

123:                                              ; preds = %121, %47, %21
  %.pn59 = phi { ptr, i32 } [ %22, %21 ], [ %.pn57, %47 ], [ %.pn50.pn.pn.pn, %121 ]
  resume { ptr, i32 } %.pn59
}

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Vec37IsCloseES0_f(ptr noundef nonnull align 16 dereferenceable(16), double, double, float noundef) local_unnamed_addr #6 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZNK3JPH5Shape10ScaleShapeENS_4Vec3EEN9CollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

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

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

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

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

declare void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88), double, double, double, double, ptr noundef, i32 noundef) local_unnamed_addr #9

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

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

declare void @_ZNK3JPH27StaticCompoundShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8, ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #9

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZNK3JPH5Shape10ScaleShapeENS_4Vec3EEN9CollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"vtable pointer", !7, i64 0}
!10 = !{i64 0, i64 16, !5}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass