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

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.231 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv = external hidden unnamed_addr constant [47 x i8], align 1
@.str.232 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.233 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.234 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.236 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.237 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.238 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.239 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.240 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.241 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.242 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.243 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.244 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.245 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.246 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.247 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.248 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.249 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.250 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.251 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.252 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.253 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.254 = external hidden unnamed_addr constant [64 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN14VmaAllocator_T23ValidateVulkanFunctionsEv(ptr noundef nonnull align 8 dereferenceable(5916) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  %4 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %5 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %4, i32 0, i32 2
  %6 = load ptr, ptr %5, align 8, !tbaa !9
  %7 = icmp ne ptr %6, null
  br i1 %7, label %8, label %9

8:                                                ; preds = %1
  br label %11

9:                                                ; preds = %1
  call void @__assert_fail(ptr noundef @.str.231, ptr noundef @.str.2, i32 noundef 14482, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

10:                                               ; No predecessors!
  br label %11

11:                                               ; preds = %10, %8
  %12 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %13 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %12, i32 0, i32 3
  %14 = load ptr, ptr %13, align 8, !tbaa !37
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %11
  br label %19

17:                                               ; preds = %11
  call void @__assert_fail(ptr noundef @.str.232, ptr noundef @.str.2, i32 noundef 14483, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

18:                                               ; No predecessors!
  br label %19

19:                                               ; preds = %18, %16
  %20 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %21 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %20, i32 0, i32 4
  %22 = load ptr, ptr %21, align 8, !tbaa !38
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %19
  br label %27

25:                                               ; preds = %19
  call void @__assert_fail(ptr noundef @.str.233, ptr noundef @.str.2, i32 noundef 14484, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

26:                                               ; No predecessors!
  br label %27

27:                                               ; preds = %26, %24
  %28 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %29 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %28, i32 0, i32 5
  %30 = load ptr, ptr %29, align 8, !tbaa !39
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %33

32:                                               ; preds = %27
  br label %35

33:                                               ; preds = %27
  call void @__assert_fail(ptr noundef @.str.234, ptr noundef @.str.2, i32 noundef 14485, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

34:                                               ; No predecessors!
  br label %35

35:                                               ; preds = %34, %32
  %36 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %37 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %36, i32 0, i32 6
  %38 = load ptr, ptr %37, align 8, !tbaa !40
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %41

40:                                               ; preds = %35
  br label %43

41:                                               ; preds = %35
  call void @__assert_fail(ptr noundef @.str.235, ptr noundef @.str.2, i32 noundef 14486, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

42:                                               ; No predecessors!
  br label %43

43:                                               ; preds = %42, %40
  %44 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %45 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %44, i32 0, i32 7
  %46 = load ptr, ptr %45, align 8, !tbaa !41
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %49

48:                                               ; preds = %43
  br label %51

49:                                               ; preds = %43
  call void @__assert_fail(ptr noundef @.str.236, ptr noundef @.str.2, i32 noundef 14487, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

50:                                               ; No predecessors!
  br label %51

51:                                               ; preds = %50, %48
  %52 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %53 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %52, i32 0, i32 8
  %54 = load ptr, ptr %53, align 8, !tbaa !42
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %57

56:                                               ; preds = %51
  br label %59

57:                                               ; preds = %51
  call void @__assert_fail(ptr noundef @.str.237, ptr noundef @.str.2, i32 noundef 14488, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

58:                                               ; No predecessors!
  br label %59

59:                                               ; preds = %58, %56
  %60 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %61 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %60, i32 0, i32 9
  %62 = load ptr, ptr %61, align 8, !tbaa !43
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %65

64:                                               ; preds = %59
  br label %67

65:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.238, ptr noundef @.str.2, i32 noundef 14489, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

66:                                               ; No predecessors!
  br label %67

67:                                               ; preds = %66, %64
  %68 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %69 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %68, i32 0, i32 10
  %70 = load ptr, ptr %69, align 8, !tbaa !44
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %73

72:                                               ; preds = %67
  br label %75

73:                                               ; preds = %67
  call void @__assert_fail(ptr noundef @.str.239, ptr noundef @.str.2, i32 noundef 14490, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

74:                                               ; No predecessors!
  br label %75

75:                                               ; preds = %74, %72
  %76 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %77 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %76, i32 0, i32 11
  %78 = load ptr, ptr %77, align 8, !tbaa !45
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %81

80:                                               ; preds = %75
  br label %83

81:                                               ; preds = %75
  call void @__assert_fail(ptr noundef @.str.240, ptr noundef @.str.2, i32 noundef 14491, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

82:                                               ; No predecessors!
  br label %83

83:                                               ; preds = %82, %80
  %84 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %85 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %84, i32 0, i32 12
  %86 = load ptr, ptr %85, align 8, !tbaa !46
  %87 = icmp ne ptr %86, null
  br i1 %87, label %88, label %89

88:                                               ; preds = %83
  br label %91

89:                                               ; preds = %83
  call void @__assert_fail(ptr noundef @.str.241, ptr noundef @.str.2, i32 noundef 14492, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

90:                                               ; No predecessors!
  br label %91

91:                                               ; preds = %90, %88
  %92 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %93 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %92, i32 0, i32 13
  %94 = load ptr, ptr %93, align 8, !tbaa !47
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %97

96:                                               ; preds = %91
  br label %99

97:                                               ; preds = %91
  call void @__assert_fail(ptr noundef @.str.242, ptr noundef @.str.2, i32 noundef 14493, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

98:                                               ; No predecessors!
  br label %99

99:                                               ; preds = %98, %96
  %100 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %101 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %100, i32 0, i32 14
  %102 = load ptr, ptr %101, align 8, !tbaa !48
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %105

104:                                              ; preds = %99
  br label %107

105:                                              ; preds = %99
  call void @__assert_fail(ptr noundef @.str.243, ptr noundef @.str.2, i32 noundef 14494, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

106:                                              ; No predecessors!
  br label %107

107:                                              ; preds = %106, %104
  %108 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %109 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %108, i32 0, i32 15
  %110 = load ptr, ptr %109, align 8, !tbaa !49
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %113

112:                                              ; preds = %107
  br label %115

113:                                              ; preds = %107
  call void @__assert_fail(ptr noundef @.str.244, ptr noundef @.str.2, i32 noundef 14495, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

114:                                              ; No predecessors!
  br label %115

115:                                              ; preds = %114, %112
  %116 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %117 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %116, i32 0, i32 16
  %118 = load ptr, ptr %117, align 8, !tbaa !50
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %121

120:                                              ; preds = %115
  br label %123

121:                                              ; preds = %115
  call void @__assert_fail(ptr noundef @.str.245, ptr noundef @.str.2, i32 noundef 14496, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

122:                                              ; No predecessors!
  br label %123

123:                                              ; preds = %122, %120
  %124 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %125 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %124, i32 0, i32 17
  %126 = load ptr, ptr %125, align 8, !tbaa !51
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %129

128:                                              ; preds = %123
  br label %131

129:                                              ; preds = %123
  call void @__assert_fail(ptr noundef @.str.246, ptr noundef @.str.2, i32 noundef 14497, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

130:                                              ; No predecessors!
  br label %131

131:                                              ; preds = %130, %128
  %132 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %133 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %132, i32 0, i32 18
  %134 = load ptr, ptr %133, align 8, !tbaa !52
  %135 = icmp ne ptr %134, null
  br i1 %135, label %136, label %137

136:                                              ; preds = %131
  br label %139

137:                                              ; preds = %131
  call void @__assert_fail(ptr noundef @.str.247, ptr noundef @.str.2, i32 noundef 14498, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

138:                                              ; No predecessors!
  br label %139

139:                                              ; preds = %138, %136
  %140 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 2
  %141 = load i32, ptr %140, align 4, !tbaa !53
  %142 = icmp uge i32 %141, 4198400
  br i1 %142, label %147, label %143

143:                                              ; preds = %139
  %144 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 3
  %145 = load i8, ptr %144, align 8, !tbaa !54, !range !55, !noundef !56
  %146 = trunc i8 %145 to i1
  br i1 %146, label %147, label %164

147:                                              ; preds = %143, %139
  %148 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %149 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %148, i32 0, i32 19
  %150 = load ptr, ptr %149, align 8, !tbaa !57
  %151 = icmp ne ptr %150, null
  br i1 %151, label %152, label %153

152:                                              ; preds = %147
  br label %155

153:                                              ; preds = %147
  call void @__assert_fail(ptr noundef @.str.248, ptr noundef @.str.2, i32 noundef 14503, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

154:                                              ; No predecessors!
  br label %155

155:                                              ; preds = %154, %152
  %156 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %157 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %156, i32 0, i32 20
  %158 = load ptr, ptr %157, align 8, !tbaa !58
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %161

160:                                              ; preds = %155
  br label %163

161:                                              ; preds = %155
  call void @__assert_fail(ptr noundef @.str.249, ptr noundef @.str.2, i32 noundef 14504, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

162:                                              ; No predecessors!
  br label %163

163:                                              ; preds = %162, %160
  br label %164

164:                                              ; preds = %163, %143
  %165 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 2
  %166 = load i32, ptr %165, align 4, !tbaa !53
  %167 = icmp uge i32 %166, 4198400
  br i1 %167, label %172, label %168

168:                                              ; preds = %164
  %169 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 4
  %170 = load i8, ptr %169, align 1, !tbaa !59, !range !55, !noundef !56
  %171 = trunc i8 %170 to i1
  br i1 %171, label %172, label %189

172:                                              ; preds = %168, %164
  %173 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %174 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %173, i32 0, i32 21
  %175 = load ptr, ptr %174, align 8, !tbaa !60
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %178

177:                                              ; preds = %172
  br label %180

178:                                              ; preds = %172
  call void @__assert_fail(ptr noundef @.str.250, ptr noundef @.str.2, i32 noundef 14511, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

179:                                              ; No predecessors!
  br label %180

180:                                              ; preds = %179, %177
  %181 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %182 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %181, i32 0, i32 22
  %183 = load ptr, ptr %182, align 8, !tbaa !61
  %184 = icmp ne ptr %183, null
  br i1 %184, label %185, label %186

185:                                              ; preds = %180
  br label %188

186:                                              ; preds = %180
  call void @__assert_fail(ptr noundef @.str.251, ptr noundef @.str.2, i32 noundef 14512, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

187:                                              ; No predecessors!
  br label %188

188:                                              ; preds = %187, %185
  br label %189

189:                                              ; preds = %188, %168
  %190 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 5
  %191 = load i8, ptr %190, align 2, !tbaa !62, !range !55, !noundef !56
  %192 = trunc i8 %191 to i1
  br i1 %192, label %197, label %193

193:                                              ; preds = %189
  %194 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 2
  %195 = load i32, ptr %194, align 4, !tbaa !53
  %196 = icmp uge i32 %195, 4198400
  br i1 %196, label %197, label %206

197:                                              ; preds = %193, %189
  %198 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %199 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %198, i32 0, i32 23
  %200 = load ptr, ptr %199, align 8, !tbaa !63
  %201 = icmp ne ptr %200, null
  br i1 %201, label %202, label %203

202:                                              ; preds = %197
  br label %205

203:                                              ; preds = %197
  call void @__assert_fail(ptr noundef @.str.252, ptr noundef @.str.2, i32 noundef 14519, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

204:                                              ; No predecessors!
  br label %205

205:                                              ; preds = %204, %202
  br label %206

206:                                              ; preds = %205, %193
  %207 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 2
  %208 = load i32, ptr %207, align 4, !tbaa !53
  %209 = icmp uge i32 %208, 4206592
  br i1 %209, label %210, label %227

210:                                              ; preds = %206
  %211 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %212 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %211, i32 0, i32 24
  %213 = load ptr, ptr %212, align 8, !tbaa !64
  %214 = icmp ne ptr %213, null
  br i1 %214, label %215, label %216

215:                                              ; preds = %210
  br label %218

216:                                              ; preds = %210
  call void @__assert_fail(ptr noundef @.str.253, ptr noundef @.str.2, i32 noundef 14526, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

217:                                              ; No predecessors!
  br label %218

218:                                              ; preds = %217, %215
  %219 = getelementptr inbounds %struct.VmaAllocator_T, ptr %3, i32 0, i32 35
  %220 = getelementptr inbounds %struct.VmaVulkanFunctions, ptr %219, i32 0, i32 25
  %221 = load ptr, ptr %220, align 8, !tbaa !65
  %222 = icmp ne ptr %221, null
  br i1 %222, label %223, label %224

223:                                              ; preds = %218
  br label %226

224:                                              ; preds = %218
  call void @__assert_fail(ptr noundef @.str.254, ptr noundef @.str.2, i32 noundef 14527, ptr noundef @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

225:                                              ; No predecessors!
  br label %226

226:                                              ; preds = %225, %223
  br label %227

227:                                              ; preds = %226, %206
  ret void
}

attributes #0 = { 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 #1 = { 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 #2 = { 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, !6, i64 5720}
!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 = !{!10, !6, i64 5728}
!38 = !{!10, !6, i64 5736}
!39 = !{!10, !6, i64 5744}
!40 = !{!10, !6, i64 5752}
!41 = !{!10, !6, i64 5760}
!42 = !{!10, !6, i64 5768}
!43 = !{!10, !6, i64 5776}
!44 = !{!10, !6, i64 5784}
!45 = !{!10, !6, i64 5792}
!46 = !{!10, !6, i64 5800}
!47 = !{!10, !6, i64 5808}
!48 = !{!10, !6, i64 5816}
!49 = !{!10, !6, i64 5824}
!50 = !{!10, !6, i64 5832}
!51 = !{!10, !6, i64 5840}
!52 = !{!10, !6, i64 5848}
!53 = !{!10, !12, i64 4}
!54 = !{!10, !11, i64 8}
!55 = !{i8 0, i8 2}
!56 = !{}
!57 = !{!10, !6, i64 5856}
!58 = !{!10, !6, i64 5864}
!59 = !{!10, !11, i64 9}
!60 = !{!10, !6, i64 5872}
!61 = !{!10, !6, i64 5880}
!62 = !{!10, !11, i64 10}
!63 = !{!10, !6, i64 5888}
!64 = !{!10, !6, i64 5896}
!65 = !{!10, !6, i64 5904}


; 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.231 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv = external hidden unnamed_addr constant [47 x i8], align 1
@.str.232 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.233 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.234 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.236 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.237 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.238 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.239 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.240 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.241 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.242 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.243 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.244 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.245 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.246 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.247 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.248 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.249 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.250 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.251 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.252 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.253 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.254 = external hidden unnamed_addr constant [64 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN14VmaAllocator_T23ValidateVulkanFunctionsEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(5916) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 5720
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.231, ptr noundef nonnull @.str.2, i32 noundef 14482, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 5728
  %7 = load ptr, ptr %6, align 8, !tbaa !36
  %.not1 = icmp eq ptr %7, null
  br i1 %.not1, label %8, label %9

8:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.232, ptr noundef nonnull @.str.2, i32 noundef 14483, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 5736
  %11 = load ptr, ptr %10, align 8, !tbaa !37
  %.not2 = icmp eq ptr %11, null
  br i1 %.not2, label %12, label %13

12:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.233, ptr noundef nonnull @.str.2, i32 noundef 14484, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 5744
  %15 = load ptr, ptr %14, align 8, !tbaa !38
  %.not3 = icmp eq ptr %15, null
  br i1 %.not3, label %16, label %17

16:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.234, ptr noundef nonnull @.str.2, i32 noundef 14485, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %0, i64 5752
  %19 = load ptr, ptr %18, align 8, !tbaa !39
  %.not4 = icmp eq ptr %19, null
  br i1 %.not4, label %20, label %21

20:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.235, ptr noundef nonnull @.str.2, i32 noundef 14486, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %0, i64 5760
  %23 = load ptr, ptr %22, align 8, !tbaa !40
  %.not5 = icmp eq ptr %23, null
  br i1 %.not5, label %24, label %25

24:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.236, ptr noundef nonnull @.str.2, i32 noundef 14487, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %0, i64 5768
  %27 = load ptr, ptr %26, align 8, !tbaa !41
  %.not6 = icmp eq ptr %27, null
  br i1 %.not6, label %28, label %29

28:                                               ; preds = %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.237, ptr noundef nonnull @.str.2, i32 noundef 14488, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %0, i64 5776
  %31 = load ptr, ptr %30, align 8, !tbaa !42
  %.not7 = icmp eq ptr %31, null
  br i1 %.not7, label %32, label %33

32:                                               ; preds = %29
  tail call void @__assert_fail(ptr noundef nonnull @.str.238, ptr noundef nonnull @.str.2, i32 noundef 14489, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %0, i64 5784
  %35 = load ptr, ptr %34, align 8, !tbaa !43
  %.not8 = icmp eq ptr %35, null
  br i1 %.not8, label %36, label %37

36:                                               ; preds = %33
  tail call void @__assert_fail(ptr noundef nonnull @.str.239, ptr noundef nonnull @.str.2, i32 noundef 14490, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %0, i64 5792
  %39 = load ptr, ptr %38, align 8, !tbaa !44
  %.not9 = icmp eq ptr %39, null
  br i1 %.not9, label %40, label %41

40:                                               ; preds = %37
  tail call void @__assert_fail(ptr noundef nonnull @.str.240, ptr noundef nonnull @.str.2, i32 noundef 14491, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

41:                                               ; preds = %37
  %42 = getelementptr inbounds i8, ptr %0, i64 5800
  %43 = load ptr, ptr %42, align 8, !tbaa !45
  %.not10 = icmp eq ptr %43, null
  br i1 %.not10, label %44, label %45

44:                                               ; preds = %41
  tail call void @__assert_fail(ptr noundef nonnull @.str.241, ptr noundef nonnull @.str.2, i32 noundef 14492, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %0, i64 5808
  %47 = load ptr, ptr %46, align 8, !tbaa !46
  %.not11 = icmp eq ptr %47, null
  br i1 %.not11, label %48, label %49

48:                                               ; preds = %45
  tail call void @__assert_fail(ptr noundef nonnull @.str.242, ptr noundef nonnull @.str.2, i32 noundef 14493, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %0, i64 5816
  %51 = load ptr, ptr %50, align 8, !tbaa !47
  %.not12 = icmp eq ptr %51, null
  br i1 %.not12, label %52, label %53

52:                                               ; preds = %49
  tail call void @__assert_fail(ptr noundef nonnull @.str.243, ptr noundef nonnull @.str.2, i32 noundef 14494, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

53:                                               ; preds = %49
  %54 = getelementptr inbounds i8, ptr %0, i64 5824
  %55 = load ptr, ptr %54, align 8, !tbaa !48
  %.not13 = icmp eq ptr %55, null
  br i1 %.not13, label %56, label %57

56:                                               ; preds = %53
  tail call void @__assert_fail(ptr noundef nonnull @.str.244, ptr noundef nonnull @.str.2, i32 noundef 14495, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %0, i64 5832
  %59 = load ptr, ptr %58, align 8, !tbaa !49
  %.not14 = icmp eq ptr %59, null
  br i1 %.not14, label %60, label %61

60:                                               ; preds = %57
  tail call void @__assert_fail(ptr noundef nonnull @.str.245, ptr noundef nonnull @.str.2, i32 noundef 14496, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

61:                                               ; preds = %57
  %62 = getelementptr inbounds i8, ptr %0, i64 5840
  %63 = load ptr, ptr %62, align 8, !tbaa !50
  %.not15 = icmp eq ptr %63, null
  br i1 %.not15, label %64, label %65

64:                                               ; preds = %61
  tail call void @__assert_fail(ptr noundef nonnull @.str.246, ptr noundef nonnull @.str.2, i32 noundef 14497, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

65:                                               ; preds = %61
  %66 = getelementptr inbounds i8, ptr %0, i64 5848
  %67 = load ptr, ptr %66, align 8, !tbaa !51
  %.not16 = icmp eq ptr %67, null
  br i1 %.not16, label %68, label %69

68:                                               ; preds = %65
  tail call void @__assert_fail(ptr noundef nonnull @.str.247, ptr noundef nonnull @.str.2, i32 noundef 14498, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

69:                                               ; preds = %65
  %70 = getelementptr inbounds i8, ptr %0, i64 4
  %71 = load i32, ptr %70, align 4
  %72 = icmp ugt i32 %71, 4198399
  br i1 %72, label %77, label %73

73:                                               ; preds = %69
  %74 = getelementptr inbounds i8, ptr %0, i64 8
  %75 = load i8, ptr %74, align 8, !tbaa !52, !range !53, !noundef !54
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %77, label %.thread

77:                                               ; preds = %73, %69
  %78 = getelementptr inbounds i8, ptr %0, i64 5856
  %79 = load ptr, ptr %78, align 8, !tbaa !55
  %.not17 = icmp eq ptr %79, null
  br i1 %.not17, label %80, label %81

80:                                               ; preds = %77
  tail call void @__assert_fail(ptr noundef nonnull @.str.248, ptr noundef nonnull @.str.2, i32 noundef 14503, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

81:                                               ; preds = %77
  %82 = getelementptr inbounds i8, ptr %0, i64 5864
  %83 = load ptr, ptr %82, align 8, !tbaa !56
  %.not18 = icmp eq ptr %83, null
  br i1 %.not18, label %84, label %85

84:                                               ; preds = %81
  tail call void @__assert_fail(ptr noundef nonnull @.str.249, ptr noundef nonnull @.str.2, i32 noundef 14504, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

85:                                               ; preds = %81
  br i1 %72, label %89, label %.thread

.thread:                                          ; preds = %73, %85
  %86 = getelementptr inbounds i8, ptr %0, i64 9
  %87 = load i8, ptr %86, align 1, !tbaa !57, !range !53, !noundef !54
  %88 = trunc nuw i8 %87 to i1
  br i1 %88, label %89, label %97

89:                                               ; preds = %.thread, %85
  %90 = getelementptr inbounds i8, ptr %0, i64 5872
  %91 = load ptr, ptr %90, align 8, !tbaa !58
  %.not19 = icmp eq ptr %91, null
  br i1 %.not19, label %92, label %93

92:                                               ; preds = %89
  tail call void @__assert_fail(ptr noundef nonnull @.str.250, ptr noundef nonnull @.str.2, i32 noundef 14511, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

93:                                               ; preds = %89
  %94 = getelementptr inbounds i8, ptr %0, i64 5880
  %95 = load ptr, ptr %94, align 8, !tbaa !59
  %.not20 = icmp eq ptr %95, null
  br i1 %.not20, label %96, label %97

96:                                               ; preds = %93
  tail call void @__assert_fail(ptr noundef nonnull @.str.251, ptr noundef nonnull @.str.2, i32 noundef 14512, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

97:                                               ; preds = %93, %.thread
  %98 = getelementptr inbounds i8, ptr %0, i64 10
  %99 = load i8, ptr %98, align 2, !tbaa !60, !range !53, !noundef !54
  %100 = trunc nuw i8 %99 to i1
  %or.cond = or i1 %72, %100
  %101 = getelementptr inbounds i8, ptr %0, i64 5888
  %102 = load ptr, ptr %101, align 8
  %.not21 = icmp eq ptr %102, null
  %or.cond26 = select i1 %or.cond, i1 %.not21, i1 false
  br i1 %or.cond26, label %103, label %104

103:                                              ; preds = %97
  tail call void @__assert_fail(ptr noundef nonnull @.str.252, ptr noundef nonnull @.str.2, i32 noundef 14519, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

104:                                              ; preds = %97
  %105 = icmp ugt i32 %71, 4206591
  br i1 %105, label %106, label %114

106:                                              ; preds = %104
  %107 = getelementptr inbounds i8, ptr %0, i64 5896
  %108 = load ptr, ptr %107, align 8, !tbaa !61
  %.not22 = icmp eq ptr %108, null
  br i1 %.not22, label %109, label %110

109:                                              ; preds = %106
  tail call void @__assert_fail(ptr noundef nonnull @.str.253, ptr noundef nonnull @.str.2, i32 noundef 14526, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

110:                                              ; preds = %106
  %111 = getelementptr inbounds i8, ptr %0, i64 5904
  %112 = load ptr, ptr %111, align 8, !tbaa !62
  %.not23 = icmp eq ptr %112, null
  br i1 %.not23, label %113, label %114

113:                                              ; preds = %110
  tail call void @__assert_fail(ptr noundef nonnull @.str.254, ptr noundef nonnull @.str.2, i32 noundef 14527, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14VmaAllocator_T23ValidateVulkanFunctionsEv) #2
  unreachable

114:                                              ; preds = %110, %104
  ret void
}

attributes #0 = { 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 #1 = { 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 #2 = { 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, !11, i64 5720}
!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 = !{!6, !11, i64 5728}
!37 = !{!6, !11, i64 5736}
!38 = !{!6, !11, i64 5744}
!39 = !{!6, !11, i64 5752}
!40 = !{!6, !11, i64 5760}
!41 = !{!6, !11, i64 5768}
!42 = !{!6, !11, i64 5776}
!43 = !{!6, !11, i64 5784}
!44 = !{!6, !11, i64 5792}
!45 = !{!6, !11, i64 5800}
!46 = !{!6, !11, i64 5808}
!47 = !{!6, !11, i64 5816}
!48 = !{!6, !11, i64 5824}
!49 = !{!6, !11, i64 5832}
!50 = !{!6, !11, i64 5840}
!51 = !{!6, !11, i64 5848}
!52 = !{!6, !7, i64 8}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!6, !11, i64 5856}
!56 = !{!6, !11, i64 5864}
!57 = !{!6, !7, i64 9}
!58 = !{!6, !11, i64 5872}
!59 = !{!6, !11, i64 5880}
!60 = !{!6, !7, i64 10}
!61 = !{!6, !11, i64 5896}
!62 = !{!6, !11, i64 5904}


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