; 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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20hermes0x3A0x3Avm0x3A0x3AJSDataView0x3A0x3Aset0x3Cunsigned0x20short0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20short0x2C0x20bool0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 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 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
  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 i32 %4, ptr %11, align 4, !tbaa !9
  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
  %19 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %19, ptr %14, align 4, !tbaa !9
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.w2c_hermes, ptr %20, i32 0, i32 6
  %22 = load i32, ptr %14, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = add i64 %23, 28
  %25 = call i32 @i32_load(ptr noundef %21, i64 noundef %24)
  store i32 %25, ptr %14, align 4, !tbaa !9
  %26 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %26, ptr %13, align 4, !tbaa !9
  %27 = load i32, ptr %14, align 4, !tbaa !9
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %159

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

47:                                               ; preds = %29
  br label %177

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

62:                                               ; preds = %48
  br label %195

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

81:                                               ; preds = %63
  br label %213

82:                                               ; preds = %63
  %83 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %83, ptr %14, align 4, !tbaa !9
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.w2c_hermes, ptr %84, i32 0, i32 6
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = add i64 %87, 5348
  %89 = call i32 @i32_load8_u(ptr noundef %85, i64 noundef %88)
  store i32 %89, ptr %14, align 4, !tbaa !9
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = icmp ne i32 %90, 0
  %92 = xor i1 %91, true
  %93 = zext i1 %92 to i32
  store i32 %93, ptr %14, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %82
  br label %231

97:                                               ; preds = %82
  %98 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %98, ptr %14, align 4, !tbaa !9
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.w2c_hermes, ptr %99, i32 0, i32 6
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = add i64 %102, 32
  %104 = call i32 @i32_load(ptr noundef %100, i64 noundef %103)
  store i32 %104, ptr %14, align 4, !tbaa !9
  %105 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %105, ptr %15, align 4, !tbaa !9
  store i32 1316, ptr %16, align 4, !tbaa !9
  %106 = load i32, ptr %16, align 4, !tbaa !9
  %107 = load i32, ptr %15, align 4, !tbaa !9
  %108 = add i32 %107, %106
  store i32 %108, ptr %15, align 4, !tbaa !9
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = call i32 @i32_load(ptr noundef %110, i64 noundef %112)
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %114, ptr %16, 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 %16, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = add i64 %118, 28
  %120 = call i32 @i32_load(ptr noundef %116, i64 noundef %119)
  store i32 %120, ptr %16, align 4, !tbaa !9
  %121 = load i32, ptr %16, align 4, !tbaa !9
  %122 = load i32, ptr %15, align 4, !tbaa !9
  %123 = xor i32 %122, %121
  store i32 %123, ptr %15, align 4, !tbaa !9
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = load i32, ptr %14, align 4, !tbaa !9
  %126 = add i32 %125, %124
  store i32 %126, ptr %14, align 4, !tbaa !9
  %127 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %127, ptr %15, align 4, !tbaa !9
  %128 = load i32, ptr %15, align 4, !tbaa !9
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = add i32 %129, %128
  store i32 %130, ptr %14, align 4, !tbaa !9
  %131 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %131, ptr %15, align 4, !tbaa !9
  %132 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %132, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = and i32 %133, 31
  %135 = load i32, ptr %16, align 4, !tbaa !9
  %136 = shl i32 %135, %134
  store i32 %136, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %137, ptr %17, align 4, !tbaa !9
  store i32 8, ptr %18, align 4, !tbaa !9
  %138 = load i32, ptr %18, align 4, !tbaa !9
  %139 = and i32 %138, 31
  %140 = load i32, ptr %17, align 4, !tbaa !9
  %141 = lshr i32 %140, %139
  store i32 %141, ptr %17, align 4, !tbaa !9
  %142 = load i32, ptr %17, align 4, !tbaa !9
  %143 = load i32, ptr %16, align 4, !tbaa !9
  %144 = or i32 %143, %142
  store i32 %144, ptr %16, align 4, !tbaa !9
  %145 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %145, ptr %17, align 4, !tbaa !9
  %146 = load i32, ptr %17, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %150

148:                                              ; preds = %97
  %149 = load i32, ptr %15, align 4, !tbaa !9
  br label %152

150:                                              ; preds = %97
  %151 = load i32, ptr %16, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %150, %148
  %153 = phi i32 [ %149, %148 ], [ %151, %150 ]
  store i32 %153, ptr %15, align 4, !tbaa !9
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.w2c_hermes, ptr %154, i32 0, i32 6
  %156 = load i32, ptr %14, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %155, i64 noundef %157, i32 noundef %158)
  br label %234

159:                                              ; preds = %6
  store i32 0, ptr %14, align 4, !tbaa !9
  %160 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %160, ptr %8, align 4, !tbaa !9
  store i32 133213, ptr %15, align 4, !tbaa !9
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = add i32 %162, %161
  store i32 %163, ptr %14, align 4, !tbaa !9
  %164 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %164, ptr %15, align 4, !tbaa !9
  store i32 76981, ptr %16, align 4, !tbaa !9
  %165 = load i32, ptr %16, align 4, !tbaa !9
  %166 = load i32, ptr %15, align 4, !tbaa !9
  %167 = add i32 %166, %165
  store i32 %167, ptr %15, align 4, !tbaa !9
  store i32 83, ptr %16, align 4, !tbaa !9
  %168 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %168, ptr %17, align 4, !tbaa !9
  store i32 106250, ptr %18, align 4, !tbaa !9
  %169 = load i32, ptr %18, align 4, !tbaa !9
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = add i32 %170, %169
  store i32 %171, ptr %17, align 4, !tbaa !9
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = load i32, ptr %16, align 4, !tbaa !9
  %176 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %172, i32 noundef %173, i32 noundef %174, i32 noundef %175, i32 noundef %176)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

177:                                              ; preds = %47
  store i32 0, ptr %14, align 4, !tbaa !9
  %178 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %178, ptr %8, align 4, !tbaa !9
  store i32 205012, ptr %15, align 4, !tbaa !9
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = load i32, ptr %14, align 4, !tbaa !9
  %181 = add i32 %180, %179
  store i32 %181, ptr %14, align 4, !tbaa !9
  %182 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %182, ptr %15, align 4, !tbaa !9
  store i32 82611, ptr %16, align 4, !tbaa !9
  %183 = load i32, ptr %16, align 4, !tbaa !9
  %184 = load i32, ptr %15, align 4, !tbaa !9
  %185 = add i32 %184, %183
  store i32 %185, ptr %15, align 4, !tbaa !9
  store i32 255, ptr %16, align 4, !tbaa !9
  %186 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %186, ptr %17, align 4, !tbaa !9
  store i32 24720, ptr %18, align 4, !tbaa !9
  %187 = load i32, ptr %18, align 4, !tbaa !9
  %188 = load i32, ptr %17, align 4, !tbaa !9
  %189 = add i32 %188, %187
  store i32 %189, ptr %17, align 4, !tbaa !9
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = load i32, ptr %14, align 4, !tbaa !9
  %192 = load i32, ptr %15, align 4, !tbaa !9
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %190, i32 noundef %191, i32 noundef %192, i32 noundef %193, i32 noundef %194)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

195:                                              ; preds = %62
  store i32 0, ptr %14, align 4, !tbaa !9
  %196 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %196, ptr %8, align 4, !tbaa !9
  store i32 149041, ptr %15, align 4, !tbaa !9
  %197 = load i32, ptr %15, align 4, !tbaa !9
  %198 = load i32, ptr %14, align 4, !tbaa !9
  %199 = add i32 %198, %197
  store i32 %199, ptr %14, align 4, !tbaa !9
  %200 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %200, ptr %15, align 4, !tbaa !9
  store i32 76981, ptr %16, align 4, !tbaa !9
  %201 = load i32, ptr %16, align 4, !tbaa !9
  %202 = load i32, ptr %15, align 4, !tbaa !9
  %203 = add i32 %202, %201
  store i32 %203, ptr %15, align 4, !tbaa !9
  store i32 147, ptr %16, align 4, !tbaa !9
  %204 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %204, ptr %17, align 4, !tbaa !9
  store i32 34798, ptr %18, align 4, !tbaa !9
  %205 = load i32, ptr %18, align 4, !tbaa !9
  %206 = load i32, ptr %17, align 4, !tbaa !9
  %207 = add i32 %206, %205
  store i32 %207, ptr %17, align 4, !tbaa !9
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = load i32, ptr %14, align 4, !tbaa !9
  %210 = load i32, ptr %15, align 4, !tbaa !9
  %211 = load i32, ptr %16, align 4, !tbaa !9
  %212 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %208, i32 noundef %209, i32 noundef %210, i32 noundef %211, i32 noundef %212)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

213:                                              ; preds = %81
  store i32 0, ptr %14, align 4, !tbaa !9
  %214 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %214, ptr %8, align 4, !tbaa !9
  store i32 171572, ptr %15, align 4, !tbaa !9
  %215 = load i32, ptr %15, align 4, !tbaa !9
  %216 = load i32, ptr %14, align 4, !tbaa !9
  %217 = add i32 %216, %215
  store i32 %217, ptr %14, align 4, !tbaa !9
  %218 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %218, ptr %15, align 4, !tbaa !9
  store i32 76981, ptr %16, align 4, !tbaa !9
  %219 = load i32, ptr %16, align 4, !tbaa !9
  %220 = load i32, ptr %15, align 4, !tbaa !9
  %221 = add i32 %220, %219
  store i32 %221, ptr %15, align 4, !tbaa !9
  store i32 150, ptr %16, align 4, !tbaa !9
  %222 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %222, ptr %17, align 4, !tbaa !9
  store i32 34798, ptr %18, align 4, !tbaa !9
  %223 = load i32, ptr %18, align 4, !tbaa !9
  %224 = load i32, ptr %17, align 4, !tbaa !9
  %225 = add i32 %224, %223
  store i32 %225, ptr %17, align 4, !tbaa !9
  %226 = load ptr, ptr %7, align 8, !tbaa !5
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = load i32, ptr %15, align 4, !tbaa !9
  %229 = load i32, ptr %16, align 4, !tbaa !9
  %230 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %226, i32 noundef %227, i32 noundef %228, i32 noundef %229, i32 noundef %230)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

231:                                              ; preds = %96
  store i32 51727, ptr %14, align 4, !tbaa !9
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef %232, i32 noundef %233)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

234:                                              ; preds = %152
  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}


; 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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20hermes0x3A0x3Avm0x3A0x3AJSDataView0x3A0x3Aset0x3Cunsigned0x20short0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20short0x2C0x20bool0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 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 %43, 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
  %.not123 = icmp eq i32 %.mask, 33
  br i1 %.not123, label %15, label %44

15:                                               ; preds = %11
  %16 = add nuw nsw i64 %12, 37
  %17 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %16)
  %.not124 = icmp eq i32 %17, 0
  br i1 %.not124, label %45, 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, 2
  %22 = icmp ult i32 %20, %21
  br i1 %22, label %46, 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)
  %.not125 = icmp eq i32 %26, 0
  br i1 %.not125, label %47, 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 = shl i32 %4, 8
  %39 = lshr i32 %4, 8
  %40 = or i32 %38, %39
  %.not126 = icmp eq i32 %5, 0
  %41 = select i1 %.not126, i32 %40, i32 %4
  %42 = zext i32 %37 to i64
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %42, i32 noundef %41)
  ret void

43:                                               ; 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) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

44:                                               ; 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) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

45:                                               ; 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) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

46:                                               ; 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) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

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

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 = { nounwind }
attributes #5 = { noreturn nounwind }

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

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


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