; 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_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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x3A0x3AmarkRoots0x28hermes0x3A0x3Avm0x3A0x3ARootAcceptor0x260x29(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
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %14 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %14, ptr %9, align 4, !tbaa !9
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.w2c_hermes, ptr %15, i32 0, i32 6
  %17 = load i32, ptr %9, align 4, !tbaa !9
  %18 = zext i32 %17 to i64
  %19 = add i64 %18, 48
  %20 = call i32 @i32_load(ptr noundef %16, i64 noundef %19)
  store i32 %20, ptr %9, align 4, !tbaa !9
  %21 = load i32, ptr %9, align 4, !tbaa !9
  %22 = icmp ne i32 %21, 0
  %23 = xor i1 %22, true
  %24 = zext i1 %23 to i32
  store i32 %24, ptr %9, align 4, !tbaa !9
  %25 = load i32, ptr %9, align 4, !tbaa !9
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %3
  br label %292

28:                                               ; preds = %3
  %29 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %29, ptr %9, align 4, !tbaa !9
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 6
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = add i64 %33, 56
  %35 = call i32 @i32_load(ptr noundef %31, i64 noundef %34)
  store i32 %35, ptr %9, align 4, !tbaa !9
  %36 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %36, ptr %8, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = icmp sge i32 %37, %38
  %40 = zext i1 %39 to i32
  store i32 %40, ptr %9, align 4, !tbaa !9
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %102

43:                                               ; preds = %28
  %44 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %44, ptr %9, align 4, !tbaa !9
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = add i64 %48, 44
  %50 = call i32 @i32_load(ptr noundef %46, i64 noundef %49)
  store i32 %50, ptr %9, align 4, !tbaa !9
  %51 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %51, ptr %5, align 4, !tbaa !9
  %52 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %52, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = and i32 %53, 31
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = shl i32 %55, %54
  store i32 %56, ptr %10, align 4, !tbaa !9
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = add i32 %58, %57
  store i32 %59, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %60, ptr %7, align 4, !tbaa !9
  %61 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %61, ptr %9, align 4, !tbaa !9
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  %64 = xor i1 %63, true
  %65 = zext i1 %64 to i32
  store i32 %65, ptr %9, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %43
  br label %120

69:                                               ; preds = %43
  br label %70

70:                                               ; preds = %100, %69
  %71 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %71, ptr %9, align 4, !tbaa !9
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.w2c_hermes, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = call i32 @i32_load(ptr noundef %73, i64 noundef %75)
  store i32 %76, ptr %9, align 4, !tbaa !9
  store i32 8, ptr %10, align 4, !tbaa !9
  %77 = load i32, ptr %10, align 4, !tbaa !9
  %78 = load i32, ptr %9, align 4, !tbaa !9
  %79 = add i32 %78, %77
  store i32 %79, ptr %9, align 4, !tbaa !9
  %80 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %80, label %86 [
    i32 0, label %81
    i32 1, label %82
    i32 2, label %83
    i32 3, label %84
    i32 4, label %85
  ]

81:                                               ; preds = %70
  br label %87

82:                                               ; preds = %70
  br label %120

83:                                               ; preds = %70
  br label %120

84:                                               ; preds = %70
  br label %120

85:                                               ; preds = %70
  br label %87

86:                                               ; preds = %70
  br label %120

87:                                               ; preds = %85, %81
  %88 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %88, ptr %9, align 4, !tbaa !9
  store i32 4, ptr %10, align 4, !tbaa !9
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = add i32 %90, %89
  store i32 %91, ptr %9, align 4, !tbaa !9
  %92 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %92, ptr %5, align 4, !tbaa !9
  %93 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %93, ptr %10, align 4, !tbaa !9
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = icmp ne i32 %94, %95
  %97 = zext i1 %96 to i32
  store i32 %97, ptr %9, align 4, !tbaa !9
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %101

100:                                              ; preds = %87
  br label %70

101:                                              ; preds = %87
  br label %292

102:                                              ; preds = %28
  store i32 0, ptr %9, align 4, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %103, ptr %5, align 4, !tbaa !9
  store i32 103214, ptr %10, align 4, !tbaa !9
  %104 = load i32, ptr %10, align 4, !tbaa !9
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = add i32 %105, %104
  store i32 %106, ptr %9, align 4, !tbaa !9
  %107 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %107, ptr %10, align 4, !tbaa !9
  store i32 81389, ptr %11, align 4, !tbaa !9
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = add i32 %109, %108
  store i32 %110, ptr %10, align 4, !tbaa !9
  store i32 1212, ptr %11, align 4, !tbaa !9
  %111 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %111, ptr %12, align 4, !tbaa !9
  store i32 40687, ptr %13, align 4, !tbaa !9
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = load i32, ptr %12, align 4, !tbaa !9
  %114 = add i32 %113, %112
  store i32 %114, ptr %12, align 4, !tbaa !9
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %115, i32 noundef %116, i32 noundef %117, i32 noundef %118, i32 noundef %119)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

120:                                              ; preds = %86, %84, %83, %82, %68
  %121 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %121, ptr %9, align 4, !tbaa !9
  %122 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %122, ptr %10, align 4, !tbaa !9
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = load i32, ptr %10, align 4, !tbaa !9
  %125 = icmp eq i32 %123, %124
  %126 = zext i1 %125 to i32
  store i32 %126, ptr %9, align 4, !tbaa !9
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %120
  br label %292

130:                                              ; preds = %120
  br label %131

131:                                              ; preds = %290, %130
  %132 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %132, ptr %9, align 4, !tbaa !9
  %133 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %133, ptr %10, align 4, !tbaa !9
  %134 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %134, ptr %11, align 4, !tbaa !9
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.w2c_hermes, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = call i32 @i32_load(ptr noundef %136, i64 noundef %138)
  store i32 %139, ptr %11, align 4, !tbaa !9
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %11, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = add i64 %143, 16
  %145 = call i32 @i32_load(ptr noundef %141, i64 noundef %144)
  store i32 %145, ptr %11, align 4, !tbaa !9
  %146 = load i32, ptr %11, align 4, !tbaa !9
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.w2c_hermes, ptr %147, i32 0, i32 7
  %149 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %148, i32 0, i32 2
  %150 = load i32, ptr %149, align 4, !tbaa !11
  %151 = icmp ult i32 %146, %150
  br i1 %151, label %152, label %175

152:                                              ; preds = %131
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.w2c_hermes, ptr %153, i32 0, i32 7
  %155 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !17
  %157 = load i32, ptr %11, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %156, i64 %158
  %160 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %159, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !18
  %162 = icmp ne ptr %161, null
  br i1 %162, label %163, label %175

163:                                              ; preds = %152
  %164 = load ptr, ptr @w2c_hermes_t0, align 8, !tbaa !5
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.w2c_hermes, ptr %165, i32 0, i32 7
  %167 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %166, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8, !tbaa !17
  %169 = load i32, ptr %11, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %168, i64 %170
  %172 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %171, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8, !tbaa !20
  %174 = call zeroext i1 @func_types_eq(ptr noundef %164, ptr noundef %173)
  br label %175

175:                                              ; preds = %163, %152, %131
  %176 = phi i1 [ false, %152 ], [ false, %131 ], [ %174, %163 ]
  %177 = xor i1 %176, true
  %178 = xor i1 %177, true
  %179 = zext i1 %178 to i32
  %180 = sext i32 %179 to i64
  %181 = call i64 @llvm.expect.i64(i64 %180, i64 1)
  %182 = icmp ne i64 %181, 0
  br i1 %182, label %185, label %183

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

184:                                              ; No predecessors!
  br label %185

185:                                              ; preds = %184, %175
  %186 = phi i1 [ true, %175 ], [ false, %184 ]
  %187 = zext i1 %186 to i32
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.w2c_hermes, ptr %188, i32 0, i32 7
  %190 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %189, i32 0, i32 0
  %191 = load ptr, ptr %190, align 8, !tbaa !17
  %192 = load i32, ptr %11, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %191, i64 %193
  %195 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %194, i32 0, i32 1
  %196 = load ptr, ptr %195, align 8, !tbaa !18
  %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 0
  %200 = load ptr, ptr %199, align 8, !tbaa !17
  %201 = load i32, ptr %11, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %200, i64 %202
  %204 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %203, i32 0, i32 2
  %205 = load ptr, ptr %204, align 8, !tbaa !21
  %206 = load i32, ptr %9, align 4, !tbaa !9
  %207 = load i32, ptr %10, align 4, !tbaa !9
  call void %196(ptr noundef %205, i32 noundef %206, i32 noundef %207)
  %208 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %208, ptr %9, align 4, !tbaa !9
  %209 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %209, ptr %10, align 4, !tbaa !9
  store i32 4, ptr %11, align 4, !tbaa !9
  %210 = load i32, ptr %11, align 4, !tbaa !9
  %211 = load i32, ptr %10, align 4, !tbaa !9
  %212 = add i32 %211, %210
  store i32 %212, ptr %10, align 4, !tbaa !9
  %213 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %213, ptr %5, align 4, !tbaa !9
  %214 = load i32, ptr %9, align 4, !tbaa !9
  %215 = load i32, ptr %10, align 4, !tbaa !9
  %216 = icmp uge i32 %214, %215
  %217 = zext i1 %216 to i32
  store i32 %217, ptr %9, align 4, !tbaa !9
  %218 = load i32, ptr %9, align 4, !tbaa !9
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %263

220:                                              ; preds = %185
  %221 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %221, ptr %9, align 4, !tbaa !9
  %222 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %222, ptr %10, align 4, !tbaa !9
  %223 = load i32, ptr %9, align 4, !tbaa !9
  %224 = load i32, ptr %10, align 4, !tbaa !9
  %225 = icmp eq i32 %223, %224
  %226 = zext i1 %225 to i32
  store i32 %226, ptr %9, align 4, !tbaa !9
  %227 = load i32, ptr %9, align 4, !tbaa !9
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %230

229:                                              ; preds = %220
  br label %292

230:                                              ; preds = %220
  br label %231

231:                                              ; preds = %261, %230
  %232 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %232, ptr %9, align 4, !tbaa !9
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.w2c_hermes, ptr %233, i32 0, i32 6
  %235 = load i32, ptr %9, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = call i32 @i32_load(ptr noundef %234, i64 noundef %236)
  store i32 %237, ptr %9, align 4, !tbaa !9
  store i32 8, ptr %10, align 4, !tbaa !9
  %238 = load i32, ptr %10, align 4, !tbaa !9
  %239 = load i32, ptr %9, align 4, !tbaa !9
  %240 = add i32 %239, %238
  store i32 %240, ptr %9, align 4, !tbaa !9
  %241 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %241, label %247 [
    i32 0, label %242
    i32 1, label %243
    i32 2, label %244
    i32 3, label %245
    i32 4, label %246
  ]

242:                                              ; preds = %231
  br label %248

243:                                              ; preds = %231
  br label %281

244:                                              ; preds = %231
  br label %281

245:                                              ; preds = %231
  br label %281

246:                                              ; preds = %231
  br label %248

247:                                              ; preds = %231
  br label %281

248:                                              ; preds = %246, %242
  %249 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %249, ptr %9, align 4, !tbaa !9
  %250 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %250, ptr %10, align 4, !tbaa !9
  store i32 4, ptr %11, align 4, !tbaa !9
  %251 = load i32, ptr %11, align 4, !tbaa !9
  %252 = load i32, ptr %10, align 4, !tbaa !9
  %253 = add i32 %252, %251
  store i32 %253, ptr %10, align 4, !tbaa !9
  %254 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %254, ptr %5, align 4, !tbaa !9
  %255 = load i32, ptr %9, align 4, !tbaa !9
  %256 = load i32, ptr %10, align 4, !tbaa !9
  %257 = icmp ne i32 %255, %256
  %258 = zext i1 %257 to i32
  store i32 %258, ptr %9, align 4, !tbaa !9
  %259 = load i32, ptr %9, align 4, !tbaa !9
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %262

261:                                              ; preds = %248
  br label %231

262:                                              ; preds = %248
  br label %292

263:                                              ; preds = %185
  store i32 0, ptr %9, align 4, !tbaa !9
  %264 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %264, ptr %5, align 4, !tbaa !9
  store i32 103214, ptr %10, align 4, !tbaa !9
  %265 = load i32, ptr %10, align 4, !tbaa !9
  %266 = load i32, ptr %9, align 4, !tbaa !9
  %267 = add i32 %266, %265
  store i32 %267, ptr %9, align 4, !tbaa !9
  %268 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %268, ptr %10, align 4, !tbaa !9
  store i32 81389, ptr %11, align 4, !tbaa !9
  %269 = load i32, ptr %11, align 4, !tbaa !9
  %270 = load i32, ptr %10, align 4, !tbaa !9
  %271 = add i32 %270, %269
  store i32 %271, ptr %10, align 4, !tbaa !9
  store i32 1212, ptr %11, align 4, !tbaa !9
  %272 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %272, ptr %12, align 4, !tbaa !9
  store i32 40687, ptr %13, align 4, !tbaa !9
  %273 = load i32, ptr %13, align 4, !tbaa !9
  %274 = load i32, ptr %12, align 4, !tbaa !9
  %275 = add i32 %274, %273
  store i32 %275, ptr %12, align 4, !tbaa !9
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = load i32, ptr %9, align 4, !tbaa !9
  %278 = load i32, ptr %10, align 4, !tbaa !9
  %279 = load i32, ptr %11, align 4, !tbaa !9
  %280 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %276, i32 noundef %277, i32 noundef %278, i32 noundef %279, i32 noundef %280)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

281:                                              ; preds = %247, %245, %244, %243
  %282 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %282, ptr %9, align 4, !tbaa !9
  %283 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %283, ptr %10, align 4, !tbaa !9
  %284 = load i32, ptr %9, align 4, !tbaa !9
  %285 = load i32, ptr %10, align 4, !tbaa !9
  %286 = icmp ne i32 %284, %285
  %287 = zext i1 %286 to i32
  store i32 %287, ptr %9, align 4, !tbaa !9
  %288 = load i32, ptr %9, align 4, !tbaa !9
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %291

290:                                              ; preds = %281
  br label %131

291:                                              ; preds = %281
  br label %292

292:                                              ; preds = %291, %262, %229, %129, %101, %27
  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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 92}
!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, !6, i64 80}
!18 = !{!19, !6, i64 8}
!19 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!19, !6, i64 0}
!21 = !{!19, !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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x3A0x3AmarkRoots0x28hermes0x3A0x3Avm0x3A0x3ARootAcceptor0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %1 to i64
  %6 = add nuw nsw i64 %5, 48
  %7 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %.loopexit, label %8

8:                                                ; preds = %3
  %9 = add nuw nsw i64 %5, 56
  %10 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %9)
  %11 = icmp sgt i32 %10, -1
  br i1 %11, label %12, label %21

12:                                               ; preds = %8
  %13 = add nuw nsw i64 %5, 44
  %14 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %13)
  %15 = shl i32 %10, 2
  %16 = add i32 %14, %15
  %.not128 = icmp eq i32 %10, 0
  br i1 %.not128, label %.loopexit137, label %.preheader136

.preheader136:                                    ; preds = %12, %19
  %.0 = phi i32 [ %20, %19 ], [ %14, %12 ]
  %17 = zext i32 %.0 to i64
  %18 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %17)
  switch i32 %18, label %.loopexit137 [
    i32 -8, label %19
    i32 -4, label %19
  ]

19:                                               ; preds = %.preheader136, %.preheader136
  %20 = add i32 %.0, 4
  %.not129 = icmp eq i32 %20, %16
  br i1 %.not129, label %.loopexit, label %.preheader136

21:                                               ; preds = %8
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 103214, i32 noundef 81389, i32 noundef 1212, i32 noundef 40687) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

.loopexit137:                                     ; preds = %.preheader136, %12
  %.1 = phi i32 [ %14, %12 ], [ %.0, %.preheader136 ]
  %22 = icmp eq i32 %.1, %16
  br i1 %22, label %.loopexit, label %.preheader134

.preheader134:                                    ; preds = %.loopexit137
  %23 = zext i32 %2 to i64
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  %25 = getelementptr inbounds i8, ptr %0, i64 92
  %26 = load ptr, ptr @w2c_hermes_t0, align 8
  br label %27

27:                                               ; preds = %.preheader134, %58
  %.2 = phi i32 [ %.3, %58 ], [ %.1, %.preheader134 ]
  %28 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %23)
  %29 = zext i32 %28 to i64
  %30 = add nuw nsw i64 %29, 16
  %31 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %30)
  %32 = load i32, ptr %25, align 4, !tbaa !5
  %33 = icmp ult i32 %31, %32
  br i1 %33, label %34, label %.critedge, !prof !15

34:                                               ; preds = %27
  %35 = load ptr, ptr %24, align 8, !tbaa !16
  %36 = zext i32 %31 to i64
  %37 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %35, i64 %36
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %.not130 = icmp eq ptr %39, null
  br i1 %.not130, label %.critedge, label %40, !prof !19

40:                                               ; preds = %34
  %41 = load ptr, ptr %37, align 8, !tbaa !20
  %42 = tail call zeroext i1 @func_types_eq(ptr noundef %26, ptr noundef %41)
  br i1 %42, label %43, label %.critedge, !prof !15

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

43:                                               ; preds = %40
  %44 = load ptr, ptr %24, align 8, !tbaa !16
  %45 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %44, i64 %36
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = load ptr, ptr %46, align 8, !tbaa !17
  %48 = getelementptr inbounds i8, ptr %45, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  tail call void %47(ptr noundef %49, i32 noundef %2, i32 noundef %.2) #4
  %50 = add i32 %.2, 4
  %.not131 = icmp ult i32 %16, %50
  br i1 %.not131, label %57, label %51

51:                                               ; preds = %43
  %52 = icmp eq i32 %50, %16
  br i1 %52, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %51, %55
  %.3 = phi i32 [ %56, %55 ], [ %50, %51 ]
  %53 = zext i32 %.3 to i64
  %54 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %53)
  switch i32 %54, label %58 [
    i32 -8, label %55
    i32 -4, label %55
  ]

55:                                               ; preds = %.preheader, %.preheader
  %56 = add i32 %.3, 4
  %.not132 = icmp eq i32 %16, %56
  br i1 %.not132, label %.loopexit, label %.preheader

57:                                               ; preds = %43
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 103214, i32 noundef 81389, i32 noundef 1212, i32 noundef 40687) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

58:                                               ; preds = %.preheader
  %.not133 = icmp eq i32 %.3, %16
  br i1 %.not133, label %.loopexit, label %27

.loopexit:                                        ; preds = %19, %58, %51, %55, %.loopexit137, %3
  ret void
}

attributes #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 = { 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 = { 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 92}
!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 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!16 = !{!6, !7, i64 80}
!17 = !{!18, !7, i64 8}
!18 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!20 = !{!18, !7, i64 0}
!21 = !{!18, !7, i64 16}


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