; LLVM IR from FedericaPaoli1/stm32-speech-recognition-and-traduction :: Drivers/CMSIS/DSP/Source/FilteringFunctions (arm_conv_fast_opt_q15)

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

; Function Attrs: nounwind uwtable
define dso_local void @arm_conv_fast_opt_q15(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %27, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %28, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %29, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = icmp uge i32 %30, %31
  br i1 %32, label %33, label %36

33:                                               ; preds = %7
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %34, ptr %16, align 8, !tbaa !5
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %35, ptr %17, align 8, !tbaa !5
  br label %42

36:                                               ; preds = %7
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %37, ptr %16, align 8, !tbaa !5
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %38, ptr %17, align 8, !tbaa !5
  %39 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %39, ptr %23, align 4, !tbaa !9
  %40 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %40, ptr %11, align 4, !tbaa !9
  %41 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %41, ptr %9, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %36, %33
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  %44 = load i32, ptr %11, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds i16, ptr %43, i64 %45
  %47 = getelementptr inbounds i16, ptr %46, i64 -1
  store ptr %47, ptr %20, align 8, !tbaa !5
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %48, ptr %21, align 8, !tbaa !5
  %49 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %49, ptr %24, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %53, %42
  %51 = load i32, ptr %24, align 4, !tbaa !9
  %52 = icmp ugt i32 %51, 0
  br i1 %52, label %53, label %61

53:                                               ; preds = %50
  %54 = load ptr, ptr %21, align 8, !tbaa !5
  %55 = getelementptr inbounds i16, ptr %54, i32 1
  store ptr %55, ptr %21, align 8, !tbaa !5
  %56 = load i16, ptr %54, align 2, !tbaa !11
  %57 = load ptr, ptr %20, align 8, !tbaa !5
  %58 = getelementptr inbounds i16, ptr %57, i32 -1
  store ptr %58, ptr %20, align 8, !tbaa !5
  store i16 %56, ptr %57, align 2, !tbaa !11
  %59 = load i32, ptr %24, align 4, !tbaa !9
  %60 = add i32 %59, -1
  store i32 %60, ptr %24, align 4, !tbaa !9
  br label %50, !llvm.loop !13

61:                                               ; preds = %50
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %62, ptr %19, align 8, !tbaa !5
  %63 = load ptr, ptr %19, align 8, !tbaa !5
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = sub i32 %64, 1
  call void @arm_fill_q15(i16 noundef signext 0, ptr noundef %63, i32 noundef %65)
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = sub i32 %66, 1
  %68 = load ptr, ptr %19, align 8, !tbaa !5
  %69 = zext i32 %67 to i64
  %70 = getelementptr inbounds i16, ptr %68, i64 %69
  store ptr %70, ptr %19, align 8, !tbaa !5
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = load ptr, ptr %19, align 8, !tbaa !5
  %73 = load i32, ptr %9, align 4, !tbaa !9
  call void @arm_copy_q15(ptr noundef %71, ptr noundef %72, i32 noundef %73)
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  %76 = zext i32 %74 to i64
  %77 = getelementptr inbounds i16, ptr %75, i64 %76
  store ptr %77, ptr %19, align 8, !tbaa !5
  %78 = load ptr, ptr %19, align 8, !tbaa !5
  %79 = load i32, ptr %11, align 4, !tbaa !9
  %80 = sub i32 %79, 1
  call void @arm_fill_q15(i16 noundef signext 0, ptr noundef %78, i32 noundef %80)
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = sub i32 %81, 1
  %83 = load ptr, ptr %19, align 8, !tbaa !5
  %84 = zext i32 %82 to i64
  %85 = getelementptr inbounds i16, ptr %83, i64 %84
  store ptr %85, ptr %19, align 8, !tbaa !5
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %86, ptr %22, align 8, !tbaa !5
  %87 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %87, ptr %17, align 8, !tbaa !5
  %88 = load i32, ptr %9, align 4, !tbaa !9
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = add i32 %88, %89
  %91 = sub i32 %90, 1
  store i32 %91, ptr %25, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %147, %61
  %93 = load i32, ptr %25, align 4, !tbaa !9
  %94 = icmp ugt i32 %93, 0
  br i1 %94, label %95, label %159

95:                                               ; preds = %92
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %96, ptr %19, align 8, !tbaa !5
  store i32 0, ptr %15, align 4, !tbaa !9
  %97 = load i32, ptr %11, align 4, !tbaa !9
  %98 = lshr i32 %97, 1
  store i32 %98, ptr %26, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %102, %95
  %100 = load i32, ptr %26, align 4, !tbaa !9
  %101 = icmp ugt i32 %100, 0
  br i1 %101, label %102, label %127

102:                                              ; preds = %99
  %103 = load ptr, ptr %19, align 8, !tbaa !5
  %104 = getelementptr inbounds i16, ptr %103, i32 1
  store ptr %104, ptr %19, align 8, !tbaa !5
  %105 = load i16, ptr %103, align 2, !tbaa !11
  %106 = sext i16 %105 to i32
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = getelementptr inbounds i16, ptr %107, i32 1
  store ptr %108, ptr %17, align 8, !tbaa !5
  %109 = load i16, ptr %107, align 2, !tbaa !11
  %110 = sext i16 %109 to i32
  %111 = mul nsw i32 %106, %110
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = add nsw i32 %112, %111
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load ptr, ptr %19, align 8, !tbaa !5
  %115 = getelementptr inbounds i16, ptr %114, i32 1
  store ptr %115, ptr %19, align 8, !tbaa !5
  %116 = load i16, ptr %114, align 2, !tbaa !11
  %117 = sext i16 %116 to i32
  %118 = load ptr, ptr %17, align 8, !tbaa !5
  %119 = getelementptr inbounds i16, ptr %118, i32 1
  store ptr %119, ptr %17, align 8, !tbaa !5
  %120 = load i16, ptr %118, align 2, !tbaa !11
  %121 = sext i16 %120 to i32
  %122 = mul nsw i32 %117, %121
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = add nsw i32 %123, %122
  store i32 %124, ptr %15, align 4, !tbaa !9
  %125 = load i32, ptr %26, align 4, !tbaa !9
  %126 = add i32 %125, -1
  store i32 %126, ptr %26, align 4, !tbaa !9
  br label %99, !llvm.loop !15

127:                                              ; preds = %99
  %128 = load i32, ptr %11, align 4, !tbaa !9
  %129 = and i32 %128, 1
  store i32 %129, ptr %26, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %133, %127
  %131 = load i32, ptr %26, align 4, !tbaa !9
  %132 = icmp ugt i32 %131, 0
  br i1 %132, label %133, label %147

133:                                              ; preds = %130
  %134 = load ptr, ptr %19, align 8, !tbaa !5
  %135 = getelementptr inbounds i16, ptr %134, i32 1
  store ptr %135, ptr %19, align 8, !tbaa !5
  %136 = load i16, ptr %134, align 2, !tbaa !11
  %137 = sext i16 %136 to i32
  %138 = load ptr, ptr %17, align 8, !tbaa !5
  %139 = getelementptr inbounds i16, ptr %138, i32 1
  store ptr %139, ptr %17, align 8, !tbaa !5
  %140 = load i16, ptr %138, align 2, !tbaa !11
  %141 = sext i16 %140 to i32
  %142 = mul nsw i32 %137, %141
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = add nsw i32 %143, %142
  store i32 %144, ptr %15, align 4, !tbaa !9
  %145 = load i32, ptr %26, align 4, !tbaa !9
  %146 = add i32 %145, -1
  store i32 %146, ptr %26, align 4, !tbaa !9
  br label %130, !llvm.loop !16

147:                                              ; preds = %130
  %148 = load i32, ptr %25, align 4, !tbaa !9
  %149 = add i32 %148, -1
  store i32 %149, ptr %25, align 4, !tbaa !9
  %150 = load i32, ptr %15, align 4, !tbaa !9
  %151 = ashr i32 %150, 15
  %152 = call i32 @__SSAT(i32 noundef %151, i32 noundef 16)
  %153 = trunc i32 %152 to i16
  %154 = load ptr, ptr %18, align 8, !tbaa !5
  %155 = getelementptr inbounds i16, ptr %154, i32 1
  store ptr %155, ptr %18, align 8, !tbaa !5
  store i16 %153, ptr %154, align 2, !tbaa !11
  %156 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %156, ptr %17, align 8, !tbaa !5
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = getelementptr inbounds i16, ptr %157, i64 1
  store ptr %158, ptr %13, align 8, !tbaa !5
  br label %92, !llvm.loop !17

159:                                              ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  ret void
}

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

declare void @arm_fill_q15(i16 noundef signext, ptr noundef, i32 noundef) #2

declare void @arm_copy_q15(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__SSAT(i32 noundef, i32 noundef) #3

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

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

!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 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; 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: nounwind uwtable
define dso_local void @arm_conv_fast_opt_q15(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr nocapture noundef writeonly %4, ptr noundef %5, ptr nocapture noundef %6) local_unnamed_addr #0 {
  %.not = icmp ult i32 %1, %3
  %. = select i1 %.not, ptr %2, ptr %0
  %.83 = tail call i32 @llvm.umin.i32(i32 %1, i32 %3)
  %.84 = tail call i32 @llvm.umax.i32(i32 %1, i32 %3)
  %.not7885 = icmp eq i32 %.83, 0
  br i1 %.not7885, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %7
  %8 = zext i32 %.83 to i64
  %9 = getelementptr i16, ptr %6, i64 %8
  %.82 = select i1 %.not, ptr %0, ptr %2
  %min.iters.check = icmp ult i32 %.83, 24
  br i1 %min.iters.check, label %.lr.ph.preheader233, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %10 = shl nuw nsw i64 %8, 1
  %11 = add nsw i64 %10, -2
  %12 = add i32 %.83, -1
  %13 = zext i32 %12 to i64
  %14 = shl nuw nsw i64 %13, 1
  %15 = sub nsw i64 %11, %14
  %scevgep = getelementptr i8, ptr %6, i64 %15
  %16 = getelementptr i8, ptr %.82, i64 %14
  %scevgep138 = getelementptr i8, ptr %16, i64 2
  %bound0 = icmp ult ptr %scevgep, %scevgep138
  %bound1 = icmp ult ptr %.82, %9
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader233, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %8, 4294967280
  %.cast = trunc nuw i64 %n.vec to i32
  %ind.end = sub i32 %.83, %.cast
  %17 = shl nuw nsw i64 %n.vec, 1
  %ind.end139 = getelementptr i8, ptr %.82, i64 %17
  %18 = mul nsw i64 %n.vec, -2
  %ind.end141 = getelementptr i8, ptr %9, i64 %18
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 1
  %next.gep = getelementptr i8, ptr %.82, i64 %offset.idx
  %offset.idx144 = mul i64 %index, -2
  %next.gep145 = getelementptr i8, ptr %9, i64 %offset.idx144
  %19 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load = load <8 x i16>, ptr %next.gep, align 2, !tbaa !5, !alias.scope !9
  %wide.load147 = load <8 x i16>, ptr %19, align 2, !tbaa !5, !alias.scope !9
  %20 = getelementptr inbounds i8, ptr %next.gep145, i64 -16
  %21 = getelementptr inbounds i8, ptr %next.gep145, i64 -32
  %reverse = shufflevector <8 x i16> %wide.load, <8 x i16> poison, <8 x i32> <i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
  store <8 x i16> %reverse, ptr %20, align 2, !tbaa !5, !alias.scope !12, !noalias !9
  %reverse148 = shufflevector <8 x i16> %wide.load147, <8 x i16> poison, <8 x i32> <i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
  store <8 x i16> %reverse148, ptr %21, align 2, !tbaa !5, !alias.scope !12, !noalias !9
  %index.next = add nuw i64 %index, 16
  %22 = icmp eq i64 %index.next, %n.vec
  br i1 %22, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %8
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader233

.lr.ph.preheader233:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %.06088.ph = phi i32 [ %.83, %vector.memcheck ], [ %.83, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.06387.ph = phi ptr [ %.82, %vector.memcheck ], [ %.82, %.lr.ph.preheader ], [ %ind.end139, %middle.block ]
  %.pn86.ph = phi ptr [ %9, %vector.memcheck ], [ %9, %.lr.ph.preheader ], [ %ind.end141, %middle.block ]
  %23 = add i32 %.06088.ph, -1
  %xtraiter = and i32 %.06088.ph, 7
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader233, %.lr.ph.prol
  %.06088.prol = phi i32 [ %26, %.lr.ph.prol ], [ %.06088.ph, %.lr.ph.preheader233 ]
  %.06387.prol = phi ptr [ %24, %.lr.ph.prol ], [ %.06387.ph, %.lr.ph.preheader233 ]
  %.pn86.prol = phi ptr [ %.064.prol, %.lr.ph.prol ], [ %.pn86.ph, %.lr.ph.preheader233 ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader233 ]
  %.064.prol = getelementptr inbounds i8, ptr %.pn86.prol, i64 -2
  %24 = getelementptr inbounds i8, ptr %.06387.prol, i64 2
  %25 = load i16, ptr %.06387.prol, align 2, !tbaa !5
  store i16 %25, ptr %.064.prol, align 2, !tbaa !5
  %26 = add i32 %.06088.prol, -1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !18

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader233
  %.06088.unr = phi i32 [ %.06088.ph, %.lr.ph.preheader233 ], [ %26, %.lr.ph.prol ]
  %.06387.unr = phi ptr [ %.06387.ph, %.lr.ph.preheader233 ], [ %24, %.lr.ph.prol ]
  %.pn86.unr = phi ptr [ %.pn86.ph, %.lr.ph.preheader233 ], [ %.064.prol, %.lr.ph.prol ]
  %27 = icmp ult i32 %23, 7
  br i1 %27, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.06088 = phi i32 [ %44, %.lr.ph ], [ %.06088.unr, %.lr.ph.prol.loopexit ]
  %.06387 = phi ptr [ %42, %.lr.ph ], [ %.06387.unr, %.lr.ph.prol.loopexit ]
  %.pn86 = phi ptr [ %.064.7, %.lr.ph ], [ %.pn86.unr, %.lr.ph.prol.loopexit ]
  %.064 = getelementptr inbounds i8, ptr %.pn86, i64 -2
  %28 = getelementptr inbounds i8, ptr %.06387, i64 2
  %29 = load i16, ptr %.06387, align 2, !tbaa !5
  store i16 %29, ptr %.064, align 2, !tbaa !5
  %.064.1 = getelementptr inbounds i8, ptr %.pn86, i64 -4
  %30 = getelementptr inbounds i8, ptr %.06387, i64 4
  %31 = load i16, ptr %28, align 2, !tbaa !5
  store i16 %31, ptr %.064.1, align 2, !tbaa !5
  %.064.2 = getelementptr inbounds i8, ptr %.pn86, i64 -6
  %32 = getelementptr inbounds i8, ptr %.06387, i64 6
  %33 = load i16, ptr %30, align 2, !tbaa !5
  store i16 %33, ptr %.064.2, align 2, !tbaa !5
  %.064.3 = getelementptr inbounds i8, ptr %.pn86, i64 -8
  %34 = getelementptr inbounds i8, ptr %.06387, i64 8
  %35 = load i16, ptr %32, align 2, !tbaa !5
  store i16 %35, ptr %.064.3, align 2, !tbaa !5
  %.064.4 = getelementptr inbounds i8, ptr %.pn86, i64 -10
  %36 = getelementptr inbounds i8, ptr %.06387, i64 10
  %37 = load i16, ptr %34, align 2, !tbaa !5
  store i16 %37, ptr %.064.4, align 2, !tbaa !5
  %.064.5 = getelementptr inbounds i8, ptr %.pn86, i64 -12
  %38 = getelementptr inbounds i8, ptr %.06387, i64 12
  %39 = load i16, ptr %36, align 2, !tbaa !5
  store i16 %39, ptr %.064.5, align 2, !tbaa !5
  %.064.6 = getelementptr inbounds i8, ptr %.pn86, i64 -14
  %40 = getelementptr inbounds i8, ptr %.06387, i64 14
  %41 = load i16, ptr %38, align 2, !tbaa !5
  store i16 %41, ptr %.064.6, align 2, !tbaa !5
  %.064.7 = getelementptr inbounds i8, ptr %.pn86, i64 -16
  %42 = getelementptr inbounds i8, ptr %.06387, i64 16
  %43 = load i16, ptr %40, align 2, !tbaa !5
  store i16 %43, ptr %.064.7, align 2, !tbaa !5
  %44 = add i32 %.06088, -8
  %.not78.7 = icmp eq i32 %44, 0
  br i1 %.not78.7, label %._crit_edge, label %.lr.ph, !llvm.loop !20

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %7
  %45 = add i32 %.83, -1
  tail call void @arm_fill_q15(i16 noundef signext 0, ptr noundef %5, i32 noundef %45) #4
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds i16, ptr %5, i64 %46
  tail call void @arm_copy_q15(ptr noundef %., ptr noundef %47, i32 noundef %.84) #4
  %48 = zext i32 %.84 to i64
  %49 = getelementptr inbounds i16, ptr %47, i64 %48
  tail call void @arm_fill_q15(i16 noundef signext 0, ptr noundef %49, i32 noundef %45) #4
  %50 = add i32 %3, %1
  %.059107 = add i32 %50, -1
  %.not79108 = icmp eq i32 %.059107, 0
  br i1 %.not79108, label %._crit_edge113, label %.lr.ph112

.lr.ph112:                                        ; preds = %._crit_edge
  %51 = lshr i32 %.83, 1
  %.not8089 = icmp ult i32 %.83, 2
  %52 = and i32 %.83, 1
  %.not8199 = icmp eq i32 %52, 0
  br i1 %.not8089, label %.lr.ph112.split.us, label %.lr.ph112.split

.lr.ph112.split.us:                               ; preds = %.lr.ph112
  br i1 %.not8199, label %.lr.ph112.split.us.split.us, label %.lr.ph104.us

.lr.ph112.split.us.split.us:                      ; preds = %.lr.ph112.split.us, %.lr.ph112.split.us.split.us
  %.059111.us.us = phi i32 [ %.059.us.us, %.lr.ph112.split.us.split.us ], [ %.059107, %.lr.ph112.split.us ]
  %.067110.us.us = phi ptr [ %55, %.lr.ph112.split.us.split.us ], [ %4, %.lr.ph112.split.us ]
  %53 = tail call i32 @__SSAT(i32 noundef 0, i32 noundef 16)
  %54 = trunc i32 %53 to i16
  %55 = getelementptr inbounds i8, ptr %.067110.us.us, i64 2
  store i16 %54, ptr %.067110.us.us, align 2, !tbaa !5
  %.059.us.us = add i32 %.059111.us.us, -1
  %.not79.us.us = icmp eq i32 %.059.us.us, 0
  br i1 %.not79.us.us, label %._crit_edge113, label %.lr.ph112.split.us.split.us, !llvm.loop !21

.lr.ph104.us:                                     ; preds = %.lr.ph112.split.us, %.lr.ph104.us
  %.059111.us = phi i32 [ %.059.us, %.lr.ph104.us ], [ %.059107, %.lr.ph112.split.us ]
  %.067110.us = phi ptr [ %64, %.lr.ph104.us ], [ %4, %.lr.ph112.split.us ]
  %.073109.us = phi ptr [ %65, %.lr.ph104.us ], [ %5, %.lr.ph112.split.us ]
  %56 = load i16, ptr %.073109.us, align 2, !tbaa !5
  %57 = sext i16 %56 to i32
  %58 = load i16, ptr %6, align 2, !tbaa !5
  %59 = sext i16 %58 to i32
  %60 = mul nsw i32 %59, %57
  %61 = ashr i32 %60, 15
  %62 = tail call i32 @__SSAT(i32 noundef %61, i32 noundef 16)
  %63 = trunc i32 %62 to i16
  %64 = getelementptr inbounds i8, ptr %.067110.us, i64 2
  store i16 %63, ptr %.067110.us, align 2, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %.073109.us, i64 2
  %.059.us = add i32 %.059111.us, -1
  %.not79.us = icmp eq i32 %.059.us, 0
  br i1 %.not79.us, label %._crit_edge113, label %.lr.ph104.us, !llvm.loop !21

.lr.ph112.split:                                  ; preds = %.lr.ph112
  br i1 %.not8199, label %.lr.ph95.us.preheader, label %.lr.ph95.preheader

.lr.ph95.preheader:                               ; preds = %.lr.ph112.split
  %66 = add nsw i32 %51, -1
  %67 = zext i32 %66 to i64
  %68 = add nuw nsw i64 %67, 1
  %min.iters.check151 = icmp ult i32 %66, 7
  %n.vec154 = and i64 %68, 8589934584
  %.cast155 = trunc i64 %n.vec154 to i32
  %ind.end156 = sub i32 %51, %.cast155
  %69 = shl nuw nsw i64 %n.vec154, 2
  %70 = shl nuw nsw i64 %n.vec154, 2
  %ind.end160 = getelementptr i8, ptr %6, i64 %70
  %cmp.n182 = icmp eq i64 %68, %n.vec154
  br label %.lr.ph95

.lr.ph95.us.preheader:                            ; preds = %.lr.ph112.split
  %71 = zext nneg i32 %51 to i64
  %min.iters.check185 = icmp ult i32 %.83, 16
  %n.vec188 = and i64 %71, 2147483640
  %.cast189 = trunc nuw nsw i64 %n.vec188 to i32
  %ind.end190 = sub nsw i32 %51, %.cast189
  %72 = shl nuw nsw i64 %n.vec188, 2
  %73 = shl nuw nsw i64 %n.vec188, 2
  %ind.end194 = getelementptr i8, ptr %6, i64 %73
  %cmp.n220 = icmp eq i64 %n.vec188, %71
  br label %.lr.ph95.us

.lr.ph95.us:                                      ; preds = %.lr.ph95.us.preheader, %._crit_edge96.us
  %.059111.us114 = phi i32 [ %.059.us118, %._crit_edge96.us ], [ %.059107, %.lr.ph95.us.preheader ]
  %.067110.us115 = phi ptr [ %114, %._crit_edge96.us ], [ %4, %.lr.ph95.us.preheader ]
  %.073109.us116 = phi ptr [ %115, %._crit_edge96.us ], [ %5, %.lr.ph95.us.preheader ]
  br i1 %min.iters.check185, label %scalar.ph184.preheader, label %vector.ph186

vector.ph186:                                     ; preds = %.lr.ph95.us
  %ind.end192 = getelementptr i8, ptr %.073109.us116, i64 %72
  br label %vector.body196

vector.body196:                                   ; preds = %vector.body196, %vector.ph186
  %index197 = phi i64 [ 0, %vector.ph186 ], [ %index.next218, %vector.body196 ]
  %vec.phi198 = phi <4 x i32> [ zeroinitializer, %vector.ph186 ], [ %90, %vector.body196 ]
  %vec.phi199 = phi <4 x i32> [ zeroinitializer, %vector.ph186 ], [ %91, %vector.body196 ]
  %offset.idx200 = shl i64 %index197, 2
  %74 = or disjoint i64 %offset.idx200, 16
  %next.gep201 = getelementptr i8, ptr %.073109.us116, i64 %offset.idx200
  %next.gep202 = getelementptr i8, ptr %.073109.us116, i64 %74
  %offset.idx203 = shl i64 %index197, 2
  %75 = or disjoint i64 %offset.idx203, 16
  %next.gep204 = getelementptr i8, ptr %6, i64 %offset.idx203
  %next.gep205 = getelementptr i8, ptr %6, i64 %75
  %wide.vec206 = load <8 x i16>, ptr %next.gep201, align 2, !tbaa !5
  %wide.vec207 = load <8 x i16>, ptr %next.gep202, align 2, !tbaa !5
  %strided.vec208 = shufflevector <8 x i16> %wide.vec206, <8 x i16> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec209 = shufflevector <8 x i16> %wide.vec207, <8 x i16> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec210 = shufflevector <8 x i16> %wide.vec206, <8 x i16> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %strided.vec211 = shufflevector <8 x i16> %wide.vec207, <8 x i16> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %76 = sext <4 x i16> %strided.vec208 to <4 x i32>
  %77 = sext <4 x i16> %strided.vec209 to <4 x i32>
  %wide.vec212 = load <8 x i16>, ptr %next.gep204, align 2, !tbaa !5
  %wide.vec213 = load <8 x i16>, ptr %next.gep205, align 2, !tbaa !5
  %strided.vec214 = shufflevector <8 x i16> %wide.vec212, <8 x i16> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec215 = shufflevector <8 x i16> %wide.vec213, <8 x i16> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec216 = shufflevector <8 x i16> %wide.vec212, <8 x i16> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %strided.vec217 = shufflevector <8 x i16> %wide.vec213, <8 x i16> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %78 = sext <4 x i16> %strided.vec214 to <4 x i32>
  %79 = sext <4 x i16> %strided.vec215 to <4 x i32>
  %80 = mul nsw <4 x i32> %78, %76
  %81 = mul nsw <4 x i32> %79, %77
  %82 = add <4 x i32> %80, %vec.phi198
  %83 = add <4 x i32> %81, %vec.phi199
  %84 = sext <4 x i16> %strided.vec210 to <4 x i32>
  %85 = sext <4 x i16> %strided.vec211 to <4 x i32>
  %86 = sext <4 x i16> %strided.vec216 to <4 x i32>
  %87 = sext <4 x i16> %strided.vec217 to <4 x i32>
  %88 = mul nsw <4 x i32> %86, %84
  %89 = mul nsw <4 x i32> %87, %85
  %90 = add <4 x i32> %82, %88
  %91 = add <4 x i32> %83, %89
  %index.next218 = add nuw i64 %index197, 8
  %92 = icmp eq i64 %index.next218, %n.vec188
  br i1 %92, label %middle.block183, label %vector.body196, !llvm.loop !22

middle.block183:                                  ; preds = %vector.body196
  %bin.rdx219 = add <4 x i32> %91, %90
  %93 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx219)
  br i1 %cmp.n220, label %._crit_edge96.us, label %scalar.ph184.preheader

scalar.ph184.preheader:                           ; preds = %middle.block183, %.lr.ph95.us
  %.093.us.ph = phi i32 [ %51, %.lr.ph95.us ], [ %ind.end190, %middle.block183 ]
  %.06592.us.ph = phi ptr [ %.073109.us116, %.lr.ph95.us ], [ %ind.end192, %middle.block183 ]
  %.291.us.ph = phi ptr [ %6, %.lr.ph95.us ], [ %ind.end194, %middle.block183 ]
  %.07190.us.ph = phi i32 [ 0, %.lr.ph95.us ], [ %93, %middle.block183 ]
  br label %scalar.ph184

scalar.ph184:                                     ; preds = %scalar.ph184.preheader, %scalar.ph184
  %.093.us = phi i32 [ %110, %scalar.ph184 ], [ %.093.us.ph, %scalar.ph184.preheader ]
  %.06592.us = phi ptr [ %102, %scalar.ph184 ], [ %.06592.us.ph, %scalar.ph184.preheader ]
  %.291.us = phi ptr [ %105, %scalar.ph184 ], [ %.291.us.ph, %scalar.ph184.preheader ]
  %.07190.us = phi i32 [ %109, %scalar.ph184 ], [ %.07190.us.ph, %scalar.ph184.preheader ]
  %94 = getelementptr inbounds i8, ptr %.06592.us, i64 2
  %95 = load i16, ptr %.06592.us, align 2, !tbaa !5
  %96 = sext i16 %95 to i32
  %97 = getelementptr inbounds i8, ptr %.291.us, i64 2
  %98 = load i16, ptr %.291.us, align 2, !tbaa !5
  %99 = sext i16 %98 to i32
  %100 = mul nsw i32 %99, %96
  %101 = add nsw i32 %100, %.07190.us
  %102 = getelementptr inbounds i8, ptr %.06592.us, i64 4
  %103 = load i16, ptr %94, align 2, !tbaa !5
  %104 = sext i16 %103 to i32
  %105 = getelementptr inbounds i8, ptr %.291.us, i64 4
  %106 = load i16, ptr %97, align 2, !tbaa !5
  %107 = sext i16 %106 to i32
  %108 = mul nsw i32 %107, %104
  %109 = add nsw i32 %101, %108
  %110 = add nsw i32 %.093.us, -1
  %.not80.us = icmp eq i32 %110, 0
  br i1 %.not80.us, label %._crit_edge96.us, label %scalar.ph184, !llvm.loop !23

._crit_edge96.us:                                 ; preds = %scalar.ph184, %middle.block183
  %.lcssa = phi i32 [ %93, %middle.block183 ], [ %109, %scalar.ph184 ]
  %111 = ashr i32 %.lcssa, 15
  %112 = tail call i32 @__SSAT(i32 noundef %111, i32 noundef 16)
  %113 = trunc i32 %112 to i16
  %114 = getelementptr inbounds i8, ptr %.067110.us115, i64 2
  store i16 %113, ptr %.067110.us115, align 2, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %.073109.us116, i64 2
  %.059.us118 = add i32 %.059111.us114, -1
  %.not79.us119 = icmp eq i32 %.059.us118, 0
  br i1 %.not79.us119, label %._crit_edge113, label %.lr.ph95.us, !llvm.loop !21

.lr.ph95:                                         ; preds = %.lr.ph95.preheader, %._crit_edge96
  %.059111 = phi i32 [ %.059, %._crit_edge96 ], [ %.059107, %.lr.ph95.preheader ]
  %.067110 = phi ptr [ %162, %._crit_edge96 ], [ %4, %.lr.ph95.preheader ]
  %.073109 = phi ptr [ %163, %._crit_edge96 ], [ %5, %.lr.ph95.preheader ]
  br i1 %min.iters.check151, label %scalar.ph150.preheader, label %vector.ph152

vector.ph152:                                     ; preds = %.lr.ph95
  %ind.end158 = getelementptr i8, ptr %.073109, i64 %69
  br label %vector.body162

vector.body162:                                   ; preds = %vector.body162, %vector.ph152
  %index163 = phi i64 [ 0, %vector.ph152 ], [ %index.next181, %vector.body162 ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph152 ], [ %132, %vector.body162 ]
  %vec.phi164 = phi <4 x i32> [ zeroinitializer, %vector.ph152 ], [ %133, %vector.body162 ]
  %offset.idx165 = shl i64 %index163, 2
  %116 = or disjoint i64 %offset.idx165, 16
  %next.gep166 = getelementptr i8, ptr %.073109, i64 %offset.idx165
  %next.gep167 = getelementptr i8, ptr %.073109, i64 %116
  %offset.idx168 = shl i64 %index163, 2
  %117 = or disjoint i64 %offset.idx168, 16
  %next.gep169 = getelementptr i8, ptr %6, i64 %offset.idx168
  %next.gep170 = getelementptr i8, ptr %6, i64 %117
  %wide.vec = load <8 x i16>, ptr %next.gep166, align 2, !tbaa !5
  %wide.vec171 = load <8 x i16>, ptr %next.gep167, align 2, !tbaa !5
  %strided.vec = shufflevector <8 x i16> %wide.vec, <8 x i16> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec172 = shufflevector <8 x i16> %wide.vec171, <8 x i16> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec173 = shufflevector <8 x i16> %wide.vec, <8 x i16> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %strided.vec174 = shufflevector <8 x i16> %wide.vec171, <8 x i16> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %118 = sext <4 x i16> %strided.vec to <4 x i32>
  %119 = sext <4 x i16> %strided.vec172 to <4 x i32>
  %wide.vec175 = load <8 x i16>, ptr %next.gep169, align 2, !tbaa !5
  %wide.vec176 = load <8 x i16>, ptr %next.gep170, align 2, !tbaa !5
  %strided.vec177 = shufflevector <8 x i16> %wide.vec175, <8 x i16> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec178 = shufflevector <8 x i16> %wide.vec176, <8 x i16> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec179 = shufflevector <8 x i16> %wide.vec175, <8 x i16> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %strided.vec180 = shufflevector <8 x i16> %wide.vec176, <8 x i16> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %120 = sext <4 x i16> %strided.vec177 to <4 x i32>
  %121 = sext <4 x i16> %strided.vec178 to <4 x i32>
  %122 = mul nsw <4 x i32> %120, %118
  %123 = mul nsw <4 x i32> %121, %119
  %124 = add <4 x i32> %122, %vec.phi
  %125 = add <4 x i32> %123, %vec.phi164
  %126 = sext <4 x i16> %strided.vec173 to <4 x i32>
  %127 = sext <4 x i16> %strided.vec174 to <4 x i32>
  %128 = sext <4 x i16> %strided.vec179 to <4 x i32>
  %129 = sext <4 x i16> %strided.vec180 to <4 x i32>
  %130 = mul nsw <4 x i32> %128, %126
  %131 = mul nsw <4 x i32> %129, %127
  %132 = add <4 x i32> %124, %130
  %133 = add <4 x i32> %125, %131
  %index.next181 = add nuw i64 %index163, 8
  %134 = icmp eq i64 %index.next181, %n.vec154
  br i1 %134, label %middle.block149, label %vector.body162, !llvm.loop !24

middle.block149:                                  ; preds = %vector.body162
  %bin.rdx = add <4 x i32> %133, %132
  %135 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n182, label %._crit_edge96, label %scalar.ph150.preheader

scalar.ph150.preheader:                           ; preds = %middle.block149, %.lr.ph95
  %.093.ph = phi i32 [ %51, %.lr.ph95 ], [ %ind.end156, %middle.block149 ]
  %.06592.ph = phi ptr [ %.073109, %.lr.ph95 ], [ %ind.end158, %middle.block149 ]
  %.291.ph = phi ptr [ %6, %.lr.ph95 ], [ %ind.end160, %middle.block149 ]
  %.07190.ph = phi i32 [ 0, %.lr.ph95 ], [ %135, %middle.block149 ]
  br label %scalar.ph150

scalar.ph150:                                     ; preds = %scalar.ph150.preheader, %scalar.ph150
  %.093 = phi i32 [ %152, %scalar.ph150 ], [ %.093.ph, %scalar.ph150.preheader ]
  %.06592 = phi ptr [ %144, %scalar.ph150 ], [ %.06592.ph, %scalar.ph150.preheader ]
  %.291 = phi ptr [ %147, %scalar.ph150 ], [ %.291.ph, %scalar.ph150.preheader ]
  %.07190 = phi i32 [ %151, %scalar.ph150 ], [ %.07190.ph, %scalar.ph150.preheader ]
  %136 = getelementptr inbounds i8, ptr %.06592, i64 2
  %137 = load i16, ptr %.06592, align 2, !tbaa !5
  %138 = sext i16 %137 to i32
  %139 = getelementptr inbounds i8, ptr %.291, i64 2
  %140 = load i16, ptr %.291, align 2, !tbaa !5
  %141 = sext i16 %140 to i32
  %142 = mul nsw i32 %141, %138
  %143 = add nsw i32 %142, %.07190
  %144 = getelementptr inbounds i8, ptr %.06592, i64 4
  %145 = load i16, ptr %136, align 2, !tbaa !5
  %146 = sext i16 %145 to i32
  %147 = getelementptr inbounds i8, ptr %.291, i64 4
  %148 = load i16, ptr %139, align 2, !tbaa !5
  %149 = sext i16 %148 to i32
  %150 = mul nsw i32 %149, %146
  %151 = add nsw i32 %143, %150
  %152 = add nsw i32 %.093, -1
  %.not80 = icmp eq i32 %152, 0
  br i1 %.not80, label %._crit_edge96, label %scalar.ph150, !llvm.loop !25

._crit_edge96:                                    ; preds = %scalar.ph150, %middle.block149
  %.lcssa137 = phi ptr [ %ind.end158, %middle.block149 ], [ %144, %scalar.ph150 ]
  %.lcssa136 = phi ptr [ %ind.end160, %middle.block149 ], [ %147, %scalar.ph150 ]
  %.lcssa135 = phi i32 [ %135, %middle.block149 ], [ %151, %scalar.ph150 ]
  %153 = load i16, ptr %.lcssa137, align 2, !tbaa !5
  %154 = sext i16 %153 to i32
  %155 = load i16, ptr %.lcssa136, align 2, !tbaa !5
  %156 = sext i16 %155 to i32
  %157 = mul nsw i32 %156, %154
  %158 = add nsw i32 %157, %.lcssa135
  %159 = ashr i32 %158, 15
  %160 = tail call i32 @__SSAT(i32 noundef %159, i32 noundef 16)
  %161 = trunc i32 %160 to i16
  %162 = getelementptr inbounds i8, ptr %.067110, i64 2
  store i16 %161, ptr %.067110, align 2, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %.073109, i64 2
  %.059 = add i32 %.059111, -1
  %.not79 = icmp eq i32 %.059, 0
  br i1 %.not79, label %._crit_edge113, label %.lr.ph95, !llvm.loop !21

._crit_edge113:                                   ; preds = %._crit_edge96, %._crit_edge96.us, %.lr.ph104.us, %.lr.ph112.split.us.split.us, %._crit_edge
  ret void
}

declare void @arm_fill_q15(i16 noundef signext, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @arm_copy_q15(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__SSAT(i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #3

attributes #0 = { 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 = { "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 = { alwaysinline 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 speculatable willreturn memory(none) }
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, !6, i64 0}
!6 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10}
!10 = distinct !{!10, !11}
!11 = distinct !{!11, !"LVerDomain"}
!12 = !{!13}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !15, !16}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15, !16, !17}
!23 = distinct !{!23, !15, !17, !16}
!24 = distinct !{!24, !15, !16, !17}
!25 = distinct !{!25, !15, !17, !16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass