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

; 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 i32 @i32_load8_u(ptr noundef, i64 noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3Ashift0x28hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #2 {
  %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
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = 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) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %21 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %21, ptr %13, align 4, !tbaa !9
  %22 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %22, ptr %14, align 4, !tbaa !9
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.w2c_hermes, ptr %23, i32 0, i32 6
  %25 = load i32, ptr %14, align 4, !tbaa !9
  %26 = zext i32 %25 to i64
  %27 = call i32 @i32_load(ptr noundef %24, i64 noundef %26)
  store i32 %27, ptr %14, 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 %14, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = call i32 @i32_load(ptr noundef %29, 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 %11, align 4, !tbaa !9
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.w2c_hermes, ptr %34, i32 0, i32 6
  %36 = load i32, ptr %14, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = call i32 @i32_load(ptr noundef %35, i64 noundef %37)
  store i32 %38, ptr %14, align 4, !tbaa !9
  store i32 16777208, ptr %15, align 4, !tbaa !9
  %39 = load i32, ptr %15, align 4, !tbaa !9
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = and i32 %40, %39
  store i32 %41, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %42 = load i32, ptr %15, align 4, !tbaa !9
  %43 = load i32, ptr %14, align 4, !tbaa !9
  %44 = sub i32 %43, %42
  store i32 %44, ptr %14, align 4, !tbaa !9
  %45 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %45, ptr %10, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %46 = load i32, ptr %15, align 4, !tbaa !9
  %47 = and i32 %46, 31
  %48 = load i32, ptr %14, align 4, !tbaa !9
  %49 = lshr i32 %48, %47
  store i32 %49, ptr %14, align 4, !tbaa !9
  %50 = load i32, ptr %13, align 4, !tbaa !9
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = icmp ule i32 %50, %51
  %53 = zext i1 %52 to i32
  store i32 %53, ptr %13, align 4, !tbaa !9
  %54 = load i32, ptr %13, align 4, !tbaa !9
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %247

56:                                               ; preds = %4
  %57 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %57, ptr %13, align 4, !tbaa !9
  store i32 8, 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 = add i32 %59, %58
  store i32 %60, ptr %13, align 4, !tbaa !9
  %61 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %61, ptr %10, align 4, !tbaa !9
  %62 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %62, ptr %6, align 4, !tbaa !9
  %63 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %63, ptr %13, align 4, !tbaa !9
  store i32 808, ptr %14, align 4, !tbaa !9
  %64 = load i32, ptr %14, align 4, !tbaa !9
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = add i32 %65, %64
  store i32 %66, ptr %13, align 4, !tbaa !9
  %67 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %67, ptr %12, align 4, !tbaa !9
  %68 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %68, ptr %13, align 4, !tbaa !9
  %69 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %69, ptr %14, align 4, !tbaa !9
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.w2c_hermes, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = add i64 %73, 4
  %75 = call i32 @i32_load(ptr noundef %71, i64 noundef %74)
  store i32 %75, ptr %14, align 4, !tbaa !9
  %76 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %76, ptr %9, align 4, !tbaa !9
  %77 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %77, ptr %15, align 4, !tbaa !9
  %78 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %78, ptr %16, align 4, !tbaa !9
  %79 = load i32, ptr %15, align 4, !tbaa !9
  %80 = load i32, ptr %16, align 4, !tbaa !9
  %81 = icmp ult i32 %79, %80
  %82 = zext i1 %81 to i32
  store i32 %82, ptr %15, align 4, !tbaa !9
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %87

85:                                               ; preds = %56
  %86 = load i32, ptr %13, align 4, !tbaa !9
  br label %89

87:                                               ; preds = %56
  %88 = load i32, ptr %14, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %87, %85
  %90 = phi i32 [ %86, %85 ], [ %88, %87 ]
  store i32 %90, ptr %13, align 4, !tbaa !9
  %91 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %91, ptr %9, align 4, !tbaa !9
  %92 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %92, ptr %14, align 4, !tbaa !9
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = icmp uge i32 %93, %94
  %96 = zext i1 %95 to i32
  store i32 %96, ptr %13, align 4, !tbaa !9
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %89
  br label %150

100:                                              ; preds = %89
  %101 = load i32, ptr %6, 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
  store i32 3, ptr %15, align 4, !tbaa !9
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = and i32 %103, 31
  %105 = load i32, ptr %14, align 4, !tbaa !9
  %106 = shl i32 %105, %104
  store i32 %106, ptr %14, align 4, !tbaa !9
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = add i32 %108, %107
  store i32 %109, ptr %13, align 4, !tbaa !9
  %110 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %110, ptr %6, align 4, !tbaa !9
  %111 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %111, ptr %14, align 4, !tbaa !9
  %112 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %112, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %113 = load i32, ptr %16, align 4, !tbaa !9
  %114 = and i32 %113, 31
  %115 = load i32, ptr %15, align 4, !tbaa !9
  %116 = shl i32 %115, %114
  store i32 %116, ptr %15, align 4, !tbaa !9
  %117 = load i32, ptr %15, align 4, !tbaa !9
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = add i32 %118, %117
  store i32 %119, ptr %14, align 4, !tbaa !9
  %120 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %120, ptr %9, align 4, !tbaa !9
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = icmp eq i32 %121, %122
  %124 = zext i1 %123 to i32
  store i32 %124, ptr %13, align 4, !tbaa !9
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %128

127:                                              ; preds = %100
  br label %150

128:                                              ; preds = %100
  br label %129

129:                                              ; preds = %148, %128
  %130 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %130, ptr %13, align 4, !tbaa !9
  store i64 -1970324836974592, ptr %20, align 8, !tbaa !11
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %132, i64 noundef %134, i64 noundef %135)
  %136 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %136, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = add i32 %138, %137
  store i32 %139, ptr %13, align 4, !tbaa !9
  %140 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %140, ptr %6, align 4, !tbaa !9
  %141 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %141, ptr %14, align 4, !tbaa !9
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = icmp ne i32 %142, %143
  %145 = zext i1 %144 to i32
  store i32 %145, ptr %13, align 4, !tbaa !9
  %146 = load i32, ptr %13, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %149

148:                                              ; preds = %129
  br label %129

149:                                              ; preds = %129
  br label %150

150:                                              ; preds = %149, %127, %99
  %151 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %151, ptr %13, align 4, !tbaa !9
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.w2c_hermes, ptr %152, i32 0, i32 6
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = add i64 %155, 4
  %157 = call i32 @i32_load(ptr noundef %153, i64 noundef %156)
  store i32 %157, ptr %13, align 4, !tbaa !9
  %158 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %158, ptr %9, align 4, !tbaa !9
  %159 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %159, ptr %14, align 4, !tbaa !9
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = icmp ule i32 %160, %161
  %163 = zext i1 %162 to i32
  store i32 %163, ptr %13, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %167

166:                                              ; preds = %150
  br label %238

167:                                              ; preds = %150
  %168 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %168, ptr %13, align 4, !tbaa !9
  store i32 1356, ptr %14, align 4, !tbaa !9
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = add i32 %170, %169
  store i32 %171, ptr %13, align 4, !tbaa !9
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.w2c_hermes, ptr %172, i32 0, i32 6
  %174 = load i32, ptr %13, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = call i32 @i32_load(ptr noundef %173, i64 noundef %175)
  store i32 %176, ptr %13, align 4, !tbaa !9
  %177 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %177, ptr %14, align 4, !tbaa !9
  %178 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %178, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %179 = load i32, ptr %16, align 4, !tbaa !9
  %180 = and i32 %179, 31
  %181 = load i32, ptr %15, align 4, !tbaa !9
  %182 = shl i32 %181, %180
  store i32 %182, 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 i32, ptr %14, align 4, !tbaa !9
  store i32 %186, ptr %6, align 4, !tbaa !9
  store i32 -4194304, ptr %15, align 4, !tbaa !9
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = load i32, ptr %14, align 4, !tbaa !9
  %189 = and i32 %188, %187
  store i32 %189, ptr %14, align 4, !tbaa !9
  %190 = load i32, ptr %13, align 4, !tbaa !9
  %191 = load i32, ptr %14, align 4, !tbaa !9
  %192 = icmp eq i32 %190, %191
  %193 = zext i1 %192 to i32
  store i32 %193, ptr %13, align 4, !tbaa !9
  %194 = load i32, ptr %13, align 4, !tbaa !9
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %197

196:                                              ; preds = %167
  br label %238

197:                                              ; preds = %167
  %198 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %198, ptr %13, align 4, !tbaa !9
  store i32 4813, ptr %14, align 4, !tbaa !9
  %199 = load i32, ptr %14, align 4, !tbaa !9
  %200 = load i32, ptr %13, align 4, !tbaa !9
  %201 = add i32 %200, %199
  store i32 %201, ptr %13, align 4, !tbaa !9
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.w2c_hermes, ptr %202, i32 0, i32 6
  %204 = load i32, ptr %13, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = call i32 @i32_load8_u(ptr noundef %203, i64 noundef %205)
  store i32 %206, ptr %13, align 4, !tbaa !9
  %207 = load i32, ptr %13, align 4, !tbaa !9
  %208 = icmp ne i32 %207, 0
  %209 = xor i1 %208, true
  %210 = zext i1 %209 to i32
  store i32 %210, ptr %13, align 4, !tbaa !9
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %214

213:                                              ; preds = %197
  br label %238

214:                                              ; preds = %197
  %215 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %215, ptr %13, align 4, !tbaa !9
  %216 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %216, ptr %14, align 4, !tbaa !9
  %217 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %217, ptr %15, align 4, !tbaa !9
  %218 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %218, ptr %16, align 4, !tbaa !9
  store i32 3, ptr %17, align 4, !tbaa !9
  %219 = load i32, ptr %17, align 4, !tbaa !9
  %220 = and i32 %219, 31
  %221 = load i32, ptr %16, align 4, !tbaa !9
  %222 = shl i32 %221, %220
  store i32 %222, ptr %16, align 4, !tbaa !9
  %223 = load i32, ptr %16, align 4, !tbaa !9
  %224 = load i32, ptr %15, align 4, !tbaa !9
  %225 = add i32 %224, %223
  store i32 %225, ptr %15, align 4, !tbaa !9
  %226 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %226, ptr %16, align 4, !tbaa !9
  %227 = load i32, ptr %16, align 4, !tbaa !9
  %228 = load i32, ptr %15, align 4, !tbaa !9
  %229 = sub i32 %228, %227
  store i32 %229, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %230 = load i32, ptr %15, align 4, !tbaa !9
  %231 = load i32, ptr %16, align 4, !tbaa !9
  %232 = and i32 %231, 31
  %233 = ashr i32 %230, %232
  store i32 %233, ptr %15, align 4, !tbaa !9
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = load i32, ptr %13, align 4, !tbaa !9
  %236 = load i32, ptr %14, align 4, !tbaa !9
  %237 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierRangeSlow0x28hermes0x3A0x3Avm0x3A0x3AGCHermesValueBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %234, i32 noundef %235, i32 noundef %236, i32 noundef %237)
  br label %238

238:                                              ; preds = %214, %213, %196, %166
  %239 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %239, ptr %13, align 4, !tbaa !9
  %240 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %240, ptr %14, align 4, !tbaa !9
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.w2c_hermes, ptr %241, i32 0, i32 6
  %243 = load i32, ptr %13, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = add i64 %244, 4
  %246 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %242, i64 noundef %245, i32 noundef %246)
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %291

247:                                              ; preds = %4
  %248 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %248, ptr %13, align 4, !tbaa !9
  %249 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %249, ptr %14, align 4, !tbaa !9
  store i32 513535, ptr %15, align 4, !tbaa !9
  %250 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %250, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %251 = load i32, ptr %17, align 4, !tbaa !9
  %252 = and i32 %251, 31
  %253 = load i32, ptr %16, align 4, !tbaa !9
  %254 = lshr i32 %253, %252
  store i32 %254, ptr %16, align 4, !tbaa !9
  %255 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %255, ptr %6, align 4, !tbaa !9
  %256 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %256, ptr %17, align 4, !tbaa !9
  %257 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %257, ptr %18, align 4, !tbaa !9
  %258 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %258, ptr %19, align 4, !tbaa !9
  %259 = load i32, ptr %18, align 4, !tbaa !9
  %260 = load i32, ptr %19, align 4, !tbaa !9
  %261 = icmp ugt i32 %259, %260
  %262 = zext i1 %261 to i32
  store i32 %262, ptr %18, align 4, !tbaa !9
  %263 = load i32, ptr %18, align 4, !tbaa !9
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %265, label %267

265:                                              ; preds = %247
  %266 = load i32, ptr %16, align 4, !tbaa !9
  br label %269

267:                                              ; preds = %247
  %268 = load i32, ptr %17, align 4, !tbaa !9
  br label %269

269:                                              ; preds = %267, %265
  %270 = phi i32 [ %266, %265 ], [ %268, %267 ]
  store i32 %270, ptr %16, align 4, !tbaa !9
  %271 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %271, ptr %17, align 4, !tbaa !9
  store i32 2054136, ptr %18, align 4, !tbaa !9
  %272 = load i32, ptr %17, align 4, !tbaa !9
  %273 = load i32, ptr %18, align 4, !tbaa !9
  %274 = icmp uge i32 %272, %273
  %275 = zext i1 %274 to i32
  store i32 %275, ptr %17, align 4, !tbaa !9
  %276 = load i32, ptr %17, align 4, !tbaa !9
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %280

278:                                              ; preds = %269
  %279 = load i32, ptr %15, align 4, !tbaa !9
  br label %282

280:                                              ; preds = %269
  %281 = load i32, ptr %16, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %280, %278
  %283 = phi i32 [ %279, %278 ], [ %281, %280 ]
  store i32 %283, ptr %15, align 4, !tbaa !9
  %284 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %284, ptr %16, align 4, !tbaa !9
  %285 = load ptr, ptr %5, align 8, !tbaa !5
  %286 = load i32, ptr %13, align 4, !tbaa !9
  %287 = load i32, ptr %14, align 4, !tbaa !9
  %288 = load i32, ptr %15, align 4, !tbaa !9
  %289 = load i32, ptr %16, align 4, !tbaa !9
  %290 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AreallocateToLarger0x28hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %285, i32 noundef %286, i32 noundef %287, i32 noundef %288, i32 noundef %289)
  store i32 %290, ptr %13, align 4, !tbaa !9
  br label %291

291:                                              ; preds = %282, %238
  %292 = load i32, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret i32 %292
}

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

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

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 = { 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 = { "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 }

!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"

; 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 i32 @i32_load8_u(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: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3Ashift0x28hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %1 to i64
  %7 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %6)
  %8 = zext i32 %7 to i64
  %9 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %8)
  %10 = zext i32 %9 to i64
  %11 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %10)
  %12 = and i32 %11, 16777208
  %13 = add nsw i32 %12, -8
  %14 = lshr exact i32 %13, 3
  %.not = icmp ult i32 %14, %3
  br i1 %.not, label %46, label %15

15:                                               ; preds = %4
  %16 = add i32 %9, 8
  %17 = add i32 %2, 808
  %18 = add nuw nsw i64 %10, 4
  %19 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %18)
  %.not159 = icmp ult i32 %19, %3
  br i1 %.not159, label %20, label %.loopexit

20:                                               ; preds = %15
  %21 = shl nuw i32 %19, 3
  %22 = add i32 %21, %16
  %23 = shl nuw i32 %3, 3
  %24 = add i32 %16, %23
  br label %25

25:                                               ; preds = %20, %25
  %.0 = phi i32 [ %22, %20 ], [ %27, %25 ]
  %26 = zext i32 %.0 to i64
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %26, i64 noundef -1970324836974592)
  %27 = add i32 %.0, 8
  %.not160 = icmp eq i32 %27, %24
  br i1 %.not160, label %.loopexit, label %25

.loopexit:                                        ; preds = %25, %15
  %28 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %18)
  %.not161 = icmp ugt i32 %28, %3
  br i1 %.not161, label %29, label %45

29:                                               ; preds = %.loopexit
  %30 = add i32 %2, 1356
  %31 = zext i32 %30 to i64
  %32 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %31)
  %33 = shl nuw i32 %3, 3
  %34 = add i32 %16, %33
  %35 = and i32 %34, -4194304
  %36 = icmp eq i32 %32, %35
  br i1 %36, label %45, label %37

37:                                               ; preds = %29
  %38 = add i32 %2, 4813
  %39 = zext i32 %38 to i64
  %40 = tail call i32 @i32_load8_u(ptr noundef nonnull %5, i64 noundef %39)
  %.not162 = icmp eq i32 %40, 0
  br i1 %.not162, label %45, label %41

41:                                               ; preds = %37
  %42 = sub i32 %28, %3
  %43 = shl i32 %42, 3
  %44 = ashr exact i32 %43, 3
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierRangeSlow0x28hermes0x3A0x3Avm0x3A0x3AGCHermesValueBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %17, i32 noundef %34, i32 noundef %44) #4
  br label %45

45:                                               ; preds = %37, %29, %.loopexit, %41
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %18, i32 noundef %3)
  br label %52

46:                                               ; preds = %4
  %47 = lshr exact i32 %13, 2
  %48 = tail call i32 @llvm.umax.i32(i32 %47, i32 %3)
  %49 = icmp ugt i32 %13, 2054135
  %50 = select i1 %49, i32 513535, i32 %48
  %51 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AreallocateToLarger0x28hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %50, i32 noundef %3)
  br label %52

52:                                               ; preds = %46, %45
  %.0154 = phi i32 [ 1, %45 ], [ %51, %46 ]
  ret i32 %.0154
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierRangeSlow0x28hermes0x3A0x3Avm0x3A0x3AGCHermesValueBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

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 = { 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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass