; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape (StaticCompoundShape)

; 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::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.7 }
%union.anon.7 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::ScopeExit" = type { %class.anon.15, i8, [7 x i8] }
%class.anon.15 = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.JPH::ScopeExit.17" = type { %class.anon.18, i8, [7 x i8] }
%class.anon.18 = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::ScopeExit.21" = type { %class.anon.22, i8, [7 x i8] }
%class.anon.22 = type <{ ptr, ptr, i32, [4 x i8] }>
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::StaticCompoundShape" = type { %"class.JPH::CompoundShape.base", %"class.JPH::Array.12", [8 x i8] }
%"class.JPH::CompoundShape.base" = type <{ %"class.JPH::Shape.base", [6 x i8], %"class.JPH::Vec3", %"class.JPH::AABox", %"class.JPH::Array.9", float }>
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.8", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.8" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array.9" = type { i64, i64, ptr }
%"class.JPH::Array.12" = type { i64, i64, ptr }
%"class.JPH::CompoundShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::Array" }
%"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" }
%"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.2 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.2 = type { i64, [8 x i8] }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::CompoundShape" = type <{ %"class.JPH::Shape.base", [6 x i8], %"class.JPH::Vec3", %"class.JPH::AABox", %"class.JPH::Array.9", float, [4 x i8] }>
%"struct.JPH::CompoundShape::SubShape" = type <{ %"class.JPH::RefConst.5", %"class.JPH::Float3", %"class.JPH::Float3", i32, i8, [3 x i8] }>
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::Float3" = type { float, float, float }
%struct.StackEntry = type { i32, i32, [5 x i32], %"class.JPH::AABox" }
%"struct.JPH::StaticCompoundShape::Node" = type { [4 x i16], [4 x i16], [4 x i16], [4 x i16], [4 x i16], [4 x i16], [4 x i32] }

@.str.4 = external hidden unnamed_addr constant [105 x i8], align 1
@_ZTVN3JPH19StaticCompoundShapeE = external dso_local unnamed_addr constant { [39 x ptr] }, align 8
@.str.5 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [85 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(52) ptr @_ZNK3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 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)) #4 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH19StaticCompoundShape4Node15SetChildInvalidEj(ptr noundef nonnull align 4 dereferenceable(64), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH19StaticCompoundShape4Node14SetChildBoundsEjRKNS_5AABoxE(ptr noundef nonnull align 4 dereferenceable(64), i32 noundef, ptr noundef nonnull align 16 dereferenceable(32)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH19StaticCompoundShape11sPartition4EPjPNS_5AABoxEiiPi(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH19StaticCompoundShapeC2ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 16 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(33) %3) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.JPH::MassProperties", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca %"class.JPH::ScopeExit", align 8
  %23 = alloca %class.anon.15, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca %"class.JPH::ScopeExit.17", align 8
  %27 = alloca %class.anon.18, align 8
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Mat44", align 16
  %34 = alloca %"class.JPH::Quat", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::AABox", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca %"class.JPH::ScopeExit.21", align 8
  %41 = alloca %class.anon.22, align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca %"class.JPH::AABox", align 16
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca ptr, align 8
  %52 = alloca i32, align 4
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca %"struct.JPH::AssertLastParam", align 1
  %57 = alloca %"class.JPH::AABox", align 16
  %58 = alloca %"struct.JPH::AssertLastParam", align 1
  %59 = alloca %"class.JPH::Ref", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %5, align 8
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN3JPH13CompoundShapeC2ENS_13EShapeSubTypeERKNS_13ShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 16 dereferenceable(108) %60, i8 noundef zeroext 7, ptr noundef nonnull align 8 dereferenceable(64) %61, ptr noundef nonnull align 8 dereferenceable(33) %62)
  store ptr getelementptr inbounds inrange(-16, 296) ({ [39 x ptr] }, ptr @_ZTVN3JPH19StaticCompoundShapeE, i32 0, i32 0, i32 2), ptr %60, align 16, !tbaa !9
  %63 = getelementptr inbounds %"class.JPH::StaticCompoundShape", ptr %60, i32 0, i32 1
  call void @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #11
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.JPH::CompoundShapeSettings", ptr %64, i32 0, i32 1
  %66 = invoke noundef i64 @_ZNK3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
          to label %67 unwind label %74

67:                                               ; preds = %4
  %68 = trunc i64 %66 to i32
  store i32 %68, ptr %9, align 4, !tbaa !11
  %69 = load i32, ptr %9, align 4, !tbaa !11
  %70 = icmp ult i32 %69, 2
  br i1 %70, label %71, label %78

71:                                               ; preds = %67
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %72, ptr noundef @.str.5)
          to label %73 unwind label %74

73:                                               ; preds = %71
  store i32 1, ptr %12, align 4
  br label %655

74:                                               ; preds = %71, %4
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %10, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %11, align 4
  br label %676

78:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #11
  store float 0.000000e+00, ptr %13, align 4, !tbaa !13
  %79 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %60, i32 0, i32 4
  %80 = load i32, ptr %9, align 4, !tbaa !11
  %81 = zext i32 %80 to i64
  invoke void @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81)
          to label %82 unwind label %88

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #11
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %83

83:                                               ; preds = %160, %82
  %84 = load i32, ptr %14, align 4, !tbaa !11
  %85 = load i32, ptr %9, align 4, !tbaa !11
  %86 = icmp ult i32 %84, %85
  br i1 %86, label %92, label %87

87:                                               ; preds = %83
  store i32 2, ptr %12, align 4
  br label %174

88:                                               ; preds = %184, %179, %78
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %10, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %11, align 4
  br label %675

92:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #11
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.JPH::CompoundShapeSettings", ptr %93, i32 0, i32 1
  %95 = load i32, ptr %14, align 4, !tbaa !11
  %96 = zext i32 %95 to i64
  %97 = invoke noundef nonnull align 16 dereferenceable(52) ptr @_ZNK3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %96)
          to label %98 unwind label %110

98:                                               ; preds = %92
  store ptr %97, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #11
  %99 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %60, i32 0, i32 4
  %100 = load i32, ptr %14, align 4, !tbaa !11
  %101 = zext i32 %100 to i64
  %102 = invoke noundef nonnull align 8 dereferenceable(37) ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %101)
          to label %103 unwind label %114

103:                                              ; preds = %98
  store ptr %102, ptr %16, align 8, !tbaa !5
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = invoke noundef zeroext i1 @_ZN3JPH13CompoundShape8SubShape12FromSettingsERKNS_21CompoundShapeSettings16SubShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 8 dereferenceable(37) %104, ptr noundef nonnull align 16 dereferenceable(52) %105, ptr noundef nonnull align 8 dereferenceable(33) %106)
          to label %108 unwind label %114

108:                                              ; preds = %103
  br i1 %107, label %118, label %109

109:                                              ; preds = %108
  store i32 1, ptr %12, align 4
  br label %157

110:                                              ; preds = %92
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %10, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %11, align 4
  br label %173

114:                                              ; preds = %103, %98
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %10, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %11, align 4
  br label %172

118:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #11
  %119 = load ptr, ptr %16, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.JPH::CompoundShape::SubShape", ptr %119, i32 0, i32 0
  %121 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %120)
          to label %122 unwind label %163

122:                                              ; preds = %118
  %123 = load ptr, ptr %121, align 8, !tbaa !9
  %124 = getelementptr inbounds ptr, ptr %123, i64 8
  %125 = load ptr, ptr %124, align 8
  invoke void %125(ptr dead_on_unwind writable sret(%"class.JPH::MassProperties") align 16 %17, ptr noundef nonnull align 8 dereferenceable(26) %121)
          to label %126 unwind label %163

126:                                              ; preds = %122
  %127 = getelementptr inbounds %"class.JPH::MassProperties", ptr %17, i32 0, i32 0
  %128 = load float, ptr %127, align 16, !tbaa !15
  %129 = load float, ptr %13, align 4, !tbaa !13
  %130 = fadd float %129, %128
  store float %130, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #11
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  %132 = invoke { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %131)
          to label %133 unwind label %167

133:                                              ; preds = %126
  %134 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %135 = getelementptr inbounds %union.anon.6, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds { double, double }, ptr %135, i32 0, i32 0
  %137 = extractvalue { double, double } %132, 0
  store double %137, ptr %136, align 16
  %138 = getelementptr inbounds { double, double }, ptr %135, i32 0, i32 1
  %139 = extractvalue { double, double } %132, 1
  store double %139, ptr %138, align 8
  %140 = getelementptr inbounds %"class.JPH::MassProperties", ptr %17, i32 0, i32 0
  %141 = load float, ptr %140, align 16, !tbaa !15
  %142 = invoke { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef %141)
          to label %143 unwind label %167

143:                                              ; preds = %133
  %144 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %145 = getelementptr inbounds %union.anon.6, ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds { double, double }, ptr %145, i32 0, i32 0
  %147 = extractvalue { double, double } %142, 0
  store double %147, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %145, i32 0, i32 1
  %149 = extractvalue { double, double } %142, 1
  store double %149, ptr %148, align 8
  %150 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %60, i32 0, i32 2
  %151 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %152 = load double, ptr %151, align 16
  %153 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %154 = load double, ptr %153, align 8
  %155 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %150, double %152, double %154)
          to label %156 unwind label %167

156:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #11
  store i32 0, ptr %12, align 4
  br label %157

157:                                              ; preds = %156, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  %158 = load i32, ptr %12, align 4
  switch i32 %158, label %174 [
    i32 0, label %159
  ]

159:                                              ; preds = %157
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %14, align 4, !tbaa !11
  %162 = add i32 %161, 1
  store i32 %162, ptr %14, align 4, !tbaa !11
  br label %83, !llvm.loop !18

163:                                              ; preds = %122, %118
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %10, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %11, align 4
  br label %171

167:                                              ; preds = %143, %133, %126
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %10, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #11
  br label %171

171:                                              ; preds = %167, %163
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #11
  br label %172

172:                                              ; preds = %171, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  br label %173

173:                                              ; preds = %172, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #11
  br label %675

174:                                              ; preds = %157, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #11
  %175 = load i32, ptr %12, align 4
  switch i32 %175, label %654 [
    i32 2, label %176
  ]

176:                                              ; preds = %174
  %177 = load float, ptr %13, align 4, !tbaa !13
  %178 = fcmp ogt float %177, 0.000000e+00
  br i1 %178, label %179, label %184

179:                                              ; preds = %176
  %180 = load float, ptr %13, align 4, !tbaa !13
  %181 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %60, i32 0, i32 2
  %182 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %181, float noundef %180)
          to label %183 unwind label %88

183:                                              ; preds = %179
  br label %184

184:                                              ; preds = %183, %176
  invoke void @_ZN3JPH13CompoundShape20CalculateInnerRadiusEv(ptr noundef nonnull align 16 dereferenceable(108) %60)
          to label %185 unwind label %88

185:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #11
  %186 = load i32, ptr %9, align 4, !tbaa !11
  %187 = zext i32 %186 to i64
  %188 = mul i64 %187, 32
  %189 = trunc i64 %188 to i32
  store i32 %189, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #11
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = load i32, ptr %20, align 4, !tbaa !11
  %192 = load ptr, ptr %190, align 8, !tbaa !9
  %193 = getelementptr inbounds ptr, ptr %192, i64 2
  %194 = load ptr, ptr %193, align 8
  %195 = invoke noundef ptr %194(ptr noundef nonnull align 8 dereferenceable(8) %190, i32 noundef %191)
          to label %196 unwind label %227

196:                                              ; preds = %185
  store ptr %195, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #11
  %197 = getelementptr inbounds %class.anon.15, ptr %23, i32 0, i32 0
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %198, ptr %197, align 8, !tbaa !5
  %199 = getelementptr inbounds %class.anon.15, ptr %23, i32 0, i32 1
  %200 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %200, ptr %199, align 8, !tbaa !20
  %201 = getelementptr inbounds %class.anon.15, ptr %23, i32 0, i32 2
  %202 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %202, ptr %201, align 8, !tbaa !22
  invoke void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25) %22, ptr noundef nonnull align 8 dereferenceable(20) %23)
          to label %203 unwind label %231

203:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #11
  %204 = load i32, ptr %9, align 4, !tbaa !11
  %205 = zext i32 %204 to i64
  %206 = mul i64 %205, 4
  %207 = trunc i64 %206 to i32
  store i32 %207, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #11
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = load i32, ptr %24, align 4, !tbaa !11
  %210 = load ptr, ptr %208, align 8, !tbaa !9
  %211 = getelementptr inbounds ptr, ptr %210, i64 2
  %212 = load ptr, ptr %211, align 8
  %213 = invoke noundef ptr %212(ptr noundef nonnull align 8 dereferenceable(8) %208, i32 noundef %209)
          to label %214 unwind label %235

214:                                              ; preds = %203
  store ptr %213, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #11
  %215 = getelementptr inbounds %class.anon.18, ptr %27, i32 0, i32 0
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %216, ptr %215, align 8, !tbaa !5
  %217 = getelementptr inbounds %class.anon.18, ptr %27, i32 0, i32 1
  %218 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %218, ptr %217, align 8, !tbaa !23
  %219 = getelementptr inbounds %class.anon.18, ptr %27, i32 0, i32 2
  %220 = load i32, ptr %24, align 4, !tbaa !11
  store i32 %220, ptr %219, align 8, !tbaa !25
  invoke void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25) %26, ptr noundef nonnull align 8 dereferenceable(20) %27)
          to label %221 unwind label %239

221:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #11
  store i32 0, ptr %28, align 4, !tbaa !11
  br label %222

222:                                              ; preds = %336, %221
  %223 = load i32, ptr %28, align 4, !tbaa !11
  %224 = load i32, ptr %9, align 4, !tbaa !11
  %225 = icmp ult i32 %223, %224
  br i1 %225, label %243, label %226

226:                                              ; preds = %222
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  br label %357

227:                                              ; preds = %185
  %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
  br label %674

231:                                              ; preds = %196
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %10, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #11
  br label %673

235:                                              ; preds = %203
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %10, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %11, align 4
  br label %672

239:                                              ; preds = %214
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %10, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #11
  br label %671

243:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #11
  %244 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %60, i32 0, i32 4
  %245 = load i32, ptr %28, align 4, !tbaa !11
  %246 = zext i32 %245 to i64
  %247 = invoke noundef nonnull align 8 dereferenceable(37) ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %244, i64 noundef %246)
          to label %248 unwind label %339

248:                                              ; preds = %243
  store ptr %247, ptr %29, align 8, !tbaa !5
  %249 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #11
  %250 = load ptr, ptr %29, align 8, !tbaa !5
  %251 = invoke { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %250)
          to label %252 unwind label %343

252:                                              ; preds = %248
  %253 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %254 = getelementptr inbounds %union.anon.6, ptr %253, i32 0, i32 0
  %255 = getelementptr inbounds { double, double }, ptr %254, i32 0, i32 0
  %256 = extractvalue { double, double } %251, 0
  store double %256, ptr %255, align 16
  %257 = getelementptr inbounds { double, double }, ptr %254, i32 0, i32 1
  %258 = extractvalue { double, double } %251, 1
  store double %258, ptr %257, align 8
  %259 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %60, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %259, i64 16, i1 false), !tbaa.struct !26
  %260 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %261 = load double, ptr %260, align 16
  %262 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %263 = load double, ptr %262, align 8
  %264 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %261, double %263)
          to label %265 unwind label %343

265:                                              ; preds = %252
  %266 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %267 = getelementptr inbounds %union.anon.6, 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 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %273 = load double, ptr %272, align 16
  %274 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %275 = load double, ptr %274, align 8
  invoke void @_ZN3JPH13CompoundShape8SubShape14SetPositionCOMENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(37) %249, double %273, double %275)
          to label %276 unwind label %343

276:                                              ; preds = %265
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr %33) #11
  %277 = load ptr, ptr %29, align 8, !tbaa !5
  %278 = invoke { double, double } @_ZNK3JPH13CompoundShape8SubShape11GetRotationEv(ptr noundef nonnull align 8 dereferenceable(37) %277)
          to label %279 unwind label %347

279:                                              ; preds = %276
  %280 = getelementptr inbounds %"class.JPH::Quat", ptr %34, i32 0, i32 0
  %281 = getelementptr inbounds %"class.JPH::Vec4", ptr %280, i32 0, i32 0
  %282 = getelementptr inbounds %union.anon.7, ptr %281, i32 0, i32 0
  %283 = getelementptr inbounds { double, double }, ptr %282, i32 0, i32 0
  %284 = extractvalue { double, double } %278, 0
  store double %284, ptr %283, align 16
  %285 = getelementptr inbounds { double, double }, ptr %282, i32 0, i32 1
  %286 = extractvalue { double, double } %278, 1
  store double %286, ptr %285, align 8
  %287 = load ptr, ptr %29, align 8, !tbaa !5
  %288 = invoke { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %287)
          to label %289 unwind label %347

289:                                              ; preds = %279
  %290 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %291 = getelementptr inbounds %union.anon.6, ptr %290, i32 0, i32 0
  %292 = getelementptr inbounds { double, double }, ptr %291, i32 0, i32 0
  %293 = extractvalue { double, double } %288, 0
  store double %293, ptr %292, align 16
  %294 = getelementptr inbounds { double, double }, ptr %291, i32 0, i32 1
  %295 = extractvalue { double, double } %288, 1
  store double %295, ptr %294, align 8
  %296 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %297 = load double, ptr %296, align 16
  %298 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %299 = load double, ptr %298, align 8
  %300 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %301 = load double, ptr %300, align 16
  %302 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %303 = load double, ptr %302, align 8
  invoke void @_ZN3JPH5Mat4420sRotationTranslationENS_4QuatENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %33, double %297, double %299, double %301, double %303)
          to label %304 unwind label %347

304:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #11
  %305 = load ptr, ptr %29, align 8, !tbaa !5
  %306 = getelementptr inbounds %"struct.JPH::CompoundShape::SubShape", ptr %305, i32 0, i32 0
  %307 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %306)
          to label %308 unwind label %351

308:                                              ; preds = %304
  %309 = invoke { double, double } @_ZN3JPH4Vec34sOneEv()
          to label %310 unwind label %351

310:                                              ; preds = %308
  %311 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i32 0, i32 0
  %312 = getelementptr inbounds %union.anon.6, ptr %311, i32 0, i32 0
  %313 = getelementptr inbounds { double, double }, ptr %312, i32 0, i32 0
  %314 = extractvalue { double, double } %309, 0
  store double %314, ptr %313, align 16
  %315 = getelementptr inbounds { double, double }, ptr %312, i32 0, i32 1
  %316 = extractvalue { double, double } %309, 1
  store double %316, ptr %315, align 8
  %317 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %318 = load double, ptr %317, align 16
  %319 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %320 = load double, ptr %319, align 8
  %321 = load ptr, ptr %307, align 8, !tbaa !9
  %322 = getelementptr inbounds ptr, ptr %321, i64 6
  %323 = load ptr, ptr %322, align 8
  invoke void %323(ptr dead_on_unwind writable sret(%"class.JPH::AABox") align 16 %36, ptr noundef nonnull align 8 dereferenceable(26) %307, ptr noundef nonnull align 16 dereferenceable(64) %33, double %318, double %320)
          to label %324 unwind label %351

324:                                              ; preds = %310
  %325 = load ptr, ptr %21, align 8, !tbaa !5
  %326 = load i32, ptr %28, align 4, !tbaa !11
  %327 = zext i32 %326 to i64
  %328 = getelementptr inbounds %"class.JPH::AABox", ptr %325, i64 %327
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %328, ptr align 16 %36, i64 32, i1 false), !tbaa.struct !28
  %329 = load i32, ptr %28, align 4, !tbaa !11
  %330 = load ptr, ptr %25, align 8, !tbaa !5
  %331 = load i32, ptr %28, align 4, !tbaa !11
  %332 = zext i32 %331 to i64
  %333 = getelementptr inbounds i32, ptr %330, i64 %332
  store i32 %329, ptr %333, align 4, !tbaa !11
  %334 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %60, i32 0, i32 3
  invoke void @_ZN3JPH5AABox11EncapsulateERKS0_(ptr noundef nonnull align 16 dereferenceable(32) %334, ptr noundef nonnull align 16 dereferenceable(32) %36)
          to label %335 unwind label %351

335:                                              ; preds = %324
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  br label %336

336:                                              ; preds = %335
  %337 = load i32, ptr %28, align 4, !tbaa !11
  %338 = add i32 %337, 1
  store i32 %338, ptr %28, align 4, !tbaa !11
  br label %222, !llvm.loop !29

339:                                              ; preds = %243
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %10, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %11, align 4
  br label %356

343:                                              ; preds = %265, %252, %248
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %10, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #11
  br label %356

347:                                              ; preds = %289, %279, %276
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %10, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %11, align 4
  br label %355

351:                                              ; preds = %324, %310, %308, %304
  %352 = landingpad { ptr, i32 }
          cleanup
  %353 = extractvalue { ptr, i32 } %352, 0
  store ptr %353, ptr %10, align 8
  %354 = extractvalue { ptr, i32 } %352, 1
  store i32 %354, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #11
  br label %355

355:                                              ; preds = %351, %347
  call void @llvm.lifetime.end.p0(i64 64, ptr %33) #11
  br label %356

356:                                              ; preds = %355, %343, %339
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  br label %670

357:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #11
  %358 = load i32, ptr %9, align 4, !tbaa !11
  %359 = zext i32 %358 to i64
  %360 = mul i64 %359, 64
  %361 = trunc i64 %360 to i32
  store i32 %361, ptr %38, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #11
  %362 = load ptr, ptr %7, align 8, !tbaa !5
  %363 = load i32, ptr %38, align 4, !tbaa !11
  %364 = load ptr, ptr %362, align 8, !tbaa !9
  %365 = getelementptr inbounds ptr, ptr %364, i64 2
  %366 = load ptr, ptr %365, align 8
  %367 = invoke noundef ptr %366(ptr noundef nonnull align 8 dereferenceable(8) %362, i32 noundef %363)
          to label %368 unwind label %421

368:                                              ; preds = %357
  store ptr %367, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #11
  %369 = getelementptr inbounds %class.anon.22, ptr %41, i32 0, i32 0
  %370 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %370, ptr %369, align 8, !tbaa !5
  %371 = getelementptr inbounds %class.anon.22, ptr %41, i32 0, i32 1
  %372 = load ptr, ptr %39, align 8, !tbaa !5
  store ptr %372, ptr %371, align 8, !tbaa !30
  %373 = getelementptr inbounds %class.anon.22, ptr %41, i32 0, i32 2
  %374 = load i32, ptr %38, align 4, !tbaa !11
  store i32 %374, ptr %373, align 8, !tbaa !32
  invoke void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25) %40, ptr noundef nonnull align 8 dereferenceable(20) %41)
          to label %375 unwind label %425

375:                                              ; preds = %368
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #11
  store i32 0, ptr %42, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #11
  store i32 0, ptr %43, align 4, !tbaa !11
  %376 = getelementptr inbounds %"class.JPH::StaticCompoundShape", ptr %60, i32 0, i32 1
  %377 = load i32, ptr %9, align 4, !tbaa !11
  %378 = load i32, ptr %9, align 4, !tbaa !11
  %379 = add i32 %378, 2
  %380 = udiv i32 %379, 3
  %381 = add i32 %377, %380
  %382 = zext i32 %381 to i64
  invoke void @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %376, i64 noundef %382)
          to label %383 unwind label %429

383:                                              ; preds = %375
  %384 = load i32, ptr %43, align 4, !tbaa !11
  %385 = add i32 %384, 1
  store i32 %385, ptr %43, align 4, !tbaa !11
  %386 = load ptr, ptr %39, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.StackEntry, ptr %386, i64 0
  %388 = getelementptr inbounds %struct.StackEntry, ptr %387, i32 0, i32 0
  store i32 %384, ptr %388, align 16, !tbaa !33
  %389 = load ptr, ptr %39, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.StackEntry, ptr %389, i64 0
  %391 = getelementptr inbounds %struct.StackEntry, ptr %390, i32 0, i32 1
  store i32 -1, ptr %391, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #11
  invoke void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %44)
          to label %392 unwind label %433

392:                                              ; preds = %383
  %393 = load ptr, ptr %39, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.StackEntry, ptr %393, i64 0
  %395 = getelementptr inbounds %struct.StackEntry, ptr %394, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %395, ptr align 16 %44, i64 32, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #11
  %396 = load ptr, ptr %25, align 8, !tbaa !5
  %397 = load ptr, ptr %21, align 8, !tbaa !5
  %398 = load i32, ptr %9, align 4, !tbaa !11
  %399 = load ptr, ptr %39, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.StackEntry, ptr %399, i64 0
  %401 = getelementptr inbounds %struct.StackEntry, ptr %400, i32 0, i32 2
  %402 = getelementptr inbounds [5 x i32], ptr %401, i64 0, i64 0
  invoke void @_ZN3JPH19StaticCompoundShape11sPartition4EPjPNS_5AABoxEiiPi(ptr noundef %396, ptr noundef %397, i32 noundef 0, i32 noundef %398, ptr noundef %402)
          to label %403 unwind label %429

403:                                              ; preds = %392
  br label %404

404:                                              ; preds = %614, %403
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #11
  %405 = load ptr, ptr %39, align 8, !tbaa !5
  %406 = load i32, ptr %42, align 4, !tbaa !11
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds %struct.StackEntry, ptr %405, i64 %407
  store ptr %408, ptr %45, align 8, !tbaa !5
  %409 = load ptr, ptr %45, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.StackEntry, ptr %409, i32 0, i32 1
  %411 = load i32, ptr %410, align 4, !tbaa !37
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %410, align 4, !tbaa !37
  %413 = load ptr, ptr %45, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.StackEntry, ptr %413, i32 0, i32 1
  %415 = load i32, ptr %414, align 4, !tbaa !37
  %416 = icmp sge i32 %415, 4
  br i1 %416, label %417, label %483

417:                                              ; preds = %404
  %418 = load i32, ptr %42, align 4, !tbaa !11
  %419 = icmp sle i32 %418, 0
  br i1 %419, label %420, label %437

420:                                              ; preds = %417
  store i32 8, ptr %12, align 4
  br label %612

421:                                              ; preds = %357
  %422 = landingpad { ptr, i32 }
          cleanup
  %423 = extractvalue { ptr, i32 } %422, 0
  store ptr %423, ptr %10, align 8
  %424 = extractvalue { ptr, i32 } %422, 1
  store i32 %424, ptr %11, align 4
  br label %669

425:                                              ; preds = %368
  %426 = landingpad { ptr, i32 }
          cleanup
  %427 = extractvalue { ptr, i32 } %426, 0
  store ptr %427, ptr %10, align 8
  %428 = extractvalue { ptr, i32 } %426, 1
  store i32 %428, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #11
  br label %668

429:                                              ; preds = %646, %642, %639, %634, %630, %624, %617, %392, %375
  %430 = landingpad { ptr, i32 }
          cleanup
  %431 = extractvalue { ptr, i32 } %430, 0
  store ptr %431, ptr %10, align 8
  %432 = extractvalue { ptr, i32 } %430, 1
  store i32 %432, ptr %11, align 4
  br label %667

433:                                              ; preds = %383
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %10, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #11
  br label %667

437:                                              ; preds = %417
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #11
  %438 = load ptr, ptr %39, align 8, !tbaa !5
  %439 = load i32, ptr %42, align 4, !tbaa !11
  %440 = sub nsw i32 %439, 1
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds %struct.StackEntry, ptr %438, i64 %441
  store ptr %442, ptr %46, align 8, !tbaa !5
  %443 = load ptr, ptr %46, align 8, !tbaa !5
  %444 = getelementptr inbounds %struct.StackEntry, ptr %443, i32 0, i32 3
  %445 = load ptr, ptr %45, align 8, !tbaa !5
  %446 = getelementptr inbounds %struct.StackEntry, ptr %445, i32 0, i32 3
  invoke void @_ZN3JPH5AABox11EncapsulateERKS0_(ptr noundef nonnull align 16 dereferenceable(32) %444, ptr noundef nonnull align 16 dereferenceable(32) %446)
          to label %447 unwind label %474

447:                                              ; preds = %437
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #11
  %448 = getelementptr inbounds %"class.JPH::StaticCompoundShape", ptr %60, i32 0, i32 1
  %449 = load ptr, ptr %46, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.StackEntry, ptr %449, i32 0, i32 0
  %451 = load i32, ptr %450, align 16, !tbaa !33
  %452 = zext i32 %451 to i64
  %453 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %448, i64 noundef %452)
          to label %454 unwind label %478

454:                                              ; preds = %447
  store ptr %453, ptr %47, align 8, !tbaa !5
  %455 = load ptr, ptr %45, align 8, !tbaa !5
  %456 = getelementptr inbounds %struct.StackEntry, ptr %455, i32 0, i32 0
  %457 = load i32, ptr %456, align 16, !tbaa !33
  %458 = load ptr, ptr %47, align 8, !tbaa !5
  %459 = getelementptr inbounds %"struct.JPH::StaticCompoundShape::Node", ptr %458, i32 0, i32 6
  %460 = load ptr, ptr %46, align 8, !tbaa !5
  %461 = getelementptr inbounds %struct.StackEntry, ptr %460, i32 0, i32 1
  %462 = load i32, ptr %461, align 4, !tbaa !37
  %463 = sext i32 %462 to i64
  %464 = getelementptr inbounds [4 x i32], ptr %459, i64 0, i64 %463
  store i32 %457, ptr %464, align 4, !tbaa !11
  %465 = load ptr, ptr %47, align 8, !tbaa !5
  %466 = load ptr, ptr %46, align 8, !tbaa !5
  %467 = getelementptr inbounds %struct.StackEntry, ptr %466, i32 0, i32 1
  %468 = load i32, ptr %467, align 4, !tbaa !37
  %469 = load ptr, ptr %45, align 8, !tbaa !5
  %470 = getelementptr inbounds %struct.StackEntry, ptr %469, i32 0, i32 3
  invoke void @_ZN3JPH19StaticCompoundShape4Node14SetChildBoundsEjRKNS_5AABoxE(ptr noundef nonnull align 4 dereferenceable(64) %465, i32 noundef %468, ptr noundef nonnull align 16 dereferenceable(32) %470)
          to label %471 unwind label %478

471:                                              ; preds = %454
  %472 = load i32, ptr %42, align 4, !tbaa !11
  %473 = add nsw i32 %472, -1
  store i32 %473, ptr %42, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  br label %611

474:                                              ; preds = %437
  %475 = landingpad { ptr, i32 }
          cleanup
  %476 = extractvalue { ptr, i32 } %475, 0
  store ptr %476, ptr %10, align 8
  %477 = extractvalue { ptr, i32 } %475, 1
  store i32 %477, ptr %11, align 4
  br label %482

478:                                              ; preds = %454, %447
  %479 = landingpad { ptr, i32 }
          cleanup
  %480 = extractvalue { ptr, i32 } %479, 0
  store ptr %480, ptr %10, align 8
  %481 = extractvalue { ptr, i32 } %479, 1
  store i32 %481, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  br label %482

482:                                              ; preds = %478, %474
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  br label %615

483:                                              ; preds = %404
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #11
  %484 = load ptr, ptr %45, align 8, !tbaa !5
  %485 = getelementptr inbounds %struct.StackEntry, ptr %484, i32 0, i32 2
  %486 = load ptr, ptr %45, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.StackEntry, ptr %486, i32 0, i32 1
  %488 = load i32, ptr %487, align 4, !tbaa !37
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds [5 x i32], ptr %485, i64 0, i64 %489
  %491 = load i32, ptr %490, align 4, !tbaa !11
  store i32 %491, ptr %48, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #11
  %492 = load ptr, ptr %45, align 8, !tbaa !5
  %493 = getelementptr inbounds %struct.StackEntry, ptr %492, i32 0, i32 2
  %494 = load ptr, ptr %45, align 8, !tbaa !5
  %495 = getelementptr inbounds %struct.StackEntry, ptr %494, i32 0, i32 1
  %496 = load i32, ptr %495, align 4, !tbaa !37
  %497 = add nsw i32 %496, 1
  %498 = sext i32 %497 to i64
  %499 = getelementptr inbounds [5 x i32], ptr %493, i64 0, i64 %498
  %500 = load i32, ptr %499, align 4, !tbaa !11
  store i32 %500, ptr %49, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #11
  %501 = load i32, ptr %49, align 4, !tbaa !11
  %502 = load i32, ptr %48, align 4, !tbaa !11
  %503 = sub nsw i32 %501, %502
  store i32 %503, ptr %50, align 4, !tbaa !11
  %504 = load i32, ptr %50, align 4, !tbaa !11
  %505 = icmp eq i32 %504, 0
  br i1 %505, label %506, label %522

506:                                              ; preds = %483
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #11
  %507 = getelementptr inbounds %"class.JPH::StaticCompoundShape", ptr %60, i32 0, i32 1
  %508 = load ptr, ptr %45, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.StackEntry, ptr %508, i32 0, i32 0
  %510 = load i32, ptr %509, align 16, !tbaa !33
  %511 = zext i32 %510 to i64
  %512 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %507, i64 noundef %511)
          to label %513 unwind label %518

513:                                              ; preds = %506
  store ptr %512, ptr %51, align 8, !tbaa !5
  %514 = load ptr, ptr %51, align 8, !tbaa !5
  %515 = load ptr, ptr %45, align 8, !tbaa !5
  %516 = getelementptr inbounds %struct.StackEntry, ptr %515, i32 0, i32 1
  %517 = load i32, ptr %516, align 4, !tbaa !37
  call void @_ZN3JPH19StaticCompoundShape4Node15SetChildInvalidEj(ptr noundef nonnull align 4 dereferenceable(64) %514, i32 noundef %517)
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #11
  br label %609

518:                                              ; preds = %506
  %519 = landingpad { ptr, i32 }
          cleanup
  %520 = extractvalue { ptr, i32 } %519, 0
  store ptr %520, ptr %10, align 8
  %521 = extractvalue { ptr, i32 } %519, 1
  store i32 %521, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #11
  br label %610

522:                                              ; preds = %483
  %523 = load i32, ptr %50, align 4, !tbaa !11
  %524 = icmp eq i32 %523, 1
  br i1 %524, label %525, label %565

525:                                              ; preds = %522
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #11
  %526 = load ptr, ptr %25, align 8, !tbaa !5
  %527 = load i32, ptr %48, align 4, !tbaa !11
  %528 = sext i32 %527 to i64
  %529 = getelementptr inbounds i32, ptr %526, i64 %528
  %530 = load i32, ptr %529, align 4, !tbaa !11
  store i32 %530, ptr %52, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #11
  %531 = load ptr, ptr %21, align 8, !tbaa !5
  %532 = load i32, ptr %48, align 4, !tbaa !11
  %533 = sext i32 %532 to i64
  %534 = getelementptr inbounds %"class.JPH::AABox", ptr %531, i64 %533
  store ptr %534, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #11
  %535 = getelementptr inbounds %"class.JPH::StaticCompoundShape", ptr %60, i32 0, i32 1
  %536 = load ptr, ptr %45, align 8, !tbaa !5
  %537 = getelementptr inbounds %struct.StackEntry, ptr %536, i32 0, i32 0
  %538 = load i32, ptr %537, align 16, !tbaa !33
  %539 = zext i32 %538 to i64
  %540 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %535, i64 noundef %539)
          to label %541 unwind label %561

541:                                              ; preds = %525
  store ptr %540, ptr %54, align 8, !tbaa !5
  %542 = load i32, ptr %52, align 4, !tbaa !11
  %543 = or i32 %542, -2147483648
  %544 = load ptr, ptr %54, align 8, !tbaa !5
  %545 = getelementptr inbounds %"struct.JPH::StaticCompoundShape::Node", ptr %544, i32 0, i32 6
  %546 = load ptr, ptr %45, align 8, !tbaa !5
  %547 = getelementptr inbounds %struct.StackEntry, ptr %546, i32 0, i32 1
  %548 = load i32, ptr %547, align 4, !tbaa !37
  %549 = sext i32 %548 to i64
  %550 = getelementptr inbounds [4 x i32], ptr %545, i64 0, i64 %549
  store i32 %543, ptr %550, align 4, !tbaa !11
  %551 = load ptr, ptr %54, align 8, !tbaa !5
  %552 = load ptr, ptr %45, align 8, !tbaa !5
  %553 = getelementptr inbounds %struct.StackEntry, ptr %552, i32 0, i32 1
  %554 = load i32, ptr %553, align 4, !tbaa !37
  %555 = load ptr, ptr %53, align 8, !tbaa !5
  invoke void @_ZN3JPH19StaticCompoundShape4Node14SetChildBoundsEjRKNS_5AABoxE(ptr noundef nonnull align 4 dereferenceable(64) %551, i32 noundef %554, ptr noundef nonnull align 16 dereferenceable(32) %555)
          to label %556 unwind label %561

556:                                              ; preds = %541
  %557 = load ptr, ptr %45, align 8, !tbaa !5
  %558 = getelementptr inbounds %struct.StackEntry, ptr %557, i32 0, i32 3
  %559 = load ptr, ptr %53, align 8, !tbaa !5
  invoke void @_ZN3JPH5AABox11EncapsulateERKS0_(ptr noundef nonnull align 16 dereferenceable(32) %558, ptr noundef nonnull align 16 dereferenceable(32) %559)
          to label %560 unwind label %561

560:                                              ; preds = %556
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #11
  br label %608

561:                                              ; preds = %556, %541, %525
  %562 = landingpad { ptr, i32 }
          cleanup
  %563 = extractvalue { ptr, i32 } %562, 0
  store ptr %563, ptr %10, align 8
  %564 = extractvalue { ptr, i32 } %562, 1
  store i32 %564, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #11
  br label %610

565:                                              ; preds = %522
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #11
  %566 = load ptr, ptr %39, align 8, !tbaa !5
  %567 = load i32, ptr %42, align 4, !tbaa !11
  %568 = add nsw i32 %567, 1
  store i32 %568, ptr %42, align 4, !tbaa !11
  %569 = sext i32 %568 to i64
  %570 = getelementptr inbounds %struct.StackEntry, ptr %566, i64 %569
  store ptr %570, ptr %55, align 8, !tbaa !5
  br label %571

571:                                              ; preds = %565
  %572 = load i32, ptr %42, align 4, !tbaa !11
  %573 = load i32, ptr %9, align 4, !tbaa !11
  %574 = icmp slt i32 %572, %573
  br i1 %574, label %583, label %575

575:                                              ; preds = %571
  %576 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.6, ptr noundef @.str.4, i32 noundef 327)
          to label %577 unwind label %579

577:                                              ; preds = %575
  br i1 %576, label %578, label %583

578:                                              ; preds = %577
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #11, !srcloc !38
  br label %583

579:                                              ; preds = %592, %575
  %580 = landingpad { ptr, i32 }
          cleanup
  %581 = extractvalue { ptr, i32 } %580, 0
  store ptr %581, ptr %10, align 8
  %582 = extractvalue { ptr, i32 } %580, 1
  store i32 %582, ptr %11, align 4
  br label %607

583:                                              ; preds = %578, %577, %571
  br label %584

584:                                              ; preds = %583
  br label %585

585:                                              ; preds = %584
  %586 = load i32, ptr %43, align 4, !tbaa !11
  %587 = add i32 %586, 1
  store i32 %587, ptr %43, align 4, !tbaa !11
  %588 = load ptr, ptr %55, align 8, !tbaa !5
  %589 = getelementptr inbounds %struct.StackEntry, ptr %588, i32 0, i32 0
  store i32 %586, ptr %589, align 16, !tbaa !33
  %590 = load ptr, ptr %55, align 8, !tbaa !5
  %591 = getelementptr inbounds %struct.StackEntry, ptr %590, i32 0, i32 1
  store i32 -1, ptr %591, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 32, ptr %57) #11
  invoke void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %57)
          to label %592 unwind label %603

592:                                              ; preds = %585
  %593 = load ptr, ptr %55, align 8, !tbaa !5
  %594 = getelementptr inbounds %struct.StackEntry, ptr %593, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %594, ptr align 16 %57, i64 32, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #11
  %595 = load ptr, ptr %25, align 8, !tbaa !5
  %596 = load ptr, ptr %21, align 8, !tbaa !5
  %597 = load i32, ptr %48, align 4, !tbaa !11
  %598 = load i32, ptr %49, align 4, !tbaa !11
  %599 = load ptr, ptr %55, align 8, !tbaa !5
  %600 = getelementptr inbounds %struct.StackEntry, ptr %599, i32 0, i32 2
  %601 = getelementptr inbounds [5 x i32], ptr %600, i64 0, i64 0
  invoke void @_ZN3JPH19StaticCompoundShape11sPartition4EPjPNS_5AABoxEiiPi(ptr noundef %595, ptr noundef %596, i32 noundef %597, i32 noundef %598, ptr noundef %601)
          to label %602 unwind label %579

602:                                              ; preds = %592
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #11
  br label %608

603:                                              ; preds = %585
  %604 = landingpad { ptr, i32 }
          cleanup
  %605 = extractvalue { ptr, i32 } %604, 0
  store ptr %605, ptr %10, align 8
  %606 = extractvalue { ptr, i32 } %604, 1
  store i32 %606, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #11
  br label %607

607:                                              ; preds = %603, %579
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #11
  br label %610

608:                                              ; preds = %602, %560
  br label %609

609:                                              ; preds = %608, %513
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #11
  br label %611

610:                                              ; preds = %607, %561, %518
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #11
  br label %615

611:                                              ; preds = %609, %471
  store i32 0, ptr %12, align 4
  br label %612

612:                                              ; preds = %611, %420
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #11
  %613 = load i32, ptr %12, align 4
  switch i32 %613, label %682 [
    i32 0, label %614
    i32 8, label %616
  ]

614:                                              ; preds = %612
  br label %404, !llvm.loop !39

615:                                              ; preds = %610, %482
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #11
  br label %667

616:                                              ; preds = %612
  br label %617

617:                                              ; preds = %616
  %618 = load i32, ptr %43, align 4, !tbaa !11
  %619 = zext i32 %618 to i64
  %620 = getelementptr inbounds %"class.JPH::StaticCompoundShape", ptr %60, i32 0, i32 1
  %621 = invoke noundef i64 @_ZNK3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %620)
          to label %622 unwind label %429

622:                                              ; preds = %617
  %623 = icmp ule i64 %619, %621
  br i1 %623, label %628, label %624

624:                                              ; preds = %622
  %625 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 337)
          to label %626 unwind label %429

626:                                              ; preds = %624
  br i1 %625, label %627, label %628

627:                                              ; preds = %626
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #11, !srcloc !40
  br label %628

628:                                              ; preds = %627, %626, %622
  br label %629

629:                                              ; preds = %628
  br label %630

630:                                              ; preds = %629
  %631 = getelementptr inbounds %"class.JPH::StaticCompoundShape", ptr %60, i32 0, i32 1
  %632 = load i32, ptr %43, align 4, !tbaa !11
  %633 = zext i32 %632 to i64
  invoke void @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %631, i64 noundef %633)
          to label %634 unwind label %429

634:                                              ; preds = %630
  %635 = getelementptr inbounds %"class.JPH::StaticCompoundShape", ptr %60, i32 0, i32 1
  invoke void @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %635)
          to label %636 unwind label %429

636:                                              ; preds = %634
  %637 = load i32, ptr %43, align 4, !tbaa !11
  %638 = icmp ugt i32 %637, -2147483648
  br i1 %638, label %639, label %642

639:                                              ; preds = %636
  %640 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %640, ptr noundef @.str.8)
          to label %641 unwind label %429

641:                                              ; preds = %639
  store i32 1, ptr %12, align 4
  br label %653

642:                                              ; preds = %636
  %643 = invoke noundef i32 @_ZNK3JPH13CompoundShape26GetSubShapeIDBitsRecursiveEv(ptr noundef nonnull align 16 dereferenceable(108) %60)
          to label %644 unwind label %429

644:                                              ; preds = %642
  %645 = icmp ugt i32 %643, 32
  br i1 %645, label %646, label %649

646:                                              ; preds = %644
  %647 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %647, ptr noundef @.str.9)
          to label %648 unwind label %429

648:                                              ; preds = %646
  store i32 1, ptr %12, align 4
  br label %653

649:                                              ; preds = %644
  %650 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #11
  invoke void @_ZN3JPH3RefINS_5ShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef %60)
          to label %651 unwind label %658

651:                                              ; preds = %649
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE3SetEOS3_(ptr noundef nonnull align 8 dereferenceable(33) %650, ptr noundef nonnull align 8 dereferenceable(8) %59)
          to label %652 unwind label %662

652:                                              ; preds = %651
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %59) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #11
  store i32 0, ptr %12, align 4
  br label %653

653:                                              ; preds = %652, %648, %641
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #11
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %40) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %26) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #11
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %22) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  br label %654

654:                                              ; preds = %653, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #11
  br label %655

655:                                              ; preds = %654, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #11
  %656 = load i32, ptr %12, align 4
  switch i32 %656, label %682 [
    i32 0, label %657
    i32 1, label %657
  ]

657:                                              ; preds = %655, %655
  ret void

658:                                              ; preds = %649
  %659 = landingpad { ptr, i32 }
          cleanup
  %660 = extractvalue { ptr, i32 } %659, 0
  store ptr %660, ptr %10, align 8
  %661 = extractvalue { ptr, i32 } %659, 1
  store i32 %661, ptr %11, align 4
  br label %666

662:                                              ; preds = %651
  %663 = landingpad { ptr, i32 }
          cleanup
  %664 = extractvalue { ptr, i32 } %663, 0
  store ptr %664, ptr %10, align 8
  %665 = extractvalue { ptr, i32 } %663, 1
  store i32 %665, ptr %11, align 4
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %59) #11
  br label %666

666:                                              ; preds = %662, %658
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #11
  br label %667

667:                                              ; preds = %666, %615, %433, %429
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #11
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %40) #11
  br label %668

668:                                              ; preds = %667, %425
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #11
  br label %669

669:                                              ; preds = %668, %421
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  br label %670

670:                                              ; preds = %669, %356
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %26) #11
  br label %671

671:                                              ; preds = %670, %239
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #11
  br label %672

672:                                              ; preds = %671, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #11
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %22) #11
  br label %673

673:                                              ; preds = %672, %231
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #11
  br label %674

674:                                              ; preds = %673, %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  br label %675

675:                                              ; preds = %674, %173, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #11
  br label %676

676:                                              ; preds = %675, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #11
  call void @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #11
  call void @_ZN3JPH13CompoundShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(108) %60) #11
  br label %677

677:                                              ; preds = %676
  %678 = load ptr, ptr %10, align 8
  %679 = load i32, ptr %11, align 4
  %680 = insertvalue { ptr, i32 } poison, ptr %678, 0
  %681 = insertvalue { ptr, i32 } %680, i32 %679, 1
  resume { ptr, i32 } %681

682:                                              ; preds = %655, %612
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13CompoundShapeC2ENS_13EShapeSubTypeERKNS_13ShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 16 dereferenceable(108), i8 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH13CompoundShape8SubShape12FromSettingsERKNS_21CompoundShapeSettings16SubShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 16 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(33)) #2 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH13CompoundShape20CalculateInnerRadiusEv(ptr noundef nonnull align 16 dereferenceable(108)) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #9 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #9 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH13CompoundShape8SubShape14SetPositionCOMENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(37), double, double) #7 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox11EncapsulateERKS0_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #9 align 2

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

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

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

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

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

declare noundef i32 @_ZNK3JPH13CompoundShape26GetSubShapeIDBitsRecursiveEv(ptr noundef nonnull align 16 dereferenceable(108)) unnamed_addr #10

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #9 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #9 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #9 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13CompoundShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(108)) unnamed_addr #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"_ZTSN3JPH14MassPropertiesE", !14, i64 0, !17, i64 16}
!17 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !6, i64 8}
!21 = !{!"_ZTSZN3JPH19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0", !6, i64 0, !6, i64 8, !12, i64 16}
!22 = !{!21, !12, i64 16}
!23 = !{!24, !6, i64 8}
!24 = !{!"_ZTSZN3JPH19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1", !6, i64 0, !6, i64 8, !12, i64 16}
!25 = !{!24, !12, i64 16}
!26 = !{i64 0, i64 16, !27}
!27 = !{!7, !7, i64 0}
!28 = !{i64 0, i64 16, !27, i64 16, i64 16, !27}
!29 = distinct !{!29, !19}
!30 = !{!31, !6, i64 8}
!31 = !{!"_ZTSZN3JPH19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2", !6, i64 0, !6, i64 8, !12, i64 16}
!32 = !{!31, !12, i64 16}
!33 = !{!34, !12, i64 0}
!34 = !{!"_ZTSZN3JPH19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE10StackEntry", !12, i64 0, !12, i64 4, !7, i64 8, !35, i64 32}
!35 = !{!"_ZTSN3JPH5AABoxE", !36, i64 0, !36, i64 16}
!36 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!37 = !{!34, !12, i64 4}
!38 = !{i64 2158387140}
!39 = distinct !{!39, !19}
!40 = !{i64 2158387513}


; 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::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.7 }
%union.anon.7 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::ScopeExit" = type { %class.anon.15, i8, [7 x i8] }
%class.anon.15 = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.JPH::ScopeExit.17" = type { %class.anon.18, i8, [7 x i8] }
%class.anon.18 = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::ScopeExit.21" = type { %class.anon.22, i8, [7 x i8] }
%class.anon.22 = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.JPH::Ref" = type { ptr }
%struct.StackEntry = type { i32, i32, [5 x i32], %"class.JPH::AABox" }

@.str.4 = external hidden unnamed_addr constant [105 x i8], align 1
@_ZTVN3JPH19StaticCompoundShapeE = external dso_local unnamed_addr constant { [39 x ptr] }, align 8
@.str.5 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [85 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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 #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(52) ptr @_ZNK3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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 #4 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH19StaticCompoundShape4Node15SetChildInvalidEj(ptr noundef nonnull align 4 dereferenceable(64), i32 noundef) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH19StaticCompoundShape11sPartition4EPjPNS_5AABoxEiiPi(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH19StaticCompoundShapeC2ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 16 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(33) %3) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.JPH::MassProperties", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::ScopeExit", align 8
  %8 = alloca %class.anon.15, align 8
  %9 = alloca %"class.JPH::ScopeExit.17", align 8
  %10 = alloca %class.anon.18, align 8
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Mat44", align 16
  %13 = alloca %"class.JPH::AABox", align 16
  %14 = alloca %"class.JPH::ScopeExit.21", align 8
  %15 = alloca %class.anon.22, align 8
  %16 = alloca %"class.JPH::AABox", align 16
  %17 = alloca %"class.JPH::AABox", align 16
  %18 = alloca %"class.JPH::Ref", align 8
  tail call void @_ZN3JPH13CompoundShapeC2ENS_13EShapeSubTypeERKNS_13ShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 16 dereferenceable(108) %0, i8 noundef zeroext 7, ptr noundef nonnull align 8 dereferenceable(64) %1, ptr noundef nonnull align 8 dereferenceable(33) %3)
  store ptr getelementptr inbounds inrange(-16, 296) (i8, ptr @_ZTVN3JPH19StaticCompoundShapeE, i64 16), ptr %0, align 16, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #12
  %20 = getelementptr inbounds i8, ptr %1, i64 64
  %21 = tail call noundef i64 @_ZNK3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %22 = trunc i64 %21 to i32
  %23 = icmp ult i32 %22, 2
  br i1 %23, label %24, label %27

24:                                               ; preds = %4
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %3, ptr noundef nonnull @.str.5)
          to label %.thread200 unwind label %25

25:                                               ; preds = %24
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %278

27:                                               ; preds = %4
  %28 = getelementptr inbounds i8, ptr %0, i64 80
  %29 = and i64 %21, 4294967295
  invoke void @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %29)
          to label %.preheader208 unwind label %32

.preheader208:                                    ; preds = %27
  %30 = getelementptr inbounds i8, ptr %6, i64 8
  %31 = getelementptr inbounds i8, ptr %0, i64 32
  %wide.trip.count = and i64 %21, 4294967295
  br label %34

32:                                               ; preds = %72, %70, %27
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %278

34:                                               ; preds = %.preheader208, %59
  %indvars.iv = phi i64 [ 0, %.preheader208 ], [ %indvars.iv.next, %59 ]
  %.0157221 = phi float [ 0.000000e+00, %.preheader208 ], [ %52, %59 ]
  %35 = invoke noundef nonnull align 16 dereferenceable(52) ptr @_ZNK3JPH5ArrayINS_21CompoundShapeSettings16SubShapeSettingsENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv)
          to label %36 unwind label %41

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(37) ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %indvars.iv)
          to label %38 unwind label %43

38:                                               ; preds = %36
  %39 = invoke noundef zeroext i1 @_ZN3JPH13CompoundShape8SubShape12FromSettingsERKNS_21CompoundShapeSettings16SubShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 8 dereferenceable(37) %37, ptr noundef nonnull align 16 dereferenceable(52) %35, ptr noundef nonnull align 8 dereferenceable(33) %3)
          to label %40 unwind label %43

40:                                               ; preds = %38
  br i1 %39, label %45, label %.thread200

41:                                               ; preds = %34
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %278

43:                                               ; preds = %38, %36
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %278

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #12
  %46 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %37)
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 64
  %49 = load ptr, ptr %48, align 8
  invoke void %49(ptr dead_on_unwind nonnull writable sret(%"class.JPH::MassProperties") align 16 %5, ptr noundef nonnull align 8 dereferenceable(26) %46)
          to label %50 unwind label %63

50:                                               ; preds = %45
  %51 = load float, ptr %5, align 16, !tbaa !8
  %52 = fadd float %.0157221, %51
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #12
  %53 = invoke { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %37)
          to label %54 unwind label %65

54:                                               ; preds = %50
  %55 = extractvalue { double, double } %53, 0
  store double %55, ptr %6, align 16
  %56 = extractvalue { double, double } %53, 1
  store double %56, ptr %30, align 8
  %57 = load float, ptr %5, align 16, !tbaa !8
  %58 = invoke { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef %57)
          to label %59 unwind label %65

59:                                               ; preds = %54
  %60 = extractvalue { double, double } %58, 0
  %61 = extractvalue { double, double } %58, 1
  %62 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %60, double %61)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #12
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %68, label %34, !llvm.loop !13

63:                                               ; preds = %45
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

65:                                               ; preds = %54, %50
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #12
  br label %67

67:                                               ; preds = %65, %63
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #12
  br label %278

68:                                               ; preds = %59
  %69 = fcmp ogt float %52, 0.000000e+00
  br i1 %69, label %70, label %72

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %31, float noundef %52)
          to label %72 unwind label %32

72:                                               ; preds = %70, %68
  invoke void @_ZN3JPH13CompoundShape20CalculateInnerRadiusEv(ptr noundef nonnull align 16 dereferenceable(108) %0)
          to label %73 unwind label %32

73:                                               ; preds = %72
  %74 = shl i32 %22, 5
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %75, i64 16
  %77 = load ptr, ptr %76, align 8
  %78 = invoke noundef ptr %77(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %74)
          to label %79 unwind label %98

79:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #12
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #12
  store ptr %2, ptr %8, align 8, !tbaa !15
  %80 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %78, ptr %80, align 8, !tbaa !17
  %81 = getelementptr inbounds i8, ptr %8, i64 16
  store i32 %74, ptr %81, align 8, !tbaa !20
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25) %7, ptr noundef nonnull align 8 dereferenceable(20) %8)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #12
  %82 = shl i32 %22, 2
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  %85 = load ptr, ptr %84, align 8
  %86 = invoke noundef ptr %85(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %82)
          to label %87 unwind label %100

87:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #12
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #12
  store ptr %2, ptr %10, align 8, !tbaa !15
  %88 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %86, ptr %88, align 8, !tbaa !21
  %89 = getelementptr inbounds i8, ptr %10, i64 16
  store i32 %82, ptr %89, align 8, !tbaa !23
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25) %9, ptr noundef nonnull align 8 dereferenceable(20) %10)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #12
  %90 = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.265.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  %91 = getelementptr inbounds i8, ptr %0, i64 48
  %umax = call i32 @llvm.umax.i32(i32 %22, i32 1)
  %wide.trip.count234 = zext i32 %umax to i64
  br label %102

92:                                               ; preds = %135
  %93 = shl i32 %22, 6
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 16
  %96 = load ptr, ptr %95, align 8
  %97 = invoke noundef ptr %96(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %93)
          to label %145 unwind label %167

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

100:                                              ; preds = %79
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %277

102:                                              ; preds = %87, %135
  %indvars.iv231 = phi i64 [ 0, %87 ], [ %indvars.iv.next232, %135 ]
  %103 = invoke noundef nonnull align 8 dereferenceable(37) ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %indvars.iv231)
          to label %104 unwind label %136

104:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #12
  %105 = invoke { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %103)
          to label %106 unwind label %138

106:                                              ; preds = %104
  %107 = extractvalue { double, double } %105, 0
  store double %107, ptr %11, align 16
  %108 = extractvalue { double, double } %105, 1
  store double %108, ptr %90, align 8
  %.sroa.064.0.copyload = load double, ptr %31, align 16
  %.sroa.265.0.copyload = load double, ptr %.sroa.265.0..sroa_idx, align 8, !tbaa !24
  %109 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.064.0.copyload, double %.sroa.265.0.copyload)
          to label %110 unwind label %138

110:                                              ; preds = %106
  %111 = extractvalue { double, double } %109, 0
  %112 = extractvalue { double, double } %109, 1
  invoke void @_ZN3JPH13CompoundShape8SubShape14SetPositionCOMENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(37) %103, double %111, double %112)
          to label %113 unwind label %138

113:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #12
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #12
  %114 = invoke { double, double } @_ZNK3JPH13CompoundShape8SubShape11GetRotationEv(ptr noundef nonnull align 8 dereferenceable(37) %103)
          to label %115 unwind label %140

115:                                              ; preds = %113
  %116 = invoke { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %103)
          to label %117 unwind label %140

117:                                              ; preds = %115
  %118 = extractvalue { double, double } %114, 1
  %119 = extractvalue { double, double } %114, 0
  %120 = extractvalue { double, double } %116, 0
  %121 = extractvalue { double, double } %116, 1
  invoke void @_ZN3JPH5Mat4420sRotationTranslationENS_4QuatENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, double %119, double %118, double %120, double %121)
          to label %122 unwind label %140

122:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #12
  %123 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %103)
  %124 = invoke { double, double } @_ZN3JPH4Vec34sOneEv()
          to label %125 unwind label %142

125:                                              ; preds = %122
  %126 = extractvalue { double, double } %124, 0
  %127 = extractvalue { double, double } %124, 1
  %128 = load ptr, ptr %123, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i64 48
  %130 = load ptr, ptr %129, align 8
  invoke void %130(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %13, ptr noundef nonnull align 8 dereferenceable(26) %123, ptr noundef nonnull align 16 dereferenceable(64) %12, double %126, double %127)
          to label %131 unwind label %142

131:                                              ; preds = %125
  %132 = getelementptr inbounds %"class.JPH::AABox", ptr %78, i64 %indvars.iv231
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %132, ptr noundef nonnull align 16 dereferenceable(32) %13, i64 32, i1 false), !tbaa.struct !25
  %133 = getelementptr inbounds i32, ptr %86, i64 %indvars.iv231
  %134 = trunc nuw i64 %indvars.iv231 to i32
  store i32 %134, ptr %133, align 4, !tbaa !26
  invoke void @_ZN3JPH5AABox11EncapsulateERKS0_(ptr noundef nonnull align 16 dereferenceable(32) %91, ptr noundef nonnull align 16 dereferenceable(32) %13)
          to label %135 unwind label %142

135:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #12
  %indvars.iv.next232 = add nuw nsw i64 %indvars.iv231, 1
  %exitcond235.not = icmp eq i64 %indvars.iv.next232, %wide.trip.count234
  br i1 %exitcond235.not, label %92, label %102, !llvm.loop !27

136:                                              ; preds = %102
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %276

138:                                              ; preds = %110, %106, %104
  %139 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #12
  br label %276

140:                                              ; preds = %117, %115, %113
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %144

142:                                              ; preds = %131, %125, %122
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #12
  br label %144

144:                                              ; preds = %142, %140
  %.pn189 = phi { ptr, i32 } [ %143, %142 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #12
  br label %276

145:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #12
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #12
  store ptr %2, ptr %15, align 8, !tbaa !15
  %146 = getelementptr inbounds i8, ptr %15, i64 8
  store ptr %97, ptr %146, align 8, !tbaa !28
  %147 = getelementptr inbounds i8, ptr %15, i64 16
  store i32 %93, ptr %147, align 8, !tbaa !30
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25) %14, ptr noundef nonnull align 8 dereferenceable(20) %15)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #12
  %148 = add i32 %22, 2
  %149 = udiv i32 %148, 3
  %150 = add i32 %149, %22
  %151 = zext i32 %150 to i64
  invoke void @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %151)
          to label %152 unwind label %169

152:                                              ; preds = %145
  store i32 0, ptr %97, align 16, !tbaa !31
  %153 = getelementptr inbounds i8, ptr %97, i64 4
  store i32 -1, ptr %153, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #12
  invoke void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %16)
          to label %154 unwind label %171

154:                                              ; preds = %152
  %155 = getelementptr inbounds i8, ptr %97, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %155, ptr noundef nonnull align 16 dereferenceable(32) %16, i64 32, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #12
  %156 = getelementptr inbounds i8, ptr %97, i64 8
  invoke void @_ZN3JPH19StaticCompoundShape11sPartition4EPjPNS_5AABoxEiiPi(ptr noundef nonnull %86, ptr noundef nonnull %78, i32 noundef 0, i32 noundef %22, ptr noundef nonnull %156)
          to label %.preheader.outer unwind label %169

.preheader.outer:                                 ; preds = %154, %248
  %.0166.ph = phi i32 [ %249, %248 ], [ 1, %154 ]
  %.0162.ph = phi i32 [ %236, %248 ], [ 0, %154 ]
  br label %.preheader.outer250

.preheader.outer250:                              ; preds = %.preheader.outer, %191
  %.0162.ph251 = phi i32 [ %.0162.ph, %.preheader.outer ], [ %192, %191 ]
  %157 = sext i32 %.0162.ph251 to i64
  %158 = getelementptr inbounds %struct.StackEntry, ptr %97, i64 %157
  %159 = getelementptr inbounds i8, ptr %158, i64 4
  %160 = getelementptr inbounds i8, ptr %158, i64 8
  %161 = getelementptr inbounds i8, ptr %158, i64 32
  br label %.preheader

.preheader:                                       ; preds = %.preheader.backedge, %.preheader.outer250
  %162 = load i32, ptr %159, align 4, !tbaa !35
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %159, align 4, !tbaa !35
  %164 = icmp sgt i32 %162, 2
  br i1 %164, label %165, label %197

165:                                              ; preds = %.preheader
  %166 = icmp slt i32 %.0162.ph251, 1
  br i1 %166, label %254, label %173

167:                                              ; preds = %92
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %276

169:                                              ; preds = %.invoke, %265, %262, %261, %257, %154, %145
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %275

171:                                              ; preds = %152
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #12
  br label %275

173:                                              ; preds = %165
  %174 = zext nneg i32 %.0162.ph251 to i64
  %175 = getelementptr %struct.StackEntry, ptr %97, i64 %174
  %176 = getelementptr i8, ptr %175, i64 -32
  %177 = getelementptr inbounds i8, ptr %158, i64 32
  invoke void @_ZN3JPH5AABox11EncapsulateERKS0_(ptr noundef nonnull align 16 dereferenceable(32) %176, ptr noundef nonnull align 16 dereferenceable(32) %177)
          to label %178 unwind label %193

178:                                              ; preds = %173
  %179 = getelementptr i8, ptr %175, i64 -64
  %180 = load i32, ptr %179, align 16, !tbaa !31
  %181 = zext i32 %180 to i64
  %182 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %181)
          to label %183 unwind label %195

183:                                              ; preds = %178
  %184 = load i32, ptr %158, align 16, !tbaa !31
  %185 = getelementptr inbounds i8, ptr %182, i64 48
  %186 = getelementptr i8, ptr %175, i64 -60
  %187 = load i32, ptr %186, align 4, !tbaa !35
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [4 x i32], ptr %185, i64 0, i64 %188
  store i32 %184, ptr %189, align 4, !tbaa !26
  %190 = load i32, ptr %186, align 4, !tbaa !35
  invoke void @_ZN3JPH19StaticCompoundShape4Node14SetChildBoundsEjRKNS_5AABoxE(ptr noundef nonnull align 4 dereferenceable(64) %182, i32 noundef %190, ptr noundef nonnull align 16 dereferenceable(32) %177)
          to label %191 unwind label %195

191:                                              ; preds = %183
  %192 = add nsw i32 %.0162.ph251, -1
  br label %.preheader.outer250

193:                                              ; preds = %173
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %275

195:                                              ; preds = %183, %178
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %275

197:                                              ; preds = %.preheader
  %198 = sext i32 %163 to i64
  %199 = getelementptr inbounds [5 x i32], ptr %160, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !26
  %201 = add nsw i32 %162, 2
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [5 x i32], ptr %160, i64 0, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !26
  %205 = icmp eq i32 %204, %200
  br i1 %205, label %206, label %214

206:                                              ; preds = %197
  %207 = load i32, ptr %158, align 16, !tbaa !31
  %208 = zext i32 %207 to i64
  %209 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %208)
          to label %210 unwind label %212

210:                                              ; preds = %206
  %211 = load i32, ptr %159, align 4, !tbaa !35
  call void @_ZN3JPH19StaticCompoundShape4Node15SetChildInvalidEj(ptr noundef nonnull align 4 dereferenceable(64) %209, i32 noundef %211)
  br label %.preheader.backedge

212:                                              ; preds = %206
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %275

214:                                              ; preds = %197
  %215 = sub nsw i32 %204, %200
  %216 = icmp eq i32 %215, 1
  br i1 %216, label %217, label %235

217:                                              ; preds = %214
  %218 = sext i32 %200 to i64
  %219 = getelementptr inbounds i32, ptr %86, i64 %218
  %220 = load i32, ptr %219, align 4, !tbaa !26
  %221 = getelementptr inbounds %"class.JPH::AABox", ptr %78, i64 %218
  %222 = load i32, ptr %158, align 16, !tbaa !31
  %223 = zext i32 %222 to i64
  %224 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %223)
          to label %225 unwind label %233

225:                                              ; preds = %217
  %226 = or i32 %220, -2147483648
  %227 = getelementptr inbounds i8, ptr %224, i64 48
  %228 = load i32, ptr %159, align 4, !tbaa !35
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [4 x i32], ptr %227, i64 0, i64 %229
  store i32 %226, ptr %230, align 4, !tbaa !26
  %231 = load i32, ptr %159, align 4, !tbaa !35
  invoke void @_ZN3JPH19StaticCompoundShape4Node14SetChildBoundsEjRKNS_5AABoxE(ptr noundef nonnull align 4 dereferenceable(64) %224, i32 noundef %231, ptr noundef nonnull align 16 dereferenceable(32) %221)
          to label %232 unwind label %233

232:                                              ; preds = %225
  invoke void @_ZN3JPH5AABox11EncapsulateERKS0_(ptr noundef nonnull align 16 dereferenceable(32) %161, ptr noundef nonnull align 16 dereferenceable(32) %221)
          to label %.preheader.backedge unwind label %233

.preheader.backedge:                              ; preds = %232, %210
  br label %.preheader

233:                                              ; preds = %232, %225, %217
  %234 = landingpad { ptr, i32 }
          cleanup
  br label %275

235:                                              ; preds = %214
  %236 = add nsw i32 %.0162.ph251, 1
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds %struct.StackEntry, ptr %97, i64 %237
  %239 = icmp slt i32 %236, %22
  br i1 %239, label %246, label %240

240:                                              ; preds = %235
  %241 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.4, i32 noundef 327)
          to label %242 unwind label %244

242:                                              ; preds = %240
  br i1 %241, label %243, label %246

243:                                              ; preds = %242
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #12, !srcloc !36
  br label %246

244:                                              ; preds = %248, %240
  %245 = landingpad { ptr, i32 }
          cleanup
  br label %275

246:                                              ; preds = %243, %242, %235
  store i32 %.0166.ph, ptr %238, align 16, !tbaa !31
  %247 = getelementptr inbounds i8, ptr %238, i64 4
  store i32 -1, ptr %247, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #12
  invoke void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %17)
          to label %248 unwind label %252

248:                                              ; preds = %246
  %249 = add i32 %.0166.ph, 1
  %250 = getelementptr inbounds i8, ptr %238, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %250, ptr noundef nonnull align 16 dereferenceable(32) %17, i64 32, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #12
  %251 = getelementptr inbounds i8, ptr %238, i64 8
  invoke void @_ZN3JPH19StaticCompoundShape11sPartition4EPjPNS_5AABoxEiiPi(ptr noundef %86, ptr noundef %78, i32 noundef %200, i32 noundef %204, ptr noundef nonnull %251)
          to label %.preheader.outer unwind label %244

252:                                              ; preds = %246
  %253 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #12
  br label %275

254:                                              ; preds = %165
  %255 = zext i32 %.0166.ph to i64
  %256 = call noundef i64 @_ZNK3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19)
  %.not185 = icmp ult i64 %256, %255
  br i1 %.not185, label %257, label %261

257:                                              ; preds = %254
  %258 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 337)
          to label %259 unwind label %169

259:                                              ; preds = %257
  br i1 %258, label %260, label %261

260:                                              ; preds = %259
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #12, !srcloc !37
  br label %261

261:                                              ; preds = %260, %259, %254
  invoke void @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %255)
          to label %262 unwind label %169

262:                                              ; preds = %261
  invoke void @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %263 unwind label %169

263:                                              ; preds = %262
  %264 = icmp ugt i32 %.0166.ph, -2147483648
  br i1 %264, label %.invoke, label %265

265:                                              ; preds = %263
  %266 = invoke noundef i32 @_ZNK3JPH13CompoundShape26GetSubShapeIDBitsRecursiveEv(ptr noundef nonnull align 16 dereferenceable(108) %0)
          to label %267 unwind label %169

267:                                              ; preds = %265
  %268 = icmp ugt i32 %266, 32
  br i1 %268, label %.invoke, label %270

.invoke:                                          ; preds = %267, %263
  %269 = phi ptr [ @.str.8, %263 ], [ @.str.9, %267 ]
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %3, ptr noundef nonnull %269)
          to label %272 unwind label %169

270:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #12
  invoke void @_ZN3JPH3RefINS_5ShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull %0)
          to label %271 unwind label %273

271:                                              ; preds = %270
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE3SetEOS3_(ptr noundef nonnull align 8 dereferenceable(33) %3, ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #12
  br label %272

272:                                              ; preds = %.invoke, %271
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %14) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #12
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %9) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #12
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %7) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #12
  br label %.thread200

.thread200:                                       ; preds = %40, %272, %24
  ret void

273:                                              ; preds = %270
  %274 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #12
  br label %275

275:                                              ; preds = %195, %193, %244, %252, %233, %212, %273, %171, %169
  %.pn186 = phi { ptr, i32 } [ %170, %169 ], [ %274, %273 ], [ %172, %171 ], [ %196, %195 ], [ %194, %193 ], [ %213, %212 ], [ %234, %233 ], [ %245, %244 ], [ %253, %252 ]
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %14) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #12
  br label %276

276:                                              ; preds = %167, %275, %136, %138, %144
  %.pn189.pn.pn = phi { ptr, i32 } [ %.pn189, %144 ], [ %139, %138 ], [ %137, %136 ], [ %.pn186, %275 ], [ %168, %167 ]
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %9) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #12
  br label %277

277:                                              ; preds = %276, %100
  %.pn189.pn.pn.pn = phi { ptr, i32 } [ %.pn189.pn.pn, %276 ], [ %101, %100 ]
  call void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25) %7) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #12
  br label %278

278:                                              ; preds = %32, %43, %67, %41, %277, %98, %25
  %.pn196 = phi { ptr, i32 } [ %26, %25 ], [ %33, %32 ], [ %42, %41 ], [ %.pn, %67 ], [ %44, %43 ], [ %.pn189.pn.pn.pn, %277 ], [ %99, %98 ]
  call void @_ZN3JPH5ArrayINS_19StaticCompoundShape4NodeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #12
  call void @_ZN3JPH13CompoundShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(108) %0) #12
  resume { ptr, i32 } %.pn196
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13CompoundShapeC2ENS_13EShapeSubTypeERKNS_13ShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 16 dereferenceable(108), i8 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH13CompoundShape8SubShape12FromSettingsERKNS_21CompoundShapeSettings16SubShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 16 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH13CompoundShape20CalculateInnerRadiusEv(ptr noundef nonnull align 16 dereferenceable(108)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #9 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #9 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH13CompoundShape8SubShape14SetPositionCOMENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(37), double, double) local_unnamed_addr #7 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox11EncapsulateERKS0_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2EC2EOSD_"(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #9 align 2

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

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

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

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

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

declare noundef i32 @_ZNK3JPH13CompoundShape26GetSubShapeIDBitsRecursiveEv(ptr noundef nonnull align 16 dereferenceable(108)) unnamed_addr #10

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #9 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #9 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @"_ZN3JPH9ScopeExitIZNS_19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #9 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13CompoundShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(108)) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #11

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #12 = { 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, !10, i64 0}
!9 = !{!"_ZTSN3JPH14MassPropertiesE", !10, i64 0, !12, i64 16}
!10 = !{!"float", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"_ZTSN3JPH5Mat44E", !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !11, i64 0}
!17 = !{!18, !16, i64 8}
!18 = !{!"_ZTSZN3JPH19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_0", !16, i64 0, !16, i64 8, !19, i64 16}
!19 = !{!"int", !11, i64 0}
!20 = !{!18, !19, i64 16}
!21 = !{!22, !16, i64 8}
!22 = !{!"_ZTSZN3JPH19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_1", !16, i64 0, !16, i64 8, !19, i64 16}
!23 = !{!22, !19, i64 16}
!24 = !{!11, !11, i64 0}
!25 = !{i64 0, i64 16, !24, i64 16, i64 16, !24}
!26 = !{!19, !19, i64 0}
!27 = distinct !{!27, !14}
!28 = !{!29, !16, i64 8}
!29 = !{!"_ZTSZN3JPH19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE3$_2", !16, i64 0, !16, i64 8, !19, i64 16}
!30 = !{!29, !19, i64 16}
!31 = !{!32, !19, i64 0}
!32 = !{!"_ZTSZN3JPH19StaticCompoundShapeC1ERKNS_27StaticCompoundShapeSettingsERNS_13TempAllocatorERNS_6ResultINS_3RefINS_5ShapeEEEEEE10StackEntry", !19, i64 0, !19, i64 4, !11, i64 8, !33, i64 32}
!33 = !{!"_ZTSN3JPH5AABoxE", !34, i64 0, !34, i64 16}
!34 = !{!"_ZTSN3JPH4Vec3E", !11, i64 0}
!35 = !{!32, !19, i64 4}
!36 = !{i64 2158387140}
!37 = !{i64 2158387513}


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