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

; 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::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::File" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"struct.juce::FocusRestorer" = type { %"class.juce::WeakReference" }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::WildcardFileFilter" = type { %"class.juce::FileFilter", %"class.juce::StringArray", %"class.juce::StringArray" }
%"class.juce::FileFilter" = type { ptr, %"class.juce::String" }
%"class.juce::StringArray" = type { %"class.juce::Array.150" }
%"class.juce::Array.150" = type { %"class.juce::ArrayAllocationBase.151", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.151" = type <{ %"class.juce::HeapBlock.152", i32, [4 x i8] }>
%"class.juce::HeapBlock.152" = type { ptr }
%"class.juce::FileBrowserComponent" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::FileBrowserListener", %"class.juce::TextEditor::Listener", %"class.juce::Button::Listener", %"class.juce::ComboBox::Listener", %"class.juce::FileFilter", %"class.juce::Timer", %"class.juce::ScopedPointer.232", ptr, i32, [4 x i8], %"class.juce::File", %"class.juce::Array.233", %"class.juce::ListenerList.213", %"class.juce::ScopedPointer.238", ptr, %"class.juce::ComboBox", %"class.juce::TextEditor", %"class.juce::Label", %"class.juce::ScopedPointer.282", %"class.juce::TimeSliceThread", i8, [7 x i8] }>
%"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" }
%union.anon = type { i32 }
%"class.juce::FileBrowserListener" = type { ptr }
%"class.juce::TextEditor::Listener" = type { ptr }
%"class.juce::Button::Listener" = type { ptr }
%"class.juce::ComboBox::Listener" = type { ptr }
%"class.juce::Timer" = type { ptr, i32, i32, ptr, ptr }
%"class.juce::ScopedPointer.232" = type { ptr }
%"class.juce::Array.233" = type { %"class.juce::ArrayAllocationBase.234", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.234" = type <{ %"class.juce::HeapBlock.235", i32, [4 x i8] }>
%"class.juce::HeapBlock.235" = type { ptr }
%"class.juce::ListenerList.213" = type { %"class.juce::Array.214" }
%"class.juce::Array.214" = type { %"class.juce::ArrayAllocationBase.215", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.215" = type <{ %"class.juce::HeapBlock.216", i32, [4 x i8] }>
%"class.juce::HeapBlock.216" = type { ptr }
%"class.juce::ScopedPointer.238" = type { ptr }
%"class.juce::ComboBox" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::SettableTooltipClient", %"class.juce::Label::Listener", %"class.juce::Value::Listener", %"class.juce::AsyncUpdater", %"class.juce::PopupMenu", %"class.juce::Value", i32, i8, i8, i8, i8, float, [4 x i8], %"class.juce::ListenerList.244", %"class.juce::ScopedPointer.250", %"class.juce::String", %"class.juce::String", i32, [4 x i8] }>
%"class.juce::SettableTooltipClient" = type { %"class.juce::TooltipClient", %"class.juce::String" }
%"class.juce::TooltipClient" = type { ptr }
%"class.juce::Label::Listener" = type { ptr }
%"class.juce::Value::Listener" = type { ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.15" }
%"class.juce::ReferenceCountedObjectPtr.15" = type { ptr }
%"class.juce::PopupMenu" = type { %"class.juce::OwnedArray.239", %"class.juce::WeakReference.37" }
%"class.juce::OwnedArray.239" = type { %"class.juce::ArrayAllocationBase.240", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.240" = type <{ %"class.juce::HeapBlock.241", i32, [4 x i8] }>
%"class.juce::HeapBlock.241" = type { ptr }
%"class.juce::WeakReference.37" = type { %"class.juce::ReferenceCountedObjectPtr.38" }
%"class.juce::ReferenceCountedObjectPtr.38" = type { ptr }
%"class.juce::Value" = type { %"class.juce::ReferenceCountedObjectPtr.116", %"class.juce::ListenerList.117" }
%"class.juce::ReferenceCountedObjectPtr.116" = type { ptr }
%"class.juce::ListenerList.117" = type { %"class.juce::Array.118" }
%"class.juce::Array.118" = type { %"class.juce::ArrayAllocationBase.119", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.119" = type <{ %"class.juce::HeapBlock.120", i32, [4 x i8] }>
%"class.juce::HeapBlock.120" = type { ptr }
%"class.juce::ListenerList.244" = type { %"class.juce::Array.245" }
%"class.juce::Array.245" = type { %"class.juce::ArrayAllocationBase.246", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.246" = type <{ %"class.juce::HeapBlock.247", i32, [4 x i8] }>
%"class.juce::HeapBlock.247" = type { ptr }
%"class.juce::ScopedPointer.250" = type { ptr }
%"class.juce::TextEditor" = type { %"class.juce::Component.base", %"class.juce::TextInputTarget", %"class.juce::SettableTooltipClient", %"class.juce::ScopedPointer.251", ptr, %"class.juce::BorderSize", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, %"class.juce::UndoManager", %"class.juce::ScopedPointer.257", %"class.juce::Range", i32, i32, i32, %"class.juce::Font", i32, i32, %"class.juce::OwnedArray.258", %"class.juce::String", %"class.juce::Colour", i32, %"class.juce::OptionalScopedPointer", %"class.juce::Value", i32, i32, %"class.juce::ListenerList.264", %"class.juce::Array.270" }
%"class.juce::TextInputTarget" = type { ptr }
%"class.juce::ScopedPointer.251" = type { ptr }
%"class.juce::BorderSize" = type { i32, i32, i32, i32 }
%"class.juce::UndoManager" = type <{ %"class.juce::ChangeBroadcaster", %"class.juce::OwnedArray.252", %"class.juce::OwnedArray.252", %"class.juce::String", i32, i32, i32, i32, i8, i8, [6 x i8] }>
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.39" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::ListenerList.39" = type { %"class.juce::Array.40" }
%"class.juce::Array.40" = type { %"class.juce::ArrayAllocationBase.41", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.41" = type <{ %"class.juce::HeapBlock.42", i32, [4 x i8] }>
%"class.juce::HeapBlock.42" = type { ptr }
%"class.juce::OwnedArray.252" = type { %"class.juce::ArrayAllocationBase.253", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.253" = type <{ %"class.juce::HeapBlock.254", i32, [4 x i8] }>
%"class.juce::HeapBlock.254" = type { ptr }
%"class.juce::ScopedPointer.257" = type { ptr }
%"class.juce::Range" = type { i32, i32 }
%"class.juce::Font" = type { %"class.juce::ReferenceCountedObjectPtr.158" }
%"class.juce::ReferenceCountedObjectPtr.158" = type { ptr }
%"class.juce::OwnedArray.258" = type { %"class.juce::ArrayAllocationBase.259", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.259" = type <{ %"class.juce::HeapBlock.260", i32, [4 x i8] }>
%"class.juce::HeapBlock.260" = type { ptr }
%"class.juce::OptionalScopedPointer" = type <{ %"class.juce::ScopedPointer.263", i8, [7 x i8] }>
%"class.juce::ScopedPointer.263" = type { ptr }
%"class.juce::ListenerList.264" = type { %"class.juce::Array.265" }
%"class.juce::Array.265" = type { %"class.juce::ArrayAllocationBase.266", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.266" = type <{ %"class.juce::HeapBlock.267", i32, [4 x i8] }>
%"class.juce::HeapBlock.267" = type { ptr }
%"class.juce::Array.270" = type { %"class.juce::ArrayAllocationBase.271", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.271" = type <{ %"class.juce::HeapBlock.272", i32, [4 x i8] }>
%"class.juce::HeapBlock.272" = type { ptr }
%"class.juce::Label" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::SettableTooltipClient", %"class.juce::TextEditor::Listener", %"class.juce::ComponentListener", %"class.juce::Value::Listener", %"class.juce::Value", %"class.juce::String", %"class.juce::Font", %"class.juce::Justification", [4 x i8], %"class.juce::ScopedPointer.275", %"class.juce::ListenerList.276", %"class.juce::WeakReference", %"class.juce::BorderSize", float, i32, i8, i8, i8, i8, [4 x i8] }>
%"class.juce::ComponentListener" = type { ptr }
%"class.juce::Justification" = type { i32 }
%"class.juce::ScopedPointer.275" = type { ptr }
%"class.juce::ListenerList.276" = type { %"class.juce::Array.277" }
%"class.juce::Array.277" = type { %"class.juce::ArrayAllocationBase.278", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.278" = type <{ %"class.juce::HeapBlock.279", i32, [4 x i8] }>
%"class.juce::HeapBlock.279" = type { ptr }
%"class.juce::ScopedPointer.282" = type { ptr }
%"class.juce::TimeSliceThread" = type { %"class.juce::Thread.base", %"class.juce::CriticalSection", %"class.juce::CriticalSection", %"class.juce::Array.225", ptr }
%"class.juce::Thread.base" = type <{ ptr, %"class.juce::String", ptr, ptr, %"class.juce::CriticalSection", %"class.juce::WaitableEvent", %"class.juce::WaitableEvent", i32, [4 x i8], i64, i32, i8 }>
%"class.juce::WaitableEvent" = type <{ %union.pthread_cond_t, %union.pthread_mutex_t, i8, i8, [6 x i8] }>
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%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 }
%"class.juce::CriticalSection" = type { %union.pthread_mutex_t }
%"class.juce::Array.225" = type { %"class.juce::ArrayAllocationBase.226", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.226" = type <{ %"class.juce::HeapBlock.227", i32, [4 x i8] }>
%"class.juce::HeapBlock.227" = type { ptr }
%"class.juce::FileChooserDialogBox" = type <{ %"class.juce::ResizableWindow", %"class.juce::Button::Listener", %"class.juce::FileBrowserListener", ptr, i8, [7 x i8] }>
%"class.juce::ResizableWindow" = type { %"class.juce::TopLevelWindow", %"class.juce::ScopedPointer.294", %"class.juce::ScopedPointer.295", %"class.juce::Component::SafePointer", i8, i8, i8, i8, i8, %"class.juce::ComponentDragger", %"class.juce::Rectangle", %"class.juce::ComponentBoundsConstrainer", ptr }
%"class.juce::TopLevelWindow" = type { %"class.juce::Component.base", i8, i8, i8, %"class.juce::ScopedPointer.293" }
%"class.juce::ScopedPointer.293" = type { ptr }
%"class.juce::ScopedPointer.294" = type { ptr }
%"class.juce::ScopedPointer.295" = type { ptr }
%"class.juce::Component::SafePointer" = type { %"class.juce::WeakReference" }
%"class.juce::ComponentDragger" = type { ptr, %"class.juce::Point" }
%"class.juce::ComponentBoundsConstrainer" = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, double }
%"class.juce::FileChooser" = type <{ %"class.juce::String", %"class.juce::String", %"class.juce::File", %"class.juce::Array.233", i8, i8, [6 x i8] }>

@.str.136 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) #2 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

declare void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce20FileBrowserComponent15getSelectedFileEi(ptr dead_on_unwind noalias writable sret(%"class.juce::File") align 8, ptr noundef nonnull align 8 dereferenceable(2137), i32 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce11FileChooser10showDialogEiPNS_20FilePreviewComponentE(ptr noundef nonnull align 8 dereferenceable(50) %0, i32 noundef %1, ptr noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.juce::FocusRestorer", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca %"class.juce::WildcardFileFilter", align 8
  %16 = alloca %"class.juce::String", align 8
  %17 = alloca %"class.juce::String", align 8
  %18 = alloca %"class.juce::String", align 8
  %19 = alloca %"class.juce::FileBrowserComponent", align 8
  %20 = alloca %"class.juce::FileChooserDialogBox", align 8
  %21 = alloca %"class.juce::String", align 8
  %22 = alloca %"class.juce::Colour", align 1
  %23 = alloca i32, align 4
  %24 = alloca %"class.juce::File", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @_ZN4juce13FocusRestorerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %26 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 3
  invoke void @_ZN4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %26)
          to label %27 unwind label %77

27:                                               ; preds = %3
  br label %28

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = and i32 %31, 8
  %33 = icmp ne i32 %32, 0
  %34 = zext i1 %33 to i8
  store i8 %34, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  %35 = load i32, ptr %5, align 4, !tbaa !9
  %36 = and i32 %35, 4
  %37 = icmp ne i32 %36, 0
  %38 = zext i1 %37 to i8
  store i8 %38, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = and i32 %39, 2
  %41 = icmp ne i32 %40, 0
  %42 = zext i1 %41 to i8
  store i8 %42, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = and i32 %43, 128
  %45 = icmp ne i32 %44, 0
  %46 = zext i1 %45 to i8
  store i8 %46, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = and i32 %47, 16
  %49 = icmp ne i32 %48, 0
  %50 = zext i1 %49 to i8
  store i8 %50, ptr %14, align 1, !tbaa !11
  br label %51

51:                                               ; preds = %30
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  %54 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 4
  %55 = load i8, ptr %54, align 8, !tbaa !13, !range !21, !noundef !22
  %56 = trunc i8 %55 to i1
  br i1 %56, label %57, label %85

57:                                               ; preds = %53
  %58 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 3
  %59 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 0
  %60 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 2
  %61 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 1
  %62 = load i8, ptr %10, align 1, !tbaa !11, !range !21, !noundef !22
  %63 = trunc i8 %62 to i1
  %64 = load i8, ptr %11, align 1, !tbaa !11, !range !21, !noundef !22
  %65 = trunc i8 %64 to i1
  %66 = load i8, ptr %12, align 1, !tbaa !11, !range !21, !noundef !22
  %67 = trunc i8 %66 to i1
  %68 = load i8, ptr %13, align 1, !tbaa !11, !range !21, !noundef !22
  %69 = trunc i8 %68 to i1
  %70 = load i8, ptr %14, align 1, !tbaa !11, !range !21, !noundef !22
  %71 = trunc i8 %70 to i1
  %72 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 5
  %73 = load i8, ptr %72, align 1, !tbaa !23, !range !21, !noundef !22
  %74 = trunc i8 %73 to i1
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN4juce11FileChooser18showPlatformDialogERNS_5ArrayINS_4FileENS_20DummyCriticalSectionELi0EEERKNS_6StringERKS2_S8_bbbbbbPNS_20FilePreviewComponentE(ptr noundef nonnull align 8 dereferenceable(20) %58, ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(8) %61, i1 noundef zeroext %63, i1 noundef zeroext %65, i1 noundef zeroext %67, i1 noundef zeroext %69, i1 noundef zeroext %71, i1 noundef zeroext %74, ptr noundef %75)
          to label %76 unwind label %81

76:                                               ; preds = %57
  br label %159

77:                                               ; preds = %3
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %8, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %9, align 4
  br label %164

81:                                               ; preds = %57
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %8, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %9, align 4
  br label %163

85:                                               ; preds = %53
  call void @_ZN4juce12ignoreUnusedIbEEvRKT_(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %86 = load i8, ptr %11, align 1, !tbaa !11, !range !21, !noundef !22
  %87 = trunc i8 %86 to i1
  br i1 %87, label %88, label %90

88:                                               ; preds = %85
  %89 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 1
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %89) #6
  br label %91

90:                                               ; preds = %85
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %91

91:                                               ; preds = %90, %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %92 = load i8, ptr %10, align 1, !tbaa !11, !range !21, !noundef !22
  %93 = trunc i8 %92 to i1
  br i1 %93, label %94, label %96

94:                                               ; preds = %91
  invoke void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef @.str.136)
          to label %95 unwind label %116

95:                                               ; preds = %94
  br label %97

96:                                               ; preds = %91
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %97

97:                                               ; preds = %96, %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  invoke void @_ZN4juce18WildcardFileFilterC1ERKNS_6StringES3_S3_(ptr noundef nonnull align 8 dereferenceable(64) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %98 unwind label %120

98:                                               ; preds = %97
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 2144, ptr %19) #6
  %99 = load i32, ptr %5, align 4, !tbaa !9
  %100 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 2
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN4juce20FileBrowserComponentC1EiRKNS_4FileEPKNS_10FileFilterEPNS_20FilePreviewComponentE(ptr noundef nonnull align 8 dereferenceable(2137) %19, i32 noundef %99, ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef %15, ptr noundef %101)
          to label %102 unwind label %125

102:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 360, ptr %20) #6
  %103 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %104 = load i8, ptr %13, align 1, !tbaa !11, !range !21, !noundef !22
  %105 = trunc i8 %104 to i1
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %22, ptr noundef nonnull align 8 dereferenceable(197) %19, i32 noundef 16783360, i1 noundef zeroext false)
          to label %106 unwind label %129

106:                                              ; preds = %102
  invoke void @_ZN4juce20FileChooserDialogBoxC1ERKNS_6StringES3_RNS_20FileBrowserComponentEbNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(353) %20, ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(2137) %19, i1 noundef zeroext %105, ptr noundef %22)
          to label %107 unwind label %133

107:                                              ; preds = %106
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  %108 = invoke noundef zeroext i1 @_ZN4juce20FileChooserDialogBox4showEii(ptr noundef nonnull align 8 dereferenceable(353) %20, i32 noundef 0, i32 noundef 0)
          to label %109 unwind label %138

109:                                              ; preds = %107
  br i1 %108, label %110, label %154

110:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %146, %110
  %112 = load i32, ptr %23, align 4, !tbaa !9
  %113 = call noundef i32 @_ZNK4juce20FileBrowserComponent19getNumSelectedFilesEv(ptr noundef nonnull align 8 dereferenceable(2137) %19) #6
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %142, label %115

115:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %153

116:                                              ; preds = %94
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %8, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %9, align 4
  br label %124

120:                                              ; preds = %97
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %8, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %9, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %124

124:                                              ; preds = %120, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %158

125:                                              ; preds = %98
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %8, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %9, align 4
  br label %157

129:                                              ; preds = %102
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %8, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %9, align 4
  br label %137

133:                                              ; preds = %106
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %8, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %9, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #6
  br label %137

137:                                              ; preds = %133, %129
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %156

138:                                              ; preds = %107
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %8, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %9, align 4
  br label %155

142:                                              ; preds = %111
  %143 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %144 = load i32, ptr %23, align 4, !tbaa !9
  call void @_ZNK4juce20FileBrowserComponent15getSelectedFileEi(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %24, ptr noundef nonnull align 8 dereferenceable(2137) %19, i32 noundef %144) #6
  invoke void @_ZN4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EE3addEOS1_(ptr noundef nonnull align 8 dereferenceable(20) %143, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %145 unwind label %149

145:                                              ; preds = %142
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %23, align 4, !tbaa !9
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %23, align 4, !tbaa !9
  br label %111, !llvm.loop !24

149:                                              ; preds = %142
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %8, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %9, align 4
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %155

153:                                              ; preds = %115
  br label %154

154:                                              ; preds = %153, %109
  call void @_ZN4juce20FileChooserDialogBoxD1Ev(ptr noundef nonnull align 8 dereferenceable(353) %20) #6
  call void @llvm.lifetime.end.p0(i64 360, ptr %20) #6
  call void @_ZN4juce20FileBrowserComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(2137) %19) #6
  call void @llvm.lifetime.end.p0(i64 2144, ptr %19) #6
  call void @_ZN4juce18WildcardFileFilterD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %15) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #6
  br label %159

155:                                              ; preds = %149, %138
  call void @_ZN4juce20FileChooserDialogBoxD1Ev(ptr noundef nonnull align 8 dereferenceable(353) %20) #6
  br label %156

156:                                              ; preds = %155, %137
  call void @llvm.lifetime.end.p0(i64 360, ptr %20) #6
  call void @_ZN4juce20FileBrowserComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(2137) %19) #6
  br label %157

157:                                              ; preds = %156, %125
  call void @llvm.lifetime.end.p0(i64 2144, ptr %19) #6
  call void @_ZN4juce18WildcardFileFilterD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %15) #6
  br label %158

158:                                              ; preds = %157, %124
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #6
  br label %163

159:                                              ; preds = %154, %76
  %160 = getelementptr inbounds %"class.juce::FileChooser", ptr %25, i32 0, i32 3
  %161 = call noundef i32 @_ZNK4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %160) #6
  %162 = icmp sgt i32 %161, 0
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @_ZN4juce13FocusRestorerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret i1 %162

163:                                              ; preds = %158, %81
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %164

164:                                              ; preds = %163, %77
  call void @_ZN4juce13FocusRestorerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %165

165:                                              ; preds = %164
  %166 = load ptr, ptr %8, align 8
  %167 = load i32, ptr %9, align 4
  %168 = insertvalue { ptr, i32 } poison, ptr %166, 0
  %169 = insertvalue { ptr, i32 } %168, i32 %167, 1
  resume { ptr, i32 } %169
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce11FileChooser18showPlatformDialogERNS_5ArrayINS_4FileENS_20DummyCriticalSectionELi0EEERKNS_6StringERKS2_S8_bbbbbbPNS_20FilePreviewComponentE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, ptr noundef) #2 align 2

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

declare void @_ZN4juce18WildcardFileFilterC1ERKNS_6StringES3_S3_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4juce20FileChooserDialogBox4showEii(ptr noundef nonnull align 8 dereferenceable(353), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EE3addEOS1_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce18WildcardFileFilterD1Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #0

declare void @_ZN4juce20FileBrowserComponentC1EiRKNS_4FileEPKNS_10FileFilterEPNS_20FilePreviewComponentE(ptr, i32, ptr, ptr, ptr)

declare void @_ZN4juce20FileBrowserComponentD1Ev(ptr)

declare void @_ZN4juce20FileChooserDialogBoxC1ERKNS_6StringES3_RNS_20FileBrowserComponentEbNS_6ColourE(ptr, ptr, ptr, ptr, i1, ptr)

declare void @_ZN4juce20FileChooserDialogBoxD1Ev(ptr)

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !12, i64 48}
!14 = !{!"_ZTSN4juce11FileChooserE", !15, i64 0, !15, i64 8, !17, i64 16, !18, i64 24, !12, i64 48, !12, i64 49}
!15 = !{!"_ZTSN4juce6StringE", !16, i64 0}
!16 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!17 = !{!"_ZTSN4juce4FileE", !15, i64 0}
!18 = !{!"_ZTSN4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EEE", !19, i64 0, !10, i64 16}
!19 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_4FileENS_20DummyCriticalSectionEEE", !20, i64 0, !10, i64 8}
!20 = !{!"_ZTSN4juce9HeapBlockINS_4FileELb0EEE", !6, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!14, !12, i64 49}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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

%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::File" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"struct.juce::FocusRestorer" = type { %"class.juce::WeakReference" }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::WildcardFileFilter" = type { %"class.juce::FileFilter", %"class.juce::StringArray", %"class.juce::StringArray" }
%"class.juce::FileFilter" = type { ptr, %"class.juce::String" }
%"class.juce::StringArray" = type { %"class.juce::Array.150" }
%"class.juce::Array.150" = type { %"class.juce::ArrayAllocationBase.151", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.151" = type <{ %"class.juce::HeapBlock.152", i32, [4 x i8] }>
%"class.juce::HeapBlock.152" = type { ptr }
%"class.juce::FileBrowserComponent" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::FileBrowserListener", %"class.juce::TextEditor::Listener", %"class.juce::Button::Listener", %"class.juce::ComboBox::Listener", %"class.juce::FileFilter", %"class.juce::Timer", %"class.juce::ScopedPointer.232", ptr, i32, [4 x i8], %"class.juce::File", %"class.juce::Array.233", %"class.juce::ListenerList.213", %"class.juce::ScopedPointer.238", ptr, %"class.juce::ComboBox", %"class.juce::TextEditor", %"class.juce::Label", %"class.juce::ScopedPointer.282", %"class.juce::TimeSliceThread", i8, [7 x i8] }>
%"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" }
%union.anon = type { i32 }
%"class.juce::FileBrowserListener" = type { ptr }
%"class.juce::TextEditor::Listener" = type { ptr }
%"class.juce::Button::Listener" = type { ptr }
%"class.juce::ComboBox::Listener" = type { ptr }
%"class.juce::Timer" = type { ptr, i32, i32, ptr, ptr }
%"class.juce::ScopedPointer.232" = type { ptr }
%"class.juce::Array.233" = type { %"class.juce::ArrayAllocationBase.234", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.234" = type <{ %"class.juce::HeapBlock.235", i32, [4 x i8] }>
%"class.juce::HeapBlock.235" = type { ptr }
%"class.juce::ListenerList.213" = type { %"class.juce::Array.214" }
%"class.juce::Array.214" = type { %"class.juce::ArrayAllocationBase.215", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.215" = type <{ %"class.juce::HeapBlock.216", i32, [4 x i8] }>
%"class.juce::HeapBlock.216" = type { ptr }
%"class.juce::ScopedPointer.238" = type { ptr }
%"class.juce::ComboBox" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::SettableTooltipClient", %"class.juce::Label::Listener", %"class.juce::Value::Listener", %"class.juce::AsyncUpdater", %"class.juce::PopupMenu", %"class.juce::Value", i32, i8, i8, i8, i8, float, [4 x i8], %"class.juce::ListenerList.244", %"class.juce::ScopedPointer.250", %"class.juce::String", %"class.juce::String", i32, [4 x i8] }>
%"class.juce::SettableTooltipClient" = type { %"class.juce::TooltipClient", %"class.juce::String" }
%"class.juce::TooltipClient" = type { ptr }
%"class.juce::Label::Listener" = type { ptr }
%"class.juce::Value::Listener" = type { ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.15" }
%"class.juce::ReferenceCountedObjectPtr.15" = type { ptr }
%"class.juce::PopupMenu" = type { %"class.juce::OwnedArray.239", %"class.juce::WeakReference.37" }
%"class.juce::OwnedArray.239" = type { %"class.juce::ArrayAllocationBase.240", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.240" = type <{ %"class.juce::HeapBlock.241", i32, [4 x i8] }>
%"class.juce::HeapBlock.241" = type { ptr }
%"class.juce::WeakReference.37" = type { %"class.juce::ReferenceCountedObjectPtr.38" }
%"class.juce::ReferenceCountedObjectPtr.38" = type { ptr }
%"class.juce::Value" = type { %"class.juce::ReferenceCountedObjectPtr.116", %"class.juce::ListenerList.117" }
%"class.juce::ReferenceCountedObjectPtr.116" = type { ptr }
%"class.juce::ListenerList.117" = type { %"class.juce::Array.118" }
%"class.juce::Array.118" = type { %"class.juce::ArrayAllocationBase.119", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.119" = type <{ %"class.juce::HeapBlock.120", i32, [4 x i8] }>
%"class.juce::HeapBlock.120" = type { ptr }
%"class.juce::ListenerList.244" = type { %"class.juce::Array.245" }
%"class.juce::Array.245" = type { %"class.juce::ArrayAllocationBase.246", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.246" = type <{ %"class.juce::HeapBlock.247", i32, [4 x i8] }>
%"class.juce::HeapBlock.247" = type { ptr }
%"class.juce::ScopedPointer.250" = type { ptr }
%"class.juce::TextEditor" = type { %"class.juce::Component.base", %"class.juce::TextInputTarget", %"class.juce::SettableTooltipClient", %"class.juce::ScopedPointer.251", ptr, %"class.juce::BorderSize", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, %"class.juce::UndoManager", %"class.juce::ScopedPointer.257", %"class.juce::Range", i32, i32, i32, %"class.juce::Font", i32, i32, %"class.juce::OwnedArray.258", %"class.juce::String", %"class.juce::Colour", i32, %"class.juce::OptionalScopedPointer", %"class.juce::Value", i32, i32, %"class.juce::ListenerList.264", %"class.juce::Array.270" }
%"class.juce::TextInputTarget" = type { ptr }
%"class.juce::ScopedPointer.251" = type { ptr }
%"class.juce::BorderSize" = type { i32, i32, i32, i32 }
%"class.juce::UndoManager" = type <{ %"class.juce::ChangeBroadcaster", %"class.juce::OwnedArray.252", %"class.juce::OwnedArray.252", %"class.juce::String", i32, i32, i32, i32, i8, i8, [6 x i8] }>
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.39" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::ListenerList.39" = type { %"class.juce::Array.40" }
%"class.juce::Array.40" = type { %"class.juce::ArrayAllocationBase.41", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.41" = type <{ %"class.juce::HeapBlock.42", i32, [4 x i8] }>
%"class.juce::HeapBlock.42" = type { ptr }
%"class.juce::OwnedArray.252" = type { %"class.juce::ArrayAllocationBase.253", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.253" = type <{ %"class.juce::HeapBlock.254", i32, [4 x i8] }>
%"class.juce::HeapBlock.254" = type { ptr }
%"class.juce::ScopedPointer.257" = type { ptr }
%"class.juce::Range" = type { i32, i32 }
%"class.juce::Font" = type { %"class.juce::ReferenceCountedObjectPtr.158" }
%"class.juce::ReferenceCountedObjectPtr.158" = type { ptr }
%"class.juce::OwnedArray.258" = type { %"class.juce::ArrayAllocationBase.259", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.259" = type <{ %"class.juce::HeapBlock.260", i32, [4 x i8] }>
%"class.juce::HeapBlock.260" = type { ptr }
%"class.juce::OptionalScopedPointer" = type <{ %"class.juce::ScopedPointer.263", i8, [7 x i8] }>
%"class.juce::ScopedPointer.263" = type { ptr }
%"class.juce::ListenerList.264" = type { %"class.juce::Array.265" }
%"class.juce::Array.265" = type { %"class.juce::ArrayAllocationBase.266", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.266" = type <{ %"class.juce::HeapBlock.267", i32, [4 x i8] }>
%"class.juce::HeapBlock.267" = type { ptr }
%"class.juce::Array.270" = type { %"class.juce::ArrayAllocationBase.271", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.271" = type <{ %"class.juce::HeapBlock.272", i32, [4 x i8] }>
%"class.juce::HeapBlock.272" = type { ptr }
%"class.juce::Label" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::SettableTooltipClient", %"class.juce::TextEditor::Listener", %"class.juce::ComponentListener", %"class.juce::Value::Listener", %"class.juce::Value", %"class.juce::String", %"class.juce::Font", %"class.juce::Justification", [4 x i8], %"class.juce::ScopedPointer.275", %"class.juce::ListenerList.276", %"class.juce::WeakReference", %"class.juce::BorderSize", float, i32, i8, i8, i8, i8, [4 x i8] }>
%"class.juce::ComponentListener" = type { ptr }
%"class.juce::Justification" = type { i32 }
%"class.juce::ScopedPointer.275" = type { ptr }
%"class.juce::ListenerList.276" = type { %"class.juce::Array.277" }
%"class.juce::Array.277" = type { %"class.juce::ArrayAllocationBase.278", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.278" = type <{ %"class.juce::HeapBlock.279", i32, [4 x i8] }>
%"class.juce::HeapBlock.279" = type { ptr }
%"class.juce::ScopedPointer.282" = type { ptr }
%"class.juce::TimeSliceThread" = type { %"class.juce::Thread.base", %"class.juce::CriticalSection", %"class.juce::CriticalSection", %"class.juce::Array.225", ptr }
%"class.juce::Thread.base" = type <{ ptr, %"class.juce::String", ptr, ptr, %"class.juce::CriticalSection", %"class.juce::WaitableEvent", %"class.juce::WaitableEvent", i32, [4 x i8], i64, i32, i8 }>
%"class.juce::WaitableEvent" = type <{ %union.pthread_cond_t, %union.pthread_mutex_t, i8, i8, [6 x i8] }>
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%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 }
%"class.juce::CriticalSection" = type { %union.pthread_mutex_t }
%"class.juce::Array.225" = type { %"class.juce::ArrayAllocationBase.226", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.226" = type <{ %"class.juce::HeapBlock.227", i32, [4 x i8] }>
%"class.juce::HeapBlock.227" = type { ptr }
%"class.juce::FileChooserDialogBox" = type <{ %"class.juce::ResizableWindow", %"class.juce::Button::Listener", %"class.juce::FileBrowserListener", ptr, i8, [7 x i8] }>
%"class.juce::ResizableWindow" = type { %"class.juce::TopLevelWindow", %"class.juce::ScopedPointer.294", %"class.juce::ScopedPointer.295", %"class.juce::Component::SafePointer", i8, i8, i8, i8, i8, %"class.juce::ComponentDragger", %"class.juce::Rectangle", %"class.juce::ComponentBoundsConstrainer", ptr }
%"class.juce::TopLevelWindow" = type { %"class.juce::Component.base", i8, i8, i8, %"class.juce::ScopedPointer.293" }
%"class.juce::ScopedPointer.293" = type { ptr }
%"class.juce::ScopedPointer.294" = type { ptr }
%"class.juce::ScopedPointer.295" = type { ptr }
%"class.juce::Component::SafePointer" = type { %"class.juce::WeakReference" }
%"class.juce::ComponentDragger" = type { ptr, %"class.juce::Point" }
%"class.juce::ComponentBoundsConstrainer" = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, double }

@.str.136 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

declare void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce20FileBrowserComponent15getSelectedFileEi(ptr dead_on_unwind noalias writable sret(%"class.juce::File") align 8, ptr noundef nonnull align 8 dereferenceable(2137), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce11FileChooser10showDialogEiPNS_20FilePreviewComponentE(ptr noundef nonnull align 8 dereferenceable(50) %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.juce::FocusRestorer", align 8
  %5 = alloca i8, align 1
  %6 = alloca %"class.juce::WildcardFileFilter", align 8
  %7 = alloca %"class.juce::String", align 8
  %8 = alloca %"class.juce::String", align 8
  %9 = alloca %"class.juce::String", align 8
  %10 = alloca %"class.juce::FileBrowserComponent", align 8
  %11 = alloca %"class.juce::FileChooserDialogBox", align 8
  %12 = alloca %"class.juce::String", align 8
  %13 = alloca %"class.juce::Colour", align 1
  %14 = alloca %"class.juce::File", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN4juce13FocusRestorerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  invoke void @_ZN4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %15)
          to label %16 unwind label %37

16:                                               ; preds = %3
  %17 = and i32 %1, 8
  %18 = icmp ne i32 %17, 0
  %19 = and i32 %1, 4
  %20 = icmp ne i32 %19, 0
  %21 = and i32 %1, 128
  %22 = icmp ne i32 %21, 0
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  %23 = and i32 %1, 16
  %.lobit = lshr exact i32 %23, 4
  %24 = trunc nuw nsw i32 %.lobit to i8
  store i8 %24, ptr %5, align 1, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 48
  %26 = load i8, ptr %25, align 8, !tbaa !9, !range !19, !noundef !20
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %28, label %41

28:                                               ; preds = %16
  %29 = icmp ne i32 %23, 0
  %30 = and i32 %1, 2
  %31 = icmp ne i32 %30, 0
  %32 = getelementptr inbounds i8, ptr %0, i64 16
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  %34 = getelementptr inbounds i8, ptr %0, i64 49
  %35 = load i8, ptr %34, align 1, !tbaa !21, !range !19, !noundef !20
  %36 = trunc nuw i8 %35 to i1
  invoke void @_ZN4juce11FileChooser18showPlatformDialogERNS_5ArrayINS_4FileENS_20DummyCriticalSectionELi0EEERKNS_6StringERKS2_S8_bbbbbbPNS_20FilePreviewComponentE(ptr noundef nonnull align 8 dereferenceable(20) %15, ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33, i1 noundef zeroext %18, i1 noundef zeroext %20, i1 noundef zeroext %31, i1 noundef zeroext %22, i1 noundef zeroext %29, i1 noundef zeroext %36, ptr noundef %2)
          to label %82 unwind label %39

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

39:                                               ; preds = %28
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %85

41:                                               ; preds = %16
  call void @_ZN4juce12ignoreUnusedIbEEvRKT_(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  br i1 %20, label %42, label %44

42:                                               ; preds = %41
  %43 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %43) #6
  br label %45

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

45:                                               ; preds = %44, %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  br i1 %18, label %46, label %47

46:                                               ; preds = %45
  invoke void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @.str.136)
          to label %48 unwind label %58

47:                                               ; preds = %45
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %48

48:                                               ; preds = %46, %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  invoke void @_ZN4juce18WildcardFileFilterC1ERKNS_6StringES3_S3_(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %49 unwind label %60

49:                                               ; preds = %48
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 2144, ptr nonnull %10) #6
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZN4juce20FileBrowserComponentC1EiRKNS_4FileEPKNS_10FileFilterEPNS_20FilePreviewComponentE(ptr noundef nonnull align 8 dereferenceable(2137) %10, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull %6, ptr noundef %2)
          to label %51 unwind label %63

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 360, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %13, ptr noundef nonnull align 8 dereferenceable(197) %10, i32 noundef 16783360, i1 noundef zeroext false)
          to label %52 unwind label %65

52:                                               ; preds = %51
  invoke void @_ZN4juce20FileChooserDialogBoxC1ERKNS_6StringES3_RNS_20FileBrowserComponentEbNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(353) %11, ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(2137) %10, i1 noundef zeroext %22, ptr noundef nonnull %13)
          to label %53 unwind label %67

53:                                               ; preds = %52
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  %54 = invoke noundef zeroext i1 @_ZN4juce20FileChooserDialogBox4showEii(ptr noundef nonnull align 8 dereferenceable(353) %11, i32 noundef 0, i32 noundef 0)
          to label %55 unwind label %70

55:                                               ; preds = %53
  br i1 %54, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %55
  %56 = call noundef i32 @_ZNK4juce20FileBrowserComponent19getNumSelectedFilesEv(ptr noundef nonnull align 8 dereferenceable(2137) %10) #6
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph, label %.loopexit

58:                                               ; preds = %46
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %62

60:                                               ; preds = %48
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %62

62:                                               ; preds = %60, %58
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %81

63:                                               ; preds = %49
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %80

65:                                               ; preds = %51
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %52
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #6
  br label %69

69:                                               ; preds = %67, %65
  %.pn30 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %79

70:                                               ; preds = %53
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %78

.lr.ph:                                           ; preds = %.preheader, %72
  %.040 = phi i32 [ %73, %72 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  call void @_ZNK4juce20FileBrowserComponent15getSelectedFileEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %14, ptr noundef nonnull align 8 dereferenceable(2137) %10, i32 noundef %.040) #6
  invoke void @_ZN4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EE3addEOS1_(ptr noundef nonnull align 8 dereferenceable(20) %15, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %72 unwind label %76

72:                                               ; preds = %.lr.ph
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  %73 = add nuw nsw i32 %.040, 1
  %74 = call noundef i32 @_ZNK4juce20FileBrowserComponent19getNumSelectedFilesEv(ptr noundef nonnull align 8 dereferenceable(2137) %10) #6
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %.lr.ph, label %.loopexit, !llvm.loop !22

76:                                               ; preds = %.lr.ph
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %78

.loopexit:                                        ; preds = %72, %.preheader, %55
  call void @_ZN4juce20FileChooserDialogBoxD1Ev(ptr noundef nonnull align 8 dereferenceable(353) %11) #6
  call void @llvm.lifetime.end.p0(i64 360, ptr nonnull %11) #6
  call void @_ZN4juce20FileBrowserComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(2137) %10) #6
  call void @llvm.lifetime.end.p0(i64 2144, ptr nonnull %10) #6
  call void @_ZN4juce18WildcardFileFilterD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  br label %82

78:                                               ; preds = %76, %70
  %.pn32 = phi { ptr, i32 } [ %77, %76 ], [ %71, %70 ]
  call void @_ZN4juce20FileChooserDialogBoxD1Ev(ptr noundef nonnull align 8 dereferenceable(353) %11) #6
  br label %79

79:                                               ; preds = %78, %69
  %.pn32.pn = phi { ptr, i32 } [ %.pn32, %78 ], [ %.pn30, %69 ]
  call void @llvm.lifetime.end.p0(i64 360, ptr nonnull %11) #6
  call void @_ZN4juce20FileBrowserComponentD1Ev(ptr noundef nonnull align 8 dereferenceable(2137) %10) #6
  br label %80

80:                                               ; preds = %79, %63
  %.pn32.pn.pn = phi { ptr, i32 } [ %.pn32.pn, %79 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 2144, ptr nonnull %10) #6
  call void @_ZN4juce18WildcardFileFilterD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #6
  br label %81

81:                                               ; preds = %80, %62
  %.pn32.pn.pn.pn = phi { ptr, i32 } [ %.pn32.pn.pn, %80 ], [ %.pn, %62 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  br label %85

82:                                               ; preds = %28, %.loopexit
  %83 = call noundef i32 @_ZNK4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %15) #6
  %84 = icmp sgt i32 %83, 0
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @_ZN4juce13FocusRestorerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret i1 %84

85:                                               ; preds = %81, %39
  %.pn37 = phi { ptr, i32 } [ %40, %39 ], [ %.pn32.pn.pn.pn, %81 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %86

86:                                               ; preds = %85, %37
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %85 ], [ %38, %37 ]
  call void @_ZN4juce13FocusRestorerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn37.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce11FileChooser18showPlatformDialogERNS_5ArrayINS_4FileENS_20DummyCriticalSectionELi0EEERKNS_6StringERKS2_S8_bbbbbbPNS_20FilePreviewComponentE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2 align 2

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

declare void @_ZN4juce18WildcardFileFilterC1ERKNS_6StringES3_S3_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4juce20FileChooserDialogBox4showEii(ptr noundef nonnull align 8 dereferenceable(353), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EE3addEOS1_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce18WildcardFileFilterD1Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #0

declare void @_ZN4juce20FileBrowserComponentC1EiRKNS_4FileEPKNS_10FileFilterEPNS_20FilePreviewComponentE(ptr, i32, ptr, ptr, ptr) local_unnamed_addr

declare void @_ZN4juce20FileBrowserComponentD1Ev(ptr) local_unnamed_addr

declare void @_ZN4juce20FileChooserDialogBoxC1ERKNS_6StringES3_RNS_20FileBrowserComponentEbNS_6ColourE(ptr, ptr, ptr, ptr, i1, ptr) local_unnamed_addr

declare void @_ZN4juce20FileChooserDialogBoxD1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 48}
!10 = !{!"_ZTSN4juce11FileChooserE", !11, i64 0, !11, i64 8, !14, i64 16, !15, i64 24, !6, i64 48, !6, i64 49}
!11 = !{!"_ZTSN4juce6StringE", !12, i64 0}
!12 = !{!"_ZTSN4juce16CharPointer_UTF8E", !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"_ZTSN4juce4FileE", !11, i64 0}
!15 = !{!"_ZTSN4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EEE", !16, i64 0, !18, i64 16}
!16 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_4FileENS_20DummyCriticalSectionEEE", !17, i64 0, !18, i64 8}
!17 = !{!"_ZTSN4juce9HeapBlockINS_4FileELb0EEE", !13, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!10, !6, i64 49}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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