; 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 }
%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@w2c_hermes_t3 = external constant ptr, align 8

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #4

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

declare void @w2c_hermes_abort(ptr noundef) #3

declare void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @func_types_eq(ptr noundef, ptr noundef) #1

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

93:                                               ; preds = %3
  %94 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %94, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = add i64 %98, 12
  %100 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %96, i64 noundef %99, i32 noundef %100)
  %101 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %101, ptr %14, align 4, !tbaa !9
  %102 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %102, ptr %15, align 4, !tbaa !9
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %14, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %104, i64 noundef %106, i32 noundef %107)
  %108 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %108, ptr %14, align 4, !tbaa !9
  %109 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %109, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = add i32 %111, %110
  store i32 %112, ptr %15, align 4, !tbaa !9
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.w2c_hermes, ptr %113, i32 0, i32 6
  %115 = load i32, ptr %14, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = add i64 %116, 160
  %118 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %114, i64 noundef %117, i32 noundef %118)
  br label %131

119:                                              ; preds = %3
  %120 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %120, ptr %14, align 4, !tbaa !9
  store i32 156, ptr %15, align 4, !tbaa !9
  %121 = load i32, ptr %15, align 4, !tbaa !9
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = add i32 %122, %121
  store i32 %123, ptr %14, align 4, !tbaa !9
  %124 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %124, ptr %15, align 4, !tbaa !9
  store i32 12, ptr %16, align 4, !tbaa !9
  %125 = load i32, ptr %16, align 4, !tbaa !9
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = add i32 %126, %125
  store i32 %127, ptr %15, align 4, !tbaa !9
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cstd0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x3E0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cstd0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x3E0x3E0x3E0x3E0x3A0x3A_0x5Fpush_back_slow_path0x3Cstd0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x3E0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x3E0x3E0x260x260x29(ptr noundef %128, i32 noundef %129, i32 noundef %130)
  br label %131

131:                                              ; preds = %119, %93
  %132 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %132, ptr %14, align 4, !tbaa !9
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.w2c_hermes, ptr %133, i32 0, i32 6
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = add i64 %136, 12
  %138 = call i32 @i32_load(ptr noundef %134, i64 noundef %137)
  store i32 %138, ptr %14, align 4, !tbaa !9
  %139 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %139, ptr %6, align 4, !tbaa !9
  %140 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %140, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.w2c_hermes, ptr %141, i32 0, i32 6
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = add i64 %144, 12
  %146 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %142, i64 noundef %145, i32 noundef %146)
  %147 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %147, ptr %14, align 4, !tbaa !9
  %148 = load i32, ptr %14, align 4, !tbaa !9
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %225

150:                                              ; preds = %131
  %151 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %151, ptr %14, align 4, !tbaa !9
  %152 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %152, ptr %15, 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 %15, 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 %15, align 4, !tbaa !9
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.w2c_hermes, ptr %158, i32 0, i32 6
  %160 = load i32, ptr %15, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = add i64 %161, 4
  %163 = call i32 @i32_load(ptr noundef %159, i64 noundef %162)
  store i32 %163, ptr %15, align 4, !tbaa !9
  %164 = load i32, ptr %15, align 4, !tbaa !9
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.w2c_hermes, ptr %165, i32 0, i32 7
  %167 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %166, i32 0, i32 2
  %168 = load i32, ptr %167, align 4, !tbaa !17
  %169 = icmp ult i32 %164, %168
  br i1 %169, label %170, label %193

170:                                              ; preds = %150
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.w2c_hermes, ptr %171, i32 0, i32 7
  %173 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !18
  %175 = load i32, ptr %15, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %174, i64 %176
  %178 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %177, i32 0, i32 1
  %179 = load ptr, ptr %178, align 8, !tbaa !19
  %180 = icmp ne ptr %179, null
  br i1 %180, label %181, label %193

181:                                              ; preds = %170
  %182 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !5
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 7
  %185 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %184, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8, !tbaa !18
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %186, i64 %188
  %190 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %189, i32 0, i32 0
  %191 = load ptr, ptr %190, align 8, !tbaa !21
  %192 = call zeroext i1 @func_types_eq(ptr noundef %182, ptr noundef %191)
  br label %193

193:                                              ; preds = %181, %170, %150
  %194 = phi i1 [ false, %170 ], [ false, %150 ], [ %192, %181 ]
  %195 = xor i1 %194, true
  %196 = xor i1 %195, true
  %197 = zext i1 %196 to i32
  %198 = sext i32 %197 to i64
  %199 = call i64 @llvm.expect.i64(i64 %198, i64 1)
  %200 = icmp ne i64 %199, 0
  br i1 %200, label %203, label %201

201:                                              ; preds = %193
  call void @wasm_rt_trap(i32 noundef 6) #7
  unreachable

202:                                              ; No predecessors!
  br label %203

203:                                              ; preds = %202, %193
  %204 = phi i1 [ true, %193 ], [ false, %202 ]
  %205 = zext i1 %204 to i32
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.w2c_hermes, ptr %206, i32 0, i32 7
  %208 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %207, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8, !tbaa !18
  %210 = load i32, ptr %15, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %209, i64 %211
  %213 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %212, i32 0, i32 1
  %214 = load ptr, ptr %213, align 8, !tbaa !19
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.w2c_hermes, ptr %215, i32 0, i32 7
  %217 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8, !tbaa !18
  %219 = load i32, ptr %15, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %218, i64 %220
  %222 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %221, i32 0, i32 2
  %223 = load ptr, ptr %222, align 8, !tbaa !22
  %224 = load i32, ptr %14, align 4, !tbaa !9
  call void %214(ptr noundef %223, i32 noundef %224)
  br label %225

225:                                              ; preds = %203, %131
  %226 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %226, ptr %14, align 4, !tbaa !9
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.w2c_hermes, ptr %227, i32 0, i32 6
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = zext i32 %229 to i64
  %231 = add i64 %230, 148
  %232 = call i32 @i32_load(ptr noundef %228, i64 noundef %231)
  store i32 %232, ptr %14, align 4, !tbaa !9
  %233 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %233, ptr %6, align 4, !tbaa !9
  %234 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %234, ptr %15, align 4, !tbaa !9
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.w2c_hermes, ptr %235, i32 0, i32 6
  %237 = load i32, ptr %15, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = add i64 %238, 152
  %240 = call i32 @i32_load(ptr noundef %236, i64 noundef %239)
  store i32 %240, ptr %15, align 4, !tbaa !9
  %241 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %241, ptr %8, align 4, !tbaa !9
  %242 = load i32, ptr %14, align 4, !tbaa !9
  %243 = load i32, ptr %15, align 4, !tbaa !9
  %244 = icmp ult i32 %242, %243
  %245 = zext i1 %244 to i32
  store i32 %245, ptr %14, align 4, !tbaa !9
  %246 = load i32, ptr %14, align 4, !tbaa !9
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %267

248:                                              ; preds = %225
  %249 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %249, ptr %14, align 4, !tbaa !9
  %250 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %250, ptr %15, align 4, !tbaa !9
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.w2c_hermes, ptr %251, i32 0, i32 6
  %253 = load i32, ptr %14, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %252, i64 noundef %254, i32 noundef %255)
  %256 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %256, ptr %14, align 4, !tbaa !9
  %257 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %257, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %258 = load i32, ptr %16, align 4, !tbaa !9
  %259 = load i32, ptr %15, align 4, !tbaa !9
  %260 = add i32 %259, %258
  store i32 %260, ptr %15, align 4, !tbaa !9
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.w2c_hermes, ptr %261, i32 0, i32 6
  %263 = load i32, ptr %14, align 4, !tbaa !9
  %264 = zext i32 %263 to i64
  %265 = add i64 %264, 148
  %266 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %262, i64 noundef %265, i32 noundef %266)
  br label %431

267:                                              ; preds = %225
  %268 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %268, ptr %14, align 4, !tbaa !9
  %269 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %269, ptr %15, align 4, !tbaa !9
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.w2c_hermes, ptr %270, i32 0, i32 6
  %272 = load i32, ptr %15, align 4, !tbaa !9
  %273 = zext i32 %272 to i64
  %274 = add i64 %273, 144
  %275 = call i32 @i32_load(ptr noundef %271, i64 noundef %274)
  store i32 %275, ptr %15, align 4, !tbaa !9
  %276 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %276, ptr %10, align 4, !tbaa !9
  %277 = load i32, ptr %15, align 4, !tbaa !9
  %278 = load i32, ptr %14, align 4, !tbaa !9
  %279 = sub i32 %278, %277
  store i32 %279, ptr %14, align 4, !tbaa !9
  %280 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %280, ptr %12, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %281 = load i32, ptr %14, align 4, !tbaa !9
  %282 = load i32, ptr %15, align 4, !tbaa !9
  %283 = and i32 %282, 31
  %284 = ashr i32 %281, %283
  store i32 %284, ptr %14, align 4, !tbaa !9
  %285 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %285, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %286 = load i32, ptr %15, align 4, !tbaa !9
  %287 = load i32, ptr %14, align 4, !tbaa !9
  %288 = add i32 %287, %286
  store i32 %288, ptr %14, align 4, !tbaa !9
  %289 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %289, ptr %6, align 4, !tbaa !9
  store i32 1073741824, ptr %15, align 4, !tbaa !9
  %290 = load i32, ptr %14, align 4, !tbaa !9
  %291 = load i32, ptr %15, align 4, !tbaa !9
  %292 = icmp uge i32 %290, %291
  %293 = zext i1 %292 to i32
  store i32 %293, ptr %14, align 4, !tbaa !9
  %294 = load i32, ptr %14, align 4, !tbaa !9
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %296, label %297

296:                                              ; preds = %267
  br label %440

297:                                              ; preds = %267
  store i32 1073741823, ptr %14, align 4, !tbaa !9
  %298 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %298, ptr %15, align 4, !tbaa !9
  %299 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %299, ptr %16, align 4, !tbaa !9
  %300 = load i32, ptr %16, align 4, !tbaa !9
  %301 = load i32, ptr %15, align 4, !tbaa !9
  %302 = sub i32 %301, %300
  store i32 %302, ptr %15, align 4, !tbaa !9
  %303 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %303, ptr %8, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %304 = load i32, ptr %15, align 4, !tbaa !9
  %305 = load i32, ptr %16, align 4, !tbaa !9
  %306 = and i32 %305, 31
  %307 = ashr i32 %304, %306
  store i32 %307, ptr %15, align 4, !tbaa !9
  %308 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %308, ptr %13, align 4, !tbaa !9
  %309 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %309, ptr %16, align 4, !tbaa !9
  %310 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %310, ptr %17, align 4, !tbaa !9
  %311 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %311, ptr %18, align 4, !tbaa !9
  %312 = load i32, ptr %17, align 4, !tbaa !9
  %313 = load i32, ptr %18, align 4, !tbaa !9
  %314 = icmp ult i32 %312, %313
  %315 = zext i1 %314 to i32
  store i32 %315, ptr %17, align 4, !tbaa !9
  %316 = load i32, ptr %17, align 4, !tbaa !9
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %318, label %320

318:                                              ; preds = %297
  %319 = load i32, ptr %15, align 4, !tbaa !9
  br label %322

320:                                              ; preds = %297
  %321 = load i32, ptr %16, align 4, !tbaa !9
  br label %322

322:                                              ; preds = %320, %318
  %323 = phi i32 [ %319, %318 ], [ %321, %320 ]
  store i32 %323, ptr %15, align 4, !tbaa !9
  %324 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %324, ptr %16, align 4, !tbaa !9
  store i32 2147483644, ptr %17, align 4, !tbaa !9
  %325 = load i32, ptr %16, align 4, !tbaa !9
  %326 = load i32, ptr %17, align 4, !tbaa !9
  %327 = icmp uge i32 %325, %326
  %328 = zext i1 %327 to i32
  store i32 %328, ptr %16, align 4, !tbaa !9
  %329 = load i32, ptr %16, align 4, !tbaa !9
  %330 = icmp ne i32 %329, 0
  br i1 %330, label %331, label %333

331:                                              ; preds = %322
  %332 = load i32, ptr %14, align 4, !tbaa !9
  br label %335

333:                                              ; preds = %322
  %334 = load i32, ptr %15, align 4, !tbaa !9
  br label %335

335:                                              ; preds = %333, %331
  %336 = phi i32 [ %332, %331 ], [ %334, %333 ]
  store i32 %336, ptr %14, align 4, !tbaa !9
  %337 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %337, ptr %6, align 4, !tbaa !9
  %338 = load i32, ptr %14, align 4, !tbaa !9
  %339 = icmp ne i32 %338, 0
  br i1 %339, label %340, label %358

340:                                              ; preds = %335
  %341 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %341, ptr %14, align 4, !tbaa !9
  store i32 1073741824, ptr %15, align 4, !tbaa !9
  %342 = load i32, ptr %14, align 4, !tbaa !9
  %343 = load i32, ptr %15, align 4, !tbaa !9
  %344 = icmp uge i32 %342, %343
  %345 = zext i1 %344 to i32
  store i32 %345, ptr %14, align 4, !tbaa !9
  %346 = load i32, ptr %14, align 4, !tbaa !9
  %347 = icmp ne i32 %346, 0
  br i1 %347, label %348, label %349

348:                                              ; preds = %340
  br label %442

349:                                              ; preds = %340
  %350 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %350, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %351 = load i32, ptr %15, align 4, !tbaa !9
  %352 = and i32 %351, 31
  %353 = load i32, ptr %14, align 4, !tbaa !9
  %354 = shl i32 %353, %352
  store i32 %354, ptr %14, align 4, !tbaa !9
  %355 = load ptr, ptr %4, align 8, !tbaa !5
  %356 = load i32, ptr %14, align 4, !tbaa !9
  %357 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %355, i32 noundef %356)
  store i32 %357, ptr %14, align 4, !tbaa !9
  br label %359

358:                                              ; preds = %335
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %359

359:                                              ; preds = %358, %349
  %360 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %360, ptr %8, align 4, !tbaa !9
  %361 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %361, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %16, align 4, !tbaa !9
  %362 = load i32, ptr %16, align 4, !tbaa !9
  %363 = and i32 %362, 31
  %364 = load i32, ptr %15, align 4, !tbaa !9
  %365 = shl i32 %364, %363
  store i32 %365, ptr %15, align 4, !tbaa !9
  %366 = load i32, ptr %15, align 4, !tbaa !9
  %367 = load i32, ptr %14, align 4, !tbaa !9
  %368 = add i32 %367, %366
  store i32 %368, ptr %14, align 4, !tbaa !9
  %369 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %369, ptr %11, align 4, !tbaa !9
  %370 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %370, ptr %15, align 4, !tbaa !9
  %371 = load ptr, ptr %4, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.w2c_hermes, ptr %371, i32 0, i32 6
  %373 = load i32, ptr %14, align 4, !tbaa !9
  %374 = zext i32 %373 to i64
  %375 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %372, i64 noundef %374, i32 noundef %375)
  %376 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %376, ptr %14, align 4, !tbaa !9
  %377 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %377, ptr %15, align 4, !tbaa !9
  %378 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %378, ptr %16, align 4, !tbaa !9
  %379 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %379, ptr %17, align 4, !tbaa !9
  %380 = load ptr, ptr %4, align 8, !tbaa !5
  %381 = load i32, ptr %15, align 4, !tbaa !9
  %382 = load i32, ptr %16, align 4, !tbaa !9
  %383 = load i32, ptr %17, align 4, !tbaa !9
  %384 = call i32 @w2c_hermes_memmove(ptr noundef %380, i32 noundef %381, i32 noundef %382, i32 noundef %383)
  store i32 %384, ptr %15, align 4, !tbaa !9
  %385 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %385, ptr %8, align 4, !tbaa !9
  %386 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %386, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %387 = load i32, ptr %17, align 4, !tbaa !9
  %388 = and i32 %387, 31
  %389 = load i32, ptr %16, align 4, !tbaa !9
  %390 = shl i32 %389, %388
  store i32 %390, ptr %16, align 4, !tbaa !9
  %391 = load i32, ptr %16, align 4, !tbaa !9
  %392 = load i32, ptr %15, align 4, !tbaa !9
  %393 = add i32 %392, %391
  store i32 %393, ptr %15, align 4, !tbaa !9
  %394 = load ptr, ptr %4, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.w2c_hermes, ptr %394, i32 0, i32 6
  %396 = load i32, ptr %14, align 4, !tbaa !9
  %397 = zext i32 %396 to i64
  %398 = add i64 %397, 152
  %399 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %395, i64 noundef %398, i32 noundef %399)
  %400 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %400, ptr %14, align 4, !tbaa !9
  %401 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %401, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %402 = load i32, ptr %16, align 4, !tbaa !9
  %403 = load i32, ptr %15, align 4, !tbaa !9
  %404 = add i32 %403, %402
  store i32 %404, ptr %15, align 4, !tbaa !9
  %405 = load ptr, ptr %4, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.w2c_hermes, ptr %405, i32 0, i32 6
  %407 = load i32, ptr %14, align 4, !tbaa !9
  %408 = zext i32 %407 to i64
  %409 = add i64 %408, 148
  %410 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %406, i64 noundef %409, i32 noundef %410)
  %411 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %411, ptr %14, align 4, !tbaa !9
  %412 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %412, ptr %15, align 4, !tbaa !9
  %413 = load ptr, ptr %4, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.w2c_hermes, ptr %413, i32 0, i32 6
  %415 = load i32, ptr %14, align 4, !tbaa !9
  %416 = zext i32 %415 to i64
  %417 = add i64 %416, 144
  %418 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %414, i64 noundef %417, i32 noundef %418)
  %419 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %419, ptr %14, align 4, !tbaa !9
  %420 = load i32, ptr %14, align 4, !tbaa !9
  %421 = icmp ne i32 %420, 0
  %422 = xor i1 %421, true
  %423 = zext i1 %422 to i32
  store i32 %423, ptr %14, align 4, !tbaa !9
  %424 = load i32, ptr %14, align 4, !tbaa !9
  %425 = icmp ne i32 %424, 0
  br i1 %425, label %426, label %427

426:                                              ; preds = %359
  br label %431

427:                                              ; preds = %359
  %428 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %428, ptr %14, align 4, !tbaa !9
  %429 = load ptr, ptr %4, align 8, !tbaa !5
  %430 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %429, i32 noundef %430)
  br label %431

431:                                              ; preds = %427, %426, %248
  %432 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %432, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %433 = load i32, ptr %15, align 4, !tbaa !9
  %434 = load i32, ptr %14, align 4, !tbaa !9
  %435 = add i32 %434, %433
  store i32 %435, ptr %14, align 4, !tbaa !9
  %436 = load i32, ptr %14, align 4, !tbaa !9
  %437 = load ptr, ptr %4, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.w2c_hermes, ptr %437, i32 0, i32 3
  store i32 %436, ptr %438, align 8, !tbaa !11
  %439 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %439, ptr %14, align 4, !tbaa !9
  br label %444

440:                                              ; preds = %296
  %441 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %441)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

442:                                              ; preds = %348
  %443 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef %443)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

444:                                              ; preds = %431
  %445 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret i32 %445
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { 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}
!17 = !{!12, !10, i64 92}
!18 = !{!12, !6, i64 80}
!19 = !{!20, !6, i64 8}
!20 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!20, !6, i64 0}
!22 = !{!20, !6, i64 16}


; 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"

%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@w2c_hermes_t3 = external local_unnamed_addr constant ptr, align 8

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @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

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

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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

declare void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @func_types_eq(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Aregex0x3A0x3ALeftAnchorNode0x2A0x20hermes0x3A0x3Aregex0x3A0x3ARegex0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3AappendNode0x3Chermes0x3A0x3Aregex0x3A0x3ALeftAnchorNode0x2C0x20hermes0x3A0x3Aregex0x3A0x3ASyntaxFlags0x3E0x28hermes0x3A0x3Aregex0x3A0x3ASyntaxFlags0x260x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -16
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef 8) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %2 to i64
  %10 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %9)
  %11 = zext i32 %7 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %11, i32 noundef 269740)
  %12 = lshr i32 %10, 2
  %13 = and i32 %12, 1
  %14 = add nuw nsw i64 %11, 4
  tail call void @i32_store8(ptr noundef nonnull %8, i64 noundef %14, i32 noundef %13)
  %15 = zext i32 %6 to i64
  %16 = add nuw nsw i64 %15, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %16, i32 noundef %7)
  %17 = zext i32 %1 to i64
  %18 = add nuw nsw i64 %17, 160
  %19 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %18)
  %20 = add nuw nsw i64 %17, 164
  %21 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %20)
  %22 = icmp ult i32 %19, %21
  br i1 %22, label %23, label %26

23:                                               ; preds = %3
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %16, i32 noundef 0)
  %24 = zext i32 %19 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %24, i32 noundef %7)
  %25 = add i32 %19, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %18, i32 noundef %25)
  br label %29

26:                                               ; preds = %3
  %27 = add i32 %1, 156
  %28 = add i32 %5, -4
  tail call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cstd0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x3E0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cstd0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x3E0x3E0x3E0x3E0x3A0x3A_0x5Fpush_back_slow_path0x3Cstd0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x3E0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x3E0x3E0x260x260x29(ptr noundef nonnull %0, i32 noundef %27, i32 noundef %28) #5
  br label %29

29:                                               ; preds = %26, %23
  %30 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %16)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %16, i32 noundef 0)
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %58, label %31

31:                                               ; preds = %29
  %32 = zext i32 %30 to i64
  %33 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %32)
  %34 = zext i32 %33 to i64
  %35 = add nuw nsw i64 %34, 4
  %36 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %35)
  %37 = getelementptr inbounds i8, ptr %0, i64 80
  %38 = getelementptr inbounds i8, ptr %0, i64 92
  %39 = load i32, ptr %38, align 4, !tbaa !15
  %40 = icmp ult i32 %36, %39
  br i1 %40, label %41, label %.critedge, !prof !16

41:                                               ; preds = %31
  %42 = load ptr, ptr %37, align 8, !tbaa !17
  %43 = zext i32 %36 to i64
  %44 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %42, i64 %43
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !18
  %.not229 = icmp eq ptr %46, null
  br i1 %.not229, label %.critedge, label %47, !prof !20

47:                                               ; preds = %41
  %48 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !21
  %49 = load ptr, ptr %44, align 8, !tbaa !22
  %50 = tail call zeroext i1 @func_types_eq(ptr noundef %48, ptr noundef %49)
  br i1 %50, label %51, label %.critedge, !prof !16

.critedge:                                        ; preds = %41, %31, %47
  tail call void @wasm_rt_trap(i32 noundef 6) #6
  unreachable

51:                                               ; preds = %47
  %52 = load ptr, ptr %37, align 8, !tbaa !17
  %53 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %52, i64 %43
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  %56 = getelementptr inbounds i8, ptr %53, i64 16
  %57 = load ptr, ptr %56, align 8, !tbaa !23
  tail call void %55(ptr noundef %57, i32 noundef %30) #5
  br label %58

58:                                               ; preds = %51, %29
  %59 = add nuw nsw i64 %17, 148
  %60 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %59)
  %61 = add nuw nsw i64 %17, 152
  %62 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %61)
  %63 = icmp ult i32 %60, %62
  br i1 %63, label %64, label %67

64:                                               ; preds = %58
  %65 = zext i32 %60 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %65, i32 noundef %7)
  %66 = add i32 %60, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %59, i32 noundef %66)
  br label %92

67:                                               ; preds = %58
  %68 = add nuw nsw i64 %17, 144
  %69 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %68)
  %70 = sub i32 %60, %69
  %71 = ashr i32 %70, 2
  %72 = add nsw i32 %71, 1
  %73 = icmp ugt i32 %72, 1073741823
  br i1 %73, label %93, label %74

74:                                               ; preds = %67
  %75 = sub i32 %62, %69
  %76 = ashr i32 %75, 1
  %77 = tail call i32 @llvm.umax.i32(i32 %72, i32 %76)
  %78 = icmp ugt i32 %75, 2147483643
  %79 = select i1 %78, i32 1073741823, i32 %77
  %.not230 = icmp eq i32 %79, 0
  br i1 %.not230, label %._crit_edge, label %80

80:                                               ; preds = %74
  %81 = icmp ugt i32 %79, 1073741823
  br i1 %81, label %94, label %82

82:                                               ; preds = %80
  %83 = shl nuw i32 %79, 2
  %84 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %83) #5
  br label %._crit_edge

._crit_edge:                                      ; preds = %74, %82
  %.pre-phi = phi i32 [ %83, %82 ], [ 0, %74 ]
  %.0 = phi i32 [ %84, %82 ], [ 0, %74 ]
  %85 = and i32 %70, -4
  %86 = add i32 %.0, %85
  %87 = zext i32 %86 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %87, i32 noundef %7)
  %88 = tail call i32 @w2c_hermes_memmove(ptr noundef nonnull %0, i32 noundef %.0, i32 noundef %69, i32 noundef %70) #5
  %89 = add i32 %88, %.pre-phi
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %61, i32 noundef %89)
  %90 = add i32 %86, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %59, i32 noundef %90)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %68, i32 noundef %88)
  %.not231 = icmp eq i32 %69, 0
  br i1 %.not231, label %92, label %91

91:                                               ; preds = %._crit_edge
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %69) #5
  br label %92

92:                                               ; preds = %._crit_edge, %91, %64
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %7

93:                                               ; preds = %67
  tail call void @w2c_hermes_abort(ptr noundef nonnull %0) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

94:                                               ; preds = %80
  tail call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef nonnull %0) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { 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}
!15 = !{!6, !10, i64 92}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!17 = !{!6, !7, i64 80}
!18 = !{!19, !7, i64 8}
!19 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!21 = !{!7, !7, i64 0}
!22 = !{!19, !7, i64 0}
!23 = !{!19, !7, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass