; LLVM IR from jrouwe/JoltPhysics :: TestFramework/Renderer/VK/RendererVK.ll (ZN10RendererVK12CreateBufferEmjjR8BufferVK)

; 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<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator" = type { %"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::IteratorBase.base" = type <{ ptr, i32 }>
%"struct.RendererVK::Key" = type { i64, i32, i32 }
%struct.VkBufferCreateInfo = type { i32, ptr, i32, i64, i32, i32, i32, ptr }
%struct.VkMemoryRequirements = type { i64, i64, i32 }
%"struct.RendererVK::Memory" = type { ptr, i64 }
%class.RendererVK = type { %class.Renderer, ptr, ptr, ptr, %struct.VkPhysicalDeviceMemoryProperties, ptr, i32, i32, ptr, ptr, ptr, ptr, i8, %"class.JPH::Array", i32, %struct.VkExtent2D, %"class.JPH::Array.1", ptr, ptr, ptr, ptr, ptr, ptr, [2 x ptr], [2 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, %"class.JPH::Array.4", i32, ptr, [2 x ptr], [2 x ptr], [2 x ptr], [2 x ptr], %"class.JPH::Ref", [2 x %"class.std::unique_ptr"], [2 x %"class.std::unique_ptr"], [2 x %"class.std::unique_ptr"], [2 x %"class.JPH::UnorderedMap"], %"class.JPH::UnorderedMap", %"class.JPH::UnorderedMap.9", i32, i32, i64, i64 }
%class.Renderer = type { ptr, ptr, float, i8, [11 x i8], %struct.CameraState, %"class.JPH::Vec3", %class.Frustum, %class.Frustum, i32, %"struct.Renderer::VertexShaderConstantBuffer", %"struct.Renderer::VertexShaderConstantBuffer", %"struct.Renderer::PixelShaderConstantBuffer" }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%class.Frustum = type { [5 x %"class.JPH::Plane"] }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"struct.Renderer::VertexShaderConstantBuffer" = type { %"class.JPH::Mat44", %"class.JPH::Mat44", %"class.JPH::Mat44", %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"struct.Renderer::PixelShaderConstantBuffer" = type { %"class.JPH::Vec4", %"class.JPH::Vec4" }
%struct.VkPhysicalDeviceMemoryProperties = type { i32, [32 x %struct.VkMemoryType], i32, [16 x %struct.VkMemoryHeap] }
%struct.VkMemoryType = type { i32, i32 }
%struct.VkMemoryHeap = type { i64, i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%struct.VkExtent2D = type { i32, i32 }
%"class.JPH::Array.1" = type { i64, i64, ptr }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::Ref" = type { ptr }
%"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.8" }
%"struct.std::_Head_base.8" = 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.9" = type { %"class.JPH::HashTable.base.11", [4 x i8] }
%"class.JPH::HashTable.base.11" = type <{ ptr, ptr, i32, i32, i32 }>
%"struct.std::pair" = type { %"struct.RendererVK::Key", %"class.JPH::Array.13" }
%"class.JPH::Array.13" = type { i64, i64, ptr }
%class.BufferVK = type { ptr, ptr, i64, i64, i32, i32, i64 }

@_ZN10RendererVK13cMinAllocSizeE = external dso_local constant i64, align 8

; 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 uwtable
declare dso_local void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #1 align 2

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

declare void @_Z18FatalErrorIfFailed8VkResult(i32 noundef) #2

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

; 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) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10RendererVK14AllocateMemoryEmjjRP16VkDeviceMemory_T(ptr noundef nonnull align 16 dereferenceable(1936), i64 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10RendererVK12CreateBufferEmjjR8BufferVK(ptr noundef nonnull align 16 dereferenceable(1936) %0, i64 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(48) %4) #1 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator", align 8
  %12 = alloca %"struct.RendererVK::Key", align 8
  %13 = alloca %"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.VkBufferCreateInfo, align 8
  %16 = alloca %struct.VkMemoryRequirements, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.RendererVK::Key", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca %"struct.RendererVK::Memory", align 8
  %23 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !11
  store i32 %3, ptr %9, align 4, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  %24 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %25 = getelementptr inbounds %class.RendererVK, ptr %24, i32 0, i32 43
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %26 = getelementptr inbounds %"struct.RendererVK::Key", ptr %12, i32 0, i32 0
  %27 = load i64, ptr %7, align 8, !tbaa !9
  store i64 %27, ptr %26, align 8, !tbaa !13
  %28 = getelementptr inbounds %"struct.RendererVK::Key", ptr %12, i32 0, i32 1
  %29 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %29, ptr %28, align 8, !tbaa !15
  %30 = getelementptr inbounds %"struct.RendererVK::Key", ptr %12, i32 0, i32 2
  %31 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %31, ptr %30, align 4, !tbaa !16
  call void @_ZN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayI8BufferVKNS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EE4findERKS2_(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(28) %25, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %32 = getelementptr inbounds %class.RendererVK, ptr %24, i32 0, i32 43
  call void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(28) %32)
  %33 = call noundef zeroext i1 @_ZNK3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %11, ptr noundef nonnull align 8 dereferenceable(12) %13)
  br i1 %33, label %34, label %39

34:                                               ; preds = %5
  %35 = call noundef ptr @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %11)
  %36 = getelementptr inbounds %"struct.std::pair", ptr %35, i32 0, i32 1
  %37 = call noundef zeroext i1 @_ZNK3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %38 = xor i1 %37, true
  br label %39

39:                                               ; preds = %34, %5
  %40 = phi i1 [ false, %5 ], [ %38, %34 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br i1 %40, label %41, label %48

41:                                               ; preds = %39
  %42 = call noundef ptr @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %11)
  %43 = getelementptr inbounds %"struct.std::pair", ptr %42, i32 0, i32 1
  %44 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %44, i64 48, i1 false), !tbaa.struct !17
  %46 = call noundef ptr @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %11)
  %47 = getelementptr inbounds %"struct.std::pair", ptr %46, i32 0, i32 1
  call void @_ZN3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %47)
  store i32 1, ptr %14, align 4
  br label %165

48:                                               ; preds = %39
  %49 = load i64, ptr %7, align 8, !tbaa !9
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds %class.BufferVK, ptr %50, i32 0, i32 3
  store i64 %49, ptr %51, align 8, !tbaa !18
  %52 = load i32, ptr %8, align 4, !tbaa !11
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %class.BufferVK, ptr %53, i32 0, i32 4
  store i32 %52, ptr %54, align 8, !tbaa !20
  %55 = load i32, ptr %9, align 4, !tbaa !11
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds %class.BufferVK, ptr %56, i32 0, i32 5
  store i32 %55, ptr %57, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 56, ptr %15) #7
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 56, i1 false)
  %58 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %15, i32 0, i32 0
  store i32 12, ptr %58, align 8, !tbaa !22
  %59 = load i64, ptr %7, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %15, i32 0, i32 3
  store i64 %59, ptr %60, align 8, !tbaa !26
  %61 = load i32, ptr %8, align 4, !tbaa !11
  %62 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %15, i32 0, i32 4
  store i32 %61, ptr %62, align 8, !tbaa !27
  %63 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %15, i32 0, i32 5
  store i32 0, ptr %63, align 4, !tbaa !28
  %64 = getelementptr inbounds %class.RendererVK, ptr %24, i32 0, i32 5
  %65 = load ptr, ptr %64, align 16, !tbaa !29
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %class.BufferVK, ptr %66, i32 0, i32 0
  %68 = call i32 @vkCreateBuffer(ptr noundef %65, ptr noundef %15, ptr noundef null, ptr noundef %67)
  call void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %68)
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  %69 = getelementptr inbounds %class.RendererVK, ptr %24, i32 0, i32 5
  %70 = load ptr, ptr %69, align 16, !tbaa !29
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.BufferVK, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !52
  call void @vkGetBufferMemoryRequirements(ptr noundef %70, ptr noundef %73, ptr noundef %16)
  %74 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %16, i32 0, i32 0
  %75 = load i64, ptr %74, align 8, !tbaa !53
  %76 = icmp ugt i64 %75, 65536
  br i1 %76, label %77, label %91

77:                                               ; preds = %48
  %78 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %16, i32 0, i32 0
  %79 = load i64, ptr %78, align 8, !tbaa !53
  %80 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %16, i32 0, i32 2
  %81 = load i32, ptr %80, align 8, !tbaa !55
  %82 = load i32, ptr %9, align 4, !tbaa !11
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = getelementptr inbounds %class.BufferVK, ptr %83, i32 0, i32 1
  call void @_ZN10RendererVK14AllocateMemoryEmjjRP16VkDeviceMemory_T(ptr noundef nonnull align 16 dereferenceable(1936) %24, i64 noundef %79, i32 noundef %81, i32 noundef %82, ptr noundef nonnull align 8 dereferenceable(8) %84)
  %85 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %16, i32 0, i32 0
  %86 = load i64, ptr %85, align 8, !tbaa !53
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = getelementptr inbounds %class.BufferVK, ptr %87, i32 0, i32 6
  store i64 %86, ptr %88, align 8, !tbaa !56
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds %class.BufferVK, ptr %89, i32 0, i32 2
  store i64 0, ptr %90, align 8, !tbaa !57
  br label %152

91:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %92 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %16, i32 0, i32 0
  %93 = load i64, ptr %92, align 8, !tbaa !53
  %94 = trunc i64 %93 to i32
  %95 = call noundef i32 @_ZN3JPH15GetNextPowerOf2Ej(i32 noundef %94)
  %96 = zext i32 %95 to i64
  store i64 %96, ptr %17, align 8, !tbaa !9
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) @_ZN10RendererVK13cMinAllocSizeE)
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = getelementptr inbounds %class.BufferVK, ptr %99, i32 0, i32 6
  store i64 %98, ptr %100, align 8, !tbaa !56
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %101 = getelementptr inbounds %class.RendererVK, ptr %24, i32 0, i32 44
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  %102 = getelementptr inbounds %"struct.RendererVK::Key", ptr %19, i32 0, i32 0
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = getelementptr inbounds %class.BufferVK, ptr %103, i32 0, i32 6
  %105 = load i64, ptr %104, align 8, !tbaa !56
  store i64 %105, ptr %102, align 8, !tbaa !13
  %106 = getelementptr inbounds %"struct.RendererVK::Key", ptr %19, i32 0, i32 1
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.BufferVK, ptr %107, i32 0, i32 4
  %109 = load i32, ptr %108, align 8, !tbaa !20
  store i32 %109, ptr %106, align 8, !tbaa !15
  %110 = getelementptr inbounds %"struct.RendererVK::Key", ptr %19, i32 0, i32 2
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.BufferVK, ptr %111, i32 0, i32 5
  %113 = load i32, ptr %112, align 4, !tbaa !21
  store i32 %113, ptr %110, align 4, !tbaa !16
  %114 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayINS1_6MemoryENS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEixERKS2_(ptr noundef nonnull align 8 dereferenceable(28) %101, ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  store ptr %114, ptr %18, align 8, !tbaa !5
  %115 = load ptr, ptr %18, align 8, !tbaa !5
  %116 = call noundef zeroext i1 @_ZNK3JPH5ArrayIN10RendererVK6MemoryENS_12STLAllocatorIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %115)
  br i1 %116, label %117, label %138

117:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %118 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %16, i32 0, i32 2
  %119 = load i32, ptr %118, align 8, !tbaa !55
  %120 = load i32, ptr %9, align 4, !tbaa !11
  call void @_ZN10RendererVK14AllocateMemoryEmjjRP16VkDeviceMemory_T(ptr noundef nonnull align 16 dereferenceable(1936) %24, i64 noundef 524288, i32 noundef %119, i32 noundef %120, ptr noundef nonnull align 8 dereferenceable(8) %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %121

121:                                              ; preds = %131, %117
  %122 = load i64, ptr %21, align 8, !tbaa !9
  %123 = icmp ult i64 %122, 524288
  br i1 %123, label %125, label %124

124:                                              ; preds = %121
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %137

125:                                              ; preds = %121
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  %127 = getelementptr inbounds %"struct.RendererVK::Memory", ptr %22, i32 0, i32 0
  %128 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %128, ptr %127, align 8, !tbaa !58
  %129 = getelementptr inbounds %"struct.RendererVK::Memory", ptr %22, i32 0, i32 1
  %130 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %130, ptr %129, align 8, !tbaa !60
  call void @_ZN3JPH5ArrayIN10RendererVK6MemoryENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %126, ptr noundef nonnull align 8 dereferenceable(16) %22)
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br label %131

131:                                              ; preds = %125
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %class.BufferVK, ptr %132, i32 0, i32 6
  %134 = load i64, ptr %133, align 8, !tbaa !56
  %135 = load i64, ptr %21, align 8, !tbaa !9
  %136 = add i64 %135, %134
  store i64 %136, ptr %21, align 8, !tbaa !9
  br label %121, !llvm.loop !61

137:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %138

138:                                              ; preds = %137, %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %139 = load ptr, ptr %18, align 8, !tbaa !5
  %140 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3JPH5ArrayIN10RendererVK6MemoryENS_12STLAllocatorIS2_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %139)
  store ptr %140, ptr %23, align 8, !tbaa !5
  %141 = load ptr, ptr %23, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.RendererVK::Memory", ptr %141, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !58
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = getelementptr inbounds %class.BufferVK, ptr %144, i32 0, i32 1
  store ptr %143, ptr %145, align 8, !tbaa !63
  %146 = load ptr, ptr %23, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.RendererVK::Memory", ptr %146, i32 0, i32 1
  %148 = load i64, ptr %147, align 8, !tbaa !60
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = getelementptr inbounds %class.BufferVK, ptr %149, i32 0, i32 2
  store i64 %148, ptr %150, align 8, !tbaa !57
  %151 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN3JPH5ArrayIN10RendererVK6MemoryENS_12STLAllocatorIS2_EEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %151)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %152

152:                                              ; preds = %138, %77
  %153 = getelementptr inbounds %class.RendererVK, ptr %24, i32 0, i32 5
  %154 = load ptr, ptr %153, align 16, !tbaa !29
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = getelementptr inbounds %class.BufferVK, ptr %155, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8, !tbaa !52
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = getelementptr inbounds %class.BufferVK, ptr %158, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !63
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = getelementptr inbounds %class.BufferVK, ptr %161, i32 0, i32 2
  %163 = load i64, ptr %162, align 8, !tbaa !57
  %164 = call i32 @vkBindBufferMemory(ptr noundef %154, ptr noundef %157, ptr noundef %160, i64 noundef %163)
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %15) #7
  store i32 0, ptr %14, align 4
  br label %165

165:                                              ; preds = %152, %41
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  %166 = load i32, ptr %14, align 4
  switch i32 %166, label %168 [
    i32 0, label %167
    i32 1, label %167
  ]

167:                                              ; preds = %165, %165
  ret void

168:                                              ; preds = %165
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayI8BufferVKNS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EE4findERKS2_(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

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

declare i32 @vkCreateBuffer(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @vkGetBufferMemoryRequirements(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN3JPH15GetNextPowerOf2Ej(i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayINS1_6MemoryENS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEixERKS2_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3JPH5ArrayIN10RendererVK6MemoryENS_12STLAllocatorIS2_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

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

declare i32 @vkBindBufferMemory(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN10RendererVK3KeyE", !10, i64 0, !12, i64 8, !12, i64 12}
!15 = !{!14, !12, i64 8}
!16 = !{!14, !12, i64 12}
!17 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !9, i64 24, i64 8, !9, i64 32, i64 4, !11, i64 36, i64 4, !11, i64 40, i64 8, !9}
!18 = !{!19, !10, i64 24}
!19 = !{!"_ZTS8BufferVK", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !12, i64 36, !10, i64 40}
!20 = !{!19, !12, i64 32}
!21 = !{!19, !12, i64 36}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTS18VkBufferCreateInfo", !24, i64 0, !6, i64 8, !12, i64 16, !10, i64 24, !12, i64 32, !25, i64 36, !12, i64 40, !6, i64 48}
!24 = !{!"_ZTS15VkStructureType", !7, i64 0}
!25 = !{!"_ZTS13VkSharingMode", !7, i64 0}
!26 = !{!23, !10, i64 24}
!27 = !{!23, !12, i64 32}
!28 = !{!23, !25, i64 36}
!29 = !{!30, !6, i64 1376}
!30 = !{!"_ZTS10RendererVK", !31, i64 0, !6, i64 832, !6, i64 840, !6, i64 848, !41, i64 856, !6, i64 1376, !12, i64 1384, !12, i64 1388, !6, i64 1392, !6, i64 1400, !6, i64 1408, !6, i64 1416, !33, i64 1424, !42, i64 1432, !43, i64 1456, !44, i64 1460, !45, i64 1472, !6, i64 1496, !6, i64 1504, !6, i64 1512, !6, i64 1520, !6, i64 1528, !6, i64 1536, !7, i64 1544, !7, i64 1560, !6, i64 1576, !6, i64 1584, !6, i64 1592, !6, i64 1600, !6, i64 1608, !6, i64 1616, !46, i64 1624, !12, i64 1648, !6, i64 1656, !7, i64 1664, !7, i64 1680, !7, i64 1696, !7, i64 1712, !47, i64 1728, !7, i64 1736, !7, i64 1752, !7, i64 1768, !7, i64 1784, !48, i64 1848, !50, i64 1880, !12, i64 1912, !12, i64 1916, !10, i64 1920, !10, i64 1928}
!31 = !{!"_ZTS8Renderer", !6, i64 8, !32, i64 16, !33, i64 20, !34, i64 32, !35, i64 96, !36, i64 112, !36, i64 192, !12, i64 272, !37, i64 288, !37, i64 544, !39, i64 800}
!32 = !{!"float", !7, i64 0}
!33 = !{!"bool", !7, i64 0}
!34 = !{!"_ZTS11CameraState", !35, i64 0, !35, i64 16, !35, i64 32, !32, i64 48}
!35 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!36 = !{!"_ZTS7Frustum", !7, i64 0}
!37 = !{!"_ZTSN8Renderer26VertexShaderConstantBufferE", !38, i64 0, !38, i64 64, !38, i64 128, !38, i64 192}
!38 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!39 = !{!"_ZTSN8Renderer25PixelShaderConstantBufferE", !40, i64 0, !40, i64 16}
!40 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!41 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !12, i64 0, !7, i64 4, !12, i64 260, !7, i64 264}
!42 = !{!"_ZTSN3JPH5ArrayIP9VkImage_TNS_12STLAllocatorIS2_EEEE", !10, i64 0, !10, i64 8, !6, i64 16}
!43 = !{!"_ZTS8VkFormat", !7, i64 0}
!44 = !{!"_ZTS10VkExtent2D", !12, i64 0, !12, i64 4}
!45 = !{!"_ZTSN3JPH5ArrayIP13VkImageView_TNS_12STLAllocatorIS2_EEEE", !10, i64 0, !10, i64 8, !6, i64 16}
!46 = !{!"_ZTSN3JPH5ArrayIP15VkFramebuffer_TNS_12STLAllocatorIS2_EEEE", !10, i64 0, !10, i64 8, !6, i64 16}
!47 = !{!"_ZTSN3JPH3RefI9TextureVKEE", !6, i64 0}
!48 = !{!"_ZTSN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayI8BufferVKNS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEE", !49, i64 0}
!49 = !{!"_ZTSN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24}
!50 = !{!"_ZTSN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayINS1_6MemoryENS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEE", !51, i64 0}
!51 = !{!"_ZTSN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayINS1_6MemoryENS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24}
!52 = !{!19, !6, i64 0}
!53 = !{!54, !10, i64 0}
!54 = !{!"_ZTS20VkMemoryRequirements", !10, i64 0, !10, i64 8, !12, i64 16}
!55 = !{!54, !12, i64 16}
!56 = !{!19, !10, i64 40}
!57 = !{!19, !10, i64 16}
!58 = !{!59, !6, i64 0}
!59 = !{!"_ZTSN10RendererVK6MemoryE", !6, i64 0, !10, i64 8}
!60 = !{!59, !10, i64 8}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}
!63 = !{!19, !6, i64 8}


; 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<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator" = type { %"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::IteratorBase.base" = type <{ ptr, i32 }>
%"struct.RendererVK::Key" = type { i64, i32, i32 }
%struct.VkBufferCreateInfo = type { i32, ptr, i32, i64, i32, i32, i32, ptr }
%struct.VkMemoryRequirements = type { i64, i64, i32 }
%"struct.RendererVK::Memory" = type { ptr, i64 }

@_ZN10RendererVK13cMinAllocSizeE = external dso_local constant i64, align 8

; 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 uwtable
declare dso_local void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1 align 2

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

declare void @_Z18FatalErrorIfFailed8VkResult(i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10RendererVK14AllocateMemoryEmjjRP16VkDeviceMemory_T(ptr noundef nonnull align 16 dereferenceable(1936), i64 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10RendererVK12CreateBufferEmjjR8BufferVK(ptr noundef nonnull align 16 dereferenceable(1936) %0, i64 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(48) %4) local_unnamed_addr #1 align 2 {
  %6 = alloca %"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator", align 8
  %7 = alloca %"struct.RendererVK::Key", align 8
  %8 = alloca %"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator", align 8
  %9 = alloca %struct.VkBufferCreateInfo, align 8
  %10 = alloca %struct.VkMemoryRequirements, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"struct.RendererVK::Key", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.RendererVK::Memory", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %15 = getelementptr inbounds i8, ptr %0, i64 1848
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  store i64 %1, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %2, ptr %16, align 8, !tbaa !11
  %17 = getelementptr inbounds i8, ptr %7, i64 12
  store i32 %3, ptr %17, align 4, !tbaa !12
  call void @_ZN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayI8BufferVKNS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EE4findERKS2_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(28) %15)
  %18 = call noundef zeroext i1 @_ZNK3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %8)
  br i1 %18, label %19, label %.critedge

19:                                               ; preds = %5
  %20 = call noundef ptr @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %6)
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %22 = call noundef zeroext i1 @_ZNK3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br i1 %22, label %29, label %23

23:                                               ; preds = %19
  %24 = call noundef ptr @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %6)
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %26 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %25)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(48) %26, i64 48, i1 false), !tbaa.struct !13
  %27 = call noundef ptr @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %6)
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  call void @_ZN3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
  br label %85

.critedge:                                        ; preds = %5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %29

29:                                               ; preds = %.critedge, %19
  %30 = getelementptr inbounds i8, ptr %4, i64 24
  store i64 %1, ptr %30, align 8, !tbaa !18
  %31 = getelementptr inbounds i8, ptr %4, i64 32
  store i32 %2, ptr %31, align 8, !tbaa !20
  %32 = getelementptr inbounds i8, ptr %4, i64 36
  store i32 %3, ptr %32, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %9, i8 0, i64 56, i1 false)
  store i32 12, ptr %9, align 8, !tbaa !22
  %33 = getelementptr inbounds i8, ptr %9, i64 24
  store i64 %1, ptr %33, align 8, !tbaa !26
  %34 = getelementptr inbounds i8, ptr %9, i64 32
  store i32 %2, ptr %34, align 8, !tbaa !27
  %35 = getelementptr inbounds i8, ptr %0, i64 1376
  %36 = load ptr, ptr %35, align 16, !tbaa !28
  %37 = call i32 @vkCreateBuffer(ptr noundef %36, ptr noundef nonnull %9, ptr noundef null, ptr noundef nonnull %4)
  call void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %37)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  %38 = load ptr, ptr %35, align 16, !tbaa !28
  %39 = load ptr, ptr %4, align 8, !tbaa !51
  call void @vkGetBufferMemoryRequirements(ptr noundef %38, ptr noundef %39, ptr noundef nonnull %10)
  %40 = load i64, ptr %10, align 8, !tbaa !52
  %41 = icmp ugt i64 %40, 65536
  br i1 %41, label %42, label %49

42:                                               ; preds = %29
  %43 = getelementptr inbounds i8, ptr %10, i64 16
  %44 = load i32, ptr %43, align 8, !tbaa !54
  %45 = getelementptr inbounds i8, ptr %4, i64 8
  call void @_ZN10RendererVK14AllocateMemoryEmjjRP16VkDeviceMemory_T(ptr noundef nonnull align 16 dereferenceable(1936) %0, i64 noundef %40, i32 noundef %44, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %45)
  %46 = load i64, ptr %10, align 8, !tbaa !52
  %47 = getelementptr inbounds i8, ptr %4, i64 40
  store i64 %46, ptr %47, align 8, !tbaa !55
  %48 = getelementptr inbounds i8, ptr %4, i64 16
  store i64 0, ptr %48, align 8, !tbaa !56
  br label %78

49:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %50 = trunc nuw i64 %40 to i32
  %51 = call noundef i32 @_ZN3JPH15GetNextPowerOf2Ej(i32 noundef %50)
  %52 = zext i32 %51 to i64
  store i64 %52, ptr %11, align 8, !tbaa !16
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) @_ZN10RendererVK13cMinAllocSizeE)
  %54 = load i64, ptr %53, align 8, !tbaa !16
  %55 = getelementptr inbounds i8, ptr %4, i64 40
  store i64 %54, ptr %55, align 8, !tbaa !55
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %56 = getelementptr inbounds i8, ptr %0, i64 1880
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  store i64 %54, ptr %12, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %12, i64 8
  %58 = load <2 x i32>, ptr %31, align 8, !tbaa !17
  store <2 x i32> %58, ptr %57, align 8, !tbaa !17
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayINS1_6MemoryENS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEixERKS2_(ptr noundef nonnull align 8 dereferenceable(28) %56, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  %60 = call noundef zeroext i1 @_ZNK3JPH5ArrayIN10RendererVK6MemoryENS_12STLAllocatorIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %59)
  br i1 %60, label %61, label %71

61:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %62 = getelementptr inbounds i8, ptr %10, i64 16
  %63 = load i32, ptr %62, align 8, !tbaa !54
  call void @_ZN10RendererVK14AllocateMemoryEmjjRP16VkDeviceMemory_T(ptr noundef nonnull align 16 dereferenceable(1936) %0, i64 noundef 524288, i32 noundef %63, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %64 = getelementptr inbounds i8, ptr %14, i64 8
  br label %66

65:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %71

66:                                               ; preds = %61, %66
  %.039 = phi i64 [ 0, %61 ], [ %69, %66 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %67 = load ptr, ptr %13, align 8, !tbaa !14
  store ptr %67, ptr %14, align 8, !tbaa !57
  store i64 %.039, ptr %64, align 8, !tbaa !59
  call void @_ZN3JPH5ArrayIN10RendererVK6MemoryENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  %68 = load i64, ptr %55, align 8, !tbaa !55
  %69 = add i64 %68, %.039
  %70 = icmp ult i64 %69, 524288
  br i1 %70, label %66, label %65, !llvm.loop !60

71:                                               ; preds = %65, %49
  %72 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3JPH5ArrayIN10RendererVK6MemoryENS_12STLAllocatorIS2_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %59)
  %73 = load ptr, ptr %72, align 8, !tbaa !57
  %74 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %73, ptr %74, align 8, !tbaa !62
  %75 = getelementptr inbounds i8, ptr %72, i64 8
  %76 = load i64, ptr %75, align 8, !tbaa !59
  %77 = getelementptr inbounds i8, ptr %4, i64 16
  store i64 %76, ptr %77, align 8, !tbaa !56
  call void @_ZN3JPH5ArrayIN10RendererVK6MemoryENS_12STLAllocatorIS2_EEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %59)
  %.pre = load i64, ptr %77, align 8, !tbaa !56
  br label %78

78:                                               ; preds = %71, %42
  %79 = phi i64 [ %.pre, %71 ], [ 0, %42 ]
  %80 = load ptr, ptr %35, align 16, !tbaa !28
  %81 = load ptr, ptr %4, align 8, !tbaa !51
  %82 = getelementptr inbounds i8, ptr %4, i64 8
  %83 = load ptr, ptr %82, align 8, !tbaa !62
  %84 = call i32 @vkBindBufferMemory(ptr noundef %80, ptr noundef %81, ptr noundef %83, i64 noundef %79)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #7
  br label %85

85:                                               ; preds = %78, %23
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayI8BufferVKNS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EE4findERKS2_(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<RendererVK::Key, std::pair<RendererVK::Key, JPH::Array<BufferVK>>, JPH::UnorderedMapDetail<RendererVK::Key, JPH::Array<BufferVK>>, RendererVK::KeyHasher, std::equal_to<RendererVK::Key>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

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

declare i32 @vkCreateBuffer(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @vkGetBufferMemoryRequirements(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN3JPH15GetNextPowerOf2Ej(i32 noundef) local_unnamed_addr #6

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3JPH5ArrayIN10RendererVK6MemoryENS_12STLAllocatorIS2_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

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

declare i32 @vkBindBufferMemory(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN10RendererVK3KeyE", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !10, i64 12}
!13 = !{i64 0, i64 8, !14, i64 8, i64 8, !14, i64 16, i64 8, !16, i64 24, i64 8, !16, i64 32, i64 4, !17, i64 36, i64 4, !17, i64 40, i64 8, !16}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!10, !10, i64 0}
!18 = !{!19, !7, i64 24}
!19 = !{!"_ZTS8BufferVK", !15, i64 0, !15, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40}
!20 = !{!19, !10, i64 32}
!21 = !{!19, !10, i64 36}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTS18VkBufferCreateInfo", !24, i64 0, !15, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !25, i64 36, !10, i64 40, !15, i64 48}
!24 = !{!"_ZTS15VkStructureType", !8, i64 0}
!25 = !{!"_ZTS13VkSharingMode", !8, i64 0}
!26 = !{!23, !7, i64 24}
!27 = !{!23, !10, i64 32}
!28 = !{!29, !15, i64 1376}
!29 = !{!"_ZTS10RendererVK", !30, i64 0, !15, i64 832, !15, i64 840, !15, i64 848, !40, i64 856, !15, i64 1376, !10, i64 1384, !10, i64 1388, !15, i64 1392, !15, i64 1400, !15, i64 1408, !15, i64 1416, !32, i64 1424, !41, i64 1432, !42, i64 1456, !43, i64 1460, !44, i64 1472, !15, i64 1496, !15, i64 1504, !15, i64 1512, !15, i64 1520, !15, i64 1528, !15, i64 1536, !8, i64 1544, !8, i64 1560, !15, i64 1576, !15, i64 1584, !15, i64 1592, !15, i64 1600, !15, i64 1608, !15, i64 1616, !45, i64 1624, !10, i64 1648, !15, i64 1656, !8, i64 1664, !8, i64 1680, !8, i64 1696, !8, i64 1712, !46, i64 1728, !8, i64 1736, !8, i64 1752, !8, i64 1768, !8, i64 1784, !47, i64 1848, !49, i64 1880, !10, i64 1912, !10, i64 1916, !7, i64 1920, !7, i64 1928}
!30 = !{!"_ZTS8Renderer", !15, i64 8, !31, i64 16, !32, i64 20, !33, i64 32, !34, i64 96, !35, i64 112, !35, i64 192, !10, i64 272, !36, i64 288, !36, i64 544, !38, i64 800}
!31 = !{!"float", !8, i64 0}
!32 = !{!"bool", !8, i64 0}
!33 = !{!"_ZTS11CameraState", !34, i64 0, !34, i64 16, !34, i64 32, !31, i64 48}
!34 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!35 = !{!"_ZTS7Frustum", !8, i64 0}
!36 = !{!"_ZTSN8Renderer26VertexShaderConstantBufferE", !37, i64 0, !37, i64 64, !37, i64 128, !37, i64 192}
!37 = !{!"_ZTSN3JPH5Mat44E", !8, i64 0}
!38 = !{!"_ZTSN8Renderer25PixelShaderConstantBufferE", !39, i64 0, !39, i64 16}
!39 = !{!"_ZTSN3JPH4Vec4E", !8, i64 0}
!40 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !10, i64 0, !8, i64 4, !10, i64 260, !8, i64 264}
!41 = !{!"_ZTSN3JPH5ArrayIP9VkImage_TNS_12STLAllocatorIS2_EEEE", !7, i64 0, !7, i64 8, !15, i64 16}
!42 = !{!"_ZTS8VkFormat", !8, i64 0}
!43 = !{!"_ZTS10VkExtent2D", !10, i64 0, !10, i64 4}
!44 = !{!"_ZTSN3JPH5ArrayIP13VkImageView_TNS_12STLAllocatorIS2_EEEE", !7, i64 0, !7, i64 8, !15, i64 16}
!45 = !{!"_ZTSN3JPH5ArrayIP15VkFramebuffer_TNS_12STLAllocatorIS2_EEEE", !7, i64 0, !7, i64 8, !15, i64 16}
!46 = !{!"_ZTSN3JPH3RefI9TextureVKEE", !15, i64 0}
!47 = !{!"_ZTSN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayI8BufferVKNS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEE", !48, i64 0}
!48 = !{!"_ZTSN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EEE", !15, i64 0, !15, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!49 = !{!"_ZTSN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayINS1_6MemoryENS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEE", !50, i64 0}
!50 = !{!"_ZTSN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayINS1_6MemoryENS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EEE", !15, i64 0, !15, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!51 = !{!19, !15, i64 0}
!52 = !{!53, !7, i64 0}
!53 = !{!"_ZTS20VkMemoryRequirements", !7, i64 0, !7, i64 8, !10, i64 16}
!54 = !{!53, !10, i64 16}
!55 = !{!19, !7, i64 40}
!56 = !{!19, !7, i64 16}
!57 = !{!58, !15, i64 0}
!58 = !{!"_ZTSN10RendererVK6MemoryE", !15, i64 0, !7, i64 8}
!59 = !{!58, !7, i64 8}
!60 = distinct !{!60, !61}
!61 = !{!"llvm.loop.mustprogress"}
!62 = !{!19, !15, i64 8}


; Effective O3 passes: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass