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

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

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

68:                                               ; preds = %2
  %69 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %69, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.w2c_hermes, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = add i64 %73, 12
  %75 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %71, i64 noundef %74, i32 noundef %75)
  %76 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %76, ptr %12, align 4, !tbaa !9
  %77 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %77, ptr %13, align 4, !tbaa !9
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.w2c_hermes, ptr %78, i32 0, i32 6
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %79, i64 noundef %81, i32 noundef %82)
  %83 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %83, ptr %12, align 4, !tbaa !9
  %84 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %84, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = add i32 %86, %85
  store i32 %87, ptr %13, align 4, !tbaa !9
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.w2c_hermes, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = add i64 %91, 160
  %93 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %89, i64 noundef %92, i32 noundef %93)
  br label %106

94:                                               ; preds = %2
  %95 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %95, ptr %12, align 4, !tbaa !9
  store i32 156, ptr %13, align 4, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = load i32, ptr %12, align 4, !tbaa !9
  %98 = add i32 %97, %96
  store i32 %98, ptr %12, align 4, !tbaa !9
  %99 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %99, ptr %13, align 4, !tbaa !9
  store i32 12, ptr %14, align 4, !tbaa !9
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = add i32 %101, %100
  store i32 %102, ptr %13, align 4, !tbaa !9
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = load i32, ptr %13, 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 %103, i32 noundef %104, i32 noundef %105)
  br label %106

106:                                              ; preds = %94, %68
  %107 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %107, ptr %12, align 4, !tbaa !9
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = add i64 %111, 148
  %113 = call i32 @i32_load(ptr noundef %109, i64 noundef %112)
  store i32 %113, ptr %12, align 4, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %114, ptr %5, align 4, !tbaa !9
  %115 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %115, ptr %13, align 4, !tbaa !9
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = add i64 %119, 152
  %121 = call i32 @i32_load(ptr noundef %117, i64 noundef %120)
  store i32 %121, ptr %13, align 4, !tbaa !9
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = icmp ne i32 %122, %123
  %125 = zext i1 %124 to i32
  store i32 %125, ptr %12, align 4, !tbaa !9
  %126 = load i32, ptr %12, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %147

128:                                              ; preds = %106
  %129 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %129, ptr %12, align 4, !tbaa !9
  %130 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %130, ptr %13, align 4, !tbaa !9
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %12, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %132, i64 noundef %134, i32 noundef %135)
  %136 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %136, ptr %12, align 4, !tbaa !9
  %137 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %137, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = add i32 %139, %138
  store i32 %140, ptr %13, align 4, !tbaa !9
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.w2c_hermes, ptr %141, i32 0, i32 6
  %143 = load i32, ptr %12, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = add i64 %144, 148
  %146 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %142, i64 noundef %145, i32 noundef %146)
  br label %306

147:                                              ; preds = %106
  %148 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %148, ptr %12, align 4, !tbaa !9
  %149 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %149, ptr %13, align 4, !tbaa !9
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.w2c_hermes, ptr %150, i32 0, i32 6
  %152 = load i32, ptr %13, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = add i64 %153, 144
  %155 = call i32 @i32_load(ptr noundef %151, i64 noundef %154)
  store i32 %155, ptr %13, align 4, !tbaa !9
  %156 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %156, ptr %9, align 4, !tbaa !9
  %157 = load i32, ptr %13, align 4, !tbaa !9
  %158 = load i32, ptr %12, align 4, !tbaa !9
  %159 = sub i32 %158, %157
  store i32 %159, ptr %12, align 4, !tbaa !9
  %160 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %160, ptr %5, align 4, !tbaa !9
  store i32 2, ptr %13, align 4, !tbaa !9
  %161 = load i32, ptr %12, align 4, !tbaa !9
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = and i32 %162, 31
  %164 = ashr i32 %161, %163
  store i32 %164, ptr %12, align 4, !tbaa !9
  %165 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %165, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = load i32, ptr %12, align 4, !tbaa !9
  %168 = add i32 %167, %166
  store i32 %168, ptr %12, align 4, !tbaa !9
  %169 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %169, ptr %7, align 4, !tbaa !9
  store i32 1073741824, ptr %13, align 4, !tbaa !9
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = icmp uge i32 %170, %171
  %173 = zext i1 %172 to i32
  store i32 %173, ptr %12, align 4, !tbaa !9
  %174 = load i32, ptr %12, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %177

176:                                              ; preds = %147
  br label %409

177:                                              ; preds = %147
  store i32 1073741823, ptr %12, align 4, !tbaa !9
  %178 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %178, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %179 = load i32, ptr %13, align 4, !tbaa !9
  %180 = load i32, ptr %14, align 4, !tbaa !9
  %181 = and i32 %180, 31
  %182 = ashr i32 %179, %181
  store i32 %182, ptr %13, align 4, !tbaa !9
  %183 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %183, ptr %11, align 4, !tbaa !9
  %184 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %184, ptr %14, align 4, !tbaa !9
  %185 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %185, ptr %15, align 4, !tbaa !9
  %186 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %186, ptr %16, align 4, !tbaa !9
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = load i32, ptr %16, align 4, !tbaa !9
  %189 = icmp ult i32 %187, %188
  %190 = zext i1 %189 to i32
  store i32 %190, ptr %15, align 4, !tbaa !9
  %191 = load i32, ptr %15, align 4, !tbaa !9
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %195

193:                                              ; preds = %177
  %194 = load i32, ptr %13, align 4, !tbaa !9
  br label %197

195:                                              ; preds = %177
  %196 = load i32, ptr %14, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %195, %193
  %198 = phi i32 [ %194, %193 ], [ %196, %195 ]
  store i32 %198, ptr %13, align 4, !tbaa !9
  %199 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %199, ptr %14, align 4, !tbaa !9
  store i32 2147483644, ptr %15, align 4, !tbaa !9
  %200 = load i32, ptr %14, align 4, !tbaa !9
  %201 = load i32, ptr %15, align 4, !tbaa !9
  %202 = icmp uge i32 %200, %201
  %203 = zext i1 %202 to i32
  store i32 %203, ptr %14, align 4, !tbaa !9
  %204 = load i32, ptr %14, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %208

206:                                              ; preds = %197
  %207 = load i32, ptr %12, align 4, !tbaa !9
  br label %210

208:                                              ; preds = %197
  %209 = load i32, ptr %13, align 4, !tbaa !9
  br label %210

210:                                              ; preds = %208, %206
  %211 = phi i32 [ %207, %206 ], [ %209, %208 ]
  store i32 %211, ptr %12, align 4, !tbaa !9
  %212 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %212, ptr %7, align 4, !tbaa !9
  %213 = load i32, ptr %12, align 4, !tbaa !9
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %233

215:                                              ; preds = %210
  %216 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %216, ptr %12, align 4, !tbaa !9
  store i32 1073741824, ptr %13, align 4, !tbaa !9
  %217 = load i32, ptr %12, align 4, !tbaa !9
  %218 = load i32, ptr %13, align 4, !tbaa !9
  %219 = icmp uge i32 %217, %218
  %220 = zext i1 %219 to i32
  store i32 %220, ptr %12, align 4, !tbaa !9
  %221 = load i32, ptr %12, align 4, !tbaa !9
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %223, label %224

223:                                              ; preds = %215
  br label %411

224:                                              ; preds = %215
  %225 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %225, ptr %12, align 4, !tbaa !9
  store i32 2, ptr %13, align 4, !tbaa !9
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = and i32 %226, 31
  %228 = load i32, ptr %12, align 4, !tbaa !9
  %229 = shl i32 %228, %227
  store i32 %229, ptr %12, align 4, !tbaa !9
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = load i32, ptr %12, align 4, !tbaa !9
  %232 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %230, i32 noundef %231)
  store i32 %232, ptr %12, align 4, !tbaa !9
  br label %234

233:                                              ; preds = %210
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %234

234:                                              ; preds = %233, %224
  %235 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %235, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %236, ptr %13, align 4, !tbaa !9
  store i32 2, ptr %14, align 4, !tbaa !9
  %237 = load i32, ptr %14, align 4, !tbaa !9
  %238 = and i32 %237, 31
  %239 = load i32, ptr %13, align 4, !tbaa !9
  %240 = shl i32 %239, %238
  store i32 %240, ptr %13, align 4, !tbaa !9
  %241 = load i32, ptr %13, align 4, !tbaa !9
  %242 = load i32, ptr %12, align 4, !tbaa !9
  %243 = add i32 %242, %241
  store i32 %243, ptr %12, align 4, !tbaa !9
  %244 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %244, ptr %10, align 4, !tbaa !9
  %245 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %245, ptr %13, align 4, !tbaa !9
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.w2c_hermes, ptr %246, i32 0, i32 6
  %248 = load i32, ptr %12, align 4, !tbaa !9
  %249 = zext i32 %248 to i64
  %250 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %247, i64 noundef %249, i32 noundef %250)
  %251 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %251, ptr %12, align 4, !tbaa !9
  %252 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %252, ptr %13, align 4, !tbaa !9
  %253 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %253, ptr %14, align 4, !tbaa !9
  %254 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %254, ptr %15, align 4, !tbaa !9
  %255 = load ptr, ptr %3, align 8, !tbaa !5
  %256 = load i32, ptr %13, align 4, !tbaa !9
  %257 = load i32, ptr %14, align 4, !tbaa !9
  %258 = load i32, ptr %15, align 4, !tbaa !9
  %259 = call i32 @w2c_hermes_memmove(ptr noundef %255, i32 noundef %256, i32 noundef %257, i32 noundef %258)
  store i32 %259, ptr %13, align 4, !tbaa !9
  %260 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %260, ptr %5, align 4, !tbaa !9
  %261 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %261, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %262 = load i32, ptr %15, align 4, !tbaa !9
  %263 = and i32 %262, 31
  %264 = load i32, ptr %14, align 4, !tbaa !9
  %265 = shl i32 %264, %263
  store i32 %265, ptr %14, align 4, !tbaa !9
  %266 = load i32, ptr %14, align 4, !tbaa !9
  %267 = load i32, ptr %13, align 4, !tbaa !9
  %268 = add i32 %267, %266
  store i32 %268, ptr %13, align 4, !tbaa !9
  %269 = load ptr, ptr %3, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.w2c_hermes, ptr %269, i32 0, i32 6
  %271 = load i32, ptr %12, align 4, !tbaa !9
  %272 = zext i32 %271 to i64
  %273 = add i64 %272, 152
  %274 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %270, i64 noundef %273, i32 noundef %274)
  %275 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %275, ptr %12, align 4, !tbaa !9
  %276 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %276, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %277 = load i32, ptr %14, align 4, !tbaa !9
  %278 = load i32, ptr %13, align 4, !tbaa !9
  %279 = add i32 %278, %277
  store i32 %279, ptr %13, align 4, !tbaa !9
  %280 = load ptr, ptr %3, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.w2c_hermes, ptr %280, i32 0, i32 6
  %282 = load i32, ptr %12, align 4, !tbaa !9
  %283 = zext i32 %282 to i64
  %284 = add i64 %283, 148
  %285 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %281, i64 noundef %284, i32 noundef %285)
  %286 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %286, ptr %12, align 4, !tbaa !9
  %287 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %287, ptr %13, align 4, !tbaa !9
  %288 = load ptr, ptr %3, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.w2c_hermes, ptr %288, i32 0, i32 6
  %290 = load i32, ptr %12, align 4, !tbaa !9
  %291 = zext i32 %290 to i64
  %292 = add i64 %291, 144
  %293 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %289, i64 noundef %292, i32 noundef %293)
  %294 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %294, ptr %12, align 4, !tbaa !9
  %295 = load i32, ptr %12, align 4, !tbaa !9
  %296 = icmp ne i32 %295, 0
  %297 = xor i1 %296, true
  %298 = zext i1 %297 to i32
  store i32 %298, ptr %12, align 4, !tbaa !9
  %299 = load i32, ptr %12, align 4, !tbaa !9
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %301, label %302

301:                                              ; preds = %234
  br label %306

302:                                              ; preds = %234
  %303 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %303, ptr %12, align 4, !tbaa !9
  %304 = load ptr, ptr %3, align 8, !tbaa !5
  %305 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %304, i32 noundef %305)
  br label %306

306:                                              ; preds = %302, %301, %128
  %307 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %307, ptr %12, align 4, !tbaa !9
  %308 = load ptr, ptr %3, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.w2c_hermes, ptr %308, i32 0, i32 6
  %310 = load i32, ptr %12, align 4, !tbaa !9
  %311 = zext i32 %310 to i64
  %312 = add i64 %311, 12
  %313 = call i32 @i32_load(ptr noundef %309, i64 noundef %312)
  store i32 %313, ptr %12, align 4, !tbaa !9
  %314 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %314, ptr %4, align 4, !tbaa !9
  %315 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %315, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %316 = load ptr, ptr %3, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.w2c_hermes, ptr %316, i32 0, i32 6
  %318 = load i32, ptr %12, align 4, !tbaa !9
  %319 = zext i32 %318 to i64
  %320 = add i64 %319, 12
  %321 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %317, i64 noundef %320, i32 noundef %321)
  %322 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %322, ptr %12, align 4, !tbaa !9
  %323 = load i32, ptr %12, align 4, !tbaa !9
  %324 = icmp ne i32 %323, 0
  br i1 %324, label %325, label %400

325:                                              ; preds = %306
  %326 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %326, ptr %12, align 4, !tbaa !9
  %327 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %327, ptr %13, align 4, !tbaa !9
  %328 = load ptr, ptr %3, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.w2c_hermes, ptr %328, i32 0, i32 6
  %330 = load i32, ptr %13, align 4, !tbaa !9
  %331 = zext i32 %330 to i64
  %332 = call i32 @i32_load(ptr noundef %329, i64 noundef %331)
  store i32 %332, ptr %13, align 4, !tbaa !9
  %333 = load ptr, ptr %3, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.w2c_hermes, ptr %333, i32 0, i32 6
  %335 = load i32, ptr %13, align 4, !tbaa !9
  %336 = zext i32 %335 to i64
  %337 = add i64 %336, 4
  %338 = call i32 @i32_load(ptr noundef %334, i64 noundef %337)
  store i32 %338, ptr %13, align 4, !tbaa !9
  %339 = load i32, ptr %13, align 4, !tbaa !9
  %340 = load ptr, ptr %3, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.w2c_hermes, ptr %340, i32 0, i32 7
  %342 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %341, i32 0, i32 2
  %343 = load i32, ptr %342, align 4, !tbaa !17
  %344 = icmp ult i32 %339, %343
  br i1 %344, label %345, label %368

345:                                              ; preds = %325
  %346 = load ptr, ptr %3, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.w2c_hermes, ptr %346, i32 0, i32 7
  %348 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %347, i32 0, i32 0
  %349 = load ptr, ptr %348, align 8, !tbaa !18
  %350 = load i32, ptr %13, align 4, !tbaa !9
  %351 = zext i32 %350 to i64
  %352 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %349, i64 %351
  %353 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %352, i32 0, i32 1
  %354 = load ptr, ptr %353, align 8, !tbaa !19
  %355 = icmp ne ptr %354, null
  br i1 %355, label %356, label %368

356:                                              ; preds = %345
  %357 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !5
  %358 = load ptr, ptr %3, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.w2c_hermes, ptr %358, i32 0, i32 7
  %360 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %359, i32 0, i32 0
  %361 = load ptr, ptr %360, align 8, !tbaa !18
  %362 = load i32, ptr %13, align 4, !tbaa !9
  %363 = zext i32 %362 to i64
  %364 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %361, i64 %363
  %365 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %364, i32 0, i32 0
  %366 = load ptr, ptr %365, align 8, !tbaa !21
  %367 = call zeroext i1 @func_types_eq(ptr noundef %357, ptr noundef %366)
  br label %368

368:                                              ; preds = %356, %345, %325
  %369 = phi i1 [ false, %345 ], [ false, %325 ], [ %367, %356 ]
  %370 = xor i1 %369, true
  %371 = xor i1 %370, true
  %372 = zext i1 %371 to i32
  %373 = sext i32 %372 to i64
  %374 = call i64 @llvm.expect.i64(i64 %373, i64 1)
  %375 = icmp ne i64 %374, 0
  br i1 %375, label %378, label %376

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

377:                                              ; No predecessors!
  br label %378

378:                                              ; preds = %377, %368
  %379 = phi i1 [ true, %368 ], [ false, %377 ]
  %380 = zext i1 %379 to i32
  %381 = load ptr, ptr %3, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.w2c_hermes, ptr %381, i32 0, i32 7
  %383 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %382, i32 0, i32 0
  %384 = load ptr, ptr %383, align 8, !tbaa !18
  %385 = load i32, ptr %13, align 4, !tbaa !9
  %386 = zext i32 %385 to i64
  %387 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %384, i64 %386
  %388 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %387, i32 0, i32 1
  %389 = load ptr, ptr %388, align 8, !tbaa !19
  %390 = load ptr, ptr %3, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.w2c_hermes, ptr %390, i32 0, i32 7
  %392 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %391, i32 0, i32 0
  %393 = load ptr, ptr %392, align 8, !tbaa !18
  %394 = load i32, ptr %13, align 4, !tbaa !9
  %395 = zext i32 %394 to i64
  %396 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %393, i64 %395
  %397 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %396, i32 0, i32 2
  %398 = load ptr, ptr %397, align 8, !tbaa !22
  %399 = load i32, ptr %12, align 4, !tbaa !9
  call void %389(ptr noundef %398, i32 noundef %399)
  br label %400

400:                                              ; preds = %378, %306
  %401 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %401, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %402 = load i32, ptr %13, align 4, !tbaa !9
  %403 = load i32, ptr %12, align 4, !tbaa !9
  %404 = add i32 %403, %402
  store i32 %404, ptr %12, align 4, !tbaa !9
  %405 = load i32, ptr %12, align 4, !tbaa !9
  %406 = load ptr, ptr %3, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.w2c_hermes, ptr %406, i32 0, i32 3
  store i32 %405, ptr %407, align 8, !tbaa !11
  %408 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %408, ptr %12, align 4, !tbaa !9
  br label %413

409:                                              ; preds = %176
  %410 = load ptr, ptr %3, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %410)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

411:                                              ; preds = %223
  %412 = load ptr, ptr %3, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef %412)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

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

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

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: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Aregex0x3A0x3ANode0x2A0x20hermes0x3A0x3Aregex0x3A0x3ARegex0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3AappendNode0x3Chermes0x3A0x3Aregex0x3A0x3ANode0x3E0x280x29(ptr noundef %0, i32 noundef %1) local_unnamed_addr #3 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = add i32 %4, -16
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef 4) #5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %6 to i64
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %8, i32 noundef 270004)
  %9 = zext i32 %5 to i64
  %10 = add nuw nsw i64 %9, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %10, i32 noundef %6)
  %11 = zext i32 %1 to i64
  %12 = add nuw nsw i64 %11, 160
  %13 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %12)
  %14 = add nuw nsw i64 %11, 164
  %15 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %14)
  %16 = icmp ult i32 %13, %15
  br i1 %16, label %17, label %20

17:                                               ; preds = %2
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %10, i32 noundef 0)
  %18 = zext i32 %13 to i64
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %18, i32 noundef %6)
  %19 = add i32 %13, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %12, i32 noundef %19)
  br label %23

20:                                               ; preds = %2
  %21 = add i32 %1, 156
  %22 = add i32 %4, -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 %21, i32 noundef %22) #5
  br label %23

23:                                               ; preds = %20, %17
  %24 = add nuw nsw i64 %11, 148
  %25 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %24)
  %26 = add nuw nsw i64 %11, 152
  %27 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %26)
  %.not = icmp eq i32 %25, %27
  br i1 %.not, label %31, label %28

28:                                               ; preds = %23
  %29 = zext i32 %25 to i64
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %29, i32 noundef %6)
  %30 = add i32 %25, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %24, i32 noundef %30)
  br label %55

31:                                               ; preds = %23
  %32 = add nuw nsw i64 %11, 144
  %33 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %32)
  %34 = sub i32 %25, %33
  %35 = ashr i32 %34, 2
  %36 = add nsw i32 %35, 1
  %37 = icmp ugt i32 %36, 1073741823
  br i1 %37, label %85, label %38

38:                                               ; preds = %31
  %39 = ashr i32 %34, 1
  %40 = tail call i32 @llvm.umax.i32(i32 %36, i32 %39)
  %41 = icmp ugt i32 %34, 2147483643
  %42 = select i1 %41, i32 1073741823, i32 %40
  %.not209 = icmp eq i32 %42, 0
  br i1 %.not209, label %._crit_edge, label %43

43:                                               ; preds = %38
  %44 = icmp ugt i32 %42, 1073741823
  br i1 %44, label %86, label %45

45:                                               ; preds = %43
  %46 = shl nuw i32 %42, 2
  %47 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %46) #5
  br label %._crit_edge

._crit_edge:                                      ; preds = %38, %45
  %.pre-phi = phi i32 [ %46, %45 ], [ 0, %38 ]
  %.0 = phi i32 [ %47, %45 ], [ 0, %38 ]
  %48 = and i32 %34, -4
  %49 = add i32 %.0, %48
  %50 = zext i32 %49 to i64
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %50, i32 noundef %6)
  %51 = tail call i32 @w2c_hermes_memmove(ptr noundef nonnull %0, i32 noundef %.0, i32 noundef %33, i32 noundef %34) #5
  %52 = add i32 %51, %.pre-phi
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %26, i32 noundef %52)
  %53 = add i32 %49, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %24, i32 noundef %53)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %32, i32 noundef %51)
  %.not210 = icmp eq i32 %33, 0
  br i1 %.not210, label %55, label %54

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

55:                                               ; preds = %._crit_edge, %54, %28
  %56 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %10)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %10, i32 noundef 0)
  %.not211 = icmp eq i32 %56, 0
  br i1 %.not211, label %84, label %57

57:                                               ; preds = %55
  %58 = zext i32 %56 to i64
  %59 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %58)
  %60 = zext i32 %59 to i64
  %61 = add nuw nsw i64 %60, 4
  %62 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %61)
  %63 = getelementptr inbounds i8, ptr %0, i64 80
  %64 = getelementptr inbounds i8, ptr %0, i64 92
  %65 = load i32, ptr %64, align 4, !tbaa !15
  %66 = icmp ult i32 %62, %65
  br i1 %66, label %67, label %.critedge, !prof !16

67:                                               ; preds = %57
  %68 = load ptr, ptr %63, align 8, !tbaa !17
  %69 = zext i32 %62 to i64
  %70 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %68, i64 %69
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = load ptr, ptr %71, align 8, !tbaa !18
  %.not212 = icmp eq ptr %72, null
  br i1 %.not212, label %.critedge, label %73, !prof !20

73:                                               ; preds = %67
  %74 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !21
  %75 = load ptr, ptr %70, align 8, !tbaa !22
  %76 = tail call zeroext i1 @func_types_eq(ptr noundef %74, ptr noundef %75)
  br i1 %76, label %77, label %.critedge, !prof !16

.critedge:                                        ; preds = %67, %57, %73
  tail call void @wasm_rt_trap(i32 noundef 6) #6
  unreachable

77:                                               ; preds = %73
  %78 = load ptr, ptr %63, align 8, !tbaa !17
  %79 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %78, i64 %69
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load ptr, ptr %80, align 8, !tbaa !18
  %82 = getelementptr inbounds i8, ptr %79, i64 16
  %83 = load ptr, ptr %82, align 8, !tbaa !23
  tail call void %81(ptr noundef %83, i32 noundef %56) #5
  br label %84

84:                                               ; preds = %77, %55
  store i32 %4, ptr %3, align 8, !tbaa !5
  ret i32 %6

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

86:                                               ; preds = %43
  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
}

; 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