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

; 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

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

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) #2

declare void @w2c_hermes_abort(ptr noundef) #2

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef) #2

declare i32 @w2c_hermes_memmove(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_out_of_range0x5Babi0x3Av150070x5D0x28char0x20const0x2A0x29(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ANativeState0x3A0x3Acreate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20void0x2A0x2C0x20void0x200x280x2A0x290x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeState0x2A0x290x29(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 i32, align 4
  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
  store i32 0, ptr %15, align 4, !tbaa !9
  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 4, ptr %20) #5
  %21 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %21, ptr %16, align 4, !tbaa !9
  store i32 1368, ptr %17, align 4, !tbaa !9
  %22 = load i32, ptr %17, align 4, !tbaa !9
  %23 = load i32, ptr %16, align 4, !tbaa !9
  %24 = add i32 %23, %22
  store i32 %24, ptr %16, align 4, !tbaa !9
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 6
  %27 = load i32, ptr %16, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = call i32 @i32_load(ptr noundef %26, i64 noundef %28)
  store i32 %29, ptr %16, align 4, !tbaa !9
  %30 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %30, ptr %17, align 4, !tbaa !9
  store i32 1364, ptr %18, align 4, !tbaa !9
  %31 = load i32, ptr %18, align 4, !tbaa !9
  %32 = load i32, ptr %17, align 4, !tbaa !9
  %33 = add i32 %32, %31
  store i32 %33, ptr %17, align 4, !tbaa !9
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.w2c_hermes, ptr %34, i32 0, i32 6
  %36 = load i32, ptr %17, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = call i32 @i32_load(ptr noundef %35, i64 noundef %37)
  store i32 %38, ptr %17, align 4, !tbaa !9
  %39 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %39, ptr %9, align 4, !tbaa !9
  %40 = load i32, ptr %17, align 4, !tbaa !9
  %41 = load i32, ptr %16, align 4, !tbaa !9
  %42 = sub i32 %41, %40
  store i32 %42, ptr %16, align 4, !tbaa !9
  store i32 15, ptr %17, align 4, !tbaa !9
  %43 = load i32, ptr %16, align 4, !tbaa !9
  %44 = load i32, ptr %17, align 4, !tbaa !9
  %45 = icmp ule i32 %43, %44
  %46 = zext i1 %45 to i32
  store i32 %46, ptr %16, align 4, !tbaa !9
  %47 = load i32, ptr %16, align 4, !tbaa !9
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %59

49:                                               ; preds = %4
  %50 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %50, ptr %16, align 4, !tbaa !9
  store i32 808, ptr %17, align 4, !tbaa !9
  %51 = load i32, ptr %17, align 4, !tbaa !9
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = add i32 %52, %51
  store i32 %53, ptr %16, align 4, !tbaa !9
  store i32 16, ptr %17, align 4, !tbaa !9
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = load i32, ptr %16, align 4, !tbaa !9
  %56 = load i32, ptr %17, align 4, !tbaa !9
  %57 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef %54, i32 noundef %55, i32 noundef %56)
  store i32 %57, ptr %16, align 4, !tbaa !9
  %58 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %58, ptr %9, align 4, !tbaa !9
  br label %71

59:                                               ; preds = %4
  %60 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %60, ptr %16, align 4, !tbaa !9
  %61 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %61, ptr %17, align 4, !tbaa !9
  store i32 16, ptr %18, align 4, !tbaa !9
  %62 = load i32, ptr %18, align 4, !tbaa !9
  %63 = load i32, ptr %17, align 4, !tbaa !9
  %64 = add i32 %63, %62
  store i32 %64, ptr %17, align 4, !tbaa !9
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.w2c_hermes, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %16, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = add i64 %68, 1364
  %70 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %66, i64 noundef %69, i32 noundef %70)
  br label %71

71:                                               ; preds = %59, %49
  %72 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %72, ptr %16, align 4, !tbaa !9
  store i32 1380, ptr %17, align 4, !tbaa !9
  %73 = load i32, ptr %17, align 4, !tbaa !9
  %74 = load i32, ptr %16, align 4, !tbaa !9
  %75 = add i32 %74, %73
  store i32 %75, ptr %16, align 4, !tbaa !9
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.w2c_hermes, ptr %76, i32 0, i32 6
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = call i32 @i32_load(ptr noundef %77, i64 noundef %79)
  store i32 %80, ptr %16, align 4, !tbaa !9
  %81 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %81, ptr %10, align 4, !tbaa !9
  %82 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %82, ptr %17, align 4, !tbaa !9
  store i32 1384, ptr %18, align 4, !tbaa !9
  %83 = load i32, ptr %18, align 4, !tbaa !9
  %84 = load i32, ptr %17, align 4, !tbaa !9
  %85 = add i32 %84, %83
  store i32 %85, ptr %17, align 4, !tbaa !9
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.w2c_hermes, ptr %86, i32 0, i32 6
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = call i32 @i32_load(ptr noundef %87, i64 noundef %89)
  store i32 %90, ptr %17, align 4, !tbaa !9
  %91 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %91, ptr %11, align 4, !tbaa !9
  %92 = load i32, ptr %16, align 4, !tbaa !9
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = icmp ult i32 %92, %93
  %95 = zext i1 %94 to i32
  store i32 %95, ptr %16, align 4, !tbaa !9
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %117

98:                                               ; preds = %71
  %99 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %99, ptr %16, align 4, !tbaa !9
  %100 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %100, ptr %17, align 4, !tbaa !9
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.w2c_hermes, ptr %101, i32 0, i32 6
  %103 = load i32, ptr %16, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %102, i64 noundef %104, i32 noundef %105)
  %106 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %106, ptr %16, align 4, !tbaa !9
  %107 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %107, ptr %17, align 4, !tbaa !9
  store i32 4, ptr %18, align 4, !tbaa !9
  %108 = load i32, ptr %18, align 4, !tbaa !9
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = add i32 %109, %108
  store i32 %110, ptr %17, align 4, !tbaa !9
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %16, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, 1380
  %116 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %112, i64 noundef %115, i32 noundef %116)
  br label %281

117:                                              ; preds = %71
  %118 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %118, ptr %16, align 4, !tbaa !9
  %119 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %119, ptr %17, align 4, !tbaa !9
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %17, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = add i64 %123, 1376
  %125 = call i32 @i32_load(ptr noundef %121, i64 noundef %124)
  store i32 %125, ptr %17, align 4, !tbaa !9
  %126 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %126, ptr %10, align 4, !tbaa !9
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = load i32, ptr %16, align 4, !tbaa !9
  %129 = sub i32 %128, %127
  store i32 %129, ptr %16, align 4, !tbaa !9
  %130 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %130, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %131 = load i32, ptr %16, align 4, !tbaa !9
  %132 = load i32, ptr %17, align 4, !tbaa !9
  %133 = and i32 %132, 31
  %134 = ashr i32 %131, %133
  store i32 %134, ptr %16, align 4, !tbaa !9
  %135 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %135, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %136 = load i32, ptr %17, align 4, !tbaa !9
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = add i32 %137, %136
  store i32 %138, ptr %16, align 4, !tbaa !9
  %139 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %139, ptr %12, align 4, !tbaa !9
  store i32 1073741824, ptr %17, align 4, !tbaa !9
  %140 = load i32, ptr %16, align 4, !tbaa !9
  %141 = load i32, ptr %17, align 4, !tbaa !9
  %142 = icmp uge i32 %140, %141
  %143 = zext i1 %142 to i32
  store i32 %143, ptr %16, align 4, !tbaa !9
  %144 = load i32, ptr %16, align 4, !tbaa !9
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %117
  br label %305

147:                                              ; preds = %117
  store i32 1073741823, ptr %16, align 4, !tbaa !9
  %148 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %148, ptr %17, align 4, !tbaa !9
  %149 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %149, ptr %18, align 4, !tbaa !9
  %150 = load i32, ptr %18, align 4, !tbaa !9
  %151 = load i32, ptr %17, align 4, !tbaa !9
  %152 = sub i32 %151, %150
  store i32 %152, ptr %17, align 4, !tbaa !9
  %153 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %153, ptr %11, align 4, !tbaa !9
  store i32 1, 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 = and i32 %155, 31
  %157 = ashr i32 %154, %156
  store i32 %157, ptr %17, align 4, !tbaa !9
  %158 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %158, ptr %15, align 4, !tbaa !9
  %159 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %159, ptr %18, align 4, !tbaa !9
  %160 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %160, ptr %19, align 4, !tbaa !9
  %161 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %161, ptr %20, align 4, !tbaa !9
  %162 = load i32, ptr %19, align 4, !tbaa !9
  %163 = load i32, ptr %20, align 4, !tbaa !9
  %164 = icmp ult i32 %162, %163
  %165 = zext i1 %164 to i32
  store i32 %165, ptr %19, align 4, !tbaa !9
  %166 = load i32, ptr %19, align 4, !tbaa !9
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %170

168:                                              ; preds = %147
  %169 = load i32, ptr %17, align 4, !tbaa !9
  br label %172

170:                                              ; preds = %147
  %171 = load i32, ptr %18, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %170, %168
  %173 = phi i32 [ %169, %168 ], [ %171, %170 ]
  store i32 %173, ptr %17, align 4, !tbaa !9
  %174 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %174, ptr %18, align 4, !tbaa !9
  store i32 2147483644, ptr %19, align 4, !tbaa !9
  %175 = load i32, ptr %18, align 4, !tbaa !9
  %176 = load i32, ptr %19, align 4, !tbaa !9
  %177 = icmp uge i32 %175, %176
  %178 = zext i1 %177 to i32
  store i32 %178, ptr %18, align 4, !tbaa !9
  %179 = load i32, ptr %18, align 4, !tbaa !9
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %183

181:                                              ; preds = %172
  %182 = load i32, ptr %16, align 4, !tbaa !9
  br label %185

183:                                              ; preds = %172
  %184 = load i32, ptr %17, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %183, %181
  %186 = phi i32 [ %182, %181 ], [ %184, %183 ]
  store i32 %186, ptr %16, align 4, !tbaa !9
  %187 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %187, ptr %12, align 4, !tbaa !9
  %188 = load i32, ptr %16, align 4, !tbaa !9
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %208

190:                                              ; preds = %185
  %191 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %191, ptr %16, align 4, !tbaa !9
  store i32 1073741824, ptr %17, align 4, !tbaa !9
  %192 = load i32, ptr %16, align 4, !tbaa !9
  %193 = load i32, ptr %17, align 4, !tbaa !9
  %194 = icmp uge i32 %192, %193
  %195 = zext i1 %194 to i32
  store i32 %195, ptr %16, align 4, !tbaa !9
  %196 = load i32, ptr %16, align 4, !tbaa !9
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %199

198:                                              ; preds = %190
  br label %307

199:                                              ; preds = %190
  %200 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %200, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %201 = load i32, ptr %17, align 4, !tbaa !9
  %202 = and i32 %201, 31
  %203 = load i32, ptr %16, align 4, !tbaa !9
  %204 = shl i32 %203, %202
  store i32 %204, ptr %16, align 4, !tbaa !9
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = load i32, ptr %16, align 4, !tbaa !9
  %207 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %205, i32 noundef %206)
  store i32 %207, ptr %16, align 4, !tbaa !9
  br label %209

208:                                              ; preds = %185
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %209

209:                                              ; preds = %208, %199
  %210 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %210, ptr %11, align 4, !tbaa !9
  %211 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %211, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %212 = load i32, ptr %18, align 4, !tbaa !9
  %213 = and i32 %212, 31
  %214 = load i32, ptr %17, align 4, !tbaa !9
  %215 = shl i32 %214, %213
  store i32 %215, ptr %17, align 4, !tbaa !9
  %216 = load i32, ptr %17, align 4, !tbaa !9
  %217 = load i32, ptr %16, align 4, !tbaa !9
  %218 = add i32 %217, %216
  store i32 %218, ptr %16, align 4, !tbaa !9
  %219 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %219, ptr %13, align 4, !tbaa !9
  %220 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %220, ptr %17, align 4, !tbaa !9
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.w2c_hermes, ptr %221, i32 0, i32 6
  %223 = load i32, ptr %16, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %222, i64 noundef %224, i32 noundef %225)
  %226 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %226, ptr %16, align 4, !tbaa !9
  %227 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %227, ptr %17, align 4, !tbaa !9
  %228 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %228, ptr %18, align 4, !tbaa !9
  %229 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %229, ptr %19, align 4, !tbaa !9
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = load i32, ptr %17, align 4, !tbaa !9
  %232 = load i32, ptr %18, align 4, !tbaa !9
  %233 = load i32, ptr %19, align 4, !tbaa !9
  %234 = call i32 @w2c_hermes_memmove(ptr noundef %230, i32 noundef %231, i32 noundef %232, i32 noundef %233)
  store i32 %234, ptr %17, align 4, !tbaa !9
  %235 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %235, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %236, ptr %18, align 4, !tbaa !9
  store i32 2, ptr %19, align 4, !tbaa !9
  %237 = load i32, ptr %19, align 4, !tbaa !9
  %238 = and i32 %237, 31
  %239 = load i32, ptr %18, align 4, !tbaa !9
  %240 = shl i32 %239, %238
  store i32 %240, ptr %18, align 4, !tbaa !9
  %241 = load i32, ptr %18, align 4, !tbaa !9
  %242 = load i32, ptr %17, align 4, !tbaa !9
  %243 = add i32 %242, %241
  store i32 %243, ptr %17, align 4, !tbaa !9
  %244 = load ptr, ptr %5, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.w2c_hermes, ptr %244, i32 0, i32 6
  %246 = load i32, ptr %16, align 4, !tbaa !9
  %247 = zext i32 %246 to i64
  %248 = add i64 %247, 1384
  %249 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %245, i64 noundef %248, i32 noundef %249)
  %250 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %250, ptr %16, align 4, !tbaa !9
  %251 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %251, ptr %17, align 4, !tbaa !9
  store i32 4, ptr %18, align 4, !tbaa !9
  %252 = load i32, ptr %18, align 4, !tbaa !9
  %253 = load i32, ptr %17, align 4, !tbaa !9
  %254 = add i32 %253, %252
  store i32 %254, ptr %17, align 4, !tbaa !9
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.w2c_hermes, ptr %255, i32 0, i32 6
  %257 = load i32, ptr %16, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = add i64 %258, 1380
  %260 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %256, i64 noundef %259, i32 noundef %260)
  %261 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %261, ptr %16, align 4, !tbaa !9
  %262 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %262, ptr %17, align 4, !tbaa !9
  %263 = load ptr, ptr %5, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.w2c_hermes, ptr %263, i32 0, i32 6
  %265 = load i32, ptr %16, align 4, !tbaa !9
  %266 = zext i32 %265 to i64
  %267 = add i64 %266, 1376
  %268 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %264, i64 noundef %267, i32 noundef %268)
  %269 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %269, ptr %16, align 4, !tbaa !9
  %270 = load i32, ptr %16, align 4, !tbaa !9
  %271 = icmp ne i32 %270, 0
  %272 = xor i1 %271, true
  %273 = zext i1 %272 to i32
  store i32 %273, ptr %16, align 4, !tbaa !9
  %274 = load i32, ptr %16, align 4, !tbaa !9
  %275 = icmp ne i32 %274, 0
  br i1 %275, label %276, label %277

276:                                              ; preds = %209
  br label %281

277:                                              ; preds = %209
  %278 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %278, ptr %16, align 4, !tbaa !9
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %279, i32 noundef %280)
  br label %281

281:                                              ; preds = %277, %276, %98
  %282 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %282, ptr %16, align 4, !tbaa !9
  %283 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %283, ptr %17, align 4, !tbaa !9
  %284 = load ptr, ptr %5, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.w2c_hermes, ptr %284, i32 0, i32 6
  %286 = load i32, ptr %16, align 4, !tbaa !9
  %287 = zext i32 %286 to i64
  %288 = add i64 %287, 8
  %289 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %285, i64 noundef %288, i32 noundef %289)
  %290 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %290, ptr %16, align 4, !tbaa !9
  %291 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %291, ptr %17, align 4, !tbaa !9
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.w2c_hermes, ptr %292, i32 0, i32 6
  %294 = load i32, ptr %16, align 4, !tbaa !9
  %295 = zext i32 %294 to i64
  %296 = add i64 %295, 4
  %297 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %293, i64 noundef %296, i32 noundef %297)
  %298 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %298, ptr %16, align 4, !tbaa !9
  store i32 419430416, ptr %17, 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 %16, align 4, !tbaa !9
  %302 = zext i32 %301 to i64
  %303 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %300, i64 noundef %302, i32 noundef %303)
  %304 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %304, ptr %16, align 4, !tbaa !9
  br label %309

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

307:                                              ; preds = %198
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_out_of_range0x5Babi0x3Av150070x5D0x28char0x20const0x2A0x29(ptr noundef %308)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

309:                                              ; preds = %281
  %310 = load i32, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, 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 i32 %310
}

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 = { "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 = { 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 = { 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}


; 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

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

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #1

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @w2c_hermes_memmove(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_out_of_range0x5Babi0x3Av150070x5D0x28char0x20const0x2A0x29(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ANativeState0x3A0x3Acreate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20void0x2A0x2C0x20void0x200x280x2A0x290x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeState0x2A0x290x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = add i32 %1, 1368
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %5 to i64
  %8 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %7)
  %9 = add i32 %1, 1364
  %10 = zext i32 %9 to i64
  %11 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %10)
  %12 = sub i32 %8, %11
  %13 = icmp ult i32 %12, 16
  br i1 %13, label %14, label %17

14:                                               ; preds = %4
  %15 = add i32 %1, 808
  %16 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %15, i32 noundef 16) #5
  br label %21

17:                                               ; preds = %4
  %18 = add i32 %11, 16
  %19 = zext i32 %1 to i64
  %20 = add nuw nsw i64 %19, 1364
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %20, i32 noundef %18)
  br label %21

21:                                               ; preds = %17, %14
  %.0 = phi i32 [ %16, %14 ], [ %11, %17 ]
  %22 = add i32 %1, 1380
  %23 = zext i32 %22 to i64
  %24 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %23)
  %25 = add i32 %1, 1384
  %26 = zext i32 %25 to i64
  %27 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %26)
  %28 = icmp ult i32 %24, %27
  br i1 %28, label %29, label %34

29:                                               ; preds = %21
  %30 = zext i32 %24 to i64
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %30, i32 noundef %.0)
  %31 = add i32 %24, 4
  %32 = zext i32 %1 to i64
  %33 = add nuw nsw i64 %32, 1380
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %33, i32 noundef %31)
  br label %62

34:                                               ; preds = %21
  %35 = zext i32 %1 to i64
  %36 = add nuw nsw i64 %35, 1376
  %37 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %36)
  %38 = sub i32 %24, %37
  %39 = ashr i32 %38, 2
  %40 = add nsw i32 %39, 1
  %41 = icmp ugt i32 %40, 1073741823
  br i1 %41, label %66, label %42

42:                                               ; preds = %34
  %43 = sub i32 %27, %37
  %44 = ashr i32 %43, 1
  %45 = tail call i32 @llvm.umax.i32(i32 %40, i32 %44)
  %46 = icmp ugt i32 %43, 2147483643
  %47 = select i1 %46, i32 1073741823, i32 %45
  %.not = icmp eq i32 %47, 0
  br i1 %.not, label %._crit_edge, label %48

48:                                               ; preds = %42
  %49 = icmp ugt i32 %47, 1073741823
  br i1 %49, label %67, label %50

50:                                               ; preds = %48
  %51 = shl nuw i32 %47, 2
  %52 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %51) #5
  br label %._crit_edge

._crit_edge:                                      ; preds = %42, %50
  %.pre-phi = phi i32 [ %51, %50 ], [ 0, %42 ]
  %.0170 = phi i32 [ %52, %50 ], [ 0, %42 ]
  %53 = and i32 %38, -4
  %54 = add i32 %.0170, %53
  %55 = zext i32 %54 to i64
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %55, i32 noundef %.0)
  %56 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %.0170, i32 noundef %37, i32 noundef %38) #5
  %57 = add i32 %56, %.pre-phi
  %58 = add nuw nsw i64 %35, 1384
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %58, i32 noundef %57)
  %59 = add i32 %54, 4
  %60 = add nuw nsw i64 %35, 1380
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %60, i32 noundef %59)
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %36, i32 noundef %56)
  %.not175 = icmp eq i32 %37, 0
  br i1 %.not175, label %62, label %61

61:                                               ; preds = %._crit_edge
  tail call void @w2c_hermes_dlfree(ptr noundef %0, i32 noundef %37) #5
  br label %62

62:                                               ; preds = %._crit_edge, %61, %29
  %63 = zext i32 %.0 to i64
  %64 = add nuw nsw i64 %63, 8
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %64, i32 noundef %3)
  %65 = add nuw nsw i64 %63, 4
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %65, i32 noundef %2)
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %63, i32 noundef 419430416)
  ret i32 %.0

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

67:                                               ; preds = %48
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_out_of_range0x5Babi0x3Av150070x5D0x28char0x20const0x2A0x29(ptr noundef %0) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable
}

; 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 = { "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 = { 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,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass