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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ADynamicStringPrimitive0x3Cchar16_t0x2C0x20false0x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3ADynamicStringPrimitive0x3Cchar16_t0x2C0x20false0x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2900x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x2C0x20unsigned0x20int0x260x3E0x28unsigned0x20int0x2C0x20unsigned0x20int0x260x29(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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  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 4, ptr %11) #5
  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
  %16 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %16, ptr %11, align 4, !tbaa !9
  store i32 7, ptr %12, align 4, !tbaa !9
  %17 = load i32, ptr %12, align 4, !tbaa !9
  %18 = load i32, ptr %11, align 4, !tbaa !9
  %19 = and i32 %18, %17
  store i32 %19, ptr %11, align 4, !tbaa !9
  %20 = load i32, ptr %11, align 4, !tbaa !9
  %21 = icmp ne i32 %20, 0
  %22 = xor i1 %21, true
  %23 = zext i1 %22 to i32
  store i32 %23, ptr %11, align 4, !tbaa !9
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %173

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

36:                                               ; preds = %26
  br label %191

37:                                               ; preds = %26
  %38 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %38, ptr %11, align 4, !tbaa !9
  store i32 15, ptr %12, align 4, !tbaa !9
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = load i32, ptr %12, align 4, !tbaa !9
  %41 = icmp ule i32 %39, %40
  %42 = zext i1 %41 to i32
  store i32 %42, ptr %11, align 4, !tbaa !9
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %37
  br label %209

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

60:                                               ; preds = %46
  br label %227

61:                                               ; preds = %46
  %62 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %62, ptr %11, align 4, !tbaa !9
  %63 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %63, ptr %12, align 4, !tbaa !9
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 600
  %69 = call i32 @i32_load(ptr noundef %65, i64 noundef %68)
  store i32 %69, ptr %12, align 4, !tbaa !9
  %70 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %70, ptr %13, align 4, !tbaa !9
  %71 = load ptr, ptr %5, 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, 596
  %76 = call i32 @i32_load(ptr noundef %72, i64 noundef %75)
  store i32 %76, ptr %13, align 4, !tbaa !9
  %77 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %77, ptr %9, align 4, !tbaa !9
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = sub i32 %79, %78
  store i32 %80, ptr %12, align 4, !tbaa !9
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = icmp ugt i32 %81, %82
  %84 = zext i1 %83 to i32
  store i32 %84, ptr %11, align 4, !tbaa !9
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %95

87:                                               ; preds = %61
  %88 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %88, ptr %11, align 4, !tbaa !9
  %89 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %89, ptr %12, align 4, !tbaa !9
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef %90, i32 noundef %91, i32 noundef %92)
  store i32 %93, ptr %11, align 4, !tbaa !9
  %94 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %94, ptr %9, align 4, !tbaa !9
  br label %114

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

114:                                              ; preds = %95, %87
  %115 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %115, ptr %11, align 4, !tbaa !9
  %116 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %116, ptr %12, align 4, !tbaa !9
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %12, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = call i32 @i32_load(ptr noundef %118, i64 noundef %120)
  store i32 %121, ptr %12, align 4, !tbaa !9
  %122 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %122, ptr %6, align 4, !tbaa !9
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = add i64 %126, 12
  %128 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %124, i64 noundef %127, i32 noundef %128)
  %129 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %129, ptr %11, align 4, !tbaa !9
  store i32 52753, ptr %12, align 4, !tbaa !9
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %11, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = add i64 %133, 4
  %135 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %131, i64 noundef %134, i32 noundef %135)
  %136 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %136, ptr %11, align 4, !tbaa !9
  store i32 65536, ptr %12, align 4, !tbaa !9
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = load i32, ptr %12, align 4, !tbaa !9
  %139 = icmp uge i32 %137, %138
  %140 = zext i1 %139 to i32
  store i32 %140, ptr %11, align 4, !tbaa !9
  %141 = load i32, ptr %11, align 4, !tbaa !9
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %144

143:                                              ; preds = %114
  br label %245

144:                                              ; preds = %114
  %145 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %145, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = load i32, ptr %11, align 4, !tbaa !9
  %148 = and i32 %147, %146
  store i32 %148, ptr %11, align 4, !tbaa !9
  %149 = load i32, ptr %11, align 4, !tbaa !9
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %152

151:                                              ; preds = %144
  br label %263

152:                                              ; preds = %144
  %153 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %153, ptr %11, align 4, !tbaa !9
  store i32 16777216, ptr %12, align 4, !tbaa !9
  %154 = load i32, ptr %11, align 4, !tbaa !9
  %155 = load i32, ptr %12, align 4, !tbaa !9
  %156 = icmp uge i32 %154, %155
  %157 = zext i1 %156 to i32
  store i32 %157, ptr %11, align 4, !tbaa !9
  %158 = load i32, ptr %11, align 4, !tbaa !9
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %152
  br label %281

161:                                              ; preds = %152
  %162 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %162, ptr %11, align 4, !tbaa !9
  %163 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %163, ptr %12, align 4, !tbaa !9
  store i32 50331648, ptr %13, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = load i32, ptr %12, align 4, !tbaa !9
  %166 = or i32 %165, %164
  store i32 %166, ptr %12, align 4, !tbaa !9
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.w2c_hermes, ptr %167, i32 0, i32 6
  %169 = load i32, ptr %11, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %168, i64 noundef %170, i32 noundef %171)
  %172 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %172, ptr %11, align 4, !tbaa !9
  br label %299

173:                                              ; preds = %4
  store i32 0, ptr %11, align 4, !tbaa !9
  %174 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %174, ptr %7, align 4, !tbaa !9
  store i32 154937, ptr %12, align 4, !tbaa !9
  %175 = load i32, ptr %12, align 4, !tbaa !9
  %176 = load i32, ptr %11, align 4, !tbaa !9
  %177 = add i32 %176, %175
  store i32 %177, ptr %11, align 4, !tbaa !9
  %178 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %178, ptr %12, align 4, !tbaa !9
  store i32 86379, ptr %13, align 4, !tbaa !9
  %179 = load i32, ptr %13, align 4, !tbaa !9
  %180 = load i32, ptr %12, align 4, !tbaa !9
  %181 = add i32 %180, %179
  store i32 %181, ptr %12, align 4, !tbaa !9
  store i32 1090, ptr %13, align 4, !tbaa !9
  %182 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %182, ptr %14, align 4, !tbaa !9
  store i32 109843, ptr %15, align 4, !tbaa !9
  %183 = load i32, ptr %15, align 4, !tbaa !9
  %184 = load i32, ptr %14, align 4, !tbaa !9
  %185 = add i32 %184, %183
  store i32 %185, ptr %14, align 4, !tbaa !9
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = load i32, ptr %13, align 4, !tbaa !9
  %190 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %186, i32 noundef %187, i32 noundef %188, i32 noundef %189, i32 noundef %190)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

191:                                              ; preds = %36
  store i32 0, ptr %11, align 4, !tbaa !9
  %192 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %192, ptr %7, align 4, !tbaa !9
  store i32 189195, ptr %12, align 4, !tbaa !9
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = load i32, ptr %11, align 4, !tbaa !9
  %195 = add i32 %194, %193
  store i32 %195, ptr %11, align 4, !tbaa !9
  %196 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %196, ptr %12, align 4, !tbaa !9
  store i32 86379, ptr %13, align 4, !tbaa !9
  %197 = load i32, ptr %13, align 4, !tbaa !9
  %198 = load i32, ptr %12, align 4, !tbaa !9
  %199 = add i32 %198, %197
  store i32 %199, ptr %12, align 4, !tbaa !9
  store i32 1091, ptr %13, align 4, !tbaa !9
  %200 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %200, ptr %14, align 4, !tbaa !9
  store i32 109843, ptr %15, align 4, !tbaa !9
  %201 = load i32, ptr %15, align 4, !tbaa !9
  %202 = load i32, ptr %14, align 4, !tbaa !9
  %203 = add i32 %202, %201
  store i32 %203, ptr %14, align 4, !tbaa !9
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = load i32, ptr %11, align 4, !tbaa !9
  %206 = load i32, ptr %12, align 4, !tbaa !9
  %207 = load i32, ptr %13, align 4, !tbaa !9
  %208 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %204, i32 noundef %205, i32 noundef %206, i32 noundef %207, i32 noundef %208)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

227:                                              ; preds = %60
  store i32 0, ptr %11, align 4, !tbaa !9
  %228 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %228, ptr %7, align 4, !tbaa !9
  store i32 131267, ptr %12, align 4, !tbaa !9
  %229 = load i32, ptr %12, align 4, !tbaa !9
  %230 = load i32, ptr %11, align 4, !tbaa !9
  %231 = add i32 %230, %229
  store i32 %231, ptr %11, align 4, !tbaa !9
  %232 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %232, ptr %12, align 4, !tbaa !9
  store i32 77414, ptr %13, align 4, !tbaa !9
  %233 = load i32, ptr %13, align 4, !tbaa !9
  %234 = load i32, ptr %12, align 4, !tbaa !9
  %235 = add i32 %234, %233
  store i32 %235, ptr %12, align 4, !tbaa !9
  store i32 307, ptr %13, align 4, !tbaa !9
  %236 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %236, ptr %14, align 4, !tbaa !9
  store i32 107220, 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 %5, align 8, !tbaa !5
  %241 = load i32, ptr %11, align 4, !tbaa !9
  %242 = load i32, ptr %12, align 4, !tbaa !9
  %243 = load i32, ptr %13, align 4, !tbaa !9
  %244 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %240, i32 noundef %241, i32 noundef %242, i32 noundef %243, i32 noundef %244)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

245:                                              ; preds = %143
  store i32 0, ptr %11, align 4, !tbaa !9
  %246 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %246, ptr %7, align 4, !tbaa !9
  store i32 159448, ptr %12, align 4, !tbaa !9
  %247 = load i32, ptr %12, align 4, !tbaa !9
  %248 = load i32, ptr %11, align 4, !tbaa !9
  %249 = add i32 %248, %247
  store i32 %249, ptr %11, align 4, !tbaa !9
  %250 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %250, ptr %12, align 4, !tbaa !9
  store i32 83126, ptr %13, align 4, !tbaa !9
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = load i32, ptr %12, align 4, !tbaa !9
  %253 = add i32 %252, %251
  store i32 %253, ptr %12, align 4, !tbaa !9
  store i32 484, ptr %13, align 4, !tbaa !9
  %254 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %254, ptr %14, align 4, !tbaa !9
  store i32 89377, ptr %15, align 4, !tbaa !9
  %255 = load i32, ptr %15, align 4, !tbaa !9
  %256 = load i32, ptr %14, align 4, !tbaa !9
  %257 = add i32 %256, %255
  store i32 %257, ptr %14, align 4, !tbaa !9
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = load i32, ptr %11, align 4, !tbaa !9
  %260 = load i32, ptr %12, align 4, !tbaa !9
  %261 = load i32, ptr %13, align 4, !tbaa !9
  %262 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %258, i32 noundef %259, i32 noundef %260, i32 noundef %261, i32 noundef %262)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

263:                                              ; preds = %151
  store i32 0, ptr %11, align 4, !tbaa !9
  %264 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %264, ptr %7, align 4, !tbaa !9
  store i32 193621, ptr %12, align 4, !tbaa !9
  %265 = load i32, ptr %12, align 4, !tbaa !9
  %266 = load i32, ptr %11, align 4, !tbaa !9
  %267 = add i32 %266, %265
  store i32 %267, ptr %11, align 4, !tbaa !9
  %268 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %268, ptr %12, align 4, !tbaa !9
  store i32 82339, ptr %13, align 4, !tbaa !9
  %269 = load i32, ptr %13, align 4, !tbaa !9
  %270 = load i32, ptr %12, align 4, !tbaa !9
  %271 = add i32 %270, %269
  store i32 %271, ptr %12, align 4, !tbaa !9
  store i32 57, ptr %13, align 4, !tbaa !9
  %272 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %272, ptr %14, align 4, !tbaa !9
  store i32 88934, ptr %15, align 4, !tbaa !9
  %273 = load i32, ptr %15, align 4, !tbaa !9
  %274 = load i32, ptr %14, align 4, !tbaa !9
  %275 = add i32 %274, %273
  store i32 %275, ptr %14, align 4, !tbaa !9
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = load i32, ptr %11, align 4, !tbaa !9
  %278 = load i32, ptr %12, align 4, !tbaa !9
  %279 = load i32, ptr %13, align 4, !tbaa !9
  %280 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %276, i32 noundef %277, i32 noundef %278, i32 noundef %279, i32 noundef %280)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

281:                                              ; preds = %160
  store i32 0, ptr %11, align 4, !tbaa !9
  %282 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %282, ptr %7, align 4, !tbaa !9
  store i32 196840, ptr %12, align 4, !tbaa !9
  %283 = load i32, ptr %12, align 4, !tbaa !9
  %284 = load i32, ptr %11, align 4, !tbaa !9
  %285 = add i32 %284, %283
  store i32 %285, ptr %11, align 4, !tbaa !9
  %286 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %286, ptr %12, align 4, !tbaa !9
  store i32 82339, ptr %13, align 4, !tbaa !9
  %287 = load i32, ptr %13, align 4, !tbaa !9
  %288 = load i32, ptr %12, align 4, !tbaa !9
  %289 = add i32 %288, %287
  store i32 %289, ptr %12, align 4, !tbaa !9
  store i32 58, ptr %13, align 4, !tbaa !9
  %290 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %290, ptr %14, align 4, !tbaa !9
  store i32 88934, ptr %15, align 4, !tbaa !9
  %291 = load i32, ptr %15, align 4, !tbaa !9
  %292 = load i32, ptr %14, align 4, !tbaa !9
  %293 = add i32 %292, %291
  store i32 %293, ptr %14, align 4, !tbaa !9
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = load i32, ptr %11, align 4, !tbaa !9
  %296 = load i32, ptr %12, align 4, !tbaa !9
  %297 = load i32, ptr %13, align 4, !tbaa !9
  %298 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %294, i32 noundef %295, i32 noundef %296, i32 noundef %297, i32 noundef %298)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

299:                                              ; preds = %161
  %300 = load i32, ptr %11, align 4, !tbaa !9
  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
  ret i32 %300
}

; 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}


; 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 void @i32_store16(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ADynamicStringPrimitive0x3Cchar16_t0x2C0x20false0x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3ADynamicStringPrimitive0x3Cchar16_t0x2C0x20false0x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2900x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x2C0x20unsigned0x20int0x260x3E0x28unsigned0x20int0x2C0x20unsigned0x20int0x260x29(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 %38

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)
  %.not182 = icmp eq i32 %10, 0
  br i1 %.not182, label %11, label %39

11:                                               ; preds = %6
  %12 = icmp ult i32 %2, 16
  br i1 %12, label %40, 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)
  %.not183 = icmp eq i32 %15, 0
  br i1 %.not183, label %41, 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 i32 @i32_load(ptr noundef nonnull %7, i64 noundef %28)
  %30 = zext i32 %.0 to i64
  %31 = add nuw nsw i64 %30, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %31, i32 noundef %29)
  %32 = add nuw nsw i64 %30, 4
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %32, i32 noundef 52753)
  %33 = icmp ugt i32 %29, 65535
  br i1 %33, label %42, label %34

34:                                               ; preds = %27
  %35 = icmp ugt i32 %2, 16777215
  br i1 %35, label %43, label %36

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

38:                                               ; 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

39:                                               ; 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

40:                                               ; 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

41:                                               ; 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

42:                                               ; 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

43:                                               ; preds = %34
  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