; 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.VmaBlockBufferImageGranularity::ValidationContext" = type { ptr, ptr }
%class.VmaBlockMetadata_TLSF = type { %class.VmaBlockMetadata.base, i64, i64, i64, i32, i8, [58 x i32], i32, ptr, %class.VmaPoolAllocator, ptr, %class.VmaBlockBufferImageGranularity }
%class.VmaBlockMetadata.base = type <{ ptr, i64, ptr, i64, i8 }>
%class.VmaPoolAllocator = type { ptr, i32, %class.VmaVector.4 }
%class.VmaVector.4 = type { %struct.VmaStlAllocator.5, ptr, i64, i64 }
%struct.VmaStlAllocator.5 = type { ptr }
%class.VmaBlockBufferImageGranularity = type { i64, i32, ptr }
%"class.VmaBlockMetadata_TLSF::Block" = type { i64, i64, ptr, ptr, ptr, %union.anon.6 }
%union.anon.6 = type { ptr }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv = external hidden unnamed_addr constant [53 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [60 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK30VmaBlockBufferImageGranularity15StartValidationEPK21VkAllocationCallbacksb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK30VmaBlockBufferImageGranularity8ValidateERNS_17ValidationContextEmm(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK30VmaBlockBufferImageGranularity16FinishValidationERNS_17ValidationContextE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK21VmaBlockMetadata_TLSF8ValidateEv(ptr noundef nonnull align 8 dereferenceable(400) %0) unnamed_addr #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"struct.VmaBlockBufferImageGranularity::ValidationContext", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8
  br label %17

17:                                               ; preds = %1
  %18 = load ptr, ptr %16, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %18, i64 6
  %20 = load ptr, ptr %19, align 8
  %21 = call noundef i64 %20(ptr noundef nonnull align 8 dereferenceable(400) %16)
  %22 = call noundef i64 @_ZNK16VmaBlockMetadata7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(33) %16)
  %23 = icmp ule i64 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.77, ptr noundef @.str.2, i32 noundef 10176, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

25:                                               ; preds = %17
  br label %26

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %27 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 10
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %28, i32 0, i32 1
  %30 = load i64, ptr %29, align 8, !tbaa !21
  store i64 %30, ptr %3, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %31 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 10
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %32, i32 0, i32 1
  %34 = load i64, ptr %33, align 8, !tbaa !21
  store i64 %34, ptr %4, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 0, ptr %6, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !24
  br label %35

35:                                               ; preds = %99, %26
  %36 = load i32, ptr %7, align 4, !tbaa !24
  %37 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 7
  %38 = load i32, ptr %37, align 8, !tbaa !25
  %39 = icmp ult i32 %36, %38
  br i1 %39, label %41, label %40

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

41:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %42 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 8
  %43 = load ptr, ptr %42, align 8, !tbaa !26
  %44 = load i32, ptr %7, align 4, !tbaa !24
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds ptr, ptr %43, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  store ptr %47, ptr %8, align 8, !tbaa !5
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %98

50:                                               ; preds = %41
  br label %51

51:                                               ; preds = %50
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZNK21VmaBlockMetadata_TLSF5Block6IsFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %52)
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  call void @__assert_fail(ptr noundef @.str.78, ptr noundef @.str.2, i32 noundef 10189, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

55:                                               ; preds = %51
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8PrevFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %59)
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %64, label %63

63:                                               ; preds = %58
  call void @__assert_fail(ptr noundef @.str.79, ptr noundef @.str.2, i32 noundef 10190, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

64:                                               ; preds = %58
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %93, %66
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %68)
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %97

72:                                               ; preds = %67
  br label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %74)
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = call noundef zeroext i1 @_ZNK21VmaBlockMetadata_TLSF5Block6IsFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %76)
  br i1 %77, label %79, label %78

78:                                               ; preds = %73
  call void @__assert_fail(ptr noundef @.str.80, ptr noundef @.str.2, i32 noundef 10193, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

79:                                               ; preds = %73
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %83)
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8PrevFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %85)
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = icmp eq ptr %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.81, ptr noundef @.str.2, i32 noundef 10194, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

91:                                               ; preds = %82
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %94)
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  store ptr %96, ptr %8, align 8, !tbaa !5
  br label %67, !llvm.loop !27

97:                                               ; preds = %67
  br label %98

98:                                               ; preds = %97, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %7, align 4, !tbaa !24
  %101 = add i32 %100, 1
  store i32 %101, ptr %7, align 4, !tbaa !24
  br label %35, !llvm.loop !29

102:                                              ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %103 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 10
  %104 = load ptr, ptr %103, align 8, !tbaa !11
  %105 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %104, i32 0, i32 0
  %106 = load i64, ptr %105, align 8, !tbaa !30
  store i64 %106, ptr %9, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %107 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 11
  %108 = call noundef ptr @_ZNK16VmaBlockMetadata22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(33) %16)
  %109 = call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %16)
  %110 = call { ptr, ptr } @_ZNK30VmaBlockBufferImageGranularity15StartValidationEPK21VkAllocationCallbacksb(ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef %108, i1 noundef zeroext %109)
  %111 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 0
  %112 = extractvalue { ptr, ptr } %110, 0
  store ptr %112, ptr %111, align 8
  %113 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 1
  %114 = extractvalue { ptr, ptr } %110, 1
  store ptr %114, ptr %113, align 8
  br label %115

115:                                              ; preds = %102
  %116 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 10
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %117, i32 0, i32 3
  %119 = load ptr, ptr %118, align 8, !tbaa !31
  %120 = icmp eq ptr %119, null
  br i1 %120, label %122, label %121

121:                                              ; preds = %115
  call void @__assert_fail(ptr noundef @.str.82, ptr noundef @.str.2, i32 noundef 10203, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

122:                                              ; preds = %115
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  %125 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 10
  %126 = load ptr, ptr %125, align 8, !tbaa !11
  %127 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %126, i32 0, i32 2
  %128 = load ptr, ptr %127, align 8, !tbaa !32
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %145

130:                                              ; preds = %124
  br label %131

131:                                              ; preds = %130
  %132 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 10
  %133 = load ptr, ptr %132, align 8, !tbaa !11
  %134 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %133, i32 0, i32 2
  %135 = load ptr, ptr %134, align 8, !tbaa !32
  %136 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %135, i32 0, i32 3
  %137 = load ptr, ptr %136, align 8, !tbaa !31
  %138 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 10
  %139 = load ptr, ptr %138, align 8, !tbaa !11
  %140 = icmp eq ptr %137, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %131
  call void @__assert_fail(ptr noundef @.str.83, ptr noundef @.str.2, i32 noundef 10206, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

142:                                              ; preds = %131
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144, %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %146 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 10
  %147 = load ptr, ptr %146, align 8, !tbaa !11
  %148 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %147, i32 0, i32 2
  %149 = load ptr, ptr %148, align 8, !tbaa !32
  store ptr %149, ptr %11, align 8, !tbaa !5
  br label %150

150:                                              ; preds = %289, %145
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  %152 = icmp ne ptr %151, null
  br i1 %152, label %154, label %153

153:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %293

154:                                              ; preds = %150
  br label %155

155:                                              ; preds = %154
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  %157 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %156, i32 0, i32 0
  %158 = load i64, ptr %157, align 8, !tbaa !30
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %159, i32 0, i32 1
  %161 = load i64, ptr %160, align 8, !tbaa !21
  %162 = add i64 %158, %161
  %163 = load i64, ptr %9, align 8, !tbaa !23
  %164 = icmp eq i64 %162, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %155
  call void @__assert_fail(ptr noundef @.str.84, ptr noundef @.str.2, i32 noundef 10211, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

166:                                              ; preds = %155
  br label %167

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %169, i32 0, i32 0
  %171 = load i64, ptr %170, align 8, !tbaa !30
  store i64 %171, ptr %9, align 8, !tbaa !23
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %172, i32 0, i32 1
  %174 = load i64, ptr %173, align 8, !tbaa !21
  %175 = load i64, ptr %3, align 8, !tbaa !23
  %176 = add i64 %175, %174
  store i64 %176, ptr %3, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %177, i32 0, i32 1
  %179 = load i64, ptr %178, align 8, !tbaa !21
  %180 = call noundef i32 @_ZNK21VmaBlockMetadata_TLSF12GetListIndexEm(ptr noundef nonnull align 8 dereferenceable(400) %16, i64 noundef %179)
  store i32 %180, ptr %12, align 4, !tbaa !24
  %181 = load ptr, ptr %11, align 8, !tbaa !5
  %182 = call noundef zeroext i1 @_ZNK21VmaBlockMetadata_TLSF5Block6IsFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %181)
  br i1 %182, label %183, label %229

183:                                              ; preds = %168
  %184 = load i64, ptr %6, align 8, !tbaa !23
  %185 = add i64 %184, 1
  store i64 %185, ptr %6, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %186 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 8
  %187 = load ptr, ptr %186, align 8, !tbaa !26
  %188 = load i32, ptr %12, align 4, !tbaa !24
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds ptr, ptr %187, i64 %189
  %191 = load ptr, ptr %190, align 8, !tbaa !5
  store ptr %191, ptr %13, align 8, !tbaa !5
  br label %192

192:                                              ; preds = %183
  %193 = load ptr, ptr %13, align 8, !tbaa !5
  %194 = icmp ne ptr %193, null
  br i1 %194, label %196, label %195

195:                                              ; preds = %192
  call void @__assert_fail(ptr noundef @.str.85, ptr noundef @.str.2, i32 noundef 10221, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

196:                                              ; preds = %192
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  store i8 0, ptr %14, align 1, !tbaa !33
  br label %199

199:                                              ; preds = %214, %198
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = icmp eq ptr %200, %201
  br i1 %202, label %203, label %204

203:                                              ; preds = %199
  store i8 1, ptr %14, align 1, !tbaa !33
  br label %204

204:                                              ; preds = %203, %199
  %205 = load ptr, ptr %13, align 8, !tbaa !5
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %205)
  %207 = load ptr, ptr %206, align 8, !tbaa !5
  store ptr %207, ptr %13, align 8, !tbaa !5
  br label %208

208:                                              ; preds = %204
  %209 = load i8, ptr %14, align 1, !tbaa !33, !range !34, !noundef !35
  %210 = trunc i8 %209 to i1
  br i1 %210, label %214, label %211

211:                                              ; preds = %208
  %212 = load ptr, ptr %13, align 8, !tbaa !5
  %213 = icmp ne ptr %212, null
  br label %214

214:                                              ; preds = %211, %208
  %215 = phi i1 [ false, %208 ], [ %213, %211 ]
  br i1 %215, label %199, label %216, !llvm.loop !36

216:                                              ; preds = %214
  br label %217

217:                                              ; preds = %216
  %218 = load i8, ptr %14, align 1, !tbaa !33, !range !34, !noundef !35
  %219 = trunc i8 %218 to i1
  br i1 %219, label %221, label %220

220:                                              ; preds = %217
  call void @__assert_fail(ptr noundef @.str.86, ptr noundef @.str.2, i32 noundef 10232, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

221:                                              ; preds = %217
  br label %222

222:                                              ; preds = %221
  br label %223

223:                                              ; preds = %222
  %224 = load ptr, ptr %11, align 8, !tbaa !5
  %225 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %224, i32 0, i32 1
  %226 = load i64, ptr %225, align 8, !tbaa !21
  %227 = load i64, ptr %4, align 8, !tbaa !23
  %228 = add i64 %227, %226
  store i64 %228, ptr %4, align 8, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %270

229:                                              ; preds = %168
  %230 = load i64, ptr %5, align 8, !tbaa !23
  %231 = add i64 %230, 1
  store i64 %231, ptr %5, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %232 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 8
  %233 = load ptr, ptr %232, align 8, !tbaa !26
  %234 = load i32, ptr %12, align 4, !tbaa !24
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds ptr, ptr %233, i64 %235
  %237 = load ptr, ptr %236, align 8, !tbaa !5
  store ptr %237, ptr %15, align 8, !tbaa !5
  br label %238

238:                                              ; preds = %249, %229
  %239 = load ptr, ptr %15, align 8, !tbaa !5
  %240 = icmp ne ptr %239, null
  br i1 %240, label %241, label %253

241:                                              ; preds = %238
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr %15, align 8, !tbaa !5
  %244 = load ptr, ptr %11, align 8, !tbaa !5
  %245 = icmp ne ptr %243, %244
  br i1 %245, label %247, label %246

246:                                              ; preds = %242
  call void @__assert_fail(ptr noundef @.str.87, ptr noundef @.str.2, i32 noundef 10242, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

247:                                              ; preds = %242
  br label %248

248:                                              ; preds = %247
  br label %249

249:                                              ; preds = %248
  %250 = load ptr, ptr %15, align 8, !tbaa !5
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %250)
  %252 = load ptr, ptr %251, align 8, !tbaa !5
  store ptr %252, ptr %15, align 8, !tbaa !5
  br label %238, !llvm.loop !37

253:                                              ; preds = %238
  %254 = call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %16)
  br i1 %254, label %269, label %255

255:                                              ; preds = %253
  br label %256

256:                                              ; preds = %255
  %257 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 11
  %258 = load ptr, ptr %11, align 8, !tbaa !5
  %259 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %258, i32 0, i32 0
  %260 = load i64, ptr %259, align 8, !tbaa !30
  %261 = load ptr, ptr %11, align 8, !tbaa !5
  %262 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %261, i32 0, i32 1
  %263 = load i64, ptr %262, align 8, !tbaa !21
  %264 = call noundef zeroext i1 @_ZNK30VmaBlockBufferImageGranularity8ValidateERNS_17ValidationContextEmm(ptr noundef nonnull align 8 dereferenceable(24) %257, ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %260, i64 noundef %263)
  br i1 %264, label %266, label %265

265:                                              ; preds = %256
  call void @__assert_fail(ptr noundef @.str.88, ptr noundef @.str.2, i32 noundef 10248, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

266:                                              ; preds = %256
  br label %267

267:                                              ; preds = %266
  br label %268

268:                                              ; preds = %267
  br label %269

269:                                              ; preds = %268, %253
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %270

270:                                              ; preds = %269, %223
  %271 = load ptr, ptr %11, align 8, !tbaa !5
  %272 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %271, i32 0, i32 2
  %273 = load ptr, ptr %272, align 8, !tbaa !32
  %274 = icmp ne ptr %273, null
  br i1 %274, label %275, label %288

275:                                              ; preds = %270
  br label %276

276:                                              ; preds = %275
  %277 = load ptr, ptr %11, align 8, !tbaa !5
  %278 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %277, i32 0, i32 2
  %279 = load ptr, ptr %278, align 8, !tbaa !32
  %280 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %279, i32 0, i32 3
  %281 = load ptr, ptr %280, align 8, !tbaa !31
  %282 = load ptr, ptr %11, align 8, !tbaa !5
  %283 = icmp eq ptr %281, %282
  br i1 %283, label %285, label %284

284:                                              ; preds = %276
  call void @__assert_fail(ptr noundef @.str.89, ptr noundef @.str.2, i32 noundef 10254, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

285:                                              ; preds = %276
  br label %286

286:                                              ; preds = %285
  br label %287

287:                                              ; preds = %286
  br label %288

288:                                              ; preds = %287, %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %289

289:                                              ; preds = %288
  %290 = load ptr, ptr %11, align 8, !tbaa !5
  %291 = getelementptr inbounds %"class.VmaBlockMetadata_TLSF::Block", ptr %290, i32 0, i32 2
  %292 = load ptr, ptr %291, align 8, !tbaa !32
  store ptr %292, ptr %11, align 8, !tbaa !5
  br label %150, !llvm.loop !38

293:                                              ; preds = %153
  %294 = call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %16)
  br i1 %294, label %303, label %295

295:                                              ; preds = %293
  br label %296

296:                                              ; preds = %295
  %297 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 11
  %298 = call noundef zeroext i1 @_ZNK30VmaBlockBufferImageGranularity16FinishValidationERNS_17ValidationContextE(ptr noundef nonnull align 8 dereferenceable(24) %297, ptr noundef nonnull align 8 dereferenceable(16) %10)
  br i1 %298, label %300, label %299

299:                                              ; preds = %296
  call void @__assert_fail(ptr noundef @.str.90, ptr noundef @.str.2, i32 noundef 10260, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

300:                                              ; preds = %296
  br label %301

301:                                              ; preds = %300
  br label %302

302:                                              ; preds = %301
  br label %303

303:                                              ; preds = %302, %293
  br label %304

304:                                              ; preds = %303
  %305 = load i64, ptr %9, align 8, !tbaa !23
  %306 = icmp eq i64 %305, 0
  br i1 %306, label %308, label %307

307:                                              ; preds = %304
  call void @__assert_fail(ptr noundef @.str.91, ptr noundef @.str.2, i32 noundef 10263, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

308:                                              ; preds = %304
  br label %309

309:                                              ; preds = %308
  br label %310

310:                                              ; preds = %309
  br label %311

311:                                              ; preds = %310
  %312 = load i64, ptr %3, align 8, !tbaa !23
  %313 = call noundef i64 @_ZNK16VmaBlockMetadata7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(33) %16)
  %314 = icmp eq i64 %312, %313
  br i1 %314, label %316, label %315

315:                                              ; preds = %311
  call void @__assert_fail(ptr noundef @.str.92, ptr noundef @.str.2, i32 noundef 10264, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

316:                                              ; preds = %311
  br label %317

317:                                              ; preds = %316
  br label %318

318:                                              ; preds = %317
  br label %319

319:                                              ; preds = %318
  %320 = load i64, ptr %4, align 8, !tbaa !23
  %321 = load ptr, ptr %16, align 8, !tbaa !9
  %322 = getelementptr inbounds ptr, ptr %321, i64 6
  %323 = load ptr, ptr %322, align 8
  %324 = call noundef i64 %323(ptr noundef nonnull align 8 dereferenceable(400) %16)
  %325 = icmp eq i64 %320, %324
  br i1 %325, label %327, label %326

326:                                              ; preds = %319
  call void @__assert_fail(ptr noundef @.str.93, ptr noundef @.str.2, i32 noundef 10265, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

327:                                              ; preds = %319
  br label %328

328:                                              ; preds = %327
  br label %329

329:                                              ; preds = %328
  br label %330

330:                                              ; preds = %329
  %331 = load i64, ptr %5, align 8, !tbaa !23
  %332 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 1
  %333 = load i64, ptr %332, align 8, !tbaa !39
  %334 = icmp eq i64 %331, %333
  br i1 %334, label %336, label %335

335:                                              ; preds = %330
  call void @__assert_fail(ptr noundef @.str.94, ptr noundef @.str.2, i32 noundef 10266, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

336:                                              ; preds = %330
  br label %337

337:                                              ; preds = %336
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  %340 = load i64, ptr %6, align 8, !tbaa !23
  %341 = getelementptr inbounds %class.VmaBlockMetadata_TLSF, ptr %16, i32 0, i32 2
  %342 = load i64, ptr %341, align 8, !tbaa !40
  %343 = icmp eq i64 %340, %342
  br i1 %343, label %345, label %344

344:                                              ; preds = %339
  call void @__assert_fail(ptr noundef @.str.95, ptr noundef @.str.2, i32 noundef 10267, ptr noundef @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

345:                                              ; preds = %339
  br label %346

346:                                              ; preds = %345
  br label %347

347:                                              ; preds = %346
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret i1 true
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK21VmaBlockMetadata_TLSF5Block6IsFreeEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 368}
!12 = !{!"_ZTS21VmaBlockMetadata_TLSF", !13, i64 0, !14, i64 40, !14, i64 48, !14, i64 56, !16, i64 64, !7, i64 68, !7, i64 72, !16, i64 304, !6, i64 312, !17, i64 320, !6, i64 368, !20, i64 376}
!13 = !{!"_ZTS16VmaBlockMetadata", !14, i64 8, !6, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS16VmaPoolAllocatorIN21VmaBlockMetadata_TLSF5BlockEE", !6, i64 0, !16, i64 8, !18, i64 16}
!18 = !{!"_ZTS9VmaVectorIN16VmaPoolAllocatorIN21VmaBlockMetadata_TLSF5BlockEE9ItemBlockE15VmaStlAllocatorIS4_EE", !19, i64 0, !6, i64 8, !14, i64 16, !14, i64 24}
!19 = !{!"_ZTS15VmaStlAllocatorIN16VmaPoolAllocatorIN21VmaBlockMetadata_TLSF5BlockEE9ItemBlockEE", !6, i64 0}
!20 = !{!"_ZTS30VmaBlockBufferImageGranularity", !14, i64 0, !16, i64 8, !6, i64 16}
!21 = !{!22, !14, i64 8}
!22 = !{!"_ZTSN21VmaBlockMetadata_TLSF5BlockE", !14, i64 0, !14, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !7, i64 40}
!23 = !{!14, !14, i64 0}
!24 = !{!16, !16, i64 0}
!25 = !{!12, !16, i64 304}
!26 = !{!12, !6, i64 312}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!22, !14, i64 0}
!31 = !{!22, !6, i64 24}
!32 = !{!22, !6, i64 16}
!33 = !{!15, !15, i64 0}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = distinct !{!36, !28}
!37 = distinct !{!37, !28}
!38 = distinct !{!38, !28}
!39 = !{!12, !14, i64 40}
!40 = !{!12, !14, i64 48}


; 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.VmaBlockBufferImageGranularity::ValidationContext" = type { ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv = external hidden unnamed_addr constant [53 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [60 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK30VmaBlockBufferImageGranularity15StartValidationEPK21VkAllocationCallbacksb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK30VmaBlockBufferImageGranularity8ValidateERNS_17ValidationContextEmm(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK30VmaBlockBufferImageGranularity16FinishValidationERNS_17ValidationContextE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK21VmaBlockMetadata_TLSF8ValidateEv(ptr noundef nonnull align 8 dereferenceable(400) %0) unnamed_addr #3 align 2 {
  %2 = alloca %"struct.VmaBlockBufferImageGranularity::ValidationContext", align 8
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 48
  %5 = load ptr, ptr %4, align 8
  %6 = tail call noundef i64 %5(ptr noundef nonnull align 8 dereferenceable(400) %0)
  %7 = tail call noundef i64 @_ZNK16VmaBlockMetadata7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  %.not = icmp ugt i64 %6, %7
  br i1 %.not, label %8, label %9

8:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.77, ptr noundef nonnull @.str.2, i32 noundef 10176, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

9:                                                ; preds = %1
  %10 = getelementptr inbounds i8, ptr %0, i64 368
  %11 = load ptr, ptr %10, align 8, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !20
  %14 = getelementptr inbounds i8, ptr %0, i64 304
  %15 = load i32, ptr %14, align 8, !tbaa !22
  %.not131 = icmp eq i32 %15, 0
  br i1 %.not131, label %._crit_edge, label %.lr.ph109

.lr.ph109:                                        ; preds = %9
  %16 = getelementptr inbounds i8, ptr %0, i64 312
  br label %30

._crit_edge.loopexit:                             ; preds = %.loopexit
  %.pre = load ptr, ptr %10, align 8, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %9
  %17 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ %11, %9 ]
  %18 = load i64, ptr %17, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  %19 = getelementptr inbounds i8, ptr %0, i64 376
  %20 = tail call noundef ptr @_ZNK16VmaBlockMetadata22GetAllocationCallbacksEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  %21 = tail call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  %22 = tail call { ptr, ptr } @_ZNK30VmaBlockBufferImageGranularity15StartValidationEPK21VkAllocationCallbacksb(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef %20, i1 noundef zeroext %21)
  %23 = extractvalue { ptr, ptr } %22, 0
  store ptr %23, ptr %2, align 8
  %24 = getelementptr inbounds i8, ptr %2, i64 8
  %25 = extractvalue { ptr, ptr } %22, 1
  store ptr %25, ptr %24, align 8
  %26 = load ptr, ptr %10, align 8, !tbaa !8
  %27 = getelementptr inbounds i8, ptr %26, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !24
  %29 = icmp eq ptr %28, null
  br i1 %29, label %64, label %63

30:                                               ; preds = %.lr.ph109, %.loopexit
  %indvars.iv = phi i64 [ 0, %.lr.ph109 ], [ %indvars.iv.next, %.loopexit ]
  %31 = load ptr, ptr %16, align 8, !tbaa !25
  %32 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv
  %33 = load ptr, ptr %32, align 8, !tbaa !26
  %.not73 = icmp eq ptr %33, null
  br i1 %.not73, label %.loopexit, label %34

34:                                               ; preds = %30
  %35 = tail call noundef zeroext i1 @_ZNK21VmaBlockMetadata_TLSF5Block6IsFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %33)
  br i1 %35, label %37, label %36

36:                                               ; preds = %34
  tail call void @__assert_fail(ptr noundef nonnull @.str.78, ptr noundef nonnull @.str.2, i32 noundef 10189, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

37:                                               ; preds = %34
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8PrevFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %33)
  %39 = load ptr, ptr %38, align 8, !tbaa !26
  %40 = icmp eq ptr %39, null
  br i1 %40, label %.preheader75, label %43

.preheader75:                                     ; preds = %37
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %33)
  %42 = load ptr, ptr %41, align 8, !tbaa !26
  %.not74106 = icmp eq ptr %42, null
  br i1 %.not74106, label %.loopexit, label %.lr.ph

43:                                               ; preds = %37
  tail call void @__assert_fail(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.2, i32 noundef 10190, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

.lr.ph:                                           ; preds = %.preheader75, %55
  %.053107 = phi ptr [ %57, %55 ], [ %33, %.preheader75 ]
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %.053107)
  %45 = load ptr, ptr %44, align 8, !tbaa !26
  %46 = tail call noundef zeroext i1 @_ZNK21VmaBlockMetadata_TLSF5Block6IsFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %45)
  br i1 %46, label %48, label %47

47:                                               ; preds = %.lr.ph
  tail call void @__assert_fail(ptr noundef nonnull @.str.80, ptr noundef nonnull @.str.2, i32 noundef 10193, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

48:                                               ; preds = %.lr.ph
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %.053107)
  %50 = load ptr, ptr %49, align 8, !tbaa !26
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8PrevFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %50)
  %52 = load ptr, ptr %51, align 8, !tbaa !26
  %53 = icmp eq ptr %52, %.053107
  br i1 %53, label %55, label %54

54:                                               ; preds = %48
  tail call void @__assert_fail(ptr noundef nonnull @.str.81, ptr noundef nonnull @.str.2, i32 noundef 10194, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

55:                                               ; preds = %48
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %.053107)
  %57 = load ptr, ptr %56, align 8, !tbaa !26
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %57)
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %.not74 = icmp eq ptr %59, null
  br i1 %.not74, label %.loopexit, label %.lr.ph, !llvm.loop !27

.loopexit:                                        ; preds = %55, %.preheader75, %30
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %60 = load i32, ptr %14, align 8, !tbaa !22
  %61 = zext i32 %60 to i64
  %62 = icmp ult i64 %indvars.iv.next, %61
  br i1 %62, label %30, label %._crit_edge.loopexit, !llvm.loop !29

63:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.82, ptr noundef nonnull @.str.2, i32 noundef 10203, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

64:                                               ; preds = %._crit_edge
  %65 = getelementptr inbounds i8, ptr %26, i64 16
  %66 = load ptr, ptr %65, align 8, !tbaa !30
  %.not65 = icmp eq ptr %66, null
  br i1 %.not65, label %._crit_edge126, label %67

67:                                               ; preds = %64
  %68 = getelementptr inbounds i8, ptr %66, i64 24
  %69 = load ptr, ptr %68, align 8, !tbaa !24
  %70 = icmp eq ptr %69, %26
  br i1 %70, label %.lr.ph125, label %71

71:                                               ; preds = %67
  tail call void @__assert_fail(ptr noundef nonnull @.str.83, ptr noundef nonnull @.str.2, i32 noundef 10206, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

.lr.ph125:                                        ; preds = %67
  %72 = getelementptr inbounds i8, ptr %0, i64 312
  br label %74

._crit_edge126:                                   ; preds = %112, %64
  %.059.lcssa = phi i64 [ %13, %64 ], [ %.160, %112 ]
  %.057.lcssa = phi i64 [ 0, %64 ], [ %.158, %112 ]
  %.055.lcssa = phi i64 [ 0, %64 ], [ %.156, %112 ]
  %.052.lcssa = phi i64 [ %18, %64 ], [ %75, %112 ]
  %.050.lcssa = phi i64 [ %13, %64 ], [ %82, %112 ]
  %73 = call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  br i1 %73, label %123, label %120

74:                                               ; preds = %115, %.lr.ph125
  %.051123 = phi ptr [ %66, %.lr.ph125 ], [ %114, %115 ]
  %.050122 = phi i64 [ %13, %.lr.ph125 ], [ %82, %115 ]
  %.052121 = phi i64 [ %18, %.lr.ph125 ], [ %75, %115 ]
  %.055120 = phi i64 [ 0, %.lr.ph125 ], [ %.156, %115 ]
  %.057119 = phi i64 [ 0, %.lr.ph125 ], [ %.158, %115 ]
  %.059118 = phi i64 [ %13, %.lr.ph125 ], [ %.160, %115 ]
  %75 = load i64, ptr %.051123, align 8, !tbaa !23
  %76 = getelementptr inbounds i8, ptr %.051123, i64 8
  %77 = load i64, ptr %76, align 8, !tbaa !20
  %78 = add i64 %77, %75
  %79 = icmp eq i64 %78, %.052121
  br i1 %79, label %81, label %80

80:                                               ; preds = %74
  call void @__assert_fail(ptr noundef nonnull @.str.84, ptr noundef nonnull @.str.2, i32 noundef 10211, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

81:                                               ; preds = %74
  %82 = add i64 %77, %.050122
  %83 = call noundef i32 @_ZNK21VmaBlockMetadata_TLSF12GetListIndexEm(ptr noundef nonnull align 8 dereferenceable(400) %0, i64 noundef %77)
  %84 = call noundef zeroext i1 @_ZNK21VmaBlockMetadata_TLSF5Block6IsFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %.051123)
  %85 = load ptr, ptr %72, align 8, !tbaa !25
  %86 = zext i32 %83 to i64
  %87 = getelementptr inbounds ptr, ptr %85, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !26
  %.not69 = icmp eq ptr %88, null
  br i1 %84, label %89, label %101

89:                                               ; preds = %81
  %90 = add i64 %.055120, 1
  br i1 %.not69, label %91, label %.preheader

91:                                               ; preds = %89
  call void @__assert_fail(ptr noundef nonnull @.str.85, ptr noundef nonnull @.str.2, i32 noundef 10221, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

.preheader:                                       ; preds = %89, %.preheader
  %.049 = phi ptr [ %94, %.preheader ], [ %88, %89 ]
  %92 = icmp eq ptr %.049, %.051123
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %.049)
  %94 = load ptr, ptr %93, align 8, !tbaa !26
  %95 = icmp eq ptr %94, null
  %.not71 = select i1 %92, i1 true, i1 %95
  br i1 %.not71, label %96, label %.preheader, !llvm.loop !31

96:                                               ; preds = %.preheader
  br i1 %92, label %98, label %97

97:                                               ; preds = %96
  call void @__assert_fail(ptr noundef nonnull @.str.86, ptr noundef nonnull @.str.2, i32 noundef 10232, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

98:                                               ; preds = %96
  %99 = load i64, ptr %76, align 8, !tbaa !20
  %100 = add i64 %99, %.059118
  br label %112

101:                                              ; preds = %81
  %102 = add i64 %.057119, 1
  br i1 %.not69, label %._crit_edge115, label %.lr.ph114

.lr.ph114:                                        ; preds = %101, %104
  %.0112 = phi ptr [ %.0, %104 ], [ %88, %101 ]
  %.not68 = icmp eq ptr %.0112, %.051123
  br i1 %.not68, label %103, label %104

103:                                              ; preds = %.lr.ph114
  call void @__assert_fail(ptr noundef nonnull @.str.87, ptr noundef nonnull @.str.2, i32 noundef 10242, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

104:                                              ; preds = %.lr.ph114
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN21VmaBlockMetadata_TLSF5Block8NextFreeEv(ptr noundef nonnull align 8 dereferenceable(48) %.0112)
  %.0 = load ptr, ptr %105, align 8, !tbaa !26
  %.not67 = icmp eq ptr %.0, null
  br i1 %.not67, label %._crit_edge115, label %.lr.ph114, !llvm.loop !32

._crit_edge115:                                   ; preds = %104, %101
  %106 = call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  br i1 %106, label %112, label %107

107:                                              ; preds = %._crit_edge115
  %108 = load i64, ptr %.051123, align 8, !tbaa !23
  %109 = load i64, ptr %76, align 8, !tbaa !20
  %110 = call noundef zeroext i1 @_ZNK30VmaBlockBufferImageGranularity8ValidateERNS_17ValidationContextEmm(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %108, i64 noundef %109)
  br i1 %110, label %112, label %111

111:                                              ; preds = %107
  call void @__assert_fail(ptr noundef nonnull @.str.88, ptr noundef nonnull @.str.2, i32 noundef 10248, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

112:                                              ; preds = %._crit_edge115, %107, %98
  %.160 = phi i64 [ %100, %98 ], [ %.059118, %107 ], [ %.059118, %._crit_edge115 ]
  %.158 = phi i64 [ %.057119, %98 ], [ %102, %107 ], [ %102, %._crit_edge115 ]
  %.156 = phi i64 [ %90, %98 ], [ %.055120, %107 ], [ %.055120, %._crit_edge115 ]
  %113 = getelementptr inbounds i8, ptr %.051123, i64 16
  %114 = load ptr, ptr %113, align 8, !tbaa !30
  %.not72 = icmp eq ptr %114, null
  br i1 %.not72, label %._crit_edge126, label %115

115:                                              ; preds = %112
  %116 = getelementptr inbounds i8, ptr %114, i64 24
  %117 = load ptr, ptr %116, align 8, !tbaa !24
  %118 = icmp eq ptr %117, %.051123
  br i1 %118, label %74, label %119, !llvm.loop !33

119:                                              ; preds = %115
  call void @__assert_fail(ptr noundef nonnull @.str.89, ptr noundef nonnull @.str.2, i32 noundef 10254, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

120:                                              ; preds = %._crit_edge126
  %121 = call noundef zeroext i1 @_ZNK30VmaBlockBufferImageGranularity16FinishValidationERNS_17ValidationContextE(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(16) %2)
  br i1 %121, label %123, label %122

122:                                              ; preds = %120
  call void @__assert_fail(ptr noundef nonnull @.str.90, ptr noundef nonnull @.str.2, i32 noundef 10260, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

123:                                              ; preds = %._crit_edge126, %120
  %124 = icmp eq i64 %.052.lcssa, 0
  br i1 %124, label %126, label %125

125:                                              ; preds = %123
  call void @__assert_fail(ptr noundef nonnull @.str.91, ptr noundef nonnull @.str.2, i32 noundef 10263, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

126:                                              ; preds = %123
  %127 = call noundef i64 @_ZNK16VmaBlockMetadata7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  %128 = icmp eq i64 %.050.lcssa, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %126
  call void @__assert_fail(ptr noundef nonnull @.str.92, ptr noundef nonnull @.str.2, i32 noundef 10264, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

130:                                              ; preds = %126
  %131 = load ptr, ptr %0, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i64 48
  %133 = load ptr, ptr %132, align 8
  %134 = call noundef i64 %133(ptr noundef nonnull align 8 dereferenceable(400) %0)
  %135 = icmp eq i64 %.059.lcssa, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %130
  call void @__assert_fail(ptr noundef nonnull @.str.93, ptr noundef nonnull @.str.2, i32 noundef 10265, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

137:                                              ; preds = %130
  %138 = getelementptr inbounds i8, ptr %0, i64 40
  %139 = load i64, ptr %138, align 8, !tbaa !34
  %140 = icmp eq i64 %.057.lcssa, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %137
  call void @__assert_fail(ptr noundef nonnull @.str.94, ptr noundef nonnull @.str.2, i32 noundef 10266, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

142:                                              ; preds = %137
  %143 = getelementptr inbounds i8, ptr %0, i64 48
  %144 = load i64, ptr %143, align 8, !tbaa !35
  %145 = icmp eq i64 %.055.lcssa, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %142
  call void @__assert_fail(ptr noundef nonnull @.str.95, ptr noundef nonnull @.str.2, i32 noundef 10267, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK21VmaBlockMetadata_TLSF8ValidateEv) #4
  unreachable

147:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  ret i1 true
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK21VmaBlockMetadata_TLSF5Block6IsFreeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind }
attributes #5 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !13, i64 368}
!9 = !{!"_ZTS21VmaBlockMetadata_TLSF", !10, i64 0, !11, i64 40, !11, i64 48, !11, i64 56, !15, i64 64, !12, i64 68, !12, i64 72, !15, i64 304, !13, i64 312, !16, i64 320, !13, i64 368, !19, i64 376}
!10 = !{!"_ZTS16VmaBlockMetadata", !11, i64 8, !13, i64 16, !11, i64 24, !14, i64 32}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"any pointer", !12, i64 0}
!14 = !{!"bool", !12, i64 0}
!15 = !{!"int", !12, i64 0}
!16 = !{!"_ZTS16VmaPoolAllocatorIN21VmaBlockMetadata_TLSF5BlockEE", !13, i64 0, !15, i64 8, !17, i64 16}
!17 = !{!"_ZTS9VmaVectorIN16VmaPoolAllocatorIN21VmaBlockMetadata_TLSF5BlockEE9ItemBlockE15VmaStlAllocatorIS4_EE", !18, i64 0, !13, i64 8, !11, i64 16, !11, i64 24}
!18 = !{!"_ZTS15VmaStlAllocatorIN16VmaPoolAllocatorIN21VmaBlockMetadata_TLSF5BlockEE9ItemBlockEE", !13, i64 0}
!19 = !{!"_ZTS30VmaBlockBufferImageGranularity", !11, i64 0, !15, i64 8, !13, i64 16}
!20 = !{!21, !11, i64 8}
!21 = !{!"_ZTSN21VmaBlockMetadata_TLSF5BlockE", !11, i64 0, !11, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !12, i64 40}
!22 = !{!9, !15, i64 304}
!23 = !{!21, !11, i64 0}
!24 = !{!21, !13, i64 24}
!25 = !{!9, !13, i64 312}
!26 = !{!13, !13, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!21, !13, i64 16}
!31 = distinct !{!31, !28}
!32 = distinct !{!32, !28}
!33 = distinct !{!33, !28}
!34 = !{!9, !11, i64 40}
!35 = !{!9, !11, i64 48}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass