; 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 i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Chermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %19 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %19, ptr %14, align 4, !tbaa !9
  %20 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %20, ptr %15, align 4, !tbaa !9
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.w2c_hermes, ptr %21, i32 0, i32 6
  %23 = load i32, ptr %15, align 4, !tbaa !9
  %24 = zext i32 %23 to i64
  %25 = add i64 %24, 8
  %26 = call i32 @i32_load(ptr noundef %22, i64 noundef %25)
  store i32 %26, ptr %15, align 4, !tbaa !9
  %27 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %27, ptr %8, align 4, !tbaa !9
  %28 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %28, ptr %16, align 4, !tbaa !9
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %16, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = add i64 %32, 4
  %34 = call i32 @i32_load(ptr noundef %30, i64 noundef %33)
  store i32 %34, ptr %16, align 4, !tbaa !9
  %35 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %35, ptr %7, align 4, !tbaa !9
  %36 = load i32, ptr %16, align 4, !tbaa !9
  %37 = load i32, ptr %15, align 4, !tbaa !9
  %38 = sub i32 %37, %36
  store i32 %38, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %16, align 4, !tbaa !9
  %39 = load i32, ptr %15, align 4, !tbaa !9
  %40 = load i32, ptr %16, align 4, !tbaa !9
  %41 = and i32 %40, 31
  %42 = ashr i32 %39, %41
  store i32 %42, ptr %15, align 4, !tbaa !9
  %43 = load i32, ptr %14, align 4, !tbaa !9
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = icmp ule i32 %43, %44
  %46 = zext i1 %45 to i32
  store i32 %46, ptr %14, align 4, !tbaa !9
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %80

49:                                               ; preds = %3
  %50 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %50, ptr %14, align 4, !tbaa !9
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %71

53:                                               ; preds = %49
  %54 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %54, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %55 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %55, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %56 = load i32, ptr %17, align 4, !tbaa !9
  %57 = and i32 %56, 31
  %58 = load i32, ptr %16, align 4, !tbaa !9
  %59 = shl i32 %58, %57
  store i32 %59, ptr %16, align 4, !tbaa !9
  %60 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %60, ptr %6, align 4, !tbaa !9
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = load i32, ptr %15, align 4, !tbaa !9
  %64 = load i32, ptr %16, align 4, !tbaa !9
  %65 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %61, i32 noundef %62, i32 noundef %63, i32 noundef %64)
  store i32 %65, ptr %14, align 4, !tbaa !9
  %66 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %66, ptr %15, align 4, !tbaa !9
  %67 = load i32, ptr %15, align 4, !tbaa !9
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = add i32 %68, %67
  store i32 %69, ptr %14, align 4, !tbaa !9
  %70 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %70, ptr %7, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %53, %49
  %72 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %72, ptr %14, align 4, !tbaa !9
  %73 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %73, ptr %15, align 4, !tbaa !9
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.w2c_hermes, ptr %74, i32 0, i32 6
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = add i64 %77, 4
  %79 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %75, i64 noundef %78, i32 noundef %79)
  br label %249

80:                                               ; preds = %3
  %81 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %81, ptr %14, align 4, !tbaa !9
  %82 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %82, ptr %15, align 4, !tbaa !9
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.w2c_hermes, ptr %83, i32 0, i32 6
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = call i32 @i32_load(ptr noundef %84, i64 noundef %86)
  store i32 %87, ptr %15, align 4, !tbaa !9
  %88 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %88, ptr %9, align 4, !tbaa !9
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = sub i32 %90, %89
  store i32 %91, ptr %14, align 4, !tbaa !9
  %92 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %92, ptr %11, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = and i32 %94, 31
  %96 = ashr i32 %93, %95
  store i32 %96, ptr %14, align 4, !tbaa !9
  %97 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %97, ptr %12, align 4, !tbaa !9
  %98 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %98, ptr %15, align 4, !tbaa !9
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = add i32 %100, %99
  store i32 %101, ptr %14, align 4, !tbaa !9
  %102 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %102, ptr %10, align 4, !tbaa !9
  store i32 1073741824, ptr %15, align 4, !tbaa !9
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = icmp ult i32 %103, %104
  %106 = zext i1 %105 to i32
  store i32 %106, ptr %14, align 4, !tbaa !9
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %245

109:                                              ; preds = %80
  store i32 0, ptr %14, align 4, !tbaa !9
  %110 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %110, ptr %7, align 4, !tbaa !9
  store i32 1073741823, ptr %14, align 4, !tbaa !9
  %111 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %111, ptr %15, align 4, !tbaa !9
  %112 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %112, ptr %16, align 4, !tbaa !9
  %113 = load i32, ptr %16, align 4, !tbaa !9
  %114 = load i32, ptr %15, align 4, !tbaa !9
  %115 = sub i32 %114, %113
  store i32 %115, ptr %15, align 4, !tbaa !9
  %116 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %116, ptr %8, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %117 = load i32, ptr %15, align 4, !tbaa !9
  %118 = load i32, ptr %16, align 4, !tbaa !9
  %119 = and i32 %118, 31
  %120 = ashr i32 %117, %119
  store i32 %120, ptr %15, align 4, !tbaa !9
  %121 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %121, ptr %13, align 4, !tbaa !9
  %122 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %122, ptr %16, align 4, !tbaa !9
  %123 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %123, ptr %17, align 4, !tbaa !9
  %124 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %124, ptr %18, align 4, !tbaa !9
  %125 = load i32, ptr %17, align 4, !tbaa !9
  %126 = load i32, ptr %18, align 4, !tbaa !9
  %127 = icmp ult i32 %125, %126
  %128 = zext i1 %127 to i32
  store i32 %128, ptr %17, align 4, !tbaa !9
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %133

131:                                              ; preds = %109
  %132 = load i32, ptr %15, align 4, !tbaa !9
  br label %135

133:                                              ; preds = %109
  %134 = load i32, ptr %16, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %133, %131
  %136 = phi i32 [ %132, %131 ], [ %134, %133 ]
  store i32 %136, ptr %15, align 4, !tbaa !9
  %137 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %137, ptr %16, align 4, !tbaa !9
  store i32 2147483644, ptr %17, align 4, !tbaa !9
  %138 = load i32, ptr %16, align 4, !tbaa !9
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = icmp uge i32 %138, %139
  %141 = zext i1 %140 to i32
  store i32 %141, ptr %16, align 4, !tbaa !9
  %142 = load i32, ptr %16, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %146

144:                                              ; preds = %135
  %145 = load i32, ptr %14, align 4, !tbaa !9
  br label %148

146:                                              ; preds = %135
  %147 = load i32, ptr %15, align 4, !tbaa !9
  br label %148

148:                                              ; preds = %146, %144
  %149 = phi i32 [ %145, %144 ], [ %147, %146 ]
  store i32 %149, ptr %14, align 4, !tbaa !9
  %150 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %150, ptr %8, align 4, !tbaa !9
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %172

153:                                              ; preds = %148
  %154 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %154, ptr %14, align 4, !tbaa !9
  store i32 1073741824, ptr %15, align 4, !tbaa !9
  %155 = load i32, ptr %14, align 4, !tbaa !9
  %156 = load i32, ptr %15, align 4, !tbaa !9
  %157 = icmp uge i32 %155, %156
  %158 = zext i1 %157 to i32
  store i32 %158, ptr %14, align 4, !tbaa !9
  %159 = load i32, ptr %14, align 4, !tbaa !9
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %162

161:                                              ; preds = %153
  br label %247

162:                                              ; preds = %153
  %163 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %163, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %164 = load i32, ptr %15, align 4, !tbaa !9
  %165 = and i32 %164, 31
  %166 = load i32, ptr %14, align 4, !tbaa !9
  %167 = shl i32 %166, %165
  store i32 %167, ptr %14, align 4, !tbaa !9
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %168, i32 noundef %169)
  store i32 %170, ptr %14, align 4, !tbaa !9
  %171 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %171, ptr %7, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %162, %148
  %173 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %173, ptr %14, align 4, !tbaa !9
  %174 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %174, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %16, align 4, !tbaa !9
  %175 = load i32, ptr %16, align 4, !tbaa !9
  %176 = and i32 %175, 31
  %177 = load i32, ptr %15, align 4, !tbaa !9
  %178 = shl i32 %177, %176
  store i32 %178, ptr %15, align 4, !tbaa !9
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = load i32, ptr %14, align 4, !tbaa !9
  %181 = add i32 %180, %179
  store i32 %181, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %182 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %182, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = and i32 %183, 31
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = shl i32 %185, %184
  store i32 %186, ptr %16, align 4, !tbaa !9
  %187 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %187, ptr %6, align 4, !tbaa !9
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = load i32, ptr %14, align 4, !tbaa !9
  %190 = load i32, ptr %15, align 4, !tbaa !9
  %191 = load i32, ptr %16, align 4, !tbaa !9
  %192 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %188, i32 noundef %189, i32 noundef %190, i32 noundef %191)
  store i32 %192, ptr %14, align 4, !tbaa !9
  %193 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %193, ptr %10, align 4, !tbaa !9
  %194 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %194, ptr %14, align 4, !tbaa !9
  %195 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %195, ptr %15, align 4, !tbaa !9
  %196 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %196, ptr %16, align 4, !tbaa !9
  %197 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %197, ptr %17, align 4, !tbaa !9
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = load i32, ptr %15, align 4, !tbaa !9
  %200 = load i32, ptr %16, align 4, !tbaa !9
  %201 = load i32, ptr %17, align 4, !tbaa !9
  %202 = call i32 @w2c_hermes_memmove(ptr noundef %198, i32 noundef %199, i32 noundef %200, i32 noundef %201)
  store i32 %202, ptr %15, align 4, !tbaa !9
  %203 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %203, ptr %7, align 4, !tbaa !9
  %204 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %204, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %205 = load i32, ptr %17, align 4, !tbaa !9
  %206 = and i32 %205, 31
  %207 = load i32, ptr %16, align 4, !tbaa !9
  %208 = shl i32 %207, %206
  store i32 %208, ptr %16, align 4, !tbaa !9
  %209 = load i32, ptr %16, align 4, !tbaa !9
  %210 = load i32, ptr %15, align 4, !tbaa !9
  %211 = add i32 %210, %209
  store i32 %211, ptr %15, align 4, !tbaa !9
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %14, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = add i64 %215, 8
  %217 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %213, i64 noundef %216, i32 noundef %217)
  %218 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %218, ptr %14, align 4, !tbaa !9
  %219 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %219, ptr %15, align 4, !tbaa !9
  %220 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %220, ptr %16, align 4, !tbaa !9
  %221 = load i32, ptr %16, align 4, !tbaa !9
  %222 = load i32, ptr %15, align 4, !tbaa !9
  %223 = add i32 %222, %221
  store i32 %223, ptr %15, align 4, !tbaa !9
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.w2c_hermes, ptr %224, i32 0, i32 6
  %226 = load i32, ptr %14, align 4, !tbaa !9
  %227 = zext i32 %226 to i64
  %228 = add i64 %227, 4
  %229 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %225, i64 noundef %228, i32 noundef %229)
  %230 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %230, ptr %14, align 4, !tbaa !9
  %231 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %231, ptr %15, align 4, !tbaa !9
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.w2c_hermes, ptr %232, i32 0, i32 6
  %234 = load i32, ptr %14, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %233, i64 noundef %235, i32 noundef %236)
  %237 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %237, ptr %14, align 4, !tbaa !9
  %238 = load i32, ptr %14, align 4, !tbaa !9
  %239 = icmp ne i32 %238, 0
  br i1 %239, label %240, label %244

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

244:                                              ; preds = %240, %172
  br label %249

245:                                              ; preds = %80
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %246)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

247:                                              ; preds = %161
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef %248)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

249:                                              ; preds = %244, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #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 i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Chermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %1 to i64
  %6 = add nuw nsw i64 %5, 8
  %7 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %8 = add nuw nsw i64 %5, 4
  %9 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %8)
  %10 = sub i32 %7, %9
  %11 = ashr i32 %10, 2
  %.not = icmp ult i32 %11, %2
  br i1 %.not, label %18, label %12

12:                                               ; preds = %3
  %.not146 = icmp eq i32 %2, 0
  br i1 %.not146, label %17, label %13

13:                                               ; preds = %12
  %14 = shl i32 %2, 2
  %15 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef %0, i32 noundef %9, i32 noundef 0, i32 noundef %14) #5
  %16 = add i32 %15, %14
  br label %17

17:                                               ; preds = %13, %12
  %.0 = phi i32 [ %16, %13 ], [ %9, %12 ]
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %8, i32 noundef %.0)
  br label %45

18:                                               ; preds = %3
  %19 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  %20 = sub i32 %9, %19
  %21 = ashr i32 %20, 2
  %22 = add i32 %21, %2
  %23 = icmp ult i32 %22, 1073741824
  br i1 %23, label %24, label %43

24:                                               ; preds = %18
  %25 = sub i32 %7, %19
  %26 = ashr i32 %25, 1
  %27 = tail call i32 @llvm.umax.i32(i32 %22, i32 %26)
  %28 = icmp ugt i32 %25, 2147483643
  %29 = select i1 %28, i32 1073741823, i32 %27
  %.not144 = icmp eq i32 %29, 0
  br i1 %.not144, label %._crit_edge, label %30

30:                                               ; preds = %24
  %31 = icmp ugt i32 %29, 1073741823
  br i1 %31, label %44, label %32

32:                                               ; preds = %30
  %33 = shl nuw i32 %29, 2
  %34 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %33) #5
  br label %._crit_edge

._crit_edge:                                      ; preds = %24, %32
  %.pre-phi = phi i32 [ %33, %32 ], [ 0, %24 ]
  %.1 = phi i32 [ %34, %32 ], [ 0, %24 ]
  %35 = and i32 %20, -4
  %36 = add i32 %.1, %35
  %37 = shl i32 %2, 2
  %38 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef %0, i32 noundef %36, i32 noundef 0, i32 noundef %37) #5
  %39 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %.1, i32 noundef %19, i32 noundef %20) #5
  %40 = add i32 %39, %.pre-phi
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef %40)
  %41 = add i32 %38, %37
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %8, i32 noundef %41)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %5, i32 noundef %39)
  %.not145 = icmp eq i32 %19, 0
  br i1 %.not145, label %45, label %42

42:                                               ; preds = %._crit_edge
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %19) #5
  br label %45

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

44:                                               ; preds = %30
  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

45:                                               ; preds = %._crit_edge, %42, %17
  ret void
}

; 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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass