; 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 }
%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@w2c_hermes_t6 = external constant ptr, align 8

; 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 zeroext i1 @func_types_eq(ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

; 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) #4

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

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

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

57:                                               ; preds = %4
  %58 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %58, ptr %19, align 8, !tbaa !11
  store i64 -844424930131969, ptr %20, align 8, !tbaa !11
  %59 = load i64, ptr %19, align 8, !tbaa !11
  %60 = load i64, ptr %20, align 8, !tbaa !11
  %61 = icmp ule i64 %59, %60
  %62 = zext i1 %61 to i32
  store i32 %62, ptr %14, align 4, !tbaa !9
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %57
  br label %334

66:                                               ; preds = %57
  %67 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %67, ptr %19, align 8, !tbaa !11
  %68 = load i64, ptr %19, align 8, !tbaa !11
  %69 = trunc i64 %68 to i32
  store i32 %69, ptr %14, align 4, !tbaa !9
  %70 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %70, ptr %10, align 4, !tbaa !9
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = icmp ne i32 %71, 0
  %73 = xor i1 %72, true
  %74 = zext i1 %73 to i32
  store i32 %74, ptr %14, align 4, !tbaa !9
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %78

77:                                               ; preds = %66
  br label %352

78:                                               ; preds = %66
  %79 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %79, ptr %14, align 4, !tbaa !9
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = add i64 %83, 4
  %85 = call i32 @i32_load16_u(ptr noundef %81, i64 noundef %84)
  store i32 %85, ptr %14, align 4, !tbaa !9
  store i32 52753, ptr %15, align 4, !tbaa !9
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = icmp ne i32 %86, %87
  %89 = zext i1 %88 to i32
  store i32 %89, ptr %14, align 4, !tbaa !9
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %78
  br label %370

93:                                               ; preds = %78
  %94 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %94, ptr %14, align 4, !tbaa !9
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = call i32 @i32_load(ptr noundef %96, i64 noundef %98)
  store i32 %99, ptr %14, align 4, !tbaa !9
  %100 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %100, ptr %10, align 4, !tbaa !9
  store i32 22, ptr %15, align 4, !tbaa !9
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = and i32 %101, 31
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = lshr i32 %103, %102
  store i32 %104, ptr %14, align 4, !tbaa !9
  store i32 1020, ptr %15, align 4, !tbaa !9
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = and i32 %106, %105
  store i32 %107, ptr %14, align 4, !tbaa !9
  store i32 297512, ptr %15, align 4, !tbaa !9
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = load i32, ptr %14, align 4, !tbaa !9
  %110 = add i32 %109, %108
  store i32 %110, ptr %14, align 4, !tbaa !9
  %111 = load ptr, ptr %5, 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 = call i32 @i32_load(ptr noundef %112, i64 noundef %114)
  store i32 %115, ptr %14, align 4, !tbaa !9
  %116 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %116, ptr %10, align 4, !tbaa !9
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %14, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = call i64 @i64_load(ptr noundef %118, i64 noundef %120)
  store i64 %121, ptr %19, align 8, !tbaa !11
  store i64 -47381121442796770, ptr %20, align 8, !tbaa !11
  %122 = load i64, ptr %19, align 8, !tbaa !11
  %123 = load i64, ptr %20, align 8, !tbaa !11
  %124 = icmp ne i64 %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 = %93
  br label %370

129:                                              ; preds = %93
  %130 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %130, ptr %14, align 4, !tbaa !9
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 12
  %136 = call i32 @i32_load8_u(ptr noundef %132, i64 noundef %135)
  store i32 %136, ptr %14, align 4, !tbaa !9
  store i32 7, ptr %15, align 4, !tbaa !9
  %137 = load i32, ptr %15, align 4, !tbaa !9
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = and i32 %138, %137
  store i32 %139, ptr %14, align 4, !tbaa !9
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %129
  br label %370

143:                                              ; preds = %129
  %144 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %144, ptr %14, align 4, !tbaa !9
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.w2c_hermes, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %14, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = add i64 %148, 8
  %150 = call i32 @i32_load(ptr noundef %146, i64 noundef %149)
  store i32 %150, ptr %14, align 4, !tbaa !9
  store i32 79, ptr %15, align 4, !tbaa !9
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = icmp uge i32 %151, %152
  %154 = zext i1 %153 to i32
  store i32 %154, ptr %14, align 4, !tbaa !9
  %155 = load i32, ptr %14, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %143
  br label %370

158:                                              ; preds = %143
  %159 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %159, ptr %14, align 4, !tbaa !9
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = add i64 %163, 48
  %165 = call i32 @i32_load(ptr noundef %161, i64 noundef %164)
  store i32 %165, ptr %14, align 4, !tbaa !9
  %166 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %166, ptr %12, align 4, !tbaa !9
  %167 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %167, ptr %14, align 4, !tbaa !9
  %168 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %168, ptr %15, align 4, !tbaa !9
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.w2c_hermes, ptr %169, i32 0, i32 6
  %171 = load i32, ptr %14, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = add i64 %172, 12
  %174 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %170, i64 noundef %173, i32 noundef %174)
  %175 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %175, ptr %14, align 4, !tbaa !9
  %176 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %176, ptr %15, align 4, !tbaa !9
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.w2c_hermes, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = call i32 @i32_load(ptr noundef %178, i64 noundef %180)
  store i32 %181, ptr %15, align 4, !tbaa !9
  %182 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %182, ptr %10, align 4, !tbaa !9
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %14, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = add i64 %186, 8
  %188 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %184, i64 noundef %187, i32 noundef %188)
  %189 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %189, ptr %14, align 4, !tbaa !9
  %190 = load i32, ptr %14, align 4, !tbaa !9
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %192, label %208

192:                                              ; preds = %158
  %193 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %193, ptr %14, align 4, !tbaa !9
  %194 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %194, ptr %15, align 4, !tbaa !9
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.w2c_hermes, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %15, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = call i32 @i32_load(ptr noundef %196, i64 noundef %198)
  store i32 %199, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %200 = load i32, ptr %16, align 4, !tbaa !9
  %201 = load i32, ptr %15, align 4, !tbaa !9
  %202 = add i32 %201, %200
  store i32 %202, ptr %15, align 4, !tbaa !9
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 6
  %205 = load i32, ptr %14, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %204, i64 noundef %206, i32 noundef %207)
  br label %208

208:                                              ; preds = %192, %158
  %209 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %209, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %210 = load i32, ptr %15, align 4, !tbaa !9
  %211 = load i32, ptr %14, align 4, !tbaa !9
  %212 = add i32 %211, %210
  store i32 %212, ptr %14, align 4, !tbaa !9
  %213 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %213, ptr %15, align 4, !tbaa !9
  %214 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %214, ptr %16, align 4, !tbaa !9
  %215 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %215, ptr %17, align 4, !tbaa !9
  %216 = load i32, ptr %17, align 4, !tbaa !9
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.w2c_hermes, ptr %217, i32 0, i32 7
  %219 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %218, i32 0, i32 2
  %220 = load i32, ptr %219, align 4, !tbaa !18
  %221 = icmp ult i32 %216, %220
  br i1 %221, label %222, label %245

222:                                              ; preds = %208
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.w2c_hermes, ptr %223, i32 0, i32 7
  %225 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %224, i32 0, i32 0
  %226 = load ptr, ptr %225, align 8, !tbaa !19
  %227 = load i32, ptr %17, align 4, !tbaa !9
  %228 = zext i32 %227 to i64
  %229 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %226, i64 %228
  %230 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %229, i32 0, i32 1
  %231 = load ptr, ptr %230, align 8, !tbaa !20
  %232 = icmp ne ptr %231, null
  br i1 %232, label %233, label %245

233:                                              ; preds = %222
  %234 = load ptr, ptr @w2c_hermes_t6, align 8, !tbaa !5
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.w2c_hermes, ptr %235, i32 0, i32 7
  %237 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %236, i32 0, i32 0
  %238 = load ptr, ptr %237, align 8, !tbaa !19
  %239 = load i32, ptr %17, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %238, i64 %240
  %242 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %241, i32 0, i32 0
  %243 = load ptr, ptr %242, align 8, !tbaa !22
  %244 = call zeroext i1 @func_types_eq(ptr noundef %234, ptr noundef %243)
  br label %245

245:                                              ; preds = %233, %222, %208
  %246 = phi i1 [ false, %222 ], [ false, %208 ], [ %244, %233 ]
  %247 = xor i1 %246, true
  %248 = xor i1 %247, true
  %249 = zext i1 %248 to i32
  %250 = sext i32 %249 to i64
  %251 = call i64 @llvm.expect.i64(i64 %250, i64 1)
  %252 = icmp ne i64 %251, 0
  br i1 %252, label %255, label %253

253:                                              ; preds = %245
  call void @wasm_rt_trap(i32 noundef 6) #7
  unreachable

254:                                              ; No predecessors!
  br label %255

255:                                              ; preds = %254, %245
  %256 = phi i1 [ true, %245 ], [ false, %254 ]
  %257 = zext i1 %256 to i32
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.w2c_hermes, ptr %258, i32 0, i32 7
  %260 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %259, i32 0, i32 0
  %261 = load ptr, ptr %260, align 8, !tbaa !19
  %262 = load i32, ptr %17, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %261, i64 %263
  %265 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %264, i32 0, i32 1
  %266 = load ptr, ptr %265, align 8, !tbaa !20
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.w2c_hermes, ptr %267, i32 0, i32 7
  %269 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %268, i32 0, i32 0
  %270 = load ptr, ptr %269, align 8, !tbaa !19
  %271 = load i32, ptr %17, align 4, !tbaa !9
  %272 = zext i32 %271 to i64
  %273 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %270, i64 %272
  %274 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %273, i32 0, i32 2
  %275 = load ptr, ptr %274, align 8, !tbaa !23
  %276 = load i32, ptr %14, align 4, !tbaa !9
  %277 = load i32, ptr %15, align 4, !tbaa !9
  %278 = load i32, ptr %16, align 4, !tbaa !9
  %279 = call i32 %266(ptr noundef %275, i32 noundef %276, i32 noundef %277, i32 noundef %278)
  store i32 %279, ptr %14, align 4, !tbaa !9
  %280 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %280, ptr %6, align 4, !tbaa !9
  %281 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %281, ptr %14, align 4, !tbaa !9
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.w2c_hermes, ptr %282, i32 0, i32 6
  %284 = load i32, ptr %14, align 4, !tbaa !9
  %285 = zext i32 %284 to i64
  %286 = add i64 %285, 8
  %287 = call i32 @i32_load(ptr noundef %283, i64 noundef %286)
  store i32 %287, ptr %14, align 4, !tbaa !9
  %288 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %288, ptr %10, align 4, !tbaa !9
  %289 = load i32, ptr %14, align 4, !tbaa !9
  %290 = icmp ne i32 %289, 0
  br i1 %290, label %291, label %307

291:                                              ; preds = %255
  %292 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %292, ptr %14, align 4, !tbaa !9
  %293 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %293, ptr %15, align 4, !tbaa !9
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.w2c_hermes, ptr %294, i32 0, i32 6
  %296 = load i32, ptr %15, align 4, !tbaa !9
  %297 = zext i32 %296 to i64
  %298 = call i32 @i32_load(ptr noundef %295, i64 noundef %297)
  store i32 %298, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %299 = load i32, ptr %16, align 4, !tbaa !9
  %300 = load i32, ptr %15, align 4, !tbaa !9
  %301 = sub i32 %300, %299
  store i32 %301, ptr %15, align 4, !tbaa !9
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.w2c_hermes, ptr %302, i32 0, i32 6
  %304 = load i32, ptr %14, align 4, !tbaa !9
  %305 = zext i32 %304 to i64
  %306 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %303, i64 noundef %305, i32 noundef %306)
  br label %307

307:                                              ; preds = %291, %255
  %308 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %308, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %309 = load i32, ptr %15, align 4, !tbaa !9
  %310 = load i32, ptr %14, align 4, !tbaa !9
  %311 = add i32 %310, %309
  store i32 %311, ptr %14, align 4, !tbaa !9
  %312 = load i32, ptr %14, align 4, !tbaa !9
  %313 = load ptr, ptr %5, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.w2c_hermes, ptr %313, i32 0, i32 3
  store i32 %312, ptr %314, align 8, !tbaa !13
  %315 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %315, ptr %14, align 4, !tbaa !9
  br label %388

316:                                              ; preds = %4
  store i32 0, ptr %14, align 4, !tbaa !9
  %317 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %317, ptr %9, align 4, !tbaa !9
  store i32 118124, ptr %15, align 4, !tbaa !9
  %318 = load i32, ptr %15, align 4, !tbaa !9
  %319 = load i32, ptr %14, align 4, !tbaa !9
  %320 = add i32 %319, %318
  store i32 %320, ptr %14, align 4, !tbaa !9
  %321 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %321, ptr %15, align 4, !tbaa !9
  store i32 83341, ptr %16, align 4, !tbaa !9
  %322 = load i32, ptr %16, align 4, !tbaa !9
  %323 = load i32, ptr %15, align 4, !tbaa !9
  %324 = add i32 %323, %322
  store i32 %324, ptr %15, align 4, !tbaa !9
  store i32 480, ptr %16, align 4, !tbaa !9
  %325 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %325, ptr %17, align 4, !tbaa !9
  store i32 38798, ptr %18, align 4, !tbaa !9
  %326 = load i32, ptr %18, align 4, !tbaa !9
  %327 = load i32, ptr %17, align 4, !tbaa !9
  %328 = add i32 %327, %326
  store i32 %328, ptr %17, align 4, !tbaa !9
  %329 = load ptr, ptr %5, align 8, !tbaa !5
  %330 = load i32, ptr %14, align 4, !tbaa !9
  %331 = load i32, ptr %15, align 4, !tbaa !9
  %332 = load i32, ptr %16, align 4, !tbaa !9
  %333 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %329, i32 noundef %330, i32 noundef %331, i32 noundef %332, i32 noundef %333)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

334:                                              ; preds = %65
  store i32 0, ptr %14, align 4, !tbaa !9
  %335 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %335, ptr %9, align 4, !tbaa !9
  store i32 118273, ptr %15, align 4, !tbaa !9
  %336 = load i32, ptr %15, align 4, !tbaa !9
  %337 = load i32, ptr %14, align 4, !tbaa !9
  %338 = add i32 %337, %336
  store i32 %338, ptr %14, align 4, !tbaa !9
  %339 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %339, ptr %15, align 4, !tbaa !9
  store i32 83341, ptr %16, align 4, !tbaa !9
  %340 = load i32, ptr %16, align 4, !tbaa !9
  %341 = load i32, ptr %15, align 4, !tbaa !9
  %342 = add i32 %341, %340
  store i32 %342, ptr %15, align 4, !tbaa !9
  store i32 438, ptr %16, align 4, !tbaa !9
  %343 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %343, ptr %17, align 4, !tbaa !9
  store i32 49706, ptr %18, align 4, !tbaa !9
  %344 = load i32, ptr %18, align 4, !tbaa !9
  %345 = load i32, ptr %17, align 4, !tbaa !9
  %346 = add i32 %345, %344
  store i32 %346, ptr %17, align 4, !tbaa !9
  %347 = load ptr, ptr %5, align 8, !tbaa !5
  %348 = load i32, ptr %14, align 4, !tbaa !9
  %349 = load i32, ptr %15, align 4, !tbaa !9
  %350 = load i32, ptr %16, align 4, !tbaa !9
  %351 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %347, i32 noundef %348, i32 noundef %349, i32 noundef %350, i32 noundef %351)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

352:                                              ; preds = %77
  store i32 0, ptr %14, align 4, !tbaa !9
  %353 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %353, ptr %9, align 4, !tbaa !9
  store i32 168498, ptr %15, align 4, !tbaa !9
  %354 = load i32, ptr %15, align 4, !tbaa !9
  %355 = load i32, ptr %14, align 4, !tbaa !9
  %356 = add i32 %355, %354
  store i32 %356, ptr %14, align 4, !tbaa !9
  %357 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %357, ptr %15, align 4, !tbaa !9
  store i32 78081, ptr %16, align 4, !tbaa !9
  %358 = load i32, ptr %16, align 4, !tbaa !9
  %359 = load i32, ptr %15, align 4, !tbaa !9
  %360 = add i32 %359, %358
  store i32 %360, ptr %15, align 4, !tbaa !9
  store i32 269, ptr %16, align 4, !tbaa !9
  %361 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %361, ptr %17, align 4, !tbaa !9
  store i32 20456, ptr %18, align 4, !tbaa !9
  %362 = load i32, ptr %18, align 4, !tbaa !9
  %363 = load i32, ptr %17, align 4, !tbaa !9
  %364 = add i32 %363, %362
  store i32 %364, ptr %17, align 4, !tbaa !9
  %365 = load ptr, ptr %5, align 8, !tbaa !5
  %366 = load i32, ptr %14, align 4, !tbaa !9
  %367 = load i32, ptr %15, align 4, !tbaa !9
  %368 = load i32, ptr %16, align 4, !tbaa !9
  %369 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %365, i32 noundef %366, i32 noundef %367, i32 noundef %368, i32 noundef %369)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

370:                                              ; preds = %157, %142, %128, %92
  store i32 0, ptr %14, align 4, !tbaa !9
  %371 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %371, ptr %9, align 4, !tbaa !9
  store i32 157129, ptr %15, align 4, !tbaa !9
  %372 = load i32, ptr %15, align 4, !tbaa !9
  %373 = load i32, ptr %14, align 4, !tbaa !9
  %374 = add i32 %373, %372
  store i32 %374, ptr %14, align 4, !tbaa !9
  %375 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %375, ptr %15, align 4, !tbaa !9
  store i32 82339, ptr %16, align 4, !tbaa !9
  %376 = load i32, ptr %16, align 4, !tbaa !9
  %377 = load i32, ptr %15, align 4, !tbaa !9
  %378 = add i32 %377, %376
  store i32 %378, ptr %15, align 4, !tbaa !9
  store i32 152, ptr %16, align 4, !tbaa !9
  %379 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %379, ptr %17, align 4, !tbaa !9
  store i32 108545, ptr %18, align 4, !tbaa !9
  %380 = load i32, ptr %18, align 4, !tbaa !9
  %381 = load i32, ptr %17, align 4, !tbaa !9
  %382 = add i32 %381, %380
  store i32 %382, ptr %17, align 4, !tbaa !9
  %383 = load ptr, ptr %5, align 8, !tbaa !5
  %384 = load i32, ptr %14, align 4, !tbaa !9
  %385 = load i32, ptr %15, align 4, !tbaa !9
  %386 = load i32, ptr %16, align 4, !tbaa !9
  %387 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %383, i32 noundef %384, i32 noundef %385, i32 noundef %386, i32 noundef %387)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

388:                                              ; preds = %307
  %389 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret i32 %389
}

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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #4 = { "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 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 #6 = { nounwind }
attributes #7 = { 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}
!18 = !{!14, !10, i64 92}
!19 = !{!14, !6, i64 80}
!20 = !{!21, !6, i64 8}
!21 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!21, !6, i64 0}
!23 = !{!21, !6, i64 16}


; 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"

%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@w2c_hermes_t6 = external local_unnamed_addr constant ptr, align 8

; 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 zeroext i1 @func_types_eq(ptr noundef, ptr 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load16_u(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

17:                                               ; preds = %15
  %18 = add nuw nsw i64 %16, 4
  %19 = tail call i32 @i32_load16_u(ptr noundef nonnull %8, i64 noundef %18)
  %.not191 = icmp eq i32 %19, 52753
  br i1 %.not191, label %20, label %80

20:                                               ; preds = %17
  %21 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %16)
  %22 = lshr i32 %21, 22
  %23 = and i32 %22, 1020
  %24 = add nuw nsw i32 %23, 297512
  %25 = zext nneg i32 %24 to i64
  %26 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %25)
  %27 = zext i32 %26 to i64
  %28 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %27)
  %.not192 = icmp eq i64 %28, -47381121442796770
  br i1 %.not192, label %29, label %80

29:                                               ; preds = %20
  %30 = add nuw nsw i64 %27, 12
  %31 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %30)
  %32 = and i32 %31, 7
  %.not193 = icmp eq i32 %32, 0
  br i1 %.not193, label %33, label %80

33:                                               ; preds = %29
  %34 = add nuw nsw i64 %27, 8
  %35 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %34)
  %36 = icmp ugt i32 %35, 78
  br i1 %36, label %80, label %37

37:                                               ; preds = %33
  %38 = add nuw nsw i64 %27, 48
  %39 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %38)
  %40 = zext i32 %7 to i64
  %41 = add nuw nsw i64 %40, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %41, i32 noundef %11)
  %42 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %9)
  %43 = add nuw nsw i64 %40, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %43, i32 noundef %42)
  %.not194 = icmp eq i32 %42, 0
  br i1 %.not194, label %48, label %44

44:                                               ; preds = %37
  %45 = zext i32 %42 to i64
  %46 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %45)
  %47 = add i32 %46, 1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %45, i32 noundef %47)
  br label %48

48:                                               ; preds = %44, %37
  %49 = add i32 %6, -8
  %50 = getelementptr inbounds i8, ptr %0, i64 80
  %51 = getelementptr inbounds i8, ptr %0, i64 92
  %52 = load i32, ptr %51, align 4, !tbaa !15
  %53 = icmp ult i32 %39, %52
  br i1 %53, label %54, label %.critedge, !prof !16

54:                                               ; preds = %48
  %55 = load ptr, ptr %50, align 8, !tbaa !17
  %56 = zext i32 %39 to i64
  %57 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %55, i64 %56
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = load ptr, ptr %58, align 8, !tbaa !18
  %.not195 = icmp eq ptr %59, null
  br i1 %.not195, label %.critedge, label %60, !prof !20

60:                                               ; preds = %54
  %61 = load ptr, ptr @w2c_hermes_t6, align 8, !tbaa !21
  %62 = load ptr, ptr %57, align 8, !tbaa !22
  %63 = tail call zeroext i1 @func_types_eq(ptr noundef %61, ptr noundef %62)
  br i1 %63, label %64, label %.critedge, !prof !16

.critedge:                                        ; preds = %54, %48, %60
  tail call void @wasm_rt_trap(i32 noundef 6) #4
  unreachable

64:                                               ; preds = %60
  %65 = load ptr, ptr %50, align 8, !tbaa !17
  %66 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %65, i64 %56
  %67 = getelementptr inbounds i8, ptr %66, i64 8
  %68 = load ptr, ptr %67, align 8, !tbaa !18
  %69 = getelementptr inbounds i8, ptr %66, i64 16
  %70 = load ptr, ptr %69, align 8, !tbaa !23
  %71 = tail call i32 %68(ptr noundef %70, i32 noundef %49, i32 noundef %2, i32 noundef %3) #5
  %72 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %43)
  %.not196 = icmp eq i32 %72, 0
  br i1 %.not196, label %77, label %73

73:                                               ; preds = %64
  %74 = zext i32 %72 to i64
  %75 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %74)
  %76 = add i32 %75, -1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %74, i32 noundef %76)
  br label %77

77:                                               ; preds = %73, %64
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret i32 %71

78:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 118124, i32 noundef 83341, i32 noundef 480, i32 noundef 38798) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

79:                                               ; preds = %15
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 168498, i32 noundef 78081, i32 noundef 269, i32 noundef 20456) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

80:                                               ; preds = %33, %29, %20, %17
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 157129, i32 noundef 82339, i32 noundef 152, i32 noundef 108545) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable
}

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 = { noreturn nounwind }
attributes #5 = { 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}
!15 = !{!6, !10, i64 92}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!17 = !{!6, !7, i64 80}
!18 = !{!19, !7, i64 8}
!19 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!21 = !{!7, !7, i64 0}
!22 = !{!19, !7, i64 0}
!23 = !{!19, !7, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass