; 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::StringRef" = type { %"class.juce::CharPointer_UTF8" }
%"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::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::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::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::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ComponentDragger" = type { ptr, %"class.juce::Point" }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::ComponentBoundsConstrainer" = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, double }
%"class.juce::Button::Listener" = type { ptr }
%"class.juce::FileBrowserListener" = type { ptr }
%"class.juce::FileChooserDialogBox::ContentComponent" = type { %"class.juce::Component.base", ptr, %"class.juce::TextButton", %"class.juce::TextButton", %"class.juce::TextButton", %"class.juce::String", %"class.juce::TextLayout" }
%"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::SettableTooltipClient" = type { %"class.juce::TooltipClient", %"class.juce::String" }
%"class.juce::TooltipClient" = type { ptr }
%"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::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::TextLayout" = type { %"class.juce::OwnedArray.296", float, float, %"class.juce::Justification", [4 x i8] }
%"class.juce::OwnedArray.296" = type { %"class.juce::ArrayAllocationBase.297", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.297" = type <{ %"class.juce::HeapBlock.298", i32, [4 x i8] }>
%"class.juce::HeapBlock.298" = type { ptr }
%"class.juce::Justification" = type { i32 }

@.str.147 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [7 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

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

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

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

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

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

declare noundef zeroext i1 @_ZNK4juce4File6existsEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce20FileBrowserComponent10isSaveModeEv(ptr noundef nonnull align 8 dereferenceable(2137)) #4 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) #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce20FileChooserDialogBox15okButtonPressedEv(ptr noundef nonnull align 8 dereferenceable(353) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.juce::File", align 8
  %4 = alloca i1, align 1
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.juce::String", align 8
  %9 = alloca %"class.juce::String", align 8
  %10 = alloca %"class.juce::String", align 8
  %11 = alloca %"class.juce::String", align 8
  %12 = alloca %"class.juce::String", align 8
  %13 = alloca %"class.juce::StringRef", align 8
  %14 = alloca %"class.juce::StringRef", align 8
  %15 = alloca %"class.juce::File", align 8
  %16 = alloca %"class.juce::String", align 8
  %17 = alloca %"class.juce::String", align 8
  %18 = alloca %"class.juce::String", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8
  %20 = getelementptr inbounds %"class.juce::FileChooserDialogBox", ptr %19, i32 0, i32 4
  %21 = load i8, ptr %20, align 8, !tbaa !9, !range !50, !noundef !51
  %22 = trunc i8 %21 to i1
  store i1 false, ptr %4, align 1
  store i1 false, ptr %5, align 1
  br i1 %22, label %23, label %36

23:                                               ; preds = %1
  %24 = getelementptr inbounds %"class.juce::FileChooserDialogBox", ptr %19, i32 0, i32 3
  %25 = load ptr, ptr %24, align 8, !tbaa !52
  %26 = getelementptr inbounds %"class.juce::FileChooserDialogBox::ContentComponent", ptr %25, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !53
  %28 = call noundef zeroext i1 @_ZNK4juce20FileBrowserComponent10isSaveModeEv(ptr noundef nonnull align 8 dereferenceable(2137) %27) #5
  br i1 %28, label %29, label %36

29:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  store i1 true, ptr %4, align 1
  %30 = getelementptr inbounds %"class.juce::FileChooserDialogBox", ptr %19, i32 0, i32 3
  %31 = load ptr, ptr %30, align 8, !tbaa !52
  %32 = getelementptr inbounds %"class.juce::FileChooserDialogBox::ContentComponent", ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !53
  call void @_ZNK4juce20FileBrowserComponent15getSelectedFileEi(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %3, ptr noundef nonnull align 8 dereferenceable(2137) %33, i32 noundef 0) #5
  store i1 true, ptr %5, align 1
  %34 = invoke noundef zeroext i1 @_ZNK4juce4File6existsEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %35 unwind label %61

35:                                               ; preds = %29
  br label %36

36:                                               ; preds = %35, %23, %1
  %37 = phi i1 [ false, %23 ], [ false, %1 ], [ %34, %35 ]
  %38 = load i1, ptr %5, align 1
  br i1 %38, label %39, label %40

39:                                               ; preds = %36
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br label %40

40:                                               ; preds = %39, %36
  %41 = load i1, ptr %4, align 1
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %43

43:                                               ; preds = %42, %40
  br i1 %37, label %44, label %110

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %8, ptr noundef @.str.147)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %12, ptr noundef @.str.148)
          to label %45 unwind label %71

45:                                               ; preds = %44
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.149) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %46 = getelementptr inbounds %"class.juce::FileChooserDialogBox", ptr %19, i32 0, i32 3
  %47 = load ptr, ptr %46, align 8, !tbaa !52
  %48 = getelementptr inbounds %"class.juce::FileChooserDialogBox::ContentComponent", ptr %47, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !53
  call void @_ZNK4juce20FileBrowserComponent15getSelectedFileEi(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %15, ptr noundef nonnull align 8 dereferenceable(2137) %49, i32 noundef 0) #5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce4File15getFullPathNameEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %50) #5
  invoke void @_ZNK4juce6String7replaceENS_9StringRefES1_b(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %13, ptr noundef %14, i1 noundef zeroext false)
          to label %51 unwind label %75

51:                                               ; preds = %45
  invoke void @_ZN4juceplENS_6StringEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %10, ptr noundef %11, ptr noundef @.str.150)
          to label %52 unwind label %79

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %16, ptr noundef @.str.151)
          to label %53 unwind label %83

53:                                               ; preds = %52
  invoke void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %9, ptr noundef %10, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %54 unwind label %87

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %17, ptr noundef @.str.152)
          to label %55 unwind label %91

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %18, ptr noundef @.str.153)
          to label %56 unwind label %95

56:                                               ; preds = %55
  %57 = invoke noundef ptr @_ZN4juce21ModalCallbackFunction12forComponentINS_20FileChooserDialogBoxEEEPNS_21ModalComponentManager8CallbackEPFviPT_ES7_(ptr noundef @_ZN4juce20FileChooserDialogBox25okToOverwriteFileCallbackEiPS0_, ptr noundef %19)
          to label %58 unwind label %99

58:                                               ; preds = %56
  %59 = invoke noundef zeroext i1 @_ZN4juce11AlertWindow15showOkCancelBoxENS0_13AlertIconTypeERKNS_6StringES4_S4_S4_PNS_9ComponentEPNS_21ModalComponentManager8CallbackE(i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef %19, ptr noundef %57)
          to label %60 unwind label %99

60:                                               ; preds = %58
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @_ZN4juce4FileD2Ev(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) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %111

61:                                               ; preds = %29
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %6, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %7, align 4
  %65 = load i1, ptr %5, align 1
  br i1 %65, label %66, label %67

66:                                               ; preds = %61
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br label %67

67:                                               ; preds = %66, %61
  %68 = load i1, ptr %4, align 1
  br i1 %68, label %69, label %70

69:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %70

70:                                               ; preds = %69, %67
  br label %112

71:                                               ; preds = %44
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %6, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %7, align 4
  br label %109

75:                                               ; preds = %45
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %6, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %7, align 4
  br label %108

79:                                               ; preds = %51
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %6, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %7, align 4
  br label %107

83:                                               ; preds = %52
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %6, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %7, align 4
  br label %106

87:                                               ; preds = %53
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %6, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %7, align 4
  br label %105

91:                                               ; preds = %54
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %6, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %7, align 4
  br label %104

95:                                               ; preds = %55
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %6, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %7, align 4
  br label %103

99:                                               ; preds = %58, %56
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %6, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %7, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br label %103

103:                                              ; preds = %99, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br label %104

104:                                              ; preds = %103, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br label %105

105:                                              ; preds = %104, %87
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br label %106

106:                                              ; preds = %105, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %107

107:                                              ; preds = %106, %79
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %108

108:                                              ; preds = %107, %75
  call void @_ZN4juce4FileD2Ev(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) %12) #5
  br label %109

109:                                              ; preds = %108, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %112

110:                                              ; preds = %43
  call void @_ZN4juce9Component14exitModalStateEi(ptr noundef nonnull align 8 dereferenceable(197) %19, i32 noundef 1)
  br label %111

111:                                              ; preds = %110, %60
  ret void

112:                                              ; preds = %109, %70
  %113 = load ptr, ptr %6, align 8
  %114 = load i32, ptr %7, align 4
  %115 = insertvalue { ptr, i32 } poison, ptr %113, 0
  %116 = insertvalue { ptr, i32 } %115, i32 %114, 1
  resume { ptr, i32 } %116
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce20FileChooserDialogBox25okToOverwriteFileCallbackEiPS0_(i32 noundef, ptr noundef) #2 align 2

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

declare void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #3

declare void @_ZNK4juce6String7replaceENS_9StringRefES1_b(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4juce21ModalCallbackFunction12forComponentINS_20FileChooserDialogBoxEEEPNS_21ModalComponentManager8CallbackEPFviPT_ES7_(ptr noundef, ptr noundef) #2 align 2

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

!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, !39, i64 352}
!10 = !{!"_ZTSN4juce20FileChooserDialogBoxE", !11, i64 0, !48, i64 328, !49, i64 336, !6, i64 344, !39, i64 352}
!11 = !{!"_ZTSN4juce15ResizableWindowE", !12, i64 0, !41, i64 208, !42, i64 216, !43, i64 224, !39, i64 232, !39, i64 233, !39, i64 234, !39, i64 235, !39, i64 236, !45, i64 240, !17, i64 256, !46, i64 272, !6, i64 320}
!12 = !{!"_ZTSN4juce14TopLevelWindowE", !13, i64 0, !39, i64 197, !39, i64 198, !39, i64 199, !40, i64 200}
!13 = !{!"_ZTSN4juce9ComponentE", !14, i64 0, !15, i64 8, !15, i64 16, !6, i64 24, !17, i64 32, !20, i64 48, !21, i64 56, !22, i64 64, !6, i64 88, !25, i64 96, !6, i64 104, !26, i64 112, !27, i64 120, !28, i64 128, !29, i64 136, !33, i64 160, !37, i64 184, !7, i64 192, !7, i64 196}
!14 = !{!"_ZTSN4juce13MouseListenerE"}
!15 = !{!"_ZTSN4juce6StringE", !16, i64 0}
!16 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!17 = !{!"_ZTSN4juce9RectangleIiEE", !18, i64 0, !19, i64 8, !19, i64 12}
!18 = !{!"_ZTSN4juce5PointIiEE", !19, i64 0, !19, i64 4}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!21 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!22 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !23, i64 0, !19, i64 16}
!23 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !24, i64 0, !19, i64 8}
!24 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!25 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!29 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !30, i64 0}
!30 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !31, i64 0, !19, i64 16}
!31 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !32, i64 0, !19, i64 8}
!32 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!33 = !{!"_ZTSN4juce13NamedValueSetE", !34, i64 0}
!34 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !35, i64 0, !19, i64 16}
!35 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !36, i64 0, !19, i64 8}
!36 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!37 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !38, i64 0}
!38 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!39 = !{!"bool", !7, i64 0}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_12DropShadowerEEE", !6, i64 0}
!41 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableCornerComponentEEE", !6, i64 0}
!42 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableBorderComponentEEE", !6, i64 0}
!43 = !{!"_ZTSN4juce9Component11SafePointerIS0_EE", !44, i64 0}
!44 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !38, i64 0}
!45 = !{!"_ZTSN4juce16ComponentDraggerE", !18, i64 8}
!46 = !{!"_ZTSN4juce26ComponentBoundsConstrainerE", !19, i64 8, !19, i64 12, !19, i64 16, !19, i64 20, !19, i64 24, !19, i64 28, !19, i64 32, !19, i64 36, !47, i64 40}
!47 = !{!"double", !7, i64 0}
!48 = !{!"_ZTSN4juce6Button8ListenerE"}
!49 = !{!"_ZTSN4juce19FileBrowserListenerE"}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = !{!10, !6, i64 344}
!53 = !{!54, !6, i64 200}
!54 = !{!"_ZTSN4juce20FileChooserDialogBox16ContentComponentE", !13, i64 0, !6, i64 200, !55, i64 208, !55, i64 584, !55, i64 960, !15, i64 1336, !74, i64 1344}
!55 = !{!"_ZTSN4juce10TextButtonE", !56, i64 0}
!56 = !{!"_ZTSN4juce6ButtonE", !13, i64 0, !57, i64 200, !59, i64 216, !44, i64 240, !15, i64 248, !62, i64 256, !66, i64 280, !19, i64 288, !19, i64 292, !6, i64 296, !19, i64 304, !19, i64 308, !19, i64 312, !19, i64 316, !19, i64 320, !19, i64 324, !67, i64 328, !67, i64 332, !68, i64 336, !39, i64 368, !39, i64 369, !39, i64 370, !39, i64 371, !39, i64 372, !39, i64 373, !39, i64 374}
!57 = !{!"_ZTSN4juce21SettableTooltipClientE", !58, i64 0, !15, i64 8}
!58 = !{!"_ZTSN4juce13TooltipClientE"}
!59 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !60, i64 0, !19, i64 16}
!60 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !61, i64 0, !19, i64 8}
!61 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !6, i64 0}
!62 = !{!"_ZTSN4juce12ListenerListINS_6Button8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !63, i64 0}
!63 = !{!"_ZTSN4juce5ArrayIPNS_6Button8ListenerENS_20DummyCriticalSectionELi0EEE", !64, i64 0, !19, i64 16}
!64 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_6Button8ListenerENS_20DummyCriticalSectionEEE", !65, i64 0, !19, i64 8}
!65 = !{!"_ZTSN4juce9HeapBlockIPNS_6Button8ListenerELb0EEE", !6, i64 0}
!66 = !{!"_ZTSN4juce13ScopedPointerINS_6Button14CallbackHelperEEE", !6, i64 0}
!67 = !{!"_ZTSN4juce6Button11ButtonStateE", !7, i64 0}
!68 = !{!"_ZTSN4juce5ValueE", !69, i64 0, !70, i64 8}
!69 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_5Value11ValueSourceEEE", !6, i64 0}
!70 = !{!"_ZTSN4juce12ListenerListINS_5Value8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !71, i64 0}
!71 = !{!"_ZTSN4juce5ArrayIPNS_5Value8ListenerENS_20DummyCriticalSectionELi0EEE", !72, i64 0, !19, i64 16}
!72 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_5Value8ListenerENS_20DummyCriticalSectionEEE", !73, i64 0, !19, i64 8}
!73 = !{!"_ZTSN4juce9HeapBlockIPNS_5Value8ListenerELb0EEE", !6, i64 0}
!74 = !{!"_ZTSN4juce10TextLayoutE", !75, i64 0, !78, i64 24, !78, i64 28, !79, i64 32}
!75 = !{!"_ZTSN4juce10OwnedArrayINS_10TextLayout4LineENS_20DummyCriticalSectionEEE", !76, i64 0, !19, i64 16}
!76 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextLayout4LineENS_20DummyCriticalSectionEEE", !77, i64 0, !19, i64 8}
!77 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextLayout4LineELb0EEE", !6, i64 0}
!78 = !{!"float", !7, i64 0}
!79 = !{!"_ZTSN4juce13JustificationE", !19, 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::StringRef" = type { %"class.juce::CharPointer_UTF8" }

@.str.147 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [7 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

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

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

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

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

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

declare noundef zeroext i1 @_ZNK4juce4File6existsEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce20FileBrowserComponent10isSaveModeEv(ptr noundef nonnull align 8 dereferenceable(2137)) local_unnamed_addr #4 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 #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce20FileChooserDialogBox15okButtonPressedEv(ptr noundef nonnull align 8 dereferenceable(353) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::File", align 8
  %3 = alloca %"class.juce::String", align 8
  %4 = alloca %"class.juce::String", align 8
  %5 = alloca %"class.juce::String", align 8
  %6 = alloca %"class.juce::String", align 8
  %7 = alloca %"class.juce::String", align 8
  %8 = alloca %"class.juce::StringRef", align 8
  %9 = alloca %"class.juce::StringRef", align 8
  %10 = alloca %"class.juce::File", align 8
  %11 = alloca %"class.juce::String", align 8
  %12 = alloca %"class.juce::String", align 8
  %13 = alloca %"class.juce::String", align 8
  %14 = getelementptr inbounds i8, ptr %0, i64 352
  %15 = load i8, ptr %14, align 8, !tbaa !5, !range !49, !noundef !50
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %.critedge.thread

17:                                               ; preds = %1
  %18 = getelementptr inbounds i8, ptr %0, i64 344
  %19 = load ptr, ptr %18, align 8, !tbaa !51
  %20 = getelementptr inbounds i8, ptr %19, i64 200
  %21 = load ptr, ptr %20, align 8, !tbaa !52
  %22 = tail call noundef zeroext i1 @_ZNK4juce20FileBrowserComponent10isSaveModeEv(ptr noundef nonnull align 8 dereferenceable(2137) %21) #5
  br i1 %22, label %23, label %.critedge.thread

23:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %24 = load ptr, ptr %18, align 8, !tbaa !51
  %25 = getelementptr inbounds i8, ptr %24, i64 200
  %26 = load ptr, ptr %25, align 8, !tbaa !52
  call void @_ZNK4juce20FileBrowserComponent15getSelectedFileEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %2, ptr noundef nonnull align 8 dereferenceable(2137) %26, i32 noundef 0) #5
  %27 = invoke noundef zeroext i1 @_ZNK4juce4File6existsEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %.critedge unwind label %44

.critedge:                                        ; preds = %23
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  br i1 %27, label %28, label %.critedge.thread

28:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %3, ptr noundef nonnull @.str.147)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.148)
          to label %29 unwind label %46

29:                                               ; preds = %28
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @.str.149) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %30 = load ptr, ptr %18, align 8, !tbaa !51
  %31 = getelementptr inbounds i8, ptr %30, i64 200
  %32 = load ptr, ptr %31, align 8, !tbaa !52
  call void @_ZNK4juce20FileBrowserComponent15getSelectedFileEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %10, ptr noundef nonnull align 8 dereferenceable(2137) %32, i32 noundef 0) #5
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce4File15getFullPathNameEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %33) #5
  invoke void @_ZNK4juce6String7replaceENS_9StringRefES1_b(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %8, ptr noundef nonnull %9, i1 noundef zeroext false)
          to label %34 unwind label %48

34:                                               ; preds = %29
  invoke void @_ZN4juceplENS_6StringEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %5, ptr noundef nonnull %6, ptr noundef nonnull @.str.150)
          to label %35 unwind label %50

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %11, ptr noundef nonnull @.str.151)
          to label %36 unwind label %52

36:                                               ; preds = %35
  invoke void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %4, ptr noundef nonnull %5, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %37 unwind label %54

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %12, ptr noundef nonnull @.str.152)
          to label %38 unwind label %56

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %13, ptr noundef nonnull @.str.153)
          to label %39 unwind label %58

39:                                               ; preds = %38
  %40 = invoke noundef ptr @_ZN4juce21ModalCallbackFunction12forComponentINS_20FileChooserDialogBoxEEEPNS_21ModalComponentManager8CallbackEPFviPT_ES7_(ptr noundef nonnull @_ZN4juce20FileChooserDialogBox25okToOverwriteFileCallbackEiPS0_, ptr noundef nonnull %0)
          to label %41 unwind label %60

41:                                               ; preds = %39
  %42 = invoke noundef zeroext i1 @_ZN4juce11AlertWindow15showOkCancelBoxENS0_13AlertIconTypeERKNS_6StringES4_S4_S4_PNS_9ComponentEPNS_21ModalComponentManager8CallbackE(i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull %0, ptr noundef %40)
          to label %43 unwind label %60

43:                                               ; preds = %41
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @_ZN4juce4FileD2Ev(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) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %69

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

46:                                               ; preds = %28
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %68

48:                                               ; preds = %29
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %67

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

52:                                               ; preds = %35
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %65

54:                                               ; preds = %36
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %64

56:                                               ; preds = %37
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %63

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

60:                                               ; preds = %41, %39
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  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 %13) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br label %63

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

64:                                               ; preds = %63, %54
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %63 ], [ %55, %54 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %65

65:                                               ; preds = %64, %52
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %64 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br label %66

66:                                               ; preds = %65, %50
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %65 ], [ %51, %50 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %67

67:                                               ; preds = %66, %48
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %66 ], [ %49, %48 ]
  call void @_ZN4juce4FileD2Ev(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) %7) #5
  br label %68

68:                                               ; preds = %67, %46
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %67 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %70

.critedge.thread:                                 ; preds = %17, %1, %.critedge
  call void @_ZN4juce9Component14exitModalStateEi(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef 1)
  br label %69

69:                                               ; preds = %.critedge.thread, %43
  ret void

70:                                               ; preds = %44, %68
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %68 ], [ %45, %44 ]
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce20FileChooserDialogBox25okToOverwriteFileCallbackEiPS0_(i32 noundef, ptr noundef) #2 align 2

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

declare void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare void @_ZNK4juce6String7replaceENS_9StringRefES1_b(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4juce21ModalCallbackFunction12forComponentINS_20FileChooserDialogBoxEEEPNS_21ModalComponentManager8CallbackEPFviPT_ES7_(ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

!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, !38, i64 352}
!6 = !{!"_ZTSN4juce20FileChooserDialogBoxE", !7, i64 0, !47, i64 328, !48, i64 336, !13, i64 344, !38, i64 352}
!7 = !{!"_ZTSN4juce15ResizableWindowE", !8, i64 0, !40, i64 208, !41, i64 216, !42, i64 224, !38, i64 232, !38, i64 233, !38, i64 234, !38, i64 235, !38, i64 236, !44, i64 240, !16, i64 256, !45, i64 272, !13, i64 320}
!8 = !{!"_ZTSN4juce14TopLevelWindowE", !9, i64 0, !38, i64 197, !38, i64 198, !38, i64 199, !39, i64 200}
!9 = !{!"_ZTSN4juce9ComponentE", !10, i64 0, !11, i64 8, !11, i64 16, !13, i64 24, !16, i64 32, !19, i64 48, !20, i64 56, !21, i64 64, !13, i64 88, !24, i64 96, !13, i64 104, !25, i64 112, !26, i64 120, !27, i64 128, !28, i64 136, !32, i64 160, !36, i64 184, !14, i64 192, !14, i64 196}
!10 = !{!"_ZTSN4juce13MouseListenerE"}
!11 = !{!"_ZTSN4juce6StringE", !12, i64 0}
!12 = !{!"_ZTSN4juce16CharPointer_UTF8E", !13, i64 0}
!13 = !{!"any pointer", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C++ TBAA"}
!16 = !{!"_ZTSN4juce9RectangleIiEE", !17, i64 0, !18, i64 8, !18, i64 12}
!17 = !{!"_ZTSN4juce5PointIiEE", !18, i64 0, !18, i64 4}
!18 = !{!"int", !14, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !13, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !13, i64 0}
!21 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !18, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !23, i64 0, !18, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !13, i64 0}
!24 = !{!"_ZTSN4juce11MouseCursorE", !13, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !13, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !13, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !13, i64 0}
!28 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !18, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !31, i64 0, !18, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !13, i64 0}
!32 = !{!"_ZTSN4juce13NamedValueSetE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !18, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !35, i64 0, !18, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !13, i64 0}
!36 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !37, i64 0}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !13, i64 0}
!38 = !{!"bool", !14, i64 0}
!39 = !{!"_ZTSN4juce13ScopedPointerINS_12DropShadowerEEE", !13, i64 0}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableCornerComponentEEE", !13, i64 0}
!41 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableBorderComponentEEE", !13, i64 0}
!42 = !{!"_ZTSN4juce9Component11SafePointerIS0_EE", !43, i64 0}
!43 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !37, i64 0}
!44 = !{!"_ZTSN4juce16ComponentDraggerE", !17, i64 8}
!45 = !{!"_ZTSN4juce26ComponentBoundsConstrainerE", !18, i64 8, !18, i64 12, !18, i64 16, !18, i64 20, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !46, i64 40}
!46 = !{!"double", !14, i64 0}
!47 = !{!"_ZTSN4juce6Button8ListenerE"}
!48 = !{!"_ZTSN4juce19FileBrowserListenerE"}
!49 = !{i8 0, i8 2}
!50 = !{}
!51 = !{!6, !13, i64 344}
!52 = !{!53, !13, i64 200}
!53 = !{!"_ZTSN4juce20FileChooserDialogBox16ContentComponentE", !9, i64 0, !13, i64 200, !54, i64 208, !54, i64 584, !54, i64 960, !11, i64 1336, !73, i64 1344}
!54 = !{!"_ZTSN4juce10TextButtonE", !55, i64 0}
!55 = !{!"_ZTSN4juce6ButtonE", !9, i64 0, !56, i64 200, !58, i64 216, !43, i64 240, !11, i64 248, !61, i64 256, !65, i64 280, !18, i64 288, !18, i64 292, !13, i64 296, !18, i64 304, !18, i64 308, !18, i64 312, !18, i64 316, !18, i64 320, !18, i64 324, !66, i64 328, !66, i64 332, !67, i64 336, !38, i64 368, !38, i64 369, !38, i64 370, !38, i64 371, !38, i64 372, !38, i64 373, !38, i64 374}
!56 = !{!"_ZTSN4juce21SettableTooltipClientE", !57, i64 0, !11, i64 8}
!57 = !{!"_ZTSN4juce13TooltipClientE"}
!58 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !59, i64 0, !18, i64 16}
!59 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !60, i64 0, !18, i64 8}
!60 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !13, i64 0}
!61 = !{!"_ZTSN4juce12ListenerListINS_6Button8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !62, i64 0}
!62 = !{!"_ZTSN4juce5ArrayIPNS_6Button8ListenerENS_20DummyCriticalSectionELi0EEE", !63, i64 0, !18, i64 16}
!63 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_6Button8ListenerENS_20DummyCriticalSectionEEE", !64, i64 0, !18, i64 8}
!64 = !{!"_ZTSN4juce9HeapBlockIPNS_6Button8ListenerELb0EEE", !13, i64 0}
!65 = !{!"_ZTSN4juce13ScopedPointerINS_6Button14CallbackHelperEEE", !13, i64 0}
!66 = !{!"_ZTSN4juce6Button11ButtonStateE", !14, i64 0}
!67 = !{!"_ZTSN4juce5ValueE", !68, i64 0, !69, i64 8}
!68 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_5Value11ValueSourceEEE", !13, i64 0}
!69 = !{!"_ZTSN4juce12ListenerListINS_5Value8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !70, i64 0}
!70 = !{!"_ZTSN4juce5ArrayIPNS_5Value8ListenerENS_20DummyCriticalSectionELi0EEE", !71, i64 0, !18, i64 16}
!71 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_5Value8ListenerENS_20DummyCriticalSectionEEE", !72, i64 0, !18, i64 8}
!72 = !{!"_ZTSN4juce9HeapBlockIPNS_5Value8ListenerELb0EEE", !13, i64 0}
!73 = !{!"_ZTSN4juce10TextLayoutE", !74, i64 0, !77, i64 24, !77, i64 28, !78, i64 32}
!74 = !{!"_ZTSN4juce10OwnedArrayINS_10TextLayout4LineENS_20DummyCriticalSectionEEE", !75, i64 0, !18, i64 16}
!75 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextLayout4LineENS_20DummyCriticalSectionEEE", !76, i64 0, !18, i64 8}
!76 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextLayout4LineELb0EEE", !13, i64 0}
!77 = !{!"float", !14, i64 0}
!78 = !{!"_ZTSN4juce13JustificationE", !18, i64 0}


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