; 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::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::File" = type { %"class.juce::String" }
%"class.juce::FileChooser" = type <{ %"class.juce::String", %"class.juce::String", %"class.juce::File", %"class.juce::Array.233", i8, i8, [6 x i8] }>
%"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::FileSearchPathListComponent" = type { %"class.juce::Component.base", %"class.juce::SettableTooltipClient", %"class.juce::FileDragAndDropTarget", %"class.juce::Button::Listener", %"class.juce::ListBoxModel", %"class.juce::FileSearchPath", %"class.juce::File", %"class.juce::ListBox", %"class.juce::TextButton", %"class.juce::TextButton", %"class.juce::TextButton", %"class.juce::DrawableButton", %"class.juce::DrawableButton" }
%"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::SettableTooltipClient" = type { %"class.juce::TooltipClient", %"class.juce::String" }
%"class.juce::TooltipClient" = type { ptr }
%"class.juce::FileDragAndDropTarget" = type { ptr }
%"class.juce::Button::Listener" = type { ptr }
%"class.juce::ListBoxModel" = type { ptr }
%"class.juce::FileSearchPath" = type { %"class.juce::StringArray" }
%"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::ListBox" = type { %"class.juce::Component.base", %"class.juce::SettableTooltipClient", ptr, %"class.juce::ScopedPointer.286", %"class.juce::ScopedPointer.159", %"class.juce::ScopedPointer.287", i32, i32, i32, i32, i32, i8, i8, i8, i8, %"class.juce::SparseSet" }
%"class.juce::ScopedPointer.286" = type { ptr }
%"class.juce::ScopedPointer.159" = type { ptr }
%"class.juce::ScopedPointer.287" = type { ptr }
%"class.juce::SparseSet" = type { %"class.juce::Array.288" }
%"class.juce::Array.288" = type { %"class.juce::ArrayAllocationBase.289", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.289" = type <{ %"class.juce::HeapBlock.290", i32, [4 x i8] }>
%"class.juce::HeapBlock.290" = type { ptr }
%"class.juce::TextButton" = type { %"class.juce::Button.base", i8 }
%"class.juce::Button.base" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::SettableTooltipClient", %"class.juce::Array.104", %"class.juce::WeakReference", %"class.juce::String", %"class.juce::ListenerList.109", %"class.juce::ScopedPointer.115", i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, %"class.juce::Value", i8, i8, i8, i8, i8, i8, i8 }>
%"class.juce::Array.104" = type { %"class.juce::ArrayAllocationBase.105", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.105" = type <{ %"class.juce::HeapBlock.106", i32, [4 x i8] }>
%"class.juce::HeapBlock.106" = type { ptr }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ListenerList.109" = type { %"class.juce::Array.110" }
%"class.juce::Array.110" = type { %"class.juce::ArrayAllocationBase.111", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.111" = type <{ %"class.juce::HeapBlock.112", i32, [4 x i8] }>
%"class.juce::HeapBlock.112" = type { ptr }
%"class.juce::ScopedPointer.115" = 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::DrawableButton" = type <{ %"class.juce::Button.base", i8, i32, [4 x i8], %"class.juce::ScopedPointer.89", %"class.juce::ScopedPointer.89", %"class.juce::ScopedPointer.89", %"class.juce::ScopedPointer.89", %"class.juce::ScopedPointer.89", %"class.juce::ScopedPointer.89", %"class.juce::ScopedPointer.89", %"class.juce::ScopedPointer.89", ptr, i32, [4 x i8] }>
%"class.juce::ScopedPointer.89" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

; 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

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

declare void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef) #2

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

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

declare noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

declare void @_ZN4juce4File26getCurrentWorkingDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::File") align 8) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4juce11FileChooser18browseForDirectoryEv(ptr noundef nonnull align 8 dereferenceable(50)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce11FileChooser9getResultEv(ptr dead_on_unwind noalias writable sret(%"class.juce::File") align 8, ptr noundef nonnull align 8 dereferenceable(50)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4juce7ListBox14getSelectedRowEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef, i1 noundef zeroext, i1 noundef zeroext) #4 align 2

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

declare noundef i32 @_ZNK4juce14FileSearchPath11getNumPathsEv(ptr noundef nonnull align 8 dereferenceable(24)) #2

declare void @_ZNK4juce14FileSearchPathixEi(ptr dead_on_unwind writable sret(%"class.juce::File") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2

declare void @_ZN4juce14FileSearchPath6removeEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2

declare void @_ZN4juce14FileSearchPath3addERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce27FileSearchPathListComponent13buttonClickedEPNS_6ButtonE(ptr noundef nonnull align 8 dereferenceable(2624) %0, ptr noundef %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.juce::File", align 8
  %7 = alloca %"class.juce::File", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.juce::File", align 8
  %11 = alloca %"class.juce::File", align 8
  %12 = alloca %"class.juce::File", align 8
  %13 = alloca %"class.juce::FileChooser", align 8
  %14 = alloca %"class.juce::String", align 8
  %15 = alloca %"class.juce::String", align 8
  %16 = alloca %"class.juce::File", align 8
  %17 = alloca %"class.juce::File", align 8
  %18 = alloca %"class.juce::File", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %20 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 7
  %21 = call noundef i32 @_ZNK4juce7ListBox14getSelectedRowEi(ptr noundef nonnull align 8 dereferenceable(296) %20, i32 noundef 0)
  store i32 %21, ptr %5, align 4, !tbaa !9
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 9
  %24 = icmp eq ptr %22, %23
  br i1 %24, label %25, label %30

25:                                               ; preds = %2
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = load ptr, ptr %19, align 8, !tbaa !11
  %28 = getelementptr inbounds ptr, ptr %27, i64 47
  %29 = load ptr, ptr %28, align 8
  call void %29(ptr noundef nonnull align 8 dereferenceable(2624) %19, i32 noundef %26)
  br label %182

30:                                               ; preds = %2
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 8
  %33 = icmp eq ptr %31, %32
  br i1 %33, label %34, label %106

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %35 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 6
  call void @_ZN4juce4FileC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %35)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @_ZN4juce4FileC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %36 = invoke noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %37 unwind label %42

37:                                               ; preds = %34
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br i1 %36, label %38, label %50

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %39 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 5
  invoke void @_ZNK4juce14FileSearchPathixEi(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %39, i32 noundef 0)
          to label %40 unwind label %46

40:                                               ; preds = %38
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce4FileaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %50

42:                                               ; preds = %34
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %8, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %9, align 4
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %105

46:                                               ; preds = %38
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %8, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %105

50:                                               ; preds = %40, %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @_ZN4juce4FileC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %51 = invoke noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %52 unwind label %56

52:                                               ; preds = %50
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br i1 %51, label %53, label %64

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  invoke void @_ZN4juce4File26getCurrentWorkingDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %12)
          to label %54 unwind label %60

54:                                               ; preds = %53
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce4FileaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %64

56:                                               ; preds = %50
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %8, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %9, align 4
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %105

60:                                               ; preds = %53
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %8, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %105

64:                                               ; preds = %54, %52
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %14, ptr noundef @.str.167)
          to label %65 unwind label %75

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  invoke void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef @.str.136)
          to label %66 unwind label %79

66:                                               ; preds = %65
  invoke void @_ZN4juce11FileChooserC1ERKNS_6StringERKNS_4FileES3_bb(ptr noundef nonnull align 8 dereferenceable(50) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %15, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %67 unwind label %83

67:                                               ; preds = %66
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %68 = invoke noundef zeroext i1 @_ZN4juce11FileChooser18browseForDirectoryEv(ptr noundef nonnull align 8 dereferenceable(50) %13)
          to label %69 unwind label %89

69:                                               ; preds = %67
  br i1 %68, label %70, label %102

70:                                               ; preds = %69
  %71 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  invoke void @_ZNK4juce11FileChooser9getResultEv(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %16, ptr noundef nonnull align 8 dereferenceable(50) %13)
          to label %72 unwind label %93

72:                                               ; preds = %70
  %73 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN4juce14FileSearchPath3addERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef %73)
          to label %74 unwind label %97

74:                                               ; preds = %72
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %102

75:                                               ; preds = %64
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %8, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %9, align 4
  br label %88

79:                                               ; preds = %65
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %8, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %9, align 4
  br label %87

83:                                               ; preds = %66
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %8, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %9, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %87

87:                                               ; preds = %83, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br label %88

88:                                               ; preds = %87, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %104

89:                                               ; preds = %67
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %8, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %9, align 4
  br label %103

93:                                               ; preds = %70
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %8, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %9, align 4
  br label %101

97:                                               ; preds = %72
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %8, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %9, align 4
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br label %101

101:                                              ; preds = %97, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %103

102:                                              ; preds = %74, %69
  call void @_ZN4juce11FileChooserD1Ev(ptr noundef nonnull align 8 dereferenceable(50) %13) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #5
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %181

103:                                              ; preds = %101, %89
  call void @_ZN4juce11FileChooserD1Ev(ptr noundef nonnull align 8 dereferenceable(50) %13) #5
  br label %104

104:                                              ; preds = %103, %88
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #5
  br label %105

105:                                              ; preds = %104, %60, %56, %46, %42
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %183

106:                                              ; preds = %30
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 10
  %109 = icmp eq ptr %107, %108
  br i1 %109, label %110, label %115

110:                                              ; preds = %106
  %111 = load i32, ptr %5, align 4, !tbaa !9
  %112 = load ptr, ptr %19, align 8, !tbaa !11
  %113 = getelementptr inbounds ptr, ptr %112, i64 48
  %114 = load ptr, ptr %113, align 8
  call void %114(ptr noundef nonnull align 8 dereferenceable(2624) %19, i32 noundef %111)
  br label %180

115:                                              ; preds = %106
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 11
  %118 = icmp eq ptr %116, %117
  br i1 %118, label %119, label %146

119:                                              ; preds = %115
  %120 = load i32, ptr %5, align 4, !tbaa !9
  %121 = icmp sgt i32 %120, 0
  br i1 %121, label %122, label %145

122:                                              ; preds = %119
  %123 = load i32, ptr %5, align 4, !tbaa !9
  %124 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 5
  %125 = call noundef i32 @_ZNK4juce14FileSearchPath11getNumPathsEv(ptr noundef nonnull align 8 dereferenceable(24) %124)
  %126 = icmp slt i32 %123, %125
  br i1 %126, label %127, label %145

127:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %128 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 5
  %129 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZNK4juce14FileSearchPathixEi(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %128, i32 noundef %129)
  %130 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 5
  %131 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN4juce14FileSearchPath6removeEi(ptr noundef nonnull align 8 dereferenceable(24) %130, i32 noundef %131)
          to label %132 unwind label %141

132:                                              ; preds = %127
  %133 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 5
  %134 = load i32, ptr %5, align 4, !tbaa !9
  %135 = sub nsw i32 %134, 1
  invoke void @_ZN4juce14FileSearchPath3addERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(24) %133, ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef %135)
          to label %136 unwind label %141

136:                                              ; preds = %132
  %137 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 7
  %138 = load i32, ptr %5, align 4, !tbaa !9
  %139 = sub nsw i32 %138, 1
  invoke void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %137, i32 noundef %139, i1 noundef zeroext false, i1 noundef zeroext true)
          to label %140 unwind label %141

140:                                              ; preds = %136
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %145

141:                                              ; preds = %136, %132, %127
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %8, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %9, align 4
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %183

145:                                              ; preds = %140, %122, %119
  br label %179

146:                                              ; preds = %115
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 12
  %149 = icmp eq ptr %147, %148
  br i1 %149, label %150, label %178

150:                                              ; preds = %146
  %151 = load i32, ptr %5, align 4, !tbaa !9
  %152 = icmp sge i32 %151, 0
  br i1 %152, label %153, label %177

153:                                              ; preds = %150
  %154 = load i32, ptr %5, align 4, !tbaa !9
  %155 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 5
  %156 = call noundef i32 @_ZNK4juce14FileSearchPath11getNumPathsEv(ptr noundef nonnull align 8 dereferenceable(24) %155)
  %157 = sub nsw i32 %156, 1
  %158 = icmp slt i32 %154, %157
  br i1 %158, label %159, label %177

159:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %160 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 5
  %161 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZNK4juce14FileSearchPathixEi(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %160, i32 noundef %161)
  %162 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 5
  %163 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN4juce14FileSearchPath6removeEi(ptr noundef nonnull align 8 dereferenceable(24) %162, i32 noundef %163)
          to label %164 unwind label %173

164:                                              ; preds = %159
  %165 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 5
  %166 = load i32, ptr %5, align 4, !tbaa !9
  %167 = add nsw i32 %166, 1
  invoke void @_ZN4juce14FileSearchPath3addERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(24) %165, ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef %167)
          to label %168 unwind label %173

168:                                              ; preds = %164
  %169 = getelementptr inbounds %"class.juce::FileSearchPathListComponent", ptr %19, i32 0, i32 7
  %170 = load i32, ptr %5, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  invoke void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %169, i32 noundef %171, i1 noundef zeroext false, i1 noundef zeroext true)
          to label %172 unwind label %173

172:                                              ; preds = %168
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %177

173:                                              ; preds = %168, %164, %159
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %8, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %9, align 4
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %183

177:                                              ; preds = %172, %153, %150
  br label %178

178:                                              ; preds = %177, %146
  br label %179

179:                                              ; preds = %178, %145
  br label %180

180:                                              ; preds = %179, %110
  br label %181

181:                                              ; preds = %180, %102
  br label %182

182:                                              ; preds = %181, %25
  call void @_ZN4juce27FileSearchPathListComponent7changedEv(ptr noundef nonnull align 8 dereferenceable(2624) %19)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void

183:                                              ; preds = %173, %141, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %184

184:                                              ; preds = %183
  %185 = load ptr, ptr %8, align 8
  %186 = load i32, ptr %9, align 4
  %187 = insertvalue { ptr, i32 } poison, ptr %185, 0
  %188 = insertvalue { ptr, i32 } %187, i32 %186, 1
  resume { ptr, i32 } %188
}

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

declare void @_ZN4juce11FileChooserD1Ev(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 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"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 }
%"class.juce::File" = type { %"class.juce::String" }
%"class.juce::FileChooser" = type <{ %"class.juce::String", %"class.juce::String", %"class.juce::File", %"class.juce::Array.233", i8, i8, [6 x i8] }>
%"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 }

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

declare i32 @__gxx_personality_v0(...)

; 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

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

declare void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef) local_unnamed_addr #2

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

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

declare noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

declare void @_ZN4juce4File26getCurrentWorkingDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::File") align 8) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4juce11FileChooser18browseForDirectoryEv(ptr noundef nonnull align 8 dereferenceable(50)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4juce7ListBox14getSelectedRowEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) local_unnamed_addr #4 align 2

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

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

declare noundef i32 @_ZNK4juce14FileSearchPath11getNumPathsEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

declare void @_ZNK4juce14FileSearchPathixEi(ptr dead_on_unwind writable sret(%"class.juce::File") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #2

declare void @_ZN4juce14FileSearchPath6removeEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #2

declare void @_ZN4juce14FileSearchPath3addERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce27FileSearchPathListComponent13buttonClickedEPNS_6ButtonE(ptr noundef nonnull align 8 dereferenceable(2624) %0, ptr noundef readnone %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::File", align 8
  %4 = alloca %"class.juce::File", align 8
  %5 = alloca %"class.juce::File", align 8
  %6 = alloca %"class.juce::File", align 8
  %7 = alloca %"class.juce::File", align 8
  %8 = alloca %"class.juce::FileChooser", align 8
  %9 = alloca %"class.juce::String", align 8
  %10 = alloca %"class.juce::String", align 8
  %11 = alloca %"class.juce::File", align 8
  %12 = alloca %"class.juce::File", align 8
  %13 = alloca %"class.juce::File", align 8
  %14 = getelementptr inbounds i8, ptr %0, i64 272
  %15 = tail call noundef i32 @_ZNK4juce7ListBox14getSelectedRowEi(ptr noundef nonnull align 8 dereferenceable(296) %14, i32 noundef 0)
  %16 = getelementptr inbounds i8, ptr %0, i64 944
  %17 = icmp eq ptr %16, %1
  br i1 %17, label %18, label %22

18:                                               ; preds = %2
  %19 = load ptr, ptr %0, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 376
  %21 = load ptr, ptr %20, align 8
  tail call void %21(ptr noundef nonnull align 8 dereferenceable(2624) %0, i32 noundef %15)
  br label %115

22:                                               ; preds = %2
  %23 = getelementptr inbounds i8, ptr %0, i64 568
  %24 = icmp eq ptr %23, %1
  br i1 %24, label %25, label %76

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %26 = getelementptr inbounds i8, ptr %0, i64 264
  call void @_ZN4juce4FileC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %26)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @_ZN4juce4FileC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %27 = invoke noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %28 unwind label %33

28:                                               ; preds = %25
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br i1 %27, label %29, label %37

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %30 = getelementptr inbounds i8, ptr %0, i64 240
  invoke void @_ZNK4juce14FileSearchPathixEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %30, i32 noundef 0)
          to label %31 unwind label %35

31:                                               ; preds = %29
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce4FileaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %37

33:                                               ; preds = %25
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %75

35:                                               ; preds = %29
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %75

37:                                               ; preds = %31, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @_ZN4juce4FileC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %38 = invoke noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %39 unwind label %43

39:                                               ; preds = %37
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %38, label %40, label %47

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  invoke void @_ZN4juce4File26getCurrentWorkingDirectoryEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %7)
          to label %41 unwind label %45

41:                                               ; preds = %40
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce4FileaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %47

43:                                               ; preds = %37
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %75

45:                                               ; preds = %40
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %75

47:                                               ; preds = %41, %39
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %9, ptr noundef nonnull @.str.167)
          to label %48 unwind label %57

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  invoke void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull @.str.136)
          to label %49 unwind label %59

49:                                               ; preds = %48
  invoke void @_ZN4juce11FileChooserC1ERKNS_6StringERKNS_4FileES3_bb(ptr noundef nonnull align 8 dereferenceable(50) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %10, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %50 unwind label %61

50:                                               ; preds = %49
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %51 = invoke noundef zeroext i1 @_ZN4juce11FileChooser18browseForDirectoryEv(ptr noundef nonnull align 8 dereferenceable(50) %8)
          to label %52 unwind label %65

52:                                               ; preds = %50
  br i1 %51, label %53, label %72

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  invoke void @_ZNK4juce11FileChooser9getResultEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %11, ptr noundef nonnull align 8 dereferenceable(50) %8)
          to label %54 unwind label %67

54:                                               ; preds = %53
  %55 = getelementptr inbounds i8, ptr %0, i64 240
  invoke void @_ZN4juce14FileSearchPath3addERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef %15)
          to label %56 unwind label %69

56:                                               ; preds = %54
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %72

57:                                               ; preds = %47
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %64

59:                                               ; preds = %48
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %49
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %63

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

64:                                               ; preds = %63, %57
  %.pn.pn = phi { ptr, i32 } [ %.pn, %63 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %74

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

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

69:                                               ; preds = %54
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %71

71:                                               ; preds = %69, %67
  %.pn35 = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %73

72:                                               ; preds = %56, %52
  call void @_ZN4juce11FileChooserD1Ev(ptr noundef nonnull align 8 dereferenceable(50) %8) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #5
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %115

73:                                               ; preds = %71, %65
  %.pn35.pn = phi { ptr, i32 } [ %.pn35, %71 ], [ %66, %65 ]
  call void @_ZN4juce11FileChooserD1Ev(ptr noundef nonnull align 8 dereferenceable(50) %8) #5
  br label %74

74:                                               ; preds = %73, %64
  %.pn35.pn.pn = phi { ptr, i32 } [ %.pn35.pn, %73 ], [ %.pn.pn, %64 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #5
  br label %75

75:                                               ; preds = %74, %45, %43, %35, %33
  %.pn35.pn.pn.pn = phi { ptr, i32 } [ %.pn35.pn.pn, %74 ], [ %46, %45 ], [ %44, %43 ], [ %36, %35 ], [ %34, %33 ]
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %116

76:                                               ; preds = %22
  %77 = getelementptr inbounds i8, ptr %0, i64 1320
  %78 = icmp eq ptr %77, %1
  br i1 %78, label %79, label %83

79:                                               ; preds = %76
  %80 = load ptr, ptr %0, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i64 384
  %82 = load ptr, ptr %81, align 8
  tail call void %82(ptr noundef nonnull align 8 dereferenceable(2624) %0, i32 noundef %15)
  br label %115

83:                                               ; preds = %76
  %84 = getelementptr inbounds i8, ptr %0, i64 1696
  %85 = icmp eq ptr %84, %1
  br i1 %85, label %86, label %99

86:                                               ; preds = %83
  %87 = icmp sgt i32 %15, 0
  br i1 %87, label %88, label %115

88:                                               ; preds = %86
  %89 = getelementptr inbounds i8, ptr %0, i64 240
  %90 = tail call noundef i32 @_ZNK4juce14FileSearchPath11getNumPathsEv(ptr noundef nonnull align 8 dereferenceable(24) %89)
  %91 = icmp slt i32 %15, %90
  br i1 %91, label %92, label %115

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @_ZNK4juce14FileSearchPathixEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %89, i32 noundef %15)
  invoke void @_ZN4juce14FileSearchPath6removeEi(ptr noundef nonnull align 8 dereferenceable(24) %89, i32 noundef %15)
          to label %93 unwind label %97

93:                                               ; preds = %92
  %94 = add nsw i32 %15, -1
  invoke void @_ZN4juce14FileSearchPath3addERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(24) %89, ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef %94)
          to label %95 unwind label %97

95:                                               ; preds = %93
  invoke void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %14, i32 noundef %94, i1 noundef zeroext false, i1 noundef zeroext true)
          to label %96 unwind label %97

96:                                               ; preds = %95
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %115

97:                                               ; preds = %95, %93, %92
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %116

99:                                               ; preds = %83
  %100 = getelementptr inbounds i8, ptr %0, i64 2160
  %101 = icmp eq ptr %100, %1
  %102 = icmp sgt i32 %15, -1
  %or.cond = and i1 %101, %102
  br i1 %or.cond, label %103, label %115

103:                                              ; preds = %99
  %104 = getelementptr inbounds i8, ptr %0, i64 240
  %105 = tail call noundef i32 @_ZNK4juce14FileSearchPath11getNumPathsEv(ptr noundef nonnull align 8 dereferenceable(24) %104)
  %106 = add nsw i32 %105, -1
  %107 = icmp slt i32 %15, %106
  br i1 %107, label %108, label %115

108:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  call void @_ZNK4juce14FileSearchPathixEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %104, i32 noundef %15)
  invoke void @_ZN4juce14FileSearchPath6removeEi(ptr noundef nonnull align 8 dereferenceable(24) %104, i32 noundef %15)
          to label %109 unwind label %113

109:                                              ; preds = %108
  %110 = add nuw nsw i32 %15, 1
  invoke void @_ZN4juce14FileSearchPath3addERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(24) %104, ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %110)
          to label %111 unwind label %113

111:                                              ; preds = %109
  invoke void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %14, i32 noundef %110, i1 noundef zeroext false, i1 noundef zeroext true)
          to label %112 unwind label %113

112:                                              ; preds = %111
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br label %115

113:                                              ; preds = %111, %109, %108
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br label %116

115:                                              ; preds = %72, %96, %88, %86, %103, %112, %99, %79, %18
  call void @_ZN4juce27FileSearchPathListComponent7changedEv(ptr noundef nonnull align 8 dereferenceable(2624) %0)
  ret void

116:                                              ; preds = %113, %97, %75
  %.pn35.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn35.pn.pn.pn, %75 ], [ %98, %97 ], [ %114, %113 ]
  resume { ptr, i32 } %.pn35.pn.pn.pn.pn
}

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

declare void @_ZN4juce11FileChooserD1Ev(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 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


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