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

; 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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20hermes0x3A0x3Avm0x3A0x3AJSDataView0x3A0x3Aset0x3Cunsigned0x20long0x20long0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20long0x20long0x2C0x20bool0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i64 noundef %4, i32 noundef %5) #4 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i64 %4, ptr %11, align 8, !tbaa !11
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %25 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %25, ptr %14, align 4, !tbaa !9
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.w2c_hermes, ptr %26, i32 0, i32 6
  %28 = load i32, ptr %14, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = add i64 %29, 28
  %31 = call i32 @i32_load(ptr noundef %27, 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 %13, align 4, !tbaa !9
  %33 = load i32, ptr %14, align 4, !tbaa !9
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %231

35:                                               ; preds = %6
  %36 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %36, ptr %14, align 4, !tbaa !9
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.w2c_hermes, ptr %37, i32 0, i32 6
  %39 = load i32, ptr %14, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = add i64 %40, 3
  %42 = call i32 @i32_load8_u(ptr noundef %38, i64 noundef %41)
  store i32 %42, ptr %14, align 4, !tbaa !9
  store i32 24, ptr %15, align 4, !tbaa !9
  %43 = load i32, ptr %15, align 4, !tbaa !9
  %44 = and i32 %43, 31
  %45 = load i32, ptr %14, align 4, !tbaa !9
  %46 = shl i32 %45, %44
  store i32 %46, ptr %14, align 4, !tbaa !9
  store i32 553648128, ptr %15, align 4, !tbaa !9
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = load i32, ptr %15, align 4, !tbaa !9
  %49 = icmp ne i32 %47, %48
  %50 = zext i1 %49 to i32
  store i32 %50, ptr %14, align 4, !tbaa !9
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %35
  br label %249

54:                                               ; preds = %35
  %55 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %55, ptr %14, align 4, !tbaa !9
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.w2c_hermes, ptr %56, i32 0, i32 6
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = add i64 %59, 37
  %61 = call i32 @i32_load8_u(ptr noundef %57, i64 noundef %60)
  store i32 %61, ptr %14, align 4, !tbaa !9
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  %64 = xor i1 %63, true
  %65 = zext i1 %64 to i32
  store i32 %65, ptr %14, align 4, !tbaa !9
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %54
  br label %267

69:                                               ; preds = %54
  %70 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %70, ptr %14, align 4, !tbaa !9
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %14, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 36
  %76 = call i32 @i32_load(ptr noundef %72, i64 noundef %75)
  store i32 %76, ptr %14, align 4, !tbaa !9
  %77 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %77, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = load i32, ptr %15, align 4, !tbaa !9
  %80 = add i32 %79, %78
  store i32 %80, ptr %15, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = icmp ult i32 %81, %82
  %84 = zext i1 %83 to i32
  store i32 %84, ptr %14, align 4, !tbaa !9
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %69
  br label %285

88:                                               ; preds = %69
  %89 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %89, ptr %14, align 4, !tbaa !9
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.w2c_hermes, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = add i64 %93, 5348
  %95 = call i32 @i32_load8_u(ptr noundef %91, i64 noundef %94)
  store i32 %95, ptr %14, align 4, !tbaa !9
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  %98 = xor i1 %97, true
  %99 = zext i1 %98 to i32
  store i32 %99, ptr %14, align 4, !tbaa !9
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %88
  br label %303

103:                                              ; preds = %88
  %104 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %104, ptr %14, align 4, !tbaa !9
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.w2c_hermes, ptr %105, i32 0, i32 6
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = add i64 %108, 32
  %110 = call i32 @i32_load(ptr noundef %106, i64 noundef %109)
  store i32 %110, ptr %14, align 4, !tbaa !9
  %111 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %111, ptr %15, align 4, !tbaa !9
  store i32 1316, ptr %16, align 4, !tbaa !9
  %112 = load i32, ptr %16, align 4, !tbaa !9
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = add i32 %113, %112
  store i32 %114, ptr %15, align 4, !tbaa !9
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %15, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = call i32 @i32_load(ptr noundef %116, i64 noundef %118)
  store i32 %119, ptr %15, align 4, !tbaa !9
  %120 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %120, ptr %16, align 4, !tbaa !9
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.w2c_hermes, ptr %121, i32 0, i32 6
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = add i64 %124, 28
  %126 = call i32 @i32_load(ptr noundef %122, i64 noundef %125)
  store i32 %126, ptr %16, align 4, !tbaa !9
  %127 = load i32, ptr %16, align 4, !tbaa !9
  %128 = load i32, ptr %15, align 4, !tbaa !9
  %129 = xor i32 %128, %127
  store i32 %129, ptr %15, align 4, !tbaa !9
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = load i32, ptr %14, align 4, !tbaa !9
  %132 = add i32 %131, %130
  store i32 %132, ptr %14, align 4, !tbaa !9
  %133 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %133, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %15, align 4, !tbaa !9
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = add i32 %135, %134
  store i32 %136, ptr %14, align 4, !tbaa !9
  %137 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %137, ptr %19, align 8, !tbaa !11
  %138 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %138, ptr %20, align 8, !tbaa !11
  store i64 56, ptr %21, align 8, !tbaa !11
  %139 = load i64, ptr %21, align 8, !tbaa !11
  %140 = and i64 %139, 63
  %141 = load i64, ptr %20, align 8, !tbaa !11
  %142 = shl i64 %141, %140
  store i64 %142, ptr %20, align 8, !tbaa !11
  %143 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %143, ptr %21, align 8, !tbaa !11
  store i64 65280, ptr %22, align 8, !tbaa !11
  %144 = load i64, ptr %22, align 8, !tbaa !11
  %145 = load i64, ptr %21, align 8, !tbaa !11
  %146 = and i64 %145, %144
  store i64 %146, ptr %21, align 8, !tbaa !11
  store i64 40, ptr %22, align 8, !tbaa !11
  %147 = load i64, ptr %22, align 8, !tbaa !11
  %148 = and i64 %147, 63
  %149 = load i64, ptr %21, align 8, !tbaa !11
  %150 = shl i64 %149, %148
  store i64 %150, ptr %21, align 8, !tbaa !11
  %151 = load i64, ptr %21, align 8, !tbaa !11
  %152 = load i64, ptr %20, align 8, !tbaa !11
  %153 = or i64 %152, %151
  store i64 %153, ptr %20, align 8, !tbaa !11
  %154 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %154, ptr %21, align 8, !tbaa !11
  store i64 16711680, ptr %22, align 8, !tbaa !11
  %155 = load i64, ptr %22, align 8, !tbaa !11
  %156 = load i64, ptr %21, align 8, !tbaa !11
  %157 = and i64 %156, %155
  store i64 %157, ptr %21, align 8, !tbaa !11
  store i64 24, ptr %22, align 8, !tbaa !11
  %158 = load i64, ptr %22, align 8, !tbaa !11
  %159 = and i64 %158, 63
  %160 = load i64, ptr %21, align 8, !tbaa !11
  %161 = shl i64 %160, %159
  store i64 %161, ptr %21, align 8, !tbaa !11
  %162 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %162, ptr %22, align 8, !tbaa !11
  store i64 4278190080, ptr %23, align 8, !tbaa !11
  %163 = load i64, ptr %23, align 8, !tbaa !11
  %164 = load i64, ptr %22, align 8, !tbaa !11
  %165 = and i64 %164, %163
  store i64 %165, ptr %22, align 8, !tbaa !11
  store i64 8, ptr %23, align 8, !tbaa !11
  %166 = load i64, ptr %23, align 8, !tbaa !11
  %167 = and i64 %166, 63
  %168 = load i64, ptr %22, align 8, !tbaa !11
  %169 = shl i64 %168, %167
  store i64 %169, ptr %22, align 8, !tbaa !11
  %170 = load i64, ptr %22, align 8, !tbaa !11
  %171 = load i64, ptr %21, align 8, !tbaa !11
  %172 = or i64 %171, %170
  store i64 %172, ptr %21, align 8, !tbaa !11
  %173 = load i64, ptr %21, align 8, !tbaa !11
  %174 = load i64, ptr %20, align 8, !tbaa !11
  %175 = or i64 %174, %173
  store i64 %175, ptr %20, align 8, !tbaa !11
  %176 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %176, ptr %21, align 8, !tbaa !11
  store i64 8, ptr %22, align 8, !tbaa !11
  %177 = load i64, ptr %22, align 8, !tbaa !11
  %178 = and i64 %177, 63
  %179 = load i64, ptr %21, align 8, !tbaa !11
  %180 = lshr i64 %179, %178
  store i64 %180, ptr %21, align 8, !tbaa !11
  store i64 4278190080, ptr %22, align 8, !tbaa !11
  %181 = load i64, ptr %22, align 8, !tbaa !11
  %182 = load i64, ptr %21, align 8, !tbaa !11
  %183 = and i64 %182, %181
  store i64 %183, ptr %21, align 8, !tbaa !11
  %184 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %184, ptr %22, align 8, !tbaa !11
  store i64 24, ptr %23, align 8, !tbaa !11
  %185 = load i64, ptr %23, align 8, !tbaa !11
  %186 = and i64 %185, 63
  %187 = load i64, ptr %22, align 8, !tbaa !11
  %188 = lshr i64 %187, %186
  store i64 %188, ptr %22, align 8, !tbaa !11
  store i64 16711680, ptr %23, align 8, !tbaa !11
  %189 = load i64, ptr %23, align 8, !tbaa !11
  %190 = load i64, ptr %22, align 8, !tbaa !11
  %191 = and i64 %190, %189
  store i64 %191, ptr %22, align 8, !tbaa !11
  %192 = load i64, ptr %22, align 8, !tbaa !11
  %193 = load i64, ptr %21, align 8, !tbaa !11
  %194 = or i64 %193, %192
  store i64 %194, ptr %21, align 8, !tbaa !11
  %195 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %195, ptr %22, align 8, !tbaa !11
  store i64 40, ptr %23, align 8, !tbaa !11
  %196 = load i64, ptr %23, align 8, !tbaa !11
  %197 = and i64 %196, 63
  %198 = load i64, ptr %22, align 8, !tbaa !11
  %199 = lshr i64 %198, %197
  store i64 %199, ptr %22, align 8, !tbaa !11
  store i64 65280, ptr %23, align 8, !tbaa !11
  %200 = load i64, ptr %23, align 8, !tbaa !11
  %201 = load i64, ptr %22, align 8, !tbaa !11
  %202 = and i64 %201, %200
  store i64 %202, ptr %22, align 8, !tbaa !11
  %203 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %203, ptr %23, align 8, !tbaa !11
  store i64 56, ptr %24, align 8, !tbaa !11
  %204 = load i64, ptr %24, align 8, !tbaa !11
  %205 = and i64 %204, 63
  %206 = load i64, ptr %23, align 8, !tbaa !11
  %207 = lshr i64 %206, %205
  store i64 %207, ptr %23, align 8, !tbaa !11
  %208 = load i64, ptr %23, align 8, !tbaa !11
  %209 = load i64, ptr %22, align 8, !tbaa !11
  %210 = or i64 %209, %208
  store i64 %210, ptr %22, align 8, !tbaa !11
  %211 = load i64, ptr %22, align 8, !tbaa !11
  %212 = load i64, ptr %21, align 8, !tbaa !11
  %213 = or i64 %212, %211
  store i64 %213, ptr %21, align 8, !tbaa !11
  %214 = load i64, ptr %21, align 8, !tbaa !11
  %215 = load i64, ptr %20, align 8, !tbaa !11
  %216 = or i64 %215, %214
  store i64 %216, ptr %20, align 8, !tbaa !11
  %217 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %217, ptr %17, align 4, !tbaa !9
  %218 = load i32, ptr %17, align 4, !tbaa !9
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %222

220:                                              ; preds = %103
  %221 = load i64, ptr %19, align 8, !tbaa !11
  br label %224

222:                                              ; preds = %103
  %223 = load i64, ptr %20, align 8, !tbaa !11
  br label %224

224:                                              ; preds = %222, %220
  %225 = phi i64 [ %221, %220 ], [ %223, %222 ]
  store i64 %225, ptr %19, align 8, !tbaa !11
  %226 = load ptr, ptr %7, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 6
  %228 = load i32, ptr %14, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %227, i64 noundef %229, i64 noundef %230)
  br label %306

231:                                              ; preds = %6
  store i32 0, ptr %14, align 4, !tbaa !9
  %232 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %232, ptr %8, align 4, !tbaa !9
  store i32 133213, ptr %15, align 4, !tbaa !9
  %233 = load i32, ptr %15, align 4, !tbaa !9
  %234 = load i32, ptr %14, align 4, !tbaa !9
  %235 = add i32 %234, %233
  store i32 %235, ptr %14, align 4, !tbaa !9
  %236 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %236, ptr %15, align 4, !tbaa !9
  store i32 76981, ptr %16, align 4, !tbaa !9
  %237 = load i32, ptr %16, align 4, !tbaa !9
  %238 = load i32, ptr %15, align 4, !tbaa !9
  %239 = add i32 %238, %237
  store i32 %239, ptr %15, align 4, !tbaa !9
  store i32 83, ptr %16, align 4, !tbaa !9
  %240 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %240, ptr %17, align 4, !tbaa !9
  store i32 106250, ptr %18, align 4, !tbaa !9
  %241 = load i32, ptr %18, align 4, !tbaa !9
  %242 = load i32, ptr %17, align 4, !tbaa !9
  %243 = add i32 %242, %241
  store i32 %243, ptr %17, align 4, !tbaa !9
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = load i32, ptr %15, align 4, !tbaa !9
  %247 = load i32, ptr %16, align 4, !tbaa !9
  %248 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %244, i32 noundef %245, i32 noundef %246, i32 noundef %247, i32 noundef %248)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

249:                                              ; preds = %53
  store i32 0, ptr %14, align 4, !tbaa !9
  %250 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %250, ptr %8, align 4, !tbaa !9
  store i32 205012, ptr %15, align 4, !tbaa !9
  %251 = load i32, ptr %15, align 4, !tbaa !9
  %252 = load i32, ptr %14, align 4, !tbaa !9
  %253 = add i32 %252, %251
  store i32 %253, ptr %14, align 4, !tbaa !9
  %254 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %254, ptr %15, align 4, !tbaa !9
  store i32 82611, ptr %16, align 4, !tbaa !9
  %255 = load i32, ptr %16, align 4, !tbaa !9
  %256 = load i32, ptr %15, align 4, !tbaa !9
  %257 = add i32 %256, %255
  store i32 %257, ptr %15, align 4, !tbaa !9
  store i32 255, ptr %16, align 4, !tbaa !9
  %258 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %258, ptr %17, align 4, !tbaa !9
  store i32 24720, ptr %18, align 4, !tbaa !9
  %259 = load i32, ptr %18, align 4, !tbaa !9
  %260 = load i32, ptr %17, align 4, !tbaa !9
  %261 = add i32 %260, %259
  store i32 %261, ptr %17, align 4, !tbaa !9
  %262 = load ptr, ptr %7, align 8, !tbaa !5
  %263 = load i32, ptr %14, align 4, !tbaa !9
  %264 = load i32, ptr %15, align 4, !tbaa !9
  %265 = load i32, ptr %16, align 4, !tbaa !9
  %266 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %262, i32 noundef %263, i32 noundef %264, i32 noundef %265, i32 noundef %266)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

267:                                              ; preds = %68
  store i32 0, ptr %14, align 4, !tbaa !9
  %268 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %268, ptr %8, align 4, !tbaa !9
  store i32 149041, ptr %15, align 4, !tbaa !9
  %269 = load i32, ptr %15, align 4, !tbaa !9
  %270 = load i32, ptr %14, align 4, !tbaa !9
  %271 = add i32 %270, %269
  store i32 %271, ptr %14, align 4, !tbaa !9
  %272 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %272, ptr %15, align 4, !tbaa !9
  store i32 76981, ptr %16, align 4, !tbaa !9
  %273 = load i32, ptr %16, align 4, !tbaa !9
  %274 = load i32, ptr %15, align 4, !tbaa !9
  %275 = add i32 %274, %273
  store i32 %275, ptr %15, align 4, !tbaa !9
  store i32 147, ptr %16, align 4, !tbaa !9
  %276 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %276, ptr %17, align 4, !tbaa !9
  store i32 34798, ptr %18, align 4, !tbaa !9
  %277 = load i32, ptr %18, align 4, !tbaa !9
  %278 = load i32, ptr %17, align 4, !tbaa !9
  %279 = add i32 %278, %277
  store i32 %279, ptr %17, align 4, !tbaa !9
  %280 = load ptr, ptr %7, align 8, !tbaa !5
  %281 = load i32, ptr %14, align 4, !tbaa !9
  %282 = load i32, ptr %15, align 4, !tbaa !9
  %283 = load i32, ptr %16, align 4, !tbaa !9
  %284 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %280, i32 noundef %281, i32 noundef %282, i32 noundef %283, i32 noundef %284)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

285:                                              ; preds = %87
  store i32 0, ptr %14, align 4, !tbaa !9
  %286 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %286, ptr %8, align 4, !tbaa !9
  store i32 171572, ptr %15, align 4, !tbaa !9
  %287 = load i32, ptr %15, align 4, !tbaa !9
  %288 = load i32, ptr %14, align 4, !tbaa !9
  %289 = add i32 %288, %287
  store i32 %289, ptr %14, align 4, !tbaa !9
  %290 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %290, ptr %15, align 4, !tbaa !9
  store i32 76981, ptr %16, align 4, !tbaa !9
  %291 = load i32, ptr %16, align 4, !tbaa !9
  %292 = load i32, ptr %15, align 4, !tbaa !9
  %293 = add i32 %292, %291
  store i32 %293, ptr %15, align 4, !tbaa !9
  store i32 150, ptr %16, align 4, !tbaa !9
  %294 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %294, ptr %17, align 4, !tbaa !9
  store i32 34798, ptr %18, align 4, !tbaa !9
  %295 = load i32, ptr %18, align 4, !tbaa !9
  %296 = load i32, ptr %17, align 4, !tbaa !9
  %297 = add i32 %296, %295
  store i32 %297, ptr %17, align 4, !tbaa !9
  %298 = load ptr, ptr %7, align 8, !tbaa !5
  %299 = load i32, ptr %14, align 4, !tbaa !9
  %300 = load i32, ptr %15, align 4, !tbaa !9
  %301 = load i32, ptr %16, align 4, !tbaa !9
  %302 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %298, i32 noundef %299, i32 noundef %300, i32 noundef %301, i32 noundef %302)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

303:                                              ; preds = %102
  store i32 51727, ptr %14, align 4, !tbaa !9
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  %305 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef %304, i32 noundef %305)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

306:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret void
}

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20hermes0x3A0x3Avm0x3A0x3AJSDataView0x3A0x3Aset0x3Cunsigned0x20long0x20long0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20long0x20long0x2C0x20bool0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i64 noundef %4, i32 noundef %5) local_unnamed_addr #3 {
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = add nuw nsw i64 %8, 28
  %10 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %9)
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %41, label %11

11:                                               ; preds = %6
  %12 = zext i32 %10 to i64
  %13 = add nuw nsw i64 %12, 3
  %14 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %13)
  %.mask = and i32 %14, 255
  %.not165 = icmp eq i32 %.mask, 33
  br i1 %.not165, label %15, label %42

15:                                               ; preds = %11
  %16 = add nuw nsw i64 %12, 37
  %17 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %16)
  %.not166 = icmp eq i32 %17, 0
  br i1 %.not166, label %43, label %18

18:                                               ; preds = %15
  %19 = add nuw nsw i64 %8, 36
  %20 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %19)
  %21 = add i32 %3, 8
  %22 = icmp ult i32 %20, %21
  br i1 %22, label %44, label %23

23:                                               ; preds = %18
  %24 = zext i32 %2 to i64
  %25 = add nuw nsw i64 %24, 5348
  %26 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %25)
  %.not167 = icmp eq i32 %26, 0
  br i1 %.not167, label %45, label %27

27:                                               ; preds = %23
  %28 = add nuw nsw i64 %8, 32
  %29 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %28)
  %30 = add i32 %2, 1316
  %31 = zext i32 %30 to i64
  %32 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %31)
  %33 = add nuw nsw i64 %12, 28
  %34 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %33)
  %35 = xor i32 %34, %32
  %36 = add i32 %29, %3
  %37 = add i32 %36, %35
  %38 = tail call i64 @llvm.bswap.i64(i64 %4)
  %.not168 = icmp eq i32 %5, 0
  %39 = select i1 %.not168, i64 %38, i64 %4
  %40 = zext i32 %37 to i64
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %40, i64 noundef %39)
  ret void

41:                                               ; preds = %6
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 133213, i32 noundef 76981, i32 noundef 83, i32 noundef 106250) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

42:                                               ; preds = %11
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 205012, i32 noundef 82611, i32 noundef 255, i32 noundef 24720) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

43:                                               ; preds = %15
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 149041, i32 noundef 76981, i32 noundef 147, i32 noundef 34798) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

44:                                               ; preds = %18
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 171572, i32 noundef 76981, i32 noundef 150, i32 noundef 34798) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

45:                                               ; preds = %23
  tail call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef %0, i32 noundef 51727) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable
}

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

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

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

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


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