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

; 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.VkCommandBufferBeginInfo = type { i32, ptr, i32, ptr }
%union.VkClearValue = type { %union.VkClearColorValue }
%union.VkClearColorValue = type { [4 x float] }
%struct.VkClearDepthStencilValue = type { float, i32 }
%struct.VkRenderPassBeginInfo = type { i32, ptr, ptr, ptr, %struct.VkRect2D, i32, ptr }
%struct.VkRect2D = type { %struct.VkOffset2D, %struct.VkExtent2D }
%struct.VkOffset2D = type { i32, i32 }
%struct.VkExtent2D = type { i32, i32 }
%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 }
%"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" }
%"struct.RendererVK::Key" = type { i64, i32, i32 }
%"class.JPH::Array.13" = type { i64, i64, ptr }
%class.BufferVK = type { ptr, ptr, i64, i64, i32, i32, i64 }

; 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

declare i32 @vkDeviceWaitIdle(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE5beginEv(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)) #2 align 2

; 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)) #2 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)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10RendererVK18FreeBufferInternalER8BufferVK(ptr noundef nonnull align 16 dereferenceable(1936), ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

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

declare void @_Z18FatalErrorIfFailed8VkResult(i32 noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10RendererVK10BeginFrameERK11CameraStatef(ptr noundef nonnull align 16 dereferenceable(1936) %0, ptr noundef nonnull align 16 dereferenceable(52) %1, float noundef %2) unnamed_addr #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = 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
  %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 ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %struct.VkCommandBufferBeginInfo, align 8
  %19 = alloca %union.VkClearValue, align 4
  %20 = alloca %struct.VkClearDepthStencilValue, align 4
  %21 = alloca %struct.VkRenderPassBeginInfo, align 8
  %22 = alloca %struct.VkExtent2D, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load float, ptr %6, align 4, !tbaa !9
  call void @_ZN8Renderer10BeginFrameERK11CameraStatef(ptr noundef nonnull align 16 dereferenceable(832) %25, ptr noundef nonnull align 16 dereferenceable(52) %26, float noundef %27)
  %28 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 11
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = icmp eq ptr %29, null
  br i1 %30, label %31, label %32

31:                                               ; preds = %3
  br label %216

32:                                               ; preds = %3
  %33 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %34 = load i32, ptr %33, align 16, !tbaa !35
  %35 = add i32 %34, 1
  %36 = urem i32 %35, 2
  %37 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  store i32 %36, ptr %37, align 16, !tbaa !35
  %38 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 5
  %39 = load ptr, ptr %38, align 16, !tbaa !36
  %40 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 37
  %41 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %42 = load i32, ptr %41, align 16, !tbaa !35
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds [2 x ptr], ptr %40, i64 0, i64 %43
  %45 = call i32 @vkWaitForFences(ptr noundef %39, i32 noundef 1, ptr noundef %44, i32 noundef 1, i64 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %46 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 12
  %47 = load i8, ptr %46, align 16, !tbaa !37, !range !38, !noundef !39
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %50

49:                                               ; preds = %32
  br label %63

50:                                               ; preds = %32
  %51 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 5
  %52 = load ptr, ptr %51, align 16, !tbaa !36
  %53 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 11
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 35
  %56 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %57 = load i32, ptr %56, align 16, !tbaa !35
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds [2 x ptr], ptr %55, i64 0, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 32
  %62 = call i32 @vkAcquireNextImageKHR(ptr noundef %52, ptr noundef %54, i64 noundef -1, ptr noundef %60, ptr noundef null, ptr noundef %61)
  br label %63

63:                                               ; preds = %50, %49
  %64 = phi i32 [ -1000001004, %49 ], [ %62, %50 ]
  store i32 %64, ptr %7, align 4, !tbaa !40
  %65 = load i32, ptr %7, align 4, !tbaa !40
  %66 = icmp eq i32 %65, -1000001004
  br i1 %66, label %67, label %91

67:                                               ; preds = %63
  %68 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 5
  %69 = load ptr, ptr %68, align 16, !tbaa !36
  %70 = call i32 @vkDeviceWaitIdle(ptr noundef %69)
  call void @_ZN10RendererVK16DestroySwapChainEv(ptr noundef nonnull align 16 dereferenceable(1936) %25)
  %71 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 3
  %72 = load ptr, ptr %71, align 16, !tbaa !42
  call void @_ZN10RendererVK15CreateSwapChainEP18VkPhysicalDevice_T(ptr noundef nonnull align 16 dereferenceable(1936) %25, ptr noundef %72)
  %73 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 11
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  %75 = icmp eq ptr %74, null
  br i1 %75, label %76, label %77

76:                                               ; preds = %67
  store i32 1, ptr %8, align 4
  br label %214

77:                                               ; preds = %67
  %78 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 5
  %79 = load ptr, ptr %78, align 16, !tbaa !36
  %80 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 11
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 35
  %83 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %84 = load i32, ptr %83, align 16, !tbaa !35
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds [2 x ptr], ptr %82, i64 0, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 32
  %89 = call i32 @vkAcquireNextImageKHR(ptr noundef %79, ptr noundef %81, i64 noundef -1, ptr noundef %87, ptr noundef null, ptr noundef %88)
  store i32 %89, ptr %7, align 4, !tbaa !40
  %90 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 12
  store i8 0, ptr %90, align 16, !tbaa !37
  br label %97

91:                                               ; preds = %63
  %92 = load i32, ptr %7, align 4, !tbaa !40
  %93 = icmp eq i32 %92, 1000001003
  br i1 %93, label %94, label %96

94:                                               ; preds = %91
  %95 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 12
  store i8 1, ptr %95, align 16, !tbaa !37
  store i32 0, ptr %7, align 4, !tbaa !40
  br label %96

96:                                               ; preds = %94, %91
  br label %97

97:                                               ; preds = %96, %77
  %98 = load i32, ptr %7, align 4, !tbaa !40
  call void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %98)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %99 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 43
  store ptr %99, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE5beginEv(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 %10, ptr noundef nonnull align 8 dereferenceable(28) %100)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  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 %11, ptr noundef nonnull align 8 dereferenceable(28) %101)
  br label %102

102:                                              ; preds = %125, %97
  %103 = call noundef zeroext i1 @_ZNK3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(12) %11)
  br i1 %103, label %105, label %104

104:                                              ; preds = %102
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %127

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %106 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %10)
  store ptr %106, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.std::pair", ptr %107, i32 0, i32 1
  store ptr %108, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = call noundef ptr @_ZN3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %109)
  store ptr %110, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %111 = load ptr, ptr %13, align 8, !tbaa !5
  %112 = call noundef ptr @_ZN3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %111)
  store ptr %112, ptr %15, align 8, !tbaa !5
  br label %113

113:                                              ; preds = %121, %105
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = icmp ne ptr %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 4, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %124

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %119, ptr %16, align 8, !tbaa !5
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN10RendererVK18FreeBufferInternalER8BufferVK(ptr noundef nonnull align 16 dereferenceable(1936) %25, ptr noundef nonnull align 8 dereferenceable(48) %120)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %121

121:                                              ; preds = %118
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = getelementptr inbounds %class.BufferVK, ptr %122, i32 1
  store ptr %123, ptr %14, align 8, !tbaa !5
  br label %113

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

125:                                              ; preds = %124
  %126 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %10)
  br label %102

127:                                              ; preds = %104
  %128 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 43
  call void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(28) %128)
  %129 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 43
  %130 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 42
  %131 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %132 = load i32, ptr %131, align 16, !tbaa !35
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds [2 x %"class.JPH::UnorderedMap"], ptr %130, i64 0, i64 %133
  call void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE4swapERSF_(ptr noundef nonnull align 8 dereferenceable(28) %129, ptr noundef nonnull align 8 dereferenceable(28) %134) #7
  %135 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 5
  %136 = load ptr, ptr %135, align 16, !tbaa !36
  %137 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 37
  %138 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %139 = load i32, ptr %138, align 16, !tbaa !35
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds [2 x ptr], ptr %137, i64 0, i64 %140
  %142 = call i32 @vkResetFences(ptr noundef %136, i32 noundef 1, ptr noundef %141)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %143 = call noundef ptr @_ZN10RendererVK16GetCommandBufferEv(ptr noundef nonnull align 16 dereferenceable(1936) %25)
  store ptr %143, ptr %17, align 8, !tbaa !5
  %144 = load ptr, ptr %17, align 8, !tbaa !5
  %145 = call i32 @vkResetCommandBuffer(ptr noundef %144, i32 noundef 0)
  call void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %145)
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #7
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 32, i1 false)
  %146 = getelementptr inbounds %struct.VkCommandBufferBeginInfo, ptr %18, i32 0, i32 0
  store i32 42, ptr %146, align 8, !tbaa !43
  %147 = getelementptr inbounds %struct.VkCommandBufferBeginInfo, ptr %18, i32 0, i32 2
  store i32 1, ptr %147, align 8, !tbaa !46
  %148 = load ptr, ptr %17, align 8, !tbaa !5
  %149 = call i32 @vkBeginCommandBuffer(ptr noundef %148, ptr noundef %18)
  call void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %149)
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %150 = getelementptr inbounds %struct.VkClearDepthStencilValue, ptr %20, i32 0, i32 0
  store float 0.000000e+00, ptr %150, align 4, !tbaa !47
  %151 = getelementptr inbounds %struct.VkClearDepthStencilValue, ptr %20, i32 0, i32 1
  store i32 0, ptr %151, align 4, !tbaa !49
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !50
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #7
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  %152 = getelementptr inbounds %struct.VkRenderPassBeginInfo, ptr %21, i32 0, i32 0
  store i32 43, ptr %152, align 8, !tbaa !52
  %153 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 27
  %154 = load ptr, ptr %153, align 8, !tbaa !56
  %155 = getelementptr inbounds %struct.VkRenderPassBeginInfo, ptr %21, i32 0, i32 2
  store ptr %154, ptr %155, align 8, !tbaa !57
  %156 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 30
  %157 = load ptr, ptr %156, align 16, !tbaa !58
  %158 = getelementptr inbounds %struct.VkRenderPassBeginInfo, ptr %21, i32 0, i32 3
  store ptr %157, ptr %158, align 8, !tbaa !59
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %159 = getelementptr inbounds %struct.VkExtent2D, ptr %22, i32 0, i32 0
  store i32 4096, ptr %159, align 4, !tbaa !60
  %160 = getelementptr inbounds %struct.VkExtent2D, ptr %22, i32 0, i32 1
  store i32 4096, ptr %160, align 4, !tbaa !61
  %161 = getelementptr inbounds %struct.VkRenderPassBeginInfo, ptr %21, i32 0, i32 4
  %162 = getelementptr inbounds %struct.VkRect2D, ptr %161, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %162, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !62
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %163 = getelementptr inbounds %struct.VkRenderPassBeginInfo, ptr %21, i32 0, i32 5
  store i32 1, ptr %163, align 8, !tbaa !63
  %164 = getelementptr inbounds %struct.VkRenderPassBeginInfo, ptr %21, i32 0, i32 6
  store ptr %19, ptr %164, align 8, !tbaa !64
  %165 = load ptr, ptr %17, align 8, !tbaa !5
  call void @vkCmdBeginRenderPass(ptr noundef %165, ptr noundef %21, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %166 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 39
  %167 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %168 = load i32, ptr %167, align 16, !tbaa !35
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %166, i64 0, i64 %169
  %171 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %170) #7
  %172 = call noundef ptr @_ZN16ConstantBufferVK3MapIN8Renderer26VertexShaderConstantBufferEEEPT_v(ptr noundef nonnull align 8 dereferenceable(56) %171)
  store ptr %172, ptr %23, align 8, !tbaa !5
  %173 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 10
  %174 = load ptr, ptr %23, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %174, ptr align 16 %173, i64 256, i1 false), !tbaa.struct !65
  %175 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 39
  %176 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %177 = load i32, ptr %176, align 16, !tbaa !35
  %178 = zext i32 %177 to i64
  %179 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %175, i64 0, i64 %178
  %180 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %179) #7
  call void @_ZN16ConstantBufferVK5UnmapEv(ptr noundef nonnull align 8 dereferenceable(56) %180)
  %181 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 40
  %182 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %183 = load i32, ptr %182, align 16, !tbaa !35
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %181, i64 0, i64 %184
  %186 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %185) #7
  %187 = call noundef ptr @_ZN16ConstantBufferVK3MapIN8Renderer26VertexShaderConstantBufferEEEPT_v(ptr noundef nonnull align 8 dereferenceable(56) %186)
  store ptr %187, ptr %23, align 8, !tbaa !5
  %188 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 11
  %189 = load ptr, ptr %23, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %189, ptr align 16 %188, i64 256, i1 false), !tbaa.struct !65
  %190 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 40
  %191 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %192 = load i32, ptr %191, align 16, !tbaa !35
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %190, i64 0, i64 %193
  %195 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %194) #7
  call void @_ZN16ConstantBufferVK5UnmapEv(ptr noundef nonnull align 8 dereferenceable(56) %195)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %196 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 41
  %197 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %198 = load i32, ptr %197, align 16, !tbaa !35
  %199 = zext i32 %198 to i64
  %200 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %196, i64 0, i64 %199
  %201 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %200) #7
  %202 = call noundef ptr @_ZN16ConstantBufferVK3MapIN8Renderer25PixelShaderConstantBufferEEEPT_v(ptr noundef nonnull align 8 dereferenceable(56) %201)
  store ptr %202, ptr %24, align 8, !tbaa !5
  %203 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 12
  %204 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %204, ptr align 16 %203, i64 32, i1 false), !tbaa.struct !67
  %205 = getelementptr inbounds %class.RendererVK, ptr %25, i32 0, i32 41
  %206 = getelementptr inbounds %class.Renderer, ptr %25, i32 0, i32 9
  %207 = load i32, ptr %206, align 16, !tbaa !35
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %205, i64 0, i64 %208
  %210 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %209) #7
  call void @_ZN16ConstantBufferVK5UnmapEv(ptr noundef nonnull align 8 dereferenceable(56) %210)
  call void @_ZN10RendererVK28UpdateViewPortAndScissorRectEjj(ptr noundef nonnull align 16 dereferenceable(1936) %25, i32 noundef 4096, i32 noundef 4096)
  %211 = load ptr, ptr %25, align 16, !tbaa !68
  %212 = getelementptr inbounds ptr, ptr %211, i64 6
  %213 = load ptr, ptr %212, align 8
  call void %213(ptr noundef nonnull align 16 dereferenceable(1936) %25)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  store i32 0, ptr %8, align 4
  br label %214

214:                                              ; preds = %127, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  %215 = load i32, ptr %8, align 4
  switch i32 %215, label %217 [
    i32 0, label %216
    i32 1, label %216
  ]

216:                                              ; preds = %214, %214, %31
  ret void

217:                                              ; preds = %214
  unreachable
}

declare void @_ZN8Renderer10BeginFrameERK11CameraStatef(ptr noundef nonnull align 16 dereferenceable(832), ptr noundef nonnull align 16 dereferenceable(52), float noundef) unnamed_addr #1

declare i32 @vkWaitForFences(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i64 noundef) #1

declare i32 @vkAcquireNextImageKHR(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE4swapERSF_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) #6 align 2

declare i32 @vkResetFences(ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN10RendererVK16GetCommandBufferEv(ptr noundef nonnull align 16 dereferenceable(1936)) #2 align 2

declare i32 @vkResetCommandBuffer(ptr noundef, i32 noundef) #1

declare i32 @vkBeginCommandBuffer(ptr noundef, ptr noundef) #1

declare void @vkCmdBeginRenderPass(ptr noundef, ptr noundef, i32 noundef) #1

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

declare void @_ZN16ConstantBufferVK5UnmapEv(ptr noundef nonnull align 8 dereferenceable(56)) #1

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 1416}
!12 = !{!"_ZTS10RendererVK", !13, i64 0, !6, i64 832, !6, i64 840, !6, i64 848, !23, i64 856, !6, i64 1376, !18, i64 1384, !18, i64 1388, !6, i64 1392, !6, i64 1400, !6, i64 1408, !6, i64 1416, !14, i64 1424, !24, i64 1432, !26, i64 1456, !27, i64 1460, !28, 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, !29, i64 1624, !18, i64 1648, !6, i64 1656, !7, i64 1664, !7, i64 1680, !7, i64 1696, !7, i64 1712, !30, i64 1728, !7, i64 1736, !7, i64 1752, !7, i64 1768, !7, i64 1784, !31, i64 1848, !33, i64 1880, !18, i64 1912, !18, i64 1916, !25, i64 1920, !25, i64 1928}
!13 = !{!"_ZTS8Renderer", !6, i64 8, !10, i64 16, !14, i64 20, !15, i64 32, !16, i64 96, !17, i64 112, !17, i64 192, !18, i64 272, !19, i64 288, !19, i64 544, !21, i64 800}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS11CameraState", !16, i64 0, !16, i64 16, !16, i64 32, !10, i64 48}
!16 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!17 = !{!"_ZTS7Frustum", !7, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN8Renderer26VertexShaderConstantBufferE", !20, i64 0, !20, i64 64, !20, i64 128, !20, i64 192}
!20 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!21 = !{!"_ZTSN8Renderer25PixelShaderConstantBufferE", !22, i64 0, !22, i64 16}
!22 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!23 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !18, i64 0, !7, i64 4, !18, i64 260, !7, i64 264}
!24 = !{!"_ZTSN3JPH5ArrayIP9VkImage_TNS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTS8VkFormat", !7, i64 0}
!27 = !{!"_ZTS10VkExtent2D", !18, i64 0, !18, i64 4}
!28 = !{!"_ZTSN3JPH5ArrayIP13VkImageView_TNS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!29 = !{!"_ZTSN3JPH5ArrayIP15VkFramebuffer_TNS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!30 = !{!"_ZTSN3JPH3RefI9TextureVKEE", !6, i64 0}
!31 = !{!"_ZTSN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayI8BufferVKNS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEE", !32, i64 0}
!32 = !{!"_ZTSN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !18, i64 16, !18, i64 20, !18, i64 24}
!33 = !{!"_ZTSN3JPH12UnorderedMapIN10RendererVK3KeyENS_5ArrayINS1_6MemoryENS_12STLAllocatorIS4_EEEENS1_9KeyHasherESt8equal_toIS2_EEE", !34, i64 0}
!34 = !{!"_ZTSN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayINS1_6MemoryENS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !18, i64 16, !18, i64 20, !18, i64 24}
!35 = !{!13, !18, i64 272}
!36 = !{!12, !6, i64 1376}
!37 = !{!12, !14, i64 1424}
!38 = !{i8 0, i8 2}
!39 = !{}
!40 = !{!41, !41, i64 0}
!41 = !{!"_ZTS8VkResult", !7, i64 0}
!42 = !{!12, !6, i64 848}
!43 = !{!44, !45, i64 0}
!44 = !{!"_ZTS24VkCommandBufferBeginInfo", !45, i64 0, !6, i64 8, !18, i64 16, !6, i64 24}
!45 = !{!"_ZTS15VkStructureType", !7, i64 0}
!46 = !{!44, !18, i64 16}
!47 = !{!48, !10, i64 0}
!48 = !{!"_ZTS24VkClearDepthStencilValue", !10, i64 0, !18, i64 4}
!49 = !{!48, !18, i64 4}
!50 = !{i64 0, i64 4, !9, i64 4, i64 4, !51}
!51 = !{!18, !18, i64 0}
!52 = !{!53, !45, i64 0}
!53 = !{!"_ZTS21VkRenderPassBeginInfo", !45, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !54, i64 32, !18, i64 48, !6, i64 56}
!54 = !{!"_ZTS8VkRect2D", !55, i64 0, !27, i64 8}
!55 = !{!"_ZTS10VkOffset2D", !18, i64 0, !18, i64 4}
!56 = !{!12, !6, i64 1592}
!57 = !{!53, !6, i64 16}
!58 = !{!12, !6, i64 1616}
!59 = !{!53, !6, i64 24}
!60 = !{!27, !18, i64 0}
!61 = !{!27, !18, i64 4}
!62 = !{i64 0, i64 4, !51, i64 4, i64 4, !51}
!63 = !{!53, !18, i64 48}
!64 = !{!53, !6, i64 56}
!65 = !{i64 0, i64 64, !66, i64 64, i64 64, !66, i64 128, i64 64, !66, i64 192, i64 64, !66}
!66 = !{!7, !7, i64 0}
!67 = !{i64 0, i64 16, !66, i64 16, i64 16, !66}
!68 = !{!69, !69, i64 0}
!69 = !{!"vtable pointer", !8, i64 0}


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

%"class.JPH::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.VkCommandBufferBeginInfo = type { i32, ptr, i32, ptr }
%union.VkClearValue = type { %union.VkClearColorValue }
%union.VkClearColorValue = type { [4 x float] }
%struct.VkRenderPassBeginInfo = type { i32, ptr, ptr, ptr, %struct.VkRect2D, i32, ptr }
%struct.VkRect2D = type { %struct.VkOffset2D, %struct.VkExtent2D }
%struct.VkOffset2D = type { i32, i32 }
%struct.VkExtent2D = type { i32, i32 }
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"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 }

; 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

declare i32 @vkDeviceWaitIdle(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE5beginEv(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 #2 align 2

; 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 #2 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 #2 align 2

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

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

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

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

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

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

declare void @_Z18FatalErrorIfFailed8VkResult(i32 noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10RendererVK10BeginFrameERK11CameraStatef(ptr noundef nonnull align 16 dereferenceable(1936) %0, ptr noundef nonnull align 16 dereferenceable(52) %1, float noundef %2) unnamed_addr #2 align 2 {
  %4 = 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
  %5 = 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
  %6 = alloca %struct.VkCommandBufferBeginInfo, align 8
  %7 = alloca %union.VkClearValue, align 4
  %8 = alloca %struct.VkRenderPassBeginInfo, align 8
  tail call void @_ZN8Renderer10BeginFrameERK11CameraStatef(ptr noundef nonnull align 16 dereferenceable(832) %0, ptr noundef nonnull align 16 dereferenceable(52) %1, float noundef %2)
  %9 = getelementptr inbounds i8, ptr %0, i64 1416
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  br i1 %11, label %119, label %12

12:                                               ; preds = %3
  %13 = getelementptr inbounds i8, ptr %0, i64 272
  %14 = load i32, ptr %13, align 16, !tbaa !33
  %15 = and i32 %14, 1
  %16 = xor i32 %15, 1
  store i32 %16, ptr %13, align 16, !tbaa !33
  %17 = getelementptr inbounds i8, ptr %0, i64 1376
  %18 = load ptr, ptr %17, align 16, !tbaa !34
  %19 = getelementptr inbounds i8, ptr %0, i64 1712
  %20 = zext nneg i32 %16 to i64
  %21 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 %20
  %22 = tail call i32 @vkWaitForFences(ptr noundef %18, i32 noundef 1, ptr noundef nonnull %21, i32 noundef 1, i64 noundef -1)
  %23 = getelementptr inbounds i8, ptr %0, i64 1424
  %24 = load i8, ptr %23, align 16, !tbaa !35, !range !36, !noundef !37
  %25 = trunc nuw i8 %24 to i1
  br i1 %25, label %.thread, label %26

26:                                               ; preds = %12
  %27 = load ptr, ptr %17, align 16, !tbaa !34
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %0, i64 1680
  %30 = load i32, ptr %13, align 16, !tbaa !33
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [2 x ptr], ptr %29, i64 0, i64 %31
  %33 = load ptr, ptr %32, align 8, !tbaa !38
  %34 = getelementptr inbounds i8, ptr %0, i64 1648
  %35 = tail call i32 @vkAcquireNextImageKHR(ptr noundef %27, ptr noundef %28, i64 noundef -1, ptr noundef %33, ptr noundef null, ptr noundef nonnull %34)
  switch i32 %35, label %51 [
    i32 -1000001004, label %.thread
    i32 1000001003, label %.sink.split
  ]

.thread:                                          ; preds = %12, %26
  %36 = load ptr, ptr %17, align 16, !tbaa !34
  %37 = tail call i32 @vkDeviceWaitIdle(ptr noundef %36)
  tail call void @_ZN10RendererVK16DestroySwapChainEv(ptr noundef nonnull align 16 dereferenceable(1936) %0)
  %38 = getelementptr inbounds i8, ptr %0, i64 848
  %39 = load ptr, ptr %38, align 16, !tbaa !39
  tail call void @_ZN10RendererVK15CreateSwapChainEP18VkPhysicalDevice_T(ptr noundef nonnull align 16 dereferenceable(1936) %0, ptr noundef %39)
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = icmp eq ptr %40, null
  br i1 %41, label %119, label %42

42:                                               ; preds = %.thread
  %43 = load ptr, ptr %17, align 16, !tbaa !34
  %44 = getelementptr inbounds i8, ptr %0, i64 1680
  %45 = load i32, ptr %13, align 16, !tbaa !33
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds [2 x ptr], ptr %44, i64 0, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !38
  %49 = getelementptr inbounds i8, ptr %0, i64 1648
  %50 = tail call i32 @vkAcquireNextImageKHR(ptr noundef %43, ptr noundef nonnull %40, i64 noundef -1, ptr noundef %48, ptr noundef null, ptr noundef nonnull %49)
  br label %.sink.split

.sink.split:                                      ; preds = %26, %42
  %.sink = phi i8 [ 0, %42 ], [ 1, %26 ]
  %.0.ph = phi i32 [ %50, %42 ], [ 0, %26 ]
  store i8 %.sink, ptr %23, align 16, !tbaa !35
  br label %51

51:                                               ; preds = %.sink.split, %26
  %.0 = phi i32 [ %35, %26 ], [ %.0.ph, %.sink.split ]
  tail call void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %.0)
  %52 = getelementptr inbounds i8, ptr %0, i64 1848
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE5beginEv(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 %4, ptr noundef nonnull align 8 dereferenceable(28) %52)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #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 %5, ptr noundef nonnull align 8 dereferenceable(28) %52)
  %53 = call noundef zeroext i1 @_ZNK3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %5)
  br i1 %53, label %.lr.ph29, label %._crit_edge30

._crit_edge30:                                    ; preds = %._crit_edge, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  call void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(28) %52)
  %54 = getelementptr inbounds i8, ptr %0, i64 1784
  %55 = load i32, ptr %13, align 16, !tbaa !33
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds [2 x %"class.JPH::UnorderedMap"], ptr %54, i64 0, i64 %56
  call void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE4swapERSF_(ptr noundef nonnull align 8 dereferenceable(28) %52, ptr noundef nonnull align 8 dereferenceable(28) %57) #7
  %58 = load ptr, ptr %17, align 16, !tbaa !34
  %59 = load i32, ptr %13, align 16, !tbaa !33
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 %60
  %62 = call i32 @vkResetFences(ptr noundef %58, i32 noundef 1, ptr noundef nonnull %61)
  %63 = call noundef ptr @_ZN10RendererVK16GetCommandBufferEv(ptr noundef nonnull align 16 dereferenceable(1936) %0)
  %64 = call i32 @vkResetCommandBuffer(ptr noundef %63, i32 noundef 0)
  call void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %64)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %6, i8 0, i64 32, i1 false)
  store i32 42, ptr %6, align 8, !tbaa !40
  %65 = getelementptr inbounds i8, ptr %6, i64 16
  store i32 1, ptr %65, align 8, !tbaa !43
  %66 = call i32 @vkBeginCommandBuffer(ptr noundef %63, ptr noundef nonnull %6)
  call void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %66)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  store float 0.000000e+00, ptr %7, align 4, !tbaa !44
  %.sroa.44.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 4
  store i32 0, ptr %.sroa.44.0..sroa_idx, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 56, i1 false)
  store i32 43, ptr %8, align 8, !tbaa !46
  %67 = getelementptr inbounds i8, ptr %0, i64 1592
  %68 = load ptr, ptr %67, align 8, !tbaa !50
  %69 = getelementptr inbounds i8, ptr %8, i64 16
  store ptr %68, ptr %69, align 8, !tbaa !51
  %70 = getelementptr inbounds i8, ptr %0, i64 1616
  %71 = load ptr, ptr %70, align 16, !tbaa !52
  %72 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %71, ptr %72, align 8, !tbaa !53
  %73 = getelementptr inbounds i8, ptr %8, i64 40
  store i32 4096, ptr %73, align 8, !tbaa !45
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 44
  store i32 4096, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !45
  %74 = getelementptr inbounds i8, ptr %8, i64 48
  store i32 1, ptr %74, align 8, !tbaa !54
  %75 = getelementptr inbounds i8, ptr %8, i64 56
  store ptr %7, ptr %75, align 8, !tbaa !55
  call void @vkCmdBeginRenderPass(ptr noundef %63, ptr noundef nonnull %8, i32 noundef 0)
  %76 = getelementptr inbounds i8, ptr %0, i64 1736
  %77 = load i32, ptr %13, align 16, !tbaa !33
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %76, i64 0, i64 %78
  %80 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %79) #7
  %81 = call noundef ptr @_ZN16ConstantBufferVK3MapIN8Renderer26VertexShaderConstantBufferEEEPT_v(ptr noundef nonnull align 8 dereferenceable(56) %80)
  %82 = getelementptr inbounds i8, ptr %0, i64 288
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %81, ptr noundef nonnull align 16 dereferenceable(256) %82, i64 256, i1 false), !tbaa.struct !56
  %83 = load i32, ptr %13, align 16, !tbaa !33
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %76, i64 0, i64 %84
  %86 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %85) #7
  call void @_ZN16ConstantBufferVK5UnmapEv(ptr noundef nonnull align 8 dereferenceable(56) %86)
  %87 = getelementptr inbounds i8, ptr %0, i64 1752
  %88 = load i32, ptr %13, align 16, !tbaa !33
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %87, i64 0, i64 %89
  %91 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %90) #7
  %92 = call noundef ptr @_ZN16ConstantBufferVK3MapIN8Renderer26VertexShaderConstantBufferEEEPT_v(ptr noundef nonnull align 8 dereferenceable(56) %91)
  %93 = getelementptr inbounds i8, ptr %0, i64 544
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %92, ptr noundef nonnull align 16 dereferenceable(256) %93, i64 256, i1 false), !tbaa.struct !56
  %94 = load i32, ptr %13, align 16, !tbaa !33
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %87, i64 0, i64 %95
  %97 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %96) #7
  call void @_ZN16ConstantBufferVK5UnmapEv(ptr noundef nonnull align 8 dereferenceable(56) %97)
  %98 = getelementptr inbounds i8, ptr %0, i64 1768
  %99 = load i32, ptr %13, align 16, !tbaa !33
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %98, i64 0, i64 %100
  %102 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %101) #7
  %103 = call noundef ptr @_ZN16ConstantBufferVK3MapIN8Renderer25PixelShaderConstantBufferEEEPT_v(ptr noundef nonnull align 8 dereferenceable(56) %102)
  %104 = getelementptr inbounds i8, ptr %0, i64 800
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %103, ptr noundef nonnull align 16 dereferenceable(32) %104, i64 32, i1 false), !tbaa.struct !58
  %105 = load i32, ptr %13, align 16, !tbaa !33
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds [2 x %"class.std::unique_ptr"], ptr %98, i64 0, i64 %106
  %108 = call noundef ptr @_ZNKSt10unique_ptrI16ConstantBufferVKSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %107) #7
  call void @_ZN16ConstantBufferVK5UnmapEv(ptr noundef nonnull align 8 dereferenceable(56) %108)
  call void @_ZN10RendererVK28UpdateViewPortAndScissorRectEjj(ptr noundef nonnull align 16 dereferenceable(1936) %0, i32 noundef 4096, i32 noundef 4096)
  %109 = load ptr, ptr %0, align 16, !tbaa !59
  %110 = getelementptr inbounds i8, ptr %109, i64 48
  %111 = load ptr, ptr %110, align 8
  call void %111(ptr noundef nonnull align 16 dereferenceable(1936) %0)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %119

.lr.ph29:                                         ; preds = %51, %._crit_edge
  %112 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
  %113 = getelementptr inbounds i8, ptr %112, i64 16
  %114 = call noundef ptr @_ZN3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %113)
  %115 = call noundef ptr @_ZN3JPH5ArrayI8BufferVKNS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %113)
  %.not26 = icmp eq ptr %114, %115
  br i1 %.not26, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph29
  %116 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
  %117 = call noundef zeroext i1 @_ZNK3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %5)
  br i1 %117, label %.lr.ph29, label %._crit_edge30

.lr.ph:                                           ; preds = %.lr.ph29, %.lr.ph
  %.02327 = phi ptr [ %118, %.lr.ph ], [ %114, %.lr.ph29 ]
  call void @_ZN10RendererVK18FreeBufferInternalER8BufferVK(ptr noundef nonnull align 16 dereferenceable(1936) %0, ptr noundef nonnull align 8 dereferenceable(48) %.02327)
  %118 = getelementptr inbounds i8, ptr %.02327, i64 48
  %.not = icmp eq ptr %118, %115
  br i1 %.not, label %._crit_edge, label %.lr.ph

119:                                              ; preds = %._crit_edge30, %.thread, %3
  ret void
}

declare void @_ZN8Renderer10BeginFrameERK11CameraStatef(ptr noundef nonnull align 16 dereferenceable(832), ptr noundef nonnull align 16 dereferenceable(52), float noundef) unnamed_addr #1

declare i32 @vkWaitForFences(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

declare i32 @vkAcquireNextImageKHR(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIN10RendererVK3KeyESt4pairIS2_NS_5ArrayI8BufferVKNS_12STLAllocatorIS5_EEEEENS_18UnorderedMapDetailIS2_S8_EENS1_9KeyHasherESt8equal_toIS2_EE4swapERSF_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #6 align 2

declare i32 @vkResetFences(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN10RendererVK16GetCommandBufferEv(ptr noundef nonnull align 16 dereferenceable(1936)) local_unnamed_addr #2 align 2

declare i32 @vkResetCommandBuffer(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @vkBeginCommandBuffer(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @vkCmdBeginRenderPass(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare void @_ZN16ConstantBufferVK5UnmapEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

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

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

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


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