; LLVM IR from facebook/redex :: libresource/VectorImpl.ll (ZN7android10VectorImpl5_growEmm)

; 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.android::VectorImpl" = type { ptr, ptr, i64, i32, i64 }

@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7android12SharedBuffer14bufferFromDataEPv(ptr noundef) #0 align 2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @abort() #2

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

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

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

declare noundef ptr @_ZN7android12SharedBuffer5allocEm(i64 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7android10VectorImpl8_do_copyEPvPKvm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, i64 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7android12SharedBuffer4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK7android10VectorImpl8capacityEv(ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7android10VectorImpl5_growEmm(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %1, i64 noundef %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, 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 ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store i64 %2, ptr %7, align 8, !tbaa !9
  %22 = load ptr, ptr %5, align 8
  br label %23

23:                                               ; preds = %3
  %24 = load i64, ptr %6, align 8, !tbaa !9
  %25 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 2
  %26 = load i64, ptr %25, align 8, !tbaa !11
  %27 = icmp ule i64 %24, %26
  br i1 %27, label %60, label %28

28:                                               ; preds = %23
  br label %29

29:                                               ; preds = %28
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.4) #8
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.9) #8
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.2) #8
  br label %36

36:                                               ; preds = %29
  br label %37

37:                                               ; preds = %36
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.4) #8
  %40 = load ptr, ptr @stderr, align 8, !tbaa !5
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.19) #8
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.2) #8
  br label %44

44:                                               ; preds = %37
  br label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.4) #8
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = load i64, ptr %6, align 8, !tbaa !9
  %50 = trunc i64 %49 to i32
  %51 = load i64, ptr %7, align 8, !tbaa !9
  %52 = trunc i64 %51 to i32
  %53 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 2
  %54 = load i64, ptr %53, align 8, !tbaa !11
  %55 = trunc i64 %54 to i32
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.20, ptr noundef %22, i32 noundef %50, i32 noundef %52, i32 noundef %55) #8
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.2) #8
  br label %59

59:                                               ; preds = %45
  call void @abort() #9
  unreachable

60:                                               ; preds = %23
  br label %61

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  br label %62

62:                                               ; preds = %61
  %63 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 2
  %64 = load i64, ptr %63, align 8, !tbaa !11
  %65 = load i64, ptr %7, align 8, !tbaa !9
  %66 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %64, i64 %65)
  %67 = extractvalue { i64, i1 } %66, 1
  %68 = extractvalue { i64, i1 } %66, 0
  store i64 %68, ptr %8, align 8
  br i1 %67, label %69, label %88

69:                                               ; preds = %62
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.4) #8
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.21) #8
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.2) #8
  br label %77

77:                                               ; preds = %70
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  %80 = load ptr, ptr @stderr, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.4) #8
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.22) #8
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.2) #8
  br label %86

86:                                               ; preds = %79
  br label %87

87:                                               ; preds = %86
  call void @abort() #9
  unreachable

88:                                               ; preds = %62
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = call noundef i64 @_ZNK7android10VectorImpl8capacityEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  %92 = load i64, ptr %8, align 8, !tbaa !9
  %93 = icmp ult i64 %91, %92
  br i1 %93, label %94, label %272

94:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %94
  %96 = load i64, ptr %8, align 8, !tbaa !9
  %97 = load i64, ptr %8, align 8, !tbaa !9
  %98 = udiv i64 %97, 2
  %99 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %96, i64 %98)
  %100 = extractvalue { i64, i1 } %99, 1
  %101 = extractvalue { i64, i1 } %99, 0
  store i64 %101, ptr %9, align 8
  br i1 %100, label %102, label %121

102:                                              ; preds = %95
  br label %103

103:                                              ; preds = %102
  %104 = load ptr, ptr @stderr, align 8, !tbaa !5
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.4) #8
  %106 = load ptr, ptr @stderr, align 8, !tbaa !5
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.23) #8
  %108 = load ptr, ptr @stderr, align 8, !tbaa !5
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.2) #8
  br label %110

110:                                              ; preds = %103
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  %113 = load ptr, ptr @stderr, align 8, !tbaa !5
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.4) #8
  %115 = load ptr, ptr @stderr, align 8, !tbaa !5
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.24) #8
  %117 = load ptr, ptr @stderr, align 8, !tbaa !5
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.2) #8
  br label %119

119:                                              ; preds = %112
  br label %120

120:                                              ; preds = %119
  call void @abort() #9
  unreachable

121:                                              ; preds = %95
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  %125 = load i64, ptr %9, align 8, !tbaa !9
  %126 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %125, i64 1)
  %127 = extractvalue { i64, i1 } %126, 1
  %128 = extractvalue { i64, i1 } %126, 0
  store i64 %128, ptr %9, align 8
  br i1 %127, label %129, label %148

129:                                              ; preds = %124
  br label %130

130:                                              ; preds = %129
  %131 = load ptr, ptr @stderr, align 8, !tbaa !5
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.4) #8
  %133 = load ptr, ptr @stderr, align 8, !tbaa !5
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.25) #8
  %135 = load ptr, ptr @stderr, align 8, !tbaa !5
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.2) #8
  br label %137

137:                                              ; preds = %130
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr @stderr, align 8, !tbaa !5
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.4) #8
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.24) #8
  %144 = load ptr, ptr @stderr, align 8, !tbaa !5
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef @.str.2) #8
  br label %146

146:                                              ; preds = %139
  br label %147

147:                                              ; preds = %146
  call void @abort() #9
  unreachable

148:                                              ; preds = %124
  br label %149

149:                                              ; preds = %148
  br label %150

150:                                              ; preds = %149
  %151 = load i64, ptr %9, align 8, !tbaa !9
  %152 = call noundef i64 @_ZN7androidL3maxEmm(i64 noundef 4, i64 noundef %151)
  store i64 %152, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %150
  %154 = load i64, ptr %9, align 8, !tbaa !9
  %155 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 4
  %156 = load i64, ptr %155, align 8, !tbaa !14
  %157 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %154, i64 %156)
  %158 = extractvalue { i64, i1 } %157, 1
  %159 = extractvalue { i64, i1 } %157, 0
  store i64 %159, ptr %10, align 8
  br i1 %158, label %160, label %179

160:                                              ; preds = %153
  br label %161

161:                                              ; preds = %160
  %162 = load ptr, ptr @stderr, align 8, !tbaa !5
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.4) #8
  %164 = load ptr, ptr @stderr, align 8, !tbaa !5
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %164, ptr noundef @.str.26) #8
  %166 = load ptr, ptr @stderr, align 8, !tbaa !5
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef @.str.2) #8
  br label %168

168:                                              ; preds = %161
  br label %169

169:                                              ; preds = %168
  br label %170

170:                                              ; preds = %169
  %171 = load ptr, ptr @stderr, align 8, !tbaa !5
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef @.str.4) #8
  %173 = load ptr, ptr @stderr, align 8, !tbaa !5
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef @.str.27) #8
  %175 = load ptr, ptr @stderr, align 8, !tbaa !5
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef @.str.2) #8
  br label %177

177:                                              ; preds = %170
  br label %178

178:                                              ; preds = %177
  call void @abort() #9
  unreachable

179:                                              ; preds = %153
  br label %180

180:                                              ; preds = %179
  br label %181

181:                                              ; preds = %180
  %182 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !15
  %184 = icmp ne ptr %183, null
  br i1 %184, label %185, label %218

185:                                              ; preds = %181
  %186 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 2
  %187 = load i64, ptr %186, align 8, !tbaa !11
  %188 = load i64, ptr %6, align 8, !tbaa !9
  %189 = icmp eq i64 %187, %188
  br i1 %189, label %190, label %218

190:                                              ; preds = %185
  %191 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 3
  %192 = load i32, ptr %191, align 8, !tbaa !16
  %193 = and i32 %192, 4
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %218

195:                                              ; preds = %190
  %196 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 3
  %197 = load i32, ptr %196, align 8, !tbaa !16
  %198 = and i32 %197, 2
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %200, label %218

200:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %201 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 1
  %202 = load ptr, ptr %201, align 8, !tbaa !15
  %203 = call noundef ptr @_ZN7android12SharedBuffer14bufferFromDataEPv(ptr noundef %202)
  store ptr %203, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = load i64, ptr %10, align 8, !tbaa !9
  %206 = call noundef ptr @_ZNK7android12SharedBuffer10editResizeEm(ptr noundef nonnull align 8 dereferenceable(24) %204, i64 noundef %205)
  store ptr %206, ptr %12, align 8, !tbaa !5
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = icmp ne ptr %207, null
  br i1 %208, label %209, label %213

209:                                              ; preds = %200
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  %211 = call noundef ptr @_ZN7android12SharedBuffer4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %210)
  %212 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 1
  store ptr %211, ptr %212, align 8, !tbaa !15
  br label %214

213:                                              ; preds = %200
  store ptr null, ptr %4, align 8
  store i32 1, ptr %13, align 4
  br label %215

214:                                              ; preds = %209
  store i32 0, ptr %13, align 4
  br label %215

215:                                              ; preds = %214, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  %216 = load i32, ptr %13, align 4
  switch i32 %216, label %269 [
    i32 0, label %217
  ]

217:                                              ; preds = %215
  br label %268

218:                                              ; preds = %195, %190, %185, %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %219 = load i64, ptr %10, align 8, !tbaa !9
  %220 = call noundef ptr @_ZN7android12SharedBuffer5allocEm(i64 noundef %219)
  store ptr %220, ptr %14, align 8, !tbaa !5
  %221 = load ptr, ptr %14, align 8, !tbaa !5
  %222 = icmp ne ptr %221, null
  br i1 %222, label %223, label %263

223:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %224 = load ptr, ptr %14, align 8, !tbaa !5
  %225 = call noundef ptr @_ZN7android12SharedBuffer4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %224)
  store ptr %225, ptr %15, align 8, !tbaa !5
  %226 = load i64, ptr %6, align 8, !tbaa !9
  %227 = icmp ne i64 %226, 0
  br i1 %227, label %228, label %233

228:                                              ; preds = %223
  %229 = load ptr, ptr %15, align 8, !tbaa !5
  %230 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 1
  %231 = load ptr, ptr %230, align 8, !tbaa !15
  %232 = load i64, ptr %6, align 8, !tbaa !9
  call void @_ZNK7android10VectorImpl8_do_copyEPvPKvm(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef %229, ptr noundef %231, i64 noundef %232)
  br label %233

233:                                              ; preds = %228, %223
  %234 = load i64, ptr %6, align 8, !tbaa !9
  %235 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 2
  %236 = load i64, ptr %235, align 8, !tbaa !11
  %237 = icmp ne i64 %234, %236
  br i1 %237, label %238, label %260

238:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %239 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 1
  %240 = load ptr, ptr %239, align 8, !tbaa !15
  %241 = load i64, ptr %6, align 8, !tbaa !9
  %242 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 4
  %243 = load i64, ptr %242, align 8, !tbaa !14
  %244 = mul i64 %241, %243
  %245 = getelementptr inbounds i8, ptr %240, i64 %244
  store ptr %245, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %246 = load ptr, ptr %15, align 8, !tbaa !5
  %247 = load i64, ptr %6, align 8, !tbaa !9
  %248 = load i64, ptr %7, align 8, !tbaa !9
  %249 = add i64 %247, %248
  %250 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 4
  %251 = load i64, ptr %250, align 8, !tbaa !14
  %252 = mul i64 %249, %251
  %253 = getelementptr inbounds i8, ptr %246, i64 %252
  store ptr %253, ptr %17, align 8, !tbaa !5
  %254 = load ptr, ptr %17, align 8, !tbaa !5
  %255 = load ptr, ptr %16, align 8, !tbaa !5
  %256 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 2
  %257 = load i64, ptr %256, align 8, !tbaa !11
  %258 = load i64, ptr %6, align 8, !tbaa !9
  %259 = sub i64 %257, %258
  call void @_ZNK7android10VectorImpl8_do_copyEPvPKvm(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef %254, ptr noundef %255, i64 noundef %259)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %260

260:                                              ; preds = %238, %233
  call void @_ZN7android10VectorImpl15release_storageEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  %261 = load ptr, ptr %15, align 8, !tbaa !5
  %262 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 1
  store ptr %261, ptr %262, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %264

263:                                              ; preds = %218
  store ptr null, ptr %4, align 8
  store i32 1, ptr %13, align 4
  br label %265

264:                                              ; preds = %260
  store i32 0, ptr %13, align 4
  br label %265

265:                                              ; preds = %264, %263
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %266 = load i32, ptr %13, align 4
  switch i32 %266, label %269 [
    i32 0, label %267
  ]

267:                                              ; preds = %265
  br label %268

268:                                              ; preds = %267, %217
  store i32 0, ptr %13, align 4
  br label %269

269:                                              ; preds = %268, %265, %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  %270 = load i32, ptr %13, align 4
  switch i32 %270, label %306 [
    i32 0, label %271
  ]

271:                                              ; preds = %269
  br label %300

272:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %273 = call noundef ptr @_ZN7android10VectorImpl13editArrayImplEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  store ptr %273, ptr %18, align 8, !tbaa !5
  %274 = load i64, ptr %6, align 8, !tbaa !9
  %275 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 2
  %276 = load i64, ptr %275, align 8, !tbaa !11
  %277 = icmp ne i64 %274, %276
  br i1 %277, label %278, label %299

278:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %279 = load ptr, ptr %18, align 8, !tbaa !5
  %280 = load i64, ptr %6, align 8, !tbaa !9
  %281 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 4
  %282 = load i64, ptr %281, align 8, !tbaa !14
  %283 = mul i64 %280, %282
  %284 = getelementptr inbounds i8, ptr %279, i64 %283
  store ptr %284, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %285 = load ptr, ptr %18, align 8, !tbaa !5
  %286 = load i64, ptr %6, align 8, !tbaa !9
  %287 = load i64, ptr %7, align 8, !tbaa !9
  %288 = add i64 %286, %287
  %289 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 4
  %290 = load i64, ptr %289, align 8, !tbaa !14
  %291 = mul i64 %288, %290
  %292 = getelementptr inbounds i8, ptr %285, i64 %291
  store ptr %292, ptr %20, align 8, !tbaa !5
  %293 = load ptr, ptr %20, align 8, !tbaa !5
  %294 = load ptr, ptr %19, align 8, !tbaa !5
  %295 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 2
  %296 = load i64, ptr %295, align 8, !tbaa !11
  %297 = load i64, ptr %6, align 8, !tbaa !9
  %298 = sub i64 %296, %297
  call void @_ZNK7android10VectorImpl16_do_move_forwardEPvPKvm(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef %293, ptr noundef %294, i64 noundef %298)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %299

299:                                              ; preds = %278, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %300

300:                                              ; preds = %299, %271
  %301 = load i64, ptr %8, align 8, !tbaa !9
  %302 = getelementptr inbounds %"class.android::VectorImpl", ptr %22, i32 0, i32 2
  store i64 %301, ptr %302, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %303 = load i64, ptr %6, align 8, !tbaa !9
  %304 = call noundef ptr @_ZNK7android10VectorImpl12itemLocationEm(ptr noundef nonnull align 8 dereferenceable(40) %22, i64 noundef %303)
  store ptr %304, ptr %21, align 8, !tbaa !5
  %305 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %305, ptr %4, align 8
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %306

306:                                              ; preds = %300, %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  %307 = load ptr, ptr %4, align 8
  ret ptr %307
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7androidL3maxEmm(i64 noundef, i64 noundef) #0

declare noundef ptr @_ZNK7android12SharedBuffer10editResizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7android10VectorImpl16_do_move_forwardEPvPKvm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, i64 noundef) #6 align 2

attributes #0 = { inlinehint 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 #1 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { 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 16}
!12 = !{!"_ZTSN7android10VectorImplE", !6, i64 8, !10, i64 16, !13, i64 24, !10, i64 32}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !10, i64 32}
!15 = !{!12, !6, i64 8}
!16 = !{!12, !13, i64 24}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7android12SharedBuffer14bufferFromDataEPv(ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #2

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

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

declare noundef ptr @_ZN7android12SharedBuffer5allocEm(i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7android10VectorImpl8_do_copyEPvPKvm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7android12SharedBuffer4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK7android10VectorImpl8capacityEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7android10VectorImpl5_growEmm(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %1, i64 noundef %2) local_unnamed_addr #3 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %.not = icmp ult i64 %5, %1
  br i1 %.not, label %6, label %29

6:                                                ; preds = %3
  %7 = load ptr, ptr @stderr, align 8, !tbaa !12
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.4) #7
  %9 = load ptr, ptr @stderr, align 8, !tbaa !12
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.9) #7
  %11 = load ptr, ptr @stderr, align 8, !tbaa !12
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.2) #7
  %13 = load ptr, ptr @stderr, align 8, !tbaa !12
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.4) #7
  %15 = load ptr, ptr @stderr, align 8, !tbaa !12
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.19) #7
  %17 = load ptr, ptr @stderr, align 8, !tbaa !12
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.2) #7
  %19 = load ptr, ptr @stderr, align 8, !tbaa !12
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.4) #7
  %21 = load ptr, ptr @stderr, align 8, !tbaa !12
  %22 = trunc i64 %1 to i32
  %23 = trunc i64 %2 to i32
  %24 = load i64, ptr %4, align 8, !tbaa !5
  %25 = trunc i64 %24 to i32
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.20, ptr noundef nonnull %0, i32 noundef %22, i32 noundef %23, i32 noundef %25) #7
  %27 = load ptr, ptr @stderr, align 8, !tbaa !12
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.2) #7
  tail call void @abort() #8
  unreachable

29:                                               ; preds = %3
  %30 = tail call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %5, i64 %2)
  %31 = extractvalue { i64, i1 } %30, 1
  %32 = extractvalue { i64, i1 } %30, 0
  br i1 %31, label %33, label %46

33:                                               ; preds = %29
  %34 = load ptr, ptr @stderr, align 8, !tbaa !12
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.4) #7
  %36 = load ptr, ptr @stderr, align 8, !tbaa !12
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.21) #7
  %38 = load ptr, ptr @stderr, align 8, !tbaa !12
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.2) #7
  %40 = load ptr, ptr @stderr, align 8, !tbaa !12
  %41 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.4) #7
  %42 = load ptr, ptr @stderr, align 8, !tbaa !12
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.22) #7
  %44 = load ptr, ptr @stderr, align 8, !tbaa !12
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.2) #7
  tail call void @abort() #8
  unreachable

46:                                               ; preds = %29
  %47 = tail call noundef i64 @_ZNK7android10VectorImpl8capacityEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %48 = icmp ult i64 %47, %32
  br i1 %48, label %49, label %136

49:                                               ; preds = %46
  %50 = lshr i64 %32, 1
  %51 = tail call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %32, i64 %50)
  %52 = extractvalue { i64, i1 } %51, 1
  br i1 %52, label %53, label %66

53:                                               ; preds = %49
  %54 = load ptr, ptr @stderr, align 8, !tbaa !12
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.4) #7
  %56 = load ptr, ptr @stderr, align 8, !tbaa !12
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.23) #7
  %58 = load ptr, ptr @stderr, align 8, !tbaa !12
  %59 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.2) #7
  %60 = load ptr, ptr @stderr, align 8, !tbaa !12
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str.4) #7
  %62 = load ptr, ptr @stderr, align 8, !tbaa !12
  %63 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.24) #7
  %64 = load ptr, ptr @stderr, align 8, !tbaa !12
  %65 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.2) #7
  tail call void @abort() #8
  unreachable

66:                                               ; preds = %49
  %67 = extractvalue { i64, i1 } %51, 0
  %68 = tail call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %67, i64 1)
  %69 = extractvalue { i64, i1 } %68, 1
  br i1 %69, label %70, label %83

70:                                               ; preds = %66
  %71 = load ptr, ptr @stderr, align 8, !tbaa !12
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.4) #7
  %73 = load ptr, ptr @stderr, align 8, !tbaa !12
  %74 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.25) #7
  %75 = load ptr, ptr @stderr, align 8, !tbaa !12
  %76 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.2) #7
  %77 = load ptr, ptr @stderr, align 8, !tbaa !12
  %78 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.4) #7
  %79 = load ptr, ptr @stderr, align 8, !tbaa !12
  %80 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str.24) #7
  %81 = load ptr, ptr @stderr, align 8, !tbaa !12
  %82 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.2) #7
  tail call void @abort() #8
  unreachable

83:                                               ; preds = %66
  %84 = extractvalue { i64, i1 } %68, 0
  %85 = tail call noundef i64 @_ZN7androidL3maxEmm(i64 noundef 4, i64 noundef %84)
  %86 = getelementptr inbounds i8, ptr %0, i64 32
  %87 = load i64, ptr %86, align 8, !tbaa !13
  %88 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %85, i64 %87)
  %89 = extractvalue { i64, i1 } %88, 1
  %90 = extractvalue { i64, i1 } %88, 0
  br i1 %89, label %91, label %104

91:                                               ; preds = %83
  %92 = load ptr, ptr @stderr, align 8, !tbaa !12
  %93 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef nonnull @.str.4) #7
  %94 = load ptr, ptr @stderr, align 8, !tbaa !12
  %95 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str.26) #7
  %96 = load ptr, ptr @stderr, align 8, !tbaa !12
  %97 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef nonnull @.str.2) #7
  %98 = load ptr, ptr @stderr, align 8, !tbaa !12
  %99 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.4) #7
  %100 = load ptr, ptr @stderr, align 8, !tbaa !12
  %101 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.27) #7
  %102 = load ptr, ptr @stderr, align 8, !tbaa !12
  %103 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.2) #7
  tail call void @abort() #8
  unreachable

104:                                              ; preds = %83
  %105 = getelementptr inbounds i8, ptr %0, i64 8
  %106 = load ptr, ptr %105, align 8, !tbaa !14
  %.not60 = icmp ne ptr %106, null
  %107 = load i64, ptr %4, align 8
  %108 = icmp eq i64 %107, %1
  %or.cond = select i1 %.not60, i1 %108, i1 false
  br i1 %or.cond, label %109, label %118

109:                                              ; preds = %104
  %110 = getelementptr inbounds i8, ptr %0, i64 24
  %111 = load i32, ptr %110, align 8, !tbaa !15
  %112 = and i32 %111, 6
  %or.cond68.not = icmp eq i32 %112, 6
  br i1 %or.cond68.not, label %113, label %118

113:                                              ; preds = %109
  %114 = tail call noundef ptr @_ZN7android12SharedBuffer14bufferFromDataEPv(ptr noundef nonnull %106)
  %115 = tail call noundef ptr @_ZNK7android12SharedBuffer10editResizeEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %90)
  %.not66.not = icmp eq ptr %115, null
  br i1 %.not66.not, label %.critedge, label %116

116:                                              ; preds = %113
  %117 = tail call noundef ptr @_ZN7android12SharedBuffer4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %115)
  store ptr %117, ptr %105, align 8, !tbaa !14
  br label %.critedge71

118:                                              ; preds = %109, %104
  %119 = tail call noundef ptr @_ZN7android12SharedBuffer5allocEm(i64 noundef %90)
  %.not63.not = icmp eq ptr %119, null
  br i1 %.not63.not, label %.critedge, label %120

120:                                              ; preds = %118
  %121 = tail call noundef ptr @_ZN7android12SharedBuffer4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %119)
  %.not64 = icmp eq i64 %1, 0
  br i1 %.not64, label %124, label %122

122:                                              ; preds = %120
  %123 = load ptr, ptr %105, align 8, !tbaa !14
  tail call void @_ZNK7android10VectorImpl8_do_copyEPvPKvm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %121, ptr noundef %123, i64 noundef %1)
  br label %124

124:                                              ; preds = %122, %120
  %125 = load i64, ptr %4, align 8, !tbaa !5
  %.not65 = icmp eq i64 %125, %1
  br i1 %.not65, label %135, label %126

126:                                              ; preds = %124
  %127 = load ptr, ptr %105, align 8, !tbaa !14
  %128 = load i64, ptr %86, align 8, !tbaa !13
  %129 = mul i64 %128, %1
  %130 = getelementptr inbounds i8, ptr %127, i64 %129
  %131 = add i64 %2, %1
  %132 = mul i64 %128, %131
  %133 = getelementptr inbounds i8, ptr %121, i64 %132
  %134 = sub i64 %125, %1
  tail call void @_ZNK7android10VectorImpl8_do_copyEPvPKvm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %133, ptr noundef %130, i64 noundef %134)
  br label %135

135:                                              ; preds = %126, %124
  tail call void @_ZN7android10VectorImpl15release_storageEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  store ptr %121, ptr %105, align 8, !tbaa !14
  br label %.critedge71

136:                                              ; preds = %46
  %137 = tail call noundef ptr @_ZN7android10VectorImpl13editArrayImplEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %138 = load i64, ptr %4, align 8, !tbaa !5
  %.not59 = icmp eq i64 %138, %1
  br i1 %.not59, label %.critedge71, label %139

139:                                              ; preds = %136
  %140 = getelementptr inbounds i8, ptr %0, i64 32
  %141 = load i64, ptr %140, align 8, !tbaa !13
  %142 = mul i64 %141, %1
  %143 = getelementptr inbounds i8, ptr %137, i64 %142
  %144 = add i64 %2, %1
  %145 = mul i64 %141, %144
  %146 = getelementptr inbounds i8, ptr %137, i64 %145
  %147 = sub i64 %138, %1
  tail call void @_ZNK7android10VectorImpl16_do_move_forwardEPvPKvm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %146, ptr noundef %143, i64 noundef %147)
  br label %.critedge71

.critedge71:                                      ; preds = %135, %116, %136, %139
  store i64 %32, ptr %4, align 8, !tbaa !5
  %148 = tail call noundef ptr @_ZNK7android10VectorImpl12itemLocationEm(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %1)
  br label %.critedge

.critedge:                                        ; preds = %113, %118, %.critedge71
  %.4 = phi ptr [ %148, %.critedge71 ], [ null, %118 ], [ null, %113 ]
  ret ptr %.4
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #6

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7androidL3maxEmm(i64 noundef, i64 noundef) local_unnamed_addr #0

declare noundef ptr @_ZNK7android12SharedBuffer10editResizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7android10VectorImpl16_do_move_forwardEPvPKvm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #5 align 2

attributes #0 = { inlinehint 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 #1 = { nofree 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { cold nounwind }
attributes #8 = { 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, !10, i64 16}
!6 = !{!"_ZTSN7android10VectorImplE", !7, i64 8, !10, i64 16, !11, i64 24, !10, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !10, i64 32}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !11, i64 24}


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