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

; 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.std::allocator" = type { i8 }
%"class.resampler::IntegerRatio" = type { i32, i32 }
%"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 }

@_ZTVN9resampler21MultiChannelResamplerE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9resampler21MultiChannelResamplerC2ERKNS0_7BuilderE(ptr noundef nonnull align 8 dereferenceable(124) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.resampler::IntegerRatio", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  store ptr getelementptr inbounds inrange(-16, 32) ({ [6 x ptr] }, ptr @_ZTVN9resampler21MultiChannelResamplerE, i32 0, i32 0, i32 2), ptr %10, align 8, !tbaa !9
  %11 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 1
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %12 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 2
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = invoke noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder10getNumTapsEv(ptr noundef nonnull align 4 dereferenceable(20) %13)
          to label %15 unwind label %60

15:                                               ; preds = %2
  store i32 %14, ptr %12, align 8, !tbaa !11
  %16 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 3
  store i32 0, ptr %16, align 4, !tbaa !20
  %17 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 4
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = invoke noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder15getChannelCountEv(ptr noundef nonnull align 4 dereferenceable(20) %18)
          to label %20 unwind label %60

20:                                               ; preds = %15
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = invoke noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder10getNumTapsEv(ptr noundef nonnull align 4 dereferenceable(20) %21)
          to label %23 unwind label %60

23:                                               ; preds = %20
  %24 = mul nsw i32 %19, %22
  %25 = mul nsw i32 %24, 2
  %26 = sext i32 %25 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %26, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %27 unwind label %64

27:                                               ; preds = %23
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  %28 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 5
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = invoke noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder15getChannelCountEv(ptr noundef nonnull align 4 dereferenceable(20) %29)
          to label %31 unwind label %68

31:                                               ; preds = %27
  %32 = sext i32 %30 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %32, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %33 unwind label %72

33:                                               ; preds = %31
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  %34 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 6
  store i32 0, ptr %34, align 8, !tbaa !21
  %35 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 7
  store i32 0, ptr %35, align 4, !tbaa !22
  %36 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 8
  store i32 0, ptr %36, align 8, !tbaa !23
  %37 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 10
  invoke void @_ZN9resampler22HyperbolicCosineWindowC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37)
          to label %38 unwind label %76

38:                                               ; preds = %33
  %39 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 11
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = invoke noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder15getChannelCountEv(ptr noundef nonnull align 4 dereferenceable(20) %40)
          to label %42 unwind label %76

42:                                               ; preds = %38
  store i32 %41, ptr %39, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = invoke noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder12getInputRateEv(ptr noundef nonnull align 4 dereferenceable(20) %43)
          to label %45 unwind label %80

45:                                               ; preds = %42
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = invoke noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder13getOutputRateEv(ptr noundef nonnull align 4 dereferenceable(20) %46)
          to label %48 unwind label %80

48:                                               ; preds = %45
  invoke void @_ZN9resampler12IntegerRatioC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef %44, i32 noundef %47)
          to label %49 unwind label %80

49:                                               ; preds = %48
  invoke void @_ZN9resampler12IntegerRatio6reduceEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %50 unwind label %80

50:                                               ; preds = %49
  %51 = invoke noundef i32 @_ZN9resampler12IntegerRatio12getNumeratorEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %52 unwind label %80

52:                                               ; preds = %50
  %53 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 7
  store i32 %51, ptr %53, align 4, !tbaa !22
  %54 = invoke noundef i32 @_ZN9resampler12IntegerRatio14getDenominatorEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %55 unwind label %80

55:                                               ; preds = %52
  %56 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 8
  store i32 %54, ptr %56, align 8, !tbaa !23
  %57 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 8
  %58 = load i32, ptr %57, align 8, !tbaa !23
  %59 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %10, i32 0, i32 6
  store i32 %58, ptr %59, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void

60:                                               ; preds = %20, %15, %2
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %5, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %6, align 4
  br label %86

64:                                               ; preds = %23
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %5, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  br label %86

68:                                               ; preds = %27
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %5, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %6, align 4
  br label %85

72:                                               ; preds = %31
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %5, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  br label %85

76:                                               ; preds = %38, %33
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %5, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %6, align 4
  br label %84

80:                                               ; preds = %52, %50, %49, %48, %45, %42
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %5, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %84

84:                                               ; preds = %80, %76
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #4
  br label %85

85:                                               ; preds = %84, %72, %68
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  br label %86

86:                                               ; preds = %85, %64, %60
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %5, align 8
  %89 = load i32, ptr %6, align 4
  %90 = insertvalue { ptr, i32 } poison, ptr %88, 0
  %91 = insertvalue { ptr, i32 } %90, i32 %89, 1
  resume { ptr, i32 } %91
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder10getNumTapsEv(ptr noundef nonnull align 4 dereferenceable(20)) #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder15getChannelCountEv(ptr noundef nonnull align 4 dereferenceable(20)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder12getInputRateEv(ptr noundef nonnull align 4 dereferenceable(20)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder13getOutputRateEv(ptr noundef nonnull align 4 dereferenceable(20)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9resampler12IntegerRatioC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #1 align 2

declare void @_ZN9resampler12IntegerRatio6reduceEv(ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN9resampler12IntegerRatio12getNumeratorEv(ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN9resampler12IntegerRatio14getDenominatorEv(ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 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 = { 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 = { "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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !17, i64 32}
!12 = !{!"_ZTSN9resampler21MultiChannelResamplerE", !13, i64 8, !17, i64 32, !17, i64 36, !13, i64 40, !13, i64 64, !17, i64 88, !17, i64 92, !17, i64 96, !18, i64 104, !17, i64 120}
!13 = !{!"_ZTSSt6vectorIfSaIfEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN9resampler22HyperbolicCosineWindowE", !19, i64 0, !19, i64 8}
!19 = !{!"double", !7, i64 0}
!20 = !{!12, !17, i64 36}
!21 = !{!12, !17, i64 88}
!22 = !{!12, !17, i64 92}
!23 = !{!12, !17, i64 96}
!24 = !{!12, !17, i64 120}


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

%"class.std::allocator" = type { i8 }
%"class.resampler::IntegerRatio" = type { i32, i32 }

@_ZTVN9resampler21MultiChannelResamplerE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9resampler21MultiChannelResamplerC2ERKNS0_7BuilderE(ptr noundef nonnull align 8 dereferenceable(124) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.resampler::IntegerRatio", align 4
  store ptr getelementptr inbounds inrange(-16, 32) (i8, ptr @_ZTVN9resampler21MultiChannelResamplerE, i64 16), ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = tail call noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder10getNumTapsEv(ptr noundef nonnull align 4 dereferenceable(20) %1)
  store i32 %8, ptr %7, align 8, !tbaa !8
  %9 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 0, ptr %9, align 4, !tbaa !19
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = tail call noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder15getChannelCountEv(ptr noundef nonnull align 4 dereferenceable(20) %1)
  %12 = tail call noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder10getNumTapsEv(ptr noundef nonnull align 4 dereferenceable(20) %1)
  %13 = shl i32 %11, 1
  %14 = mul i32 %13, %12
  %15 = sext i32 %14 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #4
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %15, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %16 unwind label %33

16:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  %17 = getelementptr inbounds i8, ptr %0, i64 64
  %18 = call noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder15getChannelCountEv(ptr noundef nonnull align 4 dereferenceable(20) %1)
  %19 = sext i32 %18 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %20 unwind label %35

20:                                               ; preds = %16
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  %21 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 0, ptr %21, align 8, !tbaa !20
  %22 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 0, ptr %22, align 4, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 0, ptr %23, align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %0, i64 104
  invoke void @_ZN9resampler22HyperbolicCosineWindowC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %25 unwind label %37

25:                                               ; preds = %20
  %26 = getelementptr inbounds i8, ptr %0, i64 120
  %27 = call noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder15getChannelCountEv(ptr noundef nonnull align 4 dereferenceable(20) %1)
  store i32 %27, ptr %26, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %28 = call noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder12getInputRateEv(ptr noundef nonnull align 4 dereferenceable(20) %1)
  %29 = call noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder13getOutputRateEv(ptr noundef nonnull align 4 dereferenceable(20) %1)
  call void @_ZN9resampler12IntegerRatioC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef %28, i32 noundef %29)
  invoke void @_ZN9resampler12IntegerRatio6reduceEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %30 unwind label %39

30:                                               ; preds = %25
  %31 = call noundef i32 @_ZN9resampler12IntegerRatio12getNumeratorEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  store i32 %31, ptr %22, align 4, !tbaa !21
  %32 = call noundef i32 @_ZN9resampler12IntegerRatio14getDenominatorEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  store i32 %32, ptr %23, align 8, !tbaa !22
  store i32 %32, ptr %21, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  ret void

33:                                               ; preds = %2
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  br label %43

35:                                               ; preds = %16
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  br label %42

37:                                               ; preds = %20
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %41

39:                                               ; preds = %25
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %41

41:                                               ; preds = %39, %37
  %.pn = phi { ptr, i32 } [ %40, %39 ], [ %38, %37 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  br label %42

42:                                               ; preds = %41, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %41 ], [ %36, %35 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  br label %43

43:                                               ; preds = %42, %33
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %42 ], [ %34, %33 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder10getNumTapsEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder15getChannelCountEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #1 align 2

; 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 nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 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: mustprogress uwtable
declare dso_local void @_ZN9resampler22HyperbolicCosineWindowC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder12getInputRateEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler7Builder13getOutputRateEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9resampler12IntegerRatioC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #1 align 2

declare void @_ZN9resampler12IntegerRatio6reduceEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN9resampler12IntegerRatio12getNumeratorEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN9resampler12IntegerRatio14getDenominatorEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 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 = { 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 = { "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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !16, i64 32}
!9 = !{!"_ZTSN9resampler21MultiChannelResamplerE", !10, i64 8, !16, i64 32, !16, i64 36, !10, i64 40, !10, i64 64, !16, i64 88, !16, i64 92, !16, i64 96, !17, i64 104, !16, i64 120}
!10 = !{!"_ZTSSt6vectorIfSaIfEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !15, i64 0}
!15 = !{!"omnipotent char", !7, i64 0}
!16 = !{!"int", !15, i64 0}
!17 = !{!"_ZTSN9resampler22HyperbolicCosineWindowE", !18, i64 0, !18, i64 8}
!18 = !{!"double", !15, i64 0}
!19 = !{!9, !16, i64 36}
!20 = !{!9, !16, i64 88}
!21 = !{!9, !16, i64 92}
!22 = !{!9, !16, i64 96}
!23 = !{!9, !16, i64 120}


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