; 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_abort(ptr noundef) #3

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x3A0x3Areserve0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.w2c_hermes, ptr %13, i32 0, i32 3
  %15 = load i32, ptr %14, align 8, !tbaa !11
  store i32 %15, ptr %9, align 4, !tbaa !9
  store i32 32, ptr %10, align 4, !tbaa !9
  %16 = load i32, ptr %10, align 4, !tbaa !9
  %17 = load i32, ptr %9, align 4, !tbaa !9
  %18 = sub i32 %17, %16
  store i32 %18, ptr %9, align 4, !tbaa !9
  %19 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %19, ptr %7, align 4, !tbaa !9
  %20 = load i32, ptr %9, align 4, !tbaa !9
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.w2c_hermes, ptr %21, i32 0, i32 3
  store i32 %20, ptr %22, align 8, !tbaa !11
  %23 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %23, ptr %9, align 4, !tbaa !9
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.w2c_hermes, ptr %24, i32 0, i32 6
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = add i64 %27, 8
  %29 = call i32 @i32_load(ptr noundef %25, i64 noundef %28)
  store i32 %29, ptr %9, align 4, !tbaa !9
  store i32 5, ptr %10, align 4, !tbaa !9
  %30 = load i32, ptr %10, align 4, !tbaa !9
  %31 = and i32 %30, 31
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = shl i32 %32, %31
  store i32 %33, ptr %9, align 4, !tbaa !9
  %34 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %34, ptr %10, align 4, !tbaa !9
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = icmp uge i32 %35, %36
  %38 = zext i1 %37 to i32
  store i32 %38, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %3
  br label %270

42:                                               ; preds = %3
  %43 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %43, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = icmp slt i32 %44, %45
  %47 = zext i1 %46 to i32
  store i32 %47, ptr %9, align 4, !tbaa !9
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %42
  br label %278

51:                                               ; preds = %42
  %52 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %52, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = sub i32 %54, %53
  store i32 %55, ptr %9, align 4, !tbaa !9
  store i32 5, ptr %10, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = and i32 %56, 31
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = lshr i32 %58, %57
  store i32 %59, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = add i32 %61, %60
  store i32 %62, ptr %9, align 4, !tbaa !9
  %63 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %63, ptr %6, align 4, !tbaa !9
  store i32 2, ptr %10, align 4, !tbaa !9
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = and i32 %64, 31
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = shl i32 %66, %65
  store i32 %67, ptr %9, align 4, !tbaa !9
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %68, i32 noundef %69)
  store i32 %70, ptr %9, align 4, !tbaa !9
  %71 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %71, ptr %8, align 4, !tbaa !9
  %72 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %72, ptr %9, align 4, !tbaa !9
  %73 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %73, ptr %10, align 4, !tbaa !9
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.w2c_hermes, ptr %74, i32 0, i32 6
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = add i64 %77, 28
  %79 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %75, i64 noundef %78, i32 noundef %79)
  %80 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %80, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.w2c_hermes, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = add i64 %84, 24
  %86 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %82, i64 noundef %85, i32 noundef %86)
  %87 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %87, ptr %9, align 4, !tbaa !9
  %88 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %88, ptr %10, align 4, !tbaa !9
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = add i64 %92, 20
  %94 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %90, i64 noundef %93, i32 noundef %94)
  %95 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %95, ptr %9, align 4, !tbaa !9
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 6
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = call i32 @i32_load(ptr noundef %97, i64 noundef %99)
  store i32 %100, ptr %9, align 4, !tbaa !9
  %101 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %101, ptr %6, align 4, !tbaa !9
  %102 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %102, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = add i64 %106, 16
  %108 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %104, i64 noundef %107, i32 noundef %108)
  %109 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %109, ptr %9, align 4, !tbaa !9
  %110 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %110, ptr %10, align 4, !tbaa !9
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, 12
  %116 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %112, i64 noundef %115, i32 noundef %116)
  %117 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %117, ptr %9, align 4, !tbaa !9
  %118 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %118, ptr %10, align 4, !tbaa !9
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.w2c_hermes, ptr %119, i32 0, i32 6
  %121 = load i32, ptr %10, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = add i64 %122, 4
  %124 = call i32 @i32_load(ptr noundef %120, i64 noundef %123)
  store i32 %124, ptr %10, align 4, !tbaa !9
  %125 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %125, ptr %8, align 4, !tbaa !9
  store i32 31, ptr %11, align 4, !tbaa !9
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = load i32, ptr %10, align 4, !tbaa !9
  %128 = and i32 %127, %126
  store i32 %128, ptr %10, align 4, !tbaa !9
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.w2c_hermes, ptr %129, i32 0, i32 6
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = add i64 %132, 8
  %134 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %130, i64 noundef %133, i32 noundef %134)
  %135 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %135, ptr %9, align 4, !tbaa !9
  %136 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %136, ptr %10, align 4, !tbaa !9
  %137 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %137, ptr %11, align 4, !tbaa !9
  store i32 3, ptr %12, align 4, !tbaa !9
  %138 = load i32, ptr %12, align 4, !tbaa !9
  %139 = and i32 %138, 31
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = lshr i32 %140, %139
  store i32 %141, ptr %11, align 4, !tbaa !9
  store i32 536870908, ptr %12, align 4, !tbaa !9
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = load i32, ptr %11, align 4, !tbaa !9
  %144 = and i32 %143, %142
  store i32 %144, ptr %11, align 4, !tbaa !9
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = load i32, ptr %10, align 4, !tbaa !9
  %147 = add i32 %146, %145
  store i32 %147, ptr %10, align 4, !tbaa !9
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 6
  %150 = load i32, ptr %9, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = add i64 %151, 4
  %153 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %149, i64 noundef %152, i32 noundef %153)
  %154 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %154, ptr %9, align 4, !tbaa !9
  store i32 20, ptr %10, align 4, !tbaa !9
  %155 = load i32, ptr %10, align 4, !tbaa !9
  %156 = load i32, ptr %9, align 4, !tbaa !9
  %157 = add i32 %156, %155
  store i32 %157, ptr %9, align 4, !tbaa !9
  %158 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %158, ptr %10, align 4, !tbaa !9
  store i32 12, ptr %11, align 4, !tbaa !9
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = load i32, ptr %10, align 4, !tbaa !9
  %161 = add i32 %160, %159
  store i32 %161, ptr %10, align 4, !tbaa !9
  %162 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %162, ptr %11, align 4, !tbaa !9
  store i32 4, ptr %12, align 4, !tbaa !9
  %163 = load i32, ptr %12, align 4, !tbaa !9
  %164 = load i32, ptr %11, align 4, !tbaa !9
  %165 = add i32 %164, %163
  store i32 %165, ptr %11, align 4, !tbaa !9
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = load i32, ptr %9, align 4, !tbaa !9
  %168 = load i32, ptr %10, align 4, !tbaa !9
  %169 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Aenable_if0x3C_0x5Fis_cpp17_forward_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x3E0x3A0x3Avalue0x2C0x20void0x3E0x3A0x3Atype0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x3A0x3A_0x5Fconstruct_at_end0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x29(ptr noundef %166, i32 noundef %167, i32 noundef %168, i32 noundef %169)
  %170 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %170, ptr %9, align 4, !tbaa !9
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.w2c_hermes, ptr %171, i32 0, i32 6
  %173 = load i32, ptr %9, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = call i32 @i32_load(ptr noundef %172, i64 noundef %174)
  store i32 %175, ptr %9, align 4, !tbaa !9
  %176 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %176, ptr %6, align 4, !tbaa !9
  %177 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %177, ptr %9, align 4, !tbaa !9
  %178 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %178, ptr %10, align 4, !tbaa !9
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.w2c_hermes, ptr %179, i32 0, i32 6
  %181 = load i32, ptr %10, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = add i64 %182, 20
  %184 = call i32 @i32_load(ptr noundef %180, i64 noundef %183)
  store i32 %184, ptr %10, align 4, !tbaa !9
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 6
  %187 = load i32, ptr %9, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %186, i64 noundef %188, i32 noundef %189)
  %190 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %190, ptr %9, align 4, !tbaa !9
  %191 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %191, ptr %10, align 4, !tbaa !9
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.w2c_hermes, ptr %192, i32 0, i32 6
  %194 = load i32, ptr %9, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = add i64 %195, 20
  %197 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %193, i64 noundef %196, i32 noundef %197)
  %198 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %198, ptr %9, align 4, !tbaa !9
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.w2c_hermes, ptr %199, i32 0, i32 6
  %201 = load i32, ptr %9, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = add i64 %202, 4
  %204 = call i32 @i32_load(ptr noundef %200, i64 noundef %203)
  store i32 %204, ptr %9, align 4, !tbaa !9
  %205 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %205, ptr %8, align 4, !tbaa !9
  %206 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %206, ptr %9, align 4, !tbaa !9
  %207 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %207, ptr %10, align 4, !tbaa !9
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.w2c_hermes, ptr %208, i32 0, i32 6
  %210 = load i32, ptr %10, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = add i64 %211, 24
  %213 = call i32 @i32_load(ptr noundef %209, i64 noundef %212)
  store i32 %213, ptr %10, align 4, !tbaa !9
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.w2c_hermes, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %9, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = add i64 %217, 4
  %219 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %215, i64 noundef %218, i32 noundef %219)
  %220 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %220, ptr %9, align 4, !tbaa !9
  %221 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %221, ptr %10, align 4, !tbaa !9
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.w2c_hermes, ptr %222, i32 0, i32 6
  %224 = load i32, ptr %9, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = add i64 %225, 24
  %227 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %223, i64 noundef %226, i32 noundef %227)
  %228 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %228, ptr %9, align 4, !tbaa !9
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.w2c_hermes, ptr %229, i32 0, i32 6
  %231 = load i32, ptr %9, align 4, !tbaa !9
  %232 = zext i32 %231 to i64
  %233 = add i64 %232, 8
  %234 = call i32 @i32_load(ptr noundef %230, i64 noundef %233)
  store i32 %234, ptr %9, align 4, !tbaa !9
  %235 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %235, ptr %8, align 4, !tbaa !9
  %236 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %236, ptr %9, align 4, !tbaa !9
  %237 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %237, ptr %10, align 4, !tbaa !9
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.w2c_hermes, ptr %238, i32 0, i32 6
  %240 = load i32, ptr %10, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = add i64 %241, 28
  %243 = call i32 @i32_load(ptr noundef %239, i64 noundef %242)
  store i32 %243, ptr %10, align 4, !tbaa !9
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.w2c_hermes, ptr %244, i32 0, i32 6
  %246 = load i32, ptr %9, align 4, !tbaa !9
  %247 = zext i32 %246 to i64
  %248 = add i64 %247, 8
  %249 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %245, i64 noundef %248, i32 noundef %249)
  %250 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %250, ptr %9, align 4, !tbaa !9
  %251 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %251, ptr %10, align 4, !tbaa !9
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.w2c_hermes, ptr %252, i32 0, i32 6
  %254 = load i32, ptr %9, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = add i64 %255, 28
  %257 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %253, i64 noundef %256, i32 noundef %257)
  %258 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %258, ptr %9, align 4, !tbaa !9
  %259 = load i32, ptr %9, align 4, !tbaa !9
  %260 = icmp ne i32 %259, 0
  %261 = xor i1 %260, true
  %262 = zext i1 %261 to i32
  store i32 %262, ptr %9, align 4, !tbaa !9
  %263 = load i32, ptr %9, align 4, !tbaa !9
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %265, label %266

265:                                              ; preds = %51
  br label %270

266:                                              ; preds = %51
  %267 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %267, ptr %9, align 4, !tbaa !9
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %268, i32 noundef %269)
  br label %270

270:                                              ; preds = %266, %265, %41
  %271 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %271, ptr %9, align 4, !tbaa !9
  store i32 32, ptr %10, align 4, !tbaa !9
  %272 = load i32, ptr %10, align 4, !tbaa !9
  %273 = load i32, ptr %9, align 4, !tbaa !9
  %274 = add i32 %273, %272
  store i32 %274, ptr %9, align 4, !tbaa !9
  %275 = load i32, ptr %9, align 4, !tbaa !9
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.w2c_hermes, ptr %276, i32 0, i32 3
  store i32 %275, ptr %277, align 8, !tbaa !11
  br label %280

278:                                              ; preds = %50
  %279 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %279)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Aenable_if0x3C_0x5Fis_cpp17_forward_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x3E0x3A0x3Avalue0x2C0x20void0x3E0x3A0x3Atype0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x3A0x3A_0x5Fconstruct_at_end0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x29(ptr noundef, i32 noundef, i32 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}
!11 = !{!12, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


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

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

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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

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

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

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

12:                                               ; preds = %3
  %13 = icmp slt i32 %2, 0
  br i1 %13, label %46, label %14

14:                                               ; preds = %12
  %15 = add nsw i32 %2, -1
  %16 = lshr i32 %15, 5
  %17 = add nuw nsw i32 %16, 1
  %18 = shl nuw nsw i32 %17, 2
  %19 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %18) #4
  %20 = zext i32 %6 to i64
  %21 = add nuw nsw i64 %20, 28
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %21, i32 noundef %17)
  %22 = add nuw nsw i64 %20, 24
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %22, i32 noundef 0)
  %23 = add nuw nsw i64 %20, 20
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %23, i32 noundef %19)
  %24 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %25 = add nuw nsw i64 %20, 16
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %25, i32 noundef 0)
  %26 = add nuw nsw i64 %20, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %26, i32 noundef %24)
  %27 = add nuw nsw i64 %8, 4
  %28 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %27)
  %29 = and i32 %28, 31
  %30 = add nuw nsw i64 %20, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %30, i32 noundef %29)
  %31 = lshr i32 %28, 3
  %32 = and i32 %31, 536870908
  %33 = add i32 %32, %24
  %34 = add nuw nsw i64 %20, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %34, i32 noundef %33)
  %35 = add i32 %5, -12
  %36 = add i32 %5, -20
  %37 = add i32 %5, -28
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Aenable_if0x3C_0x5Fis_cpp17_forward_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x3E0x3A0x3Avalue0x2C0x20void0x3E0x3A0x3Atype0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x3A0x3A_0x5Fconstruct_at_end0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x29(ptr noundef nonnull %0, i32 noundef %35, i32 noundef %36, i32 noundef %37)
  %38 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %39 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %23)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %8, i32 noundef %39)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %23, i32 noundef %38)
  %40 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %27)
  %41 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %22)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %27, i32 noundef %41)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %22, i32 noundef %40)
  %42 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %9)
  %43 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %21)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %9, i32 noundef %43)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %21, i32 noundef %42)
  %.not153 = icmp eq i32 %38, 0
  br i1 %.not153, label %45, label %44

44:                                               ; preds = %14
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %38) #4
  br label %45

45:                                               ; preds = %14, %3, %44
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

46:                                               ; preds = %12
  tail call void @w2c_hermes_abort(ptr noundef nonnull %0) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Aenable_if0x3C_0x5Fis_cpp17_forward_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x3E0x3A0x3Avalue0x2C0x20void0x3E0x3A0x3Atype0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x3A0x3A_0x5Fconstruct_at_end0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fbit_iterator0x3Cstd0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x2C0x20false0x2C0x200ul0x3E0x29(ptr noundef, i32 noundef, i32 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)"}
!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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass