; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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: nounwind uwtable
declare dso_local i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) #0

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

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

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

declare void @w2c_hermes_abort(ptr noundef) #4

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

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_out_of_range0x5Babi0x3Av150070x5D0x28char0x20const0x2A0x29(ptr noundef) #0

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

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

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

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

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

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

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

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

81:                                               ; preds = %60
  %82 = load i32, ptr %21, align 4, !tbaa !9
  br label %85

83:                                               ; preds = %60
  %84 = load i32, ptr %22, align 4, !tbaa !9
  br label %85

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

101:                                              ; preds = %85
  %102 = load i32, ptr %20, align 4, !tbaa !9
  br label %105

103:                                              ; preds = %85
  %104 = load i32, ptr %21, align 4, !tbaa !9
  br label %105

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

114:                                              ; preds = %105
  br label %296

115:                                              ; preds = %105
  br label %116

116:                                              ; preds = %115, %36
  %117 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %117, ptr %20, align 4, !tbaa !9
  %118 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %118, ptr %21, align 4, !tbaa !9
  %119 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %119, ptr %22, align 4, !tbaa !9
  store i32 0, ptr %23, align 4, !tbaa !9
  %120 = load i32, ptr %22, align 4, !tbaa !9
  %121 = load i32, ptr %23, align 4, !tbaa !9
  %122 = icmp slt i32 %120, %121
  %123 = zext i1 %122 to i32
  store i32 %123, ptr %22, align 4, !tbaa !9
  %124 = load i32, ptr %22, align 4, !tbaa !9
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %128

126:                                              ; preds = %116
  %127 = load i32, ptr %20, align 4, !tbaa !9
  br label %130

128:                                              ; preds = %116
  %129 = load i32, ptr %21, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %128, %126
  %131 = phi i32 [ %127, %126 ], [ %129, %128 ]
  store i32 %131, ptr %20, align 4, !tbaa !9
  %132 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %132, ptr %17, align 4, !tbaa !9
  %133 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %133, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %134 = load i32, ptr %21, align 4, !tbaa !9
  %135 = and i32 %134, 31
  %136 = load i32, ptr %20, align 4, !tbaa !9
  %137 = shl i32 %136, %135
  store i32 %137, ptr %20, align 4, !tbaa !9
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = load i32, ptr %20, align 4, !tbaa !9
  %140 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %138, i32 noundef %139)
  store i32 %140, ptr %20, align 4, !tbaa !9
  %141 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %141, ptr %12, align 4, !tbaa !9
  %142 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %142, ptr %20, align 4, !tbaa !9
  %143 = load i32, ptr %20, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %158

145:                                              ; preds = %130
  %146 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %146, ptr %20, align 4, !tbaa !9
  %147 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %147, ptr %21, align 4, !tbaa !9
  %148 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %148, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %149 = load i32, ptr %23, align 4, !tbaa !9
  %150 = and i32 %149, 31
  %151 = load i32, ptr %22, align 4, !tbaa !9
  %152 = shl i32 %151, %150
  store i32 %152, ptr %22, align 4, !tbaa !9
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = load i32, ptr %20, align 4, !tbaa !9
  %155 = load i32, ptr %21, align 4, !tbaa !9
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = call i32 @w2c_hermes_memmove(ptr noundef %153, i32 noundef %154, i32 noundef %155, i32 noundef %156)
  store i32 %157, ptr %20, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %145, %130
  %159 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %159, ptr %20, align 4, !tbaa !9
  %160 = load i32, ptr %20, align 4, !tbaa !9
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %183

162:                                              ; preds = %158
  %163 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %163, ptr %20, align 4, !tbaa !9
  %164 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %164, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %22, align 4, !tbaa !9
  %165 = load i32, ptr %22, align 4, !tbaa !9
  %166 = and i32 %165, 31
  %167 = load i32, ptr %21, align 4, !tbaa !9
  %168 = shl i32 %167, %166
  store i32 %168, ptr %21, align 4, !tbaa !9
  %169 = load i32, ptr %21, align 4, !tbaa !9
  %170 = load i32, ptr %20, align 4, !tbaa !9
  %171 = add i32 %170, %169
  store i32 %171, ptr %20, align 4, !tbaa !9
  %172 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %172, ptr %21, align 4, !tbaa !9
  %173 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %173, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %174 = load i32, ptr %23, align 4, !tbaa !9
  %175 = and i32 %174, 31
  %176 = load i32, ptr %22, align 4, !tbaa !9
  %177 = shl i32 %176, %175
  store i32 %177, ptr %22, align 4, !tbaa !9
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = load i32, ptr %20, align 4, !tbaa !9
  %180 = load i32, ptr %21, align 4, !tbaa !9
  %181 = load i32, ptr %22, align 4, !tbaa !9
  %182 = call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %178, i32 noundef %179, i32 noundef %180, i32 noundef %181)
  store i32 %182, ptr %20, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %162, %158
  %184 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %184, ptr %20, align 4, !tbaa !9
  %185 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %185, ptr %21, align 4, !tbaa !9
  %186 = load i32, ptr %21, align 4, !tbaa !9
  %187 = load i32, ptr %20, align 4, !tbaa !9
  %188 = sub i32 %187, %186
  store i32 %188, ptr %20, align 4, !tbaa !9
  %189 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %189, ptr %16, align 4, !tbaa !9
  %190 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %190, ptr %20, align 4, !tbaa !9
  %191 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %191, ptr %21, align 4, !tbaa !9
  %192 = load i32, ptr %20, align 4, !tbaa !9
  %193 = load i32, ptr %21, align 4, !tbaa !9
  %194 = icmp ne i32 %192, %193
  %195 = zext i1 %194 to i32
  store i32 %195, ptr %20, align 4, !tbaa !9
  %196 = load i32, ptr %20, align 4, !tbaa !9
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %232

198:                                              ; preds = %183
  %199 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %199, ptr %20, align 4, !tbaa !9
  %200 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %200, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %22, align 4, !tbaa !9
  %201 = load i32, ptr %22, align 4, !tbaa !9
  %202 = and i32 %201, 31
  %203 = load i32, ptr %21, align 4, !tbaa !9
  %204 = shl i32 %203, %202
  store i32 %204, ptr %21, align 4, !tbaa !9
  %205 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %205, ptr %13, align 4, !tbaa !9
  %206 = load i32, ptr %21, align 4, !tbaa !9
  %207 = load i32, ptr %20, align 4, !tbaa !9
  %208 = add i32 %207, %206
  store i32 %208, ptr %20, align 4, !tbaa !9
  %209 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %209, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %22, align 4, !tbaa !9
  %210 = load i32, ptr %22, align 4, !tbaa !9
  %211 = and i32 %210, 31
  %212 = load i32, ptr %21, align 4, !tbaa !9
  %213 = shl i32 %212, %211
  store i32 %213, ptr %21, align 4, !tbaa !9
  %214 = load i32, ptr %21, align 4, !tbaa !9
  %215 = load i32, ptr %20, align 4, !tbaa !9
  %216 = add i32 %215, %214
  store i32 %216, ptr %20, align 4, !tbaa !9
  %217 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %217, ptr %21, align 4, !tbaa !9
  %218 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %218, ptr %22, align 4, !tbaa !9
  %219 = load i32, ptr %22, align 4, !tbaa !9
  %220 = load i32, ptr %21, align 4, !tbaa !9
  %221 = add i32 %220, %219
  store i32 %221, ptr %21, align 4, !tbaa !9
  %222 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %222, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %223 = load i32, ptr %23, align 4, !tbaa !9
  %224 = and i32 %223, 31
  %225 = load i32, ptr %22, align 4, !tbaa !9
  %226 = shl i32 %225, %224
  store i32 %226, ptr %22, align 4, !tbaa !9
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = load i32, ptr %20, align 4, !tbaa !9
  %229 = load i32, ptr %21, align 4, !tbaa !9
  %230 = load i32, ptr %22, align 4, !tbaa !9
  %231 = call i32 @w2c_hermes_memmove(ptr noundef %227, i32 noundef %228, i32 noundef %229, i32 noundef %230)
  store i32 %231, ptr %20, align 4, !tbaa !9
  br label %232

232:                                              ; preds = %198, %183
  %233 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %233, ptr %20, align 4, !tbaa !9
  store i32 4, ptr %21, align 4, !tbaa !9
  %234 = load i32, ptr %20, align 4, !tbaa !9
  %235 = load i32, ptr %21, align 4, !tbaa !9
  %236 = icmp ne i32 %234, %235
  %237 = zext i1 %236 to i32
  store i32 %237, ptr %20, align 4, !tbaa !9
  %238 = load i32, ptr %20, align 4, !tbaa !9
  %239 = icmp ne i32 %238, 0
  br i1 %239, label %240, label %244

240:                                              ; preds = %232
  %241 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %241, ptr %20, align 4, !tbaa !9
  %242 = load ptr, ptr %9, align 8, !tbaa !5
  %243 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %242, i32 noundef %243)
  br label %244

244:                                              ; preds = %240, %232
  %245 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %245, ptr %20, align 4, !tbaa !9
  %246 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %246, ptr %21, align 4, !tbaa !9
  %247 = load ptr, ptr %9, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.w2c_hermes, ptr %247, i32 0, i32 6
  %249 = load i32, ptr %20, align 4, !tbaa !9
  %250 = zext i32 %249 to i64
  %251 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %248, i64 noundef %250, i32 noundef %251)
  %252 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %252, ptr %20, align 4, !tbaa !9
  %253 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %253, ptr %21, align 4, !tbaa !9
  store i32 -2147483648, ptr %22, align 4, !tbaa !9
  %254 = load i32, ptr %22, align 4, !tbaa !9
  %255 = load i32, ptr %21, align 4, !tbaa !9
  %256 = or i32 %255, %254
  store i32 %256, ptr %21, align 4, !tbaa !9
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.w2c_hermes, ptr %257, i32 0, i32 6
  %259 = load i32, ptr %20, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = add i64 %260, 8
  %262 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %258, i64 noundef %261, i32 noundef %262)
  %263 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %263, ptr %20, align 4, !tbaa !9
  %264 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %264, ptr %21, align 4, !tbaa !9
  %265 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %265, ptr %22, align 4, !tbaa !9
  %266 = load i32, ptr %22, align 4, !tbaa !9
  %267 = load i32, ptr %21, align 4, !tbaa !9
  %268 = add i32 %267, %266
  store i32 %268, ptr %21, align 4, !tbaa !9
  %269 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %269, ptr %22, align 4, !tbaa !9
  %270 = load i32, ptr %22, align 4, !tbaa !9
  %271 = load i32, ptr %21, align 4, !tbaa !9
  %272 = add i32 %271, %270
  store i32 %272, ptr %21, align 4, !tbaa !9
  %273 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %273, ptr %10, align 4, !tbaa !9
  %274 = load ptr, ptr %9, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.w2c_hermes, ptr %274, i32 0, i32 6
  %276 = load i32, ptr %20, align 4, !tbaa !9
  %277 = zext i32 %276 to i64
  %278 = add i64 %277, 4
  %279 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %275, i64 noundef %278, i32 noundef %279)
  %280 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %280, ptr %20, align 4, !tbaa !9
  %281 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %281, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %22, align 4, !tbaa !9
  %282 = load i32, ptr %22, align 4, !tbaa !9
  %283 = and i32 %282, 31
  %284 = load i32, ptr %21, align 4, !tbaa !9
  %285 = shl i32 %284, %283
  store i32 %285, ptr %21, align 4, !tbaa !9
  %286 = load i32, ptr %21, align 4, !tbaa !9
  %287 = load i32, ptr %20, align 4, !tbaa !9
  %288 = add i32 %287, %286
  store i32 %288, ptr %20, align 4, !tbaa !9
  store i32 0, ptr %21, align 4, !tbaa !9
  %289 = load ptr, ptr %9, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.w2c_hermes, ptr %289, i32 0, i32 6
  %291 = load i32, ptr %20, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %290, i64 noundef %292, i32 noundef %293)
  br label %298

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

296:                                              ; preds = %114
  %297 = load ptr, ptr %9, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_out_of_range0x5Babi0x3Av150070x5D0x28char0x20const0x2A0x29(ptr noundef %297)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

298:                                              ; preds = %244
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  ret void
}

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { "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: nounwind uwtable
declare dso_local i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #3

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

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

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

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

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

; 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) local_unnamed_addr #0 {
  %9 = sub i32 2147483630, %2
  %.not = icmp ult i32 %9, %3
  br i1 %.not, label %60, label %10

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

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

26:                                               ; preds = %17, %10
  %.0 = phi i32 [ %24, %17 ], [ 2147483631, %10 ]
  %27 = icmp slt i32 %14, 0
  %28 = select i1 %27, i32 %15, i32 %1
  %29 = shl nuw i32 %.0, 1
  %30 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %29)
  %.not172 = icmp eq i32 %5, 0
  br i1 %.not172, label %34, label %31

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

34:                                               ; preds = %31, %26
  %.not173 = icmp eq i32 %6, 0
  br i1 %.not173, label %40, label %35

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

40:                                               ; preds = %35, %34
  %.not174 = icmp eq i32 %4, %5
  br i1 %.not174, label %50, label %41

41:                                               ; preds = %40
  %42 = sub i32 %4, %5
  %43 = shl i32 %5, 1
  %44 = add i32 %6, %5
  %45 = shl i32 %44, 1
  %46 = add i32 %45, %30
  %47 = add i32 %28, %43
  %48 = shl i32 %42, 1
  %49 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %46, i32 noundef %47, i32 noundef %48) #5
  br label %50

50:                                               ; preds = %41, %40
  %.not175 = icmp eq i32 %2, 4
  br i1 %.not175, label %52, label %51

51:                                               ; preds = %50
  tail call void @w2c_hermes_dlfree(ptr noundef %0, i32 noundef %28) #5
  br label %52

52:                                               ; preds = %51, %50
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %12, i32 noundef %30)
  %53 = or disjoint i32 %.0, -2147483648
  %54 = add nuw nsw i64 %12, 8
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %54, i32 noundef %53)
  %55 = add i32 %6, %4
  %56 = add nuw nsw i64 %12, 4
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %56, i32 noundef %55)
  %57 = shl i32 %55, 1
  %58 = add i32 %30, %57
  %59 = zext i32 %58 to i64
  tail call void @i32_store16(ptr noundef nonnull %11, i64 noundef %59, i32 noundef 0)
  ret void

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

61:                                               ; preds = %17
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_out_of_range0x5Babi0x3Av150070x5D0x28char0x20const0x2A0x29(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 = { 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 = { 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 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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass