; LLVM IR from Adeon18/Shift :: Source/Utility/Vulkan/VMAUsage.ll (ZN14VmaAllocator_TC2EPK22VmaAllocatorCreateInfo)

; 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, i8, 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 [75 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 9
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 8, !tbaa !9
  %77 = and i32 %76, 128
  %78 = icmp ne i32 %77, 0
  %79 = zext i1 %78 to i8
  store i8 %79, ptr %73, align 2, !tbaa !47
  %80 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 11
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !48
  store ptr %83, ptr %80, align 8, !tbaa !49
  %84 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 12
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %85, i32 0, i32 8
  %87 = load ptr, ptr %86, align 8, !tbaa !50
  store ptr %87, ptr %84, align 8, !tbaa !51
  %88 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 13
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %89, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !52
  %92 = icmp ne ptr %91, null
  %93 = zext i1 %92 to i8
  store i8 %93, ptr %88, align 8, !tbaa !53
  %94 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 15
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %95, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !52
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %103

99:                                               ; preds = %29
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %100, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !52
  br label %104

103:                                              ; preds = %29
  br label %104

104:                                              ; preds = %103, %99
  %105 = phi ptr [ %102, %99 ], [ @_ZL27VmaEmptyAllocationCallbacks, %103 ]
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %94, ptr align 8 %105, i64 48, i1 false), !tbaa.struct !54
  %106 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 16
  %107 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 17
  %108 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 15
  call void @_ZN28VmaAllocationObjectAllocatorC2EPK21VkAllocationCallbacks(ptr noundef nonnull align 8 dereferenceable(88) %107, ptr noundef %108)
  %109 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 18
  store i32 0, ptr %109, align 8, !tbaa !55
  %110 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 20
  %111 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 21
  %112 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 23
  %113 = getelementptr inbounds [32 x %class.VmaDedicatedAllocationList], ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds %class.VmaDedicatedAllocationList, ptr %113, i64 32
  br label %115

115:                                              ; preds = %117, %104
  %116 = phi ptr [ %113, %104 ], [ %118, %117 ]
  invoke void @_ZN26VmaDedicatedAllocationListC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %116)
          to label %117 unwind label %142

117:                                              ; preds = %115
  %118 = getelementptr inbounds %class.VmaDedicatedAllocationList, ptr %116, i64 1
  %119 = icmp eq ptr %118, %114
  br i1 %119, label %120, label %115

120:                                              ; preds = %117
  %121 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 24
  invoke void @_ZN20VmaCurrentBudgetDataC1Ev(ptr noundef nonnull align 8 dereferenceable(832) %121)
          to label %122 unwind label %152

122:                                              ; preds = %120
  %123 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 25
  call void @_ZNSt6atomicIjEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %123, i32 noundef 0) #7
  %124 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 27
  store i64 0, ptr %124, align 8, !tbaa !56
  %125 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 28
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %126, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8, !tbaa !57
  store ptr %128, ptr %125, align 8, !tbaa !58
  %129 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 29
  %130 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 30
  call void @_ZNSt6atomicIjEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %130, i32 noundef -1) #7
  %131 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 32
  call void @_ZN10VmaRWMutexC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %131) #7
  %132 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 33
  call void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %132) #7
  %133 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 34
  store i32 0, ptr %133, align 8, !tbaa !59
  %134 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 36
  %135 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 37
  store i32 -1, ptr %135, align 8, !tbaa !60
  %136 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 2
  %137 = load i32, ptr %136, align 4, !tbaa !40
  %138 = icmp uge i32 %137, 4198400
  br i1 %138, label %139, label %156

139:                                              ; preds = %122
  %140 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 3
  store i8 0, ptr %140, align 8, !tbaa !41
  %141 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 4
  store i8 0, ptr %141, align 1, !tbaa !42
  br label %156

142:                                              ; preds = %115
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %5, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %6, align 4
  %146 = icmp eq ptr %113, %116
  br i1 %146, label %151, label %147

147:                                              ; preds = %147, %142
  %148 = phi ptr [ %116, %142 ], [ %149, %147 ]
  %149 = getelementptr inbounds %class.VmaDedicatedAllocationList, ptr %148, i64 -1
  call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %149) #7
  %150 = icmp eq ptr %149, %113
  br i1 %150, label %151, label %147

151:                                              ; preds = %147, %142
  br label %408

152:                                              ; preds = %120
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %5, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %6, align 4
  br label %400

156:                                              ; preds = %139, %122
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %157, i32 0, i32 1
  %159 = load ptr, ptr %158, align 8, !tbaa !57
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %171

161:                                              ; preds = %156
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %162, i32 0, i32 2
  %164 = load ptr, ptr %163, align 8, !tbaa !48
  %165 = icmp ne ptr %164, null
  br i1 %165, label %166, label %171

166:                                              ; preds = %161
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %167, i32 0, i32 8
  %169 = load ptr, ptr %168, align 8, !tbaa !50
  %170 = icmp ne ptr %169, null
  br label %171

171:                                              ; preds = %166, %161, %156
  %172 = phi i1 [ false, %161 ], [ false, %156 ], [ %170, %166 ]
  br i1 %172, label %173, label %174

173:                                              ; preds = %171
  br label %176

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

175:                                              ; No predecessors!
  br label %176

176:                                              ; preds = %175, %173
  %177 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 2
  %178 = load i32, ptr %177, align 4, !tbaa !40
  %179 = icmp ult i32 %178, 4198400
  br i1 %179, label %180, label %181

180:                                              ; preds = %176
  br label %181

181:                                              ; preds = %180, %176
  %182 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 16
  call void @llvm.memset.p0.i64(ptr align 8 %182, i8 0, i64 24, i1 false)
  %183 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 20
  call void @llvm.memset.p0.i64(ptr align 8 %183, i8 0, i64 824, i1 false)
  %184 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 21
  call void @llvm.memset.p0.i64(ptr align 8 %184, i8 0, i64 520, i1 false)
  %185 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 22
  call void @llvm.memset.p0.i64(ptr align 8 %185, i8 0, i64 256, i1 false)
  %186 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 36
  call void @llvm.memset.p0.i64(ptr align 8 %186, i8 0, i64 208, i1 false)
  %187 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 31
  call void @llvm.memset.p0.i64(ptr align 8 %187, i8 0, i64 128, i1 false)
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %188, i32 0, i32 5
  %190 = load ptr, ptr %189, align 8, !tbaa !61
  %191 = icmp ne ptr %190, null
  br i1 %191, label %192, label %214

192:                                              ; preds = %181
  %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 !61
  %196 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %195, i32 0, i32 2
  %197 = load ptr, ptr %196, align 8, !tbaa !62
  %198 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 16
  %199 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %198, i32 0, i32 2
  store ptr %197, ptr %199, align 8, !tbaa !63
  %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 !61
  %203 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %202, i32 0, i32 0
  %204 = load ptr, ptr %203, align 8, !tbaa !64
  %205 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 16
  %206 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %205, i32 0, i32 0
  store ptr %204, ptr %206, align 8, !tbaa !65
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %207, i32 0, i32 5
  %209 = load ptr, ptr %208, align 8, !tbaa !61
  %210 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %209, i32 0, i32 1
  %211 = load ptr, ptr %210, align 8, !tbaa !66
  %212 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 16
  %213 = getelementptr inbounds %struct.VmaDeviceMemoryCallbacks, ptr %212, i32 0, i32 1
  store ptr %211, ptr %213, align 8, !tbaa !67
  br label %214

214:                                              ; preds = %192, %181
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %215, i32 0, i32 7
  %217 = load ptr, ptr %216, align 8, !tbaa !68
  invoke void @_ZN14VmaAllocator_T21ImportVulkanFunctionsEPK18VmaVulkanFunctions(ptr noundef nonnull align 8 dereferenceable(5916) %11, ptr noundef %217)
          to label %218 unwind label %237

218:                                              ; preds = %214
  %219 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 36
  %220 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %219, i32 0, i32 2
  %221 = load ptr, ptr %220, align 8, !tbaa !69
  %222 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 28
  %223 = load ptr, ptr %222, align 8, !tbaa !58
  %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 %237

225:                                              ; preds = %218
  %226 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 36
  %227 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %226, i32 0, i32 3
  %228 = load ptr, ptr %227, align 8, !tbaa !70
  %229 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 28
  %230 = load ptr, ptr %229, align 8, !tbaa !58
  %231 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 21
  invoke void %228(ptr noundef %230, ptr noundef %231)
          to label %232 unwind label %237

232:                                              ; preds = %225
  %233 = invoke noundef zeroext i1 @_Z9VmaIsPow2IiEbT_(i32 noundef 1)
          to label %234 unwind label %237

234:                                              ; preds = %232
  br i1 %233, label %235, label %236

235:                                              ; preds = %234
  br label %242

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

237:                                              ; preds = %288, %278, %258, %248, %242, %232, %225, %218, %214
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %5, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %6, align 4
  br label %399

241:                                              ; No predecessors!
  br label %242

242:                                              ; preds = %241, %235
  %243 = invoke noundef zeroext i1 @_Z9VmaIsPow2IiEbT_(i32 noundef 1)
          to label %244 unwind label %237

244:                                              ; preds = %242
  br i1 %243, label %245, label %246

245:                                              ; preds = %244
  br label %248

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

247:                                              ; No predecessors!
  br label %248

248:                                              ; preds = %247, %245
  %249 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 20
  %250 = getelementptr inbounds %struct.VkPhysicalDeviceProperties, ptr %249, i32 0, i32 7
  %251 = getelementptr inbounds %struct.VkPhysicalDeviceLimits, ptr %250, i32 0, i32 11
  %252 = load i64, ptr %251, align 8, !tbaa !71
  %253 = invoke noundef zeroext i1 @_Z9VmaIsPow2ImEbT_(i64 noundef %252)
          to label %254 unwind label %237

254:                                              ; preds = %248
  br i1 %253, label %255, label %256

255:                                              ; preds = %254
  br label %258

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

257:                                              ; No predecessors!
  br label %258

258:                                              ; preds = %257, %255
  %259 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 20
  %260 = getelementptr inbounds %struct.VkPhysicalDeviceProperties, ptr %259, i32 0, i32 7
  %261 = getelementptr inbounds %struct.VkPhysicalDeviceLimits, ptr %260, i32 0, i32 105
  %262 = load i64, ptr %261, align 8, !tbaa !72
  %263 = invoke noundef zeroext i1 @_Z9VmaIsPow2ImEbT_(i64 noundef %262)
          to label %264 unwind label %237

264:                                              ; preds = %258
  br i1 %263, label %265, label %266

265:                                              ; preds = %264
  br label %268

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

267:                                              ; No predecessors!
  br label %268

268:                                              ; preds = %267, %265
  %269 = load ptr, ptr %4, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %269, i32 0, i32 3
  %271 = load i64, ptr %270, align 8, !tbaa !73
  %272 = icmp ne i64 %271, 0
  br i1 %272, label %273, label %277

273:                                              ; preds = %268
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %274, i32 0, i32 3
  %276 = load i64, ptr %275, align 8, !tbaa !73
  br label %278

277:                                              ; preds = %268
  br label %278

278:                                              ; preds = %277, %273
  %279 = phi i64 [ %276, %273 ], [ 268435456, %277 ]
  %280 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 27
  store i64 %279, ptr %280, align 8, !tbaa !56
  %281 = invoke noundef i32 @_ZNK14VmaAllocator_T29CalculateGlobalMemoryTypeBitsEv(ptr noundef nonnull align 8 dereferenceable(5916) %11)
          to label %282 unwind label %237

282:                                              ; preds = %278
  %283 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 37
  store i32 %281, ptr %283, align 8, !tbaa !60
  %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 !74
  %287 = icmp ne ptr %286, null
  br i1 %287, label %288, label %298

288:                                              ; preds = %282
  %289 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 31
  %290 = getelementptr inbounds [32 x i32], ptr %289, i64 0, i64 0
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %291, i32 0, i32 10
  %293 = load ptr, ptr %292, align 8, !tbaa !74
  %294 = invoke noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %11)
          to label %295 unwind label %237

295:                                              ; preds = %288
  %296 = zext i32 %294 to i64
  %297 = mul i64 4, %296
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %290, ptr align 4 %293, i64 %297, i1 false)
  br label %298

298:                                              ; preds = %295, %282
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %299, i32 0, i32 6
  %301 = load ptr, ptr %300, align 8, !tbaa !75
  %302 = icmp ne ptr %301, null
  br i1 %302, label %303, label %353

303:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !76
  br label %304

304:                                              ; preds = %349, %303
  %305 = load i32, ptr %7, align 4, !tbaa !76
  %306 = invoke noundef i32 @_ZNK14VmaAllocator_T18GetMemoryHeapCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %11)
          to label %307 unwind label %310

307:                                              ; preds = %304
  %308 = icmp ult i32 %305, %306
  br i1 %308, label %314, label %309

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

310:                                              ; preds = %304
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %5, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %399

314:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.VmaAllocatorCreateInfo, ptr %315, i32 0, i32 6
  %317 = load ptr, ptr %316, align 8, !tbaa !75
  %318 = load i32, ptr %7, align 4, !tbaa !76
  %319 = zext i32 %318 to i64
  %320 = getelementptr inbounds i64, ptr %317, i64 %319
  %321 = load i64, ptr %320, align 8, !tbaa !77
  store i64 %321, ptr %8, align 8, !tbaa !77
  %322 = load i64, ptr %8, align 8, !tbaa !77
  %323 = icmp ne i64 %322, -1
  br i1 %323, label %324, label %348

324:                                              ; preds = %314
  %325 = load i32, ptr %7, align 4, !tbaa !76
  %326 = shl i32 1, %325
  %327 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 18
  %328 = load i32, ptr %327, align 8, !tbaa !55
  %329 = or i32 %328, %326
  store i32 %329, ptr %327, align 8, !tbaa !55
  %330 = load i64, ptr %8, align 8, !tbaa !77
  %331 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 21
  %332 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryProperties, ptr %331, i32 0, i32 3
  %333 = load i32, ptr %7, align 4, !tbaa !76
  %334 = zext i32 %333 to i64
  %335 = getelementptr inbounds [16 x %struct.VkMemoryHeap], ptr %332, i64 0, i64 %334
  %336 = getelementptr inbounds %struct.VkMemoryHeap, ptr %335, i32 0, i32 0
  %337 = load i64, ptr %336, align 8, !tbaa !78
  %338 = icmp ult i64 %330, %337
  br i1 %338, label %339, label %347

339:                                              ; preds = %324
  %340 = load i64, ptr %8, align 8, !tbaa !77
  %341 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 21
  %342 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryProperties, ptr %341, i32 0, i32 3
  %343 = load i32, ptr %7, align 4, !tbaa !76
  %344 = zext i32 %343 to i64
  %345 = getelementptr inbounds [16 x %struct.VkMemoryHeap], ptr %342, i64 0, i64 %344
  %346 = getelementptr inbounds %struct.VkMemoryHeap, ptr %345, i32 0, i32 0
  store i64 %340, ptr %346, align 8, !tbaa !78
  br label %347

347:                                              ; preds = %339, %324
  br label %348

348:                                              ; preds = %347, %314
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %349

349:                                              ; preds = %348
  %350 = load i32, ptr %7, align 4, !tbaa !76
  %351 = add i32 %350, 1
  store i32 %351, ptr %7, align 4, !tbaa !76
  br label %304, !llvm.loop !80

352:                                              ; preds = %309
  br label %353

353:                                              ; preds = %352, %298
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !76
  br label %354

354:                                              ; preds = %394, %353
  %355 = load i32, ptr %9, align 4, !tbaa !76
  %356 = invoke noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %11)
          to label %357 unwind label %360

357:                                              ; preds = %354
  %358 = icmp ult i32 %355, %356
  br i1 %358, label %364, label %359

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

360:                                              ; preds = %354
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %5, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %6, align 4
  br label %397

364:                                              ; preds = %357
  %365 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 37
  %366 = load i32, ptr %365, align 8, !tbaa !60
  %367 = load i32, ptr %9, align 4, !tbaa !76
  %368 = shl i32 1, %367
  %369 = and i32 %366, %368
  %370 = icmp ne i32 %369, 0
  br i1 %370, label %371, label %393

371:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %372 = load i32, ptr %9, align 4, !tbaa !76
  %373 = invoke noundef i64 @_ZN14VmaAllocator_T22CalcPreferredBlockSizeEj(ptr noundef nonnull align 8 dereferenceable(5916) %11, i32 noundef %372)
          to label %374 unwind label %389

374:                                              ; preds = %371
  store i64 %373, ptr %10, align 8, !tbaa !77
  %375 = invoke noundef ptr @_ZL11VmaAllocateI14VmaBlockVectorEPT_P14VmaAllocator_T(ptr noundef %11)
          to label %376 unwind label %389

376:                                              ; preds = %374
  %377 = load i32, ptr %9, align 4, !tbaa !76
  %378 = load i64, ptr %10, align 8, !tbaa !77
  %379 = invoke noundef i64 @_ZNK14VmaAllocator_T25GetBufferImageGranularityEv(ptr noundef nonnull align 8 dereferenceable(5916) %11)
          to label %380 unwind label %389

380:                                              ; preds = %376
  %381 = load i32, ptr %9, align 4, !tbaa !76
  %382 = invoke noundef i64 @_ZNK14VmaAllocator_T25GetMemoryTypeMinAlignmentEj(ptr noundef nonnull align 8 dereferenceable(5916) %11, i32 noundef %381)
          to label %383 unwind label %389

383:                                              ; preds = %380
  invoke void @_ZN14VmaBlockVectorC1EP14VmaAllocator_TP9VmaPool_TjmmmmbjfmPv(ptr noundef nonnull align 8 dereferenceable(181) %375, ptr noundef %11, ptr noundef null, i32 noundef %377, i64 noundef %378, i64 noundef 0, i64 noundef -1, i64 noundef %379, i1 noundef zeroext false, i32 noundef 0, float noundef 5.000000e-01, i64 noundef %382, ptr noundef null)
          to label %384 unwind label %389

384:                                              ; preds = %383
  %385 = getelementptr inbounds %struct.VmaAllocator_T, ptr %11, i32 0, i32 22
  %386 = load i32, ptr %9, align 4, !tbaa !76
  %387 = zext i32 %386 to i64
  %388 = getelementptr inbounds [32 x ptr], ptr %385, i64 0, i64 %387
  store ptr %375, ptr %388, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %393

389:                                              ; preds = %383, %380, %376, %374, %371
  %390 = landingpad { ptr, i32 }
          cleanup
  %391 = extractvalue { ptr, i32 } %390, 0
  store ptr %391, ptr %5, align 8
  %392 = extractvalue { ptr, i32 } %390, 1
  store i32 %392, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %397

393:                                              ; preds = %384, %364
  br label %394

394:                                              ; preds = %393
  %395 = load i32, ptr %9, align 4, !tbaa !76
  %396 = add i32 %395, 1
  store i32 %396, ptr %9, align 4, !tbaa !76
  br label %354, !llvm.loop !82

397:                                              ; preds = %389, %360
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %399

398:                                              ; preds = %359
  ret void

399:                                              ; preds = %397, %310, %237
  call void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %132) #7
  br label %400

400:                                              ; preds = %399, %152
  %401 = getelementptr inbounds [32 x %class.VmaDedicatedAllocationList], ptr %112, i32 0, i32 0
  %402 = getelementptr inbounds %class.VmaDedicatedAllocationList, ptr %401, i64 32
  br label %403

403:                                              ; preds = %403, %400
  %404 = phi ptr [ %402, %400 ], [ %405, %403 ]
  %405 = getelementptr inbounds %class.VmaDedicatedAllocationList, ptr %404, i64 -1
  call void @_ZN26VmaDedicatedAllocationListD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %405) #7
  %406 = icmp eq ptr %405, %401
  br i1 %406, label %407, label %403

407:                                              ; preds = %403
  br label %408

408:                                              ; preds = %407, %151
  call void @_ZN28VmaAllocationObjectAllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %107) #7
  br label %409

409:                                              ; preds = %408
  %410 = load ptr, ptr %5, align 8
  %411 = load i32, ptr %6, align 4
  %412 = insertvalue { ptr, i32 } poison, ptr %410, 0
  %413 = insertvalue { ptr, i32 } %412, i32 %411, 1
  resume { ptr, i32 } %413
}

; 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, !15, i64 14, !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 = !{!14, !15, i64 14}
!48 = !{!10, !6, i64 16}
!49 = !{!14, !6, i64 16}
!50 = !{!10, !6, i64 64}
!51 = !{!14, !6, i64 24}
!52 = !{!10, !6, i64 32}
!53 = !{!14, !15, i64 32}
!54 = !{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}
!55 = !{!14, !11, i64 200}
!56 = !{!14, !12, i64 5464}
!57 = !{!10, !6, i64 8}
!58 = !{!14, !6, i64 5472}
!59 = !{!14, !11, i64 5696}
!60 = !{!14, !11, i64 5912}
!61 = !{!10, !6, i64 40}
!62 = !{!17, !6, i64 16}
!63 = !{!14, !6, i64 104}
!64 = !{!17, !6, i64 0}
!65 = !{!14, !6, i64 88}
!66 = !{!17, !6, i64 8}
!67 = !{!14, !6, i64 96}
!68 = !{!10, !6, i64 56}
!69 = !{!14, !6, i64 5720}
!70 = !{!14, !6, i64 5728}
!71 = !{!14, !12, i64 552}
!72 = !{!14, !12, i64 1000}
!73 = !{!10, !12, i64 24}
!74 = !{!10, !6, i64 80}
!75 = !{!10, !6, i64 48}
!76 = !{!11, !11, i64 0}
!77 = !{!12, !12, i64 0}
!78 = !{!79, !12, i64 0}
!79 = !{!"_ZTS12VkMemoryHeap", !12, i64 0, !11, i64 8}
!80 = distinct !{!80, !81}
!81 = !{!"llvm.loop.mustprogress"}
!82 = distinct !{!82, !81}


; 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 [75 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 14
  %29 = and i32 %3, 128
  %30 = icmp ne i32 %29, 0
  %31 = zext i1 %30 to i8
  store i8 %31, ptr %28, align 2, !tbaa !46
  %32 = getelementptr inbounds i8, ptr %0, i64 16
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !47
  store ptr %34, ptr %32, align 8, !tbaa !48
  %35 = getelementptr inbounds i8, ptr %0, i64 24
  %36 = getelementptr inbounds i8, ptr %1, i64 64
  %37 = load ptr, ptr %36, align 8, !tbaa !49
  store ptr %37, ptr %35, align 8, !tbaa !50
  %38 = getelementptr inbounds i8, ptr %0, i64 32
  %39 = getelementptr inbounds i8, ptr %1, i64 32
  %40 = load ptr, ptr %39, align 8, !tbaa !51
  %41 = icmp ne ptr %40, null
  %42 = zext i1 %41 to i8
  store i8 %42, ptr %38, align 8, !tbaa !52
  %43 = getelementptr inbounds i8, ptr %0, i64 40
  %.not60 = icmp eq ptr %40, null
  %44 = select i1 %.not60, ptr @_ZL27VmaEmptyAllocationCallbacks, ptr %40
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %43, ptr noundef nonnull align 8 dereferenceable(48) %44, i64 48, i1 false), !tbaa.struct !53
  %45 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZN28VmaAllocationObjectAllocatorC2EPK21VkAllocationCallbacks(ptr noundef nonnull align 8 dereferenceable(88) %45, ptr noundef nonnull %43)
  %46 = getelementptr inbounds i8, ptr %0, i64 200
  store i32 0, ptr %46, align 8, !tbaa !55
  %.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)
  %47 = getelementptr inbounds i8, ptr %0, i64 4624
  invoke void @_ZN20VmaCurrentBudgetDataC1Ev(ptr noundef nonnull align 8 dereferenceable(832) %47)
          to label %48 unwind label %62

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

61:                                               ; preds = %48
  store i8 0, ptr %10, align 8, !tbaa !40
  store i8 0, ptr %13, align 1, !tbaa !41
  br label %64

62:                                               ; preds = %2
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %168

64:                                               ; preds = %61, %48
  %65 = load ptr, ptr %52, align 8, !tbaa !57
  %.not63 = icmp eq ptr %65, null
  br i1 %.not63, label %.critedge, label %66

66:                                               ; preds = %64
  %67 = load ptr, ptr %33, align 8, !tbaa !47
  %.not64 = icmp eq ptr %67, null
  br i1 %.not64, label %.critedge, label %68

68:                                               ; preds = %66
  %69 = load ptr, ptr %36, align 8, !tbaa !49
  %.not65 = icmp eq ptr %69, null
  br i1 %.not65, label %.critedge, label %70

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

70:                                               ; preds = %68
  %71 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %71, i8 0, i64 24, i1 false)
  %72 = getelementptr inbounds i8, ptr %0, i64 208
  %73 = getelementptr inbounds i8, ptr %0, i64 1032
  %74 = getelementptr inbounds i8, ptr %0, i64 1552
  %75 = getelementptr inbounds i8, ptr %0, i64 5704
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(208) %75, i8 0, i64 208, i1 false)
  %76 = getelementptr inbounds i8, ptr %0, i64 5488
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %76, i8 0, i64 128, i1 false)
  %77 = getelementptr inbounds i8, ptr %1, i64 40
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1600) %72, i8 0, i64 1600, i1 false)
  %78 = load ptr, ptr %77, align 8, !tbaa !61
  %.not66 = icmp eq ptr %78, null
  br i1 %.not66, label %84, label %79

79:                                               ; preds = %70
  %80 = getelementptr inbounds i8, ptr %78, i64 16
  %81 = load ptr, ptr %80, align 8, !tbaa !62
  %82 = getelementptr inbounds i8, ptr %0, i64 104
  store ptr %81, ptr %82, align 8, !tbaa !63
  %83 = load <2 x ptr>, ptr %78, align 8, !tbaa !54
  store <2 x ptr> %83, ptr %71, align 8, !tbaa !54
  br label %84

84:                                               ; preds = %79, %70
  %85 = getelementptr inbounds i8, ptr %1, i64 56
  %86 = load ptr, ptr %85, align 8, !tbaa !64
  invoke void @_ZN14VmaAllocator_T21ImportVulkanFunctionsEPK18VmaVulkanFunctions(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %86)
          to label %87 unwind label %98

87:                                               ; preds = %84
  %88 = getelementptr inbounds i8, ptr %0, i64 5720
  %89 = load ptr, ptr %88, align 8, !tbaa !65
  %90 = load ptr, ptr %51, align 8, !tbaa !58
  invoke void %89(ptr noundef %90, ptr noundef nonnull %72)
          to label %91 unwind label %98

91:                                               ; preds = %87
  %92 = getelementptr inbounds i8, ptr %0, i64 5728
  %93 = load ptr, ptr %92, align 8, !tbaa !66
  %94 = load ptr, ptr %51, align 8, !tbaa !58
  invoke void %93(ptr noundef %94, ptr noundef nonnull %73)
          to label %95 unwind label %98

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

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

98:                                               ; preds = %113, %91, %87, %84
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %167

100:                                              ; preds = %95
  %101 = tail call noundef zeroext i1 @_Z9VmaIsPow2IiEbT_(i32 noundef 1)
  br i1 %101, label %103, label %102

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

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

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

108:                                              ; preds = %103
  %109 = getelementptr inbounds i8, ptr %0, i64 1000
  %110 = load i64, ptr %109, align 8, !tbaa !68
  %111 = tail call noundef zeroext i1 @_Z9VmaIsPow2ImEbT_(i64 noundef %110)
  br i1 %111, label %113, label %112

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

113:                                              ; preds = %108
  %114 = getelementptr inbounds i8, ptr %1, i64 24
  %115 = load i64, ptr %114, align 8, !tbaa !69
  %.not67 = icmp eq i64 %115, 0
  %spec.select79 = select i1 %.not67, i64 268435456, i64 %115
  store i64 %spec.select79, ptr %50, align 8, !tbaa !56
  %116 = invoke noundef i32 @_ZNK14VmaAllocator_T29CalculateGlobalMemoryTypeBitsEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
          to label %117 unwind label %98

117:                                              ; preds = %113
  store i32 %116, ptr %58, align 8, !tbaa !60
  %118 = getelementptr inbounds i8, ptr %1, i64 80
  %119 = load ptr, ptr %118, align 8, !tbaa !70
  %.not68 = icmp eq ptr %119, null
  br i1 %.not68, label %124, label %120

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

124:                                              ; preds = %120, %117
  %125 = getelementptr inbounds i8, ptr %1, i64 48
  %126 = load ptr, ptr %125, align 8, !tbaa !71
  %.not69 = icmp eq ptr %126, null
  br i1 %.not69, label %.loopexit, label %.preheader

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

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

129:                                              ; preds = %.lr.ph, %142
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %142 ]
  %130 = load ptr, ptr %125, align 8, !tbaa !71
  %131 = getelementptr inbounds i64, ptr %130, i64 %indvars.iv
  %132 = load i64, ptr %131, align 8, !tbaa !72
  %.not78 = icmp eq i64 %132, -1
  br i1 %.not78, label %142, label %133

133:                                              ; preds = %129
  %134 = trunc nuw i64 %indvars.iv to i32
  %135 = shl nuw i32 1, %134
  %136 = load i32, ptr %46, align 8, !tbaa !55
  %137 = or i32 %136, %135
  store i32 %137, ptr %46, align 8, !tbaa !55
  %138 = getelementptr inbounds [16 x %struct.VkMemoryHeap], ptr %128, i64 0, i64 %indvars.iv
  %139 = load i64, ptr %138, align 8, !tbaa !73
  %140 = icmp ult i64 %132, %139
  br i1 %140, label %141, label %142

141:                                              ; preds = %133
  store i64 %132, ptr %138, align 8, !tbaa !73
  br label %142

142:                                              ; preds = %133, %141, %129
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %143 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryHeapCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %144 = zext i32 %143 to i64
  %145 = icmp ult i64 %indvars.iv.next, %144
  br i1 %145, label %129, label %.loopexit, !llvm.loop !75

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

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

.lr.ph82:                                         ; preds = %.loopexit, %163
  %indvars.iv86 = phi i64 [ %indvars.iv.next87, %163 ], [ 0, %.loopexit ]
  %147 = load i32, ptr %58, align 8, !tbaa !60
  %148 = trunc nuw i64 %indvars.iv86 to i32
  %149 = shl nuw i32 1, %148
  %150 = and i32 %147, %149
  %.not70 = icmp eq i32 %150, 0
  br i1 %.not70, label %163, label %151

151:                                              ; preds = %.lr.ph82
  %152 = invoke noundef i64 @_ZN14VmaAllocator_T22CalcPreferredBlockSizeEj(ptr noundef nonnull align 8 dereferenceable(5916) %0, i32 noundef %148)
          to label %153 unwind label %161

153:                                              ; preds = %151
  %154 = invoke noundef ptr @_ZL11VmaAllocateI14VmaBlockVectorEPT_P14VmaAllocator_T(ptr noundef nonnull %0)
          to label %155 unwind label %161

155:                                              ; preds = %153
  %156 = tail call noundef i64 @_ZNK14VmaAllocator_T25GetBufferImageGranularityEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %157 = invoke noundef i64 @_ZNK14VmaAllocator_T25GetMemoryTypeMinAlignmentEj(ptr noundef nonnull align 8 dereferenceable(5916) %0, i32 noundef %148)
          to label %158 unwind label %161

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

159:                                              ; preds = %158
  %160 = getelementptr inbounds [32 x ptr], ptr %74, i64 0, i64 %indvars.iv86
  store ptr %154, ptr %160, align 8, !tbaa !54
  br label %163

161:                                              ; preds = %158, %155, %153, %151
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %167

163:                                              ; preds = %.lr.ph82, %159
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %164 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %165 = zext i32 %164 to i64
  %166 = icmp ult i64 %indvars.iv.next87, %165
  br i1 %166, label %.lr.ph82, label %._crit_edge, !llvm.loop !77

167:                                              ; preds = %161, %98
  %.pn = phi { ptr, i32 } [ %162, %161 ], [ %99, %98 ]
  tail call void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  br label %168

168:                                              ; preds = %167, %62
  %.pn.pn = phi { ptr, i32 } [ %.pn, %167 ], [ %63, %62 ]
  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) %45) #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, !14, i64 14, !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 = !{!13, !14, i64 14}
!47 = !{!6, !10, i64 16}
!48 = !{!13, !10, i64 16}
!49 = !{!6, !10, i64 64}
!50 = !{!13, !10, i64 24}
!51 = !{!6, !10, i64 32}
!52 = !{!13, !14, i64 32}
!53 = !{i64 0, i64 8, !54, i64 8, i64 8, !54, i64 16, i64 8, !54, i64 24, i64 8, !54, i64 32, i64 8, !54, i64 40, i64 8, !54}
!54 = !{!10, !10, i64 0}
!55 = !{!13, !7, i64 200}
!56 = !{!13, !11, i64 5464}
!57 = !{!6, !10, i64 8}
!58 = !{!13, !10, i64 5472}
!59 = !{!13, !7, i64 5696}
!60 = !{!13, !7, i64 5912}
!61 = !{!6, !10, i64 40}
!62 = !{!16, !10, i64 16}
!63 = !{!13, !10, i64 104}
!64 = !{!6, !10, i64 56}
!65 = !{!13, !10, i64 5720}
!66 = !{!13, !10, i64 5728}
!67 = !{!13, !11, i64 552}
!68 = !{!13, !11, i64 1000}
!69 = !{!6, !11, i64 24}
!70 = !{!6, !10, i64 80}
!71 = !{!6, !10, i64 48}
!72 = !{!11, !11, i64 0}
!73 = !{!74, !11, i64 0}
!74 = !{!"_ZTS12VkMemoryHeap", !11, i64 0, !7, i64 8}
!75 = distinct !{!75, !76}
!76 = !{!"llvm.loop.mustprogress"}
!77 = distinct !{!77, !76}


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