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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

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

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

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

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

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

68:                                               ; preds = %8
  %69 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %69, ptr %19, align 4, !tbaa !9
  %70 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %70, ptr %20, align 4, !tbaa !9
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %20, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 4
  %76 = call i32 @i32_load(ptr noundef %72, i64 noundef %75)
  store i32 %76, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %77 = load i32, ptr %21, align 4, !tbaa !9
  %78 = load i32, ptr %20, align 4, !tbaa !9
  %79 = add i32 %78, %77
  store i32 %79, ptr %20, align 4, !tbaa !9
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %19, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = add i64 %83, 4
  %85 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %81, i64 noundef %84, i32 noundef %85)
  br label %86

86:                                               ; preds = %68, %8
  %87 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %87, ptr %19, align 4, !tbaa !9
  %88 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %88, ptr %20, align 4, !tbaa !9
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %20, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = call i32 @i32_load(ptr noundef %90, i64 noundef %92)
  store i32 %93, ptr %20, align 4, !tbaa !9
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.w2c_hermes, ptr %94, i32 0, i32 6
  %96 = load i32, ptr %19, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = add i64 %97, 32
  %99 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %95, i64 noundef %98, i32 noundef %99)
  %100 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %100, ptr %19, align 4, !tbaa !9
  %101 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %101, ptr %20, align 4, !tbaa !9
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.w2c_hermes, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %20, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = add i64 %105, 4
  %107 = call i32 @i32_load(ptr noundef %103, i64 noundef %106)
  store i32 %107, ptr %20, align 4, !tbaa !9
  %108 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %108, ptr %17, align 4, !tbaa !9
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %19, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, 36
  %114 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %110, i64 noundef %113, i32 noundef %114)
  %115 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %115, ptr %19, align 4, !tbaa !9
  %116 = load i32, ptr %19, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  %118 = xor i1 %117, true
  %119 = zext i1 %118 to i32
  store i32 %119, ptr %19, align 4, !tbaa !9
  %120 = load i32, ptr %19, align 4, !tbaa !9
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %169

122:                                              ; preds = %86
  %123 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %123, ptr %19, align 4, !tbaa !9
  %124 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %124, ptr %20, align 4, !tbaa !9
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %20, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = add i64 %128, 40
  %130 = call i64 @i64_load(ptr noundef %126, i64 noundef %129)
  store i64 %130, ptr %26, align 8, !tbaa !17
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %19, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 8
  %136 = load i64, ptr %26, align 8, !tbaa !17
  call void @i64_store(ptr noundef %132, i64 noundef %135, i64 noundef %136)
  %137 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %137, ptr %19, align 4, !tbaa !9
  %138 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %138, ptr %20, align 4, !tbaa !9
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.w2c_hermes, ptr %139, i32 0, i32 6
  %141 = load i32, ptr %20, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = add i64 %142, 32
  %144 = call i64 @i64_load(ptr noundef %140, i64 noundef %143)
  store i64 %144, ptr %26, align 8, !tbaa !17
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.w2c_hermes, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %19, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = load i64, ptr %26, align 8, !tbaa !17
  call void @i64_store(ptr noundef %146, i64 noundef %148, i64 noundef %149)
  %150 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %150, ptr %19, align 4, !tbaa !9
  %151 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %151, ptr %20, align 4, !tbaa !9
  %152 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %152, ptr %21, align 4, !tbaa !9
  %153 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %153, ptr %22, align 4, !tbaa !9
  %154 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %154, ptr %23, align 4, !tbaa !9
  store i32 8, ptr %24, align 4, !tbaa !9
  %155 = load i32, ptr %24, align 4, !tbaa !9
  %156 = load i32, ptr %23, align 4, !tbaa !9
  %157 = add i32 %156, %155
  store i32 %157, ptr %23, align 4, !tbaa !9
  %158 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %158, ptr %24, align 4, !tbaa !9
  %159 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %159, ptr %25, align 4, !tbaa !9
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = load i32, ptr %19, align 4, !tbaa !9
  %162 = load i32, ptr %20, align 4, !tbaa !9
  %163 = load i32, ptr %21, align 4, !tbaa !9
  %164 = load i32, ptr %22, align 4, !tbaa !9
  %165 = load i32, ptr %23, align 4, !tbaa !9
  %166 = load i32, ptr %24, align 4, !tbaa !9
  %167 = load i32, ptr %25, align 4, !tbaa !9
  %168 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHadesGC0x28hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3AGCCallbacks0x260x2C0x20hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AGCConfig0x20const0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Ashared_ptr0x3Chermes0x3A0x3Avm0x3A0x3ACrashManager0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Ashared_ptr0x3Chermes0x3A0x3Avm0x3A0x3AStorageProvider0x3E0x2C0x20unsigned0x20int0x29(ptr noundef %160, i32 noundef %161, i32 noundef %162, i32 noundef %163, i32 noundef %164, i32 noundef %165, i32 noundef %166, i32 noundef %167)
  store i32 %168, ptr %19, align 4, !tbaa !9
  br label %337

169:                                              ; preds = %86
  %170 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %170, ptr %19, align 4, !tbaa !9
  %171 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %171, ptr %20, align 4, !tbaa !9
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.w2c_hermes, ptr %172, i32 0, i32 6
  %174 = load i32, ptr %20, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = add i64 %175, 4
  %177 = call i32 @i32_load(ptr noundef %173, i64 noundef %176)
  store i32 %177, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %178 = load i32, ptr %21, align 4, !tbaa !9
  %179 = load i32, ptr %20, align 4, !tbaa !9
  %180 = add i32 %179, %178
  store i32 %180, ptr %20, align 4, !tbaa !9
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.w2c_hermes, ptr %181, i32 0, i32 6
  %183 = load i32, ptr %19, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = add i64 %184, 4
  %186 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %182, i64 noundef %185, i32 noundef %186)
  %187 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %187, ptr %19, align 4, !tbaa !9
  %188 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %188, ptr %20, align 4, !tbaa !9
  %189 = load ptr, ptr %9, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.w2c_hermes, ptr %189, i32 0, i32 6
  %191 = load i32, ptr %20, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = add i64 %192, 40
  %194 = call i64 @i64_load(ptr noundef %190, i64 noundef %193)
  store i64 %194, ptr %26, align 8, !tbaa !17
  %195 = load ptr, ptr %9, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.w2c_hermes, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %19, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = add i64 %198, 24
  %200 = load i64, ptr %26, align 8, !tbaa !17
  call void @i64_store(ptr noundef %196, i64 noundef %199, i64 noundef %200)
  %201 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %201, ptr %19, align 4, !tbaa !9
  %202 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %202, ptr %20, align 4, !tbaa !9
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 6
  %205 = load i32, ptr %20, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = add i64 %206, 32
  %208 = call i64 @i64_load(ptr noundef %204, i64 noundef %207)
  store i64 %208, ptr %26, align 8, !tbaa !17
  %209 = load ptr, ptr %9, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.w2c_hermes, ptr %209, i32 0, i32 6
  %211 = load i32, ptr %19, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = add i64 %212, 16
  %214 = load i64, ptr %26, align 8, !tbaa !17
  call void @i64_store(ptr noundef %210, i64 noundef %213, i64 noundef %214)
  %215 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %215, ptr %19, align 4, !tbaa !9
  %216 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %216, ptr %20, align 4, !tbaa !9
  %217 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %217, ptr %21, align 4, !tbaa !9
  %218 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %218, ptr %22, align 4, !tbaa !9
  %219 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %219, ptr %23, align 4, !tbaa !9
  store i32 24, ptr %24, align 4, !tbaa !9
  %220 = load i32, ptr %24, align 4, !tbaa !9
  %221 = load i32, ptr %23, align 4, !tbaa !9
  %222 = add i32 %221, %220
  store i32 %222, ptr %23, align 4, !tbaa !9
  %223 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %223, ptr %24, align 4, !tbaa !9
  store i32 16, ptr %25, align 4, !tbaa !9
  %224 = load i32, ptr %25, align 4, !tbaa !9
  %225 = load i32, ptr %24, align 4, !tbaa !9
  %226 = add i32 %225, %224
  store i32 %226, ptr %24, align 4, !tbaa !9
  %227 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %227, ptr %25, align 4, !tbaa !9
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = load i32, ptr %19, align 4, !tbaa !9
  %230 = load i32, ptr %20, align 4, !tbaa !9
  %231 = load i32, ptr %21, align 4, !tbaa !9
  %232 = load i32, ptr %22, align 4, !tbaa !9
  %233 = load i32, ptr %23, align 4, !tbaa !9
  %234 = load i32, ptr %24, align 4, !tbaa !9
  %235 = load i32, ptr %25, align 4, !tbaa !9
  %236 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHadesGC0x28hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3AGCCallbacks0x260x2C0x20hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AGCConfig0x20const0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Ashared_ptr0x3Chermes0x3A0x3Avm0x3A0x3ACrashManager0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Ashared_ptr0x3Chermes0x3A0x3Avm0x3A0x3AStorageProvider0x3E0x2C0x20unsigned0x20int0x29(ptr noundef %228, i32 noundef %229, i32 noundef %230, i32 noundef %231, i32 noundef %232, i32 noundef %233, i32 noundef %234, i32 noundef %235)
  store i32 %236, ptr %19, align 4, !tbaa !9
  %237 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %237, ptr %19, align 4, !tbaa !9
  %238 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %238, ptr %20, align 4, !tbaa !9
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.w2c_hermes, ptr %239, i32 0, i32 6
  %241 = load i32, ptr %20, align 4, !tbaa !9
  %242 = zext i32 %241 to i64
  %243 = add i64 %242, 4
  %244 = call i32 @i32_load(ptr noundef %240, i64 noundef %243)
  store i32 %244, ptr %20, align 4, !tbaa !9
  %245 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %245, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %246 = load i32, ptr %21, align 4, !tbaa !9
  %247 = load i32, ptr %20, align 4, !tbaa !9
  %248 = sub i32 %247, %246
  store i32 %248, ptr %20, align 4, !tbaa !9
  %249 = load ptr, ptr %9, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.w2c_hermes, ptr %249, i32 0, i32 6
  %251 = load i32, ptr %19, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = add i64 %252, 4
  %254 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %250, i64 noundef %253, i32 noundef %254)
  %255 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %255, ptr %19, align 4, !tbaa !9
  %256 = load i32, ptr %19, align 4, !tbaa !9
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %259

258:                                              ; preds = %169
  br label %337

259:                                              ; preds = %169
  %260 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %260, ptr %19, align 4, !tbaa !9
  %261 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %261, ptr %20, align 4, !tbaa !9
  %262 = load ptr, ptr %9, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.w2c_hermes, ptr %262, i32 0, i32 6
  %264 = load i32, ptr %20, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  %266 = call i32 @i32_load(ptr noundef %263, i64 noundef %265)
  store i32 %266, ptr %20, align 4, !tbaa !9
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.w2c_hermes, ptr %267, i32 0, i32 6
  %269 = load i32, ptr %20, align 4, !tbaa !9
  %270 = zext i32 %269 to i64
  %271 = add i64 %270, 8
  %272 = call i32 @i32_load(ptr noundef %268, i64 noundef %271)
  store i32 %272, ptr %20, align 4, !tbaa !9
  %273 = load i32, ptr %20, align 4, !tbaa !9
  %274 = load ptr, ptr %9, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.w2c_hermes, ptr %274, i32 0, i32 7
  %276 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %275, i32 0, i32 2
  %277 = load i32, ptr %276, align 4, !tbaa !18
  %278 = icmp ult i32 %273, %277
  br i1 %278, label %279, label %302

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

290:                                              ; preds = %279
  %291 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !5
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.w2c_hermes, ptr %292, i32 0, i32 7
  %294 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %293, i32 0, i32 0
  %295 = load ptr, ptr %294, align 8, !tbaa !19
  %296 = load i32, ptr %20, align 4, !tbaa !9
  %297 = zext i32 %296 to i64
  %298 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %295, i64 %297
  %299 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %298, i32 0, i32 0
  %300 = load ptr, ptr %299, align 8, !tbaa !22
  %301 = call zeroext i1 @func_types_eq(ptr noundef %291, ptr noundef %300)
  br label %302

302:                                              ; preds = %290, %279, %259
  %303 = phi i1 [ false, %279 ], [ false, %259 ], [ %301, %290 ]
  %304 = xor i1 %303, true
  %305 = xor i1 %304, true
  %306 = zext i1 %305 to i32
  %307 = sext i32 %306 to i64
  %308 = call i64 @llvm.expect.i64(i64 %307, i64 1)
  %309 = icmp ne i64 %308, 0
  br i1 %309, label %312, label %310

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

311:                                              ; No predecessors!
  br label %312

312:                                              ; preds = %311, %302
  %313 = phi i1 [ true, %302 ], [ false, %311 ]
  %314 = zext i1 %313 to i32
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.w2c_hermes, ptr %315, i32 0, i32 7
  %317 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %316, i32 0, i32 0
  %318 = load ptr, ptr %317, align 8, !tbaa !19
  %319 = load i32, ptr %20, align 4, !tbaa !9
  %320 = zext i32 %319 to i64
  %321 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %318, i64 %320
  %322 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %321, i32 0, i32 1
  %323 = load ptr, ptr %322, align 8, !tbaa !20
  %324 = load ptr, ptr %9, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.w2c_hermes, ptr %324, i32 0, i32 7
  %326 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %325, i32 0, i32 0
  %327 = load ptr, ptr %326, align 8, !tbaa !19
  %328 = load i32, ptr %20, align 4, !tbaa !9
  %329 = zext i32 %328 to i64
  %330 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %327, i64 %329
  %331 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %330, i32 0, i32 2
  %332 = load ptr, ptr %331, align 8, !tbaa !23
  %333 = load i32, ptr %19, align 4, !tbaa !9
  call void %323(ptr noundef %332, i32 noundef %333)
  %334 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %334, ptr %19, align 4, !tbaa !9
  %335 = load ptr, ptr %9, align 8, !tbaa !5
  %336 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef %335, i32 noundef %336)
  br label %337

337:                                              ; preds = %312, %258, %122
  %338 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %338, ptr %19, align 4, !tbaa !9
  %339 = load ptr, ptr %9, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.w2c_hermes, ptr %339, i32 0, i32 6
  %341 = load i32, ptr %19, align 4, !tbaa !9
  %342 = zext i32 %341 to i64
  %343 = add i64 %342, 4
  %344 = call i32 @i32_load(ptr noundef %340, i64 noundef %343)
  store i32 %344, ptr %19, align 4, !tbaa !9
  %345 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %345, ptr %17, align 4, !tbaa !9
  %346 = load i32, ptr %19, align 4, !tbaa !9
  %347 = icmp ne i32 %346, 0
  %348 = xor i1 %347, true
  %349 = zext i1 %348 to i32
  store i32 %349, ptr %19, align 4, !tbaa !9
  %350 = load i32, ptr %19, align 4, !tbaa !9
  %351 = icmp ne i32 %350, 0
  br i1 %351, label %352, label %353

352:                                              ; preds = %337
  br label %454

353:                                              ; preds = %337
  %354 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %354, ptr %19, align 4, !tbaa !9
  %355 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %355, ptr %20, align 4, !tbaa !9
  %356 = load ptr, ptr %9, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.w2c_hermes, ptr %356, i32 0, i32 6
  %358 = load i32, ptr %20, align 4, !tbaa !9
  %359 = zext i32 %358 to i64
  %360 = add i64 %359, 4
  %361 = call i32 @i32_load(ptr noundef %357, i64 noundef %360)
  store i32 %361, ptr %20, align 4, !tbaa !9
  %362 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %362, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %363 = load i32, ptr %21, align 4, !tbaa !9
  %364 = load i32, ptr %20, align 4, !tbaa !9
  %365 = sub i32 %364, %363
  store i32 %365, ptr %20, align 4, !tbaa !9
  %366 = load ptr, ptr %9, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.w2c_hermes, ptr %366, i32 0, i32 6
  %368 = load i32, ptr %19, align 4, !tbaa !9
  %369 = zext i32 %368 to i64
  %370 = add i64 %369, 4
  %371 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %367, i64 noundef %370, i32 noundef %371)
  %372 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %372, ptr %19, align 4, !tbaa !9
  %373 = load i32, ptr %19, align 4, !tbaa !9
  %374 = icmp ne i32 %373, 0
  br i1 %374, label %375, label %376

375:                                              ; preds = %353
  br label %454

376:                                              ; preds = %353
  %377 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %377, ptr %19, align 4, !tbaa !9
  %378 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %378, ptr %20, align 4, !tbaa !9
  %379 = load ptr, ptr %9, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.w2c_hermes, ptr %379, i32 0, i32 6
  %381 = load i32, ptr %20, align 4, !tbaa !9
  %382 = zext i32 %381 to i64
  %383 = call i32 @i32_load(ptr noundef %380, i64 noundef %382)
  store i32 %383, ptr %20, align 4, !tbaa !9
  %384 = load ptr, ptr %9, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.w2c_hermes, ptr %384, i32 0, i32 6
  %386 = load i32, ptr %20, align 4, !tbaa !9
  %387 = zext i32 %386 to i64
  %388 = add i64 %387, 8
  %389 = call i32 @i32_load(ptr noundef %385, i64 noundef %388)
  store i32 %389, ptr %20, align 4, !tbaa !9
  %390 = load i32, ptr %20, align 4, !tbaa !9
  %391 = load ptr, ptr %9, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.w2c_hermes, ptr %391, i32 0, i32 7
  %393 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %392, i32 0, i32 2
  %394 = load i32, ptr %393, align 4, !tbaa !18
  %395 = icmp ult i32 %390, %394
  br i1 %395, label %396, label %419

396:                                              ; preds = %376
  %397 = load ptr, ptr %9, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.w2c_hermes, ptr %397, i32 0, i32 7
  %399 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %398, i32 0, i32 0
  %400 = load ptr, ptr %399, align 8, !tbaa !19
  %401 = load i32, ptr %20, align 4, !tbaa !9
  %402 = zext i32 %401 to i64
  %403 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %400, i64 %402
  %404 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %403, i32 0, i32 1
  %405 = load ptr, ptr %404, align 8, !tbaa !20
  %406 = icmp ne ptr %405, null
  br i1 %406, label %407, label %419

407:                                              ; preds = %396
  %408 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !5
  %409 = load ptr, ptr %9, 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 !19
  %413 = load i32, ptr %20, 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 0
  %417 = load ptr, ptr %416, align 8, !tbaa !22
  %418 = call zeroext i1 @func_types_eq(ptr noundef %408, ptr noundef %417)
  br label %419

419:                                              ; preds = %407, %396, %376
  %420 = phi i1 [ false, %396 ], [ false, %376 ], [ %418, %407 ]
  %421 = xor i1 %420, true
  %422 = xor i1 %421, true
  %423 = zext i1 %422 to i32
  %424 = sext i32 %423 to i64
  %425 = call i64 @llvm.expect.i64(i64 %424, i64 1)
  %426 = icmp ne i64 %425, 0
  br i1 %426, label %429, label %427

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

428:                                              ; No predecessors!
  br label %429

429:                                              ; preds = %428, %419
  %430 = phi i1 [ true, %419 ], [ false, %428 ]
  %431 = zext i1 %430 to i32
  %432 = load ptr, ptr %9, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.w2c_hermes, ptr %432, i32 0, i32 7
  %434 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %433, i32 0, i32 0
  %435 = load ptr, ptr %434, align 8, !tbaa !19
  %436 = load i32, ptr %20, align 4, !tbaa !9
  %437 = zext i32 %436 to i64
  %438 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %435, i64 %437
  %439 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %438, i32 0, i32 1
  %440 = load ptr, ptr %439, align 8, !tbaa !20
  %441 = load ptr, ptr %9, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.w2c_hermes, ptr %441, i32 0, i32 7
  %443 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %442, i32 0, i32 0
  %444 = load ptr, ptr %443, align 8, !tbaa !19
  %445 = load i32, ptr %20, align 4, !tbaa !9
  %446 = zext i32 %445 to i64
  %447 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %444, i64 %446
  %448 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %447, i32 0, i32 2
  %449 = load ptr, ptr %448, align 8, !tbaa !23
  %450 = load i32, ptr %19, align 4, !tbaa !9
  call void %440(ptr noundef %449, i32 noundef %450)
  %451 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %451, ptr %19, align 4, !tbaa !9
  %452 = load ptr, ptr %9, align 8, !tbaa !5
  %453 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef %452, i32 noundef %453)
  br label %454

454:                                              ; preds = %429, %375, %352
  %455 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %455, ptr %19, align 4, !tbaa !9
  store i32 48, ptr %20, align 4, !tbaa !9
  %456 = load i32, ptr %20, align 4, !tbaa !9
  %457 = load i32, ptr %19, align 4, !tbaa !9
  %458 = add i32 %457, %456
  store i32 %458, ptr %19, align 4, !tbaa !9
  %459 = load i32, ptr %19, align 4, !tbaa !9
  %460 = load ptr, ptr %9, align 8, !tbaa !5
  %461 = getelementptr inbounds %struct.w2c_hermes, ptr %460, i32 0, i32 3
  store i32 %459, ptr %461, align 8, !tbaa !11
  %462 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %462, ptr %19, align 4, !tbaa !9
  %463 = load i32, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret i32 %463
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

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

; 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 void @i64_store(ptr noundef, i64 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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCStorage0x3A0x3AGCStorage0x28hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3AGCCallbacks0x260x2C0x20hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AGCConfig0x20const0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Ashared_ptr0x3Chermes0x3A0x3Avm0x3A0x3ACrashManager0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Ashared_ptr0x3Chermes0x3A0x3Avm0x3A0x3AStorageProvider0x3E0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #3 {
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = add i32 %10, -48
  store i32 %11, ptr %9, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = zext i32 %5 to i64
  %14 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %13)
  %15 = zext i32 %11 to i64
  %16 = add nuw nsw i64 %15, 40
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %16, i32 noundef %14)
  %17 = add nuw nsw i64 %13, 4
  %18 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %17)
  %19 = add nuw nsw i64 %15, 44
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %19, i32 noundef %18)
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %25, label %20

20:                                               ; preds = %8
  %21 = zext i32 %18 to i64
  %22 = add nuw nsw i64 %21, 4
  %23 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %22)
  %24 = add i32 %23, 1
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %22, i32 noundef %24)
  br label %25

25:                                               ; preds = %20, %8
  %26 = zext i32 %6 to i64
  %27 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %26)
  %28 = add nuw nsw i64 %15, 32
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %28, i32 noundef %27)
  %29 = add nuw nsw i64 %26, 4
  %30 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %29)
  %31 = add nuw nsw i64 %15, 36
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %31, i32 noundef %30)
  %.not201 = icmp eq i32 %30, 0
  br i1 %.not201, label %32, label %38

32:                                               ; preds = %25
  %33 = tail call i64 @i64_load(ptr noundef nonnull %12, i64 noundef %16)
  %34 = add nuw nsw i64 %15, 8
  tail call void @i64_store(ptr noundef nonnull %12, i64 noundef %34, i64 noundef %33)
  %35 = tail call i64 @i64_load(ptr noundef nonnull %12, i64 noundef %28)
  tail call void @i64_store(ptr noundef nonnull %12, i64 noundef %15, i64 noundef %35)
  %36 = add i32 %10, -40
  %37 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHadesGC0x28hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3AGCCallbacks0x260x2C0x20hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AGCConfig0x20const0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Ashared_ptr0x3Chermes0x3A0x3Avm0x3A0x3ACrashManager0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Ashared_ptr0x3Chermes0x3A0x3Avm0x3A0x3AStorageProvider0x3E0x2C0x20unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %36, i32 noundef %11, i32 noundef %7)
  br label %78

38:                                               ; preds = %25
  %39 = zext i32 %30 to i64
  %40 = add nuw nsw i64 %39, 4
  %41 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %40)
  %42 = add i32 %41, 1
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %40, i32 noundef %42)
  %43 = tail call i64 @i64_load(ptr noundef nonnull %12, i64 noundef %16)
  %44 = add nuw nsw i64 %15, 24
  tail call void @i64_store(ptr noundef nonnull %12, i64 noundef %44, i64 noundef %43)
  %45 = tail call i64 @i64_load(ptr noundef nonnull %12, i64 noundef %28)
  %46 = add nuw nsw i64 %15, 16
  tail call void @i64_store(ptr noundef nonnull %12, i64 noundef %46, i64 noundef %45)
  %47 = add i32 %10, -24
  %48 = add i32 %10, -32
  %49 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHadesGC0x28hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3AGCCallbacks0x260x2C0x20hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AGCConfig0x20const0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Ashared_ptr0x3Chermes0x3A0x3Avm0x3A0x3ACrashManager0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Ashared_ptr0x3Chermes0x3A0x3Avm0x3A0x3AStorageProvider0x3E0x2C0x20unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %47, i32 noundef %48, i32 noundef %7)
  %50 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %40)
  %51 = add i32 %50, -1
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %40, i32 noundef %51)
  %.not202 = icmp eq i32 %50, 0
  br i1 %.not202, label %52, label %78

52:                                               ; preds = %38
  %53 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %39)
  %54 = zext i32 %53 to i64
  %55 = add nuw nsw i64 %54, 8
  %56 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %55)
  %57 = getelementptr inbounds i8, ptr %0, i64 80
  %58 = getelementptr inbounds i8, ptr %0, i64 92
  %59 = load i32, ptr %58, align 4, !tbaa !15
  %60 = icmp ult i32 %56, %59
  br i1 %60, label %61, label %.critedge, !prof !16

61:                                               ; preds = %52
  %62 = load ptr, ptr %57, align 8, !tbaa !17
  %63 = zext i32 %56 to i64
  %64 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %62, i64 %63
  %65 = getelementptr inbounds i8, ptr %64, i64 8
  %66 = load ptr, ptr %65, align 8, !tbaa !18
  %.not203 = icmp eq ptr %66, null
  br i1 %.not203, label %.critedge, label %67, !prof !20

67:                                               ; preds = %61
  %68 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !21
  %69 = load ptr, ptr %64, align 8, !tbaa !22
  %70 = tail call zeroext i1 @func_types_eq(ptr noundef %68, ptr noundef %69)
  br i1 %70, label %71, label %.critedge, !prof !16

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

71:                                               ; preds = %67
  %72 = load ptr, ptr %57, align 8, !tbaa !17
  %73 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %72, i64 %63
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !18
  %76 = getelementptr inbounds i8, ptr %73, i64 16
  %77 = load ptr, ptr %76, align 8, !tbaa !23
  tail call void %75(ptr noundef %77, i32 noundef %30) #5
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef nonnull %0, i32 noundef %30) #5
  br label %78

78:                                               ; preds = %38, %71, %32
  %79 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %17)
  %.not204 = icmp eq i32 %79, 0
  br i1 %.not204, label %111, label %80

80:                                               ; preds = %78
  %81 = zext i32 %79 to i64
  %82 = add nuw nsw i64 %81, 4
  %83 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %82)
  %84 = add i32 %83, -1
  tail call void @i32_store(ptr noundef nonnull %12, i64 noundef %82, i32 noundef %84)
  %.not205 = icmp eq i32 %83, 0
  br i1 %.not205, label %85, label %111

85:                                               ; preds = %80
  %86 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %81)
  %87 = zext i32 %86 to i64
  %88 = add nuw nsw i64 %87, 8
  %89 = tail call i32 @i32_load(ptr noundef nonnull %12, i64 noundef %88)
  %90 = getelementptr inbounds i8, ptr %0, i64 80
  %91 = getelementptr inbounds i8, ptr %0, i64 92
  %92 = load i32, ptr %91, align 4, !tbaa !15
  %93 = icmp ult i32 %89, %92
  br i1 %93, label %94, label %.critedge208, !prof !16

94:                                               ; preds = %85
  %95 = load ptr, ptr %90, align 8, !tbaa !17
  %96 = zext i32 %89 to i64
  %97 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %95, i64 %96
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = load ptr, ptr %98, align 8, !tbaa !18
  %.not206 = icmp eq ptr %99, null
  br i1 %.not206, label %.critedge208, label %100, !prof !20

100:                                              ; preds = %94
  %101 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !21
  %102 = load ptr, ptr %97, align 8, !tbaa !22
  %103 = tail call zeroext i1 @func_types_eq(ptr noundef %101, ptr noundef %102)
  br i1 %103, label %104, label %.critedge208, !prof !16

.critedge208:                                     ; preds = %94, %85, %100
  tail call void @wasm_rt_trap(i32 noundef 6) #4
  unreachable

104:                                              ; preds = %100
  %105 = load ptr, ptr %90, align 8, !tbaa !17
  %106 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %105, i64 %96
  %107 = getelementptr inbounds i8, ptr %106, i64 8
  %108 = load ptr, ptr %107, align 8, !tbaa !18
  %109 = getelementptr inbounds i8, ptr %106, i64 16
  %110 = load ptr, ptr %109, align 8, !tbaa !23
  tail call void %108(ptr noundef %110, i32 noundef %79) #5
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef nonnull %0, i32 noundef %79) #5
  br label %111

111:                                              ; preds = %80, %78, %104
  store i32 %10, ptr %9, align 8, !tbaa !5
  ret i32 %1
}

attributes #0 = { 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 #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 = { "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 = { 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 = !{!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