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

; 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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AESTree0x3A0x3ANode0x3A0x3Aoperator0x20new0x28unsigned0x20long0x2C0x20hermes0x3A0x3AContext0x260x2C0x20unsigned0x20long0x29(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 i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  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 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !11
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %22 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %22, ptr %14, align 4, !tbaa !9
  %23 = load i32, ptr %14, align 4, !tbaa !9
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %158

25:                                               ; preds = %4
  %26 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %26, ptr %14, align 4, !tbaa !9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 6
  %29 = load i32, ptr %14, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = add i64 %30, 12
  %32 = call i32 @i32_load(ptr noundef %28, i64 noundef %31)
  store i32 %32, ptr %14, align 4, !tbaa !9
  %33 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %33, ptr %9, align 4, !tbaa !9
  %34 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %34, ptr %15, align 4, !tbaa !9
  %35 = load i32, ptr %15, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  store i64 %36, ptr %19, align 8, !tbaa !11
  %37 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %37, ptr %12, align 8, !tbaa !11
  %38 = load i32, ptr %7, align 4, !tbaa !9
  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 = call i32 @i32_load(ptr noundef %40, i64 noundef %42)
  store i32 %43, ptr %16, align 4, !tbaa !9
  %44 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %44, ptr %17, align 4, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %17, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = call i32 @i32_load(ptr noundef %46, i64 noundef %48)
  store i32 %49, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %50 = load i32, ptr %18, align 4, !tbaa !9
  %51 = and i32 %50, 31
  %52 = load i32, ptr %17, align 4, !tbaa !9
  %53 = shl i32 %52, %51
  store i32 %53, ptr %17, align 4, !tbaa !9
  %54 = load i32, ptr %17, align 4, !tbaa !9
  %55 = load i32, ptr %16, align 4, !tbaa !9
  %56 = add i32 %55, %54
  store i32 %56, ptr %16, align 4, !tbaa !9
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.w2c_hermes, ptr %57, i32 0, i32 6
  %59 = load i32, ptr %16, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = call i32 @i32_load(ptr noundef %58, i64 noundef %60)
  store i32 %61, ptr %16, align 4, !tbaa !9
  %62 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %62, ptr %10, align 4, !tbaa !9
  %63 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %63, ptr %17, align 4, !tbaa !9
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %17, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 4
  %69 = call i32 @i32_load(ptr noundef %65, i64 noundef %68)
  store i32 %69, ptr %17, align 4, !tbaa !9
  %70 = load i32, ptr %17, align 4, !tbaa !9
  %71 = load i32, ptr %16, align 4, !tbaa !9
  %72 = add i32 %71, %70
  store i32 %72, ptr %16, align 4, !tbaa !9
  %73 = load i32, ptr %16, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  store i64 %74, ptr %20, align 8, !tbaa !11
  %75 = load i64, ptr %20, align 8, !tbaa !11
  %76 = load i64, ptr %19, align 8, !tbaa !11
  %77 = add i64 %76, %75
  store i64 %77, ptr %19, align 8, !tbaa !11
  store i64 1, ptr %20, align 8, !tbaa !11
  %78 = load i64, ptr %20, align 8, !tbaa !11
  %79 = load i64, ptr %19, align 8, !tbaa !11
  %80 = sub i64 %79, %78
  store i64 %80, ptr %19, align 8, !tbaa !11
  %81 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %81, ptr %13, align 8, !tbaa !11
  %82 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %82, ptr %20, align 8, !tbaa !11
  %83 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %83, ptr %21, align 8, !tbaa !11
  %84 = load i64, ptr %21, align 8, !tbaa !11
  %85 = icmp eq i64 %84, 0
  %86 = xor i1 %85, true
  %87 = xor i1 %86, true
  %88 = zext i1 %87 to i32
  %89 = sext i32 %88 to i64
  %90 = call i64 @llvm.expect.i64(i64 %89, i64 0)
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %92, label %94

92:                                               ; preds = %25
  call void @wasm_rt_trap(i32 noundef 3) #6
  unreachable

93:                                               ; No predecessors!
  br label %98

94:                                               ; preds = %25
  %95 = load i64, ptr %20, align 8, !tbaa !11
  %96 = load i64, ptr %21, align 8, !tbaa !11
  %97 = urem i64 %95, %96
  br label %98

98:                                               ; preds = %94, %93
  %99 = phi i64 [ 0, %93 ], [ %97, %94 ]
  store i64 %99, ptr %20, align 8, !tbaa !11
  %100 = load i64, ptr %20, align 8, !tbaa !11
  %101 = load i64, ptr %19, align 8, !tbaa !11
  %102 = sub i64 %101, %100
  store i64 %102, ptr %19, align 8, !tbaa !11
  %103 = load i64, ptr %19, align 8, !tbaa !11
  %104 = trunc i64 %103 to i32
  store i32 %104, ptr %15, align 4, !tbaa !9
  %105 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %105, ptr %11, align 4, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %106, ptr %16, align 4, !tbaa !9
  %107 = load i32, ptr %16, align 4, !tbaa !9
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = sub i32 %108, %107
  store i32 %109, ptr %15, align 4, !tbaa !9
  %110 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %110, ptr %10, align 4, !tbaa !9
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, 4
  %116 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %112, i64 noundef %115, i32 noundef %116)
  %117 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %117, ptr %14, align 4, !tbaa !9
  store i32 262144, ptr %15, align 4, !tbaa !9
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = icmp ule i32 %118, %119
  %121 = zext i1 %120 to i32
  store i32 %121, ptr %14, align 4, !tbaa !9
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %139

124:                                              ; preds = %98
  %125 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %125, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %126, ptr %15, align 4, !tbaa !9
  %127 = load i32, ptr %15, align 4, !tbaa !9
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = add i32 %128, %127
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %130, ptr %10, align 4, !tbaa !9
  store i32 262145, ptr %15, align 4, !tbaa !9
  %131 = load i32, ptr %14, align 4, !tbaa !9
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = icmp ult i32 %131, %132
  %134 = zext i1 %133 to i32
  store i32 %134, ptr %14, align 4, !tbaa !9
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %124
  br label %148

138:                                              ; preds = %124
  br label %139

139:                                              ; preds = %138, %98
  %140 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %140, ptr %14, align 4, !tbaa !9
  %141 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %141, ptr %15, align 4, !tbaa !9
  %142 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %142, ptr %16, align 4, !tbaa !9
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = load i32, ptr %15, align 4, !tbaa !9
  %146 = load i32, ptr %16, align 4, !tbaa !9
  %147 = call i32 @w2c_hermes_hermes0x3A0x3ABacktrackingBumpPtrAllocator0x3A0x3AallocateNewSlab0x28unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %143, i32 noundef %144, i32 noundef %145, i32 noundef %146)
  store i32 %147, ptr %14, align 4, !tbaa !9
  br label %175

148:                                              ; preds = %137
  %149 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %149, ptr %14, align 4, !tbaa !9
  %150 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %150, ptr %15, align 4, !tbaa !9
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %14, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 4
  %156 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %152, i64 noundef %155, i32 noundef %156)
  %157 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %157, ptr %14, align 4, !tbaa !9
  br label %175

158:                                              ; preds = %4
  store i32 0, ptr %14, align 4, !tbaa !9
  store i32 200250, ptr %15, align 4, !tbaa !9
  %159 = load i32, ptr %15, align 4, !tbaa !9
  %160 = load i32, ptr %14, align 4, !tbaa !9
  %161 = add i32 %160, %159
  store i32 %161, ptr %14, align 4, !tbaa !9
  %162 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %162, ptr %15, align 4, !tbaa !9
  store i32 78882, ptr %16, align 4, !tbaa !9
  %163 = load i32, ptr %16, align 4, !tbaa !9
  %164 = load i32, ptr %15, align 4, !tbaa !9
  %165 = add i32 %164, %163
  store i32 %165, ptr %15, align 4, !tbaa !9
  store i32 692, ptr %16, align 4, !tbaa !9
  %166 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %166, ptr %17, align 4, !tbaa !9
  store i32 64337, ptr %18, align 4, !tbaa !9
  %167 = load i32, ptr %18, align 4, !tbaa !9
  %168 = load i32, ptr %17, align 4, !tbaa !9
  %169 = add i32 %168, %167
  store i32 %169, ptr %17, align 4, !tbaa !9
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = load i32, ptr %14, align 4, !tbaa !9
  %172 = load i32, ptr %15, align 4, !tbaa !9
  %173 = load i32, ptr %16, align 4, !tbaa !9
  %174 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %170, i32 noundef %171, i32 noundef %172, i32 noundef %173, i32 noundef %174)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

175:                                              ; preds = %148, %139
  %176 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  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 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 %176
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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"

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3ABacktrackingBumpPtrAllocator0x3A0x3AallocateNewSlab0x28unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AESTree0x3A0x3ANode0x3A0x3Aoperator0x20new0x28unsigned0x20long0x2C0x20hermes0x3A0x3AContext0x260x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %35, label %5

5:                                                ; preds = %4
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %2 to i64
  %8 = add nuw nsw i64 %7, 12
  %9 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %8)
  %10 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %7)
  %11 = zext i32 %9 to i64
  %12 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %11)
  %13 = shl i32 %12, 2
  %14 = add i32 %13, %10
  %15 = zext i32 %14 to i64
  %16 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %15)
  %17 = add nuw nsw i64 %11, 4
  %18 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %17)
  %19 = zext i32 %3 to i64
  %20 = add i32 %18, %16
  %21 = zext i32 %20 to i64
  %22 = add nsw i64 %19, -1
  %23 = add nuw nsw i64 %22, %21
  %24 = urem i64 %23, %19
  %25 = sub nsw i64 %23, %24
  %26 = trunc i64 %25 to i32
  %27 = sub i32 %26, %16
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %17, i32 noundef %27)
  %28 = icmp ult i32 %1, 262145
  br i1 %28, label %29, label %32

29:                                               ; preds = %5
  %30 = add i32 %27, %1
  %31 = icmp ult i32 %30, 262145
  br i1 %31, label %34, label %32

32:                                               ; preds = %29, %5
  %33 = tail call i32 @w2c_hermes_hermes0x3A0x3ABacktrackingBumpPtrAllocator0x3A0x3AallocateNewSlab0x28unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %2, i32 noundef %1, i32 noundef %3)
  br label %36

34:                                               ; preds = %29
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %17, i32 noundef %30)
  br label %36

35:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 200250, i32 noundef 78882, i32 noundef 692, i32 noundef 64337)
  tail call void @wasm_rt_trap(i32 noundef 5) #3
  unreachable

36:                                               ; preds = %34, %32
  %.0 = phi i32 [ %26, %34 ], [ %33, %32 ]
  ret i32 %.0
}

attributes #0 = { 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 #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 = { 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 }

!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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass