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

; 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.dsssframesync_s = type { ptr, ptr, %struct.framesyncstats_s, %struct.framedatastats_s, i32, i32, float, ptr, float, float, float, float, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, i32, %struct.flexframegenprops_s, ptr, i32, ptr, i32, i32, ptr, i32, i32, ptr, i32, ptr, i32, ptr, i32, i32, i32, i32 }
%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }
%struct.framedatastats_s = type { i32, i32, i32, i64 }
%struct.flexframegenprops_s = type { 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: nounwind uwtable
declare dso_local i32 @dsssframesync_reset(ptr noundef) #1

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

declare i32 @synth_crcf_get_length(ptr noundef) #2

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

24:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %138

25:                                               ; preds = %2
  %26 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %27 = load float, ptr %26, align 4
  %28 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %29 = load float, ptr %28, align 4
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.dsssframesync_s, ptr %30, i32 0, i32 24
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.dsssframesync_s, ptr %33, i32 0, i32 39
  %35 = load i32, ptr %34, align 8, !tbaa !18
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.dsssframesync_s, ptr %36, i32 0, i32 20
  %38 = load ptr, ptr %37, align 8, !tbaa !19
  %39 = call i32 @synth_crcf_get_length(ptr noundef %38)
  %40 = urem i32 %35, %39
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds { float, float }, ptr %32, i64 %41
  %43 = getelementptr inbounds { float, float }, ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds { float, float }, ptr %42, i32 0, i32 1
  store float %27, ptr %43, align 4
  store float %29, ptr %44, align 4
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.dsssframesync_s, ptr %45, i32 0, i32 39
  %47 = load i32, ptr %46, align 8, !tbaa !18
  %48 = add i32 %47, 1
  store i32 %48, ptr %46, align 8, !tbaa !18
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.dsssframesync_s, ptr %49, i32 0, i32 39
  %51 = load i32, ptr %50, align 8, !tbaa !18
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.dsssframesync_s, ptr %52, i32 0, i32 20
  %54 = load ptr, ptr %53, align 8, !tbaa !19
  %55 = call i32 @synth_crcf_get_length(ptr noundef %54)
  %56 = urem i32 %51, %55
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %25
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %138

59:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = call i32 @dsssframesync_decode_header(ptr noundef %60)
  store i32 %61, ptr %10, align 4, !tbaa !9
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %65, label %64

64:                                               ; preds = %59
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %137

65:                                               ; preds = %59
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.dsssframesync_s, ptr %66, i32 0, i32 30
  %68 = load i32, ptr %67, align 8, !tbaa !20
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %75

70:                                               ; preds = %65
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.dsssframesync_s, ptr %71, i32 0, i32 39
  store i32 0, ptr %72, align 8, !tbaa !18
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.dsssframesync_s, ptr %73, i32 0, i32 40
  store i32 3, ptr %74, align 4, !tbaa !21
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %137

75:                                               ; preds = %65
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.dsssframesync_s, ptr %76, i32 0, i32 3
  %78 = getelementptr inbounds %struct.framedatastats_s, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 8, !tbaa !22
  %80 = add i32 %79, 1
  store i32 %80, ptr %78, align 8, !tbaa !22
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.dsssframesync_s, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !23
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %134

85:                                               ; preds = %75
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.dsssframesync_s, ptr %86, i32 0, i32 2
  %88 = getelementptr inbounds %struct.framesyncstats_s, ptr %87, i32 0, i32 0
  store float 0.000000e+00, ptr %88, align 8, !tbaa !24
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.dsssframesync_s, ptr %89, i32 0, i32 11
  %91 = load float, ptr %90, align 4, !tbaa !25
  %92 = call float @log10f(float noundef %91) #5
  %93 = fmul float 2.000000e+01, %92
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.dsssframesync_s, ptr %94, i32 0, i32 2
  %96 = getelementptr inbounds %struct.framesyncstats_s, ptr %95, i32 0, i32 1
  store float %93, ptr %96, align 4, !tbaa !26
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.dsssframesync_s, ptr %97, i32 0, i32 12
  %99 = load ptr, ptr %98, align 8, !tbaa !27
  %100 = call float @nco_crcf_get_frequency(ptr noundef %99)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.dsssframesync_s, ptr %101, i32 0, i32 2
  %103 = getelementptr inbounds %struct.framesyncstats_s, ptr %102, i32 0, i32 2
  store float %100, ptr %103, align 8, !tbaa !28
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.dsssframesync_s, ptr %104, i32 0, i32 2
  %106 = getelementptr inbounds %struct.framesyncstats_s, ptr %105, i32 0, i32 3
  store ptr null, ptr %106, align 8, !tbaa !29
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.dsssframesync_s, ptr %107, i32 0, i32 2
  %109 = getelementptr inbounds %struct.framesyncstats_s, ptr %108, i32 0, i32 4
  store i32 0, ptr %109, align 8, !tbaa !30
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.dsssframesync_s, ptr %110, i32 0, i32 2
  %112 = getelementptr inbounds %struct.framesyncstats_s, ptr %111, i32 0, i32 7
  store i32 0, ptr %112, align 4, !tbaa !31
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.dsssframesync_s, ptr %113, i32 0, i32 2
  %115 = getelementptr inbounds %struct.framesyncstats_s, ptr %114, i32 0, i32 8
  store i32 0, ptr %115, align 8, !tbaa !32
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.dsssframesync_s, ptr %116, i32 0, i32 2
  %118 = getelementptr inbounds %struct.framesyncstats_s, ptr %117, i32 0, i32 9
  store i32 0, ptr %118, align 4, !tbaa !33
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.dsssframesync_s, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !23
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.dsssframesync_s, ptr %122, i32 0, i32 29
  %124 = load ptr, ptr %123, align 8, !tbaa !34
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.dsssframesync_s, ptr %125, i32 0, i32 30
  %127 = load i32, ptr %126, align 8, !tbaa !20
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.dsssframesync_s, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.dsssframesync_s, ptr %130, i32 0, i32 1
  %132 = load ptr, ptr %131, align 8, !tbaa !35
  %133 = call i32 %121(ptr noundef %124, i32 noundef %127, ptr noundef null, i32 noundef 0, i32 noundef 0, ptr noundef byval(%struct.framesyncstats_s) align 8 %129, ptr noundef %132)
  br label %134

134:                                              ; preds = %85, %75
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = call i32 @dsssframesync_reset(ptr noundef %135)
  store i32 %136, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %137

137:                                              ; preds = %134, %70, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %138

138:                                              ; preds = %137, %58, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %139 = load i32, ptr %3, align 4
  ret i32 %139
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @dsssframesync_step(ptr noundef, <2 x float> noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @dsssframesync_decode_header(ptr noundef) #3

; Function Attrs: nounwind
declare float @log10f(float noundef) #4

declare float @nco_crcf_get_frequency(ptr noundef) #2

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 = { "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 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 224}
!12 = !{!"dsssframesync_s", !6, i64 0, !6, i64 8, !13, i64 16, !15, i64 64, !10, i64 88, !10, i64 92, !14, i64 96, !6, i64 104, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124, !6, i64 128, !6, i64 136, !6, i64 144, !10, i64 152, !10, i64 156, !10, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !10, i64 200, !17, i64 204, !6, i64 224, !10, i64 232, !6, i64 240, !10, i64 248, !10, i64 252, !6, i64 256, !10, i64 264, !10, i64 268, !6, i64 272, !10, i64 280, !6, i64 288, !10, i64 296, !6, i64 304, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324}
!13 = !{!"", !14, i64 0, !14, i64 4, !14, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44}
!14 = !{!"float", !7, i64 0}
!15 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !16, i64 16}
!16 = !{!"long", !7, i64 0}
!17 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!18 = !{!12, !10, i64 320}
!19 = !{!12, !6, i64 184}
!20 = !{!12, !10, i64 264}
!21 = !{!12, !10, i64 324}
!22 = !{!12, !10, i64 64}
!23 = !{!12, !6, i64 0}
!24 = !{!12, !14, i64 16}
!25 = !{!12, !14, i64 124}
!26 = !{!12, !14, i64 20}
!27 = !{!12, !6, i64 128}
!28 = !{!12, !14, i64 24}
!29 = !{!12, !6, i64 32}
!30 = !{!12, !10, i64 40}
!31 = !{!12, !10, i64 52}
!32 = !{!12, !10, i64 56}
!33 = !{!12, !10, i64 60}
!34 = !{!12, !6, i64 256}
!35 = !{!12, !6, 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"

%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @dsssframesync_reset(ptr noundef) local_unnamed_addr #1

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

declare i32 @synth_crcf_get_length(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @dsssframesync_execute_rxheader(ptr noundef %0, <2 x float> noundef %1) local_unnamed_addr #3 {
  %3 = alloca { float, float }, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store <2 x float> zeroinitializer, ptr %3, align 8
  %4 = call i32 @dsssframesync_step(ptr noundef %0, <2 x float> noundef %1, ptr noundef nonnull %3)
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %59, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 224
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 320
  %9 = load i32, ptr %8, align 8, !tbaa !16
  %10 = getelementptr inbounds i8, ptr %0, i64 184
  %11 = load ptr, ptr %10, align 8, !tbaa !17
  %12 = load <2 x float>, ptr %3, align 8
  %13 = call i32 @synth_crcf_get_length(ptr noundef %11) #5
  %14 = urem i32 %9, %13
  %15 = zext i32 %14 to i64
  %16 = getelementptr inbounds { float, float }, ptr %7, i64 %15
  store <2 x float> %12, ptr %16, align 4
  %17 = load i32, ptr %8, align 8, !tbaa !16
  %18 = add i32 %17, 1
  store i32 %18, ptr %8, align 8, !tbaa !16
  %19 = load ptr, ptr %10, align 8, !tbaa !17
  %20 = call i32 @synth_crcf_get_length(ptr noundef %19) #5
  %21 = urem i32 %18, %20
  %.not33 = icmp eq i32 %21, 0
  br i1 %.not33, label %22, label %59

22:                                               ; preds = %5
  %23 = call i32 @dsssframesync_decode_header(ptr noundef nonnull %0)
  %.not34 = icmp eq i32 %23, 0
  br i1 %.not34, label %59, label %24

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %0, i64 264
  %26 = load i32, ptr %25, align 8, !tbaa !18
  %.not35 = icmp eq i32 %26, 0
  br i1 %.not35, label %29, label %27

27:                                               ; preds = %24
  store i32 0, ptr %8, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %0, i64 324
  store i32 3, ptr %28, align 4, !tbaa !19
  br label %59

29:                                               ; preds = %24
  %30 = getelementptr inbounds i8, ptr %0, i64 64
  %31 = load i32, ptr %30, align 8, !tbaa !20
  %32 = add i32 %31, 1
  store i32 %32, ptr %30, align 8, !tbaa !20
  %33 = load ptr, ptr %0, align 8, !tbaa !21
  %.not36 = icmp eq ptr %33, null
  br i1 %.not36, label %57, label %34

34:                                               ; preds = %29
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  store float 0.000000e+00, ptr %35, align 8, !tbaa !22
  %36 = getelementptr inbounds i8, ptr %0, i64 124
  %37 = load float, ptr %36, align 4, !tbaa !23
  %38 = call float @log10f(float noundef %37) #5
  %39 = fmul float %38, 2.000000e+01
  %40 = getelementptr inbounds i8, ptr %0, i64 20
  store float %39, ptr %40, align 4, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %0, i64 128
  %42 = load ptr, ptr %41, align 8, !tbaa !25
  %43 = call float @nco_crcf_get_frequency(ptr noundef %42) #5
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  store float %43, ptr %44, align 8, !tbaa !26
  %45 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr null, ptr %45, align 8, !tbaa !27
  %46 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 0, ptr %46, align 8, !tbaa !28
  %47 = getelementptr inbounds i8, ptr %0, i64 52
  store i32 0, ptr %47, align 4, !tbaa !29
  %48 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 0, ptr %48, align 8, !tbaa !30
  %49 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 0, ptr %49, align 4, !tbaa !31
  %50 = load ptr, ptr %0, align 8, !tbaa !21
  %51 = getelementptr inbounds i8, ptr %0, i64 256
  %52 = load ptr, ptr %51, align 8, !tbaa !32
  %53 = load i32, ptr %25, align 8, !tbaa !18
  %54 = getelementptr inbounds i8, ptr %0, i64 8
  %55 = load ptr, ptr %54, align 8, !tbaa !33
  %56 = call i32 %50(ptr noundef %52, i32 noundef %53, ptr noundef null, i32 noundef 0, i32 noundef 0, ptr noundef nonnull byval(%struct.framesyncstats_s) align 8 %35, ptr noundef %55) #5
  br label %57

57:                                               ; preds = %34, %29
  %58 = call i32 @dsssframesync_reset(ptr noundef nonnull %0)
  br label %59

59:                                               ; preds = %27, %57, %22, %5, %2
  %.1 = phi i32 [ 0, %2 ], [ 0, %5 ], [ 0, %27 ], [ %58, %57 ], [ 0, %22 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret i32 %.1
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @dsssframesync_step(ptr noundef, <2 x float> noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @dsssframesync_decode_header(ptr noundef) local_unnamed_addr #3

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

declare float @nco_crcf_get_frequency(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress 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 = { "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 = { 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 #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, !7, i64 224}
!6 = !{!"dsssframesync_s", !7, i64 0, !7, i64 8, !10, i64 16, !13, i64 64, !12, i64 88, !12, i64 92, !11, i64 96, !7, i64 104, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !7, i64 128, !7, i64 136, !7, i64 144, !12, i64 152, !12, i64 156, !12, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !12, i64 200, !15, i64 204, !7, i64 224, !12, i64 232, !7, i64 240, !12, i64 248, !12, i64 252, !7, i64 256, !12, i64 264, !12, i64 268, !7, i64 272, !12, i64 280, !7, i64 288, !12, i64 296, !7, i64 304, !12, i64 312, !12, i64 316, !12, i64 320, !12, i64 324}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44}
!11 = !{!"float", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !14, i64 16}
!14 = !{!"long", !8, i64 0}
!15 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!16 = !{!6, !12, i64 320}
!17 = !{!6, !7, i64 184}
!18 = !{!6, !12, i64 264}
!19 = !{!6, !12, i64 324}
!20 = !{!6, !12, i64 64}
!21 = !{!6, !7, i64 0}
!22 = !{!6, !11, i64 16}
!23 = !{!6, !11, i64 124}
!24 = !{!6, !11, i64 20}
!25 = !{!6, !7, i64 128}
!26 = !{!6, !11, i64 24}
!27 = !{!6, !7, i64 32}
!28 = !{!6, !12, i64 40}
!29 = !{!6, !12, i64 52}
!30 = !{!6, !12, i64 56}
!31 = !{!6, !12, i64 60}
!32 = !{!6, !7, i64 256}
!33 = !{!6, !7, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass