; LLVM IR from jgaeddert/liquid-dsp :: src/multichannel/src (firpfbch_crcf)

; 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.firpfbchr_crcf_s = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32 }

@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [58 x i8], align 1

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) #0

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

declare ptr @dotprod_crcf_create(ptr noundef, i32 noundef) #0

declare ptr @windowcf_create(i32 noundef) #0

declare ptr @fft_create_plan(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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

; Function Attrs: nounwind uwtable
define dso_local ptr @firpfbchr_crcf_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !9
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = icmp ult i32 %16, 2
  br i1 %17, label %18, label %20

18:                                               ; preds = %4
  %19 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.25, i32 noundef 69, ptr noundef @.str.26, ptr noundef @.str.2)
  store ptr %19, ptr %5, align 8
  br label %176

20:                                               ; preds = %4
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = icmp ult i32 %21, 1
  br i1 %22, label %23, label %25

23:                                               ; preds = %20
  %24 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.25, i32 noundef 71, ptr noundef @.str.27, ptr noundef @.str.2)
  store ptr %24, ptr %5, align 8
  br label %176

25:                                               ; preds = %20
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = icmp ult i32 %26, 1
  br i1 %27, label %28, label %30

28:                                               ; preds = %25
  %29 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.25, i32 noundef 73, ptr noundef @.str.28, ptr noundef @.str.2)
  store ptr %29, ptr %5, align 8
  br label %176

30:                                               ; preds = %25
  %31 = load ptr, ptr %9, align 8, !tbaa !9
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %35

33:                                               ; preds = %30
  %34 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.25, i32 noundef 75, ptr noundef @.str.29, ptr noundef @.str.2)
  store ptr %34, ptr %5, align 8
  br label %176

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %36 = call noalias ptr @malloc(i64 noundef 64) #6
  store ptr %36, ptr %10, align 8, !tbaa !9
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = load ptr, ptr %10, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %38, i32 0, i32 0
  store i32 %37, ptr %39, align 8, !tbaa !11
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = load ptr, ptr %10, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %41, i32 0, i32 1
  store i32 %40, ptr %42, align 4, !tbaa !13
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = load ptr, ptr %10, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %44, i32 0, i32 2
  store i32 %43, ptr %45, align 8, !tbaa !14
  %46 = load ptr, ptr %10, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !11
  %49 = mul i32 2, %48
  %50 = load ptr, ptr %10, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %50, i32 0, i32 2
  %52 = load i32, ptr %51, align 8, !tbaa !14
  %53 = mul i32 %49, %52
  %54 = load ptr, ptr %10, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %54, i32 0, i32 3
  store i32 %53, ptr %55, align 4, !tbaa !15
  %56 = load ptr, ptr %10, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %56, i32 0, i32 0
  %58 = load i32, ptr %57, align 8, !tbaa !11
  %59 = zext i32 %58 to i64
  %60 = mul i64 %59, 8
  %61 = call noalias ptr @malloc(i64 noundef %60) #6
  %62 = load ptr, ptr %10, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %62, i32 0, i32 4
  store ptr %61, ptr %63, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %64 = load ptr, ptr %10, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 8, !tbaa !14
  %67 = mul i32 2, %66
  store i32 %67, ptr %13, align 4, !tbaa !5
  %68 = load i32, ptr %13, align 4, !tbaa !5
  %69 = zext i32 %68 to i64
  %70 = call ptr @llvm.stacksave.p0()
  store ptr %70, ptr %14, align 8
  %71 = alloca float, i64 %69, align 16
  store i64 %69, ptr %15, align 8
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %113, %35
  %73 = load i32, ptr %11, align 4, !tbaa !5
  %74 = load ptr, ptr %10, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 8, !tbaa !11
  %77 = icmp ult i32 %73, %76
  br i1 %77, label %78, label %116

78:                                               ; preds = %72
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %101, %78
  %80 = load i32, ptr %12, align 4, !tbaa !5
  %81 = load i32, ptr %13, align 4, !tbaa !5
  %82 = icmp ult i32 %80, %81
  br i1 %82, label %83, label %104

83:                                               ; preds = %79
  %84 = load ptr, ptr %9, align 8, !tbaa !9
  %85 = load i32, ptr %11, align 4, !tbaa !5
  %86 = load i32, ptr %12, align 4, !tbaa !5
  %87 = load ptr, ptr %10, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %87, i32 0, i32 0
  %89 = load i32, ptr %88, align 8, !tbaa !11
  %90 = mul i32 %86, %89
  %91 = add i32 %85, %90
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds float, ptr %84, i64 %92
  %94 = load float, ptr %93, align 4, !tbaa !17
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = load i32, ptr %12, align 4, !tbaa !5
  %97 = sub i32 %95, %96
  %98 = sub i32 %97, 1
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds float, ptr %71, i64 %99
  store float %94, ptr %100, align 4, !tbaa !17
  br label %101

101:                                              ; preds = %83
  %102 = load i32, ptr %12, align 4, !tbaa !5
  %103 = add i32 %102, 1
  store i32 %103, ptr %12, align 4, !tbaa !5
  br label %79, !llvm.loop !19

104:                                              ; preds = %79
  %105 = load i32, ptr %13, align 4, !tbaa !5
  %106 = call ptr @dotprod_crcf_create(ptr noundef %71, i32 noundef %105)
  %107 = load ptr, ptr %10, align 8, !tbaa !9
  %108 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %107, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !16
  %110 = load i32, ptr %11, align 4, !tbaa !5
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %109, i64 %111
  store ptr %106, ptr %112, align 8, !tbaa !9
  br label %113

113:                                              ; preds = %104
  %114 = load i32, ptr %11, align 4, !tbaa !5
  %115 = add i32 %114, 1
  store i32 %115, ptr %11, align 4, !tbaa !5
  br label %72, !llvm.loop !21

116:                                              ; preds = %72
  %117 = load ptr, ptr %10, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %117, i32 0, i32 0
  %119 = load i32, ptr %118, align 8, !tbaa !11
  %120 = zext i32 %119 to i64
  %121 = mul i64 %120, 8
  %122 = call noalias ptr @malloc(i64 noundef %121) #6
  %123 = load ptr, ptr %10, align 8, !tbaa !9
  %124 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %123, i32 0, i32 6
  store ptr %122, ptr %124, align 8, !tbaa !22
  %125 = load ptr, ptr %10, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !11
  %128 = zext i32 %127 to i64
  %129 = mul i64 %128, 8
  %130 = call noalias ptr @malloc(i64 noundef %129) #6
  %131 = load ptr, ptr %10, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %131, i32 0, i32 7
  store ptr %130, ptr %132, align 8, !tbaa !23
  %133 = load ptr, ptr %10, align 8, !tbaa !9
  %134 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !11
  %136 = load ptr, ptr %10, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %136, i32 0, i32 6
  %138 = load ptr, ptr %137, align 8, !tbaa !22
  %139 = load ptr, ptr %10, align 8, !tbaa !9
  %140 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %139, i32 0, i32 7
  %141 = load ptr, ptr %140, align 8, !tbaa !23
  %142 = call ptr @fft_create_plan(i32 noundef %135, ptr noundef %138, ptr noundef %141, i32 noundef -1, i32 noundef 0)
  %143 = load ptr, ptr %10, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %143, i32 0, i32 5
  store ptr %142, ptr %144, align 8, !tbaa !24
  %145 = load ptr, ptr %10, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !11
  %148 = zext i32 %147 to i64
  %149 = mul i64 %148, 8
  %150 = call noalias ptr @malloc(i64 noundef %149) #6
  %151 = load ptr, ptr %10, align 8, !tbaa !9
  %152 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %151, i32 0, i32 8
  store ptr %150, ptr %152, align 8, !tbaa !25
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %153

153:                                              ; preds = %168, %116
  %154 = load i32, ptr %11, align 4, !tbaa !5
  %155 = load ptr, ptr %10, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %155, i32 0, i32 0
  %157 = load i32, ptr %156, align 8, !tbaa !11
  %158 = icmp ult i32 %154, %157
  br i1 %158, label %159, label %171

159:                                              ; preds = %153
  %160 = load i32, ptr %13, align 4, !tbaa !5
  %161 = call ptr @windowcf_create(i32 noundef %160)
  %162 = load ptr, ptr %10, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.firpfbchr_crcf_s, ptr %162, i32 0, i32 8
  %164 = load ptr, ptr %163, align 8, !tbaa !25
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = zext i32 %165 to i64
  %167 = getelementptr inbounds ptr, ptr %164, i64 %166
  store ptr %161, ptr %167, align 8, !tbaa !9
  br label %168

168:                                              ; preds = %159
  %169 = load i32, ptr %11, align 4, !tbaa !5
  %170 = add i32 %169, 1
  store i32 %170, ptr %11, align 4, !tbaa !5
  br label %153, !llvm.loop !26

171:                                              ; preds = %153
  %172 = load ptr, ptr %10, align 8, !tbaa !9
  %173 = call i32 @firpfbchr_crcf_reset(ptr noundef %172)
  %174 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %174, ptr %5, align 8
  %175 = load ptr, ptr %14, align 8
  call void @llvm.stackrestore.p0(ptr %175)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %176

176:                                              ; preds = %171, %33, %28, %23, %18
  %177 = load ptr, ptr %5, align 8
  ret ptr %177
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @firpfbchr_crcf_reset(ptr noundef) #4

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(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 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"firpfbchr_crcf_s", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !6, i64 56}
!13 = !{!12, !6, i64 4}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !6, i64 12}
!16 = !{!12, !10, i64 16}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!12, !10, i64 32}
!23 = !{!12, !10, i64 40}
!24 = !{!12, !10, i64 24}
!25 = !{!12, !10, i64 48}
!26 = distinct !{!26, !20}


; 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.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [58 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

declare ptr @dotprod_crcf_create(ptr noundef, i32 noundef) local_unnamed_addr #0

declare ptr @windowcf_create(i32 noundef) local_unnamed_addr #0

declare ptr @fft_create_plan(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @firpfbchr_crcf_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef readonly %3) local_unnamed_addr #3 {
  %5 = icmp ult i32 %0, 2
  br i1 %5, label %6, label %8

6:                                                ; preds = %4
  %7 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.25, i32 noundef 69, ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.2) #4
  br label %75

8:                                                ; preds = %4
  %9 = icmp eq i32 %1, 0
  br i1 %9, label %10, label %12

10:                                               ; preds = %8
  %11 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.25, i32 noundef 71, ptr noundef nonnull @.str.27, ptr noundef nonnull @.str.2) #4
  br label %75

12:                                               ; preds = %8
  %13 = icmp eq i32 %2, 0
  br i1 %13, label %14, label %16

14:                                               ; preds = %12
  %15 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.25, i32 noundef 73, ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.2) #4
  br label %75

16:                                               ; preds = %12
  %17 = icmp eq ptr %3, null
  br i1 %17, label %18, label %.preheader.lr.ph

18:                                               ; preds = %16
  %19 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.25, i32 noundef 75, ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.2) #4
  br label %75

.preheader.lr.ph:                                 ; preds = %16
  %20 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #5
  store i32 %0, ptr %20, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 4
  store i32 %1, ptr %21, align 4, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %20, i64 8
  store i32 %2, ptr %22, align 8, !tbaa !12
  %23 = shl i32 %0, 1
  %24 = mul i32 %23, %2
  %25 = getelementptr inbounds i8, ptr %20, i64 12
  store i32 %24, ptr %25, align 4, !tbaa !13
  %26 = zext i32 %0 to i64
  %27 = shl nuw nsw i64 %26, 3
  %28 = tail call noalias ptr @malloc(i64 noundef %27) #5
  %29 = getelementptr inbounds i8, ptr %20, i64 16
  store ptr %28, ptr %29, align 8, !tbaa !14
  %30 = shl i32 %2, 1
  %31 = zext i32 %30 to i64
  %32 = tail call ptr @llvm.stacksave.p0()
  %33 = alloca float, i64 %31, align 16
  %.not64 = icmp eq i32 %30, 0
  br i1 %.not64, label %.preheader, label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %34 = trunc nuw i64 %indvars.iv70 to i32
  br label %35

35:                                               ; preds = %35, %.preheader.us
  %indvars.iv = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next.1, %35 ]
  %36 = trunc nuw i64 %indvars.iv to i32
  %37 = mul i32 %36, %0
  %38 = add i32 %37, %34
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds float, ptr %3, i64 %39
  %41 = load float, ptr %40, align 4, !tbaa !15
  %42 = xor i32 %36, -1
  %43 = add i32 %30, %42
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds float, ptr %33, i64 %44
  store float %41, ptr %45, align 4, !tbaa !15
  %46 = trunc i64 %indvars.iv to i32
  %47 = or disjoint i32 %46, 1
  %48 = mul i32 %47, %0
  %49 = add i32 %48, %34
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds float, ptr %3, i64 %50
  %52 = load float, ptr %51, align 4, !tbaa !15
  %53 = xor i32 %46, -2
  %54 = add i32 %30, %53
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds float, ptr %33, i64 %55
  store float %52, ptr %56, align 4, !tbaa !15
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %31
  br i1 %exitcond.not.1, label %._crit_edge.us, label %35, !llvm.loop !17

._crit_edge.us:                                   ; preds = %35
  %57 = call ptr @dotprod_crcf_create(ptr noundef nonnull %33, i32 noundef %30) #4
  %58 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv70
  store ptr %57, ptr %58, align 8, !tbaa !20
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %59 = icmp ult i64 %indvars.iv.next71, %26
  br i1 %59, label %.preheader.us, label %.lr.ph.preheader, !llvm.loop !21

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %.preheader ], [ 0, %.preheader.lr.ph ]
  %60 = call ptr @dotprod_crcf_create(ptr noundef nonnull %33, i32 noundef 0) #4
  %61 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv73
  store ptr %60, ptr %61, align 8, !tbaa !20
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %62 = icmp ult i64 %indvars.iv.next74, %26
  br i1 %62, label %.preheader, label %.lr.ph.preheader, !llvm.loop !21

.lr.ph.preheader:                                 ; preds = %._crit_edge.us, %.preheader
  %63 = call noalias ptr @malloc(i64 noundef %27) #5
  %64 = getelementptr inbounds i8, ptr %20, i64 32
  store ptr %63, ptr %64, align 8, !tbaa !22
  %65 = call noalias ptr @malloc(i64 noundef %27) #5
  %66 = getelementptr inbounds i8, ptr %20, i64 40
  store ptr %65, ptr %66, align 8, !tbaa !23
  %67 = call ptr @fft_create_plan(i32 noundef %0, ptr noundef %63, ptr noundef %65, i32 noundef -1, i32 noundef 0) #4
  %68 = getelementptr inbounds i8, ptr %20, i64 24
  store ptr %67, ptr %68, align 8, !tbaa !24
  %69 = call noalias ptr @malloc(i64 noundef %27) #5
  %70 = getelementptr inbounds i8, ptr %20, i64 48
  store ptr %69, ptr %70, align 8, !tbaa !25
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv76 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next77, %.lr.ph ]
  %71 = call ptr @windowcf_create(i32 noundef %30) #4
  %72 = getelementptr inbounds ptr, ptr %69, i64 %indvars.iv76
  store ptr %71, ptr %72, align 8, !tbaa !20
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %73 = icmp ult i64 %indvars.iv.next77, %26
  br i1 %73, label %.lr.ph, label %._crit_edge, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph
  %74 = call i32 @firpfbchr_crcf_reset(ptr noundef nonnull %20)
  call void @llvm.stackrestore.p0(ptr %32)
  br label %75

75:                                               ; preds = %._crit_edge, %18, %14, %10, %6
  %.0 = phi ptr [ %7, %6 ], [ %11, %10 ], [ %15, %14 ], [ %19, %18 ], [ %20, %._crit_edge ]
  ret ptr %.0
}

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

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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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 0}
!6 = !{!"firpfbchr_crcf_s", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !10, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !8, i64 0}
!17 = distinct !{!17, !18, !19}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!10, !10, i64 0}
!21 = distinct !{!21, !18}
!22 = !{!6, !10, i64 32}
!23 = !{!6, !10, i64 40}
!24 = !{!6, !10, i64 24}
!25 = !{!6, !10, i64 48}
!26 = distinct !{!26, !18}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass