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

; 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 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: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierInternal0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i32 noundef %1, i64 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %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 %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i64 %2, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %16 = load i64, ptr %6, align 8, !tbaa !11
  store i64 %16, ptr %14, align 8, !tbaa !11
  store i64 -844424930131968, ptr %15, align 8, !tbaa !11
  %17 = load i64, ptr %14, align 8, !tbaa !11
  %18 = load i64, ptr %15, align 8, !tbaa !11
  %19 = icmp uge i64 %17, %18
  %20 = zext i1 %19 to i32
  store i32 %20, ptr %9, align 4, !tbaa !9
  %21 = load i32, ptr %9, align 4, !tbaa !9
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %31

23:                                               ; preds = %3
  %24 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %24, ptr %9, align 4, !tbaa !9
  %25 = load i64, ptr %6, align 8, !tbaa !11
  store i64 %25, ptr %15, align 8, !tbaa !11
  %26 = load i64, ptr %15, align 8, !tbaa !11
  %27 = trunc i64 %26 to i32
  store i32 %27, ptr %10, align 4, !tbaa !9
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierInternal0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x29(ptr noundef %28, i32 noundef %29, i32 noundef %30)
  br label %188

31:                                               ; preds = %3
  %32 = load i64, ptr %6, align 8, !tbaa !11
  store i64 %32, ptr %14, align 8, !tbaa !11
  store i64 47, ptr %15, align 8, !tbaa !11
  %33 = load i64, ptr %14, align 8, !tbaa !11
  %34 = load i64, ptr %15, align 8, !tbaa !11
  %35 = and i64 %34, 63
  %36 = ashr i64 %33, %35
  store i64 %36, ptr %14, align 8, !tbaa !11
  %37 = load i64, ptr %14, align 8, !tbaa !11
  %38 = trunc i64 %37 to i32
  store i32 %38, ptr %9, align 4, !tbaa !9
  store i32 -9, ptr %10, align 4, !tbaa !9
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = icmp ne i32 %39, %40
  %42 = zext i1 %41 to i32
  store i32 %42, ptr %9, align 4, !tbaa !9
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %31
  br label %151

46:                                               ; preds = %31
  %47 = load i64, ptr %6, align 8, !tbaa !11
  store i64 %47, ptr %14, align 8, !tbaa !11
  %48 = load i64, ptr %14, align 8, !tbaa !11
  %49 = trunc i64 %48 to i32
  store i32 %49, ptr %9, align 4, !tbaa !9
  %50 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %50, ptr %7, align 4, !tbaa !9
  store i32 536870912, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = icmp uge i32 %51, %52
  %54 = zext i1 %53 to i32
  store i32 %54, ptr %9, align 4, !tbaa !9
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %46
  br label %152

58:                                               ; preds = %46
  %59 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %59, ptr %9, align 4, !tbaa !9
  store i32 536870909, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = icmp ugt i32 %60, %61
  %63 = zext i1 %62 to i32
  store i32 %63, ptr %9, align 4, !tbaa !9
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %58
  br label %151

67:                                               ; preds = %58
  %68 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %68, ptr %9, align 4, !tbaa !9
  store i32 268435455, ptr %10, align 4, !tbaa !9
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = and i32 %70, %69
  store i32 %71, ptr %9, align 4, !tbaa !9
  %72 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %72, ptr %8, align 4, !tbaa !9
  %73 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %73, ptr %10, align 4, !tbaa !9
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.w2c_hermes, ptr %74, i32 0, i32 6
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = add i64 %77, 4056
  %79 = call i32 @i32_load(ptr noundef %75, i64 noundef %78)
  store i32 %79, ptr %10, align 4, !tbaa !9
  %80 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %80, ptr %5, align 4, !tbaa !9
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.w2c_hermes, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = add i64 %84, 580
  %86 = call i32 @i32_load(ptr noundef %82, i64 noundef %85)
  store i32 %86, ptr %10, align 4, !tbaa !9
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = icmp uge i32 %87, %88
  %90 = zext i1 %89 to i32
  store i32 %90, ptr %9, align 4, !tbaa !9
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %67
  br label %151

94:                                               ; preds = %67
  %95 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %95, ptr %9, align 4, !tbaa !9
  store i32 5, ptr %10, align 4, !tbaa !9
  %96 = load i32, ptr %10, align 4, !tbaa !9
  %97 = and i32 %96, 31
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = lshr i32 %98, %97
  store i32 %99, ptr %9, align 4, !tbaa !9
  %100 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %100, ptr %8, align 4, !tbaa !9
  %101 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %101, ptr %10, align 4, !tbaa !9
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.w2c_hermes, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %10, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = add i64 %105, 576
  %107 = call i32 @i32_load(ptr noundef %103, i64 noundef %106)
  store i32 %107, ptr %10, align 4, !tbaa !9
  %108 = load i32, ptr %9, align 4, !tbaa !9
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = icmp uge i32 %108, %109
  %111 = zext i1 %110 to i32
  store i32 %111, ptr %9, align 4, !tbaa !9
  %112 = load i32, ptr %9, align 4, !tbaa !9
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %94
  br label %170

115:                                              ; preds = %94
  %116 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %116, ptr %9, align 4, !tbaa !9
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 572
  %122 = call i32 @i32_load(ptr noundef %118, i64 noundef %121)
  store i32 %122, ptr %9, align 4, !tbaa !9
  %123 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %123, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !9
  %124 = load i32, ptr %11, align 4, !tbaa !9
  %125 = and i32 %124, 31
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = shl i32 %126, %125
  store i32 %127, ptr %10, align 4, !tbaa !9
  %128 = load i32, ptr %10, align 4, !tbaa !9
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = add i32 %129, %128
  store i32 %130, ptr %9, align 4, !tbaa !9
  %131 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %131, ptr %5, align 4, !tbaa !9
  %132 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %132, ptr %10, align 4, !tbaa !9
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.w2c_hermes, ptr %133, i32 0, i32 6
  %135 = load i32, ptr %10, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = call i32 @i32_load(ptr noundef %134, i64 noundef %136)
  store i32 %137, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %138 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %138, ptr %12, align 4, !tbaa !9
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = and i32 %139, 31
  %141 = load i32, ptr %11, align 4, !tbaa !9
  %142 = shl i32 %141, %140
  store i32 %142, 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 = or i32 %144, %143
  store i32 %145, ptr %10, align 4, !tbaa !9
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.w2c_hermes, ptr %146, i32 0, i32 6
  %148 = load i32, ptr %9, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %147, i64 noundef %149, i32 noundef %150)
  br label %151

151:                                              ; preds = %115, %93, %66, %45
  br label %188

152:                                              ; preds = %57
  store i32 0, ptr %9, align 4, !tbaa !9
  %153 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %153, ptr %5, align 4, !tbaa !9
  store i32 170731, ptr %10, align 4, !tbaa !9
  %154 = load i32, ptr %10, align 4, !tbaa !9
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = add i32 %155, %154
  store i32 %156, ptr %9, align 4, !tbaa !9
  %157 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %157, ptr %10, align 4, !tbaa !9
  store i32 86175, ptr %11, align 4, !tbaa !9
  %158 = load i32, ptr %11, align 4, !tbaa !9
  %159 = load i32, ptr %10, align 4, !tbaa !9
  %160 = add i32 %159, %158
  store i32 %160, ptr %10, align 4, !tbaa !9
  store i32 116, ptr %11, align 4, !tbaa !9
  %161 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %161, ptr %12, align 4, !tbaa !9
  store i32 91383, ptr %13, align 4, !tbaa !9
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = load i32, ptr %12, align 4, !tbaa !9
  %164 = add i32 %163, %162
  store i32 %164, ptr %12, align 4, !tbaa !9
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = load i32, ptr %9, align 4, !tbaa !9
  %167 = load i32, ptr %10, align 4, !tbaa !9
  %168 = load i32, ptr %11, align 4, !tbaa !9
  %169 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %165, i32 noundef %166, i32 noundef %167, i32 noundef %168, i32 noundef %169)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

170:                                              ; preds = %114
  store i32 0, ptr %9, align 4, !tbaa !9
  %171 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %171, ptr %5, align 4, !tbaa !9
  store i32 202974, ptr %10, align 4, !tbaa !9
  %172 = load i32, ptr %10, align 4, !tbaa !9
  %173 = load i32, ptr %9, align 4, !tbaa !9
  %174 = add i32 %173, %172
  store i32 %174, ptr %9, align 4, !tbaa !9
  %175 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %175, ptr %10, align 4, !tbaa !9
  store i32 82833, ptr %11, align 4, !tbaa !9
  %176 = load i32, ptr %11, align 4, !tbaa !9
  %177 = load i32, ptr %10, align 4, !tbaa !9
  %178 = add i32 %177, %176
  store i32 %178, ptr %10, align 4, !tbaa !9
  store i32 418, ptr %11, align 4, !tbaa !9
  %179 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %179, ptr %12, align 4, !tbaa !9
  store i32 108367, ptr %13, align 4, !tbaa !9
  %180 = load i32, ptr %13, align 4, !tbaa !9
  %181 = load i32, ptr %12, align 4, !tbaa !9
  %182 = add i32 %181, %180
  store i32 %182, ptr %12, align 4, !tbaa !9
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = load i32, ptr %9, align 4, !tbaa !9
  %185 = load i32, ptr %10, align 4, !tbaa !9
  %186 = load i32, ptr %11, align 4, !tbaa !9
  %187 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %183, i32 noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %187)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

188:                                              ; preds = %151, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierInternal0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x29(ptr noundef, i32 noundef, i32 noundef) #4

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 = { 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}


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

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 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: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierInternal0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i32 noundef %1, i64 noundef %2) local_unnamed_addr #3 {
  %4 = icmp ugt i64 %2, -844424930131969
  br i1 %4, label %5, label %7

5:                                                ; preds = %3
  %6 = trunc i64 %2 to i32
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierInternal0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %6)
  br label %38

7:                                                ; preds = %3
  %.mask = and i64 %2, -140737488355328
  %.not = icmp eq i64 %.mask, -1266637395197952
  br i1 %.not, label %8, label %38

8:                                                ; preds = %7
  %9 = trunc i64 %2 to i32
  %10 = icmp ugt i32 %9, 536870911
  br i1 %10, label %36, label %11

11:                                               ; preds = %8
  %12 = icmp ugt i32 %9, 536870909
  br i1 %12, label %38, label %13

13:                                               ; preds = %11
  %14 = and i32 %9, 268435455
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = zext i32 %1 to i64
  %17 = add nuw nsw i64 %16, 4056
  %18 = tail call i32 @i32_load(ptr noundef nonnull %15, i64 noundef %17)
  %19 = zext i32 %18 to i64
  %20 = add nuw nsw i64 %19, 580
  %21 = tail call i32 @i32_load(ptr noundef nonnull %15, i64 noundef %20)
  %.not100 = icmp ult i32 %14, %21
  br i1 %.not100, label %22, label %38

22:                                               ; preds = %13
  %23 = lshr i32 %14, 5
  %24 = add nuw nsw i64 %19, 576
  %25 = tail call i32 @i32_load(ptr noundef nonnull %15, i64 noundef %24)
  %.not101 = icmp ult i32 %23, %25
  br i1 %.not101, label %26, label %37

26:                                               ; preds = %22
  %27 = add nuw nsw i64 %19, 572
  %28 = tail call i32 @i32_load(ptr noundef nonnull %15, i64 noundef %27)
  %29 = shl nuw nsw i32 %23, 2
  %30 = add i32 %28, %29
  %31 = zext i32 %30 to i64
  %32 = tail call i32 @i32_load(ptr noundef nonnull %15, i64 noundef %31)
  %33 = and i32 %9, 31
  %34 = shl nuw i32 1, %33
  %35 = or i32 %32, %34
  tail call void @i32_store(ptr noundef nonnull %15, i64 noundef %31, i32 noundef %35)
  br label %38

36:                                               ; preds = %8
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 170731, i32 noundef 86175, i32 noundef 116, i32 noundef 91383) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

37:                                               ; preds = %22
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 202974, i32 noundef 82833, i32 noundef 418, i32 noundef 108367) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

38:                                               ; preds = %26, %7, %11, %13, %5
  ret void
}

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

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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass