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

; 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: noreturn
declare void @wasm_rt_trap(i32 noundef) #1

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

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

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

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

declare void @w2c_hermes_llvh0x3A0x3Allvm_unreachable_internal0x28char0x20const0x2A0x2C0x20char0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

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

27:                                               ; preds = %4
  %28 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = add i64 %32, 4
  %34 = call i32 @i32_load(ptr noundef %30, i64 noundef %33)
  store i32 %34, ptr %9, align 4, !tbaa !9
  %35 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %35, label %39 [
    i32 0, label %36
    i32 1, label %37
    i32 2, label %38
  ]

36:                                               ; preds = %27
  br label %95

37:                                               ; preds = %27
  br label %40

38:                                               ; preds = %27
  br label %61

39:                                               ; preds = %27
  br label %82

40:                                               ; preds = %37
  %41 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %41, ptr %9, align 4, !tbaa !9
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.w2c_hermes, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = add i64 %45, 8
  %47 = call i32 @i32_load(ptr noundef %43, i64 noundef %46)
  store i32 %47, ptr %9, align 4, !tbaa !9
  %48 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %48, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = and i32 %49, 31
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = shl i32 %51, %50
  store i32 %52, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = add i32 %54, %53
  store i32 %55, ptr %9, align 4, !tbaa !9
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.w2c_hermes, ptr %56, i32 0, i32 6
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = call i32 @i32_load16_u(ptr noundef %57, i64 noundef %59)
  store i32 %60, ptr %9, align 4, !tbaa !9
  br label %112

61:                                               ; preds = %38
  %62 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %62, ptr %9, align 4, !tbaa !9
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.w2c_hermes, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = add i64 %66, 8
  %68 = call i32 @i32_load(ptr noundef %64, i64 noundef %67)
  store i32 %68, ptr %9, align 4, !tbaa !9
  %69 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %69, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !9
  %70 = load i32, ptr %11, align 4, !tbaa !9
  %71 = and i32 %70, 31
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = shl i32 %72, %71
  store i32 %73, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = add i32 %75, %74
  store i32 %76, ptr %9, align 4, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.w2c_hermes, ptr %77, i32 0, i32 6
  %79 = load i32, ptr %9, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = call i32 @i32_load(ptr noundef %78, i64 noundef %80)
  store i32 %81, ptr %9, align 4, !tbaa !9
  br label %112

82:                                               ; preds = %39
  store i32 0, ptr %9, align 4, !tbaa !9
  %83 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %83, ptr %6, align 4, !tbaa !9
  store i32 99504, ptr %10, align 4, !tbaa !9
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = load i32, ptr %9, align 4, !tbaa !9
  %86 = add i32 %85, %84
  store i32 %86, ptr %9, align 4, !tbaa !9
  %87 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %87, ptr %10, align 4, !tbaa !9
  store i32 76496, ptr %11, align 4, !tbaa !9
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = add i32 %89, %88
  store i32 %90, ptr %10, align 4, !tbaa !9
  store i32 63, ptr %11, align 4, !tbaa !9
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load i32, ptr %9, align 4, !tbaa !9
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3Allvm_unreachable_internal0x28char0x20const0x2A0x2C0x20char0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %91, i32 noundef %92, i32 noundef %93, i32 noundef %94)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

112:                                              ; preds = %95, %61, %40
  store i32 2, ptr %10, align 4, !tbaa !9
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = load i32, ptr %10, align 4, !tbaa !9
  %115 = icmp uge i32 %113, %114
  %116 = zext i1 %115 to i32
  store i32 %116, ptr %9, align 4, !tbaa !9
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %112
  br label %258

120:                                              ; preds = %112
  %121 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %121, ptr %9, align 4, !tbaa !9
  %122 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %122, ptr %10, align 4, !tbaa !9
  %123 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %123, ptr %11, align 4, !tbaa !9
  store i32 2, ptr %12, align 4, !tbaa !9
  %124 = load i32, ptr %12, align 4, !tbaa !9
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = add i32 %125, %124
  store i32 %126, ptr %11, align 4, !tbaa !9
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = load i32, ptr %9, align 4, !tbaa !9
  %129 = load i32, ptr %10, align 4, !tbaa !9
  %130 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3ACompactArray0x3A0x3Aset0x28unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %127, i32 noundef %128, i32 noundef %129, i32 noundef %130)
  %131 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %131, ptr %9, align 4, !tbaa !9
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.w2c_hermes, ptr %132, i32 0, i32 6
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = call i32 @i32_load(ptr noundef %133, i64 noundef %135)
  store i32 %136, ptr %9, align 4, !tbaa !9
  %137 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %137, ptr %10, align 4, !tbaa !9
  %138 = load i32, ptr %9, align 4, !tbaa !9
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = icmp ule i32 %138, %139
  %141 = zext i1 %140 to i32
  store i32 %141, ptr %9, align 4, !tbaa !9
  %142 = load i32, ptr %9, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %145

144:                                              ; preds = %120
  br label %276

145:                                              ; preds = %120
  %146 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %146, ptr %9, align 4, !tbaa !9
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.w2c_hermes, ptr %147, i32 0, i32 6
  %149 = load i32, ptr %9, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = add i64 %150, 4
  %152 = call i32 @i32_load(ptr noundef %148, i64 noundef %151)
  store i32 %152, ptr %9, align 4, !tbaa !9
  %153 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %153, label %157 [
    i32 0, label %154
    i32 1, label %155
    i32 2, label %156
  ]

154:                                              ; preds = %145
  br label %213

155:                                              ; preds = %145
  br label %158

156:                                              ; preds = %145
  br label %179

157:                                              ; preds = %145
  br label %200

158:                                              ; preds = %155
  %159 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %159, ptr %9, align 4, !tbaa !9
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %9, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = add i64 %163, 8
  %165 = call i32 @i32_load(ptr noundef %161, i64 noundef %164)
  store i32 %165, ptr %9, align 4, !tbaa !9
  %166 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %166, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = and i32 %167, 31
  %169 = load i32, ptr %10, align 4, !tbaa !9
  %170 = shl i32 %169, %168
  store i32 %170, ptr %10, align 4, !tbaa !9
  %171 = load i32, ptr %10, align 4, !tbaa !9
  %172 = load i32, ptr %9, align 4, !tbaa !9
  %173 = add i32 %172, %171
  store i32 %173, ptr %9, align 4, !tbaa !9
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 6
  %176 = load i32, ptr %9, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = call i32 @i32_load16_u(ptr noundef %175, i64 noundef %177)
  store i32 %178, ptr %9, align 4, !tbaa !9
  br label %230

179:                                              ; preds = %156
  %180 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %180, ptr %9, align 4, !tbaa !9
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.w2c_hermes, ptr %181, i32 0, i32 6
  %183 = load i32, ptr %9, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = add i64 %184, 8
  %186 = call i32 @i32_load(ptr noundef %182, i64 noundef %185)
  store i32 %186, ptr %9, align 4, !tbaa !9
  %187 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %187, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !9
  %188 = load i32, ptr %11, align 4, !tbaa !9
  %189 = and i32 %188, 31
  %190 = load i32, ptr %10, align 4, !tbaa !9
  %191 = shl i32 %190, %189
  store i32 %191, ptr %10, align 4, !tbaa !9
  %192 = load i32, ptr %10, align 4, !tbaa !9
  %193 = load i32, ptr %9, align 4, !tbaa !9
  %194 = add i32 %193, %192
  store i32 %194, ptr %9, align 4, !tbaa !9
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.w2c_hermes, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %9, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = call i32 @i32_load(ptr noundef %196, i64 noundef %198)
  store i32 %199, ptr %9, align 4, !tbaa !9
  br label %230

200:                                              ; preds = %157
  store i32 0, ptr %9, align 4, !tbaa !9
  %201 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %201, ptr %6, align 4, !tbaa !9
  store i32 99504, ptr %10, align 4, !tbaa !9
  %202 = load i32, ptr %10, align 4, !tbaa !9
  %203 = load i32, ptr %9, align 4, !tbaa !9
  %204 = add i32 %203, %202
  store i32 %204, ptr %9, align 4, !tbaa !9
  %205 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %205, ptr %10, align 4, !tbaa !9
  store i32 76496, ptr %11, align 4, !tbaa !9
  %206 = load i32, ptr %11, align 4, !tbaa !9
  %207 = load i32, ptr %10, align 4, !tbaa !9
  %208 = add i32 %207, %206
  store i32 %208, ptr %10, align 4, !tbaa !9
  store i32 63, ptr %11, align 4, !tbaa !9
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = load i32, ptr %9, align 4, !tbaa !9
  %211 = load i32, ptr %10, align 4, !tbaa !9
  %212 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3Allvm_unreachable_internal0x28char0x20const0x2A0x2C0x20char0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %209, i32 noundef %210, i32 noundef %211, i32 noundef %212)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

213:                                              ; preds = %154
  %214 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %214, ptr %9, align 4, !tbaa !9
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.w2c_hermes, ptr %215, i32 0, i32 6
  %217 = load i32, ptr %9, align 4, !tbaa !9
  %218 = zext i32 %217 to i64
  %219 = add i64 %218, 8
  %220 = call i32 @i32_load(ptr noundef %216, i64 noundef %219)
  store i32 %220, ptr %9, align 4, !tbaa !9
  %221 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %221, ptr %10, align 4, !tbaa !9
  %222 = load i32, ptr %10, align 4, !tbaa !9
  %223 = load i32, ptr %9, align 4, !tbaa !9
  %224 = add i32 %223, %222
  store i32 %224, ptr %9, align 4, !tbaa !9
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.w2c_hermes, ptr %225, i32 0, i32 6
  %227 = load i32, ptr %9, align 4, !tbaa !9
  %228 = zext i32 %227 to i64
  %229 = call i32 @i32_load8_u(ptr noundef %226, i64 noundef %228)
  store i32 %229, ptr %9, align 4, !tbaa !9
  br label %230

230:                                              ; preds = %213, %179, %158
  %231 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %231, ptr %6, align 4, !tbaa !9
  store i32 1, ptr %10, align 4, !tbaa !9
  %232 = load i32, ptr %9, align 4, !tbaa !9
  %233 = load i32, ptr %10, align 4, !tbaa !9
  %234 = icmp ule i32 %232, %233
  %235 = zext i1 %234 to i32
  store i32 %235, ptr %9, align 4, !tbaa !9
  %236 = load i32, ptr %9, align 4, !tbaa !9
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %238, label %239

238:                                              ; preds = %230
  br label %294

239:                                              ; preds = %230
  br label %312

240:                                              ; preds = %4
  store i32 0, ptr %9, align 4, !tbaa !9
  %241 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %241, ptr %6, align 4, !tbaa !9
  store i32 108064, ptr %10, align 4, !tbaa !9
  %242 = load i32, ptr %10, align 4, !tbaa !9
  %243 = load i32, ptr %9, align 4, !tbaa !9
  %244 = add i32 %243, %242
  store i32 %244, ptr %9, align 4, !tbaa !9
  %245 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %245, ptr %10, align 4, !tbaa !9
  store i32 76496, ptr %11, align 4, !tbaa !9
  %246 = load i32, ptr %11, align 4, !tbaa !9
  %247 = load i32, ptr %10, align 4, !tbaa !9
  %248 = add i32 %247, %246
  store i32 %248, ptr %10, align 4, !tbaa !9
  store i32 54, ptr %11, align 4, !tbaa !9
  %249 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %249, ptr %12, align 4, !tbaa !9
  store i32 35614, ptr %13, align 4, !tbaa !9
  %250 = load i32, ptr %13, align 4, !tbaa !9
  %251 = load i32, ptr %12, align 4, !tbaa !9
  %252 = add i32 %251, %250
  store i32 %252, ptr %12, align 4, !tbaa !9
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = load i32, ptr %9, align 4, !tbaa !9
  %255 = load i32, ptr %10, align 4, !tbaa !9
  %256 = load i32, ptr %11, align 4, !tbaa !9
  %257 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %253, i32 noundef %254, i32 noundef %255, i32 noundef %256, i32 noundef %257)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

258:                                              ; preds = %119
  store i32 0, ptr %9, align 4, !tbaa !9
  %259 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %259, ptr %6, align 4, !tbaa !9
  store i32 114971, ptr %10, align 4, !tbaa !9
  %260 = load i32, ptr %10, align 4, !tbaa !9
  %261 = load i32, ptr %9, align 4, !tbaa !9
  %262 = add i32 %261, %260
  store i32 %262, ptr %9, align 4, !tbaa !9
  %263 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %263, ptr %10, align 4, !tbaa !9
  store i32 76496, ptr %11, align 4, !tbaa !9
  %264 = load i32, ptr %11, align 4, !tbaa !9
  %265 = load i32, ptr %10, align 4, !tbaa !9
  %266 = add i32 %265, %264
  store i32 %266, ptr %10, align 4, !tbaa !9
  store i32 145, ptr %11, align 4, !tbaa !9
  %267 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %267, ptr %12, align 4, !tbaa !9
  store i32 34798, ptr %13, align 4, !tbaa !9
  %268 = load i32, ptr %13, align 4, !tbaa !9
  %269 = load i32, ptr %12, align 4, !tbaa !9
  %270 = add i32 %269, %268
  store i32 %270, ptr %12, align 4, !tbaa !9
  %271 = load ptr, ptr %5, align 8, !tbaa !5
  %272 = load i32, ptr %9, align 4, !tbaa !9
  %273 = load i32, ptr %10, align 4, !tbaa !9
  %274 = load i32, ptr %11, align 4, !tbaa !9
  %275 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %271, i32 noundef %272, i32 noundef %273, i32 noundef %274, i32 noundef %275)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

276:                                              ; preds = %144
  store i32 0, ptr %9, align 4, !tbaa !9
  %277 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %277, ptr %6, align 4, !tbaa !9
  store i32 108064, ptr %10, align 4, !tbaa !9
  %278 = load i32, ptr %10, align 4, !tbaa !9
  %279 = load i32, ptr %9, align 4, !tbaa !9
  %280 = add i32 %279, %278
  store i32 %280, ptr %9, align 4, !tbaa !9
  %281 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %281, ptr %10, align 4, !tbaa !9
  store i32 76496, ptr %11, align 4, !tbaa !9
  %282 = load i32, ptr %11, align 4, !tbaa !9
  %283 = load i32, ptr %10, align 4, !tbaa !9
  %284 = add i32 %283, %282
  store i32 %284, ptr %10, align 4, !tbaa !9
  store i32 54, ptr %11, align 4, !tbaa !9
  %285 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %285, ptr %12, align 4, !tbaa !9
  store i32 35614, ptr %13, align 4, !tbaa !9
  %286 = load i32, ptr %13, align 4, !tbaa !9
  %287 = load i32, ptr %12, align 4, !tbaa !9
  %288 = add i32 %287, %286
  store i32 %288, ptr %12, align 4, !tbaa !9
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = load i32, ptr %9, align 4, !tbaa !9
  %291 = load i32, ptr %10, align 4, !tbaa !9
  %292 = load i32, ptr %11, align 4, !tbaa !9
  %293 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %289, i32 noundef %290, i32 noundef %291, i32 noundef %292, i32 noundef %293)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

294:                                              ; preds = %238
  store i32 0, ptr %9, align 4, !tbaa !9
  %295 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %295, ptr %6, align 4, !tbaa !9
  store i32 114972, ptr %10, align 4, !tbaa !9
  %296 = load i32, ptr %10, align 4, !tbaa !9
  %297 = load i32, ptr %9, align 4, !tbaa !9
  %298 = add i32 %297, %296
  store i32 %298, ptr %9, align 4, !tbaa !9
  %299 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %299, ptr %10, align 4, !tbaa !9
  store i32 76496, ptr %11, align 4, !tbaa !9
  %300 = load i32, ptr %11, align 4, !tbaa !9
  %301 = load i32, ptr %10, align 4, !tbaa !9
  %302 = add i32 %301, %300
  store i32 %302, ptr %10, align 4, !tbaa !9
  store i32 148, ptr %11, align 4, !tbaa !9
  %303 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %303, ptr %12, align 4, !tbaa !9
  store i32 34798, ptr %13, align 4, !tbaa !9
  %304 = load i32, ptr %13, align 4, !tbaa !9
  %305 = load i32, ptr %12, align 4, !tbaa !9
  %306 = add i32 %305, %304
  store i32 %306, ptr %12, align 4, !tbaa !9
  %307 = load ptr, ptr %5, align 8, !tbaa !5
  %308 = load i32, ptr %9, align 4, !tbaa !9
  %309 = load i32, ptr %10, align 4, !tbaa !9
  %310 = load i32, ptr %11, align 4, !tbaa !9
  %311 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %307, i32 noundef %308, i32 noundef %309, i32 noundef %310, i32 noundef %311)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

312:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

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

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

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

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

declare void @w2c_hermes_llvh0x3A0x3Allvm_unreachable_internal0x28char0x20const0x2A0x2C0x20char0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3ACompactTable0x3A0x3Aset0x28unsigned0x20int0x2C0x20unsigned0x20int0x29(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 = icmp ugt i32 %7, %2
  br i1 %8, label %9, label %63

9:                                                ; preds = %4
  %10 = add nuw nsw i64 %6, 4
  %11 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %10)
  switch i32 %11, label %26 [
    i32 0, label %27
    i32 1, label %12
    i32 2, label %19
  ]

12:                                               ; preds = %9
  %13 = add nuw nsw i64 %6, 8
  %14 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %13)
  %15 = shl i32 %2, 1
  %16 = add i32 %14, %15
  %17 = zext i32 %16 to i64
  %18 = tail call i32 @i32_load16_u(ptr noundef nonnull %5, i64 noundef %17)
  br label %33

19:                                               ; preds = %9
  %20 = add nuw nsw i64 %6, 8
  %21 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %20)
  %22 = shl i32 %2, 2
  %23 = add i32 %21, %22
  %24 = zext i32 %23 to i64
  %25 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %24)
  br label %33

26:                                               ; preds = %9
  tail call void @w2c_hermes_llvh0x3A0x3Allvm_unreachable_internal0x28char0x20const0x2A0x2C0x20char0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef 99504, i32 noundef 76496, i32 noundef 63) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

27:                                               ; preds = %9
  %28 = add nuw nsw i64 %6, 8
  %29 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %28)
  %30 = add i32 %29, %2
  %31 = zext i32 %30 to i64
  %32 = tail call i32 @i32_load8_u(ptr noundef nonnull %5, i64 noundef %31)
  br label %33

33:                                               ; preds = %27, %19, %12
  %.0 = phi i32 [ %25, %19 ], [ %18, %12 ], [ %32, %27 ]
  %34 = icmp ugt i32 %.0, 1
  br i1 %34, label %64, label %35

35:                                               ; preds = %33
  %36 = add i32 %3, 2
  tail call void @w2c_hermes_hermes0x3A0x3ACompactArray0x3A0x3Aset0x28unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %36)
  %37 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %6)
  %.not = icmp ugt i32 %37, %2
  br i1 %.not, label %38, label %65

38:                                               ; preds = %35
  %39 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %10)
  switch i32 %39, label %54 [
    i32 0, label %55
    i32 1, label %40
    i32 2, label %47
  ]

40:                                               ; preds = %38
  %41 = add nuw nsw i64 %6, 8
  %42 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %41)
  %43 = shl i32 %2, 1
  %44 = add i32 %42, %43
  %45 = zext i32 %44 to i64
  %46 = tail call i32 @i32_load16_u(ptr noundef nonnull %5, i64 noundef %45)
  br label %61

47:                                               ; preds = %38
  %48 = add nuw nsw i64 %6, 8
  %49 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %48)
  %50 = shl i32 %2, 2
  %51 = add i32 %49, %50
  %52 = zext i32 %51 to i64
  %53 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %52)
  br label %61

54:                                               ; preds = %38
  tail call void @w2c_hermes_llvh0x3A0x3Allvm_unreachable_internal0x28char0x20const0x2A0x2C0x20char0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef 99504, i32 noundef 76496, i32 noundef 63) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

55:                                               ; preds = %38
  %56 = add nuw nsw i64 %6, 8
  %57 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %56)
  %58 = add i32 %57, %2
  %59 = zext i32 %58 to i64
  %60 = tail call i32 @i32_load8_u(ptr noundef nonnull %5, i64 noundef %59)
  br label %61

61:                                               ; preds = %55, %47, %40
  %.1 = phi i32 [ %53, %47 ], [ %46, %40 ], [ %60, %55 ]
  %62 = icmp ult i32 %.1, 2
  br i1 %62, label %66, label %67

63:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 108064, i32 noundef 76496, i32 noundef 54, i32 noundef 35614)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

64:                                               ; preds = %33
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 114971, i32 noundef 76496, i32 noundef 145, i32 noundef 34798)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

65:                                               ; preds = %35
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 108064, i32 noundef 76496, i32 noundef 54, i32 noundef 35614)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

66:                                               ; preds = %61
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 114972, i32 noundef 76496, i32 noundef 148, i32 noundef 34798)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

67:                                               ; preds = %61
  ret void
}

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

attributes #0 = { 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 #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 }
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