; 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.VkAllocationCallbacks = type { ptr, ptr, ptr, ptr, ptr, 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.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.VmaAllocatorCreateInfo = type { i32, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, i32, ptr }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@_ZL27VmaEmptyAllocationCallbacks = external hidden global %struct.VkAllocationCallbacks, align 8
@.str.194 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo = external hidden unnamed_addr constant [63 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [65 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: 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) #2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %1) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  %12 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 0
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %13, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = and i32 %15, 1
  %17 = icmp eq i32 %16, 0
  %18 = zext i1 %17 to i8
  store i8 %18, ptr %12, align 8, !tbaa !13
  %19 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 2
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %20, i32 0, i32 9
  %22 = load i32, ptr %21, align 8, !tbaa !39
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %28

24:                                               ; preds = %2
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %25, i32 0, i32 9
  %27 = load i32, ptr %26, align 8, !tbaa !39
  br label %29

28:                                               ; preds = %2
  br label %29

29:                                               ; preds = %28, %24
  %30 = phi i32 [ %27, %24 ], [ 4194304, %28 ]
  store i32 %30, ptr %19, align 4, !tbaa !40
  %31 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 3
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %32, i32 0, i32 0
  %34 = load i32, ptr %33, align 8, !tbaa !9
  %35 = and i32 %34, 2
  %36 = icmp ne i32 %35, 0
  %37 = zext i1 %36 to i8
  store i8 %37, ptr %31, align 8, !tbaa !41
  %38 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 4
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !9
  %42 = and i32 %41, 4
  %43 = icmp ne i32 %42, 0
  %44 = zext i1 %43 to i8
  store i8 %44, ptr %38, align 1, !tbaa !42
  %45 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 5
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !9
  %49 = and i32 %48, 8
  %50 = icmp ne i32 %49, 0
  %51 = zext i1 %50 to i8
  store i8 %51, ptr %45, align 2, !tbaa !43
  %52 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 6
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 8, !tbaa !9
  %56 = and i32 %55, 16
  %57 = icmp ne i32 %56, 0
  %58 = zext i1 %57 to i8
  store i8 %58, ptr %52, align 1, !tbaa !44
  %59 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 7
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !9
  %63 = and i32 %62, 32
  %64 = icmp ne i32 %63, 0
  %65 = zext i1 %64 to i8
  store i8 %65, ptr %59, align 4, !tbaa !45
  %66 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 8
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !9
  %70 = and i32 %69, 64
  %71 = icmp ne i32 %70, 0
  %72 = zext i1 %71 to i8
  store i8 %72, ptr %66, align 1, !tbaa !46
  %73 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 10
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %74, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !47
  store ptr %76, ptr %73, align 8, !tbaa !48
  %77 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 11
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %78, i32 0, i32 8
  %80 = load ptr, ptr %79, align 8, !tbaa !49
  store ptr %80, ptr %77, align 8, !tbaa !50
  %81 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 12
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !51
  %85 = icmp ne ptr %84, null
  %86 = zext i1 %85 to i8
  store i8 %86, ptr %81, align 8, !tbaa !52
  %87 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 14
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !51
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %96

92:                                               ; preds = %29
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !51
  br label %97

96:                                               ; preds = %29
  br label %97

97:                                               ; preds = %96, %92
  %98 = phi ptr [ %95, %92 ], [ @_ZL27VmaEmptyAllocationCallbacks, %96 ]
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %87, ptr align 8 %98, i64 48, i1 false), !tbaa.struct !53
  %99 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 15
  %100 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 16
  %101 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 14
  call void @_ZN28VmaAllocationObjectAllocatorC2EPK21VkAllocationCallbacks(ptr noundef nonnull align 8 dereferenceable(88) %100, ptr noundef %101)
  %102 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 17
  store i32 0, ptr %102, align 8, !tbaa !54
  %103 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 19
  %104 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 20
  %105 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 22
  %106 = getelementptr inbounds [32 x %class.VmaDedicatedAllocationList], ptr %105, i32 0, i32 0
  %107 = getelementptr inbounds %class.VmaDedicatedAllocationList, ptr %106, i64 32
  br label %108

108:                                              ; preds = %110, %97
  %109 = phi ptr [ %106, %97 ], [ %111, %110 ]
  invoke void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %109)
          to label %110 unwind label %135

110:                                              ; preds = %108
  %111 = getelementptr inbounds %class.VmaDedicatedAllocationList, ptr %109, i64 1
  %112 = icmp eq ptr %111, %107
  br i1 %112, label %113, label %108

113:                                              ; preds = %110
  %114 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 23
  invoke void @_ZN20VmaCurrentBudgetDataC1Ev(ptr noundef nonnull align 8 dereferenceable(832) %114)
          to label %115 unwind label %145

115:                                              ; preds = %113
  %116 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 24
  call void @_ZNSt6atomicIjEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %116, i32 noundef 0) #7
  %117 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 26
  store i64 0, ptr %117, align 8, !tbaa !55
  %118 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 27
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %119, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !56
  store ptr %121, ptr %118, align 8, !tbaa !57
  %122 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 28
  %123 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 29
  call void @_ZNSt6atomicIjEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %123, i32 noundef -1) #7
  %124 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 31
  call void @_ZN10VmaRWMutexC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %124) #7
  %125 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 32
  call void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %125) #7
  %126 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 33
  store i32 0, ptr %126, align 8, !tbaa !58
  %127 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 35
  %128 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 36
  store i32 -1, ptr %128, align 8, !tbaa !59
  %129 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 2
  %130 = load i32, ptr %129, align 4, !tbaa !40
  %131 = icmp uge i32 %130, 4198400
  br i1 %131, label %132, label %149

132:                                              ; preds = %115
  %133 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 3
  store i8 0, ptr %133, align 8, !tbaa !41
  %134 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 4
  store i8 0, ptr %134, align 1, !tbaa !42
  br label %149

135:                                              ; preds = %108
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %5, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %6, align 4
  %139 = icmp eq ptr %106, %109
  br i1 %139, label %144, label %140

140:                                              ; preds = %140, %135
  %141 = phi ptr [ %109, %135 ], [ %142, %140 ]
  %142 = getelementptr inbounds %class.VmaDedicatedAllocationList, ptr %141, i64 -1
  call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %142) #7
  %143 = icmp eq ptr %142, %106
  br i1 %143, label %144, label %140

144:                                              ; preds = %140, %135
  br label %401

145:                                              ; preds = %113
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %5, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %6, align 4
  br label %393

149:                                              ; preds = %132, %115
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %150, i32 0, i32 1
  %152 = load ptr, ptr %151, align 8, !tbaa !56
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %164

154:                                              ; preds = %149
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %155, i32 0, i32 2
  %157 = load ptr, ptr %156, align 8, !tbaa !47
  %158 = icmp ne ptr %157, null
  br i1 %158, label %159, label %164

159:                                              ; preds = %154
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %160, i32 0, i32 8
  %162 = load ptr, ptr %161, align 8, !tbaa !49
  %163 = icmp ne ptr %162, null
  br label %164

164:                                              ; preds = %159, %154, %149
  %165 = phi i1 [ false, %154 ], [ false, %149 ], [ %163, %159 ]
  br i1 %165, label %166, label %167

166:                                              ; preds = %164
  br label %169

167:                                              ; preds = %164
  call void @__assert_fail(ptr noundef @.str.194, ptr noundef @.str.2, i32 noundef 14101, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo) #8
  unreachable

168:                                              ; No predecessors!
  br label %169

169:                                              ; preds = %168, %166
  %170 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 2
  %171 = load i32, ptr %170, align 4, !tbaa !40
  %172 = icmp ult i32 %171, 4198400
  br i1 %172, label %173, label %174

173:                                              ; preds = %169
  br label %174

174:                                              ; preds = %173, %169
  %175 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 15
  call void @llvm.memset.p0.i64(ptr align 8 %175, i8 0, i64 24, i1 false)
  %176 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 19
  call void @llvm.memset.p0.i64(ptr align 8 %176, i8 0, i64 824, i1 false)
  %177 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 20
  call void @llvm.memset.p0.i64(ptr align 8 %177, i8 0, i64 520, i1 false)
  %178 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 21
  call void @llvm.memset.p0.i64(ptr align 8 %178, i8 0, i64 256, i1 false)
  %179 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 35
  call void @llvm.memset.p0.i64(ptr align 8 %179, i8 0, i64 208, i1 false)
  %180 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 30
  call void @llvm.memset.p0.i64(ptr align 8 %180, i8 0, i64 128, i1 false)
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %181, i32 0, i32 5
  %183 = load ptr, ptr %182, align 8, !tbaa !60
  %184 = icmp ne ptr %183, null
  br i1 %184, label %185, label %207

185:                                              ; preds = %174
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %186, i32 0, i32 5
  %188 = load ptr, ptr %187, align 8, !tbaa !60
  %189 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %188, i32 0, i32 2
  %190 = load ptr, ptr %189, align 8, !tbaa !61
  %191 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 15
  %192 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %191, i32 0, i32 2
  store ptr %190, ptr %192, align 8, !tbaa !62
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %193, i32 0, i32 5
  %195 = load ptr, ptr %194, align 8, !tbaa !60
  %196 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %195, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !63
  %198 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 15
  %199 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %198, i32 0, i32 0
  store ptr %197, ptr %199, align 8, !tbaa !64
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %200, i32 0, i32 5
  %202 = load ptr, ptr %201, align 8, !tbaa !60
  %203 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %202, i32 0, i32 1
  %204 = load ptr, ptr %203, align 8, !tbaa !65
  %205 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 15
  %206 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %205, i32 0, i32 1
  store ptr %204, ptr %206, align 8, !tbaa !66
  br label %207

207:                                              ; preds = %185, %174
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %208, i32 0, i32 7
  %210 = load ptr, ptr %209, align 8, !tbaa !67
  invoke void @_ZN14VmaAllocator_T21ImportVulkanFunctionsEPK18VmaVulkanFunctions(ptr noundef nonnull align 8 dereferenceable(5916) %11, ptr noundef %210)
          to label %211 unwind label %230

211:                                              ; preds = %207
  %212 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 35
  %213 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %212, i32 0, i32 2
  %214 = load ptr, ptr %213, align 8, !tbaa !68
  %215 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 27
  %216 = load ptr, ptr %215, align 8, !tbaa !57
  %217 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 19
  invoke void %214(ptr noundef %216, ptr noundef %217)
          to label %218 unwind label %230

218:                                              ; preds = %211
  %219 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 35
  %220 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %219, i32 0, i32 3
  %221 = load ptr, ptr %220, align 8, !tbaa !69
  %222 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 27
  %223 = load ptr, ptr %222, align 8, !tbaa !57
  %224 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 20
  invoke void %221(ptr noundef %223, ptr noundef %224)
          to label %225 unwind label %230

225:                                              ; preds = %218
  %226 = invoke noundef zeroext i1 @_Z9VmaIsPow2IiEbT_(i32 noundef 1)
          to label %227 unwind label %230

227:                                              ; preds = %225
  br i1 %226, label %228, label %229

228:                                              ; preds = %227
  br label %235

229:                                              ; preds = %227
  call void @__assert_fail(ptr noundef @.str.195, ptr noundef @.str.2, i32 noundef 14178, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo) #8
  unreachable

230:                                              ; preds = %281, %271, %251, %241, %235, %225, %218, %211, %207
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %5, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %6, align 4
  br label %392

234:                                              ; No predecessors!
  br label %235

235:                                              ; preds = %234, %228
  %236 = invoke noundef zeroext i1 @_Z9VmaIsPow2IiEbT_(i32 noundef 1)
          to label %237 unwind label %230

237:                                              ; preds = %235
  br i1 %236, label %238, label %239

238:                                              ; preds = %237
  br label %241

239:                                              ; preds = %237
  call void @__assert_fail(ptr noundef @.str.195, ptr noundef @.str.2, i32 noundef 14179, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo) #8
  unreachable

240:                                              ; No predecessors!
  br label %241

241:                                              ; preds = %240, %238
  %242 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 19
  %243 = getelementptr inbounds %struct.VkPhysicalDeviceProperties, ptr %242, i32 0, i32 7
  %244 = getelementptr inbounds %struct.VkPhysicalDeviceLimits, ptr %243, i32 0, i32 11
  %245 = load i64, ptr %244, align 8, !tbaa !70
  %246 = invoke noundef zeroext i1 @_Z9VmaIsPow2ImEbT_(i64 noundef %245)
          to label %247 unwind label %230

247:                                              ; preds = %241
  br i1 %246, label %248, label %249

248:                                              ; preds = %247
  br label %251

249:                                              ; preds = %247
  call void @__assert_fail(ptr noundef @.str.196, ptr noundef @.str.2, i32 noundef 14180, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo) #8
  unreachable

250:                                              ; No predecessors!
  br label %251

251:                                              ; preds = %250, %248
  %252 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 19
  %253 = getelementptr inbounds %struct.VkPhysicalDeviceProperties, ptr %252, i32 0, i32 7
  %254 = getelementptr inbounds %struct.VkPhysicalDeviceLimits, ptr %253, i32 0, i32 105
  %255 = load i64, ptr %254, align 8, !tbaa !71
  %256 = invoke noundef zeroext i1 @_Z9VmaIsPow2ImEbT_(i64 noundef %255)
          to label %257 unwind label %230

257:                                              ; preds = %251
  br i1 %256, label %258, label %259

258:                                              ; preds = %257
  br label %261

259:                                              ; preds = %257
  call void @__assert_fail(ptr noundef @.str.197, ptr noundef @.str.2, i32 noundef 14181, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo) #8
  unreachable

260:                                              ; No predecessors!
  br label %261

261:                                              ; preds = %260, %258
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %262, i32 0, i32 3
  %264 = load i64, ptr %263, align 8, !tbaa !72
  %265 = icmp ne i64 %264, 0
  br i1 %265, label %266, label %270

266:                                              ; preds = %261
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %267, i32 0, i32 3
  %269 = load i64, ptr %268, align 8, !tbaa !72
  br label %271

270:                                              ; preds = %261
  br label %271

271:                                              ; preds = %270, %266
  %272 = phi i64 [ %269, %266 ], [ 268435456, %270 ]
  %273 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 26
  store i64 %272, ptr %273, align 8, !tbaa !55
  %274 = invoke noundef i32 @_ZNK14VmaAllocator_T29CalculateGlobalMemoryTypeBitsEv(ptr noundef nonnull align 8 dereferenceable(5916) %11)
          to label %275 unwind label %230

275:                                              ; preds = %271
  %276 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 36
  store i32 %274, ptr %276, align 8, !tbaa !59
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %277, i32 0, i32 10
  %279 = load ptr, ptr %278, align 8, !tbaa !73
  %280 = icmp ne ptr %279, null
  br i1 %280, label %281, label %291

281:                                              ; preds = %275
  %282 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 30
  %283 = getelementptr inbounds [32 x i32], ptr %282, i64 0, i64 0
  %284 = load ptr, ptr %4, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %284, i32 0, i32 10
  %286 = load ptr, ptr %285, align 8, !tbaa !73
  %287 = invoke noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %11)
          to label %288 unwind label %230

288:                                              ; preds = %281
  %289 = zext i32 %287 to i64
  %290 = mul i64 4, %289
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %283, ptr align 4 %286, i64 %290, i1 false)
  br label %291

291:                                              ; preds = %288, %275
  %292 = load ptr, ptr %4, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %292, i32 0, i32 6
  %294 = load ptr, ptr %293, align 8, !tbaa !74
  %295 = icmp ne ptr %294, null
  br i1 %295, label %296, label %346

296:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !75
  br label %297

297:                                              ; preds = %342, %296
  %298 = load i32, ptr %7, align 4, !tbaa !75
  %299 = invoke noundef i32 @_ZNK14VmaAllocator_T18GetMemoryHeapCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %11)
          to label %300 unwind label %303

300:                                              ; preds = %297
  %301 = icmp ult i32 %298, %299
  br i1 %301, label %307, label %302

302:                                              ; preds = %300
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %345

303:                                              ; preds = %297
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %5, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %392

307:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %308 = load ptr, ptr %4, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %308, i32 0, i32 6
  %310 = load ptr, ptr %309, align 8, !tbaa !74
  %311 = load i32, ptr %7, align 4, !tbaa !75
  %312 = zext i32 %311 to i64
  %313 = getelementptr inbounds i64, ptr %310, i64 %312
  %314 = load i64, ptr %313, align 8, !tbaa !76
  store i64 %314, ptr %8, align 8, !tbaa !76
  %315 = load i64, ptr %8, align 8, !tbaa !76
  %316 = icmp ne i64 %315, -1
  br i1 %316, label %317, label %341

317:                                              ; preds = %307
  %318 = load i32, ptr %7, align 4, !tbaa !75
  %319 = shl i32 1, %318
  %320 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 17
  %321 = load i32, ptr %320, align 8, !tbaa !54
  %322 = or i32 %321, %319
  store i32 %322, ptr %320, align 8, !tbaa !54
  %323 = load i64, ptr %8, align 8, !tbaa !76
  %324 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 20
  %325 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryProperties, ptr %324, i32 0, i32 3
  %326 = load i32, ptr %7, align 4, !tbaa !75
  %327 = zext i32 %326 to i64
  %328 = getelementptr inbounds [16 x %struct.VkMemoryHeap], ptr %325, i64 0, i64 %327
  %329 = getelementptr inbounds %struct.VkMemoryHeap, ptr %328, i32 0, i32 0
  %330 = load i64, ptr %329, align 8, !tbaa !77
  %331 = icmp ult i64 %323, %330
  br i1 %331, label %332, label %340

332:                                              ; preds = %317
  %333 = load i64, ptr %8, align 8, !tbaa !76
  %334 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 20
  %335 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryProperties, ptr %334, i32 0, i32 3
  %336 = load i32, ptr %7, align 4, !tbaa !75
  %337 = zext i32 %336 to i64
  %338 = getelementptr inbounds [16 x %struct.VkMemoryHeap], ptr %335, i64 0, i64 %337
  %339 = getelementptr inbounds %struct.VkMemoryHeap, ptr %338, i32 0, i32 0
  store i64 %333, ptr %339, align 8, !tbaa !77
  br label %340

340:                                              ; preds = %332, %317
  br label %341

341:                                              ; preds = %340, %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %342

342:                                              ; preds = %341
  %343 = load i32, ptr %7, align 4, !tbaa !75
  %344 = add i32 %343, 1
  store i32 %344, ptr %7, align 4, !tbaa !75
  br label %297, !llvm.loop !79

345:                                              ; preds = %302
  br label %346

346:                                              ; preds = %345, %291
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !75
  br label %347

347:                                              ; preds = %387, %346
  %348 = load i32, ptr %9, align 4, !tbaa !75
  %349 = invoke noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %11)
          to label %350 unwind label %353

350:                                              ; preds = %347
  %351 = icmp ult i32 %348, %349
  br i1 %351, label %357, label %352

352:                                              ; preds = %350
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %391

353:                                              ; preds = %347
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %5, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %6, align 4
  br label %390

357:                                              ; preds = %350
  %358 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 36
  %359 = load i32, ptr %358, align 8, !tbaa !59
  %360 = load i32, ptr %9, align 4, !tbaa !75
  %361 = shl i32 1, %360
  %362 = and i32 %359, %361
  %363 = icmp ne i32 %362, 0
  br i1 %363, label %364, label %386

364:                                              ; preds = %357
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %365 = load i32, ptr %9, align 4, !tbaa !75
  %366 = invoke noundef i64 @_ZN14VmaAllocator_T22CalcPreferredBlockSizeEj(ptr noundef nonnull align 8 dereferenceable(5916) %11, i32 noundef %365)
          to label %367 unwind label %382

367:                                              ; preds = %364
  store i64 %366, ptr %10, align 8, !tbaa !76
  %368 = invoke noundef ptr @_ZL11VmaAllocateI14VmaBlockVectorEPT_P14VmaAllocator_T(ptr noundef %11)
          to label %369 unwind label %382

369:                                              ; preds = %367
  %370 = load i32, ptr %9, align 4, !tbaa !75
  %371 = load i64, ptr %10, align 8, !tbaa !76
  %372 = invoke noundef i64 @_ZNK14VmaAllocator_T25GetBufferImageGranularityEv(ptr noundef nonnull align 8 dereferenceable(5916) %11)
          to label %373 unwind label %382

373:                                              ; preds = %369
  %374 = load i32, ptr %9, align 4, !tbaa !75
  %375 = invoke noundef i64 @_ZNK14VmaAllocator_T25GetMemoryTypeMinAlignmentEj(ptr noundef nonnull align 8 dereferenceable(5916) %11, i32 noundef %374)
          to label %376 unwind label %382

376:                                              ; preds = %373
  invoke void @_ZN14VmaBlockVectorC1EP14VmaAllocator_TP9VmaPool_TjmmmmbjfmPv(ptr noundef nonnull align 8 dereferenceable(181) %368, ptr noundef %11, ptr noundef null, i32 noundef %370, i64 noundef %371, i64 noundef 0, i64 noundef -1, i64 noundef %372, i1 noundef zeroext false, i32 noundef 0, float noundef 5.000000e-01, i64 noundef %375, ptr noundef null)
          to label %377 unwind label %382

377:                                              ; preds = %376
  %378 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 21
  %379 = load i32, ptr %9, align 4, !tbaa !75
  %380 = zext i32 %379 to i64
  %381 = getelementptr inbounds [32 x ptr], ptr %378, i64 0, i64 %380
  store ptr %368, ptr %381, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %386

382:                                              ; preds = %376, %373, %369, %367, %364
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %5, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %390

386:                                              ; preds = %377, %357
  br label %387

387:                                              ; preds = %386
  %388 = load i32, ptr %9, align 4, !tbaa !75
  %389 = add i32 %388, 1
  store i32 %389, ptr %9, align 4, !tbaa !75
  br label %347, !llvm.loop !81

390:                                              ; preds = %382, %353
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %392

391:                                              ; preds = %352
  ret void

392:                                              ; preds = %390, %303, %230
  call void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %125) #7
  br label %393

393:                                              ; preds = %392, %145
  %394 = getelementptr inbounds [32 x %class.VmaDedicatedAllocationList], ptr %105, i32 0, i32 0
  %395 = getelementptr inbounds %class.VmaDedicatedAllocationList, ptr %394, i64 32
  br label %396

396:                                              ; preds = %396, %393
  %397 = phi ptr [ %395, %393 ], [ %398, %396 ]
  %398 = getelementptr inbounds %class.VmaDedicatedAllocationList, ptr %397, i64 -1
  call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %398) #7
  %399 = icmp eq ptr %398, %394
  br i1 %399, label %400, label %396

400:                                              ; preds = %396
  br label %401

401:                                              ; preds = %400, %144
  call void @_ZN28VmaAllocationObjectAllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %100) #7
  br label %402

402:                                              ; preds = %401
  %403 = load ptr, ptr %5, align 8
  %404 = load i32, ptr %6, align 4
  %405 = insertvalue { ptr, i32 } poison, ptr %403, 0
  %406 = insertvalue { ptr, i32 } %405, i32 %404, 1
  resume { ptr, i32 } %406
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN28VmaAllocationObjectAllocatorC2EPK21VkAllocationCallbacks(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6atomicIjEC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z9VmaIsPow2IiEbT_(i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z9VmaIsPow2ImEbT_(i64 noundef) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL11VmaAllocateI14VmaBlockVectorEPT_P14VmaAllocator_T(ptr noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

declare void @_ZN26VmaDedicatedAllocationListD1Ev(ptr)

declare void @_ZN20VmaCurrentBudgetDataC1Ev(ptr)

declare void @_ZN14VmaBlockVectorC1EP14VmaAllocator_TP9VmaPool_TjmmmmbjfmPv(ptr, ptr, ptr, i32, i64, i64, i64, i64, i1, i32, float, i64, ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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, !11, i64 0}
!10 = !{!"_ZTS22VmaAllocatorCreateInfo", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !6, i64 80}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS14VmaAllocator_T", !15, i64 0, !11, i64 4, !15, i64 8, !15, i64 9, !15, i64 10, !15, i64 11, !15, i64 12, !15, i64 13, !6, i64 16, !6, i64 24, !15, i64 32, !16, i64 40, !17, i64 88, !18, i64 112, !11, i64 200, !25, i64 208, !30, i64 1032, !7, i64 1552, !7, i64 1808, !31, i64 4624, !32, i64 5456, !12, i64 5464, !6, i64 5472, !32, i64 5480, !32, i64 5484, !7, i64 5488, !34, i64 5616, !37, i64 5672, !11, i64 5696, !38, i64 5704, !11, i64 5912}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTS21VkAllocationCallbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!"_ZTS24VmaDeviceMemoryCallbacks", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTS28VmaAllocationObjectAllocator", !19, i64 0, !22, i64 40}
!19 = !{!"_ZTS8VmaMutex", !20, i64 0}
!20 = !{!"_ZTSSt5mutex", !21, i64 0}
!21 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!22 = !{!"_ZTS16VmaPoolAllocatorI15VmaAllocation_TE", !6, i64 0, !11, i64 8, !23, i64 16}
!23 = !{!"_ZTS9VmaVectorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockE15VmaStlAllocatorIS3_EE", !24, i64 0, !6, i64 8, !12, i64 16, !12, i64 24}
!24 = !{!"_ZTS15VmaStlAllocatorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockEE", !6, i64 0}
!25 = !{!"_ZTS26VkPhysicalDeviceProperties", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !26, i64 16, !7, i64 20, !7, i64 276, !27, i64 296, !29, i64 800}
!26 = !{!"_ZTS20VkPhysicalDeviceType", !7, i64 0}
!27 = !{!"_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, !7, i64 220, !11, i64 232, !7, i64 236, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !28, i64 268, !28, i64 272, !11, i64 276, !7, i64 280, !7, 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, !28, i64 352, !28, 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, !28, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !7, i64 444, !7, i64 452, !28, i64 460, !28, i64 464, !11, i64 468, !11, i64 472, !12, i64 480, !12, i64 488, !12, i64 496}
!28 = !{!"float", !7, i64 0}
!29 = !{!"_ZTS32VkPhysicalDeviceSparseProperties", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!30 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !11, i64 0, !7, i64 4, !11, i64 260, !7, i64 264}
!31 = !{!"_ZTS20VmaCurrentBudgetData", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 256, !32, i64 384, !34, i64 392, !7, i64 448, !7, i64 576, !7, i64 704}
!32 = !{!"_ZTSSt6atomicIjE", !33, i64 0}
!33 = !{!"_ZTSSt13__atomic_baseIjE", !11, i64 0}
!34 = !{!"_ZTS10VmaRWMutex", !35, i64 0}
!35 = !{!"_ZTSSt12shared_mutex", !36, i64 0}
!36 = !{!"_ZTSSt22__shared_mutex_pthread", !7, i64 0}
!37 = !{!"_ZTS22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE", !6, i64 0, !6, i64 8, !12, i64 16}
!38 = !{!"_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}
!39 = !{!10, !11, i64 72}
!40 = !{!14, !11, i64 4}
!41 = !{!14, !15, i64 8}
!42 = !{!14, !15, i64 9}
!43 = !{!14, !15, i64 10}
!44 = !{!14, !15, i64 11}
!45 = !{!14, !15, i64 12}
!46 = !{!14, !15, i64 13}
!47 = !{!10, !6, i64 16}
!48 = !{!14, !6, i64 16}
!49 = !{!10, !6, i64 64}
!50 = !{!14, !6, i64 24}
!51 = !{!10, !6, i64 32}
!52 = !{!14, !15, i64 32}
!53 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 8, !5}
!54 = !{!14, !11, i64 200}
!55 = !{!14, !12, i64 5464}
!56 = !{!10, !6, i64 8}
!57 = !{!14, !6, i64 5472}
!58 = !{!14, !11, i64 5696}
!59 = !{!14, !11, i64 5912}
!60 = !{!10, !6, i64 40}
!61 = !{!17, !6, i64 16}
!62 = !{!14, !6, i64 104}
!63 = !{!17, !6, i64 0}
!64 = !{!14, !6, i64 88}
!65 = !{!17, !6, i64 8}
!66 = !{!14, !6, i64 96}
!67 = !{!10, !6, i64 56}
!68 = !{!14, !6, i64 5720}
!69 = !{!14, !6, i64 5728}
!70 = !{!14, !12, i64 552}
!71 = !{!14, !12, i64 1000}
!72 = !{!10, !12, i64 24}
!73 = !{!10, !6, i64 80}
!74 = !{!10, !6, i64 48}
!75 = !{!11, !11, i64 0}
!76 = !{!12, !12, i64 0}
!77 = !{!78, !12, i64 0}
!78 = !{!"_ZTS12VkMemoryHeap", !12, i64 0, !11, i64 8}
!79 = distinct !{!79, !80}
!80 = !{!"llvm.loop.mustprogress"}
!81 = distinct !{!81, !80}


; 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.VkAllocationCallbacks = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.VkMemoryHeap = type { i64, i32 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@_ZL27VmaEmptyAllocationCallbacks = external hidden local_unnamed_addr global %struct.VkAllocationCallbacks, align 8
@.str.194 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo = external hidden unnamed_addr constant [63 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [65 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10VmaRWMutexC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr nocapture noundef readonly %1) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = load i32, ptr %1, align 8, !tbaa !5
  %4 = trunc i32 %3 to i8
  %5 = and i8 %4, 1
  %6 = xor i8 %5, 1
  store i8 %6, ptr %0, align 8, !tbaa !12
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = getelementptr inbounds i8, ptr %1, i64 72
  %9 = load i32, ptr %8, align 8, !tbaa !38
  %.not = icmp eq i32 %9, 0
  %spec.select = select i1 %.not, i32 4194304, i32 %9
  store i32 %spec.select, ptr %7, align 4, !tbaa !39
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = lshr i8 %4, 1
  %12 = and i8 %11, 1
  store i8 %12, ptr %10, align 8, !tbaa !40
  %13 = getelementptr inbounds i8, ptr %0, i64 9
  %14 = lshr i8 %4, 2
  %15 = and i8 %14, 1
  store i8 %15, ptr %13, align 1, !tbaa !41
  %16 = getelementptr inbounds i8, ptr %0, i64 10
  %17 = lshr i8 %4, 3
  %18 = and i8 %17, 1
  store i8 %18, ptr %16, align 2, !tbaa !42
  %19 = getelementptr inbounds i8, ptr %0, i64 11
  %20 = lshr i8 %4, 4
  %21 = and i8 %20, 1
  store i8 %21, ptr %19, align 1, !tbaa !43
  %22 = getelementptr inbounds i8, ptr %0, i64 12
  %23 = lshr i8 %4, 5
  %24 = and i8 %23, 1
  store i8 %24, ptr %22, align 4, !tbaa !44
  %25 = getelementptr inbounds i8, ptr %0, i64 13
  %26 = lshr i8 %4, 6
  %27 = and i8 %26, 1
  store i8 %27, ptr %25, align 1, !tbaa !45
  %28 = getelementptr inbounds i8, ptr %0, i64 16
  %29 = getelementptr inbounds i8, ptr %1, i64 16
  %30 = load ptr, ptr %29, align 8, !tbaa !46
  store ptr %30, ptr %28, align 8, !tbaa !47
  %31 = getelementptr inbounds i8, ptr %0, i64 24
  %32 = getelementptr inbounds i8, ptr %1, i64 64
  %33 = load ptr, ptr %32, align 8, !tbaa !48
  store ptr %33, ptr %31, align 8, !tbaa !49
  %34 = getelementptr inbounds i8, ptr %0, i64 32
  %35 = getelementptr inbounds i8, ptr %1, i64 32
  %36 = load ptr, ptr %35, align 8, !tbaa !50
  %37 = icmp ne ptr %36, null
  %38 = zext i1 %37 to i8
  store i8 %38, ptr %34, align 8, !tbaa !51
  %39 = getelementptr inbounds i8, ptr %0, i64 40
  %.not59 = icmp eq ptr %36, null
  %40 = select i1 %.not59, ptr @_ZL27VmaEmptyAllocationCallbacks, ptr %36
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %39, ptr noundef nonnull align 8 dereferenceable(48) %40, i64 48, i1 false), !tbaa.struct !52
  %41 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZN28VmaAllocationObjectAllocatorC2EPK21VkAllocationCallbacks(ptr noundef nonnull align 8 dereferenceable(88) %41, ptr noundef nonnull %39)
  %42 = getelementptr inbounds i8, ptr %0, i64 200
  store i32 0, ptr %42, align 8, !tbaa !54
  %.ptr = getelementptr inbounds i8, ptr %0, i64 1808
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr)
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 1896
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %0, i64 1984
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %0, i64 2072
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %0, i64 2160
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.4)
  %.ptr.5 = getelementptr inbounds i8, ptr %0, i64 2248
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.5)
  %.ptr.6 = getelementptr inbounds i8, ptr %0, i64 2336
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.6)
  %.ptr.7 = getelementptr inbounds i8, ptr %0, i64 2424
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.7)
  %.ptr.8 = getelementptr inbounds i8, ptr %0, i64 2512
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.8)
  %.ptr.9 = getelementptr inbounds i8, ptr %0, i64 2600
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.9)
  %.ptr.10 = getelementptr inbounds i8, ptr %0, i64 2688
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.10)
  %.ptr.11 = getelementptr inbounds i8, ptr %0, i64 2776
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.11)
  %.ptr.12 = getelementptr inbounds i8, ptr %0, i64 2864
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.12)
  %.ptr.13 = getelementptr inbounds i8, ptr %0, i64 2952
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.13)
  %.ptr.14 = getelementptr inbounds i8, ptr %0, i64 3040
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.14)
  %.ptr.15 = getelementptr inbounds i8, ptr %0, i64 3128
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.15)
  %.ptr.16 = getelementptr inbounds i8, ptr %0, i64 3216
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.16)
  %.ptr.17 = getelementptr inbounds i8, ptr %0, i64 3304
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.17)
  %.ptr.18 = getelementptr inbounds i8, ptr %0, i64 3392
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.18)
  %.ptr.19 = getelementptr inbounds i8, ptr %0, i64 3480
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.19)
  %.ptr.20 = getelementptr inbounds i8, ptr %0, i64 3568
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.20)
  %.ptr.21 = getelementptr inbounds i8, ptr %0, i64 3656
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.21)
  %.ptr.22 = getelementptr inbounds i8, ptr %0, i64 3744
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.22)
  %.ptr.23 = getelementptr inbounds i8, ptr %0, i64 3832
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.23)
  %.ptr.24 = getelementptr inbounds i8, ptr %0, i64 3920
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.24)
  %.ptr.25 = getelementptr inbounds i8, ptr %0, i64 4008
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.25)
  %.ptr.26 = getelementptr inbounds i8, ptr %0, i64 4096
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.26)
  %.ptr.27 = getelementptr inbounds i8, ptr %0, i64 4184
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.27)
  %.ptr.28 = getelementptr inbounds i8, ptr %0, i64 4272
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.28)
  %.ptr.29 = getelementptr inbounds i8, ptr %0, i64 4360
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.29)
  %.ptr.30 = getelementptr inbounds i8, ptr %0, i64 4448
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.30)
  %.ptr.31 = getelementptr inbounds i8, ptr %0, i64 4536
  tail call void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.31)
  %43 = getelementptr inbounds i8, ptr %0, i64 4624
  invoke void @_ZN20VmaCurrentBudgetDataC1Ev(ptr noundef nonnull align 8 dereferenceable(832) %43)
          to label %44 unwind label %58

44:                                               ; preds = %2
  %45 = getelementptr inbounds i8, ptr %0, i64 5456
  tail call void @_ZNSt6atomicIjEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %45, i32 noundef 0) #6
  %46 = getelementptr inbounds i8, ptr %0, i64 5464
  store i64 0, ptr %46, align 8, !tbaa !55
  %47 = getelementptr inbounds i8, ptr %0, i64 5472
  %48 = getelementptr inbounds i8, ptr %1, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !56
  store ptr %49, ptr %47, align 8, !tbaa !57
  %50 = getelementptr inbounds i8, ptr %0, i64 5484
  tail call void @_ZNSt6atomicIjEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %50, i32 noundef -1) #6
  %51 = getelementptr inbounds i8, ptr %0, i64 5616
  tail call void @_ZN10VmaRWMutexC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %51) #6
  %52 = getelementptr inbounds i8, ptr %0, i64 5672
  tail call void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #6
  %53 = getelementptr inbounds i8, ptr %0, i64 5696
  store i32 0, ptr %53, align 8, !tbaa !58
  %54 = getelementptr inbounds i8, ptr %0, i64 5912
  store i32 -1, ptr %54, align 8, !tbaa !59
  %55 = load i32, ptr %7, align 4, !tbaa !39
  %56 = icmp ugt i32 %55, 4198399
  br i1 %56, label %57, label %60

57:                                               ; preds = %44
  store i8 0, ptr %10, align 8, !tbaa !40
  store i8 0, ptr %13, align 1, !tbaa !41
  br label %60

58:                                               ; preds = %2
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %164

60:                                               ; preds = %57, %44
  %61 = load ptr, ptr %48, align 8, !tbaa !56
  %.not62 = icmp eq ptr %61, null
  br i1 %.not62, label %.critedge, label %62

62:                                               ; preds = %60
  %63 = load ptr, ptr %29, align 8, !tbaa !46
  %.not63 = icmp eq ptr %63, null
  br i1 %.not63, label %.critedge, label %64

64:                                               ; preds = %62
  %65 = load ptr, ptr %32, align 8, !tbaa !48
  %.not64 = icmp eq ptr %65, null
  br i1 %.not64, label %.critedge, label %66

.critedge:                                        ; preds = %62, %60, %64
  tail call void @__assert_fail(ptr noundef nonnull @.str.194, ptr noundef nonnull @.str.2, i32 noundef 14101, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo) #7
  unreachable

66:                                               ; preds = %64
  %67 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %67, i8 0, i64 24, i1 false)
  %68 = getelementptr inbounds i8, ptr %0, i64 208
  %69 = getelementptr inbounds i8, ptr %0, i64 1032
  %70 = getelementptr inbounds i8, ptr %0, i64 1552
  %71 = getelementptr inbounds i8, ptr %0, i64 5704
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(208) %71, i8 0, i64 208, i1 false)
  %72 = getelementptr inbounds i8, ptr %0, i64 5488
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %72, i8 0, i64 128, i1 false)
  %73 = getelementptr inbounds i8, ptr %1, i64 40
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1600) %68, i8 0, i64 1600, i1 false)
  %74 = load ptr, ptr %73, align 8, !tbaa !60
  %.not65 = icmp eq ptr %74, null
  br i1 %.not65, label %80, label %75

75:                                               ; preds = %66
  %76 = getelementptr inbounds i8, ptr %74, i64 16
  %77 = load ptr, ptr %76, align 8, !tbaa !61
  %78 = getelementptr inbounds i8, ptr %0, i64 104
  store ptr %77, ptr %78, align 8, !tbaa !62
  %79 = load <2 x ptr>, ptr %74, align 8, !tbaa !53
  store <2 x ptr> %79, ptr %67, align 8, !tbaa !53
  br label %80

80:                                               ; preds = %75, %66
  %81 = getelementptr inbounds i8, ptr %1, i64 56
  %82 = load ptr, ptr %81, align 8, !tbaa !63
  invoke void @_ZN14VmaAllocator_T21ImportVulkanFunctionsEPK18VmaVulkanFunctions(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %82)
          to label %83 unwind label %94

83:                                               ; preds = %80
  %84 = getelementptr inbounds i8, ptr %0, i64 5720
  %85 = load ptr, ptr %84, align 8, !tbaa !64
  %86 = load ptr, ptr %47, align 8, !tbaa !57
  invoke void %85(ptr noundef %86, ptr noundef nonnull %68)
          to label %87 unwind label %94

87:                                               ; preds = %83
  %88 = getelementptr inbounds i8, ptr %0, i64 5728
  %89 = load ptr, ptr %88, align 8, !tbaa !65
  %90 = load ptr, ptr %47, align 8, !tbaa !57
  invoke void %89(ptr noundef %90, ptr noundef nonnull %69)
          to label %91 unwind label %94

91:                                               ; preds = %87
  %92 = tail call noundef zeroext i1 @_Z9VmaIsPow2IiEbT_(i32 noundef 1)
  br i1 %92, label %96, label %93

93:                                               ; preds = %91
  tail call void @__assert_fail(ptr noundef nonnull @.str.195, ptr noundef nonnull @.str.2, i32 noundef 14178, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo) #7
  unreachable

94:                                               ; preds = %109, %87, %83, %80
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %163

96:                                               ; preds = %91
  %97 = tail call noundef zeroext i1 @_Z9VmaIsPow2IiEbT_(i32 noundef 1)
  br i1 %97, label %99, label %98

98:                                               ; preds = %96
  tail call void @__assert_fail(ptr noundef nonnull @.str.195, ptr noundef nonnull @.str.2, i32 noundef 14179, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo) #7
  unreachable

99:                                               ; preds = %96
  %100 = getelementptr inbounds i8, ptr %0, i64 552
  %101 = load i64, ptr %100, align 8, !tbaa !66
  %102 = tail call noundef zeroext i1 @_Z9VmaIsPow2ImEbT_(i64 noundef %101)
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  tail call void @__assert_fail(ptr noundef nonnull @.str.196, ptr noundef nonnull @.str.2, i32 noundef 14180, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo) #7
  unreachable

104:                                              ; preds = %99
  %105 = getelementptr inbounds i8, ptr %0, i64 1000
  %106 = load i64, ptr %105, align 8, !tbaa !67
  %107 = tail call noundef zeroext i1 @_Z9VmaIsPow2ImEbT_(i64 noundef %106)
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  tail call void @__assert_fail(ptr noundef nonnull @.str.197, ptr noundef nonnull @.str.2, i32 noundef 14181, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo) #7
  unreachable

109:                                              ; preds = %104
  %110 = getelementptr inbounds i8, ptr %1, i64 24
  %111 = load i64, ptr %110, align 8, !tbaa !68
  %.not66 = icmp eq i64 %111, 0
  %spec.select78 = select i1 %.not66, i64 268435456, i64 %111
  store i64 %spec.select78, ptr %46, align 8, !tbaa !55
  %112 = invoke noundef i32 @_ZNK14VmaAllocator_T29CalculateGlobalMemoryTypeBitsEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
          to label %113 unwind label %94

113:                                              ; preds = %109
  store i32 %112, ptr %54, align 8, !tbaa !59
  %114 = getelementptr inbounds i8, ptr %1, i64 80
  %115 = load ptr, ptr %114, align 8, !tbaa !69
  %.not67 = icmp eq ptr %115, null
  br i1 %.not67, label %120, label %116

116:                                              ; preds = %113
  %117 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %118 = zext i32 %117 to i64
  %119 = shl nuw nsw i64 %118, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %72, ptr nonnull align 4 %115, i64 %119, i1 false)
  br label %120

120:                                              ; preds = %116, %113
  %121 = getelementptr inbounds i8, ptr %1, i64 48
  %122 = load ptr, ptr %121, align 8, !tbaa !70
  %.not68 = icmp eq ptr %122, null
  br i1 %.not68, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %120
  %123 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryHeapCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %.not82 = icmp eq i32 %123, 0
  br i1 %.not82, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %124 = getelementptr inbounds i8, ptr %0, i64 1296
  br label %125

125:                                              ; preds = %.lr.ph, %138
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %138 ]
  %126 = load ptr, ptr %121, align 8, !tbaa !70
  %127 = getelementptr inbounds i64, ptr %126, i64 %indvars.iv
  %128 = load i64, ptr %127, align 8, !tbaa !71
  %.not77 = icmp eq i64 %128, -1
  br i1 %.not77, label %138, label %129

129:                                              ; preds = %125
  %130 = trunc nuw i64 %indvars.iv to i32
  %131 = shl nuw i32 1, %130
  %132 = load i32, ptr %42, align 8, !tbaa !54
  %133 = or i32 %132, %131
  store i32 %133, ptr %42, align 8, !tbaa !54
  %134 = getelementptr inbounds [16 x %struct.VkMemoryHeap], ptr %124, i64 0, i64 %indvars.iv
  %135 = load i64, ptr %134, align 8, !tbaa !72
  %136 = icmp ult i64 %128, %135
  br i1 %136, label %137, label %138

137:                                              ; preds = %129
  store i64 %128, ptr %134, align 8, !tbaa !72
  br label %138

138:                                              ; preds = %129, %137, %125
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %139 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryHeapCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %140 = zext i32 %139 to i64
  %141 = icmp ult i64 %indvars.iv.next, %140
  br i1 %141, label %125, label %.loopexit, !llvm.loop !74

.loopexit:                                        ; preds = %138, %.preheader, %120
  %142 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %.not83 = icmp eq i32 %142, 0
  br i1 %.not83, label %._crit_edge, label %.lr.ph81

._crit_edge:                                      ; preds = %159, %.loopexit
  ret void

.lr.ph81:                                         ; preds = %.loopexit, %159
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %159 ], [ 0, %.loopexit ]
  %143 = load i32, ptr %54, align 8, !tbaa !59
  %144 = trunc nuw i64 %indvars.iv85 to i32
  %145 = shl nuw i32 1, %144
  %146 = and i32 %143, %145
  %.not69 = icmp eq i32 %146, 0
  br i1 %.not69, label %159, label %147

147:                                              ; preds = %.lr.ph81
  %148 = invoke noundef i64 @_ZN14VmaAllocator_T22CalcPreferredBlockSizeEj(ptr noundef nonnull align 8 dereferenceable(5916) %0, i32 noundef %144)
          to label %149 unwind label %157

149:                                              ; preds = %147
  %150 = invoke noundef ptr @_ZL11VmaAllocateI14VmaBlockVectorEPT_P14VmaAllocator_T(ptr noundef nonnull %0)
          to label %151 unwind label %157

151:                                              ; preds = %149
  %152 = tail call noundef i64 @_ZNK14VmaAllocator_T25GetBufferImageGranularityEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %153 = invoke noundef i64 @_ZNK14VmaAllocator_T25GetMemoryTypeMinAlignmentEj(ptr noundef nonnull align 8 dereferenceable(5916) %0, i32 noundef %144)
          to label %154 unwind label %157

154:                                              ; preds = %151
  invoke void @_ZN14VmaBlockVectorC1EP14VmaAllocator_TP9VmaPool_TjmmmmbjfmPv(ptr noundef nonnull align 8 dereferenceable(181) %150, ptr noundef nonnull %0, ptr noundef null, i32 noundef %144, i64 noundef %148, i64 noundef 0, i64 noundef -1, i64 noundef %152, i1 noundef zeroext false, i32 noundef 0, float noundef 5.000000e-01, i64 noundef %153, ptr noundef null)
          to label %155 unwind label %157

155:                                              ; preds = %154
  %156 = getelementptr inbounds [32 x ptr], ptr %70, i64 0, i64 %indvars.iv85
  store ptr %150, ptr %156, align 8, !tbaa !53
  br label %159

157:                                              ; preds = %154, %151, %149, %147
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %163

159:                                              ; preds = %.lr.ph81, %155
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %160 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %161 = zext i32 %160 to i64
  %162 = icmp ult i64 %indvars.iv.next86, %161
  br i1 %162, label %.lr.ph81, label %._crit_edge, !llvm.loop !76

163:                                              ; preds = %157, %94
  %.pn = phi { ptr, i32 } [ %158, %157 ], [ %95, %94 ]
  tail call void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #6
  br label %164

164:                                              ; preds = %163, %58
  %.pn.pn = phi { ptr, i32 } [ %.pn, %163 ], [ %59, %58 ]
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.31) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.30) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.29) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.28) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.27) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.26) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.25) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.24) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.23) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.22) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.21) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.20) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.19) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.18) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.17) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.16) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.15) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.14) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.13) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.12) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.11) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.10) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.9) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.8) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.7) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.6) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.5) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.4) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.3) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.2) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.1) #6
  tail call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr) #6
  tail call void @_ZN28VmaAllocationObjectAllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %41) #6
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN28VmaAllocationObjectAllocatorC2EPK21VkAllocationCallbacks(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6atomicIjEC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z9VmaIsPow2IiEbT_(i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z9VmaIsPow2ImEbT_(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK14VmaAllocator_T29CalculateGlobalMemoryTypeBitsEv(ptr noundef nonnull align 8 dereferenceable(5916)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL11VmaAllocateI14VmaBlockVectorEPT_P14VmaAllocator_T(ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN28VmaAllocationObjectAllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #3 align 2

declare void @_ZN26VmaDedicatedAllocationListD1Ev(ptr) local_unnamed_addr

declare void @_ZN20VmaCurrentBudgetDataC1Ev(ptr) local_unnamed_addr

declare void @_ZN14VmaBlockVectorC1EP14VmaAllocator_TP9VmaPool_TjmmmmbjfmPv(ptr, ptr, ptr, i32, i64, i64, i64, i64, i1, i32, float, i64, ptr) local_unnamed_addr

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS22VmaAllocatorCreateInfo", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !10, i64 80}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTS14VmaAllocator_T", !14, i64 0, !7, i64 4, !14, i64 8, !14, i64 9, !14, i64 10, !14, i64 11, !14, i64 12, !14, i64 13, !10, i64 16, !10, i64 24, !14, i64 32, !15, i64 40, !16, i64 88, !17, i64 112, !7, i64 200, !24, i64 208, !29, i64 1032, !8, i64 1552, !8, i64 1808, !30, i64 4624, !31, i64 5456, !11, i64 5464, !10, i64 5472, !31, i64 5480, !31, i64 5484, !8, i64 5488, !33, i64 5616, !36, i64 5672, !7, i64 5696, !37, i64 5704, !7, i64 5912}
!14 = !{!"bool", !8, i64 0}
!15 = !{!"_ZTS21VkAllocationCallbacks", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!16 = !{!"_ZTS24VmaDeviceMemoryCallbacks", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!"_ZTS28VmaAllocationObjectAllocator", !18, i64 0, !21, i64 40}
!18 = !{!"_ZTS8VmaMutex", !19, i64 0}
!19 = !{!"_ZTSSt5mutex", !20, i64 0}
!20 = !{!"_ZTSSt12__mutex_base", !8, i64 0}
!21 = !{!"_ZTS16VmaPoolAllocatorI15VmaAllocation_TE", !10, i64 0, !7, i64 8, !22, i64 16}
!22 = !{!"_ZTS9VmaVectorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockE15VmaStlAllocatorIS3_EE", !23, i64 0, !10, i64 8, !11, i64 16, !11, i64 24}
!23 = !{!"_ZTS15VmaStlAllocatorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockEE", !10, i64 0}
!24 = !{!"_ZTS26VkPhysicalDeviceProperties", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !25, i64 16, !8, i64 20, !8, i64 276, !26, i64 296, !28, i64 800}
!25 = !{!"_ZTS20VkPhysicalDeviceType", !8, i64 0}
!26 = !{!"_ZTS22VkPhysicalDeviceLimits", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !11, i64 48, !11, i64 56, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !8, i64 220, !7, i64 232, !8, i64 236, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !27, i64 268, !27, i64 272, !7, i64 276, !8, i64 280, !8, i64 288, !7, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !27, i64 352, !27, i64 356, !7, i64 360, !7, i64 364, !7, i64 368, !7, i64 372, !7, i64 376, !7, i64 380, !7, i64 384, !7, i64 388, !7, i64 392, !7, i64 396, !7, i64 400, !7, i64 404, !7, i64 408, !7, i64 412, !7, i64 416, !7, i64 420, !27, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !8, i64 444, !8, i64 452, !27, i64 460, !27, i64 464, !7, i64 468, !7, i64 472, !11, i64 480, !11, i64 488, !11, i64 496}
!27 = !{!"float", !8, i64 0}
!28 = !{!"_ZTS32VkPhysicalDeviceSparseProperties", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!29 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !7, i64 0, !8, i64 4, !7, i64 260, !8, i64 264}
!30 = !{!"_ZTS20VmaCurrentBudgetData", !8, i64 0, !8, i64 64, !8, i64 128, !8, i64 256, !31, i64 384, !33, i64 392, !8, i64 448, !8, i64 576, !8, i64 704}
!31 = !{!"_ZTSSt6atomicIjE", !32, i64 0}
!32 = !{!"_ZTSSt13__atomic_baseIjE", !7, i64 0}
!33 = !{!"_ZTS10VmaRWMutex", !34, i64 0}
!34 = !{!"_ZTSSt12shared_mutex", !35, i64 0}
!35 = !{!"_ZTSSt22__shared_mutex_pthread", !8, i64 0}
!36 = !{!"_ZTS22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE", !10, i64 0, !10, i64 8, !11, i64 16}
!37 = !{!"_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}
!38 = !{!6, !7, i64 72}
!39 = !{!13, !7, i64 4}
!40 = !{!13, !14, i64 8}
!41 = !{!13, !14, i64 9}
!42 = !{!13, !14, i64 10}
!43 = !{!13, !14, i64 11}
!44 = !{!13, !14, i64 12}
!45 = !{!13, !14, i64 13}
!46 = !{!6, !10, i64 16}
!47 = !{!13, !10, i64 16}
!48 = !{!6, !10, i64 64}
!49 = !{!13, !10, i64 24}
!50 = !{!6, !10, i64 32}
!51 = !{!13, !14, i64 32}
!52 = !{i64 0, i64 8, !53, i64 8, i64 8, !53, i64 16, i64 8, !53, i64 24, i64 8, !53, i64 32, i64 8, !53, i64 40, i64 8, !53}
!53 = !{!10, !10, i64 0}
!54 = !{!13, !7, i64 200}
!55 = !{!13, !11, i64 5464}
!56 = !{!6, !10, i64 8}
!57 = !{!13, !10, i64 5472}
!58 = !{!13, !7, i64 5696}
!59 = !{!13, !7, i64 5912}
!60 = !{!6, !10, i64 40}
!61 = !{!16, !10, i64 16}
!62 = !{!13, !10, i64 104}
!63 = !{!6, !10, i64 56}
!64 = !{!13, !10, i64 5720}
!65 = !{!13, !10, i64 5728}
!66 = !{!13, !11, i64 552}
!67 = !{!13, !11, i64 1000}
!68 = !{!6, !11, i64 24}
!69 = !{!6, !10, i64 80}
!70 = !{!6, !10, i64 48}
!71 = !{!11, !11, i64 0}
!72 = !{!73, !11, i64 0}
!73 = !{!"_ZTS12VkMemoryHeap", !11, i64 0, !7, i64 8}
!74 = distinct !{!74, !75}
!75 = !{!"llvm.loop.mustprogress"}
!76 = distinct !{!76, !75}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass