; 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 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 i64 @i64_load(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AthisIsRegExpProto0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %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 i64, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  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 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %16 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %16, ptr %9, align 4, !tbaa !9
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 6
  %19 = load i32, ptr %9, align 4, !tbaa !9
  %20 = zext i32 %19 to i64
  %21 = call i32 @i32_load(ptr noundef %18, i64 noundef %20)
  store i32 %21, ptr %9, align 4, !tbaa !9
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 6
  %24 = load i32, ptr %9, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = call i64 @i64_load(ptr noundef %23, i64 noundef %25)
  store i64 %26, ptr %14, align 8, !tbaa !11
  %27 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %27, ptr %7, align 8, !tbaa !11
  store i64 -844424930131968, ptr %15, align 8, !tbaa !11
  %28 = load i64, ptr %14, align 8, !tbaa !11
  %29 = load i64, ptr %15, align 8, !tbaa !11
  %30 = icmp uge i64 %28, %29
  %31 = zext i1 %30 to i32
  store i32 %31, ptr %9, align 4, !tbaa !9
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %64

34:                                               ; preds = %3
  %35 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %35, ptr %14, align 8, !tbaa !11
  %36 = load i64, ptr %14, align 8, !tbaa !11
  %37 = trunc i64 %36 to i32
  store i32 %37, ptr %9, align 4, !tbaa !9
  %38 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %38, ptr %6, align 4, !tbaa !9
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = icmp ne i32 %39, 0
  %41 = xor i1 %40, true
  %42 = zext i1 %41 to i32
  store i32 %42, ptr %9, align 4, !tbaa !9
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %34
  br label %177

46:                                               ; preds = %34
  %47 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %47, ptr %9, align 4, !tbaa !9
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.w2c_hermes, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = call i32 @i32_load(ptr noundef %49, i64 noundef %51)
  store i32 %52, ptr %9, align 4, !tbaa !9
  store i32 436207616, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = sub i32 %54, %53
  store i32 %55, ptr %9, align 4, !tbaa !9
  store i32 855638016, ptr %10, align 4, !tbaa !9
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = icmp ult i32 %56, %57
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %46
  br label %108

63:                                               ; preds = %46
  br label %64

64:                                               ; preds = %63, %3
  store i32 217520, ptr %9, align 4, !tbaa !9
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.w2c_hermes, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %9, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = call i64 @i64_load(ptr noundef %66, i64 noundef %68)
  store i64 %69, ptr %14, align 8, !tbaa !11
  %70 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %70, ptr %7, align 8, !tbaa !11
  store i64 -844424930131969, ptr %15, align 8, !tbaa !11
  %71 = load i64, ptr %14, align 8, !tbaa !11
  %72 = load i64, ptr %15, align 8, !tbaa !11
  %73 = icmp ule i64 %71, %72
  %74 = zext i1 %73 to i32
  store i32 %74, ptr %9, align 4, !tbaa !9
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %78

77:                                               ; preds = %64
  br label %195

78:                                               ; preds = %64
  %79 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %79, ptr %14, align 8, !tbaa !11
  %80 = load i64, ptr %14, align 8, !tbaa !11
  %81 = trunc i64 %80 to i32
  store i32 %81, ptr %9, align 4, !tbaa !9
  %82 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %82, ptr %6, align 4, !tbaa !9
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  %85 = xor i1 %84, true
  %86 = zext i1 %85 to i32
  store i32 %86, ptr %9, align 4, !tbaa !9
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %78
  br label %108

90:                                               ; preds = %78
  %91 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %91, ptr %9, align 4, !tbaa !9
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.w2c_hermes, ptr %92, i32 0, i32 6
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = call i32 @i32_load(ptr noundef %93, i64 noundef %95)
  store i32 %96, ptr %9, align 4, !tbaa !9
  store i32 436207616, ptr %10, align 4, !tbaa !9
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = sub i32 %98, %97
  store i32 %99, ptr %9, align 4, !tbaa !9
  store i32 855638016, ptr %10, align 4, !tbaa !9
  %100 = load i32, ptr %9, align 4, !tbaa !9
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = icmp uge i32 %100, %101
  %103 = zext i1 %102 to i32
  store i32 %103, ptr %9, align 4, !tbaa !9
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %107

106:                                              ; preds = %90
  br label %213

107:                                              ; preds = %90
  br label %108

108:                                              ; preds = %107, %89, %62
  %109 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %109, ptr %14, align 8, !tbaa !11
  store i64 48, ptr %15, align 8, !tbaa !11
  %110 = load i64, ptr %14, align 8, !tbaa !11
  %111 = load i64, ptr %15, align 8, !tbaa !11
  %112 = and i64 %111, 63
  %113 = ashr i64 %110, %112
  store i64 %113, ptr %14, align 8, !tbaa !11
  %114 = load i64, ptr %14, align 8, !tbaa !11
  %115 = trunc i64 %114 to i32
  store i32 %115, ptr %9, align 4, !tbaa !9
  store i32 -1, ptr %10, align 4, !tbaa !9
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = icmp ne i32 %116, %117
  %119 = zext i1 %118 to i32
  store i32 %119, ptr %9, align 4, !tbaa !9
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %123

122:                                              ; preds = %108
  br label %231

123:                                              ; preds = %108
  %124 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %124, ptr %9, align 4, !tbaa !9
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = add i64 %128, 520
  %130 = call i64 @i64_load(ptr noundef %126, i64 noundef %129)
  store i64 %130, ptr %14, align 8, !tbaa !11
  %131 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %131, ptr %8, align 8, !tbaa !11
  store i64 -844424930131969, ptr %15, align 8, !tbaa !11
  %132 = load i64, ptr %14, align 8, !tbaa !11
  %133 = load i64, ptr %15, align 8, !tbaa !11
  %134 = icmp ule i64 %132, %133
  %135 = zext i1 %134 to i32
  store i32 %135, ptr %9, align 4, !tbaa !9
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %139

138:                                              ; preds = %123
  br label %249

139:                                              ; preds = %123
  %140 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %140, ptr %14, align 8, !tbaa !11
  %141 = load i64, ptr %14, align 8, !tbaa !11
  %142 = trunc i64 %141 to i32
  store i32 %142, ptr %9, align 4, !tbaa !9
  %143 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %143, ptr %6, align 4, !tbaa !9
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = icmp ne i32 %144, 0
  %146 = xor i1 %145, true
  %147 = zext i1 %146 to i32
  store i32 %147, ptr %9, align 4, !tbaa !9
  %148 = load i32, ptr %9, align 4, !tbaa !9
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %151

150:                                              ; preds = %139
  br label %267

151:                                              ; preds = %139
  %152 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %152, ptr %9, align 4, !tbaa !9
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.w2c_hermes, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = call i32 @i32_load(ptr noundef %154, i64 noundef %156)
  store i32 %157, ptr %9, align 4, !tbaa !9
  store i32 436207616, ptr %10, align 4, !tbaa !9
  %158 = load i32, ptr %10, align 4, !tbaa !9
  %159 = load i32, ptr %9, align 4, !tbaa !9
  %160 = sub i32 %159, %158
  store i32 %160, ptr %9, align 4, !tbaa !9
  store i32 855638016, ptr %10, align 4, !tbaa !9
  %161 = load i32, ptr %9, align 4, !tbaa !9
  %162 = load i32, ptr %10, align 4, !tbaa !9
  %163 = icmp uge i32 %161, %162
  %164 = zext i1 %163 to i32
  store i32 %164, ptr %9, align 4, !tbaa !9
  %165 = load i32, ptr %9, align 4, !tbaa !9
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %168

167:                                              ; preds = %151
  br label %285

168:                                              ; preds = %151
  %169 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %169, ptr %14, align 8, !tbaa !11
  %170 = load i64, ptr %14, align 8, !tbaa !11
  %171 = trunc i64 %170 to i32
  store i32 %171, ptr %9, align 4, !tbaa !9
  %172 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %172, ptr %10, align 4, !tbaa !9
  %173 = load i32, ptr %9, align 4, !tbaa !9
  %174 = load i32, ptr %10, align 4, !tbaa !9
  %175 = icmp eq i32 %173, %174
  %176 = zext i1 %175 to i32
  store i32 %176, ptr %9, align 4, !tbaa !9
  br label %303

177:                                              ; preds = %45
  store i32 0, ptr %9, align 4, !tbaa !9
  %178 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %178, ptr %6, align 4, !tbaa !9
  store i32 147142, ptr %10, align 4, !tbaa !9
  %179 = load i32, ptr %10, align 4, !tbaa !9
  %180 = load i32, ptr %9, align 4, !tbaa !9
  %181 = add i32 %180, %179
  store i32 %181, ptr %9, align 4, !tbaa !9
  %182 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %182, ptr %10, align 4, !tbaa !9
  store i32 82611, ptr %11, align 4, !tbaa !9
  %183 = load i32, ptr %11, align 4, !tbaa !9
  %184 = load i32, ptr %10, align 4, !tbaa !9
  %185 = add i32 %184, %183
  store i32 %185, ptr %10, align 4, !tbaa !9
  store i32 106, ptr %11, align 4, !tbaa !9
  %186 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %186, ptr %12, align 4, !tbaa !9
  store i32 28119, ptr %13, align 4, !tbaa !9
  %187 = load i32, ptr %13, align 4, !tbaa !9
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = add i32 %188, %187
  store i32 %189, ptr %12, align 4, !tbaa !9
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = load i32, ptr %9, align 4, !tbaa !9
  %192 = load i32, ptr %10, align 4, !tbaa !9
  %193 = load i32, ptr %11, align 4, !tbaa !9
  %194 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %190, i32 noundef %191, i32 noundef %192, i32 noundef %193, i32 noundef %194)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

195:                                              ; preds = %77
  store i32 0, ptr %9, align 4, !tbaa !9
  %196 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %196, ptr %6, align 4, !tbaa !9
  store i32 146777, ptr %10, align 4, !tbaa !9
  %197 = load i32, ptr %10, align 4, !tbaa !9
  %198 = load i32, ptr %9, align 4, !tbaa !9
  %199 = add i32 %198, %197
  store i32 %199, ptr %9, align 4, !tbaa !9
  %200 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %200, ptr %10, align 4, !tbaa !9
  store i32 82692, ptr %11, align 4, !tbaa !9
  %201 = load i32, ptr %11, align 4, !tbaa !9
  %202 = load i32, ptr %10, align 4, !tbaa !9
  %203 = add i32 %202, %201
  store i32 %203, ptr %10, align 4, !tbaa !9
  store i32 61, ptr %11, align 4, !tbaa !9
  %204 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %204, ptr %12, align 4, !tbaa !9
  store i32 72547, ptr %13, align 4, !tbaa !9
  %205 = load i32, ptr %13, align 4, !tbaa !9
  %206 = load i32, ptr %12, align 4, !tbaa !9
  %207 = add i32 %206, %205
  store i32 %207, ptr %12, align 4, !tbaa !9
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = load i32, ptr %9, align 4, !tbaa !9
  %210 = load i32, ptr %10, align 4, !tbaa !9
  %211 = load i32, ptr %11, align 4, !tbaa !9
  %212 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %208, i32 noundef %209, i32 noundef %210, i32 noundef %211, i32 noundef %212)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

213:                                              ; preds = %106
  store i32 0, ptr %9, align 4, !tbaa !9
  %214 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %214, ptr %6, align 4, !tbaa !9
  store i32 205071, ptr %10, align 4, !tbaa !9
  %215 = load i32, ptr %10, align 4, !tbaa !9
  %216 = load i32, ptr %9, align 4, !tbaa !9
  %217 = add i32 %216, %215
  store i32 %217, ptr %9, align 4, !tbaa !9
  %218 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %218, ptr %10, align 4, !tbaa !9
  store i32 82611, ptr %11, align 4, !tbaa !9
  %219 = load i32, ptr %11, align 4, !tbaa !9
  %220 = load i32, ptr %10, align 4, !tbaa !9
  %221 = add i32 %220, %219
  store i32 %221, ptr %10, align 4, !tbaa !9
  store i32 299, ptr %11, align 4, !tbaa !9
  %222 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %222, ptr %12, align 4, !tbaa !9
  store i32 72549, ptr %13, align 4, !tbaa !9
  %223 = load i32, ptr %13, align 4, !tbaa !9
  %224 = load i32, ptr %12, align 4, !tbaa !9
  %225 = add i32 %224, %223
  store i32 %225, ptr %12, align 4, !tbaa !9
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = load i32, ptr %9, align 4, !tbaa !9
  %228 = load i32, ptr %10, align 4, !tbaa !9
  %229 = load i32, ptr %11, align 4, !tbaa !9
  %230 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %226, i32 noundef %227, i32 noundef %228, i32 noundef %229, i32 noundef %230)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

231:                                              ; preds = %122
  store i32 0, ptr %9, align 4, !tbaa !9
  %232 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %232, ptr %6, align 4, !tbaa !9
  store i32 118124, ptr %10, align 4, !tbaa !9
  %233 = load i32, ptr %10, align 4, !tbaa !9
  %234 = load i32, ptr %9, align 4, !tbaa !9
  %235 = add i32 %234, %233
  store i32 %235, ptr %9, align 4, !tbaa !9
  %236 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %236, ptr %10, align 4, !tbaa !9
  store i32 83341, ptr %11, align 4, !tbaa !9
  %237 = load i32, ptr %11, align 4, !tbaa !9
  %238 = load i32, ptr %10, align 4, !tbaa !9
  %239 = add i32 %238, %237
  store i32 %239, ptr %10, align 4, !tbaa !9
  store i32 480, ptr %11, align 4, !tbaa !9
  %240 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %240, ptr %12, align 4, !tbaa !9
  store i32 38798, ptr %13, align 4, !tbaa !9
  %241 = load i32, ptr %13, align 4, !tbaa !9
  %242 = load i32, ptr %12, align 4, !tbaa !9
  %243 = add i32 %242, %241
  store i32 %243, ptr %12, align 4, !tbaa !9
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = load i32, ptr %9, align 4, !tbaa !9
  %246 = load i32, ptr %10, align 4, !tbaa !9
  %247 = load i32, ptr %11, align 4, !tbaa !9
  %248 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %244, i32 noundef %245, i32 noundef %246, i32 noundef %247, i32 noundef %248)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

249:                                              ; preds = %138
  store i32 0, ptr %9, align 4, !tbaa !9
  %250 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %250, ptr %6, align 4, !tbaa !9
  store i32 146777, ptr %10, align 4, !tbaa !9
  %251 = load i32, ptr %10, align 4, !tbaa !9
  %252 = load i32, ptr %9, align 4, !tbaa !9
  %253 = add i32 %252, %251
  store i32 %253, ptr %9, align 4, !tbaa !9
  %254 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %254, ptr %10, align 4, !tbaa !9
  store i32 82692, ptr %11, align 4, !tbaa !9
  %255 = load i32, ptr %11, align 4, !tbaa !9
  %256 = load i32, ptr %10, align 4, !tbaa !9
  %257 = add i32 %256, %255
  store i32 %257, ptr %10, align 4, !tbaa !9
  store i32 43, ptr %11, align 4, !tbaa !9
  %258 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %258, ptr %12, align 4, !tbaa !9
  store i32 24718, ptr %13, align 4, !tbaa !9
  %259 = load i32, ptr %13, align 4, !tbaa !9
  %260 = load i32, ptr %12, align 4, !tbaa !9
  %261 = add i32 %260, %259
  store i32 %261, ptr %12, align 4, !tbaa !9
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = load i32, ptr %9, align 4, !tbaa !9
  %264 = load i32, ptr %10, align 4, !tbaa !9
  %265 = load i32, ptr %11, align 4, !tbaa !9
  %266 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %262, i32 noundef %263, i32 noundef %264, i32 noundef %265, i32 noundef %266)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

267:                                              ; preds = %150
  store i32 0, ptr %9, align 4, !tbaa !9
  %268 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %268, ptr %6, align 4, !tbaa !9
  store i32 147142, ptr %10, align 4, !tbaa !9
  %269 = load i32, ptr %10, align 4, !tbaa !9
  %270 = load i32, ptr %9, align 4, !tbaa !9
  %271 = add i32 %270, %269
  store i32 %271, ptr %9, align 4, !tbaa !9
  %272 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %272, ptr %10, align 4, !tbaa !9
  store i32 82611, ptr %11, align 4, !tbaa !9
  %273 = load i32, ptr %11, align 4, !tbaa !9
  %274 = load i32, ptr %10, align 4, !tbaa !9
  %275 = add i32 %274, %273
  store i32 %275, ptr %10, align 4, !tbaa !9
  store i32 106, ptr %11, align 4, !tbaa !9
  %276 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %276, ptr %12, align 4, !tbaa !9
  store i32 28119, ptr %13, align 4, !tbaa !9
  %277 = load i32, ptr %13, align 4, !tbaa !9
  %278 = load i32, ptr %12, align 4, !tbaa !9
  %279 = add i32 %278, %277
  store i32 %279, ptr %12, align 4, !tbaa !9
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = load i32, ptr %9, align 4, !tbaa !9
  %282 = load i32, ptr %10, align 4, !tbaa !9
  %283 = load i32, ptr %11, align 4, !tbaa !9
  %284 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %280, i32 noundef %281, i32 noundef %282, i32 noundef %283, i32 noundef %284)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

285:                                              ; preds = %167
  store i32 0, ptr %9, align 4, !tbaa !9
  %286 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %286, ptr %6, align 4, !tbaa !9
  store i32 205012, ptr %10, align 4, !tbaa !9
  %287 = load i32, ptr %10, align 4, !tbaa !9
  %288 = load i32, ptr %9, align 4, !tbaa !9
  %289 = add i32 %288, %287
  store i32 %289, ptr %9, align 4, !tbaa !9
  %290 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %290, ptr %10, align 4, !tbaa !9
  store i32 82611, ptr %11, align 4, !tbaa !9
  %291 = load i32, ptr %11, align 4, !tbaa !9
  %292 = load i32, ptr %10, align 4, !tbaa !9
  %293 = add i32 %292, %291
  store i32 %293, ptr %10, align 4, !tbaa !9
  store i32 255, ptr %11, align 4, !tbaa !9
  %294 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %294, ptr %12, align 4, !tbaa !9
  store i32 24720, ptr %13, align 4, !tbaa !9
  %295 = load i32, ptr %13, align 4, !tbaa !9
  %296 = load i32, ptr %12, align 4, !tbaa !9
  %297 = add i32 %296, %295
  store i32 %297, ptr %12, align 4, !tbaa !9
  %298 = load ptr, ptr %4, align 8, !tbaa !5
  %299 = load i32, ptr %9, align 4, !tbaa !9
  %300 = load i32, ptr %10, align 4, !tbaa !9
  %301 = load i32, ptr %11, align 4, !tbaa !9
  %302 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %298, i32 noundef %299, i32 noundef %300, i32 noundef %301, i32 noundef %302)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

303:                                              ; preds = %168
  %304 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, 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
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret i32 %304
}

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}


; 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 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 i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AthisIsRegExpProto0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %2 to i64
  %6 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  %7 = zext i32 %6 to i64
  %8 = tail call i64 @i64_load(ptr noundef nonnull %4, i64 noundef %7)
  %9 = icmp ugt i64 %8, -844424930131969
  br i1 %9, label %10, label %16

10:                                               ; preds = %3
  %11 = and i64 %8, 4294967295
  %.not = icmp eq i64 %11, 0
  br i1 %.not, label %42, label %12

12:                                               ; preds = %10
  %13 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %11)
  %14 = add i32 %13, -436207616
  %15 = icmp ult i32 %14, 855638016
  br i1 %15, label %25, label %16

16:                                               ; preds = %12, %3
  %17 = tail call i64 @i64_load(ptr noundef nonnull %4, i64 noundef 217520)
  %18 = icmp ult i64 %17, -844424930131968
  br i1 %18, label %43, label %19

19:                                               ; preds = %16
  %20 = and i64 %17, 4294967295
  %.not174 = icmp eq i64 %20, 0
  br i1 %.not174, label %25, label %21

21:                                               ; preds = %19
  %22 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %20)
  %23 = add i32 %22, -1291845632
  %24 = icmp ult i32 %23, -855638016
  br i1 %24, label %44, label %25

25:                                               ; preds = %21, %19, %12
  %.0 = phi i64 [ %8, %12 ], [ %17, %19 ], [ %17, %21 ]
  %.not175 = icmp ugt i64 %.0, -281474976710657
  br i1 %.not175, label %26, label %45

26:                                               ; preds = %25
  %27 = zext i32 %1 to i64
  %28 = add nuw nsw i64 %27, 520
  %29 = tail call i64 @i64_load(ptr noundef nonnull %4, i64 noundef %28)
  %30 = icmp ult i64 %29, -844424930131968
  br i1 %30, label %46, label %31

31:                                               ; preds = %26
  %32 = trunc i64 %29 to i32
  %.not176 = icmp eq i32 %32, 0
  br i1 %.not176, label %47, label %33

33:                                               ; preds = %31
  %34 = and i64 %29, 4294967295
  %35 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %34)
  %36 = add i32 %35, -1291845632
  %37 = icmp ult i32 %36, -855638016
  br i1 %37, label %48, label %38

38:                                               ; preds = %33
  %39 = trunc i64 %.0 to i32
  %40 = icmp eq i32 %39, %32
  %41 = zext i1 %40 to i32
  ret i32 %41

42:                                               ; preds = %10
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %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

43:                                               ; preds = %16
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 146777, i32 noundef 82692, i32 noundef 61, i32 noundef 72547) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

44:                                               ; preds = %21
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 205071, i32 noundef 82611, i32 noundef 299, i32 noundef 72549) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

45:                                               ; preds = %25
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118124, i32 noundef 83341, i32 noundef 480, i32 noundef 38798) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

46:                                               ; preds = %26
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 146777, i32 noundef 82692, i32 noundef 43, i32 noundef 24718) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

47:                                               ; preds = %31
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %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

48:                                               ; preds = %33
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 205012, i32 noundef 82611, i32 noundef 255, i32 noundef 24720) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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)"}


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