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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AobjectPrototypeIsPrototypeOf0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(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 i64, align 8
  %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
  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 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !11
  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
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.w2c_hermes, ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 8, !tbaa !13
  store i32 %21, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %22 = load i32, ptr %15, align 4, !tbaa !9
  %23 = load i32, ptr %14, align 4, !tbaa !9
  %24 = sub i32 %23, %22
  store i32 %24, ptr %14, align 4, !tbaa !9
  %25 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %25, ptr %8, align 4, !tbaa !9
  %26 = load i32, ptr %14, align 4, !tbaa !9
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 3
  store i32 %26, ptr %28, align 8, !tbaa !13
  %29 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %29, ptr %14, align 4, !tbaa !9
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 6
  %32 = load i32, ptr %14, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = add i64 %33, 4
  %35 = call i32 @i32_load(ptr noundef %31, i64 noundef %34)
  store i32 %35, ptr %14, align 4, !tbaa !9
  %36 = load i32, ptr %14, align 4, !tbaa !9
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %64

38:                                               ; preds = %5
  %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
  store i32 8, ptr %15, align 4, !tbaa !9
  %46 = load i32, ptr %15, align 4, !tbaa !9
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = sub i32 %47, %46
  store i32 %48, ptr %14, align 4, !tbaa !9
  %49 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %49, ptr %12, align 4, !tbaa !9
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.w2c_hermes, ptr %50, i32 0, i32 6
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = add i64 %53, 6
  %55 = call i32 @i32_load16_s(ptr noundef %51, i64 noundef %54)
  store i32 %55, ptr %14, align 4, !tbaa !9
  store i32 -1, ptr %15, align 4, !tbaa !9
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = icmp eq i32 %56, %57
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %14, align 4, !tbaa !9
  %60 = load i32, ptr %14, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %38
  br label %78

63:                                               ; preds = %38
  br label %64

64:                                               ; preds = %63, %5
  %65 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %65, ptr %14, align 4, !tbaa !9
  store i64 -1407374883553280, ptr %18, align 8, !tbaa !11
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.w2c_hermes, ptr %66, i32 0, i32 6
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = add i64 %69, 8
  %71 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %67, i64 noundef %70, i64 noundef %71)
  %72 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %72, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.w2c_hermes, ptr %73, i32 0, i32 6
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %74, i64 noundef %76, i32 noundef %77)
  br label %245

78:                                               ; preds = %62
  %79 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %79, ptr %14, align 4, !tbaa !9
  %80 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %80, ptr %15, align 4, !tbaa !9
  %81 = load i32, ptr %10, align 4, !tbaa !9
  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 %8, 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 = call i32 @i32_load(ptr noundef %88, i64 noundef %90)
  store i32 %91, ptr %14, align 4, !tbaa !9
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = icmp ne i32 %92, 0
  %94 = xor i1 %93, true
  %95 = zext i1 %94 to i32
  store i32 %95, ptr %14, align 4, !tbaa !9
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %105

98:                                               ; preds = %78
  %99 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %99, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %14, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %101, i64 noundef %103, i32 noundef %104)
  br label %245

105:                                              ; preds = %78
  %106 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %106, ptr %14, 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 = add i64 %110, 8
  %112 = call i64 @i64_load32_u(ptr noundef %108, i64 noundef %111)
  store i64 %112, ptr %17, align 8, !tbaa !11
  store i64 -281474976710656, ptr %18, align 8, !tbaa !11
  %113 = load i64, ptr %18, align 8, !tbaa !11
  %114 = load i64, ptr %17, align 8, !tbaa !11
  %115 = or i64 %114, %113
  store i64 %115, ptr %17, align 8, !tbaa !11
  %116 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %116, ptr %13, align 8, !tbaa !11
  %117 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %117, ptr %14, align 4, !tbaa !9
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 6
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = add i64 %121, 4
  %123 = call i32 @i32_load(ptr noundef %119, i64 noundef %122)
  store i32 %123, ptr %14, align 4, !tbaa !9
  %124 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %124, ptr %10, align 4, !tbaa !9
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %14, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = add i64 %128, 164
  %130 = call i32 @i32_load(ptr noundef %126, i64 noundef %129)
  store i32 %130, ptr %14, align 4, !tbaa !9
  %131 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %131, ptr %11, align 4, !tbaa !9
  %132 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %132, ptr %15, align 4, !tbaa !9
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.w2c_hermes, ptr %133, i32 0, i32 6
  %135 = load i32, ptr %15, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = add i64 %136, 168
  %138 = call i32 @i32_load(ptr noundef %134, i64 noundef %137)
  store i32 %138, ptr %15, align 4, !tbaa !9
  %139 = load i32, ptr %14, align 4, !tbaa !9
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = icmp ult i32 %139, %140
  %142 = zext i1 %141 to i32
  store i32 %142, ptr %14, align 4, !tbaa !9
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %164

145:                                              ; preds = %105
  %146 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %146, ptr %14, align 4, !tbaa !9
  %147 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %147, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %148 = load i32, ptr %16, align 4, !tbaa !9
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = add i32 %149, %148
  store i32 %150, ptr %15, 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, 164
  %156 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %152, i64 noundef %155, i32 noundef %156)
  %157 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %157, ptr %14, align 4, !tbaa !9
  %158 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %158, ptr %18, align 8, !tbaa !11
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %160, i64 noundef %162, i64 noundef %163)
  br label %172

164:                                              ; preds = %105
  %165 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %165, ptr %14, align 4, !tbaa !9
  %166 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %166, ptr %18, align 8, !tbaa !11
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = load i64, ptr %18, align 8, !tbaa !11
  %170 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %167, i32 noundef %168, i64 noundef %169)
  store i32 %170, ptr %14, align 4, !tbaa !9
  %171 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %171, ptr %11, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %164, %145
  %173 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %173, ptr %14, 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 %14, 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 %14, align 4, !tbaa !9
  %179 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %179, ptr %10, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %216, %172
  %181 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %181, ptr %14, align 4, !tbaa !9
  %182 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %182, ptr %15, align 4, !tbaa !9
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = load i32, ptr %14, align 4, !tbaa !9
  %185 = load i32, ptr %15, align 4, !tbaa !9
  %186 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AgetPrototypeOf0x28hermes0x3A0x3Avm0x3A0x3APseudoHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef %183, i32 noundef %184, i32 noundef %185)
  store i32 %186, ptr %14, align 4, !tbaa !9
  %187 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %187, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %188 = load i32, ptr %15, align 4, !tbaa !9
  %189 = load i32, ptr %14, align 4, !tbaa !9
  %190 = add i32 %189, %188
  store i32 %190, ptr %14, align 4, !tbaa !9
  %191 = load i32, ptr %14, align 4, !tbaa !9
  switch i32 %191, label %194 [
    i32 0, label %192
    i32 1, label %193
  ]

192:                                              ; preds = %180
  br label %195

193:                                              ; preds = %180
  br label %231

194:                                              ; preds = %180
  br label %202

195:                                              ; preds = %192
  %196 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %196, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.w2c_hermes, ptr %197, i32 0, i32 6
  %199 = load i32, ptr %14, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %198, i64 noundef %200, i32 noundef %201)
  br label %245

202:                                              ; preds = %194
  %203 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %203, ptr %14, align 4, !tbaa !9
  %204 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %204, ptr %15, align 4, !tbaa !9
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.w2c_hermes, ptr %205, i32 0, i32 6
  %207 = load i32, ptr %15, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = call i32 @i32_load(ptr noundef %206, i64 noundef %208)
  store i32 %209, ptr %15, align 4, !tbaa !9
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = load i32, ptr %15, align 4, !tbaa !9
  %212 = icmp ne i32 %210, %211
  %213 = zext i1 %212 to i32
  store i32 %213, ptr %14, align 4, !tbaa !9
  %214 = load i32, ptr %14, align 4, !tbaa !9
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %217

216:                                              ; preds = %202
  br label %180

217:                                              ; preds = %202
  %218 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %218, ptr %14, align 4, !tbaa !9
  store i64 -1407374883553279, ptr %18, align 8, !tbaa !11
  %219 = load ptr, ptr %6, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.w2c_hermes, ptr %219, i32 0, i32 6
  %221 = load i32, ptr %14, align 4, !tbaa !9
  %222 = zext i32 %221 to i64
  %223 = add i64 %222, 8
  %224 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %220, i64 noundef %223, i64 noundef %224)
  %225 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %225, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 6
  %228 = load i32, ptr %14, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %227, i64 noundef %229, i32 noundef %230)
  br label %245

231:                                              ; preds = %193
  %232 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %232, ptr %14, align 4, !tbaa !9
  store i64 -1407374883553280, ptr %18, align 8, !tbaa !11
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.w2c_hermes, ptr %233, i32 0, i32 6
  %235 = load i32, ptr %14, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = add i64 %236, 8
  %238 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %234, i64 noundef %237, i64 noundef %238)
  %239 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %239, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.w2c_hermes, ptr %240, i32 0, i32 6
  %242 = load i32, ptr %14, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %241, i64 noundef %243, i32 noundef %244)
  br label %245

245:                                              ; preds = %231, %217, %195, %98, %64
  %246 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %246, ptr %14, align 4, !tbaa !9
  store i32 16, 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 i32, ptr %14, align 4, !tbaa !9
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.w2c_hermes, ptr %251, i32 0, i32 3
  store i32 %250, ptr %252, align 8, !tbaa !13
  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 8, 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
}

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AobjectPrototypeIsPrototypeOf0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(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, -16
  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 %20, 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 = add nuw nsw i64 %16, 6
  %18 = tail call i32 @i32_load16_s(ptr noundef nonnull %9, i64 noundef %17)
  %19 = icmp eq i32 %18, -1
  br i1 %19, label %23, label %20

20:                                               ; preds = %13, %5
  %21 = zext i32 %1 to i64
  %22 = add nuw nsw i64 %21, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %22, i64 noundef -1407374883553280)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %21, i32 noundef 1)
  br label %60

23:                                               ; preds = %13
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoObject0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %8, i32 noundef %3, i32 noundef %14) #3
  %24 = zext i32 %8 to i64
  %25 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %24)
  %.not130 = icmp eq i32 %25, 0
  br i1 %.not130, label %26, label %28

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

28:                                               ; preds = %23
  %29 = add nuw nsw i64 %24, 8
  %30 = tail call i64 @i64_load32_u(ptr noundef nonnull %9, i64 noundef %29)
  %31 = or i64 %30, -281474976710656
  %32 = zext i32 %3 to i64
  %33 = add nuw nsw i64 %32, 4
  %34 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %33)
  %35 = zext i32 %34 to i64
  %36 = add nuw nsw i64 %35, 164
  %37 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %36)
  %38 = add nuw nsw i64 %35, 168
  %39 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %38)
  %40 = icmp ult i32 %37, %39
  br i1 %40, label %41, label %44

41:                                               ; preds = %28
  %42 = add i32 %37, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %36, i32 noundef %42)
  %43 = zext i32 %37 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %43, i64 noundef %31)
  br label %46

44:                                               ; preds = %28
  %45 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef nonnull %0, i32 noundef %34, i64 noundef %31) #3
  %.pre = zext i32 %45 to i64
  br label %46

46:                                               ; preds = %44, %41
  %.pre-phi = phi i64 [ %.pre, %44 ], [ %43, %41 ]
  %47 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %16)
  br label %48

48:                                               ; preds = %52, %46
  %.0127 = phi i32 [ %47, %46 ], [ %49, %52 ]
  %49 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AgetPrototypeOf0x28hermes0x3A0x3Avm0x3A0x3APseudoHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef %0, i32 noundef %.0127, i32 noundef %3) #3
  switch i32 %49, label %52 [
    i32 -1, label %50
    i32 0, label %57
  ]

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

52:                                               ; preds = %48
  %53 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %.pre-phi)
  %.not131 = icmp eq i32 %49, %53
  br i1 %.not131, label %54, label %48

54:                                               ; preds = %52
  %55 = zext i32 %1 to i64
  %56 = add nuw nsw i64 %55, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %56, i64 noundef -1407374883553279)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %55, i32 noundef 1)
  br label %60

57:                                               ; preds = %48
  %58 = zext i32 %1 to i64
  %59 = add nuw nsw i64 %58, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %59, i64 noundef -1407374883553280)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %58, i32 noundef 1)
  br label %60

60:                                               ; preds = %57, %54, %50, %26, %20
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

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: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,SROAPass,SimplifyCFGPass,TailCallElimPass