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

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

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

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

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_abort(ptr noundef) #3

declare void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AStringKind0x3A0x3AEntry0x260x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Chermes0x3A0x3AStringKind0x3A0x3AEntry0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3AStringKind0x3A0x3AEntry0x3E0x3E0x3A0x3Aemplace_back0x3Chermes0x3A0x3AStringKind0x3A0x3AKind0x260x3E0x28hermes0x3A0x3AStringKind0x3A0x3AKind0x260x29(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
  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
  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
  %18 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %18, ptr %13, align 4, !tbaa !9
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.w2c_hermes, ptr %19, i32 0, i32 6
  %21 = load i32, ptr %13, align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = add i64 %22, 4
  %24 = call i32 @i32_load(ptr noundef %20, i64 noundef %23)
  store i32 %24, ptr %13, align 4, !tbaa !9
  %25 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %25, ptr %7, align 4, !tbaa !9
  %26 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %26, ptr %14, align 4, !tbaa !9
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 6
  %29 = load i32, ptr %14, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = add i64 %30, 8
  %32 = call i32 @i32_load(ptr noundef %28, i64 noundef %31)
  store i32 %32, ptr %14, align 4, !tbaa !9
  %33 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %33, ptr %8, align 4, !tbaa !9
  %34 = load i32, ptr %13, align 4, !tbaa !9
  %35 = load i32, ptr %14, align 4, !tbaa !9
  %36 = icmp ult i32 %34, %35
  %37 = zext i1 %36 to i32
  store i32 %37, ptr %13, align 4, !tbaa !9
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %77

40:                                               ; preds = %3
  %41 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %41, ptr %13, align 4, !tbaa !9
  %42 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %42, ptr %14, align 4, !tbaa !9
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.w2c_hermes, ptr %43, i32 0, i32 6
  %45 = load i32, ptr %14, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = call i32 @i32_load(ptr noundef %44, i64 noundef %46)
  store i32 %47, ptr %14, align 4, !tbaa !9
  %48 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %48, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %49 = load i32, ptr %15, align 4, !tbaa !9
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = or i32 %50, %49
  store i32 %51, ptr %14, align 4, !tbaa !9
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %13, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %53, i64 noundef %55, i32 noundef %56)
  %57 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %57, ptr %13, align 4, !tbaa !9
  store i32 2147483647, ptr %14, align 4, !tbaa !9
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = and i32 %59, %58
  store i32 %60, ptr %13, align 4, !tbaa !9
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %40
  br label %271

64:                                               ; preds = %40
  %65 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %65, ptr %13, align 4, !tbaa !9
  %66 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %66, ptr %14, align 4, !tbaa !9
  store i32 4, 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
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %13, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 4
  %76 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %72, i64 noundef %75, i32 noundef %76)
  br label %266

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

105:                                              ; preds = %77
  br label %289

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

127:                                              ; preds = %106
  %128 = load i32, ptr %14, align 4, !tbaa !9
  br label %131

129:                                              ; preds = %106
  %130 = load i32, ptr %15, align 4, !tbaa !9
  br label %131

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

140:                                              ; preds = %131
  %141 = load i32, ptr %13, align 4, !tbaa !9
  br label %144

142:                                              ; preds = %131
  %143 = load i32, ptr %14, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %142, %140
  %145 = phi i32 [ %141, %140 ], [ %143, %142 ]
  store i32 %145, ptr %13, align 4, !tbaa !9
  %146 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %146, ptr %8, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %167

149:                                              ; preds = %144
  %150 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %150, ptr %13, align 4, !tbaa !9
  store i32 1073741824, ptr %14, align 4, !tbaa !9
  %151 = load i32, ptr %13, align 4, !tbaa !9
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = icmp uge i32 %151, %152
  %154 = zext i1 %153 to i32
  store i32 %154, ptr %13, align 4, !tbaa !9
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %149
  br label %291

158:                                              ; preds = %149
  %159 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %159, ptr %13, align 4, !tbaa !9
  store i32 2, ptr %14, align 4, !tbaa !9
  %160 = load i32, ptr %14, align 4, !tbaa !9
  %161 = and i32 %160, 31
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = shl i32 %162, %161
  store i32 %163, ptr %13, align 4, !tbaa !9
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = load i32, ptr %13, align 4, !tbaa !9
  %166 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %164, i32 noundef %165)
  store i32 %166, ptr %13, align 4, !tbaa !9
  br label %168

167:                                              ; preds = %144
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %167, %158
  %169 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %169, ptr %7, align 4, !tbaa !9
  %170 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %170, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %171 = load i32, ptr %15, align 4, !tbaa !9
  %172 = and i32 %171, 31
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = shl i32 %173, %172
  store i32 %174, ptr %14, align 4, !tbaa !9
  %175 = load i32, ptr %14, align 4, !tbaa !9
  %176 = load i32, ptr %13, align 4, !tbaa !9
  %177 = add i32 %176, %175
  store i32 %177, ptr %13, align 4, !tbaa !9
  %178 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %178, ptr %10, align 4, !tbaa !9
  %179 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %179, ptr %14, align 4, !tbaa !9
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.w2c_hermes, ptr %180, i32 0, i32 6
  %182 = load i32, ptr %14, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = call i32 @i32_load(ptr noundef %181, i64 noundef %183)
  store i32 %184, ptr %14, align 4, !tbaa !9
  %185 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %185, ptr %6, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %186 = load i32, ptr %15, align 4, !tbaa !9
  %187 = load i32, ptr %14, align 4, !tbaa !9
  %188 = or i32 %187, %186
  store i32 %188, ptr %14, align 4, !tbaa !9
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.w2c_hermes, ptr %189, i32 0, i32 6
  %191 = load i32, ptr %13, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %190, i64 noundef %192, i32 noundef %193)
  %194 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %194, ptr %13, align 4, !tbaa !9
  store i32 2147483647, ptr %14, align 4, !tbaa !9
  %195 = load i32, ptr %14, align 4, !tbaa !9
  %196 = load i32, ptr %13, align 4, !tbaa !9
  %197 = and i32 %196, %195
  store i32 %197, ptr %13, align 4, !tbaa !9
  %198 = load i32, ptr %13, align 4, !tbaa !9
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %200, label %201

200:                                              ; preds = %168
  br label %293

201:                                              ; preds = %168
  %202 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %202, ptr %13, align 4, !tbaa !9
  %203 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %203, ptr %14, align 4, !tbaa !9
  %204 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %204, ptr %15, align 4, !tbaa !9
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = load i32, ptr %14, align 4, !tbaa !9
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = call i32 @w2c_hermes_memmove(ptr noundef %205, i32 noundef %206, i32 noundef %207, i32 noundef %208)
  store i32 %209, ptr %13, align 4, !tbaa !9
  %210 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %210, ptr %6, align 4, !tbaa !9
  %211 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %211, ptr %13, align 4, !tbaa !9
  %212 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %212, ptr %14, align 4, !tbaa !9
  store i32 4, ptr %15, align 4, !tbaa !9
  %213 = load i32, ptr %15, align 4, !tbaa !9
  %214 = load i32, ptr %14, align 4, !tbaa !9
  %215 = add i32 %214, %213
  store i32 %215, ptr %14, align 4, !tbaa !9
  %216 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %216, ptr %7, align 4, !tbaa !9
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.w2c_hermes, ptr %217, i32 0, i32 6
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = add i64 %220, 4
  %222 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %218, i64 noundef %221, i32 noundef %222)
  %223 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %223, ptr %13, align 4, !tbaa !9
  %224 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %224, ptr %14, align 4, !tbaa !9
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.w2c_hermes, ptr %225, i32 0, i32 6
  %227 = load i32, ptr %13, align 4, !tbaa !9
  %228 = zext i32 %227 to i64
  %229 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %226, i64 noundef %228, i32 noundef %229)
  %230 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %230, ptr %13, align 4, !tbaa !9
  %231 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %231, ptr %14, align 4, !tbaa !9
  %232 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %232, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %16, align 4, !tbaa !9
  %233 = load i32, ptr %16, align 4, !tbaa !9
  %234 = and i32 %233, 31
  %235 = load i32, ptr %15, align 4, !tbaa !9
  %236 = shl i32 %235, %234
  store i32 %236, ptr %15, align 4, !tbaa !9
  %237 = load i32, ptr %15, align 4, !tbaa !9
  %238 = load i32, ptr %14, align 4, !tbaa !9
  %239 = add i32 %238, %237
  store i32 %239, ptr %14, align 4, !tbaa !9
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.w2c_hermes, ptr %240, i32 0, i32 6
  %242 = load i32, ptr %13, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = add i64 %243, 8
  %245 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %241, i64 noundef %244, i32 noundef %245)
  %246 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %246, ptr %13, align 4, !tbaa !9
  %247 = load i32, ptr %13, align 4, !tbaa !9
  %248 = icmp ne i32 %247, 0
  %249 = xor i1 %248, true
  %250 = zext i1 %249 to i32
  store i32 %250, ptr %13, align 4, !tbaa !9
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %254

253:                                              ; preds = %201
  br label %266

254:                                              ; preds = %201
  %255 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %255, ptr %13, align 4, !tbaa !9
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %256, i32 noundef %257)
  %258 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %258, ptr %13, align 4, !tbaa !9
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.w2c_hermes, ptr %259, i32 0, i32 6
  %261 = load i32, ptr %13, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  %263 = add i64 %262, 4
  %264 = call i32 @i32_load(ptr noundef %260, i64 noundef %263)
  store i32 %264, ptr %13, align 4, !tbaa !9
  %265 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %265, ptr %7, align 4, !tbaa !9
  br label %266

266:                                              ; preds = %254, %253, %64
  %267 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %267, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = load i32, ptr %13, align 4, !tbaa !9
  %270 = sub i32 %269, %268
  store i32 %270, ptr %13, align 4, !tbaa !9
  br label %311

271:                                              ; preds = %63
  store i32 0, ptr %13, align 4, !tbaa !9
  %272 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %272, ptr %5, align 4, !tbaa !9
  store i32 197300, ptr %14, align 4, !tbaa !9
  %273 = load i32, ptr %14, align 4, !tbaa !9
  %274 = load i32, ptr %13, align 4, !tbaa !9
  %275 = add i32 %274, %273
  store i32 %275, ptr %13, align 4, !tbaa !9
  %276 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %276, ptr %14, align 4, !tbaa !9
  store i32 61722, ptr %15, align 4, !tbaa !9
  %277 = load i32, ptr %15, align 4, !tbaa !9
  %278 = load i32, ptr %14, align 4, !tbaa !9
  %279 = add i32 %278, %277
  store i32 %279, ptr %14, align 4, !tbaa !9
  store i32 14, ptr %15, align 4, !tbaa !9
  %280 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %280, ptr %16, align 4, !tbaa !9
  store i32 17647, ptr %17, align 4, !tbaa !9
  %281 = load i32, ptr %17, align 4, !tbaa !9
  %282 = load i32, ptr %16, align 4, !tbaa !9
  %283 = add i32 %282, %281
  store i32 %283, ptr %16, align 4, !tbaa !9
  %284 = load ptr, ptr %4, align 8, !tbaa !5
  %285 = load i32, ptr %13, align 4, !tbaa !9
  %286 = load i32, ptr %14, align 4, !tbaa !9
  %287 = load i32, ptr %15, align 4, !tbaa !9
  %288 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %284, i32 noundef %285, i32 noundef %286, i32 noundef %287, i32 noundef %288)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

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

293:                                              ; preds = %200
  store i32 0, ptr %13, align 4, !tbaa !9
  %294 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %294, ptr %5, align 4, !tbaa !9
  store i32 197300, ptr %14, align 4, !tbaa !9
  %295 = load i32, ptr %14, align 4, !tbaa !9
  %296 = load i32, ptr %13, align 4, !tbaa !9
  %297 = add i32 %296, %295
  store i32 %297, ptr %13, align 4, !tbaa !9
  %298 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %298, ptr %14, align 4, !tbaa !9
  store i32 61722, ptr %15, align 4, !tbaa !9
  %299 = load i32, ptr %15, align 4, !tbaa !9
  %300 = load i32, ptr %14, align 4, !tbaa !9
  %301 = add i32 %300, %299
  store i32 %301, ptr %14, align 4, !tbaa !9
  store i32 14, ptr %15, align 4, !tbaa !9
  %302 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %302, ptr %16, align 4, !tbaa !9
  store i32 17647, ptr %17, align 4, !tbaa !9
  %303 = load i32, ptr %17, align 4, !tbaa !9
  %304 = load i32, ptr %16, align 4, !tbaa !9
  %305 = add i32 %304, %303
  store i32 %305, ptr %16, align 4, !tbaa !9
  %306 = load ptr, ptr %4, align 8, !tbaa !5
  %307 = load i32, ptr %13, align 4, !tbaa !9
  %308 = load i32, ptr %14, align 4, !tbaa !9
  %309 = load i32, ptr %15, align 4, !tbaa !9
  %310 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %306, i32 noundef %307, i32 noundef %308, i32 noundef %309, i32 noundef %310)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

311:                                              ; preds = %266
  %312 = load i32, ptr %13, align 4, !tbaa !9
  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 i32 %312
}

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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

declare void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AStringKind0x3A0x3AEntry0x260x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Chermes0x3A0x3AStringKind0x3A0x3AEntry0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3AStringKind0x3A0x3AEntry0x3E0x3E0x3A0x3Aemplace_back0x3Chermes0x3A0x3AStringKind0x3A0x3AKind0x260x3E0x28hermes0x3A0x3AStringKind0x3A0x3AKind0x260x29(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, 4
  %7 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %8 = add nuw nsw i64 %5, 8
  %9 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %8)
  %10 = icmp ult i32 %7, %9
  br i1 %10, label %11, label %19

11:                                               ; preds = %3
  %12 = zext i32 %2 to i64
  %13 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %12)
  %14 = or i32 %13, 1
  %15 = zext i32 %7 to i64
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %15, i32 noundef %14)
  %16 = and i32 %13, 2147483647
  %.not184 = icmp eq i32 %16, 0
  br i1 %.not184, label %17, label %53

17:                                               ; preds = %11
  %18 = add i32 %7, 4
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef %18)
  br label %52

19:                                               ; preds = %3
  %20 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  %21 = sub i32 %7, %20
  %22 = ashr i32 %21, 2
  %23 = add nsw i32 %22, 1
  %24 = icmp ugt i32 %23, 1073741823
  br i1 %24, label %54, label %25

25:                                               ; preds = %19
  %26 = sub i32 %9, %20
  %27 = ashr i32 %26, 1
  %28 = tail call i32 @llvm.umax.i32(i32 %23, i32 %27)
  %29 = icmp ugt i32 %26, 2147483643
  %30 = select i1 %29, i32 1073741823, i32 %28
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %36, label %31

31:                                               ; preds = %25
  %32 = icmp ugt i32 %30, 1073741823
  br i1 %32, label %55, label %33

33:                                               ; preds = %31
  %34 = shl nuw i32 %30, 2
  %35 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %34) #5
  br label %36

36:                                               ; preds = %25, %33
  %.0 = phi i32 [ %35, %33 ], [ 0, %25 ]
  %37 = and i32 %21, -4
  %38 = add i32 %.0, %37
  %39 = zext i32 %2 to i64
  %40 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %39)
  %41 = or i32 %40, 1
  %42 = zext i32 %38 to i64
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %42, i32 noundef %41)
  %43 = and i32 %40, 2147483647
  %.not182 = icmp eq i32 %43, 0
  br i1 %.not182, label %44, label %56

44:                                               ; preds = %36
  %45 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %.0, i32 noundef %20, i32 noundef %21) #5
  %46 = add i32 %38, 4
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef %46)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %5, i32 noundef %45)
  %47 = shl nuw i32 %30, 2
  %48 = add i32 %45, %47
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %8, i32 noundef %48)
  %.not183 = icmp eq i32 %20, 0
  br i1 %.not183, label %52, label %49

49:                                               ; preds = %44
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %20) #5
  %50 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %51 = add i32 %50, -4
  br label %52

52:                                               ; preds = %44, %49, %17
  %.0177 = phi i32 [ %7, %17 ], [ %38, %44 ], [ %51, %49 ]
  ret i32 %.0177

53:                                               ; preds = %11
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 197300, i32 noundef 61722, i32 noundef 14, i32 noundef 17647) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

55:                                               ; preds = %31
  tail call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef %0) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

56:                                               ; preds = %36
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 197300, i32 noundef 61722, i32 noundef 14, i32 noundef 17647) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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