; 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_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_hermes0x3A0x3Ahbc0x3A0x3ABytecodeModuleGenerator0x3A0x3AaddFunctionSource0x28unsigned0x20int0x2C0x20unsigned0x20int0x29(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, 400
  %29 = call i32 @i32_load(ptr noundef %25, i64 noundef %28)
  store i32 %29, ptr %15, align 4, !tbaa !9
  %30 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %30, ptr %9, align 4, !tbaa !9
  %31 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %31, ptr %16, align 4, !tbaa !9
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %16, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = add i64 %35, 404
  %37 = call i32 @i32_load(ptr noundef %33, i64 noundef %36)
  store i32 %37, ptr %16, align 4, !tbaa !9
  %38 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %38, ptr %10, align 4, !tbaa !9
  %39 = load i32, ptr %15, align 4, !tbaa !9
  %40 = load i32, ptr %16, align 4, !tbaa !9
  %41 = icmp ult i32 %39, %40
  %42 = zext i1 %41 to i32
  store i32 %42, ptr %15, align 4, !tbaa !9
  %43 = load i32, ptr %15, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %76

45:                                               ; preds = %4
  %46 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %46, ptr %15, align 4, !tbaa !9
  %47 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %47, ptr %16, align 4, !tbaa !9
  %48 = load i32, ptr %16, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  store i64 %49, ptr %20, align 8, !tbaa !11
  %50 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %50, ptr %17, align 4, !tbaa !9
  %51 = load i32, ptr %17, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  store i64 %52, ptr %21, align 8, !tbaa !11
  store i64 32, ptr %22, align 8, !tbaa !11
  %53 = load i64, ptr %22, align 8, !tbaa !11
  %54 = and i64 %53, 63
  %55 = load i64, ptr %21, align 8, !tbaa !11
  %56 = shl i64 %55, %54
  store i64 %56, ptr %21, align 8, !tbaa !11
  %57 = load i64, ptr %21, align 8, !tbaa !11
  %58 = load i64, ptr %20, align 8, !tbaa !11
  %59 = or i64 %58, %57
  store i64 %59, ptr %20, align 8, !tbaa !11
  %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 %15, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %61, i64 noundef %63, i64 noundef %64)
  %65 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %65, ptr %15, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %66, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %67 = load i32, ptr %17, align 4, !tbaa !9
  %68 = load i32, ptr %16, align 4, !tbaa !9
  %69 = add i32 %68, %67
  store i32 %69, ptr %16, align 4, !tbaa !9
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.w2c_hermes, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %15, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = add i64 %73, 400
  %75 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %71, i64 noundef %74, i32 noundef %75)
  br label %295

76:                                               ; preds = %4
  %77 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %77, ptr %15, align 4, !tbaa !9
  %78 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %78, ptr %16, align 4, !tbaa !9
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.w2c_hermes, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = add i64 %82, 396
  %84 = call i32 @i32_load(ptr noundef %80, i64 noundef %83)
  store i32 %84, ptr %16, align 4, !tbaa !9
  %85 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %85, ptr %12, align 4, !tbaa !9
  %86 = load i32, ptr %16, align 4, !tbaa !9
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = sub i32 %87, %86
  store i32 %88, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = and i32 %90, 31
  %92 = ashr i32 %89, %91
  store i32 %92, ptr %15, align 4, !tbaa !9
  %93 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %93, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %94 = load i32, ptr %16, align 4, !tbaa !9
  %95 = load i32, ptr %15, align 4, !tbaa !9
  %96 = add i32 %95, %94
  store i32 %96, ptr %15, align 4, !tbaa !9
  %97 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %97, ptr %11, align 4, !tbaa !9
  store i32 536870912, ptr %16, align 4, !tbaa !9
  %98 = load i32, ptr %15, align 4, !tbaa !9
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = icmp ult i32 %98, %99
  %101 = zext i1 %100 to i32
  store i32 %101, ptr %15, align 4, !tbaa !9
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %291

104:                                              ; preds = %76
  store i32 536870911, ptr %15, align 4, !tbaa !9
  %105 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %105, ptr %16, align 4, !tbaa !9
  %106 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %106, ptr %17, align 4, !tbaa !9
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = load i32, ptr %16, align 4, !tbaa !9
  %109 = sub i32 %108, %107
  store i32 %109, ptr %16, align 4, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %110, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = and i32 %112, 31
  %114 = ashr i32 %111, %113
  store i32 %114, ptr %16, align 4, !tbaa !9
  %115 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %115, ptr %13, align 4, !tbaa !9
  %116 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %116, ptr %17, align 4, !tbaa !9
  %117 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %117, ptr %18, align 4, !tbaa !9
  %118 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %118, ptr %19, align 4, !tbaa !9
  %119 = load i32, ptr %18, align 4, !tbaa !9
  %120 = load i32, ptr %19, align 4, !tbaa !9
  %121 = icmp ult i32 %119, %120
  %122 = zext i1 %121 to i32
  store i32 %122, ptr %18, align 4, !tbaa !9
  %123 = load i32, ptr %18, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %127

125:                                              ; preds = %104
  %126 = load i32, ptr %16, align 4, !tbaa !9
  br label %129

127:                                              ; preds = %104
  %128 = load i32, ptr %17, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %127, %125
  %130 = phi i32 [ %126, %125 ], [ %128, %127 ]
  store i32 %130, ptr %16, align 4, !tbaa !9
  %131 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %131, ptr %17, align 4, !tbaa !9
  store i32 2147483640, ptr %18, align 4, !tbaa !9
  %132 = load i32, ptr %17, align 4, !tbaa !9
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = icmp uge i32 %132, %133
  %135 = zext i1 %134 to i32
  store i32 %135, ptr %17, align 4, !tbaa !9
  %136 = load i32, ptr %17, align 4, !tbaa !9
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %140

138:                                              ; preds = %129
  %139 = load i32, ptr %15, align 4, !tbaa !9
  br label %142

140:                                              ; preds = %129
  %141 = load i32, ptr %16, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %140, %138
  %143 = phi i32 [ %139, %138 ], [ %141, %140 ]
  store i32 %143, ptr %15, align 4, !tbaa !9
  %144 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %144, ptr %11, align 4, !tbaa !9
  %145 = load i32, ptr %15, align 4, !tbaa !9
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %165

147:                                              ; preds = %142
  %148 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %148, ptr %15, align 4, !tbaa !9
  store i32 536870912, ptr %16, align 4, !tbaa !9
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = load i32, ptr %16, align 4, !tbaa !9
  %151 = icmp uge i32 %149, %150
  %152 = zext i1 %151 to i32
  store i32 %152, ptr %15, align 4, !tbaa !9
  %153 = load i32, ptr %15, align 4, !tbaa !9
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %156

155:                                              ; preds = %147
  br label %293

156:                                              ; preds = %147
  %157 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %157, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %158 = load i32, ptr %16, align 4, !tbaa !9
  %159 = and i32 %158, 31
  %160 = load i32, ptr %15, align 4, !tbaa !9
  %161 = shl i32 %160, %159
  store i32 %161, ptr %15, align 4, !tbaa !9
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = load i32, ptr %15, align 4, !tbaa !9
  %164 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %162, i32 noundef %163)
  store i32 %164, ptr %15, align 4, !tbaa !9
  br label %166

165:                                              ; preds = %142
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %165, %156
  %167 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %167, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %168, ptr %16, align 4, !tbaa !9
  store i32 3, ptr %17, align 4, !tbaa !9
  %169 = load i32, ptr %17, align 4, !tbaa !9
  %170 = and i32 %169, 31
  %171 = load i32, ptr %16, align 4, !tbaa !9
  %172 = shl i32 %171, %170
  store i32 %172, ptr %16, align 4, !tbaa !9
  %173 = load i32, ptr %16, align 4, !tbaa !9
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = add i32 %174, %173
  store i32 %175, ptr %15, align 4, !tbaa !9
  %176 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %176, ptr %10, align 4, !tbaa !9
  %177 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %177, ptr %16, align 4, !tbaa !9
  %178 = load i32, ptr %16, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  store i64 %179, ptr %20, align 8, !tbaa !11
  %180 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %180, ptr %17, align 4, !tbaa !9
  %181 = load i32, ptr %17, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  store i64 %182, ptr %21, align 8, !tbaa !11
  store i64 32, ptr %22, align 8, !tbaa !11
  %183 = load i64, ptr %22, align 8, !tbaa !11
  %184 = and i64 %183, 63
  %185 = load i64, ptr %21, align 8, !tbaa !11
  %186 = shl i64 %185, %184
  store i64 %186, ptr %21, align 8, !tbaa !11
  %187 = load i64, ptr %21, align 8, !tbaa !11
  %188 = load i64, ptr %20, align 8, !tbaa !11
  %189 = or i64 %188, %187
  store i64 %189, ptr %20, align 8, !tbaa !11
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.w2c_hermes, ptr %190, i32 0, i32 6
  %192 = load i32, ptr %15, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %191, i64 noundef %193, i64 noundef %194)
  %195 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %195, ptr %15, align 4, !tbaa !9
  %196 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %196, ptr %16, align 4, !tbaa !9
  store i32 3, ptr %17, align 4, !tbaa !9
  %197 = load i32, ptr %17, align 4, !tbaa !9
  %198 = and i32 %197, 31
  %199 = load i32, ptr %16, align 4, !tbaa !9
  %200 = shl i32 %199, %198
  store i32 %200, ptr %16, align 4, !tbaa !9
  %201 = load i32, ptr %16, align 4, !tbaa !9
  %202 = load i32, ptr %15, align 4, !tbaa !9
  %203 = add i32 %202, %201
  store i32 %203, ptr %15, align 4, !tbaa !9
  %204 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %204, ptr %8, align 4, !tbaa !9
  %205 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %205, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %206 = load i32, ptr %16, align 4, !tbaa !9
  %207 = load i32, ptr %15, align 4, !tbaa !9
  %208 = add i32 %207, %206
  store i32 %208, ptr %15, align 4, !tbaa !9
  %209 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %209, ptr %7, align 4, !tbaa !9
  %210 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %210, ptr %15, align 4, !tbaa !9
  %211 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %211, ptr %16, align 4, !tbaa !9
  %212 = load i32, ptr %15, align 4, !tbaa !9
  %213 = load i32, ptr %16, align 4, !tbaa !9
  %214 = icmp ne i32 %212, %213
  %215 = zext i1 %214 to i32
  store i32 %215, ptr %15, align 4, !tbaa !9
  %216 = load i32, ptr %15, align 4, !tbaa !9
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %258

218:                                              ; preds = %166
  br label %219

219:                                              ; preds = %248, %218
  %220 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %220, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %221 = load i32, ptr %16, align 4, !tbaa !9
  %222 = load i32, ptr %15, align 4, !tbaa !9
  %223 = sub i32 %222, %221
  store i32 %223, ptr %15, align 4, !tbaa !9
  %224 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %224, ptr %10, align 4, !tbaa !9
  %225 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %225, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %226 = load i32, ptr %17, align 4, !tbaa !9
  %227 = load i32, ptr %16, align 4, !tbaa !9
  %228 = sub i32 %227, %226
  store i32 %228, ptr %16, align 4, !tbaa !9
  %229 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %229, ptr %9, align 4, !tbaa !9
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 6
  %232 = load i32, ptr %16, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = call i64 @i64_load(ptr noundef %231, i64 noundef %233)
  store i64 %234, ptr %20, align 8, !tbaa !11
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.w2c_hermes, ptr %235, i32 0, i32 6
  %237 = load i32, ptr %15, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %236, i64 noundef %238, i64 noundef %239)
  %240 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %240, ptr %15, align 4, !tbaa !9
  %241 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %241, ptr %16, align 4, !tbaa !9
  %242 = load i32, ptr %15, align 4, !tbaa !9
  %243 = load i32, ptr %16, align 4, !tbaa !9
  %244 = icmp ne i32 %242, %243
  %245 = zext i1 %244 to i32
  store i32 %245, ptr %15, align 4, !tbaa !9
  %246 = load i32, ptr %15, align 4, !tbaa !9
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %249

248:                                              ; preds = %219
  br label %219

249:                                              ; preds = %219
  %250 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %250, ptr %15, align 4, !tbaa !9
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.w2c_hermes, ptr %251, i32 0, i32 6
  %253 = load i32, ptr %15, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = add i64 %254, 396
  %256 = call i32 @i32_load(ptr noundef %252, i64 noundef %255)
  store i32 %256, ptr %15, align 4, !tbaa !9
  %257 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %257, ptr %9, align 4, !tbaa !9
  br label %258

258:                                              ; preds = %249, %166
  %259 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %259, ptr %15, align 4, !tbaa !9
  %260 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %260, ptr %16, align 4, !tbaa !9
  %261 = load ptr, ptr %5, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.w2c_hermes, ptr %261, i32 0, i32 6
  %263 = load i32, ptr %15, align 4, !tbaa !9
  %264 = zext i32 %263 to i64
  %265 = add i64 %264, 404
  %266 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %262, i64 noundef %265, i32 noundef %266)
  %267 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %267, ptr %15, align 4, !tbaa !9
  %268 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %268, ptr %16, align 4, !tbaa !9
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.w2c_hermes, ptr %269, i32 0, i32 6
  %271 = load i32, ptr %15, align 4, !tbaa !9
  %272 = zext i32 %271 to i64
  %273 = add i64 %272, 400
  %274 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %270, i64 noundef %273, i32 noundef %274)
  %275 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %275, ptr %15, align 4, !tbaa !9
  %276 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %276, ptr %16, align 4, !tbaa !9
  %277 = load ptr, ptr %5, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.w2c_hermes, ptr %277, i32 0, i32 6
  %279 = load i32, ptr %15, align 4, !tbaa !9
  %280 = zext i32 %279 to i64
  %281 = add i64 %280, 396
  %282 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %278, i64 noundef %281, i32 noundef %282)
  %283 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %283, ptr %15, align 4, !tbaa !9
  %284 = load i32, ptr %15, align 4, !tbaa !9
  %285 = icmp ne i32 %284, 0
  br i1 %285, label %286, label %290

286:                                              ; preds = %258
  %287 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %287, ptr %15, align 4, !tbaa !9
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %288, i32 noundef %289)
  br label %290

290:                                              ; preds = %286, %258
  br label %295

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

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

295:                                              ; preds = %290, %45
  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_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_hermes0x3A0x3Ahbc0x3A0x3ABytecodeModuleGenerator0x3A0x3AaddFunctionSource0x28unsigned0x20int0x2C0x20unsigned0x20int0x29(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, 400
  %8 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  %9 = add nuw nsw i64 %6, 404
  %10 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %9)
  %11 = icmp ult i32 %8, %10
  br i1 %11, label %12, label %19

12:                                               ; preds = %4
  %13 = zext i32 %2 to i64
  %14 = zext i32 %3 to i64
  %15 = shl nuw i64 %14, 32
  %16 = or disjoint i64 %15, %13
  %17 = zext i32 %8 to i64
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %17, i64 noundef %16)
  %18 = add i32 %8, 8
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %7, i32 noundef %18)
  br label %57

19:                                               ; preds = %4
  %20 = add nuw nsw i64 %6, 396
  %21 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %20)
  %22 = sub i32 %8, %21
  %23 = ashr i32 %22, 3
  %24 = add nsw i32 %23, 1
  %25 = icmp ult i32 %24, 536870912
  br i1 %25, label %26, label %55

26:                                               ; preds = %19
  %27 = sub i32 %10, %21
  %28 = ashr i32 %27, 2
  %29 = tail call i32 @llvm.umax.i32(i32 %24, i32 %28)
  %30 = icmp ugt i32 %27, 2147483639
  %31 = select i1 %30, i32 536870911, i32 %29
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %._crit_edge, label %32

32:                                               ; preds = %26
  %33 = icmp ugt i32 %31, 536870911
  br i1 %33, label %56, label %34

34:                                               ; preds = %32
  %35 = shl nuw i32 %31, 3
  %36 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %35) #5
  br label %._crit_edge

._crit_edge:                                      ; preds = %26, %34
  %.pre-phi = phi i32 [ %35, %34 ], [ 0, %26 ]
  %.0 = phi i32 [ %36, %34 ], [ 0, %26 ]
  %37 = and i32 %22, -8
  %38 = add i32 %.0, %37
  %39 = zext i32 %2 to i64
  %40 = zext i32 %3 to i64
  %41 = shl nuw i64 %40, 32
  %42 = or disjoint i64 %41, %39
  %43 = zext i32 %38 to i64
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %43, i64 noundef %42)
  %44 = add i32 %.0, %.pre-phi
  %45 = add i32 %38, 8
  %.not164 = icmp eq i32 %8, %21
  br i1 %.not164, label %53, label %.preheader

.preheader:                                       ; preds = %._crit_edge, %.preheader
  %.0157 = phi i32 [ %47, %.preheader ], [ %8, %._crit_edge ]
  %.0156 = phi i32 [ %46, %.preheader ], [ %38, %._crit_edge ]
  %46 = add i32 %.0156, -8
  %47 = add i32 %.0157, -8
  %48 = zext i32 %47 to i64
  %49 = tail call i64 @i64_load(ptr noundef nonnull %5, i64 noundef %48)
  %50 = zext i32 %46 to i64
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %50, i64 noundef %49)
  %.not165 = icmp eq i32 %47, %21
  br i1 %.not165, label %51, label %.preheader

51:                                               ; preds = %.preheader
  %52 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %20)
  br label %53

53:                                               ; preds = %51, %._crit_edge
  %.1158 = phi i32 [ %52, %51 ], [ %8, %._crit_edge ]
  %.1 = phi i32 [ %46, %51 ], [ %38, %._crit_edge ]
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %9, i32 noundef %44)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %7, i32 noundef %45)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %20, i32 noundef %.1)
  %.not166 = icmp eq i32 %.1158, 0
  br i1 %.not166, label %57, label %54

54:                                               ; preds = %53
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %.1158) #5
  br label %57

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

56:                                               ; preds = %32
  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

57:                                               ; preds = %53, %54, %12
  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