; LLVM IR from software-mansion/react-native-audio-api :: packages/react-native-audio-api/common/cpp/audioapi/core/analysis/AnalyserNode_acf76bf6 (ZN8audioapi12AnalyserNode21getByteTimeDomainDataEPhi)

; 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.audioapi::AnalyserNode" = type <{ %"class.audioapi::AudioNode", i32, float, float, float, i32, [4 x i8], %"class.std::shared_ptr.25", %"class.std::unique_ptr", %"class.std::unique_ptr.30", %"class.std::unique_ptr.38", %"class.std::unique_ptr.46", %"class.std::vector.54", %"class.std::unique_ptr.38", i8, [7 x i8] }>
%"class.audioapi::AudioNode" = type { ptr, %"class.std::enable_shared_from_this", ptr, %"class.std::shared_ptr", i32, i32, i32, i32, i32, %"class.std::unordered_set", %"class.std::unordered_set.2", i32, i8, i8, i64, %"class.std::vector" }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_set.2" = type { %"class.std::_Hashtable.3" }
%"class.std::_Hashtable.3" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<audioapi::AudioBus>, std::allocator<std::shared_ptr<audioapi::AudioBus>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<audioapi::AudioBus>, std::allocator<std::shared_ptr<audioapi::AudioBus>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<audioapi::AudioBus>, std::allocator<std::shared_ptr<audioapi::AudioBus>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<audioapi::AudioBus>, std::allocator<std::shared_ptr<audioapi::AudioBus>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr.25" = type { %"class.std::__shared_ptr.26" }
%"class.std::__shared_ptr.26" = type { ptr, %"class.std::__shared_count" }
%"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.29" }
%"struct.std::_Head_base.29" = type { ptr }
%"class.std::unique_ptr.30" = type { %"struct.std::__uniq_ptr_data.31" }
%"struct.std::__uniq_ptr_data.31" = type { %"class.std::__uniq_ptr_impl.32" }
%"class.std::__uniq_ptr_impl.32" = type { %"class.std::tuple.33" }
%"class.std::tuple.33" = type { %"struct.std::_Tuple_impl.34" }
%"struct.std::_Tuple_impl.34" = type { %"struct.std::_Head_base.37" }
%"struct.std::_Head_base.37" = type { ptr }
%"class.std::unique_ptr.46" = type { %"struct.std::__uniq_ptr_data.47" }
%"struct.std::__uniq_ptr_data.47" = type { %"class.std::__uniq_ptr_impl.48" }
%"class.std::__uniq_ptr_impl.48" = type { %"class.std::tuple.49" }
%"class.std::tuple.49" = type { %"struct.std::_Tuple_impl.50" }
%"struct.std::_Tuple_impl.50" = type { %"struct.std::_Head_base.53" }
%"struct.std::_Head_base.53" = type { ptr }
%"class.std::vector.54" = type { %"struct.std::_Vector_base.55" }
%"struct.std::_Vector_base.55" = type { %"struct.std::_Vector_base<std::complex<float>, std::allocator<std::complex<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::complex<float>, std::allocator<std::complex<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::complex<float>, std::allocator<std::complex<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::complex<float>, std::allocator<std::complex<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr.38" = type { %"struct.std::__uniq_ptr_data.39" }
%"struct.std::__uniq_ptr_data.39" = type { %"class.std::__uniq_ptr_impl.40" }
%"class.std::__uniq_ptr_impl.40" = type { %"class.std::tuple.41" }
%"class.std::tuple.41" = type { %"struct.std::_Tuple_impl.42" }
%"struct.std::_Tuple_impl.42" = type { %"struct.std::_Head_base.45" }
%"struct.std::_Head_base.45" = type { ptr }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

declare noundef ptr @_ZNK8audioapi10AudioArray7getDataEv(ptr noundef nonnull align 8 dereferenceable(16)) #3

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

declare void @_ZN8audioapi18CircularAudioArray8pop_backEPfmmb(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8audioapi12AnalyserNode21getByteTimeDomainDataEPhi(ptr noundef nonnull align 8 dereferenceable(329) %0, ptr noundef %1, i32 noundef %2) #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %13 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %14 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 1
  %15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %16 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %16, ptr %7, align 4, !tbaa !9
  %17 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 8
  %18 = call noundef ptr @_ZNKSt10unique_ptrIN8audioapi18CircularAudioArrayESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %19 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 10
  %20 = call noundef ptr @_ZNKSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %21 = call noundef ptr @_ZNK8audioapi10AudioArray7getDataEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
  %22 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 1
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = sext i32 %23 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %25 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 1
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = sub nsw i32 %26, %27
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  call void @_ZN8audioapi18CircularAudioArray8pop_backEPfmmb(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef %21, i64 noundef %24, i64 noundef %31, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %62, %3
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %65

37:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %38 = getelementptr inbounds %"class.audioapi::AnalyserNode", ptr %13, i32 0, i32 10
  %39 = call noundef ptr @_ZNKSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #5
  %40 = call noundef ptr @_ZNK8audioapi10AudioArray7getDataEv(ptr noundef nonnull align 8 dereferenceable(16) %39)
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds float, ptr %40, i64 %42
  %44 = load float, ptr %43, align 4, !tbaa !67
  store float %44, ptr %11, align 4, !tbaa !67
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %45 = load float, ptr %11, align 4, !tbaa !67
  %46 = fadd float %45, 1.000000e+00
  %47 = fmul float 1.280000e+02, %46
  store float %47, ptr %12, align 4, !tbaa !67
  %48 = load float, ptr %12, align 4, !tbaa !67
  %49 = fcmp olt float %48, 0.000000e+00
  br i1 %49, label %50, label %51

50:                                               ; preds = %37
  store float 0.000000e+00, ptr %12, align 4, !tbaa !67
  br label %51

51:                                               ; preds = %50, %37
  %52 = load float, ptr %12, align 4, !tbaa !67
  %53 = fcmp ogt float %52, 2.550000e+02
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  store float 2.550000e+02, ptr %12, align 4, !tbaa !67
  br label %55

55:                                               ; preds = %54, %51
  %56 = load float, ptr %12, align 4, !tbaa !67
  %57 = fptoui float %56 to i8
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i8, ptr %58, i64 %60
  store i8 %57, ptr %61, align 1, !tbaa !68
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %62

62:                                               ; preds = %55
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %10, align 4, !tbaa !9
  br label %32, !llvm.loop !69

65:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 224}
!12 = !{!"_ZTSN8audioapi12AnalyserNodeE", !13, i64 0, !10, i64 224, !28, i64 228, !28, i64 232, !28, i64 236, !36, i64 240, !37, i64 248, !39, i64 264, !45, i64 272, !51, i64 280, !57, i64 288, !63, i64 296, !51, i64 320, !31, i64 328}
!13 = !{!"_ZTSN8audioapi9AudioNodeE", !14, i64 8, !6, i64 24, !18, i64 32, !10, i64 48, !10, i64 52, !10, i64 56, !21, i64 60, !22, i64 64, !23, i64 72, !29, i64 128, !10, i64 184, !31, i64 188, !31, i64 189, !25, i64 192, !32, i64 200}
!14 = !{!"_ZTSSt23enable_shared_from_thisIN8audioapi9AudioNodeEE", !15, i64 0}
!15 = !{!"_ZTSSt8weak_ptrIN8audioapi9AudioNodeEE", !16, i64 0}
!16 = !{!"_ZTSSt10__weak_ptrIN8audioapi9AudioNodeELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!18 = !{!"_ZTSSt10shared_ptrIN8audioapi8AudioBusEE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrIN8audioapi8AudioBusELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !20, i64 8}
!20 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!21 = !{!"_ZTSN8audioapi16ChannelCountModeE", !7, i64 0}
!22 = !{!"_ZTSN8audioapi21ChannelInterpretationE", !7, i64 0}
!23 = !{!"_ZTSSt13unordered_setIPN8audioapi9AudioNodeESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt10_HashtableIPN8audioapi9AudioNodeES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !25, i64 8, !26, i64 16, !25, i64 24, !27, i64 32, !6, i64 48}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!27 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !28, i64 0, !25, i64 8}
!28 = !{!"float", !7, i64 0}
!29 = !{!"_ZTSSt13unordered_setISt10shared_ptrIN8audioapi9AudioNodeEESt4hashIS3_ESt8equal_toIS3_ESaIS3_EE", !30, i64 0}
!30 = !{!"_ZTSSt10_HashtableISt10shared_ptrIN8audioapi9AudioNodeEES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !25, i64 8, !26, i64 16, !25, i64 24, !27, i64 32, !6, i64 48}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"_ZTSSt6vectorISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSN8audioapi12AnalyserNode10WindowTypeE", !7, i64 0}
!37 = !{!"_ZTSSt10shared_ptrIN8audioapi10AudioArrayEE", !38, i64 0}
!38 = !{!"_ZTSSt12__shared_ptrIN8audioapi10AudioArrayELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !20, i64 8}
!39 = !{!"_ZTSSt10unique_ptrIN8audioapi18CircularAudioArrayESt14default_deleteIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi18CircularAudioArrayESt14default_deleteIS1_ELb1ELb1EE", !41, i64 0}
!41 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi18CircularAudioArrayESt14default_deleteIS1_EE", !42, i64 0}
!42 = !{!"_ZTSSt5tupleIJPN8audioapi18CircularAudioArrayESt14default_deleteIS1_EEE", !43, i64 0}
!43 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi18CircularAudioArrayESt14default_deleteIS1_EEE", !44, i64 0}
!44 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi18CircularAudioArrayELb0EE", !6, i64 0}
!45 = !{!"_ZTSSt10unique_ptrIN8audioapi8AudioBusESt14default_deleteIS1_EE", !46, i64 0}
!46 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi8AudioBusESt14default_deleteIS1_ELb1ELb1EE", !47, i64 0}
!47 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi8AudioBusESt14default_deleteIS1_EE", !48, i64 0}
!48 = !{!"_ZTSSt5tupleIJPN8audioapi8AudioBusESt14default_deleteIS1_EEE", !49, i64 0}
!49 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi8AudioBusESt14default_deleteIS1_EEE", !50, i64 0}
!50 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi8AudioBusELb0EE", !6, i64 0}
!51 = !{!"_ZTSSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EE", !52, i64 0}
!52 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi10AudioArrayESt14default_deleteIS1_ELb1ELb1EE", !53, i64 0}
!53 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi10AudioArrayESt14default_deleteIS1_EE", !54, i64 0}
!54 = !{!"_ZTSSt5tupleIJPN8audioapi10AudioArrayESt14default_deleteIS1_EEE", !55, i64 0}
!55 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi10AudioArrayESt14default_deleteIS1_EEE", !56, i64 0}
!56 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi10AudioArrayELb0EE", !6, i64 0}
!57 = !{!"_ZTSSt10unique_ptrIN8audioapi3dsp3FFTESt14default_deleteIS2_EE", !58, i64 0}
!58 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi3dsp3FFTESt14default_deleteIS2_ELb1ELb1EE", !59, i64 0}
!59 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi3dsp3FFTESt14default_deleteIS2_EE", !60, i64 0}
!60 = !{!"_ZTSSt5tupleIJPN8audioapi3dsp3FFTESt14default_deleteIS2_EEE", !61, i64 0}
!61 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi3dsp3FFTESt14default_deleteIS2_EEE", !62, i64 0}
!62 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi3dsp3FFTELb0EE", !6, i64 0}
!63 = !{!"_ZTSSt6vectorISt7complexIfESaIS1_EE", !64, i64 0}
!64 = !{!"_ZTSSt12_Vector_baseISt7complexIfESaIS1_EE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseISt7complexIfESaIS1_EE12_Vector_implE", !66, i64 0}
!66 = !{!"_ZTSNSt12_Vector_baseISt7complexIfESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!67 = !{!28, !28, i64 0}
!68 = !{!7, !7, i64 0}
!69 = distinct !{!69, !70}
!70 = !{!"llvm.loop.mustprogress"}


; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

declare noundef ptr @_ZNK8audioapi10AudioArray7getDataEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

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

declare void @_ZN8audioapi18CircularAudioArray8pop_backEPfmmb(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8audioapi12AnalyserNode21getByteTimeDomainDataEPhi(ptr noundef nonnull align 8 dereferenceable(329) %0, ptr nocapture noundef writeonly %1, i32 noundef %2) local_unnamed_addr #4 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store i32 %2, ptr %4, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 224
  %8 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 264
  %11 = call noundef ptr @_ZNKSt10unique_ptrIN8audioapi18CircularAudioArrayESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 280
  %13 = call noundef ptr @_ZNKSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %14 = call noundef ptr @_ZNK8audioapi10AudioArray7getDataEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  %15 = load i32, ptr %7, align 8, !tbaa !9
  %16 = sext i32 %15 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %17 = sub nsw i32 %15, %9
  store i32 %17, ptr %6, align 4, !tbaa !5
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  call void @_ZN8audioapi18CircularAudioArray8pop_backEPfmmb(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef %14, i64 noundef %16, i64 noundef %20, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %21 = icmp sgt i32 %9, 0
  br i1 %21, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %3
  %wide.trip.count = zext nneg i32 %9 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %3
  ret void

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %22 = call noundef ptr @_ZNKSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %23 = call noundef ptr @_ZNK8audioapi10AudioArray7getDataEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
  %24 = getelementptr inbounds float, ptr %23, i64 %indvars.iv
  %25 = load float, ptr %24, align 4, !tbaa !66
  %26 = fadd float %25, 1.000000e+00
  %27 = fmul float %26, 1.280000e+02
  %28 = fcmp olt float %27, 0.000000e+00
  %.0 = select i1 %28, float 0.000000e+00, float %27
  %29 = fcmp ogt float %.0, 2.550000e+02
  %.1 = select i1 %29, float 2.550000e+02, float %.0
  %30 = fptoui float %.1 to i8
  %31 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv
  store i8 %30, ptr %31, align 1, !tbaa !67
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !68
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 }

!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++ TBAA"}
!9 = !{!10, !6, i64 224}
!10 = !{!"_ZTSN8audioapi12AnalyserNodeE", !11, i64 0, !6, i64 224, !27, i64 228, !27, i64 232, !27, i64 236, !35, i64 240, !36, i64 248, !38, i64 264, !44, i64 272, !50, i64 280, !56, i64 288, !62, i64 296, !50, i64 320, !30, i64 328}
!11 = !{!"_ZTSN8audioapi9AudioNodeE", !12, i64 8, !15, i64 24, !17, i64 32, !6, i64 48, !6, i64 52, !6, i64 56, !20, i64 60, !21, i64 64, !22, i64 72, !28, i64 128, !6, i64 184, !30, i64 188, !30, i64 189, !24, i64 192, !31, i64 200}
!12 = !{!"_ZTSSt23enable_shared_from_thisIN8audioapi9AudioNodeEE", !13, i64 0}
!13 = !{!"_ZTSSt8weak_ptrIN8audioapi9AudioNodeEE", !14, i64 0}
!14 = !{!"_ZTSSt10__weak_ptrIN8audioapi9AudioNodeELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !16, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0}
!17 = !{!"_ZTSSt10shared_ptrIN8audioapi8AudioBusEE", !18, i64 0}
!18 = !{!"_ZTSSt12__shared_ptrIN8audioapi8AudioBusELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !19, i64 8}
!19 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0}
!20 = !{!"_ZTSN8audioapi16ChannelCountModeE", !7, i64 0}
!21 = !{!"_ZTSN8audioapi21ChannelInterpretationE", !7, i64 0}
!22 = !{!"_ZTSSt13unordered_setIPN8audioapi9AudioNodeESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableIPN8audioapi9AudioNodeES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !15, i64 0, !24, i64 8, !25, i64 16, !24, i64 24, !26, i64 32, !15, i64 48}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !15, i64 0}
!26 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !27, i64 0, !24, i64 8}
!27 = !{!"float", !7, i64 0}
!28 = !{!"_ZTSSt13unordered_setISt10shared_ptrIN8audioapi9AudioNodeEESt4hashIS3_ESt8equal_toIS3_ESaIS3_EE", !29, i64 0}
!29 = !{!"_ZTSSt10_HashtableISt10shared_ptrIN8audioapi9AudioNodeEES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE", !15, i64 0, !24, i64 8, !25, i64 16, !24, i64 24, !26, i64 32, !15, i64 48}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSSt6vectorISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8audioapi8AudioBusEESaIS3_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!35 = !{!"_ZTSN8audioapi12AnalyserNode10WindowTypeE", !7, i64 0}
!36 = !{!"_ZTSSt10shared_ptrIN8audioapi10AudioArrayEE", !37, i64 0}
!37 = !{!"_ZTSSt12__shared_ptrIN8audioapi10AudioArrayELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !19, i64 8}
!38 = !{!"_ZTSSt10unique_ptrIN8audioapi18CircularAudioArrayESt14default_deleteIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi18CircularAudioArrayESt14default_deleteIS1_ELb1ELb1EE", !40, i64 0}
!40 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi18CircularAudioArrayESt14default_deleteIS1_EE", !41, i64 0}
!41 = !{!"_ZTSSt5tupleIJPN8audioapi18CircularAudioArrayESt14default_deleteIS1_EEE", !42, i64 0}
!42 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi18CircularAudioArrayESt14default_deleteIS1_EEE", !43, i64 0}
!43 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi18CircularAudioArrayELb0EE", !15, i64 0}
!44 = !{!"_ZTSSt10unique_ptrIN8audioapi8AudioBusESt14default_deleteIS1_EE", !45, i64 0}
!45 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi8AudioBusESt14default_deleteIS1_ELb1ELb1EE", !46, i64 0}
!46 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi8AudioBusESt14default_deleteIS1_EE", !47, i64 0}
!47 = !{!"_ZTSSt5tupleIJPN8audioapi8AudioBusESt14default_deleteIS1_EEE", !48, i64 0}
!48 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi8AudioBusESt14default_deleteIS1_EEE", !49, i64 0}
!49 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi8AudioBusELb0EE", !15, i64 0}
!50 = !{!"_ZTSSt10unique_ptrIN8audioapi10AudioArrayESt14default_deleteIS1_EE", !51, i64 0}
!51 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi10AudioArrayESt14default_deleteIS1_ELb1ELb1EE", !52, i64 0}
!52 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi10AudioArrayESt14default_deleteIS1_EE", !53, i64 0}
!53 = !{!"_ZTSSt5tupleIJPN8audioapi10AudioArrayESt14default_deleteIS1_EEE", !54, i64 0}
!54 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi10AudioArrayESt14default_deleteIS1_EEE", !55, i64 0}
!55 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi10AudioArrayELb0EE", !15, i64 0}
!56 = !{!"_ZTSSt10unique_ptrIN8audioapi3dsp3FFTESt14default_deleteIS2_EE", !57, i64 0}
!57 = !{!"_ZTSSt15__uniq_ptr_dataIN8audioapi3dsp3FFTESt14default_deleteIS2_ELb1ELb1EE", !58, i64 0}
!58 = !{!"_ZTSSt15__uniq_ptr_implIN8audioapi3dsp3FFTESt14default_deleteIS2_EE", !59, i64 0}
!59 = !{!"_ZTSSt5tupleIJPN8audioapi3dsp3FFTESt14default_deleteIS2_EEE", !60, i64 0}
!60 = !{!"_ZTSSt11_Tuple_implILm0EJPN8audioapi3dsp3FFTESt14default_deleteIS2_EEE", !61, i64 0}
!61 = !{!"_ZTSSt10_Head_baseILm0EPN8audioapi3dsp3FFTELb0EE", !15, i64 0}
!62 = !{!"_ZTSSt6vectorISt7complexIfESaIS1_EE", !63, i64 0}
!63 = !{!"_ZTSSt12_Vector_baseISt7complexIfESaIS1_EE", !64, i64 0}
!64 = !{!"_ZTSNSt12_Vector_baseISt7complexIfESaIS1_EE12_Vector_implE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseISt7complexIfESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!66 = !{!27, !27, i64 0}
!67 = !{!7, !7, i64 0}
!68 = distinct !{!68, !69}
!69 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass