; 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.VmaPoolCreateInfo = type { i32, i32, i64, i64, i64, float, i64, ptr }
%struct.VmaMutexLockWrite = type { ptr }
%struct.VkBaseInStructure = type { i32, ptr }
%struct.VmaAllocator_T = type <{ i8, [3 x i8], i32, i8, i8, i8, i8, i8, i8, [2 x i8], ptr, ptr, i8, [7 x i8], %struct.VkAllocationCallbacks, %struct.VmaDeviceMemoryCallbacks, %class.VmaAllocationObjectAllocator, i32, [4 x i8], %struct.VkPhysicalDeviceProperties, %struct.VkPhysicalDeviceMemoryProperties, [32 x ptr], [32 x %class.VmaDedicatedAllocationList], %struct.VmaCurrentBudgetData, %"struct.std::atomic", [4 x i8], i64, ptr, %"struct.std::atomic", %"struct.std::atomic", [32 x i32], %class.VmaRWMutex, %class.VmaIntrusiveLinkedList.14, i32, [4 x i8], %struct.VmaVulkanFunctions, i32, [4 x i8] }>
%struct.VkAllocationCallbacks = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.VmaDeviceMemoryCallbacks = type { ptr, ptr, ptr }
%class.VmaAllocationObjectAllocator = type { %class.VmaMutex, %class.VmaPoolAllocator.11 }
%class.VmaMutex = type { %"class.std::mutex" }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%class.VmaPoolAllocator.11 = type { ptr, i32, %class.VmaVector.12 }
%class.VmaVector.12 = type { %struct.VmaStlAllocator.13, ptr, i64, i64 }
%struct.VmaStlAllocator.13 = type { ptr }
%struct.VkPhysicalDeviceProperties = type { i32, i32, i32, i32, i32, [256 x i8], [16 x i8], %struct.VkPhysicalDeviceLimits, %struct.VkPhysicalDeviceSparseProperties }
%struct.VkPhysicalDeviceLimits = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [3 x i32], i32, [3 x i32], i32, i32, i32, i32, i32, float, float, i32, [2 x i32], [2 x float], i32, i64, i64, i64, i64, i32, i32, i32, i32, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, [2 x float], [2 x float], float, float, i32, i32, i64, i64, i64 }
%struct.VkPhysicalDeviceSparseProperties = type { i32, i32, i32, i32, i32 }
%struct.VkPhysicalDeviceMemoryProperties = type { i32, [32 x %struct.VkMemoryType], i32, [16 x %struct.VkMemoryHeap] }
%struct.VkMemoryType = type { i32, i32 }
%struct.VkMemoryHeap = type { i64, i32 }
%class.VmaDedicatedAllocationList = type { i8, %class.VmaRWMutex, %class.VmaIntrusiveLinkedList }
%class.VmaIntrusiveLinkedList = type { ptr, ptr, i64 }
%struct.VmaCurrentBudgetData = type { [16 x %"struct.std::atomic"], [16 x %"struct.std::atomic"], [16 x %"struct.std::atomic.9"], [16 x %"struct.std::atomic.9"], %"struct.std::atomic", %class.VmaRWMutex, [16 x i64], [16 x i64], [16 x i64] }
%"struct.std::atomic.9" = type { %"struct.std::__atomic_base.10" }
%"struct.std::__atomic_base.10" = type { i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%class.VmaRWMutex = type { %"class.std::shared_mutex" }
%"class.std::shared_mutex" = type { %"class.std::__shared_mutex_pthread" }
%"class.std::__shared_mutex_pthread" = type { %union.pthread_rwlock_t }
%union.pthread_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%class.VmaIntrusiveLinkedList.14 = type { ptr, ptr, i64 }
%struct.VmaVulkanFunctions = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.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.275 = external hidden unnamed_addr constant [73 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T10CreatePoolEPK17VmaPoolCreateInfoPP9VmaPool_T = external hidden unnamed_addr constant [74 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [48 x i8], align 1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14VmaAllocator_T10CreatePoolEPK17VmaPoolCreateInfoPP9VmaPool_T(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr noundef %1, ptr noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.VmaPoolCreateInfo, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.VmaMutexLockWrite, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr %8) #6
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %16, i64 56, i1 false), !tbaa.struct !9
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.VmaPoolCreateInfo, ptr %17, i32 0, i32 7
  %19 = load ptr, ptr %18, align 8, !tbaa !16
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %32

21:                                               ; preds = %3
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.VmaPoolCreateInfo, ptr %22, i32 0, i32 7
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  %25 = getelementptr inbounds %struct.VkBaseInStructure, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !18
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %21
  br label %31

29:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.275, ptr noundef @.str.2, i32 noundef 15387, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T10CreatePoolEPK17VmaPoolCreateInfoPP9VmaPool_T) #7
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  br label %32

32:                                               ; preds = %31, %3
  %33 = getelementptr inbounds %struct.VmaPoolCreateInfo, ptr %8, i32 0, i32 4
  %34 = load i64, ptr %33, align 8, !tbaa !21
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %32
  %37 = getelementptr inbounds %struct.VmaPoolCreateInfo, ptr %8, i32 0, i32 4
  store i64 -1, ptr %37, align 8, !tbaa !21
  br label %38

38:                                               ; preds = %36, %32
  %39 = getelementptr inbounds %struct.VmaPoolCreateInfo, ptr %8, i32 0, i32 3
  %40 = load i64, ptr %39, align 8, !tbaa !22
  %41 = getelementptr inbounds %struct.VmaPoolCreateInfo, ptr %8, i32 0, i32 4
  %42 = load i64, ptr %41, align 8, !tbaa !21
  %43 = icmp ugt i64 %40, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %38
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %111

45:                                               ; preds = %38
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.VmaPoolCreateInfo, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !23
  %49 = call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %15)
  %50 = icmp uge i32 %48, %49
  br i1 %50, label %60, label %51

51:                                               ; preds = %45
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.VmaPoolCreateInfo, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !23
  %55 = shl i32 1, %54
  %56 = getelementptr inbounds %struct.VmaAllocator_T, ptr %15, i32 0, i32 36
  %57 = load i32, ptr %56, align 8, !tbaa !24
  %58 = and i32 %55, %57
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %61

60:                                               ; preds = %51, %45
  store i32 -8, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %111

61:                                               ; preds = %51
  %62 = getelementptr inbounds %struct.VmaPoolCreateInfo, ptr %8, i32 0, i32 6
  %63 = load i64, ptr %62, align 8, !tbaa !49
  %64 = icmp ugt i64 %63, 0
  br i1 %64, label %65, label %73

65:                                               ; preds = %61
  %66 = getelementptr inbounds %struct.VmaPoolCreateInfo, ptr %8, i32 0, i32 6
  %67 = load i64, ptr %66, align 8, !tbaa !49
  %68 = call noundef zeroext i1 @_Z9VmaIsPow2ImEbT_(i64 noundef %67)
  br i1 %68, label %69, label %70

69:                                               ; preds = %65
  br label %72

70:                                               ; preds = %65
  call void @__assert_fail(ptr noundef @.str.276, ptr noundef @.str.2, i32 noundef 15406, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T10CreatePoolEPK17VmaPoolCreateInfoPP9VmaPool_T) #7
  unreachable

71:                                               ; No predecessors!
  br label %72

72:                                               ; preds = %71, %69
  br label %73

73:                                               ; preds = %72, %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %74 = getelementptr inbounds %struct.VmaPoolCreateInfo, ptr %8, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !23
  %76 = call noundef i64 @_ZN14VmaAllocator_T22CalcPreferredBlockSizeEj(ptr noundef nonnull align 8 dereferenceable(5916) %15, i32 noundef %75)
  store i64 %76, ptr %10, align 8, !tbaa !12
  %77 = call noundef ptr @_ZL11VmaAllocateI9VmaPool_TEPT_P14VmaAllocator_T(ptr noundef %15)
  %78 = load i64, ptr %10, align 8, !tbaa !12
  call void @_ZN9VmaPool_TC1EP14VmaAllocator_TRK17VmaPoolCreateInfom(ptr noundef nonnull align 8 dereferenceable(304) %77, ptr noundef %15, ptr noundef nonnull align 8 dereferenceable(56) %8, i64 noundef %78)
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %77, ptr %79, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.VmaPool_T, ptr %81, i32 0, i32 0
  %83 = call noundef i32 @_ZN14VmaBlockVector15CreateMinBlocksEv(ptr noundef nonnull align 8 dereferenceable(181) %82)
  store i32 %83, ptr %11, align 4, !tbaa !50
  %84 = load i32, ptr %11, align 4, !tbaa !50
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %91

86:                                               ; preds = %73
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  call void @_ZL10vma_deleteI9VmaPool_TEvP14VmaAllocator_TPT_(ptr noundef %15, ptr noundef %88)
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr null, ptr %89, align 8, !tbaa !5
  %90 = load i32, ptr %11, align 4, !tbaa !50
  store i32 %90, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %110

91:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %92 = getelementptr inbounds %struct.VmaAllocator_T, ptr %15, i32 0, i32 31
  %93 = getelementptr inbounds %struct.VmaAllocator_T, ptr %15, i32 0, i32 0
  %94 = load i8, ptr %93, align 8, !tbaa !52, !range !53, !noundef !54
  %95 = trunc i8 %94 to i1
  call void @_ZN17VmaMutexLockWriteC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(56) %92, i1 noundef zeroext %95)
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.VmaAllocator_T, ptr %15, i32 0, i32 33
  %99 = load i32, ptr %98, align 8, !tbaa !55
  %100 = add i32 %99, 1
  store i32 %100, ptr %98, align 8, !tbaa !55
  invoke void @_ZN9VmaPool_T5SetIdEj(ptr noundef nonnull align 8 dereferenceable(304) %97, i32 noundef %99)
          to label %101 unwind label %106

101:                                              ; preds = %91
  %102 = getelementptr inbounds %struct.VmaAllocator_T, ptr %15, i32 0, i32 32
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  invoke void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE8PushBackEP9VmaPool_T(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef %104)
          to label %105 unwind label %106

105:                                              ; preds = %101
  call void @_ZN17VmaMutexLockWriteD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %110

106:                                              ; preds = %101, %91
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %13, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %14, align 4
  call void @_ZN17VmaMutexLockWriteD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %8) #6
  br label %113

110:                                              ; preds = %105, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %111

111:                                              ; preds = %110, %60, %44
  call void @llvm.lifetime.end.p0(i64 56, ptr %8) #6
  %112 = load i32, ptr %4, align 4
  ret i32 %112

113:                                              ; preds = %106
  %114 = load ptr, ptr %13, align 8
  %115 = load i32, ptr %14, align 4
  %116 = insertvalue { ptr, i32 } poison, ptr %114, 0
  %117 = insertvalue { ptr, i32 } %116, i32 %115, 1
  resume { ptr, i32 } %117
}

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL11VmaAllocateI9VmaPool_TEPT_P14VmaAllocator_T(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL10vma_deleteI9VmaPool_TEvP14VmaAllocator_TPT_(ptr noundef, ptr noundef) #3

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

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

declare void @_ZN9VmaPool_TC1EP14VmaAllocator_TRK17VmaPoolCreateInfom(ptr, ptr, ptr, i64)

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

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

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


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

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [73 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T10CreatePoolEPK17VmaPoolCreateInfoPP9VmaPool_T = external hidden unnamed_addr constant [74 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [48 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14VmaAllocator_T10CreatePoolEPK17VmaPoolCreateInfoPP9VmaPool_T(ptr noundef nonnull align 8 dereferenceable(5916) %0, ptr nocapture noundef readonly %1, ptr nocapture noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.VmaPoolCreateInfo, align 8
  %5 = alloca %struct.VmaMutexLockWrite, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(56) %1, i64 56, i1 false), !tbaa.struct !5
  %6 = getelementptr inbounds i8, ptr %1, i64 48
  %7 = load ptr, ptr %6, align 8, !tbaa !16
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %11, label %8

8:                                                ; preds = %3
  %9 = load i32, ptr %7, align 8, !tbaa !18
  %.not20 = icmp eq i32 %9, 0
  br i1 %.not20, label %10, label %11

10:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.275, ptr noundef nonnull @.str.2, i32 noundef 15387, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T10CreatePoolEPK17VmaPoolCreateInfoPP9VmaPool_T) #7
  unreachable

11:                                               ; preds = %8, %3
  %12 = getelementptr inbounds i8, ptr %4, i64 24
  %13 = load i64, ptr %12, align 8, !tbaa !21
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %.thread, label %15

.thread:                                          ; preds = %11
  store i64 -1, ptr %12, align 8, !tbaa !21
  br label %19

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %4, i64 16
  %17 = load i64, ptr %16, align 8, !tbaa !22
  %18 = icmp ugt i64 %17, %13
  br i1 %18, label %55, label %19

19:                                               ; preds = %.thread, %15
  %20 = load i32, ptr %1, align 8, !tbaa !23
  %21 = tail call noundef i32 @_ZNK14VmaAllocator_T18GetMemoryTypeCountEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %.not21 = icmp ult i32 %20, %21
  br i1 %.not21, label %22, label %55

22:                                               ; preds = %19
  %23 = load i32, ptr %1, align 8, !tbaa !23
  %24 = shl nuw i32 1, %23
  %25 = getelementptr inbounds i8, ptr %0, i64 5912
  %26 = load i32, ptr %25, align 8, !tbaa !24
  %27 = and i32 %24, %26
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %55, label %29

29:                                               ; preds = %22
  %30 = getelementptr inbounds i8, ptr %4, i64 40
  %31 = load i64, ptr %30, align 8, !tbaa !49
  %.not22 = icmp eq i64 %31, 0
  br i1 %.not22, label %35, label %32

32:                                               ; preds = %29
  %33 = tail call noundef zeroext i1 @_Z9VmaIsPow2ImEbT_(i64 noundef %31)
  br i1 %33, label %35, label %34

34:                                               ; preds = %32
  tail call void @__assert_fail(ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.2, i32 noundef 15406, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T10CreatePoolEPK17VmaPoolCreateInfoPP9VmaPool_T) #7
  unreachable

35:                                               ; preds = %32, %29
  %36 = load i32, ptr %4, align 8, !tbaa !23
  %37 = tail call noundef i64 @_ZN14VmaAllocator_T22CalcPreferredBlockSizeEj(ptr noundef nonnull align 8 dereferenceable(5916) %0, i32 noundef %36)
  %38 = tail call noundef ptr @_ZL11VmaAllocateI9VmaPool_TEPT_P14VmaAllocator_T(ptr noundef nonnull %0)
  call void @_ZN9VmaPool_TC1EP14VmaAllocator_TRK17VmaPoolCreateInfom(ptr noundef nonnull align 8 dereferenceable(304) %38, ptr noundef nonnull %0, ptr noundef nonnull align 8 dereferenceable(56) %4, i64 noundef %37)
  store ptr %38, ptr %2, align 8, !tbaa !14
  %39 = call noundef i32 @_ZN14VmaBlockVector15CreateMinBlocksEv(ptr noundef nonnull align 8 dereferenceable(181) %38)
  %.not23 = icmp eq i32 %39, 0
  br i1 %.not23, label %42, label %40

40:                                               ; preds = %35
  %41 = load ptr, ptr %2, align 8, !tbaa !14
  call void @_ZL10vma_deleteI9VmaPool_TEvP14VmaAllocator_TPT_(ptr noundef nonnull %0, ptr noundef %41)
  store ptr null, ptr %2, align 8, !tbaa !14
  br label %55

42:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %43 = getelementptr inbounds i8, ptr %0, i64 5616
  %44 = load i8, ptr %0, align 8, !tbaa !50, !range !51, !noundef !52
  %45 = trunc nuw i8 %44 to i1
  call void @_ZN17VmaMutexLockWriteC2ER10VmaRWMutexb(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(56) %43, i1 noundef zeroext %45)
  %46 = load ptr, ptr %2, align 8, !tbaa !14
  %47 = getelementptr inbounds i8, ptr %0, i64 5696
  %48 = load i32, ptr %47, align 8, !tbaa !53
  %49 = add i32 %48, 1
  store i32 %49, ptr %47, align 8, !tbaa !53
  call void @_ZN9VmaPool_T5SetIdEj(ptr noundef nonnull align 8 dereferenceable(304) %46, i32 noundef %48)
  %50 = getelementptr inbounds i8, ptr %0, i64 5672
  %51 = load ptr, ptr %2, align 8, !tbaa !14
  invoke void @_ZN22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE8PushBackEP9VmaPool_T(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef %51)
          to label %52 unwind label %53

52:                                               ; preds = %42
  call void @_ZN17VmaMutexLockWriteD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %55

53:                                               ; preds = %42
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN17VmaMutexLockWriteD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #6
  resume { ptr, i32 } %54

55:                                               ; preds = %40, %52, %19, %22, %15
  %.1 = phi i32 [ -3, %15 ], [ -8, %22 ], [ -8, %19 ], [ %39, %40 ], [ 0, %52 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #6
  ret i32 %.1
}

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL11VmaAllocateI9VmaPool_TEPT_P14VmaAllocator_T(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL10vma_deleteI9VmaPool_TEvP14VmaAllocator_TPT_(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZN9VmaPool_TC1EP14VmaAllocator_TRK17VmaPoolCreateInfom(ptr, ptr, ptr, i64) local_unnamed_addr

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass