; LLVM IR from glaretechnologies/substrata :: rtaudio (RtAudio)

; 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.RtApi = type { ptr, %"class.std::__cxx11::basic_ostringstream", %"class.std::__cxx11::basic_string", %"class.std::function", i8, %"class.std::vector.3", i32, %"struct.RtApi::RtApiStream" }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"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::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<RtAudio::DeviceInfo, std::allocator<RtAudio::DeviceInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<RtAudio::DeviceInfo, std::allocator<RtAudio::DeviceInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<RtAudio::DeviceInfo, std::allocator<RtAudio::DeviceInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RtAudio::DeviceInfo, std::allocator<RtAudio::DeviceInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.RtApi::RtApiStream" = type { [2 x i32], ptr, i32, i32, [2 x ptr], ptr, [2 x i8], i8, [2 x i8], [2 x i8], i32, i32, i32, [2 x i32], [2 x i32], [2 x i32], [2 x i64], i64, [2 x i64], %union.pthread_mutex_t, %struct.CallbackInfo, [2 x %"struct.RtApi::ConvertInfo"], double }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.CallbackInfo = type <{ ptr, i64, ptr, ptr, ptr, i8, i8, [2 x i8], i32, i8, [7 x i8] }>
%"struct.RtApi::ConvertInfo" = type { i32, i32, i32, i64, i64, %"class.std::vector.8", %"class.std::vector.8" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.RtAudio::StreamParameters" = type { i32, i32, i32 }
%"struct.RtAudio::DeviceInfo" = type { i32, %"class.std::__cxx11::basic_string", i32, i32, i32, i8, i8, %"class.std::vector.18", i32, i32, i64 }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.RtAudio::StreamOptions" = type <{ i32, i32, %"class.std::__cxx11::basic_string", i32, [4 x i8] }>

@.str.24 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [47 x i8], align 1

; 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
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5RtApi10openStreamEPN7RtAudio16StreamParametersES2_mjPjPFiPvS4_jdjS4_ES4_PNS0_13StreamOptionsE(ptr noundef nonnull align 8 dereferenceable(888) %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #1 align 2 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i8, align 1
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store i64 %3, ptr %14, align 8, !tbaa !9
  store i32 %4, ptr %15, align 4, !tbaa !11
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  %25 = load ptr, ptr %11, align 8
  %26 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 7
  %27 = getelementptr inbounds %"struct.RtApi::RtApiStream", ptr %26, i32 0, i32 3
  %28 = load i32, ptr %27, align 4, !tbaa !13
  %29 = icmp ne i32 %28, -50
  br i1 %29, label %30, label %34

30:                                               ; preds = %9
  %31 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 2
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.24)
  %33 = call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %25, i32 noundef 8)
  store i32 %33, ptr %10, align 4
  br label %241

34:                                               ; preds = %9
  call void @_ZN5RtApi15clearStreamInfoEv(ptr noundef nonnull align 8 dereferenceable(888) %25)
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %46

37:                                               ; preds = %34
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.RtAudio::StreamParameters", ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 4, !tbaa !35
  %41 = icmp ult i32 %40, 1
  br i1 %41, label %42, label %46

42:                                               ; preds = %37
  %43 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 2
  %44 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef @.str.25)
  %45 = call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %25, i32 noundef 7)
  store i32 %45, ptr %10, align 4
  br label %241

46:                                               ; preds = %37, %34
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %58

49:                                               ; preds = %46
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.RtAudio::StreamParameters", ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 4, !tbaa !35
  %53 = icmp ult i32 %52, 1
  br i1 %53, label %54, label %58

54:                                               ; preds = %49
  %55 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 2
  %56 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef @.str.26)
  %57 = call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %25, i32 noundef 7)
  store i32 %57, ptr %10, align 4
  br label %241

58:                                               ; preds = %49, %46
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = icmp eq ptr %59, null
  br i1 %60, label %61, label %68

61:                                               ; preds = %58
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = icmp eq ptr %62, null
  br i1 %63, label %64, label %68

64:                                               ; preds = %61
  %65 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 2
  %66 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %65, ptr noundef @.str.27)
  %67 = call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %25, i32 noundef 7)
  store i32 %67, ptr %10, align 4
  br label %241

68:                                               ; preds = %61, %58
  %69 = load i64, ptr %14, align 8, !tbaa !9
  %70 = call noundef i32 @_ZN5RtApi11formatBytesEm(ptr noundef nonnull align 8 dereferenceable(888) %25, i64 noundef %69)
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %76

72:                                               ; preds = %68
  %73 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 2
  %74 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %73, ptr noundef @.str.28)
  %75 = call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %25, i32 noundef 7)
  store i32 %75, ptr %10, align 4
  br label %241

76:                                               ; preds = %68
  %77 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 5
  %78 = call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #3
  %79 = icmp eq i64 %78, 0
  br i1 %79, label %80, label %84

80:                                               ; preds = %76
  %81 = load ptr, ptr %25, align 8, !tbaa !37
  %82 = getelementptr inbounds ptr, ptr %81, i64 11
  %83 = load ptr, ptr %82, align 8
  call void %83(ptr noundef nonnull align 8 dereferenceable(888) %25)
  br label %84

84:                                               ; preds = %80, %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !11
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %124

87:                                               ; preds = %84
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.RtAudio::StreamParameters", ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !35
  store i32 %90, ptr %21, align 4, !tbaa !11
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %91

91:                                               ; preds = %110, %87
  %92 = load i32, ptr %20, align 4, !tbaa !11
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 5
  %95 = call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #3
  %96 = icmp ult i64 %93, %95
  br i1 %96, label %97, label %113

97:                                               ; preds = %91
  %98 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 5
  %99 = load i32, ptr %20, align 4, !tbaa !11
  %100 = zext i32 %99 to i64
  %101 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN7RtAudio10DeviceInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %100) #3
  %102 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !39
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.RtAudio::StreamParameters", ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 4, !tbaa !45
  %107 = icmp eq i32 %103, %106
  br i1 %107, label %108, label %109

108:                                              ; preds = %97
  br label %113

109:                                              ; preds = %97
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %20, align 4, !tbaa !11
  %112 = add i32 %111, 1
  store i32 %112, ptr %20, align 4, !tbaa !11
  br label %91, !llvm.loop !46

113:                                              ; preds = %108, %91
  %114 = load i32, ptr %20, align 4, !tbaa !11
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 5
  %117 = call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #3
  %118 = icmp eq i64 %115, %117
  br i1 %118, label %119, label %123

119:                                              ; preds = %113
  %120 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 2
  %121 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %120, ptr noundef @.str.29)
  %122 = call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %25, i32 noundef 7)
  store i32 %122, ptr %10, align 4
  store i32 1, ptr %22, align 4
  br label %240

123:                                              ; preds = %113
  br label %124

124:                                              ; preds = %123, %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !11
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %164

127:                                              ; preds = %124
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.RtAudio::StreamParameters", ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 4, !tbaa !35
  store i32 %130, ptr %23, align 4, !tbaa !11
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %131

131:                                              ; preds = %150, %127
  %132 = load i32, ptr %20, align 4, !tbaa !11
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 5
  %135 = call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %134) #3
  %136 = icmp ult i64 %133, %135
  br i1 %136, label %137, label %153

137:                                              ; preds = %131
  %138 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 5
  %139 = load i32, ptr %20, align 4, !tbaa !11
  %140 = zext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN7RtAudio10DeviceInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %140) #3
  %142 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 8, !tbaa !39
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.RtAudio::StreamParameters", ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 4, !tbaa !45
  %147 = icmp eq i32 %143, %146
  br i1 %147, label %148, label %149

148:                                              ; preds = %137
  br label %153

149:                                              ; preds = %137
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %20, align 4, !tbaa !11
  %152 = add i32 %151, 1
  store i32 %152, ptr %20, align 4, !tbaa !11
  br label %131, !llvm.loop !48

153:                                              ; preds = %148, %131
  %154 = load i32, ptr %20, align 4, !tbaa !11
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 5
  %157 = call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #3
  %158 = icmp eq i64 %155, %157
  br i1 %158, label %159, label %163

159:                                              ; preds = %153
  %160 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 2
  %161 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %160, ptr noundef @.str.30)
  %162 = call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %25, i32 noundef 7)
  store i32 %162, ptr %10, align 4
  store i32 1, ptr %22, align 4
  br label %239

163:                                              ; preds = %153
  br label %164

164:                                              ; preds = %163, %124
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #3
  %165 = load i32, ptr %21, align 4, !tbaa !11
  %166 = icmp ugt i32 %165, 0
  br i1 %166, label %167, label %191

167:                                              ; preds = %164
  %168 = load ptr, ptr %12, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.RtAudio::StreamParameters", ptr %168, i32 0, i32 0
  %170 = load i32, ptr %169, align 4, !tbaa !45
  %171 = load i32, ptr %21, align 4, !tbaa !11
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.RtAudio::StreamParameters", ptr %172, i32 0, i32 2
  %174 = load i32, ptr %173, align 4, !tbaa !49
  %175 = load i32, ptr %15, align 4, !tbaa !11
  %176 = load i64, ptr %14, align 8, !tbaa !9
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = load ptr, ptr %19, align 8, !tbaa !5
  %179 = load ptr, ptr %25, align 8, !tbaa !37
  %180 = getelementptr inbounds ptr, ptr %179, i64 12
  %181 = load ptr, ptr %180, align 8
  %182 = call noundef zeroext i1 %181(ptr noundef nonnull align 8 dereferenceable(888) %25, i32 noundef %170, i32 noundef 0, i32 noundef %171, i32 noundef %174, i32 noundef %175, i64 noundef %176, ptr noundef %177, ptr noundef %178)
  %183 = zext i1 %182 to i8
  store i8 %183, ptr %24, align 1, !tbaa !50
  %184 = load i8, ptr %24, align 1, !tbaa !50, !range !51, !noundef !52
  %185 = trunc i8 %184 to i1
  %186 = zext i1 %185 to i32
  %187 = icmp eq i32 %186, 0
  br i1 %187, label %188, label %190

188:                                              ; preds = %167
  %189 = call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %25, i32 noundef 10)
  store i32 %189, ptr %10, align 4
  store i32 1, ptr %22, align 4
  br label %238

190:                                              ; preds = %167
  br label %191

191:                                              ; preds = %190, %164
  %192 = load i32, ptr %23, align 4, !tbaa !11
  %193 = icmp ugt i32 %192, 0
  br i1 %193, label %194, label %218

194:                                              ; preds = %191
  %195 = load ptr, ptr %13, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.RtAudio::StreamParameters", ptr %195, i32 0, i32 0
  %197 = load i32, ptr %196, align 4, !tbaa !45
  %198 = load i32, ptr %23, align 4, !tbaa !11
  %199 = load ptr, ptr %13, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.RtAudio::StreamParameters", ptr %199, i32 0, i32 2
  %201 = load i32, ptr %200, align 4, !tbaa !49
  %202 = load i32, ptr %15, align 4, !tbaa !11
  %203 = load i64, ptr %14, align 8, !tbaa !9
  %204 = load ptr, ptr %16, align 8, !tbaa !5
  %205 = load ptr, ptr %19, align 8, !tbaa !5
  %206 = load ptr, ptr %25, align 8, !tbaa !37
  %207 = getelementptr inbounds ptr, ptr %206, i64 12
  %208 = load ptr, ptr %207, align 8
  %209 = call noundef zeroext i1 %208(ptr noundef nonnull align 8 dereferenceable(888) %25, i32 noundef %197, i32 noundef 1, i32 noundef %198, i32 noundef %201, i32 noundef %202, i64 noundef %203, ptr noundef %204, ptr noundef %205)
  %210 = zext i1 %209 to i8
  store i8 %210, ptr %24, align 1, !tbaa !50
  %211 = load i8, ptr %24, align 1, !tbaa !50, !range !51, !noundef !52
  %212 = trunc i8 %211 to i1
  %213 = zext i1 %212 to i32
  %214 = icmp eq i32 %213, 0
  br i1 %214, label %215, label %217

215:                                              ; preds = %194
  %216 = call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %25, i32 noundef 10)
  store i32 %216, ptr %10, align 4
  store i32 1, ptr %22, align 4
  br label %238

217:                                              ; preds = %194
  br label %218

218:                                              ; preds = %217, %191
  %219 = load ptr, ptr %17, align 8, !tbaa !5
  %220 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 7
  %221 = getelementptr inbounds %"struct.RtApi::RtApiStream", ptr %220, i32 0, i32 20
  %222 = getelementptr inbounds %struct.CallbackInfo, ptr %221, i32 0, i32 2
  store ptr %219, ptr %222, align 8, !tbaa !53
  %223 = load ptr, ptr %18, align 8, !tbaa !5
  %224 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 7
  %225 = getelementptr inbounds %"struct.RtApi::RtApiStream", ptr %224, i32 0, i32 20
  %226 = getelementptr inbounds %struct.CallbackInfo, ptr %225, i32 0, i32 3
  store ptr %223, ptr %226, align 8, !tbaa !54
  %227 = load ptr, ptr %19, align 8, !tbaa !5
  %228 = icmp ne ptr %227, null
  br i1 %228, label %229, label %235

229:                                              ; preds = %218
  %230 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 7
  %231 = getelementptr inbounds %"struct.RtApi::RtApiStream", ptr %230, i32 0, i32 12
  %232 = load i32, ptr %231, align 8, !tbaa !55
  %233 = load ptr, ptr %19, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.RtAudio::StreamOptions", ptr %233, i32 0, i32 1
  store i32 %232, ptr %234, align 4, !tbaa !56
  br label %235

235:                                              ; preds = %229, %218
  %236 = getelementptr inbounds %class.RtApi, ptr %25, i32 0, i32 7
  %237 = getelementptr inbounds %"struct.RtApi::RtApiStream", ptr %236, i32 0, i32 3
  store i32 0, ptr %237, align 4, !tbaa !13
  store i32 0, ptr %10, align 4
  store i32 1, ptr %22, align 4
  br label %238

238:                                              ; preds = %235, %215, %188
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #3
  br label %239

239:                                              ; preds = %238, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br label %240

240:                                              ; preds = %239, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %241

241:                                              ; preds = %240, %72, %64, %54, %42, %30
  %242 = load i32, ptr %10, align 4
  ret i32 %242
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5RtApi11formatBytesEm(ptr noundef nonnull align 8 dereferenceable(888), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN7RtAudio10DeviceInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 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 = { 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !32, i64 508}
!14 = !{!"_ZTS5RtApi", !15, i64 8, !21, i64 384, !23, i64 416, !25, i64 448, !26, i64 456, !12, i64 480, !30, i64 488}
!15 = !{!"_ZTSNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8}
!16 = !{!"_ZTSSo"}
!17 = !{!"_ZTSNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE", !18, i64 0, !20, i64 64, !21, i64 72}
!18 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !19, i64 56}
!19 = !{!"_ZTSSt6locale", !6, i64 0}
!20 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !10, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"_ZTSSt8functionIFv16RtAudioErrorTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !24, i64 0, !6, i64 24}
!24 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN7RtAudio10DeviceInfoESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN7RtAudio10DeviceInfoESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN7RtAudio10DeviceInfoESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSN5RtApi11RtApiStreamE", !7, i64 0, !6, i64 8, !31, i64 16, !32, i64 20, !7, i64 24, !6, i64 40, !7, i64 48, !25, i64 50, !7, i64 51, !7, i64 53, !12, i64 56, !12, i64 60, !12, i64 64, !7, i64 68, !7, i64 76, !7, i64 84, !7, i64 96, !10, i64 112, !7, i64 120, !7, i64 136, !33, i64 176, !7, i64 232, !34, i64 392}
!31 = !{!"_ZTSN5RtApi10StreamModeE", !7, i64 0}
!32 = !{!"_ZTSN5RtApi11StreamStateE", !7, i64 0}
!33 = !{!"_ZTS12CallbackInfo", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !25, i64 40, !25, i64 41, !12, i64 44, !25, i64 48}
!34 = !{!"double", !7, i64 0}
!35 = !{!36, !12, i64 4}
!36 = !{!"_ZTSN7RtAudio16StreamParametersE", !12, i64 0, !12, i64 4, !12, i64 8}
!37 = !{!38, !38, i64 0}
!38 = !{!"vtable pointer", !8, i64 0}
!39 = !{!40, !12, i64 0}
!40 = !{!"_ZTSN7RtAudio10DeviceInfoE", !12, i64 0, !21, i64 8, !12, i64 40, !12, i64 44, !12, i64 48, !25, i64 52, !25, i64 53, !41, i64 56, !12, i64 80, !12, i64 84, !10, i64 88}
!41 = !{!"_ZTSSt6vectorIjSaIjEE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!45 = !{!36, !12, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = distinct !{!48, !47}
!49 = !{!36, !12, i64 8}
!50 = !{!25, !25, i64 0}
!51 = !{i8 0, i8 2}
!52 = !{}
!53 = !{!14, !6, i64 680}
!54 = !{!14, !6, i64 688}
!55 = !{!14, !12, i64 552}
!56 = !{!57, !12, i64 4}
!57 = !{!"_ZTSN7RtAudio13StreamOptionsE", !12, i64 0, !12, i64 4, !21, i64 8, !12, i64 40}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.24 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5RtApi10openStreamEPN7RtAudio16StreamParametersES2_mjPjPFiPvS4_jdjS4_ES4_PNS0_13StreamOptionsE(ptr noundef nonnull align 8 dereferenceable(888) %0, ptr noundef readonly %1, ptr noundef readonly %2, i64 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 align 2 {
  %10 = getelementptr inbounds i8, ptr %0, i64 508
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %.not = icmp eq i32 %11, -50
  br i1 %.not, label %16, label %12

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 384
  %14 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.24)
  %15 = tail call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %0, i32 noundef 8)
  br label %124

16:                                               ; preds = %9
  tail call void @_ZN5RtApi15clearStreamInfoEv(ptr noundef nonnull align 8 dereferenceable(888) %0)
  %.not56 = icmp eq ptr %1, null
  br i1 %.not56, label %25, label %17

17:                                               ; preds = %16
  %18 = getelementptr inbounds i8, ptr %1, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !32
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %.thread75

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %0, i64 384
  %23 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull @.str.25)
  %24 = tail call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %0, i32 noundef 7)
  br label %124

25:                                               ; preds = %16
  %.not57 = icmp eq ptr %2, null
  br i1 %.not57, label %34, label %26

.thread75:                                        ; preds = %17
  %.not5776 = icmp eq ptr %2, null
  br i1 %.not5776, label %.thread, label %26

26:                                               ; preds = %.thread75, %25
  %27 = getelementptr inbounds i8, ptr %2, i64 4
  %28 = load i32, ptr %27, align 4, !tbaa !32
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %.thread

30:                                               ; preds = %26
  %31 = getelementptr inbounds i8, ptr %0, i64 384
  %32 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull @.str.26)
  %33 = tail call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %0, i32 noundef 7)
  br label %124

34:                                               ; preds = %25
  %35 = getelementptr inbounds i8, ptr %0, i64 384
  %36 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull @.str.27)
  %37 = tail call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %0, i32 noundef 7)
  br label %124

.thread:                                          ; preds = %.thread75, %26
  %.not5777 = phi i1 [ false, %26 ], [ true, %.thread75 ]
  %38 = tail call noundef i32 @_ZN5RtApi11formatBytesEm(ptr noundef nonnull align 8 dereferenceable(888) %0, i64 noundef %3)
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %44

40:                                               ; preds = %.thread
  %41 = getelementptr inbounds i8, ptr %0, i64 384
  %42 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull @.str.28)
  %43 = tail call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %0, i32 noundef 7)
  br label %124

44:                                               ; preds = %.thread
  %45 = getelementptr inbounds i8, ptr %0, i64 456
  %46 = tail call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #2
  %47 = icmp eq i64 %46, 0
  br i1 %47, label %48, label %52

48:                                               ; preds = %44
  %49 = load ptr, ptr %0, align 8, !tbaa !34
  %50 = getelementptr inbounds i8, ptr %49, i64 88
  %51 = load ptr, ptr %50, align 8
  tail call void %51(ptr noundef nonnull align 8 dereferenceable(888) %0)
  br label %52

52:                                               ; preds = %48, %44
  br i1 %.not56, label %73, label %53

53:                                               ; preds = %52
  %54 = getelementptr inbounds i8, ptr %1, i64 4
  %55 = load i32, ptr %54, align 4, !tbaa !32
  %56 = tail call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #2
  %.not73 = icmp eq i64 %56, 0
  br i1 %.not73, label %._crit_edge, label %.lr.ph

57:                                               ; preds = %.lr.ph
  %58 = add i32 %.04663, 1
  %59 = zext i32 %58 to i64
  %60 = tail call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #2
  %61 = icmp ugt i64 %60, %59
  br i1 %61, label %.lr.ph, label %._crit_edge, !llvm.loop !36

.lr.ph:                                           ; preds = %53, %57
  %62 = phi i64 [ %59, %57 ], [ 0, %53 ]
  %.04663 = phi i32 [ %58, %57 ], [ 0, %53 ]
  %63 = tail call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN7RtAudio10DeviceInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %62) #2
  %64 = load i32, ptr %63, align 8, !tbaa !38
  %65 = load i32, ptr %1, align 4, !tbaa !44
  %66 = icmp eq i32 %64, %65
  br i1 %66, label %._crit_edge, label %57

._crit_edge:                                      ; preds = %57, %.lr.ph, %53
  %.lcssa62 = phi i64 [ 0, %53 ], [ %62, %.lr.ph ], [ %59, %57 ]
  %67 = tail call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #2
  %68 = icmp eq i64 %67, %.lcssa62
  br i1 %68, label %69, label %73

69:                                               ; preds = %._crit_edge
  %70 = getelementptr inbounds i8, ptr %0, i64 384
  %71 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %70, ptr noundef nonnull @.str.29)
  %72 = tail call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %0, i32 noundef 7)
  br label %124

73:                                               ; preds = %._crit_edge, %52
  %.045 = phi i32 [ %55, %._crit_edge ], [ 0, %52 ]
  br i1 %.not5777, label %94, label %74

74:                                               ; preds = %73
  %75 = getelementptr inbounds i8, ptr %2, i64 4
  %76 = load i32, ptr %75, align 4, !tbaa !32
  %77 = tail call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #2
  %.not74 = icmp eq i64 %77, 0
  br i1 %.not74, label %._crit_edge69, label %.lr.ph68

78:                                               ; preds = %.lr.ph68
  %79 = add i32 %.166, 1
  %80 = zext i32 %79 to i64
  %81 = tail call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #2
  %82 = icmp ugt i64 %81, %80
  br i1 %82, label %.lr.ph68, label %._crit_edge69, !llvm.loop !45

.lr.ph68:                                         ; preds = %74, %78
  %83 = phi i64 [ %80, %78 ], [ 0, %74 ]
  %.166 = phi i32 [ %79, %78 ], [ 0, %74 ]
  %84 = tail call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN7RtAudio10DeviceInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %83) #2
  %85 = load i32, ptr %84, align 8, !tbaa !38
  %86 = load i32, ptr %2, align 4, !tbaa !44
  %87 = icmp eq i32 %85, %86
  br i1 %87, label %._crit_edge69, label %78

._crit_edge69:                                    ; preds = %78, %.lr.ph68, %74
  %.lcssa = phi i64 [ 0, %74 ], [ %83, %.lr.ph68 ], [ %80, %78 ]
  %88 = tail call noundef i64 @_ZNKSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #2
  %89 = icmp eq i64 %88, %.lcssa
  br i1 %89, label %90, label %94

90:                                               ; preds = %._crit_edge69
  %91 = getelementptr inbounds i8, ptr %0, i64 384
  %92 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %91, ptr noundef nonnull @.str.30)
  %93 = tail call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %0, i32 noundef 7)
  br label %124

94:                                               ; preds = %._crit_edge69, %73
  %.0 = phi i32 [ %76, %._crit_edge69 ], [ 0, %73 ]
  %.not58 = icmp eq i32 %.045, 0
  br i1 %.not58, label %105, label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %1, align 4, !tbaa !44
  %97 = getelementptr inbounds i8, ptr %1, i64 8
  %98 = load i32, ptr %97, align 4, !tbaa !46
  %99 = load ptr, ptr %0, align 8, !tbaa !34
  %100 = getelementptr inbounds i8, ptr %99, i64 96
  %101 = load ptr, ptr %100, align 8
  %102 = tail call noundef zeroext i1 %101(ptr noundef nonnull align 8 dereferenceable(888) %0, i32 noundef %96, i32 noundef 0, i32 noundef %.045, i32 noundef %98, i32 noundef %4, i64 noundef %3, ptr noundef %5, ptr noundef %8)
  br i1 %102, label %105, label %103

103:                                              ; preds = %95
  %104 = tail call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %0, i32 noundef 10)
  br label %124

105:                                              ; preds = %95, %94
  %.not59 = icmp eq i32 %.0, 0
  br i1 %.not59, label %116, label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %2, align 4, !tbaa !44
  %108 = getelementptr inbounds i8, ptr %2, i64 8
  %109 = load i32, ptr %108, align 4, !tbaa !46
  %110 = load ptr, ptr %0, align 8, !tbaa !34
  %111 = getelementptr inbounds i8, ptr %110, i64 96
  %112 = load ptr, ptr %111, align 8
  %113 = tail call noundef zeroext i1 %112(ptr noundef nonnull align 8 dereferenceable(888) %0, i32 noundef %107, i32 noundef 1, i32 noundef %.0, i32 noundef %109, i32 noundef %4, i64 noundef %3, ptr noundef %5, ptr noundef %8)
  br i1 %113, label %116, label %114

114:                                              ; preds = %106
  %115 = tail call noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888) %0, i32 noundef 10)
  br label %124

116:                                              ; preds = %106, %105
  %117 = getelementptr inbounds i8, ptr %0, i64 680
  store ptr %6, ptr %117, align 8, !tbaa !47
  %118 = getelementptr inbounds i8, ptr %0, i64 688
  store ptr %7, ptr %118, align 8, !tbaa !48
  %.not60 = icmp eq ptr %8, null
  br i1 %.not60, label %123, label %119

119:                                              ; preds = %116
  %120 = getelementptr inbounds i8, ptr %0, i64 552
  %121 = load i32, ptr %120, align 8, !tbaa !49
  %122 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 %121, ptr %122, align 4, !tbaa !50
  br label %123

123:                                              ; preds = %119, %116
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %69, %103, %114, %123, %90, %40, %34, %30, %21, %12
  %.3 = phi i32 [ %15, %12 ], [ %24, %21 ], [ %33, %30 ], [ %37, %34 ], [ %43, %40 ], [ %72, %69 ], [ %93, %90 ], [ %104, %103 ], [ %115, %114 ], [ 0, %123 ]
  ret i32 %.3
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5RtApi5errorE16RtAudioErrorType(ptr noundef nonnull align 8 dereferenceable(888), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5RtApi11formatBytesEm(ptr noundef nonnull align 8 dereferenceable(888), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN7RtAudio10DeviceInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_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 = { 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, !29, i64 508}
!6 = !{!"_ZTS5RtApi", !7, i64 8, !16, i64 384, !19, i64 416, !21, i64 448, !22, i64 456, !26, i64 480, !27, i64 488}
!7 = !{!"_ZTSNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE", !8, i64 0, !9, i64 8}
!8 = !{!"_ZTSSo"}
!9 = !{!"_ZTSNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE", !10, i64 0, !15, i64 64, !16, i64 72}
!10 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !14, i64 56}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt6locale", !11, i64 0}
!15 = !{!"_ZTSSt13_Ios_Openmode", !12, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !12, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!18 = !{!"long", !12, i64 0}
!19 = !{!"_ZTSSt8functionIFv16RtAudioErrorTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !20, i64 0, !11, i64 24}
!20 = !{!"_ZTSSt14_Function_base", !12, i64 0, !11, i64 16}
!21 = !{!"bool", !12, i64 0}
!22 = !{!"_ZTSSt6vectorIN7RtAudio10DeviceInfoESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN7RtAudio10DeviceInfoESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN7RtAudio10DeviceInfoESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN7RtAudio10DeviceInfoESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!26 = !{!"int", !12, i64 0}
!27 = !{!"_ZTSN5RtApi11RtApiStreamE", !12, i64 0, !11, i64 8, !28, i64 16, !29, i64 20, !12, i64 24, !11, i64 40, !12, i64 48, !21, i64 50, !12, i64 51, !12, i64 53, !26, i64 56, !26, i64 60, !26, i64 64, !12, i64 68, !12, i64 76, !12, i64 84, !12, i64 96, !18, i64 112, !12, i64 120, !12, i64 136, !30, i64 176, !12, i64 232, !31, i64 392}
!28 = !{!"_ZTSN5RtApi10StreamModeE", !12, i64 0}
!29 = !{!"_ZTSN5RtApi11StreamStateE", !12, i64 0}
!30 = !{!"_ZTS12CallbackInfo", !11, i64 0, !18, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !21, i64 40, !21, i64 41, !26, i64 44, !21, i64 48}
!31 = !{!"double", !12, i64 0}
!32 = !{!33, !26, i64 4}
!33 = !{!"_ZTSN7RtAudio16StreamParametersE", !26, i64 0, !26, i64 4, !26, i64 8}
!34 = !{!35, !35, i64 0}
!35 = !{!"vtable pointer", !13, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!39, !26, i64 0}
!39 = !{!"_ZTSN7RtAudio10DeviceInfoE", !26, i64 0, !16, i64 8, !26, i64 40, !26, i64 44, !26, i64 48, !21, i64 52, !21, i64 53, !40, i64 56, !26, i64 80, !26, i64 84, !18, i64 88}
!40 = !{!"_ZTSSt6vectorIjSaIjEE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!44 = !{!33, !26, i64 0}
!45 = distinct !{!45, !37}
!46 = !{!33, !26, i64 8}
!47 = !{!6, !11, i64 680}
!48 = !{!6, !11, i64 688}
!49 = !{!6, !26, i64 552}
!50 = !{!51, !26, i64 4}
!51 = !{!"_ZTSN7RtAudio13StreamOptionsE", !26, i64 0, !26, i64 4, !16, i64 8, !26, i64 40}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass