; LLVM IR from khushmmehta/Scorch-V :: src/ScorchVkEngine/Abstractions (VulkanMemoryAllocator)

; 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"

%struct.VkMemoryRequirements = type { i64, i64, i32 }
%struct.VkBufferCreateInfo = type { i32, ptr, i32, i64, i32, i32, i32, ptr }
%struct.VmaAllocator_T = type <{ i8, [3 x i8], i32, i8, i8, i8, i8, i8, i8, [2 x i8], ptr, ptr, i8, [7 x i8], %struct.VkAllocationCallbacks, %struct.VmaDeviceMemoryCallbacks, %class.VmaAllocationObjectAllocator, i32, [4 x i8], %struct.VkPhysicalDeviceProperties, %struct.VkPhysicalDeviceMemoryProperties, [32 x ptr], [32 x %class.VmaDedicatedAllocationList], %struct.VmaCurrentBudgetData, %"struct.std::atomic", [4 x i8], i64, ptr, %"struct.std::atomic", %"struct.std::atomic", [32 x i32], %class.VmaRWMutex, %class.VmaIntrusiveLinkedList.14, i32, [4 x i8], %struct.VmaVulkanFunctions, i32, [4 x i8] }>
%struct.VkAllocationCallbacks = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.VmaDeviceMemoryCallbacks = type { ptr, ptr, ptr }
%class.VmaAllocationObjectAllocator = type { %class.VmaMutex, %class.VmaPoolAllocator.11 }
%class.VmaMutex = type { %"class.std::mutex" }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%class.VmaPoolAllocator.11 = type { ptr, i32, %class.VmaVector.12 }
%class.VmaVector.12 = type { %struct.VmaStlAllocator.13, ptr, i64, i64 }
%struct.VmaStlAllocator.13 = type { ptr }
%struct.VkPhysicalDeviceProperties = type { i32, i32, i32, i32, i32, [256 x i8], [16 x i8], %struct.VkPhysicalDeviceLimits, %struct.VkPhysicalDeviceSparseProperties }
%struct.VkPhysicalDeviceLimits = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [3 x i32], i32, [3 x i32], i32, i32, i32, i32, i32, float, float, i32, [2 x i32], [2 x float], i32, i64, i64, i64, i64, i32, i32, i32, i32, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, [2 x float], [2 x float], float, float, i32, i32, i64, i64, i64 }
%struct.VkPhysicalDeviceSparseProperties = type { i32, i32, i32, i32, i32 }
%struct.VkPhysicalDeviceMemoryProperties = type { i32, [32 x %struct.VkMemoryType], i32, [16 x %struct.VkMemoryHeap] }
%struct.VkMemoryType = type { i32, i32 }
%struct.VkMemoryHeap = type { i64, i32 }
%class.VmaDedicatedAllocationList = type { i8, %class.VmaRWMutex, %class.VmaIntrusiveLinkedList }
%class.VmaIntrusiveLinkedList = type { ptr, ptr, i64 }
%struct.VmaCurrentBudgetData = type { [16 x %"struct.std::atomic"], [16 x %"struct.std::atomic"], [16 x %"struct.std::atomic.9"], [16 x %"struct.std::atomic.9"], %"struct.std::atomic", %class.VmaRWMutex, [16 x i64], [16 x i64], [16 x i64] }
%"struct.std::atomic.9" = type { %"struct.std::__atomic_base.10" }
%"struct.std::__atomic_base.10" = type { i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%class.VmaRWMutex = type { %"class.std::shared_mutex" }
%"class.std::shared_mutex" = type { %"class.std::__shared_mutex_pthread" }
%"class.std::__shared_mutex_pthread" = type { %union.pthread_rwlock_t }
%union.pthread_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%class.VmaIntrusiveLinkedList.14 = type { ptr, ptr, i64 }
%struct.VmaVulkanFunctions = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.VmaAllocationCreateInfo = type { i32, i32, i32, i32, i32, ptr, ptr, float }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.359 = external hidden unnamed_addr constant [82 x i8], align 1
@__PRETTY_FUNCTION__.vmaCreateBuffer = external hidden unnamed_addr constant [205 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [149 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15VmaAllocation_T20InitBufferImageUsageEj(ptr noundef nonnull align 8 dereferenceable(84), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK14VmaAllocator_T27GetBufferMemoryRequirementsEP10VkBuffer_TR20VkMemoryRequirementsRbS4_(ptr noundef nonnull align 8 dereferenceable(5916), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14VmaAllocator_T14AllocateMemoryERK20VkMemoryRequirementsbbP10VkBuffer_TP9VkImage_TjRK23VmaAllocationCreateInfo20VmaSuballocationTypemPP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i64 noundef, ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916), i64 noundef, ptr noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14VmaAllocator_T16BindBufferMemoryEP15VmaAllocation_TmP10VkBuffer_TPKv(ptr noundef nonnull align 8 dereferenceable(5916), ptr noundef, i64 noundef, ptr noundef, ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @vmaCreateBuffer(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #4 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.VkMemoryRequirements, align 8
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %33

21:                                               ; preds = %6
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %33

24:                                               ; preds = %21
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %33

27:                                               ; preds = %24
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %33

30:                                               ; preds = %27
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br label %33

33:                                               ; preds = %30, %27, %24, %21, %6
  %34 = phi i1 [ false, %27 ], [ false, %24 ], [ false, %21 ], [ false, %6 ], [ %32, %30 ]
  br i1 %34, label %35, label %36

35:                                               ; preds = %33
  br label %38

36:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.359, ptr noundef @.str.2, i32 noundef 17146, ptr noundef @__PRETTY_FUNCTION__.vmaCreateBuffer) #5
  unreachable

37:                                               ; No predecessors!
  br label %38

38:                                               ; preds = %37, %35
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %39, i32 0, i32 3
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = icmp eq i64 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %38
  store i32 -3, ptr %7, align 4
  br label %157

44:                                               ; preds = %38
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %45, i32 0, i32 4
  %47 = load i32, ptr %46, align 8, !tbaa !15
  %48 = and i32 %47, 131072
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %56

50:                                               ; preds = %44
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.VmaAllocator_T, ptr %51, i32 0, i32 7
  %53 = load i8, ptr %52, align 4, !tbaa !16, !range !42, !noundef !43
  %54 = trunc i8 %53 to i1
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.360, ptr noundef @.str.2, i32 noundef 17155, ptr noundef @__PRETTY_FUNCTION__.vmaCreateBuffer) #5
  unreachable

56:                                               ; preds = %50, %44
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %57, align 8, !tbaa !5
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %58, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916) %59)
  %61 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %60, i32 0, i32 14
  %62 = load ptr, ptr %61, align 8, !tbaa !44
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.VmaAllocator_T, ptr %63, i32 0, i32 10
  %65 = load ptr, ptr %64, align 8, !tbaa !45
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = call noundef ptr @_ZNK14VmaAllocator_T22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(5916) %67)
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = call noundef i32 %62(ptr noundef %65, ptr noundef %66, ptr noundef %68, ptr noundef %69)
  store i32 %70, ptr %14, align 4, !tbaa !46
  %71 = load i32, ptr %14, align 4, !tbaa !46
  %72 = icmp sge i32 %71, 0
  br i1 %72, label %73, label %154

73:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  store i8 0, ptr %16, align 1, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  store i8 0, ptr %17, align 1, !tbaa !48
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  call void @_ZNK14VmaAllocator_T27GetBufferMemoryRequirementsEP10VkBuffer_TR20VkMemoryRequirementsRbS4_(ptr noundef nonnull align 8 dereferenceable(5916) %74, ptr noundef %76, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load i8, ptr %16, align 1, !tbaa !48, !range !42, !noundef !43
  %79 = trunc i8 %78 to i1
  %80 = load i8, ptr %17, align 1, !tbaa !48, !range !42, !noundef !43
  %81 = trunc i8 %80 to i1
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %84, i32 0, i32 4
  %86 = load i32, ptr %85, align 8, !tbaa !15
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = call noundef i32 @_ZN14VmaAllocator_T14AllocateMemoryERK20VkMemoryRequirementsbbP10VkBuffer_TP9VkImage_TjRK23VmaAllocationCreateInfo20VmaSuballocationTypemPP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916) %77, ptr noundef nonnull align 8 dereferenceable(24) %15, i1 noundef zeroext %79, i1 noundef zeroext %81, ptr noundef %83, ptr noundef null, i32 noundef %86, ptr noundef nonnull align 8 dereferenceable(48) %87, i32 noundef 2, i64 noundef 1, ptr noundef %88)
  store i32 %89, ptr %14, align 4, !tbaa !46
  %90 = load i32, ptr %14, align 4, !tbaa !46
  %91 = icmp sge i32 %90, 0
  br i1 %91, label %92, label %139

92:                                               ; preds = %73
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.VmaAllocationCreateInfo, ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 8, !tbaa !49
  %96 = and i32 %95, 128
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %105

98:                                               ; preds = %92
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = call noundef i32 @_ZN14VmaAllocator_T16BindBufferMemoryEP15VmaAllocation_TmP10VkBuffer_TPKv(ptr noundef nonnull align 8 dereferenceable(5916) %99, ptr noundef %101, i64 noundef 0, ptr noundef %103, ptr noundef null)
  store i32 %104, ptr %14, align 4, !tbaa !46
  br label %105

105:                                              ; preds = %98, %92
  %106 = load i32, ptr %14, align 4, !tbaa !46
  %107 = icmp sge i32 %106, 0
  br i1 %107, label %108, label %122

108:                                              ; preds = %105
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %111, i32 0, i32 4
  %113 = load i32, ptr %112, align 8, !tbaa !15
  call void @_ZN15VmaAllocation_T20InitBufferImageUsageEj(ptr noundef nonnull align 8 dereferenceable(84) %110, i32 noundef %113)
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %121

116:                                              ; preds = %108
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN14VmaAllocator_T17GetAllocationInfoEP15VmaAllocation_TP17VmaAllocationInfo(ptr noundef nonnull align 8 dereferenceable(5916) %117, ptr noundef %119, ptr noundef %120)
  br label %121

121:                                              ; preds = %116, %108
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %153

122:                                              ; preds = %105
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916) %123, i64 noundef 1, ptr noundef %124)
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %125, align 8, !tbaa !5
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916) %126)
  %128 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %127, i32 0, i32 15
  %129 = load ptr, ptr %128, align 8, !tbaa !52
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.VmaAllocator_T, ptr %130, i32 0, i32 10
  %132 = load ptr, ptr %131, align 8, !tbaa !45
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = call noundef ptr @_ZNK14VmaAllocator_T22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(5916) %135)
  call void %129(ptr noundef %132, ptr noundef %134, ptr noundef %136)
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %137, align 8, !tbaa !5
  %138 = load i32, ptr %14, align 4, !tbaa !46
  store i32 %138, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %153

139:                                              ; preds = %73
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916) %140)
  %142 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %141, i32 0, i32 15
  %143 = load ptr, ptr %142, align 8, !tbaa !52
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.VmaAllocator_T, ptr %144, i32 0, i32 10
  %146 = load ptr, ptr %145, align 8, !tbaa !45
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = call noundef ptr @_ZNK14VmaAllocator_T22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(5916) %149)
  call void %143(ptr noundef %146, ptr noundef %148, ptr noundef %150)
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %151, align 8, !tbaa !5
  %152 = load i32, ptr %14, align 4, !tbaa !46
  store i32 %152, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %153

153:                                              ; preds = %139, %122, %121
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %156

154:                                              ; preds = %56
  %155 = load i32, ptr %14, align 4, !tbaa !46
  store i32 %155, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %156

156:                                              ; preds = %154, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %157

157:                                              ; preds = %156, %43
  %158 = load i32, ptr %7, align 4
  ret i32 %158
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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, !13, i64 24}
!10 = !{!"_ZTS18VkBufferCreateInfo", !11, i64 0, !6, i64 8, !12, i64 16, !13, i64 24, !12, i64 32, !14, i64 36, !12, i64 40, !6, i64 48}
!11 = !{!"_ZTS15VkStructureType", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTS13VkSharingMode", !7, i64 0}
!15 = !{!10, !12, i64 32}
!16 = !{!17, !18, i64 12}
!17 = !{!"_ZTS14VmaAllocator_T", !18, i64 0, !12, i64 4, !18, i64 8, !18, i64 9, !18, i64 10, !18, i64 11, !18, i64 12, !18, i64 13, !6, i64 16, !6, i64 24, !18, i64 32, !19, i64 40, !20, i64 88, !21, i64 112, !12, i64 200, !28, i64 208, !33, i64 1032, !7, i64 1552, !7, i64 1808, !34, i64 4624, !35, i64 5456, !13, i64 5464, !6, i64 5472, !35, i64 5480, !35, i64 5484, !7, i64 5488, !37, i64 5616, !40, i64 5672, !12, i64 5696, !41, i64 5704, !12, i64 5912}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTS21VkAllocationCallbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!20 = !{!"_ZTS24VmaDeviceMemoryCallbacks", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTS28VmaAllocationObjectAllocator", !22, i64 0, !25, i64 40}
!22 = !{!"_ZTS8VmaMutex", !23, i64 0}
!23 = !{!"_ZTSSt5mutex", !24, i64 0}
!24 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!25 = !{!"_ZTS16VmaPoolAllocatorI15VmaAllocation_TE", !6, i64 0, !12, i64 8, !26, i64 16}
!26 = !{!"_ZTS9VmaVectorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockE15VmaStlAllocatorIS3_EE", !27, i64 0, !6, i64 8, !13, i64 16, !13, i64 24}
!27 = !{!"_ZTS15VmaStlAllocatorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockEE", !6, i64 0}
!28 = !{!"_ZTS26VkPhysicalDeviceProperties", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !29, i64 16, !7, i64 20, !7, i64 276, !30, i64 296, !32, i64 800}
!29 = !{!"_ZTS20VkPhysicalDeviceType", !7, i64 0}
!30 = !{!"_ZTS22VkPhysicalDeviceLimits", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !13, i64 48, !13, i64 56, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !12, i64 208, !12, i64 212, !12, i64 216, !7, i64 220, !12, i64 232, !7, i64 236, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !31, i64 268, !31, i64 272, !12, i64 276, !7, i64 280, !7, i64 288, !12, i64 296, !13, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !12, i64 336, !12, i64 340, !12, i64 344, !12, i64 348, !31, i64 352, !31, i64 356, !12, i64 360, !12, i64 364, !12, i64 368, !12, i64 372, !12, i64 376, !12, i64 380, !12, i64 384, !12, i64 388, !12, i64 392, !12, i64 396, !12, i64 400, !12, i64 404, !12, i64 408, !12, i64 412, !12, i64 416, !12, i64 420, !31, i64 424, !12, i64 428, !12, i64 432, !12, i64 436, !12, i64 440, !7, i64 444, !7, i64 452, !31, i64 460, !31, i64 464, !12, i64 468, !12, i64 472, !13, i64 480, !13, i64 488, !13, i64 496}
!31 = !{!"float", !7, i64 0}
!32 = !{!"_ZTS32VkPhysicalDeviceSparseProperties", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!33 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !12, i64 0, !7, i64 4, !12, i64 260, !7, i64 264}
!34 = !{!"_ZTS20VmaCurrentBudgetData", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 256, !35, i64 384, !37, i64 392, !7, i64 448, !7, i64 576, !7, i64 704}
!35 = !{!"_ZTSSt6atomicIjE", !36, i64 0}
!36 = !{!"_ZTSSt13__atomic_baseIjE", !12, i64 0}
!37 = !{!"_ZTS10VmaRWMutex", !38, i64 0}
!38 = !{!"_ZTSSt12shared_mutex", !39, i64 0}
!39 = !{!"_ZTSSt22__shared_mutex_pthread", !7, i64 0}
!40 = !{!"_ZTS22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE", !6, i64 0, !6, i64 8, !13, i64 16}
!41 = !{!"_ZTS18VmaVulkanFunctions", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = !{!41, !6, i64 112}
!45 = !{!17, !6, i64 16}
!46 = !{!47, !47, i64 0}
!47 = !{!"_ZTS8VkResult", !7, i64 0}
!48 = !{!18, !18, i64 0}
!49 = !{!50, !12, i64 0}
!50 = !{!"_ZTS23VmaAllocationCreateInfo", !12, i64 0, !51, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !6, i64 24, !6, i64 32, !31, i64 40}
!51 = !{!"_ZTS14VmaMemoryUsage", !7, i64 0}
!52 = !{!41, !6, i64 120}


; 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"

%struct.VkMemoryRequirements = type { i64, i64, i32 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.359 = external hidden unnamed_addr constant [82 x i8], align 1
@__PRETTY_FUNCTION__.vmaCreateBuffer = external hidden unnamed_addr constant [205 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [149 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr 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) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15VmaAllocation_T20InitBufferImageUsageEj(ptr noundef nonnull align 8 dereferenceable(84), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK14VmaAllocator_T27GetBufferMemoryRequirementsEP10VkBuffer_TR20VkMemoryRequirementsRbS4_(ptr noundef nonnull align 8 dereferenceable(5916), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14VmaAllocator_T14AllocateMemoryERK20VkMemoryRequirementsbbP10VkBuffer_TP9VkImage_TjRK23VmaAllocationCreateInfo20VmaSuballocationTypemPP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916), i64 noundef, ptr noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14VmaAllocator_T16BindBufferMemoryEP15VmaAllocation_TmP10VkBuffer_TPKv(ptr noundef nonnull align 8 dereferenceable(5916), ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local range(i32 -2147483648, 1) i32 @vmaCreateBuffer(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #4 {
  %7 = alloca %struct.VkMemoryRequirements, align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = insertelement <4 x ptr> poison, ptr %0, i64 0
  %11 = insertelement <4 x ptr> %10, ptr %1, i64 1
  %12 = insertelement <4 x ptr> %11, ptr %2, i64 2
  %13 = insertelement <4 x ptr> %12, ptr %3, i64 3
  %14 = icmp ne ptr %4, null
  %15 = icmp eq <4 x ptr> %13, zeroinitializer
  %16 = bitcast <4 x i1> %15 to i4
  %17 = icmp eq i4 %16, 0
  %op.rdx = and i1 %17, %14
  br i1 %op.rdx, label %18, label %.critedge

.critedge:                                        ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.359, ptr noundef nonnull @.str.2, i32 noundef 17146, ptr noundef nonnull @__PRETTY_FUNCTION__.vmaCreateBuffer) #5
  unreachable

18:                                               ; preds = %6
  %19 = getelementptr inbounds i8, ptr %1, i64 24
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %78, label %22

22:                                               ; preds = %18
  %23 = getelementptr inbounds i8, ptr %1, i64 32
  %24 = load i32, ptr %23, align 8, !tbaa !14
  %25 = and i32 %24, 131072
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %31, label %26

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 12
  %28 = load i8, ptr %27, align 4, !tbaa !15, !range !41, !noundef !42
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  tail call void @__assert_fail(ptr noundef nonnull @.str.360, ptr noundef nonnull @.str.2, i32 noundef 17155, ptr noundef nonnull @__PRETTY_FUNCTION__.vmaCreateBuffer) #5
  unreachable

31:                                               ; preds = %26, %22
  store ptr null, ptr %3, align 8, !tbaa !43
  store ptr null, ptr %4, align 8, !tbaa !43
  %32 = tail call noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %33 = getelementptr inbounds i8, ptr %32, i64 112
  %34 = load ptr, ptr %33, align 8, !tbaa !44
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  %36 = load ptr, ptr %35, align 8, !tbaa !45
  %37 = tail call noundef ptr @_ZNK14VmaAllocator_T22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %38 = tail call noundef i32 %34(ptr noundef %36, ptr noundef nonnull %1, ptr noundef %37, ptr noundef nonnull %3)
  %39 = icmp sgt i32 %38, -1
  br i1 %39, label %40, label %78

40:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  store i8 0, ptr %8, align 1, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  store i8 0, ptr %9, align 1, !tbaa !46
  %41 = load ptr, ptr %3, align 8, !tbaa !43
  call void @_ZNK14VmaAllocator_T27GetBufferMemoryRequirementsEP10VkBuffer_TR20VkMemoryRequirementsRbS4_(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %41, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
  %42 = load i8, ptr %8, align 1, !tbaa !46, !range !41, !noundef !42
  %43 = trunc nuw i8 %42 to i1
  %44 = load i8, ptr %9, align 1, !tbaa !46, !range !41, !noundef !42
  %45 = trunc nuw i8 %44 to i1
  %46 = load ptr, ptr %3, align 8, !tbaa !43
  %47 = load i32, ptr %23, align 8, !tbaa !14
  %48 = call noundef i32 @_ZN14VmaAllocator_T14AllocateMemoryERK20VkMemoryRequirementsbbP10VkBuffer_TP9VkImage_TjRK23VmaAllocationCreateInfo20VmaSuballocationTypemPP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef nonnull align 8 dereferenceable(24) %7, i1 noundef zeroext %43, i1 noundef zeroext %45, ptr noundef %46, ptr noundef null, i32 noundef %47, ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef 2, i64 noundef 1, ptr noundef nonnull %4)
  %49 = icmp sgt i32 %48, -1
  br i1 %49, label %50, label %70

50:                                               ; preds = %40
  %51 = load i32, ptr %2, align 8, !tbaa !47
  %52 = and i32 %51, 128
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %.thread

54:                                               ; preds = %50
  %55 = load ptr, ptr %4, align 8, !tbaa !43
  %56 = load ptr, ptr %3, align 8, !tbaa !43
  %57 = call noundef i32 @_ZN14VmaAllocator_T16BindBufferMemoryEP15VmaAllocation_TmP10VkBuffer_TPKv(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %55, i64 noundef 0, ptr noundef %56, ptr noundef null)
  %58 = icmp sgt i32 %57, -1
  br i1 %58, label %.thread, label %63

.thread:                                          ; preds = %50, %54
  %59 = load ptr, ptr %4, align 8, !tbaa !43
  %60 = load i32, ptr %23, align 8, !tbaa !14
  call void @_ZN15VmaAllocation_T20InitBufferImageUsageEj(ptr noundef nonnull align 8 dereferenceable(84) %59, i32 noundef %60)
  %.not67 = icmp eq ptr %5, null
  br i1 %.not67, label %77, label %61

61:                                               ; preds = %.thread
  %62 = load ptr, ptr %4, align 8, !tbaa !43
  call void @_ZN14VmaAllocator_T17GetAllocationInfoEP15VmaAllocation_TP17VmaAllocationInfo(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %62, ptr noundef nonnull %5)
  br label %77

63:                                               ; preds = %54
  call void @_ZN14VmaAllocator_T10FreeMemoryEmPKP15VmaAllocation_T(ptr noundef nonnull align 8 dereferenceable(5916) %0, i64 noundef 1, ptr noundef nonnull %4)
  store ptr null, ptr %4, align 8, !tbaa !43
  %64 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %65 = getelementptr inbounds i8, ptr %64, i64 120
  %66 = load ptr, ptr %65, align 8, !tbaa !50
  %67 = load ptr, ptr %35, align 8, !tbaa !45
  %68 = load ptr, ptr %3, align 8, !tbaa !43
  %69 = call noundef ptr @_ZNK14VmaAllocator_T22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  call void %66(ptr noundef %67, ptr noundef %68, ptr noundef %69)
  store ptr null, ptr %3, align 8, !tbaa !43
  br label %77

70:                                               ; preds = %40
  %71 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %72 = getelementptr inbounds i8, ptr %71, i64 120
  %73 = load ptr, ptr %72, align 8, !tbaa !50
  %74 = load ptr, ptr %35, align 8, !tbaa !45
  %75 = load ptr, ptr %3, align 8, !tbaa !43
  %76 = call noundef ptr @_ZNK14VmaAllocator_T22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  call void %73(ptr noundef %74, ptr noundef %75, ptr noundef %76)
  store ptr null, ptr %3, align 8, !tbaa !43
  br label %77

77:                                               ; preds = %.thread, %61, %70, %63
  %.058 = phi i32 [ %57, %63 ], [ %48, %70 ], [ 0, %61 ], [ 0, %.thread ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %78

78:                                               ; preds = %77, %31, %18
  %.2 = phi i32 [ -3, %18 ], [ %.058, %77 ], [ %38, %31 ]
  ret i32 %.2
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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, !12, i64 24}
!6 = !{!"_ZTS18VkBufferCreateInfo", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 24, !11, i64 32, !13, i64 36, !11, i64 40, !10, i64 48}
!7 = !{!"_ZTS15VkStructureType", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_ZTS13VkSharingMode", !8, i64 0}
!14 = !{!6, !11, i64 32}
!15 = !{!16, !17, i64 12}
!16 = !{!"_ZTS14VmaAllocator_T", !17, i64 0, !11, i64 4, !17, i64 8, !17, i64 9, !17, i64 10, !17, i64 11, !17, i64 12, !17, i64 13, !10, i64 16, !10, i64 24, !17, i64 32, !18, i64 40, !19, i64 88, !20, i64 112, !11, i64 200, !27, i64 208, !32, i64 1032, !8, i64 1552, !8, i64 1808, !33, i64 4624, !34, i64 5456, !12, i64 5464, !10, i64 5472, !34, i64 5480, !34, i64 5484, !8, i64 5488, !36, i64 5616, !39, i64 5672, !11, i64 5696, !40, i64 5704, !11, i64 5912}
!17 = !{!"bool", !8, i64 0}
!18 = !{!"_ZTS21VkAllocationCallbacks", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!19 = !{!"_ZTS24VmaDeviceMemoryCallbacks", !10, i64 0, !10, i64 8, !10, i64 16}
!20 = !{!"_ZTS28VmaAllocationObjectAllocator", !21, i64 0, !24, i64 40}
!21 = !{!"_ZTS8VmaMutex", !22, i64 0}
!22 = !{!"_ZTSSt5mutex", !23, i64 0}
!23 = !{!"_ZTSSt12__mutex_base", !8, i64 0}
!24 = !{!"_ZTS16VmaPoolAllocatorI15VmaAllocation_TE", !10, i64 0, !11, i64 8, !25, i64 16}
!25 = !{!"_ZTS9VmaVectorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockE15VmaStlAllocatorIS3_EE", !26, i64 0, !10, i64 8, !12, i64 16, !12, i64 24}
!26 = !{!"_ZTS15VmaStlAllocatorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockEE", !10, i64 0}
!27 = !{!"_ZTS26VkPhysicalDeviceProperties", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !28, i64 16, !8, i64 20, !8, i64 276, !29, i64 296, !31, i64 800}
!28 = !{!"_ZTS20VkPhysicalDeviceType", !8, i64 0}
!29 = !{!"_ZTS22VkPhysicalDeviceLimits", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !12, i64 48, !12, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !8, i64 220, !11, i64 232, !8, i64 236, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !30, i64 268, !30, i64 272, !11, i64 276, !8, i64 280, !8, i64 288, !11, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !11, i64 336, !11, i64 340, !11, i64 344, !11, i64 348, !30, i64 352, !30, i64 356, !11, i64 360, !11, i64 364, !11, i64 368, !11, i64 372, !11, i64 376, !11, i64 380, !11, i64 384, !11, i64 388, !11, i64 392, !11, i64 396, !11, i64 400, !11, i64 404, !11, i64 408, !11, i64 412, !11, i64 416, !11, i64 420, !30, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !8, i64 444, !8, i64 452, !30, i64 460, !30, i64 464, !11, i64 468, !11, i64 472, !12, i64 480, !12, i64 488, !12, i64 496}
!30 = !{!"float", !8, i64 0}
!31 = !{!"_ZTS32VkPhysicalDeviceSparseProperties", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!32 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !11, i64 0, !8, i64 4, !11, i64 260, !8, i64 264}
!33 = !{!"_ZTS20VmaCurrentBudgetData", !8, i64 0, !8, i64 64, !8, i64 128, !8, i64 256, !34, i64 384, !36, i64 392, !8, i64 448, !8, i64 576, !8, i64 704}
!34 = !{!"_ZTSSt6atomicIjE", !35, i64 0}
!35 = !{!"_ZTSSt13__atomic_baseIjE", !11, i64 0}
!36 = !{!"_ZTS10VmaRWMutex", !37, i64 0}
!37 = !{!"_ZTSSt12shared_mutex", !38, i64 0}
!38 = !{!"_ZTSSt22__shared_mutex_pthread", !8, i64 0}
!39 = !{!"_ZTS22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE", !10, i64 0, !10, i64 8, !12, i64 16}
!40 = !{!"_ZTS18VmaVulkanFunctions", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!10, !10, i64 0}
!44 = !{!40, !10, i64 112}
!45 = !{!16, !10, i64 16}
!46 = !{!17, !17, i64 0}
!47 = !{!48, !11, i64 0}
!48 = !{!"_ZTS23VmaAllocationCreateInfo", !11, i64 0, !49, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !10, i64 24, !10, i64 32, !30, i64 40}
!49 = !{!"_ZTS14VmaMemoryUsage", !8, i64 0}
!50 = !{!40, !10, i64 120}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass