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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }
%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@w2c_hermes_t3 = external constant ptr, align 8

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

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

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

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

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

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

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

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

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

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) #4

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

declare i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef, i32 noundef) #4

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

57:                                               ; preds = %5
  br label %147

58:                                               ; preds = %5
  store i32 71071, ptr %12, align 4, !tbaa !9
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = call i32 @w2c_hermes_llvh0x3A0x3AisCurrentDebugType0x28char0x20const0x2A0x29(ptr noundef %59, i32 noundef %60)
  store i32 %61, ptr %12, align 4, !tbaa !9
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  %64 = xor i1 %63, true
  %65 = zext i1 %64 to i32
  store i32 %65, ptr %12, align 4, !tbaa !9
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %58
  br label %147

69:                                               ; preds = %58
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = call i32 @w2c_hermes_llvh0x3A0x3Adbgs0x280x29(ptr noundef %70)
  store i32 %71, ptr %12, align 4, !tbaa !9
  %72 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %72, ptr %8, align 4, !tbaa !9
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.w2c_hermes, ptr %73, i32 0, i32 6
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = add i64 %76, 8
  %78 = call i32 @i32_load(ptr noundef %74, i64 noundef %77)
  store i32 %78, ptr %12, align 4, !tbaa !9
  %79 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %79, ptr %13, align 4, !tbaa !9
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = add i64 %83, 12
  %85 = call i32 @i32_load(ptr noundef %81, i64 noundef %84)
  store i32 %85, ptr %13, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %86, ptr %9, align 4, !tbaa !9
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = sub i32 %88, %87
  store i32 %89, ptr %12, align 4, !tbaa !9
  store i32 15, ptr %13, align 4, !tbaa !9
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = icmp ule i32 %90, %91
  %93 = zext i1 %92 to i32
  store i32 %93, ptr %12, align 4, !tbaa !9
  %94 = load i32, ptr %12, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %103

96:                                               ; preds = %69
  %97 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %97, ptr %12, align 4, !tbaa !9
  store i32 212563, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %98, i32 noundef %99, i32 noundef %100, i32 noundef %101)
  store i32 %102, ptr %12, align 4, !tbaa !9
  br label %147

103:                                              ; preds = %69
  %104 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %104, ptr %12, align 4, !tbaa !9
  store i32 212563, ptr %13, align 4, !tbaa !9
  %105 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %105, ptr %7, align 4, !tbaa !9
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.w2c_hermes, ptr %106, i32 0, i32 6
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = zext i32 %108 to i64
  %110 = call i64 @i64_load(ptr noundef %107, i64 noundef %109)
  store i64 %110, ptr %17, align 8, !tbaa !17
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %12, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = load i64, ptr %17, align 8, !tbaa !17
  call void @i64_store(ptr noundef %112, i64 noundef %114, i64 noundef %115)
  %116 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %116, ptr %12, align 4, !tbaa !9
  %117 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %117, ptr %13, align 4, !tbaa !9
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 6
  %120 = load i32, ptr %13, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = add i64 %121, 8
  %123 = call i64 @i64_load(ptr noundef %119, i64 noundef %122)
  store i64 %123, ptr %17, align 8, !tbaa !17
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %12, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = add i64 %127, 8
  %129 = load i64, ptr %17, align 8, !tbaa !17
  call void @i64_store(ptr noundef %125, i64 noundef %128, i64 noundef %129)
  %130 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %130, ptr %12, align 4, !tbaa !9
  %131 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %131, ptr %13, align 4, !tbaa !9
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.w2c_hermes, ptr %132, i32 0, i32 6
  %134 = load i32, ptr %13, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = add i64 %135, 12
  %137 = call i32 @i32_load(ptr noundef %133, i64 noundef %136)
  store i32 %137, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = add i32 %139, %138
  store i32 %140, ptr %13, align 4, !tbaa !9
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.w2c_hermes, ptr %141, i32 0, i32 6
  %143 = load i32, ptr %12, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = add i64 %144, 12
  %146 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %142, i64 noundef %145, i32 noundef %146)
  br label %147

147:                                              ; preds = %103, %96, %68, %57
  %148 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %148, ptr %12, align 4, !tbaa !9
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.w2c_hermes, ptr %149, i32 0, i32 6
  %151 = load i32, ptr %12, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  %153 = add i64 %152, 92
  %154 = call i32 @i32_load(ptr noundef %150, i64 noundef %153)
  store i32 %154, ptr %12, align 4, !tbaa !9
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %155, i32 noundef %156)
  %157 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %157, ptr %12, align 4, !tbaa !9
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.w2c_hermes, ptr %158, i32 0, i32 6
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = add i64 %161, 68
  %163 = call i32 @i32_load(ptr noundef %159, i64 noundef %162)
  store i32 %163, ptr %12, align 4, !tbaa !9
  %164 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %164, ptr %8, align 4, !tbaa !9
  %165 = load i32, ptr %12, align 4, !tbaa !9
  %166 = icmp ne i32 %165, 0
  %167 = xor i1 %166, true
  %168 = zext i1 %167 to i32
  store i32 %168, ptr %12, align 4, !tbaa !9
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %172

171:                                              ; preds = %147
  br label %273

172:                                              ; preds = %147
  %173 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %173, ptr %12, align 4, !tbaa !9
  %174 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %174, ptr %13, align 4, !tbaa !9
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.w2c_hermes, ptr %175, i32 0, i32 6
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = zext i32 %177 to i64
  %179 = add i64 %178, 4
  %180 = call i32 @i32_load(ptr noundef %176, i64 noundef %179)
  store i32 %180, ptr %13, align 4, !tbaa !9
  %181 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %181, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %182 = load i32, ptr %14, align 4, !tbaa !9
  %183 = load i32, ptr %13, align 4, !tbaa !9
  %184 = sub i32 %183, %182
  store i32 %184, ptr %13, align 4, !tbaa !9
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 6
  %187 = load i32, ptr %12, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = add i64 %188, 4
  %190 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %186, i64 noundef %189, i32 noundef %190)
  %191 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %191, ptr %12, align 4, !tbaa !9
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %195

194:                                              ; preds = %172
  br label %273

195:                                              ; preds = %172
  %196 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %196, ptr %12, align 4, !tbaa !9
  %197 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %197, ptr %13, align 4, !tbaa !9
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.w2c_hermes, ptr %198, i32 0, i32 6
  %200 = load i32, ptr %13, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = call i32 @i32_load(ptr noundef %199, i64 noundef %201)
  store i32 %202, ptr %13, align 4, !tbaa !9
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 6
  %205 = load i32, ptr %13, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = add i64 %206, 8
  %208 = call i32 @i32_load(ptr noundef %204, i64 noundef %207)
  store i32 %208, ptr %13, align 4, !tbaa !9
  %209 = load i32, ptr %13, align 4, !tbaa !9
  %210 = load ptr, ptr %6, 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 2
  %213 = load i32, ptr %212, align 4, !tbaa !18
  %214 = icmp ult i32 %209, %213
  br i1 %214, label %215, label %238

215:                                              ; preds = %195
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.w2c_hermes, ptr %216, i32 0, i32 7
  %218 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %217, i32 0, i32 0
  %219 = load ptr, ptr %218, align 8, !tbaa !19
  %220 = load i32, ptr %13, align 4, !tbaa !9
  %221 = zext i32 %220 to i64
  %222 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %219, i64 %221
  %223 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %222, i32 0, i32 1
  %224 = load ptr, ptr %223, align 8, !tbaa !20
  %225 = icmp ne ptr %224, null
  br i1 %225, label %226, label %238

226:                                              ; preds = %215
  %227 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !5
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.w2c_hermes, ptr %228, i32 0, i32 7
  %230 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %229, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8, !tbaa !19
  %232 = load i32, ptr %13, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %231, i64 %233
  %235 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %234, i32 0, i32 0
  %236 = load ptr, ptr %235, align 8, !tbaa !22
  %237 = call zeroext i1 @func_types_eq(ptr noundef %227, ptr noundef %236)
  br label %238

238:                                              ; preds = %226, %215, %195
  %239 = phi i1 [ false, %215 ], [ false, %195 ], [ %237, %226 ]
  %240 = xor i1 %239, true
  %241 = xor i1 %240, true
  %242 = zext i1 %241 to i32
  %243 = sext i32 %242 to i64
  %244 = call i64 @llvm.expect.i64(i64 %243, i64 1)
  %245 = icmp ne i64 %244, 0
  br i1 %245, label %248, label %246

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

247:                                              ; No predecessors!
  br label %248

248:                                              ; preds = %247, %238
  %249 = phi i1 [ true, %238 ], [ false, %247 ]
  %250 = zext i1 %249 to i32
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.w2c_hermes, ptr %251, i32 0, i32 7
  %253 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %252, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8, !tbaa !19
  %255 = load i32, ptr %13, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %254, i64 %256
  %258 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %257, i32 0, i32 1
  %259 = load ptr, ptr %258, align 8, !tbaa !20
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.w2c_hermes, ptr %260, i32 0, i32 7
  %262 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %261, i32 0, i32 0
  %263 = load ptr, ptr %262, align 8, !tbaa !19
  %264 = load i32, ptr %13, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  %266 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %263, i64 %265
  %267 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %266, i32 0, i32 2
  %268 = load ptr, ptr %267, align 8, !tbaa !23
  %269 = load i32, ptr %12, align 4, !tbaa !9
  call void %259(ptr noundef %268, i32 noundef %269)
  %270 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %270, ptr %12, align 4, !tbaa !9
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef %271, i32 noundef %272)
  br label %273

273:                                              ; preds = %248, %194, %171
  %274 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %274, ptr %12, align 4, !tbaa !9
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.w2c_hermes, ptr %275, i32 0, i32 6
  %277 = load i32, ptr %12, align 4, !tbaa !9
  %278 = zext i32 %277 to i64
  %279 = add i64 %278, 60
  %280 = call i32 @i32_load(ptr noundef %276, i64 noundef %279)
  store i32 %280, ptr %12, align 4, !tbaa !9
  %281 = load i32, ptr %12, align 4, !tbaa !9
  %282 = icmp ne i32 %281, 0
  %283 = xor i1 %282, true
  %284 = zext i1 %283 to i32
  store i32 %284, ptr %12, align 4, !tbaa !9
  %285 = load i32, ptr %12, align 4, !tbaa !9
  %286 = icmp ne i32 %285, 0
  br i1 %286, label %287, label %315

287:                                              ; preds = %273
  %288 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %288, ptr %12, align 4, !tbaa !9
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.w2c_hermes, ptr %289, i32 0, i32 6
  %291 = load i32, ptr %12, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = add i64 %292, 48
  %294 = call i32 @i32_load(ptr noundef %290, i64 noundef %293)
  store i32 %294, ptr %12, align 4, !tbaa !9
  %295 = load i32, ptr %12, align 4, !tbaa !9
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %298

297:                                              ; preds = %287
  br label %333

298:                                              ; preds = %287
  %299 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %299, ptr %12, align 4, !tbaa !9
  %300 = load ptr, ptr %6, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.w2c_hermes, ptr %300, i32 0, i32 6
  %302 = load i32, ptr %12, align 4, !tbaa !9
  %303 = zext i32 %302 to i64
  %304 = add i64 %303, 44
  %305 = call i32 @i32_load(ptr noundef %301, i64 noundef %304)
  store i32 %305, ptr %12, align 4, !tbaa !9
  %306 = load ptr, ptr %6, align 8, !tbaa !5
  %307 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %306, i32 noundef %307)
  %308 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %308, ptr %12, align 4, !tbaa !9
  store i32 112, ptr %13, align 4, !tbaa !9
  %309 = load i32, ptr %13, align 4, !tbaa !9
  %310 = load i32, ptr %12, align 4, !tbaa !9
  %311 = add i32 %310, %309
  store i32 %311, ptr %12, align 4, !tbaa !9
  %312 = load i32, ptr %12, align 4, !tbaa !9
  %313 = load ptr, ptr %6, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.w2c_hermes, ptr %313, i32 0, i32 3
  store i32 %312, ptr %314, align 8, !tbaa !11
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %351

315:                                              ; preds = %273
  store i32 0, ptr %12, align 4, !tbaa !9
  %316 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %316, ptr %10, align 4, !tbaa !9
  store i32 169455, ptr %13, align 4, !tbaa !9
  %317 = load i32, ptr %13, align 4, !tbaa !9
  %318 = load i32, ptr %12, align 4, !tbaa !9
  %319 = add i32 %318, %317
  store i32 %319, ptr %12, align 4, !tbaa !9
  %320 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %320, ptr %13, align 4, !tbaa !9
  store i32 84947, ptr %14, align 4, !tbaa !9
  %321 = load i32, ptr %14, align 4, !tbaa !9
  %322 = load i32, ptr %13, align 4, !tbaa !9
  %323 = add i32 %322, %321
  store i32 %323, ptr %13, align 4, !tbaa !9
  store i32 118, ptr %14, align 4, !tbaa !9
  %324 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %324, ptr %15, align 4, !tbaa !9
  store i32 99406, ptr %16, align 4, !tbaa !9
  %325 = load i32, ptr %16, align 4, !tbaa !9
  %326 = load i32, ptr %15, align 4, !tbaa !9
  %327 = add i32 %326, %325
  store i32 %327, ptr %15, align 4, !tbaa !9
  %328 = load ptr, ptr %6, align 8, !tbaa !5
  %329 = load i32, ptr %12, align 4, !tbaa !9
  %330 = load i32, ptr %13, align 4, !tbaa !9
  %331 = load i32, ptr %14, align 4, !tbaa !9
  %332 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %328, i32 noundef %329, i32 noundef %330, i32 noundef %331, i32 noundef %332)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

333:                                              ; preds = %297
  store i32 0, ptr %12, align 4, !tbaa !9
  %334 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %334, ptr %10, align 4, !tbaa !9
  store i32 205138, ptr %13, align 4, !tbaa !9
  %335 = load i32, ptr %13, align 4, !tbaa !9
  %336 = load i32, ptr %12, align 4, !tbaa !9
  %337 = add i32 %336, %335
  store i32 %337, ptr %12, align 4, !tbaa !9
  %338 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %338, ptr %13, align 4, !tbaa !9
  store i32 84947, ptr %14, align 4, !tbaa !9
  %339 = load i32, ptr %14, align 4, !tbaa !9
  %340 = load i32, ptr %13, align 4, !tbaa !9
  %341 = add i32 %340, %339
  store i32 %341, ptr %13, align 4, !tbaa !9
  store i32 119, ptr %14, align 4, !tbaa !9
  %342 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %342, ptr %15, align 4, !tbaa !9
  store i32 99406, ptr %16, align 4, !tbaa !9
  %343 = load i32, ptr %16, align 4, !tbaa !9
  %344 = load i32, ptr %15, align 4, !tbaa !9
  %345 = add i32 %344, %343
  store i32 %345, ptr %15, align 4, !tbaa !9
  %346 = load ptr, ptr %6, align 8, !tbaa !5
  %347 = load i32, ptr %12, align 4, !tbaa !9
  %348 = load i32, ptr %13, align 4, !tbaa !9
  %349 = load i32, ptr %14, align 4, !tbaa !9
  %350 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %346, i32 noundef %347, i32 noundef %348, i32 noundef %349, i32 noundef %350)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

351:                                              ; preds = %298
  %352 = load i32, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret i32 %352
}

declare i32 @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AESTreeIRGen0x28hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Chermes0x3A0x3AESTree0x3A0x3AProgramNode0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3AESTree0x3A0x3AProgramNode0x2A0x3E0x3E0x20const0x260x2C0x20hermes0x3A0x3AModule0x2A0x2C0x20hermes0x3A0x3AScopeChain0x20const0x260x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AdoIt0x280x29(ptr noundef, i32 noundef) #4

declare i32 @w2c_hermes_llvh0x3A0x3AisCurrentDebugType0x28char0x20const0x2A0x29(ptr noundef, i32 noundef) #4

declare i32 @w2c_hermes_llvh0x3A0x3Adbgs0x280x29(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { "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 #5 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!17 = !{!14, !14, i64 0}
!18 = !{!12, !10, i64 92}
!19 = !{!12, !6, i64 80}
!20 = !{!21, !6, i64 8}
!21 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!21, !6, i64 0}
!23 = !{!21, !6, i64 16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@w2c_hermes_t3 = external local_unnamed_addr constant ptr, align 8

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

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

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

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

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3AgenerateIRFromESTree0x28hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20hermes0x3A0x3AModule0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Chermes0x3A0x3AESTree0x3A0x3AProgramNode0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3AESTree0x3A0x3AProgramNode0x2A0x3E0x3E0x20const0x260x2C0x20hermes0x3A0x3AScopeChain0x20const0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -112
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = add i32 %7, -108
  %10 = tail call i32 @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AESTreeIRGen0x28hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Chermes0x3A0x3AESTree0x3A0x3AProgramNode0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3AESTree0x3A0x3AProgramNode0x2A0x3E0x3E0x20const0x260x2C0x20hermes0x3A0x3AModule0x2A0x2C0x20hermes0x3A0x3AScopeChain0x20const0x260x29(ptr noundef %0, i32 noundef %9, i32 noundef %1, i32 noundef %3, i32 noundef %2, i32 noundef %4) #4
  tail call void @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AdoIt0x280x29(ptr noundef %0, i32 noundef %10) #4
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = tail call i32 @i32_load8_u(ptr noundef nonnull %11, i64 noundef 292576)
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %33, label %13

13:                                               ; preds = %5
  %14 = tail call i32 @w2c_hermes_llvh0x3A0x3AisCurrentDebugType0x28char0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef 71071) #4
  %.not161 = icmp eq i32 %14, 0
  br i1 %.not161, label %33, label %15

15:                                               ; preds = %13
  %16 = tail call i32 @w2c_hermes_llvh0x3A0x3Adbgs0x280x29(ptr noundef nonnull %0) #4
  %17 = zext i32 %16 to i64
  %18 = add nuw nsw i64 %17, 8
  %19 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %18)
  %20 = add nuw nsw i64 %17, 12
  %21 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %20)
  %22 = sub i32 %19, %21
  %23 = icmp ult i32 %22, 16
  br i1 %23, label %24, label %26

24:                                               ; preds = %15
  %25 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %16, i32 noundef 212563, i32 noundef 16) #4
  br label %33

26:                                               ; preds = %15
  %27 = tail call i64 @i64_load(ptr noundef nonnull %11, i64 noundef 212563)
  %28 = zext i32 %21 to i64
  tail call void @i64_store(ptr noundef nonnull %11, i64 noundef %28, i64 noundef %27)
  %29 = tail call i64 @i64_load(ptr noundef nonnull %11, i64 noundef 212571)
  %30 = add nuw nsw i64 %28, 8
  tail call void @i64_store(ptr noundef nonnull %11, i64 noundef %30, i64 noundef %29)
  %31 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %20)
  %32 = add i32 %31, 16
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %20, i32 noundef %32)
  br label %33

33:                                               ; preds = %13, %5, %26, %24
  %34 = zext i32 %10 to i64
  %35 = add nuw nsw i64 %34, 92
  %36 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %35)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %36) #4
  %37 = add nuw nsw i64 %34, 68
  %38 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %37)
  %.not162 = icmp eq i32 %38, 0
  br i1 %.not162, label %70, label %39

39:                                               ; preds = %33
  %40 = zext i32 %38 to i64
  %41 = add nuw nsw i64 %40, 4
  %42 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %41)
  %43 = add i32 %42, -1
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %41, i32 noundef %43)
  %.not163 = icmp eq i32 %42, 0
  br i1 %.not163, label %44, label %70

44:                                               ; preds = %39
  %45 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %40)
  %46 = zext i32 %45 to i64
  %47 = add nuw nsw i64 %46, 8
  %48 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %47)
  %49 = getelementptr inbounds i8, ptr %0, i64 80
  %50 = getelementptr inbounds i8, ptr %0, i64 92
  %51 = load i32, ptr %50, align 4, !tbaa !15
  %52 = icmp ult i32 %48, %51
  br i1 %52, label %53, label %.critedge, !prof !16

53:                                               ; preds = %44
  %54 = load ptr, ptr %49, align 8, !tbaa !17
  %55 = zext i32 %48 to i64
  %56 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %54, i64 %55
  %57 = getelementptr inbounds i8, ptr %56, i64 8
  %58 = load ptr, ptr %57, align 8, !tbaa !18
  %.not164 = icmp eq ptr %58, null
  br i1 %.not164, label %.critedge, label %59, !prof !20

59:                                               ; preds = %53
  %60 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !21
  %61 = load ptr, ptr %56, align 8, !tbaa !22
  %62 = tail call zeroext i1 @func_types_eq(ptr noundef %60, ptr noundef %61)
  br i1 %62, label %63, label %.critedge, !prof !16

.critedge:                                        ; preds = %53, %44, %59
  tail call void @wasm_rt_trap(i32 noundef 6) #5
  unreachable

63:                                               ; preds = %59
  %64 = load ptr, ptr %49, align 8, !tbaa !17
  %65 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %64, i64 %55
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  %68 = getelementptr inbounds i8, ptr %65, i64 16
  %69 = load ptr, ptr %68, align 8, !tbaa !23
  tail call void %67(ptr noundef %69, i32 noundef %38) #4
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef nonnull %0, i32 noundef %38) #4
  br label %70

70:                                               ; preds = %39, %33, %63
  %71 = add nuw nsw i64 %34, 60
  %72 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %71)
  %.not165 = icmp eq i32 %72, 0
  br i1 %.not165, label %73, label %79

73:                                               ; preds = %70
  %74 = add nuw nsw i64 %34, 48
  %75 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %74)
  %.not166 = icmp eq i32 %75, 0
  br i1 %.not166, label %76, label %80

76:                                               ; preds = %73
  %77 = add nuw nsw i64 %34, 44
  %78 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %77)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %78) #4
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret i32 0

79:                                               ; preds = %70
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 169455, i32 noundef 84947, i32 noundef 118, i32 noundef 99406) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

80:                                               ; preds = %73
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 205138, i32 noundef 84947, i32 noundef 119, i32 noundef 99406) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

declare i32 @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AESTreeIRGen0x28hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Chermes0x3A0x3AESTree0x3A0x3AProgramNode0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3AESTree0x3A0x3AProgramNode0x2A0x3E0x3E0x20const0x260x2C0x20hermes0x3A0x3AModule0x2A0x2C0x20hermes0x3A0x3AScopeChain0x20const0x260x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AdoIt0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @w2c_hermes_llvh0x3A0x3AisCurrentDebugType0x28char0x20const0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @w2c_hermes_llvh0x3A0x3Adbgs0x280x29(ptr noundef) local_unnamed_addr #2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}
!15 = !{!6, !10, i64 92}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!17 = !{!6, !7, i64 80}
!18 = !{!19, !7, i64 8}
!19 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!21 = !{!7, !7, i64 0}
!22 = !{!19, !7, i64 0}
!23 = !{!19, !7, i64 16}


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