; 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.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.VkMappedMemoryRange = type { i32, ptr, ptr, i64, i64 }
%class.VmaDeviceMemoryBlock = type { ptr, ptr, i32, i32, ptr, %class.VmaMutex, %class.VmaMappingHysteresis, i32, ptr }
%class.VmaMappingHysteresis = type { i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange = external hidden unnamed_addr constant [119 x i8], align 1
@.str.284 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.285 = external hidden unnamed_addr constant [44 x i8], align 1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL10VmaAlignUpImET_S0_S0_(i64 noundef, i64 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL12VmaAlignDownImET_S0_S0_(i64 noundef, i64 noundef) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK15VmaAllocation_T9GetOffsetEv(ptr noundef nonnull align 8 dereferenceable(84)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK15VmaAllocation_T9GetMemoryEv(ptr noundef nonnull align 8 dereferenceable(84)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(40) %4) #4 align 2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = call noundef i32 @_ZNK15VmaAllocation_T18GetMemoryTypeIndexEv(ptr noundef nonnull align 8 dereferenceable(84) %22)
  store i32 %23, ptr %12, align 4, !tbaa !11
  %24 = load i64, ptr %10, align 8, !tbaa !9
  %25 = icmp ugt i64 %24, 0
  br i1 %25, label %26, label %165

26:                                               ; preds = %5
  %27 = load i32, ptr %12, align 4, !tbaa !11
  %28 = call noundef zeroext i1 @_ZNK14VmaAllocator_T23IsMemoryTypeNonCoherentEj(ptr noundef nonnull align 8 dereferenceable(5916) %21, i32 noundef %27)
  br i1 %28, label %29, label %165

29:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %30 = getelementptr inbounds %struct.VmaAllocator_T, ptr %21, i32 0, i32 19
  %31 = getelementptr inbounds %struct.VkPhysicalDeviceProperties, ptr %30, i32 0, i32 7
  %32 = getelementptr inbounds %struct.VkPhysicalDeviceLimits, ptr %31, i32 0, i32 105
  %33 = load i64, ptr %32, align 8, !tbaa !13
  store i64 %33, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %34)
  store i64 %35, ptr %14, align 8, !tbaa !9
  %36 = load i64, ptr %9, align 8, !tbaa !9
  %37 = load i64, ptr %14, align 8, !tbaa !9
  %38 = icmp ule i64 %36, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %29
  br label %42

40:                                               ; preds = %29
  call void @__assert_fail(ptr noundef @.str.283, ptr noundef @.str.2, i32 noundef 15920, ptr noundef @__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange) #6
  unreachable

41:                                               ; No predecessors!
  br label %42

42:                                               ; preds = %41, %39
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %43, i32 0, i32 0
  store i32 6, ptr %44, align 8, !tbaa !39
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %45, i32 0, i32 1
  store ptr null, ptr %46, align 8, !tbaa !42
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = call noundef ptr @_ZNK15VmaAllocation_T9GetMemoryEv(ptr noundef nonnull align 8 dereferenceable(84) %47)
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %49, i32 0, i32 2
  store ptr %48, ptr %50, align 8, !tbaa !43
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = call noundef i32 @_ZNK15VmaAllocation_T7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(84) %51)
  switch i32 %52, label %163 [
    i32 2, label %53
    i32 1, label %98
  ]

53:                                               ; preds = %42
  %54 = load i64, ptr %9, align 8, !tbaa !9
  %55 = load i64, ptr %13, align 8, !tbaa !9
  %56 = call noundef i64 @_ZL12VmaAlignDownImET_S0_S0_(i64 noundef %54, i64 noundef %55)
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %57, i32 0, i32 3
  store i64 %56, ptr %58, align 8, !tbaa !44
  %59 = load i64, ptr %10, align 8, !tbaa !9
  %60 = icmp eq i64 %59, -1
  br i1 %60, label %61, label %69

61:                                               ; preds = %53
  %62 = load i64, ptr %14, align 8, !tbaa !9
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %63, i32 0, i32 3
  %65 = load i64, ptr %64, align 8, !tbaa !44
  %66 = sub i64 %62, %65
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %67, i32 0, i32 4
  store i64 %66, ptr %68, align 8, !tbaa !45
  br label %97

69:                                               ; preds = %53
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = load i64, ptr %10, align 8, !tbaa !9
  %72 = add i64 %70, %71
  %73 = load i64, ptr %14, align 8, !tbaa !9
  %74 = icmp ule i64 %72, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %69
  br label %78

76:                                               ; preds = %69
  call void @__assert_fail(ptr noundef @.str.284, ptr noundef @.str.2, i32 noundef 15936, ptr noundef @__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange) #6
  unreachable

77:                                               ; No predecessors!
  br label %78

78:                                               ; preds = %77, %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %79 = load i64, ptr %10, align 8, !tbaa !9
  %80 = load i64, ptr %9, align 8, !tbaa !9
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %81, i32 0, i32 3
  %83 = load i64, ptr %82, align 8, !tbaa !44
  %84 = sub i64 %80, %83
  %85 = add i64 %79, %84
  %86 = load i64, ptr %13, align 8, !tbaa !9
  %87 = call noundef i64 @_ZL10VmaAlignUpImET_S0_S0_(i64 noundef %85, i64 noundef %86)
  store i64 %87, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %88 = load i64, ptr %14, align 8, !tbaa !9
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %89, i32 0, i32 3
  %91 = load i64, ptr %90, align 8, !tbaa !44
  %92 = sub i64 %88, %91
  store i64 %92, ptr %16, align 8, !tbaa !9
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %95, i32 0, i32 4
  store i64 %94, ptr %96, align 8, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %97

97:                                               ; preds = %78, %61
  br label %164

98:                                               ; preds = %42
  %99 = load i64, ptr %9, align 8, !tbaa !9
  %100 = load i64, ptr %13, align 8, !tbaa !9
  %101 = call noundef i64 @_ZL12VmaAlignDownImET_S0_S0_(i64 noundef %99, i64 noundef %100)
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %102, i32 0, i32 3
  store i64 %101, ptr %103, align 8, !tbaa !44
  %104 = load i64, ptr %10, align 8, !tbaa !9
  %105 = icmp eq i64 %104, -1
  br i1 %105, label %106, label %110

106:                                              ; preds = %98
  %107 = load i64, ptr %14, align 8, !tbaa !9
  %108 = load i64, ptr %9, align 8, !tbaa !9
  %109 = sub i64 %107, %108
  store i64 %109, ptr %10, align 8, !tbaa !9
  br label %120

110:                                              ; preds = %98
  %111 = load i64, ptr %9, align 8, !tbaa !9
  %112 = load i64, ptr %10, align 8, !tbaa !9
  %113 = add i64 %111, %112
  %114 = load i64, ptr %14, align 8, !tbaa !9
  %115 = icmp ule i64 %113, %114
  br i1 %115, label %116, label %117

116:                                              ; preds = %110
  br label %119

117:                                              ; preds = %110
  call void @__assert_fail(ptr noundef @.str.284, ptr noundef @.str.2, i32 noundef 15952, ptr noundef @__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange) #6
  unreachable

118:                                              ; No predecessors!
  br label %119

119:                                              ; preds = %118, %116
  br label %120

120:                                              ; preds = %119, %106
  %121 = load i64, ptr %10, align 8, !tbaa !9
  %122 = load i64, ptr %9, align 8, !tbaa !9
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %123, i32 0, i32 3
  %125 = load i64, ptr %124, align 8, !tbaa !44
  %126 = sub i64 %122, %125
  %127 = add i64 %121, %126
  %128 = load i64, ptr %13, align 8, !tbaa !9
  %129 = call noundef i64 @_ZL10VmaAlignUpImET_S0_S0_(i64 noundef %127, i64 noundef %128)
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %130, i32 0, i32 4
  store i64 %129, ptr %131, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = call noundef i64 @_ZNK15VmaAllocation_T9GetOffsetEv(ptr noundef nonnull align 8 dereferenceable(84) %132)
  store i64 %133, ptr %17, align 8, !tbaa !9
  %134 = load i64, ptr %17, align 8, !tbaa !9
  %135 = load i64, ptr %13, align 8, !tbaa !9
  %136 = urem i64 %134, %135
  %137 = icmp eq i64 %136, 0
  br i1 %137, label %138, label %139

138:                                              ; preds = %120
  br label %141

139:                                              ; preds = %120
  call void @__assert_fail(ptr noundef @.str.285, ptr noundef @.str.2, i32 noundef 15958, ptr noundef @__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange) #6
  unreachable

140:                                              ; No predecessors!
  br label %141

141:                                              ; preds = %140, %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = call noundef ptr @_ZNK15VmaAllocation_T8GetBlockEv(ptr noundef nonnull align 8 dereferenceable(84) %142)
  %144 = getelementptr inbounds %class.VmaDeviceMemoryBlock, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !46
  %146 = call noundef i64 @_ZNK16VmaBlockMetadata7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(33) %145)
  store i64 %146, ptr %18, align 8, !tbaa !9
  %147 = load i64, ptr %17, align 8, !tbaa !9
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %148, i32 0, i32 3
  %150 = load i64, ptr %149, align 8, !tbaa !44
  %151 = add i64 %150, %147
  store i64 %151, ptr %149, align 8, !tbaa !44
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %152, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %154 = load i64, ptr %18, align 8, !tbaa !9
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %155, i32 0, i32 3
  %157 = load i64, ptr %156, align 8, !tbaa !44
  %158 = sub i64 %154, %157
  store i64 %158, ptr %19, align 8, !tbaa !9
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %160 = load i64, ptr %159, align 8, !tbaa !9
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %161, i32 0, i32 4
  store i64 %160, ptr %162, align 8, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %164

163:                                              ; preds = %42
  call void @__assert_fail(ptr noundef @.str.57, ptr noundef @.str.2, i32 noundef 15966, ptr noundef @__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange) #6
  unreachable

164:                                              ; preds = %141, %97
  store i1 true, ptr %6, align 1
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %166

165:                                              ; preds = %26, %5
  store i1 false, ptr %6, align 1
  store i32 1, ptr %20, align 4
  br label %166

166:                                              ; preds = %165, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %167 = load i1, ptr %6, align 1
  ret i1 %167
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK14VmaAllocator_T23IsMemoryTypeNonCoherentEj(ptr noundef nonnull align 8 dereferenceable(5916), i32 noundef) #2 align 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 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 #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 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 = { nounwind }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 1000}
!14 = !{!"_ZTS14VmaAllocator_T", !15, i64 0, !12, i64 4, !15, i64 8, !15, i64 9, !15, i64 10, !15, i64 11, !15, i64 12, !15, i64 13, !6, i64 16, !6, i64 24, !15, i64 32, !16, i64 40, !17, i64 88, !18, i64 112, !12, i64 200, !25, i64 208, !30, i64 1032, !7, i64 1552, !7, i64 1808, !31, i64 4624, !32, i64 5456, !10, i64 5464, !6, i64 5472, !32, i64 5480, !32, i64 5484, !7, i64 5488, !34, i64 5616, !37, i64 5672, !12, i64 5696, !38, i64 5704, !12, 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, !12, i64 8, !23, i64 16}
!23 = !{!"_ZTS9VmaVectorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockE15VmaStlAllocatorIS3_EE", !24, i64 0, !6, i64 8, !10, i64 16, !10, i64 24}
!24 = !{!"_ZTS15VmaStlAllocatorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockEE", !6, i64 0}
!25 = !{!"_ZTS26VkPhysicalDeviceProperties", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !26, i64 16, !7, i64 20, !7, i64 276, !27, i64 296, !29, i64 800}
!26 = !{!"_ZTS20VkPhysicalDeviceType", !7, i64 0}
!27 = !{!"_ZTS22VkPhysicalDeviceLimits", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !10, i64 48, !10, i64 56, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !12, i64 208, !12, i64 212, !12, i64 216, !7, i64 220, !12, i64 232, !7, i64 236, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !28, i64 268, !28, i64 272, !12, i64 276, !7, i64 280, !7, i64 288, !12, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !12, i64 336, !12, i64 340, !12, i64 344, !12, i64 348, !28, i64 352, !28, i64 356, !12, i64 360, !12, i64 364, !12, i64 368, !12, i64 372, !12, i64 376, !12, i64 380, !12, i64 384, !12, i64 388, !12, i64 392, !12, i64 396, !12, i64 400, !12, i64 404, !12, i64 408, !12, i64 412, !12, i64 416, !12, i64 420, !28, i64 424, !12, i64 428, !12, i64 432, !12, i64 436, !12, i64 440, !7, i64 444, !7, i64 452, !28, i64 460, !28, i64 464, !12, i64 468, !12, i64 472, !10, i64 480, !10, i64 488, !10, i64 496}
!28 = !{!"float", !7, i64 0}
!29 = !{!"_ZTS32VkPhysicalDeviceSparseProperties", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!30 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !12, i64 0, !7, i64 4, !12, 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", !12, 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, !10, 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 = !{!40, !41, i64 0}
!40 = !{!"_ZTS19VkMappedMemoryRange", !41, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 32}
!41 = !{!"_ZTS15VkStructureType", !7, i64 0}
!42 = !{!40, !6, i64 8}
!43 = !{!40, !6, i64 16}
!44 = !{!40, !10, i64 24}
!45 = !{!40, !10, i64 32}
!46 = !{!47, !6, i64 0}
!47 = !{!"_ZTS20VmaDeviceMemoryBlock", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !6, i64 24, !19, i64 32, !48, i64 72, !12, i64 84, !6, i64 88}
!48 = !{!"_ZTS20VmaMappingHysteresis", !12, i64 0, !12, i64 4, !12, i64 8}


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

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange = external hidden unnamed_addr constant [119 x i8], align 1
@.str.284 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.285 = external hidden unnamed_addr constant [44 x i8], align 1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL10VmaAlignUpImET_S0_S0_(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL12VmaAlignDownImET_S0_S0_(i64 noundef, i64 noundef) local_unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef nonnull %1, i64 noundef %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(40) %4) local_unnamed_addr #4 align 2 {
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = tail call noundef i32 @_ZNK15VmaAllocation_T18GetMemoryTypeIndexEv(ptr noundef nonnull align 8 dereferenceable(84) %1)
  %.not = icmp eq i64 %3, 0
  br i1 %.not, label %68, label %10

10:                                               ; preds = %5
  %11 = tail call noundef zeroext i1 @_ZNK14VmaAllocator_T23IsMemoryTypeNonCoherentEj(ptr noundef nonnull align 8 dereferenceable(5916) %0, i32 noundef %9)
  br i1 %11, label %12, label %68

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %0, i64 1000
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = tail call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %1)
  %.not57 = icmp ult i64 %15, %2
  br i1 %.not57, label %16, label %17

16:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.283, ptr noundef nonnull @.str.2, i32 noundef 15920, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange) #5
  unreachable

17:                                               ; preds = %12
  store i32 6, ptr %4, align 8, !tbaa !36
  %18 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr null, ptr %18, align 8, !tbaa !39
  %19 = tail call noundef ptr @_ZNK15VmaAllocation_T9GetMemoryEv(ptr noundef nonnull align 8 dereferenceable(84) %1)
  %20 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr %19, ptr %20, align 8, !tbaa !40
  %21 = tail call noundef i32 @_ZNK15VmaAllocation_T7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(84) %1)
  switch i32 %21, label %67 [
    i32 2, label %22
    i32 1, label %40
  ]

22:                                               ; preds = %17
  %23 = tail call noundef i64 @_ZL12VmaAlignDownImET_S0_S0_(i64 noundef %2, i64 noundef %14)
  %24 = getelementptr inbounds i8, ptr %4, i64 24
  store i64 %23, ptr %24, align 8, !tbaa !41
  %25 = icmp eq i64 %3, -1
  br i1 %25, label %26, label %29

26:                                               ; preds = %22
  %27 = sub i64 %15, %23
  %28 = getelementptr inbounds i8, ptr %4, i64 32
  store i64 %27, ptr %28, align 8, !tbaa !42
  br label %68

29:                                               ; preds = %22
  %30 = add i64 %3, %2
  %.not59 = icmp ugt i64 %30, %15
  br i1 %.not59, label %31, label %32

31:                                               ; preds = %29
  tail call void @__assert_fail(ptr noundef nonnull @.str.284, ptr noundef nonnull @.str.2, i32 noundef 15936, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange) #5
  unreachable

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %33 = sub i64 %30, %23
  %34 = tail call noundef i64 @_ZL10VmaAlignUpImET_S0_S0_(i64 noundef %33, i64 noundef %14)
  store i64 %34, ptr %6, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %35 = load i64, ptr %24, align 8, !tbaa !41
  %36 = sub i64 %15, %35
  store i64 %36, ptr %7, align 8, !tbaa !43
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %38 = load i64, ptr %37, align 8, !tbaa !43
  %39 = getelementptr inbounds i8, ptr %4, i64 32
  store i64 %38, ptr %39, align 8, !tbaa !42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %68

40:                                               ; preds = %17
  %41 = tail call noundef i64 @_ZL12VmaAlignDownImET_S0_S0_(i64 noundef %2, i64 noundef %14)
  %42 = getelementptr inbounds i8, ptr %4, i64 24
  store i64 %41, ptr %42, align 8, !tbaa !41
  %43 = icmp eq i64 %3, -1
  br i1 %43, label %44, label %46

44:                                               ; preds = %40
  %45 = sub i64 %15, %2
  br label %49

46:                                               ; preds = %40
  %47 = add i64 %3, %2
  %.not58 = icmp ugt i64 %47, %15
  br i1 %.not58, label %48, label %49

48:                                               ; preds = %46
  tail call void @__assert_fail(ptr noundef nonnull @.str.284, ptr noundef nonnull @.str.2, i32 noundef 15952, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange) #5
  unreachable

49:                                               ; preds = %46, %44
  %.053 = phi i64 [ %45, %44 ], [ %3, %46 ]
  %50 = sub i64 %2, %41
  %51 = add i64 %50, %.053
  %52 = tail call noundef i64 @_ZL10VmaAlignUpImET_S0_S0_(i64 noundef %51, i64 noundef %14)
  %53 = getelementptr inbounds i8, ptr %4, i64 32
  store i64 %52, ptr %53, align 8, !tbaa !42
  %54 = tail call noundef i64 @_ZNK15VmaAllocation_T9GetOffsetEv(ptr noundef nonnull align 8 dereferenceable(84) %1)
  %55 = urem i64 %54, %14
  %56 = icmp eq i64 %55, 0
  br i1 %56, label %58, label %57

57:                                               ; preds = %49
  tail call void @__assert_fail(ptr noundef nonnull @.str.285, ptr noundef nonnull @.str.2, i32 noundef 15958, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange) #5
  unreachable

58:                                               ; preds = %49
  %59 = tail call noundef ptr @_ZNK15VmaAllocation_T8GetBlockEv(ptr noundef nonnull align 8 dereferenceable(84) %1)
  %60 = load ptr, ptr %59, align 8, !tbaa !44
  %61 = tail call noundef i64 @_ZNK16VmaBlockMetadata7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(33) %60)
  %62 = load i64, ptr %42, align 8, !tbaa !41
  %63 = add i64 %62, %54
  store i64 %63, ptr %42, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %64 = sub i64 %61, %63
  store i64 %64, ptr %8, align 8, !tbaa !43
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %66 = load i64, ptr %65, align 8, !tbaa !43
  store i64 %66, ptr %53, align 8, !tbaa !42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %68

67:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.2, i32 noundef 15966, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK14VmaAllocator_T25GetFlushOrInvalidateRangeEP15VmaAllocation_TmmR19VkMappedMemoryRange) #5
  unreachable

68:                                               ; preds = %5, %10, %58, %32, %26
  %.0 = phi i1 [ true, %26 ], [ true, %32 ], [ true, %58 ], [ false, %10 ], [ false, %5 ]
  ret i1 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK14VmaAllocator_T23IsMemoryTypeNonCoherentEj(ptr noundef nonnull align 8 dereferenceable(5916), i32 noundef) local_unnamed_addr #2 align 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 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 #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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !21, i64 1000}
!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 = !{!37, !38, i64 0}
!37 = !{!"_ZTS19VkMappedMemoryRange", !38, i64 0, !11, i64 8, !11, i64 16, !21, i64 24, !21, i64 32}
!38 = !{!"_ZTS15VkStructureType", !8, i64 0}
!39 = !{!37, !11, i64 8}
!40 = !{!37, !11, i64 16}
!41 = !{!37, !21, i64 24}
!42 = !{!37, !21, i64 32}
!43 = !{!21, !21, i64 0}
!44 = !{!45, !11, i64 0}
!45 = !{!"_ZTS20VmaDeviceMemoryBlock", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 20, !11, i64 24, !15, i64 32, !46, i64 72, !10, i64 84, !11, i64 88}
!46 = !{!"_ZTS20VmaMappingHysteresis", !10, i64 0, !10, i64 4, !10, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass