; LLVM IR from kdrag0n/fxdsp :: external/oboe/src/flowgraph/resampler (PolyphaseResampler)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.resampler::MultiChannelResampler" = type <{ ptr, %"class.std::vector", i32, i32, %"class.std::vector", %"class.std::vector", i32, i32, i32, [4 x i8], %"class.resampler::HyperbolicCosineWindow", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.resampler::HyperbolicCosineWindow" = type { double, double }
%"class.resampler::PolyphaseResampler" = type { %"class.resampler::MultiChannelResampler.base", i32 }
%"class.resampler::MultiChannelResampler.base" = type <{ ptr, %"class.std::vector", i32, i32, %"class.std::vector", %"class.std::vector", i32, i32, i32, [4 x i8], %"class.resampler::HyperbolicCosineWindow", 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: mustprogress uwtable
define dso_local void @_ZN9resampler18PolyphaseResampler9readFrameEPf(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8
  %16 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %15, i32 0, i32 5
  %17 = call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  %18 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %17, ptr %18, align 8
  %19 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %15, i32 0, i32 5
  %20 = call ptr @_ZNSt6vectorIfSaIfEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %21 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %20, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  %22 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8
  %24 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEEdEvT_S7_RKT0_(ptr %23, ptr %25, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %26 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %15, i32 0, i32 1
  %27 = getelementptr inbounds %"class.resampler::PolyphaseResampler", ptr %15, i32 0, i32 1
  %28 = load i32, ptr %27, align 4, !tbaa !11
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %29) #5
  store ptr %30, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %31 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %15, i32 0, i32 4
  %32 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %15, i32 0, i32 3
  %33 = load i32, ptr %32, align 4, !tbaa !20
  %34 = call noundef i32 @_ZNK9resampler21MultiChannelResampler15getChannelCountEv(ptr noundef nonnull align 8 dereferenceable(124) %15)
  %35 = mul nsw i32 %33, %34
  %36 = sext i32 %35 to i64
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %36) #5
  store ptr %37, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !21
  br label %38

38:                                               ; preds = %68, %2
  %39 = load i32, ptr %10, align 4, !tbaa !21
  %40 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %15, i32 0, i32 2
  %41 = load i32, ptr %40, align 8, !tbaa !22
  %42 = icmp slt i32 %39, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %38
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %71

44:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds float, ptr %45, i32 1
  store ptr %46, ptr %8, align 8, !tbaa !5
  %47 = load float, ptr %45, align 4, !tbaa !23
  store float %47, ptr %12, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !21
  br label %48

48:                                               ; preds = %64, %44
  %49 = load i32, ptr %13, align 4, !tbaa !21
  %50 = call noundef i32 @_ZNK9resampler21MultiChannelResampler15getChannelCountEv(ptr noundef nonnull align 8 dereferenceable(124) %15)
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %67

53:                                               ; preds = %48
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds float, ptr %54, i32 1
  store ptr %55, ptr %9, align 8, !tbaa !5
  %56 = load float, ptr %54, align 4, !tbaa !23
  %57 = load float, ptr %12, align 4, !tbaa !23
  %58 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %15, i32 0, i32 5
  %59 = load i32, ptr %13, align 4, !tbaa !21
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60) #5
  %62 = load float, ptr %61, align 4, !tbaa !23
  %63 = call float @llvm.fmuladd.f32(float %56, float %57, float %62)
  store float %63, ptr %61, align 4, !tbaa !23
  br label %64

64:                                               ; preds = %53
  %65 = load i32, ptr %13, align 4, !tbaa !21
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %13, align 4, !tbaa !21
  br label %48, !llvm.loop !25

67:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %10, align 4, !tbaa !21
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %10, align 4, !tbaa !21
  br label %38, !llvm.loop !27

71:                                               ; preds = %43
  %72 = getelementptr inbounds %"class.resampler::PolyphaseResampler", ptr %15, i32 0, i32 1
  %73 = load i32, ptr %72, align 4, !tbaa !11
  %74 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %15, i32 0, i32 2
  %75 = load i32, ptr %74, align 8, !tbaa !22
  %76 = add nsw i32 %73, %75
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %15, i32 0, i32 1
  %79 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #5
  %80 = urem i64 %77, %79
  %81 = trunc i64 %80 to i32
  %82 = getelementptr inbounds %"class.resampler::PolyphaseResampler", ptr %15, i32 0, i32 1
  store i32 %81, ptr %82, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !21
  br label %83

83:                                               ; preds = %98, %71
  %84 = load i32, ptr %14, align 4, !tbaa !21
  %85 = call noundef i32 @_ZNK9resampler21MultiChannelResampler15getChannelCountEv(ptr noundef nonnull align 8 dereferenceable(124) %15)
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %101

88:                                               ; preds = %83
  %89 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %15, i32 0, i32 5
  %90 = load i32, ptr %14, align 4, !tbaa !21
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %91) #5
  %93 = load float, ptr %92, align 4, !tbaa !23
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = load i32, ptr %14, align 4, !tbaa !21
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %94, i64 %96
  store float %93, ptr %97, align 4, !tbaa !23
  br label %98

98:                                               ; preds = %88
  %99 = load i32, ptr %14, align 4, !tbaa !21
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %14, align 4, !tbaa !21
  br label %83, !llvm.loop !28

101:                                              ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEEdEvT_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler15getChannelCountEv(ptr noundef nonnull align 8 dereferenceable(124)) #3 align 2

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !18, i64 124}
!12 = !{!"_ZTSN9resampler18PolyphaseResamplerE", !13, i64 0, !18, i64 124}
!13 = !{!"_ZTSN9resampler21MultiChannelResamplerE", !14, i64 8, !18, i64 32, !18, i64 36, !14, i64 40, !14, i64 64, !18, i64 88, !18, i64 92, !18, i64 96, !19, i64 104, !18, i64 120}
!14 = !{!"_ZTSSt6vectorIfSaIfEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN9resampler22HyperbolicCosineWindowE", !10, i64 0, !10, i64 8}
!20 = !{!13, !18, i64 36}
!21 = !{!18, !18, i64 0}
!22 = !{!13, !18, i64 32}
!23 = !{!24, !24, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}


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

; 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: mustprogress uwtable
define dso_local void @_ZN9resampler18PolyphaseResampler9readFrameEPf(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr nocapture noundef writeonly %1) unnamed_addr #1 align 2 {
  %3 = alloca double, align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 64
  %5 = tail call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %6 = tail call ptr @_ZNSt6vectorIfSaIfEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEEdEvT_S7_RKT0_(ptr %5, ptr %6, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = getelementptr inbounds i8, ptr %0, i64 124
  %9 = load i32, ptr %8, align 4, !tbaa !9
  %10 = sext i32 %9 to i64
  %11 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %10) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = getelementptr inbounds i8, ptr %0, i64 36
  %14 = load i32, ptr %13, align 4, !tbaa !19
  %15 = call noundef i32 @_ZNK9resampler21MultiChannelResampler15getChannelCountEv(ptr noundef nonnull align 8 dereferenceable(124) %0)
  %16 = mul nsw i32 %15, %14
  %17 = sext i32 %16 to i64
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %17) #5
  %19 = getelementptr inbounds i8, ptr %0, i64 32
  %20 = load i32, ptr %19, align 8, !tbaa !20
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph25, label %._crit_edge26

._crit_edge26:                                    ; preds = %._crit_edge, %2
  %.lcssa = phi i32 [ %20, %2 ], [ %35, %._crit_edge ]
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = add nsw i32 %22, %.lcssa
  %24 = sext i32 %23 to i64
  %25 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %26 = urem i64 %24, %25
  %27 = trunc i64 %26 to i32
  store i32 %27, ptr %8, align 4, !tbaa !9
  %28 = call noundef i32 @_ZNK9resampler21MultiChannelResampler15getChannelCountEv(ptr noundef nonnull align 8 dereferenceable(124) %0)
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph30, label %._crit_edge31

.lr.ph25:                                         ; preds = %2, %._crit_edge
  %.01523 = phi ptr [ %30, %._crit_edge ], [ %11, %2 ]
  %.01622 = phi i32 [ %34, %._crit_edge ], [ 0, %2 ]
  %.01721 = phi ptr [ %.1.lcssa, %._crit_edge ], [ %18, %2 ]
  %30 = getelementptr inbounds i8, ptr %.01523, i64 4
  %31 = load float, ptr %.01523, align 4, !tbaa !21
  %32 = call noundef i32 @_ZNK9resampler21MultiChannelResampler15getChannelCountEv(ptr noundef nonnull align 8 dereferenceable(124) %0)
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph25
  %.1.lcssa = phi ptr [ %.01721, %.lr.ph25 ], [ %37, %.lr.ph ]
  %34 = add nuw nsw i32 %.01622, 1
  %35 = load i32, ptr %19, align 8, !tbaa !20
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %.lr.ph25, label %._crit_edge26, !llvm.loop !23

.lr.ph:                                           ; preds = %.lr.ph25, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph25 ]
  %.119 = phi ptr [ %37, %.lr.ph ], [ %.01721, %.lr.ph25 ]
  %37 = getelementptr inbounds i8, ptr %.119, i64 4
  %38 = load float, ptr %.119, align 4, !tbaa !21
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #5
  %40 = load float, ptr %39, align 4, !tbaa !21
  %41 = call float @llvm.fmuladd.f32(float %38, float %31, float %40)
  store float %41, ptr %39, align 4, !tbaa !21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = call noundef i32 @_ZNK9resampler21MultiChannelResampler15getChannelCountEv(ptr noundef nonnull align 8 dereferenceable(124) %0)
  %43 = sext i32 %42 to i64
  %44 = icmp slt i64 %indvars.iv.next, %43
  br i1 %44, label %.lr.ph, label %._crit_edge, !llvm.loop !25

._crit_edge31:                                    ; preds = %.lr.ph30, %._crit_edge26
  ret void

.lr.ph30:                                         ; preds = %._crit_edge26, %.lr.ph30
  %indvars.iv35 = phi i64 [ %indvars.iv.next36, %.lr.ph30 ], [ 0, %._crit_edge26 ]
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv35) #5
  %46 = load float, ptr %45, align 4, !tbaa !21
  %47 = getelementptr inbounds float, ptr %1, i64 %indvars.iv35
  store float %46, ptr %47, align 4, !tbaa !21
  %indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
  %48 = call noundef i32 @_ZNK9resampler21MultiChannelResampler15getChannelCountEv(ptr noundef nonnull align 8 dereferenceable(124) %0)
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv.next36, %49
  br i1 %50, label %.lr.ph30, label %._crit_edge31, !llvm.loop !26
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEEdEvT_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler15getChannelCountEv(ptr noundef nonnull align 8 dereferenceable(124)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint 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 #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !17, i64 124}
!10 = !{!"_ZTSN9resampler18PolyphaseResamplerE", !11, i64 0, !17, i64 124}
!11 = !{!"_ZTSN9resampler21MultiChannelResamplerE", !12, i64 8, !17, i64 32, !17, i64 36, !12, i64 40, !12, i64 64, !17, i64 88, !17, i64 92, !17, i64 96, !18, i64 104, !17, i64 120}
!12 = !{!"_ZTSSt6vectorIfSaIfEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN9resampler22HyperbolicCosineWindowE", !6, i64 0, !6, i64 8}
!19 = !{!11, !17, i64 36}
!20 = !{!11, !17, i64 32}
!21 = !{!22, !22, i64 0}
!22 = !{!"float", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass