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

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

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

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

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

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

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

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

declare void @w2c_hermes_abort(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) #4

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x3A0x3A_0x5Fgrow_by_and_replace0x28unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20char16_t0x20const0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) #4 {
  %10 = alloca ptr, align 8
  %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
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store i32 %2, ptr %12, align 4, !tbaa !9
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !9
  store i32 %7, ptr %17, align 4, !tbaa !9
  store i32 %8, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %27 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %27, ptr %22, align 4, !tbaa !9
  store i32 2147483630, ptr %23, align 4, !tbaa !9
  %28 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %28, ptr %24, align 4, !tbaa !9
  %29 = load i32, ptr %24, align 4, !tbaa !9
  %30 = load i32, ptr %23, align 4, !tbaa !9
  %31 = sub i32 %30, %29
  store i32 %31, ptr %23, align 4, !tbaa !9
  %32 = load i32, ptr %22, align 4, !tbaa !9
  %33 = load i32, ptr %23, align 4, !tbaa !9
  %34 = icmp ule i32 %32, %33
  %35 = zext i1 %34 to i32
  store i32 %35, ptr %22, align 4, !tbaa !9
  %36 = load i32, ptr %22, align 4, !tbaa !9
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %309

38:                                               ; preds = %9
  %39 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %39, ptr %22, align 4, !tbaa !9
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.w2c_hermes, ptr %40, i32 0, i32 6
  %42 = load i32, ptr %22, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = add i64 %43, 11
  %45 = call i32 @i32_load8_s(ptr noundef %41, i64 noundef %44)
  store i32 %45, ptr %22, align 4, !tbaa !9
  %46 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %46, ptr %19, align 4, !tbaa !9
  %47 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %47, ptr %22, align 4, !tbaa !9
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.w2c_hermes, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %22, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = call i32 @i32_load(ptr noundef %49, i64 noundef %51)
  store i32 %52, ptr %22, align 4, !tbaa !9
  %53 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %53, ptr %21, align 4, !tbaa !9
  store i32 2147483631, ptr %22, align 4, !tbaa !9
  %54 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %54, ptr %20, align 4, !tbaa !9
  %55 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %55, ptr %22, align 4, !tbaa !9
  store i32 1073741798, ptr %23, align 4, !tbaa !9
  %56 = load i32, ptr %22, align 4, !tbaa !9
  %57 = load i32, ptr %23, align 4, !tbaa !9
  %58 = icmp ule i32 %56, %57
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %22, align 4, !tbaa !9
  %60 = load i32, ptr %22, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %118

62:                                               ; preds = %38
  store i32 5, ptr %22, align 4, !tbaa !9
  %63 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %63, ptr %23, align 4, !tbaa !9
  %64 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %64, ptr %24, align 4, !tbaa !9
  %65 = load i32, ptr %24, align 4, !tbaa !9
  %66 = load i32, ptr %23, align 4, !tbaa !9
  %67 = add i32 %66, %65
  store i32 %67, ptr %23, align 4, !tbaa !9
  %68 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %68, ptr %13, align 4, !tbaa !9
  %69 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %69, ptr %24, align 4, !tbaa !9
  store i32 1, ptr %25, align 4, !tbaa !9
  %70 = load i32, ptr %25, align 4, !tbaa !9
  %71 = and i32 %70, 31
  %72 = load i32, ptr %24, align 4, !tbaa !9
  %73 = shl i32 %72, %71
  store i32 %73, ptr %24, align 4, !tbaa !9
  %74 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %74, ptr %20, align 4, !tbaa !9
  %75 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %75, ptr %25, align 4, !tbaa !9
  %76 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %76, ptr %26, align 4, !tbaa !9
  %77 = load i32, ptr %25, align 4, !tbaa !9
  %78 = load i32, ptr %26, align 4, !tbaa !9
  %79 = icmp ugt i32 %77, %78
  %80 = zext i1 %79 to i32
  store i32 %80, ptr %25, align 4, !tbaa !9
  %81 = load i32, ptr %25, align 4, !tbaa !9
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %85

83:                                               ; preds = %62
  %84 = load i32, ptr %23, align 4, !tbaa !9
  br label %87

85:                                               ; preds = %62
  %86 = load i32, ptr %24, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %85, %83
  %88 = phi i32 [ %84, %83 ], [ %86, %85 ]
  store i32 %88, ptr %23, align 4, !tbaa !9
  %89 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %89, ptr %13, align 4, !tbaa !9
  store i32 7, ptr %24, align 4, !tbaa !9
  %90 = load i32, ptr %24, align 4, !tbaa !9
  %91 = load i32, ptr %23, align 4, !tbaa !9
  %92 = or i32 %91, %90
  store i32 %92, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %93 = load i32, ptr %24, align 4, !tbaa !9
  %94 = load i32, ptr %23, align 4, !tbaa !9
  %95 = add i32 %94, %93
  store i32 %95, ptr %23, align 4, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %96, ptr %24, align 4, !tbaa !9
  store i32 5, ptr %25, align 4, !tbaa !9
  %97 = load i32, ptr %24, align 4, !tbaa !9
  %98 = load i32, ptr %25, align 4, !tbaa !9
  %99 = icmp ult i32 %97, %98
  %100 = zext i1 %99 to i32
  store i32 %100, ptr %24, align 4, !tbaa !9
  %101 = load i32, ptr %24, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %105

103:                                              ; preds = %87
  %104 = load i32, ptr %22, align 4, !tbaa !9
  br label %107

105:                                              ; preds = %87
  %106 = load i32, ptr %23, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %105, %103
  %108 = phi i32 [ %104, %103 ], [ %106, %105 ]
  store i32 %108, ptr %22, align 4, !tbaa !9
  %109 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %109, ptr %20, align 4, !tbaa !9
  store i32 0, ptr %23, align 4, !tbaa !9
  %110 = load i32, ptr %22, align 4, !tbaa !9
  %111 = load i32, ptr %23, align 4, !tbaa !9
  %112 = icmp slt i32 %110, %111
  %113 = zext i1 %112 to i32
  store i32 %113, ptr %22, align 4, !tbaa !9
  %114 = load i32, ptr %22, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %117

116:                                              ; preds = %107
  br label %311

117:                                              ; preds = %107
  br label %118

118:                                              ; preds = %117, %38
  %119 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %119, ptr %22, align 4, !tbaa !9
  %120 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %120, ptr %23, align 4, !tbaa !9
  %121 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %121, ptr %24, align 4, !tbaa !9
  store i32 0, ptr %25, align 4, !tbaa !9
  %122 = load i32, ptr %24, align 4, !tbaa !9
  %123 = load i32, ptr %25, align 4, !tbaa !9
  %124 = icmp slt i32 %122, %123
  %125 = zext i1 %124 to i32
  store i32 %125, ptr %24, align 4, !tbaa !9
  %126 = load i32, ptr %24, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %130

128:                                              ; preds = %118
  %129 = load i32, ptr %22, align 4, !tbaa !9
  br label %132

130:                                              ; preds = %118
  %131 = load i32, ptr %23, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %130, %128
  %133 = phi i32 [ %129, %128 ], [ %131, %130 ]
  store i32 %133, ptr %22, align 4, !tbaa !9
  %134 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %134, ptr %19, align 4, !tbaa !9
  %135 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %135, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %136 = load i32, ptr %23, align 4, !tbaa !9
  %137 = and i32 %136, 31
  %138 = load i32, ptr %22, align 4, !tbaa !9
  %139 = shl i32 %138, %137
  store i32 %139, ptr %22, align 4, !tbaa !9
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = load i32, ptr %22, align 4, !tbaa !9
  %142 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %140, i32 noundef %141)
  store i32 %142, ptr %22, align 4, !tbaa !9
  %143 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %143, ptr %13, align 4, !tbaa !9
  %144 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %144, ptr %22, align 4, !tbaa !9
  %145 = load i32, ptr %22, align 4, !tbaa !9
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %160

147:                                              ; preds = %132
  %148 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %148, ptr %22, align 4, !tbaa !9
  %149 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %149, ptr %23, align 4, !tbaa !9
  %150 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %150, ptr %24, align 4, !tbaa !9
  store i32 1, ptr %25, align 4, !tbaa !9
  %151 = load i32, ptr %25, align 4, !tbaa !9
  %152 = and i32 %151, 31
  %153 = load i32, ptr %24, align 4, !tbaa !9
  %154 = shl i32 %153, %152
  store i32 %154, ptr %24, align 4, !tbaa !9
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = load i32, ptr %23, align 4, !tbaa !9
  %158 = load i32, ptr %24, align 4, !tbaa !9
  %159 = call i32 @w2c_hermes_memmove(ptr noundef %155, i32 noundef %156, i32 noundef %157, i32 noundef %158)
  store i32 %159, ptr %22, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %147, %132
  %161 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %161, ptr %22, align 4, !tbaa !9
  %162 = load i32, ptr %22, align 4, !tbaa !9
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %185

164:                                              ; preds = %160
  %165 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %165, ptr %22, align 4, !tbaa !9
  %166 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %166, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %167 = load i32, ptr %24, align 4, !tbaa !9
  %168 = and i32 %167, 31
  %169 = load i32, ptr %23, align 4, !tbaa !9
  %170 = shl i32 %169, %168
  store i32 %170, ptr %23, align 4, !tbaa !9
  %171 = load i32, ptr %23, align 4, !tbaa !9
  %172 = load i32, ptr %22, align 4, !tbaa !9
  %173 = add i32 %172, %171
  store i32 %173, ptr %22, align 4, !tbaa !9
  %174 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %174, ptr %23, align 4, !tbaa !9
  %175 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %175, ptr %24, align 4, !tbaa !9
  store i32 1, ptr %25, align 4, !tbaa !9
  %176 = load i32, ptr %25, align 4, !tbaa !9
  %177 = and i32 %176, 31
  %178 = load i32, ptr %24, align 4, !tbaa !9
  %179 = shl i32 %178, %177
  store i32 %179, ptr %24, align 4, !tbaa !9
  %180 = load ptr, ptr %10, align 8, !tbaa !5
  %181 = load i32, ptr %22, align 4, !tbaa !9
  %182 = load i32, ptr %23, align 4, !tbaa !9
  %183 = load i32, ptr %24, align 4, !tbaa !9
  %184 = call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %180, i32 noundef %181, i32 noundef %182, i32 noundef %183)
  store i32 %184, ptr %22, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %164, %160
  %186 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %186, ptr %22, align 4, !tbaa !9
  %187 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %187, ptr %23, align 4, !tbaa !9
  %188 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %188, ptr %24, align 4, !tbaa !9
  %189 = load i32, ptr %24, align 4, !tbaa !9
  %190 = load i32, ptr %23, align 4, !tbaa !9
  %191 = add i32 %190, %189
  store i32 %191, ptr %23, align 4, !tbaa !9
  %192 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %192, ptr %18, align 4, !tbaa !9
  %193 = load i32, ptr %23, align 4, !tbaa !9
  %194 = load i32, ptr %22, align 4, !tbaa !9
  %195 = sub i32 %194, %193
  store i32 %195, ptr %22, align 4, !tbaa !9
  %196 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %196, ptr %21, align 4, !tbaa !9
  %197 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %197, ptr %22, align 4, !tbaa !9
  %198 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %198, ptr %23, align 4, !tbaa !9
  %199 = load i32, ptr %22, align 4, !tbaa !9
  %200 = load i32, ptr %23, align 4, !tbaa !9
  %201 = icmp ne i32 %199, %200
  %202 = zext i1 %201 to i32
  store i32 %202, ptr %22, align 4, !tbaa !9
  %203 = load i32, ptr %22, align 4, !tbaa !9
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %247

205:                                              ; preds = %185
  %206 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %206, ptr %22, align 4, !tbaa !9
  %207 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %207, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %208 = load i32, ptr %24, align 4, !tbaa !9
  %209 = and i32 %208, 31
  %210 = load i32, ptr %23, align 4, !tbaa !9
  %211 = shl i32 %210, %209
  store i32 %211, ptr %23, align 4, !tbaa !9
  %212 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %212, ptr %14, align 4, !tbaa !9
  %213 = load i32, ptr %23, align 4, !tbaa !9
  %214 = load i32, ptr %22, align 4, !tbaa !9
  %215 = add i32 %214, %213
  store i32 %215, ptr %22, align 4, !tbaa !9
  %216 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %216, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %217 = load i32, ptr %24, align 4, !tbaa !9
  %218 = and i32 %217, 31
  %219 = load i32, ptr %23, align 4, !tbaa !9
  %220 = shl i32 %219, %218
  store i32 %220, ptr %23, align 4, !tbaa !9
  %221 = load i32, ptr %23, align 4, !tbaa !9
  %222 = load i32, ptr %22, align 4, !tbaa !9
  %223 = add i32 %222, %221
  store i32 %223, ptr %22, align 4, !tbaa !9
  %224 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %224, ptr %23, align 4, !tbaa !9
  %225 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %225, ptr %24, align 4, !tbaa !9
  %226 = load i32, ptr %24, align 4, !tbaa !9
  %227 = load i32, ptr %23, align 4, !tbaa !9
  %228 = add i32 %227, %226
  store i32 %228, ptr %23, align 4, !tbaa !9
  %229 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %229, ptr %24, align 4, !tbaa !9
  store i32 1, ptr %25, align 4, !tbaa !9
  %230 = load i32, ptr %25, align 4, !tbaa !9
  %231 = and i32 %230, 31
  %232 = load i32, ptr %24, align 4, !tbaa !9
  %233 = shl i32 %232, %231
  store i32 %233, ptr %24, align 4, !tbaa !9
  %234 = load i32, ptr %24, align 4, !tbaa !9
  %235 = load i32, ptr %23, align 4, !tbaa !9
  %236 = add i32 %235, %234
  store i32 %236, ptr %23, align 4, !tbaa !9
  %237 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %237, ptr %24, align 4, !tbaa !9
  store i32 1, ptr %25, align 4, !tbaa !9
  %238 = load i32, ptr %25, align 4, !tbaa !9
  %239 = and i32 %238, 31
  %240 = load i32, ptr %24, align 4, !tbaa !9
  %241 = shl i32 %240, %239
  store i32 %241, ptr %24, align 4, !tbaa !9
  %242 = load ptr, ptr %10, align 8, !tbaa !5
  %243 = load i32, ptr %22, align 4, !tbaa !9
  %244 = load i32, ptr %23, align 4, !tbaa !9
  %245 = load i32, ptr %24, align 4, !tbaa !9
  %246 = call i32 @w2c_hermes_memmove(ptr noundef %242, i32 noundef %243, i32 noundef %244, i32 noundef %245)
  store i32 %246, ptr %22, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %205, %185
  %248 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %248, ptr %22, align 4, !tbaa !9
  store i32 4, ptr %23, align 4, !tbaa !9
  %249 = load i32, ptr %22, align 4, !tbaa !9
  %250 = load i32, ptr %23, align 4, !tbaa !9
  %251 = icmp ne i32 %249, %250
  %252 = zext i1 %251 to i32
  store i32 %252, ptr %22, align 4, !tbaa !9
  %253 = load i32, ptr %22, align 4, !tbaa !9
  %254 = icmp ne i32 %253, 0
  br i1 %254, label %255, label %259

255:                                              ; preds = %247
  %256 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %256, ptr %22, align 4, !tbaa !9
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = load i32, ptr %22, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %257, i32 noundef %258)
  br label %259

259:                                              ; preds = %255, %247
  %260 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %260, ptr %22, align 4, !tbaa !9
  %261 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %261, ptr %23, align 4, !tbaa !9
  %262 = load ptr, ptr %10, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.w2c_hermes, ptr %262, i32 0, i32 6
  %264 = load i32, ptr %22, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  %266 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %263, i64 noundef %265, i32 noundef %266)
  %267 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %267, ptr %22, align 4, !tbaa !9
  %268 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %268, ptr %23, align 4, !tbaa !9
  store i32 -2147483648, ptr %24, align 4, !tbaa !9
  %269 = load i32, ptr %24, align 4, !tbaa !9
  %270 = load i32, ptr %23, align 4, !tbaa !9
  %271 = or i32 %270, %269
  store i32 %271, ptr %23, align 4, !tbaa !9
  %272 = load ptr, ptr %10, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.w2c_hermes, ptr %272, i32 0, i32 6
  %274 = load i32, ptr %22, align 4, !tbaa !9
  %275 = zext i32 %274 to i64
  %276 = add i64 %275, 8
  %277 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %273, i64 noundef %276, i32 noundef %277)
  %278 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %278, ptr %22, align 4, !tbaa !9
  %279 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %279, ptr %23, align 4, !tbaa !9
  %280 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %280, ptr %24, align 4, !tbaa !9
  %281 = load i32, ptr %24, align 4, !tbaa !9
  %282 = load i32, ptr %23, align 4, !tbaa !9
  %283 = add i32 %282, %281
  store i32 %283, ptr %23, align 4, !tbaa !9
  %284 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %284, ptr %24, align 4, !tbaa !9
  %285 = load i32, ptr %24, align 4, !tbaa !9
  %286 = load i32, ptr %23, align 4, !tbaa !9
  %287 = add i32 %286, %285
  store i32 %287, ptr %23, align 4, !tbaa !9
  %288 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %288, ptr %15, align 4, !tbaa !9
  %289 = load ptr, ptr %10, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.w2c_hermes, ptr %289, i32 0, i32 6
  %291 = load i32, ptr %22, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = add i64 %292, 4
  %294 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %290, i64 noundef %293, i32 noundef %294)
  %295 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %295, ptr %22, align 4, !tbaa !9
  %296 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %296, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %297 = load i32, ptr %24, align 4, !tbaa !9
  %298 = and i32 %297, 31
  %299 = load i32, ptr %23, align 4, !tbaa !9
  %300 = shl i32 %299, %298
  store i32 %300, ptr %23, align 4, !tbaa !9
  %301 = load i32, ptr %23, align 4, !tbaa !9
  %302 = load i32, ptr %22, align 4, !tbaa !9
  %303 = add i32 %302, %301
  store i32 %303, ptr %22, align 4, !tbaa !9
  store i32 0, ptr %23, align 4, !tbaa !9
  %304 = load ptr, ptr %10, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.w2c_hermes, ptr %304, i32 0, i32 6
  %306 = load i32, ptr %22, align 4, !tbaa !9
  %307 = zext i32 %306 to i64
  %308 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %305, i64 noundef %307, i32 noundef %308)
  br label %313

309:                                              ; preds = %9
  %310 = load ptr, ptr %10, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %310)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

311:                                              ; preds = %116
  %312 = load ptr, ptr %10, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef %312)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

313:                                              ; preds = %259
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) local_unnamed_addr #3

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_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x3A0x3A_0x5Fgrow_by_and_replace0x28unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20char16_t0x20const0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) local_unnamed_addr #3 {
  %10 = sub i32 2147483630, %2
  %.not = icmp ult i32 %10, %3
  br i1 %.not, label %63, label %11

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = zext i32 %1 to i64
  %14 = add nuw nsw i64 %13, 11
  %15 = tail call i32 @i32_load8_s(ptr noundef nonnull %12, i64 noundef %14)
  %16 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %13)
  %17 = icmp ult i32 %2, 1073741799
  br i1 %17, label %18, label %27

18:                                               ; preds = %11
  %19 = add i32 %3, %2
  %20 = shl nuw nsw i32 %2, 1
  %21 = tail call i32 @llvm.umax.i32(i32 %19, i32 %20)
  %22 = or i32 %21, 7
  %23 = add i32 %22, 1
  %24 = icmp ult i32 %21, 5
  %25 = select i1 %24, i32 5, i32 %23
  %26 = icmp slt i32 %25, 0
  br i1 %26, label %64, label %27

27:                                               ; preds = %18, %11
  %.0 = phi i32 [ %25, %18 ], [ 2147483631, %11 ]
  %28 = icmp slt i32 %15, 0
  %29 = select i1 %28, i32 %16, i32 %1
  %30 = shl nuw i32 %.0, 1
  %31 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %30) #5
  %.not181 = icmp eq i32 %5, 0
  br i1 %.not181, label %35, label %32

32:                                               ; preds = %27
  %33 = shl i32 %5, 1
  %34 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %31, i32 noundef %29, i32 noundef %33) #5
  br label %35

35:                                               ; preds = %32, %27
  %.not182 = icmp eq i32 %7, 0
  br i1 %.not182, label %41, label %36

36:                                               ; preds = %35
  %37 = shl i32 %5, 1
  %38 = add i32 %31, %37
  %39 = shl i32 %7, 1
  %40 = tail call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %0, i32 noundef %38, i32 noundef %8, i32 noundef %39) #5
  br label %41

41:                                               ; preds = %36, %35
  %42 = add i32 %6, %5
  %43 = sub i32 %4, %42
  %.not183 = icmp eq i32 %42, %4
  br i1 %.not183, label %52, label %44

44:                                               ; preds = %41
  %45 = add i32 %7, %5
  %46 = shl i32 %45, 1
  %47 = add i32 %46, %31
  %48 = shl i32 %42, 1
  %49 = add i32 %48, %29
  %50 = shl i32 %43, 1
  %51 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %47, i32 noundef %49, i32 noundef %50) #5
  br label %52

52:                                               ; preds = %44, %41
  %.not184 = icmp eq i32 %2, 4
  br i1 %.not184, label %54, label %53

53:                                               ; preds = %52
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %29) #5
  br label %54

54:                                               ; preds = %53, %52
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %13, i32 noundef %31)
  %55 = or disjoint i32 %.0, -2147483648
  %56 = add nuw nsw i64 %13, 8
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %56, i32 noundef %55)
  %57 = add i32 %7, %5
  %58 = add i32 %57, %43
  %59 = add nuw nsw i64 %13, 4
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %59, i32 noundef %58)
  %60 = shl i32 %58, 1
  %61 = add i32 %31, %60
  %62 = zext i32 %61 to i64
  tail call void @i32_store16(ptr noundef nonnull %12, i64 noundef %62, i32 noundef 0)
  ret void

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

64:                                               ; preds = %18
  tail call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef %0)
  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)"}


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