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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_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: nounwind uwtable
define dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Apair0x3Cllvh0x3A0x3AStringRef0x2C0x20unsigned0x20int0x3E0x20llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3AgetLineNumber0x3Cunsigned0x20int0x3E0x28char0x20const0x2A0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %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
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  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
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %21 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %21, ptr %16, align 4, !tbaa !9
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = load i32, ptr %16, align 4, !tbaa !9
  %24 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x2A0x20llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3AgetOffsets0x3Cunsigned0x20int0x3E0x280x290x20const(ptr noundef %22, i32 noundef %23)
  store i32 %24, ptr %16, align 4, !tbaa !9
  %25 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %25, ptr %9, align 4, !tbaa !9
  %26 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %26, ptr %16, align 4, !tbaa !9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 6
  %29 = load i32, ptr %16, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = call i32 @i32_load(ptr noundef %28, i64 noundef %30)
  store i32 %31, ptr %16, align 4, !tbaa !9
  %32 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %32, ptr %7, align 4, !tbaa !9
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.w2c_hermes, ptr %33, i32 0, i32 6
  %35 = load i32, ptr %16, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = add i64 %36, 4
  %38 = call i32 @i32_load(ptr noundef %34, i64 noundef %37)
  store i32 %38, ptr %16, align 4, !tbaa !9
  %39 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %39, ptr %10, align 4, !tbaa !9
  %40 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %40, ptr %17, align 4, !tbaa !9
  %41 = load i32, ptr %16, align 4, !tbaa !9
  %42 = load i32, ptr %17, align 4, !tbaa !9
  %43 = icmp ugt i32 %41, %42
  %44 = zext i1 %43 to i32
  store i32 %44, ptr %16, align 4, !tbaa !9
  %45 = load i32, ptr %16, align 4, !tbaa !9
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %4
  br label %272

48:                                               ; preds = %4
  %49 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %49, ptr %16, align 4, !tbaa !9
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.w2c_hermes, ptr %50, i32 0, i32 6
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = add i64 %53, 8
  %55 = call i32 @i32_load(ptr noundef %51, i64 noundef %54)
  store i32 %55, ptr %16, align 4, !tbaa !9
  %56 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %56, ptr %12, align 4, !tbaa !9
  %57 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %57, ptr %17, align 4, !tbaa !9
  %58 = load i32, ptr %16, align 4, !tbaa !9
  %59 = load i32, ptr %17, align 4, !tbaa !9
  %60 = icmp ult i32 %58, %59
  %61 = zext i1 %60 to i32
  store i32 %61, ptr %16, align 4, !tbaa !9
  %62 = load i32, ptr %16, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %48
  br label %272

65:                                               ; preds = %48
  %66 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %66, ptr %16, align 4, !tbaa !9
  %67 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %67, ptr %17, align 4, !tbaa !9
  %68 = load i32, ptr %17, align 4, !tbaa !9
  %69 = load i32, ptr %16, align 4, !tbaa !9
  %70 = sub i32 %69, %68
  store i32 %70, ptr %16, align 4, !tbaa !9
  %71 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %71, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = load i32, ptr %17, align 4, !tbaa !9
  %74 = icmp slt i32 %72, %73
  %75 = zext i1 %74 to i32
  store i32 %75, ptr %16, align 4, !tbaa !9
  %76 = load i32, ptr %16, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %65
  br label %290

79:                                               ; preds = %65
  %80 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %80, ptr %16, align 4, !tbaa !9
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.w2c_hermes, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %16, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = call i32 @i32_load(ptr noundef %82, i64 noundef %84)
  store i32 %85, ptr %16, align 4, !tbaa !9
  %86 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %86, ptr %11, align 4, !tbaa !9
  %87 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %87, ptr %8, align 4, !tbaa !9
  %88 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %88, ptr %16, align 4, !tbaa !9
  %89 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %89, ptr %7, align 4, !tbaa !9
  %90 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %90, ptr %17, align 4, !tbaa !9
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.w2c_hermes, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = add i64 %94, 4
  %96 = call i32 @i32_load(ptr noundef %92, i64 noundef %95)
  store i32 %96, ptr %17, align 4, !tbaa !9
  %97 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %97, ptr %14, align 4, !tbaa !9
  %98 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %98, ptr %18, align 4, !tbaa !9
  %99 = load i32, ptr %17, align 4, !tbaa !9
  %100 = load i32, ptr %18, align 4, !tbaa !9
  %101 = icmp eq i32 %99, %100
  %102 = zext i1 %101 to i32
  store i32 %102, ptr %17, align 4, !tbaa !9
  %103 = load i32, ptr %17, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %79
  br label %208

106:                                              ; preds = %79
  %107 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %107, ptr %16, align 4, !tbaa !9
  %108 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %108, ptr %17, align 4, !tbaa !9
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = sub i32 %110, %109
  store i32 %111, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %112 = load i32, ptr %16, align 4, !tbaa !9
  %113 = load i32, ptr %17, align 4, !tbaa !9
  %114 = and i32 %113, 31
  %115 = ashr i32 %112, %114
  store i32 %115, ptr %16, align 4, !tbaa !9
  %116 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %116, ptr %7, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %179, %106
  %118 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %118, ptr %16, align 4, !tbaa !9
  %119 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %119, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %120 = load i32, ptr %18, align 4, !tbaa !9
  %121 = and i32 %120, 31
  %122 = load i32, ptr %17, align 4, !tbaa !9
  %123 = lshr i32 %122, %121
  store i32 %123, ptr %17, align 4, !tbaa !9
  %124 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %124, ptr %9, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %125 = load i32, ptr %18, align 4, !tbaa !9
  %126 = and i32 %125, 31
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = shl i32 %127, %126
  store i32 %128, ptr %17, align 4, !tbaa !9
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = load i32, ptr %16, align 4, !tbaa !9
  %131 = add i32 %130, %129
  store i32 %131, ptr %16, align 4, !tbaa !9
  %132 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %132, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %17, align 4, !tbaa !9
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = load i32, ptr %16, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %16, align 4, !tbaa !9
  %136 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %136, ptr %17, align 4, !tbaa !9
  %137 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %137, ptr %18, align 4, !tbaa !9
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.w2c_hermes, ptr %138, i32 0, i32 6
  %140 = load i32, ptr %18, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = call i32 @i32_load(ptr noundef %139, i64 noundef %141)
  store i32 %142, ptr %18, align 4, !tbaa !9
  %143 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %143, ptr %19, align 4, !tbaa !9
  %144 = load i32, ptr %18, align 4, !tbaa !9
  %145 = load i32, ptr %19, align 4, !tbaa !9
  %146 = icmp ult i32 %144, %145
  %147 = zext i1 %146 to i32
  store i32 %147, ptr %18, align 4, !tbaa !9
  %148 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %148, ptr %13, align 4, !tbaa !9
  %149 = load i32, ptr %18, align 4, !tbaa !9
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %153

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

153:                                              ; preds = %117
  %154 = load i32, ptr %17, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %153, %151
  %156 = phi i32 [ %152, %151 ], [ %154, %153 ]
  store i32 %156, ptr %16, align 4, !tbaa !9
  %157 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %157, ptr %8, align 4, !tbaa !9
  %158 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %158, ptr %16, align 4, !tbaa !9
  %159 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %159, ptr %17, align 4, !tbaa !9
  store i32 -1, ptr %18, align 4, !tbaa !9
  %160 = load i32, ptr %18, align 4, !tbaa !9
  %161 = load i32, ptr %17, align 4, !tbaa !9
  %162 = xor i32 %161, %160
  store i32 %162, ptr %17, align 4, !tbaa !9
  %163 = load i32, ptr %17, align 4, !tbaa !9
  %164 = load i32, ptr %16, align 4, !tbaa !9
  %165 = add i32 %164, %163
  store i32 %165, ptr %16, align 4, !tbaa !9
  %166 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %166, ptr %17, align 4, !tbaa !9
  %167 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %167, ptr %18, align 4, !tbaa !9
  %168 = load i32, ptr %18, align 4, !tbaa !9
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %172

170:                                              ; preds = %155
  %171 = load i32, ptr %16, align 4, !tbaa !9
  br label %174

172:                                              ; preds = %155
  %173 = load i32, ptr %17, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %172, %170
  %175 = phi i32 [ %171, %170 ], [ %173, %172 ]
  store i32 %175, ptr %16, align 4, !tbaa !9
  %176 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %176, ptr %7, align 4, !tbaa !9
  %177 = load i32, ptr %16, align 4, !tbaa !9
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %180

179:                                              ; preds = %174
  br label %117

180:                                              ; preds = %174
  %181 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %181, ptr %16, align 4, !tbaa !9
  %182 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %182, ptr %17, align 4, !tbaa !9
  %183 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %183, ptr %18, align 4, !tbaa !9
  %184 = load i32, ptr %17, align 4, !tbaa !9
  %185 = load i32, ptr %18, align 4, !tbaa !9
  %186 = icmp eq i32 %184, %185
  %187 = zext i1 %186 to i32
  store i32 %187, ptr %17, align 4, !tbaa !9
  %188 = load i32, ptr %17, align 4, !tbaa !9
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %180
  br label %208

191:                                              ; preds = %180
  %192 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %192, ptr %16, align 4, !tbaa !9
  %193 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %193, ptr %17, align 4, !tbaa !9
  store i32 4, ptr %18, align 4, !tbaa !9
  %194 = load i32, ptr %18, align 4, !tbaa !9
  %195 = load i32, ptr %17, align 4, !tbaa !9
  %196 = sub i32 %195, %194
  store i32 %196, ptr %17, align 4, !tbaa !9
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.w2c_hermes, ptr %197, i32 0, i32 6
  %199 = load i32, ptr %17, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = call i32 @i32_load(ptr noundef %198, i64 noundef %200)
  store i32 %201, ptr %17, align 4, !tbaa !9
  %202 = load i32, ptr %17, align 4, !tbaa !9
  %203 = load i32, ptr %16, align 4, !tbaa !9
  %204 = add i32 %203, %202
  store i32 %204, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %205 = load i32, ptr %17, align 4, !tbaa !9
  %206 = load i32, ptr %16, align 4, !tbaa !9
  %207 = add i32 %206, %205
  store i32 %207, ptr %16, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %191, %190, %105
  %209 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %209, ptr %7, align 4, !tbaa !9
  %210 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %210, ptr %16, align 4, !tbaa !9
  %211 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %211, ptr %17, align 4, !tbaa !9
  %212 = load i32, ptr %16, align 4, !tbaa !9
  %213 = load i32, ptr %17, align 4, !tbaa !9
  %214 = icmp ne i32 %212, %213
  %215 = zext i1 %214 to i32
  store i32 %215, ptr %16, align 4, !tbaa !9
  %216 = load i32, ptr %16, align 4, !tbaa !9
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %233

218:                                              ; preds = %208
  %219 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %219, ptr %16, align 4, !tbaa !9
  %220 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %220, ptr %17, align 4, !tbaa !9
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.w2c_hermes, ptr %221, i32 0, i32 6
  %223 = load i32, ptr %17, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = call i32 @i32_load(ptr noundef %222, i64 noundef %224)
  store i32 %225, ptr %17, align 4, !tbaa !9
  %226 = load i32, ptr %17, align 4, !tbaa !9
  %227 = load i32, ptr %16, align 4, !tbaa !9
  %228 = add i32 %227, %226
  store i32 %228, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %229 = load i32, ptr %17, align 4, !tbaa !9
  %230 = load i32, ptr %16, align 4, !tbaa !9
  %231 = add i32 %230, %229
  store i32 %231, ptr %16, align 4, !tbaa !9
  %232 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %232, ptr %12, align 4, !tbaa !9
  br label %233

233:                                              ; preds = %218, %208
  %234 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %234, ptr %16, align 4, !tbaa !9
  %235 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %235, ptr %17, align 4, !tbaa !9
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.w2c_hermes, ptr %236, i32 0, i32 6
  %238 = load i32, ptr %16, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %237, i64 noundef %239, i32 noundef %240)
  %241 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %241, ptr %16, align 4, !tbaa !9
  %242 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %242, ptr %17, align 4, !tbaa !9
  %243 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %243, ptr %18, align 4, !tbaa !9
  %244 = load i32, ptr %18, align 4, !tbaa !9
  %245 = load i32, ptr %17, align 4, !tbaa !9
  %246 = sub i32 %245, %244
  store i32 %246, ptr %17, align 4, !tbaa !9
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.w2c_hermes, ptr %247, i32 0, i32 6
  %249 = load i32, ptr %16, align 4, !tbaa !9
  %250 = zext i32 %249 to i64
  %251 = add i64 %250, 4
  %252 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %248, i64 noundef %251, i32 noundef %252)
  %253 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %253, ptr %16, align 4, !tbaa !9
  %254 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %254, ptr %17, align 4, !tbaa !9
  %255 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %255, ptr %18, align 4, !tbaa !9
  %256 = load i32, ptr %18, align 4, !tbaa !9
  %257 = load i32, ptr %17, align 4, !tbaa !9
  %258 = sub i32 %257, %256
  store i32 %258, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %259 = load i32, ptr %17, align 4, !tbaa !9
  %260 = load i32, ptr %18, align 4, !tbaa !9
  %261 = and i32 %260, 31
  %262 = ashr i32 %259, %261
  store i32 %262, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %263 = load i32, ptr %18, align 4, !tbaa !9
  %264 = load i32, ptr %17, align 4, !tbaa !9
  %265 = add i32 %264, %263
  store i32 %265, ptr %17, align 4, !tbaa !9
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.w2c_hermes, ptr %266, i32 0, i32 6
  %268 = load i32, ptr %16, align 4, !tbaa !9
  %269 = zext i32 %268 to i64
  %270 = add i64 %269, 8
  %271 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %267, i64 noundef %270, i32 noundef %271)
  br label %308

272:                                              ; preds = %64, %47
  store i32 0, ptr %16, align 4, !tbaa !9
  %273 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %273, ptr %8, align 4, !tbaa !9
  store i32 118915, ptr %17, align 4, !tbaa !9
  %274 = load i32, ptr %17, align 4, !tbaa !9
  %275 = load i32, ptr %16, align 4, !tbaa !9
  %276 = add i32 %275, %274
  store i32 %276, ptr %16, align 4, !tbaa !9
  %277 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %277, ptr %17, align 4, !tbaa !9
  store i32 56821, ptr %18, align 4, !tbaa !9
  %278 = load i32, ptr %18, align 4, !tbaa !9
  %279 = load i32, ptr %17, align 4, !tbaa !9
  %280 = add i32 %279, %278
  store i32 %280, ptr %17, align 4, !tbaa !9
  store i32 109, ptr %18, align 4, !tbaa !9
  %281 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %281, ptr %19, align 4, !tbaa !9
  store i32 52613, ptr %20, align 4, !tbaa !9
  %282 = load i32, ptr %20, align 4, !tbaa !9
  %283 = load i32, ptr %19, align 4, !tbaa !9
  %284 = add i32 %283, %282
  store i32 %284, ptr %19, align 4, !tbaa !9
  %285 = load ptr, ptr %5, align 8, !tbaa !5
  %286 = load i32, ptr %16, align 4, !tbaa !9
  %287 = load i32, ptr %17, align 4, !tbaa !9
  %288 = load i32, ptr %18, align 4, !tbaa !9
  %289 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %285, i32 noundef %286, i32 noundef %287, i32 noundef %288, i32 noundef %289)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

290:                                              ; preds = %78
  store i32 0, ptr %16, align 4, !tbaa !9
  %291 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %291, ptr %8, align 4, !tbaa !9
  store i32 117844, ptr %17, align 4, !tbaa !9
  %292 = load i32, ptr %17, align 4, !tbaa !9
  %293 = load i32, ptr %16, align 4, !tbaa !9
  %294 = add i32 %293, %292
  store i32 %294, ptr %16, align 4, !tbaa !9
  %295 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %295, ptr %17, align 4, !tbaa !9
  store i32 56821, ptr %18, align 4, !tbaa !9
  %296 = load i32, ptr %18, align 4, !tbaa !9
  %297 = load i32, ptr %17, align 4, !tbaa !9
  %298 = add i32 %297, %296
  store i32 %298, ptr %17, align 4, !tbaa !9
  store i32 111, ptr %18, align 4, !tbaa !9
  %299 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %299, ptr %19, align 4, !tbaa !9
  store i32 52613, ptr %20, align 4, !tbaa !9
  %300 = load i32, ptr %20, align 4, !tbaa !9
  %301 = load i32, ptr %19, align 4, !tbaa !9
  %302 = add i32 %301, %300
  store i32 %302, ptr %19, align 4, !tbaa !9
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  %304 = load i32, ptr %16, align 4, !tbaa !9
  %305 = load i32, ptr %17, align 4, !tbaa !9
  %306 = load i32, ptr %18, align 4, !tbaa !9
  %307 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %303, i32 noundef %304, i32 noundef %305, i32 noundef %306, i32 noundef %307)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

308:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  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
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x2A0x20llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3AgetOffsets0x3Cunsigned0x20int0x3E0x280x290x20const(ptr noundef, i32 noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_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: nounwind uwtable
define dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Apair0x3Cllvh0x3A0x3AStringRef0x2C0x20unsigned0x20int0x3E0x20llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3AgetLineNumber0x3Cunsigned0x20int0x3E0x28char0x20const0x2A0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x2A0x20llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3AgetOffsets0x3Cunsigned0x20int0x3E0x280x290x20const(ptr noundef %0, i32 noundef %2)
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %2 to i64
  %8 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %7)
  %9 = zext i32 %8 to i64
  %10 = add nuw nsw i64 %9, 4
  %11 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %10)
  %12 = icmp ugt i32 %11, %3
  br i1 %12, label %63, label %13

13:                                               ; preds = %4
  %14 = add nuw nsw i64 %9, 8
  %15 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %14)
  %16 = icmp ult i32 %15, %3
  br i1 %16, label %63, label %17

17:                                               ; preds = %13
  %18 = sub i32 %3, %11
  %19 = icmp slt i32 %18, 0
  br i1 %19, label %64, label %20

20:                                               ; preds = %17
  %21 = zext i32 %5 to i64
  %22 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %21)
  %23 = add nuw nsw i64 %21, 4
  %24 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %23)
  %25 = icmp eq i32 %24, %22
  br i1 %25, label %49, label %26

26:                                               ; preds = %20
  %27 = sub i32 %24, %22
  %28 = ashr i32 %27, 2
  br label %29

29:                                               ; preds = %29, %26
  %.0175 = phi i32 [ %28, %26 ], [ %40, %29 ]
  %.0174 = phi i32 [ %22, %26 ], [ %37, %29 ]
  %30 = lshr i32 %.0175, 1
  %31 = shl i32 %30, 2
  %32 = add i32 %31, %.0174
  %33 = add i32 %32, 4
  %34 = zext i32 %32 to i64
  %35 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %34)
  %36 = icmp ult i32 %35, %18
  %37 = select i1 %36, i32 %33, i32 %.0174
  %38 = xor i32 %30, -1
  %39 = add i32 %.0175, %38
  %40 = select i1 %36, i32 %39, i32 %30
  %.not = icmp eq i32 %40, 0
  br i1 %.not, label %41, label %29

41:                                               ; preds = %29
  %42 = icmp eq i32 %37, %22
  br i1 %42, label %49, label %43

43:                                               ; preds = %41
  %44 = add i32 %37, -4
  %45 = zext i32 %44 to i64
  %46 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %45)
  %47 = add i32 %11, 1
  %48 = add i32 %47, %46
  br label %49

49:                                               ; preds = %41, %20, %43
  %.1 = phi i32 [ %22, %20 ], [ %22, %41 ], [ %37, %43 ]
  %.0 = phi i32 [ %11, %20 ], [ %11, %41 ], [ %48, %43 ]
  %.not185 = icmp eq i32 %.1, %24
  br i1 %.not185, label %55, label %50

50:                                               ; preds = %49
  %51 = zext i32 %.1 to i64
  %52 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %51)
  %53 = add i32 %11, 1
  %54 = add i32 %53, %52
  br label %55

55:                                               ; preds = %50, %49
  %.0173 = phi i32 [ %54, %50 ], [ %15, %49 ]
  %56 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %56, i32 noundef %.0)
  %57 = sub i32 %.0173, %.0
  %58 = add nuw nsw i64 %56, 4
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %58, i32 noundef %57)
  %59 = sub i32 %.1, %22
  %60 = ashr i32 %59, 2
  %61 = add nsw i32 %60, 1
  %62 = add nuw nsw i64 %56, 8
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %62, i32 noundef %61)
  ret void

63:                                               ; preds = %13, %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118915, i32 noundef 56821, i32 noundef 109, i32 noundef 52613) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

64:                                               ; preds = %17
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 117844, i32 noundef 56821, i32 noundef 111, i32 noundef 52613) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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