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

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

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

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

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

; Function Attrs: 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

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

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

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

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

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Aregex0x3A0x3AState0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3AState0x28hermes0x3A0x3Aregex0x3A0x3ACursor0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #4 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca 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 i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %19 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %19, ptr %13, align 4, !tbaa !9
  %20 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %20, ptr %14, align 4, !tbaa !9
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.w2c_hermes, ptr %21, i32 0, i32 6
  %23 = load i32, ptr %14, align 4, !tbaa !9
  %24 = zext i32 %23 to i64
  %25 = call i64 @i64_load(ptr noundef %22, i64 noundef %24)
  store i64 %25, ptr %18, align 8, !tbaa !11
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.w2c_hermes, ptr %26, i32 0, i32 6
  %28 = load i32, ptr %13, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %27, i64 noundef %29, i64 noundef %30)
  store i32 16, ptr %13, align 4, !tbaa !9
  %31 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %31, ptr %11, align 4, !tbaa !9
  %32 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %32, ptr %13, align 4, !tbaa !9
  %33 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %33, ptr %14, align 4, !tbaa !9
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.w2c_hermes, ptr %34, i32 0, i32 6
  %36 = load i32, ptr %14, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = add i64 %37, 16
  %39 = call i32 @i32_load(ptr noundef %35, i64 noundef %38)
  store i32 %39, ptr %14, align 4, !tbaa !9
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.w2c_hermes, ptr %40, i32 0, i32 6
  %42 = load i32, ptr %13, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = add i64 %43, 16
  %45 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %41, i64 noundef %44, i32 noundef %45)
  %46 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %46, ptr %13, align 4, !tbaa !9
  %47 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %47, ptr %14, align 4, !tbaa !9
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.w2c_hermes, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = add i64 %51, 8
  %53 = call i64 @i64_load(ptr noundef %49, i64 noundef %52)
  store i64 %53, ptr %18, align 8, !tbaa !11
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.w2c_hermes, ptr %54, i32 0, i32 6
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = add i64 %57, 8
  %59 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %55, i64 noundef %58, i64 noundef %59)
  %60 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %60, ptr %13, align 4, !tbaa !9
  %61 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %61, ptr %14, align 4, !tbaa !9
  store i32 36, ptr %15, align 4, !tbaa !9
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = add i32 %63, %62
  store i32 %64, ptr %14, align 4, !tbaa !9
  %65 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %65, ptr %12, align 4, !tbaa !9
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.w2c_hermes, ptr %66, i32 0, i32 6
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = add i64 %69, 24
  %71 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %67, i64 noundef %70, i32 noundef %71)
  %72 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %72, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.w2c_hermes, ptr %73, i32 0, i32 6
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = add i64 %76, 20
  %78 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %74, i64 noundef %77, i32 noundef %78)
  %79 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %79, ptr %13, align 4, !tbaa !9
  store i64 68719476736, ptr %18, align 8, !tbaa !11
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = add i64 %83, 28
  %85 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %81, i64 noundef %84, i64 noundef %85)
  %86 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %86, ptr %13, align 4, !tbaa !9
  store i32 24, ptr %14, align 4, !tbaa !9
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = load i32, ptr %13, align 4, !tbaa !9
  %89 = add i32 %88, %87
  store i32 %89, ptr %13, align 4, !tbaa !9
  %90 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %90, ptr %8, align 4, !tbaa !9
  %91 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %91, ptr %13, align 4, !tbaa !9
  store i32 17, ptr %14, align 4, !tbaa !9
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = icmp uge i32 %92, %93
  %95 = zext i1 %94 to i32
  store i32 %95, ptr %13, align 4, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %115

98:                                               ; preds = %5
  %99 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %99, ptr %13, align 4, !tbaa !9
  %100 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %100, ptr %14, align 4, !tbaa !9
  %101 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %101, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = load i32, ptr %13, align 4, !tbaa !9
  %104 = load i32, ptr %14, align 4, !tbaa !9
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %102, i32 noundef %103, i32 noundef %104, i32 noundef %105, i32 noundef %106)
  %107 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %107, ptr %13, align 4, !tbaa !9
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %13, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = add i64 %111, 32
  %113 = call i32 @i32_load(ptr noundef %109, i64 noundef %112)
  store i32 %113, ptr %13, align 4, !tbaa !9
  %114 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %114, ptr %11, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %98, %5
  %116 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %116, ptr %13, align 4, !tbaa !9
  %117 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %117, ptr %14, align 4, !tbaa !9
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = load i32, ptr %14, align 4, !tbaa !9
  %120 = icmp ule i32 %118, %119
  %121 = zext i1 %120 to i32
  store i32 %121, ptr %13, align 4, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %244

124:                                              ; preds = %115
  %125 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %125, ptr %13, align 4, !tbaa !9
  %126 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %126, ptr %14, align 4, !tbaa !9
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.w2c_hermes, ptr %127, i32 0, i32 6
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = add i64 %130, 28
  %132 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %128, i64 noundef %131, i32 noundef %132)
  %133 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %133, ptr %13, align 4, !tbaa !9
  %134 = load i32, ptr %13, align 4, !tbaa !9
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %153

136:                                              ; preds = %124
  %137 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %137, ptr %13, align 4, !tbaa !9
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.w2c_hermes, ptr %138, i32 0, i32 6
  %140 = load i32, ptr %13, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = call i32 @i32_load(ptr noundef %139, i64 noundef %141)
  store i32 %142, ptr %13, align 4, !tbaa !9
  store i32 255, ptr %14, align 4, !tbaa !9
  %143 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %143, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %144 = load i32, ptr %16, align 4, !tbaa !9
  %145 = and i32 %144, 31
  %146 = load i32, ptr %15, align 4, !tbaa !9
  %147 = shl i32 %146, %145
  store i32 %147, ptr %15, align 4, !tbaa !9
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = load i32, ptr %14, align 4, !tbaa !9
  %151 = load i32, ptr %15, align 4, !tbaa !9
  %152 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151)
  store i32 %152, ptr %13, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %136, %124
  %154 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %154, ptr %13, align 4, !tbaa !9
  %155 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %155, ptr %14, align 4, !tbaa !9
  store i32 176, ptr %15, align 4, !tbaa !9
  %156 = load i32, ptr %15, align 4, !tbaa !9
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = add i32 %157, %156
  store i32 %158, ptr %14, align 4, !tbaa !9
  %159 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %159, ptr %11, align 4, !tbaa !9
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = add i64 %163, 164
  %165 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %161, i64 noundef %164, i32 noundef %165)
  %166 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %166, ptr %13, align 4, !tbaa !9
  store i64 68719476736, ptr %18, align 8, !tbaa !11
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.w2c_hermes, ptr %167, i32 0, i32 6
  %169 = load i32, ptr %13, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = add i64 %170, 168
  %172 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %168, i64 noundef %171, i64 noundef %172)
  %173 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %173, ptr %13, align 4, !tbaa !9
  store i32 164, ptr %14, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = load i32, ptr %13, align 4, !tbaa !9
  %176 = add i32 %175, %174
  store i32 %176, ptr %13, align 4, !tbaa !9
  %177 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %177, ptr %8, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %178 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %178, ptr %9, align 4, !tbaa !9
  %179 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %179, ptr %13, align 4, !tbaa !9
  store i32 17, ptr %14, align 4, !tbaa !9
  %180 = load i32, ptr %13, align 4, !tbaa !9
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = icmp uge i32 %180, %181
  %183 = zext i1 %182 to i32
  store i32 %183, ptr %13, align 4, !tbaa !9
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %203

186:                                              ; preds = %153
  %187 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %187, ptr %13, align 4, !tbaa !9
  %188 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %188, ptr %14, align 4, !tbaa !9
  %189 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %189, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = load i32, ptr %13, align 4, !tbaa !9
  %192 = load i32, ptr %14, align 4, !tbaa !9
  %193 = load i32, ptr %15, align 4, !tbaa !9
  %194 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %190, i32 noundef %191, i32 noundef %192, i32 noundef %193, i32 noundef %194)
  %195 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %195, ptr %13, align 4, !tbaa !9
  %196 = load ptr, ptr %6, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.w2c_hermes, ptr %196, i32 0, i32 6
  %198 = load i32, ptr %13, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = add i64 %199, 172
  %201 = call i32 @i32_load(ptr noundef %197, i64 noundef %200)
  store i32 %201, ptr %13, align 4, !tbaa !9
  %202 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %202, ptr %9, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %186, %153
  %204 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %204, ptr %13, align 4, !tbaa !9
  %205 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %205, ptr %14, align 4, !tbaa !9
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = load i32, ptr %14, align 4, !tbaa !9
  %208 = icmp ult i32 %206, %207
  %209 = zext i1 %208 to i32
  store i32 %209, ptr %13, align 4, !tbaa !9
  %210 = load i32, ptr %13, align 4, !tbaa !9
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %213

212:                                              ; preds = %203
  br label %262

213:                                              ; preds = %203
  %214 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %214, ptr %13, align 4, !tbaa !9
  %215 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %215, ptr %14, align 4, !tbaa !9
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.w2c_hermes, ptr %216, i32 0, i32 6
  %218 = load i32, ptr %13, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = add i64 %219, 168
  %221 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %217, i64 noundef %220, i32 noundef %221)
  %222 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %222, ptr %13, align 4, !tbaa !9
  %223 = load i32, ptr %13, align 4, !tbaa !9
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %242

225:                                              ; preds = %213
  %226 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %226, ptr %13, align 4, !tbaa !9
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.w2c_hermes, ptr %227, i32 0, i32 6
  %229 = load i32, ptr %13, align 4, !tbaa !9
  %230 = zext i32 %229 to i64
  %231 = call i32 @i32_load(ptr noundef %228, i64 noundef %230)
  store i32 %231, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %232 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %232, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %233 = load i32, ptr %16, align 4, !tbaa !9
  %234 = and i32 %233, 31
  %235 = load i32, ptr %15, align 4, !tbaa !9
  %236 = shl i32 %235, %234
  store i32 %236, ptr %15, align 4, !tbaa !9
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = load i32, ptr %13, align 4, !tbaa !9
  %239 = load i32, ptr %14, align 4, !tbaa !9
  %240 = load i32, ptr %15, align 4, !tbaa !9
  %241 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %237, i32 noundef %238, i32 noundef %239, i32 noundef %240)
  store i32 %241, ptr %13, align 4, !tbaa !9
  br label %242

242:                                              ; preds = %225, %213
  %243 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %243, ptr %13, align 4, !tbaa !9
  br label %280

244:                                              ; preds = %115
  store i32 0, ptr %13, align 4, !tbaa !9
  %245 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %245, ptr %7, align 4, !tbaa !9
  store i32 117789, ptr %14, align 4, !tbaa !9
  %246 = load i32, ptr %14, align 4, !tbaa !9
  %247 = load i32, ptr %13, align 4, !tbaa !9
  %248 = add i32 %247, %246
  store i32 %248, ptr %13, align 4, !tbaa !9
  %249 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %249, ptr %14, align 4, !tbaa !9
  store i32 79572, ptr %15, align 4, !tbaa !9
  %250 = load i32, ptr %15, align 4, !tbaa !9
  %251 = load i32, ptr %14, align 4, !tbaa !9
  %252 = add i32 %251, %250
  store i32 %252, ptr %14, align 4, !tbaa !9
  store i32 74, ptr %15, align 4, !tbaa !9
  %253 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %253, ptr %16, align 4, !tbaa !9
  store i32 88407, ptr %17, align 4, !tbaa !9
  %254 = load i32, ptr %17, align 4, !tbaa !9
  %255 = load i32, ptr %16, align 4, !tbaa !9
  %256 = add i32 %255, %254
  store i32 %256, ptr %16, align 4, !tbaa !9
  %257 = load ptr, ptr %6, align 8, !tbaa !5
  %258 = load i32, ptr %13, align 4, !tbaa !9
  %259 = load i32, ptr %14, align 4, !tbaa !9
  %260 = load i32, ptr %15, align 4, !tbaa !9
  %261 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %257, i32 noundef %258, i32 noundef %259, i32 noundef %260, i32 noundef %261)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

262:                                              ; preds = %212
  store i32 0, ptr %13, align 4, !tbaa !9
  %263 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %263, ptr %7, align 4, !tbaa !9
  store i32 117789, ptr %14, align 4, !tbaa !9
  %264 = load i32, ptr %14, align 4, !tbaa !9
  %265 = load i32, ptr %13, align 4, !tbaa !9
  %266 = add i32 %265, %264
  store i32 %266, ptr %13, align 4, !tbaa !9
  %267 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %267, ptr %14, align 4, !tbaa !9
  store i32 79572, ptr %15, align 4, !tbaa !9
  %268 = load i32, ptr %15, align 4, !tbaa !9
  %269 = load i32, ptr %14, align 4, !tbaa !9
  %270 = add i32 %269, %268
  store i32 %270, ptr %14, align 4, !tbaa !9
  store i32 74, ptr %15, align 4, !tbaa !9
  %271 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %271, ptr %16, align 4, !tbaa !9
  store i32 88407, ptr %17, align 4, !tbaa !9
  %272 = load i32, ptr %17, align 4, !tbaa !9
  %273 = load i32, ptr %16, align 4, !tbaa !9
  %274 = add i32 %273, %272
  store i32 %274, ptr %16, align 4, !tbaa !9
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = load i32, ptr %13, align 4, !tbaa !9
  %277 = load i32, ptr %14, align 4, !tbaa !9
  %278 = load i32, ptr %15, align 4, !tbaa !9
  %279 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %275, i32 noundef %276, i32 noundef %277, i32 noundef %278, i32 noundef %279)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

280:                                              ; preds = %242
  %281 = load i32, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret i32 %281
}

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 void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

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

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3Aregex0x3A0x3AState0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3AState0x28hermes0x3A0x3Aregex0x3A0x3ACursor0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %2 to i64
  %8 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %7)
  %9 = zext i32 %1 to i64
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %9, i64 noundef %8)
  %10 = add nuw nsw i64 %7, 16
  %11 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %10)
  %12 = add nuw nsw i64 %9, 16
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %12, i32 noundef %11)
  %13 = add nuw nsw i64 %7, 8
  %14 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %13)
  %15 = add nuw nsw i64 %9, 8
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %15, i64 noundef %14)
  %16 = add i32 %1, 36
  %17 = add nuw nsw i64 %9, 24
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %17, i32 noundef %16)
  %18 = add nuw nsw i64 %9, 20
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %18, i32 noundef 0)
  %19 = add nuw nsw i64 %9, 28
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %19, i64 noundef 68719476736)
  %20 = add i32 %1, 24
  %21 = icmp ugt i32 %3, 16
  br i1 %21, label %22, label %25

22:                                               ; preds = %5
  tail call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %20, i32 noundef %16, i32 noundef %3, i32 noundef 8) #4
  %23 = add nuw nsw i64 %9, 32
  %24 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %23)
  br label %25

25:                                               ; preds = %22, %5
  %.0 = phi i32 [ %24, %22 ], [ 16, %5 ]
  %.not = icmp ult i32 %.0, %3
  br i1 %.not, label %50, label %26

26:                                               ; preds = %25
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %19, i32 noundef %3)
  %.not168 = icmp eq i32 %3, 0
  br i1 %.not168, label %32, label %27

27:                                               ; preds = %26
  %28 = zext i32 %20 to i64
  %29 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %28)
  %30 = shl i32 %3, 3
  %31 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef %0, i32 noundef %29, i32 noundef 255, i32 noundef %30) #4
  br label %32

32:                                               ; preds = %27, %26
  %33 = add i32 %1, 176
  %34 = add nuw nsw i64 %9, 164
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %34, i32 noundef %33)
  %35 = add nuw nsw i64 %9, 168
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %35, i64 noundef 68719476736)
  %36 = add i32 %1, 164
  %37 = icmp ugt i32 %4, 16
  br i1 %37, label %38, label %41

38:                                               ; preds = %32
  tail call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %36, i32 noundef %33, i32 noundef %4, i32 noundef 8) #4
  %39 = add nuw nsw i64 %9, 172
  %40 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %39)
  br label %41

41:                                               ; preds = %38, %32
  %.0164 = phi i32 [ %40, %38 ], [ 16, %32 ]
  %42 = icmp ult i32 %.0164, %4
  br i1 %42, label %51, label %43

43:                                               ; preds = %41
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %35, i32 noundef %4)
  %.not169 = icmp eq i32 %4, 0
  br i1 %.not169, label %49, label %44

44:                                               ; preds = %43
  %45 = zext i32 %36 to i64
  %46 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %45)
  %47 = shl i32 %4, 3
  %48 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef %0, i32 noundef %46, i32 noundef 0, i32 noundef %47) #4
  br label %49

49:                                               ; preds = %44, %43
  ret i32 %1

50:                                               ; preds = %25
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 117789, i32 noundef 79572, i32 noundef 74, i32 noundef 88407) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

51:                                               ; preds = %41
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 117789, i32 noundef 79572, i32 noundef 74, i32 noundef 88407) #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,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass