; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_compiled_6)

; 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.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3A0x7ESrcBuffer0x280x29(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3ASrcBuffer0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3AAddNewSourceBuffer0x28std0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Cllvh0x3A0x3AMemoryBuffer0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Cllvh0x3A0x3AMemoryBuffer0x3E0x3E0x2C0x20llvh0x3A0x3ASMLoc0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.w2c_hermes, ptr %18, i32 0, i32 3
  %20 = load i32, ptr %19, align 8, !tbaa !11
  store i32 %20, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %21 = load i32, ptr %14, align 4, !tbaa !9
  %22 = load i32, ptr %13, align 4, !tbaa !9
  %23 = sub i32 %22, %21
  store i32 %23, ptr %13, align 4, !tbaa !9
  %24 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %24, ptr %9, align 4, !tbaa !9
  %25 = load i32, ptr %13, align 4, !tbaa !9
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.w2c_hermes, ptr %26, i32 0, i32 3
  store i32 %25, ptr %27, align 8, !tbaa !11
  %28 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %28, ptr %13, align 4, !tbaa !9
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %13, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = add i64 %32, 8
  %34 = call i32 @i32_load(ptr noundef %30, i64 noundef %33)
  store i32 %34, ptr %13, align 4, !tbaa !9
  %35 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %35, ptr %11, align 4, !tbaa !9
  %36 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %36, ptr %13, align 4, !tbaa !9
  %37 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %37, ptr %14, align 4, !tbaa !9
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %13, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = add i64 %41, 12
  %43 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %39, i64 noundef %42, i32 noundef %43)
  %44 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %44, ptr %13, align 4, !tbaa !9
  %45 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %45, ptr %14, align 4, !tbaa !9
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.w2c_hermes, ptr %46, i32 0, i32 6
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = add i64 %49, 4
  %51 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %47, i64 noundef %50, i32 noundef %51)
  %52 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %52, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.w2c_hermes, ptr %53, i32 0, i32 6
  %55 = load i32, ptr %13, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = add i64 %56, 8
  %58 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %54, i64 noundef %57, i32 noundef %58)
  %59 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %59, ptr %13, align 4, !tbaa !9
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = add i64 %63, 4
  %65 = call i32 @i32_load(ptr noundef %61, i64 noundef %64)
  store i32 %65, ptr %13, align 4, !tbaa !9
  %66 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %66, ptr %7, align 4, !tbaa !9
  %67 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %67, ptr %14, align 4, !tbaa !9
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = add i64 %71, 8
  %73 = call i32 @i32_load(ptr noundef %69, i64 noundef %72)
  store i32 %73, ptr %14, align 4, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = icmp ult i32 %74, %75
  %77 = zext i1 %76 to i32
  store i32 %77, ptr %13, align 4, !tbaa !9
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %101

80:                                               ; preds = %4
  %81 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %81, ptr %13, align 4, !tbaa !9
  %82 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %82, ptr %14, align 4, !tbaa !9
  %83 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %83, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %84 = load i32, ptr %16, align 4, !tbaa !9
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = add i32 %85, %84
  store i32 %86, ptr %15, align 4, !tbaa !9
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = call i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3ASrcBuffer0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef %87, i32 noundef %88, i32 noundef %89)
  store i32 %90, ptr %14, align 4, !tbaa !9
  store i32 12, ptr %15, align 4, !tbaa !9
  %91 = load i32, ptr %15, align 4, !tbaa !9
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = add i32 %92, %91
  store i32 %93, ptr %14, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %94, ptr %7, align 4, !tbaa !9
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = add i64 %98, 4
  %100 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %96, i64 noundef %99, i32 noundef %100)
  br label %118

101:                                              ; preds = %4
  %102 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %102, ptr %13, align 4, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %103, ptr %14, align 4, !tbaa !9
  store i32 4, ptr %15, align 4, !tbaa !9
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = load i32, ptr %14, align 4, !tbaa !9
  %106 = add i32 %105, %104
  store i32 %106, ptr %14, align 4, !tbaa !9
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x3E0x3A0x3A_0x5Fpush_back_slow_path0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef %107, i32 noundef %108, i32 noundef %109)
  %110 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %110, ptr %13, align 4, !tbaa !9
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, 4
  %116 = call i32 @i32_load(ptr noundef %112, i64 noundef %115)
  store i32 %116, ptr %13, align 4, !tbaa !9
  %117 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %117, ptr %7, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %101, %80
  %119 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %119, ptr %13, align 4, !tbaa !9
  %120 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %120, ptr %14, align 4, !tbaa !9
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.w2c_hermes, ptr %121, i32 0, i32 6
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = call i32 @i32_load(ptr noundef %122, i64 noundef %124)
  store i32 %125, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = sub i32 %127, %126
  store i32 %128, ptr %13, align 4, !tbaa !9
  store i32 12, ptr %14, align 4, !tbaa !9
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = icmp eq i32 %129, 0
  %131 = xor i1 %130, true
  %132 = xor i1 %131, true
  %133 = zext i1 %132 to i32
  %134 = sext i32 %133 to i64
  %135 = call i64 @llvm.expect.i64(i64 %134, i64 0)
  %136 = icmp ne i64 %135, 0
  br i1 %136, label %137, label %139

137:                                              ; preds = %118
  call void @wasm_rt_trap(i32 noundef 3) #7
  unreachable

138:                                              ; No predecessors!
  br label %161

139:                                              ; preds = %118
  %140 = load i32, ptr %13, align 4, !tbaa !9
  %141 = icmp eq i32 %140, -2147483648
  br i1 %141, label %142, label %145

142:                                              ; preds = %139
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = icmp eq i32 %143, -1
  br label %145

145:                                              ; preds = %142, %139
  %146 = phi i1 [ false, %139 ], [ %144, %142 ]
  %147 = xor i1 %146, true
  %148 = xor i1 %147, true
  %149 = zext i1 %148 to i32
  %150 = sext i32 %149 to i64
  %151 = call i64 @llvm.expect.i64(i64 %150, i64 0)
  %152 = icmp ne i64 %151, 0
  br i1 %152, label %153, label %155

153:                                              ; preds = %145
  call void @wasm_rt_trap(i32 noundef 2) #7
  unreachable

154:                                              ; No predecessors!
  br label %159

155:                                              ; preds = %145
  %156 = load i32, ptr %13, align 4, !tbaa !9
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = sdiv i32 %156, %157
  br label %159

159:                                              ; preds = %155, %154
  %160 = phi i32 [ 0, %154 ], [ %158, %155 ]
  br label %161

161:                                              ; preds = %159, %138
  %162 = phi i32 [ 0, %138 ], [ %160, %159 ]
  store i32 %162, ptr %13, align 4, !tbaa !9
  %163 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %163, ptr %12, align 4, !tbaa !9
  %164 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %164, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = add i32 %166, %165
  store i32 %167, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %168, ptr %10, align 4, !tbaa !9
  %169 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %169, ptr %7, align 4, !tbaa !9
  %170 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %170, ptr %13, align 4, !tbaa !9
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.w2c_hermes, ptr %171, i32 0, i32 6
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = call i32 @i32_load(ptr noundef %172, i64 noundef %174)
  store i32 %175, ptr %13, align 4, !tbaa !9
  %176 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %176, ptr %8, align 4, !tbaa !9
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = icmp ne i32 %177, 0
  %179 = xor i1 %178, true
  %180 = zext i1 %179 to i32
  store i32 %180, ptr %13, align 4, !tbaa !9
  %181 = load i32, ptr %13, align 4, !tbaa !9
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %184

183:                                              ; preds = %161
  br label %244

184:                                              ; preds = %161
  br label %185

185:                                              ; preds = %237, %214, %184
  %186 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %186, ptr %13, align 4, !tbaa !9
  %187 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %187, ptr %7, align 4, !tbaa !9
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.w2c_hermes, ptr %188, i32 0, i32 6
  %190 = load i32, ptr %13, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = add i64 %191, 16
  %193 = call i32 @i32_load(ptr noundef %189, i64 noundef %192)
  store i32 %193, ptr %13, align 4, !tbaa !9
  %194 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %194, ptr %8, align 4, !tbaa !9
  %195 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %195, ptr %14, align 4, !tbaa !9
  %196 = load i32, ptr %13, align 4, !tbaa !9
  %197 = load i32, ptr %14, align 4, !tbaa !9
  %198 = icmp ugt i32 %196, %197
  %199 = zext i1 %198 to i32
  store i32 %199, ptr %13, align 4, !tbaa !9
  %200 = load i32, ptr %13, align 4, !tbaa !9
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %216

202:                                              ; preds = %185
  %203 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %203, ptr %13, align 4, !tbaa !9
  %204 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %204, ptr %10, align 4, !tbaa !9
  %205 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %205, ptr %13, align 4, !tbaa !9
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.w2c_hermes, ptr %206, i32 0, i32 6
  %208 = load i32, ptr %13, align 4, !tbaa !9
  %209 = zext i32 %208 to i64
  %210 = call i32 @i32_load(ptr noundef %207, i64 noundef %209)
  store i32 %210, ptr %13, align 4, !tbaa !9
  %211 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %211, ptr %8, align 4, !tbaa !9
  %212 = load i32, ptr %13, align 4, !tbaa !9
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %215

214:                                              ; preds = %202
  br label %185

215:                                              ; preds = %202
  br label %244

216:                                              ; preds = %185
  %217 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %217, ptr %13, align 4, !tbaa !9
  %218 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %218, ptr %14, align 4, !tbaa !9
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = load i32, ptr %14, align 4, !tbaa !9
  %221 = icmp uge i32 %219, %220
  %222 = zext i1 %221 to i32
  store i32 %222, ptr %13, align 4, !tbaa !9
  %223 = load i32, ptr %13, align 4, !tbaa !9
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %226

225:                                              ; preds = %216
  br label %347

226:                                              ; preds = %216
  %227 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %227, ptr %13, align 4, !tbaa !9
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.w2c_hermes, ptr %228, i32 0, i32 6
  %230 = load i32, ptr %13, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = add i64 %231, 4
  %233 = call i32 @i32_load(ptr noundef %229, i64 noundef %232)
  store i32 %233, ptr %13, align 4, !tbaa !9
  %234 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %234, ptr %8, align 4, !tbaa !9
  %235 = load i32, ptr %13, align 4, !tbaa !9
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %238

237:                                              ; preds = %226
  br label %185

238:                                              ; preds = %226
  %239 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %239, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %240 = load i32, ptr %14, align 4, !tbaa !9
  %241 = load i32, ptr %13, align 4, !tbaa !9
  %242 = add i32 %241, %240
  store i32 %242, ptr %13, align 4, !tbaa !9
  %243 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %243, ptr %10, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %238, %215, %183
  store i32 24, ptr %13, align 4, !tbaa !9
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = load i32, ptr %13, align 4, !tbaa !9
  %247 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %245, i32 noundef %246)
  store i32 %247, ptr %13, align 4, !tbaa !9
  %248 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %248, ptr %8, align 4, !tbaa !9
  %249 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %249, ptr %14, align 4, !tbaa !9
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.w2c_hermes, ptr %250, i32 0, i32 6
  %252 = load i32, ptr %13, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = add i64 %253, 16
  %255 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %251, i64 noundef %254, i32 noundef %255)
  %256 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %256, ptr %13, align 4, !tbaa !9
  %257 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %257, ptr %14, align 4, !tbaa !9
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.w2c_hermes, ptr %258, i32 0, i32 6
  %260 = load i32, ptr %13, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = add i64 %261, 8
  %263 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %259, i64 noundef %262, i32 noundef %263)
  %264 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %264, ptr %13, align 4, !tbaa !9
  store i64 0, ptr %17, align 8, !tbaa !17
  %265 = load ptr, ptr %5, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.w2c_hermes, ptr %265, i32 0, i32 6
  %267 = load i32, ptr %13, align 4, !tbaa !9
  %268 = zext i32 %267 to i64
  %269 = load i64, ptr %17, align 8, !tbaa !17
  call void @i64_store(ptr noundef %266, i64 noundef %268, i64 noundef %269)
  %270 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %270, ptr %13, align 4, !tbaa !9
  %271 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %271, ptr %14, align 4, !tbaa !9
  %272 = load ptr, ptr %5, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.w2c_hermes, ptr %272, i32 0, i32 6
  %274 = load i32, ptr %13, align 4, !tbaa !9
  %275 = zext i32 %274 to i64
  %276 = add i64 %275, 20
  %277 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %273, i64 noundef %276, i32 noundef %277)
  %278 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %278, ptr %13, align 4, !tbaa !9
  %279 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %279, ptr %14, align 4, !tbaa !9
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.w2c_hermes, ptr %280, i32 0, i32 6
  %282 = load i32, ptr %13, align 4, !tbaa !9
  %283 = zext i32 %282 to i64
  %284 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %281, i64 noundef %283, i32 noundef %284)
  %285 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %285, ptr %13, align 4, !tbaa !9
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.w2c_hermes, ptr %286, i32 0, i32 6
  %288 = load i32, ptr %13, align 4, !tbaa !9
  %289 = zext i32 %288 to i64
  %290 = add i64 %289, 12
  %291 = call i32 @i32_load(ptr noundef %287, i64 noundef %290)
  store i32 %291, ptr %13, align 4, !tbaa !9
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.w2c_hermes, ptr %292, i32 0, i32 6
  %294 = load i32, ptr %13, align 4, !tbaa !9
  %295 = zext i32 %294 to i64
  %296 = call i32 @i32_load(ptr noundef %293, i64 noundef %295)
  store i32 %296, ptr %13, align 4, !tbaa !9
  %297 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %297, ptr %7, align 4, !tbaa !9
  %298 = load i32, ptr %13, align 4, !tbaa !9
  %299 = icmp ne i32 %298, 0
  br i1 %299, label %300, label %316

300:                                              ; preds = %244
  %301 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %301, ptr %13, align 4, !tbaa !9
  %302 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %302, ptr %14, align 4, !tbaa !9
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.w2c_hermes, ptr %303, i32 0, i32 6
  %305 = load i32, ptr %13, align 4, !tbaa !9
  %306 = zext i32 %305 to i64
  %307 = add i64 %306, 12
  %308 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %304, i64 noundef %307, i32 noundef %308)
  %309 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %309, ptr %13, align 4, !tbaa !9
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.w2c_hermes, ptr %310, i32 0, i32 6
  %312 = load i32, ptr %13, align 4, !tbaa !9
  %313 = zext i32 %312 to i64
  %314 = call i32 @i32_load(ptr noundef %311, i64 noundef %313)
  store i32 %314, ptr %13, align 4, !tbaa !9
  %315 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %315, ptr %8, align 4, !tbaa !9
  br label %316

316:                                              ; preds = %300, %244
  %317 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %317, ptr %13, align 4, !tbaa !9
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.w2c_hermes, ptr %318, i32 0, i32 6
  %320 = load i32, ptr %13, align 4, !tbaa !9
  %321 = zext i32 %320 to i64
  %322 = add i64 %321, 16
  %323 = call i32 @i32_load(ptr noundef %319, i64 noundef %322)
  store i32 %323, ptr %13, align 4, !tbaa !9
  %324 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %324, ptr %14, align 4, !tbaa !9
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  %326 = load i32, ptr %13, align 4, !tbaa !9
  %327 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_balance_after_insert0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x29(ptr noundef %325, i32 noundef %326, i32 noundef %327)
  %328 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %328, ptr %13, align 4, !tbaa !9
  store i32 20, ptr %14, align 4, !tbaa !9
  %329 = load i32, ptr %14, align 4, !tbaa !9
  %330 = load i32, ptr %13, align 4, !tbaa !9
  %331 = add i32 %330, %329
  store i32 %331, ptr %13, align 4, !tbaa !9
  %332 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %332, ptr %7, align 4, !tbaa !9
  %333 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %333, ptr %14, align 4, !tbaa !9
  %334 = load ptr, ptr %5, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.w2c_hermes, ptr %334, i32 0, i32 6
  %336 = load i32, ptr %14, align 4, !tbaa !9
  %337 = zext i32 %336 to i64
  %338 = call i32 @i32_load(ptr noundef %335, i64 noundef %337)
  store i32 %338, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %339 = load i32, ptr %15, align 4, !tbaa !9
  %340 = load i32, ptr %14, align 4, !tbaa !9
  %341 = add i32 %340, %339
  store i32 %341, ptr %14, align 4, !tbaa !9
  %342 = load ptr, ptr %5, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.w2c_hermes, ptr %342, i32 0, i32 6
  %344 = load i32, ptr %13, align 4, !tbaa !9
  %345 = zext i32 %344 to i64
  %346 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %343, i64 noundef %345, i32 noundef %346)
  br label %347

347:                                              ; preds = %316, %225
  %348 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %348, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %349 = load i32, ptr %14, align 4, !tbaa !9
  %350 = load i32, ptr %13, align 4, !tbaa !9
  %351 = add i32 %350, %349
  store i32 %351, ptr %13, align 4, !tbaa !9
  %352 = load ptr, ptr %5, align 8, !tbaa !5
  %353 = load i32, ptr %13, align 4, !tbaa !9
  %354 = call i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3A0x7ESrcBuffer0x280x29(ptr noundef %352, i32 noundef %353)
  store i32 %354, ptr %13, align 4, !tbaa !9
  %355 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %355, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %356 = load i32, ptr %14, align 4, !tbaa !9
  %357 = load i32, ptr %13, align 4, !tbaa !9
  %358 = add i32 %357, %356
  store i32 %358, ptr %13, align 4, !tbaa !9
  %359 = load i32, ptr %13, align 4, !tbaa !9
  %360 = load ptr, ptr %5, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.w2c_hermes, ptr %360, i32 0, i32 3
  store i32 %359, ptr %361, align 8, !tbaa !11
  %362 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %362, ptr %13, align 4, !tbaa !9
  %363 = load i32, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret i32 %363
}

declare void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x3E0x3A0x3A_0x5Fpush_back_slow_path0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef, i32 noundef, i32 noundef) #5

declare void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_balance_after_insert0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x29(ptr noundef, i32 noundef, i32 noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #4 = { noreturn "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 = { "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 = { nounwind }
attributes #7 = { noreturn }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!17 = !{!14, !14, i64 0}


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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3A0x7ESrcBuffer0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3ASrcBuffer0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -178956970, 178956971) i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3AAddNewSourceBuffer0x28std0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Cllvh0x3A0x3AMemoryBuffer0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Cllvh0x3A0x3AMemoryBuffer0x3E0x3E0x2C0x20llvh0x3A0x3ASMLoc0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -16
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %2 to i64
  %10 = add nuw nsw i64 %9, 8
  %11 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %10)
  %12 = zext i32 %7 to i64
  %13 = add nuw nsw i64 %12, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %13, i32 noundef %3)
  %14 = add nuw nsw i64 %12, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %14, i32 noundef %2)
  %15 = add nuw nsw i64 %12, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %15, i32 noundef 0)
  %16 = zext i32 %1 to i64
  %17 = add nuw nsw i64 %16, 4
  %18 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %17)
  %19 = add nuw nsw i64 %16, 8
  %20 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %19)
  %21 = icmp ult i32 %18, %20
  %22 = add i32 %6, -12
  br i1 %21, label %23, label %26

23:                                               ; preds = %4
  %24 = tail call i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3ASrcBuffer0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef nonnull %0, i32 noundef %18, i32 noundef %22)
  %25 = add i32 %24, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %17, i32 noundef %25)
  br label %28

26:                                               ; preds = %4
  tail call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x3E0x3A0x3A_0x5Fpush_back_slow_path0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %22) #3
  %27 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %17)
  br label %28

28:                                               ; preds = %26, %23
  %.0 = phi i32 [ %25, %23 ], [ %27, %26 ]
  %29 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %16)
  %30 = sub i32 %.0, %29
  %31 = sdiv i32 %30, 12
  %32 = add i32 %1, 16
  %33 = zext i32 %32 to i64
  %34 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %33)
  %.not = icmp eq i32 %34, 0
  br i1 %.not, label %.loopexit197, label %.preheader

.preheader:                                       ; preds = %28, %.preheader.backedge
  %.0184 = phi i32 [ %.0184.be, %.preheader.backedge ], [ %34, %28 ]
  %35 = zext i32 %.0184 to i64
  %36 = add nuw nsw i64 %35, 16
  %37 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %36)
  %38 = icmp ugt i32 %37, %11
  br i1 %38, label %39, label %41

39:                                               ; preds = %.preheader
  %40 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %35)
  %.not195 = icmp eq i32 %40, 0
  br i1 %.not195, label %.loopexit197, label %.preheader.backedge

.preheader.backedge:                              ; preds = %39, %42
  %.0184.be = phi i32 [ %40, %39 ], [ %44, %42 ]
  br label %.preheader

41:                                               ; preds = %.preheader
  %.not193 = icmp ult i32 %37, %11
  br i1 %.not193, label %42, label %.loopexit

42:                                               ; preds = %41
  %43 = add nuw nsw i64 %35, 4
  %44 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %43)
  %.not194 = icmp eq i32 %44, 0
  br i1 %.not194, label %45, label %.preheader.backedge

45:                                               ; preds = %42
  %46 = add i32 %.0184, 4
  %.pre = zext i32 %46 to i64
  br label %.loopexit197

.loopexit197:                                     ; preds = %39, %28, %45
  %.pre-phi = phi i64 [ %33, %28 ], [ %.pre, %45 ], [ %35, %39 ]
  %.1 = phi i32 [ %32, %28 ], [ %.0184, %45 ], [ %.0184, %39 ]
  %47 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef 24)
  %48 = zext i32 %47 to i64
  %49 = add nuw nsw i64 %48, 16
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %49, i32 noundef %11)
  %50 = add nuw nsw i64 %48, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %50, i32 noundef %.1)
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %48, i64 noundef 0)
  %51 = add nuw nsw i64 %48, 20
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %51, i32 noundef %31)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %.pre-phi, i32 noundef %47)
  %52 = add nuw nsw i64 %16, 12
  %53 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %52)
  %54 = zext i32 %53 to i64
  %55 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %54)
  %.not196 = icmp eq i32 %55, 0
  br i1 %.not196, label %58, label %56

56:                                               ; preds = %.loopexit197
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %52, i32 noundef %55)
  %57 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %.pre-phi)
  br label %58

58:                                               ; preds = %56, %.loopexit197
  %.1185 = phi i32 [ %57, %56 ], [ %47, %.loopexit197 ]
  %59 = add nuw nsw i64 %16, 16
  %60 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %59)
  tail call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_balance_after_insert0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x29(ptr noundef %0, i32 noundef %60, i32 noundef %.1185) #3
  %61 = add i32 %1, 20
  %62 = zext i32 %61 to i64
  %63 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %62)
  %64 = add i32 %63, 1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %62, i32 noundef %64)
  br label %.loopexit

.loopexit:                                        ; preds = %41, %58
  %65 = add i32 %6, -12
  %66 = tail call i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3A0x7ESrcBuffer0x280x29(ptr noundef %0, i32 noundef %65)
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret i32 %31
}

declare void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x3E0x3A0x3A_0x5Fpush_back_slow_path0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_balance_after_insert0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { inlinehint 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 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 = { "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 = { 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 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass