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

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

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

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

; Function Attrs: 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: nounwind uwtable
define dso_local i32 @w2c_hermes_llvh0x3A0x3ADenseMapBase0x3Cllvh0x3A0x3ADenseMap0x3Chermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asteady_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Chermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Chermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asteady_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x3E0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asteady_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Chermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Chermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asteady_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x3E0x3E0x3A0x3Aerase0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x20const0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, 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 %5, align 4, !tbaa !9
  store i32 %19, ptr %14, align 4, !tbaa !9
  %20 = load ptr, ptr %4, 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, 12
  %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 %7, align 4, !tbaa !9
  %27 = load i32, ptr %14, align 4, !tbaa !9
  %28 = icmp ne i32 %27, 0
  %29 = xor i1 %28, true
  %30 = zext i1 %29 to i32
  store i32 %30, ptr %14, align 4, !tbaa !9
  %31 = load i32, ptr %14, align 4, !tbaa !9
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %3
  br label %220

34:                                               ; preds = %3
  %35 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %35, ptr %14, align 4, !tbaa !9
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.w2c_hermes, ptr %36, i32 0, i32 6
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = call i32 @i32_load(ptr noundef %37, i64 noundef %39)
  store i32 %40, ptr %14, align 4, !tbaa !9
  %41 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %41, ptr %6, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %42 = load i32, ptr %15, align 4, !tbaa !9
  %43 = load i32, ptr %14, align 4, !tbaa !9
  %44 = add i32 %43, %42
  store i32 %44, ptr %14, align 4, !tbaa !9
  %45 = load i32, ptr %14, align 4, !tbaa !9
  switch i32 %45, label %55 [
    i32 0, label %46
    i32 1, label %47
    i32 2, label %48
    i32 3, label %49
    i32 4, label %50
    i32 5, label %51
    i32 6, label %52
    i32 7, label %53
    i32 8, label %54
  ]

46:                                               ; preds = %34
  br label %56

47:                                               ; preds = %34
  br label %74

48:                                               ; preds = %34
  br label %74

49:                                               ; preds = %34
  br label %74

50:                                               ; preds = %34
  br label %74

51:                                               ; preds = %34
  br label %74

52:                                               ; preds = %34
  br label %74

53:                                               ; preds = %34
  br label %74

54:                                               ; preds = %34
  br label %56

55:                                               ; preds = %34
  br label %74

56:                                               ; preds = %54, %46
  store i32 0, ptr %14, align 4, !tbaa !9
  %57 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %57, ptr %5, align 4, !tbaa !9
  store i32 204136, ptr %15, align 4, !tbaa !9
  %58 = load i32, ptr %15, align 4, !tbaa !9
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = add i32 %59, %58
  store i32 %60, ptr %14, align 4, !tbaa !9
  %61 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %61, ptr %15, align 4, !tbaa !9
  store i32 81389, ptr %16, align 4, !tbaa !9
  %62 = load i32, ptr %16, align 4, !tbaa !9
  %63 = load i32, ptr %15, align 4, !tbaa !9
  %64 = add i32 %63, %62
  store i32 %64, ptr %15, align 4, !tbaa !9
  store i32 597, ptr %16, align 4, !tbaa !9
  %65 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %65, ptr %17, align 4, !tbaa !9
  store i32 48929, ptr %18, align 4, !tbaa !9
  %66 = load i32, ptr %18, align 4, !tbaa !9
  %67 = load i32, ptr %17, align 4, !tbaa !9
  %68 = add i32 %67, %66
  store i32 %68, ptr %17, align 4, !tbaa !9
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = load i32, ptr %15, align 4, !tbaa !9
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %72, i32 noundef %73)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

74:                                               ; preds = %55, %53, %52, %51, %50, %49, %48, %47
  %75 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %75, ptr %14, align 4, !tbaa !9
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.w2c_hermes, ptr %76, i32 0, i32 6
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = call i32 @i32_load(ptr noundef %77, i64 noundef %79)
  store i32 %80, ptr %14, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %81, ptr %12, align 4, !tbaa !9
  %82 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %82, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %83 = load i32, ptr %16, align 4, !tbaa !9
  %84 = load i32, ptr %15, align 4, !tbaa !9
  %85 = sub i32 %84, %83
  store i32 %85, ptr %15, align 4, !tbaa !9
  %86 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %86, ptr %13, align 4, !tbaa !9
  %87 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %87, ptr %16, align 4, !tbaa !9
  store i32 4, ptr %17, align 4, !tbaa !9
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = and i32 %88, 31
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = lshr i32 %90, %89
  store i32 %91, ptr %16, align 4, !tbaa !9
  %92 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %92, ptr %17, align 4, !tbaa !9
  store i32 9, ptr %18, align 4, !tbaa !9
  %93 = load i32, ptr %18, align 4, !tbaa !9
  %94 = and i32 %93, 31
  %95 = load i32, ptr %17, align 4, !tbaa !9
  %96 = lshr i32 %95, %94
  store i32 %96, ptr %17, align 4, !tbaa !9
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = load i32, ptr %16, align 4, !tbaa !9
  %99 = xor i32 %98, %97
  store i32 %99, ptr %16, align 4, !tbaa !9
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = and i32 %101, %100
  store i32 %102, ptr %15, align 4, !tbaa !9
  %103 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %103, ptr %10, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %104 = load i32, ptr %16, align 4, !tbaa !9
  %105 = and i32 %104, 31
  %106 = load i32, ptr %15, align 4, !tbaa !9
  %107 = shl i32 %106, %105
  store i32 %107, ptr %15, align 4, !tbaa !9
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = load i32, ptr %14, align 4, !tbaa !9
  %110 = add i32 %109, %108
  store i32 %110, ptr %14, align 4, !tbaa !9
  %111 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %111, ptr %7, align 4, !tbaa !9
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.w2c_hermes, ptr %112, i32 0, i32 6
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = call i32 @i32_load(ptr noundef %113, i64 noundef %115)
  store i32 %116, ptr %14, align 4, !tbaa !9
  %117 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %117, ptr %11, align 4, !tbaa !9
  %118 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %118, ptr %15, align 4, !tbaa !9
  %119 = load i32, ptr %14, align 4, !tbaa !9
  %120 = load i32, ptr %15, align 4, !tbaa !9
  %121 = icmp ne i32 %119, %120
  %122 = zext i1 %121 to i32
  store i32 %122, ptr %14, align 4, !tbaa !9
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %178

125:                                              ; preds = %74
  store i32 1, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %126, ptr %8, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %176, %125
  %128 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %128, ptr %14, align 4, !tbaa !9
  store i32 -8, ptr %15, align 4, !tbaa !9
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = icmp eq i32 %129, %130
  %132 = zext i1 %131 to i32
  store i32 %132, ptr %14, align 4, !tbaa !9
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %136

135:                                              ; preds = %127
  br label %220

136:                                              ; preds = %127
  %137 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %137, ptr %14, align 4, !tbaa !9
  %138 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %138, ptr %15, align 4, !tbaa !9
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = add i32 %140, %139
  store i32 %141, ptr %14, align 4, !tbaa !9
  %142 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %142, ptr %7, align 4, !tbaa !9
  %143 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %143, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %144 = load i32, ptr %15, align 4, !tbaa !9
  %145 = load i32, ptr %14, align 4, !tbaa !9
  %146 = add i32 %145, %144
  store i32 %146, ptr %14, align 4, !tbaa !9
  %147 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %147, ptr %8, align 4, !tbaa !9
  %148 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %148, ptr %14, align 4, !tbaa !9
  %149 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %149, ptr %15, align 4, !tbaa !9
  %150 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %150, ptr %16, align 4, !tbaa !9
  %151 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %151, ptr %17, align 4, !tbaa !9
  %152 = load i32, ptr %17, align 4, !tbaa !9
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = and i32 %153, %152
  store i32 %154, ptr %16, align 4, !tbaa !9
  %155 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %155, ptr %10, align 4, !tbaa !9
  store i32 4, ptr %17, align 4, !tbaa !9
  %156 = load i32, ptr %17, align 4, !tbaa !9
  %157 = and i32 %156, 31
  %158 = load i32, ptr %16, align 4, !tbaa !9
  %159 = shl i32 %158, %157
  store i32 %159, ptr %16, align 4, !tbaa !9
  %160 = load i32, ptr %16, align 4, !tbaa !9
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = add i32 %161, %160
  store i32 %162, ptr %15, align 4, !tbaa !9
  %163 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %163, ptr %7, align 4, !tbaa !9
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.w2c_hermes, ptr %164, i32 0, i32 6
  %166 = load i32, ptr %15, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = call i32 @i32_load(ptr noundef %165, i64 noundef %167)
  store i32 %168, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %169, ptr %11, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = load i32, ptr %15, align 4, !tbaa !9
  %172 = icmp ne i32 %170, %171
  %173 = zext i1 %172 to i32
  store i32 %173, ptr %14, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %177

176:                                              ; preds = %136
  br label %127

177:                                              ; preds = %136
  br label %178

178:                                              ; preds = %177, %74
  %179 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %179, ptr %14, align 4, !tbaa !9
  store i32 -16, ptr %15, align 4, !tbaa !9
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.w2c_hermes, ptr %180, i32 0, i32 6
  %182 = load i32, ptr %14, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %181, i64 noundef %183, i32 noundef %184)
  %185 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %185, ptr %14, align 4, !tbaa !9
  %186 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %186, ptr %15, align 4, !tbaa !9
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.w2c_hermes, ptr %187, i32 0, i32 6
  %189 = load i32, ptr %15, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = add i64 %190, 4
  %192 = call i32 @i32_load(ptr noundef %188, i64 noundef %191)
  store i32 %192, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = load i32, ptr %15, align 4, !tbaa !9
  %195 = sub i32 %194, %193
  store i32 %195, ptr %15, align 4, !tbaa !9
  %196 = load ptr, ptr %4, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.w2c_hermes, ptr %196, i32 0, i32 6
  %198 = load i32, ptr %14, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = add i64 %199, 4
  %201 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %197, i64 noundef %200, i32 noundef %201)
  store i32 1, ptr %14, align 4, !tbaa !9
  %202 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %202, ptr %9, align 4, !tbaa !9
  %203 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %203, ptr %14, align 4, !tbaa !9
  %204 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %204, ptr %15, align 4, !tbaa !9
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.w2c_hermes, ptr %205, i32 0, i32 6
  %207 = load i32, ptr %15, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = add i64 %208, 8
  %210 = call i32 @i32_load(ptr noundef %206, i64 noundef %209)
  store i32 %210, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %211 = load i32, ptr %16, align 4, !tbaa !9
  %212 = load i32, ptr %15, align 4, !tbaa !9
  %213 = add i32 %212, %211
  store i32 %213, ptr %15, align 4, !tbaa !9
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.w2c_hermes, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %14, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = add i64 %217, 8
  %219 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %215, i64 noundef %218, i32 noundef %219)
  br label %220

220:                                              ; preds = %178, %135, %33
  %221 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %221, ptr %14, align 4, !tbaa !9
  %222 = load i32, ptr %14, align 4, !tbaa !9
  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
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 %222
}

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 void @i32_store(ptr noundef, i64 noundef, i32 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: nounwind uwtable
define dso_local range(i32 0, 2) i32 @w2c_hermes_llvh0x3A0x3ADenseMapBase0x3Cllvh0x3A0x3ADenseMap0x3Chermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asteady_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Chermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Chermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asteady_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x3E0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asteady_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Chermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Chermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asteady_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x3E0x3E0x3A0x3Aerase0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x2A0x20const0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %1 to i64
  %6 = add nuw nsw i64 %5, 12
  %7 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %.loopexit, label %8

8:                                                ; preds = %3
  %9 = zext i32 %2 to i64
  %10 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %9)
  switch i32 %10, label %12 [
    i32 -16, label %11
    i32 -8, label %11
  ]

11:                                               ; preds = %8, %8
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 204136, i32 noundef 81389, i32 noundef 597, i32 noundef 48929) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

12:                                               ; preds = %8
  %13 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  %14 = add i32 %7, -1
  %15 = lshr i32 %10, 4
  %16 = lshr i32 %10, 9
  %17 = xor i32 %15, %16
  %18 = and i32 %17, %14
  %19 = shl nuw i32 %18, 4
  %20 = add i32 %13, %19
  %21 = zext i32 %20 to i64
  %22 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %21)
  %.not121 = icmp eq i32 %22, %10
  br i1 %.not121, label %.loopexit123, label %.preheader

.preheader:                                       ; preds = %12, %24
  %.0116 = phi i32 [ %26, %24 ], [ 1, %12 ]
  %.0114 = phi i32 [ %27, %24 ], [ %18, %12 ]
  %.0 = phi i32 [ %31, %24 ], [ %22, %12 ]
  %23 = icmp eq i32 %.0, -8
  br i1 %23, label %.loopexit, label %24

24:                                               ; preds = %.preheader
  %25 = add i32 %.0114, %.0116
  %26 = add i32 %.0116, 1
  %27 = and i32 %25, %14
  %28 = shl i32 %27, 4
  %29 = add i32 %28, %13
  %30 = zext i32 %29 to i64
  %31 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %30)
  %.not122 = icmp eq i32 %10, %31
  br i1 %.not122, label %.loopexit123, label %.preheader

.loopexit123:                                     ; preds = %24, %12
  %.pre-phi = phi i64 [ %21, %12 ], [ %30, %24 ]
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %.pre-phi, i32 noundef -16)
  %32 = add nuw nsw i64 %5, 4
  %33 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %32)
  %34 = add i32 %33, -1
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %32, i32 noundef %34)
  %35 = add nuw nsw i64 %5, 8
  %36 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %35)
  %37 = add i32 %36, 1
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %35, i32 noundef %37)
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader, %3, %.loopexit123
  %.0115 = phi i32 [ 0, %3 ], [ 1, %.loopexit123 ], [ 0, %.preheader ]
  ret i32 %.0115
}

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: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass