; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode (juce_audio_utils)

; 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.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"struct.juce::AudioDeviceSetupDetails" = type { ptr, i32, i32, i32, i32, i8 }
%"class.juce::StringArray" = type { %"class.juce::Array.43" }
%"class.juce::Array.43" = type { %"class.juce::ArrayAllocationBase.44", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.44" = type <{ %"class.juce::HeapBlock.45", i32, [4 x i8] }>
%"class.juce::HeapBlock.45" = type { ptr }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::AudioDeviceSelectorComponent" = type { %"class.juce::Component.base", %"class.juce::ComboBox::Listener", %"class.juce::ChangeListener", %"class.juce::Button::Listener", %"class.juce::Timer", ptr, %"class.juce::ScopedPointer.14", %"class.juce::ScopedPointer.15", %"class.juce::ScopedPointer.16", %"class.juce::String", i32, i32, i32, i32, i32, i8, i8, %"class.juce::ScopedPointer.17", %"class.juce::ScopedPointer.14", %"class.juce::ScopedPointer.15", %"class.juce::ScopedPointer.15", %"class.juce::ScopedPointer.18" }
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.0", %"class.juce::Array", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.1", %"class.juce::ScopedPointer.2", %"class.juce::ScopedPointer.3", %"class.juce::ListenerList", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.0" = type { ptr }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::MouseCursor" = type { ptr }
%"class.juce::ScopedPointer.1" = type { ptr }
%"class.juce::ScopedPointer.2" = type { ptr }
%"class.juce::ScopedPointer.3" = type { ptr }
%"class.juce::ListenerList" = type { %"class.juce::Array.4" }
%"class.juce::Array.4" = type { %"class.juce::ArrayAllocationBase.5", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.5" = type <{ %"class.juce::HeapBlock.6", i32, [4 x i8] }>
%"class.juce::HeapBlock.6" = type { ptr }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.9" }
%"class.juce::Array.9" = type { %"class.juce::ArrayAllocationBase.10", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.10" = type <{ %"class.juce::HeapBlock.11", i32, [4 x i8] }>
%"class.juce::HeapBlock.11" = type { ptr }
%"class.juce::WeakReference<juce::Component>::Master" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%union.anon = type { i32 }
%"class.juce::ComboBox::Listener" = type { ptr }
%"class.juce::ChangeListener" = type { ptr }
%"class.juce::Button::Listener" = type { ptr }
%"class.juce::Timer" = type { ptr, i32, i32, ptr, ptr }
%"class.juce::ScopedPointer.16" = type { ptr }
%"class.juce::ScopedPointer.17" = type { ptr }
%"class.juce::ScopedPointer.14" = type { ptr }
%"class.juce::ScopedPointer.15" = type { ptr }
%"class.juce::ScopedPointer.18" = type { ptr }

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

declare noundef nonnull align 8 dereferenceable(20) ptr @_ZN4juce18AudioDeviceManager23getAvailableDeviceTypesEv(ptr noundef nonnull align 8 dereferenceable(912)) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

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

declare void @_ZN4juce8ComboBox7addItemERKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(380), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

declare void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce28AudioDeviceSelectorComponent17updateAllControlsEv(ptr noundef nonnull align 8 dereferenceable(360) %0) #6 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.juce::String", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.juce::String", align 8
  %7 = alloca i1, align 1
  %8 = alloca i1, align 1
  %9 = alloca %"class.juce::String", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.juce::AudioDeviceSetupDetails", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.juce::StringArray", align 8
  %14 = alloca %"class.juce::String", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.juce::StringRef", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8
  %19 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 6
  %20 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %32

22:                                               ; preds = %1
  %23 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 6
  %24 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  %25 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 5
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  call void @_ZNK4juce18AudioDeviceManager25getCurrentAudioDeviceTypeEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %3, ptr noundef nonnull align 8 dereferenceable(912) %26)
  invoke void @_ZN4juce8ComboBox7setTextERKNS_6StringENS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380) %24, ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0)
          to label %27 unwind label %28

27:                                               ; preds = %22
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %32

28:                                               ; preds = %22
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %4, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %5, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %194

32:                                               ; preds = %27, %1
  %33 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 8
  %34 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  %35 = icmp eq ptr %34, null
  store i1 false, ptr %7, align 1
  store i1 false, ptr %8, align 1
  br i1 %35, label %41, label %36

36:                                               ; preds = %32
  %37 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  store i1 true, ptr %7, align 1
  %38 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 5
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  call void @_ZNK4juce18AudioDeviceManager25getCurrentAudioDeviceTypeEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %6, ptr noundef nonnull align 8 dereferenceable(912) %39)
  store i1 true, ptr %8, align 1
  %40 = call noundef zeroext i1 @_ZN4juceneERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br label %41

41:                                               ; preds = %36, %32
  %42 = phi i1 [ true, %32 ], [ %40, %36 ]
  %43 = load i1, ptr %8, align 1
  br i1 %43, label %44, label %45

44:                                               ; preds = %41
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br label %45

45:                                               ; preds = %44, %41
  %46 = load i1, ptr %7, align 1
  br i1 %46, label %47, label %48

47:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %48

48:                                               ; preds = %47, %45
  br i1 %42, label %49, label %110

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %50 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 5
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  call void @_ZNK4juce18AudioDeviceManager25getCurrentAudioDeviceTypeEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %9, ptr noundef nonnull align 8 dereferenceable(912) %51)
  %52 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 9
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  %54 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 8
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %56 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 5
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZN4juce18AudioDeviceManager23getAvailableDeviceTypesEv(ptr noundef nonnull align 8 dereferenceable(912) %57)
  %59 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 6
  %60 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %63

62:                                               ; preds = %49
  br label %68

63:                                               ; preds = %49
  %64 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 6
  %65 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %64) #8
  %66 = call noundef i32 @_ZNK4juce8ComboBox13getSelectedIdEv(ptr noundef nonnull align 8 dereferenceable(380) %65) #8
  %67 = sub nsw i32 %66, 1
  br label %68

68:                                               ; preds = %63, %62
  %69 = phi i32 [ 0, %62 ], [ %67, %63 ]
  %70 = call noundef ptr @_ZNK4juce10OwnedArrayINS_17AudioIODeviceTypeENS_20DummyCriticalSectionEEixEi(ptr noundef nonnull align 8 dereferenceable(20) %58, i32 noundef %69) #8
  store ptr %70, ptr %10, align 8, !tbaa !5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %109

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #8
  %74 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 5
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds %"struct.juce::AudioDeviceSetupDetails", ptr %11, i32 0, i32 0
  store ptr %75, ptr %76, align 8, !tbaa !47
  %77 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 13
  %78 = load i32, ptr %77, align 4, !tbaa !49
  %79 = getelementptr inbounds %"struct.juce::AudioDeviceSetupDetails", ptr %11, i32 0, i32 1
  store i32 %78, ptr %79, align 8, !tbaa !50
  %80 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 14
  %81 = load i32, ptr %80, align 8, !tbaa !51
  %82 = getelementptr inbounds %"struct.juce::AudioDeviceSetupDetails", ptr %11, i32 0, i32 2
  store i32 %81, ptr %82, align 4, !tbaa !52
  %83 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 11
  %84 = load i32, ptr %83, align 4, !tbaa !53
  %85 = getelementptr inbounds %"struct.juce::AudioDeviceSetupDetails", ptr %11, i32 0, i32 3
  store i32 %84, ptr %85, align 8, !tbaa !54
  %86 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 12
  %87 = load i32, ptr %86, align 8, !tbaa !55
  %88 = getelementptr inbounds %"struct.juce::AudioDeviceSetupDetails", ptr %11, i32 0, i32 4
  store i32 %87, ptr %88, align 4, !tbaa !56
  %89 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 15
  %90 = load i8, ptr %89, align 4, !tbaa !57, !range !58, !noundef !59
  %91 = trunc i8 %90 to i1
  %92 = getelementptr inbounds %"struct.juce::AudioDeviceSetupDetails", ptr %11, i32 0, i32 5
  %93 = zext i1 %91 to i8
  store i8 %93, ptr %92, align 8, !tbaa !60
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %94 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 400) #9
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 16
  %97 = load i8, ptr %96, align 1, !tbaa !61, !range !58, !noundef !59
  %98 = trunc i8 %97 to i1
  invoke void @_ZN4juce24AudioDeviceSettingsPanelC2ERNS_17AudioIODeviceTypeERNS_23AudioDeviceSetupDetailsEb(ptr noundef nonnull align 8 dereferenceable(400) %94, ptr noundef nonnull align 8 dereferenceable(40) %95, ptr noundef nonnull align 8 dereferenceable(32) %11, i1 noundef zeroext %98)
          to label %99 unwind label %105

99:                                               ; preds = %73
  store ptr %94, ptr %12, align 8, !tbaa !5
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 8
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef %100)
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %18, ptr noundef %103, i32 noundef -1)
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN4juce24AudioDeviceSettingsPanel17updateAllControlsEv(ptr noundef nonnull align 8 dereferenceable(400) %104)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  br label %109

105:                                              ; preds = %73
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %4, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %94, i64 noundef 400) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %194

109:                                              ; preds = %99, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %110

110:                                              ; preds = %109, %48
  %111 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 17
  %112 = call noundef ptr @_ZNK4juce13ScopedPointerINS_28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBoxEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %111) #8
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %121

114:                                              ; preds = %110
  %115 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 17
  %116 = call noundef ptr @_ZNK4juce13ScopedPointerINS_28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %115) #8
  call void @_ZN4juce28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBox13updateDevicesEv(ptr noundef nonnull align 8 dereferenceable(344) %116)
  %117 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 17
  %118 = call noundef ptr @_ZNK4juce13ScopedPointerINS_28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %117) #8
  call void @_ZN4juce7ListBox13updateContentEv(ptr noundef nonnull align 8 dereferenceable(296) %118)
  %119 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 17
  %120 = call noundef ptr @_ZNK4juce13ScopedPointerINS_28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %119) #8
  call void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %120)
  br label %121

121:                                              ; preds = %114, %110
  %122 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 18
  %123 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %122) #8
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %190

125:                                              ; preds = %121
  %126 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 18
  %127 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %126) #8
  call void @_ZN4juce8ComboBox5clearENS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380) %127, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  call void @_ZN4juce10MidiOutput10getDevicesEv(ptr dead_on_unwind writable sret(%"class.juce::StringArray") align 8 %13)
  %128 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 18
  %129 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %128) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  invoke void @_ZN4juceL17getNoDeviceStringEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %14)
          to label %130 unwind label %140

130:                                              ; preds = %125
  invoke void @_ZN4juce8ComboBox7addItemERKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(380) %129, ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef -1)
          to label %131 unwind label %144

131:                                              ; preds = %130
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %132 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 18
  %133 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %132) #8
  invoke void @_ZN4juce8ComboBox12addSeparatorEv(ptr noundef nonnull align 8 dereferenceable(380) %133)
          to label %134 unwind label %149

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !62
  br label %135

135:                                              ; preds = %161, %134
  %136 = load i32, ptr %15, align 4, !tbaa !62
  %137 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %153, label %139

139:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %168

140:                                              ; preds = %125
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %4, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %5, align 4
  br label %148

144:                                              ; preds = %130
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %4, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %5, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br label %148

148:                                              ; preds = %144, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %189

149:                                              ; preds = %131
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %4, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %5, align 4
  br label %189

153:                                              ; preds = %135
  %154 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 18
  %155 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %154) #8
  %156 = load i32, ptr %15, align 4, !tbaa !62
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef %156) #8
  %158 = load i32, ptr %15, align 4, !tbaa !62
  %159 = add nsw i32 %158, 1
  invoke void @_ZN4juce8ComboBox7addItemERKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(380) %155, ptr noundef nonnull align 8 dereferenceable(8) %157, i32 noundef %159)
          to label %160 unwind label %164

160:                                              ; preds = %153
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %15, align 4, !tbaa !62
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %15, align 4, !tbaa !62
  br label %135, !llvm.loop !63

164:                                              ; preds = %153
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %4, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %189

168:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 -1, ptr %16, align 4, !tbaa !62
  %169 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 5
  %170 = load ptr, ptr %169, align 8, !tbaa !9
  %171 = call noundef ptr @_ZNK4juce18AudioDeviceManager20getDefaultMidiOutputEv(ptr noundef nonnull align 8 dereferenceable(912) %170) #8
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %184

173:                                              ; preds = %168
  %174 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 5
  %175 = load ptr, ptr %174, align 8, !tbaa !9
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce18AudioDeviceManager24getDefaultMidiOutputNameEv(ptr noundef nonnull align 8 dereferenceable(912) %175) #8
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %176) #8
  %177 = invoke noundef i32 @_ZNK4juce11StringArray7indexOfENS_9StringRefEbi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %17, i1 noundef zeroext false, i32 noundef 0)
          to label %178 unwind label %180

178:                                              ; preds = %173
  %179 = add nsw i32 1, %177
  store i32 %179, ptr %16, align 4, !tbaa !62
  br label %184

180:                                              ; preds = %184, %173
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %4, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %189

184:                                              ; preds = %178, %168
  %185 = getelementptr inbounds %"class.juce::AudioDeviceSelectorComponent", ptr %18, i32 0, i32 18
  %186 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %185) #8
  %187 = load i32, ptr %16, align 4, !tbaa !62
  invoke void @_ZN4juce8ComboBox13setSelectedIdEiNS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380) %186, i32 noundef %187, i32 noundef 0)
          to label %188 unwind label %180

188:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  br label %190

189:                                              ; preds = %180, %164, %149, %148
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  br label %194

190:                                              ; preds = %188, %121
  %191 = load ptr, ptr %18, align 8, !tbaa !65
  %192 = getelementptr inbounds ptr, ptr %191, i64 34
  %193 = load ptr, ptr %192, align 8
  call void %193(ptr noundef nonnull align 8 dereferenceable(360) %18)
  ret void

194:                                              ; preds = %189, %105, %28
  %195 = load ptr, ptr %4, align 8
  %196 = load i32, ptr %5, align 4
  %197 = insertvalue { ptr, i32 } poison, ptr %195, 0
  %198 = insertvalue { ptr, i32 } %197, i32 %196, 1
  resume { ptr, i32 } %198
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce10OwnedArrayINS_17AudioIODeviceTypeENS_20DummyCriticalSectionEEixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #5 align 2

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce8ComboBox13getSelectedIdEv(ptr noundef nonnull align 8 dereferenceable(380)) #3

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juceL17getNoDeviceStringEv(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8) #6

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

declare void @_ZN4juce8ComboBox7setTextERKNS_6StringENS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce18AudioDeviceManager25getCurrentAudioDeviceTypeEv(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(912)) #7 align 2

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juceneERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce24AudioDeviceSettingsPanelC2ERNS_17AudioIODeviceTypeERNS_23AudioDeviceSetupDetailsEb(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce24AudioDeviceSettingsPanel17updateAllControlsEv(ptr noundef nonnull align 8 dereferenceable(400)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBox13updateDevicesEv(ptr noundef nonnull align 8 dereferenceable(344)) #6 align 2

declare void @_ZN4juce7ListBox13updateContentEv(ptr noundef nonnull align 8 dereferenceable(296)) #1

declare void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197)) #1

declare void @_ZN4juce8ComboBox5clearENS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380), i32 noundef) #1

declare void @_ZN4juce10MidiOutput10getDevicesEv(ptr dead_on_unwind writable sret(%"class.juce::StringArray") align 8) #1

declare void @_ZN4juce8ComboBox12addSeparatorEv(ptr noundef nonnull align 8 dereferenceable(380)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #3

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

declare noundef i32 @_ZNK4juce11StringArray7indexOfENS_9StringRefEbi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i1 noundef zeroext, i32 noundef) #1

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

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

declare void @_ZN4juce8ComboBox13setSelectedIdEiNS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380), i32 noundef, i32 noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nobuiltin allocsize(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 "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 = { nobuiltin 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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, !6, i64 256}
!10 = !{!"_ZTSN4juce28AudioDeviceSelectorComponentE", !11, i64 0, !37, i64 200, !38, i64 208, !39, i64 216, !40, i64 224, !6, i64 256, !41, i64 264, !42, i64 272, !43, i64 280, !13, i64 288, !17, i64 296, !17, i64 300, !17, i64 304, !17, i64 308, !17, i64 312, !44, i64 316, !44, i64 317, !45, i64 320, !41, i64 328, !42, i64 336, !42, i64 344, !46, i64 352}
!11 = !{!"_ZTSN4juce9ComponentE", !12, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !15, i64 32, !18, i64 48, !19, i64 56, !20, i64 64, !6, i64 88, !23, i64 96, !6, i64 104, !24, i64 112, !25, i64 120, !26, i64 128, !27, i64 136, !31, i64 160, !35, i64 184, !7, i64 192, !7, i64 196}
!12 = !{!"_ZTSN4juce13MouseListenerE"}
!13 = !{!"_ZTSN4juce6StringE", !14, i64 0}
!14 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!15 = !{!"_ZTSN4juce9RectangleIiEE", !16, i64 0, !17, i64 8, !17, i64 12}
!16 = !{!"_ZTSN4juce5PointIiEE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !21, i64 0, !17, i64 16}
!21 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !22, i64 0, !17, i64 8}
!22 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!23 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !28, i64 0}
!28 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !29, i64 0, !17, i64 16}
!29 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !30, i64 0, !17, i64 8}
!30 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!31 = !{!"_ZTSN4juce13NamedValueSetE", !32, i64 0}
!32 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !33, i64 0, !17, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !34, i64 0, !17, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!35 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !36, i64 0}
!36 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!37 = !{!"_ZTSN4juce8ComboBox8ListenerE"}
!38 = !{!"_ZTSN4juce14ChangeListenerE"}
!39 = !{!"_ZTSN4juce6Button8ListenerE"}
!40 = !{!"_ZTSN4juce5TimerE", !17, i64 8, !17, i64 12, !6, i64 16, !6, i64 24}
!41 = !{!"_ZTSN4juce13ScopedPointerINS_8ComboBoxEEE", !6, i64 0}
!42 = !{!"_ZTSN4juce13ScopedPointerINS_5LabelEEE", !6, i64 0}
!43 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !6, i64 0}
!44 = !{!"bool", !7, i64 0}
!45 = !{!"_ZTSN4juce13ScopedPointerINS_28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBoxEEE", !6, i64 0}
!46 = !{!"_ZTSN4juce13ScopedPointerINS_10TextButtonEEE", !6, i64 0}
!47 = !{!48, !6, i64 0}
!48 = !{!"_ZTSN4juce23AudioDeviceSetupDetailsE", !6, i64 0, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !44, i64 24}
!49 = !{!10, !17, i64 308}
!50 = !{!48, !17, i64 8}
!51 = !{!10, !17, i64 312}
!52 = !{!48, !17, i64 12}
!53 = !{!10, !17, i64 300}
!54 = !{!48, !17, i64 16}
!55 = !{!10, !17, i64 304}
!56 = !{!48, !17, i64 20}
!57 = !{!10, !44, i64 316}
!58 = !{i8 0, i8 2}
!59 = !{}
!60 = !{!48, !44, i64 24}
!61 = !{!10, !44, i64 317}
!62 = !{!17, !17, i64 0}
!63 = distinct !{!63, !64}
!64 = !{!"llvm.loop.mustprogress"}
!65 = !{!66, !66, i64 0}
!66 = !{!"vtable pointer", !8, i64 0}


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

%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"struct.juce::AudioDeviceSetupDetails" = type { ptr, i32, i32, i32, i32, i8 }
%"class.juce::StringArray" = type { %"class.juce::Array.43" }
%"class.juce::Array.43" = type { %"class.juce::ArrayAllocationBase.44", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.44" = type <{ %"class.juce::HeapBlock.45", i32, [4 x i8] }>
%"class.juce::HeapBlock.45" = type { ptr }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }

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

declare noundef nonnull align 8 dereferenceable(20) ptr @_ZN4juce18AudioDeviceManager23getAvailableDeviceTypesEv(ptr noundef nonnull align 8 dereferenceable(912)) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

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

declare void @_ZN4juce8ComboBox7addItemERKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(380), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1

declare void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce28AudioDeviceSelectorComponent17updateAllControlsEv(ptr noundef nonnull align 8 dereferenceable(360) %0) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::String", align 8
  %3 = alloca %"class.juce::String", align 8
  %4 = alloca %"class.juce::String", align 8
  %5 = alloca %"struct.juce::AudioDeviceSetupDetails", align 8
  %6 = alloca %"class.juce::StringArray", align 8
  %7 = alloca %"class.juce::String", align 8
  %8 = alloca %"class.juce::StringRef", align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 264
  %10 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %18, label %11

11:                                               ; preds = %1
  %12 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %13 = getelementptr inbounds i8, ptr %0, i64 256
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZNK4juce18AudioDeviceManager25getCurrentAudioDeviceTypeEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %2, ptr noundef nonnull align 8 dereferenceable(912) %14)
  invoke void @_ZN4juce8ComboBox7setTextERKNS_6StringENS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380) %12, ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0)
          to label %15 unwind label %16

15:                                               ; preds = %11
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  br label %18

16:                                               ; preds = %11
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  br label %109

18:                                               ; preds = %15, %1
  %19 = getelementptr inbounds i8, ptr %0, i64 280
  %20 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %.not22 = icmp eq ptr %20, null
  br i1 %.not22, label %.critedge.thread, label %.critedge

.critedge:                                        ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 288
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %22 = getelementptr inbounds i8, ptr %0, i64 256
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZNK4juce18AudioDeviceManager25getCurrentAudioDeviceTypeEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %3, ptr noundef nonnull align 8 dereferenceable(912) %23)
  %24 = call noundef zeroext i1 @_ZN4juceneERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br i1 %24, label %.critedge.thread, label %58

.critedge.thread:                                 ; preds = %18, %.critedge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %25 = getelementptr inbounds i8, ptr %0, i64 256
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZNK4juce18AudioDeviceManager25getCurrentAudioDeviceTypeEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %4, ptr noundef nonnull align 8 dereferenceable(912) %26)
  %27 = getelementptr inbounds i8, ptr %0, i64 288
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef null)
  %30 = load ptr, ptr %25, align 8, !tbaa !5
  %31 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZN4juce18AudioDeviceManager23getAvailableDeviceTypesEv(ptr noundef nonnull align 8 dereferenceable(912) %30)
  %32 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %33 = icmp eq ptr %32, null
  br i1 %33, label %38, label %34

34:                                               ; preds = %.critedge.thread
  %35 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %36 = call noundef i32 @_ZNK4juce8ComboBox13getSelectedIdEv(ptr noundef nonnull align 8 dereferenceable(380) %35) #8
  %37 = add nsw i32 %36, -1
  br label %38

38:                                               ; preds = %.critedge.thread, %34
  %39 = phi i32 [ %37, %34 ], [ 0, %.critedge.thread ]
  %40 = call noundef ptr @_ZNK4juce10OwnedArrayINS_17AudioIODeviceTypeENS_20DummyCriticalSectionEEixEi(ptr noundef nonnull align 8 dereferenceable(20) %31, i32 noundef %39) #8
  %.not23 = icmp eq ptr %40, null
  br i1 %.not23, label %58, label %41

41:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  %42 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %42, ptr %5, align 8, !tbaa !46
  %43 = getelementptr inbounds i8, ptr %5, i64 8
  %44 = getelementptr inbounds i8, ptr %0, i64 300
  %45 = load <4 x i32>, ptr %44, align 4, !tbaa !48
  %46 = shufflevector <4 x i32> %45, <4 x i32> poison, <4 x i32> <i32 2, i32 3, i32 0, i32 1>
  store <4 x i32> %46, ptr %43, align 8, !tbaa !48
  %47 = getelementptr inbounds i8, ptr %0, i64 316
  %48 = load i8, ptr %47, align 4, !tbaa !49, !range !50, !noundef !51
  %49 = getelementptr inbounds i8, ptr %5, i64 24
  store i8 %48, ptr %49, align 8, !tbaa !52
  %50 = call noalias noundef nonnull dereferenceable(400) ptr @_Znwm(i64 noundef 400) #9
  %51 = getelementptr inbounds i8, ptr %0, i64 317
  %52 = load i8, ptr %51, align 1, !tbaa !53, !range !50, !noundef !51
  %53 = trunc nuw i8 %52 to i1
  invoke void @_ZN4juce24AudioDeviceSettingsPanelC2ERNS_17AudioIODeviceTypeERNS_23AudioDeviceSetupDetailsEb(ptr noundef nonnull align 8 dereferenceable(400) %50, ptr noundef nonnull align 8 dereferenceable(40) %40, ptr noundef nonnull align 8 dereferenceable(32) %5, i1 noundef zeroext %53)
          to label %54 unwind label %56

54:                                               ; preds = %41
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull %50)
  call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %50, i32 noundef -1)
  call void @_ZN4juce24AudioDeviceSettingsPanel17updateAllControlsEv(ptr noundef nonnull align 8 dereferenceable(400) %50)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %58

56:                                               ; preds = %41
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %50, i64 noundef 400) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %109

58:                                               ; preds = %38, %54, %.critedge
  %59 = getelementptr inbounds i8, ptr %0, i64 320
  %60 = call noundef ptr @_ZNK4juce13ScopedPointerINS_28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBoxEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  %.not24 = icmp eq ptr %60, null
  br i1 %.not24, label %65, label %61

61:                                               ; preds = %58
  %62 = call noundef ptr @_ZNK4juce13ScopedPointerINS_28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  call void @_ZN4juce28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBox13updateDevicesEv(ptr noundef nonnull align 8 dereferenceable(344) %62)
  %63 = call noundef ptr @_ZNK4juce13ScopedPointerINS_28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  call void @_ZN4juce7ListBox13updateContentEv(ptr noundef nonnull align 8 dereferenceable(296) %63)
  %64 = call noundef ptr @_ZNK4juce13ScopedPointerINS_28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  call void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %64)
  br label %65

65:                                               ; preds = %61, %58
  %66 = getelementptr inbounds i8, ptr %0, i64 328
  %67 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %66) #8
  %.not25 = icmp eq ptr %67, null
  br i1 %.not25, label %105, label %68

68:                                               ; preds = %65
  %69 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %66) #8
  call void @_ZN4juce8ComboBox5clearENS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380) %69, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @_ZN4juce10MidiOutput10getDevicesEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::StringArray") align 8 %6)
  %70 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %66) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  invoke void @_ZN4juceL17getNoDeviceStringEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7)
          to label %71 unwind label %80

71:                                               ; preds = %68
  invoke void @_ZN4juce8ComboBox7addItemERKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(380) %70, ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef -1)
          to label %72 unwind label %82

72:                                               ; preds = %71
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %73 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %66) #8
  invoke void @_ZN4juce8ComboBox12addSeparatorEv(ptr noundef nonnull align 8 dereferenceable(380) %73)
          to label %.preheader unwind label %85

.preheader:                                       ; preds = %72, %87
  %.014 = phi i32 [ %90, %87 ], [ 0, %72 ]
  %74 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %75 = icmp slt i32 %.014, %74
  br i1 %75, label %87, label %76

76:                                               ; preds = %.preheader
  %77 = getelementptr inbounds i8, ptr %0, i64 256
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = call noundef ptr @_ZNK4juce18AudioDeviceManager20getDefaultMidiOutputEv(ptr noundef nonnull align 8 dereferenceable(912) %78) #8
  %.not27 = icmp eq ptr %79, null
  br i1 %.not27, label %101, label %93

80:                                               ; preds = %68
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

82:                                               ; preds = %71
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br label %84

84:                                               ; preds = %82, %80
  %.pn = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %104

85:                                               ; preds = %72
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %104

87:                                               ; preds = %.preheader
  %88 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %66) #8
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.014) #8
  %90 = add nuw nsw i32 %.014, 1
  invoke void @_ZN4juce8ComboBox7addItemERKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(380) %88, ptr noundef nonnull align 8 dereferenceable(8) %89, i32 noundef %90)
          to label %.preheader unwind label %91, !llvm.loop !54

91:                                               ; preds = %87
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %104

93:                                               ; preds = %76
  %94 = load ptr, ptr %77, align 8, !tbaa !5
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce18AudioDeviceManager24getDefaultMidiOutputNameEv(ptr noundef nonnull align 8 dereferenceable(912) %94) #8
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %95) #8
  %96 = invoke noundef i32 @_ZNK4juce11StringArray7indexOfENS_9StringRefEbi(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull %8, i1 noundef zeroext false, i32 noundef 0)
          to label %97 unwind label %99

97:                                               ; preds = %93
  %98 = add nsw i32 %96, 1
  br label %101

99:                                               ; preds = %101, %93
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %104

101:                                              ; preds = %97, %76
  %.0 = phi i32 [ %98, %97 ], [ -1, %76 ]
  %102 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ComboBoxEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %66) #8
  invoke void @_ZN4juce8ComboBox13setSelectedIdEiNS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380) %102, i32 noundef %.0, i32 noundef 0)
          to label %103 unwind label %99

103:                                              ; preds = %101
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  br label %105

104:                                              ; preds = %99, %91, %85, %84
  %.pn28 = phi { ptr, i32 } [ %92, %91 ], [ %100, %99 ], [ %86, %85 ], [ %.pn, %84 ]
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  br label %109

105:                                              ; preds = %103, %65
  %106 = load ptr, ptr %0, align 8, !tbaa !56
  %107 = getelementptr inbounds i8, ptr %106, i64 272
  %108 = load ptr, ptr %107, align 8
  call void %108(ptr noundef nonnull align 8 dereferenceable(360) %0)
  ret void

109:                                              ; preds = %104, %56, %16
  %.pn28.pn = phi { ptr, i32 } [ %.pn28, %104 ], [ %57, %56 ], [ %17, %16 ]
  resume { ptr, i32 } %.pn28.pn
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce10OwnedArrayINS_17AudioIODeviceTypeENS_20DummyCriticalSectionEEixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce8ComboBox13getSelectedIdEv(ptr noundef nonnull align 8 dereferenceable(380)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juceL17getNoDeviceStringEv(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8) local_unnamed_addr #6

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare void @_ZN4juce8ComboBox7setTextERKNS_6StringENS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce18AudioDeviceManager25getCurrentAudioDeviceTypeEv(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(912)) local_unnamed_addr #7 align 2

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juceneERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce24AudioDeviceSettingsPanelC2ERNS_17AudioIODeviceTypeERNS_23AudioDeviceSetupDetailsEb(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce24AudioDeviceSettingsPanel17updateAllControlsEv(ptr noundef nonnull align 8 dereferenceable(400)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBox13updateDevicesEv(ptr noundef nonnull align 8 dereferenceable(344)) local_unnamed_addr #6 align 2

declare void @_ZN4juce7ListBox13updateContentEv(ptr noundef nonnull align 8 dereferenceable(296)) local_unnamed_addr #1

declare void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1

declare void @_ZN4juce8ComboBox5clearENS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380), i32 noundef) local_unnamed_addr #1

declare void @_ZN4juce10MidiOutput10getDevicesEv(ptr dead_on_unwind writable sret(%"class.juce::StringArray") align 8) local_unnamed_addr #1

declare void @_ZN4juce8ComboBox12addSeparatorEv(ptr noundef nonnull align 8 dereferenceable(380)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #3

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

declare noundef i32 @_ZNK4juce11StringArray7indexOfENS_9StringRefEbi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i1 noundef zeroext, i32 noundef) local_unnamed_addr #1

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

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

declare void @_ZN4juce8ComboBox13setSelectedIdEiNS_16NotificationTypeE(ptr noundef nonnull align 8 dereferenceable(380), i32 noundef, i32 noundef) local_unnamed_addr #1

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nobuiltin allocsize(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 "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 = { nobuiltin 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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, !11, i64 256}
!6 = !{!"_ZTSN4juce28AudioDeviceSelectorComponentE", !7, i64 0, !36, i64 200, !37, i64 208, !38, i64 216, !39, i64 224, !11, i64 256, !40, i64 264, !41, i64 272, !42, i64 280, !9, i64 288, !16, i64 296, !16, i64 300, !16, i64 304, !16, i64 308, !16, i64 312, !43, i64 316, !43, i64 317, !44, i64 320, !40, i64 328, !41, i64 336, !41, i64 344, !45, i64 352}
!7 = !{!"_ZTSN4juce9ComponentE", !8, i64 0, !9, i64 8, !9, i64 16, !11, i64 24, !14, i64 32, !17, i64 48, !18, i64 56, !19, i64 64, !11, i64 88, !22, i64 96, !11, i64 104, !23, i64 112, !24, i64 120, !25, i64 128, !26, i64 136, !30, i64 160, !34, i64 184, !12, i64 192, !12, i64 196}
!8 = !{!"_ZTSN4juce13MouseListenerE"}
!9 = !{!"_ZTSN4juce6StringE", !10, i64 0}
!10 = !{!"_ZTSN4juce16CharPointer_UTF8E", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN4juce9RectangleIiEE", !15, i64 0, !16, i64 8, !16, i64 12}
!15 = !{!"_ZTSN4juce5PointIiEE", !16, i64 0, !16, i64 4}
!16 = !{!"int", !12, i64 0}
!17 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !11, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !11, i64 0}
!19 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !20, i64 0, !16, i64 16}
!20 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !21, i64 0, !16, i64 8}
!21 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !11, i64 0}
!22 = !{!"_ZTSN4juce11MouseCursorE", !11, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !11, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !11, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !11, i64 0}
!26 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !27, i64 0}
!27 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !28, i64 0, !16, i64 16}
!28 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !29, i64 0, !16, i64 8}
!29 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !11, i64 0}
!30 = !{!"_ZTSN4juce13NamedValueSetE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !16, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !33, i64 0, !16, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !11, i64 0}
!34 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !35, i64 0}
!35 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !11, i64 0}
!36 = !{!"_ZTSN4juce8ComboBox8ListenerE"}
!37 = !{!"_ZTSN4juce14ChangeListenerE"}
!38 = !{!"_ZTSN4juce6Button8ListenerE"}
!39 = !{!"_ZTSN4juce5TimerE", !16, i64 8, !16, i64 12, !11, i64 16, !11, i64 24}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_8ComboBoxEEE", !11, i64 0}
!41 = !{!"_ZTSN4juce13ScopedPointerINS_5LabelEEE", !11, i64 0}
!42 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !11, i64 0}
!43 = !{!"bool", !12, i64 0}
!44 = !{!"_ZTSN4juce13ScopedPointerINS_28AudioDeviceSelectorComponent33MidiInputSelectorComponentListBoxEEE", !11, i64 0}
!45 = !{!"_ZTSN4juce13ScopedPointerINS_10TextButtonEEE", !11, i64 0}
!46 = !{!47, !11, i64 0}
!47 = !{!"_ZTSN4juce23AudioDeviceSetupDetailsE", !11, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !43, i64 24}
!48 = !{!16, !16, i64 0}
!49 = !{!6, !43, i64 316}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = !{!47, !43, i64 24}
!53 = !{!6, !43, i64 317}
!54 = distinct !{!54, !55}
!55 = !{!"llvm.loop.mustprogress"}
!56 = !{!57, !57, i64 0}
!57 = !{!"vtable pointer", !13, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass