; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierRangeSlow0x28hermes0x3A0x3Avm0x3A0x3AGCHermesValueBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue320x3E0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

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

84:                                               ; preds = %55
  %85 = load i32, ptr %13, align 4, !tbaa !9
  br label %88

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

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

98:                                               ; preds = %88
  br label %149

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

126:                                              ; preds = %99
  br label %149

127:                                              ; preds = %99
  br label %128

128:                                              ; preds = %147, %127
  %129 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %129, ptr %13, align 4, !tbaa !9
  store i32 7, ptr %14, 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 %13, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %131, i64 noundef %133, i32 noundef %134)
  %135 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %135, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %136 = load i32, ptr %14, align 4, !tbaa !9
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = add i32 %137, %136
  store i32 %138, ptr %13, align 4, !tbaa !9
  %139 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %139, ptr %6, align 4, !tbaa !9
  %140 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %140, ptr %14, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = load i32, ptr %14, align 4, !tbaa !9
  %143 = icmp ne i32 %141, %142
  %144 = zext i1 %143 to i32
  store i32 %144, ptr %13, align 4, !tbaa !9
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %128
  br label %128

148:                                              ; preds = %128
  br label %149

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

165:                                              ; preds = %149
  br label %237

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

195:                                              ; preds = %166
  br label %237

196:                                              ; preds = %166
  %197 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %197, ptr %13, align 4, !tbaa !9
  store i32 4813, 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 = add 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 %13, align 4, !tbaa !9
  %204 = zext i32 %203 to i64
  %205 = call i32 @i32_load8_u(ptr noundef %202, i64 noundef %204)
  store i32 %205, ptr %13, align 4, !tbaa !9
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = icmp ne i32 %206, 0
  %208 = xor i1 %207, true
  %209 = zext i1 %208 to i32
  store i32 %209, ptr %13, align 4, !tbaa !9
  %210 = load i32, ptr %13, align 4, !tbaa !9
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %213

212:                                              ; preds = %196
  br label %237

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

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

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

264:                                              ; preds = %246
  %265 = load i32, ptr %16, align 4, !tbaa !9
  br label %268

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

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

277:                                              ; preds = %268
  %278 = load i32, ptr %15, align 4, !tbaa !9
  br label %281

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

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

290:                                              ; preds = %281, %237
  %291 = load i32, ptr %13, align 4, !tbaa !9
  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 %291
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden 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

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierRangeSlow0x28hermes0x3A0x3Avm0x3A0x3AGCHermesValueBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue320x3E0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue320x3E0x3A0x3Ashift0x28hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue320x3E0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %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, 16777212
  %13 = add nsw i32 %12, -8
  %14 = lshr exact i32 %13, 2
  %.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, 2
  %22 = add i32 %21, %16
  %23 = shl nuw i32 %3, 2
  %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 @i32_store(ptr noundef nonnull %5, i64 noundef %26, i32 noundef 7)
  %27 = add i32 %.0, 4
  %.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, 2
  %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, 2
  %44 = ashr exact i32 %43, 2
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierRangeSlow0x28hermes0x3A0x3Avm0x3A0x3AGCHermesValueBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue320x3E0x20const0x2A0x2C0x20unsigned0x20int0x29(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, 1
  %48 = tail call i32 @llvm.umax.i32(i32 %47, i32 %3)
  %49 = icmp ugt i32 %13, 2054139
  %50 = select i1 %49, i32 1027070, i32 %48
  %51 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue320x3E0x3A0x3AreallocateToLarger0x28hermes0x3A0x3Avm0x3A0x3AMutableHandle0x3Chermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue320x3E0x3E0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(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
}

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

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