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

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

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

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

126:                                              ; preds = %107
  %127 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %127, ptr %13, align 4, !tbaa !9
  %128 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %128, ptr %14, align 4, !tbaa !9
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.w2c_hermes, ptr %129, i32 0, i32 6
  %131 = load i32, ptr %14, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = call i32 @i32_load(ptr noundef %130, i64 noundef %132)
  store i32 %133, ptr %14, align 4, !tbaa !9
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.w2c_hermes, ptr %134, i32 0, i32 6
  %136 = load i32, ptr %14, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = add i64 %137, 4
  %139 = call i32 @i32_load(ptr noundef %135, i64 noundef %138)
  store i32 %139, ptr %14, align 4, !tbaa !9
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.w2c_hermes, ptr %141, i32 0, i32 7
  %143 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %142, i32 0, i32 2
  %144 = load i32, ptr %143, align 4, !tbaa !17
  %145 = icmp ult i32 %140, %144
  br i1 %145, label %146, label %169

146:                                              ; preds = %126
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.w2c_hermes, ptr %147, i32 0, i32 7
  %149 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %148, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8, !tbaa !18
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %150, i64 %152
  %154 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %153, i32 0, i32 1
  %155 = load ptr, ptr %154, align 8, !tbaa !19
  %156 = icmp ne ptr %155, null
  br i1 %156, label %157, label %169

157:                                              ; preds = %146
  %158 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !5
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 7
  %161 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %160, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8, !tbaa !18
  %163 = load i32, ptr %14, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %162, i64 %164
  %166 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %165, i32 0, i32 0
  %167 = load ptr, ptr %166, align 8, !tbaa !21
  %168 = call zeroext i1 @func_types_eq(ptr noundef %158, ptr noundef %167)
  br label %169

169:                                              ; preds = %157, %146, %126
  %170 = phi i1 [ false, %146 ], [ false, %126 ], [ %168, %157 ]
  %171 = xor i1 %170, true
  %172 = xor i1 %171, true
  %173 = zext i1 %172 to i32
  %174 = sext i32 %173 to i64
  %175 = call i64 @llvm.expect.i64(i64 %174, i64 1)
  %176 = icmp ne i64 %175, 0
  br i1 %176, label %179, label %177

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

178:                                              ; No predecessors!
  br label %179

179:                                              ; preds = %178, %169
  %180 = phi i1 [ true, %169 ], [ false, %178 ]
  %181 = zext i1 %180 to i32
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.w2c_hermes, ptr %182, i32 0, i32 7
  %184 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %183, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8, !tbaa !18
  %186 = load i32, ptr %14, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %185, i64 %187
  %189 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %188, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8, !tbaa !19
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 7
  %193 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %192, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8, !tbaa !18
  %195 = load i32, ptr %14, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %194, i64 %196
  %198 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %197, i32 0, i32 2
  %199 = load ptr, ptr %198, align 8, !tbaa !22
  %200 = load i32, ptr %13, align 4, !tbaa !9
  call void %190(ptr noundef %199, i32 noundef %200)
  br label %201

201:                                              ; preds = %179, %107
  %202 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %202, ptr %13, align 4, !tbaa !9
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 6
  %205 = load i32, ptr %13, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = add i64 %206, 148
  %208 = call i32 @i32_load(ptr noundef %204, i64 noundef %207)
  store i32 %208, ptr %13, align 4, !tbaa !9
  %209 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %209, ptr %5, align 4, !tbaa !9
  %210 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %210, ptr %14, align 4, !tbaa !9
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.w2c_hermes, ptr %211, i32 0, i32 6
  %213 = load i32, ptr %14, align 4, !tbaa !9
  %214 = zext i32 %213 to i64
  %215 = add i64 %214, 152
  %216 = call i32 @i32_load(ptr noundef %212, i64 noundef %215)
  store i32 %216, ptr %14, align 4, !tbaa !9
  %217 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %217, ptr %6, align 4, !tbaa !9
  %218 = load i32, ptr %13, align 4, !tbaa !9
  %219 = load i32, ptr %14, align 4, !tbaa !9
  %220 = icmp ult i32 %218, %219
  %221 = zext i1 %220 to i32
  store i32 %221, ptr %13, align 4, !tbaa !9
  %222 = load i32, ptr %13, align 4, !tbaa !9
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %243

224:                                              ; preds = %201
  %225 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %225, ptr %13, align 4, !tbaa !9
  %226 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %226, ptr %14, align 4, !tbaa !9
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.w2c_hermes, ptr %227, i32 0, i32 6
  %229 = load i32, ptr %13, align 4, !tbaa !9
  %230 = zext i32 %229 to i64
  %231 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %228, i64 noundef %230, i32 noundef %231)
  %232 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %232, ptr %13, align 4, !tbaa !9
  %233 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %233, ptr %14, align 4, !tbaa !9
  store i32 4, ptr %15, align 4, !tbaa !9
  %234 = load i32, ptr %15, align 4, !tbaa !9
  %235 = load i32, ptr %14, align 4, !tbaa !9
  %236 = add i32 %235, %234
  store i32 %236, ptr %14, align 4, !tbaa !9
  %237 = load ptr, ptr %3, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.w2c_hermes, ptr %237, i32 0, i32 6
  %239 = load i32, ptr %13, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = add i64 %240, 148
  %242 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %238, i64 noundef %241, i32 noundef %242)
  br label %407

243:                                              ; preds = %201
  %244 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %244, ptr %13, align 4, !tbaa !9
  %245 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %245, ptr %14, 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 %14, align 4, !tbaa !9
  %249 = zext i32 %248 to i64
  %250 = add i64 %249, 144
  %251 = call i32 @i32_load(ptr noundef %247, i64 noundef %250)
  store i32 %251, ptr %14, align 4, !tbaa !9
  %252 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %252, ptr %9, align 4, !tbaa !9
  %253 = load i32, ptr %14, align 4, !tbaa !9
  %254 = load i32, ptr %13, align 4, !tbaa !9
  %255 = sub i32 %254, %253
  store i32 %255, ptr %13, align 4, !tbaa !9
  %256 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %256, ptr %11, align 4, !tbaa !9
  store i32 2, ptr %14, align 4, !tbaa !9
  %257 = load i32, ptr %13, align 4, !tbaa !9
  %258 = load i32, ptr %14, align 4, !tbaa !9
  %259 = and i32 %258, 31
  %260 = ashr i32 %257, %259
  store i32 %260, ptr %13, align 4, !tbaa !9
  %261 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %261, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %262 = load i32, ptr %14, align 4, !tbaa !9
  %263 = load i32, ptr %13, align 4, !tbaa !9
  %264 = add i32 %263, %262
  store i32 %264, ptr %13, align 4, !tbaa !9
  %265 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %265, ptr %5, align 4, !tbaa !9
  store i32 1073741824, ptr %14, align 4, !tbaa !9
  %266 = load i32, ptr %13, align 4, !tbaa !9
  %267 = load i32, ptr %14, align 4, !tbaa !9
  %268 = icmp uge i32 %266, %267
  %269 = zext i1 %268 to i32
  store i32 %269, ptr %13, align 4, !tbaa !9
  %270 = load i32, ptr %13, align 4, !tbaa !9
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %273

272:                                              ; preds = %243
  br label %416

273:                                              ; preds = %243
  store i32 1073741823, ptr %13, align 4, !tbaa !9
  %274 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %274, ptr %14, align 4, !tbaa !9
  %275 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %275, ptr %15, align 4, !tbaa !9
  %276 = load i32, ptr %15, align 4, !tbaa !9
  %277 = load i32, ptr %14, align 4, !tbaa !9
  %278 = sub i32 %277, %276
  store i32 %278, ptr %14, align 4, !tbaa !9
  %279 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %279, ptr %6, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %280 = load i32, ptr %14, align 4, !tbaa !9
  %281 = load i32, ptr %15, align 4, !tbaa !9
  %282 = and i32 %281, 31
  %283 = ashr i32 %280, %282
  store i32 %283, ptr %14, align 4, !tbaa !9
  %284 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %284, ptr %12, align 4, !tbaa !9
  %285 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %285, ptr %15, align 4, !tbaa !9
  %286 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %286, ptr %16, align 4, !tbaa !9
  %287 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %287, ptr %17, align 4, !tbaa !9
  %288 = load i32, ptr %16, align 4, !tbaa !9
  %289 = load i32, ptr %17, align 4, !tbaa !9
  %290 = icmp ult i32 %288, %289
  %291 = zext i1 %290 to i32
  store i32 %291, ptr %16, align 4, !tbaa !9
  %292 = load i32, ptr %16, align 4, !tbaa !9
  %293 = icmp ne i32 %292, 0
  br i1 %293, label %294, label %296

294:                                              ; preds = %273
  %295 = load i32, ptr %14, align 4, !tbaa !9
  br label %298

296:                                              ; preds = %273
  %297 = load i32, ptr %15, align 4, !tbaa !9
  br label %298

298:                                              ; preds = %296, %294
  %299 = phi i32 [ %295, %294 ], [ %297, %296 ]
  store i32 %299, ptr %14, align 4, !tbaa !9
  %300 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %300, ptr %15, align 4, !tbaa !9
  store i32 2147483644, ptr %16, align 4, !tbaa !9
  %301 = load i32, ptr %15, align 4, !tbaa !9
  %302 = load i32, ptr %16, align 4, !tbaa !9
  %303 = icmp uge i32 %301, %302
  %304 = zext i1 %303 to i32
  store i32 %304, ptr %15, align 4, !tbaa !9
  %305 = load i32, ptr %15, align 4, !tbaa !9
  %306 = icmp ne i32 %305, 0
  br i1 %306, label %307, label %309

307:                                              ; preds = %298
  %308 = load i32, ptr %13, align 4, !tbaa !9
  br label %311

309:                                              ; preds = %298
  %310 = load i32, ptr %14, align 4, !tbaa !9
  br label %311

311:                                              ; preds = %309, %307
  %312 = phi i32 [ %308, %307 ], [ %310, %309 ]
  store i32 %312, ptr %13, align 4, !tbaa !9
  %313 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %313, ptr %5, align 4, !tbaa !9
  %314 = load i32, ptr %13, align 4, !tbaa !9
  %315 = icmp ne i32 %314, 0
  br i1 %315, label %316, label %334

316:                                              ; preds = %311
  %317 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %317, ptr %13, align 4, !tbaa !9
  store i32 1073741824, ptr %14, align 4, !tbaa !9
  %318 = load i32, ptr %13, align 4, !tbaa !9
  %319 = load i32, ptr %14, align 4, !tbaa !9
  %320 = icmp uge i32 %318, %319
  %321 = zext i1 %320 to i32
  store i32 %321, ptr %13, align 4, !tbaa !9
  %322 = load i32, ptr %13, align 4, !tbaa !9
  %323 = icmp ne i32 %322, 0
  br i1 %323, label %324, label %325

324:                                              ; preds = %316
  br label %418

325:                                              ; preds = %316
  %326 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %326, ptr %13, align 4, !tbaa !9
  store i32 2, ptr %14, align 4, !tbaa !9
  %327 = load i32, ptr %14, align 4, !tbaa !9
  %328 = and i32 %327, 31
  %329 = load i32, ptr %13, align 4, !tbaa !9
  %330 = shl i32 %329, %328
  store i32 %330, ptr %13, align 4, !tbaa !9
  %331 = load ptr, ptr %3, align 8, !tbaa !5
  %332 = load i32, ptr %13, align 4, !tbaa !9
  %333 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %331, i32 noundef %332)
  store i32 %333, ptr %13, align 4, !tbaa !9
  br label %335

334:                                              ; preds = %311
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %335

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

402:                                              ; preds = %335
  br label %407

403:                                              ; preds = %335
  %404 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %404, ptr %13, align 4, !tbaa !9
  %405 = load ptr, ptr %3, align 8, !tbaa !5
  %406 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %405, i32 noundef %406)
  br label %407

407:                                              ; preds = %403, %402, %224
  %408 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %408, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %409 = load i32, ptr %14, align 4, !tbaa !9
  %410 = load i32, ptr %13, align 4, !tbaa !9
  %411 = add i32 %410, %409
  store i32 %411, ptr %13, align 4, !tbaa !9
  %412 = load i32, ptr %13, align 4, !tbaa !9
  %413 = load ptr, ptr %3, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.w2c_hermes, ptr %413, i32 0, i32 3
  store i32 %412, ptr %414, align 8, !tbaa !11
  %415 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %415, ptr %13, align 4, !tbaa !9
  br label %420

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

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

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

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_hermes0x3A0x3Aregex0x3A0x3AGoalNode0x2A0x20hermes0x3A0x3Aregex0x3A0x3ARegex0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3AappendNode0x3Chermes0x3A0x3Aregex0x3A0x3AGoalNode0x3E0x280x29(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 270048)
  %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 = 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)
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %52, label %25

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

35:                                               ; preds = %25
  %36 = load ptr, ptr %31, align 8, !tbaa !17
  %37 = zext i32 %30 to i64
  %38 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %36, i64 %37
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %.not215 = icmp eq ptr %40, null
  br i1 %.not215, label %.critedge, label %41, !prof !20

41:                                               ; preds = %35
  %42 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !21
  %43 = load ptr, ptr %38, align 8, !tbaa !22
  %44 = tail call zeroext i1 @func_types_eq(ptr noundef %42, ptr noundef %43)
  br i1 %44, label %45, label %.critedge, !prof !16

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

45:                                               ; preds = %41
  %46 = load ptr, ptr %31, align 8, !tbaa !17
  %47 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %46, i64 %37
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !18
  %50 = getelementptr inbounds i8, ptr %47, i64 16
  %51 = load ptr, ptr %50, align 8, !tbaa !23
  tail call void %49(ptr noundef %51, i32 noundef %24) #5
  br label %52

52:                                               ; preds = %45, %23
  %53 = add nuw nsw i64 %11, 148
  %54 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %53)
  %55 = add nuw nsw i64 %11, 152
  %56 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %55)
  %57 = icmp ult i32 %54, %56
  br i1 %57, label %58, label %61

58:                                               ; preds = %52
  %59 = zext i32 %54 to i64
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %59, i32 noundef %6)
  %60 = add i32 %54, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %53, i32 noundef %60)
  br label %86

61:                                               ; preds = %52
  %62 = add nuw nsw i64 %11, 144
  %63 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %62)
  %64 = sub i32 %54, %63
  %65 = ashr i32 %64, 2
  %66 = add nsw i32 %65, 1
  %67 = icmp ugt i32 %66, 1073741823
  br i1 %67, label %87, label %68

68:                                               ; preds = %61
  %69 = sub i32 %56, %63
  %70 = ashr i32 %69, 1
  %71 = tail call i32 @llvm.umax.i32(i32 %66, i32 %70)
  %72 = icmp ugt i32 %69, 2147483643
  %73 = select i1 %72, i32 1073741823, i32 %71
  %.not216 = icmp eq i32 %73, 0
  br i1 %.not216, label %._crit_edge, label %74

74:                                               ; preds = %68
  %75 = icmp ugt i32 %73, 1073741823
  br i1 %75, label %88, label %76

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

._crit_edge:                                      ; preds = %68, %76
  %.pre-phi = phi i32 [ %77, %76 ], [ 0, %68 ]
  %.0 = phi i32 [ %78, %76 ], [ 0, %68 ]
  %79 = and i32 %64, -4
  %80 = add i32 %.0, %79
  %81 = zext i32 %80 to i64
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %81, i32 noundef %6)
  %82 = tail call i32 @w2c_hermes_memmove(ptr noundef nonnull %0, i32 noundef %.0, i32 noundef %63, i32 noundef %64) #5
  %83 = add i32 %82, %.pre-phi
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %55, i32 noundef %83)
  %84 = add i32 %80, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %53, i32 noundef %84)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %62, i32 noundef %82)
  %.not217 = icmp eq i32 %63, 0
  br i1 %.not217, label %86, label %85

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

86:                                               ; preds = %._crit_edge, %85, %58
  store i32 %4, ptr %3, align 8, !tbaa !5
  ret i32 %6

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

88:                                               ; preds = %74
  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