; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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 %9, align 4, !tbaa !9
  store i32 %37, ptr %14, align 4, !tbaa !9
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  store i64 %39, ptr %18, align 8, !tbaa !11
  store i64 -1266637395197952, ptr %19, align 8, !tbaa !11
  %40 = load i64, ptr %19, align 8, !tbaa !11
  %41 = load i64, ptr %18, align 8, !tbaa !11
  %42 = or i64 %41, %40
  store i64 %42, ptr %18, align 8, !tbaa !11
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load i32, ptr %13, align 4, !tbaa !9
  %45 = load i64, ptr %18, align 8, !tbaa !11
  %46 = call i32 @w2c_hermes_HermesABIManagedPointer0x2A0x200x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AcreatePointerImpl0x3CHermesABIObject0x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %43, i32 noundef %44, i64 noundef %45)
  store i32 %46, ptr %13, align 4, !tbaa !9
  %47 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %47, ptr %9, align 4, !tbaa !9
  %48 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %48, ptr %13, align 4, !tbaa !9
  %49 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %49, ptr %14, align 4, !tbaa !9
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.w2c_hermes, ptr %50, i32 0, i32 6
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = add i64 %53, 4
  %55 = call i32 @i32_load(ptr noundef %51, i64 noundef %54)
  store i32 %55, ptr %14, align 4, !tbaa !9
  %56 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %56, ptr %19, align 8, !tbaa !11
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = load i64, ptr %19, align 8, !tbaa !11
  call void @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AcreateValue0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %57, i32 noundef %58, i32 noundef %59, i64 noundef %60)
  %61 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %61, ptr %13, 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 %13, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = add i64 %65, 8
  %67 = call i32 @i32_load(ptr noundef %63, i64 noundef %66)
  store i32 %67, ptr %13, align 4, !tbaa !9
  %68 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %68, ptr %12, align 4, !tbaa !9
  %69 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %69, ptr %14, align 4, !tbaa !9
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.w2c_hermes, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = add i64 %73, 4
  %75 = call i32 @i32_load(ptr noundef %71, i64 noundef %74)
  store i32 %75, ptr %14, align 4, !tbaa !9
  %76 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %76, ptr %15, align 4, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %77, ptr %16, align 4, !tbaa !9
  %78 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %78, ptr %17, align 4, !tbaa !9
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.w2c_hermes, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = call i32 @i32_load(ptr noundef %80, i64 noundef %82)
  store i32 %83, ptr %17, align 4, !tbaa !9
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.w2c_hermes, ptr %84, i32 0, i32 6
  %86 = load i32, ptr %17, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = add i64 %87, 8
  %89 = call i32 @i32_load(ptr noundef %85, i64 noundef %88)
  store i32 %89, ptr %17, align 4, !tbaa !9
  %90 = load i32, 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 7
  %93 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %92, i32 0, i32 2
  %94 = load i32, ptr %93, align 4, !tbaa !18
  %95 = icmp ult i32 %90, %94
  br i1 %95, label %96, label %118

96:                                               ; preds = %5
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.w2c_hermes, ptr %97, i32 0, i32 7
  %99 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !19
  %101 = load i32, ptr %17, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %100, i64 %102
  %104 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !20
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %118

107:                                              ; preds = %96
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 7
  %110 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !19
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %111, i64 %113
  %115 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !22
  %117 = call zeroext i1 @func_types_eq(ptr noundef @.str.7, ptr noundef %116)
  br label %118

118:                                              ; preds = %107, %96, %5
  %119 = phi i1 [ false, %96 ], [ false, %5 ], [ %117, %107 ]
  %120 = xor i1 %119, true
  %121 = xor i1 %120, true
  %122 = zext i1 %121 to i32
  %123 = sext i32 %122 to i64
  %124 = call i64 @llvm.expect.i64(i64 %123, i64 1)
  %125 = icmp ne i64 %124, 0
  br i1 %125, label %128, label %126

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

127:                                              ; No predecessors!
  br label %128

128:                                              ; preds = %127, %118
  %129 = phi i1 [ true, %118 ], [ false, %127 ]
  %130 = zext i1 %129 to i32
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 7
  %133 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !19
  %135 = load i32, ptr %17, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %134, i64 %136
  %138 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %137, i32 0, i32 1
  %139 = load ptr, ptr %138, align 8, !tbaa !20
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 7
  %142 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %141, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !19
  %144 = load i32, ptr %17, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %143, i64 %145
  %147 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %146, i32 0, i32 2
  %148 = load ptr, ptr %147, align 8, !tbaa !23
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = load i32, ptr %14, align 4, !tbaa !9
  %151 = load i32, ptr %15, align 4, !tbaa !9
  %152 = load i32, ptr %16, align 4, !tbaa !9
  %153 = call i32 %139(ptr noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152)
  store i32 %153, ptr %13, align 4, !tbaa !9
  %154 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %154, ptr %12, align 4, !tbaa !9
  %155 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %155, ptr %13, align 4, !tbaa !9
  %156 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %156, ptr %14, align 4, !tbaa !9
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.w2c_hermes, ptr %157, i32 0, i32 6
  %159 = load i32, ptr %14, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = call i32 @i32_load(ptr noundef %158, i64 noundef %160)
  store i32 %161, ptr %14, align 4, !tbaa !9
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.w2c_hermes, ptr %162, i32 0, i32 6
  %164 = load i32, ptr %14, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = call i32 @i32_load(ptr noundef %163, i64 noundef %165)
  store i32 %166, ptr %14, align 4, !tbaa !9
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.w2c_hermes, ptr %168, i32 0, i32 7
  %170 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %169, i32 0, i32 2
  %171 = load i32, ptr %170, align 4, !tbaa !18
  %172 = icmp ult i32 %167, %171
  br i1 %172, label %173, label %195

173:                                              ; preds = %128
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 7
  %176 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %175, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8, !tbaa !19
  %178 = load i32, ptr %14, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %177, i64 %179
  %181 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %180, i32 0, i32 1
  %182 = load ptr, ptr %181, align 8, !tbaa !20
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %195

184:                                              ; preds = %173
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 7
  %187 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %186, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8, !tbaa !19
  %189 = load i32, ptr %14, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %188, i64 %190
  %192 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %191, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8, !tbaa !22
  %194 = call zeroext i1 @func_types_eq(ptr noundef @.str.3, ptr noundef %193)
  br label %195

195:                                              ; preds = %184, %173, %128
  %196 = phi i1 [ false, %173 ], [ false, %128 ], [ %194, %184 ]
  %197 = xor i1 %196, true
  %198 = xor i1 %197, true
  %199 = zext i1 %198 to i32
  %200 = sext i32 %199 to i64
  %201 = call i64 @llvm.expect.i64(i64 %200, i64 1)
  %202 = icmp ne i64 %201, 0
  br i1 %202, label %205, label %203

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

204:                                              ; No predecessors!
  br label %205

205:                                              ; preds = %204, %195
  %206 = phi i1 [ true, %195 ], [ false, %204 ]
  %207 = zext i1 %206 to i32
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.w2c_hermes, ptr %208, i32 0, i32 7
  %210 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %209, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8, !tbaa !19
  %212 = load i32, ptr %14, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %211, i64 %213
  %215 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %214, i32 0, i32 1
  %216 = load ptr, ptr %215, align 8, !tbaa !20
  %217 = load ptr, ptr %6, 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 0
  %220 = load ptr, ptr %219, align 8, !tbaa !19
  %221 = load i32, ptr %14, align 4, !tbaa !9
  %222 = zext i32 %221 to i64
  %223 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %220, i64 %222
  %224 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %223, i32 0, i32 2
  %225 = load ptr, ptr %224, align 8, !tbaa !23
  %226 = load i32, ptr %13, align 4, !tbaa !9
  call void %216(ptr noundef %225, i32 noundef %226)
  %227 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %227, ptr %13, align 4, !tbaa !9
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.w2c_hermes, ptr %228, i32 0, i32 6
  %230 = load i32, ptr %13, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = call i32 @i32_load(ptr noundef %229, i64 noundef %231)
  store i32 %232, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %233 = load i32, ptr %13, align 4, !tbaa !9
  %234 = load i32, ptr %14, align 4, !tbaa !9
  %235 = icmp slt i32 %233, %234
  %236 = zext i1 %235 to i32
  store i32 %236, ptr %13, align 4, !tbaa !9
  %237 = load i32, ptr %13, align 4, !tbaa !9
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %319

239:                                              ; preds = %205
  %240 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %240, ptr %13, align 4, !tbaa !9
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.w2c_hermes, ptr %241, i32 0, i32 6
  %243 = load i32, ptr %13, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = add i64 %244, 8
  %246 = call i32 @i32_load(ptr noundef %242, i64 noundef %245)
  store i32 %246, ptr %13, align 4, !tbaa !9
  %247 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %247, ptr %9, align 4, !tbaa !9
  %248 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %248, ptr %14, align 4, !tbaa !9
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.w2c_hermes, ptr %249, i32 0, i32 6
  %251 = load i32, ptr %14, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = call i32 @i32_load(ptr noundef %250, i64 noundef %252)
  store i32 %253, ptr %14, align 4, !tbaa !9
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.w2c_hermes, ptr %254, i32 0, i32 6
  %256 = load i32, ptr %14, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = call i32 @i32_load(ptr noundef %255, i64 noundef %257)
  store i32 %258, ptr %14, align 4, !tbaa !9
  %259 = load i32, ptr %14, align 4, !tbaa !9
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.w2c_hermes, ptr %260, i32 0, i32 7
  %262 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %261, i32 0, i32 2
  %263 = load i32, ptr %262, align 4, !tbaa !18
  %264 = icmp ult i32 %259, %263
  br i1 %264, label %265, label %287

265:                                              ; preds = %239
  %266 = load ptr, ptr %6, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.w2c_hermes, ptr %266, i32 0, i32 7
  %268 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %267, i32 0, i32 0
  %269 = load ptr, ptr %268, align 8, !tbaa !19
  %270 = load i32, ptr %14, align 4, !tbaa !9
  %271 = zext i32 %270 to i64
  %272 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %269, i64 %271
  %273 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %272, i32 0, i32 1
  %274 = load ptr, ptr %273, align 8, !tbaa !20
  %275 = icmp ne ptr %274, null
  br i1 %275, label %276, label %287

276:                                              ; preds = %265
  %277 = load ptr, ptr %6, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.w2c_hermes, ptr %277, i32 0, i32 7
  %279 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %278, i32 0, i32 0
  %280 = load ptr, ptr %279, align 8, !tbaa !19
  %281 = load i32, ptr %14, align 4, !tbaa !9
  %282 = zext i32 %281 to i64
  %283 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %280, i64 %282
  %284 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %283, i32 0, i32 0
  %285 = load ptr, ptr %284, align 8, !tbaa !22
  %286 = call zeroext i1 @func_types_eq(ptr noundef @.str.3, ptr noundef %285)
  br label %287

287:                                              ; preds = %276, %265, %239
  %288 = phi i1 [ false, %265 ], [ false, %239 ], [ %286, %276 ]
  %289 = xor i1 %288, true
  %290 = xor i1 %289, true
  %291 = zext i1 %290 to i32
  %292 = sext i32 %291 to i64
  %293 = call i64 @llvm.expect.i64(i64 %292, i64 1)
  %294 = icmp ne i64 %293, 0
  br i1 %294, label %297, label %295

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

296:                                              ; No predecessors!
  br label %297

297:                                              ; preds = %296, %287
  %298 = phi i1 [ true, %287 ], [ false, %296 ]
  %299 = zext i1 %298 to i32
  %300 = load ptr, ptr %6, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.w2c_hermes, ptr %300, i32 0, i32 7
  %302 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %301, i32 0, i32 0
  %303 = load ptr, ptr %302, align 8, !tbaa !19
  %304 = load i32, ptr %14, align 4, !tbaa !9
  %305 = zext i32 %304 to i64
  %306 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %303, i64 %305
  %307 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %306, i32 0, i32 1
  %308 = load ptr, ptr %307, align 8, !tbaa !20
  %309 = load ptr, ptr %6, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.w2c_hermes, ptr %309, i32 0, i32 7
  %311 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %310, i32 0, i32 0
  %312 = load ptr, ptr %311, align 8, !tbaa !19
  %313 = load i32, ptr %14, align 4, !tbaa !9
  %314 = zext i32 %313 to i64
  %315 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %312, i64 %314
  %316 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %315, i32 0, i32 2
  %317 = load ptr, ptr %316, align 8, !tbaa !23
  %318 = load i32, ptr %13, align 4, !tbaa !9
  call void %308(ptr noundef %317, i32 noundef %318)
  br label %319

319:                                              ; preds = %297, %205
  %320 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %320, ptr %13, align 4, !tbaa !9
  %321 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %321, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %322 = load i32, ptr %15, align 4, !tbaa !9
  %323 = load i32, ptr %14, align 4, !tbaa !9
  %324 = and i32 %323, %322
  store i32 %324, ptr %14, align 4, !tbaa !9
  %325 = load i32, ptr %14, align 4, !tbaa !9
  %326 = icmp ne i32 %325, 0
  br i1 %326, label %327, label %361

327:                                              ; preds = %319
  %328 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %328, ptr %14, align 4, !tbaa !9
  %329 = load ptr, ptr %6, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.w2c_hermes, ptr %329, i32 0, i32 6
  %331 = load i32, ptr %14, align 4, !tbaa !9
  %332 = zext i32 %331 to i64
  %333 = add i64 %332, 4
  %334 = call i32 @i32_load(ptr noundef %330, i64 noundef %333)
  store i32 %334, ptr %14, align 4, !tbaa !9
  %335 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %335, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %16, align 4, !tbaa !9
  %336 = load i32, ptr %16, align 4, !tbaa !9
  %337 = and i32 %336, 31
  %338 = load i32, ptr %15, align 4, !tbaa !9
  %339 = lshr i32 %338, %337
  store i32 %339, ptr %15, align 4, !tbaa !9
  %340 = load ptr, ptr %6, align 8, !tbaa !5
  %341 = load i32, ptr %14, align 4, !tbaa !9
  %342 = load i32, ptr %15, align 4, !tbaa !9
  %343 = call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AraiseError0x28HermesABIErrorCode0x29(ptr noundef %340, i32 noundef %341, i32 noundef %342)
  store i32 %343, ptr %14, align 4, !tbaa !9
  store i32 255, ptr %15, align 4, !tbaa !9
  %344 = load i32, ptr %15, align 4, !tbaa !9
  %345 = load i32, ptr %14, align 4, !tbaa !9
  %346 = and i32 %345, %344
  store i32 %346, ptr %14, align 4, !tbaa !9
  %347 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %347, ptr %15, align 4, !tbaa !9
  %348 = load ptr, ptr %6, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.w2c_hermes, ptr %348, i32 0, i32 6
  %350 = load i32, ptr %15, align 4, !tbaa !9
  %351 = zext i32 %350 to i64
  %352 = add i64 %351, 1
  %353 = call i32 @i32_load8_u(ptr noundef %349, i64 noundef %352)
  store i32 %353, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %354 = load i32, ptr %16, align 4, !tbaa !9
  %355 = and i32 %354, 31
  %356 = load i32, ptr %15, align 4, !tbaa !9
  %357 = shl i32 %356, %355
  store i32 %357, ptr %15, align 4, !tbaa !9
  %358 = load i32, ptr %15, align 4, !tbaa !9
  %359 = load i32, ptr %14, align 4, !tbaa !9
  %360 = or i32 %359, %358
  store i32 %360, ptr %14, align 4, !tbaa !9
  br label %374

361:                                              ; preds = %319
  %362 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %362, ptr %14, align 4, !tbaa !9
  %363 = load ptr, ptr %6, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.w2c_hermes, ptr %363, i32 0, i32 6
  %365 = load i32, ptr %14, align 4, !tbaa !9
  %366 = zext i32 %365 to i64
  %367 = call i32 @i32_load16_u(ptr noundef %364, i64 noundef %366)
  store i32 %367, ptr %14, align 4, !tbaa !9
  store i32 -512, ptr %15, align 4, !tbaa !9
  %368 = load i32, ptr %15, align 4, !tbaa !9
  %369 = load i32, ptr %14, align 4, !tbaa !9
  %370 = and i32 %369, %368
  store i32 %370, ptr %14, align 4, !tbaa !9
  store i32 257, ptr %15, align 4, !tbaa !9
  %371 = load i32, ptr %15, align 4, !tbaa !9
  %372 = load i32, ptr %14, align 4, !tbaa !9
  %373 = or i32 %372, %371
  store i32 %373, ptr %14, align 4, !tbaa !9
  br label %374

374:                                              ; preds = %361, %327
  %375 = load ptr, ptr %6, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.w2c_hermes, ptr %375, i32 0, i32 6
  %377 = load i32, ptr %13, align 4, !tbaa !9
  %378 = zext i32 %377 to i64
  %379 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %376, i64 noundef %378, i32 noundef %379)
  %380 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %380, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %381 = load i32, ptr %14, align 4, !tbaa !9
  %382 = load i32, ptr %13, align 4, !tbaa !9
  %383 = add i32 %382, %381
  store i32 %383, ptr %13, align 4, !tbaa !9
  %384 = load i32, ptr %13, align 4, !tbaa !9
  %385 = load ptr, ptr %6, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.w2c_hermes, ptr %385, i32 0, i32 3
  store i32 %384, ptr %386, 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #2

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

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

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

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

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

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

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

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

; 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 = { 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 "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 = tail call i32 @w2c_hermes_HermesABIManagedPointer0x2A0x200x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AcreatePointerImpl0x3CHermesABIObject0x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i32 noundef %12, i64 noundef %14)
  %16 = 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 %16, i64 noundef %4)
  %17 = add nuw nsw i64 %10, 8
  %18 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %17)
  %19 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %20 = zext i32 %18 to i64
  %21 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %20)
  %22 = zext i32 %21 to i64
  %23 = add nuw nsw i64 %22, 8
  %24 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %23)
  %25 = getelementptr inbounds i8, ptr %0, i64 80
  %26 = getelementptr inbounds i8, ptr %0, i64 92
  %27 = load i32, ptr %26, align 4, !tbaa !15
  %28 = icmp ult i32 %24, %27
  br i1 %28, label %29, label %.critedge, !prof !16

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

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

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

38:                                               ; preds = %35
  %39 = load ptr, ptr %25, align 8, !tbaa !17
  %40 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %39, i64 %31
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !18
  %43 = getelementptr inbounds i8, ptr %40, i64 16
  %44 = load ptr, ptr %43, align 8, !tbaa !22
  %45 = tail call i32 %42(ptr noundef %44, i32 noundef %18, i32 noundef %19, i32 noundef %15, i32 noundef %8) #4
  %46 = zext i32 %15 to i64
  %47 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %46)
  %48 = zext i32 %47 to i64
  %49 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %48)
  %50 = load i32, ptr %26, align 4, !tbaa !15
  %51 = icmp ult i32 %49, %50
  br i1 %51, label %52, label %.critedge142, !prof !16

52:                                               ; preds = %38
  %53 = load ptr, ptr %25, align 8, !tbaa !17
  %54 = zext i32 %49 to i64
  %55 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %53, i64 %54
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = load ptr, ptr %56, align 8, !tbaa !18
  %.not138 = icmp eq ptr %57, null
  br i1 %.not138, label %.critedge142, label %58, !prof !20

58:                                               ; preds = %52
  %59 = load ptr, ptr %55, align 8, !tbaa !21
  %60 = tail call zeroext i1 @func_types_eq(ptr noundef nonnull @.str.3, ptr noundef %59)
  br i1 %60, label %61, label %.critedge142, !prof !16

.critedge142:                                     ; preds = %52, %38, %58
  tail call void @wasm_rt_trap(i32 noundef 6) #3
  unreachable

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

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

80:                                               ; preds = %71
  %81 = load ptr, ptr %25, align 8, !tbaa !17
  %82 = zext i32 %77 to i64
  %83 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %81, i64 %82
  %84 = getelementptr inbounds i8, ptr %83, i64 8
  %85 = load ptr, ptr %84, align 8, !tbaa !18
  %.not139 = icmp eq ptr %85, null
  br i1 %.not139, label %.critedge144, label %86, !prof !20

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

.critedge144:                                     ; preds = %80, %71, %86
  tail call void @wasm_rt_trap(i32 noundef 6) #3
  unreachable

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

96:                                               ; preds = %89, %61
  %97 = and i32 %45, 1
  %.not140 = icmp eq i32 %97, 0
  br i1 %.not140, label %108, label %98

98:                                               ; preds = %96
  %99 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %100 = lshr i32 %45, 2
  %101 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AraiseError0x28HermesABIErrorCode0x29(ptr noundef nonnull %0, i32 noundef %99, i32 noundef %100)
  %102 = and i32 %101, 255
  %103 = zext i32 %1 to i64
  %104 = add nuw nsw i64 %103, 1
  %105 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %104)
  %106 = shl i32 %105, 8
  %107 = or disjoint i32 %106, %102
  br label %113

108:                                              ; preds = %96
  %109 = zext i32 %1 to i64
  %110 = tail call i32 @i32_load16_u(ptr noundef nonnull %9, i64 noundef %109)
  %111 = and i32 %110, -512
  %112 = or disjoint i32 %111, 257
  br label %113

113:                                              ; preds = %108, %98
  %.pre-phi = phi i64 [ %109, %108 ], [ %103, %98 ]
  %.0 = phi i32 [ %112, %108 ], [ %107, %98 ]
  tail call void @i32_store16(ptr noundef nonnull %9, i64 noundef %.pre-phi, i32 noundef %.0)
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

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

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

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

; 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 = { 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 = { 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 = { 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,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass