; 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.cpfskdem_s = type { i32, i32, i32, float, float, i32, i32, i32, i32, ptr, %union.anon.7, i32, i32, { float, float } }
%union.anon.7 = type { %struct.anon.9 }
%struct.anon.9 = type { ptr }

@.str.49 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [52 x i8], align 1

; 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 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @cpfskdem_init_noncoherent(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.cpfskdem_s, ptr %8, i32 0, i32 8
  store i32 1, ptr %9, align 8, !tbaa !9
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.cpfskdem_s, ptr %10, i32 0, i32 9
  store ptr @cpfskdem_demodulate_noncoherent, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store float 0.000000e+00, ptr %4, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store float 0.000000e+00, ptr %5, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.cpfskdem_s, ptr %12, i32 0, i32 3
  %14 = load float, ptr %13, align 4, !tbaa !15
  store float %14, ptr %6, align 4, !tbaa !14
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.cpfskdem_s, ptr %15, i32 0, i32 5
  %17 = load i32, ptr %16, align 4, !tbaa !16
  switch i32 %17, label %203 [
    i32 0, label %18
    i32 1, label %45
    i32 2, label %102
    i32 3, label %159
  ]

18:                                               ; preds = %1
  store float 0x3FD99999A0000000, ptr %4, align 4, !tbaa !14
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.cpfskdem_s, ptr %19, i32 0, i32 2
  %21 = load i32, ptr %20, align 8, !tbaa !17
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.cpfskdem_s, ptr %22, i32 0, i32 7
  store i32 %21, ptr %23, align 4, !tbaa !18
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.cpfskdem_s, ptr %24, i32 0, i32 1
  %26 = load i32, ptr %25, align 4, !tbaa !19
  %27 = mul i32 2, %26
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.cpfskdem_s, ptr %28, i32 0, i32 2
  %30 = load i32, ptr %29, align 8, !tbaa !17
  %31 = mul i32 %27, %30
  %32 = add i32 %31, 1
  %33 = load float, ptr %4, align 4, !tbaa !14
  %34 = call ptr @firfilt_crcf_create_kaiser(i32 noundef %32, float noundef %33, float noundef 6.000000e+01, float noundef 0.000000e+00)
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.cpfskdem_s, ptr %35, i32 0, i32 10
  %37 = getelementptr inbounds %struct.anon.9, ptr %36, i32 0, i32 0
  store ptr %34, ptr %37, align 8, !tbaa !20
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.cpfskdem_s, ptr %38, i32 0, i32 10
  %40 = getelementptr inbounds %struct.anon.9, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = load float, ptr %4, align 4, !tbaa !14
  %43 = fmul float 2.000000e+00, %42
  %44 = call i32 @firfilt_crcf_set_scale(ptr noundef %41, float noundef %43)
  br label %205

45:                                               ; preds = %1
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.cpfskdem_s, ptr %46, i32 0, i32 6
  %48 = load i32, ptr %47, align 8, !tbaa !21
  %49 = icmp eq i32 %48, 2
  br i1 %49, label %50, label %76

50:                                               ; preds = %45
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.cpfskdem_s, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !19
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.cpfskdem_s, ptr %54, i32 0, i32 2
  %56 = load i32, ptr %55, align 8, !tbaa !17
  %57 = call ptr @firfilt_crcf_create_rnyquist(i32 noundef 12, i32 noundef %53, i32 noundef %56, float noundef 5.000000e-01, float noundef 0.000000e+00)
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.cpfskdem_s, ptr %58, i32 0, i32 10
  %60 = getelementptr inbounds %struct.anon.9, ptr %59, i32 0, i32 0
  store ptr %57, ptr %60, align 8, !tbaa !20
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.cpfskdem_s, ptr %61, i32 0, i32 10
  %63 = getelementptr inbounds %struct.anon.9, ptr %62, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !20
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.cpfskdem_s, ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 4, !tbaa !19
  %68 = uitofp i32 %67 to float
  %69 = fdiv float 0x3FF547AE20000000, %68
  %70 = call i32 @firfilt_crcf_set_scale(ptr noundef %64, float noundef %69)
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.cpfskdem_s, ptr %71, i32 0, i32 2
  %73 = load i32, ptr %72, align 8, !tbaa !17
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.cpfskdem_s, ptr %74, i32 0, i32 7
  store i32 %73, ptr %75, align 4, !tbaa !18
  br label %101

76:                                               ; preds = %45
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.cpfskdem_s, ptr %77, i32 0, i32 1
  %79 = load i32, ptr %78, align 4, !tbaa !19
  %80 = udiv i32 %79, 2
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.cpfskdem_s, ptr %81, i32 0, i32 2
  %83 = load i32, ptr %82, align 8, !tbaa !17
  %84 = mul i32 2, %83
  %85 = call ptr @firfilt_crcf_create_rnyquist(i32 noundef 12, i32 noundef %80, i32 noundef %84, float noundef 0x3FECCCCCC0000000, float noundef 0.000000e+00)
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.cpfskdem_s, ptr %86, i32 0, i32 10
  %88 = getelementptr inbounds %struct.anon.9, ptr %87, i32 0, i32 0
  store ptr %85, ptr %88, align 8, !tbaa !20
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.cpfskdem_s, ptr %89, i32 0, i32 10
  %91 = getelementptr inbounds %struct.anon.9, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !20
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.cpfskdem_s, ptr %93, i32 0, i32 1
  %95 = load i32, ptr %94, align 4, !tbaa !19
  %96 = uitofp i32 %95 to float
  %97 = fdiv float 3.250000e+00, %96
  %98 = call i32 @firfilt_crcf_set_scale(ptr noundef %92, float noundef %97)
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.cpfskdem_s, ptr %99, i32 0, i32 7
  store i32 0, ptr %100, align 4, !tbaa !18
  br label %101

101:                                              ; preds = %76, %50
  br label %205

102:                                              ; preds = %1
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.cpfskdem_s, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %104, align 8, !tbaa !21
  %106 = icmp eq i32 %105, 2
  br i1 %106, label %107, label %133

107:                                              ; preds = %102
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.cpfskdem_s, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 4, !tbaa !19
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.cpfskdem_s, ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 8, !tbaa !17
  %114 = call ptr @firfilt_crcf_create_rnyquist(i32 noundef 12, i32 noundef %110, i32 noundef %113, float noundef 0x3FD3333340000000, float noundef 0.000000e+00)
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.cpfskdem_s, ptr %115, i32 0, i32 10
  %117 = getelementptr inbounds %struct.anon.9, ptr %116, i32 0, i32 0
  store ptr %114, ptr %117, align 8, !tbaa !20
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.cpfskdem_s, ptr %118, i32 0, i32 10
  %120 = getelementptr inbounds %struct.anon.9, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !20
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.cpfskdem_s, ptr %122, i32 0, i32 1
  %124 = load i32, ptr %123, align 4, !tbaa !19
  %125 = uitofp i32 %124 to float
  %126 = fdiv float 0x3FF19999A0000000, %125
  %127 = call i32 @firfilt_crcf_set_scale(ptr noundef %121, float noundef %126)
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.cpfskdem_s, ptr %128, i32 0, i32 2
  %130 = load i32, ptr %129, align 8, !tbaa !17
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.cpfskdem_s, ptr %131, i32 0, i32 7
  store i32 %130, ptr %132, align 4, !tbaa !18
  br label %158

133:                                              ; preds = %102
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.cpfskdem_s, ptr %134, i32 0, i32 1
  %136 = load i32, ptr %135, align 4, !tbaa !19
  %137 = udiv i32 %136, 2
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.cpfskdem_s, ptr %138, i32 0, i32 2
  %140 = load i32, ptr %139, align 8, !tbaa !17
  %141 = mul i32 2, %140
  %142 = call ptr @firfilt_crcf_create_rnyquist(i32 noundef 12, i32 noundef %137, i32 noundef %141, float noundef 0x3FD147AE20000000, float noundef 0.000000e+00)
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.cpfskdem_s, ptr %143, i32 0, i32 10
  %145 = getelementptr inbounds %struct.anon.9, ptr %144, i32 0, i32 0
  store ptr %142, ptr %145, align 8, !tbaa !20
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.cpfskdem_s, ptr %146, i32 0, i32 10
  %148 = getelementptr inbounds %struct.anon.9, ptr %147, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !20
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.cpfskdem_s, ptr %150, i32 0, i32 1
  %152 = load i32, ptr %151, align 4, !tbaa !19
  %153 = uitofp i32 %152 to float
  %154 = fdiv float 0x4007333340000000, %153
  %155 = call i32 @firfilt_crcf_set_scale(ptr noundef %149, float noundef %154)
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.cpfskdem_s, ptr %156, i32 0, i32 7
  store i32 0, ptr %157, align 4, !tbaa !18
  br label %158

158:                                              ; preds = %133, %107
  br label %205

159:                                              ; preds = %1
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.cpfskdem_s, ptr %160, i32 0, i32 1
  %162 = load i32, ptr %161, align 4, !tbaa !19
  %163 = uitofp i32 %162 to float
  %164 = fdiv float 5.000000e-01, %163
  store float %164, ptr %4, align 4, !tbaa !14
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.cpfskdem_s, ptr %165, i32 0, i32 6
  %167 = load i32, ptr %166, align 8, !tbaa !21
  %168 = icmp eq i32 %167, 2
  br i1 %168, label %169, label %173

169:                                              ; preds = %159
  %170 = load float, ptr %6, align 4, !tbaa !14
  %171 = fpext float %170 to double
  %172 = fmul double 8.000000e-01, %171
  br label %177

173:                                              ; preds = %159
  %174 = load float, ptr %6, align 4, !tbaa !14
  %175 = fpext float %174 to double
  %176 = fmul double 1.000000e+00, %175
  br label %177

177:                                              ; preds = %173, %169
  %178 = phi double [ %172, %169 ], [ %176, %173 ]
  %179 = fptrunc double %178 to float
  store float %179, ptr %5, align 4, !tbaa !14
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.cpfskdem_s, ptr %180, i32 0, i32 1
  %182 = load i32, ptr %181, align 4, !tbaa !19
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.cpfskdem_s, ptr %183, i32 0, i32 2
  %185 = load i32, ptr %184, align 8, !tbaa !17
  %186 = load float, ptr %5, align 4, !tbaa !14
  %187 = call ptr @firfilt_crcf_create_rnyquist(i32 noundef 12, i32 noundef %182, i32 noundef %185, float noundef %186, float noundef 0.000000e+00)
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.cpfskdem_s, ptr %188, i32 0, i32 10
  %190 = getelementptr inbounds %struct.anon.9, ptr %189, i32 0, i32 0
  store ptr %187, ptr %190, align 8, !tbaa !20
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.cpfskdem_s, ptr %191, i32 0, i32 10
  %193 = getelementptr inbounds %struct.anon.9, ptr %192, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8, !tbaa !20
  %195 = load float, ptr %4, align 4, !tbaa !14
  %196 = fmul float 2.000000e+00, %195
  %197 = call i32 @firfilt_crcf_set_scale(ptr noundef %194, float noundef %196)
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.cpfskdem_s, ptr %198, i32 0, i32 2
  %200 = load i32, ptr %199, align 8, !tbaa !17
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.cpfskdem_s, ptr %201, i32 0, i32 7
  store i32 %200, ptr %202, align 4, !tbaa !18
  br label %205

203:                                              ; preds = %1
  %204 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str.49, i32 noundef 263, ptr noundef @.str.60)
  store i32 %204, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %206

205:                                              ; preds = %177, %158, %101, %18
  store i32 0, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %206

206:                                              ; preds = %205, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  %207 = load i32, ptr %2, align 4
  ret i32 %207
}

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

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

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

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

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"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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, !11, i64 32}
!10 = !{!"cpfskdem_s", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 12, !12, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !6, i64 40, !7, i64 48, !11, i64 56, !11, i64 60, !7, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !6, i64 40}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !12, i64 12}
!16 = !{!10, !11, i64 20}
!17 = !{!10, !11, i64 8}
!18 = !{!10, !11, i64 28}
!19 = !{!10, !11, i64 4}
!20 = !{!7, !7, i64 0}
!21 = !{!10, !11, i64 24}


; 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"

@.str.49 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [52 x i8], align 1

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @cpfskdem_init_noncoherent(ptr nocapture noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 1, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr @cpfskdem_demodulate_noncoherent, ptr %3, align 8, !tbaa !12
  %4 = getelementptr inbounds i8, ptr %0, i64 20
  %5 = load i32, ptr %4, align 4, !tbaa !13
  switch i32 %5, label %98 [
    i32 0, label %6
    i32 1, label %18
    i32 2, label %47
    i32 3, label %76
  ]

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i32, ptr %7, align 8, !tbaa !14
  %9 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 %8, ptr %9, align 4, !tbaa !15
  %10 = getelementptr inbounds i8, ptr %0, i64 4
  %11 = load i32, ptr %10, align 4, !tbaa !16
  %12 = shl i32 %8, 1
  %13 = mul i32 %12, %11
  %14 = or disjoint i32 %13, 1
  %15 = tail call ptr @firfilt_crcf_create_kaiser(i32 noundef %14, float noundef 0x3FD99999A0000000, float noundef 6.000000e+01, float noundef 0.000000e+00) #3
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %15, ptr %16, align 8, !tbaa !17
  %17 = tail call i32 @firfilt_crcf_set_scale(ptr noundef %15, float noundef 0x3FE99999A0000000) #3
  br label %100

18:                                               ; preds = %1
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = load i32, ptr %19, align 8, !tbaa !18
  %21 = icmp eq i32 %20, 2
  %22 = getelementptr inbounds i8, ptr %0, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !16
  br i1 %21, label %24, label %35

24:                                               ; preds = %18
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  %26 = load i32, ptr %25, align 8, !tbaa !14
  %27 = tail call ptr @firfilt_crcf_create_rnyquist(i32 noundef 12, i32 noundef %23, i32 noundef %26, float noundef 5.000000e-01, float noundef 0.000000e+00) #3
  %28 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %27, ptr %28, align 8, !tbaa !17
  %29 = load i32, ptr %22, align 4, !tbaa !16
  %30 = uitofp i32 %29 to float
  %31 = fdiv float 0x3FF547AE20000000, %30
  %32 = tail call i32 @firfilt_crcf_set_scale(ptr noundef %27, float noundef %31) #3
  %33 = load i32, ptr %25, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 %33, ptr %34, align 4, !tbaa !15
  br label %100

35:                                               ; preds = %18
  %36 = lshr i32 %23, 1
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  %38 = load i32, ptr %37, align 8, !tbaa !14
  %39 = shl i32 %38, 1
  %40 = tail call ptr @firfilt_crcf_create_rnyquist(i32 noundef 12, i32 noundef %36, i32 noundef %39, float noundef 0x3FECCCCCC0000000, float noundef 0.000000e+00) #3
  %41 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %40, ptr %41, align 8, !tbaa !17
  %42 = load i32, ptr %22, align 4, !tbaa !16
  %43 = uitofp i32 %42 to float
  %44 = fdiv float 3.250000e+00, %43
  %45 = tail call i32 @firfilt_crcf_set_scale(ptr noundef %40, float noundef %44) #3
  %46 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 0, ptr %46, align 4, !tbaa !15
  br label %100

47:                                               ; preds = %1
  %48 = getelementptr inbounds i8, ptr %0, i64 24
  %49 = load i32, ptr %48, align 8, !tbaa !18
  %50 = icmp eq i32 %49, 2
  %51 = getelementptr inbounds i8, ptr %0, i64 4
  %52 = load i32, ptr %51, align 4, !tbaa !16
  br i1 %50, label %53, label %64

53:                                               ; preds = %47
  %54 = getelementptr inbounds i8, ptr %0, i64 8
  %55 = load i32, ptr %54, align 8, !tbaa !14
  %56 = tail call ptr @firfilt_crcf_create_rnyquist(i32 noundef 12, i32 noundef %52, i32 noundef %55, float noundef 0x3FD3333340000000, float noundef 0.000000e+00) #3
  %57 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %56, ptr %57, align 8, !tbaa !17
  %58 = load i32, ptr %51, align 4, !tbaa !16
  %59 = uitofp i32 %58 to float
  %60 = fdiv float 0x3FF19999A0000000, %59
  %61 = tail call i32 @firfilt_crcf_set_scale(ptr noundef %56, float noundef %60) #3
  %62 = load i32, ptr %54, align 8, !tbaa !14
  %63 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 %62, ptr %63, align 4, !tbaa !15
  br label %100

64:                                               ; preds = %47
  %65 = lshr i32 %52, 1
  %66 = getelementptr inbounds i8, ptr %0, i64 8
  %67 = load i32, ptr %66, align 8, !tbaa !14
  %68 = shl i32 %67, 1
  %69 = tail call ptr @firfilt_crcf_create_rnyquist(i32 noundef 12, i32 noundef %65, i32 noundef %68, float noundef 0x3FD147AE20000000, float noundef 0.000000e+00) #3
  %70 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %69, ptr %70, align 8, !tbaa !17
  %71 = load i32, ptr %51, align 4, !tbaa !16
  %72 = uitofp i32 %71 to float
  %73 = fdiv float 0x4007333340000000, %72
  %74 = tail call i32 @firfilt_crcf_set_scale(ptr noundef %69, float noundef %73) #3
  %75 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 0, ptr %75, align 4, !tbaa !15
  br label %100

76:                                               ; preds = %1
  %77 = getelementptr inbounds i8, ptr %0, i64 12
  %78 = load float, ptr %77, align 4, !tbaa !19
  %79 = getelementptr inbounds i8, ptr %0, i64 4
  %80 = load i32, ptr %79, align 4, !tbaa !16
  %81 = uitofp i32 %80 to float
  %82 = fdiv float 5.000000e-01, %81
  %83 = getelementptr inbounds i8, ptr %0, i64 24
  %84 = load i32, ptr %83, align 8, !tbaa !18
  %85 = icmp eq i32 %84, 2
  %86 = fpext float %78 to double
  %87 = fmul double %86, 8.000000e-01
  %88 = fptrunc double %87 to float
  %89 = select i1 %85, float %88, float %78
  %90 = getelementptr inbounds i8, ptr %0, i64 8
  %91 = load i32, ptr %90, align 8, !tbaa !14
  %92 = tail call ptr @firfilt_crcf_create_rnyquist(i32 noundef 12, i32 noundef %80, i32 noundef %91, float noundef %89, float noundef 0.000000e+00) #3
  %93 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %92, ptr %93, align 8, !tbaa !17
  %94 = fmul float %82, 2.000000e+00
  %95 = tail call i32 @firfilt_crcf_set_scale(ptr noundef %92, float noundef %94) #3
  %96 = load i32, ptr %90, align 8, !tbaa !14
  %97 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 %96, ptr %97, align 4, !tbaa !15
  br label %100

98:                                               ; preds = %1
  %99 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str.49, i32 noundef 263, ptr noundef nonnull @.str.60) #3
  br label %100

100:                                              ; preds = %6, %76, %35, %24, %64, %53, %98
  %.0 = phi i32 [ %99, %98 ], [ 0, %53 ], [ 0, %64 ], [ 0, %24 ], [ 0, %35 ], [ 0, %76 ], [ 0, %6 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @cpfskdem_demodulate_noncoherent(ptr noundef, ptr noundef) #2

declare ptr @firfilt_crcf_create_kaiser(i32 noundef, float noundef, float noundef, float noundef) local_unnamed_addr #0

declare i32 @firfilt_crcf_set_scale(ptr noundef, float noundef) local_unnamed_addr #0

declare ptr @firfilt_crcf_create_rnyquist(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #0

attributes #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 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 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 }

!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 32}
!6 = !{!"cpfskdem_s", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 12, !10, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !11, i64 40, !8, i64 48, !7, i64 56, !7, i64 60, !8, i64 64}
!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 = !{!6, !11, i64 40}
!13 = !{!6, !7, i64 20}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !7, i64 28}
!16 = !{!6, !7, i64 4}
!17 = !{!8, !8, i64 0}
!18 = !{!6, !7, i64 24}
!19 = !{!6, !10, i64 12}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass