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

; 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

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

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

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

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

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

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

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) #1

declare i32 @w2c_hermes_hermes0x3A0x3AcheckedMalloc0x28unsigned0x20long0x29(ptr noundef, i32 noundef) #1

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

58:                                               ; preds = %3
  br label %196

59:                                               ; preds = %3
  %60 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %60, ptr %13, align 4, !tbaa !9
  store i32 1073741824, ptr %14, align 4, !tbaa !9
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = icmp uge i32 %61, %62
  %64 = zext i1 %63 to i32
  store i32 %64, ptr %13, align 4, !tbaa !9
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %59
  br label %196

68:                                               ; preds = %59
  %69 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %69, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %70 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %70, ptr %15, align 4, !tbaa !9
  %71 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %71, ptr %16, align 4, !tbaa !9
  store i32 1, 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 ule 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 %80

78:                                               ; preds = %68
  %79 = load i32, ptr %14, align 4, !tbaa !9
  br label %82

80:                                               ; preds = %68
  %81 = load i32, ptr %15, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %80, %78
  %83 = phi i32 [ %79, %78 ], [ %81, %80 ]
  store i32 %83, ptr %14, align 4, !tbaa !9
  %84 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %84, ptr %11, align 4, !tbaa !9
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = icmp uge i32 %85, %86
  %88 = zext i1 %87 to i32
  store i32 %88, ptr %13, align 4, !tbaa !9
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %82
  br label %222

92:                                               ; preds = %82
  %93 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %93, ptr %13, align 4, !tbaa !9
  store i32 2, ptr %14, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = and i32 %94, 31
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = shl i32 %96, %95
  store i32 %97, ptr %13, align 4, !tbaa !9
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = load i32, ptr %13, align 4, !tbaa !9
  %100 = call i32 @w2c_hermes_hermes0x3A0x3AcheckedMalloc0x28unsigned0x20long0x29(ptr noundef %98, i32 noundef %99)
  store i32 %100, ptr %13, align 4, !tbaa !9
  %101 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %101, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %102, ptr %13, 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 %13, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = call i32 @i32_load(ptr noundef %104, i64 noundef %106)
  store i32 %107, ptr %13, align 4, !tbaa !9
  %108 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %108, ptr %6, align 4, !tbaa !9
  %109 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %109, ptr %13, align 4, !tbaa !9
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.w2c_hermes, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = add i64 %113, 4
  %115 = call i32 @i32_load(ptr noundef %111, i64 noundef %114)
  store i32 %115, ptr %13, align 4, !tbaa !9
  %116 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %116, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %117 = load i32, ptr %13, align 4, !tbaa !9
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = icmp sgt i32 %117, %118
  %120 = zext i1 %119 to i32
  store i32 %120, ptr %13, align 4, !tbaa !9
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %170

123:                                              ; preds = %92
  %124 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %124, ptr %13, align 4, !tbaa !9
  %125 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %125, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = and i32 %126, 31
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = shl i32 %128, %127
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = load i32, ptr %13, align 4, !tbaa !9
  %132 = add i32 %131, %130
  store i32 %132, ptr %13, align 4, !tbaa !9
  %133 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %133, ptr %10, align 4, !tbaa !9
  %134 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %134, ptr %13, align 4, !tbaa !9
  %135 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %135, ptr %7, align 4, !tbaa !9
  %136 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %136, ptr %13, align 4, !tbaa !9
  %137 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %137, ptr %8, align 4, !tbaa !9
  br label %138

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

168:                                              ; preds = %138
  br label %138

169:                                              ; preds = %138
  br label %170

170:                                              ; preds = %169, %92
  %171 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %171, ptr %13, align 4, !tbaa !9
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %172, i32 noundef %173)
  %174 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %174, ptr %13, align 4, !tbaa !9
  %175 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %175, ptr %14, align 4, !tbaa !9
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.w2c_hermes, ptr %176, i32 0, i32 6
  %178 = load i32, ptr %13, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = add i64 %179, 8
  %181 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %177, i64 noundef %180, i32 noundef %181)
  %182 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %182, ptr %13, align 4, !tbaa !9
  %183 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %183, ptr %14, align 4, !tbaa !9
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.w2c_hermes, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %185, i64 noundef %187, i32 noundef %188)
  %189 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %189, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %190 = load i32, ptr %14, align 4, !tbaa !9
  %191 = load i32, ptr %13, align 4, !tbaa !9
  %192 = add i32 %191, %190
  store i32 %192, ptr %13, align 4, !tbaa !9
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.w2c_hermes, ptr %194, i32 0, i32 3
  store i32 %193, ptr %195, align 8, !tbaa !11
  br label %240

196:                                              ; preds = %67, %58
  %197 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %197, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %198 = load i32, ptr %14, align 4, !tbaa !9
  %199 = load i32, ptr %13, align 4, !tbaa !9
  %200 = add i32 %199, %198
  store i32 %200, ptr %13, align 4, !tbaa !9
  store i32 5, ptr %14, align 4, !tbaa !9
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = load i32, ptr %13, align 4, !tbaa !9
  %203 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Amake_error_code0x28hermes0x3A0x3AOOMError0x29(ptr noundef %201, i32 noundef %202, i32 noundef %203)
  %204 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %204, ptr %13, align 4, !tbaa !9
  %205 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %205, ptr %14, align 4, !tbaa !9
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.w2c_hermes, ptr %206, i32 0, i32 6
  %208 = load i32, ptr %14, align 4, !tbaa !9
  %209 = zext i32 %208 to i64
  %210 = add i64 %209, 8
  %211 = call i64 @i64_load(ptr noundef %207, i64 noundef %210)
  store i64 %211, ptr %18, align 8, !tbaa !17
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = load i64, ptr %18, align 8, !tbaa !17
  call void @i64_store(ptr noundef %213, i64 noundef %215, i64 noundef %216)
  %217 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %217, ptr %13, align 4, !tbaa !9
  %218 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %218, ptr %14, align 4, !tbaa !9
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = load i32, ptr %13, align 4, !tbaa !9
  %221 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3Aoom0x28std0x3A0x3A_0x5F20x3A0x3Aerror_code0x29(ptr noundef %219, i32 noundef %220, i32 noundef %221)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

222:                                              ; preds = %91
  store i32 0, ptr %13, align 4, !tbaa !9
  %223 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %223, ptr %7, align 4, !tbaa !9
  store i32 144714, ptr %14, align 4, !tbaa !9
  %224 = load i32, ptr %14, align 4, !tbaa !9
  %225 = load i32, ptr %13, align 4, !tbaa !9
  %226 = add i32 %225, %224
  store i32 %226, ptr %13, align 4, !tbaa !9
  %227 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %227, ptr %14, align 4, !tbaa !9
  store i32 79653, ptr %15, align 4, !tbaa !9
  %228 = load i32, ptr %15, align 4, !tbaa !9
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = add i32 %229, %228
  store i32 %230, ptr %14, align 4, !tbaa !9
  store i32 220, ptr %15, align 4, !tbaa !9
  %231 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %231, ptr %16, align 4, !tbaa !9
  store i32 17299, ptr %17, align 4, !tbaa !9
  %232 = load i32, ptr %17, align 4, !tbaa !9
  %233 = load i32, ptr %16, align 4, !tbaa !9
  %234 = add i32 %233, %232
  store i32 %234, ptr %16, align 4, !tbaa !9
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = load i32, ptr %13, align 4, !tbaa !9
  %237 = load i32, ptr %14, align 4, !tbaa !9
  %238 = load i32, ptr %15, align 4, !tbaa !9
  %239 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %235, i32 noundef %236, i32 noundef %237, i32 noundef %238, i32 noundef %239)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

declare void @w2c_hermes_hermes0x3A0x3Amake_error_code0x28hermes0x3A0x3AOOMError0x29(ptr noundef, i32 noundef, i32 noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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}
!17 = !{!14, !14, 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"

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

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

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) local_unnamed_addr #0

declare i32 @w2c_hermes_hermes0x3A0x3AcheckedMalloc0x28unsigned0x20long0x29(ptr noundef, i32 noundef) local_unnamed_addr #0

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

16:                                               ; preds = %3
  %17 = tail call i32 @llvm.umax.i32(i32 %13, i32 1)
  %.not = icmp ult i32 %10, %17
  br i1 %.not, label %18, label %40

18:                                               ; preds = %16
  %19 = shl nuw i32 %17, 2
  %20 = tail call i32 @w2c_hermes_hermes0x3A0x3AcheckedMalloc0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %19) #5
  %21 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %22 = add nuw nsw i64 %8, 4
  %23 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %22)
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %25, label %.loopexit

25:                                               ; preds = %18
  %26 = shl i32 %23, 2
  %27 = add i32 %26, %21
  br label %28

28:                                               ; preds = %28, %25
  %.0136 = phi i32 [ %20, %25 ], [ %32, %28 ]
  %.0 = phi i32 [ %21, %25 ], [ %33, %28 ]
  %29 = zext i32 %.0 to i64
  %30 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %29)
  %31 = zext i32 %.0136 to i64
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %31, i32 noundef %30)
  %32 = add i32 %.0136, 4
  %33 = add i32 %.0, 4
  %34 = icmp ult i32 %33, %27
  br i1 %34, label %28, label %.loopexit

.loopexit:                                        ; preds = %28, %18
  tail call void @w2c_hermes_dlfree(ptr noundef %0, i32 noundef %21) #5
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %9, i32 noundef %17)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %8, i32 noundef %20)
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

35:                                               ; preds = %3
  %36 = add i32 %5, -8
  tail call void @w2c_hermes_hermes0x3A0x3Amake_error_code0x28hermes0x3A0x3AOOMError0x29(ptr noundef nonnull %0, i32 noundef %36, i32 noundef 5) #5
  %37 = zext i32 %6 to i64
  %38 = add nuw nsw i64 %37, 8
  %39 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %38)
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %37, i64 noundef %39)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3Aoom0x28std0x3A0x3A_0x5F20x3A0x3Aerror_code0x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %6)
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

40:                                               ; preds = %16
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 144714, i32 noundef 79653, i32 noundef 220, i32 noundef 17299) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable
}

declare void @w2c_hermes_hermes0x3A0x3Amake_error_code0x28hermes0x3A0x3AOOMError0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #4

attributes #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 = { 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { 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,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass