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

; 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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3ArelocationWriteBarrier0x28void0x20const0x2A0x2C0x20void0x20const0x2A0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AEnvironment0x3A0x3AEnvironment0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AEnvironment0x3E0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #4 {
  %6 = alloca ptr, align 8
  %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 i64, align 8
  %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 i64, align 8
  %20 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, 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 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  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 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %21 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %21, ptr %14, align 4, !tbaa !9
  store i32 52753, ptr %15, align 4, !tbaa !9
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 6
  %24 = load i32, ptr %14, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = add i64 %25, 4
  %27 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %23, i64 noundef %26, i32 noundef %27)
  %28 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %28, ptr %14, align 4, !tbaa !9
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %14, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = add i64 %32, 4
  %34 = call i32 @i32_load(ptr noundef %30, i64 noundef %33)
  store i32 %34, ptr %14, align 4, !tbaa !9
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.w2c_hermes, ptr %35, i32 0, i32 6
  %37 = load i32, ptr %14, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = call i64 @i64_load(ptr noundef %36, i64 noundef %38)
  store i64 %39, ptr %19, align 8, !tbaa !11
  %40 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %40, ptr %13, align 8, !tbaa !11
  store i64 48, ptr %20, align 8, !tbaa !11
  %41 = load i64, ptr %19, align 8, !tbaa !11
  %42 = load i64, ptr %20, align 8, !tbaa !11
  %43 = and i64 %42, 63
  %44 = ashr i64 %41, %43
  store i64 %44, ptr %19, align 8, !tbaa !11
  %45 = load i64, ptr %19, align 8, !tbaa !11
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr %14, align 4, !tbaa !9
  store i32 -1, ptr %15, align 4, !tbaa !9
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = load i32, ptr %15, align 4, !tbaa !9
  %49 = icmp eq i32 %47, %48
  %50 = zext i1 %49 to i32
  store i32 %50, ptr %14, align 4, !tbaa !9
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %285

53:                                               ; preds = %5
  %54 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %54, ptr %19, align 8, !tbaa !11
  store i64 -844424930131969, ptr %20, align 8, !tbaa !11
  %55 = load i64, ptr %19, align 8, !tbaa !11
  %56 = load i64, ptr %20, align 8, !tbaa !11
  %57 = icmp ule i64 %55, %56
  %58 = zext i1 %57 to i32
  store i32 %58, ptr %14, align 4, !tbaa !9
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %53
  br label %303

62:                                               ; preds = %53
  %63 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %63, ptr %14, align 4, !tbaa !9
  store i32 12, ptr %15, align 4, !tbaa !9
  %64 = load i32, ptr %15, align 4, !tbaa !9
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = add i32 %65, %64
  store i32 %66, ptr %14, align 4, !tbaa !9
  %67 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %67, ptr %12, align 4, !tbaa !9
  %68 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %68, ptr %20, align 8, !tbaa !11
  %69 = load i64, ptr %20, align 8, !tbaa !11
  %70 = trunc i64 %69 to i32
  store i32 %70, ptr %15, align 4, !tbaa !9
  %71 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %71, ptr %9, align 4, !tbaa !9
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.w2c_hermes, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %73, i64 noundef %75, i32 noundef %76)
  %77 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %77, ptr %14, align 4, !tbaa !9
  store i32 808, ptr %15, align 4, !tbaa !9
  %78 = load i32, ptr %15, align 4, !tbaa !9
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = add i32 %79, %78
  store i32 %80, ptr %14, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %81, ptr %11, align 4, !tbaa !9
  %82 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %82, ptr %14, align 4, !tbaa !9
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %100

85:                                               ; preds = %62
  %86 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %86, ptr %14, align 4, !tbaa !9
  %87 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %87, ptr %15, align 4, !tbaa !9
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = load i32, ptr %15, align 4, !tbaa !9
  %91 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AvalidPointer0x28void0x20const0x2A0x290x20const(ptr noundef %88, i32 noundef %89, i32 noundef %90)
  store i32 %91, ptr %14, align 4, !tbaa !9
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = icmp ne i32 %92, 0
  %94 = xor i1 %93, true
  %95 = zext i1 %94 to i32
  store i32 %95, ptr %14, align 4, !tbaa !9
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %99

98:                                               ; preds = %85
  br label %321

99:                                               ; preds = %85
  br label %100

100:                                              ; preds = %99, %62
  %101 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %101, ptr %14, align 4, !tbaa !9
  store i32 1396, ptr %15, align 4, !tbaa !9
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = add i32 %103, %102
  store i32 %104, ptr %14, align 4, !tbaa !9
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.w2c_hermes, ptr %105, i32 0, i32 6
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = call i32 @i32_load(ptr noundef %106, i64 noundef %108)
  store i32 %109, ptr %14, align 4, !tbaa !9
  %110 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %110, ptr %15, align 4, !tbaa !9
  store i32 -4194304, ptr %16, align 4, !tbaa !9
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = and i32 %112, %111
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = load i32, ptr %15, align 4, !tbaa !9
  %116 = icmp ne i32 %114, %115
  %117 = zext i1 %116 to i32
  store i32 %117, ptr %14, align 4, !tbaa !9
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %128

120:                                              ; preds = %100
  %121 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %121, ptr %14, align 4, !tbaa !9
  %122 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %122, ptr %15, align 4, !tbaa !9
  %123 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %123, ptr %16, align 4, !tbaa !9
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = load i32, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3ArelocationWriteBarrier0x28void0x20const0x2A0x2C0x20void0x20const0x2A0x29(ptr noundef %124, i32 noundef %125, i32 noundef %126, i32 noundef %127)
  br label %128

128:                                              ; preds = %120, %100
  %129 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %130, ptr %15, align 4, !tbaa !9
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 16
  %136 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %132, i64 noundef %135, i32 noundef %136)
  %137 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %137, ptr %14, align 4, !tbaa !9
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  %140 = xor i1 %139, true
  %141 = zext i1 %140 to i32
  store i32 %141, ptr %14, align 4, !tbaa !9
  %142 = load i32, ptr %14, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %145

144:                                              ; preds = %128
  br label %283

145:                                              ; preds = %128
  %146 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %146, ptr %14, align 4, !tbaa !9
  store i32 24, ptr %15, align 4, !tbaa !9
  %147 = load i32, ptr %15, align 4, !tbaa !9
  %148 = load i32, ptr %14, align 4, !tbaa !9
  %149 = add i32 %148, %147
  store i32 %149, ptr %14, align 4, !tbaa !9
  %150 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %150, ptr %11, align 4, !tbaa !9
  %151 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %151, ptr %8, align 4, !tbaa !9
  %152 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %152, ptr %14, align 4, !tbaa !9
  store i32 7, ptr %15, align 4, !tbaa !9
  %153 = load i32, ptr %15, align 4, !tbaa !9
  %154 = load i32, ptr %14, align 4, !tbaa !9
  %155 = and i32 %154, %153
  store i32 %155, ptr %14, align 4, !tbaa !9
  %156 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %156, ptr %12, align 4, !tbaa !9
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %187

159:                                              ; preds = %145
  store i32 0, ptr %14, align 4, !tbaa !9
  %160 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %160, ptr %9, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %185, %159
  %162 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %162, ptr %14, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %20, align 8, !tbaa !11
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.w2c_hermes, ptr %163, i32 0, i32 6
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %164, i64 noundef %166, i64 noundef %167)
  %168 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %168, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = add i32 %170, %169
  store i32 %171, ptr %14, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %172, ptr %8, align 4, !tbaa !9
  %173 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %173, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = load i32, ptr %14, align 4, !tbaa !9
  %176 = add i32 %175, %174
  store i32 %176, ptr %14, align 4, !tbaa !9
  %177 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %177, ptr %9, align 4, !tbaa !9
  %178 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %178, ptr %15, align 4, !tbaa !9
  %179 = load i32, ptr %14, align 4, !tbaa !9
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = icmp ne i32 %179, %180
  %182 = zext i1 %181 to i32
  store i32 %182, ptr %14, align 4, !tbaa !9
  %183 = load i32, ptr %14, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %186

185:                                              ; preds = %161
  br label %161

186:                                              ; preds = %161
  br label %187

187:                                              ; preds = %186, %145
  %188 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %188, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %189 = load i32, ptr %15, align 4, !tbaa !9
  %190 = load i32, ptr %14, align 4, !tbaa !9
  %191 = sub i32 %190, %189
  store i32 %191, ptr %14, align 4, !tbaa !9
  store i32 536870911, ptr %15, align 4, !tbaa !9
  %192 = load i32, ptr %15, align 4, !tbaa !9
  %193 = load i32, ptr %14, align 4, !tbaa !9
  %194 = and i32 %193, %192
  store i32 %194, ptr %14, align 4, !tbaa !9
  store i32 7, ptr %15, align 4, !tbaa !9
  %195 = load i32, ptr %14, align 4, !tbaa !9
  %196 = load i32, ptr %15, align 4, !tbaa !9
  %197 = icmp ult i32 %195, %196
  %198 = zext i1 %197 to i32
  store i32 %198, ptr %14, align 4, !tbaa !9
  %199 = load i32, ptr %14, align 4, !tbaa !9
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %202

201:                                              ; preds = %187
  br label %283

202:                                              ; preds = %187
  %203 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %203, ptr %14, align 4, !tbaa !9
  %204 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %204, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %205 = load i32, ptr %16, align 4, !tbaa !9
  %206 = and i32 %205, 31
  %207 = load i32, ptr %15, align 4, !tbaa !9
  %208 = shl i32 %207, %206
  store i32 %208, ptr %15, align 4, !tbaa !9
  %209 = load i32, ptr %15, align 4, !tbaa !9
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = add i32 %210, %209
  store i32 %211, ptr %14, align 4, !tbaa !9
  %212 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %212, ptr %9, align 4, !tbaa !9
  br label %213

213:                                              ; preds = %281, %202
  %214 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %214, ptr %14, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %20, align 8, !tbaa !11
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.w2c_hermes, ptr %215, i32 0, i32 6
  %217 = load i32, ptr %14, align 4, !tbaa !9
  %218 = zext i32 %217 to i64
  %219 = add i64 %218, 56
  %220 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %216, i64 noundef %219, i64 noundef %220)
  %221 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %221, ptr %14, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %20, align 8, !tbaa !11
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.w2c_hermes, ptr %222, i32 0, i32 6
  %224 = load i32, ptr %14, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = add i64 %225, 48
  %227 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %223, i64 noundef %226, i64 noundef %227)
  %228 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %228, ptr %14, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %20, align 8, !tbaa !11
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.w2c_hermes, ptr %229, i32 0, i32 6
  %231 = load i32, ptr %14, align 4, !tbaa !9
  %232 = zext i32 %231 to i64
  %233 = add i64 %232, 40
  %234 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %230, i64 noundef %233, i64 noundef %234)
  %235 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %235, ptr %14, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %20, align 8, !tbaa !11
  %236 = load ptr, ptr %6, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.w2c_hermes, ptr %236, i32 0, i32 6
  %238 = load i32, ptr %14, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = add i64 %239, 32
  %241 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %237, i64 noundef %240, i64 noundef %241)
  %242 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %242, ptr %14, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %20, align 8, !tbaa !11
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.w2c_hermes, ptr %243, i32 0, i32 6
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = zext i32 %245 to i64
  %247 = add i64 %246, 24
  %248 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %244, i64 noundef %247, i64 noundef %248)
  %249 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %249, ptr %14, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %20, align 8, !tbaa !11
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.w2c_hermes, ptr %250, i32 0, i32 6
  %252 = load i32, ptr %14, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = add i64 %253, 16
  %255 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %251, i64 noundef %254, i64 noundef %255)
  %256 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %256, ptr %14, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %20, align 8, !tbaa !11
  %257 = load ptr, ptr %6, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.w2c_hermes, ptr %257, i32 0, i32 6
  %259 = load i32, ptr %14, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = add i64 %260, 8
  %262 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %258, i64 noundef %261, i64 noundef %262)
  %263 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %263, ptr %14, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %20, align 8, !tbaa !11
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.w2c_hermes, ptr %264, i32 0, i32 6
  %266 = load i32, ptr %14, align 4, !tbaa !9
  %267 = zext i32 %266 to i64
  %268 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %265, i64 noundef %267, i64 noundef %268)
  %269 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %269, ptr %14, align 4, !tbaa !9
  store i32 -64, ptr %15, align 4, !tbaa !9
  %270 = load i32, ptr %15, align 4, !tbaa !9
  %271 = load i32, ptr %14, align 4, !tbaa !9
  %272 = sub i32 %271, %270
  store i32 %272, ptr %14, align 4, !tbaa !9
  %273 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %273, ptr %8, align 4, !tbaa !9
  %274 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %274, ptr %15, align 4, !tbaa !9
  %275 = load i32, ptr %14, align 4, !tbaa !9
  %276 = load i32, ptr %15, align 4, !tbaa !9
  %277 = icmp ne i32 %275, %276
  %278 = zext i1 %277 to i32
  store i32 %278, ptr %14, align 4, !tbaa !9
  %279 = load i32, ptr %14, align 4, !tbaa !9
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %282

281:                                              ; preds = %213
  br label %213

282:                                              ; preds = %213
  br label %283

283:                                              ; preds = %282, %201, %144
  %284 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %284, ptr %14, align 4, !tbaa !9
  br label %339

285:                                              ; preds = %5
  store i32 0, ptr %14, align 4, !tbaa !9
  %286 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %286, ptr %8, align 4, !tbaa !9
  store i32 118124, ptr %15, align 4, !tbaa !9
  %287 = load i32, ptr %15, align 4, !tbaa !9
  %288 = load i32, ptr %14, align 4, !tbaa !9
  %289 = add i32 %288, %287
  store i32 %289, ptr %14, align 4, !tbaa !9
  %290 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %290, ptr %15, align 4, !tbaa !9
  store i32 83341, ptr %16, align 4, !tbaa !9
  %291 = load i32, ptr %16, align 4, !tbaa !9
  %292 = load i32, ptr %15, align 4, !tbaa !9
  %293 = add i32 %292, %291
  store i32 %293, ptr %15, align 4, !tbaa !9
  store i32 480, ptr %16, align 4, !tbaa !9
  %294 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %294, ptr %17, align 4, !tbaa !9
  store i32 38798, ptr %18, align 4, !tbaa !9
  %295 = load i32, ptr %18, align 4, !tbaa !9
  %296 = load i32, ptr %17, align 4, !tbaa !9
  %297 = add i32 %296, %295
  store i32 %297, ptr %17, align 4, !tbaa !9
  %298 = load ptr, ptr %6, align 8, !tbaa !5
  %299 = load i32, ptr %14, align 4, !tbaa !9
  %300 = load i32, ptr %15, align 4, !tbaa !9
  %301 = load i32, ptr %16, align 4, !tbaa !9
  %302 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %298, i32 noundef %299, i32 noundef %300, i32 noundef %301, i32 noundef %302)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

303:                                              ; preds = %61
  store i32 0, ptr %14, align 4, !tbaa !9
  %304 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %304, ptr %8, align 4, !tbaa !9
  store i32 118273, ptr %15, align 4, !tbaa !9
  %305 = load i32, ptr %15, align 4, !tbaa !9
  %306 = load i32, ptr %14, align 4, !tbaa !9
  %307 = add i32 %306, %305
  store i32 %307, ptr %14, align 4, !tbaa !9
  %308 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %308, ptr %15, align 4, !tbaa !9
  store i32 83341, ptr %16, align 4, !tbaa !9
  %309 = load i32, ptr %16, align 4, !tbaa !9
  %310 = load i32, ptr %15, align 4, !tbaa !9
  %311 = add i32 %310, %309
  store i32 %311, ptr %15, align 4, !tbaa !9
  store i32 438, ptr %16, align 4, !tbaa !9
  %312 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %312, ptr %17, align 4, !tbaa !9
  store i32 49706, ptr %18, align 4, !tbaa !9
  %313 = load i32, ptr %18, align 4, !tbaa !9
  %314 = load i32, ptr %17, align 4, !tbaa !9
  %315 = add i32 %314, %313
  store i32 %315, ptr %17, align 4, !tbaa !9
  %316 = load ptr, ptr %6, align 8, !tbaa !5
  %317 = load i32, ptr %14, align 4, !tbaa !9
  %318 = load i32, ptr %15, align 4, !tbaa !9
  %319 = load i32, ptr %16, align 4, !tbaa !9
  %320 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %316, i32 noundef %317, i32 noundef %318, i32 noundef %319, i32 noundef %320)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

321:                                              ; preds = %98
  store i32 0, ptr %14, align 4, !tbaa !9
  %322 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %322, ptr %8, align 4, !tbaa !9
  store i32 147550, ptr %15, align 4, !tbaa !9
  %323 = load i32, ptr %15, align 4, !tbaa !9
  %324 = load i32, ptr %14, align 4, !tbaa !9
  %325 = add i32 %324, %323
  store i32 %325, ptr %14, align 4, !tbaa !9
  %326 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %326, ptr %15, align 4, !tbaa !9
  store i32 83763, ptr %16, align 4, !tbaa !9
  %327 = load i32, ptr %16, align 4, !tbaa !9
  %328 = load i32, ptr %15, align 4, !tbaa !9
  %329 = add i32 %328, %327
  store i32 %329, ptr %15, align 4, !tbaa !9
  store i32 28, ptr %16, align 4, !tbaa !9
  %330 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %330, ptr %17, align 4, !tbaa !9
  store i32 92238, ptr %18, align 4, !tbaa !9
  %331 = load i32, ptr %18, align 4, !tbaa !9
  %332 = load i32, ptr %17, align 4, !tbaa !9
  %333 = add i32 %332, %331
  store i32 %333, ptr %17, align 4, !tbaa !9
  %334 = load ptr, ptr %6, align 8, !tbaa !5
  %335 = load i32, ptr %14, align 4, !tbaa !9
  %336 = load i32, ptr %15, align 4, !tbaa !9
  %337 = load i32, ptr %16, align 4, !tbaa !9
  %338 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %334, i32 noundef %335, i32 noundef %336, i32 noundef %337, i32 noundef %338)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

339:                                              ; preds = %283
  %340 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 8, 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
  ret i32 %340
}

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 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 void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AEnvironment0x3A0x3AEnvironment0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AEnvironment0x3E0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %1 to i64
  %8 = add nuw nsw i64 %7, 4
  tail call void @i32_store16(ptr noundef nonnull %6, i64 noundef %8, i32 noundef 52753)
  %9 = zext i32 %3 to i64
  %10 = add nuw nsw i64 %9, 4
  %11 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %10)
  %12 = zext i32 %11 to i64
  %13 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %12)
  %14 = icmp ugt i64 %13, -281474976710657
  br i1 %14, label %15, label %52

15:                                               ; preds = %5
  %16 = add i32 %1, 12
  %17 = trunc i64 %13 to i32
  %18 = zext i32 %16 to i64
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %18, i32 noundef %17)
  %19 = add i32 %2, 808
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %22, label %20

20:                                               ; preds = %15
  %21 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AvalidPointer0x28void0x20const0x2A0x290x20const(ptr noundef %0, i32 noundef %19, i32 noundef %17)
  %.not198 = icmp eq i32 %21, 0
  br i1 %.not198, label %53, label %22

22:                                               ; preds = %20, %15
  %23 = add i32 %2, 1396
  %24 = zext i32 %23 to i64
  %25 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %24)
  %26 = and i32 %16, -4194304
  %.not199 = icmp eq i32 %25, %26
  br i1 %.not199, label %28, label %27

27:                                               ; preds = %22
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3ArelocationWriteBarrier0x28void0x20const0x2A0x2C0x20void0x20const0x2A0x29(ptr noundef %0, i32 noundef %19, i32 noundef %16, i32 noundef %17)
  br label %28

28:                                               ; preds = %27, %22
  %29 = add nuw nsw i64 %7, 16
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %29, i32 noundef %4)
  %.not200 = icmp eq i32 %4, 0
  br i1 %.not200, label %.loopexit, label %30

30:                                               ; preds = %28
  %31 = add i32 %1, 24
  %32 = and i32 %4, 7
  %.not201 = icmp eq i32 %32, 0
  br i1 %.not201, label %.loopexit204, label %.preheader

.preheader:                                       ; preds = %30, %.preheader
  %.0194 = phi i32 [ %35, %.preheader ], [ 0, %30 ]
  %.0 = phi i32 [ %34, %.preheader ], [ %31, %30 ]
  %33 = zext i32 %.0 to i64
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %33, i64 noundef -1688849860263936)
  %34 = add i32 %.0, 8
  %35 = add nuw nsw i32 %.0194, 1
  %.not202 = icmp eq i32 %35, %32
  br i1 %.not202, label %.loopexit204, label %.preheader

.loopexit204:                                     ; preds = %.preheader, %30
  %.1 = phi i32 [ %31, %30 ], [ %34, %.preheader ]
  %36 = add i32 %4, 536870911
  %37 = and i32 %36, 536870911
  %38 = icmp ult i32 %37, 7
  br i1 %38, label %.loopexit, label %39

39:                                               ; preds = %.loopexit204
  %40 = shl i32 %4, 3
  %41 = add i32 %40, %31
  br label %42

42:                                               ; preds = %42, %39
  %.2 = phi i32 [ %.1, %39 ], [ %51, %42 ]
  %43 = zext i32 %.2 to i64
  %44 = add nuw nsw i64 %43, 56
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %44, i64 noundef -1688849860263936)
  %45 = add nuw nsw i64 %43, 48
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %45, i64 noundef -1688849860263936)
  %46 = add nuw nsw i64 %43, 40
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %46, i64 noundef -1688849860263936)
  %47 = add nuw nsw i64 %43, 32
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %47, i64 noundef -1688849860263936)
  %48 = add nuw nsw i64 %43, 24
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %48, i64 noundef -1688849860263936)
  %49 = add nuw nsw i64 %43, 16
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %49, i64 noundef -1688849860263936)
  %50 = add nuw nsw i64 %43, 8
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %50, i64 noundef -1688849860263936)
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %43, i64 noundef -1688849860263936)
  %51 = add i32 %.2, 64
  %.not203 = icmp eq i32 %51, %41
  br i1 %.not203, label %.loopexit, label %42

.loopexit:                                        ; preds = %42, %.loopexit204, %28
  ret i32 %1

52:                                               ; preds = %5
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118124, i32 noundef 83341, i32 noundef 480, i32 noundef 38798) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

53:                                               ; preds = %20
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 147550, i32 noundef 83763, i32 noundef 28, i32 noundef 92238) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

attributes #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 = { 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 #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 = { nounwind }
attributes #5 = { 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: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass