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

; 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_t9 = 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 void @i32_store(ptr noundef, i64 noundef, i32 noundef) #1

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

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

; 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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_llvh0x3A0x3AFoldingSetBase0x3A0x3AFindNodeOrInsertPos0x28llvh0x3A0x3AFoldingSetNodeID0x20const0x260x2C0x20void0x2A0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #5 {
  %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 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 i64, 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 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  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 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !11
  store i32 %24, ptr %15, align 4, !tbaa !9
  store i32 144, ptr %16, align 4, !tbaa !9
  %25 = load i32, ptr %16, align 4, !tbaa !9
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = sub i32 %26, %25
  store i32 %27, ptr %15, align 4, !tbaa !9
  %28 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %28, ptr %10, align 4, !tbaa !9
  %29 = load i32, ptr %15, align 4, !tbaa !9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 3
  store i32 %29, ptr %31, align 8, !tbaa !11
  %32 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %32, ptr %15, align 4, !tbaa !9
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.w2c_hermes, ptr %33, i32 0, i32 6
  %35 = load i32, ptr %15, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = call i32 @i32_load(ptr noundef %34, i64 noundef %36)
  store i32 %37, ptr %15, align 4, !tbaa !9
  %38 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %38, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %39, ptr %16, align 4, !tbaa !9
  %40 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %40, ptr %17, align 4, !tbaa !9
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.w2c_hermes, ptr %41, i32 0, i32 6
  %43 = load i32, ptr %17, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = add i64 %44, 4
  %46 = call i32 @i32_load(ptr noundef %42, i64 noundef %45)
  store i32 %46, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %47 = load i32, ptr %18, align 4, !tbaa !9
  %48 = and i32 %47, 31
  %49 = load i32, ptr %17, align 4, !tbaa !9
  %50 = shl i32 %49, %48
  store i32 %50, ptr %17, align 4, !tbaa !9
  %51 = load i32, ptr %17, align 4, !tbaa !9
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = add i32 %52, %51
  store i32 %53, ptr %16, align 4, !tbaa !9
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = load i32, ptr %15, align 4, !tbaa !9
  %56 = load i32, ptr %16, align 4, !tbaa !9
  %57 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Aenable_if0x3Cis_hashable_data0x3Cunsigned0x20int0x20const0x3E0x3A0x3Avalue0x2C0x20llvh0x3A0x3Ahash_code0x3E0x3A0x3Atype0x20llvh0x3A0x3Ahashing0x3A0x3Adetail0x3A0x3Ahash_combine_range_impl0x3Cunsigned0x20int0x20const0x3E0x28unsigned0x20int0x20const0x2A0x2C0x20unsigned0x20int0x20const0x2A0x29(ptr noundef %54, i32 noundef %55, i32 noundef %56)
  store i32 %57, ptr %15, align 4, !tbaa !9
  %58 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %58, ptr %11, align 4, !tbaa !9
  %59 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %59, ptr %15, align 4, !tbaa !9
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = add i64 %63, 4
  %65 = call i32 @i32_load(ptr noundef %61, i64 noundef %64)
  store i32 %65, ptr %15, align 4, !tbaa !9
  %66 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %66, ptr %16, align 4, !tbaa !9
  %67 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %67, ptr %17, align 4, !tbaa !9
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %17, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = add i64 %71, 8
  %73 = call i32 @i32_load(ptr noundef %69, i64 noundef %72)
  store i32 %73, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %74 = load i32, ptr %18, align 4, !tbaa !9
  %75 = load i32, ptr %17, align 4, !tbaa !9
  %76 = sub i32 %75, %74
  store i32 %76, ptr %17, align 4, !tbaa !9
  %77 = load i32, ptr %17, align 4, !tbaa !9
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = and i32 %78, %77
  store i32 %79, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %80 = load i32, ptr %17, align 4, !tbaa !9
  %81 = and i32 %80, 31
  %82 = load i32, ptr %16, align 4, !tbaa !9
  %83 = shl i32 %82, %81
  store i32 %83, ptr %16, align 4, !tbaa !9
  %84 = load i32, ptr %16, align 4, !tbaa !9
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = add i32 %85, %84
  store i32 %86, ptr %15, align 4, !tbaa !9
  %87 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %87, ptr %13, align 4, !tbaa !9
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.w2c_hermes, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %15, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = call i32 @i32_load(ptr noundef %89, i64 noundef %91)
  store i32 %92, ptr %15, align 4, !tbaa !9
  %93 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %93, ptr %9, align 4, !tbaa !9
  %94 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %94, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %15, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %96, i64 noundef %98, i32 noundef %99)
  %100 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %100, ptr %15, align 4, !tbaa !9
  store i64 137438953472, ptr %21, align 8, !tbaa !17
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.w2c_hermes, ptr %101, i32 0, i32 6
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = add i64 %104, 8
  %106 = load i64, ptr %21, align 8, !tbaa !17
  call void @i64_store(ptr noundef %102, i64 noundef %105, i64 noundef %106)
  %107 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %107, ptr %15, align 4, !tbaa !9
  %108 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %108, ptr %16, align 4, !tbaa !9
  store i32 16, ptr %17, align 4, !tbaa !9
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = add i32 %110, %109
  store i32 %111, ptr %16, align 4, !tbaa !9
  %112 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %112, ptr %14, align 4, !tbaa !9
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.w2c_hermes, ptr %113, i32 0, i32 6
  %115 = load i32, ptr %15, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = add i64 %116, 4
  %118 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %114, i64 noundef %117, i32 noundef %118)
  %119 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %119, ptr %15, align 4, !tbaa !9
  %120 = load i32, ptr %15, align 4, !tbaa !9
  %121 = icmp ne i32 %120, 0
  %122 = xor i1 %121, true
  %123 = zext i1 %122 to i32
  store i32 %123, ptr %15, align 4, !tbaa !9
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %127

126:                                              ; preds = %4
  br label %263

127:                                              ; preds = %4
  %128 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %128, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %129 = load i32, ptr %16, align 4, !tbaa !9
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = and i32 %130, %129
  store i32 %131, ptr %15, align 4, !tbaa !9
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %135

134:                                              ; preds = %127
  br label %263

135:                                              ; preds = %127
  br label %136

136:                                              ; preds = %261, %135
  %137 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %137, ptr %15, align 4, !tbaa !9
  %138 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %138, ptr %16, align 4, !tbaa !9
  %139 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %139, ptr %17, align 4, !tbaa !9
  %140 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %140, ptr %18, align 4, !tbaa !9
  %141 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %141, ptr %19, align 4, !tbaa !9
  store i32 4, ptr %20, align 4, !tbaa !9
  %142 = load i32, ptr %20, align 4, !tbaa !9
  %143 = load i32, ptr %19, align 4, !tbaa !9
  %144 = add i32 %143, %142
  store i32 %144, ptr %19, align 4, !tbaa !9
  %145 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %145, ptr %20, align 4, !tbaa !9
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.w2c_hermes, ptr %146, i32 0, i32 6
  %148 = load i32, ptr %20, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = call i32 @i32_load(ptr noundef %147, i64 noundef %149)
  store i32 %150, ptr %20, align 4, !tbaa !9
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %20, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 8
  %156 = call i32 @i32_load(ptr noundef %152, i64 noundef %155)
  store i32 %156, ptr %20, align 4, !tbaa !9
  %157 = load i32, ptr %20, 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 !18
  %162 = icmp ult i32 %157, %161
  br i1 %162, label %163, label %186

163:                                              ; preds = %136
  %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 !19
  %168 = load i32, ptr %20, 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 !20
  %173 = icmp ne ptr %172, null
  br i1 %173, label %174, label %186

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

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

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

195:                                              ; No predecessors!
  br label %196

196:                                              ; preds = %195, %186
  %197 = phi i1 [ true, %186 ], [ false, %195 ]
  %198 = zext i1 %197 to i32
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.w2c_hermes, ptr %199, i32 0, i32 7
  %201 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %200, i32 0, i32 0
  %202 = load ptr, ptr %201, align 8, !tbaa !19
  %203 = load i32, ptr %20, align 4, !tbaa !9
  %204 = zext i32 %203 to i64
  %205 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %202, i64 %204
  %206 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %205, i32 0, i32 1
  %207 = load ptr, ptr %206, align 8, !tbaa !20
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.w2c_hermes, ptr %208, i32 0, i32 7
  %210 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %209, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8, !tbaa !19
  %212 = load i32, ptr %20, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %211, i64 %213
  %215 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %214, i32 0, i32 2
  %216 = load ptr, ptr %215, align 8, !tbaa !23
  %217 = load i32, ptr %15, align 4, !tbaa !9
  %218 = load i32, ptr %16, align 4, !tbaa !9
  %219 = load i32, ptr %17, align 4, !tbaa !9
  %220 = load i32, ptr %18, align 4, !tbaa !9
  %221 = load i32, ptr %19, align 4, !tbaa !9
  %222 = call i32 %207(ptr noundef %216, i32 noundef %217, i32 noundef %218, i32 noundef %219, i32 noundef %220, i32 noundef %221)
  store i32 %222, ptr %15, align 4, !tbaa !9
  %223 = load i32, ptr %15, align 4, !tbaa !9
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %228

225:                                              ; preds = %196
  %226 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %226, ptr %15, align 4, !tbaa !9
  %227 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %227, ptr %12, align 4, !tbaa !9
  br label %271

228:                                              ; preds = %196
  %229 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %229, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 6
  %232 = load i32, ptr %15, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = add i64 %233, 8
  %235 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %231, i64 noundef %234, i32 noundef %235)
  %236 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %236, ptr %15, align 4, !tbaa !9
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.w2c_hermes, ptr %237, i32 0, i32 6
  %239 = load i32, ptr %15, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = call i32 @i32_load(ptr noundef %238, i64 noundef %240)
  store i32 %241, ptr %15, align 4, !tbaa !9
  %242 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %242, ptr %9, align 4, !tbaa !9
  %243 = load i32, ptr %15, align 4, !tbaa !9
  %244 = icmp ne i32 %243, 0
  %245 = xor i1 %244, true
  %246 = zext i1 %245 to i32
  store i32 %246, ptr %15, align 4, !tbaa !9
  %247 = load i32, ptr %15, align 4, !tbaa !9
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %249, label %250

249:                                              ; preds = %228
  br label %263

250:                                              ; preds = %228
  %251 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %251, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %252 = load i32, ptr %16, align 4, !tbaa !9
  %253 = load i32, ptr %15, align 4, !tbaa !9
  %254 = and i32 %253, %252
  store i32 %254, ptr %15, align 4, !tbaa !9
  %255 = load i32, ptr %15, align 4, !tbaa !9
  %256 = icmp ne i32 %255, 0
  %257 = xor i1 %256, true
  %258 = zext i1 %257 to i32
  store i32 %258, ptr %15, align 4, !tbaa !9
  %259 = load i32, ptr %15, align 4, !tbaa !9
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %262

261:                                              ; preds = %250
  br label %136

262:                                              ; preds = %250
  br label %263

263:                                              ; preds = %262, %249, %134, %126
  %264 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %264, ptr %15, align 4, !tbaa !9
  %265 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %265, ptr %16, align 4, !tbaa !9
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.w2c_hermes, ptr %266, i32 0, i32 6
  %268 = load i32, ptr %15, align 4, !tbaa !9
  %269 = zext i32 %268 to i64
  %270 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %267, i64 noundef %269, i32 noundef %270)
  br label %271

271:                                              ; preds = %263, %225
  %272 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %272, ptr %15, align 4, !tbaa !9
  %273 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %273, ptr %16, align 4, !tbaa !9
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.w2c_hermes, ptr %274, i32 0, i32 6
  %276 = load i32, ptr %16, align 4, !tbaa !9
  %277 = zext i32 %276 to i64
  %278 = add i64 %277, 4
  %279 = call i32 @i32_load(ptr noundef %275, i64 noundef %278)
  store i32 %279, ptr %16, align 4, !tbaa !9
  %280 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %280, ptr %9, align 4, !tbaa !9
  %281 = load i32, ptr %15, align 4, !tbaa !9
  %282 = load i32, ptr %16, align 4, !tbaa !9
  %283 = icmp ne i32 %281, %282
  %284 = zext i1 %283 to i32
  store i32 %284, ptr %15, align 4, !tbaa !9
  %285 = load i32, ptr %15, align 4, !tbaa !9
  %286 = icmp ne i32 %285, 0
  br i1 %286, label %287, label %291

287:                                              ; preds = %271
  %288 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %288, ptr %15, align 4, !tbaa !9
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %289, i32 noundef %290)
  br label %291

291:                                              ; preds = %287, %271
  %292 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %292, ptr %15, align 4, !tbaa !9
  store i32 144, ptr %16, align 4, !tbaa !9
  %293 = load i32, ptr %16, align 4, !tbaa !9
  %294 = load i32, ptr %15, align 4, !tbaa !9
  %295 = add i32 %294, %293
  store i32 %295, ptr %15, align 4, !tbaa !9
  %296 = load i32, ptr %15, align 4, !tbaa !9
  %297 = load ptr, ptr %5, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.w2c_hermes, ptr %297, i32 0, i32 3
  store i32 %296, ptr %298, align 8, !tbaa !11
  %299 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %299, ptr %15, align 4, !tbaa !9
  %300 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, 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
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret i32 %300
}

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_t9 = external local_unnamed_addr constant ptr, align 8

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_llvh0x3A0x3AFoldingSetBase0x3A0x3AFindNodeOrInsertPos0x28llvh0x3A0x3AFoldingSetNodeID0x20const0x260x2C0x20void0x2A0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -144
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %2 to i64
  %10 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %9)
  %11 = add nuw nsw i64 %9, 4
  %12 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %11)
  %13 = shl i32 %12, 2
  %14 = add i32 %13, %10
  %15 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Aenable_if0x3Cis_hashable_data0x3Cunsigned0x20int0x20const0x3E0x3A0x3Avalue0x2C0x20llvh0x3A0x3Ahash_code0x3E0x3A0x3Atype0x20llvh0x3A0x3Ahashing0x3A0x3Adetail0x3A0x3Ahash_combine_range_impl0x3Cunsigned0x20int0x20const0x3E0x28unsigned0x20int0x20const0x2A0x2C0x20unsigned0x20int0x20const0x2A0x29(ptr noundef %0, i32 noundef %10, i32 noundef %14) #4
  %16 = zext i32 %1 to i64
  %17 = add nuw nsw i64 %16, 4
  %18 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %17)
  %19 = add nuw nsw i64 %16, 8
  %20 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %19)
  %21 = add i32 %20, 1073741823
  %22 = and i32 %21, %15
  %23 = shl i32 %22, 2
  %24 = add i32 %23, %18
  %25 = zext i32 %24 to i64
  %26 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %25)
  %27 = zext i32 %3 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %27, i32 noundef 0)
  %28 = zext i32 %7 to i64
  %29 = add nuw nsw i64 %28, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %29, i64 noundef 137438953472)
  %30 = add i32 %6, -128
  %31 = add nuw nsw i64 %28, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %31, i32 noundef %30)
  %.not = icmp ne i32 %26, 0
  %32 = and i32 %26, 1
  %.not134 = icmp eq i32 %32, 0
  %or.cond = and i1 %.not, %.not134
  br i1 %or.cond, label %.preheader, label %.loopexit141

.preheader:                                       ; preds = %4
  %33 = add i32 %6, -140
  %34 = getelementptr inbounds i8, ptr %0, i64 80
  %35 = getelementptr inbounds i8, ptr %0, i64 92
  %36 = load ptr, ptr @w2c_hermes_t9, align 8
  br label %37

37:                                               ; preds = %.preheader, %61
  %.0 = phi i32 [ %63, %61 ], [ %26, %.preheader ]
  %38 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %16)
  %39 = zext i32 %38 to i64
  %40 = add nuw nsw i64 %39, 8
  %41 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %40)
  %42 = load i32, ptr %35, align 4, !tbaa !15
  %43 = icmp ult i32 %41, %42
  br i1 %43, label %44, label %.critedge, !prof !16

44:                                               ; preds = %37
  %45 = load ptr, ptr %34, align 8, !tbaa !17
  %46 = zext i32 %41 to i64
  %47 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %45, i64 %46
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !18
  %.not135 = icmp eq ptr %49, null
  br i1 %.not135, label %.critedge, label %50, !prof !20

50:                                               ; preds = %44
  %51 = load ptr, ptr %47, align 8, !tbaa !21
  %52 = tail call zeroext i1 @func_types_eq(ptr noundef %36, ptr noundef %51)
  br i1 %52, label %53, label %.critedge, !prof !16

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

53:                                               ; preds = %50
  %54 = load ptr, ptr %34, align 8, !tbaa !17
  %55 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %54, i64 %46
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = load ptr, ptr %56, align 8, !tbaa !18
  %58 = getelementptr inbounds i8, ptr %55, i64 16
  %59 = load ptr, ptr %58, align 8, !tbaa !22
  %60 = tail call i32 %57(ptr noundef %59, i32 noundef %1, i32 noundef %.0, i32 noundef %2, i32 noundef %15, i32 noundef %33) #4
  %.not136 = icmp eq i32 %60, 0
  br i1 %.not136, label %61, label %.loopexit

61:                                               ; preds = %53
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %29, i32 noundef 0)
  %62 = zext i32 %.0 to i64
  %63 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %62)
  %.not137 = icmp ne i32 %63, 0
  %64 = and i32 %63, 1
  %.not138 = icmp eq i32 %64, 0
  %or.cond140 = and i1 %.not137, %.not138
  br i1 %or.cond140, label %37, label %.loopexit141

.loopexit141:                                     ; preds = %61, %4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %27, i32 noundef %24)
  br label %.loopexit

.loopexit:                                        ; preds = %53, %.loopexit141
  %.0131 = phi i32 [ 0, %.loopexit141 ], [ %.0, %53 ]
  %65 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %31)
  %.not139 = icmp eq i32 %30, %65
  br i1 %.not139, label %67, label %66

66:                                               ; preds = %.loopexit
  tail call void @w2c_hermes_dlfree(ptr noundef %0, i32 noundef %65) #4
  br label %67

67:                                               ; preds = %66, %.loopexit
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret i32 %.0131
}

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass