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

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

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

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

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

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

declare i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AtcCompare0x28unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AgetShiftAmountAndSign0x28hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x29(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 i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  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 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  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 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.w2c_hermes, ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 8, !tbaa !13
  store i32 %21, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %22 = load i32, ptr %13, align 4, !tbaa !9
  %23 = load i32, ptr %12, align 4, !tbaa !9
  %24 = sub i32 %23, %22
  store i32 %24, ptr %12, align 4, !tbaa !9
  %25 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %25, ptr %7, align 4, !tbaa !9
  %26 = load i32, ptr %12, align 4, !tbaa !9
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 3
  store i32 %26, ptr %28, align 8, !tbaa !13
  %29 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %29, ptr %12, align 4, !tbaa !9
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 6
  %32 = load i32, ptr %12, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = call i64 @i64_load(ptr noundef %31, i64 noundef %33)
  store i64 %34, ptr %17, align 8, !tbaa !11
  %35 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %35, ptr %11, align 8, !tbaa !11
  store i64 32, ptr %18, align 8, !tbaa !11
  %36 = load i64, ptr %18, align 8, !tbaa !11
  %37 = and i64 %36, 63
  %38 = load i64, ptr %17, align 8, !tbaa !11
  %39 = lshr i64 %38, %37
  store i64 %39, ptr %17, align 8, !tbaa !11
  %40 = load i64, ptr %17, align 8, !tbaa !11
  %41 = trunc i64 %40 to i32
  store i32 %41, ptr %12, align 4, !tbaa !9
  %42 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %42, ptr %8, align 4, !tbaa !9
  %43 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %43, ptr %17, align 8, !tbaa !11
  %44 = load i64, ptr %17, align 8, !tbaa !11
  %45 = trunc i64 %44 to i32
  store i32 %45, ptr %12, align 4, !tbaa !9
  %46 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %46, ptr %9, align 4, !tbaa !9
  %47 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %47, ptr %12, align 4, !tbaa !9
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.w2c_hermes, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %12, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = add i64 %51, 4
  %53 = call i32 @i32_load(ptr noundef %49, i64 noundef %52)
  store i32 %53, ptr %12, align 4, !tbaa !9
  %54 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %54, ptr %6, align 4, !tbaa !9
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %81

57:                                               ; preds = %3
  %58 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %58, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %13, align 4, !tbaa !9
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = and i32 %59, 31
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = shl i32 %61, %60
  store i32 %62, ptr %12, align 4, !tbaa !9
  %63 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %63, ptr %13, align 4, !tbaa !9
  %64 = load i32, ptr %13, align 4, !tbaa !9
  %65 = load i32, ptr %12, align 4, !tbaa !9
  %66 = add i32 %65, %64
  store i32 %66, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = sub i32 %68, %67
  store i32 %69, ptr %12, align 4, !tbaa !9
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.w2c_hermes, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = call i64 @i64_load(ptr noundef %71, i64 noundef %73)
  store i64 %74, ptr %17, align 8, !tbaa !11
  store i64 63, ptr %18, align 8, !tbaa !11
  %75 = load i64, ptr %18, align 8, !tbaa !11
  %76 = and i64 %75, 63
  %77 = load i64, ptr %17, align 8, !tbaa !11
  %78 = lshr i64 %77, %76
  store i64 %78, ptr %17, align 8, !tbaa !11
  %79 = load i64, ptr %17, align 8, !tbaa !11
  %80 = trunc i64 %79 to i32
  store i32 %80, ptr %12, align 4, !tbaa !9
  br label %82

81:                                               ; preds = %3
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %81, %57
  %83 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %83, ptr %6, align 4, !tbaa !9
  %84 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %84, ptr %12, align 4, !tbaa !9
  store i64 -65536, ptr %18, align 8, !tbaa !11
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.w2c_hermes, ptr %85, i32 0, i32 6
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = add i64 %88, 8
  %90 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %86, i64 noundef %89, i64 noundef %90)
  %91 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %91, ptr %12, align 4, !tbaa !9
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %196

94:                                               ; preds = %82
  %95 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %95, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %13, align 4, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = and i32 %96, 31
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = shl i32 %98, %97
  store i32 %99, ptr %12, align 4, !tbaa !9
  %100 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %100, ptr %13, align 4, !tbaa !9
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = add i32 %102, %101
  store i32 %103, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = sub i32 %105, %104
  store i32 %106, ptr %12, align 4, !tbaa !9
  %107 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %107, ptr %10, align 4, !tbaa !9
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = call i64 @i64_load(ptr noundef %109, i64 noundef %111)
  store i64 %112, ptr %17, align 8, !tbaa !11
  store i64 0, ptr %18, align 8, !tbaa !11
  %113 = load i64, ptr %17, align 8, !tbaa !11
  %114 = load i64, ptr %18, align 8, !tbaa !11
  %115 = icmp slt i64 %113, %114
  %116 = zext i1 %115 to i32
  %117 = sext i32 %116 to i64
  %118 = trunc i64 %117 to i32
  store i32 %118, ptr %12, align 4, !tbaa !9
  %119 = load i32, ptr %12, align 4, !tbaa !9
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %172

121:                                              ; preds = %94
  store i32 8193, ptr %12, align 4, !tbaa !9
  %122 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %122, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = load i32, ptr %14, align 4, !tbaa !9
  %125 = icmp ne i32 %123, %124
  %126 = zext i1 %125 to i32
  store i32 %126, ptr %13, align 4, !tbaa !9
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %121
  br label %278

130:                                              ; preds = %121
  store i32 8193, ptr %12, align 4, !tbaa !9
  %131 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %131, ptr %13, align 4, !tbaa !9
  %132 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %132, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = call i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AtcCompare0x28unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %136, i32 noundef %137, i32 noundef %138, i32 noundef %139)
  store i32 %140, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = load i32, ptr %14, align 4, !tbaa !9
  %143 = icmp slt i32 %141, %142
  %144 = zext i1 %143 to i32
  store i32 %144, ptr %13, align 4, !tbaa !9
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %130
  br label %278

148:                                              ; preds = %130
  %149 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %149, ptr %12, align 4, !tbaa !9
  store i64 65536, ptr %18, align 8, !tbaa !11
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.w2c_hermes, ptr %150, i32 0, i32 6
  %152 = load i32, ptr %12, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = add i64 %153, 8
  %155 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %151, i64 noundef %154, i64 noundef %155)
  %156 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %156, ptr %12, align 4, !tbaa !9
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.w2c_hermes, ptr %157, i32 0, i32 6
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = call i64 @i64_load(ptr noundef %158, i64 noundef %160)
  store i64 %161, ptr %17, align 8, !tbaa !11
  store i64 0, ptr %18, align 8, !tbaa !11
  %162 = load i64, ptr %17, align 8, !tbaa !11
  %163 = load i64, ptr %18, align 8, !tbaa !11
  %164 = icmp slt i64 %162, %163
  %165 = zext i1 %164 to i32
  %166 = sext i32 %165 to i64
  %167 = trunc i64 %166 to i32
  store i32 %167, ptr %12, align 4, !tbaa !9
  %168 = load i32, ptr %12, align 4, !tbaa !9
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %171

170:                                              ; preds = %148
  br label %228

171:                                              ; preds = %148
  br label %208

172:                                              ; preds = %94
  %173 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %173, ptr %12, align 4, !tbaa !9
  store i64 65536, ptr %18, align 8, !tbaa !11
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 6
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = add i64 %177, 8
  %179 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %175, i64 noundef %178, i64 noundef %179)
  %180 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %180, ptr %12, align 4, !tbaa !9
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.w2c_hermes, ptr %181, i32 0, i32 6
  %183 = load i32, ptr %12, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = call i64 @i64_load(ptr noundef %182, i64 noundef %184)
  store i64 %185, ptr %17, align 8, !tbaa !11
  store i64 0, ptr %18, align 8, !tbaa !11
  %186 = load i64, ptr %17, align 8, !tbaa !11
  %187 = load i64, ptr %18, align 8, !tbaa !11
  %188 = icmp sge i64 %186, %187
  %189 = zext i1 %188 to i32
  %190 = sext i32 %189 to i64
  %191 = trunc i64 %190 to i32
  store i32 %191, ptr %12, align 4, !tbaa !9
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %195

194:                                              ; preds = %172
  br label %198

195:                                              ; preds = %172
  br label %228

196:                                              ; preds = %82
  store i64 0, ptr %17, align 8, !tbaa !11
  %197 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %197, ptr %11, align 8, !tbaa !11
  br label %261

198:                                              ; preds = %194
  %199 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %199, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %200 = load i32, ptr %12, align 4, !tbaa !9
  %201 = load i32, ptr %13, align 4, !tbaa !9
  %202 = icmp eq i32 %200, %201
  %203 = zext i1 %202 to i32
  store i32 %203, ptr %12, align 4, !tbaa !9
  %204 = load i32, ptr %12, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %207

206:                                              ; preds = %198
  br label %208

207:                                              ; preds = %198
  store i32 8193, ptr %12, align 4, !tbaa !9
  br label %278

208:                                              ; preds = %206, %171
  store i32 8193, ptr %12, align 4, !tbaa !9
  %209 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %209, ptr %8, align 4, !tbaa !9
  %210 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %210, ptr %13, align 4, !tbaa !9
  %211 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %211, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %212 = load i32, ptr %15, align 4, !tbaa !9
  %213 = load i32, ptr %14, align 4, !tbaa !9
  %214 = add i32 %213, %212
  store i32 %214, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = load i32, ptr %13, align 4, !tbaa !9
  %217 = load i32, ptr %14, align 4, !tbaa !9
  %218 = load i32, ptr %15, align 4, !tbaa !9
  %219 = call i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AtcCompare0x28unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %215, i32 noundef %216, i32 noundef %217, i32 noundef %218)
  store i32 %219, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %220 = load i32, ptr %13, align 4, !tbaa !9
  %221 = load i32, ptr %14, align 4, !tbaa !9
  %222 = icmp sgt i32 %220, %221
  %223 = zext i1 %222 to i32
  store i32 %223, ptr %13, align 4, !tbaa !9
  %224 = load i32, ptr %13, align 4, !tbaa !9
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %226, label %227

226:                                              ; preds = %208
  br label %278

227:                                              ; preds = %208
  br label %228

228:                                              ; preds = %227, %195, %170
  %229 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %229, ptr %12, align 4, !tbaa !9
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 6
  %232 = load i32, ptr %12, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = call i64 @i64_load(ptr noundef %231, i64 noundef %233)
  store i64 %234, ptr %17, align 8, !tbaa !11
  %235 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %235, ptr %11, align 8, !tbaa !11
  store i64 0, ptr %18, align 8, !tbaa !11
  %236 = load i64, ptr %17, align 8, !tbaa !11
  %237 = load i64, ptr %18, align 8, !tbaa !11
  %238 = icmp ne i64 %236, %237
  %239 = zext i1 %238 to i32
  store i32 %239, ptr %12, align 4, !tbaa !9
  %240 = load i32, ptr %12, align 4, !tbaa !9
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %243

242:                                              ; preds = %228
  br label %261

243:                                              ; preds = %228
  store i32 0, ptr %12, align 4, !tbaa !9
  %244 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %244, ptr %7, align 4, !tbaa !9
  store i32 184679, ptr %13, align 4, !tbaa !9
  %245 = load i32, ptr %13, align 4, !tbaa !9
  %246 = load i32, ptr %12, align 4, !tbaa !9
  %247 = add i32 %246, %245
  store i32 %247, ptr %12, align 4, !tbaa !9
  %248 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %248, ptr %13, align 4, !tbaa !9
  store i32 54513, ptr %14, align 4, !tbaa !9
  %249 = load i32, ptr %14, align 4, !tbaa !9
  %250 = load i32, ptr %13, align 4, !tbaa !9
  %251 = add i32 %250, %249
  store i32 %251, ptr %13, align 4, !tbaa !9
  store i32 2258, ptr %14, align 4, !tbaa !9
  %252 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %252, ptr %15, align 4, !tbaa !9
  store i32 70907, ptr %16, align 4, !tbaa !9
  %253 = load i32, ptr %16, align 4, !tbaa !9
  %254 = load i32, ptr %15, align 4, !tbaa !9
  %255 = add i32 %254, %253
  store i32 %255, ptr %15, align 4, !tbaa !9
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = load i32, ptr %12, align 4, !tbaa !9
  %258 = load i32, ptr %13, align 4, !tbaa !9
  %259 = load i32, ptr %14, align 4, !tbaa !9
  %260 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %256, i32 noundef %257, i32 noundef %258, i32 noundef %259, i32 noundef %260)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

261:                                              ; preds = %242, %196
  store i64 0, ptr %17, align 8, !tbaa !11
  %262 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %262, ptr %18, align 8, !tbaa !11
  %263 = load i64, ptr %18, align 8, !tbaa !11
  %264 = load i64, ptr %17, align 8, !tbaa !11
  %265 = sub i64 %264, %263
  store i64 %265, ptr %17, align 8, !tbaa !11
  %266 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %266, ptr %18, align 8, !tbaa !11
  %267 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %267, ptr %14, align 4, !tbaa !9
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %272

270:                                              ; preds = %261
  %271 = load i64, ptr %17, align 8, !tbaa !11
  br label %274

272:                                              ; preds = %261
  %273 = load i64, ptr %18, align 8, !tbaa !11
  br label %274

274:                                              ; preds = %272, %270
  %275 = phi i64 [ %271, %270 ], [ %273, %272 ]
  store i64 %275, ptr %17, align 8, !tbaa !11
  %276 = load i64, ptr %17, align 8, !tbaa !11
  %277 = trunc i64 %276 to i32
  store i32 %277, ptr %12, align 4, !tbaa !9
  br label %278

278:                                              ; preds = %274, %226, %207, %147, %129
  %279 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %279, ptr %8, align 4, !tbaa !9
  %280 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %280, ptr %12, align 4, !tbaa !9
  %281 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %281, ptr %13, align 4, !tbaa !9
  %282 = load ptr, ptr %4, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.w2c_hermes, ptr %282, i32 0, i32 6
  %284 = load i32, ptr %12, align 4, !tbaa !9
  %285 = zext i32 %284 to i64
  %286 = add i64 %285, 4
  %287 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %283, i64 noundef %286, i32 noundef %287)
  %288 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %288, ptr %12, align 4, !tbaa !9
  %289 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %289, ptr %13, align 4, !tbaa !9
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.w2c_hermes, ptr %290, i32 0, i32 6
  %292 = load i32, ptr %12, align 4, !tbaa !9
  %293 = zext i32 %292 to i64
  %294 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %291, i64 noundef %293, i32 noundef %294)
  %295 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %295, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %296 = load i32, ptr %13, align 4, !tbaa !9
  %297 = load i32, ptr %12, align 4, !tbaa !9
  %298 = add i32 %297, %296
  store i32 %298, ptr %12, align 4, !tbaa !9
  %299 = load i32, ptr %12, align 4, !tbaa !9
  %300 = load ptr, ptr %4, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.w2c_hermes, ptr %300, i32 0, i32 3
  store i32 %299, ptr %301, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 8, 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 void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


; 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

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

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

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

declare i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AtcCompare0x28unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AgetShiftAmountAndSign0x28hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -16
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %2 to i64
  %9 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %8)
  %10 = lshr i64 %9, 32
  %11 = trunc i64 %9 to i32
  %12 = add nuw nsw i64 %8, 4
  %13 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %12)
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %22, label %14

14:                                               ; preds = %3
  %15 = shl i32 %13, 3
  %16 = add i32 %11, -8
  %17 = add i32 %16, %15
  %18 = zext i32 %17 to i64
  %19 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %18)
  %20 = lshr i64 %19, 63
  %21 = trunc nuw nsw i64 %20 to i32
  br label %22

22:                                               ; preds = %3, %14
  %.0 = phi i32 [ %21, %14 ], [ 0, %3 ]
  %23 = zext i32 %6 to i64
  %24 = add nuw nsw i64 %23, 8
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %24, i64 noundef -65536)
  %.not157 = icmp ult i64 %9, 4294967296
  br i1 %.not157, label %52, label %25

25:                                               ; preds = %22
  %26 = shl nuw nsw i64 %10, 3
  %27 = add i64 %9, 4294967288
  %28 = add i64 %27, %26
  %29 = and i64 %28, 4294967295
  %30 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %29)
  %31 = icmp slt i64 %30, 0
  br i1 %31, label %32, label %40

32:                                               ; preds = %25
  %.not158 = icmp eq i64 %10, 1
  br i1 %.not158, label %33, label %56

33:                                               ; preds = %32
  %34 = add i32 %5, -8
  %35 = tail call i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AtcCompare0x28unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %11, i32 noundef %34, i32 noundef 1) #4
  %36 = icmp slt i32 %35, 0
  br i1 %36, label %56, label %37

37:                                               ; preds = %33
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %24, i64 noundef 65536)
  %38 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %29)
  %39 = icmp slt i64 %38, 0
  br i1 %39, label %48, label %45

40:                                               ; preds = %25
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %24, i64 noundef 65536)
  %41 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %29)
  %42 = icmp sgt i64 %41, -1
  br i1 %42, label %43, label %48

43:                                               ; preds = %40
  %44 = icmp eq i64 %10, 1
  br i1 %44, label %._crit_edge, label %56

._crit_edge:                                      ; preds = %43
  %.pre = add i32 %5, -8
  br label %45

45:                                               ; preds = %._crit_edge, %37
  %.pre-phi = phi i32 [ %.pre, %._crit_edge ], [ %34, %37 ]
  %46 = tail call i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AtcCompare0x28unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20long0x20long0x20const0x2A0x2C0x20unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %11, i32 noundef %.pre-phi, i32 noundef 1) #4
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %56, label %48

48:                                               ; preds = %45, %40, %37
  %49 = and i64 %9, 4294967295
  %50 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %49)
  %.not159 = icmp eq i64 %50, 0
  br i1 %.not159, label %51, label %52

51:                                               ; preds = %48
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 184679, i32 noundef 54513, i32 noundef 2258, i32 noundef 70907) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

52:                                               ; preds = %22, %48
  %.0153 = phi i64 [ %50, %48 ], [ 0, %22 ]
  %53 = sub i64 0, %.0153
  %.not160 = icmp eq i32 %.0, 0
  %54 = select i1 %.not160, i64 %.0153, i64 %53
  %55 = trunc i64 %54 to i32
  br label %56

56:                                               ; preds = %43, %45, %33, %32, %52
  %.1 = phi i32 [ 8193, %32 ], [ 8193, %33 ], [ %55, %52 ], [ 8193, %45 ], [ 8193, %43 ]
  %57 = zext i32 %1 to i64
  %58 = add nuw nsw i64 %57, 4
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %58, i32 noundef %.0)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %57, i32 noundef %.1)
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void
}

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)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


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