; 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::Ref.17" = type { ptr }
%"class.JPH::Color" = type { %union.anon.0 }
%union.anon.0 = type { i32 }
%"struct.JPH::DebugRenderer::TaperedCylinder" = type { float, float, float, float }
%"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::iterator" = type { %"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::DebugRenderer::LOD" = type <{ %"class.JPH::Ref.17", float, [4 x i8] }>
%"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.33" = type { %"struct.JPH::DebugRenderer::TaperedCylinder", %"class.JPH::Ref" }
%"class.JPH::DebugRenderer::Geometry" = type { %"class.JPH::RefTarget", %"class.JPH::Array.18", %"class.JPH::AABox" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array.18" = type { i64, i64, ptr }

@_ZN3JPHL20sLODDistanceForLevelE = external hidden constant [4 x float], align 16

; 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 void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13DebugRenderer14CreateCylinderEffffi(ptr dead_on_unwind noalias writable sret(%"class.JPH::Ref.17") align 8, ptr noundef nonnull align 8 dereferenceable(320), float noundef, float noundef, float noundef, float noundef, i32 noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5AABoxC2ENS_4Vec3ES1_(ptr noundef nonnull align 16 dereferenceable(32), double, double, double, double) unnamed_addr #5 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) #6 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) 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) #8 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) #3 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)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer19DrawTaperedCylinderERKNS_5Mat44EffffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, i32 %6, i32 noundef %7, i32 noundef %8) #3 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.JPH::Color", align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.JPH::DebugRenderer::TaperedCylinder", align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::iterator", align 8
  %22 = alloca %"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::iterator", align 8
  %23 = alloca float, align 4
  %24 = alloca %"class.JPH::AABox", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca i1, align 1
  %30 = alloca i32, align 4
  %31 = alloca %"class.JPH::DebugRenderer::LOD", align 8
  %32 = alloca %"class.JPH::Color", align 4
  %33 = getelementptr inbounds %"class.JPH::Color", ptr %10, i32 0, i32 0
  %34 = getelementptr inbounds %union.anon.0, ptr %33, i32 0, i32 0
  store i32 %6, ptr %34, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store float %2, ptr %13, align 4, !tbaa !9
  store float %3, ptr %14, align 4, !tbaa !9
  store float %4, ptr %15, align 4, !tbaa !9
  store float %5, ptr %16, align 4, !tbaa !9
  store i32 %7, ptr %17, align 4, !tbaa !11
  store i32 %8, ptr %18, align 4, !tbaa !13
  %35 = load ptr, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #9
  %36 = getelementptr inbounds %"struct.JPH::DebugRenderer::TaperedCylinder", ptr %19, i32 0, i32 0
  %37 = load float, ptr %13, align 4, !tbaa !9
  store float %37, ptr %36, align 4, !tbaa !15
  %38 = getelementptr inbounds %"struct.JPH::DebugRenderer::TaperedCylinder", ptr %19, i32 0, i32 1
  %39 = load float, ptr %14, align 4, !tbaa !9
  store float %39, ptr %38, align 4, !tbaa !17
  %40 = getelementptr inbounds %"struct.JPH::DebugRenderer::TaperedCylinder", ptr %19, i32 0, i32 2
  %41 = load float, ptr %15, align 4, !tbaa !9
  store float %41, ptr %40, align 4, !tbaa !18
  %42 = getelementptr inbounds %"struct.JPH::DebugRenderer::TaperedCylinder", ptr %19, i32 0, i32 3
  %43 = load float, ptr %16, align 4, !tbaa !9
  store float %43, ptr %42, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %44 = getelementptr inbounds %"class.JPH::DebugRenderer", ptr %35, i32 0, i32 14
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapINS_13DebugRenderer15TaperedCylinderENS_3RefINS1_8GeometryEEENS1_21TaperedCylinderHasherESt8equal_toIS2_EEixERKS2_(ptr noundef nonnull align 8 dereferenceable(28) %44, ptr noundef nonnull align 4 dereferenceable(16) %19)
  store ptr %45, ptr %20, align 8, !tbaa !5
  %46 = load ptr, ptr %20, align 8, !tbaa !5
  %47 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef null)
  br i1 %47, label %48, label %58

48:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #9
  %49 = getelementptr inbounds %"class.JPH::DebugRenderer", ptr %35, i32 0, i32 15
  call void @_ZN3JPH12UnorderedMapINS_13DebugRenderer15TaperedCylinderENS_3RefINS1_8GeometryEEENS1_21TaperedCylinderHasherESt8equal_toIS2_EE4findERKS2_(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::iterator") align 8 %21, ptr noundef nonnull align 8 dereferenceable(28) %49, ptr noundef nonnull align 4 dereferenceable(16) %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
  %50 = getelementptr inbounds %"class.JPH::DebugRenderer", ptr %35, i32 0, i32 15
  call void @_ZN3JPH9HashTableINS_13DebugRenderer15TaperedCylinderESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21TaperedCylinderHasherESt8equal_toIS2_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::iterator") align 8 %22, ptr noundef nonnull align 8 dereferenceable(28) %50)
  %51 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_13DebugRenderer15TaperedCylinderESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21TaperedCylinderHasherESt8equal_toIS2_EE12IteratorBaseISD_NSD_8iteratorEEneERKSF_(ptr noundef nonnull align 8 dereferenceable(12) %21, ptr noundef nonnull align 8 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  br i1 %51, label %52, label %57

52:                                               ; preds = %48
  %53 = call noundef ptr @_ZN3JPH9HashTableINS_13DebugRenderer15TaperedCylinderESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21TaperedCylinderHasherESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %21)
  %54 = getelementptr inbounds %"struct.std::pair.33", ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %20, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %54)
  br label %57

57:                                               ; preds = %52, %48
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  br label %58

58:                                               ; preds = %57, %9
  %59 = load ptr, ptr %20, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef null)
  br i1 %60, label %61, label %125

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %63 = load float, ptr %62, align 4, !tbaa !9
  store float %63, ptr %23, align 4, !tbaa !9
  %64 = call noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef 64)
  store i1 true, ptr %29, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #9
  %65 = load float, ptr %23, align 4, !tbaa !9
  %66 = fneg float %65
  %67 = load float, ptr %14, align 4, !tbaa !9
  %68 = load float, ptr %23, align 4, !tbaa !9
  %69 = fneg float %68
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %25, float noundef %66, float noundef %67, float noundef %69)
          to label %70 unwind label %92

70:                                               ; preds = %61
  %71 = load float, ptr %23, align 4, !tbaa !9
  %72 = load float, ptr %13, align 4, !tbaa !9
  %73 = load float, ptr %23, align 4, !tbaa !9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %28, float noundef %71, float noundef %72, float noundef %73)
          to label %74 unwind label %92

74:                                               ; preds = %70
  %75 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %76 = load double, ptr %75, align 16
  %77 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %78 = load double, ptr %77, align 8
  %79 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %80 = load double, ptr %79, align 16
  %81 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %82 = load double, ptr %81, align 8
  invoke void @_ZN3JPH5AABoxC2ENS_4Vec3ES1_(ptr noundef nonnull align 16 dereferenceable(32) %24, double %76, double %78, double %80, double %82)
          to label %83 unwind label %92

83:                                               ; preds = %74
  invoke void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64) %64, ptr noundef nonnull align 16 dereferenceable(32) %24)
          to label %84 unwind label %92

84:                                               ; preds = %83
  store i1 false, ptr %29, align 1
  %85 = load ptr, ptr %20, align 8, !tbaa !5
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef %64)
          to label %87 unwind label %92

87:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  store i32 4, ptr %30, align 4, !tbaa !20
  br label %88

88:                                               ; preds = %116, %87
  %89 = load i32, ptr %30, align 4, !tbaa !20
  %90 = icmp sge i32 %89, 1
  br i1 %90, label %99, label %91

91:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %123

92:                                               ; preds = %84, %83, %74, %70, %61
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %26, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #9
  %96 = load i1, ptr %29, align 1
  br i1 %96, label %97, label %98

97:                                               ; preds = %92
  call void @_ZN3JPH13DebugRenderer8GeometrydlEPv(ptr noundef %64) #9
  br label %98

98:                                               ; preds = %97, %92
  br label %124

99:                                               ; preds = %88
  %100 = load ptr, ptr %20, align 8, !tbaa !5
  %101 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %100)
  %102 = getelementptr inbounds %"class.JPH::DebugRenderer::Geometry", ptr %101, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #9
  %103 = getelementptr inbounds %"class.JPH::DebugRenderer::LOD", ptr %31, i32 0, i32 0
  %104 = load float, ptr %13, align 4, !tbaa !9
  %105 = load float, ptr %14, align 4, !tbaa !9
  %106 = load float, ptr %15, align 4, !tbaa !9
  %107 = load float, ptr %16, align 4, !tbaa !9
  %108 = load i32, ptr %30, align 4, !tbaa !20
  call void @_ZN3JPH13DebugRenderer14CreateCylinderEffffi(ptr dead_on_unwind writable sret(%"class.JPH::Ref.17") align 8 %103, ptr noundef nonnull align 8 dereferenceable(320) %35, float noundef %104, float noundef %105, float noundef %106, float noundef %107, i32 noundef %108)
  %109 = getelementptr inbounds %"class.JPH::DebugRenderer::LOD", ptr %31, i32 0, i32 1
  %110 = load i32, ptr %30, align 4, !tbaa !20
  %111 = sub nsw i32 4, %110
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [4 x float], ptr @_ZN3JPHL20sLODDistanceForLevelE, i64 0, i64 %112
  %114 = load float, ptr %113, align 4, !tbaa !9
  store float %114, ptr %109, align 8, !tbaa !22
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull align 8 dereferenceable(12) %31)
          to label %115 unwind label %119

115:                                              ; preds = %99
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %31) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %30, align 4, !tbaa !20
  %118 = add nsw i32 %117, -1
  store i32 %118, ptr %30, align 4, !tbaa !20
  br label %88, !llvm.loop !25

119:                                              ; preds = %99
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %26, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %27, align 4
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %31) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %124

123:                                              ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %125

124:                                              ; preds = %119, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  br label %133

125:                                              ; preds = %123, %58
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %10, i64 4, i1 false), !tbaa.struct !27
  %127 = load ptr, ptr %20, align 8, !tbaa !5
  %128 = load i32, ptr %17, align 4, !tbaa !11
  %129 = load i32, ptr %18, align 4, !tbaa !13
  %130 = getelementptr inbounds %"class.JPH::Color", ptr %32, i32 0, i32 0
  %131 = getelementptr inbounds %union.anon.0, ptr %130, i32 0, i32 0
  %132 = load i32, ptr %131, align 4
  call void @_ZN3JPH13DebugRenderer12DrawGeometryERKNS_5Mat44ENS_5ColorERKNS_3RefINS0_8GeometryEEENS0_9ECullModeENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %35, ptr noundef nonnull align 16 dereferenceable(64) %126, i32 %132, ptr noundef nonnull align 8 dereferenceable(8) %127, i32 noundef 0, i32 noundef %128, i32 noundef %129)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  ret void

133:                                              ; preds = %124
  %134 = load ptr, ptr %26, align 8
  %135 = load i32, ptr %27, align 4
  %136 = insertvalue { ptr, i32 } poison, ptr %134, 0
  %137 = insertvalue { ptr, i32 } %136, i32 %135, 1
  resume { ptr, i32 } %137
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #8

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 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 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!16, !10, i64 0}
!16 = !{!"_ZTSN3JPH13DebugRenderer15TaperedCylinderE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!17 = !{!16, !10, i64 4}
!18 = !{!16, !10, i64 8}
!19 = !{!16, !10, i64 12}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!23, !10, i64 8}
!23 = !{!"_ZTSN3JPH13DebugRenderer3LODE", !24, i64 0, !10, i64 8}
!24 = !{!"_ZTSN3JPH3RefINS_16RefTargetVirtualEEE", !6, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{i64 0, i64 4, !28}
!28 = !{!7, !7, i64 0}


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

%"class.JPH::Ref.17" = type { ptr }
%"struct.JPH::DebugRenderer::TaperedCylinder" = type { float, float, float, float }
%"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::iterator" = type { %"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::DebugRenderer::LOD" = type <{ %"class.JPH::Ref.17", float, [4 x i8] }>

@_ZN3JPHL20sLODDistanceForLevelE = external hidden local_unnamed_addr constant [4 x float], align 16

; 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: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13DebugRenderer14CreateCylinderEffffi(ptr dead_on_unwind noalias writable sret(%"class.JPH::Ref.17") align 8, ptr noundef nonnull align 8 dereferenceable(320), float noundef, float noundef, float noundef, float noundef, i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5AABoxC2ENS_4Vec3ES1_(ptr noundef nonnull align 16 dereferenceable(32), double, double, double, double) unnamed_addr #4 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: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13DebugRenderer8GeometrydlEPv(ptr noundef) local_unnamed_addr #6 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #7 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 #7 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 #2 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 @_ZN3JPH13DebugRenderer19DrawTaperedCylinderERKNS_5Mat44EffffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, i32 %6, i32 noundef %7, i32 noundef %8) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca %"struct.JPH::DebugRenderer::TaperedCylinder", align 4
  %13 = alloca %"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::iterator", align 8
  %14 = alloca %"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::iterator", align 8
  %15 = alloca %"class.JPH::AABox", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::DebugRenderer::LOD", align 8
  store float %4, ptr %10, align 4, !tbaa !5
  store float %5, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  store float %2, ptr %12, align 4, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %12, i64 4
  store float %3, ptr %19, align 4, !tbaa !11
  %20 = getelementptr inbounds i8, ptr %12, i64 8
  store float %4, ptr %20, align 4, !tbaa !12
  %21 = getelementptr inbounds i8, ptr %12, i64 12
  store float %5, ptr %21, align 4, !tbaa !13
  %22 = getelementptr inbounds i8, ptr %0, i64 256
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapINS_13DebugRenderer15TaperedCylinderENS_3RefINS1_8GeometryEEENS1_21TaperedCylinderHasherESt8equal_toIS2_EEixERKS2_(ptr noundef nonnull align 8 dereferenceable(28) %22, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %24 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef null)
  br i1 %24, label %25, label %33

25:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  %26 = getelementptr inbounds i8, ptr %0, i64 288
  call void @_ZN3JPH12UnorderedMapINS_13DebugRenderer15TaperedCylinderENS_3RefINS1_8GeometryEEENS1_21TaperedCylinderHasherESt8equal_toIS2_EE4findERKS2_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(28) %26, ptr noundef nonnull align 4 dereferenceable(16) %12)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  call void @_ZN3JPH9HashTableINS_13DebugRenderer15TaperedCylinderESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21TaperedCylinderHasherESt8equal_toIS2_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::DebugRenderer::TaperedCylinder, std::pair<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::TaperedCylinder, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::TaperedCylinderHasher, std::equal_to<JPH::DebugRenderer::TaperedCylinder>>::iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(28) %26)
  %27 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_13DebugRenderer15TaperedCylinderESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21TaperedCylinderHasherESt8equal_toIS2_EE12IteratorBaseISD_NSD_8iteratorEEneERKSF_(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef nonnull align 8 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  br i1 %27, label %28, label %32

28:                                               ; preds = %25
  %29 = call noundef ptr @_ZN3JPH9HashTableINS_13DebugRenderer15TaperedCylinderESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21TaperedCylinderHasherESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %13)
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %30)
  br label %32

32:                                               ; preds = %28, %25
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %33

33:                                               ; preds = %32, %9
  %34 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef null)
  br i1 %34, label %35, label %.loopexit

35:                                               ; preds = %33
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %37 = load float, ptr %36, align 4, !tbaa !5
  %38 = call noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef 64)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #8
  %39 = fneg float %37
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef %39, float noundef %3, float noundef %39)
          to label %40 unwind label %55

40:                                               ; preds = %35
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %37, float noundef %2, float noundef %37)
          to label %41 unwind label %55

41:                                               ; preds = %40
  %42 = load double, ptr %16, align 16
  %43 = getelementptr inbounds i8, ptr %16, i64 8
  %44 = load double, ptr %43, align 8
  %45 = load double, ptr %17, align 16
  %46 = getelementptr inbounds i8, ptr %17, i64 8
  %47 = load double, ptr %46, align 8
  call void @_ZN3JPH5AABoxC2ENS_4Vec3ES1_(ptr noundef nonnull align 16 dereferenceable(32) %15, double %42, double %44, double %45, double %47)
  call void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64) %38, ptr noundef nonnull align 16 dereferenceable(32) %15)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull %38)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  %49 = getelementptr inbounds i8, ptr %18, i64 8
  %50 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  %52 = load float, ptr %10, align 4, !tbaa !5
  %53 = load float, ptr %11, align 4, !tbaa !5
  call void @_ZN3JPH13DebugRenderer14CreateCylinderEffffi(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.17") align 8 %18, ptr noundef nonnull align 8 dereferenceable(320) %0, float noundef %2, float noundef %3, float noundef %52, float noundef %53, i32 noundef 4)
  %54 = load float, ptr @_ZN3JPHL20sLODDistanceForLevelE, align 16, !tbaa !5
  store float %54, ptr %49, align 8, !tbaa !14
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 8 dereferenceable(12) %18)
          to label %56 unwind label %74

55:                                               ; preds = %40, %35
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  call void @_ZN3JPH13DebugRenderer8GeometrydlEPv(ptr noundef %38) #8
  br label %76

56:                                               ; preds = %41
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  %57 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  %59 = load float, ptr %10, align 4, !tbaa !5
  %60 = load float, ptr %11, align 4, !tbaa !5
  call void @_ZN3JPH13DebugRenderer14CreateCylinderEffffi(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.17") align 8 %18, ptr noundef nonnull align 8 dereferenceable(320) %0, float noundef %2, float noundef %3, float noundef %59, float noundef %60, i32 noundef 3)
  %61 = load float, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20sLODDistanceForLevelE, i64 4), align 4, !tbaa !5
  store float %61, ptr %49, align 8, !tbaa !14
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 8 dereferenceable(12) %18)
          to label %62 unwind label %74

62:                                               ; preds = %56
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  %63 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  %65 = load float, ptr %10, align 4, !tbaa !5
  %66 = load float, ptr %11, align 4, !tbaa !5
  call void @_ZN3JPH13DebugRenderer14CreateCylinderEffffi(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.17") align 8 %18, ptr noundef nonnull align 8 dereferenceable(320) %0, float noundef %2, float noundef %3, float noundef %65, float noundef %66, i32 noundef 2)
  %67 = load float, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20sLODDistanceForLevelE, i64 8), align 8, !tbaa !5
  store float %67, ptr %49, align 8, !tbaa !14
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 8 dereferenceable(12) %18)
          to label %68 unwind label %74

68:                                               ; preds = %62
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  %69 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  %71 = load float, ptr %10, align 4, !tbaa !5
  %72 = load float, ptr %11, align 4, !tbaa !5
  call void @_ZN3JPH13DebugRenderer14CreateCylinderEffffi(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.17") align 8 %18, ptr noundef nonnull align 8 dereferenceable(320) %0, float noundef %2, float noundef %3, float noundef %71, float noundef %72, i32 noundef 1)
  %73 = load float, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20sLODDistanceForLevelE, i64 12), align 4, !tbaa !5
  store float %73, ptr %49, align 8, !tbaa !14
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(12) %18)
          to label %.loopexit.loopexit unwind label %74

.loopexit.loopexit:                               ; preds = %68
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  br label %.loopexit

74:                                               ; preds = %68, %62, %56, %41
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  br label %76

76:                                               ; preds = %55, %74
  %.pn = phi { ptr, i32 } [ %75, %74 ], [ %lpad.thr_comm, %55 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  resume { ptr, i32 } %.pn

.loopexit:                                        ; preds = %.loopexit.loopexit, %33
  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) %1, i32 %6, ptr noundef nonnull align 8 dereferenceable(8) %23, i32 noundef 0, i32 noundef %7, i32 noundef %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  ret void
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass