; LLVM IR from jgaeddert/liquid-dsp :: src/framing/src (fskframesync)

; 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.fskframesync_s = type { i32, i32, float, i32, ptr, ptr, ptr, ptr, ptr, %struct.framesyncstats_s, ptr, i32, i32, ptr, ptr, ptr, ptr, [3 x float], i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, ptr }
%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }

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

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

declare i32 @windowcf_push(ptr noundef, <2 x float> noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @fskframesync_execute_detectframe(ptr noundef %0, <2 x float> noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca { float, float }, align 4
  %5 = alloca ptr, align 8
  %6 = alloca { float, float }, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  store <2 x float> %1, ptr %4, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.fskframesync_s, ptr %18, i32 0, i32 15
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 0
  %22 = load float, ptr %21, align 4
  %23 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 1
  %24 = load float, ptr %23, align 4
  %25 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %26 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  store float %22, ptr %25, align 4
  store float %24, ptr %26, align 4
  %27 = load <2 x float>, ptr %6, align 4
  %28 = call i32 @windowcf_push(ptr noundef %20, <2 x float> noundef %27)
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.fskframesync_s, ptr %29, i32 0, i32 36
  %31 = load i32, ptr %30, align 4, !tbaa !14
  %32 = add i32 %31, -1
  store i32 %32, ptr %30, align 4, !tbaa !14
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.fskframesync_s, ptr %33, i32 0, i32 36
  %35 = load i32, ptr %34, align 4, !tbaa !14
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  br label %167

38:                                               ; preds = %2
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.fskframesync_s, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !15
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.fskframesync_s, ptr %42, i32 0, i32 36
  store i32 %41, ptr %43, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.fskframesync_s, ptr %44, i32 0, i32 15
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = call i32 @windowcf_read(ptr noundef %46, ptr noundef %7)
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.fskframesync_s, ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !16
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = call i32 @fskdem_demodulate(ptr noundef %50, ptr noundef %51)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 2, ptr %8, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.fskframesync_s, ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !16
  %56 = load i32, ptr %8, align 4, !tbaa !17
  %57 = call float @fskdem_get_symbol_energy(ptr noundef %55, i32 noundef 0, i32 noundef %56)
  store float %57, ptr %9, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.fskframesync_s, ptr %58, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !16
  %61 = load i32, ptr %8, align 4, !tbaa !17
  %62 = call float @fskdem_get_symbol_energy(ptr noundef %60, i32 noundef 1, i32 noundef %61)
  store float %62, ptr %10, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %63 = load float, ptr %10, align 4, !tbaa !18
  %64 = fadd float %63, 0x3E112E0BE0000000
  %65 = load float, ptr %9, align 4, !tbaa !18
  %66 = fadd float %65, 0x3E112E0BE0000000
  %67 = fdiv float %64, %66
  %68 = call float @logf(float noundef %67) #4
  store float %68, ptr %11, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.fskframesync_s, ptr %69, i32 0, i32 14
  %71 = load ptr, ptr %70, align 8, !tbaa !19
  %72 = load float, ptr %11, align 4, !tbaa !18
  %73 = call i32 @firfilt_rrrf_push(ptr noundef %71, float noundef %72)
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.fskframesync_s, ptr %74, i32 0, i32 14
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  %77 = call i32 @firfilt_rrrf_execute(ptr noundef %76, ptr noundef %12)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.fskframesync_s, ptr %78, i32 0, i32 16
  %80 = load ptr, ptr %79, align 8, !tbaa !20
  %81 = load float, ptr %11, align 4, !tbaa !18
  %82 = load float, ptr %11, align 4, !tbaa !18
  %83 = fmul float %81, %82
  %84 = call i32 @windowf_push(ptr noundef %80, float noundef %83)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.fskframesync_s, ptr %85, i32 0, i32 16
  %87 = load ptr, ptr %86, align 8, !tbaa !20
  %88 = call i32 @windowf_read(ptr noundef %87, ptr noundef %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store float 0.000000e+00, ptr %14, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 126, ptr %16, align 4, !tbaa !17
  store i32 0, ptr %15, align 4, !tbaa !17
  br label %89

89:                                               ; preds = %101, %38
  %90 = load i32, ptr %15, align 4, !tbaa !17
  %91 = load i32, ptr %16, align 4, !tbaa !17
  %92 = icmp ult i32 %90, %91
  br i1 %92, label %93, label %104

93:                                               ; preds = %89
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = load i32, ptr %15, align 4, !tbaa !17
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %94, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !18
  %99 = load float, ptr %14, align 4, !tbaa !18
  %100 = fadd float %99, %98
  store float %100, ptr %14, align 4, !tbaa !18
  br label %101

101:                                              ; preds = %93
  %102 = load i32, ptr %15, align 4, !tbaa !17
  %103 = add i32 %102, 1
  store i32 %103, ptr %15, align 4, !tbaa !17
  br label %89, !llvm.loop !21

104:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %105 = load float, ptr %12, align 4, !tbaa !18
  %106 = load i32, ptr %16, align 4, !tbaa !17
  %107 = uitofp i32 %106 to float
  %108 = load float, ptr %14, align 4, !tbaa !18
  %109 = load i32, ptr %16, align 4, !tbaa !17
  %110 = uitofp i32 %109 to float
  %111 = fdiv float %108, %110
  %112 = call float @sqrtf(float noundef %111) #4
  %113 = fadd float 0x3EB0C6F7A0000000, %112
  %114 = fmul float %107, %113
  %115 = fdiv float %105, %114
  store float %115, ptr %17, align 4, !tbaa !18
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.fskframesync_s, ptr %116, i32 0, i32 17
  %118 = getelementptr inbounds [3 x float], ptr %117, i64 0, i64 1
  %119 = load float, ptr %118, align 4, !tbaa !18
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.fskframesync_s, ptr %120, i32 0, i32 17
  %122 = getelementptr inbounds [3 x float], ptr %121, i64 0, i64 0
  store float %119, ptr %122, align 8, !tbaa !18
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.fskframesync_s, ptr %123, i32 0, i32 17
  %125 = getelementptr inbounds [3 x float], ptr %124, i64 0, i64 2
  %126 = load float, ptr %125, align 8, !tbaa !18
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.fskframesync_s, ptr %127, i32 0, i32 17
  %129 = getelementptr inbounds [3 x float], ptr %128, i64 0, i64 1
  store float %126, ptr %129, align 4, !tbaa !18
  %130 = load float, ptr %17, align 4, !tbaa !18
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.fskframesync_s, ptr %131, i32 0, i32 17
  %133 = getelementptr inbounds [3 x float], ptr %132, i64 0, i64 2
  store float %130, ptr %133, align 8, !tbaa !18
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.fskframesync_s, ptr %134, i32 0, i32 33
  %136 = load i32, ptr %135, align 8, !tbaa !23
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %145, label %138

138:                                              ; preds = %104
  %139 = load float, ptr %17, align 4, !tbaa !18
  %140 = fcmp ogt float %139, 5.000000e-01
  br i1 %140, label %141, label %144

141:                                              ; preds = %138
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.fskframesync_s, ptr %142, i32 0, i32 33
  store i32 1, ptr %143, align 8, !tbaa !23
  br label %144

144:                                              ; preds = %141, %138
  br label %166

145:                                              ; preds = %104
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.fskframesync_s, ptr %146, i32 0, i32 17
  %148 = getelementptr inbounds [3 x float], ptr %147, i64 0, i64 1
  %149 = load float, ptr %148, align 4, !tbaa !18
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.fskframesync_s, ptr %150, i32 0, i32 17
  %152 = getelementptr inbounds [3 x float], ptr %151, i64 0, i64 2
  %153 = load float, ptr %152, align 8, !tbaa !18
  %154 = fcmp ogt float %149, %153
  br i1 %154, label %155, label %164

155:                                              ; preds = %145
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.fskframesync_s, ptr %156, i32 0, i32 1
  %158 = load i32, ptr %157, align 4, !tbaa !15
  %159 = mul i32 2, %158
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.fskframesync_s, ptr %160, i32 0, i32 36
  store i32 %159, ptr %161, align 4, !tbaa !14
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.fskframesync_s, ptr %162, i32 0, i32 31
  store i32 1, ptr %163, align 8, !tbaa !24
  br label %165

164:                                              ; preds = %145
  br label %165

165:                                              ; preds = %164, %155
  br label %166

166:                                              ; preds = %165, %144
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %167

167:                                              ; preds = %166, %37
  %168 = load i32, ptr %3, align 4
  ret i32 %168
}

declare i32 @windowcf_read(ptr noundef, ptr noundef) #1

declare i32 @fskdem_demodulate(ptr noundef, ptr noundef) #1

declare float @fskdem_get_symbol_energy(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind
declare float @logf(float noundef) #3

declare i32 @firfilt_rrrf_push(ptr noundef, float noundef) #1

declare i32 @firfilt_rrrf_execute(ptr noundef, ptr noundef) #1

declare i32 @windowf_push(ptr noundef, float noundef) #1

declare i32 @windowf_read(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #3

attributes #0 = { nocallback nofree nosync 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"="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 = { 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 #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 136}
!10 = !{!"fskframesync_s", !11, i64 0, !11, i64 4, !12, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !7, i64 152, !11, i64 164, !11, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !6, i64 280}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44}
!14 = !{!10, !11, i64 268}
!15 = !{!10, !11, i64 4}
!16 = !{!10, !6, i64 16}
!17 = !{!11, !11, i64 0}
!18 = !{!12, !12, i64 0}
!19 = !{!10, !6, i64 128}
!20 = !{!10, !6, i64 144}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!10, !11, i64 256}
!24 = !{!10, !11, i64 248}


; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

declare i32 @windowcf_push(ptr noundef, <2 x float> noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @fskframesync_execute_detectframe(ptr nocapture noundef %0, <2 x float> noundef %1) local_unnamed_addr #2 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca ptr, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 136
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = tail call i32 @windowcf_push(ptr noundef %7, <2 x float> noundef %1) #4
  %9 = getelementptr inbounds i8, ptr %0, i64 268
  %10 = load i32, ptr %9, align 4, !tbaa !13
  %11 = add i32 %10, -1
  store i32 %11, ptr %9, align 4, !tbaa !13
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %12, label %80

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %0, i64 4
  %14 = load i32, ptr %13, align 4, !tbaa !14
  store i32 %14, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = call i32 @windowcf_read(ptr noundef %15, ptr noundef nonnull %3) #4
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !15
  %19 = load ptr, ptr %3, align 8, !tbaa !16
  %20 = call i32 @fskdem_demodulate(ptr noundef %18, ptr noundef %19) #4
  %21 = load ptr, ptr %17, align 8, !tbaa !15
  %22 = call float @fskdem_get_symbol_energy(ptr noundef %21, i32 noundef 0, i32 noundef 2) #4
  %23 = load ptr, ptr %17, align 8, !tbaa !15
  %24 = call float @fskdem_get_symbol_energy(ptr noundef %23, i32 noundef 1, i32 noundef 2) #4
  %25 = fadd float %24, 0x3E112E0BE0000000
  %26 = fadd float %22, 0x3E112E0BE0000000
  %27 = fdiv float %25, %26
  %28 = call float @logf(float noundef %27) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %29 = getelementptr inbounds i8, ptr %0, i64 128
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  %31 = call i32 @firfilt_rrrf_push(ptr noundef %30, float noundef %28) #4
  %32 = load ptr, ptr %29, align 8, !tbaa !17
  %33 = call i32 @firfilt_rrrf_execute(ptr noundef %32, ptr noundef nonnull %4) #4
  %34 = getelementptr inbounds i8, ptr %0, i64 144
  %35 = load ptr, ptr %34, align 8, !tbaa !18
  %36 = fmul float %28, %28
  %37 = call i32 @windowf_push(ptr noundef %35, float noundef %36) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %38 = load ptr, ptr %34, align 8, !tbaa !18
  %39 = call i32 @windowf_read(ptr noundef %38, ptr noundef nonnull %5) #4
  %40 = load ptr, ptr %5, align 8, !tbaa !16
  %invariant.gep = getelementptr inbounds i8, ptr %40, i64 4
  %invariant.gep50 = getelementptr inbounds i8, ptr %40, i64 8
  %invariant.gep52 = getelementptr inbounds i8, ptr %40, i64 12
  %invariant.gep54 = getelementptr inbounds i8, ptr %40, i64 16
  %invariant.gep56 = getelementptr inbounds i8, ptr %40, i64 20
  %invariant.gep58 = getelementptr inbounds i8, ptr %40, i64 24
  br label %41

41:                                               ; preds = %41, %12
  %indvars.iv = phi i64 [ 0, %12 ], [ %indvars.iv.next.6, %41 ]
  %.04547 = phi float [ 0.000000e+00, %12 ], [ %56, %41 ]
  %42 = getelementptr inbounds float, ptr %40, i64 %indvars.iv
  %43 = load float, ptr %42, align 4, !tbaa !19
  %44 = fadd float %.04547, %43
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv
  %45 = load float, ptr %gep, align 4, !tbaa !19
  %46 = fadd float %44, %45
  %gep51 = getelementptr inbounds float, ptr %invariant.gep50, i64 %indvars.iv
  %47 = load float, ptr %gep51, align 4, !tbaa !19
  %48 = fadd float %46, %47
  %gep53 = getelementptr inbounds float, ptr %invariant.gep52, i64 %indvars.iv
  %49 = load float, ptr %gep53, align 4, !tbaa !19
  %50 = fadd float %48, %49
  %gep55 = getelementptr inbounds float, ptr %invariant.gep54, i64 %indvars.iv
  %51 = load float, ptr %gep55, align 4, !tbaa !19
  %52 = fadd float %50, %51
  %gep57 = getelementptr inbounds float, ptr %invariant.gep56, i64 %indvars.iv
  %53 = load float, ptr %gep57, align 4, !tbaa !19
  %54 = fadd float %52, %53
  %gep59 = getelementptr inbounds float, ptr %invariant.gep58, i64 %indvars.iv
  %55 = load float, ptr %gep59, align 4, !tbaa !19
  %56 = fadd float %54, %55
  %indvars.iv.next.6 = add nuw nsw i64 %indvars.iv, 7
  %exitcond.not.6 = icmp eq i64 %indvars.iv.next.6, 126
  br i1 %exitcond.not.6, label %57, label %41, !llvm.loop !20

57:                                               ; preds = %41
  %58 = load float, ptr %4, align 4, !tbaa !19
  %59 = fdiv float %56, 1.260000e+02
  %60 = call float @sqrtf(float noundef %59) #4
  %61 = fadd float %60, 0x3EB0C6F7A0000000
  %62 = fmul float %61, 1.260000e+02
  %63 = fdiv float %58, %62
  %64 = getelementptr inbounds i8, ptr %0, i64 152
  %65 = getelementptr inbounds i8, ptr %0, i64 156
  %66 = getelementptr inbounds i8, ptr %0, i64 160
  %67 = load <2 x float>, ptr %65, align 4, !tbaa !19
  store <2 x float> %67, ptr %64, align 8, !tbaa !19
  store float %63, ptr %66, align 8, !tbaa !19
  %68 = getelementptr inbounds i8, ptr %0, i64 256
  %69 = load i32, ptr %68, align 8, !tbaa !22
  %.not46 = icmp eq i32 %69, 0
  br i1 %.not46, label %70, label %72

70:                                               ; preds = %57
  %71 = fcmp ogt float %63, 5.000000e-01
  br i1 %71, label %.sink.split, label %79

72:                                               ; preds = %57
  %73 = extractelement <2 x float> %67, i64 1
  %74 = fcmp ogt float %73, %63
  br i1 %74, label %75, label %79

75:                                               ; preds = %72
  %76 = load i32, ptr %13, align 4, !tbaa !14
  %77 = shl i32 %76, 1
  store i32 %77, ptr %9, align 4, !tbaa !13
  %78 = getelementptr inbounds i8, ptr %0, i64 248
  br label %.sink.split

.sink.split:                                      ; preds = %70, %75
  %.sink = phi ptr [ %78, %75 ], [ %68, %70 ]
  store i32 1, ptr %.sink, align 8, !tbaa !23
  br label %79

79:                                               ; preds = %.sink.split, %72, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %80

80:                                               ; preds = %2, %79
  ret i32 0
}

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

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

declare float @fskdem_get_symbol_energy(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @logf(float noundef) local_unnamed_addr #3

declare i32 @firfilt_rrrf_push(ptr noundef, float noundef) local_unnamed_addr #1

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

declare i32 @windowf_push(ptr noundef, float noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync 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"="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 nofree nounwind willreturn memory(write) "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, !11, i64 136}
!6 = !{!"fskframesync_s", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !12, i64 56, !11, i64 104, !7, i64 112, !7, i64 116, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !8, i64 152, !7, i64 164, !7, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !11, i64 280}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !11, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44}
!13 = !{!6, !7, i64 268}
!14 = !{!6, !7, i64 4}
!15 = !{!6, !11, i64 16}
!16 = !{!11, !11, i64 0}
!17 = !{!6, !11, i64 128}
!18 = !{!6, !11, i64 144}
!19 = !{!10, !10, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!6, !7, i64 256}
!23 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass