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

; 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: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) #1

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

; 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) #2

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

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

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

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

43:                                               ; preds = %28
  br label %163

44:                                               ; preds = %28
  store i32 0, ptr %8, align 4, !tbaa !9
  %45 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %45, ptr %6, align 4, !tbaa !9
  store i32 117789, ptr %9, align 4, !tbaa !9
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = add i32 %47, %46
  store i32 %48, ptr %8, align 4, !tbaa !9
  %49 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %49, ptr %9, align 4, !tbaa !9
  store i32 79572, ptr %10, align 4, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = add i32 %51, %50
  store i32 %52, ptr %9, align 4, !tbaa !9
  store i32 74, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %53, ptr %11, align 4, !tbaa !9
  store i32 88407, ptr %12, align 4, !tbaa !9
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = add i32 %55, %54
  store i32 %56, ptr %11, align 4, !tbaa !9
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load i32, ptr %8, align 4, !tbaa !9
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %57, i32 noundef %58, i32 noundef %59, i32 noundef %60, i32 noundef %61)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

62:                                               ; preds = %3
  %63 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %63, ptr %8, align 4, !tbaa !9
  %64 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %64, ptr %9, align 4, !tbaa !9
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = icmp ule i32 %65, %66
  %68 = zext i1 %67 to i32
  store i32 %68, ptr %8, align 4, !tbaa !9
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %62
  br label %172

72:                                               ; preds = %62
  %73 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %73, ptr %8, align 4, !tbaa !9
  %74 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %74, ptr %9, align 4, !tbaa !9
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 8
  %80 = call i32 @i32_load(ptr noundef %76, i64 noundef %79)
  store i32 %80, ptr %9, align 4, !tbaa !9
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = icmp ugt i32 %81, %82
  %84 = zext i1 %83 to i32
  store i32 %84, ptr %8, align 4, !tbaa !9
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %107

87:                                               ; preds = %72
  %88 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %88, ptr %8, align 4, !tbaa !9
  %89 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %89, ptr %9, align 4, !tbaa !9
  store i32 12, ptr %10, align 4, !tbaa !9
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = add i32 %91, %90
  store i32 %92, ptr %9, align 4, !tbaa !9
  %93 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %93, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !9
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = load i32, ptr %8, align 4, !tbaa !9
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %94, i32 noundef %95, i32 noundef %96, i32 noundef %97, i32 noundef %98)
  %99 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %99, ptr %8, align 4, !tbaa !9
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = add i64 %103, 4
  %105 = call i32 @i32_load(ptr noundef %101, i64 noundef %104)
  store i32 %105, ptr %8, align 4, !tbaa !9
  %106 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %106, ptr %7, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %87, %72
  %108 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %108, ptr %8, align 4, !tbaa !9
  %109 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %109, ptr %9, align 4, !tbaa !9
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = load i32, ptr %9, align 4, !tbaa !9
  %112 = icmp ne i32 %110, %111
  %113 = zext i1 %112 to i32
  store i32 %113, ptr %8, align 4, !tbaa !9
  %114 = load i32, ptr %8, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %146

116:                                              ; preds = %107
  %117 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %117, ptr %8, align 4, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !9
  %118 = load i32, ptr %9, align 4, !tbaa !9
  %119 = and i32 %118, 31
  %120 = load i32, ptr %8, align 4, !tbaa !9
  %121 = shl i32 %120, %119
  store i32 %121, ptr %8, align 4, !tbaa !9
  %122 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %122, ptr %7, align 4, !tbaa !9
  %123 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %123, ptr %9, align 4, !tbaa !9
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %9, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = call i32 @i32_load(ptr noundef %125, i64 noundef %127)
  store i32 %128, ptr %9, align 4, !tbaa !9
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = load i32, ptr %8, align 4, !tbaa !9
  %131 = add i32 %130, %129
  store i32 %131, ptr %8, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !9
  %132 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %132, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %133 = load i32, ptr %11, align 4, !tbaa !9
  %134 = and i32 %133, 31
  %135 = load i32, ptr %10, align 4, !tbaa !9
  %136 = shl i32 %135, %134
  store i32 %136, ptr %10, align 4, !tbaa !9
  %137 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %137, ptr %11, align 4, !tbaa !9
  %138 = load i32, ptr %11, align 4, !tbaa !9
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = sub i32 %139, %138
  store i32 %140, ptr %10, align 4, !tbaa !9
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = load i32, ptr %8, align 4, !tbaa !9
  %143 = load i32, ptr %9, align 4, !tbaa !9
  %144 = load i32, ptr %10, align 4, !tbaa !9
  %145 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %141, i32 noundef %142, i32 noundef %143, i32 noundef %144)
  store i32 %145, ptr %8, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %116, %107
  %147 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %147, ptr %8, align 4, !tbaa !9
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 6
  %150 = load i32, ptr %8, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = add i64 %151, 8
  %153 = call i32 @i32_load(ptr noundef %149, i64 noundef %152)
  store i32 %153, ptr %8, align 4, !tbaa !9
  %154 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %154, ptr %9, align 4, !tbaa !9
  %155 = load i32, ptr %8, align 4, !tbaa !9
  %156 = load i32, ptr %9, align 4, !tbaa !9
  %157 = icmp ult i32 %155, %156
  %158 = zext i1 %157 to i32
  store i32 %158, ptr %8, align 4, !tbaa !9
  %159 = load i32, ptr %8, align 4, !tbaa !9
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %162

161:                                              ; preds = %146
  br label %173

162:                                              ; preds = %146
  br label %163

163:                                              ; preds = %162, %43
  %164 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %164, ptr %8, align 4, !tbaa !9
  %165 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %165, ptr %9, align 4, !tbaa !9
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.w2c_hermes, ptr %166, i32 0, i32 6
  %168 = load i32, ptr %8, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = add i64 %169, 4
  %171 = load i32, ptr %9, align 4, !tbaa !9
  call void @i32_store(ptr noundef %167, i64 noundef %170, i32 noundef %171)
  br label %172

172:                                              ; preds = %163, %71
  br label %191

173:                                              ; preds = %161
  store i32 0, ptr %8, align 4, !tbaa !9
  %174 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %174, ptr %6, align 4, !tbaa !9
  store i32 117789, ptr %9, align 4, !tbaa !9
  %175 = load i32, ptr %9, align 4, !tbaa !9
  %176 = load i32, ptr %8, align 4, !tbaa !9
  %177 = add i32 %176, %175
  store i32 %177, ptr %8, align 4, !tbaa !9
  %178 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %178, ptr %9, align 4, !tbaa !9
  store i32 79572, ptr %10, align 4, !tbaa !9
  %179 = load i32, ptr %10, align 4, !tbaa !9
  %180 = load i32, ptr %9, align 4, !tbaa !9
  %181 = add i32 %180, %179
  store i32 %181, ptr %9, align 4, !tbaa !9
  store i32 74, ptr %10, align 4, !tbaa !9
  %182 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %182, ptr %11, align 4, !tbaa !9
  store i32 88407, ptr %12, align 4, !tbaa !9
  %183 = load i32, ptr %12, align 4, !tbaa !9
  %184 = load i32, ptr %11, align 4, !tbaa !9
  %185 = add i32 %184, %183
  store i32 %185, ptr %11, align 4, !tbaa !9
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = load i32, ptr %8, align 4, !tbaa !9
  %188 = load i32, ptr %9, align 4, !tbaa !9
  %189 = load i32, ptr %10, align 4, !tbaa !9
  %190 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %186, i32 noundef %187, i32 noundef %188, i32 noundef %189, i32 noundef %190)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

191:                                              ; preds = %172
  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
}

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 = { 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 = { "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}


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

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

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

declare 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 void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

9:                                                ; preds = %3
  %10 = add nuw nsw i64 %5, 8
  %11 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %10)
  %.not107 = icmp ult i32 %11, %2
  br i1 %.not107, label %12, label %32

12:                                               ; preds = %9
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 117789, i32 noundef 79572, i32 noundef 74, i32 noundef 88407) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

13:                                               ; preds = %3
  %.not = icmp ult i32 %7, %2
  br i1 %.not, label %14, label %34

14:                                               ; preds = %13
  %15 = add nuw nsw i64 %5, 8
  %16 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %15)
  %17 = icmp ult i32 %16, %2
  br i1 %17, label %18, label %21

18:                                               ; preds = %14
  %19 = add i32 %1, 12
  tail call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %19, i32 noundef %2, i32 noundef 2)
  %20 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  br label %21

21:                                               ; preds = %18, %14
  %.0 = phi i32 [ %20, %18 ], [ %7, %14 ]
  %.not106 = icmp eq i32 %.0, %2
  br i1 %.not106, label %29, label %22

22:                                               ; preds = %21
  %23 = shl i32 %.0, 1
  %24 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  %25 = add i32 %24, %23
  %26 = sub i32 %2, %.0
  %27 = shl i32 %26, 1
  %28 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef %0, i32 noundef %25, i32 noundef 0, i32 noundef %27) #4
  br label %29

29:                                               ; preds = %22, %21
  %30 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %15)
  %31 = icmp ult i32 %30, %2
  br i1 %31, label %33, label %32

32:                                               ; preds = %29, %9
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef %2)
  br label %34

33:                                               ; preds = %29
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 117789, i32 noundef 79572, i32 noundef 74, i32 noundef 88407) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

34:                                               ; preds = %32, %13
  ret void
}

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 = { "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