; 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

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

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

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

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

31:                                               ; preds = %2
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.fskframesync_s, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !15
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.fskframesync_s, ptr %35, i32 0, i32 36
  store i32 %34, ptr %36, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.fskframesync_s, ptr %37, i32 0, i32 15
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = call i32 @windowcf_read(ptr noundef %39, ptr noundef %7)
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.fskframesync_s, ptr %41, i32 0, i32 5
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = call i32 @fskdem_demodulate(ptr noundef %43, ptr noundef %44)
  %46 = trunc i32 %45 to i8
  store i8 %46, ptr %8, align 1, !tbaa !17
  %47 = load i8, ptr %8, align 1, !tbaa !17
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.fskframesync_s, ptr %48, i32 0, i32 28
  %50 = load ptr, ptr %49, align 8, !tbaa !18
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.fskframesync_s, ptr %51, i32 0, i32 35
  %53 = load i32, ptr %52, align 8, !tbaa !19
  %54 = add i32 %53, 1
  store i32 %54, ptr %52, align 8, !tbaa !19
  %55 = zext i32 %53 to i64
  %56 = getelementptr inbounds i8, ptr %50, i64 %55
  store i8 %47, ptr %56, align 1, !tbaa !17
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.fskframesync_s, ptr %57, i32 0, i32 35
  %59 = load i32, ptr %58, align 8, !tbaa !19
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.fskframesync_s, ptr %60, i32 0, i32 27
  %62 = load i32, ptr %61, align 8, !tbaa !20
  %63 = icmp eq i32 %59, %62
  br i1 %63, label %64, label %141

64:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.fskframesync_s, ptr %65, i32 0, i32 30
  %67 = load ptr, ptr %66, align 8, !tbaa !21
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.fskframesync_s, ptr %68, i32 0, i32 28
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.fskframesync_s, ptr %71, i32 0, i32 29
  %73 = load ptr, ptr %72, align 8, !tbaa !22
  %74 = call i32 @qpacketmodem_decode_syms(ptr noundef %67, ptr noundef %70, ptr noundef %73)
  store i32 %74, ptr %9, align 4, !tbaa !23
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.fskframesync_s, ptr %75, i32 0, i32 7
  %77 = load ptr, ptr %76, align 8, !tbaa !24
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %138

79:                                               ; preds = %64
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.fskframesync_s, ptr %80, i32 0, i32 9
  %82 = getelementptr inbounds %struct.framesyncstats_s, ptr %81, i32 0, i32 0
  store float 0.000000e+00, ptr %82, align 8, !tbaa !25
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.fskframesync_s, ptr %83, i32 0, i32 9
  %85 = getelementptr inbounds %struct.framesyncstats_s, ptr %84, i32 0, i32 1
  store float 0.000000e+00, ptr %85, align 4, !tbaa !26
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.fskframesync_s, ptr %86, i32 0, i32 9
  %88 = getelementptr inbounds %struct.framesyncstats_s, ptr %87, i32 0, i32 2
  store float 0.000000e+00, ptr %88, align 8, !tbaa !27
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.fskframesync_s, ptr %89, i32 0, i32 9
  %91 = getelementptr inbounds %struct.framesyncstats_s, ptr %90, i32 0, i32 3
  store ptr null, ptr %91, align 8, !tbaa !28
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.fskframesync_s, ptr %92, i32 0, i32 9
  %94 = getelementptr inbounds %struct.framesyncstats_s, ptr %93, i32 0, i32 4
  store i32 0, ptr %94, align 8, !tbaa !29
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.fskframesync_s, ptr %95, i32 0, i32 9
  %97 = getelementptr inbounds %struct.framesyncstats_s, ptr %96, i32 0, i32 5
  store i32 0, ptr %97, align 4, !tbaa !30
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.fskframesync_s, ptr %98, i32 0, i32 9
  %100 = getelementptr inbounds %struct.framesyncstats_s, ptr %99, i32 0, i32 6
  store i32 0, ptr %100, align 8, !tbaa !31
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.fskframesync_s, ptr %101, i32 0, i32 24
  %103 = load i32, ptr %102, align 4, !tbaa !32
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.fskframesync_s, ptr %104, i32 0, i32 9
  %106 = getelementptr inbounds %struct.framesyncstats_s, ptr %105, i32 0, i32 7
  store i32 %103, ptr %106, align 4, !tbaa !33
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.fskframesync_s, ptr %107, i32 0, i32 25
  %109 = load i32, ptr %108, align 8, !tbaa !34
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.fskframesync_s, ptr %110, i32 0, i32 9
  %112 = getelementptr inbounds %struct.framesyncstats_s, ptr %111, i32 0, i32 8
  store i32 %109, ptr %112, align 8, !tbaa !35
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.fskframesync_s, ptr %113, i32 0, i32 26
  %115 = load i32, ptr %114, align 4, !tbaa !36
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.fskframesync_s, ptr %116, i32 0, i32 9
  %118 = getelementptr inbounds %struct.framesyncstats_s, ptr %117, i32 0, i32 9
  store i32 %115, ptr %118, align 4, !tbaa !37
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.fskframesync_s, ptr %119, i32 0, i32 7
  %121 = load ptr, ptr %120, align 8, !tbaa !24
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.fskframesync_s, ptr %122, i32 0, i32 20
  %124 = load ptr, ptr %123, align 8, !tbaa !38
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.fskframesync_s, ptr %125, i32 0, i32 29
  %127 = load ptr, ptr %126, align 8, !tbaa !22
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.fskframesync_s, ptr %128, i32 0, i32 23
  %130 = load i32, ptr %129, align 8, !tbaa !39
  %131 = load i32, ptr %9, align 4, !tbaa !23
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.fskframesync_s, ptr %132, i32 0, i32 9
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.fskframesync_s, ptr %134, i32 0, i32 8
  %136 = load ptr, ptr %135, align 8, !tbaa !40
  %137 = call i32 %121(ptr noundef %124, i32 noundef 1, ptr noundef %127, i32 noundef %130, i32 noundef %131, ptr noundef byval(%struct.framesyncstats_s) align 8 %133, ptr noundef %136)
  br label %138

138:                                              ; preds = %79, %64
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = call i32 @fskframesync_reset(ptr noundef %139)
  store i32 %140, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %142

141:                                              ; preds = %31
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %142

142:                                              ; preds = %141, %138
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %143

143:                                              ; preds = %142, %30
  %144 = load i32, ptr %3, align 4
  ret i32 %144
}

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

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

declare i32 @qpacketmodem_decode_syms(ptr noundef, ptr noundef, 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 }

!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 24}
!17 = !{!7, !7, i64 0}
!18 = !{!10, !6, i64 224}
!19 = !{!10, !11, i64 264}
!20 = !{!10, !11, i64 216}
!21 = !{!10, !6, i64 240}
!22 = !{!10, !6, i64 232}
!23 = !{!11, !11, i64 0}
!24 = !{!10, !6, i64 40}
!25 = !{!10, !12, i64 56}
!26 = !{!10, !12, i64 60}
!27 = !{!10, !12, i64 64}
!28 = !{!10, !6, i64 72}
!29 = !{!10, !11, i64 80}
!30 = !{!10, !11, i64 84}
!31 = !{!10, !11, i64 88}
!32 = !{!10, !11, i64 204}
!33 = !{!10, !11, i64 92}
!34 = !{!10, !11, i64 208}
!35 = !{!10, !11, i64 96}
!36 = !{!10, !11, i64 212}
!37 = !{!10, !11, i64 100}
!38 = !{!10, !6, i64 176}
!39 = !{!10, !11, i64 200}
!40 = !{!10, !6, i64 48}


; 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: mustprogress 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 @fskframesync_reset(ptr noundef) local_unnamed_addr #1

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

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

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !14
  store i32 %12, ptr %7, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = call i32 @windowcf_read(ptr noundef %13, ptr noundef nonnull %3) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = load ptr, ptr %15, align 8, !tbaa !15
  %17 = load ptr, ptr %3, align 8, !tbaa !16
  %18 = call i32 @fskdem_demodulate(ptr noundef %16, ptr noundef %17) #5
  %19 = trunc i32 %18 to i8
  %20 = getelementptr inbounds i8, ptr %0, i64 224
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %22 = getelementptr inbounds i8, ptr %0, i64 264
  %23 = load i32, ptr %22, align 8, !tbaa !18
  %24 = add i32 %23, 1
  store i32 %24, ptr %22, align 8, !tbaa !18
  %25 = zext i32 %23 to i64
  %26 = getelementptr inbounds i8, ptr %21, i64 %25
  store i8 %19, ptr %26, align 1, !tbaa !19
  %27 = load i32, ptr %22, align 8, !tbaa !18
  %28 = getelementptr inbounds i8, ptr %0, i64 216
  %29 = load i32, ptr %28, align 8, !tbaa !20
  %30 = icmp eq i32 %27, %29
  br i1 %30, label %31, label %60

31:                                               ; preds = %10
  %32 = getelementptr inbounds i8, ptr %0, i64 240
  %33 = load ptr, ptr %32, align 8, !tbaa !21
  %34 = load ptr, ptr %20, align 8, !tbaa !17
  %35 = getelementptr inbounds i8, ptr %0, i64 232
  %36 = load ptr, ptr %35, align 8, !tbaa !22
  %37 = call i32 @qpacketmodem_decode_syms(ptr noundef %33, ptr noundef %34, ptr noundef %36) #5
  %38 = getelementptr inbounds i8, ptr %0, i64 40
  %39 = load ptr, ptr %38, align 8, !tbaa !23
  %.not39 = icmp eq ptr %39, null
  br i1 %.not39, label %58, label %40

40:                                               ; preds = %31
  %41 = getelementptr inbounds i8, ptr %0, i64 56
  store <2 x float> zeroinitializer, ptr %41, align 8, !tbaa !24
  %42 = getelementptr inbounds i8, ptr %0, i64 64
  store float 0.000000e+00, ptr %42, align 8, !tbaa !25
  %43 = getelementptr inbounds i8, ptr %0, i64 72
  %44 = getelementptr inbounds i8, ptr %0, i64 204
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %43, i8 0, i64 20, i1 false)
  %45 = getelementptr inbounds i8, ptr %0, i64 92
  %46 = load <2 x i32>, ptr %44, align 4, !tbaa !26
  store <2 x i32> %46, ptr %45, align 4, !tbaa !26
  %47 = getelementptr inbounds i8, ptr %0, i64 212
  %48 = load i32, ptr %47, align 4, !tbaa !27
  %49 = getelementptr inbounds i8, ptr %0, i64 100
  store i32 %48, ptr %49, align 4, !tbaa !28
  %50 = getelementptr inbounds i8, ptr %0, i64 176
  %51 = load ptr, ptr %50, align 8, !tbaa !29
  %52 = load ptr, ptr %35, align 8, !tbaa !22
  %53 = getelementptr inbounds i8, ptr %0, i64 200
  %54 = load i32, ptr %53, align 8, !tbaa !30
  %55 = getelementptr inbounds i8, ptr %0, i64 48
  %56 = load ptr, ptr %55, align 8, !tbaa !31
  %57 = call i32 %39(ptr noundef %51, i32 noundef 1, ptr noundef %52, i32 noundef %54, i32 noundef %37, ptr noundef nonnull byval(%struct.framesyncstats_s) align 8 %41, ptr noundef %56) #5
  br label %58

58:                                               ; preds = %40, %31
  %59 = call i32 @fskframesync_reset(ptr noundef nonnull %0)
  br label %60

60:                                               ; preds = %10, %58
  %.0 = phi i32 [ %59, %58 ], [ 0, %10 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %61

61:                                               ; preds = %2, %60
  %.1 = phi i32 [ %.0, %60 ], [ 0, %2 ]
  ret i32 %.1
}

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

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

declare i32 @qpacketmodem_decode_syms(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !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 24}
!16 = !{!11, !11, i64 0}
!17 = !{!6, !11, i64 224}
!18 = !{!6, !7, i64 264}
!19 = !{!8, !8, i64 0}
!20 = !{!6, !7, i64 216}
!21 = !{!6, !11, i64 240}
!22 = !{!6, !11, i64 232}
!23 = !{!6, !11, i64 40}
!24 = !{!10, !10, i64 0}
!25 = !{!6, !10, i64 64}
!26 = !{!7, !7, i64 0}
!27 = !{!6, !7, i64 212}
!28 = !{!6, !7, i64 100}
!29 = !{!6, !11, i64 176}
!30 = !{!6, !7, i64 200}
!31 = !{!6, !11, i64 48}


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