; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::DragAndDropTarget::SourceDetails" = type { %"class.juce::var", %"class.juce::WeakReference", %"class.juce::Point" }
%"class.juce::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::Toolbar" = type { %"class.juce::Component.base", %"class.juce::DragAndDropContainer", %"class.juce::DragAndDropTarget", %"class.juce::Button::Listener", %"class.juce::ScopedPointer.282", i8, i8, i32, %"class.juce::OwnedArray.417" }
%"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::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.0" = type { ptr }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::MouseCursor" = type { ptr }
%"class.juce::ScopedPointer.1" = type { ptr }
%"class.juce::ScopedPointer.2" = type { ptr }
%"class.juce::ScopedPointer.3" = type { ptr }
%"class.juce::ListenerList" = type { %"class.juce::Array.4" }
%"class.juce::Array.4" = type { %"class.juce::ArrayAllocationBase.5", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.5" = type <{ %"class.juce::HeapBlock.6", i32, [4 x i8] }>
%"class.juce::HeapBlock.6" = type { ptr }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.9" }
%"class.juce::Array.9" = type { %"class.juce::ArrayAllocationBase.10", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.10" = type <{ %"class.juce::HeapBlock.11", i32, [4 x i8] }>
%"class.juce::HeapBlock.11" = type { ptr }
%"class.juce::WeakReference<juce::Component>::Master" = type { %"class.juce::ReferenceCountedObjectPtr" }
%union.anon = type { i32 }
%"class.juce::DragAndDropContainer" = type { ptr, %"class.juce::ScopedPointer.97" }
%"class.juce::ScopedPointer.97" = type { ptr }
%"class.juce::DragAndDropTarget" = type { ptr }
%"class.juce::Button::Listener" = type { ptr }
%"class.juce::ScopedPointer.282" = type { ptr }
%"class.juce::OwnedArray.417" = type { %"class.juce::ArrayAllocationBase.418", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.418" = type <{ %"class.juce::HeapBlock.419", i32, [4 x i8] }>
%"class.juce::HeapBlock.419" = type { ptr }
%"class.juce::ToolbarItemComponent" = type <{ %"class.juce::Button.base", i8, i32, i32, i32, [4 x i8], %"class.juce::ScopedPointer.159", i32, i32, i8, i8, i8, i8, %"class.juce::Rectangle", [4 x i8] }>
%"class.juce::Button.base" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::SettableTooltipClient", %"class.juce::Array.104", %"class.juce::WeakReference", %"class.juce::String", %"class.juce::ListenerList.109", %"class.juce::ScopedPointer.115", i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, %"class.juce::Value", i8, i8, i8, i8, i8, i8, i8 }>
%"class.juce::SettableTooltipClient" = type { %"class.juce::TooltipClient", %"class.juce::String" }
%"class.juce::TooltipClient" = type { ptr }
%"class.juce::Array.104" = type { %"class.juce::ArrayAllocationBase.105", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.105" = type <{ %"class.juce::HeapBlock.106", i32, [4 x i8] }>
%"class.juce::HeapBlock.106" = type { ptr }
%"class.juce::ListenerList.109" = type { %"class.juce::Array.110" }
%"class.juce::Array.110" = type { %"class.juce::ArrayAllocationBase.111", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.111" = type <{ %"class.juce::HeapBlock.112", i32, [4 x i8] }>
%"class.juce::HeapBlock.112" = type { ptr }
%"class.juce::ScopedPointer.115" = type { ptr }
%"class.juce::Value" = type { %"class.juce::ReferenceCountedObjectPtr.116", %"class.juce::ListenerList.117" }
%"class.juce::ReferenceCountedObjectPtr.116" = type { ptr }
%"class.juce::ListenerList.117" = type { %"class.juce::Array.118" }
%"class.juce::Array.118" = type { %"class.juce::ArrayAllocationBase.119", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.119" = type <{ %"class.juce::HeapBlock.120", i32, [4 x i8] }>
%"class.juce::HeapBlock.120" = type { ptr }
%"class.juce::ScopedPointer.159" = type { ptr }

@_ZTIN4juce9ComponentE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN4juce20ToolbarItemComponentE = external dso_local constant { ptr, ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #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 nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv() #2 align 2

; 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 i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce17ComponentAnimator23getComponentDestinationEPNS_9ComponentE(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(116), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7Toolbar12itemDragMoveERKNS_17DragAndDropTarget13SourceDetailsE(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.juce::Rectangle", align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.juce::Rectangle", align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"class.juce::Rectangle", align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.juce::DragAndDropTarget::SourceDetails", ptr %22, i32 0, i32 1
  %24 = call noundef ptr @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  %25 = icmp eq ptr %24, null
  br i1 %25, label %28, label %26

26:                                               ; preds = %2
  %27 = call ptr @__dynamic_cast(ptr %24, ptr @_ZTIN4juce9ComponentE, ptr @_ZTIN4juce20ToolbarItemComponentE, i64 0) #6
  br label %29

28:                                               ; preds = %2
  br label %29

29:                                               ; preds = %28, %26
  %30 = phi ptr [ %27, %26 ], [ null, %28 ]
  store ptr %30, ptr %5, align 8, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %212

33:                                               ; preds = %29
  %34 = getelementptr inbounds %"class.juce::Toolbar", ptr %21, i32 0, i32 8
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = call noundef zeroext i1 @_ZNK4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEE8containsEPKS1_(ptr noundef nonnull align 8 dereferenceable(20) %34, ptr noundef %35) #6
  br i1 %36, label %59, label %37

37:                                               ; preds = %33
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = call noundef i32 @_ZNK4juce20ToolbarItemComponent14getEditingModeEv(ptr noundef nonnull align 8 dereferenceable(428) %38) #6
  %40 = icmp eq i32 %39, 2
  br i1 %40, label %41, label %50

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = call noundef ptr @_ZNK4juce9Component26findParentComponentOfClassINS_18ToolbarItemPaletteEEEPT_v(ptr noundef nonnull align 8 dereferenceable(197) %42)
  store ptr %43, ptr %6, align 8, !tbaa !5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %49

46:                                               ; preds = %41
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4juce18ToolbarItemPalette16replaceComponentERNS_20ToolbarItemComponentE(ptr noundef nonnull align 8 dereferenceable(1480) %47, ptr noundef nonnull align 8 dereferenceable(428) %48)
  br label %49

49:                                               ; preds = %46, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %54

50:                                               ; preds = %37
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53, %49
  %55 = getelementptr inbounds %"class.juce::Toolbar", ptr %21, i32 0, i32 8
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = call noundef ptr @_ZN4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEE3addEPS1_(ptr noundef nonnull align 8 dereferenceable(20) %55, ptr noundef %56) #6
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %21, ptr noundef %58, i32 noundef -1)
  call void @_ZN4juce7Toolbar22updateAllItemPositionsEb(ptr noundef nonnull align 8 dereferenceable(272) %21, i1 noundef zeroext true)
  br label %59

59:                                               ; preds = %54, %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %60 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
  %61 = call noundef nonnull align 8 dereferenceable(116) ptr @_ZN4juce7Desktop11getAnimatorEv(ptr noundef nonnull align 8 dereferenceable(360) %60) #6
  store ptr %61, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %62 = call noundef i32 @_ZNK4juce7Toolbar11getNumItemsEv(ptr noundef nonnull align 8 dereferenceable(272) %21) #6
  store i32 %62, ptr %8, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %205, %59
  %64 = load i32, ptr %8, align 4, !tbaa !9
  %65 = add nsw i32 %64, -1
  store i32 %65, ptr %8, align 4, !tbaa !9
  %66 = icmp sge i32 %65, 0
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 4, ptr %9, align 4
  br label %210

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %69 = getelementptr inbounds %"class.juce::Toolbar", ptr %21, i32 0, i32 8
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call noundef i32 @_ZNK4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEE7indexOfEPKS1_(ptr noundef nonnull align 8 dereferenceable(20) %69, ptr noundef %70) #6
  store i32 %71, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %72 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %72, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %73 = getelementptr inbounds %"class.juce::Toolbar", ptr %21, i32 0, i32 5
  %74 = load i8, ptr %73, align 8, !tbaa !11, !range !48, !noundef !49
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %84

76:                                               ; preds = %68
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.juce::DragAndDropTarget::SourceDetails", ptr %77, i32 0, i32 2
  %79 = call noundef i32 @_ZNK4juce5PointIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %78) #6
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.juce::ToolbarItemComponent", ptr %80, i32 0, i32 8
  %82 = load i32, ptr %81, align 4, !tbaa !50
  %83 = sub nsw i32 %79, %82
  br label %92

84:                                               ; preds = %68
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.juce::DragAndDropTarget::SourceDetails", ptr %85, i32 0, i32 2
  %87 = call noundef i32 @_ZNK4juce5PointIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %86) #6
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.juce::ToolbarItemComponent", ptr %88, i32 0, i32 7
  %90 = load i32, ptr %89, align 8, !tbaa !73
  %91 = sub nsw i32 %87, %90
  br label %92

92:                                               ; preds = %84, %76
  %93 = phi i32 [ %83, %76 ], [ %91, %84 ]
  store i32 %93, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %94 = load i32, ptr %12, align 4, !tbaa !9
  %95 = getelementptr inbounds %"class.juce::Toolbar", ptr %21, i32 0, i32 5
  %96 = load i8, ptr %95, align 8, !tbaa !11, !range !48, !noundef !49
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %101

98:                                               ; preds = %92
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %99) #6
  br label %104

101:                                              ; preds = %92
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %102) #6
  br label %104

104:                                              ; preds = %101, %98
  %105 = phi i32 [ %100, %98 ], [ %103, %101 ]
  %106 = add nsw i32 %94, %105
  store i32 %106, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = call noundef ptr @_ZNK4juce9Component17getChildComponentEi(ptr noundef nonnull align 8 dereferenceable(197) %21, i32 noundef %108) #6
  call void @_ZN4juce17ComponentAnimator23getComponentDestinationEPNS_9ComponentE(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %14, ptr noundef nonnull align 8 dereferenceable(116) %107, ptr noundef %109)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = call noundef ptr @_ZNK4juce7Toolbar22getNextActiveComponentEii(ptr noundef nonnull align 8 dereferenceable(272) %21, i32 noundef %110, i32 noundef -1)
  store ptr %111, ptr %15, align 8, !tbaa !5
  %112 = load ptr, ptr %15, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %146

114:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN4juce17ComponentAnimator23getComponentDestinationEPNS_9ComponentE(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %16, ptr noundef nonnull align 8 dereferenceable(116) %115, ptr noundef %116)
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = getelementptr inbounds %"class.juce::Toolbar", ptr %21, i32 0, i32 5
  %119 = load i8, ptr %118, align 8, !tbaa !11, !range !48, !noundef !49
  %120 = trunc i8 %119 to i1
  br i1 %120, label %121, label %123

121:                                              ; preds = %114
  %122 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %16) #6
  br label %125

123:                                              ; preds = %114
  %124 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %16) #6
  br label %125

125:                                              ; preds = %123, %121
  %126 = phi i32 [ %122, %121 ], [ %124, %123 ]
  %127 = sub nsw i32 %117, %126
  %128 = call i32 @llvm.abs.i32(i32 %127, i1 true)
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = getelementptr inbounds %"class.juce::Toolbar", ptr %21, i32 0, i32 5
  %131 = load i8, ptr %130, align 8, !tbaa !11, !range !48, !noundef !49
  %132 = trunc i8 %131 to i1
  br i1 %132, label %133, label %135

133:                                              ; preds = %125
  %134 = call noundef i32 @_ZNK4juce9RectangleIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16) %14) #6
  br label %137

135:                                              ; preds = %125
  %136 = call noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %14) #6
  br label %137

137:                                              ; preds = %135, %133
  %138 = phi i32 [ %134, %133 ], [ %136, %135 ]
  %139 = sub nsw i32 %129, %138
  %140 = call i32 @llvm.abs.i32(i32 %139, i1 true)
  %141 = icmp slt i32 %128, %140
  br i1 %141, label %142, label %145

142:                                              ; preds = %137
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = call noundef i32 @_ZNK4juce9Component24getIndexOfChildComponentEPKS0_(ptr noundef nonnull align 8 dereferenceable(197) %21, ptr noundef %143) #6
  store i32 %144, ptr %11, align 4, !tbaa !9
  br label %145

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

146:                                              ; preds = %145, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %147 = load i32, ptr %11, align 4, !tbaa !9
  %148 = call noundef ptr @_ZNK4juce7Toolbar22getNextActiveComponentEii(ptr noundef nonnull align 8 dereferenceable(272) %21, i32 noundef %147, i32 noundef 1)
  store ptr %148, ptr %17, align 8, !tbaa !5
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = icmp ne ptr %149, null
  br i1 %150, label %151, label %184

151:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN4juce17ComponentAnimator23getComponentDestinationEPNS_9ComponentE(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %18, ptr noundef nonnull align 8 dereferenceable(116) %152, ptr noundef %153)
  %154 = load i32, ptr %12, align 4, !tbaa !9
  %155 = getelementptr inbounds %"class.juce::Toolbar", ptr %21, i32 0, i32 5
  %156 = load i8, ptr %155, align 8, !tbaa !11, !range !48, !noundef !49
  %157 = trunc i8 %156 to i1
  br i1 %157, label %158, label %160

158:                                              ; preds = %151
  %159 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %14) #6
  br label %162

160:                                              ; preds = %151
  %161 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %14) #6
  br label %162

162:                                              ; preds = %160, %158
  %163 = phi i32 [ %159, %158 ], [ %161, %160 ]
  %164 = sub nsw i32 %154, %163
  %165 = call i32 @llvm.abs.i32(i32 %164, i1 true)
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = getelementptr inbounds %"class.juce::Toolbar", ptr %21, i32 0, i32 5
  %168 = load i8, ptr %167, align 8, !tbaa !11, !range !48, !noundef !49
  %169 = trunc i8 %168 to i1
  br i1 %169, label %170, label %172

170:                                              ; preds = %162
  %171 = call noundef i32 @_ZNK4juce9RectangleIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16) %18) #6
  br label %174

172:                                              ; preds = %162
  %173 = call noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %18) #6
  br label %174

174:                                              ; preds = %172, %170
  %175 = phi i32 [ %171, %170 ], [ %173, %172 ]
  %176 = sub nsw i32 %166, %175
  %177 = call i32 @llvm.abs.i32(i32 %176, i1 true)
  %178 = icmp sgt i32 %165, %177
  br i1 %178, label %179, label %183

179:                                              ; preds = %174
  %180 = load ptr, ptr %17, align 8, !tbaa !5
  %181 = call noundef i32 @_ZNK4juce9Component24getIndexOfChildComponentEPKS0_(ptr noundef nonnull align 8 dereferenceable(197) %21, ptr noundef %180) #6
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %11, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %179, %174
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %184

184:                                              ; preds = %183, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %185 = load i32, ptr %11, align 4, !tbaa !9
  %186 = load i32, ptr %10, align 4, !tbaa !9
  %187 = icmp eq i32 %185, %186
  br i1 %187, label %188, label %189

188:                                              ; preds = %184
  store i32 4, ptr %9, align 4
  br label %203

189:                                              ; preds = %184
  %190 = getelementptr inbounds %"class.juce::Toolbar", ptr %21, i32 0, i32 8
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEE12removeObjectEPKS1_b(ptr noundef nonnull align 8 dereferenceable(20) %190, ptr noundef %191, i1 noundef zeroext false)
          to label %192 unwind label %206

192:                                              ; preds = %189
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4juce9Component20removeChildComponentEPS0_(ptr noundef nonnull align 8 dereferenceable(197) %21, ptr noundef %193)
          to label %194 unwind label %206

194:                                              ; preds = %192
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %21, ptr noundef %195, i32 noundef %196)
          to label %197 unwind label %206

197:                                              ; preds = %194
  %198 = getelementptr inbounds %"class.juce::Toolbar", ptr %21, i32 0, i32 8
  %199 = load i32, ptr %11, align 4, !tbaa !9
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = call noundef ptr @_ZN4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEE6insertEiPS1_(ptr noundef nonnull align 8 dereferenceable(20) %198, i32 noundef %199, ptr noundef %200) #6
  invoke void @_ZN4juce7Toolbar22updateAllItemPositionsEb(ptr noundef nonnull align 8 dereferenceable(272) %21, i1 noundef zeroext true)
          to label %202 unwind label %206

202:                                              ; preds = %197
  store i32 0, ptr %9, align 4
  br label %203

203:                                              ; preds = %202, %188
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %204 = load i32, ptr %9, align 4
  switch i32 %204, label %210 [
    i32 0, label %205
  ]

205:                                              ; preds = %203
  br label %63, !llvm.loop !74

206:                                              ; preds = %197, %194, %192, %189
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %19, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %20, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %213

210:                                              ; preds = %203, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %211

211:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %212

212:                                              ; preds = %211, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void

213:                                              ; preds = %206
  %214 = load ptr, ptr %19, align 8
  %215 = load i32, ptr %20, align 4
  %216 = insertvalue { ptr, i32 } poison, ptr %214, 0
  %217 = insertvalue { ptr, i32 } %216, i32 %215, 1
  resume { ptr, i32 } %217
}

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

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

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

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

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

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

attributes #0 = { 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 = { 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 #4 = { nounwind willreturn memory(read) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !43, i64 240}
!12 = !{!"_ZTSN4juce7ToolbarE", !13, i64 0, !38, i64 200, !40, i64 216, !41, i64 224, !42, i64 232, !43, i64 240, !43, i64 241, !44, i64 244, !45, i64 248}
!13 = !{!"_ZTSN4juce9ComponentE", !14, i64 0, !15, i64 8, !15, i64 16, !6, i64 24, !17, i64 32, !19, i64 48, !20, i64 56, !21, i64 64, !6, i64 88, !24, i64 96, !6, i64 104, !25, i64 112, !26, i64 120, !27, i64 128, !28, i64 136, !32, i64 160, !36, 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, !10, i64 8, !10, i64 12}
!18 = !{!"_ZTSN4juce5PointIiEE", !10, i64 0, !10, i64 4}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!21 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !10, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !23, i64 0, !10, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!24 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !10, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !31, i64 0, !10, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!32 = !{!"_ZTSN4juce13NamedValueSetE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !10, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !35, i64 0, !10, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!36 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !37, i64 0}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!38 = !{!"_ZTSN4juce20DragAndDropContainerE", !39, i64 8}
!39 = !{!"_ZTSN4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEE", !6, i64 0}
!40 = !{!"_ZTSN4juce17DragAndDropTargetE"}
!41 = !{!"_ZTSN4juce6Button8ListenerE"}
!42 = !{!"_ZTSN4juce13ScopedPointerINS_6ButtonEEE", !6, i64 0}
!43 = !{!"bool", !7, i64 0}
!44 = !{!"_ZTSN4juce7Toolbar16ToolbarItemStyleE", !7, i64 0}
!45 = !{!"_ZTSN4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEEE", !46, i64 0, !10, i64 16}
!46 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_20ToolbarItemComponentENS_20DummyCriticalSectionEEE", !47, i64 0, !10, i64 8}
!47 = !{!"_ZTSN4juce9HeapBlockIPNS_20ToolbarItemComponentELb0EEE", !6, i64 0}
!48 = !{i8 0, i8 2}
!49 = !{}
!50 = !{!51, !10, i64 404}
!51 = !{!"_ZTSN4juce20ToolbarItemComponentE", !52, i64 0, !10, i64 376, !71, i64 380, !44, i64 384, !72, i64 392, !10, i64 400, !10, i64 404, !43, i64 408, !43, i64 409, !43, i64 410, !17, i64 412}
!52 = !{!"_ZTSN4juce6ButtonE", !13, i64 0, !53, i64 200, !55, i64 216, !58, i64 240, !15, i64 248, !59, i64 256, !63, i64 280, !10, i64 288, !10, i64 292, !6, i64 296, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !64, i64 328, !64, i64 332, !65, i64 336, !43, i64 368, !43, i64 369, !43, i64 370, !43, i64 371, !43, i64 372, !43, i64 373, !43, i64 374}
!53 = !{!"_ZTSN4juce21SettableTooltipClientE", !54, i64 0, !15, i64 8}
!54 = !{!"_ZTSN4juce13TooltipClientE"}
!55 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !56, i64 0, !10, i64 16}
!56 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !57, i64 0, !10, i64 8}
!57 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !6, i64 0}
!58 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !37, i64 0}
!59 = !{!"_ZTSN4juce12ListenerListINS_6Button8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !60, i64 0}
!60 = !{!"_ZTSN4juce5ArrayIPNS_6Button8ListenerENS_20DummyCriticalSectionELi0EEE", !61, i64 0, !10, i64 16}
!61 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_6Button8ListenerENS_20DummyCriticalSectionEEE", !62, i64 0, !10, i64 8}
!62 = !{!"_ZTSN4juce9HeapBlockIPNS_6Button8ListenerELb0EEE", !6, i64 0}
!63 = !{!"_ZTSN4juce13ScopedPointerINS_6Button14CallbackHelperEEE", !6, i64 0}
!64 = !{!"_ZTSN4juce6Button11ButtonStateE", !7, i64 0}
!65 = !{!"_ZTSN4juce5ValueE", !66, i64 0, !67, i64 8}
!66 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_5Value11ValueSourceEEE", !6, i64 0}
!67 = !{!"_ZTSN4juce12ListenerListINS_5Value8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !68, i64 0}
!68 = !{!"_ZTSN4juce5ArrayIPNS_5Value8ListenerENS_20DummyCriticalSectionELi0EEE", !69, i64 0, !10, i64 16}
!69 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_5Value8ListenerENS_20DummyCriticalSectionEEE", !70, i64 0, !10, i64 8}
!70 = !{!"_ZTSN4juce9HeapBlockIPNS_5Value8ListenerELb0EEE", !6, i64 0}
!71 = !{!"_ZTSN4juce20ToolbarItemComponent18ToolbarEditingModeE", !7, i64 0}
!72 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !6, i64 0}
!73 = !{!51, !10, i64 400}
!74 = distinct !{!74, !75}
!75 = !{!"llvm.loop.mustprogress"}


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

%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }

@_ZTIN4juce9ComponentE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN4juce20ToolbarItemComponentE = external dso_local constant { ptr, ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #0 align 2

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

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

; 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 i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component17addChildComponentEPS0_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 ptr @_ZNK4juce9Component17getChildComponentEi(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef) local_unnamed_addr #0 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7Toolbar12itemDragMoveERKNS_17DragAndDropTarget13SourceDetailsE(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::Rectangle", align 4
  %4 = alloca %"class.juce::Rectangle", align 4
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = getelementptr inbounds i8, ptr %1, i64 16
  %7 = tail call noundef ptr @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %8 = icmp eq ptr %7, null
  br i1 %8, label %.thread, label %9

9:                                                ; preds = %2
  %10 = tail call ptr @__dynamic_cast(ptr nonnull %7, ptr nonnull @_ZTIN4juce9ComponentE, ptr nonnull @_ZTIN4juce20ToolbarItemComponentE, i64 0) #6
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %.thread, label %11

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 248
  %13 = tail call noundef zeroext i1 @_ZNK4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEE8containsEPKS1_(ptr noundef nonnull align 8 dereferenceable(20) %12, ptr noundef nonnull %10) #6
  br i1 %13, label %22, label %14

14:                                               ; preds = %11
  %15 = tail call noundef i32 @_ZNK4juce20ToolbarItemComponent14getEditingModeEv(ptr noundef nonnull align 8 dereferenceable(428) %10) #6
  %16 = icmp eq i32 %15, 2
  br i1 %16, label %17, label %20

17:                                               ; preds = %14
  %18 = tail call noundef ptr @_ZNK4juce9Component26findParentComponentOfClassINS_18ToolbarItemPaletteEEEPT_v(ptr noundef nonnull align 8 dereferenceable(197) %10)
  %.not55 = icmp eq ptr %18, null
  br i1 %.not55, label %20, label %19

19:                                               ; preds = %17
  tail call void @_ZN4juce18ToolbarItemPalette16replaceComponentERNS_20ToolbarItemComponentE(ptr noundef nonnull align 8 dereferenceable(1480) %18, ptr noundef nonnull align 8 dereferenceable(428) %10)
  br label %20

20:                                               ; preds = %17, %19, %14
  %21 = tail call noundef ptr @_ZN4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEE3addEPS1_(ptr noundef nonnull align 8 dereferenceable(20) %12, ptr noundef nonnull %10) #6
  tail call void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %10, i32 noundef -1)
  tail call void @_ZN4juce7Toolbar22updateAllItemPositionsEb(ptr noundef nonnull align 8 dereferenceable(272) %0, i1 noundef zeroext true)
  br label %22

22:                                               ; preds = %20, %11
  %23 = tail call noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
  %24 = tail call noundef nonnull align 8 dereferenceable(116) ptr @_ZN4juce7Desktop11getAnimatorEv(ptr noundef nonnull align 8 dereferenceable(360) %23) #6
  %25 = tail call noundef i32 @_ZNK4juce7Toolbar11getNumItemsEv(ptr noundef nonnull align 8 dereferenceable(272) %0) #6
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 240
  %28 = getelementptr inbounds i8, ptr %1, i64 24
  %29 = getelementptr inbounds i8, ptr %10, i64 400
  %30 = getelementptr inbounds i8, ptr %10, i64 404
  br label %31

31:                                               ; preds = %.lr.ph, %116
  %.in = phi i32 [ %25, %.lr.ph ], [ %32, %116 ]
  %32 = add nsw i32 %.in, -1
  %33 = call noundef i32 @_ZNK4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEE7indexOfEPKS1_(ptr noundef nonnull align 8 dereferenceable(20) %12, ptr noundef nonnull %10) #6
  %34 = load i8, ptr %27, align 8, !tbaa !5, !range !46, !noundef !47
  %35 = trunc nuw i8 %34 to i1
  br i1 %35, label %36, label %40

36:                                               ; preds = %31
  %37 = call noundef i32 @_ZNK4juce5PointIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %28) #6
  %38 = load i32, ptr %30, align 4, !tbaa !48
  %39 = sub nsw i32 %37, %38
  br label %44

40:                                               ; preds = %31
  %41 = call noundef i32 @_ZNK4juce5PointIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %28) #6
  %42 = load i32, ptr %29, align 8, !tbaa !71
  %43 = sub nsw i32 %41, %42
  br label %44

44:                                               ; preds = %40, %36
  %45 = phi i32 [ %39, %36 ], [ %43, %40 ]
  %46 = load i8, ptr %27, align 8, !tbaa !5, !range !46, !noundef !47
  %47 = trunc nuw i8 %46 to i1
  br i1 %47, label %48, label %50

48:                                               ; preds = %44
  %49 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #6
  br label %52

50:                                               ; preds = %44
  %51 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #6
  br label %52

52:                                               ; preds = %50, %48
  %53 = phi i32 [ %49, %48 ], [ %51, %50 ]
  %54 = add nsw i32 %53, %45
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %55 = call noundef ptr @_ZNK4juce9Component17getChildComponentEi(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %33) #6
  call void @_ZN4juce17ComponentAnimator23getComponentDestinationEPNS_9ComponentE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %3, ptr noundef nonnull align 8 dereferenceable(116) %24, ptr noundef %55)
  %56 = call noundef ptr @_ZNK4juce7Toolbar22getNextActiveComponentEii(ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef %33, i32 noundef -1)
  %.not56 = icmp eq ptr %56, null
  br i1 %.not56, label %82, label %57

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN4juce17ComponentAnimator23getComponentDestinationEPNS_9ComponentE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %4, ptr noundef nonnull align 8 dereferenceable(116) %24, ptr noundef nonnull %56)
  %58 = load i8, ptr %27, align 8, !tbaa !5, !range !46, !noundef !47
  %59 = trunc nuw i8 %58 to i1
  br i1 %59, label %60, label %62

60:                                               ; preds = %57
  %61 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #6
  br label %64

62:                                               ; preds = %57
  %63 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #6
  br label %64

64:                                               ; preds = %62, %60
  %65 = phi i32 [ %61, %60 ], [ %63, %62 ]
  %66 = sub nsw i32 %45, %65
  %67 = call i32 @llvm.abs.i32(i32 %66, i1 true)
  %68 = load i8, ptr %27, align 8, !tbaa !5, !range !46, !noundef !47
  %69 = trunc nuw i8 %68 to i1
  br i1 %69, label %70, label %72

70:                                               ; preds = %64
  %71 = call noundef i32 @_ZNK4juce9RectangleIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16) %3) #6
  br label %74

72:                                               ; preds = %64
  %73 = call noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %3) #6
  br label %74

74:                                               ; preds = %72, %70
  %75 = phi i32 [ %71, %70 ], [ %73, %72 ]
  %76 = sub nsw i32 %54, %75
  %77 = call i32 @llvm.abs.i32(i32 %76, i1 true)
  %78 = icmp ult i32 %67, %77
  br i1 %78, label %79, label %81

79:                                               ; preds = %74
  %80 = call noundef i32 @_ZNK4juce9Component24getIndexOfChildComponentEPKS0_(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %56) #6
  br label %81

81:                                               ; preds = %79, %74
  %.048 = phi i32 [ %80, %79 ], [ %33, %74 ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %82

82:                                               ; preds = %81, %52
  %.1 = phi i32 [ %.048, %81 ], [ %33, %52 ]
  %83 = call noundef ptr @_ZNK4juce7Toolbar22getNextActiveComponentEii(ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef %.1, i32 noundef 1)
  %.not57 = icmp eq ptr %83, null
  br i1 %.not57, label %110, label %84

84:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN4juce17ComponentAnimator23getComponentDestinationEPNS_9ComponentE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %5, ptr noundef nonnull align 8 dereferenceable(116) %24, ptr noundef nonnull %83)
  %85 = load i8, ptr %27, align 8, !tbaa !5, !range !46, !noundef !47
  %86 = trunc nuw i8 %85 to i1
  br i1 %86, label %87, label %89

87:                                               ; preds = %84
  %88 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %3) #6
  br label %91

89:                                               ; preds = %84
  %90 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %3) #6
  br label %91

91:                                               ; preds = %89, %87
  %92 = phi i32 [ %88, %87 ], [ %90, %89 ]
  %93 = sub nsw i32 %45, %92
  %94 = call i32 @llvm.abs.i32(i32 %93, i1 true)
  %95 = load i8, ptr %27, align 8, !tbaa !5, !range !46, !noundef !47
  %96 = trunc nuw i8 %95 to i1
  br i1 %96, label %97, label %99

97:                                               ; preds = %91
  %98 = call noundef i32 @_ZNK4juce9RectangleIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16) %5) #6
  br label %101

99:                                               ; preds = %91
  %100 = call noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %5) #6
  br label %101

101:                                              ; preds = %99, %97
  %102 = phi i32 [ %98, %97 ], [ %100, %99 ]
  %103 = sub nsw i32 %54, %102
  %104 = call i32 @llvm.abs.i32(i32 %103, i1 true)
  %105 = icmp ugt i32 %94, %104
  br i1 %105, label %106, label %109

106:                                              ; preds = %101
  %107 = call noundef i32 @_ZNK4juce9Component24getIndexOfChildComponentEPKS0_(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %83) #6
  %108 = add nsw i32 %107, 1
  br label %109

109:                                              ; preds = %106, %101
  %.2 = phi i32 [ %108, %106 ], [ %.1, %101 ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %110

110:                                              ; preds = %109, %82
  %.3 = phi i32 [ %.2, %109 ], [ %.1, %82 ]
  %.not58 = icmp eq i32 %.3, %33
  br i1 %.not58, label %.critedge, label %111

111:                                              ; preds = %110
  invoke void @_ZN4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEE12removeObjectEPKS1_b(ptr noundef nonnull align 8 dereferenceable(20) %12, ptr noundef nonnull %10, i1 noundef zeroext false)
          to label %112 unwind label %118

112:                                              ; preds = %111
  invoke void @_ZN4juce9Component20removeChildComponentEPS0_(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %10)
          to label %113 unwind label %118

113:                                              ; preds = %112
  invoke void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %10, i32 noundef %.3)
          to label %114 unwind label %118

114:                                              ; preds = %113
  %115 = call noundef ptr @_ZN4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEE6insertEiPS1_(ptr noundef nonnull align 8 dereferenceable(20) %12, i32 noundef %.3, ptr noundef nonnull %10) #6
  invoke void @_ZN4juce7Toolbar22updateAllItemPositionsEb(ptr noundef nonnull align 8 dereferenceable(272) %0, i1 noundef zeroext true)
          to label %116 unwind label %118

116:                                              ; preds = %114
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  %117 = icmp ugt i32 %.in, 1
  br i1 %117, label %31, label %.thread, !llvm.loop !72

118:                                              ; preds = %114, %113, %112, %111
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  resume { ptr, i32 } %119

.critedge:                                        ; preds = %110
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %.thread

.thread:                                          ; preds = %116, %22, %2, %.critedge, %9
  ret void
}

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

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

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

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

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

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

attributes #0 = { 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 = { 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 #4 = { mustprogress nofree nounwind willreturn memory(read) }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !41, i64 240}
!6 = !{!"_ZTSN4juce7ToolbarE", !7, i64 0, !36, i64 200, !38, i64 216, !39, i64 224, !40, i64 232, !41, i64 240, !41, i64 241, !42, i64 244, !43, i64 248}
!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 = !{!"_ZTSN4juce20DragAndDropContainerE", !37, i64 8}
!37 = !{!"_ZTSN4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEE", !11, i64 0}
!38 = !{!"_ZTSN4juce17DragAndDropTargetE"}
!39 = !{!"_ZTSN4juce6Button8ListenerE"}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_6ButtonEEE", !11, i64 0}
!41 = !{!"bool", !12, i64 0}
!42 = !{!"_ZTSN4juce7Toolbar16ToolbarItemStyleE", !12, i64 0}
!43 = !{!"_ZTSN4juce10OwnedArrayINS_20ToolbarItemComponentENS_20DummyCriticalSectionEEE", !44, i64 0, !16, i64 16}
!44 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_20ToolbarItemComponentENS_20DummyCriticalSectionEEE", !45, i64 0, !16, i64 8}
!45 = !{!"_ZTSN4juce9HeapBlockIPNS_20ToolbarItemComponentELb0EEE", !11, i64 0}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!49, !16, i64 404}
!49 = !{!"_ZTSN4juce20ToolbarItemComponentE", !50, i64 0, !16, i64 376, !69, i64 380, !42, i64 384, !70, i64 392, !16, i64 400, !16, i64 404, !41, i64 408, !41, i64 409, !41, i64 410, !14, i64 412}
!50 = !{!"_ZTSN4juce6ButtonE", !7, i64 0, !51, i64 200, !53, i64 216, !56, i64 240, !9, i64 248, !57, i64 256, !61, i64 280, !16, i64 288, !16, i64 292, !11, i64 296, !16, i64 304, !16, i64 308, !16, i64 312, !16, i64 316, !16, i64 320, !16, i64 324, !62, i64 328, !62, i64 332, !63, i64 336, !41, i64 368, !41, i64 369, !41, i64 370, !41, i64 371, !41, i64 372, !41, i64 373, !41, i64 374}
!51 = !{!"_ZTSN4juce21SettableTooltipClientE", !52, i64 0, !9, i64 8}
!52 = !{!"_ZTSN4juce13TooltipClientE"}
!53 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !54, i64 0, !16, i64 16}
!54 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !55, i64 0, !16, i64 8}
!55 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !11, i64 0}
!56 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !35, i64 0}
!57 = !{!"_ZTSN4juce12ListenerListINS_6Button8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !58, i64 0}
!58 = !{!"_ZTSN4juce5ArrayIPNS_6Button8ListenerENS_20DummyCriticalSectionELi0EEE", !59, i64 0, !16, i64 16}
!59 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_6Button8ListenerENS_20DummyCriticalSectionEEE", !60, i64 0, !16, i64 8}
!60 = !{!"_ZTSN4juce9HeapBlockIPNS_6Button8ListenerELb0EEE", !11, i64 0}
!61 = !{!"_ZTSN4juce13ScopedPointerINS_6Button14CallbackHelperEEE", !11, i64 0}
!62 = !{!"_ZTSN4juce6Button11ButtonStateE", !12, i64 0}
!63 = !{!"_ZTSN4juce5ValueE", !64, i64 0, !65, i64 8}
!64 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_5Value11ValueSourceEEE", !11, i64 0}
!65 = !{!"_ZTSN4juce12ListenerListINS_5Value8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !66, i64 0}
!66 = !{!"_ZTSN4juce5ArrayIPNS_5Value8ListenerENS_20DummyCriticalSectionELi0EEE", !67, i64 0, !16, i64 16}
!67 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_5Value8ListenerENS_20DummyCriticalSectionEEE", !68, i64 0, !16, i64 8}
!68 = !{!"_ZTSN4juce9HeapBlockIPNS_5Value8ListenerELb0EEE", !11, i64 0}
!69 = !{!"_ZTSN4juce20ToolbarItemComponent18ToolbarEditingModeE", !12, i64 0}
!70 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !11, i64 0}
!71 = !{!49, !16, i64 400}
!72 = distinct !{!72, !73}
!73 = !{!"llvm.loop.mustprogress"}


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