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

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [116 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T19CalculateStatisticsEP18VmaTotalStatistics = external hidden unnamed_addr constant [63 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [108 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16VmaMutexLockReadC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(56), i1 noundef zeroext) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaBlockVector21AddDetailedStatisticsER21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(181), ptr noundef nonnull align 8 dereferenceable(64)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14VmaAllocator_T19CalculateStatisticsEP18VmaTotalStatistics(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %struct.VmaMutexLockRead, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %20, i32 0, i32 2
  call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %21)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %32, %2
  %23 = load i32, ptr %5, align 4, !tbaa !9
  %24 = icmp ult i32 %23, 32
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %35

26:                                               ; preds = %22
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds [32 x %struct.VmaDetailedStatistics], ptr %28, i64 0, i64 %30
  call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %31)
  br label %32

32:                                               ; preds = %26
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = add i32 %33, 1
  store i32 %34, ptr %5, align 4, !tbaa !9
  br label %22, !llvm.loop !11

35:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %46, %35
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = icmp ult i32 %37, 16
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %49

40:                                               ; preds = %36
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %41, i32 0, i32 1
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds [16 x %struct.VmaDetailedStatistics], ptr %42, i64 0, i64 %44
  call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %45)
  br label %46

46:                                               ; preds = %40
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = add i32 %47, 1
  store i32 %48, ptr %6, align 4, !tbaa !9
  br label %36, !llvm.loop !13

49:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %71, %49
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %19)
  %53 = icmp ult i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %74

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %56 = getelementptr inbounds %struct.VmaAllocator_T, ptr %19, i32 0, i32 21
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds [32 x ptr], ptr %56, i64 0, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  store ptr %60, ptr %8, align 8, !tbaa !5
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %70

63:                                               ; preds = %55
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %65, i32 0, i32 0
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds [32 x %struct.VmaDetailedStatistics], ptr %66, i64 0, i64 %68
  call void @_ZN14VmaBlockVector21AddDetailedStatisticsER21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(181) %64, ptr noundef nonnull align 8 dereferenceable(64) %69)
  br label %70

70:                                               ; preds = %63, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = add i32 %72, 1
  store i32 %73, ptr %7, align 4, !tbaa !9
  br label %50, !llvm.loop !14

74:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %75 = getelementptr inbounds %struct.VmaAllocator_T, ptr %19, i32 0, i32 31
  %76 = getelementptr inbounds %struct.VmaAllocator_T, ptr %19, i32 0, i32 0
  %77 = load i8, ptr %76, align 8, !tbaa !15, !range !42, !noundef !43
  %78 = trunc i8 %77 to i1
  call void @_ZN16VmaMutexLockReadC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(56) %75, i1 noundef zeroext %78)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %79 = getelementptr inbounds %struct.VmaAllocator_T, ptr %19, i32 0, i32 32
  %80 = invoke noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE5FrontEv(ptr noundef nonnull align 8 dereferenceable(24) %79)
          to label %81 unwind label %86

81:                                               ; preds = %74
  store ptr %80, ptr %10, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %115, %81
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = icmp ne ptr %83, null
  br i1 %84, label %90, label %85

85:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %121

86:                                               ; preds = %111, %74
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %11, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %12, align 4
  br label %120

90:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.VmaPool_T, ptr %91, i32 0, i32 0
  store ptr %92, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = invoke noundef i32 @_ZNK14VmaBlockVector18GetMemoryTypeIndexEv(ptr noundef nonnull align 8 dereferenceable(181) %93)
          to label %95 unwind label %116

95:                                               ; preds = %90
  store i32 %94, ptr %14, align 4, !tbaa !9
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds [32 x %struct.VmaDetailedStatistics], ptr %98, i64 0, i64 %100
  invoke void @_ZN14VmaBlockVector21AddDetailedStatisticsER21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(181) %96, ptr noundef nonnull align 8 dereferenceable(64) %101)
          to label %102 unwind label %116

102:                                              ; preds = %95
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.VmaPool_T, ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %105, i32 0, i32 0
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds [32 x %struct.VmaDetailedStatistics], ptr %106, i64 0, i64 %108
  invoke void @_ZN26VmaDedicatedAllocationList21AddDetailedStatisticsER21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(88) %104, ptr noundef nonnull align 8 dereferenceable(64) %109)
          to label %110 unwind label %116

110:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %111

111:                                              ; preds = %110
  %112 = getelementptr inbounds %struct.VmaAllocator_T, ptr %19, i32 0, i32 32
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = invoke noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE7GetNextEPK9VmaPool_T(ptr noundef %113)
          to label %115 unwind label %86

115:                                              ; preds = %111
  store ptr %114, ptr %10, align 8, !tbaa !5
  br label %82, !llvm.loop !44

116:                                              ; preds = %102, %95, %90
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %11, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %120

120:                                              ; preds = %116, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @_ZN16VmaMutexLockReadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %228

121:                                              ; preds = %85
  call void @_ZN16VmaMutexLockReadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %137, %121
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %19)
  %125 = icmp ult i32 %123, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %140

127:                                              ; preds = %122
  %128 = getelementptr inbounds %struct.VmaAllocator_T, ptr %19, i32 0, i32 22
  %129 = load i32, ptr %15, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds [32 x %class.VmaDedicatedAllocationList], ptr %128, i64 0, i64 %130
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %132, i32 0, i32 0
  %134 = load i32, ptr %15, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds [32 x %struct.VmaDetailedStatistics], ptr %133, i64 0, i64 %135
  call void @_ZN26VmaDedicatedAllocationList21AddDetailedStatisticsER21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(88) %131, ptr noundef nonnull align 8 dereferenceable(64) %136)
  br label %137

137:                                              ; preds = %127
  %138 = load i32, ptr %15, align 4, !tbaa !9
  %139 = add i32 %138, 1
  store i32 %139, ptr %15, align 4, !tbaa !9
  br label %122, !llvm.loop !45

140:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %164, %140
  %142 = load i32, ptr %16, align 4, !tbaa !9
  %143 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %19)
  %144 = icmp ult i32 %142, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %167

146:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %147 = getelementptr inbounds %struct.VmaAllocator_T, ptr %19, i32 0, i32 20
  %148 = getelementptr inbounds %struct.VkPhysicalDeviceMemoryProperties, ptr %147, i32 0, i32 1
  %149 = load i32, ptr %16, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = getelementptr inbounds [32 x %struct.VkMemoryType], ptr %148, i64 0, i64 %150
  %152 = getelementptr inbounds %struct.VkMemoryType, ptr %151, i32 0, i32 1
  %153 = load i32, ptr %152, align 4, !tbaa !46
  store i32 %153, ptr %17, align 4, !tbaa !9
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %154, i32 0, i32 1
  %156 = load i32, ptr %17, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds [16 x %struct.VmaDetailedStatistics], ptr %155, i64 0, i64 %157
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %159, i32 0, i32 0
  %161 = load i32, ptr %16, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds [32 x %struct.VmaDetailedStatistics], ptr %160, i64 0, i64 %162
  call void @_ZL24VmaAddDetailedStatisticsR21VmaDetailedStatisticsRKS_(ptr noundef nonnull align 8 dereferenceable(64) %158, ptr noundef nonnull align 8 dereferenceable(64) %163)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %164

164:                                              ; preds = %146
  %165 = load i32, ptr %16, align 4, !tbaa !9
  %166 = add i32 %165, 1
  store i32 %166, ptr %16, align 4, !tbaa !9
  br label %141, !llvm.loop !48

167:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %181, %167
  %169 = load i32, ptr %18, align 4, !tbaa !9
  %170 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryHeapCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %19)
  %171 = icmp ult i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %184

173:                                              ; preds = %168
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %174, i32 0, i32 2
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %176, i32 0, i32 1
  %178 = load i32, ptr %18, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = getelementptr inbounds [16 x %struct.VmaDetailedStatistics], ptr %177, i64 0, i64 %179
  call void @_ZL24VmaAddDetailedStatisticsR21VmaDetailedStatisticsRKS_(ptr noundef nonnull align 8 dereferenceable(64) %175, ptr noundef nonnull align 8 dereferenceable(64) %180)
  br label %181

181:                                              ; preds = %173
  %182 = load i32, ptr %18, align 4, !tbaa !9
  %183 = add i32 %182, 1
  store i32 %183, ptr %18, align 4, !tbaa !9
  br label %168, !llvm.loop !49

184:                                              ; preds = %172
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %185, i32 0, i32 2
  %187 = getelementptr inbounds %struct.VmaDetailedStatistics, ptr %186, i32 0, i32 0
  %188 = getelementptr inbounds %struct.VmaStatistics, ptr %187, i32 0, i32 1
  %189 = load i32, ptr %188, align 4, !tbaa !50
  %190 = icmp eq i32 %189, 0
  br i1 %190, label %201, label %191

191:                                              ; preds = %184
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %192, i32 0, i32 2
  %194 = getelementptr inbounds %struct.VmaDetailedStatistics, ptr %193, i32 0, i32 3
  %195 = load i64, ptr %194, align 8, !tbaa !54
  %196 = load ptr, ptr %4, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %196, i32 0, i32 2
  %198 = getelementptr inbounds %struct.VmaDetailedStatistics, ptr %197, i32 0, i32 2
  %199 = load i64, ptr %198, align 8, !tbaa !55
  %200 = icmp uge i64 %195, %199
  br label %201

201:                                              ; preds = %191, %184
  %202 = phi i1 [ true, %184 ], [ %200, %191 ]
  br i1 %202, label %203, label %204

203:                                              ; preds = %201
  br label %206

204:                                              ; preds = %201
  call void @__assert_fail(ptr noundef @.str.273, ptr noundef @.str.2, i32 noundef 15287, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T19CalculateStatisticsEP18VmaTotalStatistics) #5
  unreachable

205:                                              ; No predecessors!
  br label %206

206:                                              ; preds = %205, %203
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %207, i32 0, i32 2
  %209 = getelementptr inbounds %struct.VmaDetailedStatistics, ptr %208, i32 0, i32 1
  %210 = load i32, ptr %209, align 8, !tbaa !56
  %211 = icmp eq i32 %210, 0
  br i1 %211, label %222, label %212

212:                                              ; preds = %206
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %213, i32 0, i32 2
  %215 = getelementptr inbounds %struct.VmaDetailedStatistics, ptr %214, i32 0, i32 5
  %216 = load i64, ptr %215, align 8, !tbaa !57
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.VmaTotalStatistics, ptr %217, i32 0, i32 2
  %219 = getelementptr inbounds %struct.VmaDetailedStatistics, ptr %218, i32 0, i32 4
  %220 = load i64, ptr %219, align 8, !tbaa !58
  %221 = icmp uge i64 %216, %220
  br label %222

222:                                              ; preds = %212, %206
  %223 = phi i1 [ true, %206 ], [ %221, %212 ]
  br i1 %223, label %224, label %225

224:                                              ; preds = %222
  br label %227

225:                                              ; preds = %222
  call void @__assert_fail(ptr noundef @.str.274, ptr noundef @.str.2, i32 noundef 15289, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T19CalculateStatisticsEP18VmaTotalStatistics) #5
  unreachable

226:                                              ; No predecessors!
  br label %227

227:                                              ; preds = %226, %224
  ret void

228:                                              ; preds = %120
  %229 = load ptr, ptr %11, align 8
  %230 = load i32, ptr %12, align 4
  %231 = insertvalue { ptr, i32 } poison, ptr %229, 0
  %232 = insertvalue { ptr, i32 } %231, i32 %230, 1
  resume { ptr, i32 } %232
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE7GetNextEPK9VmaPool_T(ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL24VmaAddDetailedStatisticsR21VmaDetailedStatisticsRKS_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) #2

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


; 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.VmaMutexLockRead = type { ptr }
%struct.VmaDetailedStatistics = type { %struct.VmaStatistics, i32, i64, i64, i64, i64 }
%struct.VmaStatistics = type { i32, i32, i64, i64 }
%class.VmaDedicatedAllocationList = type { i8, %class.VmaRWMutex, %class.VmaIntrusiveLinkedList }
%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 = type { ptr, ptr, i64 }
%struct.VkMemoryType = type { i32, i32 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [116 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T19CalculateStatisticsEP18VmaTotalStatistics = external hidden unnamed_addr constant [63 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [108 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16VmaMutexLockReadC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(56), i1 noundef zeroext) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN26VmaDedicatedAllocationList21AddDetailedStatisticsER21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14VmaBlockVector21AddDetailedStatisticsER21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(181), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14VmaAllocator_T19CalculateStatisticsEP18VmaTotalStatistics(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
.preheader68:
  %2 = alloca %struct.VmaMutexLockRead, align 8
  %3 = getelementptr inbounds i8, ptr %1, i64 3072
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %3)
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %4 = getelementptr inbounds i8, ptr %1, i64 64
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %4)
  %5 = getelementptr inbounds i8, ptr %1, i64 128
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %5)
  %6 = getelementptr inbounds i8, ptr %1, i64 192
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %6)
  %7 = getelementptr inbounds i8, ptr %1, i64 256
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %7)
  %8 = getelementptr inbounds i8, ptr %1, i64 320
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %8)
  %9 = getelementptr inbounds i8, ptr %1, i64 384
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %9)
  %10 = getelementptr inbounds i8, ptr %1, i64 448
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %10)
  %11 = getelementptr inbounds i8, ptr %1, i64 512
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %11)
  %12 = getelementptr inbounds i8, ptr %1, i64 576
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %12)
  %13 = getelementptr inbounds i8, ptr %1, i64 640
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %13)
  %14 = getelementptr inbounds i8, ptr %1, i64 704
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %14)
  %15 = getelementptr inbounds i8, ptr %1, i64 768
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %15)
  %16 = getelementptr inbounds i8, ptr %1, i64 832
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %16)
  %17 = getelementptr inbounds i8, ptr %1, i64 896
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %17)
  %18 = getelementptr inbounds i8, ptr %1, i64 960
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %18)
  %19 = getelementptr inbounds i8, ptr %1, i64 1024
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %19)
  %20 = getelementptr inbounds i8, ptr %1, i64 1088
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %20)
  %21 = getelementptr inbounds i8, ptr %1, i64 1152
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %21)
  %22 = getelementptr inbounds i8, ptr %1, i64 1216
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %22)
  %23 = getelementptr inbounds i8, ptr %1, i64 1280
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %23)
  %24 = getelementptr inbounds i8, ptr %1, i64 1344
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %24)
  %25 = getelementptr inbounds i8, ptr %1, i64 1408
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %25)
  %26 = getelementptr inbounds i8, ptr %1, i64 1472
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %26)
  %27 = getelementptr inbounds i8, ptr %1, i64 1536
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %27)
  %28 = getelementptr inbounds i8, ptr %1, i64 1600
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %28)
  %29 = getelementptr inbounds i8, ptr %1, i64 1664
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %29)
  %30 = getelementptr inbounds i8, ptr %1, i64 1728
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %30)
  %31 = getelementptr inbounds i8, ptr %1, i64 1792
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %31)
  %32 = getelementptr inbounds i8, ptr %1, i64 1856
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %32)
  %33 = getelementptr inbounds i8, ptr %1, i64 1920
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %33)
  %34 = getelementptr inbounds i8, ptr %1, i64 1984
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %34)
  %35 = getelementptr inbounds i8, ptr %1, i64 2048
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %35)
  %36 = getelementptr inbounds i8, ptr %1, i64 2112
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %36)
  %37 = getelementptr inbounds i8, ptr %1, i64 2176
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %37)
  %38 = getelementptr inbounds i8, ptr %1, i64 2240
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %38)
  %39 = getelementptr inbounds i8, ptr %1, i64 2304
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %39)
  %40 = getelementptr inbounds i8, ptr %1, i64 2368
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %40)
  %41 = getelementptr inbounds i8, ptr %1, i64 2432
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %41)
  %42 = getelementptr inbounds i8, ptr %1, i64 2496
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %42)
  %43 = getelementptr inbounds i8, ptr %1, i64 2560
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %43)
  %44 = getelementptr inbounds i8, ptr %1, i64 2624
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %44)
  %45 = getelementptr inbounds i8, ptr %1, i64 2688
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %45)
  %46 = getelementptr inbounds i8, ptr %1, i64 2752
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %46)
  %47 = getelementptr inbounds i8, ptr %1, i64 2816
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %47)
  %48 = getelementptr inbounds i8, ptr %1, i64 2880
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %48)
  %49 = getelementptr inbounds i8, ptr %1, i64 2944
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %49)
  %50 = getelementptr inbounds i8, ptr %1, i64 3008
  tail call void @_ZL26VmaClearDetailedStatisticsR21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(64) %50)
  %51 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %.not80 = icmp eq i32 %51, 0
  br i1 %.not80, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader68
  %52 = getelementptr inbounds i8, ptr %0, i64 1552
  br label %58

._crit_edge:                                      ; preds = %63, %.preheader68
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %53 = getelementptr inbounds i8, ptr %0, i64 5616
  %54 = load i8, ptr %0, align 8, !tbaa !5, !range !36, !noundef !37
  %55 = trunc nuw i8 %54 to i1
  call void @_ZN16VmaMutexLockReadC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(56) %53, i1 noundef zeroext %55)
  %56 = getelementptr inbounds i8, ptr %0, i64 5672
  %57 = call noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE5FrontEv(ptr noundef nonnull align 8 dereferenceable(24) %56)
  br label %67

58:                                               ; preds = %.lr.ph, %63
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %63 ]
  %59 = getelementptr inbounds [32 x ptr], ptr %52, i64 0, i64 %indvars.iv
  %60 = load ptr, ptr %59, align 8, !tbaa !38
  %.not65 = icmp eq ptr %60, null
  br i1 %.not65, label %63, label %61

61:                                               ; preds = %58
  %62 = getelementptr inbounds [32 x %struct.VmaDetailedStatistics], ptr %1, i64 0, i64 %indvars.iv
  tail call void @_ZN14VmaBlockVector21AddDetailedStatisticsER21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(181) %60, ptr noundef nonnull align 8 dereferenceable(64) %62)
  br label %63

63:                                               ; preds = %61, %58
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %64 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %65 = zext i32 %64 to i64
  %66 = icmp ult i64 %indvars.iv.next, %65
  br i1 %66, label %58, label %._crit_edge, !llvm.loop !39

67:                                               ; preds = %79, %._crit_edge
  %.060 = phi ptr [ %57, %._crit_edge ], [ %80, %79 ]
  %.not = icmp eq ptr %.060, null
  br i1 %.not, label %68, label %73

68:                                               ; preds = %67
  call void @_ZN16VmaMutexLockReadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  %69 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %.not81 = icmp eq i32 %69, 0
  br i1 %.not81, label %.preheader66, label %.lr.ph74

.lr.ph74:                                         ; preds = %68
  %70 = getelementptr inbounds i8, ptr %0, i64 1808
  br label %86

71:                                               ; preds = %79
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %83

73:                                               ; preds = %67
  %74 = call noundef i32 @_ZNK14VmaBlockVector18GetMemoryTypeIndexEv(ptr noundef nonnull align 8 dereferenceable(181) %.060)
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds [32 x %struct.VmaDetailedStatistics], ptr %1, i64 0, i64 %75
  invoke void @_ZN14VmaBlockVector21AddDetailedStatisticsER21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(181) %.060, ptr noundef nonnull align 8 dereferenceable(64) %76)
          to label %77 unwind label %81

77:                                               ; preds = %73
  %78 = getelementptr inbounds i8, ptr %.060, i64 184
  invoke void @_ZN26VmaDedicatedAllocationList21AddDetailedStatisticsER21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(88) %78, ptr noundef nonnull align 8 dereferenceable(64) %76)
          to label %79 unwind label %81

79:                                               ; preds = %77
  %80 = invoke noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE7GetNextEPK9VmaPool_T(ptr noundef nonnull %.060)
          to label %67 unwind label %71, !llvm.loop !41

81:                                               ; preds = %77, %73
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %83

83:                                               ; preds = %81, %71
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %82, %81 ]
  call void @_ZN16VmaMutexLockReadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn

.preheader66:                                     ; preds = %86, %68
  %84 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %.not82 = icmp eq i32 %84, 0
  br i1 %.not82, label %.preheader, label %.lr.ph76

.lr.ph76:                                         ; preds = %.preheader66
  %85 = getelementptr inbounds i8, ptr %0, i64 1036
  br label %93

86:                                               ; preds = %.lr.ph74, %86
  %indvars.iv87 = phi i64 [ 0, %.lr.ph74 ], [ %indvars.iv.next88, %86 ]
  %87 = getelementptr inbounds [32 x %class.VmaDedicatedAllocationList], ptr %70, i64 0, i64 %indvars.iv87
  %88 = getelementptr inbounds [32 x %struct.VmaDetailedStatistics], ptr %1, i64 0, i64 %indvars.iv87
  call void @_ZN26VmaDedicatedAllocationList21AddDetailedStatisticsER21VmaDetailedStatistics(ptr noundef nonnull align 8 dereferenceable(88) %87, ptr noundef nonnull align 8 dereferenceable(64) %88)
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %89 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %90 = zext i32 %89 to i64
  %91 = icmp ult i64 %indvars.iv.next88, %90
  br i1 %91, label %86, label %.preheader66, !llvm.loop !42

.preheader:                                       ; preds = %93, %.preheader66
  %92 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryHeapCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %.not83 = icmp eq i32 %92, 0
  br i1 %.not83, label %._crit_edge79, label %.lr.ph78

93:                                               ; preds = %.lr.ph76, %93
  %indvars.iv90 = phi i64 [ 0, %.lr.ph76 ], [ %indvars.iv.next91, %93 ]
  %94 = getelementptr inbounds [32 x %struct.VkMemoryType], ptr %85, i64 0, i64 %indvars.iv90, i32 1
  %95 = load i32, ptr %94, align 8, !tbaa !43
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds [16 x %struct.VmaDetailedStatistics], ptr %35, i64 0, i64 %96
  %98 = getelementptr inbounds [32 x %struct.VmaDetailedStatistics], ptr %1, i64 0, i64 %indvars.iv90
  call void @_ZL24VmaAddDetailedStatisticsR21VmaDetailedStatisticsRKS_(ptr noundef nonnull align 8 dereferenceable(64) %97, ptr noundef nonnull align 8 dereferenceable(64) %98)
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %99 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %100 = zext i32 %99 to i64
  %101 = icmp ult i64 %indvars.iv.next91, %100
  br i1 %101, label %93, label %.preheader, !llvm.loop !45

._crit_edge79:                                    ; preds = %.lr.ph78, %.preheader
  %102 = getelementptr inbounds i8, ptr %1, i64 3076
  %103 = load i32, ptr %102, align 4, !tbaa !46
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %.critedge, label %109

.lr.ph78:                                         ; preds = %.preheader, %.lr.ph78
  %indvars.iv93 = phi i64 [ %indvars.iv.next94, %.lr.ph78 ], [ 0, %.preheader ]
  %105 = getelementptr inbounds [16 x %struct.VmaDetailedStatistics], ptr %35, i64 0, i64 %indvars.iv93
  call void @_ZL24VmaAddDetailedStatisticsR21VmaDetailedStatisticsRKS_(ptr noundef nonnull align 8 dereferenceable(64) %3, ptr noundef nonnull align 8 dereferenceable(64) %105)
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %106 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryHeapCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %107 = zext i32 %106 to i64
  %108 = icmp ult i64 %indvars.iv.next94, %107
  br i1 %108, label %.lr.ph78, label %._crit_edge79, !llvm.loop !50

109:                                              ; preds = %._crit_edge79
  %110 = getelementptr inbounds i8, ptr %1, i64 3112
  %111 = load i64, ptr %110, align 8, !tbaa !51
  %112 = getelementptr inbounds i8, ptr %1, i64 3104
  %113 = load i64, ptr %112, align 8, !tbaa !52
  %.not62 = icmp ult i64 %111, %113
  br i1 %.not62, label %114, label %.critedge

114:                                              ; preds = %109
  call void @__assert_fail(ptr noundef nonnull @.str.273, ptr noundef nonnull @.str.2, i32 noundef 15287, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T19CalculateStatisticsEP18VmaTotalStatistics) #5
  unreachable

.critedge:                                        ; preds = %._crit_edge79, %109
  %115 = getelementptr inbounds i8, ptr %1, i64 3096
  %116 = load i32, ptr %115, align 8, !tbaa !53
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %.critedge2, label %118

118:                                              ; preds = %.critedge
  %119 = getelementptr inbounds i8, ptr %1, i64 3128
  %120 = load i64, ptr %119, align 8, !tbaa !54
  %121 = getelementptr inbounds i8, ptr %1, i64 3120
  %122 = load i64, ptr %121, align 8, !tbaa !55
  %.not63 = icmp ult i64 %120, %122
  br i1 %.not63, label %123, label %.critedge2

123:                                              ; preds = %118
  call void @__assert_fail(ptr noundef nonnull @.str.274, ptr noundef nonnull @.str.2, i32 noundef 15289, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T19CalculateStatisticsEP18VmaTotalStatistics) #5
  unreachable

.critedge2:                                       ; preds = %.critedge, %118
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE7GetNextEPK9VmaPool_T(ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL24VmaAddDetailedStatisticsR21VmaDetailedStatisticsRKS_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

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


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