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

; 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::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator" = type { %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::IteratorBase.base" = type <{ ptr, i32 }>
%class.DebugRendererImp = type { %"class.JPH::DebugRenderer", ptr, %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.JPH::Mutex", %"class.JPH::Ref.17", %"class.JPH::UnorderedMap.37", %"class.JPH::UnorderedMap.37", %"class.JPH::UnorderedMap.37", %"class.JPH::UnorderedMap.37", i32, [2 x %"class.JPH::Ref.41"], %"class.JPH::Ref.42", ptr, ptr, ptr, %"class.JPH::AABox", %"class.JPH::Array.43", %"class.JPH::Mutex", %"class.JPH::RefConst", %"class.JPH::Array.46", %"class.JPH::Mutex", %"class.std::unique_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 }>
%"class.JPH::Ref.17" = type { ptr }
%"class.JPH::UnorderedMap.37" = type { %"class.JPH::HashTable.base.39", [4 x i8] }
%"class.JPH::HashTable.base.39" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::Ref.41" = type { ptr }
%"class.JPH::Ref.42" = type { ptr }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Array.43" = type { i64, i64, ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Array.46" = type { i64, i64, ptr }
%"class.JPH::Mutex" = type { %"class.std::mutex", %"class.std::thread::id" }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::thread::id" = type { i64 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.36" }
%"struct.std::_Head_base.36" = type { ptr }
%"struct.std::pair.65" = type { %"class.JPH::Ref", %"struct.DebugRendererImp::Instances" }
%"struct.DebugRendererImp::Instances" = type { %"class.JPH::Array.52", %"class.JPH::Array.55", %"class.JPH::Array.55" }
%"class.JPH::Array.52" = type { i64, i64, ptr }
%"class.JPH::Array.55" = type { i64, i64, ptr }

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16DebugRendererImp13DrawTrianglesEv(ptr noundef nonnull align 16 dereferenceable(816) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %5 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %9 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %13 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %17 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8
  %20 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 16, !tbaa !9
  %22 = load ptr, ptr %21, align 16, !tbaa !42
  %23 = getelementptr inbounds ptr, ptr %22, i64 14
  %24 = load ptr, ptr %23, align 8
  %25 = call noundef ptr %24(ptr noundef nonnull align 16 dereferenceable(832) %21)
  %26 = load ptr, ptr %25, align 8, !tbaa !42
  %27 = getelementptr inbounds ptr, ptr %26, i64 2
  %28 = load ptr, ptr %27, align 8
  call void %28(ptr noundef nonnull align 8 dereferenceable(20) %25)
  %29 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 11
  %30 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28) %29)
  br i1 %30, label %31, label %34

31:                                               ; preds = %1
  %32 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 12
  %33 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28) %32)
  br i1 %33, label %79, label %34

34:                                               ; preds = %31, %1
  %35 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 2
  %36 = call noundef ptr @_ZNKSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #5
  %37 = load ptr, ptr %36, align 8, !tbaa !42
  %38 = getelementptr inbounds ptr, ptr %37, i64 2
  %39 = load ptr, ptr %38, align 8
  call void %39(ptr noundef nonnull align 8 dereferenceable(8) %36)
  %40 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 14
  %41 = load i32, ptr %40, align 16, !tbaa !44
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %43, label %61

43:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %44 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 11
  store ptr %44, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(28) %45)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(28) %46)
  br label %47

47:                                               ; preds = %58, %43
  %48 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %5)
  br i1 %48, label %50, label %49

49:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %60

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %51 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
  store ptr %51, ptr %6, align 8, !tbaa !5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.std::pair.65", ptr %52, i32 0, i32 0
  %54 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %53)
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.std::pair.65", ptr %55, i32 0, i32 1
  %57 = getelementptr inbounds %"struct.DebugRendererImp::Instances", ptr %56, i32 0, i32 1
  call void @_ZN16DebugRendererImp13DrawInstancesEPKN3JPH13DebugRenderer8GeometryERKNS0_5ArrayIiNS0_12STLAllocatorIiEEEE(ptr noundef nonnull align 16 dereferenceable(816) %19, ptr noundef %54, ptr noundef nonnull align 8 dereferenceable(24) %57)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %58

58:                                               ; preds = %50
  %59 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
  br label %47

60:                                               ; preds = %49
  br label %61

61:                                               ; preds = %60, %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %62 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 12
  store ptr %62, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(28) %63)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(28) %64)
  br label %65

65:                                               ; preds = %76, %61
  %66 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %9)
  br i1 %66, label %68, label %67

67:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %78

68:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %69 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %8)
  store ptr %69, ptr %10, align 8, !tbaa !5
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.std::pair.65", ptr %70, i32 0, i32 0
  %72 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %71)
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.std::pair.65", ptr %73, i32 0, i32 1
  %75 = getelementptr inbounds %"struct.DebugRendererImp::Instances", ptr %74, i32 0, i32 1
  call void @_ZN16DebugRendererImp13DrawInstancesEPKN3JPH13DebugRenderer8GeometryERKNS0_5ArrayIiNS0_12STLAllocatorIiEEEE(ptr noundef nonnull align 16 dereferenceable(816) %19, ptr noundef %72, ptr noundef nonnull align 8 dereferenceable(24) %75)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %76

76:                                               ; preds = %68
  %77 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %8)
  br label %65

78:                                               ; preds = %67
  br label %79

79:                                               ; preds = %78, %31
  %80 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 13
  %81 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28) %80)
  br i1 %81, label %105, label %82

82:                                               ; preds = %79
  %83 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 3
  %84 = call noundef ptr @_ZNKSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %83) #5
  %85 = load ptr, ptr %84, align 8, !tbaa !42
  %86 = getelementptr inbounds ptr, ptr %85, i64 2
  %87 = load ptr, ptr %86, align 8
  call void %87(ptr noundef nonnull align 8 dereferenceable(8) %84)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %88 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 13
  store ptr %88, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %12, ptr noundef nonnull align 8 dereferenceable(28) %89)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(28) %90)
  br label %91

91:                                               ; preds = %102, %82
  %92 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %12, ptr noundef nonnull align 8 dereferenceable(12) %13)
  br i1 %92, label %94, label %93

93:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %104

94:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %95 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %12)
  store ptr %95, ptr %14, align 8, !tbaa !5
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.std::pair.65", ptr %96, i32 0, i32 0
  %98 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %97)
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.std::pair.65", ptr %99, i32 0, i32 1
  %101 = getelementptr inbounds %"struct.DebugRendererImp::Instances", ptr %100, i32 0, i32 1
  call void @_ZN16DebugRendererImp13DrawInstancesEPKN3JPH13DebugRenderer8GeometryERKNS0_5ArrayIiNS0_12STLAllocatorIiEEEE(ptr noundef nonnull align 16 dereferenceable(816) %19, ptr noundef %98, ptr noundef nonnull align 8 dereferenceable(24) %101)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %102

102:                                              ; preds = %94
  %103 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %12)
  br label %91

104:                                              ; preds = %93
  br label %105

105:                                              ; preds = %104, %79
  %106 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 10
  %107 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28) %106)
  br i1 %107, label %131, label %108

108:                                              ; preds = %105
  %109 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 4
  %110 = call noundef ptr @_ZNKSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %109) #5
  %111 = load ptr, ptr %110, align 8, !tbaa !42
  %112 = getelementptr inbounds ptr, ptr %111, i64 2
  %113 = load ptr, ptr %112, align 8
  call void %113(ptr noundef nonnull align 8 dereferenceable(8) %110)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %114 = getelementptr inbounds %class.DebugRendererImp, ptr %19, i32 0, i32 10
  store ptr %114, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %16, ptr noundef nonnull align 8 dereferenceable(28) %115)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %17, ptr noundef nonnull align 8 dereferenceable(28) %116)
  br label %117

117:                                              ; preds = %128, %108
  %118 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %16, ptr noundef nonnull align 8 dereferenceable(12) %17)
  br i1 %118, label %120, label %119

119:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %130

120:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %121 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %16)
  store ptr %121, ptr %18, align 8, !tbaa !5
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.std::pair.65", ptr %122, i32 0, i32 0
  %124 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %123)
  %125 = load ptr, ptr %18, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.std::pair.65", ptr %125, i32 0, i32 1
  %127 = getelementptr inbounds %"struct.DebugRendererImp::Instances", ptr %126, i32 0, i32 1
  call void @_ZN16DebugRendererImp13DrawInstancesEPKN3JPH13DebugRenderer8GeometryERKNS0_5ArrayIiNS0_12STLAllocatorIiEEEE(ptr noundef nonnull align 16 dereferenceable(816) %19, ptr noundef %124, ptr noundef nonnull align 8 dereferenceable(24) %127)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %128

128:                                              ; preds = %120
  %129 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %16)
  br label %117

130:                                              ; preds = %119
  br label %131

131:                                              ; preds = %130, %105
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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, !6, i64 320}
!10 = !{!"_ZTS16DebugRendererImp", !11, i64 0, !6, i64 320, !22, i64 328, !22, i64 336, !22, i64 344, !22, i64 352, !22, i64 360, !22, i64 368, !28, i64 376, !33, i64 424, !34, i64 432, !34, i64 464, !34, i64 496, !34, i64 528, !15, i64 560, !7, i64 568, !36, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !37, i64 624, !39, i64 656, !28, i64 680, !40, i64 728, !41, i64 736, !28, i64 760, !22, i64 808}
!11 = !{!"_ZTSN3JPH13DebugRendererE", !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !13, i64 64, !13, i64 96, !16, i64 128, !16, i64 160, !18, i64 192, !18, i64 224, !20, i64 256, !20, i64 288}
!12 = !{!"_ZTSN3JPH3RefINS_13DebugRenderer8GeometryEEE", !6, i64 0}
!13 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer15SwingConeLimitsENS_3RefINS1_8GeometryEEENS1_21SwingConeLimitsHasherESt8equal_toIS2_EEE", !14, i64 0}
!14 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer18SwingPyramidLimitsENS_3RefINS1_8GeometryEEENS1_24SwingPyramidLimitsHasherESt8equal_toIS2_EEE", !17, i64 0}
!17 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer18SwingPyramidLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_24SwingPyramidLimitsHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!18 = !{!"_ZTSN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEEE", !19, i64 0}
!19 = !{!"_ZTSN3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!20 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer15TaperedCylinderENS_3RefINS1_8GeometryEEENS1_21TaperedCylinderHasherESt8equal_toIS2_EEE", !21, i64 0}
!21 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer15TaperedCylinderESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21TaperedCylinderHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!22 = !{!"_ZTSSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_dataI13PipelineStateSt14default_deleteIS0_ELb1ELb1EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_implI13PipelineStateSt14default_deleteIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt5tupleIJP13PipelineStateSt14default_deleteIS0_EEE", !26, i64 0}
!26 = !{!"_ZTSSt11_Tuple_implILm0EJP13PipelineStateSt14default_deleteIS0_EEE", !27, i64 0}
!27 = !{!"_ZTSSt10_Head_baseILm0EP13PipelineStateLb0EE", !6, i64 0}
!28 = !{!"_ZTSN3JPH5MutexE", !29, i64 0, !31, i64 40}
!29 = !{!"_ZTSSt5mutex", !30, i64 0}
!30 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!31 = !{!"_ZTSNSt6thread2idE", !32, i64 0}
!32 = !{!"long", !7, i64 0}
!33 = !{!"_ZTSN3JPH3RefINS_16RefTargetVirtualEEE", !6, i64 0}
!34 = !{!"_ZTSN3JPH12UnorderedMapINS_3RefINS_13DebugRenderer8GeometryEEEN16DebugRendererImp9InstancesENS_4HashIS4_EESt8equal_toIS4_EEE", !35, i64 0}
!35 = !{!"_ZTSN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!36 = !{!"_ZTSN3JPH3RefI15RenderPrimitiveEE", !6, i64 0}
!37 = !{!"_ZTSN3JPH5AABoxE", !38, i64 0, !38, i64 16}
!38 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!39 = !{!"_ZTSN3JPH5ArrayIN16DebugRendererImp4TextENS_12STLAllocatorIS2_EEEE", !32, i64 0, !32, i64 8, !6, i64 16}
!40 = !{!"_ZTSN3JPH8RefConstI4FontEE", !6, i64 0}
!41 = !{!"_ZTSN3JPH5ArrayIN16DebugRendererImp4LineENS_12STLAllocatorIS2_EEEE", !32, i64 0, !32, i64 8, !6, i64 16}
!42 = !{!43, !43, i64 0}
!43 = !{!"vtable pointer", !8, i64 0}
!44 = !{!10, !15, i64 560}


; 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::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator" = type { %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::IteratorBase.base" = type <{ ptr, i32 }>

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

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(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 noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16DebugRendererImp13DrawTrianglesEv(ptr noundef nonnull align 16 dereferenceable(816) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %3 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %4 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %5 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %6 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %7 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %8 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %9 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 320
  %11 = load ptr, ptr %10, align 16, !tbaa !5
  %12 = load ptr, ptr %11, align 16, !tbaa !41
  %13 = getelementptr inbounds i8, ptr %12, i64 112
  %14 = load ptr, ptr %13, align 8
  %15 = tail call noundef ptr %14(ptr noundef nonnull align 16 dereferenceable(832) %11)
  %16 = load ptr, ptr %15, align 8, !tbaa !41
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = load ptr, ptr %17, align 8
  tail call void %18(ptr noundef nonnull align 8 dereferenceable(20) %15)
  %19 = getelementptr inbounds i8, ptr %0, i64 464
  %20 = tail call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28) %19)
  br i1 %20, label %21, label %24

21:                                               ; preds = %1
  %22 = getelementptr inbounds i8, ptr %0, i64 496
  %23 = tail call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28) %22)
  br i1 %23, label %48, label %24

24:                                               ; preds = %21, %1
  %25 = getelementptr inbounds i8, ptr %0, i64 328
  %26 = tail call noundef ptr @_ZNKSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  %27 = load ptr, ptr %26, align 8, !tbaa !41
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %29 = load ptr, ptr %28, align 8
  tail call void %29(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %30 = getelementptr inbounds i8, ptr %0, i64 560
  %31 = load i32, ptr %30, align 16, !tbaa !43
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %33, label %40

33:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %2, ptr noundef nonnull align 8 dereferenceable(28) %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %3, ptr noundef nonnull align 8 dereferenceable(28) %19)
  %34 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %3)
  br i1 %34, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %33
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  br label %40

.lr.ph:                                           ; preds = %33, %.lr.ph
  %35 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %36 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %35)
  %37 = getelementptr inbounds i8, ptr %35, i64 32
  call void @_ZN16DebugRendererImp13DrawInstancesEPKN3JPH13DebugRenderer8GeometryERKNS0_5ArrayIiNS0_12STLAllocatorIiEEEE(ptr noundef nonnull align 16 dereferenceable(816) %0, ptr noundef %36, ptr noundef nonnull align 8 dereferenceable(24) %37)
  %38 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %39 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %3)
  br i1 %39, label %.lr.ph, label %._crit_edge

40:                                               ; preds = %._crit_edge, %24
  %41 = getelementptr inbounds i8, ptr %0, i64 496
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(28) %41)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(28) %41)
  %42 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %5)
  br i1 %42, label %.lr.ph18, label %._crit_edge19

._crit_edge19:                                    ; preds = %.lr.ph18, %40
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %48

.lr.ph18:                                         ; preds = %40, %.lr.ph18
  %43 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
  %44 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %43)
  %45 = getelementptr inbounds i8, ptr %43, i64 32
  call void @_ZN16DebugRendererImp13DrawInstancesEPKN3JPH13DebugRenderer8GeometryERKNS0_5ArrayIiNS0_12STLAllocatorIiEEEE(ptr noundef nonnull align 16 dereferenceable(816) %0, ptr noundef %44, ptr noundef nonnull align 8 dereferenceable(24) %45)
  %46 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
  %47 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %5)
  br i1 %47, label %.lr.ph18, label %._crit_edge19

48:                                               ; preds = %._crit_edge19, %21
  %49 = getelementptr inbounds i8, ptr %0, i64 528
  %50 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28) %49)
  br i1 %50, label %63, label %51

51:                                               ; preds = %48
  %52 = getelementptr inbounds i8, ptr %0, i64 336
  %53 = call noundef ptr @_ZNKSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #5
  %54 = load ptr, ptr %53, align 8, !tbaa !41
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %56 = load ptr, ptr %55, align 8
  call void %56(ptr noundef nonnull align 8 dereferenceable(8) %53)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(28) %49)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(28) %49)
  %57 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %7)
  br i1 %57, label %.lr.ph21, label %._crit_edge22

._crit_edge22:                                    ; preds = %.lr.ph21, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %63

.lr.ph21:                                         ; preds = %51, %.lr.ph21
  %58 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %6)
  %59 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %58)
  %60 = getelementptr inbounds i8, ptr %58, i64 32
  call void @_ZN16DebugRendererImp13DrawInstancesEPKN3JPH13DebugRenderer8GeometryERKNS0_5ArrayIiNS0_12STLAllocatorIiEEEE(ptr noundef nonnull align 16 dereferenceable(816) %0, ptr noundef %59, ptr noundef nonnull align 8 dereferenceable(24) %60)
  %61 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %6)
  %62 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %7)
  br i1 %62, label %.lr.ph21, label %._crit_edge22

63:                                               ; preds = %._crit_edge22, %48
  %64 = getelementptr inbounds i8, ptr %0, i64 432
  %65 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28) %64)
  br i1 %65, label %78, label %66

66:                                               ; preds = %63
  %67 = getelementptr inbounds i8, ptr %0, i64 344
  %68 = call noundef ptr @_ZNKSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %67) #5
  %69 = load ptr, ptr %68, align 8, !tbaa !41
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %71 = load ptr, ptr %70, align 8
  call void %71(ptr noundef nonnull align 8 dereferenceable(8) %68)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(28) %64)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  call void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(28) %64)
  %72 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %9)
  br i1 %72, label %.lr.ph24, label %._crit_edge25

._crit_edge25:                                    ; preds = %.lr.ph24, %66
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %78

.lr.ph24:                                         ; preds = %66, %.lr.ph24
  %73 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %8)
  %74 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %73)
  %75 = getelementptr inbounds i8, ptr %73, i64 32
  call void @_ZN16DebugRendererImp13DrawInstancesEPKN3JPH13DebugRenderer8GeometryERKNS0_5ArrayIiNS0_12STLAllocatorIiEEEE(ptr noundef nonnull align 16 dereferenceable(816) %0, ptr noundef %74, ptr noundef nonnull align 8 dereferenceable(24) %75)
  %76 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %8)
  %77 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %9)
  br i1 %77, label %.lr.ph24, label %._crit_edge25

78:                                               ; preds = %._crit_edge25, %63
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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, !9, i64 320}
!6 = !{!"_ZTS16DebugRendererImp", !7, i64 0, !9, i64 320, !21, i64 328, !21, i64 336, !21, i64 344, !21, i64 352, !21, i64 360, !21, i64 368, !27, i64 376, !32, i64 424, !33, i64 432, !33, i64 464, !33, i64 496, !33, i64 528, !14, i64 560, !10, i64 568, !35, i64 584, !9, i64 592, !9, i64 600, !9, i64 608, !36, i64 624, !38, i64 656, !27, i64 680, !39, i64 728, !40, i64 736, !27, i64 760, !21, i64 808}
!7 = !{!"_ZTSN3JPH13DebugRendererE", !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !12, i64 64, !12, i64 96, !15, i64 128, !15, i64 160, !17, i64 192, !17, i64 224, !19, i64 256, !19, i64 288}
!8 = !{!"_ZTSN3JPH3RefINS_13DebugRenderer8GeometryEEE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer15SwingConeLimitsENS_3RefINS1_8GeometryEEENS1_21SwingConeLimitsHasherESt8equal_toIS2_EEE", !13, i64 0}
!13 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EEE", !9, i64 0, !9, i64 8, !14, i64 16, !14, i64 20, !14, i64 24}
!14 = !{!"int", !10, i64 0}
!15 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer18SwingPyramidLimitsENS_3RefINS1_8GeometryEEENS1_24SwingPyramidLimitsHasherESt8equal_toIS2_EEE", !16, i64 0}
!16 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer18SwingPyramidLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_24SwingPyramidLimitsHasherESt8equal_toIS2_EEE", !9, i64 0, !9, i64 8, !14, i64 16, !14, i64 20, !14, i64 24}
!17 = !{!"_ZTSN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEEE", !18, i64 0}
!18 = !{!"_ZTSN3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEEE", !9, i64 0, !9, i64 8, !14, i64 16, !14, i64 20, !14, i64 24}
!19 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer15TaperedCylinderENS_3RefINS1_8GeometryEEENS1_21TaperedCylinderHasherESt8equal_toIS2_EEE", !20, i64 0}
!20 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer15TaperedCylinderESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21TaperedCylinderHasherESt8equal_toIS2_EEE", !9, i64 0, !9, i64 8, !14, i64 16, !14, i64 20, !14, i64 24}
!21 = !{!"_ZTSSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_dataI13PipelineStateSt14default_deleteIS0_ELb1ELb1EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_implI13PipelineStateSt14default_deleteIS0_EE", !24, i64 0}
!24 = !{!"_ZTSSt5tupleIJP13PipelineStateSt14default_deleteIS0_EEE", !25, i64 0}
!25 = !{!"_ZTSSt11_Tuple_implILm0EJP13PipelineStateSt14default_deleteIS0_EEE", !26, i64 0}
!26 = !{!"_ZTSSt10_Head_baseILm0EP13PipelineStateLb0EE", !9, i64 0}
!27 = !{!"_ZTSN3JPH5MutexE", !28, i64 0, !30, i64 40}
!28 = !{!"_ZTSSt5mutex", !29, i64 0}
!29 = !{!"_ZTSSt12__mutex_base", !10, i64 0}
!30 = !{!"_ZTSNSt6thread2idE", !31, i64 0}
!31 = !{!"long", !10, i64 0}
!32 = !{!"_ZTSN3JPH3RefINS_16RefTargetVirtualEEE", !9, i64 0}
!33 = !{!"_ZTSN3JPH12UnorderedMapINS_3RefINS_13DebugRenderer8GeometryEEEN16DebugRendererImp9InstancesENS_4HashIS4_EESt8equal_toIS4_EEE", !34, i64 0}
!34 = !{!"_ZTSN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EEE", !9, i64 0, !9, i64 8, !14, i64 16, !14, i64 20, !14, i64 24}
!35 = !{!"_ZTSN3JPH3RefI15RenderPrimitiveEE", !9, i64 0}
!36 = !{!"_ZTSN3JPH5AABoxE", !37, i64 0, !37, i64 16}
!37 = !{!"_ZTSN3JPH4Vec3E", !10, i64 0}
!38 = !{!"_ZTSN3JPH5ArrayIN16DebugRendererImp4TextENS_12STLAllocatorIS2_EEEE", !31, i64 0, !31, i64 8, !9, i64 16}
!39 = !{!"_ZTSN3JPH8RefConstI4FontEE", !9, i64 0}
!40 = !{!"_ZTSN3JPH5ArrayIN16DebugRendererImp4LineENS_12STLAllocatorIS2_EEEE", !31, i64 0, !31, i64 8, !9, i64 16}
!41 = !{!42, !42, i64 0}
!42 = !{!"vtable pointer", !11, i64 0}
!43 = !{!6, !14, i64 560}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass