; 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_load8_u(ptr noundef, i64 noundef) #3

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_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: inlinehint nounwind uwtable
declare hidden i32 @i32_load16_u(ptr noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AfinalizeYoungGenObjects0x280x29(ptr noundef %0, i32 noundef %1) #5 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %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 i64, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %16 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %16, ptr %9, align 4, !tbaa !9
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 6
  %19 = load i32, ptr %9, align 4, !tbaa !9
  %20 = zext i32 %19 to i64
  %21 = add i64 %20, 608
  %22 = call i32 @i32_load(ptr noundef %18, i64 noundef %21)
  store i32 %22, ptr %9, align 4, !tbaa !9
  %23 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %23, ptr %5, align 4, !tbaa !9
  %24 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %24, ptr %10, align 4, !tbaa !9
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 6
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = add i64 %28, 612
  %30 = call i32 @i32_load(ptr noundef %26, i64 noundef %29)
  store i32 %30, ptr %10, align 4, !tbaa !9
  %31 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %31, ptr %8, align 4, !tbaa !9
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = icmp ne i32 %32, %33
  %35 = zext i1 %34 to i32
  store i32 %35, ptr %9, align 4, !tbaa !9
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %279

38:                                               ; preds = %2
  br label %39

39:                                               ; preds = %250, %38
  %40 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %40, ptr %9, align 4, !tbaa !9
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.w2c_hermes, ptr %41, i32 0, i32 6
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = call i32 @i32_load(ptr noundef %42, i64 noundef %44)
  store i32 %45, ptr %9, align 4, !tbaa !9
  %46 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %46, ptr %7, align 4, !tbaa !9
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.w2c_hermes, ptr %47, i32 0, i32 6
  %49 = load i32, ptr %9, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = call i32 @i32_load(ptr noundef %48, i64 noundef %50)
  store i32 %51, ptr %9, align 4, !tbaa !9
  %52 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %52, ptr %6, align 4, !tbaa !9
  store i32 1, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = and i32 %54, %53
  store i32 %55, ptr %9, align 4, !tbaa !9
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  %58 = xor i1 %57, true
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %237

62:                                               ; preds = %39
  %63 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %63, ptr %9, align 4, !tbaa !9
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 4
  %69 = call i32 @i32_load16_u(ptr noundef %65, i64 noundef %68)
  store i32 %69, ptr %9, align 4, !tbaa !9
  store i32 52753, ptr %10, align 4, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = icmp ne i32 %70, %71
  %73 = zext i1 %72 to i32
  store i32 %73, ptr %9, align 4, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %62
  br label %137

77:                                               ; preds = %62
  %78 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %78, ptr %9, align 4, !tbaa !9
  store i32 22, ptr %10, align 4, !tbaa !9
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = and i32 %79, 31
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = lshr i32 %81, %80
  store i32 %82, ptr %9, align 4, !tbaa !9
  store i32 1020, ptr %10, align 4, !tbaa !9
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = and i32 %84, %83
  store i32 %85, ptr %9, align 4, !tbaa !9
  store i32 297512, ptr %10, align 4, !tbaa !9
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = add i32 %87, %86
  store i32 %88, ptr %9, align 4, !tbaa !9
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = call i32 @i32_load(ptr noundef %90, i64 noundef %92)
  store i32 %93, ptr %9, align 4, !tbaa !9
  %94 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %94, ptr %6, align 4, !tbaa !9
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = call i64 @i64_load(ptr noundef %96, i64 noundef %98)
  store i64 %99, ptr %14, align 8, !tbaa !11
  store i64 -47381121442796770, ptr %15, align 8, !tbaa !11
  %100 = load i64, ptr %14, align 8, !tbaa !11
  %101 = load i64, ptr %15, align 8, !tbaa !11
  %102 = icmp ne i64 %100, %101
  %103 = zext i1 %102 to i32
  store i32 %103, ptr %9, align 4, !tbaa !9
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %107

106:                                              ; preds = %77
  br label %137

107:                                              ; preds = %77
  %108 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %108, ptr %9, align 4, !tbaa !9
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %9, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, 12
  %114 = call i32 @i32_load8_u(ptr noundef %110, i64 noundef %113)
  store i32 %114, ptr %9, align 4, !tbaa !9
  store i32 7, ptr %10, align 4, !tbaa !9
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = and i32 %116, %115
  store i32 %117, ptr %9, align 4, !tbaa !9
  %118 = load i32, ptr %9, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %107
  br label %137

121:                                              ; preds = %107
  %122 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %122, ptr %9, align 4, !tbaa !9
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %9, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = add i64 %126, 8
  %128 = call i32 @i32_load(ptr noundef %124, i64 noundef %127)
  store i32 %128, ptr %9, align 4, !tbaa !9
  store i32 79, ptr %10, align 4, !tbaa !9
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = load i32, ptr %10, align 4, !tbaa !9
  %131 = icmp ult i32 %129, %130
  %132 = zext i1 %131 to i32
  store i32 %132, ptr %9, align 4, !tbaa !9
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %136

135:                                              ; preds = %121
  br label %155

136:                                              ; preds = %121
  br label %137

137:                                              ; preds = %136, %120, %106, %76
  store i32 0, ptr %9, align 4, !tbaa !9
  %138 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %138, ptr %5, align 4, !tbaa !9
  store i32 157129, ptr %10, align 4, !tbaa !9
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = add i32 %140, %139
  store i32 %141, ptr %9, align 4, !tbaa !9
  %142 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %142, ptr %10, align 4, !tbaa !9
  store i32 82339, ptr %11, align 4, !tbaa !9
  %143 = load i32, ptr %11, align 4, !tbaa !9
  %144 = load i32, ptr %10, align 4, !tbaa !9
  %145 = add i32 %144, %143
  store i32 %145, ptr %10, align 4, !tbaa !9
  store i32 152, ptr %11, align 4, !tbaa !9
  %146 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %146, ptr %12, align 4, !tbaa !9
  store i32 108545, ptr %13, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = add i32 %148, %147
  store i32 %149, ptr %12, align 4, !tbaa !9
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = load i32, ptr %9, align 4, !tbaa !9
  %152 = load i32, ptr %10, align 4, !tbaa !9
  %153 = load i32, ptr %11, align 4, !tbaa !9
  %154 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %150, i32 noundef %151, i32 noundef %152, i32 noundef %153, i32 noundef %154)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

155:                                              ; preds = %135
  %156 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %156, ptr %9, align 4, !tbaa !9
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.w2c_hermes, ptr %157, i32 0, i32 6
  %159 = load i32, ptr %9, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = add i64 %160, 16
  %162 = call i32 @i32_load(ptr noundef %158, i64 noundef %161)
  store i32 %162, ptr %9, align 4, !tbaa !9
  %163 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %163, ptr %6, align 4, !tbaa !9
  %164 = load i32, ptr %9, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  %166 = xor i1 %165, true
  %167 = zext i1 %166 to i32
  store i32 %167, ptr %9, align 4, !tbaa !9
  %168 = load i32, ptr %9, align 4, !tbaa !9
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %171

170:                                              ; preds = %155
  br label %252

171:                                              ; preds = %155
  %172 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %172, ptr %9, align 4, !tbaa !9
  %173 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %173, ptr %10, align 4, !tbaa !9
  %174 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %174, ptr %11, align 4, !tbaa !9
  %175 = load i32, ptr %11, align 4, !tbaa !9
  %176 = load ptr, ptr %3, 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 2
  %179 = load i32, ptr %178, align 4, !tbaa !13
  %180 = icmp ult i32 %175, %179
  br i1 %180, label %181, label %204

181:                                              ; preds = %171
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.w2c_hermes, ptr %182, i32 0, i32 7
  %184 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %183, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8, !tbaa !18
  %186 = load i32, ptr %11, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %185, i64 %187
  %189 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %188, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8, !tbaa !19
  %191 = icmp ne ptr %190, null
  br i1 %191, label %192, label %204

192:                                              ; preds = %181
  %193 = load ptr, ptr @w2c_hermes_t0, align 8, !tbaa !5
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.w2c_hermes, ptr %194, i32 0, i32 7
  %196 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %195, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !18
  %198 = load i32, ptr %11, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %197, i64 %199
  %201 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %200, i32 0, i32 0
  %202 = load ptr, ptr %201, align 8, !tbaa !21
  %203 = call zeroext i1 @func_types_eq(ptr noundef %193, ptr noundef %202)
  br label %204

204:                                              ; preds = %192, %181, %171
  %205 = phi i1 [ false, %181 ], [ false, %171 ], [ %203, %192 ]
  %206 = xor i1 %205, true
  %207 = xor i1 %206, true
  %208 = zext i1 %207 to i32
  %209 = sext i32 %208 to i64
  %210 = call i64 @llvm.expect.i64(i64 %209, i64 1)
  %211 = icmp ne i64 %210, 0
  br i1 %211, label %214, label %212

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

213:                                              ; No predecessors!
  br label %214

214:                                              ; preds = %213, %204
  %215 = phi i1 [ true, %204 ], [ false, %213 ]
  %216 = zext i1 %215 to i32
  %217 = load ptr, ptr %3, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.w2c_hermes, ptr %217, i32 0, i32 7
  %219 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %218, i32 0, i32 0
  %220 = load ptr, ptr %219, align 8, !tbaa !18
  %221 = load i32, ptr %11, align 4, !tbaa !9
  %222 = zext i32 %221 to i64
  %223 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %220, i64 %222
  %224 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %223, i32 0, i32 1
  %225 = load ptr, ptr %224, align 8, !tbaa !19
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 7
  %228 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %227, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8, !tbaa !18
  %230 = load i32, ptr %11, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %229, i64 %231
  %233 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %232, i32 0, i32 2
  %234 = load ptr, ptr %233, align 8, !tbaa !22
  %235 = load i32, ptr %9, align 4, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !9
  call void %225(ptr noundef %234, i32 noundef %235, i32 noundef %236)
  br label %237

237:                                              ; preds = %214, %39
  %238 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %238, ptr %9, align 4, !tbaa !9
  %239 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %239, ptr %10, align 4, !tbaa !9
  store i32 4, ptr %11, align 4, !tbaa !9
  %240 = load i32, ptr %11, align 4, !tbaa !9
  %241 = load i32, ptr %10, align 4, !tbaa !9
  %242 = add i32 %241, %240
  store i32 %242, ptr %10, align 4, !tbaa !9
  %243 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %243, ptr %5, align 4, !tbaa !9
  %244 = load i32, ptr %9, align 4, !tbaa !9
  %245 = load i32, ptr %10, align 4, !tbaa !9
  %246 = icmp ne i32 %244, %245
  %247 = zext i1 %246 to i32
  store i32 %247, ptr %9, align 4, !tbaa !9
  %248 = load i32, ptr %9, align 4, !tbaa !9
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %251

250:                                              ; preds = %237
  br label %39

251:                                              ; preds = %237
  br label %270

252:                                              ; preds = %170
  store i32 0, ptr %9, align 4, !tbaa !9
  %253 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %253, ptr %5, align 4, !tbaa !9
  store i32 147180, ptr %10, align 4, !tbaa !9
  %254 = load i32, ptr %10, align 4, !tbaa !9
  %255 = load i32, ptr %9, align 4, !tbaa !9
  %256 = add i32 %255, %254
  store i32 %256, ptr %9, align 4, !tbaa !9
  %257 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %257, ptr %10, align 4, !tbaa !9
  store i32 85105, ptr %11, align 4, !tbaa !9
  %258 = load i32, ptr %11, align 4, !tbaa !9
  %259 = load i32, ptr %10, align 4, !tbaa !9
  %260 = add i32 %259, %258
  store i32 %260, ptr %10, align 4, !tbaa !9
  store i32 183, ptr %11, align 4, !tbaa !9
  %261 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %261, ptr %12, align 4, !tbaa !9
  store i32 88775, ptr %13, align 4, !tbaa !9
  %262 = load i32, ptr %13, align 4, !tbaa !9
  %263 = load i32, ptr %12, align 4, !tbaa !9
  %264 = add i32 %263, %262
  store i32 %264, ptr %12, align 4, !tbaa !9
  %265 = load ptr, ptr %3, align 8, !tbaa !5
  %266 = load i32, ptr %9, align 4, !tbaa !9
  %267 = load i32, ptr %10, align 4, !tbaa !9
  %268 = load i32, ptr %11, align 4, !tbaa !9
  %269 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %265, i32 noundef %266, i32 noundef %267, i32 noundef %268, i32 noundef %269)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

270:                                              ; preds = %251
  %271 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %271, ptr %9, align 4, !tbaa !9
  %272 = load ptr, ptr %3, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.w2c_hermes, ptr %272, i32 0, i32 6
  %274 = load i32, ptr %9, align 4, !tbaa !9
  %275 = zext i32 %274 to i64
  %276 = add i64 %275, 608
  %277 = call i32 @i32_load(ptr noundef %273, i64 noundef %276)
  store i32 %277, ptr %9, align 4, !tbaa !9
  %278 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %278, ptr %5, align 4, !tbaa !9
  br label %279

279:                                              ; preds = %270, %2
  %280 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %280, ptr %9, align 4, !tbaa !9
  %281 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %281, ptr %10, align 4, !tbaa !9
  %282 = load ptr, ptr %3, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.w2c_hermes, ptr %282, i32 0, i32 6
  %284 = load i32, ptr %9, align 4, !tbaa !9
  %285 = zext i32 %284 to i64
  %286 = add i64 %285, 612
  %287 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %283, i64 noundef %286, i32 noundef %287)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 92}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!18 = !{!14, !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

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_load8_u(ptr noundef, i64 noundef) local_unnamed_addr #2

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

; 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 i64 @i64_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: inlinehint nounwind uwtable
declare hidden i32 @i32_load16_u(ptr noundef, i64 noundef) local_unnamed_addr #2

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

.preheader:                                       ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 80
  %10 = getelementptr inbounds i8, ptr %0, i64 92
  %11 = load ptr, ptr @w2c_hermes_t0, align 8
  br label %12

12:                                               ; preds = %.preheader, %60
  %.0 = phi i32 [ %61, %60 ], [ %6, %.preheader ]
  %13 = zext i32 %.0 to i64
  %14 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %13)
  %15 = zext i32 %14 to i64
  %16 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %15)
  %17 = and i32 %16, 1
  %.not124 = icmp eq i32 %17, 0
  br i1 %.not124, label %18, label %60

18:                                               ; preds = %12
  %19 = add nuw nsw i64 %15, 4
  %20 = tail call i32 @i32_load16_u(ptr noundef nonnull %3, i64 noundef %19)
  %.not125 = icmp eq i32 %20, 52753
  br i1 %.not125, label %21, label %37

21:                                               ; preds = %18
  %22 = lshr i32 %16, 22
  %23 = and i32 %22, 1020
  %24 = add nuw nsw i32 %23, 297512
  %25 = zext nneg i32 %24 to i64
  %26 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %25)
  %27 = zext i32 %26 to i64
  %28 = tail call i64 @i64_load(ptr noundef nonnull %3, i64 noundef %27)
  %.not126 = icmp eq i64 %28, -47381121442796770
  br i1 %.not126, label %29, label %37

29:                                               ; preds = %21
  %30 = add nuw nsw i64 %27, 12
  %31 = tail call i32 @i32_load8_u(ptr noundef nonnull %3, i64 noundef %30)
  %32 = and i32 %31, 7
  %.not127 = icmp eq i32 %32, 0
  br i1 %.not127, label %33, label %37

33:                                               ; preds = %29
  %34 = add nuw nsw i64 %27, 8
  %35 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %34)
  %36 = icmp ult i32 %35, 79
  br i1 %36, label %38, label %37

37:                                               ; preds = %33, %29, %21, %18
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 157129, i32 noundef 82339, i32 noundef 152, i32 noundef 108545) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

38:                                               ; preds = %33
  %39 = add nuw nsw i64 %27, 16
  %40 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %39)
  %.not128 = icmp eq i32 %40, 0
  br i1 %.not128, label %62, label %41

41:                                               ; preds = %38
  %42 = load i32, ptr %10, align 4, !tbaa !5
  %43 = icmp ult i32 %40, %42
  br i1 %43, label %44, label %.critedge, !prof !15

44:                                               ; preds = %41
  %45 = load ptr, ptr %9, align 8, !tbaa !16
  %46 = zext i32 %40 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 !17
  %.not129 = icmp eq ptr %49, null
  br i1 %.not129, label %.critedge, label %50, !prof !19

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

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

53:                                               ; preds = %50
  %54 = load ptr, ptr %9, align 8, !tbaa !16
  %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 !17
  %58 = getelementptr inbounds i8, ptr %55, i64 16
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  tail call void %57(ptr noundef %59, i32 noundef %14, i32 noundef %1) #4
  br label %60

60:                                               ; preds = %53, %12
  %61 = add i32 %.0, 4
  %.not130 = icmp eq i32 %8, %61
  br i1 %.not130, label %63, label %12

62:                                               ; preds = %38
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 147180, i32 noundef 85105, i32 noundef 183, i32 noundef 88775) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

63:                                               ; preds = %60
  %64 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %5)
  br label %65

65:                                               ; preds = %63, %2
  %.1 = phi i32 [ %64, %63 ], [ %6, %2 ]
  tail call void @i32_store(ptr noundef nonnull %3, i64 noundef %7, i32 noundef %.1)
  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: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopSimplifyPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass