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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #2

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABCProviderFromBuffer0x3A0x3AgetExceptionTableAndDebugOffsets0x28unsigned0x20int0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #5 {
  %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 i64, align 8
  %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 i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  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) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %22 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %22, ptr %13, align 4, !tbaa !9
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.w2c_hermes, ptr %23, i32 0, i32 6
  %25 = load i32, ptr %13, align 4, !tbaa !9
  %26 = zext i32 %25 to i64
  %27 = add i64 %26, 152
  %28 = call i32 @i32_load(ptr noundef %24, i64 noundef %27)
  store i32 %28, ptr %13, align 4, !tbaa !9
  %29 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %29, ptr %14, align 4, !tbaa !9
  store i32 4, ptr %15, align 4, !tbaa !9
  %30 = load i32, ptr %15, align 4, !tbaa !9
  %31 = and i32 %30, 31
  %32 = load i32, ptr %14, align 4, !tbaa !9
  %33 = shl i32 %32, %31
  store i32 %33, ptr %14, align 4, !tbaa !9
  %34 = load i32, ptr %14, align 4, !tbaa !9
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = add i32 %35, %34
  store i32 %36, ptr %13, align 4, !tbaa !9
  %37 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %37, ptr %8, align 4, !tbaa !9
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %13, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = add i64 %41, 8
  %43 = call i64 @i64_load32_u(ptr noundef %39, i64 noundef %42)
  store i64 %43, ptr %18, align 8, !tbaa !11
  %44 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %44, ptr %14, align 4, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = add i64 %48, 14
  %50 = call i64 @i64_load8_u(ptr noundef %46, i64 noundef %49)
  store i64 %50, ptr %19, align 8, !tbaa !11
  store i64 48, ptr %20, align 8, !tbaa !11
  %51 = load i64, ptr %20, align 8, !tbaa !11
  %52 = and i64 %51, 63
  %53 = load i64, ptr %19, align 8, !tbaa !11
  %54 = shl i64 %53, %52
  store i64 %54, ptr %19, align 8, !tbaa !11
  %55 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %55, ptr %15, 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 %15, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = add i64 %59, 12
  %61 = call i64 @i64_load16_u(ptr noundef %57, i64 noundef %60)
  store i64 %61, ptr %20, align 8, !tbaa !11
  store i64 32, ptr %21, align 8, !tbaa !11
  %62 = load i64, ptr %21, align 8, !tbaa !11
  %63 = and i64 %62, 63
  %64 = load i64, ptr %20, align 8, !tbaa !11
  %65 = shl i64 %64, %63
  store i64 %65, ptr %20, align 8, !tbaa !11
  %66 = load i64, ptr %20, align 8, !tbaa !11
  %67 = load i64, ptr %19, align 8, !tbaa !11
  %68 = or i64 %67, %66
  store i64 %68, ptr %19, align 8, !tbaa !11
  %69 = load i64, ptr %19, align 8, !tbaa !11
  %70 = load i64, ptr %18, align 8, !tbaa !11
  %71 = or i64 %70, %69
  store i64 %71, ptr %18, align 8, !tbaa !11
  %72 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %72, ptr %12, align 8, !tbaa !11
  %73 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %73, ptr %13, align 4, !tbaa !9
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.w2c_hermes, ptr %74, i32 0, i32 6
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = add i64 %77, 148
  %79 = call i32 @i32_load(ptr noundef %75, i64 noundef %78)
  store i32 %79, ptr %13, align 4, !tbaa !9
  %80 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %80, ptr %9, align 4, !tbaa !9
  %81 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %81, ptr %13, align 4, !tbaa !9
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.w2c_hermes, ptr %82, i32 0, i32 6
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = add i64 %85, 15
  %87 = call i32 @i32_load8_u(ptr noundef %83, i64 noundef %86)
  store i32 %87, ptr %13, align 4, !tbaa !9
  %88 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %88, ptr %10, align 4, !tbaa !9
  store i32 32, ptr %14, align 4, !tbaa !9
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = and i32 %90, %89
  store i32 %91, ptr %13, align 4, !tbaa !9
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %123

94:                                               ; preds = %4
  %95 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %95, ptr %13, align 4, !tbaa !9
  %96 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %96, ptr %14, 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 %14, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = call i64 @i64_load(ptr noundef %98, i64 noundef %100)
  store i64 %101, ptr %19, align 8, !tbaa !11
  %102 = load i64, ptr %19, align 8, !tbaa !11
  %103 = trunc i64 %102 to i32
  store i32 %103, ptr %14, align 4, !tbaa !9
  store i32 33554431, ptr %15, align 4, !tbaa !9
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = load i32, ptr %14, align 4, !tbaa !9
  %106 = and i32 %105, %104
  store i32 %106, ptr %14, align 4, !tbaa !9
  %107 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %107, ptr %20, align 8, !tbaa !11
  %108 = load i64, ptr %20, align 8, !tbaa !11
  %109 = trunc i64 %108 to i32
  store i32 %109, ptr %15, align 4, !tbaa !9
  store i32 16, ptr %16, align 4, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = and i32 %110, 31
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = shl i32 %112, %111
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load i32, ptr %15, align 4, !tbaa !9
  %115 = load i32, ptr %14, align 4, !tbaa !9
  %116 = or i32 %115, %114
  store i32 %116, ptr %14, align 4, !tbaa !9
  %117 = load i32, ptr %14, align 4, !tbaa !9
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = add i32 %118, %117
  store i32 %119, ptr %13, align 4, !tbaa !9
  store i32 31, ptr %14, align 4, !tbaa !9
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = add i32 %121, %120
  store i32 %122, ptr %13, align 4, !tbaa !9
  br label %134

123:                                              ; preds = %4
  %124 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %124, ptr %13, align 4, !tbaa !9
  %125 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %125, ptr %19, align 8, !tbaa !11
  %126 = load i64, ptr %19, align 8, !tbaa !11
  %127 = trunc i64 %126 to i32
  store i32 %127, ptr %14, align 4, !tbaa !9
  store i32 33554431, 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 = and i32 %129, %128
  store i32 %130, ptr %14, align 4, !tbaa !9
  %131 = load i32, ptr %14, align 4, !tbaa !9
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = add i32 %132, %131
  store i32 %133, ptr %13, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %123, %94
  %135 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %135, ptr %8, align 4, !tbaa !9
  %136 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %136, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = and i32 %138, %137
  store i32 %139, ptr %13, align 4, !tbaa !9
  %140 = load i32, ptr %13, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  %142 = xor i1 %141, true
  %143 = zext i1 %142 to i32
  store i32 %143, ptr %13, align 4, !tbaa !9
  %144 = load i32, ptr %13, align 4, !tbaa !9
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %149

146:                                              ; preds = %134
  store i32 0, ptr %13, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %147, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %148 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %148, ptr %7, align 4, !tbaa !9
  br label %232

149:                                              ; preds = %134
  %150 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %150, ptr %13, align 4, !tbaa !9
  store i32 -3, ptr %14, align 4, !tbaa !9
  %151 = load i32, ptr %13, align 4, !tbaa !9
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = icmp uge i32 %151, %152
  %154 = zext i1 %153 to i32
  store i32 %154, ptr %13, align 4, !tbaa !9
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %149
  br label %281

158:                                              ; preds = %149
  %159 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %159, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %160 = load i32, ptr %14, align 4, !tbaa !9
  %161 = load i32, ptr %13, align 4, !tbaa !9
  %162 = add i32 %161, %160
  store i32 %162, ptr %13, align 4, !tbaa !9
  store i32 -4, ptr %14, align 4, !tbaa !9
  %163 = load i32, ptr %14, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = and i32 %164, %163
  store i32 %165, ptr %13, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %166, ptr %8, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = load i32, ptr %13, align 4, !tbaa !9
  %169 = add i32 %168, %167
  store i32 %169, ptr %13, align 4, !tbaa !9
  %170 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %170, ptr %9, align 4, !tbaa !9
  %171 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %171, ptr %14, align 4, !tbaa !9
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.w2c_hermes, ptr %172, i32 0, i32 6
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = add i64 %175, 188
  %177 = call i32 @i32_load(ptr noundef %173, i64 noundef %176)
  store i32 %177, ptr %14, align 4, !tbaa !9
  %178 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %178, ptr %7, align 4, !tbaa !9
  %179 = load i32, ptr %13, align 4, !tbaa !9
  %180 = load i32, ptr %14, align 4, !tbaa !9
  %181 = icmp ugt i32 %179, %180
  %182 = zext i1 %181 to i32
  store i32 %182, ptr %13, align 4, !tbaa !9
  %183 = load i32, ptr %13, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %186

185:                                              ; preds = %158
  br label %299

186:                                              ; preds = %158
  %187 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %187, ptr %13, align 4, !tbaa !9
  %188 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %188, ptr %14, align 4, !tbaa !9
  %189 = load i32, ptr %14, align 4, !tbaa !9
  %190 = load i32, ptr %13, align 4, !tbaa !9
  %191 = sub i32 %190, %189
  store i32 %191, ptr %13, align 4, !tbaa !9
  store i32 12, ptr %14, align 4, !tbaa !9
  %192 = load i32, ptr %14, align 4, !tbaa !9
  %193 = icmp eq i32 %192, 0
  %194 = xor i1 %193, true
  %195 = xor i1 %194, true
  %196 = zext i1 %195 to i32
  %197 = sext i32 %196 to i64
  %198 = call i64 @llvm.expect.i64(i64 %197, i64 0)
  %199 = icmp ne i64 %198, 0
  br i1 %199, label %200, label %202

200:                                              ; preds = %186
  call void @wasm_rt_trap(i32 noundef 3) #7
  unreachable

201:                                              ; No predecessors!
  br label %206

202:                                              ; preds = %186
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = load i32, ptr %14, align 4, !tbaa !9
  %205 = udiv i32 %203, %204
  br label %206

206:                                              ; preds = %202, %201
  %207 = phi i32 [ 0, %201 ], [ %205, %202 ]
  store i32 %207, ptr %13, align 4, !tbaa !9
  %208 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %208, ptr %14, align 4, !tbaa !9
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.w2c_hermes, ptr %209, i32 0, i32 6
  %211 = load i32, ptr %14, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = call i32 @i32_load(ptr noundef %210, i64 noundef %212)
  store i32 %213, ptr %14, align 4, !tbaa !9
  %214 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %214, ptr %7, align 4, !tbaa !9
  %215 = load i32, ptr %13, align 4, !tbaa !9
  %216 = load i32, ptr %14, align 4, !tbaa !9
  %217 = icmp ult i32 %215, %216
  %218 = zext i1 %217 to i32
  store i32 %218, ptr %13, align 4, !tbaa !9
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %221, label %222

221:                                              ; preds = %206
  br label %299

222:                                              ; preds = %206
  %223 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %223, ptr %13, align 4, !tbaa !9
  %224 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %224, ptr %14, align 4, !tbaa !9
  store i32 12, ptr %15, align 4, !tbaa !9
  %225 = load i32, ptr %15, align 4, !tbaa !9
  %226 = load i32, ptr %14, align 4, !tbaa !9
  %227 = mul i32 %226, %225
  store i32 %227, ptr %14, align 4, !tbaa !9
  %228 = load i32, ptr %14, align 4, !tbaa !9
  %229 = load i32, ptr %13, align 4, !tbaa !9
  %230 = add i32 %229, %228
  store i32 %230, ptr %13, align 4, !tbaa !9
  %231 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %231, ptr %8, align 4, !tbaa !9
  br label %232

232:                                              ; preds = %222, %146
  %233 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %233, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %234 = load i32, ptr %14, align 4, !tbaa !9
  %235 = load i32, ptr %13, align 4, !tbaa !9
  %236 = and i32 %235, %234
  store i32 %236, ptr %13, align 4, !tbaa !9
  %237 = load i32, ptr %13, align 4, !tbaa !9
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %257

239:                                              ; preds = %232
  %240 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %240, ptr %13, align 4, !tbaa !9
  store i32 -3, ptr %14, align 4, !tbaa !9
  %241 = load i32, ptr %13, align 4, !tbaa !9
  %242 = load i32, ptr %14, align 4, !tbaa !9
  %243 = icmp uge i32 %241, %242
  %244 = zext i1 %243 to i32
  store i32 %244, ptr %13, align 4, !tbaa !9
  %245 = load i32, ptr %13, align 4, !tbaa !9
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %248

247:                                              ; preds = %239
  br label %302

248:                                              ; preds = %239
  %249 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %249, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %250 = load i32, ptr %14, align 4, !tbaa !9
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = add i32 %251, %250
  store i32 %252, ptr %13, align 4, !tbaa !9
  store i32 -4, ptr %14, align 4, !tbaa !9
  %253 = load i32, ptr %14, align 4, !tbaa !9
  %254 = load i32, ptr %13, align 4, !tbaa !9
  %255 = and i32 %254, %253
  store i32 %255, ptr %13, align 4, !tbaa !9
  %256 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %256, ptr %11, align 4, !tbaa !9
  br label %257

257:                                              ; preds = %248, %232
  %258 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %258, ptr %13, align 4, !tbaa !9
  %259 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %259, ptr %14, align 4, !tbaa !9
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.w2c_hermes, ptr %260, i32 0, i32 6
  %262 = load i32, ptr %13, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = add i64 %263, 8
  %265 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %261, i64 noundef %264, i32 noundef %265)
  %266 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %266, ptr %13, align 4, !tbaa !9
  %267 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %267, ptr %14, align 4, !tbaa !9
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.w2c_hermes, ptr %268, i32 0, i32 6
  %270 = load i32, ptr %13, align 4, !tbaa !9
  %271 = zext i32 %270 to i64
  %272 = add i64 %271, 4
  %273 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %269, i64 noundef %272, i32 noundef %273)
  %274 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %274, ptr %13, align 4, !tbaa !9
  %275 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %275, ptr %14, align 4, !tbaa !9
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.w2c_hermes, ptr %276, i32 0, i32 6
  %278 = load i32, ptr %13, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %277, i64 noundef %279, i32 noundef %280)
  br label %320

281:                                              ; preds = %157
  store i32 0, ptr %13, align 4, !tbaa !9
  %282 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %282, ptr %8, align 4, !tbaa !9
  store i32 53212, ptr %14, align 4, !tbaa !9
  %283 = load i32, ptr %14, align 4, !tbaa !9
  %284 = load i32, ptr %13, align 4, !tbaa !9
  %285 = add i32 %284, %283
  store i32 %285, ptr %13, align 4, !tbaa !9
  %286 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %286, ptr %14, align 4, !tbaa !9
  store i32 78882, 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
  store i32 633, ptr %15, align 4, !tbaa !9
  %290 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %290, ptr %16, align 4, !tbaa !9
  store i32 53202, ptr %17, align 4, !tbaa !9
  %291 = load i32, ptr %17, align 4, !tbaa !9
  %292 = load i32, ptr %16, align 4, !tbaa !9
  %293 = add i32 %292, %291
  store i32 %293, ptr %16, align 4, !tbaa !9
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = load i32, ptr %13, align 4, !tbaa !9
  %296 = load i32, ptr %14, align 4, !tbaa !9
  %297 = load i32, ptr %15, align 4, !tbaa !9
  %298 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %294, i32 noundef %295, i32 noundef %296, i32 noundef %297, i32 noundef %298)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

299:                                              ; preds = %221, %185
  store i32 100682, ptr %13, align 4, !tbaa !9
  %300 = load ptr, ptr %5, align 8, !tbaa !5
  %301 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef %300, i32 noundef %301)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

302:                                              ; preds = %247
  store i32 0, ptr %13, align 4, !tbaa !9
  %303 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %303, ptr %8, align 4, !tbaa !9
  store i32 53212, ptr %14, align 4, !tbaa !9
  %304 = load i32, ptr %14, align 4, !tbaa !9
  %305 = load i32, ptr %13, align 4, !tbaa !9
  %306 = add i32 %305, %304
  store i32 %306, ptr %13, align 4, !tbaa !9
  %307 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %307, ptr %14, align 4, !tbaa !9
  store i32 78882, ptr %15, align 4, !tbaa !9
  %308 = load i32, ptr %15, align 4, !tbaa !9
  %309 = load i32, ptr %14, align 4, !tbaa !9
  %310 = add i32 %309, %308
  store i32 %310, ptr %14, align 4, !tbaa !9
  store i32 633, ptr %15, align 4, !tbaa !9
  %311 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %311, ptr %16, align 4, !tbaa !9
  store i32 53202, ptr %17, align 4, !tbaa !9
  %312 = load i32, ptr %17, align 4, !tbaa !9
  %313 = load i32, ptr %16, align 4, !tbaa !9
  %314 = add i32 %313, %312
  store i32 %314, ptr %16, align 4, !tbaa !9
  %315 = load ptr, ptr %5, align 8, !tbaa !5
  %316 = load i32, ptr %13, align 4, !tbaa !9
  %317 = load i32, ptr %14, align 4, !tbaa !9
  %318 = load i32, ptr %15, align 4, !tbaa !9
  %319 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %315, i32 noundef %316, i32 noundef %317, i32 noundef %318, i32 noundef %319)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

320:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret void
}

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

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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { 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 #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 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 #6 = { nounwind }
attributes #7 = { 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_load(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(ptr 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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABCProviderFromBuffer0x3A0x3AgetExceptionTableAndDebugOffsets0x28unsigned0x20int0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %2 to i64
  %7 = add nuw nsw i64 %6, 152
  %8 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  %9 = shl i32 %3, 4
  %10 = add i32 %8, %9
  %11 = zext i32 %10 to i64
  %12 = add nuw nsw i64 %11, 8
  %13 = tail call i64 @i64_load32_u(ptr noundef nonnull %5, i64 noundef %12)
  %14 = add nuw nsw i64 %11, 14
  %15 = tail call i64 @i64_load8_u(ptr noundef nonnull %5, i64 noundef %14)
  %16 = add nuw nsw i64 %11, 12
  %17 = tail call i64 @i64_load16_u(ptr noundef nonnull %5, i64 noundef %16)
  %18 = add nuw nsw i64 %6, 148
  %19 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %18)
  %20 = add nuw nsw i64 %11, 15
  %21 = tail call i32 @i32_load8_u(ptr noundef nonnull %5, i64 noundef %20)
  %22 = and i32 %21, 32
  %.not = icmp eq i32 %22, 0
  br i1 %.not, label %32, label %23

23:                                               ; preds = %4
  %24 = tail call i64 @i64_load(ptr noundef nonnull %5, i64 noundef %11)
  %25 = trunc i64 %24 to i32
  %26 = and i32 %25, 33554431
  %27 = trunc i64 %13 to i32
  %28 = shl i32 %27, 16
  %29 = or i32 %26, %28
  %30 = add i32 %19, 31
  %31 = add i32 %30, %29
  br label %36

32:                                               ; preds = %4
  %33 = trunc i64 %13 to i32
  %34 = and i32 %33, 33554431
  %35 = add i32 %19, %34
  br label %36

36:                                               ; preds = %32, %23
  %.0169 = phi i32 [ %31, %23 ], [ %35, %32 ]
  %37 = and i32 %21, 8
  %.not175 = icmp eq i32 %37, 0
  br i1 %.not175, label %56, label %38

38:                                               ; preds = %36
  %39 = icmp ugt i32 %.0169, -4
  br i1 %39, label %67, label %40

40:                                               ; preds = %38
  %41 = add nuw i32 %.0169, 3
  %42 = and i32 %41, -4
  %43 = add i32 %42, 4
  %44 = add nuw nsw i64 %6, 188
  %45 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %44)
  %46 = icmp ugt i32 %43, %45
  br i1 %46, label %68, label %47

47:                                               ; preds = %40
  %48 = sub i32 %45, %43
  %49 = udiv i32 %48, 12
  %50 = zext i32 %42 to i64
  %51 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %50)
  %52 = icmp ult i32 %49, %51
  br i1 %52, label %68, label %53

53:                                               ; preds = %47
  %54 = mul nuw i32 %51, 12
  %55 = add i32 %54, %43
  br label %56

56:                                               ; preds = %36, %53
  %.0171 = phi i32 [ %43, %53 ], [ 0, %36 ]
  %.0168 = phi i32 [ %55, %53 ], [ %.0169, %36 ]
  %.0 = phi i32 [ %51, %53 ], [ 0, %36 ]
  %57 = and i32 %21, 16
  %.not176 = icmp eq i32 %57, 0
  br i1 %.not176, label %63, label %58

58:                                               ; preds = %56
  %59 = icmp ugt i32 %.0168, -4
  br i1 %59, label %69, label %60

60:                                               ; preds = %58
  %61 = add nuw i32 %.0168, 3
  %62 = and i32 %61, -4
  br label %63

63:                                               ; preds = %60, %56
  %.0170 = phi i32 [ %62, %60 ], [ 0, %56 ]
  %64 = zext i32 %1 to i64
  %65 = add nuw nsw i64 %64, 8
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %65, i32 noundef %.0170)
  %66 = add nuw nsw i64 %64, 4
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %66, i32 noundef %.0)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %64, i32 noundef %.0171)
  ret void

67:                                               ; preds = %38
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 53212, i32 noundef 78882, i32 noundef 633, i32 noundef 53202) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

68:                                               ; preds = %47, %40
  tail call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef %0, i32 noundef 100682) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

69:                                               ; preds = %58
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 53212, i32 noundef 78882, i32 noundef 633, i32 noundef 53202) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass