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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::ScopedPointer.368" = type { ptr }
%"class.juce::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }
%"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::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::ScopedPointer.361" = 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.174 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZTIN4juce24MultiDocumentPanelWindowE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZN4juce7Colours5whiteE = external global %"class.juce::Colour", align 1

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: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #1 align 2

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce3varcviEv(ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: nounwind
declare void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef) unnamed_addr #2

declare noundef zeroext i1 @_ZN4juce13NamedValueSet3setERKNS_10IdentifierEONS_3varE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce6Colour7getARGBEv(ptr noundef nonnull align 1 dereferenceable(4)) #2

; Function Attrs: nounwind
declare void @_ZN4juce3varC1Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce18MultiDocumentPanel13setLayoutModeENS0_10LayoutModeE(ptr noundef nonnull align 8 dereferenceable(260) %0, i32 noundef %1) #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.juce::ScopedPointer.368", align 8
  %7 = alloca %"class.juce::Identifier", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.juce::var", align 8
  %11 = alloca %"class.juce::String", align 8
  %12 = alloca %"class.juce::Array", align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.juce::Colour", align 1
  %16 = alloca %"class.juce::var", align 8
  %17 = alloca %"class.juce::Identifier", align 8
  %18 = alloca %"class.juce::var", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %19 = load ptr, ptr %3, align 8
  %20 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = load i32, ptr %4, align 4, !tbaa !9
  %23 = icmp ne i32 %21, %22
  br i1 %23, label %24, label %145

24:                                               ; preds = %2
  %25 = load i32, ptr %4, align 4, !tbaa !9
  %26 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %19, i32 0, i32 3
  store i32 %25, ptr %26, align 8, !tbaa !11
  %27 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %19, i32 0, i32 3
  %28 = load i32, ptr %27, align 8, !tbaa !11
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %33

30:                                               ; preds = %24
  %31 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %19, i32 0, i32 6
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_15TabbedComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef null)
  br label %89

33:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %34 = call noundef i32 @_ZNK4juce9Component21getNumChildComponentsEv(ptr noundef nonnull align 8 dereferenceable(197) %19) #7
  store i32 %34, ptr %5, align 4, !tbaa !43
  br label %35

35:                                               ; preds = %86, %33
  %36 = load i32, ptr %5, align 4, !tbaa !43
  %37 = add nsw i32 %36, -1
  store i32 %37, ptr %5, align 4, !tbaa !43
  %38 = icmp sge i32 %37, 0
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %88

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %41 = load i32, ptr %5, align 4, !tbaa !43
  %42 = call noundef ptr @_ZNK4juce9Component17getChildComponentEi(ptr noundef nonnull align 8 dereferenceable(197) %19, i32 noundef %41) #7
  %43 = icmp eq ptr %42, null
  br i1 %43, label %46, label %44

44:                                               ; preds = %40
  %45 = call ptr @__dynamic_cast(ptr %42, ptr @_ZTIN4juce9ComponentE, ptr @_ZTIN4juce24MultiDocumentPanelWindowE, i64 0) #7
  br label %47

46:                                               ; preds = %40
  br label %47

47:                                               ; preds = %46, %44
  %48 = phi ptr [ %45, %44 ], [ null, %46 ]
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %48) #7
  %49 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %86

51:                                               ; preds = %47
  %52 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %53 = call noundef ptr @_ZNK4juce15ResizableWindow19getContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328) %52) #7
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce9Component13getPropertiesEv(ptr noundef nonnull align 8 dereferenceable(197) %53) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  invoke void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef @.str.174)
          to label %55 unwind label %63

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %56 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  invoke void @_ZN4juce15ResizableWindow22getWindowStateAsStringEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %11, ptr noundef nonnull align 8 dereferenceable(328) %56)
          to label %57 unwind label %67

57:                                               ; preds = %55
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %58 unwind label %71

58:                                               ; preds = %57
  %59 = invoke noundef zeroext i1 @_ZN4juce13NamedValueSet3setERKNS_10IdentifierEONS_3varE(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %60 unwind label %75

60:                                               ; preds = %58
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  %61 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  invoke void @_ZN4juce15ResizableWindow21clearContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328) %61)
          to label %62 unwind label %82

62:                                               ; preds = %60
  br label %86

63:                                               ; preds = %51
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %8, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %9, align 4
  br label %81

67:                                               ; preds = %55
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %8, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %9, align 4
  br label %80

71:                                               ; preds = %57
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %8, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %9, align 4
  br label %79

75:                                               ; preds = %58
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %8, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %9, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  br label %79

79:                                               ; preds = %75, %71
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br label %80

80:                                               ; preds = %79, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %81

81:                                               ; preds = %80, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %87

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

86:                                               ; preds = %62, %47
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %35, !llvm.loop !44

87:                                               ; preds = %82, %81
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %146

88:                                               ; preds = %39
  br label %89

89:                                               ; preds = %88, %30
  %90 = load ptr, ptr %19, align 8, !tbaa !46
  %91 = getelementptr inbounds ptr, ptr %90, i64 34
  %92 = load ptr, ptr %91, align 8
  call void %92(ptr noundef nonnull align 8 dereferenceable(260) %19)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  %93 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %19, i32 0, i32 5
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(20) %12, ptr noundef nonnull align 8 dereferenceable(20) %93)
  %94 = getelementptr inbounds %"class.juce::MultiDocumentPanel", ptr %19, i32 0, i32 5
  invoke void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %94)
          to label %95 unwind label %101

95:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !43
  br label %96

96:                                               ; preds = %121, %95
  %97 = load i32, ptr %13, align 4, !tbaa !43
  %98 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %12) #7
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %105, label %100

100:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %143

101:                                              ; preds = %89
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %8, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %9, align 4
  br label %144

105:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %106 = load i32, ptr %13, align 4, !tbaa !43
  %107 = invoke noundef ptr @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %12, i32 noundef %106)
          to label %108 unwind label %124

108:                                              ; preds = %105
  store ptr %107, ptr %14, align 8, !tbaa !5
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce9Component13getPropertiesEv(ptr noundef nonnull align 8 dereferenceable(197) %110) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  invoke void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef @.str.173)
          to label %112 unwind label %128

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  %113 = call noundef i32 @_ZNK4juce6Colour7getARGBEv(ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE) #7
  call void @_ZN4juce3varC1Ei(ptr noundef nonnull align 8 dereferenceable(16) %18, i32 noundef %113) #7
  invoke void @_ZNK4juce13NamedValueSet14getWithDefaultERKNS_10IdentifierERKNS_3varE(ptr dead_on_unwind writable sret(%"class.juce::var") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %111, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %114 unwind label %132

114:                                              ; preds = %112
  %115 = call noundef i32 @_ZNK4juce3varcviEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %15, i32 noundef %115) #7
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = invoke noundef zeroext i1 @_ZN4juce15MultiDocHelpersL16shouldDeleteCompEPNS_9ComponentE(ptr noundef %116)
          to label %118 unwind label %136

118:                                              ; preds = %114
  %119 = invoke noundef zeroext i1 @_ZN4juce18MultiDocumentPanel11addDocumentEPNS_9ComponentENS_6ColourEb(ptr noundef nonnull align 8 dereferenceable(260) %19, ptr noundef %109, ptr noundef %15, i1 noundef zeroext %117)
          to label %120 unwind label %136

120:                                              ; preds = %118
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #7
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %13, align 4, !tbaa !43
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %13, align 4, !tbaa !43
  br label %96, !llvm.loop !48

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

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

132:                                              ; preds = %112
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %8, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %9, align 4
  br label %140

136:                                              ; preds = %118, %114
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %8, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %9, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #7
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  br label %140

140:                                              ; preds = %136, %132
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %141

141:                                              ; preds = %140, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  br label %142

142:                                              ; preds = %141, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %144

143:                                              ; preds = %100
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  br label %145

144:                                              ; preds = %142, %101
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  br label %146

145:                                              ; preds = %143, %2
  ret void

146:                                              ; preds = %144, %87
  %147 = load ptr, ptr %8, align 8
  %148 = load i32, ptr %9, align 4
  %149 = insertvalue { ptr, i32 } poison, ptr %147, 0
  %150 = insertvalue { ptr, i32 } %149, i32 %148, 1
  resume { ptr, i32 } %150
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce15ResizableWindow19getContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328)) #1 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)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4juce18MultiDocumentPanel11addDocumentEPNS_9ComponentENS_6ColourEb(ptr noundef nonnull align 8 dereferenceable(260), ptr noundef, ptr noundef, i1 noundef zeroext) #6 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) #1 align 2

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

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

; 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)) #6 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 uwtable
declare dso_local void @_ZN4juce15ResizableWindow22getWindowStateAsStringEv(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(328)) #6 align 2

declare void @_ZNK4juce13NamedValueSet14getWithDefaultERKNS_10IdentifierERKNS_3varE(ptr dead_on_unwind writable sret(%"class.juce::var") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #4

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 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind willreturn memory(read) }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"_ZTSN4juce18MultiDocumentPanel10LayoutModeE", !7, i64 0}
!11 = !{!12, !10, i64 208}
!12 = !{!"_ZTSN4juce18MultiDocumentPanelE", !13, i64 0, !39, i64 200, !10, i64 208, !22, i64 216, !40, i64 240, !41, i64 248, !19, i64 252, !19, i64 256}
!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 = !{!"_ZTSN4juce17ComponentListenerE"}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_15TabbedComponentEEE", !6, i64 0}
!41 = !{!"_ZTSN4juce6ColourE", !42, i64 0}
!42 = !{!"_ZTSN4juce9PixelARGBE", !7, i64 0}
!43 = !{!19, !19, i64 0}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = !{!47, !47, i64 0}
!47 = !{!"vtable pointer", !8, i64 0}
!48 = distinct !{!48, !45}


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

%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::ScopedPointer.368" = type { ptr }
%"class.juce::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }
%"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 }

@_ZTIN4juce9ComponentE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.173 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZTIN4juce24MultiDocumentPanelWindowE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZN4juce7Colours5whiteE = external global %"class.juce::Colour", align 1

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 nounwind uwtable
declare dso_local void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component21getNumChildComponentsEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 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 #1 align 2

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

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce3varcviEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef) unnamed_addr #2

declare noundef zeroext i1 @_ZN4juce13NamedValueSet3setERKNS_10IdentifierEONS_3varE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce6Colour7getARGBEv(ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN4juce3varC1Ei(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce18MultiDocumentPanel13setLayoutModeENS0_10LayoutModeE(ptr noundef nonnull align 8 dereferenceable(260) %0, i32 noundef %1) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::ScopedPointer.368", align 8
  %4 = alloca %"class.juce::Identifier", align 8
  %5 = alloca %"class.juce::var", align 8
  %6 = alloca %"class.juce::String", align 8
  %7 = alloca %"class.juce::Array", align 8
  %8 = alloca %"class.juce::Colour", align 1
  %9 = alloca %"class.juce::var", align 8
  %10 = alloca %"class.juce::Identifier", align 8
  %11 = alloca %"class.juce::var", align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 208
  %13 = load i32, ptr %12, align 8, !tbaa !5
  %.not = icmp eq i32 %13, %1
  br i1 %.not, label %87, label %14

14:                                               ; preds = %2
  store i32 %1, ptr %12, align 8, !tbaa !5
  %15 = icmp eq i32 %1, 0
  br i1 %15, label %16, label %19

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %0, i64 240
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_15TabbedComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef null)
  br label %.loopexit

19:                                               ; preds = %14
  %20 = tail call noundef i32 @_ZNK4juce9Component21getNumChildComponentsEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #7
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %19, %54
  %.in = phi i32 [ %22, %54 ], [ %20, %19 ]
  %22 = add nsw i32 %.in, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %23 = call noundef ptr @_ZNK4juce9Component17getChildComponentEi(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %22) #7
  %24 = icmp eq ptr %23, null
  br i1 %24, label %27, label %25

25:                                               ; preds = %.lr.ph
  %26 = call ptr @__dynamic_cast(ptr nonnull %23, ptr nonnull @_ZTIN4juce9ComponentE, ptr nonnull @_ZTIN4juce24MultiDocumentPanelWindowE, i64 0) #7
  br label %27

27:                                               ; preds = %.lr.ph, %25
  %28 = phi ptr [ %26, %25 ], [ null, %.lr.ph ]
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %28) #7
  %29 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %.not25 = icmp eq ptr %29, null
  br i1 %.not25, label %54, label %30

30:                                               ; preds = %27
  %31 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %32 = call noundef ptr @_ZNK4juce15ResizableWindow19getContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328) %31) #7
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce9Component13getPropertiesEv(ptr noundef nonnull align 8 dereferenceable(197) %32) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  invoke void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.174)
          to label %34 unwind label %41

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %35 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  invoke void @_ZN4juce15ResizableWindow22getWindowStateAsStringEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %6, ptr noundef nonnull align 8 dereferenceable(328) %35)
          to label %36 unwind label %43

36:                                               ; preds = %34
  invoke void @_ZN4juce3varC1EONS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %37 unwind label %45

37:                                               ; preds = %36
  %38 = invoke noundef zeroext i1 @_ZN4juce13NamedValueSet3setERKNS_10IdentifierEONS_3varE(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %39 unwind label %47

39:                                               ; preds = %37
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %40 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24MultiDocumentPanelWindowEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  invoke void @_ZN4juce15ResizableWindow21clearContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328) %40)
          to label %54 unwind label %52

41:                                               ; preds = %30
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %51

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

45:                                               ; preds = %36
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %49

47:                                               ; preds = %37
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %49

49:                                               ; preds = %47, %45
  %.pn = phi { ptr, i32 } [ %48, %47 ], [ %46, %45 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br label %50

50:                                               ; preds = %49, %43
  %.pn.pn = phi { ptr, i32 } [ %.pn, %49 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br label %51

51:                                               ; preds = %50, %41
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %50 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %56

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

54:                                               ; preds = %39, %27
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %55 = icmp ugt i32 %.in, 1
  br i1 %55, label %.lr.ph, label %.loopexit, !llvm.loop !41

56:                                               ; preds = %52, %51
  %.pn29 = phi { ptr, i32 } [ %53, %52 ], [ %.pn.pn.pn, %51 ]
  call void @_ZN4juce13ScopedPointerINS_24MultiDocumentPanelWindowEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %88

.loopexit:                                        ; preds = %54, %19, %16
  %57 = load ptr, ptr %0, align 8, !tbaa !43
  %58 = getelementptr inbounds i8, ptr %57, i64 272
  %59 = load ptr, ptr %58, align 8
  call void %59(ptr noundef nonnull align 8 dereferenceable(260) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  %60 = getelementptr inbounds i8, ptr %0, i64 216
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(20) %7, ptr noundef nonnull align 8 dereferenceable(20) %60)
  invoke void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %60)
          to label %.preheader unwind label %63

.preheader:                                       ; preds = %.loopexit
  %61 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %7) #7
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %.lr.ph37, label %._crit_edge

._crit_edge:                                      ; preds = %74, %.preheader
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %87

63:                                               ; preds = %.loopexit
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %86

.lr.ph37:                                         ; preds = %.preheader, %74
  %.01236 = phi i32 [ %75, %74 ], [ 0, %.preheader ]
  %65 = call noundef ptr @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %7, i32 noundef %.01236)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce9Component13getPropertiesEv(ptr noundef nonnull align 8 dereferenceable(197) %65) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  invoke void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull @.str.173)
          to label %67 unwind label %78

67:                                               ; preds = %.lr.ph37
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %68 = call noundef i32 @_ZNK4juce6Colour7getARGBEv(ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE) #7
  call void @_ZN4juce3varC1Ei(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %68) #7
  invoke void @_ZNK4juce13NamedValueSet14getWithDefaultERKNS_10IdentifierERKNS_3varE(ptr dead_on_unwind nonnull writable sret(%"class.juce::var") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %69 unwind label %80

69:                                               ; preds = %67
  %70 = call noundef i32 @_ZNK4juce3varcviEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %8, i32 noundef %70) #7
  %71 = invoke noundef zeroext i1 @_ZN4juce15MultiDocHelpersL16shouldDeleteCompEPNS_9ComponentE(ptr noundef nonnull %65)
          to label %72 unwind label %82

72:                                               ; preds = %69
  %73 = invoke noundef zeroext i1 @_ZN4juce18MultiDocumentPanel11addDocumentEPNS_9ComponentENS_6ColourEb(ptr noundef nonnull align 8 dereferenceable(260) %0, ptr noundef nonnull %65, ptr noundef nonnull %8, i1 noundef zeroext %71)
          to label %74 unwind label %82

74:                                               ; preds = %72
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %8) #7
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  %75 = add nuw nsw i32 %.01236, 1
  %76 = call noundef i32 @_ZNK4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %7) #7
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %.lr.ph37, label %._crit_edge, !llvm.loop !45

78:                                               ; preds = %.lr.ph37
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %85

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

82:                                               ; preds = %72, %69
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %8) #7
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  br label %84

84:                                               ; preds = %82, %80
  %.pn31 = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ]
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %85

85:                                               ; preds = %84, %78
  %.pn31.pn = phi { ptr, i32 } [ %.pn31, %84 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %86

86:                                               ; preds = %85, %63
  %.pn31.pn.pn = phi { ptr, i32 } [ %.pn31.pn, %85 ], [ %64, %63 ]
  call void @_ZN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %88

87:                                               ; preds = %._crit_edge, %2
  ret void

88:                                               ; preds = %86, %56
  %.pn31.pn.pn.pn = phi { ptr, i32 } [ %.pn31.pn.pn, %86 ], [ %.pn29, %56 ]
  resume { ptr, i32 } %.pn31.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce15ResizableWindow19getContentComponentEv(ptr noundef nonnull align 8 dereferenceable(328)) local_unnamed_addr #1 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 #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4juce18MultiDocumentPanel11addDocumentEPNS_9ComponentENS_6ColourEb(ptr noundef nonnull align 8 dereferenceable(260), ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #6 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 #1 align 2

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

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

; 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 #6 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 uwtable
declare dso_local void @_ZN4juce15ResizableWindow22getWindowStateAsStringEv(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(328)) local_unnamed_addr #6 align 2

declare void @_ZNK4juce13NamedValueSet14getWithDefaultERKNS_10IdentifierERKNS_3varE(ptr dead_on_unwind writable sret(%"class.juce::var") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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


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