; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; 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) #1

; 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #2

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

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

47:                                               ; preds = %4
  %48 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %48, ptr %12, align 4, !tbaa !9
  %49 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %49, ptr %13, align 4, !tbaa !9
  %50 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %50, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %51 = load i32, ptr %15, align 4, !tbaa !9
  %52 = and i32 %51, 31
  %53 = load i32, ptr %14, align 4, !tbaa !9
  %54 = shl i32 %53, %52
  store i32 %54, ptr %14, align 4, !tbaa !9
  %55 = load i32, ptr %14, align 4, !tbaa !9
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = add i32 %56, %55
  store i32 %57, ptr %13, align 4, !tbaa !9
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.w2c_hermes, ptr %58, i32 0, i32 6
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = add i64 %61, 5636
  %63 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %59, i64 noundef %62, i32 noundef %63)
  %64 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %64, ptr %12, align 4, !tbaa !9
  %65 = load i32, ptr %12, align 4, !tbaa !9
  %66 = icmp ne i32 %65, 0
  %67 = xor i1 %66, true
  %68 = zext i1 %67 to i32
  store i32 %68, ptr %12, align 4, !tbaa !9
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %47
  br label %210

72:                                               ; preds = %47
  %73 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %73, ptr %12, align 4, !tbaa !9
  store i32 7, ptr %13, align 4, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = and i32 %75, %74
  store i32 %76, ptr %12, align 4, !tbaa !9
  %77 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %77, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  %80 = xor i1 %79, true
  %81 = zext i1 %80 to i32
  store i32 %81, ptr %12, align 4, !tbaa !9
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %87

84:                                               ; preds = %72
  %85 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %85, ptr %12, align 4, !tbaa !9
  %86 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %86, ptr %6, align 4, !tbaa !9
  br label %122

87:                                               ; preds = %72
  %88 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %88, ptr %12, align 4, !tbaa !9
  %89 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %89, ptr %6, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %120, %87
  %91 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %91, ptr %12, align 4, !tbaa !9
  %92 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %92, ptr %17, align 8, !tbaa !11
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %94, i64 noundef %96, i64 noundef %97)
  %98 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %98, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %99 = load i32, ptr %13, align 4, !tbaa !9
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = sub i32 %100, %99
  store i32 %101, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %102, ptr %6, align 4, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %103, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = add i32 %105, %104
  store i32 %106, ptr %12, align 4, !tbaa !9
  %107 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %107, ptr %9, align 4, !tbaa !9
  %108 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %108, ptr %12, align 4, !tbaa !9
  store i32 1, 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 = add i32 %110, %109
  store i32 %111, ptr %12, align 4, !tbaa !9
  %112 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %112, ptr %10, align 4, !tbaa !9
  %113 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %113, ptr %13, align 4, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = icmp ne i32 %114, %115
  %117 = zext i1 %116 to i32
  store i32 %117, ptr %12, align 4, !tbaa !9
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %90
  br label %90

121:                                              ; preds = %90
  br label %122

122:                                              ; preds = %121, %84
  %123 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %123, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %124 = load i32, ptr %12, align 4, !tbaa !9
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = icmp ult i32 %124, %125
  %127 = zext i1 %126 to i32
  store i32 %127, ptr %12, align 4, !tbaa !9
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %131

130:                                              ; preds = %122
  br label %210

131:                                              ; preds = %122
  br label %132

132:                                              ; preds = %208, %131
  %133 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %133, ptr %12, align 4, !tbaa !9
  %134 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %134, ptr %17, align 8, !tbaa !11
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.w2c_hermes, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %12, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = add i64 %138, 56
  %140 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %136, i64 noundef %139, i64 noundef %140)
  %141 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %141, ptr %12, align 4, !tbaa !9
  %142 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %142, ptr %17, align 8, !tbaa !11
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 6
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = add i64 %146, 48
  %148 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %144, i64 noundef %147, i64 noundef %148)
  %149 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %149, ptr %12, align 4, !tbaa !9
  %150 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %150, ptr %17, align 8, !tbaa !11
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 40
  %156 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %152, i64 noundef %155, i64 noundef %156)
  %157 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %157, ptr %12, align 4, !tbaa !9
  %158 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %158, ptr %17, align 8, !tbaa !11
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %12, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = add i64 %162, 32
  %164 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %160, i64 noundef %163, i64 noundef %164)
  %165 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %165, ptr %12, align 4, !tbaa !9
  %166 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %166, ptr %17, align 8, !tbaa !11
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.w2c_hermes, ptr %167, i32 0, i32 6
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = add i64 %170, 24
  %172 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %168, i64 noundef %171, i64 noundef %172)
  %173 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %173, ptr %12, align 4, !tbaa !9
  %174 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %174, ptr %17, align 8, !tbaa !11
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.w2c_hermes, ptr %175, i32 0, i32 6
  %177 = load i32, ptr %12, align 4, !tbaa !9
  %178 = zext i32 %177 to i64
  %179 = add i64 %178, 16
  %180 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %176, i64 noundef %179, i64 noundef %180)
  %181 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %181, ptr %12, align 4, !tbaa !9
  %182 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %182, ptr %17, align 8, !tbaa !11
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = add i64 %186, 8
  %188 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %184, i64 noundef %187, i64 noundef %188)
  %189 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %189, ptr %12, align 4, !tbaa !9
  %190 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %190, ptr %17, align 8, !tbaa !11
  %191 = load ptr, ptr %5, 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 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %192, i64 noundef %194, i64 noundef %195)
  %196 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %196, ptr %12, align 4, !tbaa !9
  store i32 -64, ptr %13, align 4, !tbaa !9
  %197 = load i32, ptr %13, align 4, !tbaa !9
  %198 = load i32, ptr %12, align 4, !tbaa !9
  %199 = sub i32 %198, %197
  store i32 %199, ptr %12, align 4, !tbaa !9
  %200 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %200, ptr %9, align 4, !tbaa !9
  %201 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %201, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %202 = load i32, ptr %13, align 4, !tbaa !9
  %203 = load i32, ptr %12, align 4, !tbaa !9
  %204 = sub i32 %203, %202
  store i32 %204, ptr %12, align 4, !tbaa !9
  %205 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %205, ptr %6, align 4, !tbaa !9
  %206 = load i32, ptr %12, align 4, !tbaa !9
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %209

208:                                              ; preds = %132
  br label %132

209:                                              ; preds = %132
  br label %210

210:                                              ; preds = %209, %130, %71
  br label %229

211:                                              ; preds = %4
  store i32 0, ptr %12, align 4, !tbaa !9
  %212 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %212, ptr %9, align 4, !tbaa !9
  store i32 127659, ptr %13, align 4, !tbaa !9
  %213 = load i32, ptr %13, align 4, !tbaa !9
  %214 = load i32, ptr %12, align 4, !tbaa !9
  %215 = add i32 %214, %213
  store i32 %215, ptr %12, align 4, !tbaa !9
  %216 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %216, ptr %13, align 4, !tbaa !9
  store i32 84373, ptr %14, align 4, !tbaa !9
  %217 = load i32, ptr %14, align 4, !tbaa !9
  %218 = load i32, ptr %13, align 4, !tbaa !9
  %219 = add i32 %218, %217
  store i32 %219, ptr %13, align 4, !tbaa !9
  store i32 2057, ptr %14, align 4, !tbaa !9
  %220 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %220, ptr %15, align 4, !tbaa !9
  store i32 75130, ptr %16, align 4, !tbaa !9
  %221 = load i32, ptr %16, align 4, !tbaa !9
  %222 = load i32, ptr %15, align 4, !tbaa !9
  %223 = add i32 %222, %221
  store i32 %223, ptr %15, align 4, !tbaa !9
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = load i32, ptr %12, align 4, !tbaa !9
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %224, i32 noundef %225, i32 noundef %226, i32 noundef %227, i32 noundef %228)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

229:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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}


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

; 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 i32 @i32_load(ptr noundef, i64 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: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AallocStack0x28unsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %1 to i64
  %7 = add nuw nsw i64 %6, 5632
  %8 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  %9 = add nuw nsw i64 %6, 5636
  %10 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %9)
  %11 = sub i32 %8, %10
  %12 = ashr i32 %11, 3
  %.not = icmp ult i32 %12, %2
  br i1 %.not, label %33, label %13

13:                                               ; preds = %4
  %14 = shl i32 %2, 3
  %15 = add i32 %10, %14
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %9, i32 noundef %15)
  %.not130 = icmp eq i32 %2, 0
  br i1 %.not130, label %.loopexit, label %16

16:                                               ; preds = %13
  %17 = and i32 %2, 7
  %.not131 = icmp eq i32 %17, 0
  br i1 %.not131, label %.loopexit135, label %.preheader134.preheader

.preheader134.preheader:                          ; preds = %16
  %18 = and i32 %2, -8
  br label %.preheader134

.preheader134:                                    ; preds = %.preheader134.preheader, %.preheader134
  %.0126 = phi i32 [ %20, %.preheader134 ], [ %10, %.preheader134.preheader ]
  %.0125 = phi i32 [ %21, %.preheader134 ], [ 0, %.preheader134.preheader ]
  %19 = zext i32 %.0126 to i64
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %19, i64 noundef %3)
  %20 = add i32 %.0126, 8
  %21 = add nuw nsw i32 %.0125, 1
  %.not132 = icmp eq i32 %21, %17
  br i1 %.not132, label %.loopexit135, label %.preheader134

.loopexit135:                                     ; preds = %.preheader134, %16
  %.1127 = phi i32 [ %10, %16 ], [ %20, %.preheader134 ]
  %.1 = phi i32 [ %2, %16 ], [ %18, %.preheader134 ]
  %22 = icmp ult i32 %2, 8
  br i1 %22, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.loopexit135, %.preheader
  %.2128 = phi i32 [ %31, %.preheader ], [ %.1127, %.loopexit135 ]
  %.2 = phi i32 [ %32, %.preheader ], [ %.1, %.loopexit135 ]
  %23 = zext i32 %.2128 to i64
  %24 = add nuw nsw i64 %23, 56
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %24, i64 noundef %3)
  %25 = add nuw nsw i64 %23, 48
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %25, i64 noundef %3)
  %26 = add nuw nsw i64 %23, 40
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %26, i64 noundef %3)
  %27 = add nuw nsw i64 %23, 32
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %27, i64 noundef %3)
  %28 = add nuw nsw i64 %23, 24
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %28, i64 noundef %3)
  %29 = add nuw nsw i64 %23, 16
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %29, i64 noundef %3)
  %30 = add nuw nsw i64 %23, 8
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %30, i64 noundef %3)
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %23, i64 noundef %3)
  %31 = add i32 %.2128, 64
  %32 = add i32 %.2, -8
  %.not133 = icmp eq i32 %32, 0
  br i1 %.not133, label %.loopexit, label %.preheader

33:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 127659, i32 noundef 84373, i32 noundef 2057, i32 noundef 75130) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

.loopexit:                                        ; preds = %.preheader, %13, %.loopexit135
  ret void
}

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass