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

%class.VmaBlockMetadata_Linear = type { %class.VmaBlockMetadata.base, i64, %class.VmaVector.2, %class.VmaVector.2, i32, i32, i64, i64, i64 }
%class.VmaBlockMetadata.base = type <{ ptr, i64, ptr, i64, i8 }>
%class.VmaVector.2 = type { %struct.VmaStlAllocator.3, ptr, i64, i64 }
%struct.VmaStlAllocator.3 = type { ptr }
%struct.VmaSuballocation = type { i64, i64, ptr, i32 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [99 x i8], align 1
@__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv = external hidden unnamed_addr constant [55 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [70 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef 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
define dso_local noundef zeroext i1 @_ZNK23VmaBlockMetadata_Linear8ValidateEv(ptr noundef nonnull align 8 dereferenceable(144) %0) unnamed_addr #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i8, align 1
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i8, align 1
  %27 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %28 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %29 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK23VmaBlockMetadata_Linear23AccessSuballocations1stEv(ptr noundef nonnull align 8 dereferenceable(144) %28)
  store ptr %29, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %30 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK23VmaBlockMetadata_Linear23AccessSuballocations2ndEv(ptr noundef nonnull align 8 dereferenceable(144) %28)
  store ptr %30, ptr %4, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %1
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %32)
  %34 = zext i1 %33 to i32
  %35 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 5
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = icmp eq i32 %36, 0
  %38 = zext i1 %37 to i32
  %39 = icmp eq i32 %34, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.40, ptr noundef @.str.2, i32 noundef 7818, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

41:                                               ; preds = %31
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %45)
  br i1 %46, label %47, label %55

47:                                               ; preds = %44
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %48)
  br i1 %49, label %55, label %50

50:                                               ; preds = %47
  %51 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 5
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 1
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.41, ptr noundef @.str.2, i32 noundef 7821, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

55:                                               ; preds = %50, %47, %44
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %58)
  br i1 %59, label %83, label %60

60:                                               ; preds = %57
  br label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 6
  %64 = load i64, ptr %63, align 8, !tbaa !18
  %65 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %62, i64 noundef %64)
  %66 = getelementptr inbounds %struct.VmaSuballocation, ptr %65, i32 0, i32 3
  %67 = load i32, ptr %66, align 8, !tbaa !19
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %70, label %69

69:                                               ; preds = %61
  call void @__assert_fail(ptr noundef @.str.42, ptr noundef @.str.2, i32 noundef 7826, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

70:                                               ; preds = %61
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %74)
  %76 = getelementptr inbounds %struct.VmaSuballocation, ptr %75, i32 0, i32 3
  %77 = load i32, ptr %76, align 8, !tbaa !19
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %80, label %79

79:                                               ; preds = %73
  call void @__assert_fail(ptr noundef @.str.43, ptr noundef @.str.2, i32 noundef 7828, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

80:                                               ; preds = %73
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82, %57
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %84)
  br i1 %85, label %97, label %86

86:                                               ; preds = %83
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %88)
  %90 = getelementptr inbounds %struct.VmaSuballocation, ptr %89, i32 0, i32 3
  %91 = load i32, ptr %90, align 8, !tbaa !19
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %94, label %93

93:                                               ; preds = %87
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str.2, i32 noundef 7833, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

94:                                               ; preds = %87
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96, %83
  br label %98

98:                                               ; preds = %97
  %99 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 6
  %100 = load i64, ptr %99, align 8, !tbaa !18
  %101 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 7
  %102 = load i64, ptr %101, align 8, !tbaa !22
  %103 = add i64 %100, %102
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = call noundef i64 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %104)
  %106 = icmp ule i64 %103, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %98
  call void @__assert_fail(ptr noundef @.str.45, ptr noundef @.str.2, i32 noundef 7836, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

108:                                              ; preds = %98
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  %112 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 8
  %113 = load i64, ptr %112, align 8, !tbaa !23
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = call noundef i64 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %114)
  %116 = icmp ule i64 %113, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %111
  call void @__assert_fail(ptr noundef @.str.46, ptr noundef @.str.2, i32 noundef 7837, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

118:                                              ; preds = %111
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = call noundef i64 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %121)
  store i64 %122, ptr %6, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %123 = call noundef i64 @_ZNK16VmaBlockMetadata14GetDebugMarginEv(ptr noundef nonnull align 8 dereferenceable(33) %28)
  store i64 %123, ptr %7, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %8, align 8, !tbaa !24
  %124 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %127, label %233

127:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = call noundef i64 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %128)
  store i64 %129, ptr %9, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store i64 0, ptr %10, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !24
  br label %130

130:                                              ; preds = %220, %127
  %131 = load i64, ptr %11, align 8, !tbaa !24
  %132 = load i64, ptr %9, align 8, !tbaa !24
  %133 = icmp ult i64 %131, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %223

135:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = load i64, ptr %11, align 8, !tbaa !24
  %138 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %136, i64 noundef %137)
  store ptr %138, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.VmaSuballocation, ptr %139, i32 0, i32 3
  %141 = load i32, ptr %140, align 8, !tbaa !19
  %142 = icmp eq i32 %141, 0
  %143 = zext i1 %142 to i8
  store i8 %143, ptr %13, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.VmaSuballocation, ptr %144, i32 0, i32 2
  %146 = load ptr, ptr %145, align 8, !tbaa !26
  store ptr %146, ptr %14, align 8, !tbaa !5
  %147 = call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %28)
  br i1 %147, label %161, label %148

148:                                              ; preds = %135
  br label %149

149:                                              ; preds = %148
  %150 = load i8, ptr %13, align 1, !tbaa !25, !range !27, !noundef !28
  %151 = trunc i8 %150 to i1
  %152 = zext i1 %151 to i32
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = icmp eq ptr %153, null
  %155 = zext i1 %154 to i32
  %156 = icmp eq i32 %152, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %149
  call void @__assert_fail(ptr noundef @.str.47, ptr noundef @.str.2, i32 noundef 7856, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

158:                                              ; preds = %149
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  br label %161

161:                                              ; preds = %160, %135
  br label %162

162:                                              ; preds = %161
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.VmaSuballocation, ptr %163, i32 0, i32 0
  %165 = load i64, ptr %164, align 8, !tbaa !29
  %166 = load i64, ptr %8, align 8, !tbaa !24
  %167 = icmp uge i64 %165, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %162
  call void @__assert_fail(ptr noundef @.str.48, ptr noundef @.str.2, i32 noundef 7858, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

169:                                              ; preds = %162
  br label %170

170:                                              ; preds = %169
  br label %171

171:                                              ; preds = %170
  %172 = load i8, ptr %13, align 1, !tbaa !25, !range !27, !noundef !28
  %173 = trunc i8 %172 to i1
  br i1 %173, label %207, label %174

174:                                              ; preds = %171
  %175 = call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %28)
  br i1 %175, label %201, label %176

176:                                              ; preds = %174
  br label %177

177:                                              ; preds = %176
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  %179 = call noundef ptr @_ZNK15VmaAllocation_T14GetAllocHandleEv(ptr noundef nonnull align 8 dereferenceable(84) %178)
  %180 = ptrtoint ptr %179 to i64
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.VmaSuballocation, ptr %181, i32 0, i32 0
  %183 = load i64, ptr %182, align 8, !tbaa !29
  %184 = add i64 %183, 1
  %185 = icmp eq i64 %180, %184
  br i1 %185, label %187, label %186

186:                                              ; preds = %177
  call void @__assert_fail(ptr noundef @.str.49, ptr noundef @.str.2, i32 noundef 7864, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

187:                                              ; preds = %177
  br label %188

188:                                              ; preds = %187
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %191)
  %193 = load ptr, ptr %12, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.VmaSuballocation, ptr %193, i32 0, i32 1
  %195 = load i64, ptr %194, align 8, !tbaa !30
  %196 = icmp eq i64 %192, %195
  br i1 %196, label %198, label %197

197:                                              ; preds = %190
  call void @__assert_fail(ptr noundef @.str.50, ptr noundef @.str.2, i32 noundef 7865, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

198:                                              ; preds = %190
  br label %199

199:                                              ; preds = %198
  br label %200

200:                                              ; preds = %199
  br label %201

201:                                              ; preds = %200, %174
  %202 = load ptr, ptr %12, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.VmaSuballocation, ptr %202, i32 0, i32 1
  %204 = load i64, ptr %203, align 8, !tbaa !30
  %205 = load i64, ptr %5, align 8, !tbaa !24
  %206 = add i64 %205, %204
  store i64 %206, ptr %5, align 8, !tbaa !24
  br label %210

207:                                              ; preds = %171
  %208 = load i64, ptr %10, align 8, !tbaa !24
  %209 = add i64 %208, 1
  store i64 %209, ptr %10, align 8, !tbaa !24
  br label %210

210:                                              ; preds = %207, %201
  %211 = load ptr, ptr %12, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.VmaSuballocation, ptr %211, i32 0, i32 0
  %213 = load i64, ptr %212, align 8, !tbaa !29
  %214 = load ptr, ptr %12, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.VmaSuballocation, ptr %214, i32 0, i32 1
  %216 = load i64, ptr %215, align 8, !tbaa !30
  %217 = add i64 %213, %216
  %218 = load i64, ptr %7, align 8, !tbaa !24
  %219 = add i64 %217, %218
  store i64 %219, ptr %8, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %220

220:                                              ; preds = %210
  %221 = load i64, ptr %11, align 8, !tbaa !24
  %222 = add i64 %221, 1
  store i64 %222, ptr %11, align 8, !tbaa !24
  br label %130, !llvm.loop !31

223:                                              ; preds = %134
  br label %224

224:                                              ; preds = %223
  %225 = load i64, ptr %10, align 8, !tbaa !24
  %226 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 8
  %227 = load i64, ptr %226, align 8, !tbaa !23
  %228 = icmp eq i64 %225, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %224
  call void @__assert_fail(ptr noundef @.str.51, ptr noundef @.str.2, i32 noundef 7877, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

230:                                              ; preds = %224
  br label %231

231:                                              ; preds = %230
  br label %232

232:                                              ; preds = %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %233

233:                                              ; preds = %232, %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !24
  br label %234

234:                                              ; preds = %258, %233
  %235 = load i64, ptr %15, align 8, !tbaa !24
  %236 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 6
  %237 = load i64, ptr %236, align 8, !tbaa !18
  %238 = icmp ult i64 %235, %237
  br i1 %238, label %240, label %239

239:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %261

240:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = load i64, ptr %15, align 8, !tbaa !24
  %243 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %241, i64 noundef %242)
  store ptr %243, ptr %16, align 8, !tbaa !5
  br label %244

244:                                              ; preds = %240
  %245 = load ptr, ptr %16, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.VmaSuballocation, ptr %245, i32 0, i32 3
  %247 = load i32, ptr %246, align 8, !tbaa !19
  %248 = icmp eq i32 %247, 0
  br i1 %248, label %249, label %254

249:                                              ; preds = %244
  %250 = load ptr, ptr %16, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.VmaSuballocation, ptr %250, i32 0, i32 2
  %252 = load ptr, ptr %251, align 8, !tbaa !26
  %253 = icmp eq ptr %252, null
  br i1 %253, label %255, label %254

254:                                              ; preds = %249, %244
  call void @__assert_fail(ptr noundef @.str.52, ptr noundef @.str.2, i32 noundef 7884, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

255:                                              ; preds = %249
  br label %256

256:                                              ; preds = %255
  br label %257

257:                                              ; preds = %256
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %258

258:                                              ; preds = %257
  %259 = load i64, ptr %15, align 8, !tbaa !24
  %260 = add i64 %259, 1
  store i64 %260, ptr %15, align 8, !tbaa !24
  br label %234, !llvm.loop !33

261:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %262 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 6
  %263 = load i64, ptr %262, align 8, !tbaa !18
  store i64 %263, ptr %17, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %264 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 6
  %265 = load i64, ptr %264, align 8, !tbaa !18
  store i64 %265, ptr %18, align 8, !tbaa !24
  br label %266

266:                                              ; preds = %368, %261
  %267 = load i64, ptr %18, align 8, !tbaa !24
  %268 = load i64, ptr %6, align 8, !tbaa !24
  %269 = icmp ult i64 %267, %268
  br i1 %269, label %271, label %270

270:                                              ; preds = %266
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %371

271:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %272 = load ptr, ptr %3, align 8, !tbaa !5
  %273 = load i64, ptr %18, align 8, !tbaa !24
  %274 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %272, i64 noundef %273)
  store ptr %274, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  %275 = load ptr, ptr %19, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.VmaSuballocation, ptr %275, i32 0, i32 3
  %277 = load i32, ptr %276, align 8, !tbaa !19
  %278 = icmp eq i32 %277, 0
  %279 = zext i1 %278 to i8
  store i8 %279, ptr %20, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %280 = load ptr, ptr %19, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.VmaSuballocation, ptr %280, i32 0, i32 2
  %282 = load ptr, ptr %281, align 8, !tbaa !26
  store ptr %282, ptr %21, align 8, !tbaa !5
  %283 = call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %28)
  br i1 %283, label %297, label %284

284:                                              ; preds = %271
  br label %285

285:                                              ; preds = %284
  %286 = load i8, ptr %20, align 1, !tbaa !25, !range !27, !noundef !28
  %287 = trunc i8 %286 to i1
  %288 = zext i1 %287 to i32
  %289 = load ptr, ptr %21, align 8, !tbaa !5
  %290 = icmp eq ptr %289, null
  %291 = zext i1 %290 to i32
  %292 = icmp eq i32 %288, %291
  br i1 %292, label %294, label %293

293:                                              ; preds = %285
  call void @__assert_fail(ptr noundef @.str.47, ptr noundef @.str.2, i32 noundef 7897, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

294:                                              ; preds = %285
  br label %295

295:                                              ; preds = %294
  br label %296

296:                                              ; preds = %295
  br label %297

297:                                              ; preds = %296, %271
  br label %298

298:                                              ; preds = %297
  %299 = load ptr, ptr %19, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.VmaSuballocation, ptr %299, i32 0, i32 0
  %301 = load i64, ptr %300, align 8, !tbaa !29
  %302 = load i64, ptr %8, align 8, !tbaa !24
  %303 = icmp uge i64 %301, %302
  br i1 %303, label %305, label %304

304:                                              ; preds = %298
  call void @__assert_fail(ptr noundef @.str.48, ptr noundef @.str.2, i32 noundef 7899, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

305:                                              ; preds = %298
  br label %306

306:                                              ; preds = %305
  br label %307

307:                                              ; preds = %306
  br label %308

308:                                              ; preds = %307
  %309 = load i64, ptr %18, align 8, !tbaa !24
  %310 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 6
  %311 = load i64, ptr %310, align 8, !tbaa !18
  %312 = icmp uge i64 %309, %311
  br i1 %312, label %317, label %313

313:                                              ; preds = %308
  %314 = load i8, ptr %20, align 1, !tbaa !25, !range !27, !noundef !28
  %315 = trunc i8 %314 to i1
  br i1 %315, label %317, label %316

316:                                              ; preds = %313
  call void @__assert_fail(ptr noundef @.str.53, ptr noundef @.str.2, i32 noundef 7900, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

317:                                              ; preds = %313, %308
  br label %318

318:                                              ; preds = %317
  br label %319

319:                                              ; preds = %318
  %320 = load i8, ptr %20, align 1, !tbaa !25, !range !27, !noundef !28
  %321 = trunc i8 %320 to i1
  br i1 %321, label %355, label %322

322:                                              ; preds = %319
  %323 = call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %28)
  br i1 %323, label %349, label %324

324:                                              ; preds = %322
  br label %325

325:                                              ; preds = %324
  %326 = load ptr, ptr %21, align 8, !tbaa !5
  %327 = call noundef ptr @_ZNK15VmaAllocation_T14GetAllocHandleEv(ptr noundef nonnull align 8 dereferenceable(84) %326)
  %328 = ptrtoint ptr %327 to i64
  %329 = load ptr, ptr %19, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.VmaSuballocation, ptr %329, i32 0, i32 0
  %331 = load i64, ptr %330, align 8, !tbaa !29
  %332 = add i64 %331, 1
  %333 = icmp eq i64 %328, %332
  br i1 %333, label %335, label %334

334:                                              ; preds = %325
  call void @__assert_fail(ptr noundef @.str.49, ptr noundef @.str.2, i32 noundef 7906, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

335:                                              ; preds = %325
  br label %336

336:                                              ; preds = %335
  br label %337

337:                                              ; preds = %336
  br label %338

338:                                              ; preds = %337
  %339 = load ptr, ptr %21, align 8, !tbaa !5
  %340 = call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %339)
  %341 = load ptr, ptr %19, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.VmaSuballocation, ptr %341, i32 0, i32 1
  %343 = load i64, ptr %342, align 8, !tbaa !30
  %344 = icmp eq i64 %340, %343
  br i1 %344, label %346, label %345

345:                                              ; preds = %338
  call void @__assert_fail(ptr noundef @.str.50, ptr noundef @.str.2, i32 noundef 7907, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

346:                                              ; preds = %338
  br label %347

347:                                              ; preds = %346
  br label %348

348:                                              ; preds = %347
  br label %349

349:                                              ; preds = %348, %322
  %350 = load ptr, ptr %19, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.VmaSuballocation, ptr %350, i32 0, i32 1
  %352 = load i64, ptr %351, align 8, !tbaa !30
  %353 = load i64, ptr %5, align 8, !tbaa !24
  %354 = add i64 %353, %352
  store i64 %354, ptr %5, align 8, !tbaa !24
  br label %358

355:                                              ; preds = %319
  %356 = load i64, ptr %17, align 8, !tbaa !24
  %357 = add i64 %356, 1
  store i64 %357, ptr %17, align 8, !tbaa !24
  br label %358

358:                                              ; preds = %355, %349
  %359 = load ptr, ptr %19, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.VmaSuballocation, ptr %359, i32 0, i32 0
  %361 = load i64, ptr %360, align 8, !tbaa !29
  %362 = load ptr, ptr %19, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.VmaSuballocation, ptr %362, i32 0, i32 1
  %364 = load i64, ptr %363, align 8, !tbaa !30
  %365 = add i64 %361, %364
  %366 = load i64, ptr %7, align 8, !tbaa !24
  %367 = add i64 %365, %366
  store i64 %367, ptr %8, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %368

368:                                              ; preds = %358
  %369 = load i64, ptr %18, align 8, !tbaa !24
  %370 = add i64 %369, 1
  store i64 %370, ptr %18, align 8, !tbaa !24
  br label %266, !llvm.loop !34

371:                                              ; preds = %270
  br label %372

372:                                              ; preds = %371
  %373 = load i64, ptr %17, align 8, !tbaa !24
  %374 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 6
  %375 = load i64, ptr %374, align 8, !tbaa !18
  %376 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 7
  %377 = load i64, ptr %376, align 8, !tbaa !22
  %378 = add i64 %375, %377
  %379 = icmp eq i64 %373, %378
  br i1 %379, label %381, label %380

380:                                              ; preds = %372
  call void @__assert_fail(ptr noundef @.str.54, ptr noundef @.str.2, i32 noundef 7918, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

381:                                              ; preds = %372
  br label %382

382:                                              ; preds = %381
  br label %383

383:                                              ; preds = %382
  %384 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 5
  %385 = load i32, ptr %384, align 4, !tbaa !9
  %386 = icmp eq i32 %385, 2
  br i1 %386, label %387, label %491

387:                                              ; preds = %383
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %388 = load ptr, ptr %4, align 8, !tbaa !5
  %389 = call noundef i64 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %388)
  store i64 %389, ptr %22, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store i64 0, ptr %23, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %390 = load i64, ptr %22, align 8, !tbaa !24
  store i64 %390, ptr %24, align 8, !tbaa !24
  br label %391

391:                                              ; preds = %471, %387
  %392 = load i64, ptr %24, align 8, !tbaa !24
  %393 = add i64 %392, -1
  store i64 %393, ptr %24, align 8, !tbaa !24
  %394 = icmp ne i64 %392, 0
  br i1 %394, label %396, label %395

395:                                              ; preds = %391
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %481

396:                                              ; preds = %391
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %397 = load ptr, ptr %4, align 8, !tbaa !5
  %398 = load i64, ptr %24, align 8, !tbaa !24
  %399 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %397, i64 noundef %398)
  store ptr %399, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #4
  %400 = load ptr, ptr %25, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.VmaSuballocation, ptr %400, i32 0, i32 3
  %402 = load i32, ptr %401, align 8, !tbaa !19
  %403 = icmp eq i32 %402, 0
  %404 = zext i1 %403 to i8
  store i8 %404, ptr %26, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %405 = load ptr, ptr %25, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.VmaSuballocation, ptr %405, i32 0, i32 2
  %407 = load ptr, ptr %406, align 8, !tbaa !26
  store ptr %407, ptr %27, align 8, !tbaa !5
  %408 = call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %28)
  br i1 %408, label %422, label %409

409:                                              ; preds = %396
  br label %410

410:                                              ; preds = %409
  %411 = load i8, ptr %26, align 1, !tbaa !25, !range !27, !noundef !28
  %412 = trunc i8 %411 to i1
  %413 = zext i1 %412 to i32
  %414 = load ptr, ptr %27, align 8, !tbaa !5
  %415 = icmp eq ptr %414, null
  %416 = zext i1 %415 to i32
  %417 = icmp eq i32 %413, %416
  br i1 %417, label %419, label %418

418:                                              ; preds = %410
  call void @__assert_fail(ptr noundef @.str.47, ptr noundef @.str.2, i32 noundef 7932, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

419:                                              ; preds = %410
  br label %420

420:                                              ; preds = %419
  br label %421

421:                                              ; preds = %420
  br label %422

422:                                              ; preds = %421, %396
  br label %423

423:                                              ; preds = %422
  %424 = load ptr, ptr %25, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.VmaSuballocation, ptr %424, i32 0, i32 0
  %426 = load i64, ptr %425, align 8, !tbaa !29
  %427 = load i64, ptr %8, align 8, !tbaa !24
  %428 = icmp uge i64 %426, %427
  br i1 %428, label %430, label %429

429:                                              ; preds = %423
  call void @__assert_fail(ptr noundef @.str.48, ptr noundef @.str.2, i32 noundef 7934, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

430:                                              ; preds = %423
  br label %431

431:                                              ; preds = %430
  br label %432

432:                                              ; preds = %431
  %433 = load i8, ptr %26, align 1, !tbaa !25, !range !27, !noundef !28
  %434 = trunc i8 %433 to i1
  br i1 %434, label %468, label %435

435:                                              ; preds = %432
  %436 = call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %28)
  br i1 %436, label %462, label %437

437:                                              ; preds = %435
  br label %438

438:                                              ; preds = %437
  %439 = load ptr, ptr %27, align 8, !tbaa !5
  %440 = call noundef ptr @_ZNK15VmaAllocation_T14GetAllocHandleEv(ptr noundef nonnull align 8 dereferenceable(84) %439)
  %441 = ptrtoint ptr %440 to i64
  %442 = load ptr, ptr %25, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.VmaSuballocation, ptr %442, i32 0, i32 0
  %444 = load i64, ptr %443, align 8, !tbaa !29
  %445 = add i64 %444, 1
  %446 = icmp eq i64 %441, %445
  br i1 %446, label %448, label %447

447:                                              ; preds = %438
  call void @__assert_fail(ptr noundef @.str.49, ptr noundef @.str.2, i32 noundef 7940, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

448:                                              ; preds = %438
  br label %449

449:                                              ; preds = %448
  br label %450

450:                                              ; preds = %449
  br label %451

451:                                              ; preds = %450
  %452 = load ptr, ptr %27, align 8, !tbaa !5
  %453 = call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %452)
  %454 = load ptr, ptr %25, align 8, !tbaa !5
  %455 = getelementptr inbounds %struct.VmaSuballocation, ptr %454, i32 0, i32 1
  %456 = load i64, ptr %455, align 8, !tbaa !30
  %457 = icmp eq i64 %453, %456
  br i1 %457, label %459, label %458

458:                                              ; preds = %451
  call void @__assert_fail(ptr noundef @.str.50, ptr noundef @.str.2, i32 noundef 7941, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

459:                                              ; preds = %451
  br label %460

460:                                              ; preds = %459
  br label %461

461:                                              ; preds = %460
  br label %462

462:                                              ; preds = %461, %435
  %463 = load ptr, ptr %25, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct.VmaSuballocation, ptr %463, i32 0, i32 1
  %465 = load i64, ptr %464, align 8, !tbaa !30
  %466 = load i64, ptr %5, align 8, !tbaa !24
  %467 = add i64 %466, %465
  store i64 %467, ptr %5, align 8, !tbaa !24
  br label %471

468:                                              ; preds = %432
  %469 = load i64, ptr %23, align 8, !tbaa !24
  %470 = add i64 %469, 1
  store i64 %470, ptr %23, align 8, !tbaa !24
  br label %471

471:                                              ; preds = %468, %462
  %472 = load ptr, ptr %25, align 8, !tbaa !5
  %473 = getelementptr inbounds %struct.VmaSuballocation, ptr %472, i32 0, i32 0
  %474 = load i64, ptr %473, align 8, !tbaa !29
  %475 = load ptr, ptr %25, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.VmaSuballocation, ptr %475, i32 0, i32 1
  %477 = load i64, ptr %476, align 8, !tbaa !30
  %478 = add i64 %474, %477
  %479 = load i64, ptr %7, align 8, !tbaa !24
  %480 = add i64 %478, %479
  store i64 %480, ptr %8, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %391, !llvm.loop !35

481:                                              ; preds = %395
  br label %482

482:                                              ; preds = %481
  %483 = load i64, ptr %23, align 8, !tbaa !24
  %484 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 8
  %485 = load i64, ptr %484, align 8, !tbaa !23
  %486 = icmp eq i64 %483, %485
  br i1 %486, label %488, label %487

487:                                              ; preds = %482
  call void @__assert_fail(ptr noundef @.str.51, ptr noundef @.str.2, i32 noundef 7953, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

488:                                              ; preds = %482
  br label %489

489:                                              ; preds = %488
  br label %490

490:                                              ; preds = %489
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %491

491:                                              ; preds = %490, %383
  br label %492

492:                                              ; preds = %491
  %493 = load i64, ptr %8, align 8, !tbaa !24
  %494 = call noundef i64 @_ZNK16VmaBlockMetadata7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(33) %28)
  %495 = icmp ule i64 %493, %494
  br i1 %495, label %497, label %496

496:                                              ; preds = %492
  call void @__assert_fail(ptr noundef @.str.55, ptr noundef @.str.2, i32 noundef 7956, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

497:                                              ; preds = %492
  br label %498

498:                                              ; preds = %497
  br label %499

499:                                              ; preds = %498
  br label %500

500:                                              ; preds = %499
  %501 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %28, i32 0, i32 1
  %502 = load i64, ptr %501, align 8, !tbaa !36
  %503 = call noundef i64 @_ZNK16VmaBlockMetadata7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(33) %28)
  %504 = load i64, ptr %5, align 8, !tbaa !24
  %505 = sub i64 %503, %504
  %506 = icmp eq i64 %502, %505
  br i1 %506, label %508, label %507

507:                                              ; preds = %500
  call void @__assert_fail(ptr noundef @.str.56, ptr noundef @.str.2, i32 noundef 7957, ptr noundef @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #5
  unreachable

508:                                              ; preds = %500
  br label %509

509:                                              ; preds = %508
  br label %510

510:                                              ; preds = %509
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret i1 true
}

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { nounwind }
attributes #5 = { 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, !17, i64 116}
!10 = !{!"_ZTS23VmaBlockMetadata_Linear", !11, i64 0, !12, i64 40, !14, i64 48, !14, i64 80, !16, i64 112, !17, i64 116, !12, i64 120, !12, i64 128, !12, i64 136}
!11 = !{!"_ZTS16VmaBlockMetadata", !12, i64 8, !6, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTS9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE", !15, i64 0, !6, i64 8, !12, i64 16, !12, i64 24}
!15 = !{!"_ZTS15VmaStlAllocatorI16VmaSuballocationE", !6, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN23VmaBlockMetadata_Linear18SECOND_VECTOR_MODEE", !7, i64 0}
!18 = !{!10, !12, i64 120}
!19 = !{!20, !21, i64 24}
!20 = !{!"_ZTS16VmaSuballocation", !12, i64 0, !12, i64 8, !6, i64 16, !21, i64 24}
!21 = !{!"_ZTS20VmaSuballocationType", !7, i64 0}
!22 = !{!10, !12, i64 128}
!23 = !{!10, !12, i64 136}
!24 = !{!12, !12, i64 0}
!25 = !{!13, !13, i64 0}
!26 = !{!20, !6, i64 16}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!20, !12, i64 0}
!30 = !{!20, !12, i64 8}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = distinct !{!34, !32}
!35 = distinct !{!35, !32}
!36 = !{!10, !12, i64 40}


; 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.40 = external hidden unnamed_addr constant [99 x i8], align 1
@__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv = external hidden unnamed_addr constant [55 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [70 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
declare dso_local noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK23VmaBlockMetadata_Linear8ValidateEv(ptr noundef nonnull align 8 dereferenceable(144) %0) unnamed_addr #1 align 2 {
  %2 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK23VmaBlockMetadata_Linear23AccessSuballocations1stEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %3 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK23VmaBlockMetadata_Linear23AccessSuballocations2ndEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %4 = tail call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %5 = getelementptr inbounds i8, ptr %0, i64 116
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = icmp ne i32 %6, 0
  %8 = xor i1 %4, %7
  br i1 %8, label %10, label %9

9:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.40, ptr noundef nonnull @.str.2, i32 noundef 7818, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

10:                                               ; preds = %1
  %11 = tail call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  br i1 %11, label %12, label %16

12:                                               ; preds = %10
  %13 = tail call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %14 = load i32, ptr %5, align 4
  %.not = icmp ne i32 %14, 1
  %or.cond.not = select i1 %13, i1 true, i1 %.not
  br i1 %or.cond.not, label %16, label %15

15:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.2, i32 noundef 7821, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

16:                                               ; preds = %12, %10
  %17 = tail call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  br i1 %17, label %30, label %18

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %0, i64 120
  %20 = load i64, ptr %19, align 8, !tbaa !17
  %21 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %20)
  %22 = getelementptr inbounds i8, ptr %21, i64 24
  %23 = load i32, ptr %22, align 8, !tbaa !18
  %.not107 = icmp eq i32 %23, 0
  br i1 %.not107, label %24, label %25

24:                                               ; preds = %18
  tail call void @__assert_fail(ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.2, i32 noundef 7826, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

25:                                               ; preds = %18
  %26 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %27 = getelementptr inbounds i8, ptr %26, i64 24
  %28 = load i32, ptr %27, align 8, !tbaa !18
  %.not108 = icmp eq i32 %28, 0
  br i1 %.not108, label %29, label %30

29:                                               ; preds = %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.43, ptr noundef nonnull @.str.2, i32 noundef 7828, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

30:                                               ; preds = %25, %16
  %31 = tail call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  br i1 %31, label %37, label %32

32:                                               ; preds = %30
  %33 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %34 = getelementptr inbounds i8, ptr %33, i64 24
  %35 = load i32, ptr %34, align 8, !tbaa !18
  %.not109 = icmp eq i32 %35, 0
  br i1 %.not109, label %36, label %37

36:                                               ; preds = %32
  tail call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.2, i32 noundef 7833, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

37:                                               ; preds = %30, %32
  %38 = getelementptr inbounds i8, ptr %0, i64 120
  %39 = load i64, ptr %38, align 8, !tbaa !17
  %40 = getelementptr inbounds i8, ptr %0, i64 128
  %41 = load i64, ptr %40, align 8, !tbaa !21
  %42 = add i64 %41, %39
  %43 = tail call noundef i64 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %.not110 = icmp ugt i64 %42, %43
  br i1 %.not110, label %44, label %45

44:                                               ; preds = %37
  tail call void @__assert_fail(ptr noundef nonnull @.str.45, ptr noundef nonnull @.str.2, i32 noundef 7836, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

45:                                               ; preds = %37
  %46 = getelementptr inbounds i8, ptr %0, i64 136
  %47 = load i64, ptr %46, align 8, !tbaa !22
  %48 = tail call noundef i64 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %.not111 = icmp ugt i64 %47, %48
  br i1 %.not111, label %49, label %50

49:                                               ; preds = %45
  tail call void @__assert_fail(ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.2, i32 noundef 7837, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

50:                                               ; preds = %45
  %51 = tail call noundef i64 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %52 = tail call noundef i64 @_ZNK16VmaBlockMetadata14GetDebugMarginEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %100

55:                                               ; preds = %50
  %56 = tail call noundef i64 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %.not197 = icmp eq i64 %56, 0
  br i1 %.not197, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %93, %55
  %.096.lcssa = phi i64 [ 0, %55 ], [ %.197, %93 ]
  %.091.lcssa = phi i64 [ 0, %55 ], [ %97, %93 ]
  %.0.lcssa = phi i64 [ 0, %55 ], [ %.1, %93 ]
  %57 = load i64, ptr %46, align 8, !tbaa !22
  %58 = icmp eq i64 %.096.lcssa, %57
  br i1 %58, label %100, label %99

.lr.ph:                                           ; preds = %55, %93
  %.0171 = phi i64 [ %.1, %93 ], [ 0, %55 ]
  %.091170 = phi i64 [ %97, %93 ], [ 0, %55 ]
  %.096169 = phi i64 [ %.197, %93 ], [ 0, %55 ]
  %.0101168 = phi i64 [ %98, %93 ], [ 0, %55 ]
  %59 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.0101168)
  %60 = getelementptr inbounds i8, ptr %59, i64 24
  %61 = load i32, ptr %60, align 8, !tbaa !18
  %62 = icmp eq i32 %61, 0
  %63 = getelementptr inbounds i8, ptr %59, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !23
  %65 = tail call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  %66 = icmp ne ptr %64, null
  %67 = xor i1 %62, %66
  %or.cond120 = select i1 %65, i1 true, i1 %67
  br i1 %or.cond120, label %69, label %68

68:                                               ; preds = %.lr.ph
  tail call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.2, i32 noundef 7856, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

69:                                               ; preds = %.lr.ph
  %70 = load i64, ptr %59, align 8, !tbaa !24
  %.not117 = icmp ult i64 %70, %.091170
  br i1 %.not117, label %71, label %72

71:                                               ; preds = %69
  tail call void @__assert_fail(ptr noundef nonnull @.str.48, ptr noundef nonnull @.str.2, i32 noundef 7858, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

72:                                               ; preds = %69
  br i1 %62, label %91, label %73

73:                                               ; preds = %72
  %74 = tail call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  br i1 %74, label %._crit_edge204, label %75

._crit_edge204:                                   ; preds = %73
  %.phi.trans.insert = getelementptr inbounds i8, ptr %59, i64 8
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !25
  br label %88

75:                                               ; preds = %73
  %76 = tail call noundef ptr @_ZNK15VmaAllocation_T14GetAllocHandleEv(ptr noundef nonnull align 8 dereferenceable(84) %64)
  %77 = ptrtoint ptr %76 to i64
  %78 = load i64, ptr %59, align 8, !tbaa !24
  %79 = add i64 %78, 1
  %80 = icmp eq i64 %79, %77
  br i1 %80, label %82, label %81

81:                                               ; preds = %75
  tail call void @__assert_fail(ptr noundef nonnull @.str.49, ptr noundef nonnull @.str.2, i32 noundef 7864, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

82:                                               ; preds = %75
  %83 = tail call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %64)
  %84 = getelementptr inbounds i8, ptr %59, i64 8
  %85 = load i64, ptr %84, align 8, !tbaa !25
  %86 = icmp eq i64 %83, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %82
  tail call void @__assert_fail(ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.2, i32 noundef 7865, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

88:                                               ; preds = %._crit_edge204, %82
  %89 = phi i64 [ %.pre, %._crit_edge204 ], [ %83, %82 ]
  %90 = add i64 %89, %.0171
  %.pre205 = load i64, ptr %59, align 8, !tbaa !24
  br label %93

91:                                               ; preds = %72
  %92 = add i64 %.096169, 1
  %.phi.trans.insert206 = getelementptr inbounds i8, ptr %59, i64 8
  %.pre207 = load i64, ptr %.phi.trans.insert206, align 8, !tbaa !25
  br label %93

93:                                               ; preds = %91, %88
  %94 = phi i64 [ %.pre207, %91 ], [ %89, %88 ]
  %95 = phi i64 [ %70, %91 ], [ %.pre205, %88 ]
  %.197 = phi i64 [ %92, %91 ], [ %.096169, %88 ]
  %.1 = phi i64 [ %.0171, %91 ], [ %90, %88 ]
  %96 = add i64 %95, %52
  %97 = add i64 %96, %94
  %98 = add nuw i64 %.0101168, 1
  %exitcond.not = icmp eq i64 %98, %56
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !26

99:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.51, ptr noundef nonnull @.str.2, i32 noundef 7877, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

100:                                              ; preds = %._crit_edge, %50
  %.192 = phi i64 [ 0, %50 ], [ %.091.lcssa, %._crit_edge ]
  %.2 = phi i64 [ 0, %50 ], [ %.0.lcssa, %._crit_edge ]
  %101 = load i64, ptr %38, align 8, !tbaa !17
  %.not198 = icmp eq i64 %101, 0
  br i1 %.not198, label %.preheader, label %.lr.ph176

102:                                              ; preds = %.lr.ph176
  %103 = add nuw i64 %.0102174, 1
  %104 = load i64, ptr %38, align 8, !tbaa !17
  %105 = icmp ult i64 %103, %104
  br i1 %105, label %.lr.ph176, label %.preheader, !llvm.loop !28

.preheader:                                       ; preds = %102, %100
  %106 = phi i64 [ 0, %100 ], [ %104, %102 ]
  %107 = icmp ult i64 %106, %51
  br i1 %107, label %.lr.ph182, label %._crit_edge183

.lr.ph176:                                        ; preds = %100, %102
  %.0102174 = phi i64 [ %103, %102 ], [ 0, %100 ]
  %108 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.0102174)
  %109 = getelementptr inbounds i8, ptr %108, i64 24
  %110 = load i32, ptr %109, align 8, !tbaa !18
  %111 = icmp eq i32 %110, 0
  %112 = getelementptr inbounds i8, ptr %108, i64 16
  %113 = load ptr, ptr %112, align 8
  %114 = icmp eq ptr %113, null
  %or.cond123 = select i1 %111, i1 %114, i1 false
  br i1 %or.cond123, label %102, label %115

115:                                              ; preds = %.lr.ph176
  tail call void @__assert_fail(ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.2, i32 noundef 7884, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

._crit_edge183.loopexit:                          ; preds = %157
  %.pre214 = load i64, ptr %38, align 8, !tbaa !17
  br label %._crit_edge183

._crit_edge183:                                   ; preds = %._crit_edge183.loopexit, %.preheader
  %116 = phi i64 [ %106, %.preheader ], [ %.pre214, %._crit_edge183.loopexit ]
  %.0103.lcssa = phi i64 [ %106, %.preheader ], [ %.1104, %._crit_edge183.loopexit ]
  %.293.lcssa = phi i64 [ %.192, %.preheader ], [ %161, %._crit_edge183.loopexit ]
  %.3.lcssa = phi i64 [ %.2, %.preheader ], [ %.4, %._crit_edge183.loopexit ]
  %117 = load i64, ptr %40, align 8, !tbaa !21
  %118 = add i64 %117, %116
  %119 = icmp eq i64 %.0103.lcssa, %118
  br i1 %119, label %164, label %163

.lr.ph182:                                        ; preds = %.preheader, %157
  %.3181 = phi i64 [ %.4, %157 ], [ %.2, %.preheader ]
  %.293180 = phi i64 [ %161, %157 ], [ %.192, %.preheader ]
  %.0103179 = phi i64 [ %.1104, %157 ], [ %106, %.preheader ]
  %.0105178 = phi i64 [ %162, %157 ], [ %106, %.preheader ]
  %120 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.0105178)
  %121 = getelementptr inbounds i8, ptr %120, i64 24
  %122 = load i32, ptr %121, align 8, !tbaa !18
  %123 = icmp eq i32 %122, 0
  %124 = getelementptr inbounds i8, ptr %120, i64 16
  %125 = load ptr, ptr %124, align 8, !tbaa !23
  %126 = tail call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  %127 = icmp ne ptr %125, null
  %128 = xor i1 %123, %127
  %or.cond125 = select i1 %126, i1 true, i1 %128
  br i1 %or.cond125, label %130, label %129

129:                                              ; preds = %.lr.ph182
  tail call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.2, i32 noundef 7897, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

130:                                              ; preds = %.lr.ph182
  %131 = load i64, ptr %120, align 8, !tbaa !24
  %.not115 = icmp ult i64 %131, %.293180
  br i1 %.not115, label %132, label %133

132:                                              ; preds = %130
  tail call void @__assert_fail(ptr noundef nonnull @.str.48, ptr noundef nonnull @.str.2, i32 noundef 7899, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

133:                                              ; preds = %130
  %134 = load i64, ptr %38, align 8, !tbaa !17
  %.not116 = icmp uge i64 %.0105178, %134
  %brmerge = select i1 %.not116, i1 true, i1 %123
  br i1 %brmerge, label %136, label %135

135:                                              ; preds = %133
  tail call void @__assert_fail(ptr noundef nonnull @.str.53, ptr noundef nonnull @.str.2, i32 noundef 7900, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

136:                                              ; preds = %133
  br i1 %123, label %155, label %137

137:                                              ; preds = %136
  %138 = tail call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  br i1 %138, label %._crit_edge208, label %139

._crit_edge208:                                   ; preds = %137
  %.phi.trans.insert209 = getelementptr inbounds i8, ptr %120, i64 8
  %.pre210 = load i64, ptr %.phi.trans.insert209, align 8, !tbaa !25
  br label %152

139:                                              ; preds = %137
  %140 = tail call noundef ptr @_ZNK15VmaAllocation_T14GetAllocHandleEv(ptr noundef nonnull align 8 dereferenceable(84) %125)
  %141 = ptrtoint ptr %140 to i64
  %142 = load i64, ptr %120, align 8, !tbaa !24
  %143 = add i64 %142, 1
  %144 = icmp eq i64 %143, %141
  br i1 %144, label %146, label %145

145:                                              ; preds = %139
  tail call void @__assert_fail(ptr noundef nonnull @.str.49, ptr noundef nonnull @.str.2, i32 noundef 7906, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

146:                                              ; preds = %139
  %147 = tail call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %125)
  %148 = getelementptr inbounds i8, ptr %120, i64 8
  %149 = load i64, ptr %148, align 8, !tbaa !25
  %150 = icmp eq i64 %147, %149
  br i1 %150, label %152, label %151

151:                                              ; preds = %146
  tail call void @__assert_fail(ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.2, i32 noundef 7907, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

152:                                              ; preds = %._crit_edge208, %146
  %153 = phi i64 [ %.pre210, %._crit_edge208 ], [ %147, %146 ]
  %154 = add i64 %153, %.3181
  %.pre211 = load i64, ptr %120, align 8, !tbaa !24
  br label %157

155:                                              ; preds = %136
  %156 = add i64 %.0103179, 1
  %.phi.trans.insert212 = getelementptr inbounds i8, ptr %120, i64 8
  %.pre213 = load i64, ptr %.phi.trans.insert212, align 8, !tbaa !25
  br label %157

157:                                              ; preds = %155, %152
  %158 = phi i64 [ %.pre213, %155 ], [ %153, %152 ]
  %159 = phi i64 [ %131, %155 ], [ %.pre211, %152 ]
  %.1104 = phi i64 [ %156, %155 ], [ %.0103179, %152 ]
  %.4 = phi i64 [ %.3181, %155 ], [ %154, %152 ]
  %160 = add i64 %159, %52
  %161 = add i64 %160, %158
  %162 = add i64 %.0105178, 1
  %exitcond203.not = icmp eq i64 %162, %51
  br i1 %exitcond203.not, label %._crit_edge183.loopexit, label %.lr.ph182, !llvm.loop !29

163:                                              ; preds = %._crit_edge183
  tail call void @__assert_fail(ptr noundef nonnull @.str.54, ptr noundef nonnull @.str.2, i32 noundef 7918, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

164:                                              ; preds = %._crit_edge183
  %165 = load i32, ptr %5, align 4, !tbaa !5
  %166 = icmp eq i32 %165, 2
  br i1 %166, label %167, label %212

167:                                              ; preds = %164
  %168 = tail call noundef i64 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %.not112187 = icmp eq i64 %168, 0
  br i1 %.not112187, label %._crit_edge193, label %.lr.ph192

._crit_edge193:                                   ; preds = %206, %167
  %.099.lcssa = phi i64 [ 0, %167 ], [ %.1100, %206 ]
  %.394.lcssa = phi i64 [ %.293.lcssa, %167 ], [ %210, %206 ]
  %.5.lcssa = phi i64 [ %.3.lcssa, %167 ], [ %.6, %206 ]
  %169 = load i64, ptr %46, align 8, !tbaa !22
  %170 = icmp eq i64 %.099.lcssa, %169
  br i1 %170, label %212, label %211

.lr.ph192:                                        ; preds = %167, %206
  %.in = phi i64 [ %171, %206 ], [ %168, %167 ]
  %.5190 = phi i64 [ %.6, %206 ], [ %.3.lcssa, %167 ]
  %.394189 = phi i64 [ %210, %206 ], [ %.293.lcssa, %167 ]
  %.099188 = phi i64 [ %.1100, %206 ], [ 0, %167 ]
  %171 = add i64 %.in, -1
  %172 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %171)
  %173 = getelementptr inbounds i8, ptr %172, i64 24
  %174 = load i32, ptr %173, align 8, !tbaa !18
  %175 = icmp eq i32 %174, 0
  %176 = getelementptr inbounds i8, ptr %172, i64 16
  %177 = load ptr, ptr %176, align 8, !tbaa !23
  %178 = tail call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  %179 = icmp ne ptr %177, null
  %180 = xor i1 %175, %179
  %or.cond127 = select i1 %178, i1 true, i1 %180
  br i1 %or.cond127, label %182, label %181

181:                                              ; preds = %.lr.ph192
  tail call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.2, i32 noundef 7932, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

182:                                              ; preds = %.lr.ph192
  %183 = load i64, ptr %172, align 8, !tbaa !24
  %.not114 = icmp ult i64 %183, %.394189
  br i1 %.not114, label %184, label %185

184:                                              ; preds = %182
  tail call void @__assert_fail(ptr noundef nonnull @.str.48, ptr noundef nonnull @.str.2, i32 noundef 7934, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

185:                                              ; preds = %182
  br i1 %175, label %204, label %186

186:                                              ; preds = %185
  %187 = tail call noundef zeroext i1 @_ZNK16VmaBlockMetadata9IsVirtualEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  br i1 %187, label %._crit_edge215, label %188

._crit_edge215:                                   ; preds = %186
  %.phi.trans.insert216 = getelementptr inbounds i8, ptr %172, i64 8
  %.pre217 = load i64, ptr %.phi.trans.insert216, align 8, !tbaa !25
  br label %201

188:                                              ; preds = %186
  %189 = tail call noundef ptr @_ZNK15VmaAllocation_T14GetAllocHandleEv(ptr noundef nonnull align 8 dereferenceable(84) %177)
  %190 = ptrtoint ptr %189 to i64
  %191 = load i64, ptr %172, align 8, !tbaa !24
  %192 = add i64 %191, 1
  %193 = icmp eq i64 %192, %190
  br i1 %193, label %195, label %194

194:                                              ; preds = %188
  tail call void @__assert_fail(ptr noundef nonnull @.str.49, ptr noundef nonnull @.str.2, i32 noundef 7940, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

195:                                              ; preds = %188
  %196 = tail call noundef i64 @_ZNK15VmaAllocation_T7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(84) %177)
  %197 = getelementptr inbounds i8, ptr %172, i64 8
  %198 = load i64, ptr %197, align 8, !tbaa !25
  %199 = icmp eq i64 %196, %198
  br i1 %199, label %201, label %200

200:                                              ; preds = %195
  tail call void @__assert_fail(ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.2, i32 noundef 7941, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

201:                                              ; preds = %._crit_edge215, %195
  %202 = phi i64 [ %.pre217, %._crit_edge215 ], [ %196, %195 ]
  %203 = add i64 %202, %.5190
  %.pre218 = load i64, ptr %172, align 8, !tbaa !24
  br label %206

204:                                              ; preds = %185
  %205 = add i64 %.099188, 1
  %.phi.trans.insert219 = getelementptr inbounds i8, ptr %172, i64 8
  %.pre220 = load i64, ptr %.phi.trans.insert219, align 8, !tbaa !25
  br label %206

206:                                              ; preds = %204, %201
  %207 = phi i64 [ %.pre220, %204 ], [ %202, %201 ]
  %208 = phi i64 [ %183, %204 ], [ %.pre218, %201 ]
  %.1100 = phi i64 [ %205, %204 ], [ %.099188, %201 ]
  %.6 = phi i64 [ %.5190, %204 ], [ %203, %201 ]
  %209 = add i64 %208, %52
  %210 = add i64 %209, %207
  %.not112 = icmp eq i64 %171, 0
  br i1 %.not112, label %._crit_edge193, label %.lr.ph192, !llvm.loop !30

211:                                              ; preds = %._crit_edge193
  tail call void @__assert_fail(ptr noundef nonnull @.str.51, ptr noundef nonnull @.str.2, i32 noundef 7953, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

212:                                              ; preds = %._crit_edge193, %164
  %.495 = phi i64 [ %.293.lcssa, %164 ], [ %.394.lcssa, %._crit_edge193 ]
  %.7 = phi i64 [ %.3.lcssa, %164 ], [ %.5.lcssa, %._crit_edge193 ]
  %213 = tail call noundef i64 @_ZNK16VmaBlockMetadata7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  %.not113 = icmp ugt i64 %.495, %213
  br i1 %.not113, label %214, label %215

214:                                              ; preds = %212
  tail call void @__assert_fail(ptr noundef nonnull @.str.55, ptr noundef nonnull @.str.2, i32 noundef 7956, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

215:                                              ; preds = %212
  %216 = getelementptr inbounds i8, ptr %0, i64 40
  %217 = load i64, ptr %216, align 8, !tbaa !31
  %218 = tail call noundef i64 @_ZNK16VmaBlockMetadata7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(33) %0)
  %219 = sub i64 %218, %.7
  %220 = icmp eq i64 %217, %219
  br i1 %220, label %222, label %221

221:                                              ; preds = %215
  tail call void @__assert_fail(ptr noundef nonnull @.str.56, ptr noundef nonnull @.str.2, i32 noundef 7957, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK23VmaBlockMetadata_Linear8ValidateEv) #2
  unreachable

222:                                              ; preds = %215
  ret i1 true
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK23VmaBlockMetadata_Linear23AccessSuballocations1stEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK23VmaBlockMetadata_Linear23AccessSuballocations2ndEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

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

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, !16, i64 116}
!6 = !{!"_ZTS23VmaBlockMetadata_Linear", !7, i64 0, !8, i64 40, !13, i64 48, !13, i64 80, !15, i64 112, !16, i64 116, !8, i64 120, !8, i64 128, !8, i64 136}
!7 = !{!"_ZTS16VmaBlockMetadata", !8, i64 8, !11, i64 16, !8, i64 24, !12, i64 32}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!"_ZTS9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE", !14, i64 0, !11, i64 8, !8, i64 16, !8, i64 24}
!14 = !{!"_ZTS15VmaStlAllocatorI16VmaSuballocationE", !11, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!"_ZTSN23VmaBlockMetadata_Linear18SECOND_VECTOR_MODEE", !9, i64 0}
!17 = !{!6, !8, i64 120}
!18 = !{!19, !20, i64 24}
!19 = !{!"_ZTS16VmaSuballocation", !8, i64 0, !8, i64 8, !11, i64 16, !20, i64 24}
!20 = !{!"_ZTS20VmaSuballocationType", !9, i64 0}
!21 = !{!6, !8, i64 128}
!22 = !{!6, !8, i64 136}
!23 = !{!19, !11, i64 16}
!24 = !{!19, !8, i64 0}
!25 = !{!19, !8, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !27}
!31 = !{!6, !8, i64 40}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass