; LLVM IR from HiFi-LoFi/FFTConvolver :: TwoStageFFTConvolver.ll (ZN12fftconvolver20TwoStageFFTConvolver4initEmmPKfm)

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

%"class.fftconvolver::TwoStageFFTConvolver" = type { ptr, i64, i64, %"class.fftconvolver::FFTConvolver", %"class.fftconvolver::FFTConvolver", %"class.fftconvolver::Buffer", %"class.fftconvolver::Buffer", %"class.fftconvolver::FFTConvolver", %"class.fftconvolver::Buffer", %"class.fftconvolver::Buffer", %"class.fftconvolver::Buffer", i64, i64, %"class.fftconvolver::Buffer" }
%"class.fftconvolver::FFTConvolver" = type { ptr, i64, i64, i64, i64, %"class.std::vector", %"class.std::vector", %"class.fftconvolver::Buffer", %"class.audiofft::AudioFFT", %"class.fftconvolver::SplitComplex", %"class.fftconvolver::SplitComplex", %"class.fftconvolver::Buffer", i64, %"class.fftconvolver::Buffer", i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<fftconvolver::SplitComplex *, std::allocator<fftconvolver::SplitComplex *>>::_Vector_impl" }
%"struct.std::_Vector_base<fftconvolver::SplitComplex *, std::allocator<fftconvolver::SplitComplex *>>::_Vector_impl" = type { %"struct.std::_Vector_base<fftconvolver::SplitComplex *, std::allocator<fftconvolver::SplitComplex *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fftconvolver::SplitComplex *, std::allocator<fftconvolver::SplitComplex *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.audiofft::AudioFFT" = type { %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.fftconvolver::SplitComplex" = type { i64, %"class.fftconvolver::Buffer", %"class.fftconvolver::Buffer" }
%"class.fftconvolver::Buffer" = type { ptr, ptr, i64 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._ZN12fftconvolver20TwoStageFFTConvolver4initEmmPKfm = external hidden unnamed_addr constant [86 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12fftconvolver20TwoStageFFTConvolver5resetEv(ptr noundef nonnull align 8 dereferenceable(1072)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN12fftconvolver20TwoStageFFTConvolver4initEmmPKfm(ptr noundef nonnull align 8 dereferenceable(1072) %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) #0 align 2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store i64 %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  %17 = load ptr, ptr %7, align 8
  call void @_ZN12fftconvolver20TwoStageFFTConvolver5resetEv(ptr noundef nonnull align 8 dereferenceable(1072) %17)
  %18 = load i64, ptr %8, align 8, !tbaa !9
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %23, label %20

20:                                               ; preds = %5
  %21 = load i64, ptr %9, align 8, !tbaa !9
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %20, %5
  store i1 false, ptr %6, align 1
  br label %140

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 1, ptr %12, align 8, !tbaa !9
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %26 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %26, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %27 = load i64, ptr %8, align 8, !tbaa !9
  %28 = load i64, ptr %9, align 8, !tbaa !9
  %29 = icmp ugt i64 %27, %28
  br i1 %29, label %30, label %31

30:                                               ; preds = %24
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 89, ptr noundef @__PRETTY_FUNCTION__._ZN12fftconvolver20TwoStageFFTConvolver4initEmmPKfm) #8
  unreachable

31:                                               ; preds = %24
  br label %32

32:                                               ; preds = %46, %31
  %33 = load i64, ptr %11, align 8, !tbaa !9
  %34 = icmp ugt i64 %33, 0
  br i1 %34, label %35, label %44

35:                                               ; preds = %32
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = sub i64 %37, 1
  %39 = getelementptr inbounds float, ptr %36, i64 %38
  %40 = load float, ptr %39, align 4, !tbaa !11
  %41 = fpext float %40 to double
  %42 = call double @llvm.fabs.f64(double %41)
  %43 = fcmp olt double %42, 0x3EB0C6F7A0000000
  br label %44

44:                                               ; preds = %35, %32
  %45 = phi i1 [ false, %32 ], [ %43, %35 ]
  br i1 %45, label %46, label %49

46:                                               ; preds = %44
  %47 = load i64, ptr %11, align 8, !tbaa !9
  %48 = add i64 %47, -1
  store i64 %48, ptr %11, align 8, !tbaa !9
  br label %32, !llvm.loop !13

49:                                               ; preds = %44
  %50 = load i64, ptr %11, align 8, !tbaa !9
  %51 = icmp eq i64 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %49
  store i1 true, ptr %6, align 1
  br label %140

53:                                               ; preds = %49
  %54 = call noundef i64 @_ZN12fftconvolver12NextPowerOf2ImEET_RKS1_(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %55 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 1
  store i64 %54, ptr %55, align 8, !tbaa !15
  %56 = call noundef i64 @_ZN12fftconvolver12NextPowerOf2ImEET_RKS1_(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %57 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  store i64 %56, ptr %57, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %58 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %58)
  %60 = load i64, ptr %59, align 8, !tbaa !9
  store i64 %60, ptr %13, align 8, !tbaa !9
  %61 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 3
  %62 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 1
  %63 = load i64, ptr %62, align 8, !tbaa !15
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = load i64, ptr %13, align 8, !tbaa !9
  %66 = call noundef zeroext i1 @_ZN12fftconvolver12FFTConvolver4initEmPKfm(ptr noundef nonnull align 8 dereferenceable(296) %61, i64 noundef %63, ptr noundef %64, i64 noundef %65)
  %67 = load i64, ptr %11, align 8, !tbaa !9
  %68 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %69 = load i64, ptr %68, align 8, !tbaa !31
  %70 = icmp ugt i64 %67, %69
  br i1 %70, label %71, label %94

71:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %72 = load i64, ptr %11, align 8, !tbaa !9
  %73 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %74 = load i64, ptr %73, align 8, !tbaa !31
  %75 = sub i64 %72, %74
  store i64 %75, ptr %15, align 8, !tbaa !9
  %76 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %76)
  %78 = load i64, ptr %77, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  store i64 %78, ptr %14, align 8, !tbaa !9
  %79 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 4
  %80 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 1
  %81 = load i64, ptr %80, align 8, !tbaa !15
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %84 = load i64, ptr %83, align 8, !tbaa !31
  %85 = getelementptr inbounds float, ptr %82, i64 %84
  %86 = load i64, ptr %14, align 8, !tbaa !9
  %87 = call noundef zeroext i1 @_ZN12fftconvolver12FFTConvolver4initEmPKfm(ptr noundef nonnull align 8 dereferenceable(296) %79, i64 noundef %81, ptr noundef %85, i64 noundef %86)
  %88 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 5
  %89 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %90 = load i64, ptr %89, align 8, !tbaa !31
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90)
  %91 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 6
  %92 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %93 = load i64, ptr %92, align 8, !tbaa !31
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %93)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %94

94:                                               ; preds = %71, %53
  %95 = load i64, ptr %11, align 8, !tbaa !9
  %96 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %97 = load i64, ptr %96, align 8, !tbaa !31
  %98 = mul i64 2, %97
  %99 = icmp ugt i64 %95, %98
  br i1 %99, label %100, label %125

100:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %101 = load i64, ptr %11, align 8, !tbaa !9
  %102 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %103 = load i64, ptr %102, align 8, !tbaa !31
  %104 = mul i64 2, %103
  %105 = sub i64 %101, %104
  store i64 %105, ptr %16, align 8, !tbaa !9
  %106 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 7
  %107 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %108 = load i64, ptr %107, align 8, !tbaa !31
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %111 = load i64, ptr %110, align 8, !tbaa !31
  %112 = mul i64 2, %111
  %113 = getelementptr inbounds float, ptr %109, i64 %112
  %114 = load i64, ptr %16, align 8, !tbaa !9
  %115 = call noundef zeroext i1 @_ZN12fftconvolver12FFTConvolver4initEmPKfm(ptr noundef nonnull align 8 dereferenceable(296) %106, i64 noundef %108, ptr noundef %113, i64 noundef %114)
  %116 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 8
  %117 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %118 = load i64, ptr %117, align 8, !tbaa !31
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %118)
  %119 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 9
  %120 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %121 = load i64, ptr %120, align 8, !tbaa !31
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %121)
  %122 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 13
  %123 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %124 = load i64, ptr %123, align 8, !tbaa !31
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %124)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %125

125:                                              ; preds = %100, %94
  %126 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 6
  %127 = call noundef i64 @_ZNK12fftconvolver6BufferIfE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %126)
  %128 = icmp ugt i64 %127, 0
  br i1 %128, label %133, label %129

129:                                              ; preds = %125
  %130 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 9
  %131 = call noundef i64 @_ZNK12fftconvolver6BufferIfE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %130)
  %132 = icmp ugt i64 %131, 0
  br i1 %132, label %133, label %137

133:                                              ; preds = %129, %125
  %134 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 10
  %135 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 2
  %136 = load i64, ptr %135, align 8, !tbaa !31
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %136)
  br label %137

137:                                              ; preds = %133, %129
  %138 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 11
  store i64 0, ptr %138, align 8, !tbaa !32
  %139 = getelementptr inbounds %"class.fftconvolver::TwoStageFFTConvolver", ptr %17, i32 0, i32 12
  store i64 0, ptr %139, align 8, !tbaa !33
  store i1 true, ptr %6, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %140

140:                                              ; preds = %137, %52, %23
  %141 = load i1, ptr %6, align 1
  ret i1 %141
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN12fftconvolver12NextPowerOf2ImEET_RKS1_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

declare noundef zeroext i1 @_ZN12fftconvolver12FFTConvolver4initEmPKfm(ptr noundef nonnull align 8 dereferenceable(296), i64 noundef, ptr noundef, i64 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK12fftconvolver6BufferIfE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

attributes #0 = { mustprogress 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 #1 = { inlinehint mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress 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 #6 = { "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 #7 = { nounwind }
attributes #8 = { noreturn 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTSN12fftconvolver20TwoStageFFTConvolverE", !10, i64 8, !10, i64 16, !17, i64 24, !17, i64 320, !22, i64 616, !22, i64 640, !17, i64 664, !22, i64 960, !22, i64 984, !22, i64 1008, !10, i64 1032, !10, i64 1040, !22, i64 1048}
!17 = !{!"_ZTSN12fftconvolver12FFTConvolverE", !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !18, i64 40, !18, i64 64, !22, i64 88, !23, i64 112, !30, i64 120, !30, i64 176, !22, i64 232, !10, i64 256, !22, i64 264, !10, i64 288}
!18 = !{!"_ZTSSt6vectorIPN12fftconvolver12SplitComplexESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIPN12fftconvolver12SplitComplexESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN12fftconvolver12SplitComplexESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN12fftconvolver12SplitComplexESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN12fftconvolver6BufferIfEE", !6, i64 8, !10, i64 16}
!23 = !{!"_ZTSN8audiofft8AudioFFTE", !24, i64 0}
!24 = !{!"_ZTSSt10unique_ptrIN8audiofft6detail12AudioFFTImplESt14default_deleteIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_dataIN8audiofft6detail12AudioFFTImplESt14default_deleteIS2_ELb1ELb1EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_implIN8audiofft6detail12AudioFFTImplESt14default_deleteIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt5tupleIJPN8audiofft6detail12AudioFFTImplESt14default_deleteIS2_EEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audiofft6detail12AudioFFTImplESt14default_deleteIS2_EEE", !29, i64 0}
!29 = !{!"_ZTSSt10_Head_baseILm0EPN8audiofft6detail12AudioFFTImplELb0EE", !6, i64 0}
!30 = !{!"_ZTSN12fftconvolver12SplitComplexE", !10, i64 0, !22, i64 8, !22, i64 32}
!31 = !{!16, !10, i64 16}
!32 = !{!16, !10, i64 1032}
!33 = !{!16, !10, i64 1040}


; 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 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._ZN12fftconvolver20TwoStageFFTConvolver4initEmmPKfm = external hidden unnamed_addr constant [86 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12fftconvolver20TwoStageFFTConvolver5resetEv(ptr noundef nonnull align 8 dereferenceable(1072)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN12fftconvolver20TwoStageFFTConvolver4initEmmPKfm(ptr noundef nonnull align 8 dereferenceable(1072) %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) local_unnamed_addr #0 align 2 {
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  store i64 %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !5
  tail call void @_ZN12fftconvolver20TwoStageFFTConvolver5resetEv(ptr noundef nonnull align 8 dereferenceable(1072) %0)
  %11 = icmp ne i64 %1, 0
  %12 = icmp ne i64 %2, 0
  %or.cond.not = and i1 %11, %12
  br i1 %or.cond.not, label %13, label %.critedge.thread

13:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  store i64 1, ptr %9, align 8, !tbaa !5
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %15 = load i64, ptr %14, align 8, !tbaa !5
  store i64 %15, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  %16 = icmp ugt i64 %15, %2
  br i1 %16, label %17, label %thread-pre-split

17:                                               ; preds = %13
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 89, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12fftconvolver20TwoStageFFTConvolver4initEmmPKfm) #9
  unreachable

thread-pre-split:                                 ; preds = %13
  %invariant.gep = getelementptr i8, ptr %3, i64 -4
  %.not17 = icmp eq i64 %4, 0
  br i1 %.not17, label %.critedge.thread, label %.lr.ph

18:                                               ; preds = %.lr.ph
  %19 = add i64 %20, -1
  %.not = icmp eq i64 %19, 0
  br i1 %.not, label %.critedge.thread, label %.lr.ph, !llvm.loop !9

.lr.ph:                                           ; preds = %thread-pre-split, %18
  %20 = phi i64 [ %19, %18 ], [ %4, %thread-pre-split ]
  %gep = getelementptr float, ptr %invariant.gep, i64 %20
  %21 = load float, ptr %gep, align 4, !tbaa !11
  %22 = call float @llvm.fabs.f32(float %21)
  %23 = fcmp olt float %22, 0x3EB0C6F7A0000000
  br i1 %23, label %18, label %.critedge

.critedge:                                        ; preds = %.lr.ph
  store i64 %20, ptr %8, align 8, !tbaa !5
  %24 = call noundef i64 @_ZN12fftconvolver12NextPowerOf2ImEET_RKS1_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %24, ptr %25, align 8, !tbaa !13
  %26 = call noundef i64 @_ZN12fftconvolver12NextPowerOf2ImEET_RKS1_(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %26, ptr %27, align 8, !tbaa !30
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = load i64, ptr %25, align 8, !tbaa !13
  %32 = call noundef zeroext i1 @_ZN12fftconvolver12FFTConvolver4initEmPKfm(ptr noundef nonnull align 8 dereferenceable(296) %30, i64 noundef %31, ptr noundef nonnull %3, i64 noundef %29)
  %33 = load i64, ptr %8, align 8, !tbaa !5
  %34 = load i64, ptr %27, align 8, !tbaa !30
  %35 = icmp ugt i64 %33, %34
  br i1 %35, label %36, label %49

36:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %37 = sub i64 %33, %34
  store i64 %37, ptr %10, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %39 = load i64, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  %40 = getelementptr inbounds i8, ptr %0, i64 320
  %41 = load i64, ptr %25, align 8, !tbaa !13
  %42 = load i64, ptr %27, align 8, !tbaa !30
  %43 = getelementptr inbounds float, ptr %3, i64 %42
  %44 = call noundef zeroext i1 @_ZN12fftconvolver12FFTConvolver4initEmPKfm(ptr noundef nonnull align 8 dereferenceable(296) %40, i64 noundef %41, ptr noundef %43, i64 noundef %39)
  %45 = getelementptr inbounds i8, ptr %0, i64 616
  %46 = load i64, ptr %27, align 8, !tbaa !30
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %46)
  %47 = getelementptr inbounds i8, ptr %0, i64 640
  %48 = load i64, ptr %27, align 8, !tbaa !30
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %48)
  %.pre = load i64, ptr %8, align 8, !tbaa !5
  %.pre21 = load i64, ptr %27, align 8, !tbaa !30
  br label %49

49:                                               ; preds = %36, %.critedge
  %50 = phi i64 [ %.pre21, %36 ], [ %34, %.critedge ]
  %51 = phi i64 [ %.pre, %36 ], [ %33, %.critedge ]
  %52 = shl i64 %50, 1
  %53 = icmp ugt i64 %51, %52
  br i1 %53, label %54, label %65

54:                                               ; preds = %49
  %55 = sub i64 %51, %52
  %56 = getelementptr inbounds i8, ptr %0, i64 664
  %57 = getelementptr inbounds float, ptr %3, i64 %52
  %58 = call noundef zeroext i1 @_ZN12fftconvolver12FFTConvolver4initEmPKfm(ptr noundef nonnull align 8 dereferenceable(296) %56, i64 noundef %50, ptr noundef %57, i64 noundef %55)
  %59 = getelementptr inbounds i8, ptr %0, i64 960
  %60 = load i64, ptr %27, align 8, !tbaa !30
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %60)
  %61 = getelementptr inbounds i8, ptr %0, i64 984
  %62 = load i64, ptr %27, align 8, !tbaa !30
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %62)
  %63 = getelementptr inbounds i8, ptr %0, i64 1048
  %64 = load i64, ptr %27, align 8, !tbaa !30
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %64)
  br label %65

65:                                               ; preds = %54, %49
  %66 = getelementptr inbounds i8, ptr %0, i64 640
  %67 = call noundef i64 @_ZNK12fftconvolver6BufferIfE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %66)
  %.not12 = icmp eq i64 %67, 0
  br i1 %.not12, label %68, label %71

68:                                               ; preds = %65
  %69 = getelementptr inbounds i8, ptr %0, i64 984
  %70 = call noundef i64 @_ZNK12fftconvolver6BufferIfE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %69)
  %.not13 = icmp eq i64 %70, 0
  br i1 %.not13, label %74, label %71

71:                                               ; preds = %68, %65
  %72 = getelementptr inbounds i8, ptr %0, i64 1008
  %73 = load i64, ptr %27, align 8, !tbaa !30
  call void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %73)
  br label %74

74:                                               ; preds = %71, %68
  %75 = getelementptr inbounds i8, ptr %0, i64 1032
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %75, i8 0, i64 16, i1 false)
  br label %.critedge.thread

.critedge.thread:                                 ; preds = %18, %thread-pre-split, %5, %74
  ret i1 %or.cond.not
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN12fftconvolver12NextPowerOf2ImEET_RKS1_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN12fftconvolver12FFTConvolver4initEmPKfm(ptr noundef nonnull align 8 dereferenceable(296), i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12fftconvolver6BufferIfE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK12fftconvolver6BufferIfE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #6

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

attributes #0 = { mustprogress 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 #1 = { inlinehint mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { "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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSN12fftconvolver20TwoStageFFTConvolverE", !6, i64 8, !6, i64 16, !15, i64 24, !15, i64 320, !21, i64 616, !21, i64 640, !15, i64 664, !21, i64 960, !21, i64 984, !21, i64 1008, !6, i64 1032, !6, i64 1040, !21, i64 1048}
!15 = !{!"_ZTSN12fftconvolver12FFTConvolverE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !16, i64 40, !16, i64 64, !21, i64 88, !22, i64 112, !29, i64 120, !29, i64 176, !21, i64 232, !6, i64 256, !21, i64 264, !6, i64 288}
!16 = !{!"_ZTSSt6vectorIPN12fftconvolver12SplitComplexESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPN12fftconvolver12SplitComplexESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN12fftconvolver12SplitComplexESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN12fftconvolver12SplitComplexESaIS2_EE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!"_ZTSN12fftconvolver6BufferIfEE", !20, i64 8, !6, i64 16}
!22 = !{!"_ZTSN8audiofft8AudioFFTE", !23, i64 0}
!23 = !{!"_ZTSSt10unique_ptrIN8audiofft6detail12AudioFFTImplESt14default_deleteIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_dataIN8audiofft6detail12AudioFFTImplESt14default_deleteIS2_ELb1ELb1EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_implIN8audiofft6detail12AudioFFTImplESt14default_deleteIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJPN8audiofft6detail12AudioFFTImplESt14default_deleteIS2_EEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audiofft6detail12AudioFFTImplESt14default_deleteIS2_EEE", !28, i64 0}
!28 = !{!"_ZTSSt10_Head_baseILm0EPN8audiofft6detail12AudioFFTImplELb0EE", !20, i64 0}
!29 = !{!"_ZTSN12fftconvolver12SplitComplexE", !6, i64 0, !21, i64 8, !21, i64 32}
!30 = !{!14, !6, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass