; LLVM IR from jgaeddert/liquid-dsp :: src/fec/src (packetizer)

; 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.packetizer_s = type { i32, i32, i32, i32, ptr, i32, i32, ptr, ptr }
%struct.fecintlv_plan = type { i32, i32, i32, ptr, ptr }

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #1

declare i32 @interleaver_decode(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @fec_decode(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

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

declare i32 @crc_validate_message(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @packetizer_decode_soft(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.packetizer_s, ptr %9, i32 0, i32 7
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.packetizer_s, ptr %13, i32 0, i32 1
  %15 = load i32, ptr %14, align 4, !tbaa !12
  %16 = mul i32 8, %15
  %17 = zext i32 %16 to i64
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %11, ptr align 1 %12, i64 %17, i1 false)
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.packetizer_s, ptr %18, i32 0, i32 4
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = getelementptr inbounds %struct.fecintlv_plan, ptr %20, i64 1
  %22 = getelementptr inbounds %struct.fecintlv_plan, ptr %21, i32 0, i32 4
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.packetizer_s, ptr %24, i32 0, i32 7
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.packetizer_s, ptr %27, i32 0, i32 8
  %29 = load ptr, ptr %28, align 8, !tbaa !16
  %30 = call i32 @interleaver_decode_soft(ptr noundef %23, ptr noundef %26, ptr noundef %29)
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.packetizer_s, ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  %34 = getelementptr inbounds %struct.fecintlv_plan, ptr %33, i64 1
  %35 = getelementptr inbounds %struct.fecintlv_plan, ptr %34, i32 0, i32 3
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.packetizer_s, ptr %37, i32 0, i32 4
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = getelementptr inbounds %struct.fecintlv_plan, ptr %39, i64 1
  %41 = getelementptr inbounds %struct.fecintlv_plan, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 8, !tbaa !18
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.packetizer_s, ptr %43, i32 0, i32 8
  %45 = load ptr, ptr %44, align 8, !tbaa !16
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.packetizer_s, ptr %46, i32 0, i32 7
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = call i32 @fec_decode_soft(ptr noundef %36, i32 noundef %42, ptr noundef %45, ptr noundef %48)
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.packetizer_s, ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = getelementptr inbounds %struct.fecintlv_plan, ptr %52, i64 0
  %54 = getelementptr inbounds %struct.fecintlv_plan, ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !14
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.packetizer_s, ptr %56, i32 0, i32 7
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.packetizer_s, ptr %59, i32 0, i32 8
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %62 = call i32 @interleaver_decode(ptr noundef %55, ptr noundef %58, ptr noundef %61)
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.packetizer_s, ptr %63, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  %66 = getelementptr inbounds %struct.fecintlv_plan, ptr %65, i64 0
  %67 = getelementptr inbounds %struct.fecintlv_plan, ptr %66, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !17
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.packetizer_s, ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !13
  %72 = getelementptr inbounds %struct.fecintlv_plan, ptr %71, i64 0
  %73 = getelementptr inbounds %struct.fecintlv_plan, ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !18
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.packetizer_s, ptr %75, i32 0, i32 8
  %77 = load ptr, ptr %76, align 8, !tbaa !16
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.packetizer_s, ptr %78, i32 0, i32 7
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = call i32 @fec_decode(ptr noundef %68, i32 noundef %74, ptr noundef %77, ptr noundef %80)
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.packetizer_s, ptr %82, i32 0, i32 7
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.packetizer_s, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !19
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.packetizer_s, ptr %88, i32 0, i32 3
  %90 = load i32, ptr %89, align 4, !tbaa !20
  %91 = add i32 %87, %90
  call void @unscramble_data(ptr noundef %84, i32 noundef %91)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !21
  br label %92

92:                                               ; preds = %115, %3
  %93 = load i32, ptr %8, align 4, !tbaa !21
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.packetizer_s, ptr %94, i32 0, i32 3
  %96 = load i32, ptr %95, align 4, !tbaa !20
  %97 = icmp ult i32 %93, %96
  br i1 %97, label %98, label %118

98:                                               ; preds = %92
  %99 = load i32, ptr %7, align 4, !tbaa !21
  %100 = shl i32 %99, 8
  store i32 %100, ptr %7, align 4, !tbaa !21
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.packetizer_s, ptr %101, i32 0, i32 7
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.packetizer_s, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 8, !tbaa !19
  %107 = load i32, ptr %8, align 4, !tbaa !21
  %108 = add i32 %106, %107
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds i8, ptr %103, i64 %109
  %111 = load i8, ptr %110, align 1, !tbaa !22
  %112 = zext i8 %111 to i32
  %113 = load i32, ptr %7, align 4, !tbaa !21
  %114 = or i32 %113, %112
  store i32 %114, ptr %7, align 4, !tbaa !21
  br label %115

115:                                              ; preds = %98
  %116 = load i32, ptr %8, align 4, !tbaa !21
  %117 = add i32 %116, 1
  store i32 %117, ptr %8, align 4, !tbaa !21
  br label %92, !llvm.loop !23

118:                                              ; preds = %92
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.packetizer_s, ptr %120, i32 0, i32 7
  %122 = load ptr, ptr %121, align 8, !tbaa !9
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.packetizer_s, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !19
  %126 = zext i32 %125 to i64
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %119, ptr align 1 %122, i64 %126, i1 false)
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.packetizer_s, ptr %127, i32 0, i32 2
  %129 = load i32, ptr %128, align 8, !tbaa !25
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.packetizer_s, ptr %130, i32 0, i32 7
  %132 = load ptr, ptr %131, align 8, !tbaa !9
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.packetizer_s, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !19
  %136 = load i32, ptr %7, align 4, !tbaa !21
  %137 = call i32 @crc_validate_message(i32 noundef %129, ptr noundef %132, i32 noundef %135, i32 noundef %136)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 %137
}

declare i32 @interleaver_decode_soft(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @fec_decode_soft(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree 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 = { 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, !6, i64 32}
!10 = !{!"packetizer_s", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !11, i64 24, !11, i64 28, !6, i64 32, !6, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !6, i64 16}
!14 = !{!15, !6, i64 24}
!15 = !{!"fecintlv_plan", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!10, !6, i64 40}
!17 = !{!15, !6, i64 16}
!18 = !{!15, !11, i64 0}
!19 = !{!10, !11, i64 0}
!20 = !{!10, !11, i64 12}
!21 = !{!11, !11, i64 0}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!10, !11, i64 8}


; 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #0

declare i32 @interleaver_decode(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @fec_decode(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare i32 @crc_validate_message(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @packetizer_decode_soft(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 32
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 4
  %7 = load i32, ptr %6, align 4, !tbaa !11
  %8 = shl i32 %7, 3
  %9 = zext i32 %8 to i64
  tail call void @llvm.memmove.p0.p0.i64(ptr align 1 %5, ptr align 1 %1, i64 %9, i1 false)
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load ptr, ptr %10, align 8, !tbaa !12
  %12 = getelementptr inbounds i8, ptr %11, i64 56
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = load ptr, ptr %15, align 8, !tbaa !15
  %17 = tail call i32 @interleaver_decode_soft(ptr noundef %13, ptr noundef %14, ptr noundef %16) #3
  %18 = load ptr, ptr %10, align 8, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %18, i64 32
  %20 = getelementptr inbounds i8, ptr %18, i64 48
  %21 = load ptr, ptr %20, align 8, !tbaa !16
  %22 = load i32, ptr %19, align 8, !tbaa !17
  %23 = load ptr, ptr %15, align 8, !tbaa !15
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = tail call i32 @fec_decode_soft(ptr noundef %21, i32 noundef %22, ptr noundef %23, ptr noundef %24) #3
  %26 = load ptr, ptr %10, align 8, !tbaa !12
  %27 = getelementptr inbounds i8, ptr %26, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %15, align 8, !tbaa !15
  %31 = tail call i32 @interleaver_decode(ptr noundef %28, ptr noundef %29, ptr noundef %30) #3
  %32 = load ptr, ptr %10, align 8, !tbaa !12
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %35 = load i32, ptr %32, align 8, !tbaa !17
  %36 = load ptr, ptr %15, align 8, !tbaa !15
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = tail call i32 @fec_decode(ptr noundef %34, i32 noundef %35, ptr noundef %36, ptr noundef %37) #3
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load i32, ptr %0, align 8, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %0, i64 12
  %42 = load i32, ptr %41, align 4, !tbaa !19
  %43 = add i32 %42, %40
  tail call void @unscramble_data(ptr noundef %39, i32 noundef %43) #3
  %44 = load i32, ptr %41, align 4, !tbaa !19
  %.not = icmp eq i32 %44, 0
  %.pre = load ptr, ptr %4, align 8, !tbaa !5
  %.pre38 = load i32, ptr %0, align 8, !tbaa !18
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %wide.trip.count = zext i32 %44 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %45 = icmp ult i32 %44, 4
  br i1 %45, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %46

46:                                               ; preds = %46, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %46 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %46 ]
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa.loopexit, label %46, !llvm.loop !20

._crit_edge.loopexit.unr-lcssa.loopexit:          ; preds = %46
  %47 = trunc nuw i64 %indvars.iv to i32
  %48 = add i32 %.pre38, %47
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds i8, ptr %.pre, i64 %49
  %51 = load i8, ptr %50, align 1, !tbaa !22
  %52 = zext i8 %51 to i32
  %53 = shl nuw nsw i32 %52, 16
  %54 = trunc i64 %indvars.iv to i32
  %55 = or disjoint i32 %54, 1
  %56 = add i32 %.pre38, %55
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds i8, ptr %.pre, i64 %57
  %59 = load i8, ptr %58, align 1, !tbaa !22
  %60 = zext i8 %59 to i32
  %61 = shl nuw nsw i32 %60, 8
  %62 = or disjoint i32 %53, %61
  %63 = trunc i64 %indvars.iv to i32
  %64 = or disjoint i32 %63, 2
  %65 = add i32 %.pre38, %64
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds i8, ptr %.pre, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !22
  %69 = zext i8 %68 to i32
  %70 = or disjoint i32 %62, %69
  %71 = shl nuw i32 %70, 8
  %72 = trunc i64 %indvars.iv to i32
  %73 = or disjoint i32 %72, 3
  %74 = add i32 %.pre38, %73
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds i8, ptr %.pre, i64 %75
  %77 = load i8, ptr %76, align 1, !tbaa !22
  %78 = zext i8 %77 to i32
  %79 = or disjoint i32 %71, %78
  br label %._crit_edge.loopexit.unr-lcssa

._crit_edge.loopexit.unr-lcssa:                   ; preds = %._crit_edge.loopexit.unr-lcssa.loopexit, %.lr.ph
  %.lcssa.ph = phi i32 [ poison, %.lr.ph ], [ %79, %._crit_edge.loopexit.unr-lcssa.loopexit ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %._crit_edge.loopexit.unr-lcssa.loopexit ]
  %.03435.unr = phi i32 [ 0, %.lr.ph ], [ %79, %._crit_edge.loopexit.unr-lcssa.loopexit ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.03435.epil = phi i32 [ %87, %.epil.preheader ], [ %.03435.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %80 = shl i32 %.03435.epil, 8
  %81 = trunc nuw i64 %indvars.iv.epil to i32
  %82 = add i32 %.pre38, %81
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds i8, ptr %.pre, i64 %83
  %85 = load i8, ptr %84, align 1, !tbaa !22
  %86 = zext i8 %85 to i32
  %87 = or disjoint i32 %80, %86
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !23

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %3
  %.034.lcssa = phi i32 [ 0, %3 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %87, %.epil.preheader ]
  %88 = zext i32 %.pre38 to i64
  tail call void @llvm.memmove.p0.p0.i64(ptr align 1 %2, ptr align 1 %.pre, i64 %88, i1 false)
  %89 = getelementptr inbounds i8, ptr %0, i64 8
  %90 = load i32, ptr %89, align 8, !tbaa !25
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = load i32, ptr %0, align 8, !tbaa !18
  %93 = tail call i32 @crc_validate_message(i32 noundef %90, ptr noundef %91, i32 noundef %92, i32 noundef %.034.lcssa) #3
  ret i32 %93
}

declare i32 @interleaver_decode_soft(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @fec_decode_soft(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass