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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(ptr noundef, i64 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) #2

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

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

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

50:                                               ; preds = %5
  %51 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %51, ptr %19, align 8, !tbaa !11
  %52 = load i64, ptr %19, align 8, !tbaa !11
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr %14, align 4, !tbaa !9
  %54 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %54, ptr %12, align 4, !tbaa !9
  %55 = load i32, ptr %14, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  %57 = xor i1 %56, true
  %58 = zext i1 %57 to i32
  store i32 %58, ptr %14, align 4, !tbaa !9
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %50
  br label %247

62:                                               ; preds = %50
  %63 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %63, ptr %14, align 4, !tbaa !9
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 3
  %69 = call i32 @i32_load8_u(ptr noundef %65, i64 noundef %68)
  store i32 %69, ptr %14, align 4, !tbaa !9
  store i32 24, ptr %15, align 4, !tbaa !9
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = and i32 %70, 31
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = shl i32 %72, %71
  store i32 %73, ptr %14, align 4, !tbaa !9
  store i32 771751936, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = icmp eq i32 %74, %75
  %77 = zext i1 %76 to i32
  store i32 %77, ptr %14, align 4, !tbaa !9
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %62
  br label %130

81:                                               ; preds = %62
  br label %82

82:                                               ; preds = %81, %5
  store i32 217520, ptr %14, align 4, !tbaa !9
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.w2c_hermes, ptr %83, i32 0, i32 6
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = call i64 @i64_load(ptr noundef %84, i64 noundef %86)
  store i64 %87, ptr %19, align 8, !tbaa !11
  %88 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %88, ptr %13, align 8, !tbaa !11
  store i64 -844424930131969, ptr %20, align 8, !tbaa !11
  %89 = load i64, ptr %19, align 8, !tbaa !11
  %90 = load i64, ptr %20, align 8, !tbaa !11
  %91 = icmp ule i64 %89, %90
  %92 = zext i1 %91 to i32
  store i32 %92, ptr %14, align 4, !tbaa !9
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %82
  br label %265

96:                                               ; preds = %82
  store i32 217520, ptr %14, align 4, !tbaa !9
  %97 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %97, ptr %10, align 4, !tbaa !9
  %98 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %98, ptr %19, align 8, !tbaa !11
  %99 = load i64, ptr %19, align 8, !tbaa !11
  %100 = trunc i64 %99 to i32
  store i32 %100, ptr %14, align 4, !tbaa !9
  %101 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %101, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %14, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  %104 = xor i1 %103, true
  %105 = zext i1 %104 to i32
  store i32 %105, ptr %14, align 4, !tbaa !9
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %96
  br label %130

109:                                              ; preds = %96
  %110 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %110, ptr %14, align 4, !tbaa !9
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, 3
  %116 = call i32 @i32_load8_u(ptr noundef %112, i64 noundef %115)
  store i32 %116, ptr %14, align 4, !tbaa !9
  %117 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %117, ptr %12, align 4, !tbaa !9
  store i32 24, ptr %15, align 4, !tbaa !9
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = and i32 %118, 31
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = shl i32 %120, %119
  store i32 %121, ptr %14, align 4, !tbaa !9
  store i32 771751936, ptr %15, align 4, !tbaa !9
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = icmp ne i32 %122, %123
  %125 = zext i1 %124 to i32
  store i32 %125, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %129

128:                                              ; preds = %109
  br label %283

129:                                              ; preds = %109
  br label %130

130:                                              ; preds = %129, %108, %80
  %131 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %131, ptr %19, align 8, !tbaa !11
  %132 = load i64, ptr %19, align 8, !tbaa !11
  %133 = trunc i64 %132 to i32
  store i32 %133, ptr %14, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = icmp ne i32 %134, 0
  %136 = xor i1 %135, true
  %137 = zext i1 %136 to i32
  store i32 %137, ptr %14, align 4, !tbaa !9
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %187

140:                                              ; preds = %130
  %141 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %141, ptr %14, align 4, !tbaa !9
  %142 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %142, ptr %15, align 4, !tbaa !9
  %143 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %143, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %144 = load i32, ptr %17, align 4, !tbaa !9
  %145 = load i32, ptr %16, align 4, !tbaa !9
  %146 = add i32 %145, %144
  store i32 %146, ptr %16, align 4, !tbaa !9
  store i32 48060, ptr %17, align 4, !tbaa !9
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = load i32, ptr %16, align 4, !tbaa !9
  %149 = load i32, ptr %17, align 4, !tbaa !9
  %150 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ATwineChar160x3A0x3ATwineChar160x28char0x20const0x2A0x29(ptr noundef %147, i32 noundef %148, i32 noundef %149)
  store i32 %150, ptr %16, align 4, !tbaa !9
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %151, i32 noundef %152, i32 noundef %153)
  store i32 %154, ptr %15, align 4, !tbaa !9
  %155 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %155, ptr %10, align 4, !tbaa !9
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %14, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %157, i64 noundef %159, i32 noundef %160)
  %161 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %161, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = load i32, ptr %15, align 4, !tbaa !9
  %164 = icmp ne i32 %162, %163
  %165 = zext i1 %164 to i32
  store i32 %165, ptr %14, align 4, !tbaa !9
  %166 = load i32, ptr %14, align 4, !tbaa !9
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %140
  br label %239

169:                                              ; preds = %140
  store i32 0, ptr %14, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %170, ptr %11, align 4, !tbaa !9
  store i32 109717, ptr %15, align 4, !tbaa !9
  %171 = load i32, ptr %15, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = add i32 %172, %171
  store i32 %173, ptr %14, align 4, !tbaa !9
  %174 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %174, ptr %15, align 4, !tbaa !9
  store i32 77564, ptr %16, align 4, !tbaa !9
  %175 = load i32, ptr %16, align 4, !tbaa !9
  %176 = load i32, ptr %15, align 4, !tbaa !9
  %177 = add i32 %176, %175
  store i32 %177, ptr %15, align 4, !tbaa !9
  store i32 168, ptr %16, align 4, !tbaa !9
  %178 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %178, ptr %17, align 4, !tbaa !9
  store i32 28083, ptr %18, align 4, !tbaa !9
  %179 = load i32, ptr %18, align 4, !tbaa !9
  %180 = load i32, ptr %17, align 4, !tbaa !9
  %181 = add i32 %180, %179
  store i32 %181, ptr %17, align 4, !tbaa !9
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = load i32, ptr %14, align 4, !tbaa !9
  %184 = load i32, ptr %15, align 4, !tbaa !9
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %182, i32 noundef %183, i32 noundef %184, i32 noundef %185, i32 noundef %186)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

187:                                              ; preds = %130
  %188 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %188, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.w2c_hermes, ptr %189, i32 0, i32 6
  %191 = load i32, ptr %14, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %190, i64 noundef %192, i32 noundef %193)
  %194 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %194, ptr %14, align 4, !tbaa !9
  %195 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %195, ptr %15, align 4, !tbaa !9
  %196 = load ptr, ptr %6, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.w2c_hermes, ptr %196, i32 0, i32 6
  %198 = load i32, ptr %14, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = add i64 %199, 4
  %201 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %197, i64 noundef %200, i32 noundef %201)
  %202 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %202, ptr %14, align 4, !tbaa !9
  %203 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %203, ptr %15, align 4, !tbaa !9
  %204 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %204, ptr %16, align 4, !tbaa !9
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = load i32, ptr %14, align 4, !tbaa !9
  %207 = load i32, ptr %15, align 4, !tbaa !9
  %208 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSArrayIterator0x3A0x3AnextElement0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSArrayIterator0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef %205, i32 noundef %206, i32 noundef %207, i32 noundef %208)
  %209 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %209, ptr %14, align 4, !tbaa !9
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.w2c_hermes, ptr %210, i32 0, i32 6
  %212 = load i32, ptr %14, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = call i32 @i32_load(ptr noundef %211, i64 noundef %213)
  store i32 %214, ptr %14, align 4, !tbaa !9
  %215 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %215, ptr %10, align 4, !tbaa !9
  %216 = load i32, ptr %14, align 4, !tbaa !9
  %217 = icmp ne i32 %216, 0
  %218 = xor i1 %217, true
  %219 = zext i1 %218 to i32
  store i32 %219, ptr %14, align 4, !tbaa !9
  %220 = load i32, ptr %14, align 4, !tbaa !9
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %222, label %223

222:                                              ; preds = %187
  br label %239

223:                                              ; preds = %187
  %224 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %224, ptr %14, align 4, !tbaa !9
  %225 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %225, ptr %15, align 4, !tbaa !9
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 6
  %228 = load i32, ptr %15, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = call i32 @i32_load(ptr noundef %227, i64 noundef %229)
  store i32 %230, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %231 = load i32, ptr %16, align 4, !tbaa !9
  %232 = load i32, ptr %15, align 4, !tbaa !9
  %233 = sub i32 %232, %231
  store i32 %233, ptr %15, align 4, !tbaa !9
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.w2c_hermes, ptr %234, i32 0, i32 6
  %236 = load i32, ptr %14, align 4, !tbaa !9
  %237 = zext i32 %236 to i64
  %238 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %235, i64 noundef %237, i32 noundef %238)
  br label %239

239:                                              ; preds = %223, %222, %168
  %240 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %240, ptr %14, align 4, !tbaa !9
  store i32 48, ptr %15, align 4, !tbaa !9
  %241 = load i32, ptr %15, align 4, !tbaa !9
  %242 = load i32, ptr %14, align 4, !tbaa !9
  %243 = add i32 %242, %241
  store i32 %243, ptr %14, align 4, !tbaa !9
  %244 = load i32, ptr %14, align 4, !tbaa !9
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.w2c_hermes, ptr %245, i32 0, i32 3
  store i32 %244, ptr %246, align 8, !tbaa !13
  br label %301

247:                                              ; preds = %61
  store i32 0, ptr %14, align 4, !tbaa !9
  %248 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %248, ptr %11, align 4, !tbaa !9
  store i32 147142, ptr %15, align 4, !tbaa !9
  %249 = load i32, ptr %15, align 4, !tbaa !9
  %250 = load i32, ptr %14, align 4, !tbaa !9
  %251 = add i32 %250, %249
  store i32 %251, ptr %14, align 4, !tbaa !9
  %252 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %252, ptr %15, align 4, !tbaa !9
  store i32 82611, 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
  store i32 106, ptr %16, align 4, !tbaa !9
  %256 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %256, ptr %17, align 4, !tbaa !9
  store i32 28119, 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 = add i32 %258, %257
  store i32 %259, ptr %17, align 4, !tbaa !9
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  %261 = load i32, ptr %14, align 4, !tbaa !9
  %262 = load i32, ptr %15, align 4, !tbaa !9
  %263 = load i32, ptr %16, align 4, !tbaa !9
  %264 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %260, i32 noundef %261, i32 noundef %262, i32 noundef %263, i32 noundef %264)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

265:                                              ; preds = %95
  store i32 0, ptr %14, align 4, !tbaa !9
  %266 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %266, ptr %11, align 4, !tbaa !9
  store i32 146777, ptr %15, align 4, !tbaa !9
  %267 = load i32, ptr %15, align 4, !tbaa !9
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = add i32 %268, %267
  store i32 %269, ptr %14, align 4, !tbaa !9
  %270 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %270, ptr %15, align 4, !tbaa !9
  store i32 82692, ptr %16, align 4, !tbaa !9
  %271 = load i32, ptr %16, align 4, !tbaa !9
  %272 = load i32, ptr %15, align 4, !tbaa !9
  %273 = add i32 %272, %271
  store i32 %273, ptr %15, align 4, !tbaa !9
  store i32 61, ptr %16, align 4, !tbaa !9
  %274 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %274, ptr %17, align 4, !tbaa !9
  store i32 72547, 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
  %278 = load ptr, ptr %6, align 8, !tbaa !5
  %279 = load i32, ptr %14, align 4, !tbaa !9
  %280 = load i32, ptr %15, align 4, !tbaa !9
  %281 = load i32, ptr %16, align 4, !tbaa !9
  %282 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %278, i32 noundef %279, i32 noundef %280, i32 noundef %281, i32 noundef %282)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

283:                                              ; preds = %128
  store i32 0, ptr %14, align 4, !tbaa !9
  %284 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %284, ptr %11, align 4, !tbaa !9
  store i32 205071, ptr %15, align 4, !tbaa !9
  %285 = load i32, ptr %15, align 4, !tbaa !9
  %286 = load i32, ptr %14, align 4, !tbaa !9
  %287 = add i32 %286, %285
  store i32 %287, ptr %14, align 4, !tbaa !9
  %288 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %288, ptr %15, align 4, !tbaa !9
  store i32 82611, ptr %16, align 4, !tbaa !9
  %289 = load i32, ptr %16, align 4, !tbaa !9
  %290 = load i32, ptr %15, align 4, !tbaa !9
  %291 = add i32 %290, %289
  store i32 %291, ptr %15, align 4, !tbaa !9
  store i32 299, ptr %16, align 4, !tbaa !9
  %292 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %292, ptr %17, align 4, !tbaa !9
  store i32 72549, 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
  %296 = load ptr, ptr %6, align 8, !tbaa !5
  %297 = load i32, ptr %14, align 4, !tbaa !9
  %298 = load i32, ptr %15, align 4, !tbaa !9
  %299 = load i32, ptr %16, align 4, !tbaa !9
  %300 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %296, i32 noundef %297, i32 noundef %298, i32 noundef %299, i32 noundef %300)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AarrayIteratorPrototypeNext0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -48
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %4 to i64
  %11 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %12 = zext i32 %11 to i64
  %13 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %12)
  %14 = icmp ugt i64 %13, -844424930131969
  br i1 %14, label %15, label %21

15:                                               ; preds = %5
  %16 = and i64 %13, 4294967295
  %.not = icmp eq i64 %16, 0
  br i1 %.not, label %46, label %17

17:                                               ; preds = %15
  %18 = add nuw nsw i64 %16, 3
  %19 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %18)
  %.mask = and i32 %19, 255
  %20 = icmp eq i32 %.mask, 46
  br i1 %20, label %29, label %21

21:                                               ; preds = %17, %5
  %22 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef 217520)
  %23 = icmp ult i64 %22, -844424930131968
  br i1 %23, label %47, label %24

24:                                               ; preds = %21
  %25 = and i64 %22, 4294967295
  %.not167 = icmp eq i64 %25, 0
  br i1 %.not167, label %29, label %26

26:                                               ; preds = %24
  %27 = add nuw nsw i64 %25, 3
  %28 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %27)
  %.mask169 = and i32 %28, 255
  %.not168 = icmp eq i32 %.mask169, 46
  br i1 %.not168, label %29, label %48

29:                                               ; preds = %26, %24, %17
  %.0164 = phi i32 [ %11, %17 ], [ 217520, %24 ], [ 217520, %26 ]
  %.0 = phi i64 [ %13, %17 ], [ %22, %24 ], [ %22, %26 ]
  %30 = and i64 %.0, 4294967295
  %.not170 = icmp eq i64 %30, 0
  br i1 %.not170, label %31, label %37

31:                                               ; preds = %29
  %32 = add i32 %7, -40
  %33 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ATwineChar160x3A0x3ATwineChar160x28char0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef %32, i32 noundef 48060)
  %34 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %33)
  %35 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %35, i32 noundef %34)
  %.not172 = icmp eq i32 %34, 1
  br i1 %.not172, label %36, label %45

36:                                               ; preds = %31
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109717, i32 noundef 77564, i32 noundef 168, i32 noundef 28083) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

37:                                               ; preds = %29
  %38 = zext i32 %8 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %38, i32 noundef 0)
  %39 = add nuw nsw i64 %38, 4
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %39, i32 noundef %.0164)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSArrayIterator0x3A0x3AnextElement0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSArrayIterator0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %8, i32 noundef %3) #4
  %40 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %38)
  %.not171 = icmp eq i32 %40, 0
  br i1 %.not171, label %45, label %41

41:                                               ; preds = %37
  %42 = zext i32 %40 to i64
  %43 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %42)
  %44 = add i32 %43, -1
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %42, i32 noundef %44)
  br label %45

45:                                               ; preds = %37, %31, %41
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void

46:                                               ; preds = %15
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 147142, i32 noundef 82611, i32 noundef 106, i32 noundef 28119) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

47:                                               ; preds = %21
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 146777, i32 noundef 82692, i32 noundef 61, i32 noundef 72547) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

48:                                               ; preds = %26
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 205071, i32 noundef 82611, i32 noundef 299, i32 noundef 72549) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

attributes #0 = { 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 #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 = { "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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass