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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 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 i32 @i32_load16_u(ptr noundef, i64 noundef) #1

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

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

52:                                               ; preds = %5
  br label %97

53:                                               ; preds = %5
  %54 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %54, ptr %15, align 4, !tbaa !9
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = call i32 @i32_load(ptr noundef %56, i64 noundef %58)
  store i32 %59, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %60 = load i32, ptr %16, align 4, !tbaa !9
  %61 = load i32, ptr %15, align 4, !tbaa !9
  %62 = sub i32 %61, %60
  store i32 %62, ptr %15, align 4, !tbaa !9
  %63 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %63, ptr %12, align 4, !tbaa !9
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = call i64 @i64_load(ptr noundef %65, i64 noundef %67)
  store i64 %68, ptr %24, align 8, !tbaa !11
  %69 = load i64, ptr %24, align 8, !tbaa !11
  store i64 %69, ptr %14, align 8, !tbaa !11
  store i64 -844424930131968, ptr %25, align 8, !tbaa !11
  %70 = load i64, ptr %24, align 8, !tbaa !11
  %71 = load i64, ptr %25, align 8, !tbaa !11
  %72 = icmp ult i64 %70, %71
  %73 = zext i1 %72 to i32
  store i32 %73, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %53
  br label %97

77:                                               ; preds = %53
  %78 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %78, ptr %24, align 8, !tbaa !11
  %79 = load i64, ptr %24, align 8, !tbaa !11
  %80 = trunc i64 %79 to i32
  store i32 %80, ptr %15, align 4, !tbaa !9
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.w2c_hermes, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = call i32 @i32_load(ptr noundef %82, i64 noundef %84)
  store i32 %85, ptr %15, align 4, !tbaa !9
  store i32 436207616, ptr %16, align 4, !tbaa !9
  %86 = load i32, ptr %16, align 4, !tbaa !9
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = sub i32 %87, %86
  store i32 %88, ptr %15, align 4, !tbaa !9
  store i32 855638016, ptr %16, align 4, !tbaa !9
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = icmp ult i32 %89, %90
  %92 = zext i1 %91 to i32
  store i32 %92, ptr %15, align 4, !tbaa !9
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %77
  br label %105

96:                                               ; preds = %77
  br label %97

97:                                               ; preds = %96, %76, %52
  store i32 67200, ptr %15, align 4, !tbaa !9
  %98 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %98, ptr %12, align 4, !tbaa !9
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.w2c_hermes, ptr %99, i32 0, i32 6
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = call i64 @i64_load(ptr noundef %100, i64 noundef %102)
  store i64 %103, ptr %24, align 8, !tbaa !11
  %104 = load i64, ptr %24, align 8, !tbaa !11
  store i64 %104, ptr %14, align 8, !tbaa !11
  br label %105

105:                                              ; preds = %97, %95
  %106 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %106, ptr %24, align 8, !tbaa !11
  store i64 4294967295, ptr %25, align 8, !tbaa !11
  %107 = load i64, ptr %25, align 8, !tbaa !11
  %108 = load i64, ptr %24, align 8, !tbaa !11
  %109 = and i64 %108, %107
  store i64 %109, ptr %24, align 8, !tbaa !11
  store i64 0, ptr %25, align 8, !tbaa !11
  %110 = load i64, ptr %24, align 8, !tbaa !11
  %111 = load i64, ptr %25, align 8, !tbaa !11
  %112 = icmp ne i64 %110, %111
  %113 = zext i1 %112 to i32
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %114, ptr %25, align 8, !tbaa !11
  store i64 -844424930131968, ptr %26, align 8, !tbaa !11
  %115 = load i64, ptr %25, align 8, !tbaa !11
  %116 = load i64, ptr %26, align 8, !tbaa !11
  %117 = icmp uge i64 %115, %116
  %118 = zext i1 %117 to i32
  store i32 %118, ptr %16, align 4, !tbaa !9
  %119 = load i32, ptr %16, align 4, !tbaa !9
  %120 = load i32, ptr %15, align 4, !tbaa !9
  %121 = and i32 %120, %119
  store i32 %121, ptr %15, align 4, !tbaa !9
  %122 = load i32, ptr %15, align 4, !tbaa !9
  %123 = icmp ne i32 %122, 0
  %124 = xor i1 %123, true
  %125 = zext i1 %124 to i32
  store i32 %125, ptr %15, align 4, !tbaa !9
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %172

128:                                              ; preds = %105
  %129 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %129, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = add i64 %133, 56
  %135 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %131, i64 noundef %134, i32 noundef %135)
  %136 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %136, ptr %15, align 4, !tbaa !9
  store i64 98784247809, ptr %25, align 8, !tbaa !11
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = add i64 %140, 48
  %142 = load i64, ptr %25, align 8, !tbaa !11
  call void @i64_store(ptr noundef %138, i64 noundef %141, i64 noundef %142)
  %143 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %143, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.w2c_hermes, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %15, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = add i64 %147, 32
  %149 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %145, i64 noundef %148, i32 noundef %149)
  %150 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %150, ptr %15, align 4, !tbaa !9
  store i32 31206, ptr %16, align 4, !tbaa !9
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %15, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 24
  %156 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %152, i64 noundef %155, i32 noundef %156)
  %157 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %157, ptr %15, align 4, !tbaa !9
  %158 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %158, ptr %16, align 4, !tbaa !9
  %159 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %159, ptr %17, align 4, !tbaa !9
  store i32 24, ptr %18, align 4, !tbaa !9
  %160 = load i32, ptr %18, align 4, !tbaa !9
  %161 = load i32, ptr %17, align 4, !tbaa !9
  %162 = add i32 %161, %160
  store i32 %162, ptr %17, align 4, !tbaa !9
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = load i32, ptr %16, align 4, !tbaa !9
  %165 = load i32, ptr %17, align 4, !tbaa !9
  %166 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %163, i32 noundef %164, i32 noundef %165)
  store i32 %166, ptr %16, align 4, !tbaa !9
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.w2c_hermes, ptr %167, i32 0, i32 6
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %168, i64 noundef %170, i32 noundef %171)
  br label %306

172:                                              ; preds = %105
  %173 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %173, ptr %15, align 4, !tbaa !9
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 6
  %176 = load i32, ptr %15, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = call i32 @i32_load(ptr noundef %175, i64 noundef %177)
  store i32 %178, ptr %15, align 4, !tbaa !9
  %179 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %179, ptr %10, align 4, !tbaa !9
  %180 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %180, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.w2c_hermes, ptr %181, i32 0, i32 6
  %183 = load i32, ptr %15, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = add i64 %184, 12
  %186 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %182, i64 noundef %185, i32 noundef %186)
  %187 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %187, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.w2c_hermes, ptr %188, i32 0, i32 6
  %190 = load i32, ptr %15, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = add i64 %191, 16
  %193 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %189, i64 noundef %192, i32 noundef %193)
  %194 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %194, ptr %15, align 4, !tbaa !9
  store i32 20, ptr %16, align 4, !tbaa !9
  %195 = load i32, ptr %16, align 4, !tbaa !9
  %196 = load i32, ptr %15, align 4, !tbaa !9
  %197 = add i32 %196, %195
  store i32 %197, ptr %15, align 4, !tbaa !9
  %198 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %198, ptr %16, align 4, !tbaa !9
  %199 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %199, ptr %17, align 4, !tbaa !9
  store i32 67208, ptr %18, align 4, !tbaa !9
  %200 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %200, ptr %19, align 4, !tbaa !9
  store i32 16, ptr %20, align 4, !tbaa !9
  %201 = load i32, ptr %20, align 4, !tbaa !9
  %202 = load i32, ptr %19, align 4, !tbaa !9
  %203 = sub i32 %202, %201
  store i32 %203, ptr %19, align 4, !tbaa !9
  %204 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %204, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %205 = load i32, ptr %20, align 4, !tbaa !9
  %206 = load i32, ptr %21, align 4, !tbaa !9
  %207 = icmp ule i32 %205, %206
  %208 = zext i1 %207 to i32
  store i32 %208, ptr %20, align 4, !tbaa !9
  %209 = load i32, ptr %20, align 4, !tbaa !9
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %213

211:                                              ; preds = %172
  %212 = load i32, ptr %18, align 4, !tbaa !9
  br label %215

213:                                              ; preds = %172
  %214 = load i32, ptr %19, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %213, %211
  %216 = phi i32 [ %212, %211 ], [ %214, %213 ]
  store i32 %216, ptr %18, align 4, !tbaa !9
  store i32 67208, ptr %19, align 4, !tbaa !9
  %217 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %217, ptr %20, align 4, !tbaa !9
  store i32 24, ptr %21, align 4, !tbaa !9
  %218 = load i32, ptr %21, align 4, !tbaa !9
  %219 = load i32, ptr %20, align 4, !tbaa !9
  %220 = sub i32 %219, %218
  store i32 %220, ptr %20, align 4, !tbaa !9
  %221 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %221, ptr %21, align 4, !tbaa !9
  store i32 2, ptr %22, align 4, !tbaa !9
  %222 = load i32, ptr %21, align 4, !tbaa !9
  %223 = load i32, ptr %22, align 4, !tbaa !9
  %224 = icmp ule i32 %222, %223
  %225 = zext i1 %224 to i32
  store i32 %225, ptr %21, align 4, !tbaa !9
  %226 = load i32, ptr %21, align 4, !tbaa !9
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %230

228:                                              ; preds = %215
  %229 = load i32, ptr %19, align 4, !tbaa !9
  br label %232

230:                                              ; preds = %215
  %231 = load i32, ptr %20, align 4, !tbaa !9
  br label %232

232:                                              ; preds = %230, %228
  %233 = phi i32 [ %229, %228 ], [ %231, %230 ]
  store i32 %233, ptr %19, align 4, !tbaa !9
  %234 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %234, ptr %20, align 4, !tbaa !9
  store i32 32, ptr %21, align 4, !tbaa !9
  %235 = load i32, ptr %21, align 4, !tbaa !9
  %236 = load i32, ptr %20, align 4, !tbaa !9
  %237 = sub i32 %236, %235
  store i32 %237, ptr %20, align 4, !tbaa !9
  %238 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %238, ptr %21, align 4, !tbaa !9
  %239 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %239, ptr %22, align 4, !tbaa !9
  store i32 3, ptr %23, align 4, !tbaa !9
  %240 = load i32, ptr %22, align 4, !tbaa !9
  %241 = load i32, ptr %23, align 4, !tbaa !9
  %242 = icmp ugt i32 %240, %241
  %243 = zext i1 %242 to i32
  store i32 %243, ptr %22, align 4, !tbaa !9
  %244 = load i32, ptr %22, align 4, !tbaa !9
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %248

246:                                              ; preds = %232
  %247 = load i32, ptr %20, align 4, !tbaa !9
  br label %250

248:                                              ; preds = %232
  %249 = load i32, ptr %21, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %248, %246
  %251 = phi i32 [ %247, %246 ], [ %249, %248 ]
  store i32 %251, ptr %20, align 4, !tbaa !9
  %252 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %252, ptr %21, align 4, !tbaa !9
  store i32 12, ptr %22, align 4, !tbaa !9
  %253 = load i32, ptr %22, align 4, !tbaa !9
  %254 = load i32, ptr %21, align 4, !tbaa !9
  %255 = add i32 %254, %253
  store i32 %255, ptr %21, align 4, !tbaa !9
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = load i32, ptr %15, align 4, !tbaa !9
  %258 = load i32, ptr %16, align 4, !tbaa !9
  %259 = load i32, ptr %17, align 4, !tbaa !9
  %260 = load i32, ptr %18, align 4, !tbaa !9
  %261 = load i32, ptr %19, align 4, !tbaa !9
  %262 = load i32, ptr %20, align 4, !tbaa !9
  %263 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AputComputedWithReceiver_RJS0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3APropOpFlags0x29(ptr noundef %256, i32 noundef %257, i32 noundef %258, i32 noundef %259, i32 noundef %260, i32 noundef %261, i32 noundef %262, i32 noundef %263)
  %264 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %264, ptr %15, align 4, !tbaa !9
  %265 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %265, ptr %16, align 4, !tbaa !9
  %266 = load ptr, ptr %6, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.w2c_hermes, ptr %266, i32 0, i32 6
  %268 = load i32, ptr %16, align 4, !tbaa !9
  %269 = zext i32 %268 to i64
  %270 = add i64 %269, 20
  %271 = call i32 @i32_load16_u(ptr noundef %267, i64 noundef %270)
  store i32 %271, ptr %16, align 4, !tbaa !9
  %272 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %272, ptr %9, align 4, !tbaa !9
  store i32 255, ptr %17, align 4, !tbaa !9
  %273 = load i32, ptr %17, align 4, !tbaa !9
  %274 = load i32, ptr %16, align 4, !tbaa !9
  %275 = and i32 %274, %273
  store i32 %275, ptr %16, align 4, !tbaa !9
  %276 = load i32, ptr %16, align 4, !tbaa !9
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %299

278:                                              ; preds = %250
  %279 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %279, ptr %16, align 4, !tbaa !9
  %280 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %280, ptr %17, align 4, !tbaa !9
  store i32 8, ptr %18, align 4, !tbaa !9
  %281 = load i32, ptr %18, align 4, !tbaa !9
  %282 = and i32 %281, 31
  %283 = load i32, ptr %17, align 4, !tbaa !9
  %284 = lshr i32 %283, %282
  store i32 %284, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %285 = load i32, ptr %18, align 4, !tbaa !9
  %286 = load i32, ptr %17, align 4, !tbaa !9
  %287 = and i32 %286, %285
  store i32 %287, ptr %17, align 4, !tbaa !9
  %288 = load i32, ptr %17, align 4, !tbaa !9
  %289 = zext i32 %288 to i64
  store i64 %289, ptr %26, align 8, !tbaa !11
  store i64 -1407374883553280, ptr %27, align 8, !tbaa !11
  %290 = load i64, ptr %27, align 8, !tbaa !11
  %291 = load i64, ptr %26, align 8, !tbaa !11
  %292 = or i64 %291, %290
  store i64 %292, ptr %26, align 8, !tbaa !11
  %293 = load ptr, ptr %6, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.w2c_hermes, ptr %293, i32 0, i32 6
  %295 = load i32, ptr %16, align 4, !tbaa !9
  %296 = zext i32 %295 to i64
  %297 = add i64 %296, 8
  %298 = load i64, ptr %26, align 8, !tbaa !11
  call void @i64_store(ptr noundef %294, i64 noundef %297, i64 noundef %298)
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %300

299:                                              ; preds = %250
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %300

300:                                              ; preds = %299, %278
  %301 = load ptr, ptr %6, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.w2c_hermes, ptr %301, i32 0, i32 6
  %303 = load i32, ptr %15, align 4, !tbaa !9
  %304 = zext i32 %303 to i64
  %305 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %302, i64 noundef %304, i32 noundef %305)
  br label %306

306:                                              ; preds = %300, %128
  %307 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %307, ptr %15, align 4, !tbaa !9
  store i32 -64, ptr %16, align 4, !tbaa !9
  %308 = load i32, ptr %16, align 4, !tbaa !9
  %309 = load i32, ptr %15, align 4, !tbaa !9
  %310 = sub i32 %309, %308
  store i32 %310, ptr %15, align 4, !tbaa !9
  %311 = load i32, ptr %15, align 4, !tbaa !9
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.w2c_hermes, ptr %312, i32 0, i32 3
  store i32 %311, ptr %313, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  ret void
}

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

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

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

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_hermes0x3A0x3Avm0x3A0x3AreflectSet0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(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, -64
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %4 to i64
  %11 = add nuw nsw i64 %10, 4
  %12 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %24, label %13

13:                                               ; preds = %5
  %14 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %15 = add i32 %14, -8
  %16 = zext i32 %15 to i64
  %17 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %16)
  %18 = icmp ult i64 %17, -844424930131968
  br i1 %18, label %24, label %19

19:                                               ; preds = %13
  %20 = and i64 %17, 4294967295
  %21 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %20)
  %22 = add i32 %21, -436207616
  %23 = icmp ult i32 %22, 855638016
  br i1 %23, label %27, label %24

24:                                               ; preds = %19, %13, %5
  %25 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef 67200)
  %.pre = and i64 %25, 4294967295
  %26 = icmp ult i64 %25, -844424930131968
  br label %27

27:                                               ; preds = %19, %24
  %.pre-phi = phi i64 [ %20, %19 ], [ %.pre, %24 ]
  %.0159 = phi i1 [ false, %19 ], [ %26, %24 ]
  %.0 = phi i32 [ %15, %19 ], [ 67200, %24 ]
  %28 = icmp eq i64 %.pre-phi, 0
  %.not164 = or i1 %.0159, %28
  br i1 %.not164, label %29, label %38

29:                                               ; preds = %27
  %30 = zext i32 %8 to i64
  %31 = add nuw nsw i64 %30, 56
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %31, i32 noundef 0)
  %32 = add nuw nsw i64 %30, 48
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %32, i64 noundef 98784247809)
  %33 = add nuw nsw i64 %30, 32
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %33, i32 noundef 3)
  %34 = add nuw nsw i64 %30, 24
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %34, i32 noundef 31206)
  %35 = add i32 %7, -40
  %36 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %35) #3
  %37 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %37, i32 noundef %36)
  br label %65

38:                                               ; preds = %27
  %39 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %40 = zext i32 %8 to i64
  %41 = add nuw nsw i64 %40, 12
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %41, i32 noundef 0)
  %42 = add nuw nsw i64 %40, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %42, i32 noundef 0)
  %43 = add i32 %7, -44
  %44 = add i32 %39, -16
  %45 = icmp ult i32 %12, 2
  %46 = select i1 %45, i32 67208, i32 %44
  %47 = add i32 %39, -24
  %48 = icmp ult i32 %12, 3
  %49 = select i1 %48, i32 67208, i32 %47
  %50 = add i32 %39, -32
  %51 = icmp ugt i32 %12, 3
  %52 = select i1 %51, i32 %50, i32 %.0
  %53 = add i32 %7, -52
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AputComputedWithReceiver_RJS0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3APropOpFlags0x29(ptr noundef nonnull %0, i32 noundef %43, i32 noundef %.0, i32 noundef %3, i32 noundef %46, i32 noundef %49, i32 noundef %52, i32 noundef %53) #3
  %54 = add nuw nsw i64 %40, 20
  %55 = tail call i32 @i32_load16_u(ptr noundef nonnull %9, i64 noundef %54)
  %56 = and i32 %55, 255
  %.not165 = icmp eq i32 %56, 0
  br i1 %.not165, label %._crit_edge, label %57

._crit_edge:                                      ; preds = %38
  %.pre166 = zext i32 %1 to i64
  br label %64

57:                                               ; preds = %38
  %58 = lshr i32 %55, 8
  %59 = and i32 %58, 1
  %60 = zext nneg i32 %59 to i64
  %61 = or disjoint i64 %60, -1407374883553280
  %62 = zext i32 %1 to i64
  %63 = add nuw nsw i64 %62, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %63, i64 noundef %61)
  br label %64

64:                                               ; preds = %._crit_edge, %57
  %.pre-phi167 = phi i64 [ %.pre166, %._crit_edge ], [ %62, %57 ]
  %.0160 = phi i32 [ 0, %._crit_edge ], [ 1, %57 ]
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %.pre-phi167, i32 noundef %.0160)
  br label %65

65:                                               ; preds = %64, %29
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AputComputedWithReceiver_RJS0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3APropOpFlags0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass