; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AobjectGetPrototypeOf0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(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 ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.w2c_hermes, ptr %21, i32 0, i32 3
  %23 = load i32, ptr %22, align 8, !tbaa !13
  store i32 %23, ptr %14, align 4, !tbaa !9
  store i32 32, ptr %15, align 4, !tbaa !9
  %24 = load i32, ptr %15, align 4, !tbaa !9
  %25 = load i32, ptr %14, align 4, !tbaa !9
  %26 = sub i32 %25, %24
  store i32 %26, ptr %14, align 4, !tbaa !9
  %27 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %27, ptr %11, align 4, !tbaa !9
  %28 = load i32, 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 3
  store i32 %28, ptr %30, align 8, !tbaa !13
  %31 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %31, ptr %14, align 4, !tbaa !9
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %14, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = add i64 %35, 4
  %37 = call i32 @i32_load(ptr noundef %33, i64 noundef %36)
  store i32 %37, ptr %14, align 4, !tbaa !9
  %38 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %38, ptr %12, align 4, !tbaa !9
  %39 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %39, ptr %14, align 4, !tbaa !9
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.w2c_hermes, ptr %40, i32 0, i32 6
  %42 = load i32, ptr %14, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = call i32 @i32_load(ptr noundef %41, i64 noundef %43)
  store i32 %44, ptr %14, align 4, !tbaa !9
  %45 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %45, ptr %10, align 4, !tbaa !9
  %46 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %46, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.w2c_hermes, ptr %47, i32 0, i32 6
  %49 = load i32, ptr %14, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = add i64 %50, 8
  %52 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %48, i64 noundef %51, i32 noundef %52)
  %53 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %53, ptr %14, align 4, !tbaa !9
  %54 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %54, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %55 = load i32, ptr %16, align 4, !tbaa !9
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = sub i32 %56, %55
  store i32 %57, ptr %15, align 4, !tbaa !9
  store i32 217528, ptr %16, align 4, !tbaa !9
  %58 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %58, ptr %17, align 4, !tbaa !9
  %59 = load i32, ptr %17, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %5
  %62 = load i32, ptr %15, align 4, !tbaa !9
  br label %65

63:                                               ; preds = %5
  %64 = load i32, ptr %16, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %63, %61
  %66 = phi i32 [ %62, %61 ], [ %64, %63 ]
  store i32 %66, ptr %15, align 4, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.w2c_hermes, ptr %67, i32 0, i32 6
  %69 = load i32, ptr %14, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = add i64 %70, 12
  %72 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %68, i64 noundef %71, i32 noundef %72)
  %73 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %73, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = add i32 %75, %74
  store i32 %76, ptr %14, align 4, !tbaa !9
  %77 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %77, ptr %15, align 4, !tbaa !9
  %78 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %78, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %79 = load i32, ptr %17, align 4, !tbaa !9
  %80 = load i32, ptr %16, align 4, !tbaa !9
  %81 = add i32 %80, %79
  store i32 %81, ptr %16, align 4, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = load i32, ptr %15, align 4, !tbaa !9
  %85 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoObject0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %82, i32 noundef %83, i32 noundef %84, i32 noundef %85)
  %86 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %86, ptr %14, align 4, !tbaa !9
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.w2c_hermes, ptr %87, i32 0, i32 6
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = add i64 %90, 8
  %92 = call i32 @i32_load(ptr noundef %88, i64 noundef %91)
  store i32 %92, ptr %14, align 4, !tbaa !9
  %93 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %93, ptr %10, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %112

96:                                               ; preds = %65
  %97 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %97, ptr %14, align 4, !tbaa !9
  %98 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %98, ptr %15, 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 i32 @i32_load(ptr noundef %100, i64 noundef %102)
  store i32 %103, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %104 = load i32, ptr %16, align 4, !tbaa !9
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = sub i32 %105, %104
  store i32 %106, ptr %15, align 4, !tbaa !9
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.w2c_hermes, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %14, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %108, i64 noundef %110, i32 noundef %111)
  br label %112

112:                                              ; preds = %96, %65
  %113 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %113, ptr %14, align 4, !tbaa !9
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.w2c_hermes, ptr %114, i32 0, i32 6
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = add i64 %117, 16
  %119 = call i32 @i32_load(ptr noundef %115, i64 noundef %118)
  store i32 %119, ptr %14, align 4, !tbaa !9
  %120 = load i32, ptr %14, align 4, !tbaa !9
  switch i32 %120, label %123 [
    i32 0, label %121
    i32 1, label %122
  ]

121:                                              ; preds = %112
  br label %124

122:                                              ; preds = %112
  br label %149

123:                                              ; preds = %112
  br label %131

124:                                              ; preds = %121
  %125 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %125, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.w2c_hermes, ptr %126, i32 0, i32 6
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %127, i64 noundef %129, i32 noundef %130)
  br label %240

131:                                              ; preds = %123
  store i32 0, ptr %14, align 4, !tbaa !9
  %132 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %132, ptr %11, align 4, !tbaa !9
  store i32 109639, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %14, align 4, !tbaa !9
  %136 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %136, ptr %15, align 4, !tbaa !9
  store i32 77564, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = load i32, ptr %15, align 4, !tbaa !9
  %139 = add i32 %138, %137
  store i32 %139, ptr %15, align 4, !tbaa !9
  store i32 179, ptr %16, align 4, !tbaa !9
  %140 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %140, ptr %17, align 4, !tbaa !9
  store i32 90402, ptr %18, align 4, !tbaa !9
  %141 = load i32, ptr %18, align 4, !tbaa !9
  %142 = load i32, ptr %17, align 4, !tbaa !9
  %143 = add i32 %142, %141
  store i32 %143, ptr %17, align 4, !tbaa !9
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = load i32, ptr %14, align 4, !tbaa !9
  %146 = load i32, ptr %15, align 4, !tbaa !9
  %147 = load i32, ptr %16, align 4, !tbaa !9
  %148 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %144, i32 noundef %145, i32 noundef %146, i32 noundef %147, i32 noundef %148)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

149:                                              ; preds = %122
  %150 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %150, ptr %14, 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 %14, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 24
  %156 = call i64 @i64_load(ptr noundef %152, i64 noundef %155)
  store i64 %156, ptr %19, align 8, !tbaa !11
  %157 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %157, ptr %13, align 8, !tbaa !11
  store i64 -844424930131969, ptr %20, align 8, !tbaa !11
  %158 = load i64, ptr %19, align 8, !tbaa !11
  %159 = load i64, ptr %20, align 8, !tbaa !11
  %160 = icmp ule i64 %158, %159
  %161 = zext i1 %160 to i32
  store i32 %161, ptr %14, align 4, !tbaa !9
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %165

164:                                              ; preds = %149
  br label %248

165:                                              ; preds = %149
  %166 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %166, ptr %19, align 8, !tbaa !11
  %167 = load i64, ptr %19, align 8, !tbaa !11
  %168 = trunc i64 %167 to i32
  store i32 %168, ptr %14, align 4, !tbaa !9
  %169 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %169, ptr %10, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = icmp ne i32 %170, 0
  %172 = xor i1 %171, true
  %173 = zext i1 %172 to i32
  store i32 %173, ptr %14, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %177

176:                                              ; preds = %165
  br label %266

177:                                              ; preds = %165
  %178 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %178, ptr %14, align 4, !tbaa !9
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.w2c_hermes, ptr %179, i32 0, i32 6
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = call i32 @i32_load(ptr noundef %180, i64 noundef %182)
  store i32 %183, ptr %14, align 4, !tbaa !9
  store i32 436207616, ptr %15, align 4, !tbaa !9
  %184 = load i32, ptr %15, align 4, !tbaa !9
  %185 = load i32, ptr %14, align 4, !tbaa !9
  %186 = sub i32 %185, %184
  store i32 %186, ptr %14, align 4, !tbaa !9
  store i32 855638016, ptr %15, align 4, !tbaa !9
  %187 = load i32, ptr %14, align 4, !tbaa !9
  %188 = load i32, ptr %15, align 4, !tbaa !9
  %189 = icmp uge i32 %187, %188
  %190 = zext i1 %189 to i32
  store i32 %190, ptr %14, align 4, !tbaa !9
  %191 = load i32, ptr %14, align 4, !tbaa !9
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %194

193:                                              ; preds = %177
  br label %284

194:                                              ; preds = %177
  %195 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %195, ptr %14, align 4, !tbaa !9
  %196 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %196, ptr %15, align 4, !tbaa !9
  %197 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %197, ptr %16, align 4, !tbaa !9
  %198 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %198, ptr %17, align 4, !tbaa !9
  %199 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %199, ptr %18, align 4, !tbaa !9
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = load i32, ptr %16, align 4, !tbaa !9
  %202 = load i32, ptr %17, align 4, !tbaa !9
  %203 = load i32, ptr %18, align 4, !tbaa !9
  %204 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x29(ptr noundef %200, i32 noundef %201, i32 noundef %202, i32 noundef %203)
  store i32 %204, ptr %16, align 4, !tbaa !9
  %205 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %205, ptr %10, align 4, !tbaa !9
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = load i32, ptr %14, align 4, !tbaa !9
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AgetPrototypeOf0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x29(ptr noundef %206, i32 noundef %207, i32 noundef %208, i32 noundef %209)
  %210 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %210, ptr %14, align 4, !tbaa !9
  %211 = load ptr, ptr %6, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.w2c_hermes, ptr %211, i32 0, i32 6
  %213 = load i32, ptr %14, align 4, !tbaa !9
  %214 = zext i32 %213 to i64
  %215 = call i32 @i32_load(ptr noundef %212, i64 noundef %214)
  store i32 %215, ptr %14, align 4, !tbaa !9
  %216 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %216, ptr %9, align 4, !tbaa !9
  %217 = load i32, ptr %14, align 4, !tbaa !9
  %218 = icmp ne i32 %217, 0
  %219 = xor i1 %218, true
  %220 = zext i1 %219 to i32
  store i32 %220, ptr %14, align 4, !tbaa !9
  %221 = load i32, ptr %14, align 4, !tbaa !9
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %223, label %224

223:                                              ; preds = %194
  br label %240

224:                                              ; preds = %194
  %225 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %225, ptr %14, align 4, !tbaa !9
  %226 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %226, ptr %15, align 4, !tbaa !9
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.w2c_hermes, ptr %227, i32 0, i32 6
  %229 = load i32, ptr %15, align 4, !tbaa !9
  %230 = zext i32 %229 to i64
  %231 = call i32 @i32_load(ptr noundef %228, i64 noundef %230)
  store i32 %231, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %232 = load i32, ptr %16, align 4, !tbaa !9
  %233 = load i32, ptr %15, align 4, !tbaa !9
  %234 = sub i32 %233, %232
  store i32 %234, ptr %15, align 4, !tbaa !9
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.w2c_hermes, ptr %235, i32 0, i32 6
  %237 = load i32, ptr %14, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %236, i64 noundef %238, i32 noundef %239)
  br label %240

240:                                              ; preds = %224, %223, %124
  %241 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %241, ptr %14, align 4, !tbaa !9
  store i32 32, ptr %15, align 4, !tbaa !9
  %242 = load i32, ptr %15, align 4, !tbaa !9
  %243 = load i32, ptr %14, align 4, !tbaa !9
  %244 = add i32 %243, %242
  store i32 %244, ptr %14, align 4, !tbaa !9
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.w2c_hermes, ptr %246, i32 0, i32 3
  store i32 %245, ptr %247, align 8, !tbaa !13
  br label %302

248:                                              ; preds = %164
  store i32 0, ptr %14, align 4, !tbaa !9
  %249 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %249, ptr %11, align 4, !tbaa !9
  store i32 146777, ptr %15, align 4, !tbaa !9
  %250 = load i32, ptr %15, align 4, !tbaa !9
  %251 = load i32, ptr %14, align 4, !tbaa !9
  %252 = add i32 %251, %250
  store i32 %252, ptr %14, align 4, !tbaa !9
  %253 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %253, ptr %15, align 4, !tbaa !9
  store i32 82692, ptr %16, align 4, !tbaa !9
  %254 = load i32, ptr %16, align 4, !tbaa !9
  %255 = load i32, ptr %15, align 4, !tbaa !9
  %256 = add i32 %255, %254
  store i32 %256, ptr %15, align 4, !tbaa !9
  store i32 43, ptr %16, align 4, !tbaa !9
  %257 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %257, ptr %17, align 4, !tbaa !9
  store i32 24718, ptr %18, align 4, !tbaa !9
  %258 = load i32, ptr %18, align 4, !tbaa !9
  %259 = load i32, ptr %17, align 4, !tbaa !9
  %260 = add i32 %259, %258
  store i32 %260, ptr %17, align 4, !tbaa !9
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  %262 = load i32, ptr %14, align 4, !tbaa !9
  %263 = load i32, ptr %15, align 4, !tbaa !9
  %264 = load i32, ptr %16, align 4, !tbaa !9
  %265 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %261, i32 noundef %262, i32 noundef %263, i32 noundef %264, i32 noundef %265)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

266:                                              ; preds = %176
  store i32 0, ptr %14, align 4, !tbaa !9
  %267 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %267, ptr %11, align 4, !tbaa !9
  store i32 147142, ptr %15, align 4, !tbaa !9
  %268 = load i32, ptr %15, align 4, !tbaa !9
  %269 = load i32, ptr %14, align 4, !tbaa !9
  %270 = add i32 %269, %268
  store i32 %270, ptr %14, align 4, !tbaa !9
  %271 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %271, ptr %15, align 4, !tbaa !9
  store i32 82611, ptr %16, align 4, !tbaa !9
  %272 = load i32, ptr %16, align 4, !tbaa !9
  %273 = load i32, ptr %15, align 4, !tbaa !9
  %274 = add i32 %273, %272
  store i32 %274, ptr %15, align 4, !tbaa !9
  store i32 106, ptr %16, align 4, !tbaa !9
  %275 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %275, ptr %17, align 4, !tbaa !9
  store i32 28119, ptr %18, align 4, !tbaa !9
  %276 = load i32, ptr %18, align 4, !tbaa !9
  %277 = load i32, ptr %17, align 4, !tbaa !9
  %278 = add i32 %277, %276
  store i32 %278, ptr %17, align 4, !tbaa !9
  %279 = load ptr, ptr %6, align 8, !tbaa !5
  %280 = load i32, ptr %14, align 4, !tbaa !9
  %281 = load i32, ptr %15, align 4, !tbaa !9
  %282 = load i32, ptr %16, align 4, !tbaa !9
  %283 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %279, i32 noundef %280, i32 noundef %281, i32 noundef %282, i32 noundef %283)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

302:                                              ; preds = %240
  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 void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AobjectGetPrototypeOf0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -32
  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)
  %13 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %14 = zext i32 %8 to i64
  %15 = add nuw nsw i64 %14, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %15, i32 noundef 0)
  %16 = add i32 %13, -8
  %.not = icmp eq i32 %12, 0
  %17 = select i1 %.not, i32 217528, i32 %16
  %18 = add nuw nsw i64 %14, 12
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %18, i32 noundef %17)
  %19 = add i32 %7, -16
  %20 = add i32 %7, -24
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoObject0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %0, i32 noundef %19, i32 noundef %3, i32 noundef %20)
  %21 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %15)
  %.not172 = icmp eq i32 %21, 0
  br i1 %.not172, label %26, label %22

22:                                               ; preds = %5
  %23 = zext i32 %21 to i64
  %24 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %23)
  %25 = add i32 %24, -1
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %23, i32 noundef %25)
  br label %26

26:                                               ; preds = %22, %5
  %27 = add nuw nsw i64 %14, 16
  %28 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %27)
  switch i32 %28, label %31 [
    i32 0, label %29
    i32 1, label %32
  ]

29:                                               ; preds = %26
  %30 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %30, i32 noundef 0)
  br label %51

31:                                               ; preds = %26
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109639, i32 noundef 77564, i32 noundef 179, i32 noundef 90402) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

32:                                               ; preds = %26
  %33 = add nuw nsw i64 %14, 24
  %34 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %33)
  %35 = icmp ult i64 %34, -844424930131968
  br i1 %35, label %52, label %36

36:                                               ; preds = %32
  %37 = trunc i64 %34 to i32
  %.not173 = icmp eq i32 %37, 0
  br i1 %.not173, label %53, label %38

38:                                               ; preds = %36
  %39 = and i64 %34, 4294967295
  %40 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %39)
  %41 = add i32 %40, -1291845632
  %42 = icmp ult i32 %41, -855638016
  br i1 %42, label %54, label %43

43:                                               ; preds = %38
  %44 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x29(ptr noundef nonnull %0, i32 noundef %8, i32 noundef %3, i32 noundef %37) #4
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AgetPrototypeOf0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %3, i32 noundef %44)
  %45 = zext i32 %44 to i64
  %46 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %45)
  %.not174 = icmp eq i32 %46, 0
  br i1 %.not174, label %51, label %47

47:                                               ; preds = %43
  %48 = zext i32 %46 to i64
  %49 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %48)
  %50 = add i32 %49, -1
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %48, i32 noundef %50)
  br label %51

51:                                               ; preds = %43, %47, %29
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void

52:                                               ; preds = %32
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 146777, i32 noundef 82692, i32 noundef 43, i32 noundef 24718) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

53:                                               ; preds = %36
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 147142, i32 noundef 82611, i32 noundef 106, i32 noundef 28119) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

54:                                               ; preds = %38
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 205012, i32 noundef 82611, i32 noundef 255, i32 noundef 24720) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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)"}
!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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass