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

; 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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) #3

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ADynamicStringPrimitive0x3Cchar16_t0x2C0x20false0x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3ADynamicStringPrimitive0x3Cchar16_t0x2C0x20false0x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2900x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x2C0x20llvh0x3A0x3AArrayRef0x3Cchar16_t0x3E0x260x3E0x28unsigned0x20int0x2C0x20llvh0x3A0x3AArrayRef0x3Cchar16_t0x3E0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #4 {
  %5 = alloca ptr, align 8
  %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 i64, align 8
  %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 i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, 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 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  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 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %20 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %20, ptr %12, align 4, !tbaa !9
  store i32 7, ptr %13, align 4, !tbaa !9
  %21 = load i32, ptr %13, align 4, !tbaa !9
  %22 = load i32, ptr %12, align 4, !tbaa !9
  %23 = and i32 %22, %21
  store i32 %23, ptr %12, align 4, !tbaa !9
  %24 = load i32, ptr %12, align 4, !tbaa !9
  %25 = icmp ne i32 %24, 0
  %26 = xor i1 %25, true
  %27 = zext i1 %26 to i32
  store i32 %27, ptr %12, align 4, !tbaa !9
  %28 = load i32, ptr %12, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %207

30:                                               ; preds = %4
  %31 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %31, ptr %12, align 4, !tbaa !9
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %12, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = add i64 %35, 504
  %37 = call i32 @i32_load(ptr noundef %33, i64 noundef %36)
  store i32 %37, ptr %12, align 4, !tbaa !9
  %38 = load i32, ptr %12, align 4, !tbaa !9
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %30
  br label %225

41:                                               ; preds = %30
  %42 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %42, ptr %12, align 4, !tbaa !9
  store i32 15, ptr %13, align 4, !tbaa !9
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = load i32, ptr %13, align 4, !tbaa !9
  %45 = icmp ule i32 %43, %44
  %46 = zext i1 %45 to i32
  store i32 %46, ptr %12, align 4, !tbaa !9
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %41
  br label %243

50:                                               ; preds = %41
  %51 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %51, ptr %12, align 4, !tbaa !9
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = add i64 %55, 588
  %57 = call i32 @i32_load(ptr noundef %53, i64 noundef %56)
  store i32 %57, ptr %12, align 4, !tbaa !9
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = icmp ne i32 %58, 0
  %60 = xor i1 %59, true
  %61 = zext i1 %60 to i32
  store i32 %61, ptr %12, align 4, !tbaa !9
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %50
  br label %261

65:                                               ; preds = %50
  %66 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %66, ptr %12, align 4, !tbaa !9
  %67 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %67, ptr %13, align 4, !tbaa !9
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = add i64 %71, 600
  %73 = call i32 @i32_load(ptr noundef %69, i64 noundef %72)
  store i32 %73, ptr %13, align 4, !tbaa !9
  %74 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %74, ptr %14, align 4, !tbaa !9
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 596
  %80 = call i32 @i32_load(ptr noundef %76, i64 noundef %79)
  store i32 %80, ptr %14, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %81, ptr %9, align 4, !tbaa !9
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = sub i32 %83, %82
  store i32 %84, ptr %13, align 4, !tbaa !9
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = icmp ugt i32 %85, %86
  %88 = zext i1 %87 to i32
  store i32 %88, ptr %12, align 4, !tbaa !9
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %99

91:                                               ; preds = %65
  %92 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %92, ptr %12, align 4, !tbaa !9
  %93 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %93, ptr %13, align 4, !tbaa !9
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef %94, i32 noundef %95, i32 noundef %96)
  store i32 %97, ptr %12, align 4, !tbaa !9
  %98 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %98, ptr %9, align 4, !tbaa !9
  br label %118

99:                                               ; preds = %65
  %100 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %100, ptr %12, align 4, !tbaa !9
  %101 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %101, ptr %13, align 4, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %102, ptr %14, align 4, !tbaa !9
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = add i32 %104, %103
  store i32 %105, ptr %13, align 4, !tbaa !9
  %106 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %106, ptr %10, align 4, !tbaa !9
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.w2c_hermes, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = add i64 %110, 596
  %112 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %108, i64 noundef %111, i32 noundef %112)
  %113 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %113, ptr %12, align 4, !tbaa !9
  %114 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %114, ptr %13, align 4, !tbaa !9
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AcheckUnwritten0x28char0x2A0x2C0x20char0x2A0x29(ptr noundef %115, i32 noundef %116, i32 noundef %117)
  br label %118

118:                                              ; preds = %99, %91
  %119 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %119, ptr %12, align 4, !tbaa !9
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = call i64 @i64_load(ptr noundef %121, i64 noundef %123)
  store i64 %124, ptr %17, align 8, !tbaa !11
  %125 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %125, ptr %11, align 8, !tbaa !11
  %126 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %126, ptr %12, align 4, !tbaa !9
  store i32 52753, ptr %13, align 4, !tbaa !9
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.w2c_hermes, ptr %127, i32 0, i32 6
  %129 = load i32, ptr %12, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = add i64 %130, 4
  %132 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %128, i64 noundef %131, i32 noundef %132)
  %133 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %133, ptr %12, align 4, !tbaa !9
  %134 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %134, ptr %18, align 8, !tbaa !11
  store i64 32, ptr %19, align 8, !tbaa !11
  %135 = load i64, ptr %19, align 8, !tbaa !11
  %136 = and i64 %135, 63
  %137 = load i64, ptr %18, align 8, !tbaa !11
  %138 = lshr i64 %137, %136
  store i64 %138, ptr %18, align 8, !tbaa !11
  %139 = load i64, ptr %18, align 8, !tbaa !11
  %140 = trunc i64 %139 to i32
  store i32 %140, ptr %13, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %141, ptr %6, align 4, !tbaa !9
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.w2c_hermes, ptr %142, i32 0, i32 6
  %144 = load i32, ptr %12, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = add i64 %145, 12
  %147 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %143, i64 noundef %146, i32 noundef %147)
  %148 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %148, ptr %12, align 4, !tbaa !9
  store i32 65536, ptr %13, align 4, !tbaa !9
  %149 = load i32, ptr %12, align 4, !tbaa !9
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = icmp uge i32 %149, %150
  %152 = zext i1 %151 to i32
  store i32 %152, ptr %12, align 4, !tbaa !9
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %156

155:                                              ; preds = %118
  br label %279

156:                                              ; preds = %118
  %157 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %157, ptr %12, align 4, !tbaa !9
  %158 = load i32, ptr %12, align 4, !tbaa !9
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %178

160:                                              ; preds = %156
  %161 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %161, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = load i32, ptr %12, align 4, !tbaa !9
  %164 = add i32 %163, %162
  store i32 %164, ptr %12, align 4, !tbaa !9
  %165 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %165, ptr %18, align 8, !tbaa !11
  %166 = load i64, ptr %18, align 8, !tbaa !11
  %167 = trunc i64 %166 to i32
  store i32 %167, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %168, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = and i32 %169, 31
  %171 = load i32, ptr %14, align 4, !tbaa !9
  %172 = shl i32 %171, %170
  store i32 %172, ptr %14, align 4, !tbaa !9
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = load i32, ptr %12, align 4, !tbaa !9
  %175 = load i32, ptr %13, align 4, !tbaa !9
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = call i32 @w2c_hermes_memmove(ptr noundef %173, i32 noundef %174, i32 noundef %175, i32 noundef %176)
  store i32 %177, ptr %12, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %160, %156
  %179 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %179, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %180 = load i32, ptr %13, align 4, !tbaa !9
  %181 = load i32, ptr %12, align 4, !tbaa !9
  %182 = and i32 %181, %180
  store i32 %182, ptr %12, align 4, !tbaa !9
  %183 = load i32, ptr %12, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %186

185:                                              ; preds = %178
  br label %297

186:                                              ; preds = %178
  %187 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %187, ptr %12, align 4, !tbaa !9
  store i32 16777216, ptr %13, align 4, !tbaa !9
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = load i32, ptr %13, align 4, !tbaa !9
  %190 = icmp uge i32 %188, %189
  %191 = zext i1 %190 to i32
  store i32 %191, ptr %12, align 4, !tbaa !9
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %195

194:                                              ; preds = %186
  br label %315

195:                                              ; preds = %186
  %196 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %196, ptr %12, align 4, !tbaa !9
  %197 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %197, ptr %13, align 4, !tbaa !9
  store i32 50331648, ptr %14, align 4, !tbaa !9
  %198 = load i32, ptr %14, align 4, !tbaa !9
  %199 = load i32, ptr %13, align 4, !tbaa !9
  %200 = or i32 %199, %198
  store i32 %200, ptr %13, align 4, !tbaa !9
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.w2c_hermes, ptr %201, i32 0, i32 6
  %203 = load i32, ptr %12, align 4, !tbaa !9
  %204 = zext i32 %203 to i64
  %205 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %202, i64 noundef %204, i32 noundef %205)
  %206 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %206, ptr %12, align 4, !tbaa !9
  br label %333

207:                                              ; preds = %4
  store i32 0, ptr %12, align 4, !tbaa !9
  %208 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %208, ptr %7, align 4, !tbaa !9
  store i32 154937, ptr %13, align 4, !tbaa !9
  %209 = load i32, ptr %13, align 4, !tbaa !9
  %210 = load i32, ptr %12, align 4, !tbaa !9
  %211 = add i32 %210, %209
  store i32 %211, ptr %12, align 4, !tbaa !9
  %212 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %212, ptr %13, align 4, !tbaa !9
  store i32 86379, ptr %14, align 4, !tbaa !9
  %213 = load i32, ptr %14, align 4, !tbaa !9
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = add i32 %214, %213
  store i32 %215, ptr %13, align 4, !tbaa !9
  store i32 1090, ptr %14, align 4, !tbaa !9
  %216 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %216, ptr %15, align 4, !tbaa !9
  store i32 109843, ptr %16, align 4, !tbaa !9
  %217 = load i32, ptr %16, align 4, !tbaa !9
  %218 = load i32, ptr %15, align 4, !tbaa !9
  %219 = add i32 %218, %217
  store i32 %219, ptr %15, align 4, !tbaa !9
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = load i32, ptr %12, align 4, !tbaa !9
  %222 = load i32, ptr %13, align 4, !tbaa !9
  %223 = load i32, ptr %14, align 4, !tbaa !9
  %224 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %220, i32 noundef %221, i32 noundef %222, i32 noundef %223, i32 noundef %224)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

225:                                              ; preds = %40
  store i32 0, ptr %12, align 4, !tbaa !9
  %226 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %226, ptr %7, align 4, !tbaa !9
  store i32 189195, ptr %13, align 4, !tbaa !9
  %227 = load i32, ptr %13, align 4, !tbaa !9
  %228 = load i32, ptr %12, align 4, !tbaa !9
  %229 = add i32 %228, %227
  store i32 %229, ptr %12, align 4, !tbaa !9
  %230 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %230, ptr %13, align 4, !tbaa !9
  store i32 86379, ptr %14, align 4, !tbaa !9
  %231 = load i32, ptr %14, align 4, !tbaa !9
  %232 = load i32, ptr %13, align 4, !tbaa !9
  %233 = add i32 %232, %231
  store i32 %233, ptr %13, align 4, !tbaa !9
  store i32 1091, ptr %14, align 4, !tbaa !9
  %234 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %234, ptr %15, align 4, !tbaa !9
  store i32 109843, ptr %16, align 4, !tbaa !9
  %235 = load i32, ptr %16, align 4, !tbaa !9
  %236 = load i32, ptr %15, align 4, !tbaa !9
  %237 = add i32 %236, %235
  store i32 %237, ptr %15, align 4, !tbaa !9
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  %239 = load i32, ptr %12, align 4, !tbaa !9
  %240 = load i32, ptr %13, align 4, !tbaa !9
  %241 = load i32, ptr %14, align 4, !tbaa !9
  %242 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %238, i32 noundef %239, i32 noundef %240, i32 noundef %241, i32 noundef %242)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

243:                                              ; preds = %49
  store i32 0, ptr %12, align 4, !tbaa !9
  %244 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %244, ptr %7, align 4, !tbaa !9
  store i32 134747, ptr %13, align 4, !tbaa !9
  %245 = load i32, ptr %13, align 4, !tbaa !9
  %246 = load i32, ptr %12, align 4, !tbaa !9
  %247 = add i32 %246, %245
  store i32 %247, ptr %12, align 4, !tbaa !9
  %248 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %248, ptr %13, align 4, !tbaa !9
  store i32 86379, ptr %14, align 4, !tbaa !9
  %249 = load i32, ptr %14, align 4, !tbaa !9
  %250 = load i32, ptr %13, align 4, !tbaa !9
  %251 = add i32 %250, %249
  store i32 %251, ptr %13, align 4, !tbaa !9
  store i32 1109, ptr %14, align 4, !tbaa !9
  %252 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %252, ptr %15, align 4, !tbaa !9
  store i32 74688, ptr %16, align 4, !tbaa !9
  %253 = load i32, ptr %16, align 4, !tbaa !9
  %254 = load i32, ptr %15, align 4, !tbaa !9
  %255 = add i32 %254, %253
  store i32 %255, ptr %15, align 4, !tbaa !9
  %256 = load ptr, ptr %5, align 8, !tbaa !5
  %257 = load i32, ptr %12, align 4, !tbaa !9
  %258 = load i32, ptr %13, align 4, !tbaa !9
  %259 = load i32, ptr %14, align 4, !tbaa !9
  %260 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %256, i32 noundef %257, i32 noundef %258, i32 noundef %259, i32 noundef %260)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

261:                                              ; preds = %64
  store i32 0, ptr %12, align 4, !tbaa !9
  %262 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %262, ptr %7, align 4, !tbaa !9
  store i32 131267, ptr %13, align 4, !tbaa !9
  %263 = load i32, ptr %13, align 4, !tbaa !9
  %264 = load i32, ptr %12, align 4, !tbaa !9
  %265 = add i32 %264, %263
  store i32 %265, ptr %12, align 4, !tbaa !9
  %266 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %266, ptr %13, align 4, !tbaa !9
  store i32 77414, ptr %14, align 4, !tbaa !9
  %267 = load i32, ptr %14, align 4, !tbaa !9
  %268 = load i32, ptr %13, align 4, !tbaa !9
  %269 = add i32 %268, %267
  store i32 %269, ptr %13, align 4, !tbaa !9
  store i32 307, ptr %14, align 4, !tbaa !9
  %270 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %270, ptr %15, align 4, !tbaa !9
  store i32 107220, ptr %16, align 4, !tbaa !9
  %271 = load i32, ptr %16, align 4, !tbaa !9
  %272 = load i32, ptr %15, align 4, !tbaa !9
  %273 = add i32 %272, %271
  store i32 %273, ptr %15, align 4, !tbaa !9
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = load i32, ptr %12, align 4, !tbaa !9
  %276 = load i32, ptr %13, align 4, !tbaa !9
  %277 = load i32, ptr %14, align 4, !tbaa !9
  %278 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %274, i32 noundef %275, i32 noundef %276, i32 noundef %277, i32 noundef %278)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

279:                                              ; preds = %155
  store i32 0, ptr %12, align 4, !tbaa !9
  %280 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %280, ptr %7, align 4, !tbaa !9
  store i32 159448, ptr %13, align 4, !tbaa !9
  %281 = load i32, ptr %13, align 4, !tbaa !9
  %282 = load i32, ptr %12, align 4, !tbaa !9
  %283 = add i32 %282, %281
  store i32 %283, ptr %12, align 4, !tbaa !9
  %284 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %284, ptr %13, align 4, !tbaa !9
  store i32 83126, ptr %14, align 4, !tbaa !9
  %285 = load i32, ptr %14, align 4, !tbaa !9
  %286 = load i32, ptr %13, align 4, !tbaa !9
  %287 = add i32 %286, %285
  store i32 %287, ptr %13, align 4, !tbaa !9
  store i32 484, ptr %14, align 4, !tbaa !9
  %288 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %288, ptr %15, align 4, !tbaa !9
  store i32 89377, ptr %16, align 4, !tbaa !9
  %289 = load i32, ptr %16, align 4, !tbaa !9
  %290 = load i32, ptr %15, align 4, !tbaa !9
  %291 = add i32 %290, %289
  store i32 %291, ptr %15, align 4, !tbaa !9
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = load i32, ptr %12, align 4, !tbaa !9
  %294 = load i32, ptr %13, align 4, !tbaa !9
  %295 = load i32, ptr %14, align 4, !tbaa !9
  %296 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %292, i32 noundef %293, i32 noundef %294, i32 noundef %295, i32 noundef %296)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

297:                                              ; preds = %185
  store i32 0, ptr %12, align 4, !tbaa !9
  %298 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %298, ptr %7, align 4, !tbaa !9
  store i32 193621, ptr %13, align 4, !tbaa !9
  %299 = load i32, ptr %13, align 4, !tbaa !9
  %300 = load i32, ptr %12, align 4, !tbaa !9
  %301 = add i32 %300, %299
  store i32 %301, ptr %12, align 4, !tbaa !9
  %302 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %302, ptr %13, align 4, !tbaa !9
  store i32 82339, ptr %14, align 4, !tbaa !9
  %303 = load i32, ptr %14, align 4, !tbaa !9
  %304 = load i32, ptr %13, align 4, !tbaa !9
  %305 = add i32 %304, %303
  store i32 %305, ptr %13, align 4, !tbaa !9
  store i32 57, ptr %14, align 4, !tbaa !9
  %306 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %306, ptr %15, align 4, !tbaa !9
  store i32 88934, ptr %16, align 4, !tbaa !9
  %307 = load i32, ptr %16, align 4, !tbaa !9
  %308 = load i32, ptr %15, align 4, !tbaa !9
  %309 = add i32 %308, %307
  store i32 %309, ptr %15, align 4, !tbaa !9
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  %311 = load i32, ptr %12, align 4, !tbaa !9
  %312 = load i32, ptr %13, align 4, !tbaa !9
  %313 = load i32, ptr %14, align 4, !tbaa !9
  %314 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %310, i32 noundef %311, i32 noundef %312, i32 noundef %313, i32 noundef %314)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

315:                                              ; preds = %194
  store i32 0, ptr %12, align 4, !tbaa !9
  %316 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %316, ptr %7, align 4, !tbaa !9
  store i32 196840, ptr %13, align 4, !tbaa !9
  %317 = load i32, ptr %13, align 4, !tbaa !9
  %318 = load i32, ptr %12, align 4, !tbaa !9
  %319 = add i32 %318, %317
  store i32 %319, ptr %12, align 4, !tbaa !9
  %320 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %320, ptr %13, align 4, !tbaa !9
  store i32 82339, ptr %14, align 4, !tbaa !9
  %321 = load i32, ptr %14, align 4, !tbaa !9
  %322 = load i32, ptr %13, align 4, !tbaa !9
  %323 = add i32 %322, %321
  store i32 %323, ptr %13, align 4, !tbaa !9
  store i32 58, ptr %14, align 4, !tbaa !9
  %324 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %324, ptr %15, align 4, !tbaa !9
  store i32 88934, ptr %16, align 4, !tbaa !9
  %325 = load i32, ptr %16, align 4, !tbaa !9
  %326 = load i32, ptr %15, align 4, !tbaa !9
  %327 = add i32 %326, %325
  store i32 %327, ptr %15, align 4, !tbaa !9
  %328 = load ptr, ptr %5, align 8, !tbaa !5
  %329 = load i32, ptr %12, align 4, !tbaa !9
  %330 = load i32, ptr %13, align 4, !tbaa !9
  %331 = load i32, ptr %14, align 4, !tbaa !9
  %332 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %328, i32 noundef %329, i32 noundef %330, i32 noundef %331, i32 noundef %332)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

333:                                              ; preds = %195
  %334 = load i32, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 8, 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
  ret i32 %334
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef) #4

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AcheckUnwritten0x28char0x2A0x2C0x20char0x2A0x29(ptr noundef, i32 noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !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"

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ADynamicStringPrimitive0x3Cchar16_t0x2C0x20false0x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3ADynamicStringPrimitive0x3Cchar16_t0x2C0x20false0x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2900x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x2C0x20llvh0x3A0x3AArrayRef0x3Cchar16_t0x3E0x260x3E0x28unsigned0x20int0x2C0x20llvh0x3A0x3AArrayRef0x3Cchar16_t0x3E0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = and i32 %2, 7
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %6, label %46

6:                                                ; preds = %4
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = add nuw nsw i64 %8, 504
  %10 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %9)
  %.not202 = icmp eq i32 %10, 0
  br i1 %.not202, label %11, label %47

11:                                               ; preds = %6
  %12 = icmp ult i32 %2, 16
  br i1 %12, label %48, label %13

13:                                               ; preds = %11
  %14 = add nuw nsw i64 %8, 588
  %15 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %14)
  %.not203 = icmp eq i32 %15, 0
  br i1 %.not203, label %49, label %16

16:                                               ; preds = %13
  %17 = add nuw nsw i64 %8, 600
  %18 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %17)
  %19 = add nuw nsw i64 %8, 596
  %20 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %19)
  %21 = sub i32 %18, %20
  %22 = icmp ult i32 %21, %2
  br i1 %22, label %23, label %25

23:                                               ; preds = %16
  %24 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2)
  br label %27

25:                                               ; preds = %16
  %26 = add i32 %20, %2
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %19, i32 noundef %26)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AcheckUnwritten0x28char0x2A0x2C0x20char0x2A0x29(ptr noundef %0, i32 noundef %20, i32 noundef %26) #4
  br label %27

27:                                               ; preds = %25, %23
  %.0 = phi i32 [ %24, %23 ], [ %20, %25 ]
  %28 = zext i32 %3 to i64
  %29 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %28)
  %30 = zext i32 %.0 to i64
  %31 = add nuw nsw i64 %30, 4
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %31, i32 noundef 52753)
  %32 = lshr i64 %29, 32
  %33 = trunc nuw i64 %32 to i32
  %34 = add nuw nsw i64 %30, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %34, i32 noundef %33)
  %35 = icmp ugt i64 %29, 281474976710655
  br i1 %35, label %50, label %36

36:                                               ; preds = %27
  %.not204 = icmp ult i64 %29, 4294967296
  br i1 %.not204, label %42, label %37

37:                                               ; preds = %36
  %38 = add i32 %.0, 16
  %39 = trunc i64 %29 to i32
  %40 = shl nuw nsw i32 %33, 1
  %41 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %38, i32 noundef %39, i32 noundef %40) #4
  br label %42

42:                                               ; preds = %36, %37
  %43 = icmp ugt i32 %2, 16777215
  br i1 %43, label %51, label %44

44:                                               ; preds = %42
  %45 = or disjoint i32 %2, 50331648
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %30, i32 noundef %45)
  ret i32 %.0

46:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 154937, i32 noundef 86379, i32 noundef 1090, i32 noundef 109843) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

47:                                               ; preds = %6
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 189195, i32 noundef 86379, i32 noundef 1091, i32 noundef 109843) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

48:                                               ; preds = %11
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 134747, i32 noundef 86379, i32 noundef 1109, i32 noundef 74688) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

49:                                               ; preds = %13
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 131267, i32 noundef 77414, i32 noundef 307, i32 noundef 107220) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

50:                                               ; preds = %27
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 159448, i32 noundef 83126, i32 noundef 484, i32 noundef 89377) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

51:                                               ; preds = %42
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 196840, i32 noundef 82339, i32 noundef 58, i32 noundef 88934) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AcheckUnwritten0x28char0x2A0x2C0x20char0x2A0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

attributes #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 = { 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 = { 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 = { nounwind }
attributes #5 = { 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,SROAPass,SimplifyCFGPass,TailCallElimPass