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

; 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_t0 = 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: 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

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr noundef) #5

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

51:                                               ; preds = %3
  br label %52

52:                                               ; preds = %282, %51
  %53 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %53, ptr %12, align 4, !tbaa !9
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.w2c_hermes, ptr %54, i32 0, i32 6
  %56 = load i32, ptr %12, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = call i32 @i32_load(ptr noundef %55, i64 noundef %57)
  store i32 %58, ptr %12, align 4, !tbaa !9
  %59 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %59, ptr %5, align 4, !tbaa !9
  store i32 -16777216, ptr %13, align 4, !tbaa !9
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = and i32 %61, %60
  store i32 %62, ptr %12, align 4, !tbaa !9
  store i32 33554432, ptr %13, align 4, !tbaa !9
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = load i32, ptr %13, align 4, !tbaa !9
  %65 = icmp eq i32 %63, %64
  %66 = zext i1 %65 to i32
  store i32 %66, ptr %12, align 4, !tbaa !9
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %52
  br label %265

70:                                               ; preds = %52
  %71 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %71, ptr %12, align 4, !tbaa !9
  store i32 -4194304, ptr %13, align 4, !tbaa !9
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = and i32 %73, %72
  store i32 %74, ptr %12, align 4, !tbaa !9
  store i32 16384, ptr %13, align 4, !tbaa !9
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = or i32 %76, %75
  store i32 %77, ptr %12, align 4, !tbaa !9
  %78 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %78, ptr %9, align 4, !tbaa !9
  %79 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %79, ptr %13, align 4, !tbaa !9
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = load i32, ptr %13, align 4, !tbaa !9
  %82 = icmp ugt i32 %80, %81
  %83 = zext i1 %82 to i32
  store i32 %83, ptr %12, align 4, !tbaa !9
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %87

86:                                               ; preds = %70
  br label %292

87:                                               ; preds = %70
  %88 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %88, ptr %12, align 4, !tbaa !9
  store i32 -4194304, ptr %13, align 4, !tbaa !9
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = and i32 %90, %89
  store i32 %91, ptr %12, align 4, !tbaa !9
  store i32 4194304, ptr %13, align 4, !tbaa !9
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = add i32 %93, %92
  store i32 %94, ptr %12, align 4, !tbaa !9
  %95 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %95, ptr %13, align 4, !tbaa !9
  %96 = load i32, ptr %12, align 4, !tbaa !9
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = icmp ule i32 %96, %97
  %99 = zext i1 %98 to i32
  store i32 %99, ptr %12, align 4, !tbaa !9
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %87
  br label %292

103:                                              ; preds = %87
  %104 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %104, ptr %12, align 4, !tbaa !9
  %105 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %105, ptr %13, align 4, !tbaa !9
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = sub i32 %107, %106
  store i32 %108, ptr %12, align 4, !tbaa !9
  %109 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %109, ptr %10, align 4, !tbaa !9
  store i32 4194304, ptr %13, align 4, !tbaa !9
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = icmp uge i32 %110, %111
  %113 = zext i1 %112 to i32
  store i32 %113, ptr %12, align 4, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %117

116:                                              ; preds = %103
  br label %310

117:                                              ; preds = %103
  %118 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %118, ptr %12, align 4, !tbaa !9
  %119 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %119, ptr %13, align 4, !tbaa !9
  store i32 6, ptr %14, align 4, !tbaa !9
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = and i32 %120, 31
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = lshr i32 %122, %121
  store i32 %123, ptr %13, align 4, !tbaa !9
  store i32 67108860, ptr %14, align 4, !tbaa !9
  %124 = load i32, ptr %14, align 4, !tbaa !9
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = and i32 %125, %124
  store i32 %126, ptr %13, align 4, !tbaa !9
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = add i32 %128, %127
  store i32 %129, ptr %12, align 4, !tbaa !9
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %12, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = call i32 @i32_load(ptr noundef %131, i64 noundef %133)
  store i32 %134, ptr %12, align 4, !tbaa !9
  %135 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %135, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %136 = load i32, ptr %14, align 4, !tbaa !9
  %137 = and i32 %136, 31
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = lshr i32 %138, %137
  store i32 %139, ptr %13, align 4, !tbaa !9
  %140 = load i32, ptr %13, align 4, !tbaa !9
  %141 = and i32 %140, 31
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = lshr i32 %142, %141
  store i32 %143, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %144 = load i32, ptr %13, align 4, !tbaa !9
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = and i32 %145, %144
  store i32 %146, ptr %12, align 4, !tbaa !9
  %147 = load i32, ptr %12, align 4, !tbaa !9
  %148 = icmp ne i32 %147, 0
  %149 = xor i1 %148, true
  %150 = zext i1 %149 to i32
  store i32 %150, ptr %12, align 4, !tbaa !9
  %151 = load i32, ptr %12, align 4, !tbaa !9
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %154

153:                                              ; preds = %117
  br label %265

154:                                              ; preds = %117
  %155 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %155, ptr %12, align 4, !tbaa !9
  %156 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %156, ptr %13, align 4, !tbaa !9
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.w2c_hermes, ptr %157, i32 0, i32 6
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = add i64 %160, 12
  %162 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %158, i64 noundef %161, i32 noundef %162)
  %163 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %163, ptr %12, align 4, !tbaa !9
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.w2c_hermes, ptr %164, i32 0, i32 6
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = add i64 %167, 16
  %169 = call i32 @i32_load(ptr noundef %165, i64 noundef %168)
  store i32 %169, ptr %12, align 4, !tbaa !9
  %170 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %170, ptr %5, align 4, !tbaa !9
  %171 = load i32, ptr %12, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 0
  %173 = xor i1 %172, true
  %174 = zext i1 %173 to i32
  store i32 %174, ptr %12, align 4, !tbaa !9
  %175 = load i32, ptr %12, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %178

177:                                              ; preds = %154
  br label %328

178:                                              ; preds = %154
  %179 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %179, ptr %12, align 4, !tbaa !9
  %180 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %180, ptr %13, align 4, !tbaa !9
  store i32 12, ptr %14, align 4, !tbaa !9
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = load i32, ptr %13, align 4, !tbaa !9
  %183 = add i32 %182, %181
  store i32 %183, ptr %13, align 4, !tbaa !9
  %184 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %184, ptr %14, align 4, !tbaa !9
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 6
  %187 = load i32, ptr %14, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = call i32 @i32_load(ptr noundef %186, i64 noundef %188)
  store i32 %189, ptr %14, align 4, !tbaa !9
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.w2c_hermes, ptr %190, i32 0, i32 6
  %192 = load i32, ptr %14, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = add i64 %193, 24
  %195 = call i32 @i32_load(ptr noundef %191, i64 noundef %194)
  store i32 %195, ptr %14, align 4, !tbaa !9
  %196 = load i32, ptr %14, align 4, !tbaa !9
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.w2c_hermes, ptr %197, i32 0, i32 7
  %199 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %198, i32 0, i32 2
  %200 = load i32, ptr %199, align 4, !tbaa !17
  %201 = icmp ult i32 %196, %200
  br i1 %201, label %202, label %225

202:                                              ; preds = %178
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 7
  %205 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %204, i32 0, i32 0
  %206 = load ptr, ptr %205, align 8, !tbaa !18
  %207 = load i32, ptr %14, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %206, i64 %208
  %210 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %209, i32 0, i32 1
  %211 = load ptr, ptr %210, align 8, !tbaa !19
  %212 = icmp ne ptr %211, null
  br i1 %212, label %213, label %225

213:                                              ; preds = %202
  %214 = load ptr, ptr @w2c_hermes_t0, align 8, !tbaa !5
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.w2c_hermes, ptr %215, i32 0, i32 7
  %217 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8, !tbaa !18
  %219 = load i32, ptr %14, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %218, i64 %220
  %222 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %221, i32 0, i32 0
  %223 = load ptr, ptr %222, align 8, !tbaa !21
  %224 = call zeroext i1 @func_types_eq(ptr noundef %214, ptr noundef %223)
  br label %225

225:                                              ; preds = %213, %202, %178
  %226 = phi i1 [ false, %202 ], [ false, %178 ], [ %224, %213 ]
  %227 = xor i1 %226, true
  %228 = xor i1 %227, true
  %229 = zext i1 %228 to i32
  %230 = sext i32 %229 to i64
  %231 = call i64 @llvm.expect.i64(i64 %230, i64 1)
  %232 = icmp ne i64 %231, 0
  br i1 %232, label %235, label %233

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

234:                                              ; No predecessors!
  br label %235

235:                                              ; preds = %234, %225
  %236 = phi i1 [ true, %225 ], [ false, %234 ]
  %237 = zext i1 %236 to i32
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.w2c_hermes, ptr %238, i32 0, i32 7
  %240 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %239, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8, !tbaa !18
  %242 = load i32, ptr %14, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %241, i64 %243
  %245 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %244, i32 0, i32 1
  %246 = load ptr, ptr %245, align 8, !tbaa !19
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.w2c_hermes, ptr %247, i32 0, i32 7
  %249 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %248, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !18
  %251 = load i32, ptr %14, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %250, i64 %252
  %254 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %253, i32 0, i32 2
  %255 = load ptr, ptr %254, align 8, !tbaa !22
  %256 = load i32, ptr %12, align 4, !tbaa !9
  %257 = load i32, ptr %13, align 4, !tbaa !9
  call void %246(ptr noundef %255, i32 noundef %256, i32 noundef %257)
  %258 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %258, ptr %12, align 4, !tbaa !9
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.w2c_hermes, ptr %259, i32 0, i32 6
  %261 = load i32, ptr %12, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  %263 = call i32 @i32_load(ptr noundef %260, i64 noundef %262)
  store i32 %263, ptr %12, align 4, !tbaa !9
  %264 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %264, ptr %5, align 4, !tbaa !9
  br label %265

265:                                              ; preds = %235, %153, %69
  %266 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %266, ptr %12, align 4, !tbaa !9
  %267 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %267, ptr %13, align 4, !tbaa !9
  store i32 16777215, ptr %14, align 4, !tbaa !9
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = load i32, ptr %13, align 4, !tbaa !9
  %270 = and i32 %269, %268
  store i32 %270, ptr %13, align 4, !tbaa !9
  %271 = load i32, ptr %13, align 4, !tbaa !9
  %272 = load i32, ptr %12, align 4, !tbaa !9
  %273 = add i32 %272, %271
  store i32 %273, ptr %12, align 4, !tbaa !9
  %274 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %274, ptr %7, align 4, !tbaa !9
  %275 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %275, ptr %13, align 4, !tbaa !9
  %276 = load i32, ptr %12, align 4, !tbaa !9
  %277 = load i32, ptr %13, align 4, !tbaa !9
  %278 = icmp ne i32 %276, %277
  %279 = zext i1 %278 to i32
  store i32 %279, ptr %12, align 4, !tbaa !9
  %280 = load i32, ptr %12, align 4, !tbaa !9
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %282, label %283

282:                                              ; preds = %265
  br label %52

283:                                              ; preds = %265
  br label %284

284:                                              ; preds = %283, %3
  %285 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %285, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %286 = load i32, ptr %13, align 4, !tbaa !9
  %287 = load i32, ptr %12, align 4, !tbaa !9
  %288 = add i32 %287, %286
  store i32 %288, ptr %12, align 4, !tbaa !9
  %289 = load i32, ptr %12, align 4, !tbaa !9
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.w2c_hermes, ptr %290, i32 0, i32 3
  store i32 %289, ptr %291, align 8, !tbaa !11
  br label %330

292:                                              ; preds = %102, %86
  store i32 0, ptr %12, align 4, !tbaa !9
  %293 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %293, ptr %7, align 4, !tbaa !9
  store i32 170852, ptr %13, align 4, !tbaa !9
  %294 = load i32, ptr %13, align 4, !tbaa !9
  %295 = load i32, ptr %12, align 4, !tbaa !9
  %296 = add i32 %295, %294
  store i32 %296, ptr %12, align 4, !tbaa !9
  %297 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %297, ptr %13, align 4, !tbaa !9
  store i32 86240, ptr %14, align 4, !tbaa !9
  %298 = load i32, ptr %14, align 4, !tbaa !9
  %299 = load i32, ptr %13, align 4, !tbaa !9
  %300 = add i32 %299, %298
  store i32 %300, ptr %13, align 4, !tbaa !9
  store i32 118, ptr %14, align 4, !tbaa !9
  %301 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %301, ptr %15, align 4, !tbaa !9
  store i32 19893, ptr %16, align 4, !tbaa !9
  %302 = load i32, ptr %16, align 4, !tbaa !9
  %303 = load i32, ptr %15, align 4, !tbaa !9
  %304 = add i32 %303, %302
  store i32 %304, ptr %15, align 4, !tbaa !9
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  %306 = load i32, ptr %12, align 4, !tbaa !9
  %307 = load i32, ptr %13, align 4, !tbaa !9
  %308 = load i32, ptr %14, align 4, !tbaa !9
  %309 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %305, i32 noundef %306, i32 noundef %307, i32 noundef %308, i32 noundef %309)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

310:                                              ; preds = %116
  store i32 0, ptr %12, align 4, !tbaa !9
  %311 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %311, ptr %7, align 4, !tbaa !9
  store i32 169713, ptr %13, align 4, !tbaa !9
  %312 = load i32, ptr %13, align 4, !tbaa !9
  %313 = load i32, ptr %12, align 4, !tbaa !9
  %314 = add i32 %313, %312
  store i32 %314, ptr %12, align 4, !tbaa !9
  %315 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %315, ptr %13, align 4, !tbaa !9
  store i32 86240, ptr %14, align 4, !tbaa !9
  %316 = load i32, ptr %14, align 4, !tbaa !9
  %317 = load i32, ptr %13, align 4, !tbaa !9
  %318 = add i32 %317, %316
  store i32 %318, ptr %13, align 4, !tbaa !9
  store i32 134, ptr %14, align 4, !tbaa !9
  %319 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %319, ptr %15, align 4, !tbaa !9
  store i32 39587, ptr %16, align 4, !tbaa !9
  %320 = load i32, ptr %16, align 4, !tbaa !9
  %321 = load i32, ptr %15, align 4, !tbaa !9
  %322 = add i32 %321, %320
  store i32 %322, ptr %15, align 4, !tbaa !9
  %323 = load ptr, ptr %4, align 8, !tbaa !5
  %324 = load i32, ptr %12, align 4, !tbaa !9
  %325 = load i32, ptr %13, align 4, !tbaa !9
  %326 = load i32, ptr %14, align 4, !tbaa !9
  %327 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %323, i32 noundef %324, i32 noundef %325, i32 noundef %326, i32 noundef %327)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

328:                                              ; preds = %177
  %329 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr noundef %329)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

330:                                              ; preds = %284
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void
}

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 = !{!12, !10, i64 92}
!18 = !{!12, !6, i64 80}
!19 = !{!20, !6, i64 8}
!20 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!20, !6, i64 0}
!22 = !{!20, !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_t0 = 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

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHeapSegment0x3A0x3AforAllObjs0x3Chermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AforAllObjs0x28std0x3A0x3A_0x5F20x3A0x3Afunction0x3Cvoid0x200x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x290x3E0x20const0x260x290x3A0x3A0x24_00x3E0x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AforAllObjs0x28std0x3A0x3A_0x5F20x3A0x3Afunction0x3Cvoid0x200x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x290x3E0x20const0x260x290x3A0x3A0x24_00x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -16
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %10 = add i32 %9, 86016
  %11 = add nuw nsw i64 %8, 8
  %12 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %11)
  %.not = icmp eq i32 %10, %12
  br i1 %.not, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %3
  %13 = zext i32 %6 to i64
  %14 = add nuw nsw i64 %13, 12
  %15 = zext i32 %2 to i64
  %16 = add nuw nsw i64 %15, 16
  %17 = add i32 %5, -4
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  %19 = getelementptr inbounds i8, ptr %0, i64 92
  %20 = load ptr, ptr @w2c_hermes_t0, align 8
  br label %21

21:                                               ; preds = %.preheader, %71
  %.0 = phi i32 [ %73, %71 ], [ %10, %.preheader ]
  %22 = zext i32 %.0 to i64
  %23 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %22)
  %24 = and i32 %23, -16777216
  %25 = icmp eq i32 %24, 33554432
  br i1 %25, label %71, label %26

26:                                               ; preds = %21
  %27 = and i32 %.0, -4194304
  %28 = or disjoint i32 %27, 16384
  %29 = icmp ule i32 %28, %.0
  %30 = add i32 %27, 4194304
  %.not160 = icmp ugt i32 %30, %.0
  %or.cond = and i1 %29, %.not160
  br i1 %or.cond, label %31, label %74

31:                                               ; preds = %26
  %32 = sub i32 %.0, %28
  %33 = icmp ugt i32 %32, 4194303
  br i1 %33, label %75, label %34

34:                                               ; preds = %31
  %35 = lshr i32 %32, 6
  %36 = and i32 %35, 65532
  %37 = add nuw nsw i32 %36, %28
  %38 = zext i32 %37 to i64
  %39 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %38)
  %40 = lshr i32 %.0, 3
  %41 = and i32 %40, 31
  %42 = shl nuw i32 1, %41
  %43 = and i32 %39, %42
  %.not161 = icmp eq i32 %43, 0
  br i1 %.not161, label %71, label %44

44:                                               ; preds = %34
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %14, i32 noundef %.0)
  %45 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %16)
  %.not162 = icmp eq i32 %45, 0
  br i1 %.not162, label %76, label %46

46:                                               ; preds = %44
  %47 = zext i32 %45 to i64
  %48 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %47)
  %49 = zext i32 %48 to i64
  %50 = add nuw nsw i64 %49, 24
  %51 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %50)
  %52 = load i32, ptr %19, align 4, !tbaa !15
  %53 = icmp ult i32 %51, %52
  br i1 %53, label %54, label %.critedge, !prof !16

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

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

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

63:                                               ; preds = %60
  %64 = load ptr, ptr %18, align 8, !tbaa !17
  %65 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %64, i64 %56
  %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 !22
  tail call void %67(ptr noundef %69, i32 noundef %45, i32 noundef %17) #5
  %70 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %22)
  br label %71

71:                                               ; preds = %34, %21, %63
  %.0154 = phi i32 [ %23, %21 ], [ %23, %34 ], [ %70, %63 ]
  %72 = and i32 %.0154, 16777215
  %73 = add i32 %72, %.0
  %.not164 = icmp eq i32 %73, %12
  br i1 %.not164, label %.loopexit, label %21

.loopexit:                                        ; preds = %71, %3
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

74:                                               ; preds = %26
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 170852, i32 noundef 86240, i32 noundef 118, i32 noundef 19893) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

75:                                               ; preds = %31
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 169713, i32 noundef 86240, i32 noundef 134, i32 noundef 39587) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

76:                                               ; preds = %44
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr noundef %0)
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable
}

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 = { noreturn nounwind }
attributes #5 = { nounwind }

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

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


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