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

@w2c_hermes_t1 = 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

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 i32 @i32_load8_u(ptr noundef, i64 noundef) #3

; 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: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @func_types_eq(ptr noundef, ptr noundef) #3

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

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

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

64:                                               ; preds = %56
  br label %317

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

76:                                               ; preds = %65
  br label %323

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

91:                                               ; preds = %77
  br label %329

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

126:                                              ; preds = %92
  br label %329

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

140:                                              ; preds = %127
  br label %329

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

155:                                              ; preds = %141
  br label %329

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

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

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

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

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

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

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

252:                                              ; No predecessors!
  br label %253

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

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

303:                                              ; preds = %287, %253
  %304 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %304, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %305 = load i32, ptr %15, align 4, !tbaa !9
  %306 = load i32, ptr %14, align 4, !tbaa !9
  %307 = add i32 %306, %305
  store i32 %307, ptr %14, align 4, !tbaa !9
  %308 = load i32, ptr %14, align 4, !tbaa !9
  %309 = load ptr, ptr %5, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.w2c_hermes, ptr %309, i32 0, i32 3
  store i32 %308, ptr %310, align 8, !tbaa !13
  br label %335

311:                                              ; preds = %4
  store i32 118124, ptr %14, align 4, !tbaa !9
  store i32 83341, ptr %15, align 4, !tbaa !9
  store i32 480, ptr %16, align 4, !tbaa !9
  store i32 38798, ptr %17, align 4, !tbaa !9
  %312 = load ptr, ptr %5, align 8, !tbaa !5
  %313 = load i32, ptr %14, align 4, !tbaa !9
  %314 = load i32, ptr %15, align 4, !tbaa !9
  %315 = load i32, ptr %16, align 4, !tbaa !9
  %316 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %312, i32 noundef %313, i32 noundef %314, i32 noundef %315, i32 noundef %316)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

317:                                              ; preds = %64
  store i32 118273, ptr %14, align 4, !tbaa !9
  store i32 83341, ptr %15, align 4, !tbaa !9
  store i32 438, ptr %16, align 4, !tbaa !9
  store i32 49706, ptr %17, align 4, !tbaa !9
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = load i32, ptr %14, align 4, !tbaa !9
  %320 = load i32, ptr %15, align 4, !tbaa !9
  %321 = load i32, ptr %16, align 4, !tbaa !9
  %322 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %318, i32 noundef %319, i32 noundef %320, i32 noundef %321, i32 noundef %322)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

323:                                              ; preds = %76
  store i32 168498, ptr %14, align 4, !tbaa !9
  store i32 78081, ptr %15, align 4, !tbaa !9
  store i32 269, ptr %16, align 4, !tbaa !9
  store i32 20456, ptr %17, align 4, !tbaa !9
  %324 = load ptr, ptr %5, align 8, !tbaa !5
  %325 = load i32, ptr %14, align 4, !tbaa !9
  %326 = load i32, ptr %15, align 4, !tbaa !9
  %327 = load i32, ptr %16, align 4, !tbaa !9
  %328 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %324, i32 noundef %325, i32 noundef %326, i32 noundef %327, i32 noundef %328)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

329:                                              ; preds = %155, %140, %126, %91
  store i32 157129, ptr %14, align 4, !tbaa !9
  store i32 82339, ptr %15, align 4, !tbaa !9
  store i32 152, ptr %16, align 4, !tbaa !9
  store i32 108545, ptr %17, align 4, !tbaa !9
  %330 = load ptr, ptr %5, align 8, !tbaa !5
  %331 = load i32, ptr %14, align 4, !tbaa !9
  %332 = load i32, ptr %15, align 4, !tbaa !9
  %333 = load i32, ptr %16, align 4, !tbaa !9
  %334 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %330, i32 noundef %331, i32 noundef %332, i32 noundef %333, i32 noundef %334)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

335:                                              ; preds = %303
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 void
}

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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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_t1 = external local_unnamed_addr constant ptr, align 8

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 i32 @i32_load8_u(ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallable0x3A0x3Acall0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ACallable0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(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 %2 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 %77

15:                                               ; preds = %4
  %16 = and i64 %13, 4294967295
  %.not = icmp eq i64 %16, 0
  br i1 %.not, label %78, 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)
  %.not151 = icmp eq i32 %19, 52753
  br i1 %.not151, label %20, label %79

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)
  %.not152 = icmp eq i64 %28, -47381121442796770
  br i1 %.not152, label %29, label %79

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
  %.not153 = icmp eq i32 %32, 0
  br i1 %.not153, label %33, label %79

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 %79, label %37

37:                                               ; preds = %33
  %38 = add nuw nsw i64 %27, 60
  %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)
  %.not154 = icmp eq i32 %42, 0
  br i1 %.not154, 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
  %.not155 = icmp eq ptr %59, null
  br i1 %.not155, label %.critedge, label %60, !prof !20

60:                                               ; preds = %54
  %61 = load ptr, ptr @w2c_hermes_t1, 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
  tail call void %68(ptr noundef %70, i32 noundef %1, i32 noundef %49, i32 noundef %3) #5
  %71 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %43)
  %.not156 = icmp eq i32 %71, 0
  br i1 %.not156, label %76, label %72

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

76:                                               ; preds = %72, %64
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void

77:                                               ; 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

78:                                               ; 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

79:                                               ; 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 = { "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 = { 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