; 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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store16(ptr noundef, i64 noundef, i32 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_hermes0x3A0x3Aregex0x3A0x3ABackRefNode0x2A0x20hermes0x3A0x3Aregex0x3A0x3ARegex0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3AappendNode0x3Chermes0x3A0x3Aregex0x3A0x3ABackRefNode0x2C0x20unsigned0x20int0x3E0x28unsigned0x20int0x260x260x29(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 %8, 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 %9, align 4, !tbaa !9
  %33 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %33, ptr %15, 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 %15, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = call i32 @i32_load(ptr noundef %35, i64 noundef %37)
  store i32 %38, ptr %15, align 4, !tbaa !9
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.w2c_hermes, ptr %39, i32 0, i32 6
  %41 = load i32, ptr %14, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = add i64 %42, 4
  %44 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %40, i64 noundef %43, i32 noundef %44)
  %45 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %45, ptr %14, align 4, !tbaa !9
  store i32 269916, ptr %15, align 4, !tbaa !9
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.w2c_hermes, ptr %46, i32 0, i32 6
  %48 = load i32, ptr %14, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %47, i64 noundef %49, i32 noundef %50)
  %51 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %51, ptr %14, align 4, !tbaa !9
  %52 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %52, ptr %15, align 4, !tbaa !9
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.w2c_hermes, ptr %53, i32 0, i32 6
  %55 = load i32, ptr %14, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = add i64 %56, 12
  %58 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %54, i64 noundef %57, i32 noundef %58)
  %59 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %59, ptr %14, align 4, !tbaa !9
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = add i64 %63, 160
  %65 = call i32 @i32_load(ptr noundef %61, i64 noundef %64)
  store i32 %65, ptr %14, align 4, !tbaa !9
  %66 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %66, ptr %6, align 4, !tbaa !9
  %67 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %67, ptr %15, align 4, !tbaa !9
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = add i64 %71, 164
  %73 = call i32 @i32_load(ptr noundef %69, i64 noundef %72)
  store i32 %73, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = icmp ult i32 %74, %75
  %77 = zext i1 %76 to i32
  store i32 %77, ptr %14, align 4, !tbaa !9
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %106

80:                                               ; preds = %3
  %81 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %81, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.w2c_hermes, ptr %82, i32 0, i32 6
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = add i64 %85, 12
  %87 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %83, i64 noundef %86, i32 noundef %87)
  %88 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %88, ptr %14, align 4, !tbaa !9
  %89 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %89, ptr %15, align 4, !tbaa !9
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.w2c_hermes, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %91, i64 noundef %93, i32 noundef %94)
  %95 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %95, ptr %14, align 4, !tbaa !9
  %96 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %96, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %97 = load i32, ptr %16, align 4, !tbaa !9
  %98 = load i32, ptr %15, align 4, !tbaa !9
  %99 = add i32 %98, %97
  store i32 %99, ptr %15, align 4, !tbaa !9
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %14, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = add i64 %103, 160
  %105 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %101, i64 noundef %104, i32 noundef %105)
  br label %118

106:                                              ; preds = %3
  %107 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %107, ptr %14, align 4, !tbaa !9
  store i32 156, ptr %15, align 4, !tbaa !9
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = load i32, ptr %14, align 4, !tbaa !9
  %110 = add i32 %109, %108
  store i32 %110, ptr %14, align 4, !tbaa !9
  %111 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %111, ptr %15, align 4, !tbaa !9
  store i32 12, ptr %16, align 4, !tbaa !9
  %112 = load i32, ptr %16, align 4, !tbaa !9
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = add i32 %113, %112
  store i32 %114, ptr %15, align 4, !tbaa !9
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = 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 %115, i32 noundef %116, i32 noundef %117)
  br label %118

118:                                              ; preds = %106, %80
  %119 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %119, ptr %14, align 4, !tbaa !9
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = add i64 %123, 12
  %125 = call i32 @i32_load(ptr noundef %121, i64 noundef %124)
  store i32 %125, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %126, ptr %6, align 4, !tbaa !9
  %127 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %127, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = add i64 %131, 12
  %133 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %129, i64 noundef %132, i32 noundef %133)
  %134 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %134, ptr %14, align 4, !tbaa !9
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %212

137:                                              ; preds = %118
  %138 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %138, ptr %14, align 4, !tbaa !9
  %139 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %139, ptr %15, align 4, !tbaa !9
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %15, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = call i32 @i32_load(ptr noundef %141, i64 noundef %143)
  store i32 %144, ptr %15, align 4, !tbaa !9
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.w2c_hermes, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %15, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = add i64 %148, 4
  %150 = call i32 @i32_load(ptr noundef %146, i64 noundef %149)
  store i32 %150, ptr %15, align 4, !tbaa !9
  %151 = load i32, ptr %15, align 4, !tbaa !9
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.w2c_hermes, ptr %152, i32 0, i32 7
  %154 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %153, i32 0, i32 2
  %155 = load i32, ptr %154, align 4, !tbaa !17
  %156 = icmp ult i32 %151, %155
  br i1 %156, label %157, label %180

157:                                              ; preds = %137
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.w2c_hermes, ptr %158, i32 0, i32 7
  %160 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %159, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8, !tbaa !18
  %162 = load i32, ptr %15, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %161, i64 %163
  %165 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %164, i32 0, i32 1
  %166 = load ptr, ptr %165, align 8, !tbaa !19
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %180

168:                                              ; preds = %157
  %169 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !5
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.w2c_hermes, ptr %170, i32 0, i32 7
  %172 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %171, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8, !tbaa !18
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %173, i64 %175
  %177 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %176, i32 0, i32 0
  %178 = load ptr, ptr %177, align 8, !tbaa !21
  %179 = call zeroext i1 @func_types_eq(ptr noundef %169, ptr noundef %178)
  br label %180

180:                                              ; preds = %168, %157, %137
  %181 = phi i1 [ false, %157 ], [ false, %137 ], [ %179, %168 ]
  %182 = xor i1 %181, true
  %183 = xor i1 %182, true
  %184 = zext i1 %183 to i32
  %185 = sext i32 %184 to i64
  %186 = call i64 @llvm.expect.i64(i64 %185, i64 1)
  %187 = icmp ne i64 %186, 0
  br i1 %187, label %190, label %188

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

189:                                              ; No predecessors!
  br label %190

190:                                              ; preds = %189, %180
  %191 = phi i1 [ true, %180 ], [ false, %189 ]
  %192 = zext i1 %191 to i32
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 7
  %195 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %194, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8, !tbaa !18
  %197 = load i32, ptr %15, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %196, i64 %198
  %200 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %199, i32 0, i32 1
  %201 = load ptr, ptr %200, align 8, !tbaa !19
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.w2c_hermes, ptr %202, i32 0, i32 7
  %204 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !18
  %206 = load i32, ptr %15, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %205, i64 %207
  %209 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %208, i32 0, i32 2
  %210 = load ptr, ptr %209, align 8, !tbaa !22
  %211 = load i32, ptr %14, align 4, !tbaa !9
  call void %201(ptr noundef %210, i32 noundef %211)
  br label %212

212:                                              ; preds = %190, %118
  %213 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %213, ptr %14, align 4, !tbaa !9
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.w2c_hermes, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %14, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = add i64 %217, 148
  %219 = call i32 @i32_load(ptr noundef %215, i64 noundef %218)
  store i32 %219, ptr %14, align 4, !tbaa !9
  %220 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %220, ptr %6, align 4, !tbaa !9
  %221 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %221, ptr %15, align 4, !tbaa !9
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.w2c_hermes, ptr %222, i32 0, i32 6
  %224 = load i32, ptr %15, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = add i64 %225, 152
  %227 = call i32 @i32_load(ptr noundef %223, i64 noundef %226)
  store i32 %227, ptr %15, align 4, !tbaa !9
  %228 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %228, ptr %7, align 4, !tbaa !9
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = load i32, ptr %15, align 4, !tbaa !9
  %231 = icmp ult i32 %229, %230
  %232 = zext i1 %231 to i32
  store i32 %232, ptr %14, align 4, !tbaa !9
  %233 = load i32, ptr %14, align 4, !tbaa !9
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %254

235:                                              ; preds = %212
  %236 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %236, ptr %14, align 4, !tbaa !9
  %237 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %237, ptr %15, align 4, !tbaa !9
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.w2c_hermes, ptr %238, i32 0, i32 6
  %240 = load i32, ptr %14, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %239, i64 noundef %241, i32 noundef %242)
  %243 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %243, ptr %14, align 4, !tbaa !9
  %244 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %244, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %245 = load i32, ptr %16, align 4, !tbaa !9
  %246 = load i32, ptr %15, align 4, !tbaa !9
  %247 = add i32 %246, %245
  store i32 %247, ptr %15, align 4, !tbaa !9
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.w2c_hermes, ptr %248, i32 0, i32 6
  %250 = load i32, ptr %14, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = add i64 %251, 148
  %253 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %249, i64 noundef %252, i32 noundef %253)
  br label %418

254:                                              ; preds = %212
  %255 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %255, ptr %14, align 4, !tbaa !9
  %256 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %256, ptr %15, align 4, !tbaa !9
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.w2c_hermes, ptr %257, i32 0, i32 6
  %259 = load i32, ptr %15, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = add i64 %260, 144
  %262 = call i32 @i32_load(ptr noundef %258, i64 noundef %261)
  store i32 %262, ptr %15, align 4, !tbaa !9
  %263 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %263, ptr %10, align 4, !tbaa !9
  %264 = load i32, ptr %15, align 4, !tbaa !9
  %265 = load i32, ptr %14, align 4, !tbaa !9
  %266 = sub i32 %265, %264
  store i32 %266, ptr %14, align 4, !tbaa !9
  %267 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %267, ptr %12, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = load i32, ptr %15, align 4, !tbaa !9
  %270 = and i32 %269, 31
  %271 = ashr i32 %268, %270
  store i32 %271, ptr %14, align 4, !tbaa !9
  %272 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %272, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %273 = load i32, ptr %15, align 4, !tbaa !9
  %274 = load i32, ptr %14, align 4, !tbaa !9
  %275 = add i32 %274, %273
  store i32 %275, ptr %14, align 4, !tbaa !9
  %276 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %276, ptr %6, align 4, !tbaa !9
  store i32 1073741824, ptr %15, align 4, !tbaa !9
  %277 = load i32, ptr %14, align 4, !tbaa !9
  %278 = load i32, ptr %15, align 4, !tbaa !9
  %279 = icmp uge i32 %277, %278
  %280 = zext i1 %279 to i32
  store i32 %280, ptr %14, align 4, !tbaa !9
  %281 = load i32, ptr %14, align 4, !tbaa !9
  %282 = icmp ne i32 %281, 0
  br i1 %282, label %283, label %284

283:                                              ; preds = %254
  br label %427

284:                                              ; preds = %254
  store i32 1073741823, ptr %14, align 4, !tbaa !9
  %285 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %285, ptr %15, align 4, !tbaa !9
  %286 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %286, ptr %16, align 4, !tbaa !9
  %287 = load i32, ptr %16, align 4, !tbaa !9
  %288 = load i32, ptr %15, align 4, !tbaa !9
  %289 = sub i32 %288, %287
  store i32 %289, ptr %15, align 4, !tbaa !9
  %290 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %290, ptr %7, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %291 = load i32, ptr %15, align 4, !tbaa !9
  %292 = load i32, ptr %16, align 4, !tbaa !9
  %293 = and i32 %292, 31
  %294 = ashr i32 %291, %293
  store i32 %294, ptr %15, align 4, !tbaa !9
  %295 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %295, ptr %13, align 4, !tbaa !9
  %296 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %296, ptr %16, align 4, !tbaa !9
  %297 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %297, ptr %17, align 4, !tbaa !9
  %298 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %298, ptr %18, align 4, !tbaa !9
  %299 = load i32, ptr %17, align 4, !tbaa !9
  %300 = load i32, ptr %18, align 4, !tbaa !9
  %301 = icmp ult i32 %299, %300
  %302 = zext i1 %301 to i32
  store i32 %302, ptr %17, align 4, !tbaa !9
  %303 = load i32, ptr %17, align 4, !tbaa !9
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %305, label %307

305:                                              ; preds = %284
  %306 = load i32, ptr %15, align 4, !tbaa !9
  br label %309

307:                                              ; preds = %284
  %308 = load i32, ptr %16, align 4, !tbaa !9
  br label %309

309:                                              ; preds = %307, %305
  %310 = phi i32 [ %306, %305 ], [ %308, %307 ]
  store i32 %310, ptr %15, align 4, !tbaa !9
  %311 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %311, ptr %16, align 4, !tbaa !9
  store i32 2147483644, ptr %17, align 4, !tbaa !9
  %312 = load i32, ptr %16, align 4, !tbaa !9
  %313 = load i32, ptr %17, align 4, !tbaa !9
  %314 = icmp uge i32 %312, %313
  %315 = zext i1 %314 to i32
  store i32 %315, ptr %16, align 4, !tbaa !9
  %316 = load i32, ptr %16, align 4, !tbaa !9
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %318, label %320

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

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

322:                                              ; preds = %320, %318
  %323 = phi i32 [ %319, %318 ], [ %321, %320 ]
  store i32 %323, ptr %14, align 4, !tbaa !9
  %324 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %324, ptr %6, align 4, !tbaa !9
  %325 = load i32, ptr %14, align 4, !tbaa !9
  %326 = icmp ne i32 %325, 0
  br i1 %326, label %327, label %345

327:                                              ; preds = %322
  %328 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %328, ptr %14, align 4, !tbaa !9
  store i32 1073741824, ptr %15, align 4, !tbaa !9
  %329 = load i32, ptr %14, align 4, !tbaa !9
  %330 = load i32, ptr %15, align 4, !tbaa !9
  %331 = icmp uge i32 %329, %330
  %332 = zext i1 %331 to i32
  store i32 %332, ptr %14, align 4, !tbaa !9
  %333 = load i32, ptr %14, align 4, !tbaa !9
  %334 = icmp ne i32 %333, 0
  br i1 %334, label %335, label %336

335:                                              ; preds = %327
  br label %429

336:                                              ; preds = %327
  %337 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %337, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %338 = load i32, ptr %15, align 4, !tbaa !9
  %339 = and i32 %338, 31
  %340 = load i32, ptr %14, align 4, !tbaa !9
  %341 = shl i32 %340, %339
  store i32 %341, ptr %14, align 4, !tbaa !9
  %342 = load ptr, ptr %4, align 8, !tbaa !5
  %343 = load i32, ptr %14, align 4, !tbaa !9
  %344 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %342, i32 noundef %343)
  store i32 %344, ptr %14, align 4, !tbaa !9
  br label %346

345:                                              ; preds = %322
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %346

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

413:                                              ; preds = %346
  br label %418

414:                                              ; preds = %346
  %415 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %415, ptr %14, align 4, !tbaa !9
  %416 = load ptr, ptr %4, align 8, !tbaa !5
  %417 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %416, i32 noundef %417)
  br label %418

418:                                              ; preds = %414, %413, %235
  %419 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %419, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %420 = load i32, ptr %15, align 4, !tbaa !9
  %421 = load i32, ptr %14, align 4, !tbaa !9
  %422 = add i32 %421, %420
  store i32 %422, ptr %14, align 4, !tbaa !9
  %423 = load i32, ptr %14, align 4, !tbaa !9
  %424 = load ptr, ptr %4, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.w2c_hermes, ptr %424, i32 0, i32 3
  store i32 %423, ptr %425, align 8, !tbaa !11
  %426 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %426, ptr %14, align 4, !tbaa !9
  br label %431

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

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

431:                                              ; preds = %418
  %432 = 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 %432
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store16(ptr noundef, i64 noundef, i32 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_hermes0x3A0x3Aregex0x3A0x3ABackRefNode0x2A0x20hermes0x3A0x3Aregex0x3A0x3ARegex0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3AappendNode0x3Chermes0x3A0x3Aregex0x3A0x3ABackRefNode0x2C0x20unsigned0x20int0x3E0x28unsigned0x20int0x260x260x29(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_load(ptr noundef nonnull %8, i64 noundef %9)
  %11 = zext i32 %7 to i64
  %12 = add nuw nsw i64 %11, 4
  tail call void @i32_store16(ptr noundef nonnull %8, i64 noundef %12, i32 noundef %10)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %11, i32 noundef 269916)
  %13 = zext i32 %6 to i64
  %14 = add nuw nsw i64 %13, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %14, i32 noundef %7)
  %15 = zext i32 %1 to i64
  %16 = add nuw nsw i64 %15, 160
  %17 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %16)
  %18 = add nuw nsw i64 %15, 164
  %19 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %18)
  %20 = icmp ult i32 %17, %19
  br i1 %20, label %21, label %24

21:                                               ; preds = %3
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %14, i32 noundef 0)
  %22 = zext i32 %17 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %22, i32 noundef %7)
  %23 = add i32 %17, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %16, i32 noundef %23)
  br label %27

24:                                               ; preds = %3
  %25 = add i32 %1, 156
  %26 = 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 %25, i32 noundef %26) #5
  br label %27

27:                                               ; preds = %24, %21
  %28 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %14)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %14, i32 noundef 0)
  %.not = icmp eq i32 %28, 0
  br i1 %.not, label %56, label %29

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

39:                                               ; preds = %29
  %40 = load ptr, ptr %35, align 8, !tbaa !17
  %41 = zext i32 %34 to i64
  %42 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %40, i64 %41
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %.not220 = icmp eq ptr %44, null
  br i1 %.not220, label %.critedge, label %45, !prof !20

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

.critedge:                                        ; preds = %39, %29, %45
  tail call void @wasm_rt_trap(i32 noundef 6) #6
  unreachable

49:                                               ; preds = %45
  %50 = load ptr, ptr %35, align 8, !tbaa !17
  %51 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %50, i64 %41
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = getelementptr inbounds i8, ptr %51, i64 16
  %55 = load ptr, ptr %54, align 8, !tbaa !23
  tail call void %53(ptr noundef %55, i32 noundef %28) #5
  br label %56

56:                                               ; preds = %49, %27
  %57 = add nuw nsw i64 %15, 148
  %58 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %57)
  %59 = add nuw nsw i64 %15, 152
  %60 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %59)
  %61 = icmp ult i32 %58, %60
  br i1 %61, label %62, label %65

62:                                               ; preds = %56
  %63 = zext i32 %58 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %63, i32 noundef %7)
  %64 = add i32 %58, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %57, i32 noundef %64)
  br label %90

65:                                               ; preds = %56
  %66 = add nuw nsw i64 %15, 144
  %67 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %66)
  %68 = sub i32 %58, %67
  %69 = ashr i32 %68, 2
  %70 = add nsw i32 %69, 1
  %71 = icmp ugt i32 %70, 1073741823
  br i1 %71, label %91, label %72

72:                                               ; preds = %65
  %73 = sub i32 %60, %67
  %74 = ashr i32 %73, 1
  %75 = tail call i32 @llvm.umax.i32(i32 %70, i32 %74)
  %76 = icmp ugt i32 %73, 2147483643
  %77 = select i1 %76, i32 1073741823, i32 %75
  %.not221 = icmp eq i32 %77, 0
  br i1 %.not221, label %._crit_edge, label %78

78:                                               ; preds = %72
  %79 = icmp ugt i32 %77, 1073741823
  br i1 %79, label %92, label %80

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

._crit_edge:                                      ; preds = %72, %80
  %.pre-phi = phi i32 [ %81, %80 ], [ 0, %72 ]
  %.0 = phi i32 [ %82, %80 ], [ 0, %72 ]
  %83 = and i32 %68, -4
  %84 = add i32 %.0, %83
  %85 = zext i32 %84 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %85, i32 noundef %7)
  %86 = tail call i32 @w2c_hermes_memmove(ptr noundef nonnull %0, i32 noundef %.0, i32 noundef %67, i32 noundef %68) #5
  %87 = add i32 %86, %.pre-phi
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %59, i32 noundef %87)
  %88 = add i32 %84, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %57, i32 noundef %88)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %66, i32 noundef %86)
  %.not222 = icmp eq i32 %67, 0
  br i1 %.not222, label %90, label %89

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

90:                                               ; preds = %._crit_edge, %89, %62
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %7

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

92:                                               ; preds = %78
  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