; 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.VmaSuballocation = type { i64, i64, ptr, i32 }
%struct.VmaSuballocationOffsetLess = type { i8 }
%struct.VmaSuballocationOffsetGreater = type { i8 }
%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 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [57 x i8], align 1
@__PRETTY_FUNCTION__._ZN23VmaBlockMetadata_Linear4FreeEP16VmaAllocHandle_T = external hidden unnamed_addr constant [59 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 @_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 @_ZN23VmaBlockMetadata_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 @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_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 @_ZN23VmaBlockMetadata_Linear23AccessSuballocations2ndEv(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 @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23VmaBlockMetadata_Linear4FreeEP16VmaAllocHandle_T(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1) unnamed_addr #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.VmaSuballocation, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %struct.VmaSuballocationOffsetLess, align 1
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %struct.VmaSuballocationOffsetLess, align 1
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %struct.VmaSuballocationOffsetGreater, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %25 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN23VmaBlockMetadata_Linear23AccessSuballocations1stEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
  store ptr %25, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %26 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN23VmaBlockMetadata_Linear23AccessSuballocations2ndEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
  store ptr %26, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = ptrtoint ptr %27 to i64
  %29 = sub i64 %28, 1
  store i64 %29, ptr %7, align 8, !tbaa !9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %30)
  br i1 %31, label %60, label %32

32:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 6
  %35 = load i64, ptr %34, align 8, !tbaa !11
  %36 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %33, i64 noundef %35)
  store ptr %36, ptr %8, align 8, !tbaa !5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.VmaSuballocation, ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !19
  %40 = load i64, ptr %7, align 8, !tbaa !9
  %41 = icmp eq i64 %39, %40
  br i1 %41, label %42, label %56

42:                                               ; preds = %32
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.VmaSuballocation, ptr %43, i32 0, i32 3
  store i32 0, ptr %44, align 8, !tbaa !22
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.VmaSuballocation, ptr %45, i32 0, i32 2
  store ptr null, ptr %46, align 8, !tbaa !23
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.VmaSuballocation, ptr %47, i32 0, i32 1
  %49 = load i64, ptr %48, align 8, !tbaa !24
  %50 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 1
  %51 = load i64, ptr %50, align 8, !tbaa !25
  %52 = add i64 %51, %49
  store i64 %52, ptr %50, align 8, !tbaa !25
  %53 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 6
  %54 = load i64, ptr %53, align 8, !tbaa !11
  %55 = add i64 %54, 1
  store i64 %55, ptr %53, align 8, !tbaa !11
  call void @_ZN23VmaBlockMetadata_Linear16CleanupAfterFreeEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
  store i32 1, ptr %9, align 4
  br label %57

56:                                               ; preds = %32
  store i32 0, ptr %9, align 4
  br label %57

57:                                               ; preds = %56, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %58 = load i32, ptr %9, align 4
  switch i32 %58, label %191 [
    i32 0, label %59
  ]

59:                                               ; preds = %57
  br label %60

60:                                               ; preds = %59, %2
  %61 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 5
  %62 = load i32, ptr %61, align 4, !tbaa !26
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %68, label %64

64:                                               ; preds = %60
  %65 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 5
  %66 = load i32, ptr %65, align 4, !tbaa !26
  %67 = icmp eq i32 %66, 2
  br i1 %67, label %68, label %88

68:                                               ; preds = %64, %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %69)
  store ptr %70, ptr %10, align 8, !tbaa !5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.VmaSuballocation, ptr %71, i32 0, i32 0
  %73 = load i64, ptr %72, align 8, !tbaa !19
  %74 = load i64, ptr %7, align 8, !tbaa !9
  %75 = icmp eq i64 %73, %74
  br i1 %75, label %76, label %84

76:                                               ; preds = %68
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.VmaSuballocation, ptr %77, i32 0, i32 1
  %79 = load i64, ptr %78, align 8, !tbaa !24
  %80 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 1
  %81 = load i64, ptr %80, align 8, !tbaa !25
  %82 = add i64 %81, %79
  store i64 %82, ptr %80, align 8, !tbaa !25
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(32) %83)
  call void @_ZN23VmaBlockMetadata_Linear16CleanupAfterFreeEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
  store i32 1, ptr %9, align 4
  br label %85

84:                                               ; preds = %68
  store i32 0, ptr %9, align 4
  br label %85

85:                                               ; preds = %84, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %86 = load i32, ptr %9, align 4
  switch i32 %86, label %191 [
    i32 0, label %87
  ]

87:                                               ; preds = %85
  br label %113

88:                                               ; preds = %64
  %89 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 5
  %90 = load i32, ptr %89, align 4, !tbaa !26
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %112

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %93)
  store ptr %94, ptr %11, align 8, !tbaa !5
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.VmaSuballocation, ptr %95, i32 0, i32 0
  %97 = load i64, ptr %96, align 8, !tbaa !19
  %98 = load i64, ptr %7, align 8, !tbaa !9
  %99 = icmp eq i64 %97, %98
  br i1 %99, label %100, label %108

100:                                              ; preds = %92
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.VmaSuballocation, ptr %101, i32 0, i32 1
  %103 = load i64, ptr %102, align 8, !tbaa !24
  %104 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 1
  %105 = load i64, ptr %104, align 8, !tbaa !25
  %106 = add i64 %105, %103
  store i64 %106, ptr %104, align 8, !tbaa !25
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(32) %107)
  call void @_ZN23VmaBlockMetadata_Linear16CleanupAfterFreeEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
  store i32 1, ptr %9, align 4
  br label %109

108:                                              ; preds = %92
  store i32 0, ptr %9, align 4
  br label %109

109:                                              ; preds = %108, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %110 = load i32, ptr %9, align 4
  switch i32 %110, label %191 [
    i32 0, label %111
  ]

111:                                              ; preds = %109
  br label %112

112:                                              ; preds = %111, %88
  br label %113

113:                                              ; preds = %112, %87
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #4
  %114 = load i64, ptr %7, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.VmaSuballocation, ptr %12, i32 0, i32 0
  store i64 %114, ptr %115, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %116)
  %118 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 6
  %119 = load i64, ptr %118, align 8, !tbaa !11
  %120 = getelementptr inbounds %struct.VmaSuballocation, ptr %117, i64 %119
  store ptr %120, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %121)
  store ptr %122, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  %123 = call noundef ptr @_Z19VmaBinaryFindSortedI26VmaSuballocationOffsetLessP16VmaSuballocationS1_ET0_RKS3_S5_RKT1_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 1 dereferenceable(1) %16)
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  store ptr %123, ptr %13, align 8, !tbaa !5
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %125)
  %127 = icmp ne ptr %124, %126
  br i1 %127, label %128, label %142

128:                                              ; preds = %113
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.VmaSuballocation, ptr %129, i32 0, i32 3
  store i32 0, ptr %130, align 8, !tbaa !22
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.VmaSuballocation, ptr %131, i32 0, i32 2
  store ptr null, ptr %132, align 8, !tbaa !23
  %133 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 7
  %134 = load i64, ptr %133, align 8, !tbaa !27
  %135 = add i64 %134, 1
  store i64 %135, ptr %133, align 8, !tbaa !27
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.VmaSuballocation, ptr %136, i32 0, i32 1
  %138 = load i64, ptr %137, align 8, !tbaa !24
  %139 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 1
  %140 = load i64, ptr %139, align 8, !tbaa !25
  %141 = add i64 %140, %138
  store i64 %141, ptr %139, align 8, !tbaa !25
  call void @_ZN23VmaBlockMetadata_Linear16CleanupAfterFreeEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
  store i32 1, ptr %9, align 4
  br label %143

142:                                              ; preds = %113
  store i32 0, ptr %9, align 4
  br label %143

143:                                              ; preds = %142, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %144 = load i32, ptr %9, align 4
  switch i32 %144, label %190 [
    i32 0, label %145
  ]

145:                                              ; preds = %143
  %146 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 5
  %147 = load i32, ptr %146, align 4, !tbaa !26
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %189

149:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %150 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 5
  %151 = load i32, ptr %150, align 4, !tbaa !26
  %152 = icmp eq i32 %151, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #4
  br i1 %152, label %153, label %159

153:                                              ; preds = %149
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %154)
  store ptr %155, ptr %18, align 8, !tbaa !5
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %156)
  store ptr %157, ptr %19, align 8, !tbaa !5
  %158 = call noundef ptr @_Z19VmaBinaryFindSortedI26VmaSuballocationOffsetLessP16VmaSuballocationS1_ET0_RKS3_S5_RKT1_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 1 dereferenceable(1) %20)
  br label %165

159:                                              ; preds = %149
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %160)
  store ptr %161, ptr %21, align 8, !tbaa !5
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %162)
  store ptr %163, ptr %22, align 8, !tbaa !5
  %164 = call noundef ptr @_Z19VmaBinaryFindSortedI29VmaSuballocationOffsetGreaterP16VmaSuballocationS1_ET0_RKS3_S5_RKT1_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 1 dereferenceable(1) %23)
  br label %165

165:                                              ; preds = %159, %153
  %166 = phi ptr [ %158, %153 ], [ %164, %159 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  store ptr %166, ptr %17, align 8, !tbaa !5
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %168)
  %170 = icmp ne ptr %167, %169
  br i1 %170, label %171, label %185

171:                                              ; preds = %165
  %172 = load ptr, ptr %17, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.VmaSuballocation, ptr %172, i32 0, i32 3
  store i32 0, ptr %173, align 8, !tbaa !22
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.VmaSuballocation, ptr %174, i32 0, i32 2
  store ptr null, ptr %175, align 8, !tbaa !23
  %176 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 8
  %177 = load i64, ptr %176, align 8, !tbaa !28
  %178 = add i64 %177, 1
  store i64 %178, ptr %176, align 8, !tbaa !28
  %179 = load ptr, ptr %17, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.VmaSuballocation, ptr %179, i32 0, i32 1
  %181 = load i64, ptr %180, align 8, !tbaa !24
  %182 = getelementptr inbounds %class.VmaBlockMetadata_Linear, ptr %24, i32 0, i32 1
  %183 = load i64, ptr %182, align 8, !tbaa !25
  %184 = add i64 %183, %181
  store i64 %184, ptr %182, align 8, !tbaa !25
  call void @_ZN23VmaBlockMetadata_Linear16CleanupAfterFreeEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
  store i32 1, ptr %9, align 4
  br label %186

185:                                              ; preds = %165
  store i32 0, ptr %9, align 4
  br label %186

186:                                              ; preds = %185, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %187 = load i32, ptr %9, align 4
  switch i32 %187, label %190 [
    i32 0, label %188
  ]

188:                                              ; preds = %186
  br label %189

189:                                              ; preds = %188, %145
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.2, i32 noundef 8777, ptr noundef @__PRETTY_FUNCTION__._ZN23VmaBlockMetadata_Linear4FreeEP16VmaAllocHandle_T) #5
  unreachable

190:                                              ; preds = %186, %143
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  br label %191

191:                                              ; preds = %190, %109, %85, %57
  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
  ret void
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z19VmaBinaryFindSortedI26VmaSuballocationOffsetLessP16VmaSuballocationS1_ET0_RKS3_S5_RKT1_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z19VmaBinaryFindSortedI29VmaSuballocationOffsetGreaterP16VmaSuballocationS1_ET0_RKS3_S5_RKT1_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) #3

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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 120}
!12 = !{!"_ZTS23VmaBlockMetadata_Linear", !13, i64 0, !10, i64 40, !15, i64 48, !15, i64 80, !17, i64 112, !18, i64 116, !10, i64 120, !10, i64 128, !10, i64 136}
!13 = !{!"_ZTS16VmaBlockMetadata", !10, i64 8, !6, i64 16, !10, i64 24, !14, i64 32}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE", !16, i64 0, !6, i64 8, !10, i64 16, !10, i64 24}
!16 = !{!"_ZTS15VmaStlAllocatorI16VmaSuballocationE", !6, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN23VmaBlockMetadata_Linear18SECOND_VECTOR_MODEE", !7, i64 0}
!19 = !{!20, !10, i64 0}
!20 = !{!"_ZTS16VmaSuballocation", !10, i64 0, !10, i64 8, !6, i64 16, !21, i64 24}
!21 = !{!"_ZTS20VmaSuballocationType", !7, i64 0}
!22 = !{!20, !21, i64 24}
!23 = !{!20, !6, i64 16}
!24 = !{!20, !10, i64 8}
!25 = !{!12, !10, i64 40}
!26 = !{!12, !18, i64 116}
!27 = !{!12, !10, i64 128}
!28 = !{!12, !10, i64 136}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.VmaSuballocation = type { i64, i64, ptr, i32 }
%struct.VmaSuballocationOffsetLess = type { i8 }
%struct.VmaSuballocationOffsetGreater = type { i8 }

@.str.2 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [57 x i8], align 1
@__PRETTY_FUNCTION__._ZN23VmaBlockMetadata_Linear4FreeEP16VmaAllocHandle_T = external hidden unnamed_addr constant [59 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 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23VmaBlockMetadata_Linear4FreeEP16VmaAllocHandle_T(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1) unnamed_addr #3 align 2 {
  %3 = alloca %struct.VmaSuballocation, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.VmaSuballocationOffsetLess, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.VmaSuballocationOffsetLess, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.VmaSuballocationOffsetGreater, align 1
  %13 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN23VmaBlockMetadata_Linear23AccessSuballocations1stEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %14 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN23VmaBlockMetadata_Linear23AccessSuballocations2ndEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %15 = ptrtoint ptr %1 to i64
  %16 = add i64 %15, -1
  %17 = tail call noundef zeroext i1 @_ZNK9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
  br i1 %17, label %.critedge, label %18

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

23:                                               ; preds = %18
  %24 = getelementptr inbounds i8, ptr %21, i64 24
  store i32 0, ptr %24, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %21, i64 16
  store ptr null, ptr %25, align 8, !tbaa !21
  %26 = getelementptr inbounds i8, ptr %21, i64 8
  %27 = load i64, ptr %26, align 8, !tbaa !22
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %29 = load i64, ptr %28, align 8, !tbaa !23
  %30 = add i64 %29, %27
  store i64 %30, ptr %28, align 8, !tbaa !23
  %31 = load i64, ptr %19, align 8, !tbaa !5
  %32 = add i64 %31, 1
  store i64 %32, ptr %19, align 8, !tbaa !5
  tail call void @_ZN23VmaBlockMetadata_Linear16CleanupAfterFreeEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  br label %84

.critedge:                                        ; preds = %18, %2
  %33 = getelementptr inbounds i8, ptr %0, i64 116
  %34 = load i32, ptr %33, align 4, !tbaa !24
  switch i32 %34, label %.critedge54 [
    i32 1, label %35
    i32 2, label %35
    i32 0, label %44
  ]

35:                                               ; preds = %.critedge, %.critedge
  %36 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
  %37 = load i64, ptr %36, align 8, !tbaa !17
  %.not49 = icmp eq i64 %37, %16
  br i1 %.not49, label %38, label %.critedge54

38:                                               ; preds = %35
  %39 = getelementptr inbounds i8, ptr %36, i64 8
  %40 = load i64, ptr %39, align 8, !tbaa !22
  %41 = getelementptr inbounds i8, ptr %0, i64 40
  %42 = load i64, ptr %41, align 8, !tbaa !23
  %43 = add i64 %42, %40
  store i64 %43, ptr %41, align 8, !tbaa !23
  tail call void @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
  tail call void @_ZN23VmaBlockMetadata_Linear16CleanupAfterFreeEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  br label %84

44:                                               ; preds = %.critedge
  %45 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
  %46 = load i64, ptr %45, align 8, !tbaa !17
  %.not48 = icmp eq i64 %46, %16
  br i1 %.not48, label %47, label %.critedge54

47:                                               ; preds = %44
  %48 = getelementptr inbounds i8, ptr %45, i64 8
  %49 = load i64, ptr %48, align 8, !tbaa !22
  %50 = getelementptr inbounds i8, ptr %0, i64 40
  %51 = load i64, ptr %50, align 8, !tbaa !23
  %52 = add i64 %51, %49
  store i64 %52, ptr %50, align 8, !tbaa !23
  tail call void @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
  tail call void @_ZN23VmaBlockMetadata_Linear16CleanupAfterFreeEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  br label %84

.critedge54:                                      ; preds = %44, %35, %.critedge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  store i64 %16, ptr %3, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %53 = tail call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
  %54 = getelementptr inbounds i8, ptr %0, i64 120
  %55 = load i64, ptr %54, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.VmaSuballocation, ptr %53, i64 %55
  store ptr %56, ptr %4, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %57 = tail call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
  store ptr %57, ptr %5, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  %58 = call noundef ptr @_Z19VmaBinaryFindSortedI26VmaSuballocationOffsetLessP16VmaSuballocationS1_ET0_RKS3_S5_RKT1_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %59 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
  %.not50 = icmp eq ptr %58, %59
  br i1 %.not50, label %.critedge58, label %73

.critedge58:                                      ; preds = %.critedge54
  %60 = load i32, ptr %33, align 4, !tbaa !24
  %.not51 = icmp eq i32 %60, 0
  br i1 %.not51, label %.critedge60, label %61

61:                                               ; preds = %.critedge58
  %62 = icmp eq i32 %60, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #4
  %63 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
  br i1 %62, label %64, label %67

64:                                               ; preds = %61
  store ptr %63, ptr %7, align 8, !tbaa !25
  %65 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
  store ptr %65, ptr %8, align 8, !tbaa !25
  %66 = call noundef ptr @_Z19VmaBinaryFindSortedI26VmaSuballocationOffsetLessP16VmaSuballocationS1_ET0_RKS3_S5_RKT1_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 1 dereferenceable(1) %9)
  br label %70

67:                                               ; preds = %61
  store ptr %63, ptr %10, align 8, !tbaa !25
  %68 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
  store ptr %68, ptr %11, align 8, !tbaa !25
  %69 = call noundef ptr @_Z19VmaBinaryFindSortedI29VmaSuballocationOffsetGreaterP16VmaSuballocationS1_ET0_RKS3_S5_RKT1_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 1 dereferenceable(1) %12)
  br label %70

70:                                               ; preds = %67, %64
  %71 = phi ptr [ %66, %64 ], [ %69, %67 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %72 = call noundef ptr @_ZN9VmaVectorI16VmaSuballocation15VmaStlAllocatorIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
  %.not52 = icmp eq ptr %71, %72
  br i1 %.not52, label %.critedge60, label %73

.critedge60:                                      ; preds = %70, %.critedge58
  call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.2, i32 noundef 8777, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23VmaBlockMetadata_Linear4FreeEP16VmaAllocHandle_T) #5
  unreachable

73:                                               ; preds = %70, %.critedge54
  %.sink69 = phi ptr [ %58, %.critedge54 ], [ %71, %70 ]
  %.sink67 = phi i64 [ 128, %.critedge54 ], [ 136, %70 ]
  %74 = getelementptr inbounds i8, ptr %.sink69, i64 24
  store i32 0, ptr %74, align 8, !tbaa !20
  %75 = getelementptr inbounds i8, ptr %.sink69, i64 16
  store ptr null, ptr %75, align 8, !tbaa !21
  %76 = getelementptr inbounds i8, ptr %0, i64 %.sink67
  %77 = load i64, ptr %76, align 8, !tbaa !26
  %78 = add i64 %77, 1
  store i64 %78, ptr %76, align 8, !tbaa !26
  %79 = getelementptr inbounds i8, ptr %.sink69, i64 8
  %80 = load i64, ptr %79, align 8, !tbaa !22
  %81 = getelementptr inbounds i8, ptr %0, i64 40
  %82 = load i64, ptr %81, align 8, !tbaa !23
  %83 = add i64 %82, %80
  store i64 %83, ptr %81, align 8, !tbaa !23
  call void @_ZN23VmaBlockMetadata_Linear16CleanupAfterFreeEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  br label %84

84:                                               ; preds = %47, %38, %23, %73
  ret void
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z19VmaBinaryFindSortedI26VmaSuballocationOffsetLessP16VmaSuballocationS1_ET0_RKS3_S5_RKT1_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z19VmaBinaryFindSortedI29VmaSuballocationOffsetGreaterP16VmaSuballocationS1_ET0_RKS3_S5_RKT1_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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 = { 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, !8, i64 120}
!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 = !{!18, !8, i64 0}
!18 = !{!"_ZTS16VmaSuballocation", !8, i64 0, !8, i64 8, !11, i64 16, !19, i64 24}
!19 = !{!"_ZTS20VmaSuballocationType", !9, i64 0}
!20 = !{!18, !19, i64 24}
!21 = !{!18, !11, i64 16}
!22 = !{!18, !8, i64 8}
!23 = !{!6, !8, i64 40}
!24 = !{!6, !16, i64 116}
!25 = !{!11, !11, i64 0}
!26 = !{!8, !8, i64 0}


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