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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AreflectGetPrototypeOf0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(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 i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %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 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 %12, align 4, !tbaa !9
  store i32 48, ptr %13, align 4, !tbaa !9
  %22 = load i32, ptr %13, align 4, !tbaa !9
  %23 = load i32, ptr %12, align 4, !tbaa !9
  %24 = sub i32 %23, %22
  store i32 %24, ptr %12, align 4, !tbaa !9
  %25 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %25, ptr %8, align 4, !tbaa !9
  %26 = load i32, ptr %12, 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 %12, 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 %12, 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 %12, align 4, !tbaa !9
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = icmp ne i32 %36, 0
  %38 = xor i1 %37, true
  %39 = zext i1 %38 to i32
  store i32 %39, ptr %12, align 4, !tbaa !9
  %40 = load i32, ptr %12, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %5
  br label %87

43:                                               ; preds = %5
  %44 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %44, ptr %12, align 4, !tbaa !9
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = call i32 @i32_load(ptr noundef %46, i64 noundef %48)
  store i32 %49, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %50 = load i32, ptr %13, align 4, !tbaa !9
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = sub i32 %51, %50
  store i32 %52, ptr %12, align 4, !tbaa !9
  %53 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %53, ptr %10, align 4, !tbaa !9
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.w2c_hermes, ptr %54, i32 0, i32 6
  %56 = load i32, ptr %12, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = call i64 @i64_load(ptr noundef %55, i64 noundef %57)
  store i64 %58, ptr %16, align 8, !tbaa !11
  %59 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %59, ptr %11, align 8, !tbaa !11
  store i64 -844424930131968, ptr %17, align 8, !tbaa !11
  %60 = load i64, ptr %16, align 8, !tbaa !11
  %61 = load i64, ptr %17, align 8, !tbaa !11
  %62 = icmp ult i64 %60, %61
  %63 = zext i1 %62 to i32
  store i32 %63, ptr %12, align 4, !tbaa !9
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %43
  br label %87

67:                                               ; preds = %43
  %68 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %68, ptr %16, align 8, !tbaa !11
  %69 = load i64, ptr %16, align 8, !tbaa !11
  %70 = trunc i64 %69 to i32
  store i32 %70, ptr %12, align 4, !tbaa !9
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = call i32 @i32_load(ptr noundef %72, i64 noundef %74)
  store i32 %75, ptr %12, align 4, !tbaa !9
  store i32 436207616, ptr %13, align 4, !tbaa !9
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = sub i32 %77, %76
  store i32 %78, ptr %12, align 4, !tbaa !9
  store i32 855638016, ptr %13, align 4, !tbaa !9
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = icmp ult i32 %79, %80
  %82 = zext i1 %81 to i32
  store i32 %82, ptr %12, align 4, !tbaa !9
  %83 = load i32, ptr %12, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %67
  br label %95

86:                                               ; preds = %67
  br label %87

87:                                               ; preds = %86, %66, %42
  store i32 67200, ptr %12, align 4, !tbaa !9
  %88 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %88, ptr %10, align 4, !tbaa !9
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = call i64 @i64_load(ptr noundef %90, i64 noundef %92)
  store i64 %93, ptr %16, align 8, !tbaa !11
  %94 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %94, ptr %11, align 8, !tbaa !11
  br label %95

95:                                               ; preds = %87, %85
  %96 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %96, ptr %16, align 8, !tbaa !11
  store i64 4294967295, ptr %17, align 8, !tbaa !11
  %97 = load i64, ptr %17, align 8, !tbaa !11
  %98 = load i64, ptr %16, align 8, !tbaa !11
  %99 = and i64 %98, %97
  store i64 %99, ptr %16, align 8, !tbaa !11
  store i64 0, ptr %17, align 8, !tbaa !11
  %100 = load i64, ptr %16, align 8, !tbaa !11
  %101 = load i64, ptr %17, align 8, !tbaa !11
  %102 = icmp ne i64 %100, %101
  %103 = zext i1 %102 to i32
  store i32 %103, ptr %12, align 4, !tbaa !9
  %104 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %104, ptr %17, align 8, !tbaa !11
  store i64 -844424930131968, ptr %18, align 8, !tbaa !11
  %105 = load i64, ptr %17, align 8, !tbaa !11
  %106 = load i64, ptr %18, align 8, !tbaa !11
  %107 = icmp uge i64 %105, %106
  %108 = zext i1 %107 to i32
  store i32 %108, ptr %13, align 4, !tbaa !9
  %109 = load i32, ptr %13, align 4, !tbaa !9
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = and i32 %110, %109
  store i32 %111, ptr %12, align 4, !tbaa !9
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = icmp ne i32 %112, 0
  %114 = xor i1 %113, true
  %115 = zext i1 %114 to i32
  store i32 %115, ptr %12, align 4, !tbaa !9
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %162

118:                                              ; preds = %95
  %119 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %119, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = add i64 %123, 40
  %125 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %121, i64 noundef %124, i32 noundef %125)
  %126 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %126, ptr %12, align 4, !tbaa !9
  store i64 98784247809, ptr %17, align 8, !tbaa !11
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.w2c_hermes, ptr %127, i32 0, i32 6
  %129 = load i32, ptr %12, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = add i64 %130, 32
  %132 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %128, i64 noundef %131, i64 noundef %132)
  %133 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %133, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %13, align 4, !tbaa !9
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.w2c_hermes, ptr %134, i32 0, i32 6
  %136 = load i32, ptr %12, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = add i64 %137, 16
  %139 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %135, i64 noundef %138, i32 noundef %139)
  %140 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %140, ptr %12, align 4, !tbaa !9
  store i32 31206, ptr %13, align 4, !tbaa !9
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.w2c_hermes, ptr %141, i32 0, i32 6
  %143 = load i32, ptr %12, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = add i64 %144, 8
  %146 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %142, i64 noundef %145, i32 noundef %146)
  %147 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %147, ptr %12, align 4, !tbaa !9
  %148 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %148, ptr %13, align 4, !tbaa !9
  %149 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %149, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %150 = load i32, ptr %15, align 4, !tbaa !9
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = add i32 %151, %150
  store i32 %152, ptr %14, align 4, !tbaa !9
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = load i32, ptr %14, align 4, !tbaa !9
  %156 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %153, i32 noundef %154, i32 noundef %155)
  store i32 %156, ptr %13, align 4, !tbaa !9
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.w2c_hermes, ptr %157, i32 0, i32 6
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %158, i64 noundef %160, i32 noundef %161)
  br label %224

162:                                              ; preds = %95
  %163 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %163, ptr %12, align 4, !tbaa !9
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.w2c_hermes, ptr %164, i32 0, i32 6
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = call i32 @i32_load(ptr noundef %165, i64 noundef %167)
  store i32 %168, ptr %12, align 4, !tbaa !9
  %169 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %169, ptr %13, align 4, !tbaa !9
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = load i32, ptr %12, align 4, !tbaa !9
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AgetPrototypeOf0x28hermes0x3A0x3Avm0x3A0x3APseudoHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef %170, i32 noundef %171, i32 noundef %172)
  store i32 %173, ptr %12, align 4, !tbaa !9
  %174 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %174, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %175 = load i32, ptr %13, align 4, !tbaa !9
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = add i32 %176, %175
  store i32 %177, ptr %12, align 4, !tbaa !9
  %178 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %178, label %181 [
    i32 0, label %179
    i32 1, label %180
  ]

179:                                              ; preds = %162
  br label %182

180:                                              ; preds = %162
  br label %189

181:                                              ; preds = %162
  br label %203

182:                                              ; preds = %179
  %183 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %183, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.w2c_hermes, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %12, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %185, i64 noundef %187, i32 noundef %188)
  br label %223

189:                                              ; preds = %180
  %190 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %190, ptr %12, align 4, !tbaa !9
  store i64 -1548112371908608, ptr %17, align 8, !tbaa !11
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = add i64 %194, 8
  %196 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %192, i64 noundef %195, i64 noundef %196)
  %197 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %197, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.w2c_hermes, ptr %198, i32 0, i32 6
  %200 = load i32, ptr %12, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %199, i64 noundef %201, i32 noundef %202)
  br label %223

203:                                              ; preds = %181
  %204 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %204, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, 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 %12, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %206, i64 noundef %208, i32 noundef %209)
  %210 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %210, ptr %12, align 4, !tbaa !9
  %211 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %211, ptr %13, align 4, !tbaa !9
  %212 = load i32, ptr %13, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  store i64 %213, ptr %17, align 8, !tbaa !11
  store i64 -281474976710656, ptr %18, align 8, !tbaa !11
  %214 = load i64, ptr %18, align 8, !tbaa !11
  %215 = load i64, ptr %17, align 8, !tbaa !11
  %216 = or i64 %215, %214
  store i64 %216, ptr %17, align 8, !tbaa !11
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.w2c_hermes, ptr %217, i32 0, i32 6
  %219 = load i32, ptr %12, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = add i64 %220, 8
  %222 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %218, i64 noundef %221, i64 noundef %222)
  br label %223

223:                                              ; preds = %203, %189, %182
  br label %224

224:                                              ; preds = %223, %118
  %225 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %225, ptr %12, align 4, !tbaa !9
  store i32 48, ptr %13, align 4, !tbaa !9
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = load i32, ptr %12, align 4, !tbaa !9
  %228 = add i32 %227, %226
  store i32 %228, ptr %12, align 4, !tbaa !9
  %229 = load i32, ptr %12, align 4, !tbaa !9
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 3
  store i32 %229, ptr %231, 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 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, 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_load(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

38:                                               ; preds = %27
  %39 = zext i32 %.0114 to i64
  %40 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %39)
  %41 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AgetPrototypeOf0x28hermes0x3A0x3Avm0x3A0x3APseudoHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef nonnull %0, i32 noundef %40, i32 noundef %3) #3
  %42 = zext i32 %1 to i64
  switch i32 %41, label %46 [
    i32 -1, label %43
    i32 0, label %44
  ]

43:                                               ; preds = %38
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %42, i32 noundef 0)
  br label %50

44:                                               ; preds = %38
  %45 = add nuw nsw i64 %42, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %45, i64 noundef -1548112371908608)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %42, i32 noundef 1)
  br label %50

46:                                               ; preds = %38
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %42, i32 noundef 1)
  %47 = zext i32 %41 to i64
  %48 = or disjoint i64 %47, -281474976710656
  %49 = add nuw nsw i64 %42, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %49, i64 noundef %48)
  br label %50

50:                                               ; preds = %43, %44, %46, %29
  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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass