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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) #0

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

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

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

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

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

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

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

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

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

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

49:                                               ; preds = %7
  br label %239

50:                                               ; preds = %7
  %51 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %51, ptr %18, align 4, !tbaa !9
  %52 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %52, ptr %19, align 4, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %53, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i32, ptr %18, align 4, !tbaa !9
  %56 = load i32, ptr %19, align 4, !tbaa !9
  %57 = load i32, ptr %20, align 4, !tbaa !9
  %58 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoPrimitive_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3APreferredType0x29(ptr noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %57, i32 noundef %58)
  store i32 -1, ptr %18, align 4, !tbaa !9
  %59 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %59, ptr %11, align 4, !tbaa !9
  %60 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %60, ptr %18, align 4, !tbaa !9
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.w2c_hermes, ptr %61, i32 0, i32 6
  %63 = load i32, ptr %18, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = call i32 @i32_load(ptr noundef %62, i64 noundef %64)
  store i32 %65, ptr %18, align 4, !tbaa !9
  %66 = load i32, ptr %18, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  %68 = xor i1 %67, true
  %69 = zext i1 %68 to i32
  store i32 %69, ptr %18, align 4, !tbaa !9
  %70 = load i32, ptr %18, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %50
  br label %239

73:                                               ; preds = %50
  %74 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %74, ptr %18, align 4, !tbaa !9
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %18, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 8
  %80 = call i64 @i64_load(ptr noundef %76, i64 noundef %79)
  store i64 %80, ptr %24, align 8, !tbaa !11
  %81 = load i64, ptr %24, align 8, !tbaa !11
  store i64 %81, ptr %17, align 8, !tbaa !11
  %82 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %82, ptr %18, align 4, !tbaa !9
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.w2c_hermes, ptr %83, i32 0, i32 6
  %85 = load i32, ptr %18, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = add i64 %86, 4
  %88 = call i32 @i32_load(ptr noundef %84, i64 noundef %87)
  store i32 %88, ptr %18, align 4, !tbaa !9
  %89 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %89, ptr %11, align 4, !tbaa !9
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.w2c_hermes, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %18, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = add i64 %93, 164
  %95 = call i32 @i32_load(ptr noundef %91, i64 noundef %94)
  store i32 %95, ptr %18, align 4, !tbaa !9
  %96 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %96, ptr %15, align 4, !tbaa !9
  %97 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %97, ptr %19, align 4, !tbaa !9
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.w2c_hermes, ptr %98, i32 0, i32 6
  %100 = load i32, ptr %19, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = add i64 %101, 168
  %103 = call i32 @i32_load(ptr noundef %99, i64 noundef %102)
  store i32 %103, ptr %19, align 4, !tbaa !9
  %104 = load i32, ptr %18, align 4, !tbaa !9
  %105 = load i32, ptr %19, align 4, !tbaa !9
  %106 = icmp ult i32 %104, %105
  %107 = zext i1 %106 to i32
  store i32 %107, ptr %18, align 4, !tbaa !9
  %108 = load i32, ptr %18, align 4, !tbaa !9
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %129

110:                                              ; preds = %73
  %111 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %111, ptr %18, align 4, !tbaa !9
  %112 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %112, ptr %19, align 4, !tbaa !9
  store i32 8, ptr %20, align 4, !tbaa !9
  %113 = load i32, ptr %20, align 4, !tbaa !9
  %114 = load i32, ptr %19, align 4, !tbaa !9
  %115 = add i32 %114, %113
  store i32 %115, ptr %19, align 4, !tbaa !9
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %18, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = add i64 %119, 164
  %121 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %117, i64 noundef %120, i32 noundef %121)
  %122 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %122, ptr %18, align 4, !tbaa !9
  %123 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %123, ptr %25, align 8, !tbaa !11
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %18, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = load i64, ptr %25, align 8, !tbaa !11
  call void @i64_store(ptr noundef %125, i64 noundef %127, i64 noundef %128)
  br label %143

129:                                              ; preds = %73
  %130 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %130, ptr %18, align 4, !tbaa !9
  %131 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %131, ptr %25, align 8, !tbaa !11
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = load i64, ptr %25, align 8, !tbaa !11
  %135 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %132, i32 noundef %133, i64 noundef %134)
  store i32 %135, ptr %18, align 4, !tbaa !9
  %136 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %136, ptr %15, align 4, !tbaa !9
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %18, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = call i64 @i64_load(ptr noundef %138, i64 noundef %140)
  store i64 %141, ptr %24, align 8, !tbaa !11
  %142 = load i64, ptr %24, align 8, !tbaa !11
  store i64 %142, ptr %17, align 8, !tbaa !11
  br label %143

143:                                              ; preds = %129, %110
  %144 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %144, ptr %24, align 8, !tbaa !11
  store i64 47, ptr %25, align 8, !tbaa !11
  %145 = load i64, ptr %24, align 8, !tbaa !11
  %146 = load i64, ptr %25, align 8, !tbaa !11
  %147 = and i64 %146, 63
  %148 = ashr i64 %145, %147
  store i64 %148, ptr %24, align 8, !tbaa !11
  %149 = load i64, ptr %24, align 8, !tbaa !11
  %150 = trunc i64 %149 to i32
  store i32 %150, ptr %18, align 4, !tbaa !9
  store i32 -9, ptr %19, align 4, !tbaa !9
  %151 = load i32, ptr %18, align 4, !tbaa !9
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = icmp eq i32 %151, %152
  %154 = zext i1 %153 to i32
  store i32 %154, ptr %18, align 4, !tbaa !9
  %155 = load i32, ptr %18, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %160

157:                                              ; preds = %143
  %158 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %158, ptr %18, align 4, !tbaa !9
  %159 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %159, ptr %11, align 4, !tbaa !9
  br label %239

160:                                              ; preds = %143
  store i32 -1, ptr %18, align 4, !tbaa !9
  %161 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %161, ptr %11, align 4, !tbaa !9
  %162 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %162, ptr %18, align 4, !tbaa !9
  %163 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %163, ptr %19, align 4, !tbaa !9
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = load i32, ptr %18, align 4, !tbaa !9
  %166 = load i32, ptr %19, align 4, !tbaa !9
  %167 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoString_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %164, i32 noundef %165, i32 noundef %166)
  store i32 %167, ptr %18, align 4, !tbaa !9
  %168 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %168, ptr %15, align 4, !tbaa !9
  store i32 -1, ptr %19, align 4, !tbaa !9
  %169 = load i32, ptr %18, align 4, !tbaa !9
  %170 = load i32, ptr %19, align 4, !tbaa !9
  %171 = icmp eq i32 %169, %170
  %172 = zext i1 %171 to i32
  store i32 %172, ptr %18, align 4, !tbaa !9
  %173 = load i32, ptr %18, align 4, !tbaa !9
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %176

175:                                              ; preds = %160
  br label %239

176:                                              ; preds = %160
  %177 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %177, ptr %18, align 4, !tbaa !9
  %178 = load i32, ptr %18, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  store i64 %179, ptr %24, align 8, !tbaa !11
  store i64 -844424930131968, ptr %25, align 8, !tbaa !11
  %180 = load i64, ptr %25, align 8, !tbaa !11
  %181 = load i64, ptr %24, align 8, !tbaa !11
  %182 = or i64 %181, %180
  store i64 %182, ptr %24, align 8, !tbaa !11
  %183 = load i64, ptr %24, align 8, !tbaa !11
  store i64 %183, ptr %17, align 8, !tbaa !11
  %184 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %184, ptr %18, align 4, !tbaa !9
  %185 = load ptr, ptr %8, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 6
  %187 = load i32, ptr %18, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = add i64 %188, 4
  %190 = call i32 @i32_load(ptr noundef %186, i64 noundef %189)
  store i32 %190, ptr %18, align 4, !tbaa !9
  %191 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %191, ptr %15, align 4, !tbaa !9
  %192 = load ptr, ptr %8, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.w2c_hermes, ptr %192, i32 0, i32 6
  %194 = load i32, ptr %18, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = add i64 %195, 164
  %197 = call i32 @i32_load(ptr noundef %193, i64 noundef %196)
  store i32 %197, ptr %18, align 4, !tbaa !9
  %198 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %198, ptr %11, align 4, !tbaa !9
  %199 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %199, ptr %19, align 4, !tbaa !9
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.w2c_hermes, ptr %200, i32 0, i32 6
  %202 = load i32, ptr %19, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = add i64 %203, 168
  %205 = call i32 @i32_load(ptr noundef %201, i64 noundef %204)
  store i32 %205, ptr %19, align 4, !tbaa !9
  %206 = load i32, ptr %18, align 4, !tbaa !9
  %207 = load i32, ptr %19, align 4, !tbaa !9
  %208 = icmp ult i32 %206, %207
  %209 = zext i1 %208 to i32
  store i32 %209, ptr %18, align 4, !tbaa !9
  %210 = load i32, ptr %18, align 4, !tbaa !9
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %231

212:                                              ; preds = %176
  %213 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %213, ptr %18, align 4, !tbaa !9
  %214 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %214, ptr %19, align 4, !tbaa !9
  store i32 8, ptr %20, align 4, !tbaa !9
  %215 = load i32, ptr %20, align 4, !tbaa !9
  %216 = load i32, ptr %19, align 4, !tbaa !9
  %217 = add i32 %216, %215
  store i32 %217, ptr %19, align 4, !tbaa !9
  %218 = load ptr, ptr %8, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.w2c_hermes, ptr %218, i32 0, i32 6
  %220 = load i32, ptr %18, align 4, !tbaa !9
  %221 = zext i32 %220 to i64
  %222 = add i64 %221, 164
  %223 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %219, i64 noundef %222, i32 noundef %223)
  %224 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %224, ptr %18, align 4, !tbaa !9
  %225 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %225, ptr %25, align 8, !tbaa !11
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 6
  %228 = load i32, ptr %18, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = load i64, ptr %25, align 8, !tbaa !11
  call void @i64_store(ptr noundef %227, i64 noundef %229, i64 noundef %230)
  br label %239

231:                                              ; preds = %176
  %232 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %232, ptr %18, align 4, !tbaa !9
  %233 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %233, ptr %25, align 8, !tbaa !11
  %234 = load ptr, ptr %8, align 8, !tbaa !5
  %235 = load i32, ptr %18, align 4, !tbaa !9
  %236 = load i64, ptr %25, align 8, !tbaa !11
  %237 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %234, i32 noundef %235, i64 noundef %236)
  store i32 %237, ptr %18, align 4, !tbaa !9
  %238 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %238, ptr %11, align 4, !tbaa !9
  br label %239

239:                                              ; preds = %231, %212, %175, %157, %72, %49
  %240 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %240, ptr %18, align 4, !tbaa !9
  store i32 -1, ptr %19, align 4, !tbaa !9
  %241 = load i32, ptr %18, align 4, !tbaa !9
  %242 = load i32, ptr %19, align 4, !tbaa !9
  %243 = icmp eq i32 %241, %242
  %244 = zext i1 %243 to i32
  store i32 %244, ptr %18, align 4, !tbaa !9
  %245 = load i32, ptr %18, align 4, !tbaa !9
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %248

247:                                              ; preds = %239
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %263

248:                                              ; preds = %239
  %249 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %249, ptr %18, align 4, !tbaa !9
  %250 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %250, ptr %19, align 4, !tbaa !9
  %251 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %251, ptr %20, align 4, !tbaa !9
  %252 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %252, ptr %21, align 4, !tbaa !9
  %253 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %253, ptr %22, align 4, !tbaa !9
  %254 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %254, ptr %23, align 4, !tbaa !9
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = load i32, ptr %18, align 4, !tbaa !9
  %257 = load i32, ptr %19, align 4, !tbaa !9
  %258 = load i32, ptr %20, align 4, !tbaa !9
  %259 = load i32, ptr %21, align 4, !tbaa !9
  %260 = load i32, ptr %22, align 4, !tbaa !9
  %261 = load i32, ptr %23, align 4, !tbaa !9
  %262 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AgetComputedPrimitiveDescriptor0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3ASymbolID0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AComputedPropertyDescriptor0x260x29(ptr noundef %255, i32 noundef %256, i32 noundef %257, i32 noundef %258, i32 noundef %259, i32 noundef %260, i32 noundef %261)
  store i32 %262, ptr %18, align 4, !tbaa !9
  br label %263

263:                                              ; preds = %248, %247
  %264 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %264, ptr %11, align 4, !tbaa !9
  %265 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %265, ptr %18, align 4, !tbaa !9
  store i32 16, ptr %19, align 4, !tbaa !9
  %266 = load i32, ptr %19, align 4, !tbaa !9
  %267 = load i32, ptr %18, align 4, !tbaa !9
  %268 = add i32 %267, %266
  store i32 %268, ptr %18, align 4, !tbaa !9
  %269 = load i32, ptr %18, align 4, !tbaa !9
  %270 = load ptr, ptr %8, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.w2c_hermes, ptr %270, i32 0, i32 3
  store i32 %269, ptr %271, align 8, !tbaa !13
  %272 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %272, ptr %18, align 4, !tbaa !9
  %273 = load i32, ptr %18, align 4, !tbaa !9
  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 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
  ret i32 %273
}

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AgetComputedDescriptor0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3ASymbolID0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AComputedPropertyDescriptor0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #0 {
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = add i32 %9, -16
  store i32 %10, ptr %8, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = zext i32 %3 to i64
  %13 = add nuw nsw i64 %12, 6
  %14 = tail call i32 @i32_load16_s(ptr noundef nonnull %11, i64 noundef %13)
  %.not = icmp eq i32 %14, -1
  br i1 %.not, label %15, label %56

15:                                               ; preds = %7
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoPrimitive_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3APreferredType0x29(ptr noundef nonnull %0, i32 noundef %10, i32 noundef %2, i32 noundef %3, i32 noundef 1) #3
  %16 = zext i32 %10 to i64
  %17 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %16)
  %.not149 = icmp eq i32 %17, 0
  br i1 %.not149, label %.thread, label %18

18:                                               ; preds = %15
  %19 = add nuw nsw i64 %16, 8
  %20 = tail call i64 @i64_load(ptr noundef nonnull %11, i64 noundef %19)
  %21 = zext i32 %2 to i64
  %22 = add nuw nsw i64 %21, 4
  %23 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %22)
  %24 = zext i32 %23 to i64
  %25 = add nuw nsw i64 %24, 164
  %26 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %25)
  %27 = add nuw nsw i64 %24, 168
  %28 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %27)
  %29 = icmp ult i32 %26, %28
  br i1 %29, label %30, label %33

30:                                               ; preds = %18
  %31 = add i32 %26, 8
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %25, i32 noundef %31)
  %32 = zext i32 %26 to i64
  tail call void @i64_store(ptr noundef nonnull %11, i64 noundef %32, i64 noundef %20)
  br label %37

33:                                               ; preds = %18
  %34 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef nonnull %0, i32 noundef %23, i64 noundef %20)
  %35 = zext i32 %34 to i64
  %36 = tail call i64 @i64_load(ptr noundef nonnull %11, i64 noundef %35)
  br label %37

37:                                               ; preds = %33, %30
  %.0145 = phi i64 [ %20, %30 ], [ %36, %33 ]
  %.0143 = phi i32 [ %26, %30 ], [ %34, %33 ]
  %.mask = and i64 %.0145, -140737488355328
  %38 = icmp eq i64 %.mask, -1266637395197952
  br i1 %38, label %56, label %39

39:                                               ; preds = %37
  %40 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoString_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %.0143) #3
  %41 = icmp eq i32 %40, -1
  br i1 %41, label %.thread, label %42

42:                                               ; preds = %39
  %43 = zext i32 %40 to i64
  %44 = or disjoint i64 %43, -844424930131968
  %45 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %22)
  %46 = zext i32 %45 to i64
  %47 = add nuw nsw i64 %46, 164
  %48 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %47)
  %49 = add nuw nsw i64 %46, 168
  %50 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %49)
  %51 = icmp ult i32 %48, %50
  br i1 %51, label %.thread151, label %54

.thread151:                                       ; preds = %42
  %52 = add i32 %48, 8
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %47, i32 noundef %52)
  %53 = zext i32 %48 to i64
  tail call void @i64_store(ptr noundef nonnull %11, i64 noundef %53, i64 noundef %44)
  br label %58

54:                                               ; preds = %42
  %55 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef nonnull %0, i32 noundef %45, i64 noundef %44)
  br label %56

56:                                               ; preds = %37, %7, %54
  %.0 = phi i32 [ %3, %7 ], [ %55, %54 ], [ %.0143, %37 ]
  %57 = icmp eq i32 %.0, -1
  br i1 %57, label %.thread, label %58

58:                                               ; preds = %.thread151, %56
  %.0153 = phi i32 [ %48, %.thread151 ], [ %.0, %56 ]
  %59 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AgetComputedPrimitiveDescriptor0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3ASymbolID0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AComputedPropertyDescriptor0x260x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %.0153, i32 noundef %4, i32 noundef %5, i32 noundef %6)
  br label %.thread

.thread:                                          ; preds = %39, %15, %56, %58
  %.0144 = phi i32 [ %59, %58 ], [ 0, %56 ], [ 0, %15 ], [ 0, %39 ]
  store i32 %9, ptr %8, align 8, !tbaa !5
  ret i32 %.0144
}

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

attributes #0 = { 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 = { 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 }

!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,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass