; 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.VkDeviceImageMemoryRequirements = type { i32, ptr, ptr, i32 }
%struct.VkMemoryRequirements2 = type { i32, ptr, %struct.VkMemoryRequirements }
%struct.VkMemoryRequirements = type { i64, i64, i32 }
%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.VkImageCreateInfo = type { i32, ptr, i32, i32, i32, %struct.VkExtent3D, i32, i32, i32, i32, i32, i32, i32, ptr, i32 }
%struct.VkExtent3D = type { i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.334 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.335 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.336 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo = external hidden unnamed_addr constant [166 x i8], align 1
@.str.338 = external hidden unnamed_addr constant [28 x i8], align 1
@__const.vmaFindMemoryTypeIndexForImageInfo.devImgMemReq = external hidden unnamed_addr constant %struct.VkDeviceImageMemoryRequirements, align 8
@.str.340 = external hidden unnamed_addr constant [300 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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @vmaFindMemoryTypeIndexForImageInfo(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #5 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.VkDeviceImageMemoryRequirements, align 8
  %13 = alloca %struct.VkMemoryRequirements2, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.VkMemoryRequirements, align 8
  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
  store ptr %3, ptr %8, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %4
  br label %21

19:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.334, ptr noundef @.str.2, i32 noundef 16504, ptr noundef @__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo) #6
  unreachable

20:                                               ; No predecessors!
  br label %21

21:                                               ; preds = %20, %18
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %21
  br label %27

25:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.338, ptr noundef @.str.2, i32 noundef 16505, ptr noundef @__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo) #6
  unreachable

26:                                               ; No predecessors!
  br label %27

27:                                               ; preds = %26, %24
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %31

30:                                               ; preds = %27
  br label %33

31:                                               ; preds = %27
  call void @__assert_fail(ptr noundef @.str.335, ptr noundef @.str.2, i32 noundef 16506, ptr noundef @__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo) #6
  unreachable

32:                                               ; No predecessors!
  br label %33

33:                                               ; preds = %32, %30
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  br label %39

37:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.336, ptr noundef @.str.2, i32 noundef 16507, ptr noundef @__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo) #6
  unreachable

38:                                               ; No predecessors!
  br label %39

39:                                               ; preds = %38, %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.VmaAllocator_T, ptr %40, i32 0, i32 10
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  store ptr %42, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916) %43)
  store ptr %44, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %45, i32 0, i32 25
  %47 = load ptr, ptr %46, align 8, !tbaa !37
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %84

49:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 @__const.vmaFindMemoryTypeIndexForImageInfo.devImgMemReq, i64 32, i1 false)
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.VkDeviceImageMemoryRequirements, ptr %12, i32 0, i32 2
  store ptr %50, ptr %51, align 8, !tbaa !38
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %52, i32 0, i32 9
  %54 = load i32, ptr %53, align 4, !tbaa !42
  %55 = icmp ne i32 %54, 1000158000
  br i1 %55, label %56, label %63

56:                                               ; preds = %49
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %57, i32 0, i32 2
  %59 = load i32, ptr %58, align 8, !tbaa !51
  %60 = and i32 %59, 512
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %56
  br label %63

63:                                               ; preds = %62, %56, %49
  %64 = phi i1 [ false, %56 ], [ false, %49 ], [ true, %62 ]
  br i1 %64, label %65, label %66

65:                                               ; preds = %63
  br label %68

66:                                               ; preds = %63
  call void @__assert_fail(ptr noundef @.str.340, ptr noundef @.str.2, i32 noundef 16520, ptr noundef @__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo) #6
  unreachable

67:                                               ; No predecessors!
  br label %68

68:                                               ; preds = %67, %65
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #7
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 40, i1 false)
  %69 = getelementptr inbounds %struct.VkMemoryRequirements2, ptr %13, i32 0, i32 0
  store i32 1000146003, ptr %69, align 8
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %70, i32 0, i32 25
  %72 = load ptr, ptr %71, align 8, !tbaa !37
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  call void %72(ptr noundef %73, ptr noundef %12, ptr noundef %13)
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.VkMemoryRequirements2, ptr %13, i32 0, i32 2
  %76 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %75, i32 0, i32 2
  %77 = load i32, ptr %76, align 8, !tbaa !52
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %79, i32 0, i32 10
  %81 = load i32, ptr %80, align 8, !tbaa !55
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = call noundef i32 @_ZNK14VmaAllocator_T19FindMemoryTypeIndexEjPK23VmaAllocationCreateInfojPj(ptr noundef nonnull align 8 dereferenceable(5916) %74, i32 noundef %77, ptr noundef %78, i32 noundef %81, ptr noundef %82)
  store i32 %83, ptr %11, align 4, !tbaa !56
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  br label %118

84:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store ptr null, ptr %14, align 8, !tbaa !5
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %85, i32 0, i32 16
  %87 = load ptr, ptr %86, align 8, !tbaa !58
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = call noundef ptr @_ZNK14VmaAllocator_T22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(5916) %90)
  %92 = call noundef i32 %87(ptr noundef %88, ptr noundef %89, ptr noundef %91, ptr noundef %14)
  store i32 %92, ptr %11, align 4, !tbaa !56
  %93 = load i32, ptr %11, align 4, !tbaa !56
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %117

95:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 24, i1 false)
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %96, i32 0, i32 13
  %98 = load ptr, ptr %97, align 8, !tbaa !59
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  call void %98(ptr noundef %99, ptr noundef %100, ptr noundef %15)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %15, i32 0, i32 2
  %103 = load i32, ptr %102, align 8, !tbaa !60
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %105, i32 0, i32 10
  %107 = load i32, ptr %106, align 8, !tbaa !55
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = call noundef i32 @_ZNK14VmaAllocator_T19FindMemoryTypeIndexEjPK23VmaAllocationCreateInfojPj(ptr noundef nonnull align 8 dereferenceable(5916) %101, i32 noundef %103, ptr noundef %104, i32 noundef %107, ptr noundef %108)
  store i32 %109, ptr %11, align 4, !tbaa !56
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %110, i32 0, i32 17
  %112 = load ptr, ptr %111, align 8, !tbaa !61
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = call noundef ptr @_ZNK14VmaAllocator_T22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(5916) %115)
  call void %112(ptr noundef %113, ptr noundef %114, ptr noundef %116)
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  br label %117

117:                                              ; preds = %95, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %118

118:                                              ; preds = %117, %68
  %119 = load i32, ptr %11, align 4, !tbaa !56
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret i32 %119
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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, !6, i64 16}
!10 = !{!"_ZTS14VmaAllocator_T", !11, i64 0, !12, i64 4, !11, i64 8, !11, i64 9, !11, i64 10, !11, i64 11, !11, i64 12, !11, i64 13, !6, i64 16, !6, i64 24, !11, i64 32, !13, i64 40, !14, i64 88, !15, i64 112, !12, i64 200, !23, i64 208, !28, i64 1032, !7, i64 1552, !7, i64 1808, !29, i64 4624, !30, i64 5456, !22, i64 5464, !6, i64 5472, !30, i64 5480, !30, i64 5484, !7, i64 5488, !32, i64 5616, !35, i64 5672, !12, i64 5696, !36, i64 5704, !12, i64 5912}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS21VkAllocationCallbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!14 = !{!"_ZTS24VmaDeviceMemoryCallbacks", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTS28VmaAllocationObjectAllocator", !16, i64 0, !19, i64 40}
!16 = !{!"_ZTS8VmaMutex", !17, i64 0}
!17 = !{!"_ZTSSt5mutex", !18, i64 0}
!18 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!19 = !{!"_ZTS16VmaPoolAllocatorI15VmaAllocation_TE", !6, i64 0, !12, i64 8, !20, i64 16}
!20 = !{!"_ZTS9VmaVectorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockE15VmaStlAllocatorIS3_EE", !21, i64 0, !6, i64 8, !22, i64 16, !22, i64 24}
!21 = !{!"_ZTS15VmaStlAllocatorIN16VmaPoolAllocatorI15VmaAllocation_TE9ItemBlockEE", !6, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTS26VkPhysicalDeviceProperties", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !24, i64 16, !7, i64 20, !7, i64 276, !25, i64 296, !27, i64 800}
!24 = !{!"_ZTS20VkPhysicalDeviceType", !7, i64 0}
!25 = !{!"_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, !22, i64 48, !22, 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, !26, i64 268, !26, i64 272, !12, i64 276, !7, i64 280, !7, i64 288, !12, i64 296, !22, i64 304, !22, i64 312, !22, i64 320, !22, i64 328, !12, i64 336, !12, i64 340, !12, i64 344, !12, i64 348, !26, i64 352, !26, 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, !26, i64 424, !12, i64 428, !12, i64 432, !12, i64 436, !12, i64 440, !7, i64 444, !7, i64 452, !26, i64 460, !26, i64 464, !12, i64 468, !12, i64 472, !22, i64 480, !22, i64 488, !22, i64 496}
!26 = !{!"float", !7, i64 0}
!27 = !{!"_ZTS32VkPhysicalDeviceSparseProperties", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!28 = !{!"_ZTS32VkPhysicalDeviceMemoryProperties", !12, i64 0, !7, i64 4, !12, i64 260, !7, i64 264}
!29 = !{!"_ZTS20VmaCurrentBudgetData", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 256, !30, i64 384, !32, i64 392, !7, i64 448, !7, i64 576, !7, i64 704}
!30 = !{!"_ZTSSt6atomicIjE", !31, i64 0}
!31 = !{!"_ZTSSt13__atomic_baseIjE", !12, i64 0}
!32 = !{!"_ZTS10VmaRWMutex", !33, i64 0}
!33 = !{!"_ZTSSt12shared_mutex", !34, i64 0}
!34 = !{!"_ZTSSt22__shared_mutex_pthread", !7, i64 0}
!35 = !{!"_ZTS22VmaIntrusiveLinkedListI21VmaPoolListItemTraitsE", !6, i64 0, !6, i64 8, !22, i64 16}
!36 = !{!"_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}
!37 = !{!36, !6, i64 200}
!38 = !{!39, !6, i64 16}
!39 = !{!"_ZTS31VkDeviceImageMemoryRequirements", !40, i64 0, !6, i64 8, !6, i64 16, !41, i64 24}
!40 = !{!"_ZTS15VkStructureType", !7, i64 0}
!41 = !{!"_ZTS21VkImageAspectFlagBits", !7, i64 0}
!42 = !{!43, !48, i64 52}
!43 = !{!"_ZTS17VkImageCreateInfo", !40, i64 0, !6, i64 8, !12, i64 16, !44, i64 20, !45, i64 24, !46, i64 28, !12, i64 40, !12, i64 44, !47, i64 48, !48, i64 52, !12, i64 56, !49, i64 60, !12, i64 64, !6, i64 72, !50, i64 80}
!44 = !{!"_ZTS11VkImageType", !7, i64 0}
!45 = !{!"_ZTS8VkFormat", !7, i64 0}
!46 = !{!"_ZTS10VkExtent3D", !12, i64 0, !12, i64 4, !12, i64 8}
!47 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!48 = !{!"_ZTS13VkImageTiling", !7, i64 0}
!49 = !{!"_ZTS13VkSharingMode", !7, i64 0}
!50 = !{!"_ZTS13VkImageLayout", !7, i64 0}
!51 = !{!43, !12, i64 16}
!52 = !{!53, !12, i64 32}
!53 = !{!"_ZTS21VkMemoryRequirements2", !40, i64 0, !6, i64 8, !54, i64 16}
!54 = !{!"_ZTS20VkMemoryRequirements", !22, i64 0, !22, i64 8, !12, i64 16}
!55 = !{!43, !12, i64 56}
!56 = !{!57, !57, i64 0}
!57 = !{!"_ZTS8VkResult", !7, i64 0}
!58 = !{!36, !6, i64 128}
!59 = !{!36, !6, i64 104}
!60 = !{!54, !12, i64 16}
!61 = !{!36, !6, i64 136}


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

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.334 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.335 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.336 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo = external hidden unnamed_addr constant [166 x i8], align 1
@.str.338 = external hidden unnamed_addr constant [28 x i8], align 1
@__const.vmaFindMemoryTypeIndexForImageInfo.devImgMemReq = external hidden unnamed_addr constant %struct.VkDeviceImageMemoryRequirements, align 8
@.str.340 = external hidden unnamed_addr constant [300 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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @vmaFindMemoryTypeIndexForImageInfo(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #5 {
  %5 = alloca %struct.VkDeviceImageMemoryRequirements, align 8
  %6 = alloca %struct.VkMemoryRequirements2, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.VkMemoryRequirements, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %9, label %10

9:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.334, ptr noundef nonnull @.str.2, i32 noundef 16504, ptr noundef nonnull @__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo) #6
  unreachable

10:                                               ; preds = %4
  %.not35 = icmp eq ptr %1, null
  br i1 %.not35, label %11, label %12

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.338, ptr noundef nonnull @.str.2, i32 noundef 16505, ptr noundef nonnull @__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo) #6
  unreachable

12:                                               ; preds = %10
  %.not36 = icmp eq ptr %2, null
  br i1 %.not36, label %13, label %14

13:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.335, ptr noundef nonnull @.str.2, i32 noundef 16506, ptr noundef nonnull @__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo) #6
  unreachable

14:                                               ; preds = %12
  %.not37 = icmp eq ptr %3, null
  br i1 %.not37, label %15, label %16

15:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.336, ptr noundef nonnull @.str.2, i32 noundef 16507, ptr noundef nonnull @__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo) #6
  unreachable

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = tail call noundef nonnull align 8 dereferenceable(208) ptr @_ZNK14VmaAllocator_T18GetVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %20 = getelementptr inbounds i8, ptr %19, i64 200
  %21 = load ptr, ptr %20, align 8, !tbaa !36
  %.not38 = icmp eq ptr %21, null
  br i1 %.not38, label %37, label %22

22:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) @__const.vmaFindMemoryTypeIndexForImageInfo.devImgMemReq, i64 32, i1 false)
  %23 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr %1, ptr %23, align 8, !tbaa !37
  %24 = getelementptr inbounds i8, ptr %1, i64 52
  %25 = load i32, ptr %24, align 4, !tbaa !41
  %.not39 = icmp eq i32 %25, 1000158000
  br i1 %.not39, label %.critedge, label %26

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %1, i64 16
  %28 = load i32, ptr %27, align 8, !tbaa !50
  %29 = and i32 %28, 512
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %.critedge

.critedge:                                        ; preds = %22, %26
  tail call void @__assert_fail(ptr noundef nonnull @.str.340, ptr noundef nonnull @.str.2, i32 noundef 16520, ptr noundef nonnull @__PRETTY_FUNCTION__.vmaFindMemoryTypeIndexForImageInfo) #6
  unreachable

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %6, i8 0, i64 40, i1 false)
  store i32 1000146003, ptr %6, align 8
  call void %21(ptr noundef %18, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %32 = getelementptr inbounds i8, ptr %6, i64 32
  %33 = load i32, ptr %32, align 8, !tbaa !51
  %34 = getelementptr inbounds i8, ptr %1, i64 56
  %35 = load i32, ptr %34, align 8, !tbaa !54
  %36 = call noundef i32 @_ZNK14VmaAllocator_T19FindMemoryTypeIndexEjPK23VmaAllocationCreateInfojPj(ptr noundef nonnull align 8 dereferenceable(5916) %0, i32 noundef %33, ptr noundef nonnull %2, i32 noundef %35, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %57

37:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  store ptr null, ptr %7, align 8, !tbaa !55
  %38 = getelementptr inbounds i8, ptr %19, i64 128
  %39 = load ptr, ptr %38, align 8, !tbaa !56
  %40 = tail call noundef ptr @_ZNK14VmaAllocator_T22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  %41 = call noundef i32 %39(ptr noundef %18, ptr noundef nonnull %1, ptr noundef %40, ptr noundef nonnull %7)
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %56

43:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, i8 0, i64 24, i1 false)
  %44 = getelementptr inbounds i8, ptr %19, i64 104
  %45 = load ptr, ptr %44, align 8, !tbaa !57
  %46 = load ptr, ptr %7, align 8, !tbaa !55
  call void %45(ptr noundef %18, ptr noundef %46, ptr noundef nonnull %8)
  %47 = getelementptr inbounds i8, ptr %8, i64 16
  %48 = load i32, ptr %47, align 8, !tbaa !58
  %49 = getelementptr inbounds i8, ptr %1, i64 56
  %50 = load i32, ptr %49, align 8, !tbaa !54
  %51 = call noundef i32 @_ZNK14VmaAllocator_T19FindMemoryTypeIndexEjPK23VmaAllocationCreateInfojPj(ptr noundef nonnull align 8 dereferenceable(5916) %0, i32 noundef %48, ptr noundef nonnull %2, i32 noundef %50, ptr noundef nonnull %3)
  %52 = getelementptr inbounds i8, ptr %19, i64 136
  %53 = load ptr, ptr %52, align 8, !tbaa !59
  %54 = load ptr, ptr %7, align 8, !tbaa !55
  %55 = call noundef ptr @_ZNK14VmaAllocator_T22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(5916) %0)
  call void %53(ptr noundef %18, ptr noundef %54, ptr noundef %55)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %56

56:                                               ; preds = %43, %37
  %.0 = phi i32 [ %51, %43 ], [ %41, %37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %57

57:                                               ; preds = %56, %31
  %.1 = phi i32 [ %36, %31 ], [ %.0, %56 ]
  ret i32 %.1
}

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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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, !11, i64 16}
!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 = !{!35, !11, i64 200}
!37 = !{!38, !11, i64 16}
!38 = !{!"_ZTS31VkDeviceImageMemoryRequirements", !39, i64 0, !11, i64 8, !11, i64 16, !40, i64 24}
!39 = !{!"_ZTS15VkStructureType", !8, i64 0}
!40 = !{!"_ZTS21VkImageAspectFlagBits", !8, i64 0}
!41 = !{!42, !47, i64 52}
!42 = !{!"_ZTS17VkImageCreateInfo", !39, i64 0, !11, i64 8, !10, i64 16, !43, i64 20, !44, i64 24, !45, i64 28, !10, i64 40, !10, i64 44, !46, i64 48, !47, i64 52, !10, i64 56, !48, i64 60, !10, i64 64, !11, i64 72, !49, i64 80}
!43 = !{!"_ZTS11VkImageType", !8, i64 0}
!44 = !{!"_ZTS8VkFormat", !8, i64 0}
!45 = !{!"_ZTS10VkExtent3D", !10, i64 0, !10, i64 4, !10, i64 8}
!46 = !{!"_ZTS21VkSampleCountFlagBits", !8, i64 0}
!47 = !{!"_ZTS13VkImageTiling", !8, i64 0}
!48 = !{!"_ZTS13VkSharingMode", !8, i64 0}
!49 = !{!"_ZTS13VkImageLayout", !8, i64 0}
!50 = !{!42, !10, i64 16}
!51 = !{!52, !10, i64 32}
!52 = !{!"_ZTS21VkMemoryRequirements2", !39, i64 0, !11, i64 8, !53, i64 16}
!53 = !{!"_ZTS20VkMemoryRequirements", !21, i64 0, !21, i64 8, !10, i64 16}
!54 = !{!42, !10, i64 56}
!55 = !{!11, !11, i64 0}
!56 = !{!35, !11, i64 128}
!57 = !{!35, !11, i64 104}
!58 = !{!53, !10, i64 16}
!59 = !{!35, !11, i64 136}


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