; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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: 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

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

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

; 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_dlfree(ptr noundef, i32 noundef) #2

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

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

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

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

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

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

57:                                               ; preds = %3
  br label %185

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

66:                                               ; preds = %58
  br label %185

67:                                               ; preds = %58
  store i32 1, ptr %13, align 4, !tbaa !9
  %68 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %68, ptr %14, align 4, !tbaa !9
  %69 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %69, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = load i32, ptr %16, align 4, !tbaa !9
  %72 = icmp ule i32 %70, %71
  %73 = zext i1 %72 to i32
  store i32 %73, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %78

76:                                               ; preds = %67
  %77 = load i32, ptr %13, align 4, !tbaa !9
  br label %80

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

80:                                               ; preds = %78, %76
  %81 = phi i32 [ %77, %76 ], [ %79, %78 ]
  store i32 %81, ptr %13, align 4, !tbaa !9
  %82 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %82, ptr %11, align 4, !tbaa !9
  store i32 2, ptr %14, align 4, !tbaa !9
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = and i32 %83, 31
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = shl i32 %85, %84
  store i32 %86, ptr %13, align 4, !tbaa !9
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = load i32, ptr %13, align 4, !tbaa !9
  %89 = call i32 @w2c_hermes_hermes0x3A0x3AcheckedMalloc0x28unsigned0x20long0x29(ptr noundef %87, i32 noundef %88)
  store i32 %89, ptr %13, align 4, !tbaa !9
  %90 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %90, ptr %10, align 4, !tbaa !9
  %91 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %91, ptr %13, align 4, !tbaa !9
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.w2c_hermes, ptr %92, i32 0, i32 6
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = call i32 @i32_load(ptr noundef %93, i64 noundef %95)
  store i32 %96, ptr %13, align 4, !tbaa !9
  %97 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %97, ptr %6, align 4, !tbaa !9
  %98 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %98, ptr %13, align 4, !tbaa !9
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.w2c_hermes, ptr %99, i32 0, i32 6
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = add i64 %102, 4
  %104 = call i32 @i32_load(ptr noundef %100, i64 noundef %103)
  store i32 %104, ptr %13, align 4, !tbaa !9
  %105 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %105, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = icmp sgt i32 %106, %107
  %109 = zext i1 %108 to i32
  store i32 %109, ptr %13, align 4, !tbaa !9
  %110 = load i32, ptr %13, align 4, !tbaa !9
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %159

112:                                              ; preds = %80
  %113 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %113, ptr %13, align 4, !tbaa !9
  %114 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %114, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %115 = load i32, ptr %15, align 4, !tbaa !9
  %116 = and i32 %115, 31
  %117 = load i32, ptr %14, align 4, !tbaa !9
  %118 = shl i32 %117, %116
  store i32 %118, ptr %14, align 4, !tbaa !9
  %119 = load i32, ptr %14, align 4, !tbaa !9
  %120 = load i32, ptr %13, align 4, !tbaa !9
  %121 = add i32 %120, %119
  store i32 %121, ptr %13, align 4, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %122, ptr %12, align 4, !tbaa !9
  %123 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %123, ptr %13, align 4, !tbaa !9
  %124 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %124, ptr %7, align 4, !tbaa !9
  %125 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %125, ptr %13, align 4, !tbaa !9
  %126 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %126, ptr %9, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %157, %112
  %128 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %128, ptr %13, align 4, !tbaa !9
  %129 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %14, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = call i32 @i32_load(ptr noundef %131, i64 noundef %133)
  store i32 %134, ptr %14, align 4, !tbaa !9
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.w2c_hermes, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %136, i64 noundef %138, i32 noundef %139)
  %140 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %140, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %141 = load i32, ptr %14, align 4, !tbaa !9
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = add i32 %142, %141
  store i32 %143, ptr %13, align 4, !tbaa !9
  %144 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %144, ptr %7, align 4, !tbaa !9
  %145 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %145, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %146 = load i32, ptr %14, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = add i32 %147, %146
  store i32 %148, ptr %13, align 4, !tbaa !9
  %149 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %149, ptr %9, align 4, !tbaa !9
  %150 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %150, ptr %14, align 4, !tbaa !9
  %151 = load i32, ptr %13, align 4, !tbaa !9
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = icmp ult i32 %151, %152
  %154 = zext i1 %153 to i32
  store i32 %154, ptr %13, align 4, !tbaa !9
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %127
  br label %127

158:                                              ; preds = %127
  br label %159

159:                                              ; preds = %158, %80
  %160 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %160, ptr %13, align 4, !tbaa !9
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %161, i32 noundef %162)
  %163 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %163, ptr %13, align 4, !tbaa !9
  %164 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %164, ptr %14, align 4, !tbaa !9
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.w2c_hermes, ptr %165, i32 0, i32 6
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = zext i32 %167 to i64
  %169 = add i64 %168, 8
  %170 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %166, i64 noundef %169, i32 noundef %170)
  %171 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %171, ptr %13, align 4, !tbaa !9
  %172 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %172, ptr %14, align 4, !tbaa !9
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.w2c_hermes, ptr %173, i32 0, i32 6
  %175 = load i32, ptr %13, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %174, i64 noundef %176, i32 noundef %177)
  %178 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %178, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %179 = load i32, ptr %14, align 4, !tbaa !9
  %180 = load i32, ptr %13, align 4, !tbaa !9
  %181 = add i32 %180, %179
  store i32 %181, ptr %13, align 4, !tbaa !9
  %182 = load i32, ptr %13, align 4, !tbaa !9
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 3
  store i32 %182, ptr %184, align 8, !tbaa !11
  br label %236

185:                                              ; preds = %66, %57
  store i32 131201, ptr %13, align 4, !tbaa !9
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.w2c_hermes, ptr %186, i32 0, i32 6
  %188 = load i32, ptr %13, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = call i32 @i32_load8_u(ptr noundef %187, i64 noundef %189)
  store i32 %190, ptr %13, align 4, !tbaa !9
  %191 = load i32, ptr %13, align 4, !tbaa !9
  %192 = icmp ne i32 %191, 0
  %193 = xor i1 %192, true
  %194 = zext i1 %193 to i32
  store i32 %194, ptr %13, align 4, !tbaa !9
  %195 = load i32, ptr %13, align 4, !tbaa !9
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %203

197:                                              ; preds = %185
  store i32 131201, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.w2c_hermes, ptr %198, i32 0, i32 6
  %200 = load i32, ptr %13, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %199, i64 noundef %201, i32 noundef %202)
  br label %203

203:                                              ; preds = %197, %185
  %204 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %204, ptr %13, align 4, !tbaa !9
  store i32 5, ptr %14, align 4, !tbaa !9
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.w2c_hermes, ptr %205, i32 0, i32 6
  %207 = load i32, ptr %13, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = add i64 %208, 8
  %210 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %206, i64 noundef %209, i32 noundef %210)
  %211 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %211, ptr %13, align 4, !tbaa !9
  store i32 110180, ptr %14, align 4, !tbaa !9
  %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 = add i64 %215, 12
  %217 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %213, i64 noundef %216, i32 noundef %217)
  %218 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %218, ptr %13, align 4, !tbaa !9
  %219 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %219, ptr %14, align 4, !tbaa !9
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.w2c_hermes, ptr %220, i32 0, i32 6
  %222 = load i32, ptr %14, align 4, !tbaa !9
  %223 = zext i32 %222 to i64
  %224 = add i64 %223, 8
  %225 = call i64 @i64_load(ptr noundef %221, i64 noundef %224)
  store i64 %225, ptr %17, align 8, !tbaa !17
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 6
  %228 = load i32, ptr %13, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = load i64, ptr %17, align 8, !tbaa !17
  call void @i64_store(ptr noundef %227, i64 noundef %229, i64 noundef %230)
  %231 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %231, ptr %13, align 4, !tbaa !9
  %232 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %232, ptr %14, align 4, !tbaa !9
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = load i32, ptr %13, align 4, !tbaa !9
  %235 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3Aoom0x28std0x3A0x3A_0x5F20x3A0x3Aerror_code0x29(ptr noundef %233, i32 noundef %234, i32 noundef %235)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

236:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 8, 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
}

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 = { "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 = { 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 #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"

; 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

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

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 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: 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 %34, label %16

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

24:                                               ; preds = %16
  %25 = shl i32 %22, 2
  %26 = add i32 %25, %20
  br label %27

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

.loopexit:                                        ; preds = %27, %16
  tail call void @w2c_hermes_dlfree(ptr noundef %0, i32 noundef %20) #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 %19)
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

34:                                               ; preds = %3
  %35 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef 131201)
  %.not = icmp eq i32 %35, 0
  br i1 %.not, label %36, label %37

36:                                               ; preds = %34
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef 131201, i32 noundef 1)
  br label %37

37:                                               ; preds = %36, %34
  %38 = zext i32 %6 to i64
  %39 = add nuw nsw i64 %38, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %39, i32 noundef 5)
  %40 = add nuw nsw i64 %38, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %40, i32 noundef 110180)
  %41 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %39)
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %38, i64 noundef %41)
  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
}

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

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 = { "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 = { 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