; LLVM IR from jgaeddert/liquid-dsp :: src/modem/src (modemcf)

; 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.modemcf_s = type { i32, i32, i32, [8 x float], ptr, i32, { float, float }, { float, float }, %union.anon, ptr, ptr, ptr, i32 }
%union.anon = type { %struct.anon.3 }
%struct.anon.3 = type { i32, [8 x i32], [8 x float], [8 x float], [8 x float], 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: nounwind uwtable
declare dso_local i32 @modemcf_modulate(ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) #2

; Function Attrs: nounwind
declare float @cargf(<2 x float> noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @modemcf_demodulate_apsk(ptr noundef %0, <2 x float> noundef %1, ptr noundef %2) #3 {
  %4 = alloca { float, float }, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca { float, float }, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca { float, float }, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  store <2 x float> %1, ptr %4, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %17 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 0
  %18 = load float, ptr %17, align 4
  %19 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 1
  %20 = load float, ptr %19, align 4
  %21 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %22 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  store float %18, ptr %21, align 4
  store float %20, ptr %22, align 4
  %23 = load <2 x float>, ptr %8, align 4
  %24 = call float @cabsf(<2 x float> noundef %23) #5
  store float %24, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %25

25:                                               ; preds = %52, %3
  %26 = load i32, ptr %9, align 4, !tbaa !11
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.modemcf_s, ptr %27, i32 0, i32 8
  %29 = getelementptr inbounds %struct.anon.3, ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !13
  %31 = sub i32 %30, 1
  %32 = icmp ult i32 %26, %31
  br i1 %32, label %33, label %55

33:                                               ; preds = %25
  %34 = load float, ptr %7, align 4, !tbaa !9
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.modemcf_s, ptr %35, i32 0, i32 8
  %37 = getelementptr inbounds %struct.anon.3, ptr %36, i32 0, i32 3
  %38 = load i32, ptr %9, align 4, !tbaa !11
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds [8 x float], ptr %37, i64 0, i64 %39
  %41 = load float, ptr %40, align 4, !tbaa !13
  %42 = fcmp olt float %34, %41
  br i1 %42, label %43, label %45

43:                                               ; preds = %33
  %44 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %44, ptr %10, align 4, !tbaa !11
  br label %55

45:                                               ; preds = %33
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.modemcf_s, ptr %46, i32 0, i32 8
  %48 = getelementptr inbounds %struct.anon.3, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 8, !tbaa !13
  %50 = sub i32 %49, 1
  store i32 %50, ptr %10, align 4, !tbaa !11
  br label %51

51:                                               ; preds = %45
  br label %52

52:                                               ; preds = %51
  %53 = load i32, ptr %9, align 4, !tbaa !11
  %54 = add i32 %53, 1
  store i32 %54, ptr %9, align 4, !tbaa !11
  br label %25, !llvm.loop !14

55:                                               ; preds = %43, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %56 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 0
  %57 = load float, ptr %56, align 4
  %58 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 1
  %59 = load float, ptr %58, align 4
  %60 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %61 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  store float %57, ptr %60, align 4
  store float %59, ptr %61, align 4
  %62 = load <2 x float>, ptr %12, align 4
  %63 = call float @cargf(<2 x float> noundef %62) #5
  store float %63, ptr %11, align 4, !tbaa !9
  %64 = load float, ptr %11, align 4, !tbaa !9
  %65 = fcmp olt float %64, 0.000000e+00
  br i1 %65, label %66, label %71

66:                                               ; preds = %55
  %67 = load float, ptr %11, align 4, !tbaa !9
  %68 = fpext float %67 to double
  %69 = fadd double %68, 0x401921FB54442D18
  %70 = fptrunc double %69 to float
  store float %70, ptr %11, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %66, %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.modemcf_s, ptr %72, i32 0, i32 8
  %74 = getelementptr inbounds %struct.anon.3, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %10, align 4, !tbaa !11
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds [8 x i32], ptr %74, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !13
  %79 = uitofp i32 %78 to float
  %80 = fpext float %79 to double
  %81 = fdiv double 0x401921FB54442D18, %80
  %82 = fptrunc double %81 to float
  store float %82, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %83 = load float, ptr %11, align 4, !tbaa !9
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.modemcf_s, ptr %84, i32 0, i32 8
  %86 = getelementptr inbounds %struct.anon.3, ptr %85, i32 0, i32 4
  %87 = load i32, ptr %10, align 4, !tbaa !11
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds [8 x float], ptr %86, i64 0, i64 %88
  %90 = load float, ptr %89, align 4, !tbaa !13
  %91 = fsub float %83, %90
  %92 = load float, ptr %13, align 4, !tbaa !9
  %93 = fdiv float %91, %92
  store float %93, ptr %15, align 4, !tbaa !9
  %94 = load float, ptr %15, align 4, !tbaa !9
  %95 = call float @llvm.round.f32(float %94)
  %96 = fptoui float %95 to i32
  store i32 %96, ptr %14, align 4, !tbaa !11
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.modemcf_s, ptr %97, i32 0, i32 8
  %99 = getelementptr inbounds %struct.anon.3, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %10, align 4, !tbaa !11
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds [8 x i32], ptr %99, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !13
  %104 = load i32, ptr %14, align 4, !tbaa !11
  %105 = urem i32 %104, %103
  store i32 %105, ptr %14, align 4, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %106

106:                                              ; preds = %120, %71
  %107 = load i32, ptr %9, align 4, !tbaa !11
  %108 = load i32, ptr %10, align 4, !tbaa !11
  %109 = icmp ult i32 %107, %108
  br i1 %109, label %110, label %123

110:                                              ; preds = %106
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.modemcf_s, ptr %111, i32 0, i32 8
  %113 = getelementptr inbounds %struct.anon.3, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %9, align 4, !tbaa !11
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds [8 x i32], ptr %113, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !13
  %118 = load i32, ptr %14, align 4, !tbaa !11
  %119 = add i32 %118, %117
  store i32 %119, ptr %14, align 4, !tbaa !11
  br label %120

120:                                              ; preds = %110
  %121 = load i32, ptr %9, align 4, !tbaa !11
  %122 = add i32 %121, 1
  store i32 %122, ptr %9, align 4, !tbaa !11
  br label %106, !llvm.loop !16

123:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %124

124:                                              ; preds = %145, %123
  %125 = load i32, ptr %9, align 4, !tbaa !11
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.modemcf_s, ptr %126, i32 0, i32 2
  %128 = load i32, ptr %127, align 8, !tbaa !17
  %129 = icmp ult i32 %125, %128
  br i1 %129, label %130, label %148

130:                                              ; preds = %124
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.modemcf_s, ptr %131, i32 0, i32 8
  %133 = getelementptr inbounds %struct.anon.3, ptr %132, i32 0, i32 5
  %134 = load ptr, ptr %133, align 8, !tbaa !13
  %135 = load i32, ptr %9, align 4, !tbaa !11
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds i8, ptr %134, i64 %136
  %138 = load i8, ptr %137, align 1, !tbaa !13
  %139 = zext i8 %138 to i32
  %140 = load i32, ptr %14, align 4, !tbaa !11
  %141 = icmp eq i32 %139, %140
  br i1 %141, label %142, label %144

142:                                              ; preds = %130
  %143 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %143, ptr %16, align 4, !tbaa !11
  br label %148

144:                                              ; preds = %130
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %9, align 4, !tbaa !11
  %147 = add i32 %146, 1
  store i32 %147, ptr %9, align 4, !tbaa !11
  br label %124, !llvm.loop !19

148:                                              ; preds = %142, %124
  %149 = load i32, ptr %16, align 4, !tbaa !11
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 %149, ptr %150, align 4, !tbaa !11
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = load i32, ptr %16, align 4, !tbaa !11
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.modemcf_s, ptr %153, i32 0, i32 7
  %155 = call i32 @modemcf_modulate(ptr noundef %151, i32 noundef %152, ptr noundef %154)
  %156 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 0
  %157 = load float, ptr %156, align 4
  %158 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 1
  %159 = load float, ptr %158, align 4
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.modemcf_s, ptr %160, i32 0, i32 6
  %162 = getelementptr inbounds { float, float }, ptr %161, i32 0, i32 0
  %163 = getelementptr inbounds { float, float }, ptr %161, i32 0, i32 1
  store float %157, ptr %162, align 4
  store float %159, ptr %163, align 4
  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 4, ptr %13) #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 %7) #5
  ret i32 0
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.round.f32(float) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 "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"="64" "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !12, i64 8}
!18 = !{!"modemcf_s", !12, i64 0, !12, i64 4, !12, i64 8, !7, i64 12, !6, i64 48, !12, i64 56, !7, i64 60, !7, i64 68, !7, i64 80, !6, i64 224, !6, i64 232, !6, i64 240, !12, i64 248}
!19 = distinct !{!19, !15}


; 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
declare dso_local i32 @modemcf_modulate(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare float @cargf(<2 x float> noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @modemcf_demodulate_apsk(ptr noundef %0, <2 x float> noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 {
  %4 = tail call float @cabsf(<2 x float> noundef %1) #5
  %5 = getelementptr inbounds i8, ptr %0, i64 148
  %6 = getelementptr inbounds i8, ptr %0, i64 80
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -1
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %3
  %wide.trip.count = zext i32 %8 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %12
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %12 ]
  %9 = getelementptr inbounds [8 x float], ptr %5, i64 0, i64 %indvars.iv
  %10 = load float, ptr %9, align 4, !tbaa !5
  %11 = fcmp olt float %4, %10
  br i1 %11, label %._crit_edge.loopexit.split.loop.exit, label %12

12:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge.loopexit.split.loop.exit:             ; preds = %.lr.ph
  %13 = trunc nuw i64 %indvars.iv to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %12, %._crit_edge.loopexit.split.loop.exit, %3
  %.154 = phi i32 [ 0, %3 ], [ %13, %._crit_edge.loopexit.split.loop.exit ], [ %8, %12 ]
  %14 = tail call float @cargf(<2 x float> noundef %1) #5
  %15 = fcmp olt float %14, 0.000000e+00
  %16 = fpext float %14 to double
  %17 = fadd double %16, 0x401921FB54442D18
  %18 = fptrunc double %17 to float
  %.052 = select i1 %15, float %18, float %14
  %19 = getelementptr inbounds i8, ptr %0, i64 84
  %20 = zext i32 %.154 to i64
  %21 = getelementptr inbounds [8 x i32], ptr %19, i64 0, i64 %20
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = uitofp i32 %22 to float
  %24 = fpext float %23 to double
  %25 = fdiv double 0x401921FB54442D18, %24
  %26 = fptrunc double %25 to float
  %27 = getelementptr inbounds i8, ptr %0, i64 180
  %28 = getelementptr inbounds [8 x float], ptr %27, i64 0, i64 %20
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = fsub float %.052, %29
  %31 = fdiv float %30, %26
  %32 = tail call float @llvm.round.f32(float %31)
  %33 = fptoui float %32 to i32
  %34 = urem i32 %33, %22
  %.not72 = icmp eq i32 %.154, 0
  br i1 %.not72, label %.preheader, label %.lr.ph64.preheader

.lr.ph64.preheader:                               ; preds = %._crit_edge
  %min.iters.check = icmp ult i32 %.154, 8
  br i1 %min.iters.check, label %.lr.ph64.preheader94, label %vector.ph

.lr.ph64.preheader94:                             ; preds = %middle.block, %.lr.ph64.preheader
  %indvars.iv75.ph = phi i64 [ 0, %.lr.ph64.preheader ], [ %n.vec, %middle.block ]
  %.05062.ph = phi i32 [ %34, %.lr.ph64.preheader ], [ %41, %middle.block ]
  br label %.lr.ph64

vector.ph:                                        ; preds = %.lr.ph64.preheader
  %n.vec = and i64 %20, 4294967288
  %35 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %34, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %35, %vector.ph ], [ %38, %vector.body ]
  %vec.phi91 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %39, %vector.body ]
  %36 = getelementptr inbounds [8 x i32], ptr %19, i64 0, i64 %index
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  %wide.load = load <4 x i32>, ptr %36, align 4, !tbaa !5
  %wide.load92 = load <4 x i32>, ptr %37, align 4, !tbaa !5
  %38 = add <4 x i32> %wide.load, %vec.phi
  %39 = add <4 x i32> %wide.load92, %vec.phi91
  %index.next = add nuw i64 %index, 8
  %40 = icmp eq i64 %index.next, %n.vec
  br i1 %40, label %middle.block, label %vector.body, !llvm.loop !10

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %39, %38
  %41 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %20
  br i1 %cmp.n, label %.preheader, label %.lr.ph64.preheader94

.preheader:                                       ; preds = %.lr.ph64, %middle.block, %._crit_edge
  %.050.lcssa = phi i32 [ %34, %._crit_edge ], [ %41, %middle.block ], [ %48, %.lr.ph64 ]
  %42 = getelementptr inbounds i8, ptr %0, i64 8
  %43 = load i32, ptr %42, align 8, !tbaa !13
  %.not73 = icmp eq i32 %43, 0
  br i1 %.not73, label %._crit_edge68, label %.lr.ph67

.lr.ph67:                                         ; preds = %.preheader
  %44 = getelementptr inbounds i8, ptr %0, i64 216
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %wide.trip.count83 = zext i32 %43 to i64
  br label %49

.lr.ph64:                                         ; preds = %.lr.ph64.preheader94, %.lr.ph64
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %.lr.ph64 ], [ %indvars.iv75.ph, %.lr.ph64.preheader94 ]
  %.05062 = phi i32 [ %48, %.lr.ph64 ], [ %.05062.ph, %.lr.ph64.preheader94 ]
  %46 = getelementptr inbounds [8 x i32], ptr %19, i64 0, i64 %indvars.iv75
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = add i32 %47, %.05062
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond79.not = icmp eq i64 %indvars.iv.next76, %20
  br i1 %exitcond79.not, label %.preheader, label %.lr.ph64, !llvm.loop !17

49:                                               ; preds = %.lr.ph67, %54
  %indvars.iv80 = phi i64 [ 0, %.lr.ph67 ], [ %indvars.iv.next81, %54 ]
  %50 = getelementptr inbounds i8, ptr %45, i64 %indvars.iv80
  %51 = load i8, ptr %50, align 1, !tbaa !5
  %52 = zext i8 %51 to i32
  %53 = icmp eq i32 %.050.lcssa, %52
  br i1 %53, label %._crit_edge68.loopexit.split.loop.exit, label %54

54:                                               ; preds = %49
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %exitcond84.not = icmp eq i64 %indvars.iv.next81, %wide.trip.count83
  br i1 %exitcond84.not, label %._crit_edge68, label %49, !llvm.loop !18

._crit_edge68.loopexit.split.loop.exit:           ; preds = %49
  %55 = trunc nuw i64 %indvars.iv80 to i32
  br label %._crit_edge68

._crit_edge68:                                    ; preds = %54, %._crit_edge68.loopexit.split.loop.exit, %.preheader
  %.0 = phi i32 [ 0, %.preheader ], [ %55, %._crit_edge68.loopexit.split.loop.exit ], [ 0, %54 ]
  store i32 %.0, ptr %2, align 4, !tbaa !19
  %56 = getelementptr inbounds i8, ptr %0, i64 68
  %57 = tail call i32 @modemcf_modulate(ptr noundef nonnull %0, i32 noundef %.0, ptr noundef nonnull %56)
  %58 = getelementptr inbounds i8, ptr %0, i64 60
  store <2 x float> %1, ptr %58, align 4
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.round.f32(float) #3

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

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 = { nounwind "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"="64" "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9, !11, !12}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = !{!14, !15, i64 8}
!14 = !{!"modemcf_s", !15, i64 0, !15, i64 4, !15, i64 8, !6, i64 12, !16, i64 48, !15, i64 56, !6, i64 60, !6, i64 68, !6, i64 80, !16, i64 224, !16, i64 232, !16, i64 240, !15, i64 248}
!15 = !{!"int", !6, i64 0}
!16 = !{!"any pointer", !6, i64 0}
!17 = distinct !{!17, !9, !12, !11}
!18 = distinct !{!18, !9}
!19 = !{!15, !15, i64 0}


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