; 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.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = 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 %8, align 4, !tbaa !9
  store i32 %42, ptr %15, align 4, !tbaa !9
  %43 = load i32, ptr %15, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  store i64 %44, ptr %20, align 8, !tbaa !11
  store i64 -1266637395197952, ptr %21, align 8, !tbaa !11
  %45 = load i64, ptr %21, align 8, !tbaa !11
  %46 = load i64, ptr %20, align 8, !tbaa !11
  %47 = or i64 %46, %45
  store i64 %47, ptr %20, align 8, !tbaa !11
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load i32, ptr %14, align 4, !tbaa !9
  %50 = load i64, ptr %20, align 8, !tbaa !11
  %51 = call i32 @w2c_hermes_HermesABIManagedPointer0x2A0x200x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AcreatePointerImpl0x3CHermesABIObject0x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %48, i32 noundef %49, i64 noundef %50)
  store i32 %51, ptr %14, align 4, !tbaa !9
  %52 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %52, ptr %8, align 4, !tbaa !9
  %53 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %53, ptr %14, align 4, !tbaa !9
  %54 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %54, ptr %15, align 4, !tbaa !9
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = add i64 %58, 8
  %60 = call i32 @i32_load(ptr noundef %56, i64 noundef %59)
  store i32 %60, ptr %15, align 4, !tbaa !9
  %61 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %61, ptr %10, align 4, !tbaa !9
  %62 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %62, ptr %16, align 4, !tbaa !9
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.w2c_hermes, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %16, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = add i64 %66, 4
  %68 = call i32 @i32_load(ptr noundef %64, i64 noundef %67)
  store i32 %68, ptr %16, align 4, !tbaa !9
  %69 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %69, ptr %17, align 4, !tbaa !9
  %70 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %70, ptr %18, align 4, !tbaa !9
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %18, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = call i32 @i32_load(ptr noundef %72, i64 noundef %74)
  store i32 %75, ptr %18, align 4, !tbaa !9
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.w2c_hermes, ptr %76, i32 0, i32 6
  %78 = load i32, ptr %18, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = add i64 %79, 4
  %81 = call i32 @i32_load(ptr noundef %77, i64 noundef %80)
  store i32 %81, ptr %18, align 4, !tbaa !9
  %82 = load i32, 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 7
  %85 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %84, i32 0, i32 2
  %86 = load i32, ptr %85, align 4, !tbaa !20
  %87 = icmp ult i32 %82, %86
  br i1 %87, label %88, label %110

88:                                               ; preds = %4
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 7
  %91 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  %93 = load i32, ptr %18, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %92, i64 %94
  %96 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %95, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !22
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %110

99:                                               ; preds = %88
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 7
  %102 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !21
  %104 = load i32, ptr %18, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %103, i64 %105
  %107 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !24
  %109 = call zeroext i1 @func_types_eq(ptr noundef @.str.1, ptr noundef %108)
  br label %110

110:                                              ; preds = %99, %88, %4
  %111 = phi i1 [ false, %88 ], [ false, %4 ], [ %109, %99 ]
  %112 = xor i1 %111, true
  %113 = xor i1 %112, true
  %114 = zext i1 %113 to i32
  %115 = sext i32 %114 to i64
  %116 = call i64 @llvm.expect.i64(i64 %115, i64 1)
  %117 = icmp ne i64 %116, 0
  br i1 %117, label %120, label %118

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

119:                                              ; No predecessors!
  br label %120

120:                                              ; preds = %119, %110
  %121 = phi i1 [ true, %110 ], [ false, %119 ]
  %122 = zext i1 %121 to i32
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 7
  %125 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %124, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8, !tbaa !21
  %127 = load i32, ptr %18, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %126, i64 %128
  %130 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %129, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !22
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.w2c_hermes, ptr %132, i32 0, i32 7
  %134 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !21
  %136 = load i32, ptr %18, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %135, i64 %137
  %139 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %138, i32 0, i32 2
  %140 = load ptr, ptr %139, align 8, !tbaa !25
  %141 = load i32, ptr %14, align 4, !tbaa !9
  %142 = load i32, ptr %15, align 4, !tbaa !9
  %143 = load i32, ptr %16, align 4, !tbaa !9
  %144 = load i32, ptr %17, align 4, !tbaa !9
  call void %131(ptr noundef %140, i32 noundef %141, i32 noundef %142, i32 noundef %143, i32 noundef %144)
  %145 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %145, ptr %14, align 4, !tbaa !9
  %146 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %146, ptr %15, align 4, !tbaa !9
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.w2c_hermes, ptr %147, i32 0, i32 6
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = call i32 @i32_load(ptr noundef %148, i64 noundef %150)
  store i32 %151, ptr %15, align 4, !tbaa !9
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.w2c_hermes, ptr %152, i32 0, i32 6
  %154 = load i32, ptr %15, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = call i32 @i32_load(ptr noundef %153, i64 noundef %155)
  store i32 %156, ptr %15, align 4, !tbaa !9
  %157 = load i32, ptr %15, align 4, !tbaa !9
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.w2c_hermes, ptr %158, i32 0, i32 7
  %160 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %159, i32 0, i32 2
  %161 = load i32, ptr %160, align 4, !tbaa !20
  %162 = icmp ult i32 %157, %161
  br i1 %162, label %163, label %185

163:                                              ; preds = %120
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.w2c_hermes, ptr %164, i32 0, i32 7
  %166 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %165, i32 0, i32 0
  %167 = load ptr, ptr %166, align 8, !tbaa !21
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %167, i64 %169
  %171 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %170, i32 0, i32 1
  %172 = load ptr, ptr %171, align 8, !tbaa !22
  %173 = icmp ne ptr %172, null
  br i1 %173, label %174, label %185

174:                                              ; preds = %163
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.w2c_hermes, ptr %175, i32 0, i32 7
  %177 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %176, i32 0, i32 0
  %178 = load ptr, ptr %177, align 8, !tbaa !21
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %178, i64 %180
  %182 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %181, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !24
  %184 = call zeroext i1 @func_types_eq(ptr noundef @.str.3, ptr noundef %183)
  br label %185

185:                                              ; preds = %174, %163, %120
  %186 = phi i1 [ false, %163 ], [ false, %120 ], [ %184, %174 ]
  %187 = xor i1 %186, true
  %188 = xor i1 %187, true
  %189 = zext i1 %188 to i32
  %190 = sext i32 %189 to i64
  %191 = call i64 @llvm.expect.i64(i64 %190, i64 1)
  %192 = icmp ne i64 %191, 0
  br i1 %192, label %195, label %193

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

194:                                              ; No predecessors!
  br label %195

195:                                              ; preds = %194, %185
  %196 = phi i1 [ true, %185 ], [ false, %194 ]
  %197 = zext i1 %196 to i32
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.w2c_hermes, ptr %198, i32 0, i32 7
  %200 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %199, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8, !tbaa !21
  %202 = load i32, ptr %15, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %201, i64 %203
  %205 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %204, i32 0, i32 1
  %206 = load ptr, ptr %205, align 8, !tbaa !22
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.w2c_hermes, ptr %207, i32 0, i32 7
  %209 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %208, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8, !tbaa !21
  %211 = load i32, ptr %15, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %210, i64 %212
  %214 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %213, i32 0, i32 2
  %215 = load ptr, ptr %214, align 8, !tbaa !25
  %216 = load i32, ptr %14, align 4, !tbaa !9
  call void %206(ptr noundef %215, i32 noundef %216)
  %217 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %217, ptr %14, align 4, !tbaa !9
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.w2c_hermes, ptr %218, i32 0, i32 6
  %220 = load i32, ptr %14, align 4, !tbaa !9
  %221 = zext i32 %220 to i64
  %222 = call i32 @i32_load(ptr noundef %219, i64 noundef %221)
  store i32 %222, ptr %14, align 4, !tbaa !9
  %223 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %223, ptr %8, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %224 = load i32, ptr %14, align 4, !tbaa !9
  %225 = load i32, ptr %15, align 4, !tbaa !9
  %226 = icmp eq i32 %224, %225
  %227 = zext i1 %226 to i32
  store i32 %227, ptr %14, align 4, !tbaa !9
  %228 = load i32, ptr %14, align 4, !tbaa !9
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %255

230:                                              ; preds = %195
  %231 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %231, ptr %14, align 4, !tbaa !9
  %232 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %232, ptr %15, align 4, !tbaa !9
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.w2c_hermes, ptr %233, i32 0, i32 6
  %235 = load i32, ptr %15, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = add i64 %236, 4
  %238 = call i32 @i32_load(ptr noundef %234, i64 noundef %237)
  store i32 %238, ptr %15, align 4, !tbaa !9
  %239 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %239, ptr %16, align 4, !tbaa !9
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.w2c_hermes, ptr %240, i32 0, i32 6
  %242 = load i32, ptr %16, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = add i64 %243, 8
  %245 = call i32 @i32_load(ptr noundef %241, i64 noundef %244)
  store i32 %245, ptr %16, align 4, !tbaa !9
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = load i32, ptr %15, align 4, !tbaa !9
  %248 = load i32, ptr %16, align 4, !tbaa !9
  %249 = call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AraiseError0x28HermesABIErrorCode0x29(ptr noundef %246, i32 noundef %247, i32 noundef %248)
  store i32 %249, ptr %15, align 4, !tbaa !9
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.w2c_hermes, ptr %250, i32 0, i32 6
  %252 = load i32, ptr %14, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %251, i64 noundef %253, i32 noundef %254)
  br label %428

255:                                              ; preds = %195
  %256 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %256, ptr %14, align 4, !tbaa !9
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.w2c_hermes, ptr %257, i32 0, i32 6
  %259 = load i32, ptr %14, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = add i64 %260, 8
  %262 = call double @f64_load(ptr noundef %258, i64 noundef %261)
  store double %262, ptr %22, align 8, !tbaa !13
  %263 = load double, ptr %22, align 8, !tbaa !13
  store double %263, ptr %13, align 8, !tbaa !13
  %264 = load double, ptr %22, align 8, !tbaa !13
  %265 = call i64 @i64_reinterpret_f64(double noundef %264)
  store i64 %265, ptr %19, align 8, !tbaa !11
  %266 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %266, ptr %12, align 8, !tbaa !11
  %267 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %267, ptr %14, align 4, !tbaa !9
  store i32 2147483643, ptr %15, align 4, !tbaa !9
  %268 = load i32, ptr %15, align 4, !tbaa !9
  %269 = load i32, ptr %14, align 4, !tbaa !9
  %270 = add i32 %269, %268
  store i32 %270, ptr %14, align 4, !tbaa !9
  %271 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %271, ptr %7, align 4, !tbaa !9
  store i32 4, ptr %15, align 4, !tbaa !9
  %272 = load i32, ptr %14, align 4, !tbaa !9
  %273 = load i32, ptr %15, align 4, !tbaa !9
  %274 = icmp ugt i32 %272, %273
  %275 = zext i1 %274 to i32
  store i32 %275, ptr %14, align 4, !tbaa !9
  %276 = load i32, ptr %14, align 4, !tbaa !9
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %279

278:                                              ; preds = %255
  br label %372

279:                                              ; preds = %255
  %280 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %280, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %281 = load i32, ptr %14, align 4, !tbaa !9
  %282 = load i32, ptr %15, align 4, !tbaa !9
  %283 = icmp eq i32 %281, %282
  %284 = zext i1 %283 to i32
  store i32 %284, ptr %14, align 4, !tbaa !9
  %285 = load i32, ptr %14, align 4, !tbaa !9
  %286 = icmp ne i32 %285, 0
  br i1 %286, label %287, label %288

287:                                              ; preds = %279
  br label %372

288:                                              ; preds = %279
  %289 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %289, ptr %19, align 8, !tbaa !11
  %290 = load i64, ptr %19, align 8, !tbaa !11
  %291 = trunc i64 %290 to i32
  store i32 %291, ptr %14, align 4, !tbaa !9
  %292 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %292, ptr %7, align 4, !tbaa !9
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.w2c_hermes, ptr %293, i32 0, i32 6
  %295 = load i32, ptr %14, align 4, !tbaa !9
  %296 = zext i32 %295 to i64
  %297 = add i64 %296, 8
  %298 = call i64 @i64_load(ptr noundef %294, i64 noundef %297)
  store i64 %298, ptr %19, align 8, !tbaa !11
  %299 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %299, ptr %11, align 8, !tbaa !11
  %300 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %300, ptr %14, align 4, !tbaa !9
  %301 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %301, ptr %15, align 4, !tbaa !9
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.w2c_hermes, ptr %302, i32 0, i32 6
  %304 = load i32, ptr %15, align 4, !tbaa !9
  %305 = zext i32 %304 to i64
  %306 = call i32 @i32_load(ptr noundef %303, i64 noundef %305)
  store i32 %306, ptr %15, align 4, !tbaa !9
  %307 = load ptr, ptr %5, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.w2c_hermes, ptr %307, i32 0, i32 6
  %309 = load i32, ptr %15, align 4, !tbaa !9
  %310 = zext i32 %309 to i64
  %311 = call i32 @i32_load(ptr noundef %308, i64 noundef %310)
  store i32 %311, ptr %15, align 4, !tbaa !9
  %312 = load i32, ptr %15, align 4, !tbaa !9
  %313 = load ptr, ptr %5, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.w2c_hermes, ptr %313, i32 0, i32 7
  %315 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %314, i32 0, i32 2
  %316 = load i32, ptr %315, align 4, !tbaa !20
  %317 = icmp ult i32 %312, %316
  br i1 %317, label %318, label %340

318:                                              ; preds = %288
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.w2c_hermes, ptr %319, i32 0, i32 7
  %321 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %320, i32 0, i32 0
  %322 = load ptr, ptr %321, align 8, !tbaa !21
  %323 = load i32, ptr %15, align 4, !tbaa !9
  %324 = zext i32 %323 to i64
  %325 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %322, i64 %324
  %326 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %325, i32 0, i32 1
  %327 = load ptr, ptr %326, align 8, !tbaa !22
  %328 = icmp ne ptr %327, null
  br i1 %328, label %329, label %340

329:                                              ; preds = %318
  %330 = load ptr, ptr %5, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.w2c_hermes, ptr %330, i32 0, i32 7
  %332 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %331, i32 0, i32 0
  %333 = load ptr, ptr %332, align 8, !tbaa !21
  %334 = load i32, ptr %15, align 4, !tbaa !9
  %335 = zext i32 %334 to i64
  %336 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %333, i64 %335
  %337 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %336, i32 0, i32 0
  %338 = load ptr, ptr %337, align 8, !tbaa !24
  %339 = call zeroext i1 @func_types_eq(ptr noundef @.str.3, ptr noundef %338)
  br label %340

340:                                              ; preds = %329, %318, %288
  %341 = phi i1 [ false, %318 ], [ false, %288 ], [ %339, %329 ]
  %342 = xor i1 %341, true
  %343 = xor i1 %342, true
  %344 = zext i1 %343 to i32
  %345 = sext i32 %344 to i64
  %346 = call i64 @llvm.expect.i64(i64 %345, i64 1)
  %347 = icmp ne i64 %346, 0
  br i1 %347, label %350, label %348

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

349:                                              ; No predecessors!
  br label %350

350:                                              ; preds = %349, %340
  %351 = phi i1 [ true, %340 ], [ false, %349 ]
  %352 = zext i1 %351 to i32
  %353 = load ptr, ptr %5, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.w2c_hermes, ptr %353, i32 0, i32 7
  %355 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %354, i32 0, i32 0
  %356 = load ptr, ptr %355, align 8, !tbaa !21
  %357 = load i32, ptr %15, align 4, !tbaa !9
  %358 = zext i32 %357 to i64
  %359 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %356, i64 %358
  %360 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %359, i32 0, i32 1
  %361 = load ptr, ptr %360, align 8, !tbaa !22
  %362 = load ptr, ptr %5, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.w2c_hermes, ptr %362, i32 0, i32 7
  %364 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %363, i32 0, i32 0
  %365 = load ptr, ptr %364, align 8, !tbaa !21
  %366 = load i32, ptr %15, align 4, !tbaa !9
  %367 = zext i32 %366 to i64
  %368 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %365, i64 %367
  %369 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %368, i32 0, i32 2
  %370 = load ptr, ptr %369, align 8, !tbaa !25
  %371 = load i32, ptr %14, align 4, !tbaa !9
  call void %361(ptr noundef %370, i32 noundef %371)
  br label %413

372:                                              ; preds = %287, %278
  store i64 -1688849860263936, ptr %19, align 8, !tbaa !11
  %373 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %373, ptr %11, align 8, !tbaa !11
  %374 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %374, ptr %14, align 4, !tbaa !9
  %375 = load i32, ptr %14, align 4, !tbaa !9
  switch i32 %375, label %381 [
    i32 0, label %376
    i32 1, label %377
    i32 2, label %378
    i32 3, label %379
    i32 4, label %380
  ]

376:                                              ; preds = %372
  br label %413

377:                                              ; preds = %372
  br label %382

378:                                              ; preds = %372
  br label %384

379:                                              ; preds = %372
  br label %410

380:                                              ; preds = %372
  br label %393

381:                                              ; preds = %372
  br label %410

382:                                              ; preds = %377
  store i64 -1548112371908608, ptr %19, align 8, !tbaa !11
  %383 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %383, ptr %11, align 8, !tbaa !11
  br label %413

384:                                              ; preds = %378
  %385 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %385, ptr %19, align 8, !tbaa !11
  store i64 255, ptr %20, align 8, !tbaa !11
  %386 = load i64, ptr %20, align 8, !tbaa !11
  %387 = load i64, ptr %19, align 8, !tbaa !11
  %388 = and i64 %387, %386
  store i64 %388, ptr %19, align 8, !tbaa !11
  store i64 -1407374883553280, ptr %20, align 8, !tbaa !11
  %389 = load i64, ptr %20, align 8, !tbaa !11
  %390 = load i64, ptr %19, align 8, !tbaa !11
  %391 = or i64 %390, %389
  store i64 %391, ptr %19, align 8, !tbaa !11
  %392 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %392, ptr %11, align 8, !tbaa !11
  br label %413

393:                                              ; preds = %380
  store i64 9221120237041090560, ptr %19, align 8, !tbaa !11
  %394 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %394, ptr %20, align 8, !tbaa !11
  %395 = load double, ptr %13, align 8, !tbaa !13
  store double %395, ptr %23, align 8, !tbaa !13
  %396 = load double, ptr %13, align 8, !tbaa !13
  store double %396, ptr %24, align 8, !tbaa !13
  %397 = load double, ptr %23, align 8, !tbaa !13
  %398 = load double, ptr %24, align 8, !tbaa !13
  %399 = fcmp une double %397, %398
  %400 = zext i1 %399 to i32
  store i32 %400, ptr %16, align 4, !tbaa !9
  %401 = load i32, ptr %16, align 4, !tbaa !9
  %402 = icmp ne i32 %401, 0
  br i1 %402, label %403, label %405

403:                                              ; preds = %393
  %404 = load i64, ptr %19, align 8, !tbaa !11
  br label %407

405:                                              ; preds = %393
  %406 = load i64, ptr %20, align 8, !tbaa !11
  br label %407

407:                                              ; preds = %405, %403
  %408 = phi i64 [ %404, %403 ], [ %406, %405 ]
  store i64 %408, ptr %19, align 8, !tbaa !11
  %409 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %409, ptr %11, align 8, !tbaa !11
  br label %413

410:                                              ; preds = %381, %379
  store i32 58173, ptr %14, align 4, !tbaa !9
  %411 = load ptr, ptr %5, align 8, !tbaa !5
  %412 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef %411, i32 noundef %412)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

413:                                              ; preds = %407, %384, %382, %376, %350
  %414 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %414, ptr %14, align 4, !tbaa !9
  %415 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %415, ptr %20, align 8, !tbaa !11
  %416 = load ptr, ptr %5, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.w2c_hermes, ptr %416, i32 0, i32 6
  %418 = load i32, ptr %14, align 4, !tbaa !9
  %419 = zext i32 %418 to i64
  %420 = add i64 %419, 8
  %421 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %417, i64 noundef %420, i64 noundef %421)
  %422 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %422, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %423 = load ptr, ptr %5, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.w2c_hermes, ptr %423, i32 0, i32 6
  %425 = load i32, ptr %14, align 4, !tbaa !9
  %426 = zext i32 %425 to i64
  %427 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %424, i64 noundef %426, i32 noundef %427)
  br label %428

428:                                              ; preds = %413, %230
  %429 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %429, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %430 = load i32, ptr %15, align 4, !tbaa !9
  %431 = load i32, ptr %14, align 4, !tbaa !9
  %432 = add i32 %431, %430
  store i32 %432, ptr %14, align 4, !tbaa !9
  %433 = load i32, ptr %14, align 4, !tbaa !9
  %434 = load ptr, ptr %5, align 8, !tbaa !5
  %435 = getelementptr inbounds %struct.w2c_hermes, ptr %434, i32 0, i32 3
  store i32 %433, ptr %435, 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #2

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

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

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 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 i64 @i64_load(ptr noundef, i64 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double noundef) #2

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

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

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

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

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

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 = { "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.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = 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 = tail call i32 @w2c_hermes_HermesABIManagedPointer0x2A0x200x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AcreatePointerImpl0x3CHermesABIObject0x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i32 noundef %11, i64 noundef %13)
  %15 = add nuw nsw i64 %9, 8
  %16 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %15)
  %17 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %10)
  %18 = zext i32 %16 to i64
  %19 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %18)
  %20 = zext i32 %19 to i64
  %21 = add nuw nsw i64 %20, 4
  %22 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %21)
  %23 = getelementptr inbounds i8, ptr %0, i64 80
  %24 = getelementptr inbounds i8, ptr %0, i64 92
  %25 = load i32, ptr %24, align 4, !tbaa !15
  %26 = icmp ult i32 %22, %25
  br i1 %26, label %27, label %.critedge, !prof !16

27:                                               ; preds = %4
  %28 = load ptr, ptr %23, align 8, !tbaa !17
  %29 = zext i32 %22 to i64
  %30 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %28, i64 %29
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %.not = icmp eq ptr %32, null
  br i1 %.not, label %.critedge, label %33, !prof !20

33:                                               ; preds = %27
  %34 = load ptr, ptr %30, align 8, !tbaa !21
  %35 = tail call zeroext i1 @func_types_eq(ptr noundef nonnull @.str.1, ptr noundef %34)
  br i1 %35, label %36, label %.critedge, !prof !16

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

36:                                               ; preds = %33
  %37 = load ptr, ptr %23, align 8, !tbaa !17
  %38 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %37, i64 %29
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %38, i64 16
  %42 = load ptr, ptr %41, align 8, !tbaa !22
  tail call void %40(ptr noundef %42, i32 noundef %7, i32 noundef %16, i32 noundef %17, i32 noundef %14) #5
  %43 = zext i32 %14 to i64
  %44 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %43)
  %45 = zext i32 %44 to i64
  %46 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %45)
  %47 = load i32, ptr %24, align 4, !tbaa !15
  %48 = icmp ult i32 %46, %47
  br i1 %48, label %49, label %.critedge164, !prof !16

49:                                               ; preds = %36
  %50 = load ptr, ptr %23, align 8, !tbaa !17
  %51 = zext i32 %46 to i64
  %52 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %50, i64 %51
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  %54 = load ptr, ptr %53, align 8, !tbaa !18
  %.not161 = icmp eq ptr %54, null
  br i1 %.not161, label %.critedge164, label %55, !prof !20

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

.critedge164:                                     ; preds = %49, %36, %55
  tail call void @wasm_rt_trap(i32 noundef 6) #4
  unreachable

58:                                               ; preds = %55
  %59 = load ptr, ptr %23, align 8, !tbaa !17
  %60 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %59, i64 %51
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load ptr, ptr %61, align 8, !tbaa !18
  %63 = getelementptr inbounds i8, ptr %60, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !22
  tail call void %62(ptr noundef %64, i32 noundef %14) #5
  %65 = zext i32 %7 to i64
  %66 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %65)
  %67 = icmp eq i32 %66, 3
  br i1 %67, label %68, label %74

68:                                               ; preds = %58
  %69 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %10)
  %70 = add nuw nsw i64 %65, 8
  %71 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %70)
  %72 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AraiseError0x28HermesABIErrorCode0x29(ptr noundef nonnull %0, i32 noundef %69, i32 noundef %71)
  %73 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %73, i32 noundef %72)
  br label %119

74:                                               ; preds = %58
  %75 = add nuw nsw i64 %65, 8
  %76 = tail call double @f64_load(ptr noundef nonnull %8, i64 noundef %75)
  %77 = tail call i64 @i64_reinterpret_f64(double noundef %76)
  %78 = add i32 %66, 2147483643
  %79 = icmp ugt i32 %78, 4
  %80 = icmp eq i32 %78, 3
  %or.cond = or i1 %79, %80
  br i1 %or.cond, label %107, label %81

81:                                               ; preds = %74
  %82 = trunc i64 %77 to i32
  %83 = and i64 %77, 4294967295
  %84 = add nuw nsw i64 %83, 8
  %85 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %84)
  %86 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %83)
  %87 = zext i32 %86 to i64
  %88 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %87)
  %89 = load i32, ptr %24, align 4, !tbaa !15
  %90 = icmp ult i32 %88, %89
  br i1 %90, label %91, label %.critedge166, !prof !16

91:                                               ; preds = %81
  %92 = load ptr, ptr %23, align 8, !tbaa !17
  %93 = zext i32 %88 to i64
  %94 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %92, i64 %93
  %95 = getelementptr inbounds i8, ptr %94, i64 8
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %.not162 = icmp eq ptr %96, null
  br i1 %.not162, label %.critedge166, label %97, !prof !20

97:                                               ; preds = %91
  %98 = load ptr, ptr %94, align 8, !tbaa !21
  %99 = tail call zeroext i1 @func_types_eq(ptr noundef nonnull @.str.3, ptr noundef %98)
  br i1 %99, label %100, label %.critedge166, !prof !16

.critedge166:                                     ; preds = %91, %81, %97
  tail call void @wasm_rt_trap(i32 noundef 6) #4
  unreachable

100:                                              ; preds = %97
  %101 = load ptr, ptr %23, align 8, !tbaa !17
  %102 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %101, i64 %93
  %103 = getelementptr inbounds i8, ptr %102, i64 8
  %104 = load ptr, ptr %103, align 8, !tbaa !18
  %105 = getelementptr inbounds i8, ptr %102, i64 16
  %106 = load ptr, ptr %105, align 8, !tbaa !22
  tail call void %104(ptr noundef %106, i32 noundef %82) #5
  br label %116

107:                                              ; preds = %74
  switch i32 %66, label %115 [
    i32 0, label %116
    i32 1, label %108
    i32 2, label %109
    i32 4, label %112
  ]

108:                                              ; preds = %107
  br label %116

109:                                              ; preds = %107
  %110 = and i64 %77, 255
  %111 = or disjoint i64 %110, -1407374883553280
  br label %116

112:                                              ; preds = %107
  %113 = fcmp uno double %76, 0.000000e+00
  %114 = select i1 %113, i64 9221120237041090560, i64 %77
  br label %116

115:                                              ; preds = %107
  tail call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef 58173) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

116:                                              ; preds = %107, %112, %109, %108, %100
  %.0 = phi i64 [ %114, %112 ], [ %111, %109 ], [ -1548112371908608, %108 ], [ -1688849860263936, %107 ], [ %85, %100 ]
  %117 = zext i32 %1 to i64
  %118 = add nuw nsw i64 %117, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %118, i64 noundef %.0)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %117, i32 noundef 1)
  br label %119

119:                                              ; preds = %116, %68
  store i32 %6, ptr %5, 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 void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

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

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

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

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

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 = { "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