; 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.4 = external hidden unnamed_addr constant [33 x i8], align 1

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

100:                                              ; preds = %4
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.w2c_hermes, ptr %101, i32 0, i32 7
  %103 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !21
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %104, i64 %106
  %108 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %107, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !22
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %122

111:                                              ; preds = %100
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.w2c_hermes, ptr %112, i32 0, i32 7
  %114 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %113, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8, !tbaa !21
  %116 = load i32, ptr %18, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %115, i64 %117
  %119 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !24
  %121 = call zeroext i1 @func_types_eq(ptr noundef @.str.4, ptr noundef %120)
  br label %122

122:                                              ; preds = %111, %100, %4
  %123 = phi i1 [ false, %100 ], [ false, %4 ], [ %121, %111 ]
  %124 = xor i1 %123, true
  %125 = xor i1 %124, true
  %126 = zext i1 %125 to i32
  %127 = sext i32 %126 to i64
  %128 = call i64 @llvm.expect.i64(i64 %127, i64 1)
  %129 = icmp ne i64 %128, 0
  br i1 %129, label %132, label %130

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

131:                                              ; No predecessors!
  br label %132

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

175:                                              ; preds = %132
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.w2c_hermes, ptr %176, i32 0, i32 7
  %178 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !21
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %179, i64 %181
  %183 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %182, i32 0, i32 1
  %184 = load ptr, ptr %183, align 8, !tbaa !22
  %185 = icmp ne ptr %184, null
  br i1 %185, label %186, label %197

186:                                              ; preds = %175
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.w2c_hermes, ptr %187, i32 0, i32 7
  %189 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %188, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8, !tbaa !21
  %191 = load i32, ptr %15, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %190, i64 %192
  %194 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %193, i32 0, i32 0
  %195 = load ptr, ptr %194, align 8, !tbaa !24
  %196 = call zeroext i1 @func_types_eq(ptr noundef @.str.3, ptr noundef %195)
  br label %197

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

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

206:                                              ; No predecessors!
  br label %207

207:                                              ; preds = %206, %197
  %208 = phi i1 [ true, %197 ], [ false, %206 ]
  %209 = zext i1 %208 to i32
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.w2c_hermes, ptr %210, i32 0, i32 7
  %212 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %211, i32 0, i32 0
  %213 = load ptr, ptr %212, align 8, !tbaa !21
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %213, i64 %215
  %217 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %216, i32 0, i32 1
  %218 = load ptr, ptr %217, align 8, !tbaa !22
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.w2c_hermes, ptr %219, i32 0, i32 7
  %221 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %220, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8, !tbaa !21
  %223 = load i32, ptr %15, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %222, i64 %224
  %226 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %225, i32 0, i32 2
  %227 = load ptr, ptr %226, align 8, !tbaa !25
  %228 = load i32, ptr %14, align 4, !tbaa !9
  call void %218(ptr noundef %227, i32 noundef %228)
  %229 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %229, ptr %14, align 4, !tbaa !9
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 6
  %232 = load i32, ptr %14, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = call i32 @i32_load(ptr noundef %231, i64 noundef %233)
  store i32 %234, ptr %14, align 4, !tbaa !9
  %235 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %235, ptr %8, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %236 = load i32, ptr %14, align 4, !tbaa !9
  %237 = load i32, ptr %15, align 4, !tbaa !9
  %238 = icmp eq i32 %236, %237
  %239 = zext i1 %238 to i32
  store i32 %239, ptr %14, align 4, !tbaa !9
  %240 = load i32, ptr %14, align 4, !tbaa !9
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %282

242:                                              ; preds = %207
  %243 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %243, ptr %14, align 4, !tbaa !9
  %244 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %244, ptr %15, align 4, !tbaa !9
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.w2c_hermes, ptr %245, i32 0, i32 6
  %247 = load i32, ptr %15, align 4, !tbaa !9
  %248 = zext i32 %247 to i64
  %249 = add i64 %248, 4
  %250 = call i32 @i32_load(ptr noundef %246, i64 noundef %249)
  store i32 %250, ptr %15, align 4, !tbaa !9
  %251 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %251, ptr %16, align 4, !tbaa !9
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.w2c_hermes, ptr %252, i32 0, i32 6
  %254 = load i32, ptr %16, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = add i64 %255, 8
  %257 = call i32 @i32_load(ptr noundef %253, i64 noundef %256)
  store i32 %257, ptr %16, align 4, !tbaa !9
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = load i32, ptr %15, align 4, !tbaa !9
  %260 = load i32, ptr %16, align 4, !tbaa !9
  %261 = call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AraiseError0x28HermesABIErrorCode0x29(ptr noundef %258, i32 noundef %259, i32 noundef %260)
  store i32 %261, ptr %15, align 4, !tbaa !9
  %262 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %262, ptr %7, align 4, !tbaa !9
  %263 = load ptr, ptr %5, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.w2c_hermes, ptr %263, i32 0, i32 6
  %265 = load i32, ptr %14, align 4, !tbaa !9
  %266 = zext i32 %265 to i64
  %267 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %264, i64 noundef %266, i32 noundef %267)
  %268 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %268, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %269 = load i32, ptr %14, align 4, !tbaa !9
  %270 = load i32, ptr %15, align 4, !tbaa !9
  %271 = icmp ne i32 %269, %270
  %272 = zext i1 %271 to i32
  store i32 %272, ptr %14, align 4, !tbaa !9
  %273 = load i32, ptr %14, align 4, !tbaa !9
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %275, label %276

275:                                              ; preds = %242
  br label %475

276:                                              ; preds = %242
  store i32 109717, ptr %14, align 4, !tbaa !9
  store i32 77564, ptr %15, align 4, !tbaa !9
  store i32 168, ptr %16, align 4, !tbaa !9
  store i32 28083, ptr %17, align 4, !tbaa !9
  %277 = load ptr, ptr %5, align 8, !tbaa !5
  %278 = load i32, ptr %14, align 4, !tbaa !9
  %279 = load i32, ptr %15, align 4, !tbaa !9
  %280 = load i32, ptr %16, align 4, !tbaa !9
  %281 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %277, i32 noundef %278, i32 noundef %279, i32 noundef %280, i32 noundef %281)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

282:                                              ; preds = %207
  %283 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %283, ptr %14, align 4, !tbaa !9
  %284 = load ptr, ptr %5, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.w2c_hermes, ptr %284, i32 0, i32 6
  %286 = load i32, ptr %14, align 4, !tbaa !9
  %287 = zext i32 %286 to i64
  %288 = add i64 %287, 8
  %289 = call double @f64_load(ptr noundef %285, i64 noundef %288)
  store double %289, ptr %22, align 8, !tbaa !13
  %290 = load double, ptr %22, align 8, !tbaa !13
  store double %290, ptr %13, align 8, !tbaa !13
  %291 = load double, ptr %22, align 8, !tbaa !13
  %292 = call i64 @i64_reinterpret_f64(double noundef %291)
  store i64 %292, ptr %19, align 8, !tbaa !11
  %293 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %293, ptr %12, align 8, !tbaa !11
  %294 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %294, ptr %14, align 4, !tbaa !9
  store i32 2147483643, ptr %15, align 4, !tbaa !9
  %295 = load i32, ptr %15, align 4, !tbaa !9
  %296 = load i32, ptr %14, align 4, !tbaa !9
  %297 = add i32 %296, %295
  store i32 %297, ptr %14, align 4, !tbaa !9
  %298 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %298, ptr %7, align 4, !tbaa !9
  store i32 4, ptr %15, align 4, !tbaa !9
  %299 = load i32, ptr %14, align 4, !tbaa !9
  %300 = load i32, ptr %15, align 4, !tbaa !9
  %301 = icmp ugt i32 %299, %300
  %302 = zext i1 %301 to i32
  store i32 %302, ptr %14, align 4, !tbaa !9
  %303 = load i32, ptr %14, align 4, !tbaa !9
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %305, label %306

305:                                              ; preds = %282
  br label %419

306:                                              ; preds = %282
  %307 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %307, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %308 = load i32, ptr %14, align 4, !tbaa !9
  %309 = load i32, ptr %15, align 4, !tbaa !9
  %310 = icmp eq i32 %308, %309
  %311 = zext i1 %310 to i32
  store i32 %311, ptr %14, align 4, !tbaa !9
  %312 = load i32, ptr %14, align 4, !tbaa !9
  %313 = icmp ne i32 %312, 0
  br i1 %313, label %314, label %315

314:                                              ; preds = %306
  br label %419

315:                                              ; preds = %306
  %316 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %316, ptr %19, align 8, !tbaa !11
  %317 = load i64, ptr %19, align 8, !tbaa !11
  %318 = trunc i64 %317 to i32
  store i32 %318, ptr %14, align 4, !tbaa !9
  %319 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %319, ptr %7, align 4, !tbaa !9
  %320 = load ptr, ptr %5, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.w2c_hermes, ptr %320, i32 0, i32 6
  %322 = load i32, ptr %14, align 4, !tbaa !9
  %323 = zext i32 %322 to i64
  %324 = add i64 %323, 4
  %325 = call i32 @i32_load(ptr noundef %321, i64 noundef %324)
  store i32 %325, ptr %14, align 4, !tbaa !9
  %326 = load i32, ptr %14, align 4, !tbaa !9
  %327 = icmp ne i32 %326, 0
  %328 = xor i1 %327, true
  %329 = zext i1 %328 to i32
  store i32 %329, ptr %14, align 4, !tbaa !9
  %330 = load i32, ptr %14, align 4, !tbaa !9
  %331 = icmp ne i32 %330, 0
  br i1 %331, label %332, label %338

332:                                              ; preds = %315
  store i32 131111, ptr %14, align 4, !tbaa !9
  store i32 61000, ptr %15, align 4, !tbaa !9
  store i32 95, ptr %16, align 4, !tbaa !9
  store i32 90287, ptr %17, align 4, !tbaa !9
  %333 = load ptr, ptr %5, align 8, !tbaa !5
  %334 = load i32, ptr %14, align 4, !tbaa !9
  %335 = load i32, ptr %15, align 4, !tbaa !9
  %336 = load i32, ptr %16, align 4, !tbaa !9
  %337 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %333, i32 noundef %334, i32 noundef %335, i32 noundef %336, i32 noundef %337)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

338:                                              ; preds = %315
  %339 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %339, ptr %14, align 4, !tbaa !9
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.w2c_hermes, ptr %340, i32 0, i32 6
  %342 = load i32, ptr %14, align 4, !tbaa !9
  %343 = zext i32 %342 to i64
  %344 = add i64 %343, 8
  %345 = call i64 @i64_load(ptr noundef %341, i64 noundef %344)
  store i64 %345, ptr %19, align 8, !tbaa !11
  %346 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %346, ptr %11, align 8, !tbaa !11
  %347 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %347, ptr %14, align 4, !tbaa !9
  %348 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %348, ptr %15, align 4, !tbaa !9
  %349 = load ptr, ptr %5, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.w2c_hermes, ptr %349, i32 0, i32 6
  %351 = load i32, ptr %15, align 4, !tbaa !9
  %352 = zext i32 %351 to i64
  %353 = call i32 @i32_load(ptr noundef %350, i64 noundef %352)
  store i32 %353, ptr %15, align 4, !tbaa !9
  %354 = load ptr, ptr %5, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.w2c_hermes, ptr %354, i32 0, i32 6
  %356 = load i32, ptr %15, align 4, !tbaa !9
  %357 = zext i32 %356 to i64
  %358 = call i32 @i32_load(ptr noundef %355, i64 noundef %357)
  store i32 %358, ptr %15, align 4, !tbaa !9
  %359 = load i32, ptr %15, align 4, !tbaa !9
  %360 = load ptr, ptr %5, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.w2c_hermes, ptr %360, i32 0, i32 7
  %362 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %361, i32 0, i32 2
  %363 = load i32, ptr %362, align 4, !tbaa !20
  %364 = icmp ult i32 %359, %363
  br i1 %364, label %365, label %387

365:                                              ; preds = %338
  %366 = load ptr, ptr %5, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.w2c_hermes, ptr %366, i32 0, i32 7
  %368 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %367, i32 0, i32 0
  %369 = load ptr, ptr %368, align 8, !tbaa !21
  %370 = load i32, ptr %15, align 4, !tbaa !9
  %371 = zext i32 %370 to i64
  %372 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %369, i64 %371
  %373 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %372, i32 0, i32 1
  %374 = load ptr, ptr %373, align 8, !tbaa !22
  %375 = icmp ne ptr %374, null
  br i1 %375, label %376, label %387

376:                                              ; preds = %365
  %377 = load ptr, ptr %5, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.w2c_hermes, ptr %377, i32 0, i32 7
  %379 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %378, i32 0, i32 0
  %380 = load ptr, ptr %379, align 8, !tbaa !21
  %381 = load i32, ptr %15, align 4, !tbaa !9
  %382 = zext i32 %381 to i64
  %383 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %380, i64 %382
  %384 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %383, i32 0, i32 0
  %385 = load ptr, ptr %384, align 8, !tbaa !24
  %386 = call zeroext i1 @func_types_eq(ptr noundef @.str.3, ptr noundef %385)
  br label %387

387:                                              ; preds = %376, %365, %338
  %388 = phi i1 [ false, %365 ], [ false, %338 ], [ %386, %376 ]
  %389 = xor i1 %388, true
  %390 = xor i1 %389, true
  %391 = zext i1 %390 to i32
  %392 = sext i32 %391 to i64
  %393 = call i64 @llvm.expect.i64(i64 %392, i64 1)
  %394 = icmp ne i64 %393, 0
  br i1 %394, label %397, label %395

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

396:                                              ; No predecessors!
  br label %397

397:                                              ; preds = %396, %387
  %398 = phi i1 [ true, %387 ], [ false, %396 ]
  %399 = zext i1 %398 to i32
  %400 = load ptr, ptr %5, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.w2c_hermes, ptr %400, i32 0, i32 7
  %402 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %401, i32 0, i32 0
  %403 = load ptr, ptr %402, align 8, !tbaa !21
  %404 = load i32, ptr %15, align 4, !tbaa !9
  %405 = zext i32 %404 to i64
  %406 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %403, i64 %405
  %407 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %406, i32 0, i32 1
  %408 = load ptr, ptr %407, align 8, !tbaa !22
  %409 = load ptr, ptr %5, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.w2c_hermes, ptr %409, i32 0, i32 7
  %411 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %410, i32 0, i32 0
  %412 = load ptr, ptr %411, align 8, !tbaa !21
  %413 = load i32, ptr %15, align 4, !tbaa !9
  %414 = zext i32 %413 to i64
  %415 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %412, i64 %414
  %416 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %415, i32 0, i32 2
  %417 = load ptr, ptr %416, align 8, !tbaa !25
  %418 = load i32, ptr %14, align 4, !tbaa !9
  call void %408(ptr noundef %417, i32 noundef %418)
  br label %460

419:                                              ; preds = %314, %305
  store i64 -1688849860263936, ptr %19, align 8, !tbaa !11
  %420 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %420, ptr %11, align 8, !tbaa !11
  %421 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %421, ptr %14, align 4, !tbaa !9
  %422 = load i32, ptr %14, align 4, !tbaa !9
  switch i32 %422, label %428 [
    i32 0, label %423
    i32 1, label %424
    i32 2, label %425
    i32 3, label %426
    i32 4, label %427
  ]

423:                                              ; preds = %419
  br label %460

424:                                              ; preds = %419
  br label %429

425:                                              ; preds = %419
  br label %431

426:                                              ; preds = %419
  br label %457

427:                                              ; preds = %419
  br label %440

428:                                              ; preds = %419
  br label %457

429:                                              ; preds = %424
  store i64 -1548112371908608, ptr %19, align 8, !tbaa !11
  %430 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %430, ptr %11, align 8, !tbaa !11
  br label %460

431:                                              ; preds = %425
  %432 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %432, ptr %19, align 8, !tbaa !11
  store i64 255, ptr %20, align 8, !tbaa !11
  %433 = load i64, ptr %20, align 8, !tbaa !11
  %434 = load i64, ptr %19, align 8, !tbaa !11
  %435 = and i64 %434, %433
  store i64 %435, ptr %19, align 8, !tbaa !11
  store i64 -1407374883553280, ptr %20, align 8, !tbaa !11
  %436 = load i64, ptr %20, align 8, !tbaa !11
  %437 = load i64, ptr %19, align 8, !tbaa !11
  %438 = or i64 %437, %436
  store i64 %438, ptr %19, align 8, !tbaa !11
  %439 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %439, ptr %11, align 8, !tbaa !11
  br label %460

440:                                              ; preds = %427
  store i64 9221120237041090560, ptr %19, align 8, !tbaa !11
  %441 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %441, ptr %20, align 8, !tbaa !11
  %442 = load double, ptr %13, align 8, !tbaa !13
  store double %442, ptr %23, align 8, !tbaa !13
  %443 = load double, ptr %13, align 8, !tbaa !13
  store double %443, ptr %24, align 8, !tbaa !13
  %444 = load double, ptr %23, align 8, !tbaa !13
  %445 = load double, ptr %24, align 8, !tbaa !13
  %446 = fcmp une double %444, %445
  %447 = zext i1 %446 to i32
  store i32 %447, ptr %16, align 4, !tbaa !9
  %448 = load i32, ptr %16, align 4, !tbaa !9
  %449 = icmp ne i32 %448, 0
  br i1 %449, label %450, label %452

450:                                              ; preds = %440
  %451 = load i64, ptr %19, align 8, !tbaa !11
  br label %454

452:                                              ; preds = %440
  %453 = load i64, ptr %20, align 8, !tbaa !11
  br label %454

454:                                              ; preds = %452, %450
  %455 = phi i64 [ %451, %450 ], [ %453, %452 ]
  store i64 %455, ptr %19, align 8, !tbaa !11
  %456 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %456, ptr %11, align 8, !tbaa !11
  br label %460

457:                                              ; preds = %428, %426
  store i32 113348, ptr %14, align 4, !tbaa !9
  %458 = load ptr, ptr %5, align 8, !tbaa !5
  %459 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef %458, i32 noundef %459)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

460:                                              ; preds = %454, %431, %429, %423, %397
  %461 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %461, ptr %14, align 4, !tbaa !9
  %462 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %462, ptr %20, align 8, !tbaa !11
  %463 = load ptr, ptr %5, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct.w2c_hermes, ptr %463, i32 0, i32 6
  %465 = load i32, ptr %14, align 4, !tbaa !9
  %466 = zext i32 %465 to i64
  %467 = add i64 %466, 8
  %468 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %464, i64 noundef %467, i64 noundef %468)
  %469 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %469, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %470 = load ptr, ptr %5, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct.w2c_hermes, ptr %470, i32 0, i32 6
  %472 = load i32, ptr %14, align 4, !tbaa !9
  %473 = zext i32 %472 to i64
  %474 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %471, i64 noundef %473, i32 noundef %474)
  br label %475

475:                                              ; preds = %460, %275
  %476 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %476, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %477 = load i32, ptr %15, align 4, !tbaa !9
  %478 = load i32, ptr %14, align 4, !tbaa !9
  %479 = add i32 %478, %477
  store i32 %479, ptr %14, align 4, !tbaa !9
  %480 = load i32, ptr %14, align 4, !tbaa !9
  %481 = load ptr, ptr %5, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.w2c_hermes, ptr %481, i32 0, i32 3
  store i32 %480, ptr %482, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
}

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double 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: inlinehint nounwind uwtable
declare hidden double @f64_load(ptr noundef, i64 noundef) #3

declare void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef, i32 noundef) #5

; 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 = { "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, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !10, i64 24}
!16 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !17, i64 40, !19, i64 80}
!17 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !18, i64 32}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!20 = !{!16, !10, i64 92}
!21 = !{!16, !6, i64 80}
!22 = !{!23, !6, i64 8}
!23 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!23, !6, i64 0}
!25 = !{!23, !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.4 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHostObjectWrapper0x3A0x3Aget0x28hermes0x3A0x3Avm0x3A0x3ASymbolID0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %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 %3 to i64
  %13 = or disjoint i64 %12, -1266637395197952
  %14 = zext i32 %7 to i64
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %14, i64 noundef %13)
  %15 = add i32 %11, 16
  %16 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef %0, i32 noundef %15, i32 noundef %7)
  %17 = add nuw nsw i64 %9, 8
  %18 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %17)
  %19 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %10)
  %20 = zext i32 %18 to i64
  %21 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %20)
  %22 = zext i32 %21 to i64
  %23 = add nuw nsw i64 %22, 4
  %24 = tail call i32 @i32_load(ptr noundef nonnull %8, 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 = %4
  %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.4, ptr noundef %36)
  br i1 %37, label %38, label %.critedge, !prof !16

.critedge:                                        ; preds = %29, %4, %35
  tail call void @wasm_rt_trap(i32 noundef 6) #4
  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
  tail call void %42(ptr noundef %44, i32 noundef %7, i32 noundef %18, i32 noundef %19, i32 noundef %16) #5
  %45 = zext i32 %16 to i64
  %46 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %45)
  %47 = zext i32 %46 to i64
  %48 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %47)
  %49 = load i32, ptr %26, align 4, !tbaa !15
  %50 = icmp ult i32 %48, %49
  br i1 %50, label %51, label %.critedge195, !prof !16

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

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

.critedge195:                                     ; preds = %51, %38, %57
  tail call void @wasm_rt_trap(i32 noundef 6) #4
  unreachable

60:                                               ; preds = %57
  %61 = load ptr, ptr %25, align 8, !tbaa !17
  %62 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %61, i64 %53
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !18
  %65 = getelementptr inbounds i8, ptr %62, i64 16
  %66 = load ptr, ptr %65, align 8, !tbaa !22
  tail call void %64(ptr noundef %66, i32 noundef %16) #5
  %67 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %14)
  %68 = icmp eq i32 %67, 3
  br i1 %68, label %69, label %76

69:                                               ; preds = %60
  %70 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %10)
  %71 = add nuw nsw i64 %14, 8
  %72 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %71)
  %73 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AraiseError0x28HermesABIErrorCode0x29(ptr noundef nonnull %0, i32 noundef %70, i32 noundef %72)
  %74 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %74, i32 noundef %73)
  %.not193 = icmp eq i32 %73, 1
  br i1 %.not193, label %75, label %125

75:                                               ; preds = %69
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109717, i32 noundef 77564, i32 noundef 168, i32 noundef 28083)
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

76:                                               ; preds = %60
  %77 = add nuw nsw i64 %14, 8
  %78 = tail call double @f64_load(ptr noundef nonnull %8, i64 noundef %77)
  %79 = tail call i64 @i64_reinterpret_f64(double noundef %78)
  %80 = add i32 %67, 2147483643
  %81 = icmp ugt i32 %80, 4
  %82 = icmp eq i32 %80, 3
  %or.cond = or i1 %81, %82
  br i1 %or.cond, label %113, label %83

83:                                               ; preds = %76
  %84 = trunc i64 %79 to i32
  %85 = and i64 %79, 4294967295
  %86 = add nuw nsw i64 %85, 4
  %87 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %86)
  %.not191 = icmp eq i32 %87, 0
  br i1 %.not191, label %88, label %89

88:                                               ; preds = %83
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 131111, i32 noundef 61000, i32 noundef 95, i32 noundef 90287)
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

89:                                               ; preds = %83
  %90 = add nuw nsw i64 %85, 8
  %91 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %90)
  %92 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %85)
  %93 = zext i32 %92 to i64
  %94 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %93)
  %95 = load i32, ptr %26, align 4, !tbaa !15
  %96 = icmp ult i32 %94, %95
  br i1 %96, label %97, label %.critedge197, !prof !16

97:                                               ; preds = %89
  %98 = load ptr, ptr %25, align 8, !tbaa !17
  %99 = zext i32 %94 to i64
  %100 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %98, i64 %99
  %101 = getelementptr inbounds i8, ptr %100, i64 8
  %102 = load ptr, ptr %101, align 8, !tbaa !18
  %.not192 = icmp eq ptr %102, null
  br i1 %.not192, label %.critedge197, label %103, !prof !20

103:                                              ; preds = %97
  %104 = load ptr, ptr %100, align 8, !tbaa !21
  %105 = tail call zeroext i1 @func_types_eq(ptr noundef nonnull @.str.3, ptr noundef %104)
  br i1 %105, label %106, label %.critedge197, !prof !16

.critedge197:                                     ; preds = %97, %89, %103
  tail call void @wasm_rt_trap(i32 noundef 6) #4
  unreachable

106:                                              ; preds = %103
  %107 = load ptr, ptr %25, align 8, !tbaa !17
  %108 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %107, i64 %99
  %109 = getelementptr inbounds i8, ptr %108, i64 8
  %110 = load ptr, ptr %109, align 8, !tbaa !18
  %111 = getelementptr inbounds i8, ptr %108, i64 16
  %112 = load ptr, ptr %111, align 8, !tbaa !22
  tail call void %110(ptr noundef %112, i32 noundef %84) #5
  br label %122

113:                                              ; preds = %76
  switch i32 %67, label %121 [
    i32 0, label %122
    i32 1, label %114
    i32 2, label %115
    i32 4, label %118
  ]

114:                                              ; preds = %113
  br label %122

115:                                              ; preds = %113
  %116 = and i64 %79, 255
  %117 = or disjoint i64 %116, -1407374883553280
  br label %122

118:                                              ; preds = %113
  %119 = fcmp uno double %78, 0.000000e+00
  %120 = select i1 %119, i64 9221120237041090560, i64 %79
  br label %122

121:                                              ; preds = %113
  tail call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef 113348) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

122:                                              ; preds = %113, %118, %115, %114, %106
  %.0 = phi i64 [ %120, %118 ], [ %117, %115 ], [ -1548112371908608, %114 ], [ -1688849860263936, %113 ], [ %91, %106 ]
  %123 = zext i32 %1 to i64
  %124 = add nuw nsw i64 %123, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %124, i64 noundef %.0)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %123, i32 noundef 1)
  br label %125

125:                                              ; preds = %69, %122
  store i32 %6, ptr %5, 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 @i32_store(ptr noundef, i64 noundef, i32 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 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 i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double 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: inlinehint nounwind uwtable
declare hidden double @f64_load(ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #3

; 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 = { "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 = !{!19, !7, i64 0}
!22 = !{!19, !7, i64 16}


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