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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(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 i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSRegExpStringIterator0x2A0x20hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3AconstructCell0x3Chermes0x3A0x3Avm0x3A0x3AJSRegExpStringIterator0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHiddenClass0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x260x2C0x20bool0x260x2C0x20bool0x260x3E0x28void0x2A0x2C0x20unsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHiddenClass0x3E0x260x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x260x2C0x20bool0x260x2C0x20bool0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #4 {
  %11 = alloca ptr, align 8
  %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 i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i32 %1, ptr %12, align 4, !tbaa !9
  store i32 %2, ptr %13, align 4, !tbaa !9
  store i32 %3, ptr %14, align 4, !tbaa !9
  store i32 %4, ptr %15, align 4, !tbaa !9
  store i32 %5, ptr %16, align 4, !tbaa !9
  store i32 %6, ptr %17, align 4, !tbaa !9
  store i32 %7, ptr %18, align 4, !tbaa !9
  store i32 %8, ptr %19, align 4, !tbaa !9
  store i32 %9, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 3
  %32 = load i32, ptr %31, align 8, !tbaa !11
  store i32 %32, ptr %22, align 4, !tbaa !9
  store i32 32, ptr %23, align 4, !tbaa !9
  %33 = load i32, ptr %23, align 4, !tbaa !9
  %34 = load i32, ptr %22, align 4, !tbaa !9
  %35 = sub i32 %34, %33
  store i32 %35, ptr %22, align 4, !tbaa !9
  %36 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %36, ptr %21, align 4, !tbaa !9
  %37 = load i32, ptr %22, align 4, !tbaa !9
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 3
  store i32 %37, ptr %39, align 8, !tbaa !11
  %40 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %40, ptr %22, align 4, !tbaa !9
  %41 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %41, ptr %23, align 4, !tbaa !9
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.w2c_hermes, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %23, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = add i64 %45, 4
  %47 = call i32 @i32_load(ptr noundef %43, i64 noundef %46)
  store i32 %47, ptr %23, align 4, !tbaa !9
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.w2c_hermes, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %22, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = add i64 %51, 28
  %53 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %49, i64 noundef %52, i32 noundef %53)
  %54 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %54, ptr %22, align 4, !tbaa !9
  %55 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %55, ptr %23, align 4, !tbaa !9
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.w2c_hermes, ptr %56, i32 0, i32 6
  %58 = load i32, ptr %23, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = call i32 @i32_load(ptr noundef %57, i64 noundef %59)
  store i32 %60, ptr %23, align 4, !tbaa !9
  %61 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %61, ptr %15, align 4, !tbaa !9
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.w2c_hermes, ptr %62, i32 0, i32 6
  %64 = load i32, ptr %22, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = add i64 %65, 24
  %67 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %63, i64 noundef %66, i32 noundef %67)
  %68 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %68, ptr %22, align 4, !tbaa !9
  %69 = load i32, ptr %22, align 4, !tbaa !9
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %87

71:                                               ; preds = %10
  %72 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %72, ptr %22, align 4, !tbaa !9
  %73 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %73, ptr %23, align 4, !tbaa !9
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.w2c_hermes, ptr %74, i32 0, i32 6
  %76 = load i32, ptr %23, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = call i32 @i32_load(ptr noundef %75, i64 noundef %77)
  store i32 %78, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %79 = load i32, ptr %24, align 4, !tbaa !9
  %80 = load i32, ptr %23, align 4, !tbaa !9
  %81 = add i32 %80, %79
  store i32 %81, ptr %23, align 4, !tbaa !9
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.w2c_hermes, ptr %82, i32 0, i32 6
  %84 = load i32, ptr %22, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %83, i64 noundef %85, i32 noundef %86)
  br label %87

87:                                               ; preds = %71, %10
  %88 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %88, ptr %22, align 4, !tbaa !9
  %89 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %89, ptr %23, align 4, !tbaa !9
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.w2c_hermes, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %23, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = add i64 %93, 4
  %95 = call i32 @i32_load(ptr noundef %91, i64 noundef %94)
  store i32 %95, ptr %23, align 4, !tbaa !9
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 6
  %98 = load i32, ptr %22, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = add i64 %99, 20
  %101 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %97, i64 noundef %100, i32 noundef %101)
  %102 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %102, ptr %22, align 4, !tbaa !9
  %103 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %103, ptr %23, align 4, !tbaa !9
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.w2c_hermes, ptr %104, i32 0, i32 6
  %106 = load i32, ptr %23, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = call i32 @i32_load(ptr noundef %105, i64 noundef %107)
  store i32 %108, ptr %23, align 4, !tbaa !9
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %22, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, 16
  %114 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %110, i64 noundef %113, i32 noundef %114)
  %115 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %115, ptr %22, align 4, !tbaa !9
  store i32 0, ptr %23, align 4, !tbaa !9
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %22, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %117, i64 noundef %119, i32 noundef %120)
  %121 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %121, ptr %22, align 4, !tbaa !9
  %122 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %122, ptr %23, align 4, !tbaa !9
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %23, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = add i64 %126, 4
  %128 = call i32 @i32_load(ptr noundef %124, i64 noundef %127)
  store i32 %128, ptr %23, align 4, !tbaa !9
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.w2c_hermes, ptr %129, i32 0, i32 6
  %131 = load i32, ptr %22, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = add i64 %132, 12
  %134 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %130, i64 noundef %133, i32 noundef %134)
  %135 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %135, ptr %22, align 4, !tbaa !9
  %136 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %136, ptr %23, align 4, !tbaa !9
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %23, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = call i32 @i32_load(ptr noundef %138, i64 noundef %140)
  store i32 %141, ptr %23, align 4, !tbaa !9
  %142 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %142, ptr %16, align 4, !tbaa !9
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 6
  %145 = load i32, ptr %22, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = add i64 %146, 8
  %148 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %144, i64 noundef %147, i32 noundef %148)
  %149 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %149, ptr %22, align 4, !tbaa !9
  %150 = load i32, ptr %22, align 4, !tbaa !9
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %168

152:                                              ; preds = %87
  %153 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %153, ptr %22, align 4, !tbaa !9
  %154 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %154, ptr %23, align 4, !tbaa !9
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.w2c_hermes, ptr %155, i32 0, i32 6
  %157 = load i32, ptr %23, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = call i32 @i32_load(ptr noundef %156, i64 noundef %158)
  store i32 %159, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %160 = load i32, ptr %24, align 4, !tbaa !9
  %161 = load i32, ptr %23, align 4, !tbaa !9
  %162 = add i32 %161, %160
  store i32 %162, ptr %23, align 4, !tbaa !9
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.w2c_hermes, ptr %163, i32 0, i32 6
  %165 = load i32, ptr %22, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %164, i64 noundef %166, i32 noundef %167)
  br label %168

168:                                              ; preds = %152, %87
  %169 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %169, ptr %22, align 4, !tbaa !9
  %170 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %170, ptr %23, align 4, !tbaa !9
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.w2c_hermes, ptr %171, i32 0, i32 6
  %173 = load i32, ptr %23, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = add i64 %174, 4
  %176 = call i32 @i32_load(ptr noundef %172, i64 noundef %175)
  store i32 %176, ptr %23, align 4, !tbaa !9
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.w2c_hermes, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %22, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = add i64 %180, 4
  %182 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %178, i64 noundef %181, i32 noundef %182)
  %183 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %183, ptr %22, align 4, !tbaa !9
  %184 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %184, ptr %23, align 4, !tbaa !9
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 6
  %187 = load i32, ptr %23, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = call i32 @i32_load(ptr noundef %186, i64 noundef %188)
  store i32 %189, ptr %23, align 4, !tbaa !9
  %190 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %190, ptr %16, align 4, !tbaa !9
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %22, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %192, i64 noundef %194, i32 noundef %195)
  %196 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %196, ptr %22, align 4, !tbaa !9
  %197 = load i32, ptr %22, align 4, !tbaa !9
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %199, label %215

199:                                              ; preds = %168
  %200 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %200, ptr %22, align 4, !tbaa !9
  %201 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %201, ptr %23, align 4, !tbaa !9
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.w2c_hermes, ptr %202, i32 0, i32 6
  %204 = load i32, ptr %23, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = call i32 @i32_load(ptr noundef %203, i64 noundef %205)
  store i32 %206, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %207 = load i32, ptr %24, align 4, !tbaa !9
  %208 = load i32, ptr %23, align 4, !tbaa !9
  %209 = add i32 %208, %207
  store i32 %209, ptr %23, align 4, !tbaa !9
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.w2c_hermes, ptr %210, i32 0, i32 6
  %212 = load i32, ptr %22, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %211, i64 noundef %213, i32 noundef %214)
  br label %215

215:                                              ; preds = %199, %168
  %216 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %216, ptr %22, align 4, !tbaa !9
  %217 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %217, ptr %23, align 4, !tbaa !9
  %218 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %218, ptr %24, align 4, !tbaa !9
  store i32 24, ptr %25, align 4, !tbaa !9
  %219 = load i32, ptr %25, align 4, !tbaa !9
  %220 = load i32, ptr %24, align 4, !tbaa !9
  %221 = add i32 %220, %219
  store i32 %221, ptr %24, align 4, !tbaa !9
  %222 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %222, ptr %25, align 4, !tbaa !9
  store i32 16, ptr %26, align 4, !tbaa !9
  %223 = load i32, ptr %26, align 4, !tbaa !9
  %224 = load i32, ptr %25, align 4, !tbaa !9
  %225 = add i32 %224, %223
  store i32 %225, ptr %25, align 4, !tbaa !9
  %226 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %226, ptr %26, align 4, !tbaa !9
  store i32 8, ptr %27, align 4, !tbaa !9
  %227 = load i32, ptr %27, align 4, !tbaa !9
  %228 = load i32, ptr %26, align 4, !tbaa !9
  %229 = add i32 %228, %227
  store i32 %229, ptr %26, align 4, !tbaa !9
  %230 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %230, ptr %27, align 4, !tbaa !9
  %231 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %231, ptr %28, align 4, !tbaa !9
  %232 = load ptr, ptr %11, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.w2c_hermes, ptr %232, i32 0, i32 6
  %234 = load i32, ptr %28, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = call i32 @i32_load8_u(ptr noundef %233, i64 noundef %235)
  store i32 %236, ptr %28, align 4, !tbaa !9
  %237 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %237, ptr %29, align 4, !tbaa !9
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.w2c_hermes, ptr %238, i32 0, i32 6
  %240 = load i32, ptr %29, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = call i32 @i32_load8_u(ptr noundef %239, i64 noundef %241)
  store i32 %242, ptr %29, align 4, !tbaa !9
  %243 = load ptr, ptr %11, align 8, !tbaa !5
  %244 = load i32, ptr %22, align 4, !tbaa !9
  %245 = load i32, ptr %23, align 4, !tbaa !9
  %246 = load i32, ptr %24, align 4, !tbaa !9
  %247 = load i32, ptr %25, align 4, !tbaa !9
  %248 = load i32, ptr %26, align 4, !tbaa !9
  %249 = load i32, ptr %27, align 4, !tbaa !9
  %250 = load i32, ptr %28, align 4, !tbaa !9
  %251 = load i32, ptr %29, align 4, !tbaa !9
  %252 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSRegExpStringIterator0x3A0x3AJSRegExpStringIterator0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHiddenClass0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x2C0x20bool0x2C0x20bool0x29(ptr noundef %243, i32 noundef %244, i32 noundef %245, i32 noundef %246, i32 noundef %247, i32 noundef %248, i32 noundef %249, i32 noundef %250, i32 noundef %251)
  store i32 %252, ptr %22, align 4, !tbaa !9
  %253 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %253, ptr %16, align 4, !tbaa !9
  %254 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %254, ptr %22, align 4, !tbaa !9
  %255 = load ptr, ptr %11, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.w2c_hermes, ptr %255, i32 0, i32 6
  %257 = load i32, ptr %22, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = call i32 @i32_load(ptr noundef %256, i64 noundef %258)
  store i32 %259, ptr %22, align 4, !tbaa !9
  %260 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %260, ptr %15, align 4, !tbaa !9
  %261 = load i32, ptr %22, align 4, !tbaa !9
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %279

263:                                              ; preds = %215
  %264 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %264, ptr %22, align 4, !tbaa !9
  %265 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %265, ptr %23, align 4, !tbaa !9
  %266 = load ptr, ptr %11, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.w2c_hermes, ptr %266, i32 0, i32 6
  %268 = load i32, ptr %23, align 4, !tbaa !9
  %269 = zext i32 %268 to i64
  %270 = call i32 @i32_load(ptr noundef %267, i64 noundef %269)
  store i32 %270, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %271 = load i32, ptr %24, align 4, !tbaa !9
  %272 = load i32, ptr %23, align 4, !tbaa !9
  %273 = sub i32 %272, %271
  store i32 %273, ptr %23, align 4, !tbaa !9
  %274 = load ptr, ptr %11, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.w2c_hermes, ptr %274, i32 0, i32 6
  %276 = load i32, ptr %22, align 4, !tbaa !9
  %277 = zext i32 %276 to i64
  %278 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %275, i64 noundef %277, i32 noundef %278)
  br label %279

279:                                              ; preds = %263, %215
  %280 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %280, ptr %22, align 4, !tbaa !9
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.w2c_hermes, ptr %281, i32 0, i32 6
  %283 = load i32, ptr %22, align 4, !tbaa !9
  %284 = zext i32 %283 to i64
  %285 = add i64 %284, 8
  %286 = call i32 @i32_load(ptr noundef %282, i64 noundef %285)
  store i32 %286, ptr %22, align 4, !tbaa !9
  %287 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %287, ptr %15, align 4, !tbaa !9
  %288 = load i32, ptr %22, align 4, !tbaa !9
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %306

290:                                              ; preds = %279
  %291 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %291, ptr %22, align 4, !tbaa !9
  %292 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %292, ptr %23, align 4, !tbaa !9
  %293 = load ptr, ptr %11, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.w2c_hermes, ptr %293, i32 0, i32 6
  %295 = load i32, ptr %23, align 4, !tbaa !9
  %296 = zext i32 %295 to i64
  %297 = call i32 @i32_load(ptr noundef %294, i64 noundef %296)
  store i32 %297, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %298 = load i32, ptr %24, align 4, !tbaa !9
  %299 = load i32, ptr %23, align 4, !tbaa !9
  %300 = sub i32 %299, %298
  store i32 %300, ptr %23, align 4, !tbaa !9
  %301 = load ptr, ptr %11, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.w2c_hermes, ptr %301, i32 0, i32 6
  %303 = load i32, ptr %22, align 4, !tbaa !9
  %304 = zext i32 %303 to i64
  %305 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %302, i64 noundef %304, i32 noundef %305)
  br label %306

306:                                              ; preds = %290, %279
  %307 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %307, ptr %22, align 4, !tbaa !9
  %308 = load ptr, ptr %11, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.w2c_hermes, ptr %308, i32 0, i32 6
  %310 = load i32, ptr %22, align 4, !tbaa !9
  %311 = zext i32 %310 to i64
  %312 = add i64 %311, 16
  %313 = call i32 @i32_load(ptr noundef %309, i64 noundef %312)
  store i32 %313, ptr %22, align 4, !tbaa !9
  %314 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %314, ptr %15, align 4, !tbaa !9
  %315 = load i32, ptr %22, align 4, !tbaa !9
  %316 = icmp ne i32 %315, 0
  br i1 %316, label %317, label %333

317:                                              ; preds = %306
  %318 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %318, ptr %22, align 4, !tbaa !9
  %319 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %319, ptr %23, align 4, !tbaa !9
  %320 = load ptr, ptr %11, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.w2c_hermes, ptr %320, i32 0, i32 6
  %322 = load i32, ptr %23, align 4, !tbaa !9
  %323 = zext i32 %322 to i64
  %324 = call i32 @i32_load(ptr noundef %321, i64 noundef %323)
  store i32 %324, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %325 = load i32, ptr %24, align 4, !tbaa !9
  %326 = load i32, ptr %23, align 4, !tbaa !9
  %327 = sub i32 %326, %325
  store i32 %327, ptr %23, align 4, !tbaa !9
  %328 = load ptr, ptr %11, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.w2c_hermes, ptr %328, i32 0, i32 6
  %330 = load i32, ptr %22, align 4, !tbaa !9
  %331 = zext i32 %330 to i64
  %332 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %329, i64 noundef %331, i32 noundef %332)
  br label %333

333:                                              ; preds = %317, %306
  %334 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %334, ptr %22, align 4, !tbaa !9
  %335 = load ptr, ptr %11, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.w2c_hermes, ptr %335, i32 0, i32 6
  %337 = load i32, ptr %22, align 4, !tbaa !9
  %338 = zext i32 %337 to i64
  %339 = add i64 %338, 24
  %340 = call i32 @i32_load(ptr noundef %336, i64 noundef %339)
  store i32 %340, ptr %22, align 4, !tbaa !9
  %341 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %341, ptr %15, align 4, !tbaa !9
  %342 = load i32, ptr %22, align 4, !tbaa !9
  %343 = icmp ne i32 %342, 0
  br i1 %343, label %344, label %360

344:                                              ; preds = %333
  %345 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %345, ptr %22, align 4, !tbaa !9
  %346 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %346, ptr %23, align 4, !tbaa !9
  %347 = load ptr, ptr %11, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.w2c_hermes, ptr %347, i32 0, i32 6
  %349 = load i32, ptr %23, align 4, !tbaa !9
  %350 = zext i32 %349 to i64
  %351 = call i32 @i32_load(ptr noundef %348, i64 noundef %350)
  store i32 %351, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %352 = load i32, ptr %24, align 4, !tbaa !9
  %353 = load i32, ptr %23, align 4, !tbaa !9
  %354 = sub i32 %353, %352
  store i32 %354, ptr %23, align 4, !tbaa !9
  %355 = load ptr, ptr %11, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.w2c_hermes, ptr %355, i32 0, i32 6
  %357 = load i32, ptr %22, align 4, !tbaa !9
  %358 = zext i32 %357 to i64
  %359 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %356, i64 noundef %358, i32 noundef %359)
  br label %360

360:                                              ; preds = %344, %333
  %361 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %361, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %362 = load i32, ptr %23, align 4, !tbaa !9
  %363 = load i32, ptr %22, align 4, !tbaa !9
  %364 = and i32 %363, %362
  store i32 %364, ptr %22, align 4, !tbaa !9
  %365 = load i32, ptr %22, align 4, !tbaa !9
  %366 = icmp ne i32 %365, 0
  %367 = xor i1 %366, true
  %368 = zext i1 %367 to i32
  store i32 %368, ptr %22, align 4, !tbaa !9
  %369 = load i32, ptr %22, align 4, !tbaa !9
  %370 = icmp ne i32 %369, 0
  br i1 %370, label %371, label %399

371:                                              ; preds = %360
  %372 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %372, ptr %22, align 4, !tbaa !9
  store i32 16777216, ptr %23, align 4, !tbaa !9
  %373 = load i32, ptr %22, align 4, !tbaa !9
  %374 = load i32, ptr %23, align 4, !tbaa !9
  %375 = icmp uge i32 %373, %374
  %376 = zext i1 %375 to i32
  store i32 %376, ptr %22, align 4, !tbaa !9
  %377 = load i32, ptr %22, align 4, !tbaa !9
  %378 = icmp ne i32 %377, 0
  br i1 %378, label %379, label %380

379:                                              ; preds = %371
  br label %417

380:                                              ; preds = %371
  %381 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %381, ptr %22, align 4, !tbaa !9
  %382 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %382, ptr %23, align 4, !tbaa !9
  store i32 1056964608, ptr %24, align 4, !tbaa !9
  %383 = load i32, ptr %24, align 4, !tbaa !9
  %384 = load i32, ptr %23, align 4, !tbaa !9
  %385 = or i32 %384, %383
  store i32 %385, ptr %23, align 4, !tbaa !9
  %386 = load ptr, ptr %11, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.w2c_hermes, ptr %386, i32 0, i32 6
  %388 = load i32, ptr %22, align 4, !tbaa !9
  %389 = zext i32 %388 to i64
  %390 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %387, i64 noundef %389, i32 noundef %390)
  %391 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %391, ptr %22, align 4, !tbaa !9
  store i32 32, ptr %23, align 4, !tbaa !9
  %392 = load i32, ptr %23, align 4, !tbaa !9
  %393 = load i32, ptr %22, align 4, !tbaa !9
  %394 = add i32 %393, %392
  store i32 %394, ptr %22, align 4, !tbaa !9
  %395 = load i32, ptr %22, align 4, !tbaa !9
  %396 = load ptr, ptr %11, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.w2c_hermes, ptr %396, i32 0, i32 3
  store i32 %395, ptr %397, align 8, !tbaa !11
  %398 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %398, ptr %22, align 4, !tbaa !9
  br label %435

399:                                              ; preds = %360
  store i32 0, ptr %22, align 4, !tbaa !9
  %400 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %400, ptr %21, align 4, !tbaa !9
  store i32 193621, ptr %23, align 4, !tbaa !9
  %401 = load i32, ptr %23, align 4, !tbaa !9
  %402 = load i32, ptr %22, align 4, !tbaa !9
  %403 = add i32 %402, %401
  store i32 %403, ptr %22, align 4, !tbaa !9
  %404 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %404, ptr %23, align 4, !tbaa !9
  store i32 82339, ptr %24, align 4, !tbaa !9
  %405 = load i32, ptr %24, align 4, !tbaa !9
  %406 = load i32, ptr %23, align 4, !tbaa !9
  %407 = add i32 %406, %405
  store i32 %407, ptr %23, align 4, !tbaa !9
  store i32 57, ptr %24, align 4, !tbaa !9
  %408 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %408, ptr %25, align 4, !tbaa !9
  store i32 88934, ptr %26, align 4, !tbaa !9
  %409 = load i32, ptr %26, align 4, !tbaa !9
  %410 = load i32, ptr %25, align 4, !tbaa !9
  %411 = add i32 %410, %409
  store i32 %411, ptr %25, align 4, !tbaa !9
  %412 = load ptr, ptr %11, align 8, !tbaa !5
  %413 = load i32, ptr %22, align 4, !tbaa !9
  %414 = load i32, ptr %23, align 4, !tbaa !9
  %415 = load i32, ptr %24, align 4, !tbaa !9
  %416 = load i32, ptr %25, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %412, i32 noundef %413, i32 noundef %414, i32 noundef %415, i32 noundef %416)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

417:                                              ; preds = %379
  store i32 0, ptr %22, align 4, !tbaa !9
  %418 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %418, ptr %21, align 4, !tbaa !9
  store i32 196840, ptr %23, align 4, !tbaa !9
  %419 = load i32, ptr %23, align 4, !tbaa !9
  %420 = load i32, ptr %22, align 4, !tbaa !9
  %421 = add i32 %420, %419
  store i32 %421, ptr %22, align 4, !tbaa !9
  %422 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %422, ptr %23, align 4, !tbaa !9
  store i32 82339, ptr %24, align 4, !tbaa !9
  %423 = load i32, ptr %24, align 4, !tbaa !9
  %424 = load i32, ptr %23, align 4, !tbaa !9
  %425 = add i32 %424, %423
  store i32 %425, ptr %23, align 4, !tbaa !9
  store i32 58, ptr %24, align 4, !tbaa !9
  %426 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %426, ptr %25, align 4, !tbaa !9
  store i32 88934, ptr %26, align 4, !tbaa !9
  %427 = load i32, ptr %26, align 4, !tbaa !9
  %428 = load i32, ptr %25, align 4, !tbaa !9
  %429 = add i32 %428, %427
  store i32 %429, ptr %25, align 4, !tbaa !9
  %430 = load ptr, ptr %11, align 8, !tbaa !5
  %431 = load i32, ptr %22, align 4, !tbaa !9
  %432 = load i32, ptr %23, align 4, !tbaa !9
  %433 = load i32, ptr %24, align 4, !tbaa !9
  %434 = load i32, ptr %25, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %430, i32 noundef %431, i32 noundef %432, i32 noundef %433, i32 noundef %434)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

435:                                              ; preds = %380
  %436 = load i32, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  ret i32 %436
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSRegExpStringIterator0x3A0x3AJSRegExpStringIterator0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHiddenClass0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x2C0x20bool0x2C0x20bool0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

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, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !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: 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 i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(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 i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSRegExpStringIterator0x2A0x20hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3AconstructCell0x3Chermes0x3A0x3Avm0x3A0x3AJSRegExpStringIterator0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHiddenClass0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x260x2C0x20bool0x260x2C0x20bool0x260x3E0x28void0x2A0x2C0x20unsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHiddenClass0x3E0x260x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x260x2C0x20bool0x260x2C0x20bool0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) local_unnamed_addr #3 {
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = add i32 %12, -32
  store i32 %13, ptr %11, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = zext i32 %4 to i64
  %16 = add nuw nsw i64 %15, 4
  %17 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %16)
  %18 = zext i32 %13 to i64
  %19 = add nuw nsw i64 %18, 28
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %19, i32 noundef %17)
  %20 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %15)
  %21 = add nuw nsw i64 %18, 24
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %21, i32 noundef %20)
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %26, label %22

22:                                               ; preds = %10
  %23 = zext i32 %20 to i64
  %24 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %23)
  %25 = add i32 %24, 1
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %23, i32 noundef %25)
  br label %26

26:                                               ; preds = %22, %10
  %27 = zext i32 %5 to i64
  %28 = add nuw nsw i64 %27, 4
  %29 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %28)
  %30 = add nuw nsw i64 %18, 20
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %30, i32 noundef %29)
  %31 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %27)
  %32 = add nuw nsw i64 %18, 16
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %32, i32 noundef %31)
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %27, i32 noundef 0)
  %33 = zext i32 %6 to i64
  %34 = add nuw nsw i64 %33, 4
  %35 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %34)
  %36 = add nuw nsw i64 %18, 12
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %36, i32 noundef %35)
  %37 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %33)
  %38 = add nuw nsw i64 %18, 8
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %38, i32 noundef %37)
  %.not243 = icmp eq i32 %37, 0
  br i1 %.not243, label %43, label %39

39:                                               ; preds = %26
  %40 = zext i32 %37 to i64
  %41 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %40)
  %42 = add i32 %41, 1
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %40, i32 noundef %42)
  br label %43

43:                                               ; preds = %39, %26
  %44 = zext i32 %7 to i64
  %45 = add nuw nsw i64 %44, 4
  %46 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %45)
  %47 = add nuw nsw i64 %18, 4
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %47, i32 noundef %46)
  %48 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %44)
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %18, i32 noundef %48)
  %.not244 = icmp eq i32 %48, 0
  br i1 %.not244, label %53, label %49

49:                                               ; preds = %43
  %50 = zext i32 %48 to i64
  %51 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %50)
  %52 = add i32 %51, 1
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %50, i32 noundef %52)
  br label %53

53:                                               ; preds = %49, %43
  %54 = add i32 %12, -8
  %55 = add i32 %12, -16
  %56 = add i32 %12, -24
  %57 = zext i32 %8 to i64
  %58 = tail call i32 @i32_load8_u(ptr noundef nonnull %14, i64 noundef %57)
  %59 = zext i32 %9 to i64
  %60 = tail call i32 @i32_load8_u(ptr noundef nonnull %14, i64 noundef %59)
  %61 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSRegExpStringIterator0x3A0x3AJSRegExpStringIterator0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHiddenClass0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x2C0x20bool0x2C0x20bool0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %3, i32 noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %13, i32 noundef %58, i32 noundef %60)
  %62 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %18)
  %.not245 = icmp eq i32 %62, 0
  br i1 %.not245, label %67, label %63

63:                                               ; preds = %53
  %64 = zext i32 %62 to i64
  %65 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %64)
  %66 = add i32 %65, -1
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %64, i32 noundef %66)
  br label %67

67:                                               ; preds = %63, %53
  %68 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %38)
  %.not246 = icmp eq i32 %68, 0
  br i1 %.not246, label %73, label %69

69:                                               ; preds = %67
  %70 = zext i32 %68 to i64
  %71 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %70)
  %72 = add i32 %71, -1
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %70, i32 noundef %72)
  br label %73

73:                                               ; preds = %69, %67
  %74 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %32)
  %.not247 = icmp eq i32 %74, 0
  br i1 %.not247, label %79, label %75

75:                                               ; preds = %73
  %76 = zext i32 %74 to i64
  %77 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %76)
  %78 = add i32 %77, -1
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %76, i32 noundef %78)
  br label %79

79:                                               ; preds = %75, %73
  %80 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %21)
  %.not248 = icmp eq i32 %80, 0
  br i1 %.not248, label %85, label %81

81:                                               ; preds = %79
  %82 = zext i32 %80 to i64
  %83 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %82)
  %84 = add i32 %83, -1
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %82, i32 noundef %84)
  br label %85

85:                                               ; preds = %81, %79
  %86 = and i32 %2, 1
  %.not249 = icmp eq i32 %86, 0
  br i1 %.not249, label %87, label %92

87:                                               ; preds = %85
  %88 = icmp ugt i32 %2, 16777215
  br i1 %88, label %93, label %89

89:                                               ; preds = %87
  %90 = or disjoint i32 %2, 1056964608
  %91 = zext i32 %61 to i64
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %91, i32 noundef %90)
  store i32 %12, ptr %11, align 8, !tbaa !5
  ret i32 %61

92:                                               ; preds = %85
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 193621, i32 noundef 82339, i32 noundef 57, i32 noundef 88934) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

93:                                               ; preds = %87
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 196840, i32 noundef 82339, i32 noundef 58, i32 noundef 88934) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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