; LLVM IR from jrouwe/JoltPhysics :: TestFramework/Renderer (DebugRendererImp)

; 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::Color" = type { %union.anon.0 }
%union.anon.0 = type { i32 }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.13 }
%union.anon.13 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator" = type { %"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::DebugRenderer::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", %"class.JPH::Float2", %"class.JPH::Color" }
%"class.JPH::Float2" = type { float, float }
%"class.JPH::Ref.17" = type { ptr }
%"class.JPH::DebugRenderer" = type { ptr, %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::UnorderedMap", %"class.JPH::UnorderedMap", %"class.JPH::UnorderedMap.1", %"class.JPH::UnorderedMap.1", %"class.JPH::UnorderedMap.5", %"class.JPH::UnorderedMap.5", %"class.JPH::UnorderedMap.9", %"class.JPH::UnorderedMap.9" }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.1" = type { %"class.JPH::HashTable.base.3", [4 x i8] }
%"class.JPH::HashTable.base.3" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.5" = type { %"class.JPH::HashTable.base.7", [4 x i8] }
%"class.JPH::HashTable.base.7" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.9" = type { %"class.JPH::HashTable.base.11", [4 x i8] }
%"class.JPH::HashTable.base.11" = type <{ ptr, ptr, i32, i32, i32 }>
%"struct.std::pair.31" = type { float, %"class.JPH::Ref" }

@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@_ZN3JPH5Color6sWhiteE = external global %"class.JPH::Color", align 4
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [36 x i8], align 1
@__const._ZN3JPH13DebugRenderer7DrawPieENS_4Vec3EfS1_S1_ffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE.normal = external hidden unnamed_addr constant %"class.JPH::Float3", align 4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3SinEf(float noundef) #7

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3CosEf(float noundef) #7

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13DebugRenderer16sCalculateBoundsEPKNS0_6VertexEi(ptr dead_on_unwind noalias writable sret(%"class.JPH::AABox") align 16, ptr noundef, i32 noundef) #8 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13DebugRenderer12DrawGeometryERKNS_5Mat44ENS_5ColorERKNS_3RefINS0_8GeometryEEENS0_9ECullModeENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 16 dereferenceable(64), i32, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef) #8 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #9

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16), double, double, float noundef) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer7DrawPieENS_4Vec3EfS1_S1_ffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %0, double %1, double %2, float noundef %3, double %4, double %5, double %6, double %7, float noundef %8, float noundef %9, i32 %10, i32 noundef %11, i32 noundef %12) #8 align 2 personality ptr @__gxx_personality_v0 {
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Color", align 4
  %18 = alloca ptr, align 8
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"struct.JPH::AssertLastParam", align 1
  %25 = alloca %"struct.JPH::AssertLastParam", align 1
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"struct.JPH::AssertLastParam", align 1
  %28 = alloca float, align 4
  %29 = alloca ptr, align 8
  %30 = alloca %"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator", align 8
  %31 = alloca %"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator", align 8
  %32 = alloca i32, align 4
  %33 = alloca %"class.JPH::Float3", align 4
  %34 = alloca %"class.JPH::Float3", align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %39 = alloca i32, align 4
  %40 = alloca float, align 4
  %41 = alloca %"class.JPH::Float3", align 4
  %42 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca i32, align 4
  %47 = alloca %"class.JPH::Ref.17", align 8
  %48 = alloca ptr, align 8
  %49 = alloca i32, align 4
  %50 = alloca %"class.JPH::AABox", align 16
  %51 = alloca i1, align 1
  %52 = alloca %"class.JPH::Mat44", align 16
  %53 = alloca %"class.JPH::Mat44", align 16
  %54 = alloca %"class.JPH::Vec4", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Vec4", align 16
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca %"class.JPH::Vec3", align 16
  %60 = alloca %"class.JPH::Vec4", align 16
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = alloca %"class.JPH::Vec3", align 16
  %64 = alloca %"class.JPH::Vec3", align 16
  %65 = alloca %"class.JPH::Mat44", align 16
  %66 = alloca %"class.JPH::Color", align 4
  %67 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  store double %1, ptr %67, align 16
  %68 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  store double %2, ptr %68, align 8
  %69 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  store double %4, ptr %69, align 16
  %70 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  store double %5, ptr %70, align 8
  %71 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  store double %6, ptr %71, align 16
  %72 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  store double %7, ptr %72, align 8
  %73 = getelementptr inbounds %"class.JPH::Color", ptr %17, i32 0, i32 0
  %74 = getelementptr inbounds %union.anon.0, ptr %73, i32 0, i32 0
  store i32 %10, ptr %74, align 4
  store ptr %0, ptr %18, align 8, !tbaa !5
  store float %3, ptr %19, align 4, !tbaa !9
  store float %8, ptr %20, align 4, !tbaa !9
  store float %9, ptr %21, align 4, !tbaa !9
  store i32 %11, ptr %22, align 4, !tbaa !11
  store i32 %12, ptr %23, align 4, !tbaa !13
  %75 = load ptr, ptr %18, align 8
  %76 = load float, ptr %20, align 4, !tbaa !9
  %77 = load float, ptr %21, align 4, !tbaa !9
  %78 = fcmp oge float %76, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %13
  br label %313

80:                                               ; preds = %13
  br label %81

81:                                               ; preds = %80
  %82 = call noundef zeroext i1 @_ZNK3JPH4Vec312IsNormalizedEf(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef 0x3F1A36E2E0000000)
  br i1 %82, label %86, label %83

83:                                               ; preds = %81
  %84 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 1008)
  br i1 %84, label %85, label %86

85:                                               ; preds = %83
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #11, !srcloc !15
  br label %86

86:                                               ; preds = %85, %83, %81
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  %89 = call noundef zeroext i1 @_ZNK3JPH4Vec312IsNormalizedEf(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef 0x3F1A36E2E0000000)
  br i1 %89, label %93, label %90

90:                                               ; preds = %88
  %91 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 1009)
  br i1 %91, label %92, label %93

92:                                               ; preds = %90
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #11, !srcloc !16
  br label %93

93:                                               ; preds = %92, %90, %88
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !17
  %96 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %97 = load double, ptr %96, align 16
  %98 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %99 = load double, ptr %98, align 8
  %100 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %97, double %99)
  %101 = call noundef float @_ZSt3absf(float noundef %100)
  %102 = fcmp olt float %101, 0x3F1A36E2E0000000
  br i1 %102, label %106, label %103

103:                                              ; preds = %95
  %104 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 1010)
  br i1 %104, label %105, label %106

105:                                              ; preds = %103
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #11, !srcloc !19
  br label %106

106:                                              ; preds = %105, %103, %95
  br label %107

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #11
  %108 = load float, ptr %21, align 4, !tbaa !9
  %109 = load float, ptr %20, align 4, !tbaa !9
  %110 = fsub float %108, %109
  store float %110, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #11
  %111 = getelementptr inbounds %"class.JPH::DebugRenderer", ptr %75, i32 0, i32 12
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEEixERKf(ptr noundef nonnull align 8 dereferenceable(28) %111, ptr noundef nonnull align 4 dereferenceable(4) %28)
  store ptr %112, ptr %29, align 8, !tbaa !5
  %113 = load ptr, ptr %29, align 8, !tbaa !5
  %114 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef null)
  br i1 %114, label %115, label %125

115:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #11
  %116 = getelementptr inbounds %"class.JPH::DebugRenderer", ptr %75, i32 0, i32 13
  call void @_ZN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEE4findERKf(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator") align 8 %30, ptr noundef nonnull align 8 dereferenceable(28) %116, ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #11
  %117 = getelementptr inbounds %"class.JPH::DebugRenderer", ptr %75, i32 0, i32 13
  call void @_ZN3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator") align 8 %31, ptr noundef nonnull align 8 dereferenceable(28) %117)
  %118 = call noundef zeroext i1 @_ZNK3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEE12IteratorBaseISD_NSD_8iteratorEEneERKSF_(ptr noundef nonnull align 8 dereferenceable(12) %30, ptr noundef nonnull align 8 dereferenceable(12) %31)
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #11
  br i1 %118, label %119, label %124

119:                                              ; preds = %115
  %120 = call noundef ptr @_ZN3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %30)
  %121 = getelementptr inbounds %"struct.std::pair.31", ptr %120, i32 0, i32 1
  %122 = load ptr, ptr %29, align 8, !tbaa !5
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef nonnull align 8 dereferenceable(8) %121)
  br label %124

124:                                              ; preds = %119, %115
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #11
  br label %125

125:                                              ; preds = %124, %107
  %126 = load ptr, ptr %29, align 8, !tbaa !5
  %127 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef null)
  br i1 %127, label %128, label %229

128:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #11
  %129 = load float, ptr %28, align 4, !tbaa !9
  %130 = fmul float 6.400000e+01, %129
  %131 = fdiv float %130, 0x401921FB60000000
  %132 = call noundef float @_ZSt4ceilf(float noundef %131)
  %133 = fptosi float %132 to i32
  store i32 %133, ptr %32, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 @__const._ZN3JPH13DebugRenderer7DrawPieENS_4Vec3EfS1_S1_ffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE.normal, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #11
  call void @llvm.memset.p0.i64(ptr align 4 %34, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #11
  %134 = load i32, ptr %32, align 4, !tbaa !20
  %135 = add nsw i32 %134, 2
  store i32 %135, ptr %35, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #11
  %136 = load i32, ptr %35, align 4, !tbaa !20
  %137 = sext i32 %136 to i64
  %138 = mul i64 %137, 36
  %139 = alloca i8, i64 %138, align 16
  store ptr %139, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #11
  %140 = load ptr, ptr %36, align 8, !tbaa !5
  store ptr %140, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %38) #11
  %141 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %38, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %141, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !22
  %142 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %38, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %142, ptr align 4 %33, i64 12, i1 false), !tbaa.struct !22
  %143 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %38, i32 0, i32 2
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %143, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %144 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %38, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %144, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !23
  %145 = load ptr, ptr %37, align 8, !tbaa !5
  %146 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %145, i32 1
  store ptr %146, ptr %37, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %145, ptr align 4 %38, i64 36, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 36, ptr %38) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #11
  store i32 0, ptr %39, align 4, !tbaa !20
  br label %147

147:                                              ; preds = %170, %128
  %148 = load i32, ptr %39, align 4, !tbaa !20
  %149 = load i32, ptr %32, align 4, !tbaa !20
  %150 = icmp sle i32 %148, %149
  br i1 %150, label %152, label %151

151:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  br label %173

152:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #11
  %153 = load i32, ptr %39, align 4, !tbaa !20
  %154 = sitofp i32 %153 to float
  %155 = load i32, ptr %32, align 4, !tbaa !20
  %156 = sitofp i32 %155 to float
  %157 = fdiv float %154, %156
  %158 = load float, ptr %28, align 4, !tbaa !9
  %159 = fmul float %157, %158
  store float %159, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #11
  %160 = load float, ptr %40, align 4, !tbaa !9
  %161 = call noundef float @_ZN3JPH3CosEf(float noundef %160)
  %162 = load float, ptr %40, align 4, !tbaa !9
  %163 = call noundef float @_ZN3JPH3SinEf(float noundef %162)
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %41, float noundef %161, float noundef 0.000000e+00, float noundef %163)
  call void @llvm.lifetime.start.p0(i64 36, ptr %42) #11
  %164 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %42, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %164, ptr align 4 %41, i64 12, i1 false), !tbaa.struct !22
  %165 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %42, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %165, ptr align 4 %33, i64 12, i1 false), !tbaa.struct !22
  %166 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %42, i32 0, i32 2
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %166, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %167 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %42, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %167, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !23
  %168 = load ptr, ptr %37, align 8, !tbaa !5
  %169 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %168, i32 1
  store ptr %169, ptr %37, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %168, ptr align 4 %42, i64 36, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 36, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #11
  br label %170

170:                                              ; preds = %152
  %171 = load i32, ptr %39, align 4, !tbaa !20
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %39, align 4, !tbaa !20
  br label %147, !llvm.loop !25

173:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #11
  %174 = load i32, ptr %32, align 4, !tbaa !20
  %175 = mul nsw i32 %174, 3
  store i32 %175, ptr %43, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #11
  %176 = load i32, ptr %43, align 4, !tbaa !20
  %177 = sext i32 %176 to i64
  %178 = mul i64 %177, 4
  %179 = alloca i8, i64 %178, align 16
  store ptr %179, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #11
  %180 = load ptr, ptr %44, align 8, !tbaa !5
  store ptr %180, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #11
  store i32 0, ptr %46, align 4, !tbaa !20
  br label %181

181:                                              ; preds = %197, %173
  %182 = load i32, ptr %46, align 4, !tbaa !20
  %183 = load i32, ptr %32, align 4, !tbaa !20
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %186, label %185

185:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #11
  br label %200

186:                                              ; preds = %181
  %187 = load ptr, ptr %45, align 8, !tbaa !5
  %188 = getelementptr inbounds i32, ptr %187, i32 1
  store ptr %188, ptr %45, align 8, !tbaa !5
  store i32 0, ptr %187, align 4, !tbaa !20
  %189 = load i32, ptr %46, align 4, !tbaa !20
  %190 = add nsw i32 %189, 1
  %191 = load ptr, ptr %45, align 8, !tbaa !5
  %192 = getelementptr inbounds i32, ptr %191, i32 1
  store ptr %192, ptr %45, align 8, !tbaa !5
  store i32 %190, ptr %191, align 4, !tbaa !20
  %193 = load i32, ptr %46, align 4, !tbaa !20
  %194 = add nsw i32 %193, 2
  %195 = load ptr, ptr %45, align 8, !tbaa !5
  %196 = getelementptr inbounds i32, ptr %195, i32 1
  store ptr %196, ptr %45, align 8, !tbaa !5
  store i32 %194, ptr %195, align 4, !tbaa !20
  br label %197

197:                                              ; preds = %186
  %198 = load i32, ptr %46, align 4, !tbaa !20
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %46, align 4, !tbaa !20
  br label %181, !llvm.loop !27

200:                                              ; preds = %185
  %201 = call noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef 64)
  store i1 true, ptr %51, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #11
  %202 = load ptr, ptr %36, align 8, !tbaa !5
  %203 = load i32, ptr %35, align 4, !tbaa !20
  %204 = load ptr, ptr %44, align 8, !tbaa !5
  %205 = load i32, ptr %43, align 4, !tbaa !20
  %206 = load ptr, ptr %75, align 8, !tbaa !28
  %207 = getelementptr inbounds ptr, ptr %206, i64 5
  %208 = load ptr, ptr %207, align 8
  invoke void %208(ptr dead_on_unwind writable sret(%"class.JPH::Ref.17") align 8 %47, ptr noundef nonnull align 8 dereferenceable(320) %75, ptr noundef %202, i32 noundef %203, ptr noundef %204, i32 noundef %205)
          to label %209 unwind label %217

209:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 32, ptr %50) #11
  %210 = load ptr, ptr %36, align 8, !tbaa !5
  %211 = load i32, ptr %35, align 4, !tbaa !20
  invoke void @_ZN3JPH13DebugRenderer16sCalculateBoundsEPKNS0_6VertexEi(ptr dead_on_unwind writable sret(%"class.JPH::AABox") align 16 %50, ptr noundef %210, i32 noundef %211)
          to label %212 unwind label %221

212:                                              ; preds = %209
  invoke void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_3RefINS_16RefTargetVirtualEEERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64) %201, ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 16 dereferenceable(32) %50)
          to label %213 unwind label %221

213:                                              ; preds = %212
  store i1 false, ptr %51, align 1
  %214 = load ptr, ptr %29, align 8, !tbaa !5
  %215 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef %201)
          to label %216 unwind label %221

216:                                              ; preds = %213
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #11
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #11
  br label %229

217:                                              ; preds = %200
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %48, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %49, align 4
  br label %225

221:                                              ; preds = %213, %212, %209
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %48, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %49, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #11
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #11
  br label %225

225:                                              ; preds = %221, %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  %226 = load i1, ptr %51, align 1
  br i1 %226, label %227, label %228

227:                                              ; preds = %225
  call void @_ZN3JPH13DebugRenderer8GeometrydlEPv(ptr noundef %201) #11
  br label %228

228:                                              ; preds = %227, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  br label %314

229:                                              ; preds = %216, %125
  call void @llvm.lifetime.start.p0(i64 64, ptr %52) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr %53) #11
  %230 = load float, ptr %19, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !17
  %231 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %232 = load double, ptr %231, align 16
  %233 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %234 = load double, ptr %233, align 8
  %235 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %230, double %232, double %234)
  %236 = getelementptr inbounds %"class.JPH::Vec3", ptr %55, i32 0, i32 0
  %237 = getelementptr inbounds %union.anon, ptr %236, i32 0, i32 0
  %238 = getelementptr inbounds { double, double }, ptr %237, i32 0, i32 0
  %239 = extractvalue { double, double } %235, 0
  store double %239, ptr %238, align 16
  %240 = getelementptr inbounds { double, double }, ptr %237, i32 0, i32 1
  %241 = extractvalue { double, double } %235, 1
  store double %241, ptr %240, align 8
  %242 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %243 = load double, ptr %242, align 16
  %244 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %245 = load double, ptr %244, align 8
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %54, double %243, double %245, float noundef 0.000000e+00)
  %246 = load float, ptr %19, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !17
  %247 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %248 = load double, ptr %247, align 16
  %249 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %250 = load double, ptr %249, align 8
  %251 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %246, double %248, double %250)
  %252 = getelementptr inbounds %"class.JPH::Vec3", ptr %58, i32 0, i32 0
  %253 = getelementptr inbounds %union.anon, ptr %252, i32 0, i32 0
  %254 = getelementptr inbounds { double, double }, ptr %253, i32 0, i32 0
  %255 = extractvalue { double, double } %251, 0
  store double %255, ptr %254, align 16
  %256 = getelementptr inbounds { double, double }, ptr %253, i32 0, i32 1
  %257 = extractvalue { double, double } %251, 1
  store double %257, ptr %256, align 8
  %258 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %259 = load double, ptr %258, align 16
  %260 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %261 = load double, ptr %260, align 8
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %57, double %259, double %261, float noundef 0.000000e+00)
  %262 = load float, ptr %19, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %63, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !17
  %263 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %264 = load double, ptr %263, align 16
  %265 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %266 = load double, ptr %265, align 8
  %267 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %264, double %266)
  %268 = getelementptr inbounds %"class.JPH::Vec3", ptr %62, i32 0, i32 0
  %269 = getelementptr inbounds %union.anon, ptr %268, i32 0, i32 0
  %270 = getelementptr inbounds { double, double }, ptr %269, i32 0, i32 0
  %271 = extractvalue { double, double } %267, 0
  store double %271, ptr %270, align 16
  %272 = getelementptr inbounds { double, double }, ptr %269, i32 0, i32 1
  %273 = extractvalue { double, double } %267, 1
  store double %273, ptr %272, align 8
  %274 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %275 = load double, ptr %274, align 16
  %276 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %277 = load double, ptr %276, align 8
  %278 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %262, double %275, double %277)
  %279 = getelementptr inbounds %"class.JPH::Vec3", ptr %61, i32 0, i32 0
  %280 = getelementptr inbounds %union.anon, ptr %279, i32 0, i32 0
  %281 = getelementptr inbounds { double, double }, ptr %280, i32 0, i32 0
  %282 = extractvalue { double, double } %278, 0
  store double %282, ptr %281, align 16
  %283 = getelementptr inbounds { double, double }, ptr %280, i32 0, i32 1
  %284 = extractvalue { double, double } %278, 1
  store double %284, ptr %283, align 8
  %285 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %286 = load double, ptr %285, align 16
  %287 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %288 = load double, ptr %287, align 8
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %60, double %286, double %288, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !17
  %289 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %290 = load double, ptr %289, align 16
  %291 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %292 = load double, ptr %291, align 8
  %293 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 0
  %294 = load double, ptr %293, align 16
  %295 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 1
  %296 = load double, ptr %295, align 8
  %297 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %298 = load double, ptr %297, align 16
  %299 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %300 = load double, ptr %299, align 8
  %301 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %302 = load double, ptr %301, align 16
  %303 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %304 = load double, ptr %303, align 8
  call void @_ZN3JPH5Mat44C2ENS_4Vec4ES1_S1_NS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %53, double %290, double %292, double %294, double %296, double %298, double %300, double %302, double %304)
  call void @llvm.lifetime.start.p0(i64 64, ptr %65) #11
  %305 = load float, ptr %20, align 4, !tbaa !9
  %306 = fneg float %305
  call void @_ZN3JPH5Mat4410sRotationYEf(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %65, float noundef %306)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %52, ptr noundef nonnull align 16 dereferenceable(64) %53, ptr noundef nonnull align 16 dereferenceable(64) %65)
  call void @llvm.lifetime.end.p0(i64 64, ptr %65) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %53) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 4 %17, i64 4, i1 false), !tbaa.struct !23
  %307 = load ptr, ptr %29, align 8, !tbaa !5
  %308 = load i32, ptr %22, align 4, !tbaa !11
  %309 = load i32, ptr %23, align 4, !tbaa !13
  %310 = getelementptr inbounds %"class.JPH::Color", ptr %66, i32 0, i32 0
  %311 = getelementptr inbounds %union.anon.0, ptr %310, i32 0, i32 0
  %312 = load i32, ptr %311, align 4
  call void @_ZN3JPH13DebugRenderer12DrawGeometryERKNS_5Mat44ENS_5ColorERKNS_3RefINS0_8GeometryEEENS0_9ECullModeENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %75, ptr noundef nonnull align 16 dereferenceable(64) %52, i32 %312, ptr noundef nonnull align 8 dereferenceable(8) %307, i32 noundef 2, i32 noundef %308, i32 noundef %309)
  call void @llvm.lifetime.end.p0(i64 64, ptr %52) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  br label %313

313:                                              ; preds = %229, %79
  ret void

314:                                              ; preds = %228
  %315 = load ptr, ptr %48, align 8
  %316 = load i32, ptr %49, align 4
  %317 = insertvalue { ptr, i32 } poison, ptr %315, 0
  %318 = insertvalue { ptr, i32 } %317, i32 %316, 1
  resume { ptr, i32 } %318
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEEixERKf(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEE4findERKf(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEE12IteratorBaseISD_NSD_8iteratorEEneERKSF_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12)) #8 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4ceilf(float noundef) #9

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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 #10 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN3JPH13DebugRenderer11ECastShadowE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN3JPH13DebugRenderer9EDrawModeE", !7, i64 0}
!15 = !{i64 2158315273}
!16 = !{i64 2158315626}
!17 = !{i64 0, i64 16, !18}
!18 = !{!7, !7, i64 0}
!19 = !{i64 2158315989}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9}
!23 = !{i64 0, i64 4, !18}
!24 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !9, i64 28, i64 4, !9, i64 32, i64 4, !18}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !8, i64 0}


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

%"class.JPH::Color" = type { %union.anon.0 }
%union.anon.0 = type { i32 }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.13 }
%union.anon.13 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator" = type { %"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::DebugRenderer::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", %"class.JPH::Float2", %"class.JPH::Color" }
%"class.JPH::Float2" = type { float, float }
%"class.JPH::Ref.17" = type { ptr }

@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@_ZN3JPH5Color6sWhiteE = external local_unnamed_addr global %"class.JPH::Color", align 4
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [36 x i8], align 1
@__const._ZN3JPH13DebugRenderer7DrawPieENS_4Vec3EfS1_S1_ffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE.normal = external hidden unnamed_addr constant %"class.JPH::Float3", align 4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) local_unnamed_addr #2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3SinEf(float noundef) local_unnamed_addr #7

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3CosEf(float noundef) local_unnamed_addr #7

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13DebugRenderer16sCalculateBoundsEPKNS0_6VertexEi(ptr dead_on_unwind noalias writable sret(%"class.JPH::AABox") align 16, ptr noundef, i32 noundef) local_unnamed_addr #8 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #9

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16), double, double, float noundef) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer7DrawPieENS_4Vec3EfS1_S1_ffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %0, double %1, double %2, float noundef %3, double %4, double %5, double %6, double %7, float noundef %8, float noundef %9, i32 %10, i32 noundef %11, i32 noundef %12) local_unnamed_addr #8 align 2 personality ptr @__gxx_personality_v0 {
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca float, align 4
  %17 = alloca %"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator", align 8
  %18 = alloca %"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator", align 8
  %19 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %20 = alloca %"class.JPH::Float3", align 4
  %21 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %22 = alloca %"class.JPH::Ref.17", align 8
  %23 = alloca %"class.JPH::AABox", align 16
  %24 = alloca %"class.JPH::Mat44", align 16
  %25 = alloca %"class.JPH::Mat44", align 16
  %26 = alloca %"class.JPH::Vec4", align 16
  %27 = alloca %"class.JPH::Vec4", align 16
  %28 = alloca %"class.JPH::Vec4", align 16
  %29 = alloca %"class.JPH::Mat44", align 16
  store double %4, ptr %14, align 16
  %30 = getelementptr inbounds i8, ptr %14, i64 8
  store double %5, ptr %30, align 8
  store double %6, ptr %15, align 16
  %31 = getelementptr inbounds i8, ptr %15, i64 8
  store double %7, ptr %31, align 8
  %32 = fcmp ult float %8, %9
  br i1 %32, label %33, label %164

33:                                               ; preds = %13
  %34 = call noundef zeroext i1 @_ZNK3JPH4Vec312IsNormalizedEf(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef 0x3F1A36E2E0000000)
  br i1 %34, label %38, label %35

35:                                               ; preds = %33
  %36 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 1008)
  br i1 %36, label %37, label %38

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

38:                                               ; preds = %37, %35, %33
  %39 = call noundef zeroext i1 @_ZNK3JPH4Vec312IsNormalizedEf(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 0x3F1A36E2E0000000)
  br i1 %39, label %43, label %40

40:                                               ; preds = %38
  %41 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 1009)
  br i1 %41, label %42, label %43

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

43:                                               ; preds = %42, %40, %38
  %.sroa.051.0.copyload = load double, ptr %15, align 16
  %.sroa.252.0.copyload = load double, ptr %31, align 8, !tbaa !7
  %44 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %.sroa.051.0.copyload, double %.sroa.252.0.copyload)
  %45 = call noundef float @_ZSt3absf(float noundef %44)
  %46 = fcmp olt float %45, 0x3F1A36E2E0000000
  br i1 %46, label %50, label %47

47:                                               ; preds = %43
  %48 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 1010)
  br i1 %48, label %49, label %50

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

50:                                               ; preds = %43, %47, %49
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #11
  %51 = fsub float %9, %8
  store float %51, ptr %16, align 4, !tbaa !11
  %52 = getelementptr inbounds i8, ptr %0, i64 192
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEEixERKf(ptr noundef nonnull align 8 dereferenceable(28) %52, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %54 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef null)
  br i1 %54, label %55, label %63

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #11
  %56 = getelementptr inbounds i8, ptr %0, i64 224
  call void @_ZN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEE4findERKf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator") align 8 %17, ptr noundef nonnull align 8 dereferenceable(28) %56, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #11
  call void @_ZN3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator") align 8 %18, ptr noundef nonnull align 8 dereferenceable(28) %56)
  %57 = call noundef zeroext i1 @_ZNK3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEE12IteratorBaseISD_NSD_8iteratorEEneERKSF_(ptr noundef nonnull align 8 dereferenceable(12) %17, ptr noundef nonnull align 8 dereferenceable(12) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #11
  br i1 %57, label %58, label %62

58:                                               ; preds = %55
  %59 = call noundef ptr @_ZN3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %17)
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) %60)
  br label %62

62:                                               ; preds = %58, %55
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #11
  br label %63

63:                                               ; preds = %62, %50
  %64 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef null)
  br i1 %64, label %65, label %141

65:                                               ; preds = %63
  %66 = load float, ptr %16, align 4, !tbaa !11
  %67 = fmul float %66, 6.400000e+01
  %68 = fdiv float %67, 0x401921FB60000000
  %69 = call noundef float @_ZSt4ceilf(float noundef %68)
  %70 = fptosi float %69 to i32
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %19) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %19, i8 0, i64 12, i1 false)
  %71 = add nsw i32 %70, 2
  %72 = sext i32 %71 to i64
  %73 = mul nsw i64 %72, 36
  %74 = alloca i8, i64 %73, align 16
  %75 = getelementptr inbounds i8, ptr %19, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %75, ptr noundef nonnull align 4 dereferenceable(12) @__const._ZN3JPH13DebugRenderer7DrawPieENS_4Vec3EfS1_S1_ffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE.normal, i64 12, i1 false), !tbaa.struct !13
  %76 = getelementptr inbounds i8, ptr %19, i64 24
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %76, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %77 = getelementptr inbounds i8, ptr %19, i64 32
  %78 = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !7
  store i32 %78, ptr %77, align 4, !tbaa !7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %74, ptr noundef nonnull align 4 dereferenceable(36) %19, i64 36, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %19) #11
  %.not86 = icmp slt i32 %70, 0
  br i1 %.not86, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %65
  %79 = mul nsw i32 %70, 3
  %80 = sext i32 %79 to i64
  %81 = shl nsw i64 %80, 2
  %82 = alloca i8, i64 %81, align 16
  br label %._crit_edge93

.lr.ph:                                           ; preds = %65
  %83 = uitofp nneg i32 %70 to float
  %84 = getelementptr inbounds i8, ptr %21, i64 12
  %85 = getelementptr inbounds i8, ptr %21, i64 24
  %86 = getelementptr inbounds i8, ptr %21, i64 32
  br label %92

._crit_edge:                                      ; preds = %92
  %87 = mul nuw nsw i32 %70, 3
  %88 = zext nneg i32 %87 to i64
  %89 = shl nuw nsw i64 %88, 2
  %90 = alloca i8, i64 %89, align 16
  %.not = icmp eq i32 %70, 0
  br i1 %.not, label %._crit_edge93, label %.lr.ph92.preheader

.lr.ph92.preheader:                               ; preds = %._crit_edge
  %xtraiter = and i32 %70, 3
  %91 = icmp ult i32 %70, 4
  br i1 %91, label %._crit_edge93.loopexit.unr-lcssa, label %.lr.ph92.preheader.new

.lr.ph92.preheader.new:                           ; preds = %.lr.ph92.preheader
  %unroll_iter = and i32 %70, 2147483644
  br label %.lr.ph92

92:                                               ; preds = %.lr.ph, %92
  %.pn7888 = phi ptr [ %74, %.lr.ph ], [ %.0, %92 ]
  %.06787 = phi i32 [ 0, %.lr.ph ], [ %100, %92 ]
  %.0 = getelementptr inbounds i8, ptr %.pn7888, i64 36
  %93 = uitofp nneg i32 %.06787 to float
  %94 = fdiv float %93, %83
  %95 = load float, ptr %16, align 4, !tbaa !11
  %96 = fmul float %94, %95
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #11
  %97 = call noundef float @_ZN3JPH3CosEf(float noundef %96)
  %98 = call noundef float @_ZN3JPH3SinEf(float noundef %96)
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %20, float noundef %97, float noundef 0.000000e+00, float noundef %98)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %21) #11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %20, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %84, ptr noundef nonnull align 4 dereferenceable(12) @__const._ZN3JPH13DebugRenderer7DrawPieENS_4Vec3EfS1_S1_ffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE.normal, i64 12, i1 false), !tbaa.struct !13
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %85, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %99 = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !7
  store i32 %99, ptr %86, align 4, !tbaa !7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %.0, ptr noundef nonnull align 4 dereferenceable(36) %21, i64 36, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %21) #11
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #11
  %100 = add nuw i32 %.06787, 1
  %exitcond.not = icmp eq i32 %.06787, %70
  br i1 %exitcond.not, label %._crit_edge, label %92, !llvm.loop !15

._crit_edge93.loopexit.unr-lcssa:                 ; preds = %.lr.ph92, %.lr.ph92.preheader
  %.06890.unr = phi ptr [ %90, %.lr.ph92.preheader ], [ %131, %.lr.ph92 ]
  %.06989.unr = phi i32 [ 0, %.lr.ph92.preheader ], [ %128, %.lr.ph92 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge93, label %.lr.ph92.epil

.lr.ph92.epil:                                    ; preds = %._crit_edge93.loopexit.unr-lcssa, %.lr.ph92.epil
  %.06890.epil = phi ptr [ %105, %.lr.ph92.epil ], [ %.06890.unr, %._crit_edge93.loopexit.unr-lcssa ]
  %.06989.epil = phi i32 [ %102, %.lr.ph92.epil ], [ %.06989.unr, %._crit_edge93.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.lr.ph92.epil ], [ 0, %._crit_edge93.loopexit.unr-lcssa ]
  %101 = getelementptr inbounds i8, ptr %.06890.epil, i64 4
  store i32 0, ptr %.06890.epil, align 4, !tbaa !17
  %102 = add nuw nsw i32 %.06989.epil, 1
  %103 = getelementptr inbounds i8, ptr %.06890.epil, i64 8
  store i32 %102, ptr %101, align 4, !tbaa !17
  %104 = add nuw nsw i32 %.06989.epil, 2
  %105 = getelementptr inbounds i8, ptr %.06890.epil, i64 12
  store i32 %104, ptr %103, align 4, !tbaa !17
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge93, label %.lr.ph92.epil, !llvm.loop !19

._crit_edge93:                                    ; preds = %._crit_edge93.loopexit.unr-lcssa, %.lr.ph92.epil, %._crit_edge.thread, %._crit_edge
  %106 = phi ptr [ %82, %._crit_edge.thread ], [ %90, %._crit_edge ], [ %90, %.lr.ph92.epil ], [ %90, %._crit_edge93.loopexit.unr-lcssa ]
  %107 = phi i32 [ %79, %._crit_edge.thread ], [ %87, %._crit_edge ], [ %87, %.lr.ph92.epil ], [ %87, %._crit_edge93.loopexit.unr-lcssa ]
  %108 = call noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef 64)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #11
  %109 = load ptr, ptr %0, align 8, !tbaa !21
  %110 = getelementptr inbounds i8, ptr %109, i64 40
  %111 = load ptr, ptr %110, align 8
  invoke void %111(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.17") align 8 %22, ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull %74, i32 noundef %71, ptr noundef nonnull %106, i32 noundef %107)
          to label %132 unwind label %.thread

.lr.ph92:                                         ; preds = %.lr.ph92, %.lr.ph92.preheader.new
  %.06890 = phi ptr [ %90, %.lr.ph92.preheader.new ], [ %131, %.lr.ph92 ]
  %.06989 = phi i32 [ 0, %.lr.ph92.preheader.new ], [ %128, %.lr.ph92 ]
  %niter = phi i32 [ 0, %.lr.ph92.preheader.new ], [ %niter.next.3, %.lr.ph92 ]
  %112 = getelementptr inbounds i8, ptr %.06890, i64 4
  store i32 0, ptr %.06890, align 4, !tbaa !17
  %113 = or disjoint i32 %.06989, 1
  %114 = getelementptr inbounds i8, ptr %.06890, i64 8
  store i32 %113, ptr %112, align 4, !tbaa !17
  %115 = or disjoint i32 %.06989, 2
  %116 = getelementptr inbounds i8, ptr %.06890, i64 12
  store i32 %115, ptr %114, align 4, !tbaa !17
  %117 = getelementptr inbounds i8, ptr %.06890, i64 16
  store i32 0, ptr %116, align 4, !tbaa !17
  %118 = or disjoint i32 %.06989, 2
  %119 = getelementptr inbounds i8, ptr %.06890, i64 20
  store i32 %118, ptr %117, align 4, !tbaa !17
  %120 = or disjoint i32 %.06989, 3
  %121 = getelementptr inbounds i8, ptr %.06890, i64 24
  store i32 %120, ptr %119, align 4, !tbaa !17
  %122 = getelementptr inbounds i8, ptr %.06890, i64 28
  store i32 0, ptr %121, align 4, !tbaa !17
  %123 = or disjoint i32 %.06989, 3
  %124 = getelementptr inbounds i8, ptr %.06890, i64 32
  store i32 %123, ptr %122, align 4, !tbaa !17
  %125 = add nuw nsw i32 %.06989, 4
  %126 = getelementptr inbounds i8, ptr %.06890, i64 36
  store i32 %125, ptr %124, align 4, !tbaa !17
  %127 = getelementptr inbounds i8, ptr %.06890, i64 40
  store i32 0, ptr %126, align 4, !tbaa !17
  %128 = add nuw nsw i32 %.06989, 4
  %129 = getelementptr inbounds i8, ptr %.06890, i64 44
  store i32 %128, ptr %127, align 4, !tbaa !17
  %130 = add nuw nsw i32 %.06989, 5
  %131 = getelementptr inbounds i8, ptr %.06890, i64 48
  store i32 %130, ptr %129, align 4, !tbaa !17
  %niter.next.3 = add i32 %niter, 4
  %niter.ncmp.3 = icmp eq i32 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge93.loopexit.unr-lcssa, label %.lr.ph92, !llvm.loop !23

132:                                              ; preds = %._crit_edge93
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #11
  invoke void @_ZN3JPH13DebugRenderer16sCalculateBoundsEPKNS0_6VertexEi(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %23, ptr noundef nonnull %74, i32 noundef %71)
          to label %133 unwind label %.thread83

133:                                              ; preds = %132
  invoke void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_3RefINS_16RefTargetVirtualEEERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64) %108, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 16 dereferenceable(32) %23)
          to label %134 unwind label %.thread83

134:                                              ; preds = %133
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull %108)
          to label %136 unwind label %138

136:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #11
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #11
  br label %141

.thread:                                          ; preds = %._crit_edge93
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #11
  br label %139

.thread83:                                        ; preds = %133, %132
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #11
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #11
  br label %139

138:                                              ; preds = %134
  %lpad.thr_comm.split-lp = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #11
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #11
  br label %140

139:                                              ; preds = %.thread83, %.thread
  %.pn82 = phi { ptr, i32 } [ %137, %.thread ], [ %lpad.thr_comm, %.thread83 ]
  call void @_ZN3JPH13DebugRenderer8GeometrydlEPv(ptr noundef %108) #11
  br label %140

140:                                              ; preds = %138, %139
  %.pn81 = phi { ptr, i32 } [ %.pn82, %139 ], [ %lpad.thr_comm.split-lp, %138 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #11
  resume { ptr, i32 } %.pn81

141:                                              ; preds = %136, %63
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %24) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %25) #11
  %.sroa.012.0.copyload = load double, ptr %15, align 16
  %.sroa.213.0.copyload = load double, ptr %31, align 8, !tbaa !7
  %142 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %3, double %.sroa.012.0.copyload, double %.sroa.213.0.copyload)
  %143 = extractvalue { double, double } %142, 0
  %144 = extractvalue { double, double } %142, 1
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %26, double %143, double %144, float noundef 0.000000e+00)
  %.sroa.08.0.copyload = load double, ptr %14, align 16
  %.sroa.29.0.copyload = load double, ptr %30, align 8, !tbaa !7
  %145 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %3, double %.sroa.08.0.copyload, double %.sroa.29.0.copyload)
  %146 = extractvalue { double, double } %145, 0
  %147 = extractvalue { double, double } %145, 1
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %27, double %146, double %147, float noundef 0.000000e+00)
  %.sroa.02.0.copyload = load double, ptr %15, align 16
  %.sroa.23.0.copyload = load double, ptr %31, align 8, !tbaa !7
  %148 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %.sroa.02.0.copyload, double %.sroa.23.0.copyload)
  %149 = extractvalue { double, double } %148, 0
  %150 = extractvalue { double, double } %148, 1
  %151 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %3, double %149, double %150)
  %152 = extractvalue { double, double } %151, 0
  %153 = extractvalue { double, double } %151, 1
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %28, double %152, double %153, float noundef 0.000000e+00)
  %154 = load double, ptr %26, align 16
  %155 = getelementptr inbounds i8, ptr %26, i64 8
  %156 = load double, ptr %155, align 8
  %157 = load double, ptr %27, align 16
  %158 = getelementptr inbounds i8, ptr %27, i64 8
  %159 = load double, ptr %158, align 8
  %160 = load double, ptr %28, align 16
  %161 = getelementptr inbounds i8, ptr %28, i64 8
  %162 = load double, ptr %161, align 8
  call void @_ZN3JPH5Mat44C2ENS_4Vec4ES1_S1_NS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %25, double %154, double %156, double %157, double %159, double %160, double %162, double %1, double %2)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %29) #11
  %163 = fneg float %8
  call void @_ZN3JPH5Mat4410sRotationYEf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %29, float noundef %163)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %24, ptr noundef nonnull align 16 dereferenceable(64) %25, ptr noundef nonnull align 16 dereferenceable(64) %29)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %29) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %25) #11
  call void @_ZN3JPH13DebugRenderer12DrawGeometryERKNS_5Mat44ENS_5ColorERKNS_3RefINS0_8GeometryEEENS0_9ECullModeENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 16 dereferenceable(64) %24, i32 %10, ptr noundef nonnull align 8 dereferenceable(8) %53, i32 noundef 2, i32 noundef %11, i32 noundef %12)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #11
  br label %164

164:                                              ; preds = %13, %141
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEEixERKf(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEE4findERKf(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEE12IteratorBaseISD_NSD_8iteratorEEneERKSF_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<float, std::pair<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<float, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<float>, std::equal_to<float>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #8 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4ceilf(float noundef) local_unnamed_addr #9

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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 #10 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{i64 2158315273}
!6 = !{i64 2158315626}
!7 = !{!8, !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{i64 2158315989}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11}
!14 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11, i64 12, i64 4, !11, i64 16, i64 4, !11, i64 20, i64 4, !11, i64 24, i64 4, !11, i64 28, i64 4, !11, i64 32, i64 4, !7}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !9, i64 0}
!23 = distinct !{!23, !16}


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