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

; 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 i32 @i32_load8_u(ptr noundef, i64 noundef) #1

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; 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 i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) #2

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

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

48:                                               ; preds = %5
  %49 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %49, ptr %17, align 8, !tbaa !11
  %50 = load i64, ptr %17, align 8, !tbaa !11
  %51 = trunc i64 %50 to i32
  store i32 %51, ptr %13, align 4, !tbaa !9
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %13, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = add i64 %55, 3
  %57 = call i32 @i32_load8_u(ptr noundef %53, i64 noundef %56)
  store i32 %57, ptr %13, align 4, !tbaa !9
  store i32 24, ptr %14, align 4, !tbaa !9
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = and i32 %58, 31
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = shl i32 %60, %59
  store i32 %61, ptr %13, align 4, !tbaa !9
  store i32 889192448, ptr %14, align 4, !tbaa !9
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = icmp eq i32 %62, %63
  %65 = zext i1 %64 to i32
  store i32 %65, ptr %13, align 4, !tbaa !9
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %48
  br label %77

69:                                               ; preds = %48
  br label %70

70:                                               ; preds = %69, %5
  store i32 67200, ptr %13, align 4, !tbaa !9
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %13, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = call i64 @i64_load(ptr noundef %72, i64 noundef %74)
  store i64 %75, ptr %17, align 8, !tbaa !11
  %76 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %76, ptr %12, align 8, !tbaa !11
  br label %77

77:                                               ; preds = %70, %68
  %78 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %78, ptr %17, align 8, !tbaa !11
  store i64 4294967295, ptr %18, align 8, !tbaa !11
  %79 = load i64, ptr %18, align 8, !tbaa !11
  %80 = load i64, ptr %17, align 8, !tbaa !11
  %81 = and i64 %80, %79
  store i64 %81, ptr %17, align 8, !tbaa !11
  store i64 0, ptr %18, align 8, !tbaa !11
  %82 = load i64, ptr %17, align 8, !tbaa !11
  %83 = load i64, ptr %18, align 8, !tbaa !11
  %84 = icmp ne i64 %82, %83
  %85 = zext i1 %84 to i32
  store i32 %85, ptr %13, align 4, !tbaa !9
  %86 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %86, ptr %18, align 8, !tbaa !11
  store i64 -844424930131968, ptr %19, align 8, !tbaa !11
  %87 = load i64, ptr %18, align 8, !tbaa !11
  %88 = load i64, ptr %19, align 8, !tbaa !11
  %89 = icmp uge i64 %87, %88
  %90 = zext i1 %89 to i32
  store i32 %90, ptr %14, align 4, !tbaa !9
  %91 = load i32, ptr %14, align 4, !tbaa !9
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = and i32 %92, %91
  store i32 %93, ptr %13, align 4, !tbaa !9
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  %96 = xor i1 %95, true
  %97 = zext i1 %96 to i32
  store i32 %97, ptr %13, align 4, !tbaa !9
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %144

100:                                              ; preds = %77
  %101 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %101, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.w2c_hermes, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = add i64 %105, 40
  %107 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %103, i64 noundef %106, i32 noundef %107)
  %108 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %108, ptr %13, align 4, !tbaa !9
  store i64 231928233985, ptr %18, align 8, !tbaa !11
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, 32
  %114 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %110, i64 noundef %113, i64 noundef %114)
  %115 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %115, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = add i64 %119, 16
  %121 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %117, i64 noundef %120, i32 noundef %121)
  %122 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %122, ptr %13, align 4, !tbaa !9
  store i32 31729, ptr %14, align 4, !tbaa !9
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = add i64 %126, 8
  %128 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %124, i64 noundef %127, i32 noundef %128)
  %129 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %129, ptr %13, align 4, !tbaa !9
  %130 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %130, ptr %14, align 4, !tbaa !9
  %131 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %131, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %132 = load i32, ptr %16, align 4, !tbaa !9
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = add i32 %133, %132
  store i32 %134, ptr %15, align 4, !tbaa !9
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = load i32, ptr %14, align 4, !tbaa !9
  %137 = load i32, ptr %15, align 4, !tbaa !9
  %138 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %135, i32 noundef %136, i32 noundef %137)
  store i32 %138, ptr %14, align 4, !tbaa !9
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.w2c_hermes, ptr %139, i32 0, i32 6
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %140, i64 noundef %142, i32 noundef %143)
  br label %296

144:                                              ; preds = %77
  %145 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %145, ptr %17, align 8, !tbaa !11
  %146 = load i64, ptr %17, align 8, !tbaa !11
  %147 = trunc i64 %146 to i32
  store i32 %147, ptr %13, align 4, !tbaa !9
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 6
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = add i64 %151, 20
  %153 = call i32 @i32_load(ptr noundef %149, i64 noundef %152)
  store i32 %153, ptr %13, align 4, !tbaa !9
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.w2c_hermes, ptr %154, i32 0, i32 6
  %156 = load i32, ptr %13, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = call i32 @i32_load(ptr noundef %155, i64 noundef %157)
  store i32 %158, ptr %13, align 4, !tbaa !9
  %159 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %159, ptr %10, align 4, !tbaa !9
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %177

162:                                              ; preds = %144
  %163 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %163, ptr %13, align 4, !tbaa !9
  store i32 808, ptr %14, align 4, !tbaa !9
  %164 = load i32, ptr %14, align 4, !tbaa !9
  %165 = load i32, ptr %13, align 4, !tbaa !9
  %166 = add i32 %165, %164
  store i32 %166, ptr %13, align 4, !tbaa !9
  %167 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %167, ptr %14, align 4, !tbaa !9
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = load i32, ptr %13, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AweakRefReadBarrier0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x29(ptr noundef %168, i32 noundef %169, i32 noundef %170)
  %171 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %171, ptr %13, align 4, !tbaa !9
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  store i64 %173, ptr %17, align 8, !tbaa !11
  store i64 -281474976710656, ptr %18, align 8, !tbaa !11
  %174 = load i64, ptr %18, align 8, !tbaa !11
  %175 = load i64, ptr %17, align 8, !tbaa !11
  %176 = or i64 %175, %174
  store i64 %176, ptr %17, align 8, !tbaa !11
  br label %178

177:                                              ; preds = %144
  store i64 -1688849860263936, ptr %17, align 8, !tbaa !11
  br label %178

178:                                              ; preds = %177, %162
  %179 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %179, ptr %12, align 8, !tbaa !11
  store i64 47, ptr %18, align 8, !tbaa !11
  %180 = load i64, ptr %17, align 8, !tbaa !11
  %181 = load i64, ptr %18, align 8, !tbaa !11
  %182 = and i64 %181, 63
  %183 = ashr i64 %180, %182
  store i64 %183, ptr %17, align 8, !tbaa !11
  %184 = load i64, ptr %17, align 8, !tbaa !11
  %185 = trunc i64 %184 to i32
  store i32 %185, ptr %13, align 4, !tbaa !9
  store i32 -12, ptr %14, align 4, !tbaa !9
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = load i32, ptr %14, align 4, !tbaa !9
  %188 = icmp eq i32 %186, %187
  %189 = zext i1 %188 to i32
  store i32 %189, ptr %13, align 4, !tbaa !9
  %190 = load i32, ptr %13, align 4, !tbaa !9
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %192, label %207

192:                                              ; preds = %178
  %193 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %193, ptr %13, align 4, !tbaa !9
  %194 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %194, ptr %18, align 8, !tbaa !11
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.w2c_hermes, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %13, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = add i64 %198, 8
  %200 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %196, i64 noundef %199, i64 noundef %200)
  %201 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %201, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.w2c_hermes, ptr %202, i32 0, i32 6
  %204 = load i32, ptr %13, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %203, i64 noundef %205, i32 noundef %206)
  br label %296

207:                                              ; preds = %178
  %208 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %208, ptr %17, align 8, !tbaa !11
  store i64 4294967295, ptr %18, align 8, !tbaa !11
  %209 = load i64, ptr %18, align 8, !tbaa !11
  %210 = load i64, ptr %17, align 8, !tbaa !11
  %211 = and i64 %210, %209
  store i64 %211, ptr %17, align 8, !tbaa !11
  store i64 -281474976710656, ptr %18, align 8, !tbaa !11
  %212 = load i64, ptr %18, align 8, !tbaa !11
  %213 = load i64, ptr %17, align 8, !tbaa !11
  %214 = or i64 %213, %212
  store i64 %214, ptr %17, align 8, !tbaa !11
  %215 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %215, ptr %12, align 8, !tbaa !11
  %216 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %216, ptr %13, align 4, !tbaa !9
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.w2c_hermes, ptr %217, i32 0, i32 6
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = add i64 %220, 4
  %222 = call i32 @i32_load(ptr noundef %218, i64 noundef %221)
  store i32 %222, ptr %13, align 4, !tbaa !9
  %223 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %223, ptr %11, align 4, !tbaa !9
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.w2c_hermes, ptr %224, i32 0, i32 6
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = zext i32 %226 to i64
  %228 = add i64 %227, 164
  %229 = call i32 @i32_load(ptr noundef %225, i64 noundef %228)
  store i32 %229, ptr %13, align 4, !tbaa !9
  %230 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %230, ptr %10, align 4, !tbaa !9
  %231 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %231, ptr %14, align 4, !tbaa !9
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.w2c_hermes, ptr %232, i32 0, i32 6
  %234 = load i32, ptr %14, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = add i64 %235, 168
  %237 = call i32 @i32_load(ptr noundef %233, i64 noundef %236)
  store i32 %237, ptr %14, align 4, !tbaa !9
  %238 = load i32, ptr %13, align 4, !tbaa !9
  %239 = load i32, ptr %14, align 4, !tbaa !9
  %240 = icmp ult i32 %238, %239
  %241 = zext i1 %240 to i32
  store i32 %241, ptr %13, align 4, !tbaa !9
  %242 = load i32, ptr %13, align 4, !tbaa !9
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %263

244:                                              ; preds = %207
  %245 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %245, ptr %13, align 4, !tbaa !9
  %246 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %246, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %247 = load i32, ptr %15, align 4, !tbaa !9
  %248 = load i32, ptr %14, align 4, !tbaa !9
  %249 = add i32 %248, %247
  store i32 %249, ptr %14, align 4, !tbaa !9
  %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 %13, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = add i64 %253, 164
  %255 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %251, i64 noundef %254, i32 noundef %255)
  %256 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %256, ptr %13, align 4, !tbaa !9
  %257 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %257, ptr %18, align 8, !tbaa !11
  %258 = load ptr, ptr %6, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.w2c_hermes, ptr %258, i32 0, i32 6
  %260 = load i32, ptr %13, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %259, i64 noundef %261, i64 noundef %262)
  br label %271

263:                                              ; preds = %207
  %264 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %264, ptr %13, align 4, !tbaa !9
  %265 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %265, ptr %18, align 8, !tbaa !11
  %266 = load ptr, ptr %6, align 8, !tbaa !5
  %267 = load i32, ptr %13, align 4, !tbaa !9
  %268 = load i64, ptr %18, align 8, !tbaa !11
  %269 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %266, i32 noundef %267, i64 noundef %268)
  store i32 %269, ptr %13, align 4, !tbaa !9
  %270 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %270, ptr %10, align 4, !tbaa !9
  br label %271

271:                                              ; preds = %263, %244
  %272 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %272, ptr %13, align 4, !tbaa !9
  %273 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %273, ptr %14, align 4, !tbaa !9
  %274 = load ptr, ptr %6, align 8, !tbaa !5
  %275 = load i32, ptr %13, align 4, !tbaa !9
  %276 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AaddToKeptObjects0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x29(ptr noundef %274, i32 noundef %275, i32 noundef %276)
  %277 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %277, ptr %13, align 4, !tbaa !9
  %278 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %278, ptr %14, align 4, !tbaa !9
  %279 = load ptr, ptr %6, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.w2c_hermes, ptr %279, i32 0, i32 6
  %281 = load i32, ptr %14, align 4, !tbaa !9
  %282 = zext i32 %281 to i64
  %283 = call i64 @i64_load(ptr noundef %280, i64 noundef %282)
  store i64 %283, ptr %18, align 8, !tbaa !11
  %284 = load ptr, ptr %6, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.w2c_hermes, ptr %284, i32 0, i32 6
  %286 = load i32, ptr %13, align 4, !tbaa !9
  %287 = zext i32 %286 to i64
  %288 = add i64 %287, 8
  %289 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %285, i64 noundef %288, i64 noundef %289)
  %290 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %290, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %291 = load ptr, ptr %6, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.w2c_hermes, ptr %291, i32 0, i32 6
  %293 = load i32, ptr %13, align 4, !tbaa !9
  %294 = zext i32 %293 to i64
  %295 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %292, i64 noundef %294, i32 noundef %295)
  br label %296

296:                                              ; preds = %271, %192, %100
  %297 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %297, ptr %13, align 4, !tbaa !9
  store i32 48, ptr %14, align 4, !tbaa !9
  %298 = load i32, ptr %14, align 4, !tbaa !9
  %299 = load i32, ptr %13, align 4, !tbaa !9
  %300 = add i32 %299, %298
  store i32 %300, ptr %13, align 4, !tbaa !9
  %301 = load i32, ptr %13, align 4, !tbaa !9
  %302 = load ptr, ptr %6, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.w2c_hermes, ptr %302, i32 0, i32 3
  store i32 %301, ptr %303, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  ret void
}

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

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

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

!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}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


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

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

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

; Function Attrs: 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 i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AweakRefPrototypeDeref0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -48
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %4 to i64
  %11 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %12 = zext i32 %11 to i64
  %13 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %12)
  %14 = icmp ugt i64 %13, -844424930131969
  br i1 %14, label %15, label %20

15:                                               ; preds = %5
  %16 = and i64 %13, 4294967295
  %17 = add nuw nsw i64 %16, 3
  %18 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %17)
  %.mask = and i32 %18, 255
  %19 = icmp eq i32 %.mask, 53
  br i1 %19, label %23, label %20

20:                                               ; preds = %15, %5
  %21 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef 67200)
  %.pre = and i64 %21, 4294967295
  %22 = icmp ult i64 %21, -844424930131968
  br label %23

23:                                               ; preds = %15, %20
  %.pre-phi = phi i64 [ %16, %15 ], [ %.pre, %20 ]
  %.0159 = phi i1 [ false, %15 ], [ %22, %20 ]
  %24 = icmp eq i64 %.pre-phi, 0
  %.not164 = or i1 %.0159, %24
  br i1 %.not164, label %25, label %34

25:                                               ; preds = %23
  %26 = zext i32 %8 to i64
  %27 = add nuw nsw i64 %26, 40
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %27, i32 noundef 0)
  %28 = add nuw nsw i64 %26, 32
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %28, i64 noundef 231928233985)
  %29 = add nuw nsw i64 %26, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %29, i32 noundef 3)
  %30 = add nuw nsw i64 %26, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %30, i32 noundef 31729)
  %31 = add i32 %7, -40
  %32 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %31) #3
  %33 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %33, i32 noundef %32)
  br label %63

34:                                               ; preds = %23
  %35 = add nuw nsw i64 %.pre-phi, 20
  %36 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %35)
  %37 = zext i32 %36 to i64
  %38 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %37)
  %.not = icmp eq i32 %38, 0
  br i1 %.not, label %.thread, label %39

39:                                               ; preds = %34
  %40 = add i32 %3, 808
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AweakRefReadBarrier0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x29(ptr noundef nonnull %0, i32 noundef %40, i32 noundef %38) #3
  %41 = zext i32 %38 to i64
  %42 = or disjoint i64 %41, -281474976710656
  %43 = zext i32 %3 to i64
  %44 = add nuw nsw i64 %43, 4
  %45 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %44)
  %46 = zext i32 %45 to i64
  %47 = add nuw nsw i64 %46, 164
  %48 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %47)
  %49 = add nuw nsw i64 %46, 168
  %50 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %49)
  %51 = icmp ult i32 %48, %50
  br i1 %51, label %54, label %57

.thread:                                          ; preds = %34
  %52 = zext i32 %1 to i64
  %53 = add nuw nsw i64 %52, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %53, i64 noundef -1688849860263936)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %52, i32 noundef 1)
  br label %63

54:                                               ; preds = %39
  %55 = add i32 %48, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %47, i32 noundef %55)
  %56 = zext i32 %48 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %56, i64 noundef %42)
  br label %59

57:                                               ; preds = %39
  %58 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef nonnull %0, i32 noundef %45, i64 noundef %42) #3
  %.pre169 = zext i32 %58 to i64
  br label %59

59:                                               ; preds = %57, %54
  %.pre-phi170 = phi i64 [ %.pre169, %57 ], [ %56, %54 ]
  %.0158 = phi i32 [ %58, %57 ], [ %48, %54 ]
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AaddToKeptObjects0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %.0158) #3
  %60 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %.pre-phi170)
  %61 = zext i32 %1 to i64
  %62 = add nuw nsw i64 %61, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %62, i64 noundef %60)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %61, i32 noundef 1)
  br label %63

63:                                               ; preds = %59, %.thread, %25
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

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

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

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

!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, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass