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

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

@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHostObjectWrapper0x3A0x3Aset0x28hermes0x3A0x3Avm0x3A0x3ASymbolID0x2C0x20hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i64 noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i64 %4, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %20 = load ptr, ptr %6, 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 %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %23 = load i32, ptr %14, align 4, !tbaa !9
  %24 = load i32, ptr %13, align 4, !tbaa !9
  %25 = sub i32 %24, %23
  store i32 %25, ptr %13, align 4, !tbaa !9
  %26 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %26, ptr %11, align 4, !tbaa !9
  %27 = load i32, ptr %13, align 4, !tbaa !9
  %28 = load ptr, ptr %6, 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 %8, align 4, !tbaa !9
  store i32 %30, ptr %13, align 4, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.w2c_hermes, ptr %31, i32 0, i32 6
  %33 = load i32, ptr %13, 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 %13, align 4, !tbaa !9
  %37 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %37, ptr %12, align 4, !tbaa !9
  %38 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %38, ptr %13, align 4, !tbaa !9
  %39 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %39, ptr %14, align 4, !tbaa !9
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  store i64 %41, ptr %18, align 8, !tbaa !11
  store i64 -1266637395197952, ptr %19, align 8, !tbaa !11
  %42 = load i64, ptr %19, align 8, !tbaa !11
  %43 = load i64, ptr %18, align 8, !tbaa !11
  %44 = or i64 %43, %42
  store i64 %44, ptr %18, align 8, !tbaa !11
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %13, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %46, i64 noundef %48, i64 noundef %49)
  %50 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %50, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = add i32 %52, %51
  store i32 %53, ptr %13, align 4, !tbaa !9
  %54 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %54, ptr %14, align 4, !tbaa !9
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = load i32, ptr %14, align 4, !tbaa !9
  %58 = call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef %55, i32 noundef %56, i32 noundef %57)
  store i32 %58, ptr %13, align 4, !tbaa !9
  %59 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %59, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %60, ptr %13, align 4, !tbaa !9
  %61 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %61, ptr %14, align 4, !tbaa !9
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.w2c_hermes, ptr %62, i32 0, i32 6
  %64 = load i32, ptr %14, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = add i64 %65, 4
  %67 = call i32 @i32_load(ptr noundef %63, i64 noundef %66)
  store i32 %67, ptr %14, align 4, !tbaa !9
  %68 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %68, ptr %19, align 8, !tbaa !11
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = load i64, ptr %19, align 8, !tbaa !11
  call void @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AcreateValue0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %69, i32 noundef %70, i32 noundef %71, i64 noundef %72)
  %73 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %73, ptr %13, align 4, !tbaa !9
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.w2c_hermes, ptr %74, i32 0, i32 6
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = add i64 %77, 8
  %79 = call i32 @i32_load(ptr noundef %75, i64 noundef %78)
  store i32 %79, ptr %13, align 4, !tbaa !9
  %80 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %80, ptr %12, align 4, !tbaa !9
  %81 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %81, ptr %14, align 4, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.w2c_hermes, ptr %82, i32 0, i32 6
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = add i64 %85, 4
  %87 = call i32 @i32_load(ptr noundef %83, i64 noundef %86)
  store i32 %87, ptr %14, align 4, !tbaa !9
  %88 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %88, ptr %15, align 4, !tbaa !9
  %89 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %89, ptr %16, align 4, !tbaa !9
  %90 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %90, ptr %17, align 4, !tbaa !9
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.w2c_hermes, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = call i32 @i32_load(ptr noundef %92, i64 noundef %94)
  store i32 %95, ptr %17, align 4, !tbaa !9
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 6
  %98 = load i32, ptr %17, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = add i64 %99, 8
  %101 = call i32 @i32_load(ptr noundef %97, i64 noundef %100)
  store i32 %101, ptr %17, align 4, !tbaa !9
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 7
  %105 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %104, i32 0, i32 2
  %106 = load i32, ptr %105, align 4, !tbaa !18
  %107 = icmp ult i32 %102, %106
  br i1 %107, label %108, label %130

108:                                              ; preds = %5
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 7
  %111 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !19
  %113 = load i32, ptr %17, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %112, i64 %114
  %116 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %115, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !20
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %130

119:                                              ; preds = %108
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 7
  %122 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !19
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %123, i64 %125
  %127 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %126, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8, !tbaa !22
  %129 = call zeroext i1 @func_types_eq(ptr noundef @.str.7, ptr noundef %128)
  br label %130

130:                                              ; preds = %119, %108, %5
  %131 = phi i1 [ false, %108 ], [ false, %5 ], [ %129, %119 ]
  %132 = xor i1 %131, true
  %133 = xor i1 %132, true
  %134 = zext i1 %133 to i32
  %135 = sext i32 %134 to i64
  %136 = call i64 @llvm.expect.i64(i64 %135, i64 1)
  %137 = icmp ne i64 %136, 0
  br i1 %137, label %140, label %138

138:                                              ; preds = %130
  call void @wasm_rt_trap(i32 noundef 6) #6
  unreachable

139:                                              ; No predecessors!
  br label %140

140:                                              ; preds = %139, %130
  %141 = phi i1 [ true, %130 ], [ false, %139 ]
  %142 = zext i1 %141 to i32
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 7
  %145 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !19
  %147 = load i32, ptr %17, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %146, i64 %148
  %150 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %149, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !20
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.w2c_hermes, ptr %152, i32 0, i32 7
  %154 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %153, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8, !tbaa !19
  %156 = load i32, ptr %17, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %155, i64 %157
  %159 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %158, i32 0, i32 2
  %160 = load ptr, ptr %159, align 8, !tbaa !23
  %161 = load i32, ptr %13, align 4, !tbaa !9
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = load i32, ptr %15, align 4, !tbaa !9
  %164 = load i32, ptr %16, align 4, !tbaa !9
  %165 = call i32 %151(ptr noundef %160, i32 noundef %161, i32 noundef %162, i32 noundef %163, i32 noundef %164)
  store i32 %165, ptr %13, align 4, !tbaa !9
  %166 = load i32, ptr %13, 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 %13, align 4, !tbaa !9
  %168 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %168, ptr %14, align 4, !tbaa !9
  %169 = load ptr, ptr %6, 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 = call i32 @i32_load(ptr noundef %170, i64 noundef %172)
  store i32 %173, ptr %14, align 4, !tbaa !9
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 6
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = call i32 @i32_load(ptr noundef %175, i64 noundef %177)
  store i32 %178, ptr %14, align 4, !tbaa !9
  %179 = load i32, ptr %14, align 4, !tbaa !9
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.w2c_hermes, ptr %180, i32 0, i32 7
  %182 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %181, i32 0, i32 2
  %183 = load i32, ptr %182, align 4, !tbaa !18
  %184 = icmp ult i32 %179, %183
  br i1 %184, label %185, label %207

185:                                              ; preds = %140
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.w2c_hermes, ptr %186, i32 0, i32 7
  %188 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %187, i32 0, i32 0
  %189 = load ptr, ptr %188, align 8, !tbaa !19
  %190 = load i32, ptr %14, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %189, i64 %191
  %193 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %192, i32 0, i32 1
  %194 = load ptr, ptr %193, align 8, !tbaa !20
  %195 = icmp ne ptr %194, null
  br i1 %195, label %196, label %207

196:                                              ; preds = %185
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.w2c_hermes, ptr %197, i32 0, i32 7
  %199 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %198, i32 0, i32 0
  %200 = load ptr, ptr %199, align 8, !tbaa !19
  %201 = load i32, ptr %14, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %200, i64 %202
  %204 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !22
  %206 = call zeroext i1 @func_types_eq(ptr noundef @.str.3, ptr noundef %205)
  br label %207

207:                                              ; preds = %196, %185, %140
  %208 = phi i1 [ false, %185 ], [ false, %140 ], [ %206, %196 ]
  %209 = xor i1 %208, true
  %210 = xor i1 %209, true
  %211 = zext i1 %210 to i32
  %212 = sext i32 %211 to i64
  %213 = call i64 @llvm.expect.i64(i64 %212, i64 1)
  %214 = icmp ne i64 %213, 0
  br i1 %214, label %217, label %215

215:                                              ; preds = %207
  call void @wasm_rt_trap(i32 noundef 6) #6
  unreachable

216:                                              ; No predecessors!
  br label %217

217:                                              ; preds = %216, %207
  %218 = phi i1 [ true, %207 ], [ false, %216 ]
  %219 = zext i1 %218 to i32
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.w2c_hermes, ptr %220, i32 0, i32 7
  %222 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %221, i32 0, i32 0
  %223 = load ptr, ptr %222, align 8, !tbaa !19
  %224 = load i32, ptr %14, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %223, i64 %225
  %227 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %226, i32 0, i32 1
  %228 = load ptr, ptr %227, align 8, !tbaa !20
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.w2c_hermes, ptr %229, i32 0, i32 7
  %231 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %230, i32 0, i32 0
  %232 = load ptr, ptr %231, align 8, !tbaa !19
  %233 = load i32, ptr %14, align 4, !tbaa !9
  %234 = zext i32 %233 to i64
  %235 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %232, i64 %234
  %236 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %235, i32 0, i32 2
  %237 = load ptr, ptr %236, align 8, !tbaa !23
  %238 = load i32, ptr %13, align 4, !tbaa !9
  call void %228(ptr noundef %237, i32 noundef %238)
  %239 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %239, ptr %13, align 4, !tbaa !9
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.w2c_hermes, ptr %240, i32 0, i32 6
  %242 = load i32, ptr %13, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = call i32 @i32_load(ptr noundef %241, i64 noundef %243)
  store i32 %244, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %245 = load i32, ptr %13, align 4, !tbaa !9
  %246 = load i32, ptr %14, align 4, !tbaa !9
  %247 = icmp slt i32 %245, %246
  %248 = zext i1 %247 to i32
  store i32 %248, ptr %13, align 4, !tbaa !9
  %249 = load i32, ptr %13, align 4, !tbaa !9
  %250 = icmp ne i32 %249, 0
  br i1 %250, label %251, label %331

251:                                              ; preds = %217
  %252 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %252, ptr %13, align 4, !tbaa !9
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.w2c_hermes, ptr %253, i32 0, i32 6
  %255 = load i32, ptr %13, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = add i64 %256, 8
  %258 = call i32 @i32_load(ptr noundef %254, i64 noundef %257)
  store i32 %258, ptr %13, align 4, !tbaa !9
  %259 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %259, ptr %9, align 4, !tbaa !9
  %260 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %260, ptr %14, align 4, !tbaa !9
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.w2c_hermes, ptr %261, i32 0, i32 6
  %263 = load i32, ptr %14, align 4, !tbaa !9
  %264 = zext i32 %263 to i64
  %265 = call i32 @i32_load(ptr noundef %262, i64 noundef %264)
  store i32 %265, ptr %14, align 4, !tbaa !9
  %266 = load ptr, ptr %6, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.w2c_hermes, ptr %266, i32 0, i32 6
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = zext i32 %268 to i64
  %270 = call i32 @i32_load(ptr noundef %267, i64 noundef %269)
  store i32 %270, ptr %14, align 4, !tbaa !9
  %271 = load i32, ptr %14, align 4, !tbaa !9
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.w2c_hermes, ptr %272, i32 0, i32 7
  %274 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %273, i32 0, i32 2
  %275 = load i32, ptr %274, align 4, !tbaa !18
  %276 = icmp ult i32 %271, %275
  br i1 %276, label %277, label %299

277:                                              ; preds = %251
  %278 = load ptr, ptr %6, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.w2c_hermes, ptr %278, i32 0, i32 7
  %280 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %279, i32 0, i32 0
  %281 = load ptr, ptr %280, align 8, !tbaa !19
  %282 = load i32, ptr %14, align 4, !tbaa !9
  %283 = zext i32 %282 to i64
  %284 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %281, i64 %283
  %285 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %284, i32 0, i32 1
  %286 = load ptr, ptr %285, align 8, !tbaa !20
  %287 = icmp ne ptr %286, null
  br i1 %287, label %288, label %299

288:                                              ; preds = %277
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.w2c_hermes, ptr %289, i32 0, i32 7
  %291 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %290, i32 0, i32 0
  %292 = load ptr, ptr %291, align 8, !tbaa !19
  %293 = load i32, ptr %14, align 4, !tbaa !9
  %294 = zext i32 %293 to i64
  %295 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %292, i64 %294
  %296 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %295, i32 0, i32 0
  %297 = load ptr, ptr %296, align 8, !tbaa !22
  %298 = call zeroext i1 @func_types_eq(ptr noundef @.str.3, ptr noundef %297)
  br label %299

299:                                              ; preds = %288, %277, %251
  %300 = phi i1 [ false, %277 ], [ false, %251 ], [ %298, %288 ]
  %301 = xor i1 %300, true
  %302 = xor i1 %301, true
  %303 = zext i1 %302 to i32
  %304 = sext i32 %303 to i64
  %305 = call i64 @llvm.expect.i64(i64 %304, i64 1)
  %306 = icmp ne i64 %305, 0
  br i1 %306, label %309, label %307

307:                                              ; preds = %299
  call void @wasm_rt_trap(i32 noundef 6) #6
  unreachable

308:                                              ; No predecessors!
  br label %309

309:                                              ; preds = %308, %299
  %310 = phi i1 [ true, %299 ], [ false, %308 ]
  %311 = zext i1 %310 to i32
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.w2c_hermes, ptr %312, i32 0, i32 7
  %314 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %313, i32 0, i32 0
  %315 = load ptr, ptr %314, align 8, !tbaa !19
  %316 = load i32, ptr %14, align 4, !tbaa !9
  %317 = zext i32 %316 to i64
  %318 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %315, i64 %317
  %319 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %318, i32 0, i32 1
  %320 = load ptr, ptr %319, align 8, !tbaa !20
  %321 = load ptr, ptr %6, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.w2c_hermes, ptr %321, i32 0, i32 7
  %323 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %322, i32 0, i32 0
  %324 = load ptr, ptr %323, align 8, !tbaa !19
  %325 = load i32, ptr %14, align 4, !tbaa !9
  %326 = zext i32 %325 to i64
  %327 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %324, i64 %326
  %328 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %327, i32 0, i32 2
  %329 = load ptr, ptr %328, align 8, !tbaa !23
  %330 = load i32, ptr %13, align 4, !tbaa !9
  call void %320(ptr noundef %329, i32 noundef %330)
  br label %331

331:                                              ; preds = %309, %217
  %332 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %332, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %333 = load i32, ptr %14, align 4, !tbaa !9
  %334 = load i32, ptr %13, align 4, !tbaa !9
  %335 = and i32 %334, %333
  store i32 %335, ptr %13, align 4, !tbaa !9
  %336 = load i32, ptr %13, align 4, !tbaa !9
  %337 = icmp ne i32 %336, 0
  br i1 %337, label %338, label %376

338:                                              ; preds = %331
  %339 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %339, ptr %13, align 4, !tbaa !9
  %340 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %340, ptr %14, align 4, !tbaa !9
  %341 = load ptr, ptr %6, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.w2c_hermes, ptr %341, i32 0, i32 6
  %343 = load i32, ptr %14, align 4, !tbaa !9
  %344 = zext i32 %343 to i64
  %345 = add i64 %344, 4
  %346 = call i32 @i32_load(ptr noundef %342, i64 noundef %345)
  store i32 %346, ptr %14, align 4, !tbaa !9
  %347 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %347, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %16, align 4, !tbaa !9
  %348 = load i32, ptr %16, align 4, !tbaa !9
  %349 = and i32 %348, 31
  %350 = load i32, ptr %15, align 4, !tbaa !9
  %351 = lshr i32 %350, %349
  store i32 %351, ptr %15, align 4, !tbaa !9
  %352 = load ptr, ptr %6, align 8, !tbaa !5
  %353 = load i32, ptr %14, align 4, !tbaa !9
  %354 = load i32, ptr %15, align 4, !tbaa !9
  %355 = call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AraiseError0x28HermesABIErrorCode0x29(ptr noundef %352, i32 noundef %353, i32 noundef %354)
  store i32 %355, ptr %14, align 4, !tbaa !9
  %356 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %356, ptr %8, align 4, !tbaa !9
  %357 = load ptr, ptr %6, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.w2c_hermes, ptr %357, i32 0, i32 6
  %359 = load i32, ptr %13, align 4, !tbaa !9
  %360 = zext i32 %359 to i64
  %361 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %358, i64 noundef %360, i32 noundef %361)
  %362 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %362, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %363 = load i32, ptr %13, align 4, !tbaa !9
  %364 = load i32, ptr %14, align 4, !tbaa !9
  %365 = icmp ne i32 %363, %364
  %366 = zext i1 %365 to i32
  store i32 %366, ptr %13, align 4, !tbaa !9
  %367 = load i32, ptr %13, align 4, !tbaa !9
  %368 = icmp ne i32 %367, 0
  br i1 %368, label %369, label %370

369:                                              ; preds = %338
  br label %395

370:                                              ; preds = %338
  store i32 109717, ptr %13, align 4, !tbaa !9
  store i32 77564, ptr %14, align 4, !tbaa !9
  store i32 212, ptr %15, align 4, !tbaa !9
  store i32 28083, ptr %16, align 4, !tbaa !9
  %371 = load ptr, ptr %6, align 8, !tbaa !5
  %372 = load i32, ptr %13, align 4, !tbaa !9
  %373 = load i32, ptr %14, align 4, !tbaa !9
  %374 = load i32, ptr %15, align 4, !tbaa !9
  %375 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %371, i32 noundef %372, i32 noundef %373, i32 noundef %374, i32 noundef %375)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

376:                                              ; preds = %331
  %377 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %377, ptr %13, align 4, !tbaa !9
  %378 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %378, ptr %14, align 4, !tbaa !9
  %379 = load ptr, ptr %6, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.w2c_hermes, ptr %379, i32 0, i32 6
  %381 = load i32, ptr %14, align 4, !tbaa !9
  %382 = zext i32 %381 to i64
  %383 = call i32 @i32_load16_u(ptr noundef %380, i64 noundef %382)
  store i32 %383, ptr %14, align 4, !tbaa !9
  store i32 65024, ptr %15, align 4, !tbaa !9
  %384 = load i32, ptr %15, align 4, !tbaa !9
  %385 = load i32, ptr %14, align 4, !tbaa !9
  %386 = and i32 %385, %384
  store i32 %386, ptr %14, align 4, !tbaa !9
  store i32 257, ptr %15, align 4, !tbaa !9
  %387 = load i32, ptr %15, align 4, !tbaa !9
  %388 = load i32, ptr %14, align 4, !tbaa !9
  %389 = or i32 %388, %387
  store i32 %389, ptr %14, align 4, !tbaa !9
  %390 = load ptr, ptr %6, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.w2c_hermes, ptr %390, i32 0, i32 6
  %392 = load i32, ptr %13, align 4, !tbaa !9
  %393 = zext i32 %392 to i64
  %394 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %391, i64 noundef %393, i32 noundef %394)
  br label %395

395:                                              ; preds = %376, %369
  %396 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %396, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %397 = load i32, ptr %14, align 4, !tbaa !9
  %398 = load i32, ptr %13, align 4, !tbaa !9
  %399 = add i32 %398, %397
  store i32 %399, ptr %13, align 4, !tbaa !9
  %400 = load i32, ptr %13, align 4, !tbaa !9
  %401 = load ptr, ptr %6, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.w2c_hermes, ptr %401, i32 0, i32 3
  store i32 %400, ptr %402, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 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 void @i32_store8(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 void @i32_store16(ptr noundef, i64 noundef, i32 noundef) #3

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AcreateValue0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i32 noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AraiseError0x28HermesABIErrorCode0x29(ptr noundef, i32 noundef, i32 noundef) #0

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

@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHostObjectWrapper0x3A0x3Aset0x28hermes0x3A0x3Avm0x3A0x3ASymbolID0x2C0x20hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i64 noundef %4) local_unnamed_addr #0 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -16
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %2 to i64
  %11 = add nuw nsw i64 %10, 4
  %12 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %13 = zext i32 %3 to i64
  %14 = or disjoint i64 %13, -1266637395197952
  %15 = zext i32 %8 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %15, i64 noundef %14)
  %16 = add i32 %12, 16
  %17 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef %0, i32 noundef %16, i32 noundef %8)
  %18 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  tail call void @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AcreateValue0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i32 noundef %8, i32 noundef %18, i64 noundef %4)
  %19 = add nuw nsw i64 %10, 8
  %20 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %19)
  %21 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %22 = zext i32 %20 to i64
  %23 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %22)
  %24 = zext i32 %23 to i64
  %25 = add nuw nsw i64 %24, 8
  %26 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %25)
  %27 = getelementptr inbounds i8, ptr %0, i64 80
  %28 = getelementptr inbounds i8, ptr %0, i64 92
  %29 = load i32, ptr %28, align 4, !tbaa !15
  %30 = icmp ult i32 %26, %29
  br i1 %30, label %31, label %.critedge, !prof !16

31:                                               ; preds = %5
  %32 = load ptr, ptr %27, align 8, !tbaa !17
  %33 = zext i32 %26 to i64
  %34 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %32, i64 %33
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  %.not = icmp eq ptr %36, null
  br i1 %.not, label %.critedge, label %37, !prof !20

37:                                               ; preds = %31
  %38 = load ptr, ptr %34, align 8, !tbaa !21
  %39 = tail call zeroext i1 @func_types_eq(ptr noundef nonnull @.str.7, ptr noundef %38)
  br i1 %39, label %40, label %.critedge, !prof !16

.critedge:                                        ; preds = %31, %5, %37
  tail call void @wasm_rt_trap(i32 noundef 6) #3
  unreachable

40:                                               ; preds = %37
  %41 = load ptr, ptr %27, align 8, !tbaa !17
  %42 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %41, i64 %33
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %45 = getelementptr inbounds i8, ptr %42, i64 16
  %46 = load ptr, ptr %45, align 8, !tbaa !22
  %47 = tail call i32 %44(ptr noundef %46, i32 noundef %20, i32 noundef %21, i32 noundef %17, i32 noundef %8) #4
  %48 = zext i32 %17 to i64
  %49 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %48)
  %50 = zext i32 %49 to i64
  %51 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %50)
  %52 = load i32, ptr %28, align 4, !tbaa !15
  %53 = icmp ult i32 %51, %52
  br i1 %53, label %54, label %.critedge156, !prof !16

54:                                               ; preds = %40
  %55 = load ptr, ptr %27, align 8, !tbaa !17
  %56 = zext i32 %51 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
  %.not151 = icmp eq ptr %59, null
  br i1 %.not151, label %.critedge156, label %60, !prof !20

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

.critedge156:                                     ; preds = %54, %40, %60
  tail call void @wasm_rt_trap(i32 noundef 6) #3
  unreachable

63:                                               ; preds = %60
  %64 = load ptr, ptr %27, align 8, !tbaa !17
  %65 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %64, i64 %56
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  %68 = getelementptr inbounds i8, ptr %65, i64 16
  %69 = load ptr, ptr %68, align 8, !tbaa !22
  tail call void %67(ptr noundef %69, i32 noundef %17) #4
  %70 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %15)
  %71 = icmp slt i32 %70, 0
  br i1 %71, label %72, label %97

72:                                               ; preds = %63
  %73 = add nuw nsw i64 %15, 8
  %74 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %73)
  %75 = zext i32 %74 to i64
  %76 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %75)
  %77 = zext i32 %76 to i64
  %78 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %77)
  %79 = load i32, ptr %28, align 4, !tbaa !15
  %80 = icmp ult i32 %78, %79
  br i1 %80, label %81, label %.critedge158, !prof !16

81:                                               ; preds = %72
  %82 = load ptr, ptr %27, align 8, !tbaa !17
  %83 = zext i32 %78 to i64
  %84 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %82, i64 %83
  %85 = getelementptr inbounds i8, ptr %84, i64 8
  %86 = load ptr, ptr %85, align 8, !tbaa !18
  %.not152 = icmp eq ptr %86, null
  br i1 %.not152, label %.critedge158, label %87, !prof !20

87:                                               ; preds = %81
  %88 = load ptr, ptr %84, align 8, !tbaa !21
  %89 = tail call zeroext i1 @func_types_eq(ptr noundef nonnull @.str.3, ptr noundef %88)
  br i1 %89, label %90, label %.critedge158, !prof !16

.critedge158:                                     ; preds = %81, %72, %87
  tail call void @wasm_rt_trap(i32 noundef 6) #3
  unreachable

90:                                               ; preds = %87
  %91 = load ptr, ptr %27, align 8, !tbaa !17
  %92 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %91, i64 %83
  %93 = getelementptr inbounds i8, ptr %92, i64 8
  %94 = load ptr, ptr %93, align 8, !tbaa !18
  %95 = getelementptr inbounds i8, ptr %92, i64 16
  %96 = load ptr, ptr %95, align 8, !tbaa !22
  tail call void %94(ptr noundef %96, i32 noundef %74) #4
  br label %97

97:                                               ; preds = %90, %63
  %98 = and i32 %47, 1
  %.not153 = icmp eq i32 %98, 0
  br i1 %.not153, label %105, label %99

99:                                               ; preds = %97
  %100 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %101 = lshr i32 %47, 2
  %102 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AraiseError0x28HermesABIErrorCode0x29(ptr noundef nonnull %0, i32 noundef %100, i32 noundef %101)
  %103 = zext i32 %1 to i64
  tail call void @i32_store8(ptr noundef nonnull %9, i64 noundef %103, i32 noundef %102)
  %.not154 = icmp eq i32 %102, 1
  br i1 %.not154, label %104, label %110

104:                                              ; preds = %99
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109717, i32 noundef 77564, i32 noundef 212, i32 noundef 28083)
  tail call void @wasm_rt_trap(i32 noundef 5) #3
  unreachable

105:                                              ; preds = %97
  %106 = zext i32 %1 to i64
  %107 = tail call i32 @i32_load16_u(ptr noundef nonnull %9, i64 noundef %106)
  %108 = and i32 %107, 65024
  %109 = or disjoint i32 %108, 257
  tail call void @i32_store16(ptr noundef nonnull %9, i64 noundef %106, i32 noundef %109)
  br label %110

110:                                              ; preds = %99, %105
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

; Function Attrs: noreturn
declare void @wasm_rt_trap(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 #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 void @i32_store8(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 void @i32_store16(ptr noundef, i64 noundef, i32 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
declare dso_local void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AcreateValue0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AraiseError0x28HermesABIErrorCode0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { noreturn nounwind }
attributes #4 = { 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 = !{!19, !7, i64 0}
!22 = !{!19, !7, i64 16}


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