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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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(none)
declare i64 @llvm.expect.i64(i64, i64) #2

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

declare void @w2c_hermes_abort(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) #5

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) #4

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x3E0x3A0x3A_0x5Fpush_back_slow_path0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #5 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  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
  %16 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %16, ptr %11, align 4, !tbaa !9
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 6
  %19 = load i32, ptr %11, align 4, !tbaa !9
  %20 = zext i32 %19 to i64
  %21 = add i64 %20, 4
  %22 = call i32 @i32_load(ptr noundef %18, i64 noundef %21)
  store i32 %22, ptr %11, align 4, !tbaa !9
  %23 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %23, ptr %12, align 4, !tbaa !9
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.w2c_hermes, ptr %24, i32 0, i32 6
  %26 = load i32, ptr %12, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = call i32 @i32_load(ptr noundef %25, i64 noundef %27)
  store i32 %28, ptr %12, align 4, !tbaa !9
  %29 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %29, ptr %8, align 4, !tbaa !9
  %30 = load i32, ptr %12, align 4, !tbaa !9
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = sub i32 %31, %30
  store i32 %32, ptr %11, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %33 = load i32, ptr %12, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 0
  %35 = xor i1 %34, true
  %36 = xor i1 %35, true
  %37 = zext i1 %36 to i32
  %38 = sext i32 %37 to i64
  %39 = call i64 @llvm.expect.i64(i64 %38, i64 0)
  %40 = icmp ne i64 %39, 0
  br i1 %40, label %41, label %43

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

42:                                               ; No predecessors!
  br label %65

43:                                               ; preds = %3
  %44 = load i32, ptr %11, align 4, !tbaa !9
  %45 = icmp eq i32 %44, -2147483648
  br i1 %45, label %46, label %49

46:                                               ; preds = %43
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = icmp eq i32 %47, -1
  br label %49

49:                                               ; preds = %46, %43
  %50 = phi i1 [ false, %43 ], [ %48, %46 ]
  %51 = xor i1 %50, true
  %52 = xor i1 %51, true
  %53 = zext i1 %52 to i32
  %54 = sext i32 %53 to i64
  %55 = call i64 @llvm.expect.i64(i64 %54, i64 0)
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %57, label %59

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

58:                                               ; No predecessors!
  br label %63

59:                                               ; preds = %49
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = sdiv i32 %60, %61
  br label %63

63:                                               ; preds = %59, %58
  %64 = phi i32 [ 0, %58 ], [ %62, %59 ]
  br label %65

65:                                               ; preds = %63, %42
  %66 = phi i32 [ 0, %42 ], [ %64, %63 ]
  store i32 %66, ptr %11, align 4, !tbaa !9
  %67 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %67, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = add i32 %69, %68
  store i32 %70, ptr %11, align 4, !tbaa !9
  %71 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %71, ptr %7, align 4, !tbaa !9
  store i32 357913942, ptr %12, align 4, !tbaa !9
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = icmp ult i32 %72, %73
  %75 = zext i1 %74 to i32
  store i32 %75, ptr %11, align 4, !tbaa !9
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %322

78:                                               ; preds = %65
  store i32 357913941, ptr %11, align 4, !tbaa !9
  %79 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %79, ptr %12, align 4, !tbaa !9
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = add i64 %83, 8
  %85 = call i32 @i32_load(ptr noundef %81, i64 noundef %84)
  store i32 %85, ptr %12, align 4, !tbaa !9
  %86 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %86, ptr %13, align 4, !tbaa !9
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = sub i32 %88, %87
  store i32 %89, ptr %12, align 4, !tbaa !9
  store i32 12, ptr %13, align 4, !tbaa !9
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 0
  %92 = xor i1 %91, true
  %93 = xor i1 %92, true
  %94 = zext i1 %93 to i32
  %95 = sext i32 %94 to i64
  %96 = call i64 @llvm.expect.i64(i64 %95, i64 0)
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %98, label %100

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

99:                                               ; No predecessors!
  br label %122

100:                                              ; preds = %78
  %101 = load i32, ptr %12, align 4, !tbaa !9
  %102 = icmp eq i32 %101, -2147483648
  br i1 %102, label %103, label %106

103:                                              ; preds = %100
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = icmp eq i32 %104, -1
  br label %106

106:                                              ; preds = %103, %100
  %107 = phi i1 [ false, %100 ], [ %105, %103 ]
  %108 = xor i1 %107, true
  %109 = xor i1 %108, true
  %110 = zext i1 %109 to i32
  %111 = sext i32 %110 to i64
  %112 = call i64 @llvm.expect.i64(i64 %111, i64 0)
  %113 = icmp ne i64 %112, 0
  br i1 %113, label %114, label %116

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

115:                                              ; No predecessors!
  br label %120

116:                                              ; preds = %106
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = sdiv i32 %117, %118
  br label %120

120:                                              ; preds = %116, %115
  %121 = phi i32 [ 0, %115 ], [ %119, %116 ]
  br label %122

122:                                              ; preds = %120, %99
  %123 = phi i32 [ 0, %99 ], [ %121, %120 ]
  store i32 %123, ptr %12, align 4, !tbaa !9
  %124 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %124, ptr %8, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = and i32 %125, 31
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = shl i32 %127, %126
  store i32 %128, ptr %12, align 4, !tbaa !9
  %129 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %129, ptr %10, align 4, !tbaa !9
  %130 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %130, ptr %13, align 4, !tbaa !9
  %131 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %131, ptr %14, align 4, !tbaa !9
  %132 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %132, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = load i32, ptr %15, align 4, !tbaa !9
  %135 = icmp ult i32 %133, %134
  %136 = zext i1 %135 to i32
  store i32 %136, ptr %14, align 4, !tbaa !9
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %141

139:                                              ; preds = %122
  %140 = load i32, ptr %12, align 4, !tbaa !9
  br label %143

141:                                              ; preds = %122
  %142 = load i32, ptr %13, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %141, %139
  %144 = phi i32 [ %140, %139 ], [ %142, %141 ]
  store i32 %144, ptr %12, align 4, !tbaa !9
  %145 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %145, ptr %13, align 4, !tbaa !9
  store i32 178956970, ptr %14, align 4, !tbaa !9
  %146 = load i32, ptr %13, align 4, !tbaa !9
  %147 = load i32, ptr %14, align 4, !tbaa !9
  %148 = icmp uge i32 %146, %147
  %149 = zext i1 %148 to i32
  store i32 %149, ptr %13, align 4, !tbaa !9
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %154

152:                                              ; preds = %143
  %153 = load i32, ptr %11, align 4, !tbaa !9
  br label %156

154:                                              ; preds = %143
  %155 = load i32, ptr %12, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %154, %152
  %157 = phi i32 [ %153, %152 ], [ %155, %154 ]
  store i32 %157, ptr %11, align 4, !tbaa !9
  %158 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %158, ptr %7, align 4, !tbaa !9
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %178

161:                                              ; preds = %156
  %162 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %162, ptr %11, align 4, !tbaa !9
  store i32 357913942, ptr %12, align 4, !tbaa !9
  %163 = load i32, ptr %11, align 4, !tbaa !9
  %164 = load i32, ptr %12, align 4, !tbaa !9
  %165 = icmp uge i32 %163, %164
  %166 = zext i1 %165 to i32
  store i32 %166, ptr %11, align 4, !tbaa !9
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %170

169:                                              ; preds = %161
  br label %324

170:                                              ; preds = %161
  %171 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %171, ptr %11, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %172 = load i32, ptr %12, align 4, !tbaa !9
  %173 = load i32, ptr %11, align 4, !tbaa !9
  %174 = mul i32 %173, %172
  store i32 %174, ptr %11, align 4, !tbaa !9
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = load i32, ptr %11, align 4, !tbaa !9
  %177 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %175, i32 noundef %176)
  store i32 %177, ptr %11, align 4, !tbaa !9
  br label %179

178:                                              ; preds = %156
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %178, %170
  %180 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %180, ptr %8, align 4, !tbaa !9
  %181 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %181, ptr %11, align 4, !tbaa !9
  %182 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %182, ptr %12, align 4, !tbaa !9
  store i32 12, ptr %13, align 4, !tbaa !9
  %183 = load i32, ptr %13, align 4, !tbaa !9
  %184 = load i32, ptr %12, align 4, !tbaa !9
  %185 = mul i32 %184, %183
  store i32 %185, ptr %12, align 4, !tbaa !9
  %186 = load i32, ptr %12, align 4, !tbaa !9
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = add i32 %187, %186
  store i32 %188, ptr %11, align 4, !tbaa !9
  %189 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %189, ptr %10, align 4, !tbaa !9
  %190 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %190, ptr %11, align 4, !tbaa !9
  %191 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %191, ptr %12, align 4, !tbaa !9
  store i32 12, ptr %13, align 4, !tbaa !9
  %192 = load i32, ptr %13, align 4, !tbaa !9
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = mul i32 %193, %192
  store i32 %194, ptr %12, align 4, !tbaa !9
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = load i32, ptr %11, align 4, !tbaa !9
  %197 = add i32 %196, %195
  store i32 %197, ptr %11, align 4, !tbaa !9
  %198 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %198, ptr %12, align 4, !tbaa !9
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = load i32, ptr %11, align 4, !tbaa !9
  %201 = load i32, ptr %12, align 4, !tbaa !9
  %202 = call i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3ASrcBuffer0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef %199, i32 noundef %200, i32 noundef %201)
  store i32 %202, ptr %11, align 4, !tbaa !9
  %203 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %203, ptr %8, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %204 = load i32, ptr %12, align 4, !tbaa !9
  %205 = load i32, ptr %11, align 4, !tbaa !9
  %206 = add i32 %205, %204
  store i32 %206, ptr %11, align 4, !tbaa !9
  %207 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %207, ptr %9, align 4, !tbaa !9
  %208 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %208, ptr %11, align 4, !tbaa !9
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.w2c_hermes, ptr %209, i32 0, i32 6
  %211 = load i32, ptr %11, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = add i64 %212, 4
  %214 = call i32 @i32_load(ptr noundef %210, i64 noundef %213)
  store i32 %214, ptr %11, align 4, !tbaa !9
  %215 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %215, ptr %7, align 4, !tbaa !9
  %216 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %216, ptr %12, align 4, !tbaa !9
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.w2c_hermes, ptr %217, i32 0, i32 6
  %219 = load i32, ptr %12, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = call i32 @i32_load(ptr noundef %218, i64 noundef %220)
  store i32 %221, ptr %12, align 4, !tbaa !9
  %222 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %222, ptr %6, align 4, !tbaa !9
  %223 = load i32, ptr %11, align 4, !tbaa !9
  %224 = load i32, ptr %12, align 4, !tbaa !9
  %225 = icmp eq i32 %223, %224
  %226 = zext i1 %225 to i32
  store i32 %226, ptr %11, align 4, !tbaa !9
  %227 = load i32, ptr %11, align 4, !tbaa !9
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %230

229:                                              ; preds = %179
  br label %326

230:                                              ; preds = %179
  br label %231

231:                                              ; preds = %254, %230
  %232 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %232, ptr %11, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %233 = load i32, ptr %12, align 4, !tbaa !9
  %234 = load i32, ptr %11, align 4, !tbaa !9
  %235 = sub i32 %234, %233
  store i32 %235, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %236, ptr %12, align 4, !tbaa !9
  store i32 12, ptr %13, align 4, !tbaa !9
  %237 = load i32, ptr %13, align 4, !tbaa !9
  %238 = load i32, ptr %12, align 4, !tbaa !9
  %239 = sub i32 %238, %237
  store i32 %239, ptr %12, align 4, !tbaa !9
  %240 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %240, ptr %7, align 4, !tbaa !9
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = load i32, ptr %11, align 4, !tbaa !9
  %243 = load i32, ptr %12, align 4, !tbaa !9
  %244 = call i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3ASrcBuffer0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef %241, i32 noundef %242, i32 noundef %243)
  store i32 %244, ptr %11, align 4, !tbaa !9
  %245 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %245, ptr %8, align 4, !tbaa !9
  %246 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %246, ptr %11, align 4, !tbaa !9
  %247 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %247, ptr %12, align 4, !tbaa !9
  %248 = load i32, ptr %11, align 4, !tbaa !9
  %249 = load i32, ptr %12, align 4, !tbaa !9
  %250 = icmp ne i32 %248, %249
  %251 = zext i1 %250 to i32
  store i32 %251, ptr %11, align 4, !tbaa !9
  %252 = load i32, ptr %11, align 4, !tbaa !9
  %253 = icmp ne i32 %252, 0
  br i1 %253, label %254, label %255

254:                                              ; preds = %231
  br label %231

255:                                              ; preds = %231
  %256 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %256, ptr %11, align 4, !tbaa !9
  %257 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %257, ptr %12, align 4, !tbaa !9
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.w2c_hermes, ptr %258, i32 0, i32 6
  %260 = load i32, ptr %11, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = add i64 %261, 8
  %263 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %259, i64 noundef %262, i32 noundef %263)
  %264 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %264, ptr %11, align 4, !tbaa !9
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.w2c_hermes, ptr %265, i32 0, i32 6
  %267 = load i32, ptr %11, align 4, !tbaa !9
  %268 = zext i32 %267 to i64
  %269 = add i64 %268, 4
  %270 = call i32 @i32_load(ptr noundef %266, i64 noundef %269)
  store i32 %270, ptr %11, align 4, !tbaa !9
  %271 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %271, ptr %6, align 4, !tbaa !9
  %272 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %272, ptr %11, align 4, !tbaa !9
  %273 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %273, ptr %12, align 4, !tbaa !9
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.w2c_hermes, ptr %274, i32 0, i32 6
  %276 = load i32, ptr %11, align 4, !tbaa !9
  %277 = zext i32 %276 to i64
  %278 = add i64 %277, 4
  %279 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %275, i64 noundef %278, i32 noundef %279)
  %280 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %280, ptr %11, align 4, !tbaa !9
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.w2c_hermes, ptr %281, i32 0, i32 6
  %283 = load i32, ptr %11, align 4, !tbaa !9
  %284 = zext i32 %283 to i64
  %285 = call i32 @i32_load(ptr noundef %282, i64 noundef %284)
  store i32 %285, ptr %11, align 4, !tbaa !9
  %286 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %286, ptr %7, align 4, !tbaa !9
  %287 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %287, ptr %11, align 4, !tbaa !9
  %288 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %288, ptr %12, align 4, !tbaa !9
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.w2c_hermes, ptr %289, i32 0, i32 6
  %291 = load i32, ptr %11, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %290, i64 noundef %292, i32 noundef %293)
  %294 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %294, ptr %11, align 4, !tbaa !9
  %295 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %295, ptr %12, align 4, !tbaa !9
  %296 = load i32, ptr %11, align 4, !tbaa !9
  %297 = load i32, ptr %12, align 4, !tbaa !9
  %298 = icmp eq i32 %296, %297
  %299 = zext i1 %298 to i32
  store i32 %299, ptr %11, align 4, !tbaa !9
  %300 = load i32, ptr %11, align 4, !tbaa !9
  %301 = icmp ne i32 %300, 0
  br i1 %301, label %302, label %303

302:                                              ; preds = %255
  br label %350

303:                                              ; preds = %255
  br label %304

304:                                              ; preds = %320, %303
  %305 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %305, ptr %11, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %306 = load i32, ptr %12, align 4, !tbaa !9
  %307 = load i32, ptr %11, align 4, !tbaa !9
  %308 = sub i32 %307, %306
  store i32 %308, ptr %11, align 4, !tbaa !9
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = load i32, ptr %11, align 4, !tbaa !9
  %311 = call i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3A0x7ESrcBuffer0x280x29(ptr noundef %309, i32 noundef %310)
  store i32 %311, ptr %11, align 4, !tbaa !9
  %312 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %312, ptr %6, align 4, !tbaa !9
  %313 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %313, ptr %12, align 4, !tbaa !9
  %314 = load i32, ptr %11, align 4, !tbaa !9
  %315 = load i32, ptr %12, align 4, !tbaa !9
  %316 = icmp ne i32 %314, %315
  %317 = zext i1 %316 to i32
  store i32 %317, ptr %11, align 4, !tbaa !9
  %318 = load i32, ptr %11, align 4, !tbaa !9
  %319 = icmp ne i32 %318, 0
  br i1 %319, label %320, label %321

320:                                              ; preds = %304
  br label %304

321:                                              ; preds = %304
  br label %350

322:                                              ; preds = %65
  %323 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %323)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

324:                                              ; preds = %169
  %325 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef %325)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

326:                                              ; preds = %229
  %327 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %327, ptr %11, align 4, !tbaa !9
  %328 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %328, ptr %12, align 4, !tbaa !9
  %329 = load ptr, ptr %4, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.w2c_hermes, ptr %329, i32 0, i32 6
  %331 = load i32, ptr %11, align 4, !tbaa !9
  %332 = zext i32 %331 to i64
  %333 = add i64 %332, 8
  %334 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %330, i64 noundef %333, i32 noundef %334)
  %335 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %335, ptr %11, align 4, !tbaa !9
  %336 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %336, ptr %12, align 4, !tbaa !9
  %337 = load ptr, ptr %4, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.w2c_hermes, ptr %337, i32 0, i32 6
  %339 = load i32, ptr %11, align 4, !tbaa !9
  %340 = zext i32 %339 to i64
  %341 = add i64 %340, 4
  %342 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %338, i64 noundef %341, i32 noundef %342)
  %343 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %343, ptr %11, align 4, !tbaa !9
  %344 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %344, ptr %12, align 4, !tbaa !9
  %345 = load ptr, ptr %4, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.w2c_hermes, ptr %345, i32 0, i32 6
  %347 = load i32, ptr %11, align 4, !tbaa !9
  %348 = zext i32 %347 to i64
  %349 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %346, i64 noundef %348, i32 noundef %349)
  br label %350

350:                                              ; preds = %326, %321, %302
  %351 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %351, ptr %11, align 4, !tbaa !9
  %352 = load i32, ptr %11, align 4, !tbaa !9
  %353 = icmp ne i32 %352, 0
  br i1 %353, label %354, label %358

354:                                              ; preds = %350
  %355 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %355, ptr %11, align 4, !tbaa !9
  %356 = load ptr, ptr %4, align 8, !tbaa !5
  %357 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %356, i32 noundef %357)
  br label %358

358:                                              ; preds = %354, %350
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void
}

declare i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3ASrcBuffer0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef, i32 noundef, i32 noundef) #4

declare i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3A0x7ESrcBuffer0x280x29(ptr noundef, i32 noundef) #4

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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { 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 #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 = { 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 #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}


; 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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) local_unnamed_addr #3

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x3E0x3A0x3A_0x5Fpush_back_slow_path0x3Cllvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3E0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %1 to i64
  %6 = add nuw nsw i64 %5, 4
  %7 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %8 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  %9 = sub i32 %7, %8
  %10 = sdiv i32 %9, 12
  %11 = add nsw i32 %10, 1
  %12 = icmp ult i32 %11, 357913942
  br i1 %12, label %13, label %44

13:                                               ; preds = %3
  %14 = add nuw nsw i64 %5, 8
  %15 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %14)
  %16 = sub i32 %15, %8
  %17 = sdiv i32 %16, 12
  %18 = shl nsw i32 %17, 1
  %19 = tail call i32 @llvm.umax.i32(i32 %11, i32 %18)
  %20 = icmp ugt i32 %17, 178956969
  %21 = select i1 %20, i32 357913941, i32 %19
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %._crit_edge, label %22

22:                                               ; preds = %13
  %23 = icmp ugt i32 %21, 357913941
  br i1 %23, label %45, label %24

24:                                               ; preds = %22
  %25 = mul nuw i32 %21, 12
  %26 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %25) #5
  br label %._crit_edge

._crit_edge:                                      ; preds = %13, %24
  %.pre-phi = phi i32 [ %25, %24 ], [ 0, %13 ]
  %.0170 = phi i32 [ %26, %24 ], [ 0, %13 ]
  %27 = add i32 %.0170, %.pre-phi
  %28 = mul nsw i32 %10, 12
  %29 = add i32 %.0170, %28
  %30 = tail call i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3ASrcBuffer0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef %0, i32 noundef %29, i32 noundef %2) #5
  %31 = add i32 %30, 12
  %32 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %33 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  %34 = icmp eq i32 %32, %33
  br i1 %34, label %46, label %.preheader182

.preheader182:                                    ; preds = %._crit_edge, %.preheader182
  %.0171 = phi i32 [ %37, %.preheader182 ], [ %30, %._crit_edge ]
  %.0169 = phi i32 [ %36, %.preheader182 ], [ %32, %._crit_edge ]
  %35 = add i32 %.0171, -12
  %36 = add i32 %.0169, -12
  %37 = tail call i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3ASrcBuffer0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef %0, i32 noundef %35, i32 noundef %36) #5
  %.not179 = icmp eq i32 %33, %36
  br i1 %.not179, label %38, label %.preheader182

38:                                               ; preds = %.preheader182
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %14, i32 noundef %27)
  %39 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef %31)
  %40 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %5, i32 noundef %37)
  %41 = icmp eq i32 %39, %40
  br i1 %41, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %38, %.preheader
  %.0 = phi i32 [ %43, %.preheader ], [ %39, %38 ]
  %42 = add i32 %.0, -12
  %43 = tail call i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3A0x7ESrcBuffer0x280x29(ptr noundef %0, i32 noundef %42) #5
  %.not180 = icmp eq i32 %43, %40
  br i1 %.not180, label %.loopexit, label %.preheader

44:                                               ; preds = %3
  tail call void @w2c_hermes_abort(ptr noundef %0) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

45:                                               ; preds = %22
  tail call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef %0)
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

46:                                               ; preds = %._crit_edge
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %14, i32 noundef %27)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef %31)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %5, i32 noundef %30)
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader, %38, %46
  %.1 = phi i32 [ %32, %46 ], [ %39, %38 ], [ %40, %.preheader ]
  %.not181 = icmp eq i32 %.1, 0
  br i1 %.not181, label %48, label %47

47:                                               ; preds = %.loopexit
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %.1) #5
  br label %48

48:                                               ; preds = %47, %.loopexit
  ret void
}

declare i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3ASrcBuffer0x28llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x260x260x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3A0x7ESrcBuffer0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #4

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 = { 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 #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 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 speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { 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)"}


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