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

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

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

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

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

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

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare void @w2c_hermes_abort(ptr noundef) #3

declare void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) #3

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

43:                                               ; preds = %4
  %44 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %44, ptr %15, align 4, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %15, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = add i64 %48, 376
  %50 = call i32 @i32_load(ptr noundef %46, i64 noundef %49)
  store i32 %50, ptr %15, align 4, !tbaa !9
  %51 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %51, ptr %9, align 4, !tbaa !9
  %52 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %52, ptr %16, 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 %16, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = add i64 %56, 380
  %58 = call i32 @i32_load(ptr noundef %54, i64 noundef %57)
  store i32 %58, ptr %16, align 4, !tbaa !9
  %59 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %59, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %15, align 4, !tbaa !9
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = icmp ult i32 %60, %61
  %63 = zext i1 %62 to i32
  store i32 %63, ptr %15, align 4, !tbaa !9
  %64 = load i32, ptr %15, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %97

66:                                               ; preds = %43
  %67 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %67, ptr %15, align 4, !tbaa !9
  %68 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %68, ptr %16, align 4, !tbaa !9
  %69 = load i32, ptr %16, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  store i64 %70, ptr %20, align 8, !tbaa !11
  %71 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %71, ptr %17, align 4, !tbaa !9
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  store i64 %73, ptr %21, align 8, !tbaa !11
  store i64 32, ptr %22, align 8, !tbaa !11
  %74 = load i64, ptr %22, align 8, !tbaa !11
  %75 = and i64 %74, 63
  %76 = load i64, ptr %21, align 8, !tbaa !11
  %77 = shl i64 %76, %75
  store i64 %77, ptr %21, align 8, !tbaa !11
  %78 = load i64, ptr %21, align 8, !tbaa !11
  %79 = load i64, ptr %20, align 8, !tbaa !11
  %80 = or i64 %79, %78
  store i64 %80, ptr %20, align 8, !tbaa !11
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.w2c_hermes, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %82, i64 noundef %84, i64 noundef %85)
  %86 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %86, ptr %15, align 4, !tbaa !9
  %87 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %87, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = add i32 %89, %88
  store i32 %90, ptr %16, align 4, !tbaa !9
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.w2c_hermes, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = add i64 %94, 376
  %96 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %92, i64 noundef %95, i32 noundef %96)
  br label %334

97:                                               ; preds = %43
  %98 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %98, ptr %15, align 4, !tbaa !9
  %99 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %99, ptr %16, align 4, !tbaa !9
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %16, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = add i64 %103, 372
  %105 = call i32 @i32_load(ptr noundef %101, i64 noundef %104)
  store i32 %105, ptr %16, align 4, !tbaa !9
  %106 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %106, ptr %12, align 4, !tbaa !9
  %107 = load i32, ptr %16, align 4, !tbaa !9
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = sub i32 %108, %107
  store i32 %109, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %110 = load i32, ptr %15, align 4, !tbaa !9
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = and i32 %111, 31
  %113 = ashr i32 %110, %112
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %114, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %115 = load i32, ptr %16, align 4, !tbaa !9
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = add i32 %116, %115
  store i32 %117, ptr %15, align 4, !tbaa !9
  %118 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %118, ptr %11, align 4, !tbaa !9
  store i32 536870912, ptr %16, align 4, !tbaa !9
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = icmp uge i32 %119, %120
  %122 = zext i1 %121 to i32
  store i32 %122, ptr %15, align 4, !tbaa !9
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %126

125:                                              ; preds = %97
  br label %330

126:                                              ; preds = %97
  store i32 536870911, ptr %15, align 4, !tbaa !9
  %127 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %127, ptr %16, align 4, !tbaa !9
  %128 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %128, ptr %17, align 4, !tbaa !9
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = load i32, ptr %16, align 4, !tbaa !9
  %131 = sub i32 %130, %129
  store i32 %131, ptr %16, align 4, !tbaa !9
  %132 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %132, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %133 = load i32, ptr %16, align 4, !tbaa !9
  %134 = load i32, ptr %17, align 4, !tbaa !9
  %135 = and i32 %134, 31
  %136 = ashr i32 %133, %135
  store i32 %136, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %137, ptr %13, align 4, !tbaa !9
  %138 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %138, ptr %17, align 4, !tbaa !9
  %139 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %139, ptr %18, align 4, !tbaa !9
  %140 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %140, ptr %19, align 4, !tbaa !9
  %141 = load i32, ptr %18, align 4, !tbaa !9
  %142 = load i32, ptr %19, align 4, !tbaa !9
  %143 = icmp ult i32 %141, %142
  %144 = zext i1 %143 to i32
  store i32 %144, ptr %18, align 4, !tbaa !9
  %145 = load i32, ptr %18, align 4, !tbaa !9
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %149

147:                                              ; preds = %126
  %148 = load i32, ptr %16, align 4, !tbaa !9
  br label %151

149:                                              ; preds = %126
  %150 = load i32, ptr %17, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %149, %147
  %152 = phi i32 [ %148, %147 ], [ %150, %149 ]
  store i32 %152, ptr %16, align 4, !tbaa !9
  %153 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %153, ptr %17, align 4, !tbaa !9
  store i32 2147483640, ptr %18, align 4, !tbaa !9
  %154 = load i32, ptr %17, align 4, !tbaa !9
  %155 = load i32, ptr %18, align 4, !tbaa !9
  %156 = icmp uge i32 %154, %155
  %157 = zext i1 %156 to i32
  store i32 %157, ptr %17, align 4, !tbaa !9
  %158 = load i32, ptr %17, align 4, !tbaa !9
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %162

160:                                              ; preds = %151
  %161 = load i32, ptr %15, align 4, !tbaa !9
  br label %164

162:                                              ; preds = %151
  %163 = load i32, ptr %16, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %162, %160
  %165 = phi i32 [ %161, %160 ], [ %163, %162 ]
  store i32 %165, ptr %15, align 4, !tbaa !9
  %166 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %166, ptr %11, align 4, !tbaa !9
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %187

169:                                              ; preds = %164
  %170 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %170, ptr %15, align 4, !tbaa !9
  store i32 536870912, ptr %16, align 4, !tbaa !9
  %171 = load i32, ptr %15, align 4, !tbaa !9
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = icmp uge i32 %171, %172
  %174 = zext i1 %173 to i32
  store i32 %174, ptr %15, align 4, !tbaa !9
  %175 = load i32, ptr %15, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %178

177:                                              ; preds = %169
  br label %332

178:                                              ; preds = %169
  %179 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %179, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %180 = load i32, ptr %16, align 4, !tbaa !9
  %181 = and i32 %180, 31
  %182 = load i32, ptr %15, align 4, !tbaa !9
  %183 = shl i32 %182, %181
  store i32 %183, ptr %15, align 4, !tbaa !9
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = load i32, ptr %15, align 4, !tbaa !9
  %186 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %184, i32 noundef %185)
  store i32 %186, ptr %15, align 4, !tbaa !9
  br label %188

187:                                              ; preds = %164
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %187, %178
  %189 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %189, ptr %13, align 4, !tbaa !9
  %190 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %190, ptr %16, align 4, !tbaa !9
  store i32 3, ptr %17, align 4, !tbaa !9
  %191 = load i32, ptr %17, align 4, !tbaa !9
  %192 = and i32 %191, 31
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = shl i32 %193, %192
  store i32 %194, ptr %16, align 4, !tbaa !9
  %195 = load i32, ptr %16, align 4, !tbaa !9
  %196 = load i32, ptr %15, align 4, !tbaa !9
  %197 = add i32 %196, %195
  store i32 %197, ptr %15, align 4, !tbaa !9
  %198 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %198, ptr %10, align 4, !tbaa !9
  %199 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %199, ptr %16, align 4, !tbaa !9
  %200 = load i32, ptr %16, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  store i64 %201, ptr %20, align 8, !tbaa !11
  %202 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %202, ptr %17, align 4, !tbaa !9
  %203 = load i32, ptr %17, align 4, !tbaa !9
  %204 = zext i32 %203 to i64
  store i64 %204, ptr %21, align 8, !tbaa !11
  store i64 32, ptr %22, align 8, !tbaa !11
  %205 = load i64, ptr %22, align 8, !tbaa !11
  %206 = and i64 %205, 63
  %207 = load i64, ptr %21, align 8, !tbaa !11
  %208 = shl i64 %207, %206
  store i64 %208, ptr %21, align 8, !tbaa !11
  %209 = load i64, ptr %21, align 8, !tbaa !11
  %210 = load i64, ptr %20, align 8, !tbaa !11
  %211 = or i64 %210, %209
  store i64 %211, ptr %20, align 8, !tbaa !11
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %213, i64 noundef %215, i64 noundef %216)
  %217 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %217, ptr %15, align 4, !tbaa !9
  %218 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %218, ptr %16, align 4, !tbaa !9
  store i32 3, ptr %17, align 4, !tbaa !9
  %219 = load i32, ptr %17, align 4, !tbaa !9
  %220 = and i32 %219, 31
  %221 = load i32, ptr %16, align 4, !tbaa !9
  %222 = shl i32 %221, %220
  store i32 %222, ptr %16, align 4, !tbaa !9
  %223 = load i32, ptr %16, align 4, !tbaa !9
  %224 = load i32, ptr %15, align 4, !tbaa !9
  %225 = add i32 %224, %223
  store i32 %225, ptr %15, align 4, !tbaa !9
  %226 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %226, ptr %8, align 4, !tbaa !9
  %227 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %227, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %228 = load i32, ptr %16, align 4, !tbaa !9
  %229 = load i32, ptr %15, align 4, !tbaa !9
  %230 = add i32 %229, %228
  store i32 %230, ptr %15, align 4, !tbaa !9
  %231 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %231, ptr %7, align 4, !tbaa !9
  %232 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %232, ptr %15, align 4, !tbaa !9
  %233 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %233, ptr %16, align 4, !tbaa !9
  %234 = load i32, ptr %15, align 4, !tbaa !9
  %235 = load i32, ptr %16, align 4, !tbaa !9
  %236 = icmp ne i32 %234, %235
  %237 = zext i1 %236 to i32
  store i32 %237, ptr %15, align 4, !tbaa !9
  %238 = load i32, ptr %15, align 4, !tbaa !9
  %239 = icmp ne i32 %238, 0
  br i1 %239, label %240, label %280

240:                                              ; preds = %188
  br label %241

241:                                              ; preds = %270, %240
  %242 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %242, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %243 = load i32, ptr %16, align 4, !tbaa !9
  %244 = load i32, ptr %15, align 4, !tbaa !9
  %245 = sub i32 %244, %243
  store i32 %245, ptr %15, align 4, !tbaa !9
  %246 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %246, ptr %10, align 4, !tbaa !9
  %247 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %247, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %248 = load i32, ptr %17, align 4, !tbaa !9
  %249 = load i32, ptr %16, align 4, !tbaa !9
  %250 = sub i32 %249, %248
  store i32 %250, ptr %16, align 4, !tbaa !9
  %251 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %251, ptr %9, align 4, !tbaa !9
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.w2c_hermes, ptr %252, i32 0, i32 6
  %254 = load i32, ptr %16, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = call i64 @i64_load(ptr noundef %253, i64 noundef %255)
  store i64 %256, ptr %20, align 8, !tbaa !11
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.w2c_hermes, ptr %257, i32 0, i32 6
  %259 = load i32, ptr %15, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %258, i64 noundef %260, i64 noundef %261)
  %262 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %262, ptr %15, align 4, !tbaa !9
  %263 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %263, ptr %16, align 4, !tbaa !9
  %264 = load i32, ptr %15, align 4, !tbaa !9
  %265 = load i32, ptr %16, align 4, !tbaa !9
  %266 = icmp ne i32 %264, %265
  %267 = zext i1 %266 to i32
  store i32 %267, ptr %15, align 4, !tbaa !9
  %268 = load i32, ptr %15, align 4, !tbaa !9
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %271

270:                                              ; preds = %241
  br label %241

271:                                              ; preds = %241
  %272 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %272, ptr %15, align 4, !tbaa !9
  %273 = load ptr, ptr %5, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.w2c_hermes, ptr %273, i32 0, i32 6
  %275 = load i32, ptr %15, align 4, !tbaa !9
  %276 = zext i32 %275 to i64
  %277 = add i64 %276, 372
  %278 = call i32 @i32_load(ptr noundef %274, i64 noundef %277)
  store i32 %278, ptr %15, align 4, !tbaa !9
  %279 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %279, ptr %9, align 4, !tbaa !9
  br label %280

280:                                              ; preds = %271, %188
  %281 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %281, ptr %15, align 4, !tbaa !9
  %282 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %282, ptr %16, align 4, !tbaa !9
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.w2c_hermes, ptr %283, i32 0, i32 6
  %285 = load i32, ptr %15, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = add i64 %286, 380
  %288 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %284, i64 noundef %287, i32 noundef %288)
  %289 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %289, ptr %15, align 4, !tbaa !9
  %290 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %290, ptr %16, align 4, !tbaa !9
  %291 = load ptr, ptr %5, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.w2c_hermes, ptr %291, i32 0, i32 6
  %293 = load i32, ptr %15, align 4, !tbaa !9
  %294 = zext i32 %293 to i64
  %295 = add i64 %294, 376
  %296 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %292, i64 noundef %295, i32 noundef %296)
  %297 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %297, ptr %15, align 4, !tbaa !9
  %298 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %298, ptr %16, align 4, !tbaa !9
  %299 = load ptr, ptr %5, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.w2c_hermes, ptr %299, i32 0, i32 6
  %301 = load i32, ptr %15, align 4, !tbaa !9
  %302 = zext i32 %301 to i64
  %303 = add i64 %302, 372
  %304 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %300, i64 noundef %303, i32 noundef %304)
  %305 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %305, ptr %15, align 4, !tbaa !9
  %306 = load i32, ptr %15, align 4, !tbaa !9
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %308, label %312

308:                                              ; preds = %280
  %309 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %309, ptr %15, align 4, !tbaa !9
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  %311 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %310, i32 noundef %311)
  br label %312

312:                                              ; preds = %308, %280
  br label %334

313:                                              ; preds = %4
  store i32 0, ptr %15, align 4, !tbaa !9
  store i32 184539, ptr %16, align 4, !tbaa !9
  %314 = load i32, ptr %16, align 4, !tbaa !9
  %315 = load i32, ptr %15, align 4, !tbaa !9
  %316 = add i32 %315, %314
  store i32 %316, ptr %15, align 4, !tbaa !9
  %317 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %317, ptr %16, align 4, !tbaa !9
  store i32 56554, ptr %17, align 4, !tbaa !9
  %318 = load i32, ptr %17, align 4, !tbaa !9
  %319 = load i32, ptr %16, align 4, !tbaa !9
  %320 = add i32 %319, %318
  store i32 %320, ptr %16, align 4, !tbaa !9
  store i32 359, ptr %17, align 4, !tbaa !9
  %321 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %321, ptr %18, align 4, !tbaa !9
  store i32 97064, ptr %19, align 4, !tbaa !9
  %322 = load i32, ptr %19, align 4, !tbaa !9
  %323 = load i32, ptr %18, align 4, !tbaa !9
  %324 = add i32 %323, %322
  store i32 %324, ptr %18, align 4, !tbaa !9
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  %326 = load i32, ptr %15, align 4, !tbaa !9
  %327 = load i32, ptr %16, align 4, !tbaa !9
  %328 = load i32, ptr %17, align 4, !tbaa !9
  %329 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %325, i32 noundef %326, i32 noundef %327, i32 noundef %328, i32 noundef %329)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

330:                                              ; preds = %125
  %331 = load ptr, ptr %5, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %331)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

332:                                              ; preds = %177
  %333 = load ptr, ptr %5, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef %333)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

334:                                              ; preds = %312, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 #5 = { nounwind }
attributes #6 = { 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, !12, i64 0}
!12 = !{!"long", !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 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

; 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 i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

declare void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeModuleGenerator0x3A0x3AaddCJSModule0x28unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %1 to i64
  %7 = add nuw nsw i64 %6, 384
  %8 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  %9 = add nuw nsw i64 %6, 388
  %10 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %9)
  %11 = icmp eq i32 %8, %10
  br i1 %11, label %12, label %61

12:                                               ; preds = %4
  %13 = add nuw nsw i64 %6, 376
  %14 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %13)
  %15 = add nuw nsw i64 %6, 380
  %16 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %15)
  %17 = icmp ult i32 %14, %16
  br i1 %17, label %18, label %25

18:                                               ; preds = %12
  %19 = zext i32 %3 to i64
  %20 = zext i32 %2 to i64
  %21 = shl nuw i64 %20, 32
  %22 = or disjoint i64 %21, %19
  %23 = zext i32 %14 to i64
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %23, i64 noundef %22)
  %24 = add i32 %14, 8
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %13, i32 noundef %24)
  br label %64

25:                                               ; preds = %12
  %26 = add nuw nsw i64 %6, 372
  %27 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %26)
  %28 = sub i32 %14, %27
  %29 = ashr i32 %28, 3
  %30 = add nsw i32 %29, 1
  %31 = icmp ugt i32 %30, 536870911
  br i1 %31, label %62, label %32

32:                                               ; preds = %25
  %33 = sub i32 %16, %27
  %34 = ashr i32 %33, 2
  %35 = tail call i32 @llvm.umax.i32(i32 %30, i32 %34)
  %36 = icmp ugt i32 %33, 2147483639
  %37 = select i1 %36, i32 536870911, i32 %35
  %.not = icmp eq i32 %37, 0
  br i1 %.not, label %._crit_edge, label %38

38:                                               ; preds = %32
  %39 = icmp ugt i32 %37, 536870911
  br i1 %39, label %63, label %40

40:                                               ; preds = %38
  %41 = shl nuw i32 %37, 3
  %42 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %41) #5
  br label %._crit_edge

._crit_edge:                                      ; preds = %32, %40
  %.pre-phi = phi i32 [ %41, %40 ], [ 0, %32 ]
  %.0 = phi i32 [ %42, %40 ], [ 0, %32 ]
  %43 = and i32 %28, -8
  %44 = add i32 %.0, %43
  %45 = zext i32 %3 to i64
  %46 = zext i32 %2 to i64
  %47 = shl nuw i64 %46, 32
  %48 = or disjoint i64 %47, %45
  %49 = zext i32 %44 to i64
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %49, i64 noundef %48)
  %50 = add i32 %.0, %.pre-phi
  %51 = add i32 %44, 8
  %.not186 = icmp eq i32 %14, %27
  br i1 %.not186, label %59, label %.preheader

.preheader:                                       ; preds = %._crit_edge, %.preheader
  %.0179 = phi i32 [ %53, %.preheader ], [ %14, %._crit_edge ]
  %.0178 = phi i32 [ %52, %.preheader ], [ %44, %._crit_edge ]
  %52 = add i32 %.0178, -8
  %53 = add i32 %.0179, -8
  %54 = zext i32 %53 to i64
  %55 = tail call i64 @i64_load(ptr noundef nonnull %5, i64 noundef %54)
  %56 = zext i32 %52 to i64
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %56, i64 noundef %55)
  %.not187 = icmp eq i32 %53, %27
  br i1 %.not187, label %57, label %.preheader

57:                                               ; preds = %.preheader
  %58 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %26)
  br label %59

59:                                               ; preds = %57, %._crit_edge
  %.1180 = phi i32 [ %58, %57 ], [ %14, %._crit_edge ]
  %.1 = phi i32 [ %52, %57 ], [ %44, %._crit_edge ]
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %15, i32 noundef %50)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %13, i32 noundef %51)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %26, i32 noundef %.1)
  %.not188 = icmp eq i32 %.1180, 0
  br i1 %.not188, label %64, label %60

60:                                               ; preds = %59
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %.1180) #5
  br label %64

61:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 184539, i32 noundef 56554, i32 noundef 359, i32 noundef 97064) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

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

64:                                               ; preds = %59, %60, %18
  ret void
}

; 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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass