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

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

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

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

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

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

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

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

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

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

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

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

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

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

44:                                               ; preds = %5
  br label %98

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

67:                                               ; preds = %45
  br label %98

68:                                               ; preds = %45
  %69 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %69, ptr %18, align 8, !tbaa !11
  %70 = load i64, ptr %18, align 8, !tbaa !11
  %71 = trunc i64 %70 to i32
  store i32 %71, ptr %13, align 4, !tbaa !9
  %72 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %72, ptr %10, align 4, !tbaa !9
  %73 = load i32, ptr %13, align 4, !tbaa !9
  %74 = icmp ne i32 %73, 0
  %75 = xor i1 %74, true
  %76 = zext i1 %75 to i32
  store i32 %76, ptr %13, align 4, !tbaa !9
  %77 = load i32, ptr %13, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %68
  br label %216

80:                                               ; preds = %68
  %81 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %81, ptr %13, align 4, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.w2c_hermes, ptr %82, i32 0, i32 6
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = call i32 @i32_load(ptr noundef %83, i64 noundef %85)
  store i32 %86, ptr %13, align 4, !tbaa !9
  store i32 436207616, ptr %14, align 4, !tbaa !9
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = load i32, ptr %13, align 4, !tbaa !9
  %89 = sub i32 %88, %87
  store i32 %89, ptr %13, align 4, !tbaa !9
  store i32 855638016, ptr %14, align 4, !tbaa !9
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = load i32, ptr %14, align 4, !tbaa !9
  %92 = icmp ult i32 %90, %91
  %93 = zext i1 %92 to i32
  store i32 %93, ptr %13, align 4, !tbaa !9
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %80
  br label %112

97:                                               ; preds = %80
  br label %98

98:                                               ; preds = %97, %67, %44
  %99 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %99, ptr %13, align 4, !tbaa !9
  store i64 -1407374883553280, ptr %19, align 8, !tbaa !11
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = add i64 %103, 8
  %105 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %101, i64 noundef %104, i64 noundef %105)
  %106 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %106, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.w2c_hermes, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %13, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %108, i64 noundef %110, i32 noundef %111)
  br label %208

112:                                              ; preds = %96
  %113 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %113, ptr %13, align 4, !tbaa !9
  %114 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %114, ptr %14, align 4, !tbaa !9
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %13, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = add i64 %118, 4
  %120 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %116, i64 noundef %119, i32 noundef %120)
  %121 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %121, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.w2c_hermes, ptr %122, i32 0, i32 6
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = add i64 %125, 8
  %127 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %123, i64 noundef %126, i32 noundef %127)
  %128 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %128, ptr %13, align 4, !tbaa !9
  store i32 12, ptr %14, align 4, !tbaa !9
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %13, align 4, !tbaa !9
  %131 = add i32 %130, %129
  store i32 %131, ptr %13, align 4, !tbaa !9
  %132 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %132, ptr %14, align 4, !tbaa !9
  store i32 4, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %14, align 4, !tbaa !9
  %136 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %136, ptr %15, align 4, !tbaa !9
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = load i32, ptr %14, align 4, !tbaa !9
  %140 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AisExtensible0x28hermes0x3A0x3Avm0x3A0x3APseudoHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef %137, i32 noundef %138, i32 noundef %139, i32 noundef %140)
  %141 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %141, ptr %13, align 4, !tbaa !9
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.w2c_hermes, ptr %142, i32 0, i32 6
  %144 = load i32, ptr %13, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = add i64 %145, 12
  %147 = call i32 @i32_load16_u(ptr noundef %143, i64 noundef %146)
  store i32 %147, ptr %13, align 4, !tbaa !9
  %148 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %148, ptr %10, align 4, !tbaa !9
  store i32 255, ptr %14, align 4, !tbaa !9
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = and i32 %150, %149
  store i32 %151, ptr %13, align 4, !tbaa !9
  %152 = load i32, ptr %13, align 4, !tbaa !9
  switch i32 %152, label %155 [
    i32 0, label %153
    i32 1, label %154
  ]

153:                                              ; preds = %112
  br label %156

154:                                              ; preds = %112
  br label %181

155:                                              ; preds = %112
  br label %163

156:                                              ; preds = %153
  %157 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %157, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.w2c_hermes, ptr %158, i32 0, i32 6
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %159, i64 noundef %161, i32 noundef %162)
  br label %208

163:                                              ; preds = %155
  store i32 0, ptr %13, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %164, ptr %7, align 4, !tbaa !9
  store i32 109676, ptr %14, align 4, !tbaa !9
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = add i32 %166, %165
  store i32 %167, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %168, ptr %14, align 4, !tbaa !9
  store i32 77564, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = add i32 %170, %169
  store i32 %171, ptr %14, align 4, !tbaa !9
  store i32 223, ptr %15, align 4, !tbaa !9
  %172 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %172, ptr %16, align 4, !tbaa !9
  store i32 90402, ptr %17, align 4, !tbaa !9
  %173 = load i32, ptr %17, align 4, !tbaa !9
  %174 = load i32, ptr %16, align 4, !tbaa !9
  %175 = add i32 %174, %173
  store i32 %175, ptr %16, align 4, !tbaa !9
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = load i32, ptr %14, align 4, !tbaa !9
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %176, i32 noundef %177, i32 noundef %178, i32 noundef %179, i32 noundef %180)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

181:                                              ; preds = %154
  %182 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %182, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %13, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %184, i64 noundef %186, i32 noundef %187)
  %188 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %188, ptr %13, align 4, !tbaa !9
  %189 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %189, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %190 = load i32, ptr %15, align 4, !tbaa !9
  %191 = and i32 %190, 31
  %192 = load i32, ptr %14, align 4, !tbaa !9
  %193 = lshr i32 %192, %191
  store i32 %193, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %194 = load i32, ptr %15, align 4, !tbaa !9
  %195 = load i32, ptr %14, align 4, !tbaa !9
  %196 = and i32 %195, %194
  store i32 %196, ptr %14, align 4, !tbaa !9
  %197 = load i32, ptr %14, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  store i64 %198, ptr %19, align 8, !tbaa !11
  store i64 -1407374883553280, ptr %20, align 8, !tbaa !11
  %199 = load i64, ptr %20, align 8, !tbaa !11
  %200 = load i64, ptr %19, align 8, !tbaa !11
  %201 = or i64 %200, %199
  store i64 %201, ptr %19, align 8, !tbaa !11
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.w2c_hermes, ptr %202, i32 0, i32 6
  %204 = load i32, ptr %13, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = add i64 %205, 8
  %207 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %203, i64 noundef %206, i64 noundef %207)
  br label %208

208:                                              ; preds = %181, %156, %98
  %209 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %209, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = add i32 %211, %210
  store i32 %212, ptr %13, align 4, !tbaa !9
  %213 = load i32, ptr %13, align 4, !tbaa !9
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.w2c_hermes, ptr %214, i32 0, i32 3
  store i32 %213, ptr %215, align 8, !tbaa !13
  br label %234

216:                                              ; preds = %79
  store i32 0, ptr %13, align 4, !tbaa !9
  %217 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %217, ptr %7, align 4, !tbaa !9
  store i32 147142, ptr %14, align 4, !tbaa !9
  %218 = load i32, ptr %14, align 4, !tbaa !9
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = add i32 %219, %218
  store i32 %220, ptr %13, align 4, !tbaa !9
  %221 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %221, ptr %14, align 4, !tbaa !9
  store i32 82611, ptr %15, align 4, !tbaa !9
  %222 = load i32, ptr %15, align 4, !tbaa !9
  %223 = load i32, ptr %14, align 4, !tbaa !9
  %224 = add i32 %223, %222
  store i32 %224, ptr %14, align 4, !tbaa !9
  store i32 106, ptr %15, align 4, !tbaa !9
  %225 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %225, ptr %16, align 4, !tbaa !9
  store i32 28119, ptr %17, align 4, !tbaa !9
  %226 = load i32, ptr %17, align 4, !tbaa !9
  %227 = load i32, ptr %16, align 4, !tbaa !9
  %228 = add i32 %227, %226
  store i32 %228, ptr %16, align 4, !tbaa !9
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = load i32, ptr %13, align 4, !tbaa !9
  %231 = load i32, ptr %14, align 4, !tbaa !9
  %232 = load i32, ptr %15, align 4, !tbaa !9
  %233 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %229, i32 noundef %230, i32 noundef %231, i32 noundef %232, i32 noundef %233)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

234:                                              ; preds = %208
  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 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret void
}

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

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

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

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


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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store8(ptr noundef, i64 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 #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AobjectIsExtensible0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -16
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %4 to i64
  %11 = add nuw nsw i64 %10, 4
  %12 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %26, 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 %26, label %19

19:                                               ; preds = %13
  %20 = trunc i64 %17 to i32
  %.not122 = icmp eq i32 %20, 0
  br i1 %.not122, label %48, label %21

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

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

29:                                               ; preds = %21
  %30 = zext i32 %8 to i64
  %31 = add nuw nsw i64 %30, 4
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %31, i32 noundef %20)
  %32 = add nuw nsw i64 %30, 8
  tail call void @i32_store8(ptr noundef nonnull %9, i64 noundef %32, i32 noundef 1)
  %33 = add i32 %7, -4
  %34 = add i32 %7, -12
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AisExtensible0x28hermes0x3A0x3Avm0x3A0x3APseudoHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef nonnull %0, i32 noundef %33, i32 noundef %34, i32 noundef %3) #4
  %35 = add nuw nsw i64 %30, 12
  %36 = tail call i32 @i32_load16_u(ptr noundef nonnull %9, i64 noundef %35)
  %trunc = trunc i32 %36 to i8
  switch i8 %trunc, label %39 [
    i8 0, label %37
    i8 1, label %40
  ]

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

39:                                               ; preds = %29
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109676, i32 noundef 77564, i32 noundef 223, i32 noundef 90402) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

40:                                               ; preds = %29
  %41 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %41, i32 noundef 1)
  %42 = lshr i32 %36, 8
  %43 = and i32 %42, 1
  %44 = zext nneg i32 %43 to i64
  %45 = or disjoint i64 %44, -1407374883553280
  %46 = add nuw nsw i64 %41, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %46, i64 noundef %45)
  br label %47

47:                                               ; preds = %40, %37, %26
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void

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

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

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

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

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


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