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

; 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_t1 = external constant ptr, align 8

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

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

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

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

51:                                               ; preds = %4
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 7
  %54 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  %56 = load i32, ptr %16, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %55, i64 %57
  %59 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !19
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %74

62:                                               ; preds = %51
  %63 = load ptr, ptr @w2c_hermes_t1, align 8, !tbaa !5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 7
  %66 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  %68 = load i32, ptr %16, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %67, i64 %69
  %71 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !21
  %73 = call zeroext i1 @func_types_eq(ptr noundef %63, ptr noundef %72)
  br label %74

74:                                               ; preds = %62, %51, %4
  %75 = phi i1 [ false, %51 ], [ false, %4 ], [ %73, %62 ]
  %76 = xor i1 %75, true
  %77 = xor i1 %76, true
  %78 = zext i1 %77 to i32
  %79 = sext i32 %78 to i64
  %80 = call i64 @llvm.expect.i64(i64 %79, i64 1)
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %84, label %82

82:                                               ; preds = %74
  call void @wasm_rt_trap(i32 noundef 6) #6
  unreachable

83:                                               ; No predecessors!
  br label %84

84:                                               ; preds = %83, %74
  %85 = phi i1 [ true, %74 ], [ false, %83 ]
  %86 = zext i1 %85 to i32
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.w2c_hermes, ptr %87, i32 0, i32 7
  %89 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  %91 = load i32, ptr %16, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %90, i64 %92
  %94 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %93, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !19
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 7
  %98 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %97, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !18
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %99, i64 %101
  %103 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !22
  %105 = load i32, ptr %13, align 4, !tbaa !9
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = load i32, ptr %15, align 4, !tbaa !9
  call void %95(ptr noundef %104, i32 noundef %105, i32 noundef %106, i32 noundef %107)
  store i32 -1, ptr %13, align 4, !tbaa !9
  %108 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %108, ptr %10, align 4, !tbaa !9
  %109 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %109, ptr %13, align 4, !tbaa !9
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.w2c_hermes, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = add i64 %113, 12
  %115 = call i32 @i32_load(ptr noundef %111, i64 noundef %114)
  store i32 %115, ptr %13, align 4, !tbaa !9
  %116 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %116, ptr %12, align 4, !tbaa !9
  %117 = load i32, ptr %13, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  %119 = xor i1 %118, true
  %120 = zext i1 %119 to i32
  store i32 %120, ptr %13, align 4, !tbaa !9
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %84
  br label %204

124:                                              ; preds = %84
  store i32 0, ptr %13, align 4, !tbaa !9
  %125 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %125, ptr %6, align 4, !tbaa !9
  %126 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %126, ptr %13, align 4, !tbaa !9
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.w2c_hermes, ptr %127, i32 0, i32 6
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = add i64 %130, 8
  %132 = call i32 @i32_load(ptr noundef %128, i64 noundef %131)
  store i32 %132, ptr %13, align 4, !tbaa !9
  %133 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %133, ptr %11, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %202, %124
  %135 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %135, ptr %13, align 4, !tbaa !9
  %136 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %136, ptr %14, align 4, !tbaa !9
  store i32 12, ptr %15, align 4, !tbaa !9
  %137 = load i32, ptr %15, align 4, !tbaa !9
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = mul i32 %138, %137
  store i32 %139, ptr %14, align 4, !tbaa !9
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = add i32 %141, %140
  store i32 %142, ptr %13, align 4, !tbaa !9
  %143 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %143, ptr %7, align 4, !tbaa !9
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.w2c_hermes, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %13, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = call i32 @i32_load(ptr noundef %145, i64 noundef %147)
  store i32 %148, ptr %13, align 4, !tbaa !9
  %149 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %149, ptr %14, align 4, !tbaa !9
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = icmp ugt i32 %150, %151
  %153 = zext i1 %152 to i32
  store i32 %153, ptr %13, align 4, !tbaa !9
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %157

156:                                              ; preds = %134
  br label %189

157:                                              ; preds = %134
  %158 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %158, ptr %13, align 4, !tbaa !9
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %13, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = add i64 %162, 4
  %164 = call i32 @i32_load(ptr noundef %160, i64 noundef %163)
  store i32 %164, ptr %13, align 4, !tbaa !9
  %165 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %165, ptr %14, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = icmp ule i32 %166, %167
  %169 = zext i1 %168 to i32
  store i32 %169, ptr %13, align 4, !tbaa !9
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %173

172:                                              ; preds = %157
  br label %189

173:                                              ; preds = %157
  %174 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %174, ptr %13, align 4, !tbaa !9
  %175 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %175, ptr %14, align 4, !tbaa !9
  store i32 12, ptr %15, align 4, !tbaa !9
  %176 = load i32, ptr %15, align 4, !tbaa !9
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = mul i32 %177, %176
  store i32 %178, ptr %14, align 4, !tbaa !9
  %179 = load i32, ptr %14, align 4, !tbaa !9
  %180 = load i32, ptr %13, align 4, !tbaa !9
  %181 = add i32 %180, %179
  store i32 %181, ptr %13, align 4, !tbaa !9
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.w2c_hermes, ptr %182, i32 0, i32 6
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = add i64 %185, 8
  %187 = call i32 @i32_load(ptr noundef %183, i64 noundef %186)
  store i32 %187, ptr %13, align 4, !tbaa !9
  %188 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %188, ptr %10, align 4, !tbaa !9
  br label %204

189:                                              ; preds = %172, %156
  %190 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %190, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %191 = load i32, ptr %14, align 4, !tbaa !9
  %192 = load i32, ptr %13, align 4, !tbaa !9
  %193 = add i32 %192, %191
  store i32 %193, ptr %13, align 4, !tbaa !9
  %194 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %194, ptr %6, align 4, !tbaa !9
  %195 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %195, ptr %14, align 4, !tbaa !9
  %196 = load i32, ptr %13, align 4, !tbaa !9
  %197 = load i32, ptr %14, align 4, !tbaa !9
  %198 = icmp ne i32 %196, %197
  %199 = zext i1 %198 to i32
  store i32 %199, ptr %13, align 4, !tbaa !9
  %200 = load i32, ptr %13, align 4, !tbaa !9
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %203

202:                                              ; preds = %189
  br label %134

203:                                              ; preds = %189
  br label %204

204:                                              ; preds = %203, %173, %123
  %205 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %205, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %206 = load i32, ptr %14, align 4, !tbaa !9
  %207 = load i32, ptr %13, align 4, !tbaa !9
  %208 = add i32 %207, %206
  store i32 %208, ptr %13, align 4, !tbaa !9
  %209 = load i32, ptr %13, align 4, !tbaa !9
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.w2c_hermes, ptr %210, i32 0, i32 3
  store i32 %209, ptr %211, align 8, !tbaa !11
  %212 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %212, ptr %13, align 4, !tbaa !9
  %213 = load i32, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret i32 %213
}

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

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

19:                                               ; preds = %4
  %20 = load ptr, ptr %15, align 8, !tbaa !17
  %21 = zext i32 %14 to i64
  %22 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %20, i64 %21
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !18
  %.not = icmp eq ptr %24, null
  br i1 %.not, label %.critedge, label %25, !prof !20

25:                                               ; preds = %19
  %26 = load ptr, ptr @w2c_hermes_t1, align 8, !tbaa !21
  %27 = load ptr, ptr %22, align 8, !tbaa !22
  %28 = tail call zeroext i1 @func_types_eq(ptr noundef %26, ptr noundef %27)
  br i1 %28, label %29, label %.critedge, !prof !16

.critedge:                                        ; preds = %19, %4, %25
  tail call void @wasm_rt_trap(i32 noundef 6) #3
  unreachable

29:                                               ; preds = %25
  %30 = load ptr, ptr %15, align 8, !tbaa !17
  %31 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %30, i64 %21
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load ptr, ptr %32, align 8, !tbaa !18
  %34 = getelementptr inbounds i8, ptr %31, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !23
  tail call void %33(ptr noundef %35, i32 noundef %8, i32 noundef %1, i32 noundef %2) #4
  %36 = zext i32 %7 to i64
  %37 = add nuw nsw i64 %36, 12
  %38 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %37)
  %.not88 = icmp eq i32 %38, 0
  br i1 %.not88, label %.loopexit, label %39

39:                                               ; preds = %29
  %40 = add nuw nsw i64 %36, 8
  %41 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %40)
  %42 = zext i32 %38 to i64
  br label %43

43:                                               ; preds = %56, %39
  %indvars.iv = phi i64 [ %indvars.iv.next, %56 ], [ 0, %39 ]
  %44 = trunc nuw i64 %indvars.iv to i32
  %45 = mul i32 %44, 12
  %46 = add i32 %45, %41
  %47 = zext i32 %46 to i64
  %48 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %47)
  %49 = icmp ugt i32 %48, %3
  br i1 %49, label %56, label %50

50:                                               ; preds = %43
  %51 = add nuw nsw i64 %47, 4
  %52 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %51)
  %.not89 = icmp ugt i32 %52, %3
  br i1 %.not89, label %53, label %56

53:                                               ; preds = %50
  %54 = add nuw nsw i64 %47, 8
  %55 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %54)
  br label %.loopexit

56:                                               ; preds = %50, %43
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not90 = icmp eq i64 %indvars.iv.next, %42
  br i1 %.not90, label %.loopexit, label %43

.loopexit:                                        ; preds = %56, %29, %53
  %.0 = phi i32 [ -1, %29 ], [ %55, %53 ], [ -1, %56 ]
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret i32 %.0
}

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

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

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


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