; 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::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ScopedPointer.368" = type { ptr }
%"class.juce::MultiDocumentPanel" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::ComponentListener", i32, [4 x i8], %"class.juce::Array", %"class.juce::ScopedPointer.361", %"class.juce::Colour", i32, i32, [4 x i8] }>
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.0", %"class.juce::Array", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.1", %"class.juce::ScopedPointer.2", %"class.juce::ScopedPointer.3", %"class.juce::ListenerList", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.0" = type { ptr }
%"class.juce::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::ComponentListener" = 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::ScopedPointer.361" = type { ptr }
%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }

@_ZTIN4juce9ComponentE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.173 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZTIN4juce24MultiDocumentPanelWindowE = external dso_local constant { ptr, ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

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

; 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 @_ZN4juce9Component20removeChildComponentEPS0_(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef) #2 align 2

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

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

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

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

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

declare noundef zeroext i1 @_ZN4juce13NamedValueSet6removeERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

declare void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5

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

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #6

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce18MultiDocumentPanel13closeDocumentEPNS_9ComponentEb(ptr noundef nonnull align 8 dereferenceable(260) %0, ptr noundef %1, i1 noundef zeroext %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca %"class.juce::Identifier", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.juce::Identifier", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.juce::ScopedPointer.368", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.juce::ScopedPointer.368", align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %21 = zext i1 %2 to i8
  store i8 %21, ptr %7, align 1, !tbaa !9
  %22 = load ptr, ptr %5, align 8
  %23 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call noundef zeroext i1 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE8containsES2_(ptr noundef nonnull align 8 dereferenceable(20) %23, ptr noundef %24)
  br i1 %25, label %26, label %231

26:                                               ; preds = %3
  %27 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %36

29:                                               ; preds = %26
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %22, align 8, !tbaa !13
  %32 = getelementptr inbounds ptr, ptr %31, i64 46
  %33 = load ptr, ptr %32, align 8
  %34 = call noundef zeroext i1 %33(ptr noundef nonnull align 8 dereferenceable(260) %22, ptr noundef %30)
  br i1 %34, label %36, label %35

35:                                               ; preds = %29
  store i1 false, ptr %4, align 1
  br label %235

36:                                               ; preds = %29, %26
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %22, i64 200
  call void @_ZN4juce9Component23removeComponentListenerEPNS_17ComponentListenerE(ptr noundef nonnull align 8 dereferenceable(197) %37, ptr noundef %38)
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZN4juce15MultiDocHelpersL16shouldDeleteCompEPNS_9ComponentE(ptr noundef %39)
  %41 = zext i1 %40 to i8
  store i8 %41, ptr %8, align 1, !tbaa !9
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce9Component13getPropertiesEv(ptr noundef nonnull align 8 dereferenceable(197) %42) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef @.str.175)
  %44 = invoke noundef zeroext i1 @_ZN4juce13NamedValueSet6removeERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %45 unwind label %60

45:                                               ; preds = %36
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce9Component13getPropertiesEv(ptr noundef nonnull align 8 dereferenceable(197) %46) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.173)
  %48 = invoke noundef zeroext i1 @_ZN4juce13NamedValueSet6removeERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %49 unwind label %64

49:                                               ; preds = %45
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %50 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 3
  %51 = load i32, ptr %50, align 8, !tbaa !15
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %147

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %54 = call noundef i32 @_ZNK4juce9Component21getNumChildComponentsEv(ptr noundef nonnull align 8 dereferenceable(197) %22) #7
  store i32 %54, ptr %13, align 4, !tbaa !48
  br label %55

55:                                               ; preds = %96, %53
  %56 = load i32, ptr %13, align 4, !tbaa !48
  %57 = add nsw i32 %56, -1
  store i32 %57, ptr %13, align 4, !tbaa !48
  %58 = icmp sge i32 %57, 0
  br i1 %58, label %68, label %59

59:                                               ; preds = %55
  store i32 2, ptr %14, align 4
  br label %97

60:                                               ; preds = %36
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %10, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %11, align 4
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %230

64:                                               ; preds = %45
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %10, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %11, align 4
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %230

68:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %69 = load i32, ptr %13, align 4, !tbaa !48
  %70 = call noundef ptr @_ZNK4juce9Component17getChildComponentEi(ptr noundef nonnull align 8 dereferenceable(197) %22, i32 noundef %69) #7
  %71 = icmp eq ptr %70, null
  br i1 %71, label %74, label %72

72:                                               ; preds = %68
  %73 = call ptr @__dynamic_cast(ptr %70, ptr @_ZTIN4juce9ComponentE, ptr @_ZTIN4juce24MultiDocumentPanelWindowE, i64 0) #7
  br label %75

74:                                               ; preds = %68
  br label %75

75:                                               ; preds = %74, %72
  %76 = phi ptr [ %73, %72 ], [ null, %74 ]
  store ptr %76, ptr %15, align 8, !tbaa !5
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %93

79:                                               ; preds = %75
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = call noundef ptr @_ZNK4juce15ResizableWindow19getContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328) %80) #7
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = icmp eq ptr %81, %82
  br i1 %83, label %84, label %92

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %85) #7
  %86 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  invoke void @_ZN4juce15ResizableWindow21clearContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328) %86)
          to label %87 unwind label %88

87:                                               ; preds = %84
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  store i32 2, ptr %14, align 4
  br label %94

88:                                               ; preds = %84
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %10, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %11, align 4
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %230

92:                                               ; preds = %79
  br label %93

93:                                               ; preds = %92, %75
  store i32 0, ptr %14, align 4
  br label %94

94:                                               ; preds = %93, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %95 = load i32, ptr %14, align 4
  switch i32 %95, label %97 [
    i32 0, label %96
  ]

96:                                               ; preds = %94
  br label %55, !llvm.loop !49

97:                                               ; preds = %94, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %98

98:                                               ; preds = %97
  %99 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %109

101:                                              ; preds = %98
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = icmp eq ptr %102, null
  br i1 %103, label %108, label %104

104:                                              ; preds = %101
  %105 = load ptr, ptr %102, align 8, !tbaa !13
  %106 = getelementptr inbounds ptr, ptr %105, i64 1
  %107 = load ptr, ptr %106, align 8
  call void %107(ptr noundef nonnull align 8 dereferenceable(197) %102) #7
  br label %108

108:                                              ; preds = %104, %101
  br label %109

109:                                              ; preds = %108, %98
  %110 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 5
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE24removeFirstMatchingValueES2_(ptr noundef nonnull align 8 dereferenceable(20) %110, ptr noundef %111)
  %112 = call noundef zeroext i1 @_ZNK4juce18MultiDocumentPanel27isFullscreenWhenOneDocumentEv(ptr noundef nonnull align 8 dereferenceable(260) %22) #7
  br i1 %112, label %113, label %146

113:                                              ; preds = %109
  %114 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 5
  %115 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %114) #7
  %116 = icmp eq i32 %115, 1
  br i1 %116, label %117, label %146

117:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %118 = call noundef i32 @_ZNK4juce9Component21getNumChildComponentsEv(ptr noundef nonnull align 8 dereferenceable(197) %22) #7
  store i32 %118, ptr %17, align 4, !tbaa !48
  br label %119

119:                                              ; preds = %142, %117
  %120 = load i32, ptr %17, align 4, !tbaa !48
  %121 = add nsw i32 %120, -1
  store i32 %121, ptr %17, align 4, !tbaa !48
  %122 = icmp sge i32 %121, 0
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  store i32 4, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %143

124:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %125 = load i32, ptr %17, align 4, !tbaa !48
  %126 = call noundef ptr @_ZNK4juce9Component17getChildComponentEi(ptr noundef nonnull align 8 dereferenceable(197) %22, i32 noundef %125) #7
  %127 = icmp eq ptr %126, null
  br i1 %127, label %130, label %128

128:                                              ; preds = %124
  %129 = call ptr @__dynamic_cast(ptr %126, ptr @_ZTIN4juce9ComponentE, ptr @_ZTIN4juce24MultiDocumentPanelWindowE, i64 0) #7
  br label %131

130:                                              ; preds = %124
  br label %131

131:                                              ; preds = %130, %128
  %132 = phi ptr [ %129, %128 ], [ null, %130 ]
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef %132) #7
  %133 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %142

135:                                              ; preds = %131
  %136 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  invoke void @_ZN4juce15ResizableWindow21clearContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328) %136)
          to label %137 unwind label %138

137:                                              ; preds = %135
  br label %142

138:                                              ; preds = %135
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %10, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %11, align 4
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %230

142:                                              ; preds = %137, %131
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %119, !llvm.loop !51

143:                                              ; preds = %123
  %144 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 5
  %145 = call noundef ptr @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE8getFirstEv(ptr noundef nonnull align 8 dereferenceable(20) %144)
  call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %22, ptr noundef %145, i32 noundef -1)
  br label %146

146:                                              ; preds = %143, %113, %109
  br label %217

147:                                              ; preds = %49
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  br label %150

150:                                              ; preds = %149
  %151 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 6
  %152 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %151) #7
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %176

154:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %155 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 6
  %156 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %155) #7
  %157 = call noundef i32 @_ZNK4juce15TabbedComponent10getNumTabsEv(ptr noundef nonnull align 8 dereferenceable(252) %156)
  store i32 %157, ptr %19, align 4, !tbaa !48
  br label %158

158:                                              ; preds = %174, %154
  %159 = load i32, ptr %19, align 4, !tbaa !48
  %160 = add nsw i32 %159, -1
  store i32 %160, ptr %19, align 4, !tbaa !48
  %161 = icmp sge i32 %160, 0
  br i1 %161, label %163, label %162

162:                                              ; preds = %158
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %175

163:                                              ; preds = %158
  %164 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 6
  %165 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %164) #7
  %166 = load i32, ptr %19, align 4, !tbaa !48
  %167 = call noundef ptr @_ZNK4juce15TabbedComponent22getTabContentComponentEi(ptr noundef nonnull align 8 dereferenceable(252) %165, i32 noundef %166) #7
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = icmp eq ptr %167, %168
  br i1 %169, label %170, label %174

170:                                              ; preds = %163
  %171 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 6
  %172 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %171) #7
  %173 = load i32, ptr %19, align 4, !tbaa !48
  call void @_ZN4juce15TabbedComponent9removeTabEi(ptr noundef nonnull align 8 dereferenceable(252) %172, i32 noundef %173)
  br label %174

174:                                              ; preds = %170, %163
  br label %158, !llvm.loop !52

175:                                              ; preds = %162
  br label %178

176:                                              ; preds = %150
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4juce9Component20removeChildComponentEPS0_(ptr noundef nonnull align 8 dereferenceable(197) %22, ptr noundef %177)
  br label %178

178:                                              ; preds = %176, %175
  %179 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %180 = trunc i8 %179 to i1
  br i1 %180, label %181, label %189

181:                                              ; preds = %178
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = icmp eq ptr %182, null
  br i1 %183, label %188, label %184

184:                                              ; preds = %181
  %185 = load ptr, ptr %182, align 8, !tbaa !13
  %186 = getelementptr inbounds ptr, ptr %185, i64 1
  %187 = load ptr, ptr %186, align 8
  call void %187(ptr noundef nonnull align 8 dereferenceable(197) %182) #7
  br label %188

188:                                              ; preds = %184, %181
  br label %189

189:                                              ; preds = %188, %178
  %190 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 6
  %191 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %190) #7
  %192 = icmp ne ptr %191, null
  br i1 %192, label %193, label %203

193:                                              ; preds = %189
  %194 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 6
  %195 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %194) #7
  %196 = call noundef i32 @_ZNK4juce15TabbedComponent10getNumTabsEv(ptr noundef nonnull align 8 dereferenceable(252) %195)
  %197 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 9
  %198 = load i32, ptr %197, align 8, !tbaa !53
  %199 = icmp sle i32 %196, %198
  br i1 %199, label %200, label %203

200:                                              ; preds = %193
  %201 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 6
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_15TabbedComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef null)
  br label %203

203:                                              ; preds = %200, %193, %189
  %204 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 5
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE24removeFirstMatchingValueES2_(ptr noundef nonnull align 8 dereferenceable(20) %204, ptr noundef %205)
  %206 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 5
  %207 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %206) #7
  %208 = icmp sgt i32 %207, 0
  br i1 %208, label %209, label %216

209:                                              ; preds = %203
  %210 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 6
  %211 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %210) #7
  %212 = icmp eq ptr %211, null
  br i1 %212, label %213, label %216

213:                                              ; preds = %209
  %214 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %22, i32 0, i32 5
  %215 = call noundef ptr @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE8getFirstEv(ptr noundef nonnull align 8 dereferenceable(20) %214)
  call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %22, ptr noundef %215, i32 noundef -1)
  br label %216

216:                                              ; preds = %213, %209, %203
  br label %217

217:                                              ; preds = %216, %146
  %218 = load ptr, ptr %22, align 8, !tbaa !13
  %219 = getelementptr inbounds ptr, ptr %218, i64 34
  %220 = load ptr, ptr %219, align 8
  call void %220(ptr noundef nonnull align 8 dereferenceable(260) %22)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %221 = call noundef ptr @_ZNK4juce18MultiDocumentPanel17getActiveDocumentEv(ptr noundef nonnull align 8 dereferenceable(260) %22) #7
  store ptr %221, ptr %20, align 8, !tbaa !5
  %222 = load ptr, ptr %20, align 8, !tbaa !5
  %223 = icmp ne ptr %222, null
  br i1 %223, label %224, label %226

224:                                              ; preds = %217
  %225 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN4juce18MultiDocumentPanel17setActiveDocumentEPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(260) %22, ptr noundef %225)
  br label %226

226:                                              ; preds = %224, %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %227 = load ptr, ptr %22, align 8, !tbaa !13
  %228 = getelementptr inbounds ptr, ptr %227, i64 45
  %229 = load ptr, ptr %228, align 8
  call void %229(ptr noundef nonnull align 8 dereferenceable(260) %22)
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  br label %234

230:                                              ; preds = %138, %88, %64, %60
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  br label %237

231:                                              ; preds = %3
  br label %232

232:                                              ; preds = %231
  br label %233

233:                                              ; preds = %232
  br label %234

234:                                              ; preds = %233, %226
  store i1 true, ptr %4, align 1
  br label %235

235:                                              ; preds = %234, %35
  %236 = load i1, ptr %4, align 1
  ret i1 %236

237:                                              ; preds = %230
  %238 = load ptr, ptr %10, align 8
  %239 = load i32, ptr %11, align 4
  %240 = insertvalue { ptr, i32 } poison, ptr %238, 0
  %241 = insertvalue { ptr, i32 } %240, i32 %239, 1
  resume { ptr, i32 } %241
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce18MultiDocumentPanel27isFullscreenWhenOneDocumentEv(ptr noundef nonnull align 8 dereferenceable(260)) #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN4juce15MultiDocHelpersL16shouldDeleteCompEPNS_9ComponentE(ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

attributes #0 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !44, i64 208}
!16 = !{!"_ZTSN4juce18MultiDocumentPanelE", !17, i64 0, !43, i64 200, !44, i64 208, !26, i64 216, !45, i64 240, !46, i64 248, !23, i64 252, !23, i64 256}
!17 = !{!"_ZTSN4juce9ComponentE", !18, i64 0, !19, i64 8, !19, i64 16, !6, i64 24, !21, i64 32, !24, i64 48, !25, i64 56, !26, i64 64, !6, i64 88, !29, i64 96, !6, i64 104, !30, i64 112, !31, i64 120, !32, i64 128, !33, i64 136, !37, i64 160, !41, i64 184, !7, i64 192, !7, i64 196}
!18 = !{!"_ZTSN4juce13MouseListenerE"}
!19 = !{!"_ZTSN4juce6StringE", !20, i64 0}
!20 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!21 = !{!"_ZTSN4juce9RectangleIiEE", !22, i64 0, !23, i64 8, !23, i64 12}
!22 = !{!"_ZTSN4juce5PointIiEE", !23, i64 0, !23, i64 4}
!23 = !{!"int", !7, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !27, i64 0, !23, i64 16}
!27 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !28, i64 0, !23, i64 8}
!28 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!29 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!30 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!31 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!32 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!33 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !34, i64 0}
!34 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !35, i64 0, !23, i64 16}
!35 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !36, i64 0, !23, i64 8}
!36 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!37 = !{!"_ZTSN4juce13NamedValueSetE", !38, i64 0}
!38 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !39, i64 0, !23, i64 16}
!39 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !40, i64 0, !23, i64 8}
!40 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!41 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !42, i64 0}
!42 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!43 = !{!"_ZTSN4juce17ComponentListenerE"}
!44 = !{!"_ZTSN4juce18MultiDocumentPanel10LayoutModeE", !7, i64 0}
!45 = !{!"_ZTSN4juce13ScopedPointerINS_15TabbedComponentEEE", !6, i64 0}
!46 = !{!"_ZTSN4juce6ColourE", !47, i64 0}
!47 = !{!"_ZTSN4juce9PixelARGBE", !7, i64 0}
!48 = !{!23, !23, i64 0}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}
!51 = distinct !{!51, !50}
!52 = distinct !{!52, !50}
!53 = !{!16, !23, i64 256}


; 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::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ScopedPointer.368" = type { ptr }

@_ZTIN4juce9ComponentE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.173 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZTIN4juce24MultiDocumentPanelWindowE = external dso_local constant { ptr, ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

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

; 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 @_ZN4juce9Component20removeChildComponentEPS0_(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

declare noundef zeroext i1 @_ZN4juce13NamedValueSet6removeERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

declare void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce18MultiDocumentPanel13closeDocumentEPNS_9ComponentEb(ptr noundef nonnull align 8 dereferenceable(260) %0, ptr noundef %1, i1 noundef zeroext %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.juce::Identifier", align 8
  %5 = alloca %"class.juce::Identifier", align 8
  %6 = alloca %"class.juce::ScopedPointer.368", align 8
  %7 = alloca %"class.juce::ScopedPointer.368", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 216
  %9 = tail call noundef zeroext i1 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE8containsES2_(ptr noundef nonnull align 8 dereferenceable(20) %8, ptr noundef %1)
  br i1 %9, label %10, label %121

10:                                               ; preds = %3
  br i1 %2, label %11, label %16

11:                                               ; preds = %10
  %12 = load ptr, ptr %0, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 368
  %14 = load ptr, ptr %13, align 8
  %15 = tail call noundef zeroext i1 %14(ptr noundef nonnull align 8 dereferenceable(260) %0, ptr noundef %1)
  br i1 %15, label %16, label %121

16:                                               ; preds = %11, %10
  %17 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZN4juce9Component23removeComponentListenerEPNS_17ComponentListenerE(ptr noundef nonnull align 8 dereferenceable(197) %1, ptr noundef nonnull %17)
  %18 = tail call noundef zeroext i1 @_ZN4juce15MultiDocHelpersL16shouldDeleteCompEPNS_9ComponentE(ptr noundef nonnull %1)
  %19 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce9Component13getPropertiesEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.175)
  %20 = invoke noundef zeroext i1 @_ZN4juce13NamedValueSet6removeERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %21 unwind label %31

21:                                               ; preds = %16
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce9Component13getPropertiesEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @.str.173)
  %23 = invoke noundef zeroext i1 @_ZN4juce13NamedValueSet6removeERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %24 unwind label %33

24:                                               ; preds = %21
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %25 = getelementptr inbounds i8, ptr %0, i64 208
  %26 = load i32, ptr %25, align 8, !tbaa !8
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %74

28:                                               ; preds = %24
  %29 = call noundef i32 @_ZNK4juce9Component21getNumChildComponentsEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #7
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph53, label %.loopexit

31:                                               ; preds = %16
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %120

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

.lr.ph53:                                         ; preds = %28, %.thread
  %.in55 = phi i32 [ %35, %.thread ], [ %29, %28 ]
  %35 = add nsw i32 %.in55, -1
  %36 = call noundef ptr @_ZNK4juce9Component17getChildComponentEi(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %35) #7
  %37 = icmp eq ptr %36, null
  br i1 %37, label %.thread, label %38

38:                                               ; preds = %.lr.ph53
  %39 = call ptr @__dynamic_cast(ptr nonnull %36, ptr nonnull @_ZTIN4juce9ComponentE, ptr nonnull @_ZTIN4juce24MultiDocumentPanelWindowE, i64 0) #7
  %.not47 = icmp eq ptr %39, null
  br i1 %.not47, label %.thread, label %40

40:                                               ; preds = %38
  %41 = call noundef ptr @_ZNK4juce15ResizableWindow19getContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328) %39) #7
  %42 = icmp eq ptr %41, %1
  br i1 %42, label %43, label %.thread

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull %39) #7
  %44 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  invoke void @_ZN4juce15ResizableWindow21clearContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328) %44)
          to label %.critedge unwind label %45

.critedge:                                        ; preds = %43
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %.loopexit

45:                                               ; preds = %43
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %120

.thread:                                          ; preds = %.lr.ph53, %38, %40
  %47 = icmp ugt i32 %.in55, 1
  br i1 %47, label %.lr.ph53, label %.loopexit, !llvm.loop !43

.loopexit:                                        ; preds = %.thread, %28, %.critedge
  br i1 %18, label %48, label %52

48:                                               ; preds = %.loopexit
  %49 = load ptr, ptr %1, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 8
  %51 = load ptr, ptr %50, align 8
  call void %51(ptr noundef nonnull align 8 dereferenceable(197) %1) #7
  br label %52

52:                                               ; preds = %48, %.loopexit
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE24removeFirstMatchingValueES2_(ptr noundef nonnull align 8 dereferenceable(20) %8, ptr noundef nonnull %1)
  %53 = call noundef zeroext i1 @_ZNK4juce18MultiDocumentPanel27isFullscreenWhenOneDocumentEv(ptr noundef nonnull align 8 dereferenceable(260) %0) #7
  br i1 %53, label %54, label %110

54:                                               ; preds = %52
  %55 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %8) #7
  %56 = icmp eq i32 %55, 1
  br i1 %56, label %57, label %110

57:                                               ; preds = %54
  %58 = call noundef i32 @_ZNK4juce9Component21getNumChildComponentsEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #7
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %.lr.ph54, label %.sink.split

.lr.ph54:                                         ; preds = %57, %72
  %.in56 = phi i32 [ %60, %72 ], [ %58, %57 ]
  %60 = add nsw i32 %.in56, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %61 = call noundef ptr @_ZNK4juce9Component17getChildComponentEi(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %60) #7
  %62 = icmp eq ptr %61, null
  br i1 %62, label %65, label %63

63:                                               ; preds = %.lr.ph54
  %64 = call ptr @__dynamic_cast(ptr nonnull %61, ptr nonnull @_ZTIN4juce9ComponentE, ptr nonnull @_ZTIN4juce24MultiDocumentPanelWindowE, i64 0) #7
  br label %65

65:                                               ; preds = %.lr.ph54, %63
  %66 = phi ptr [ %64, %63 ], [ null, %.lr.ph54 ]
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %66) #7
  %67 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %.not49 = icmp eq ptr %67, null
  br i1 %.not49, label %72, label %68

68:                                               ; preds = %65
  %69 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  invoke void @_ZN4juce15ResizableWindow21clearContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328) %69)
          to label %72 unwind label %70

70:                                               ; preds = %68
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %120

72:                                               ; preds = %68, %65
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %73 = icmp ugt i32 %.in56, 1
  br i1 %73, label %.lr.ph54, label %.sink.split, !llvm.loop !45

74:                                               ; preds = %24
  %75 = getelementptr inbounds i8, ptr %0, i64 240
  %76 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  %.not = icmp eq ptr %76, null
  br i1 %.not, label %89, label %77

77:                                               ; preds = %74
  %78 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  %79 = call noundef i32 @_ZNK4juce15TabbedComponent10getNumTabsEv(ptr noundef nonnull align 8 dereferenceable(252) %78)
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %.lr.ph, label %.loopexit52

.lr.ph:                                           ; preds = %77, %87
  %.in = phi i32 [ %81, %87 ], [ %79, %77 ]
  %81 = add nsw i32 %.in, -1
  %82 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  %83 = call noundef ptr @_ZNK4juce15TabbedComponent22getTabContentComponentEi(ptr noundef nonnull align 8 dereferenceable(252) %82, i32 noundef %81) #7
  %84 = icmp eq ptr %83, %1
  br i1 %84, label %85, label %87

85:                                               ; preds = %.lr.ph
  %86 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  call void @_ZN4juce15TabbedComponent9removeTabEi(ptr noundef nonnull align 8 dereferenceable(252) %86, i32 noundef %81)
  br label %87

87:                                               ; preds = %85, %.lr.ph
  %88 = icmp ugt i32 %.in, 1
  br i1 %88, label %.lr.ph, label %.loopexit52, !llvm.loop !46

89:                                               ; preds = %74
  call void @_ZN4juce9Component20removeChildComponentEPS0_(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %1)
  br label %.loopexit52

.loopexit52:                                      ; preds = %87, %77, %89
  br i1 %18, label %90, label %94

90:                                               ; preds = %.loopexit52
  %91 = load ptr, ptr %1, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load ptr, ptr %92, align 8
  call void %93(ptr noundef nonnull align 8 dereferenceable(197) %1) #7
  br label %94

94:                                               ; preds = %90, %.loopexit52
  %95 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  %.not45 = icmp eq ptr %95, null
  br i1 %.not45, label %103, label %96

96:                                               ; preds = %94
  %97 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  %98 = call noundef i32 @_ZNK4juce15TabbedComponent10getNumTabsEv(ptr noundef nonnull align 8 dereferenceable(252) %97)
  %99 = getelementptr inbounds i8, ptr %0, i64 256
  %100 = load i32, ptr %99, align 8, !tbaa !47
  %.not46 = icmp sgt i32 %98, %100
  br i1 %.not46, label %103, label %101

101:                                              ; preds = %96
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_15TabbedComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef null)
  br label %103

103:                                              ; preds = %101, %96, %94
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE24removeFirstMatchingValueES2_(ptr noundef nonnull align 8 dereferenceable(20) %8, ptr noundef nonnull %1)
  %104 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %8) #7
  %105 = icmp sgt i32 %104, 0
  br i1 %105, label %106, label %110

106:                                              ; preds = %103
  %107 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  %108 = icmp eq ptr %107, null
  br i1 %108, label %.sink.split, label %110

.sink.split:                                      ; preds = %72, %106, %57
  %109 = call noundef ptr @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE8getFirstEv(ptr noundef nonnull align 8 dereferenceable(20) %8)
  call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %109, i32 noundef -1)
  br label %110

110:                                              ; preds = %.sink.split, %103, %106, %52, %54
  %111 = load ptr, ptr %0, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 272
  %113 = load ptr, ptr %112, align 8
  call void %113(ptr noundef nonnull align 8 dereferenceable(260) %0)
  %114 = call noundef ptr @_ZNK4juce18MultiDocumentPanel17getActiveDocumentEv(ptr noundef nonnull align 8 dereferenceable(260) %0) #7
  %.not48 = icmp eq ptr %114, null
  br i1 %.not48, label %116, label %115

115:                                              ; preds = %110
  call void @_ZN4juce18MultiDocumentPanel17setActiveDocumentEPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(260) %0, ptr noundef nonnull %114)
  br label %116

116:                                              ; preds = %115, %110
  %117 = load ptr, ptr %0, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 360
  %119 = load ptr, ptr %118, align 8
  call void %119(ptr noundef nonnull align 8 dereferenceable(260) %0)
  br label %121

120:                                              ; preds = %70, %45, %33, %31
  %.pn = phi { ptr, i32 } [ %71, %70 ], [ %46, %45 ], [ %34, %33 ], [ %32, %31 ]
  resume { ptr, i32 } %.pn

121:                                              ; preds = %116, %3, %11
  %.0 = phi i1 [ false, %11 ], [ true, %3 ], [ true, %116 ]
  ret i1 %.0
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce9Component13getPropertiesEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce18MultiDocumentPanel27isFullscreenWhenOneDocumentEv(ptr noundef nonnull align 8 dereferenceable(260)) local_unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN4juce15MultiDocHelpersL16shouldDeleteCompEPNS_9ComponentE(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

attributes #0 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nounwind willreturn memory(read) }
attributes #7 = { 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"}
!8 = !{!9, !39, i64 208}
!9 = !{!"_ZTSN4juce18MultiDocumentPanelE", !10, i64 0, !38, i64 200, !39, i64 208, !21, i64 216, !40, i64 240, !41, i64 248, !18, i64 252, !18, i64 256}
!10 = !{!"_ZTSN4juce9ComponentE", !11, i64 0, !12, i64 8, !12, i64 16, !14, i64 24, !16, i64 32, !19, i64 48, !20, i64 56, !21, i64 64, !14, i64 88, !24, i64 96, !14, i64 104, !25, i64 112, !26, i64 120, !27, i64 128, !28, i64 136, !32, i64 160, !36, i64 184, !15, i64 192, !15, i64 196}
!11 = !{!"_ZTSN4juce13MouseListenerE"}
!12 = !{!"_ZTSN4juce6StringE", !13, i64 0}
!13 = !{!"_ZTSN4juce16CharPointer_UTF8E", !14, i64 0}
!14 = !{!"any pointer", !15, i64 0}
!15 = !{!"omnipotent char", !7, i64 0}
!16 = !{!"_ZTSN4juce9RectangleIiEE", !17, i64 0, !18, i64 8, !18, i64 12}
!17 = !{!"_ZTSN4juce5PointIiEE", !18, i64 0, !18, i64 4}
!18 = !{!"int", !15, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !14, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !14, 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", !14, i64 0}
!24 = !{!"_ZTSN4juce11MouseCursorE", !14, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !14, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !14, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !14, 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", !14, 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", !14, i64 0}
!36 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !37, i64 0}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !14, i64 0}
!38 = !{!"_ZTSN4juce17ComponentListenerE"}
!39 = !{!"_ZTSN4juce18MultiDocumentPanel10LayoutModeE", !15, i64 0}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_15TabbedComponentEEE", !14, i64 0}
!41 = !{!"_ZTSN4juce6ColourE", !42, i64 0}
!42 = !{!"_ZTSN4juce9PixelARGBE", !15, i64 0}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}
!45 = distinct !{!45, !44}
!46 = distinct !{!46, !44}
!47 = !{!9, !18, i64 256}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass