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

; 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_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 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: 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 void @i64_store(ptr noundef, i64 noundef, i64 noundef) #2

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

; 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 i32 @i32_load8_u(ptr noundef, i64 noundef) #2

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

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

declare void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef, i32 noundef) #4

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

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

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cdouble0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29430x3E0x3A0x3A_setOwnIndexedImpl0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.w2c_hermes, ptr %21, i32 0, i32 3
  %23 = load i32, ptr %22, align 8, !tbaa !13
  store i32 %23, ptr %15, align 4, !tbaa !9
  store i32 48, ptr %16, align 4, !tbaa !9
  %24 = load i32, ptr %16, align 4, !tbaa !9
  %25 = load i32, ptr %15, align 4, !tbaa !9
  %26 = sub i32 %25, %24
  store i32 %26, ptr %15, align 4, !tbaa !9
  %27 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %27, ptr %13, align 4, !tbaa !9
  %28 = load i32, ptr %15, align 4, !tbaa !9
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 3
  store i32 %28, ptr %30, align 8, !tbaa !13
  %31 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %31, ptr %15, align 4, !tbaa !9
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %15, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = call i64 @i64_load(ptr noundef %33, i64 noundef %35)
  store i64 %36, ptr %19, align 8, !tbaa !11
  %37 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %37, ptr %14, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %20, align 8, !tbaa !11
  %38 = load i64, ptr %19, align 8, !tbaa !11
  %39 = load i64, ptr %20, align 8, !tbaa !11
  %40 = icmp uge i64 %38, %39
  %41 = zext i1 %40 to i32
  store i32 %41, ptr %15, align 4, !tbaa !9
  %42 = load i32, ptr %15, align 4, !tbaa !9
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %78

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

68:                                               ; preds = %44
  br label %244

69:                                               ; preds = %44
  %70 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %70, ptr %15, align 4, !tbaa !9
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 16
  %76 = call i64 @i64_load(ptr noundef %72, i64 noundef %75)
  store i64 %76, ptr %19, align 8, !tbaa !11
  %77 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %77, ptr %14, align 8, !tbaa !11
  br label %78

78:                                               ; preds = %69, %6
  %79 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %79, ptr %15, align 4, !tbaa !9
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = call i32 @i32_load(ptr noundef %81, i64 noundef %83)
  store i32 %84, ptr %15, align 4, !tbaa !9
  %85 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %85, ptr %9, align 4, !tbaa !9
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.w2c_hermes, ptr %86, i32 0, i32 6
  %88 = load i32, ptr %15, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = add i64 %89, 20
  %91 = call i32 @i32_load(ptr noundef %87, i64 noundef %90)
  store i32 %91, ptr %15, align 4, !tbaa !9
  %92 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %92, ptr %12, align 4, !tbaa !9
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %107

95:                                               ; preds = %78
  %96 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %96, ptr %15, align 4, !tbaa !9
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.w2c_hermes, ptr %97, i32 0, i32 6
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = add i64 %100, 29
  %102 = call i32 @i32_load8_u(ptr noundef %98, i64 noundef %101)
  store i32 %102, ptr %15, align 4, !tbaa !9
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %95
  br label %151

106:                                              ; preds = %95
  br label %107

107:                                              ; preds = %106, %78
  %108 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %108, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, 40
  %114 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %110, i64 noundef %113, i32 noundef %114)
  %115 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %115, ptr %15, align 4, !tbaa !9
  store i64 197568495617, ptr %20, align 8, !tbaa !11
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = add i64 %119, 32
  %121 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %117, i64 noundef %120, i64 noundef %121)
  %122 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %122, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %15, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = add i64 %126, 16
  %128 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %124, i64 noundef %127, i32 noundef %128)
  %129 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %129, ptr %15, align 4, !tbaa !9
  store i32 38730, ptr %16, align 4, !tbaa !9
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = add i64 %133, 8
  %135 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %131, i64 noundef %134, i32 noundef %135)
  %136 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %136, ptr %15, align 4, !tbaa !9
  %137 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %137, ptr %16, align 4, !tbaa !9
  %138 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %138, ptr %17, align 4, !tbaa !9
  store i32 8, ptr %18, align 4, !tbaa !9
  %139 = load i32, ptr %18, align 4, !tbaa !9
  %140 = load i32, ptr %17, align 4, !tbaa !9
  %141 = add i32 %140, %139
  store i32 %141, ptr %17, align 4, !tbaa !9
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = load i32, ptr %16, align 4, !tbaa !9
  %144 = load i32, ptr %17, align 4, !tbaa !9
  %145 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %142, i32 noundef %143, i32 noundef %144)
  store i32 %145, ptr %16, align 4, !tbaa !9
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.w2c_hermes, ptr %146, i32 0, i32 6
  %148 = load i32, ptr %15, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %147, i64 noundef %149, i32 noundef %150)
  br label %265

151:                                              ; preds = %105
  %152 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %152, ptr %15, align 4, !tbaa !9
  %153 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %153, ptr %16, align 4, !tbaa !9
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.w2c_hermes, ptr %154, i32 0, i32 6
  %156 = load i32, ptr %16, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = add i64 %157, 24
  %159 = call i32 @i32_load(ptr noundef %155, i64 noundef %158)
  store i32 %159, ptr %16, align 4, !tbaa !9
  %160 = load i32, ptr %15, align 4, !tbaa !9
  %161 = load i32, ptr %16, align 4, !tbaa !9
  %162 = icmp ult i32 %160, %161
  %163 = zext i1 %162 to i32
  store i32 %163, ptr %15, align 4, !tbaa !9
  %164 = load i32, ptr %15, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %225

166:                                              ; preds = %151
  %167 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %167, ptr %15, align 4, !tbaa !9
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.w2c_hermes, ptr %168, i32 0, i32 6
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = zext i32 %170 to i64
  %172 = add i64 %171, 5300
  %173 = call i32 @i32_load8_u(ptr noundef %169, i64 noundef %172)
  store i32 %173, ptr %15, align 4, !tbaa !9
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  %176 = xor i1 %175, true
  %177 = zext i1 %176 to i32
  store i32 %177, ptr %15, align 4, !tbaa !9
  %178 = load i32, ptr %15, align 4, !tbaa !9
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %181

180:                                              ; preds = %166
  br label %262

181:                                              ; preds = %166
  %182 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %182, ptr %15, align 4, !tbaa !9
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %15, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = add i64 %186, 28
  %188 = call i32 @i32_load(ptr noundef %184, i64 noundef %187)
  store i32 %188, ptr %15, align 4, !tbaa !9
  %189 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %189, ptr %16, align 4, !tbaa !9
  store i32 1272, ptr %17, align 4, !tbaa !9
  %190 = load i32, ptr %17, align 4, !tbaa !9
  %191 = load i32, ptr %16, align 4, !tbaa !9
  %192 = add i32 %191, %190
  store i32 %192, ptr %16, align 4, !tbaa !9
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 6
  %195 = load i32, ptr %16, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = call i32 @i32_load(ptr noundef %194, i64 noundef %196)
  store i32 %197, ptr %16, align 4, !tbaa !9
  %198 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %198, ptr %17, align 4, !tbaa !9
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.w2c_hermes, ptr %199, i32 0, i32 6
  %201 = load i32, ptr %17, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = add i64 %202, 20
  %204 = call i32 @i32_load(ptr noundef %200, i64 noundef %203)
  store i32 %204, ptr %17, align 4, !tbaa !9
  %205 = load i32, ptr %17, align 4, !tbaa !9
  %206 = load i32, ptr %16, align 4, !tbaa !9
  %207 = xor i32 %206, %205
  store i32 %207, ptr %16, align 4, !tbaa !9
  %208 = load i32, ptr %16, align 4, !tbaa !9
  %209 = load i32, ptr %15, align 4, !tbaa !9
  %210 = add i32 %209, %208
  store i32 %210, ptr %15, align 4, !tbaa !9
  %211 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %211, ptr %16, align 4, !tbaa !9
  store i32 3, ptr %17, align 4, !tbaa !9
  %212 = load i32, ptr %17, align 4, !tbaa !9
  %213 = and i32 %212, 31
  %214 = load i32, ptr %16, align 4, !tbaa !9
  %215 = shl i32 %214, %213
  store i32 %215, ptr %16, align 4, !tbaa !9
  %216 = load i32, ptr %16, align 4, !tbaa !9
  %217 = load i32, ptr %15, align 4, !tbaa !9
  %218 = add i32 %217, %216
  store i32 %218, ptr %15, align 4, !tbaa !9
  %219 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %219, ptr %20, align 8, !tbaa !11
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.w2c_hermes, ptr %220, i32 0, i32 6
  %222 = load i32, ptr %15, align 4, !tbaa !9
  %223 = zext i32 %222 to i64
  %224 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %221, i64 noundef %223, i64 noundef %224)
  br label %225

225:                                              ; preds = %181, %151
  %226 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %226, ptr %15, align 4, !tbaa !9
  %227 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %227, ptr %16, align 4, !tbaa !9
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.w2c_hermes, ptr %228, i32 0, i32 6
  %230 = load i32, ptr %16, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = call i32 @i32_load16_u(ptr noundef %229, i64 noundef %231)
  store i32 %232, ptr %16, align 4, !tbaa !9
  store i32 65024, ptr %17, align 4, !tbaa !9
  %233 = load i32, ptr %17, align 4, !tbaa !9
  %234 = load i32, ptr %16, align 4, !tbaa !9
  %235 = and i32 %234, %233
  store i32 %235, ptr %16, align 4, !tbaa !9
  store i32 257, ptr %17, align 4, !tbaa !9
  %236 = load i32, ptr %17, align 4, !tbaa !9
  %237 = load i32, ptr %16, align 4, !tbaa !9
  %238 = or i32 %237, %236
  store i32 %238, ptr %16, align 4, !tbaa !9
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.w2c_hermes, ptr %239, i32 0, i32 6
  %241 = load i32, ptr %15, align 4, !tbaa !9
  %242 = zext i32 %241 to i64
  %243 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %240, i64 noundef %242, i32 noundef %243)
  br label %265

244:                                              ; preds = %68
  %245 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %245, ptr %15, align 4, !tbaa !9
  %246 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %246, ptr %16, align 4, !tbaa !9
  %247 = load ptr, ptr %7, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.w2c_hermes, ptr %247, i32 0, i32 6
  %249 = load i32, ptr %16, align 4, !tbaa !9
  %250 = zext i32 %249 to i64
  %251 = add i64 %250, 1
  %252 = call i32 @i32_load8_u(ptr noundef %248, i64 noundef %251)
  store i32 %252, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %253 = load i32, ptr %17, align 4, !tbaa !9
  %254 = and i32 %253, 31
  %255 = load i32, ptr %16, align 4, !tbaa !9
  %256 = shl i32 %255, %254
  store i32 %256, ptr %16, align 4, !tbaa !9
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.w2c_hermes, ptr %257, i32 0, i32 6
  %259 = load i32, ptr %15, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %258, i64 noundef %260, i32 noundef %261)
  br label %265

262:                                              ; preds = %180
  store i32 38571, ptr %15, align 4, !tbaa !9
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef %263, i32 noundef %264)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

265:                                              ; preds = %244, %225, %107
  %266 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %266, ptr %15, align 4, !tbaa !9
  store i32 48, ptr %16, align 4, !tbaa !9
  %267 = load i32, ptr %16, align 4, !tbaa !9
  %268 = load i32, ptr %15, align 4, !tbaa !9
  %269 = add i32 %268, %267
  store i32 %269, ptr %15, align 4, !tbaa !9
  %270 = load i32, ptr %15, align 4, !tbaa !9
  %271 = load ptr, ptr %7, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.w2c_hermes, ptr %271, i32 0, i32 3
  store i32 %270, ptr %272, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret void
}

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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; 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 void @i32_store8(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; 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 i32 @i32_load8_u(ptr 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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #2

declare void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cdouble0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29430x3E0x3A0x3A_setOwnIndexedImpl0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = add i32 %8, -48
  store i32 %9, ptr %7, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = zext i32 %5 to i64
  %12 = tail call i64 @i64_load(ptr noundef nonnull %10, i64 noundef %11)
  %13 = icmp ugt i64 %12, -1970324836974593
  br i1 %13, label %14, label %22

14:                                               ; preds = %6
  %15 = add i32 %8, -40
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %15, i32 noundef %3, i32 noundef %5) #4
  %16 = zext i32 %9 to i64
  %17 = add nuw nsw i64 %16, 8
  %18 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %17)
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %67, label %19

19:                                               ; preds = %14
  %20 = add nuw nsw i64 %16, 16
  %21 = tail call i64 @i64_load(ptr noundef nonnull %10, i64 noundef %20)
  br label %22

22:                                               ; preds = %19, %6
  %.0 = phi i64 [ %21, %19 ], [ %12, %6 ]
  %23 = zext i32 %2 to i64
  %24 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %23)
  %25 = zext i32 %24 to i64
  %26 = add nuw nsw i64 %25, 20
  %27 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %26)
  %.not135 = icmp eq i32 %27, 0
  br i1 %.not135, label %32, label %28

28:                                               ; preds = %22
  %29 = zext i32 %27 to i64
  %30 = add nuw nsw i64 %29, 29
  %31 = tail call i32 @i32_load8_u(ptr noundef nonnull %10, i64 noundef %30)
  %.not136 = icmp eq i32 %31, 0
  br i1 %.not136, label %32, label %41

32:                                               ; preds = %28, %22
  %33 = zext i32 %9 to i64
  %34 = add nuw nsw i64 %33, 40
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %34, i32 noundef 0)
  %35 = add nuw nsw i64 %33, 32
  tail call void @i64_store(ptr noundef nonnull %10, i64 noundef %35, i64 noundef 197568495617)
  %36 = add nuw nsw i64 %33, 16
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %36, i32 noundef 3)
  %37 = add nuw nsw i64 %33, 8
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %37, i32 noundef 38730)
  %38 = add i32 %8, -40
  %39 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %38)
  %40 = zext i32 %1 to i64
  tail call void @i32_store8(ptr noundef nonnull %10, i64 noundef %40, i32 noundef %39)
  br label %73

41:                                               ; preds = %28
  %42 = add nuw nsw i64 %25, 24
  %43 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %42)
  %44 = icmp ugt i32 %43, %4
  br i1 %44, label %45, label %62

45:                                               ; preds = %41
  %46 = zext i32 %3 to i64
  %47 = add nuw nsw i64 %46, 5300
  %48 = tail call i32 @i32_load8_u(ptr noundef nonnull %10, i64 noundef %47)
  %.not137 = icmp eq i32 %48, 0
  br i1 %.not137, label %72, label %49

49:                                               ; preds = %45
  %50 = add nuw nsw i64 %25, 28
  %51 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %50)
  %52 = add i32 %3, 1272
  %53 = zext i32 %52 to i64
  %54 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %53)
  %55 = add nuw nsw i64 %29, 20
  %56 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %55)
  %57 = xor i32 %56, %54
  %58 = shl i32 %4, 3
  %59 = add i32 %51, %58
  %60 = add i32 %59, %57
  %61 = zext i32 %60 to i64
  tail call void @i64_store(ptr noundef nonnull %10, i64 noundef %61, i64 noundef %.0)
  br label %62

62:                                               ; preds = %49, %41
  %63 = zext i32 %1 to i64
  %64 = tail call i32 @i32_load16_u(ptr noundef nonnull %10, i64 noundef %63)
  %65 = and i32 %64, 65024
  %66 = or disjoint i32 %65, 257
  tail call void @i32_store16(ptr noundef nonnull %10, i64 noundef %63, i32 noundef %66)
  br label %73

67:                                               ; preds = %14
  %68 = zext i32 %1 to i64
  %69 = add nuw nsw i64 %68, 1
  %70 = tail call i32 @i32_load8_u(ptr noundef nonnull %10, i64 noundef %69)
  %71 = shl i32 %70, 8
  tail call void @i32_store16(ptr noundef nonnull %10, i64 noundef %68, i32 noundef %71)
  br label %73

72:                                               ; preds = %45
  tail call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef 38571) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

73:                                               ; preds = %67, %62, %32
  store i32 %8, ptr %7, align 8, !tbaa !5
  ret void
}

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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass