; LLVM IR from kdrag0n/fxdsp :: sinks/oboe.ll (ZN5fxdsp8OboeSink4openEv)

; 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.fxdsp::OboeSink" = type { %"class.fxdsp::AudioSink", %"class.std::shared_ptr", %"class.oboe::AudioStreamBuilder", %"class.std::vector.3", i32, i32 }
%"class.fxdsp::AudioSink" = type { ptr, %"class.std::vector", i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl_data" = type { ptr, ptr, 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.oboe::AudioStreamBuilder" = type <{ %"class.oboe::AudioStreamBase", i32, [4 x i8] }>
%"class.oboe::AudioStreamBase" = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i8, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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 }

@_ZTISt13runtime_error = external constant ptr

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5fxdsp8OboeSink4openEv(ptr noundef nonnull align 8 dereferenceable(248) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %7 = getelementptr inbounds %"class.fxdsp::OboeSink", ptr %6, i32 0, i32 2
  %8 = getelementptr inbounds %"class.fxdsp::OboeSink", ptr %6, i32 0, i32 1
  %9 = call noundef i32 @_ZN4oboe18AudioStreamBuilder10openStreamERSt10shared_ptrINS_11AudioStreamEE(ptr noundef nonnull align 8 dereferenceable(156) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  store i32 %9, ptr %3, align 4, !tbaa !9
  %10 = load i32, ptr %3, align 4, !tbaa !9
  %11 = icmp ne i32 %10, 0
  br i1 %11, label %12, label %22

12:                                               ; preds = %1
  %13 = call ptr @__cxa_allocate_exception(i64 16) #5
  %14 = load i32, ptr %3, align 4, !tbaa !9
  %15 = invoke noundef ptr @_ZN4oboe13convertToTextINS_6ResultEEEPKcT_(i32 noundef %14)
          to label %16 unwind label %18

16:                                               ; preds = %12
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef %15)
          to label %17 unwind label %18

17:                                               ; preds = %16
  call void @__cxa_throw(ptr %13, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #6
  unreachable

18:                                               ; preds = %16, %12
  %19 = landingpad { ptr, i32 }
          cleanup
  %20 = extractvalue { ptr, i32 } %19, 0
  store ptr %20, ptr %4, align 8
  %21 = extractvalue { ptr, i32 } %19, 1
  store i32 %21, ptr %5, align 4
  call void @__cxa_free_exception(ptr %13) #5
  br label %57

22:                                               ; preds = %1
  %23 = getelementptr inbounds %"class.fxdsp::OboeSink", ptr %6, i32 0, i32 1
  %24 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4oboe11AudioStreamELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = getelementptr inbounds ptr, ptr %25, i64 11
  %27 = load ptr, ptr %26, align 8
  %28 = call noundef i32 %27(ptr noundef nonnull align 8 dereferenceable(238) %24)
  store i32 %28, ptr %3, align 4, !tbaa !9
  %29 = load i32, ptr %3, align 4, !tbaa !9
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %41

31:                                               ; preds = %22
  %32 = call ptr @__cxa_allocate_exception(i64 16) #5
  %33 = load i32, ptr %3, align 4, !tbaa !9
  %34 = invoke noundef ptr @_ZN4oboe13convertToTextINS_6ResultEEEPKcT_(i32 noundef %33)
          to label %35 unwind label %37

35:                                               ; preds = %31
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef %34)
          to label %36 unwind label %37

36:                                               ; preds = %35
  call void @__cxa_throw(ptr %32, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #6
  unreachable

37:                                               ; preds = %35, %31
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %4, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %5, align 4
  call void @__cxa_free_exception(ptr %32) #5
  br label %57

41:                                               ; preds = %22
  %42 = getelementptr inbounds %"class.fxdsp::OboeSink", ptr %6, i32 0, i32 1
  %43 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4oboe11AudioStreamELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %42) #5
  %44 = call noundef i32 @_ZNK4oboe11AudioStream16getBytesPerFrameEv(ptr noundef nonnull align 8 dereferenceable(238) %43)
  %45 = getelementptr inbounds %"class.fxdsp::OboeSink", ptr %6, i32 0, i32 4
  store i32 %44, ptr %45, align 8, !tbaa !13
  %46 = getelementptr inbounds %"class.fxdsp::OboeSink", ptr %6, i32 0, i32 1
  %47 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4oboe11AudioStreamELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %46) #5
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds ptr, ptr %48, i64 3
  %50 = load ptr, ptr %49, align 8
  %51 = call noundef i32 %50(ptr noundef nonnull align 8 dereferenceable(152) %47)
  %52 = getelementptr inbounds %"class.fxdsp::OboeSink", ptr %6, i32 0, i32 1
  %53 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4oboe11AudioStreamELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %52) #5
  %54 = call noundef i32 @_ZNK4oboe11AudioStream16getBytesPerFrameEv(ptr noundef nonnull align 8 dereferenceable(238) %53)
  %55 = mul nsw i32 %51, %54
  %56 = getelementptr inbounds %"class.fxdsp::OboeSink", ptr %6, i32 0, i32 5
  store i32 %55, ptr %56, align 4, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void

57:                                               ; preds = %37, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr %4, align 8
  %60 = load i32, ptr %5, align 4
  %61 = insertvalue { ptr, i32 } poison, ptr %59, 0
  %62 = insertvalue { ptr, i32 } %61, i32 %60, 1
  resume { ptr, i32 } %62
}

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

declare noundef i32 @_ZN4oboe18AudioStreamBuilder10openStreamERSt10shared_ptrINS_11AudioStreamEE(ptr noundef nonnull align 8 dereferenceable(156), ptr noundef nonnull align 8 dereferenceable(16)) #2

declare ptr @__cxa_allocate_exception(i64)

declare noundef ptr @_ZN4oboe13convertToTextINS_6ResultEEEPKcT_(i32 noundef) #2

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

declare void @__cxa_throw(ptr, ptr, ptr)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4oboe11AudioStream16getBytesPerFrameEv(ptr noundef nonnull align 8 dereferenceable(238)) #0 align 2

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

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

!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 = !{!"_ZTSN4oboe6ResultE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !21, i64 240}
!14 = !{!"_ZTSN5fxdsp8OboeSinkE", !15, i64 0, !22, i64 40, !25, i64 56, !41, i64 216, !21, i64 240, !21, i64 244}
!15 = !{!"_ZTSN5fxdsp9AudioSinkE", !16, i64 8, !20, i64 32, !21, i64 36}
!16 = !{!"_ZTSSt6vectorIS_IfSaIfEESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSN5fxdsp11AudioFormatE", !7, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSSt10shared_ptrIN4oboe11AudioStreamEE", !23, i64 0}
!23 = !{!"_ZTSSt12__shared_ptrIN4oboe11AudioStreamELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !24, i64 8}
!24 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!25 = !{!"_ZTSN4oboe18AudioStreamBuilderE", !26, i64 0, !40, i64 152}
!26 = !{!"_ZTSN4oboe15AudioStreamBaseE", !6, i64 8, !6, i64 16, !21, i64 24, !21, i64 28, !21, i64 32, !21, i64 36, !21, i64 40, !21, i64 44, !27, i64 48, !28, i64 52, !29, i64 56, !30, i64 60, !31, i64 64, !32, i64 68, !33, i64 72, !34, i64 76, !35, i64 80, !35, i64 112, !38, i64 144, !38, i64 145, !39, i64 148}
!27 = !{!"_ZTSN4oboe11SharingModeE", !7, i64 0}
!28 = !{!"_ZTSN4oboe11AudioFormatE", !7, i64 0}
!29 = !{!"_ZTSN4oboe9DirectionE", !7, i64 0}
!30 = !{!"_ZTSN4oboe15PerformanceModeE", !7, i64 0}
!31 = !{!"_ZTSN4oboe5UsageE", !7, i64 0}
!32 = !{!"_ZTSN4oboe11ContentTypeE", !7, i64 0}
!33 = !{!"_ZTSN4oboe11InputPresetE", !7, i64 0}
!34 = !{!"_ZTSN4oboe9SessionIdE", !7, i64 0}
!35 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !36, i64 0, !37, i64 8, !7, i64 16}
!36 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!37 = !{!"long", !7, i64 0}
!38 = !{!"bool", !7, i64 0}
!39 = !{!"_ZTSN4oboe27SampleRateConversionQualityE", !7, i64 0}
!40 = !{!"_ZTSN4oboe8AudioApiE", !7, i64 0}
!41 = !{!"_ZTSSt6vectorIfSaIfEE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!45 = !{!14, !21, i64 244}


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

@_ZTISt13runtime_error = external constant ptr

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5fxdsp8OboeSink4openEv(ptr noundef nonnull align 8 dereferenceable(248) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 56
  %3 = getelementptr inbounds i8, ptr %0, i64 40
  %4 = tail call noundef i32 @_ZN4oboe18AudioStreamBuilder10openStreamERSt10shared_ptrINS_11AudioStreamEE(ptr noundef nonnull align 8 dereferenceable(156) %2, ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %12, label %5

5:                                                ; preds = %1
  %6 = tail call ptr @__cxa_allocate_exception(i64 16) #4
  %7 = invoke noundef ptr @_ZN4oboe13convertToTextINS_6ResultEEEPKcT_(i32 noundef %4)
          to label %8 unwind label %10

8:                                                ; preds = %5
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %7)
          to label %9 unwind label %10

9:                                                ; preds = %8
  tail call void @__cxa_throw(ptr nonnull %6, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #5
  unreachable

10:                                               ; preds = %8, %5
  %11 = landingpad { ptr, i32 }
          cleanup
  br label %38

12:                                               ; preds = %1
  %13 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4oboe11AudioStreamELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 88
  %16 = load ptr, ptr %15, align 8
  %17 = tail call noundef i32 %16(ptr noundef nonnull align 8 dereferenceable(238) %13)
  %.not9 = icmp eq i32 %17, 0
  br i1 %.not9, label %25, label %18

18:                                               ; preds = %12
  %19 = tail call ptr @__cxa_allocate_exception(i64 16) #4
  %20 = invoke noundef ptr @_ZN4oboe13convertToTextINS_6ResultEEEPKcT_(i32 noundef %17)
          to label %21 unwind label %23

21:                                               ; preds = %18
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef %20)
          to label %22 unwind label %23

22:                                               ; preds = %21
  tail call void @__cxa_throw(ptr nonnull %19, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #5
  unreachable

23:                                               ; preds = %21, %18
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %38

25:                                               ; preds = %12
  %26 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4oboe11AudioStreamELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  %27 = tail call noundef i32 @_ZNK4oboe11AudioStream16getBytesPerFrameEv(ptr noundef nonnull align 8 dereferenceable(238) %26)
  %28 = getelementptr inbounds i8, ptr %0, i64 240
  store i32 %27, ptr %28, align 8, !tbaa !8
  %29 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4oboe11AudioStreamELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 24
  %32 = load ptr, ptr %31, align 8
  %33 = tail call noundef i32 %32(ptr noundef nonnull align 8 dereferenceable(152) %29)
  %34 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4oboe11AudioStreamELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  %35 = tail call noundef i32 @_ZNK4oboe11AudioStream16getBytesPerFrameEv(ptr noundef nonnull align 8 dereferenceable(238) %34)
  %36 = mul nsw i32 %35, %33
  %37 = getelementptr inbounds i8, ptr %0, i64 244
  store i32 %36, ptr %37, align 4, !tbaa !42
  ret void

38:                                               ; preds = %23, %10
  %.sink = phi ptr [ %19, %23 ], [ %6, %10 ]
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %11, %10 ]
  tail call void @__cxa_free_exception(ptr %.sink) #4
  resume { ptr, i32 } %.pn
}

declare noundef i32 @_ZN4oboe18AudioStreamBuilder10openStreamERSt10shared_ptrINS_11AudioStreamEE(ptr noundef nonnull align 8 dereferenceable(156), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare noundef ptr @_ZN4oboe13convertToTextINS_6ResultEEEPKcT_(i32 noundef) local_unnamed_addr #1

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4oboe11AudioStream16getBytesPerFrameEv(ptr noundef nonnull align 8 dereferenceable(238)) local_unnamed_addr #0 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 = { "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 = { 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 #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 = { nounwind }
attributes #5 = { noreturn }

!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, !18, i64 240}
!9 = !{!"_ZTSN5fxdsp8OboeSinkE", !10, i64 0, !19, i64 40, !22, i64 56, !38, i64 216, !18, i64 240, !18, i64 244}
!10 = !{!"_ZTSN5fxdsp9AudioSinkE", !11, i64 8, !17, i64 32, !18, i64 36}
!11 = !{!"_ZTSSt6vectorIS_IfSaIfEESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !16, i64 0}
!16 = !{!"omnipotent char", !7, i64 0}
!17 = !{!"_ZTSN5fxdsp11AudioFormatE", !16, i64 0}
!18 = !{!"int", !16, i64 0}
!19 = !{!"_ZTSSt10shared_ptrIN4oboe11AudioStreamEE", !20, i64 0}
!20 = !{!"_ZTSSt12__shared_ptrIN4oboe11AudioStreamELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !21, i64 8}
!21 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0}
!22 = !{!"_ZTSN4oboe18AudioStreamBuilderE", !23, i64 0, !37, i64 152}
!23 = !{!"_ZTSN4oboe15AudioStreamBaseE", !15, i64 8, !15, i64 16, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !24, i64 48, !25, i64 52, !26, i64 56, !27, i64 60, !28, i64 64, !29, i64 68, !30, i64 72, !31, i64 76, !32, i64 80, !32, i64 112, !35, i64 144, !35, i64 145, !36, i64 148}
!24 = !{!"_ZTSN4oboe11SharingModeE", !16, i64 0}
!25 = !{!"_ZTSN4oboe11AudioFormatE", !16, i64 0}
!26 = !{!"_ZTSN4oboe9DirectionE", !16, i64 0}
!27 = !{!"_ZTSN4oboe15PerformanceModeE", !16, i64 0}
!28 = !{!"_ZTSN4oboe5UsageE", !16, i64 0}
!29 = !{!"_ZTSN4oboe11ContentTypeE", !16, i64 0}
!30 = !{!"_ZTSN4oboe11InputPresetE", !16, i64 0}
!31 = !{!"_ZTSN4oboe9SessionIdE", !16, i64 0}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !33, i64 0, !34, i64 8, !16, i64 16}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!34 = !{!"long", !16, i64 0}
!35 = !{!"bool", !16, i64 0}
!36 = !{!"_ZTSN4oboe27SampleRateConversionQualityE", !16, i64 0}
!37 = !{!"_ZTSN4oboe8AudioApiE", !16, i64 0}
!38 = !{!"_ZTSSt6vectorIfSaIfEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!42 = !{!9, !18, i64 244}


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