; 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_load8_u(ptr noundef, i64 noundef) #1

; 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_0x5F20x3A0x3Apair0x3Cllvh0x3A0x3AStringRef0x2C0x20unsigned0x20int0x3E0x20llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3AgetLineNumber0x3Cunsigned0x20char0x3E0x28char0x20const0x2A0x290x20const(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_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x2A0x20llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3AgetOffsets0x3Cunsigned0x20char0x3E0x280x290x20const(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 %12, 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 %11, 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 %269

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 %14, 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 %269

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 %11, 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 %8, align 4, !tbaa !9
  store i32 256, 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 uge 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 %287

79:                                               ; preds = %65
  %80 = load i32, ptr %12, 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 %13, align 4, !tbaa !9
  %87 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %87, ptr %9, align 4, !tbaa !9
  %88 = load i32, ptr %11, 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 %10, align 4, !tbaa !9
  %90 = load i32, ptr %12, 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 %15, align 4, !tbaa !9
  %98 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %98, ptr %18, align 4, !tbaa !9
  %99 = load i32, ptr %18, align 4, !tbaa !9
  %100 = load i32, ptr %17, align 4, !tbaa !9
  %101 = sub i32 %100, %99
  store i32 %101, ptr %17, align 4, !tbaa !9
  %102 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %102, ptr %7, align 4, !tbaa !9
  %103 = load i32, ptr %17, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  %105 = xor i1 %104, true
  %106 = zext i1 %105 to i32
  store i32 %106, ptr %17, align 4, !tbaa !9
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %79
  br label %209

110:                                              ; preds = %79
  %111 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %111, ptr %16, align 4, !tbaa !9
  store i32 255, ptr %17, align 4, !tbaa !9
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = load i32, ptr %16, align 4, !tbaa !9
  %114 = and i32 %113, %112
  store i32 %114, ptr %16, align 4, !tbaa !9
  %115 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %115, ptr %12, align 4, !tbaa !9
  %116 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %116, ptr %16, align 4, !tbaa !9
  %117 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %117, ptr %8, align 4, !tbaa !9
  br label %118

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

148:                                              ; preds = %118
  %149 = load i32, ptr %16, align 4, !tbaa !9
  br label %152

150:                                              ; preds = %118
  %151 = load i32, ptr %17, align 4, !tbaa !9
  br label %152

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

167:                                              ; preds = %152
  %168 = load i32, ptr %16, align 4, !tbaa !9
  br label %171

169:                                              ; preds = %152
  %170 = load i32, ptr %17, align 4, !tbaa !9
  br label %171

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

176:                                              ; preds = %171
  br label %118

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

189:                                              ; preds = %177
  br label %209

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

209:                                              ; preds = %190, %189, %109
  %210 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %210, ptr %10, align 4, !tbaa !9
  %211 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %211, ptr %16, align 4, !tbaa !9
  %212 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %212, ptr %17, align 4, !tbaa !9
  %213 = load i32, ptr %16, align 4, !tbaa !9
  %214 = load i32, ptr %17, align 4, !tbaa !9
  %215 = icmp ne i32 %213, %214
  %216 = zext i1 %215 to i32
  store i32 %216, ptr %16, align 4, !tbaa !9
  %217 = load i32, ptr %16, align 4, !tbaa !9
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %234

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

234:                                              ; preds = %219, %209
  %235 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %235, ptr %16, align 4, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %236, ptr %17, align 4, !tbaa !9
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.w2c_hermes, ptr %237, i32 0, i32 6
  %239 = load i32, ptr %16, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %238, i64 noundef %240, i32 noundef %241)
  %242 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %242, ptr %16, align 4, !tbaa !9
  %243 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %243, ptr %17, align 4, !tbaa !9
  %244 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %244, ptr %18, align 4, !tbaa !9
  %245 = load i32, ptr %18, align 4, !tbaa !9
  %246 = load i32, ptr %17, align 4, !tbaa !9
  %247 = sub i32 %246, %245
  store i32 %247, ptr %17, align 4, !tbaa !9
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.w2c_hermes, ptr %248, i32 0, i32 6
  %250 = load i32, ptr %16, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = add i64 %251, 4
  %253 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %249, i64 noundef %252, i32 noundef %253)
  %254 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %254, ptr %16, align 4, !tbaa !9
  %255 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %255, ptr %17, align 4, !tbaa !9
  %256 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %256, ptr %18, align 4, !tbaa !9
  %257 = load i32, ptr %18, align 4, !tbaa !9
  %258 = load i32, ptr %17, align 4, !tbaa !9
  %259 = sub i32 %258, %257
  store i32 %259, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %260 = load i32, ptr %18, align 4, !tbaa !9
  %261 = load i32, ptr %17, align 4, !tbaa !9
  %262 = add i32 %261, %260
  store i32 %262, ptr %17, align 4, !tbaa !9
  %263 = load ptr, ptr %5, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.w2c_hermes, ptr %263, i32 0, i32 6
  %265 = load i32, ptr %16, align 4, !tbaa !9
  %266 = zext i32 %265 to i64
  %267 = add i64 %266, 8
  %268 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %264, i64 noundef %267, i32 noundef %268)
  br label %305

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

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

305:                                              ; preds = %234
  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_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x2A0x20llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3AgetOffsets0x3Cunsigned0x20char0x3E0x280x290x20const(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_load8_u(ptr noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: 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_0x5F20x3A0x3Apair0x3Cllvh0x3A0x3AStringRef0x2C0x20unsigned0x20int0x3E0x20llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3AgetLineNumber0x3Cunsigned0x20char0x3E0x28char0x20const0x2A0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x2A0x20llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3AgetOffsets0x3Cunsigned0x20char0x3E0x280x290x20const(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 %56, 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 %56, label %17

17:                                               ; preds = %13
  %18 = sub i32 %3, %11
  %19 = icmp ugt i32 %18, 255
  br i1 %19, label %57, 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 = sub i32 %24, %22
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %44, label %.preheader

.preheader:                                       ; preds = %20, %.preheader
  %.0177 = phi i32 [ %35, %.preheader ], [ %25, %20 ]
  %.0176 = phi i32 [ %32, %.preheader ], [ %22, %20 ]
  %26 = lshr i32 %.0177, 1
  %27 = add i32 %.0176, %26
  %28 = add i32 %27, 1
  %29 = zext i32 %27 to i64
  %30 = tail call i32 @i32_load8_u(ptr noundef nonnull %6, i64 noundef %29)
  %31 = icmp ult i32 %30, %18
  %32 = select i1 %31, i32 %28, i32 %.0176
  %33 = xor i32 %26, -1
  %34 = add i32 %.0177, %33
  %35 = select i1 %31, i32 %34, i32 %26
  %.not184 = icmp eq i32 %35, 0
  br i1 %.not184, label %36, label %.preheader

36:                                               ; preds = %.preheader
  %37 = icmp eq i32 %22, %32
  br i1 %37, label %44, label %38

38:                                               ; preds = %36
  %39 = add i32 %32, -1
  %40 = zext i32 %39 to i64
  %41 = tail call i32 @i32_load8_u(ptr noundef nonnull %6, i64 noundef %40)
  %42 = add i32 %11, 1
  %43 = add i32 %42, %41
  br label %44

44:                                               ; preds = %36, %20, %38
  %.0175 = phi i32 [ %22, %20 ], [ %22, %36 ], [ %32, %38 ]
  %.0 = phi i32 [ %11, %20 ], [ %11, %36 ], [ %43, %38 ]
  %.not185 = icmp eq i32 %.0175, %24
  br i1 %.not185, label %50, label %45

45:                                               ; preds = %44
  %46 = zext i32 %.0175 to i64
  %47 = tail call i32 @i32_load8_u(ptr noundef nonnull %6, i64 noundef %46)
  %48 = add i32 %11, 1
  %49 = add i32 %48, %47
  br label %50

50:                                               ; preds = %45, %44
  %.0174 = phi i32 [ %49, %45 ], [ %15, %44 ]
  %51 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %51, i32 noundef %.0)
  %52 = sub i32 %.0174, %.0
  %53 = add nuw nsw i64 %51, 4
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %53, i32 noundef %52)
  %reass.sub = sub i32 %.0175, %22
  %54 = add i32 %reass.sub, 1
  %55 = add nuw nsw i64 %51, 8
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %55, i32 noundef %54)
  ret void

56:                                               ; 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

57:                                               ; 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_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x2A0x20llvh0x3A0x3ASourceMgr0x3A0x3ASrcBuffer0x3A0x3AgetOffsets0x3Cunsigned0x20char0x3E0x280x290x20const(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,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass