; 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::TabbedButtonBar" = type { %"class.juce::Component.base", %"class.juce::ChangeBroadcaster", i32, [4 x i8], %"class.juce::OwnedArray.379", double, i32, %"class.juce::ScopedPointer.384", %"class.juce::ScopedPointer.282" }
%"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" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%union.anon = type { i32 }
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.39" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.15" }
%"class.juce::ReferenceCountedObjectPtr.15" = type { ptr }
%"class.juce::ListenerList.39" = type { %"class.juce::Array.40" }
%"class.juce::Array.40" = type { %"class.juce::ArrayAllocationBase.41", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.41" = type <{ %"class.juce::HeapBlock.42", i32, [4 x i8] }>
%"class.juce::HeapBlock.42" = type { ptr }
%"class.juce::OwnedArray.379" = type { %"class.juce::ArrayAllocationBase.380", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.380" = type <{ %"class.juce::HeapBlock.381", i32, [4 x i8] }>
%"class.juce::HeapBlock.381" = type { ptr }
%"class.juce::ScopedPointer.384" = type { ptr }
%"class.juce::ScopedPointer.282" = type { ptr }
%"struct.juce::TabbedButtonBar::TabInfo" = type <{ %"class.juce::ScopedPointer.385", %"class.juce::String", %"class.juce::Colour", [4 x i8] }>
%"class.juce::ScopedPointer.385" = type { ptr }
%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::TabBarButton" = type <{ %"class.juce::Button.base", i8, ptr, i32, [4 x i8], %"class.juce::ScopedPointer.159", i32, [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::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ListenerList.109" = type { %"class.juce::Array.110" }
%"class.juce::Array.110" = type { %"class.juce::ArrayAllocationBase.111", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.111" = type <{ %"class.juce::HeapBlock.112", i32, [4 x i8] }>
%"class.juce::HeapBlock.112" = type { ptr }
%"class.juce::ScopedPointer.115" = type { ptr }
%"class.juce::Value" = type { %"class.juce::ReferenceCountedObjectPtr.116", %"class.juce::ListenerList.117" }
%"class.juce::ReferenceCountedObjectPtr.116" = type { ptr }
%"class.juce::ListenerList.117" = type { %"class.juce::Array.118" }
%"class.juce::Array.118" = type { %"class.juce::ArrayAllocationBase.119", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.119" = type <{ %"class.juce::HeapBlock.120", i32, [4 x i8] }>
%"class.juce::HeapBlock.120" = type { ptr }
%"class.juce::ScopedPointer.159" = type { ptr }

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 uwtable
declare dso_local void @_ZN4juce9Component7setSizeEii(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) #0

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef, i32 noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce17ComponentAnimator16animateComponentEPNS_9ComponentERKNS_9RectangleIiEEfibdd(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef, ptr noundef nonnull align 4 dereferenceable(16), float noundef, i32 noundef, i1 noundef zeroext, double noundef, double noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4juce4jmaxIdEET_S1_S1_(double noundef, double noundef) #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce15TabbedButtonBar18updateTabPositionsEb(ptr noundef nonnull align 8 dereferenceable(320) %0, i1 noundef zeroext %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.juce::Rectangle", align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.juce::Rectangle", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %31 = zext i1 %1 to i8
  store i8 %31, ptr %4, align 1, !tbaa !9
  %32 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %33 = call noundef nonnull align 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197) %32) #4
  store ptr %33, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %34 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %32) #4
  store i32 %34, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %35 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %32) #4
  store i32 %35, ptr %7, align 4, !tbaa !11
  %36 = call noundef zeroext i1 @_ZNK4juce15TabbedButtonBar10isVerticalEv(ptr noundef nonnull align 8 dereferenceable(320) %32) #4
  br i1 %36, label %38, label %37

37:                                               ; preds = %2
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7) #4
  br label %38

38:                                               ; preds = %37, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 120
  %41 = load i32, ptr %6, align 4, !tbaa !11
  %42 = load ptr, ptr %40, align 8, !tbaa !13
  %43 = getelementptr inbounds ptr, ptr %42, i64 3
  %44 = load ptr, ptr %43, align 8
  %45 = call noundef i32 %44(ptr noundef nonnull align 8 dereferenceable(8) %40, i32 noundef %41)
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 120
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds ptr, ptr %48, i64 2
  %50 = load ptr, ptr %49, align 8
  %51 = call noundef i32 %50(ptr noundef nonnull align 8 dereferenceable(8) %47)
  %52 = mul nsw i32 %51, 2
  %53 = add nsw i32 %45, %52
  store i32 %53, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %54 = load i32, ptr %8, align 4, !tbaa !11
  %55 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %54)
  store i32 %55, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %56 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 4
  %57 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %56) #4
  store i32 %57, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %58

58:                                               ; preds = %85, %38
  %59 = load i32, ptr %11, align 4, !tbaa !11
  %60 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 4
  %61 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %60) #4
  %62 = icmp slt i32 %59, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %88

64:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %65 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 4
  %66 = load i32, ptr %11, align 4, !tbaa !11
  %67 = call noundef ptr @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %65, i32 noundef %66) #4
  %68 = getelementptr inbounds %"struct.juce::TabbedButtonBar::TabInfo", ptr %67, i32 0, i32 0
  %69 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12TabBarButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %68) #4
  store ptr %69, ptr %12, align 8, !tbaa !5
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = load i32, ptr %6, align 4, !tbaa !11
  %72 = load ptr, ptr %70, align 8, !tbaa !13
  %73 = getelementptr inbounds ptr, ptr %72, i64 52
  %74 = load ptr, ptr %73, align 8
  %75 = call noundef i32 %74(ptr noundef nonnull align 8 dereferenceable(404) %70, i32 noundef %71)
  %76 = load i32, ptr %8, align 4, !tbaa !11
  %77 = sub nsw i32 %75, %76
  %78 = load i32, ptr %9, align 4, !tbaa !11
  %79 = add nsw i32 %78, %77
  store i32 %79, ptr %9, align 4, !tbaa !11
  %80 = load i32, ptr %8, align 4, !tbaa !11
  %81 = sdiv i32 %80, 2
  %82 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %81)
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.juce::TabBarButton", ptr %83, i32 0, i32 3
  store i32 %82, ptr %84, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %85

85:                                               ; preds = %64
  %86 = load i32, ptr %11, align 4, !tbaa !11
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %11, align 4, !tbaa !11
  br label %58, !llvm.loop !63

88:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 1.000000e+00, ptr %13, align 8, !tbaa !65
  %89 = load i32, ptr %9, align 4, !tbaa !11
  %90 = load i32, ptr %7, align 4, !tbaa !11
  %91 = icmp sgt i32 %89, %90
  br i1 %91, label %92, label %101

92:                                               ; preds = %88
  %93 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 5
  %94 = load double, ptr %93, align 8, !tbaa !67
  %95 = load i32, ptr %7, align 4, !tbaa !11
  %96 = sitofp i32 %95 to double
  %97 = load i32, ptr %9, align 4, !tbaa !11
  %98 = sitofp i32 %97 to double
  %99 = fdiv double %96, %98
  %100 = call noundef double @_ZN4juce4jmaxIdEET_S1_S1_(double noundef %94, double noundef %99)
  store double %100, ptr %13, align 8, !tbaa !65
  br label %101

101:                                              ; preds = %92, %88
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %102 = load i32, ptr %9, align 4, !tbaa !11
  %103 = sitofp i32 %102 to double
  %104 = load double, ptr %13, align 8, !tbaa !65
  %105 = fmul double %103, %104
  %106 = fptosi double %105 to i32
  %107 = load i32, ptr %7, align 4, !tbaa !11
  %108 = icmp sgt i32 %106, %107
  %109 = zext i1 %108 to i8
  store i8 %109, ptr %14, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !11
  %110 = load i8, ptr %14, align 1, !tbaa !9, !range !83, !noundef !84
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %228

112:                                              ; preds = %101
  %113 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 8
  %114 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %113) #4
  %115 = icmp eq ptr %114, null
  br i1 %115, label %116, label %139

116:                                              ; preds = %112
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 120
  %119 = load ptr, ptr %118, align 8, !tbaa !13
  %120 = getelementptr inbounds ptr, ptr %119, i64 12
  %121 = load ptr, ptr %120, align 8
  %122 = call noundef ptr %121(ptr noundef nonnull align 8 dereferenceable(8) %118)
  %123 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 8
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef %122)
  %125 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %124) #4
  call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %32, ptr noundef %125, i32 noundef -1)
  %126 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 8
  %127 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %126) #4
  %128 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 7
  %129 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %128) #4
  %130 = icmp eq ptr %129, null
  br i1 %130, label %133, label %131

131:                                              ; preds = %116
  %132 = getelementptr inbounds i8, ptr %129, i64 200
  br label %133

133:                                              ; preds = %131, %116
  %134 = phi ptr [ %132, %131 ], [ null, %116 ]
  call void @_ZN4juce6Button11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(375) %127, ptr noundef %134)
  %135 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 8
  %136 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %135) #4
  call void @_ZN4juce9Component14setAlwaysOnTopEb(ptr noundef nonnull align 8 dereferenceable(197) %136, i1 noundef zeroext true)
  %137 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 8
  %138 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %137) #4
  call void @_ZN4juce6Button23setTriggeredOnMouseDownEb(ptr noundef nonnull align 8 dereferenceable(375) %138, i1 noundef zeroext true) #4
  br label %139

139:                                              ; preds = %133, %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %140 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %32, float noundef 0x3FE6666660000000) #4
  %141 = call noundef i32 @_ZNK4juce9Component18proportionOfHeightEf(ptr noundef nonnull align 8 dereferenceable(197) %32, float noundef 0x3FE6666660000000) #4
  %142 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %140, i32 noundef %141)
  store i32 %142, ptr %16, align 4, !tbaa !11
  %143 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 8
  %144 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %143) #4
  %145 = load i32, ptr %16, align 4, !tbaa !11
  %146 = load i32, ptr %16, align 4, !tbaa !11
  call void @_ZN4juce9Component7setSizeEii(ptr noundef nonnull align 8 dereferenceable(197) %144, i32 noundef %145, i32 noundef %146)
  %147 = call noundef zeroext i1 @_ZNK4juce15TabbedButtonBar10isVerticalEv(ptr noundef nonnull align 8 dereferenceable(320) %32) #4
  br i1 %147, label %148, label %159

148:                                              ; preds = %139
  %149 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %32) #4
  %150 = load i32, ptr %16, align 4, !tbaa !11
  %151 = sdiv i32 %150, 2
  %152 = sub nsw i32 %149, %151
  %153 = sub nsw i32 %152, 1
  store i32 %153, ptr %15, align 4, !tbaa !11
  %154 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 8
  %155 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %154) #4
  %156 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %32) #4
  %157 = sdiv i32 %156, 2
  %158 = load i32, ptr %15, align 4, !tbaa !11
  call void @_ZN4juce9Component17setCentrePositionEii(ptr noundef nonnull align 8 dereferenceable(197) %155, i32 noundef %157, i32 noundef %158)
  br label %170

159:                                              ; preds = %139
  %160 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %32) #4
  %161 = load i32, ptr %16, align 4, !tbaa !11
  %162 = sdiv i32 %161, 2
  %163 = sub nsw i32 %160, %162
  %164 = sub nsw i32 %163, 1
  store i32 %164, ptr %15, align 4, !tbaa !11
  %165 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 8
  %166 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %165) #4
  %167 = load i32, ptr %15, align 4, !tbaa !11
  %168 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %32) #4
  %169 = sdiv i32 %168, 2
  call void @_ZN4juce9Component17setCentrePositionEii(ptr noundef nonnull align 8 dereferenceable(197) %166, i32 noundef %167, i32 noundef %169)
  br label %170

170:                                              ; preds = %159, %148
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %171

171:                                              ; preds = %215, %170
  %172 = load i32, ptr %17, align 4, !tbaa !11
  %173 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 4
  %174 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %173) #4
  %175 = icmp slt i32 %172, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %171
  store i32 5, ptr %18, align 4
  br label %218

177:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %178 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 4
  %179 = load i32, ptr %17, align 4, !tbaa !11
  %180 = call noundef ptr @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %178, i32 noundef %179) #4
  %181 = getelementptr inbounds %"struct.juce::TabbedButtonBar::TabInfo", ptr %180, i32 0, i32 0
  %182 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12TabBarButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %181) #4
  store ptr %182, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %183 = load i32, ptr %9, align 4, !tbaa !11
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %185 = load i32, ptr %6, align 4, !tbaa !11
  %186 = load ptr, ptr %184, align 8, !tbaa !13
  %187 = getelementptr inbounds ptr, ptr %186, i64 52
  %188 = load ptr, ptr %187, align 8
  %189 = call noundef i32 %188(ptr noundef nonnull align 8 dereferenceable(404) %184, i32 noundef %185)
  %190 = add nsw i32 %183, %189
  store i32 %190, ptr %20, align 4, !tbaa !11
  %191 = load i32, ptr %17, align 4, !tbaa !11
  %192 = icmp sgt i32 %191, 0
  br i1 %192, label %193, label %206

193:                                              ; preds = %177
  %194 = load i32, ptr %20, align 4, !tbaa !11
  %195 = sitofp i32 %194 to double
  %196 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 5
  %197 = load double, ptr %196, align 8, !tbaa !67
  %198 = fmul double %195, %197
  %199 = load i32, ptr %15, align 4, !tbaa !11
  %200 = sitofp i32 %199 to double
  %201 = fcmp ogt double %198, %200
  br i1 %201, label %202, label %206

202:                                              ; preds = %193
  %203 = load i32, ptr %8, align 4, !tbaa !11
  %204 = load i32, ptr %9, align 4, !tbaa !11
  %205 = add nsw i32 %204, %203
  store i32 %205, ptr %9, align 4, !tbaa !11
  store i32 5, ptr %18, align 4
  br label %212

206:                                              ; preds = %193, %177
  %207 = load i32, ptr %17, align 4, !tbaa !11
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %10, align 4, !tbaa !11
  %209 = load i32, ptr %20, align 4, !tbaa !11
  %210 = load i32, ptr %8, align 4, !tbaa !11
  %211 = sub nsw i32 %209, %210
  store i32 %211, ptr %9, align 4, !tbaa !11
  store i32 0, ptr %18, align 4
  br label %212

212:                                              ; preds = %206, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  %213 = load i32, ptr %18, align 4
  switch i32 %213, label %218 [
    i32 0, label %214
  ]

214:                                              ; preds = %212
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %17, align 4, !tbaa !11
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %17, align 4, !tbaa !11
  br label %171, !llvm.loop !85

218:                                              ; preds = %212, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %219

219:                                              ; preds = %218
  %220 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 5
  %221 = load double, ptr %220, align 8, !tbaa !67
  %222 = load i32, ptr %15, align 4, !tbaa !11
  %223 = sitofp i32 %222 to double
  %224 = load i32, ptr %9, align 4, !tbaa !11
  %225 = sitofp i32 %224 to double
  %226 = fdiv double %223, %225
  %227 = call noundef double @_ZN4juce4jmaxIdEET_S1_S1_(double noundef %221, double noundef %226)
  store double %227, ptr %13, align 8, !tbaa !65
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %231

228:                                              ; preds = %101
  %229 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 8
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef null)
  br label %231

231:                                              ; preds = %228, %219
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %232 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
  %233 = call noundef nonnull align 8 dereferenceable(116) ptr @_ZN4juce7Desktop11getAnimatorEv(ptr noundef nonnull align 8 dereferenceable(360) %232) #4
  store ptr %233, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %234

234:                                              ; preds = %313, %231
  %235 = load i32, ptr %24, align 4, !tbaa !11
  %236 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 4
  %237 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %236) #4
  %238 = icmp slt i32 %235, %237
  br i1 %238, label %240, label %239

239:                                              ; preds = %234
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %316

240:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %241 = load i32, ptr %24, align 4, !tbaa !11
  %242 = call noundef ptr @_ZNK4juce15TabbedButtonBar12getTabButtonEi(ptr noundef nonnull align 8 dereferenceable(320) %32, i32 noundef %241)
  store ptr %242, ptr %25, align 8, !tbaa !5
  %243 = load ptr, ptr %25, align 8, !tbaa !5
  %244 = icmp ne ptr %243, null
  br i1 %244, label %245, label %312

245:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %246 = load double, ptr %13, align 8, !tbaa !65
  %247 = load ptr, ptr %25, align 8, !tbaa !5
  %248 = load i32, ptr %6, align 4, !tbaa !11
  %249 = load ptr, ptr %247, align 8, !tbaa !13
  %250 = getelementptr inbounds ptr, ptr %249, i64 52
  %251 = load ptr, ptr %250, align 8
  %252 = call noundef i32 %251(ptr noundef nonnull align 8 dereferenceable(404) %247, i32 noundef %248)
  %253 = sitofp i32 %252 to double
  %254 = fmul double %246, %253
  %255 = call noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef %254) #4
  store i32 %255, ptr %26, align 4, !tbaa !11
  %256 = load i32, ptr %24, align 4, !tbaa !11
  %257 = load i32, ptr %10, align 4, !tbaa !11
  %258 = icmp slt i32 %256, %257
  br i1 %258, label %259, label %301

259:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #4
  %260 = call noundef zeroext i1 @_ZNK4juce15TabbedButtonBar10isVerticalEv(ptr noundef nonnull align 8 dereferenceable(320) %32) #4
  br i1 %260, label %261, label %265

261:                                              ; preds = %259
  %262 = load i32, ptr %21, align 4, !tbaa !11
  %263 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %32) #4
  %264 = load i32, ptr %26, align 4, !tbaa !11
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %27, i32 noundef 0, i32 noundef %262, i32 noundef %263, i32 noundef %264) #4
  br label %269

265:                                              ; preds = %259
  %266 = load i32, ptr %21, align 4, !tbaa !11
  %267 = load i32, ptr %26, align 4, !tbaa !11
  %268 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %32) #4
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %27, i32 noundef %266, i32 noundef 0, i32 noundef %267, i32 noundef %268) #4
  br label %269

269:                                              ; preds = %265, %261
  %270 = load i8, ptr %4, align 1, !tbaa !9, !range !83, !noundef !84
  %271 = trunc i8 %270 to i1
  br i1 %271, label %272, label %280

272:                                              ; preds = %269
  %273 = load ptr, ptr %23, align 8, !tbaa !5
  %274 = load ptr, ptr %25, align 8, !tbaa !5
  invoke void @_ZN4juce17ComponentAnimator16animateComponentEPNS_9ComponentERKNS_9RectangleIiEEfibdd(ptr noundef nonnull align 8 dereferenceable(116) %273, ptr noundef %274, ptr noundef nonnull align 4 dereferenceable(16) %27, float noundef 1.000000e+00, i32 noundef 200, i1 noundef zeroext false, double noundef 3.000000e+00, double noundef 0.000000e+00)
          to label %275 unwind label %276

275:                                              ; preds = %272
  br label %286

276:                                              ; preds = %295, %286, %283, %280, %272
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %28, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %29, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %27) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %332

280:                                              ; preds = %269
  %281 = load ptr, ptr %23, align 8, !tbaa !5
  %282 = load ptr, ptr %25, align 8, !tbaa !5
  invoke void @_ZN4juce17ComponentAnimator15cancelAnimationEPNS_9ComponentEb(ptr noundef nonnull align 8 dereferenceable(116) %281, ptr noundef %282, i1 noundef zeroext false)
          to label %283 unwind label %276

283:                                              ; preds = %280
  %284 = load ptr, ptr %25, align 8, !tbaa !5
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %284, ptr noundef nonnull align 4 dereferenceable(16) %27)
          to label %285 unwind label %276

285:                                              ; preds = %283
  br label %286

286:                                              ; preds = %285, %275
  %287 = load ptr, ptr %25, align 8, !tbaa !5
  invoke void @_ZN4juce9Component6toBackEv(ptr noundef nonnull align 8 dereferenceable(197) %287)
          to label %288 unwind label %276

288:                                              ; preds = %286
  %289 = load i32, ptr %24, align 4, !tbaa !11
  %290 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 6
  %291 = load i32, ptr %290, align 8, !tbaa !86
  %292 = icmp eq i32 %289, %291
  br i1 %292, label %293, label %295

293:                                              ; preds = %288
  %294 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %294, ptr %22, align 8, !tbaa !5
  br label %295

295:                                              ; preds = %293, %288
  %296 = load ptr, ptr %25, align 8, !tbaa !5
  %297 = load ptr, ptr %296, align 8, !tbaa !13
  %298 = getelementptr inbounds ptr, ptr %297, i64 11
  %299 = load ptr, ptr %298, align 8
  invoke void %299(ptr noundef nonnull align 8 dereferenceable(197) %296, i1 noundef zeroext true)
          to label %300 unwind label %276

300:                                              ; preds = %295
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %27) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  br label %306

301:                                              ; preds = %245
  %302 = load ptr, ptr %25, align 8, !tbaa !5
  %303 = load ptr, ptr %302, align 8, !tbaa !13
  %304 = getelementptr inbounds ptr, ptr %303, i64 11
  %305 = load ptr, ptr %304, align 8
  call void %305(ptr noundef nonnull align 8 dereferenceable(197) %302, i1 noundef zeroext false)
  br label %306

306:                                              ; preds = %301, %300
  %307 = load i32, ptr %26, align 4, !tbaa !11
  %308 = load i32, ptr %8, align 4, !tbaa !11
  %309 = sub nsw i32 %307, %308
  %310 = load i32, ptr %21, align 4, !tbaa !11
  %311 = add nsw i32 %310, %309
  store i32 %311, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %312

312:                                              ; preds = %306, %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %313

313:                                              ; preds = %312
  %314 = load i32, ptr %24, align 4, !tbaa !11
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %24, align 4, !tbaa !11
  br label %234, !llvm.loop !87

316:                                              ; preds = %239
  %317 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 7
  %318 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %317) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #4
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %30, ptr noundef nonnull align 8 dereferenceable(197) %32) #4
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %318, ptr noundef nonnull align 4 dereferenceable(16) %30)
          to label %319 unwind label %327

319:                                              ; preds = %316
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %30) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #4
  %320 = load ptr, ptr %22, align 8, !tbaa !5
  %321 = icmp ne ptr %320, null
  br i1 %321, label %322, label %331

322:                                              ; preds = %319
  %323 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN4juce9Component7toFrontEb(ptr noundef nonnull align 8 dereferenceable(197) %323, i1 noundef zeroext false)
  %324 = getelementptr inbounds %"class.juce::TabbedButtonBar", ptr %32, i32 0, i32 7
  %325 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %324) #4
  %326 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN4juce9Component8toBehindEPS0_(ptr noundef nonnull align 8 dereferenceable(197) %325, ptr noundef %326)
  br label %331

327:                                              ; preds = %316
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %28, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %29, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %30) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #4
  br label %332

331:                                              ; preds = %322, %319
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void

332:                                              ; preds = %327, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %333

333:                                              ; preds = %332
  %334 = load ptr, ptr %28, align 8
  %335 = load i32, ptr %29, align 4
  %336 = insertvalue { ptr, i32 } poison, ptr %334, 0
  %337 = insertvalue { ptr, i32 } %336, i32 %335, 1
  resume { ptr, i32 } %337
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce15TabbedButtonBar12getTabButtonEi(ptr noundef nonnull align 8 dereferenceable(320), i32 noundef) #0 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 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 }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !12, i64 384}
!16 = !{!"_ZTSN4juce12TabBarButtonE", !17, i64 0, !6, i64 376, !12, i64 384, !61, i64 392, !62, i64 400}
!17 = !{!"_ZTSN4juce6ButtonE", !18, i64 0, !43, i64 200, !45, i64 216, !48, i64 240, !20, i64 248, !49, i64 256, !53, i64 280, !12, i64 288, !12, i64 292, !6, i64 296, !12, i64 304, !12, i64 308, !12, i64 312, !12, i64 316, !12, i64 320, !12, i64 324, !54, i64 328, !54, i64 332, !55, i64 336, !10, i64 368, !10, i64 369, !10, i64 370, !10, i64 371, !10, i64 372, !10, i64 373, !10, i64 374}
!18 = !{!"_ZTSN4juce9ComponentE", !19, i64 0, !20, i64 8, !20, i64 16, !6, i64 24, !22, i64 32, !24, i64 48, !25, i64 56, !26, i64 64, !6, i64 88, !29, i64 96, !6, i64 104, !30, i64 112, !31, i64 120, !32, i64 128, !33, i64 136, !37, i64 160, !41, i64 184, !7, i64 192, !7, i64 196}
!19 = !{!"_ZTSN4juce13MouseListenerE"}
!20 = !{!"_ZTSN4juce6StringE", !21, i64 0}
!21 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!22 = !{!"_ZTSN4juce9RectangleIiEE", !23, i64 0, !12, i64 8, !12, i64 12}
!23 = !{!"_ZTSN4juce5PointIiEE", !12, i64 0, !12, i64 4}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !27, i64 0, !12, i64 16}
!27 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !28, i64 0, !12, i64 8}
!28 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!29 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!30 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!31 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!32 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!33 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !34, i64 0}
!34 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !35, i64 0, !12, i64 16}
!35 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !36, i64 0, !12, i64 8}
!36 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!37 = !{!"_ZTSN4juce13NamedValueSetE", !38, i64 0}
!38 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !39, i64 0, !12, i64 16}
!39 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !40, i64 0, !12, i64 8}
!40 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!41 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !42, i64 0}
!42 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!43 = !{!"_ZTSN4juce21SettableTooltipClientE", !44, i64 0, !20, i64 8}
!44 = !{!"_ZTSN4juce13TooltipClientE"}
!45 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !46, i64 0, !12, i64 16}
!46 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !47, i64 0, !12, i64 8}
!47 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !6, i64 0}
!48 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !42, i64 0}
!49 = !{!"_ZTSN4juce12ListenerListINS_6Button8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !50, i64 0}
!50 = !{!"_ZTSN4juce5ArrayIPNS_6Button8ListenerENS_20DummyCriticalSectionELi0EEE", !51, i64 0, !12, i64 16}
!51 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_6Button8ListenerENS_20DummyCriticalSectionEEE", !52, i64 0, !12, i64 8}
!52 = !{!"_ZTSN4juce9HeapBlockIPNS_6Button8ListenerELb0EEE", !6, i64 0}
!53 = !{!"_ZTSN4juce13ScopedPointerINS_6Button14CallbackHelperEEE", !6, i64 0}
!54 = !{!"_ZTSN4juce6Button11ButtonStateE", !7, i64 0}
!55 = !{!"_ZTSN4juce5ValueE", !56, i64 0, !57, i64 8}
!56 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_5Value11ValueSourceEEE", !6, i64 0}
!57 = !{!"_ZTSN4juce12ListenerListINS_5Value8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !58, i64 0}
!58 = !{!"_ZTSN4juce5ArrayIPNS_5Value8ListenerENS_20DummyCriticalSectionELi0EEE", !59, i64 0, !12, i64 16}
!59 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_5Value8ListenerENS_20DummyCriticalSectionEEE", !60, i64 0, !12, i64 8}
!60 = !{!"_ZTSN4juce9HeapBlockIPNS_5Value8ListenerELb0EEE", !6, i64 0}
!61 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !6, i64 0}
!62 = !{!"_ZTSN4juce12TabBarButton23ExtraComponentPlacementE", !7, i64 0}
!63 = distinct !{!63, !64}
!64 = !{!"llvm.loop.mustprogress"}
!65 = !{!66, !66, i64 0}
!66 = !{!"double", !7, i64 0}
!67 = !{!68, !66, i64 288}
!68 = !{!"_ZTSN4juce15TabbedButtonBarE", !18, i64 0, !69, i64 200, !77, i64 256, !78, i64 264, !66, i64 288, !12, i64 296, !81, i64 304, !82, i64 312}
!69 = !{!"_ZTSN4juce17ChangeBroadcasterE", !70, i64 8, !73, i64 32}
!70 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !71, i64 0, !6, i64 16}
!71 = !{!"_ZTSN4juce12AsyncUpdaterE", !72, i64 8}
!72 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!73 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !74, i64 0}
!74 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !75, i64 0, !12, i64 16}
!75 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !76, i64 0, !12, i64 8}
!76 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !6, i64 0}
!77 = !{!"_ZTSN4juce15TabbedButtonBar11OrientationE", !7, i64 0}
!78 = !{!"_ZTSN4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEEE", !79, i64 0, !12, i64 16}
!79 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEEE", !80, i64 0, !12, i64 8}
!80 = !{!"_ZTSN4juce9HeapBlockIPNS_15TabbedButtonBar7TabInfoELb0EEE", !6, i64 0}
!81 = !{!"_ZTSN4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEE", !6, i64 0}
!82 = !{!"_ZTSN4juce13ScopedPointerINS_6ButtonEEE", !6, i64 0}
!83 = !{i8 0, i8 2}
!84 = !{}
!85 = distinct !{!85, !64}
!86 = !{!68, !12, i64 296}
!87 = distinct !{!87, !64}


; 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 }

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 uwtable
declare dso_local void @_ZN4juce9Component7setSizeEii(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce17ComponentAnimator16animateComponentEPNS_9ComponentERKNS_9RectangleIiEEfibdd(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef, ptr noundef nonnull align 4 dereferenceable(16), float noundef, i32 noundef, i1 noundef zeroext, double noundef, double noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4juce4jmaxIdEET_S1_S1_(double noundef, double noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce15TabbedButtonBar18updateTabPositionsEb(ptr noundef nonnull align 8 dereferenceable(320) %0, i1 noundef zeroext %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = tail call noundef nonnull align 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %8 = tail call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  store i32 %8, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %9 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  store i32 %9, ptr %4, align 4, !tbaa !5
  %10 = tail call noundef zeroext i1 @_ZNK4juce15TabbedButtonBar10isVerticalEv(ptr noundef nonnull align 8 dereferenceable(320) %0) #4
  br i1 %10, label %12, label %11

11:                                               ; preds = %2
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #4
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %11, %2
  %13 = phi i32 [ %.pre, %11 ], [ %8, %2 ]
  %14 = getelementptr inbounds i8, ptr %7, i64 120
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %15, i64 24
  %17 = load ptr, ptr %16, align 8
  %18 = call noundef i32 %17(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef %13)
  %19 = load ptr, ptr %14, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %21 = load ptr, ptr %20, align 8
  %22 = call noundef i32 %21(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %23 = shl nsw i32 %22, 1
  %24 = add nsw i32 %23, %18
  %25 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %24)
  %26 = getelementptr inbounds i8, ptr %0, i64 264
  %27 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %26) #4
  %28 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %26) #4
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %12
  %30 = sdiv i32 %24, 2
  br label %33

._crit_edge:                                      ; preds = %33, %12
  %.071.lcssa = phi i32 [ %25, %12 ], [ %42, %33 ]
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = icmp sgt i32 %.071.lcssa, %31
  br i1 %32, label %48, label %._crit_edge._crit_edge

._crit_edge._crit_edge:                           ; preds = %._crit_edge
  %.pre133 = sitofp i32 %.071.lcssa to double
  br label %55

33:                                               ; preds = %.lr.ph, %33
  %.071107 = phi i32 [ %25, %.lr.ph ], [ %42, %33 ]
  %.077106 = phi i32 [ 0, %.lr.ph ], [ %45, %33 ]
  %34 = call noundef ptr @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %26, i32 noundef %.077106) #4
  %35 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12TabBarButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #4
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = load ptr, ptr %35, align 8, !tbaa !9
  %38 = getelementptr inbounds i8, ptr %37, i64 416
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef i32 %39(ptr noundef nonnull align 8 dereferenceable(404) %35, i32 noundef %36)
  %41 = sub i32 %.071107, %24
  %42 = add i32 %41, %40
  %43 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %30)
  %44 = getelementptr inbounds i8, ptr %35, i64 384
  store i32 %43, ptr %44, align 8, !tbaa !11
  %45 = add nuw nsw i32 %.077106, 1
  %46 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %26) #4
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %33, label %._crit_edge, !llvm.loop !61

48:                                               ; preds = %._crit_edge
  %49 = getelementptr inbounds i8, ptr %0, i64 288
  %50 = load double, ptr %49, align 8, !tbaa !63
  %51 = sitofp i32 %31 to double
  %52 = sitofp i32 %.071.lcssa to double
  %53 = fdiv double %51, %52
  %54 = call noundef double @_ZN4juce4jmaxIdEET_S1_S1_(double noundef %50, double noundef %53)
  %.pre129 = load i32, ptr %4, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %._crit_edge._crit_edge, %48
  %.pre-phi = phi double [ %.pre133, %._crit_edge._crit_edge ], [ %52, %48 ]
  %56 = phi i32 [ %31, %._crit_edge._crit_edge ], [ %.pre129, %48 ]
  %.084 = phi double [ 1.000000e+00, %._crit_edge._crit_edge ], [ %54, %48 ]
  %57 = fmul double %.084, %.pre-phi
  %58 = fptosi double %57 to i32
  %59 = icmp slt i32 %56, %58
  %60 = getelementptr inbounds i8, ptr %0, i64 312
  br i1 %59, label %61, label %136

61:                                               ; preds = %55
  %62 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %60) #4
  %63 = icmp eq ptr %62, null
  br i1 %63, label %64, label %78

64:                                               ; preds = %61
  %65 = load ptr, ptr %14, align 8, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %65, i64 96
  %67 = load ptr, ptr %66, align 8
  %68 = call noundef ptr %67(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef %68)
  %70 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %69) #4
  call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %70, i32 noundef -1)
  %71 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %60) #4
  %72 = getelementptr inbounds i8, ptr %0, i64 304
  %73 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %72) #4
  %74 = icmp eq ptr %73, null
  %75 = getelementptr inbounds i8, ptr %73, i64 200
  %spec.select = select i1 %74, ptr null, ptr %75
  call void @_ZN4juce6Button11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(375) %71, ptr noundef %spec.select)
  %76 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %60) #4
  call void @_ZN4juce9Component14setAlwaysOnTopEb(ptr noundef nonnull align 8 dereferenceable(197) %76, i1 noundef zeroext true)
  %77 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %60) #4
  call void @_ZN4juce6Button23setTriggeredOnMouseDownEb(ptr noundef nonnull align 8 dereferenceable(375) %77, i1 noundef zeroext true) #4
  br label %78

78:                                               ; preds = %64, %61
  %79 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %0, float noundef 0x3FE6666660000000) #4
  %80 = call noundef i32 @_ZNK4juce9Component18proportionOfHeightEf(ptr noundef nonnull align 8 dereferenceable(197) %0, float noundef 0x3FE6666660000000) #4
  %81 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %79, i32 noundef %80)
  %82 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %60) #4
  call void @_ZN4juce9Component7setSizeEii(ptr noundef nonnull align 8 dereferenceable(197) %82, i32 noundef %81, i32 noundef %81)
  %83 = call noundef zeroext i1 @_ZNK4juce15TabbedButtonBar10isVerticalEv(ptr noundef nonnull align 8 dereferenceable(320) %0) #4
  %.neg91 = sdiv i32 %81, -2
  %84 = add nsw i32 %.neg91, -1
  br i1 %83, label %85, label %91

85:                                               ; preds = %78
  %86 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  %87 = add i32 %84, %86
  %88 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %60) #4
  %89 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  %90 = sdiv i32 %89, 2
  call void @_ZN4juce9Component17setCentrePositionEii(ptr noundef nonnull align 8 dereferenceable(197) %88, i32 noundef %90, i32 noundef %87)
  br label %97

91:                                               ; preds = %78
  %92 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  %93 = add i32 %84, %92
  %94 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %60) #4
  %95 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  %96 = sdiv i32 %95, 2
  call void @_ZN4juce9Component17setCentrePositionEii(ptr noundef nonnull align 8 dereferenceable(197) %94, i32 noundef %93, i32 noundef %96)
  br label %97

97:                                               ; preds = %91, %85
  %.086 = phi i32 [ %87, %85 ], [ %93, %91 ]
  %98 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %26) #4
  %99 = icmp sgt i32 %98, 0
  br i1 %99, label %100, label %..loopexit_crit_edge

..loopexit_crit_edge:                             ; preds = %97
  %.pre134 = sitofp i32 %.086 to double
  br label %.loopexit

100:                                              ; preds = %97
  %101 = getelementptr inbounds i8, ptr %0, i64 288
  %102 = sitofp i32 %.086 to double
  %103 = call noundef ptr @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %26, i32 noundef 0) #4
  %104 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12TabBarButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %103) #4
  %105 = load i32, ptr %3, align 4, !tbaa !5
  %106 = load ptr, ptr %104, align 8, !tbaa !9
  %107 = getelementptr inbounds i8, ptr %106, i64 416
  %108 = load ptr, ptr %107, align 8
  %109 = call noundef i32 %108(ptr noundef nonnull align 8 dereferenceable(404) %104, i32 noundef %105)
  %110 = sub nsw i32 %109, %24
  %111 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %26) #4
  %112 = icmp sgt i32 %111, 1
  br i1 %112, label %.peel.next, label %.loopexit

.peel.next:                                       ; preds = %100, %126
  %.1110 = phi i32 [ %128, %126 ], [ %110, %100 ]
  %.072109 = phi i32 [ %127, %126 ], [ 1, %100 ]
  %113 = call noundef ptr @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %26, i32 noundef %.072109) #4
  %114 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12TabBarButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %113) #4
  %115 = load i32, ptr %3, align 4, !tbaa !5
  %116 = load ptr, ptr %114, align 8, !tbaa !9
  %117 = getelementptr inbounds i8, ptr %116, i64 416
  %118 = load ptr, ptr %117, align 8
  %119 = call noundef i32 %118(ptr noundef nonnull align 8 dereferenceable(404) %114, i32 noundef %115)
  %120 = add nsw i32 %119, %.1110
  %121 = sitofp i32 %120 to double
  %122 = load double, ptr %101, align 8, !tbaa !63
  %123 = fmul double %122, %121
  %124 = fcmp ogt double %123, %102
  br i1 %124, label %.loopexit128, label %126

.loopexit128:                                     ; preds = %.peel.next
  %125 = add nsw i32 %.1110, %24
  br label %.loopexit

126:                                              ; preds = %.peel.next
  %127 = add nuw nsw i32 %.072109, 1
  %128 = sub nsw i32 %120, %24
  %129 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %26) #4
  %130 = icmp slt i32 %127, %129
  br i1 %130, label %.peel.next, label %.loopexit, !llvm.loop !80

.loopexit:                                        ; preds = %126, %100, %..loopexit_crit_edge, %.loopexit128
  %.pre-phi135 = phi double [ %.pre134, %..loopexit_crit_edge ], [ %102, %.loopexit128 ], [ %102, %100 ], [ %102, %126 ]
  %.072105 = phi i32 [ %27, %..loopexit_crit_edge ], [ %.072109, %.loopexit128 ], [ 1, %100 ], [ %127, %126 ]
  %.3 = phi i32 [ 0, %..loopexit_crit_edge ], [ %125, %.loopexit128 ], [ %110, %100 ], [ %128, %126 ]
  %131 = getelementptr inbounds i8, ptr %0, i64 288
  %132 = load double, ptr %131, align 8, !tbaa !63
  %133 = sitofp i32 %.3 to double
  %134 = fdiv double %.pre-phi135, %133
  %135 = call noundef double @_ZN4juce4jmaxIdEET_S1_S1_(double noundef %132, double noundef %134)
  br label %138

136:                                              ; preds = %55
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef null)
  br label %138

138:                                              ; preds = %136, %.loopexit
  %.185 = phi double [ %135, %.loopexit ], [ %.084, %136 ]
  %.375 = phi i32 [ %.072105, %.loopexit ], [ %27, %136 ]
  %139 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
  %140 = call noundef nonnull align 8 dereferenceable(116) ptr @_ZN4juce7Desktop11getAnimatorEv(ptr noundef nonnull align 8 dereferenceable(360) %139) #4
  %141 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %26) #4
  %142 = icmp sgt i32 %141, 0
  br i1 %142, label %.lr.ph120, label %._crit_edge121

.lr.ph120:                                        ; preds = %138
  %143 = getelementptr inbounds i8, ptr %0, i64 296
  br label %146

._crit_edge121:                                   ; preds = %185, %138
  %.078.lcssa = phi ptr [ null, %138 ], [ %.381, %185 ]
  %144 = getelementptr inbounds i8, ptr %0, i64 304
  %145 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %144) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %6, ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %145, ptr noundef nonnull align 4 dereferenceable(16) %6)
          to label %189 unwind label %192

146:                                              ; preds = %.lr.ph120, %185
  %.076117 = phi i32 [ 0, %.lr.ph120 ], [ %186, %185 ]
  %.078116 = phi ptr [ null, %.lr.ph120 ], [ %.381, %185 ]
  %.082115 = phi i32 [ 0, %.lr.ph120 ], [ %.183, %185 ]
  %147 = call noundef ptr @_ZNK4juce15TabbedButtonBar12getTabButtonEi(ptr noundef nonnull align 8 dereferenceable(320) %0, i32 noundef %.076117)
  %.not93 = icmp eq ptr %147, null
  br i1 %.not93, label %185, label %148

148:                                              ; preds = %146
  %149 = load i32, ptr %3, align 4, !tbaa !5
  %150 = load ptr, ptr %147, align 8, !tbaa !9
  %151 = getelementptr inbounds i8, ptr %150, i64 416
  %152 = load ptr, ptr %151, align 8
  %153 = call noundef i32 %152(ptr noundef nonnull align 8 dereferenceable(404) %147, i32 noundef %149)
  %154 = sitofp i32 %153 to double
  %155 = fmul double %.185, %154
  %156 = call noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef %155) #4
  %157 = icmp slt i32 %.076117, %.375
  br i1 %157, label %158, label %178

158:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %159 = call noundef zeroext i1 @_ZNK4juce15TabbedButtonBar10isVerticalEv(ptr noundef nonnull align 8 dereferenceable(320) %0) #4
  br i1 %159, label %160, label %162

160:                                              ; preds = %158
  %161 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %5, i32 noundef 0, i32 noundef %.082115, i32 noundef %161, i32 noundef %156) #4
  br label %164

162:                                              ; preds = %158
  %163 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %5, i32 noundef %.082115, i32 noundef 0, i32 noundef %156, i32 noundef %163) #4
  br label %164

164:                                              ; preds = %162, %160
  br i1 %1, label %165, label %168

165:                                              ; preds = %164
  invoke void @_ZN4juce17ComponentAnimator16animateComponentEPNS_9ComponentERKNS_9RectangleIiEEfibdd(ptr noundef nonnull align 8 dereferenceable(116) %140, ptr noundef nonnull %147, ptr noundef nonnull align 4 dereferenceable(16) %5, float noundef 1.000000e+00, i32 noundef 200, i1 noundef zeroext false, double noundef 3.000000e+00, double noundef 0.000000e+00)
          to label %170 unwind label %166

166:                                              ; preds = %171, %170, %169, %168, %165
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %195

168:                                              ; preds = %164
  invoke void @_ZN4juce17ComponentAnimator15cancelAnimationEPNS_9ComponentEb(ptr noundef nonnull align 8 dereferenceable(116) %140, ptr noundef nonnull %147, i1 noundef zeroext false)
          to label %169 unwind label %166

169:                                              ; preds = %168
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %147, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %170 unwind label %166

170:                                              ; preds = %169, %165
  invoke void @_ZN4juce9Component6toBackEv(ptr noundef nonnull align 8 dereferenceable(197) %147)
          to label %171 unwind label %166

171:                                              ; preds = %170
  %172 = load i32, ptr %143, align 8, !tbaa !82
  %173 = load ptr, ptr %147, align 8, !tbaa !9
  %174 = getelementptr inbounds i8, ptr %173, i64 88
  %175 = load ptr, ptr %174, align 8
  invoke void %175(ptr noundef nonnull align 8 dereferenceable(197) %147, i1 noundef zeroext true)
          to label %176 unwind label %166

176:                                              ; preds = %171
  %177 = icmp eq i32 %.076117, %172
  %spec.select95 = select i1 %177, ptr %147, ptr %.078116
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %182

178:                                              ; preds = %148
  %179 = load ptr, ptr %147, align 8, !tbaa !9
  %180 = getelementptr inbounds i8, ptr %179, i64 88
  %181 = load ptr, ptr %180, align 8
  call void %181(ptr noundef nonnull align 8 dereferenceable(197) %147, i1 noundef zeroext false)
  br label %182

182:                                              ; preds = %178, %176
  %.280 = phi ptr [ %spec.select95, %176 ], [ %.078116, %178 ]
  %183 = sub i32 %.082115, %24
  %184 = add i32 %183, %156
  br label %185

185:                                              ; preds = %182, %146
  %.183 = phi i32 [ %184, %182 ], [ %.082115, %146 ]
  %.381 = phi ptr [ %.280, %182 ], [ %.078116, %146 ]
  %186 = add nuw nsw i32 %.076117, 1
  %187 = call noundef i32 @_ZNK4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %26) #4
  %188 = icmp slt i32 %186, %187
  br i1 %188, label %146, label %._crit_edge121, !llvm.loop !83

189:                                              ; preds = %._crit_edge121
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  %.not92 = icmp eq ptr %.078.lcssa, null
  br i1 %.not92, label %194, label %190

190:                                              ; preds = %189
  call void @_ZN4juce9Component7toFrontEb(ptr noundef nonnull align 8 dereferenceable(197) %.078.lcssa, i1 noundef zeroext false)
  %191 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %144) #4
  call void @_ZN4juce9Component8toBehindEPS0_(ptr noundef nonnull align 8 dereferenceable(197) %191, ptr noundef nonnull %.078.lcssa)
  br label %194

192:                                              ; preds = %._crit_edge121
  %193 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %195

194:                                              ; preds = %190, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  ret void

195:                                              ; preds = %192, %166
  %.pn = phi { ptr, i32 } [ %167, %166 ], [ %193, %192 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce15TabbedButtonBar12getTabButtonEi(ptr noundef nonnull align 8 dereferenceable(320), i32 noundef) local_unnamed_addr #0 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 384}
!12 = !{!"_ZTSN4juce12TabBarButtonE", !13, i64 0, !18, i64 376, !6, i64 384, !59, i64 392, !60, i64 400}
!13 = !{!"_ZTSN4juce6ButtonE", !14, i64 0, !40, i64 200, !42, i64 216, !45, i64 240, !16, i64 248, !46, i64 256, !50, i64 280, !6, i64 288, !6, i64 292, !18, i64 296, !6, i64 304, !6, i64 308, !6, i64 312, !6, i64 316, !6, i64 320, !6, i64 324, !51, i64 328, !51, i64 332, !52, i64 336, !58, i64 368, !58, i64 369, !58, i64 370, !58, i64 371, !58, i64 372, !58, i64 373, !58, i64 374}
!14 = !{!"_ZTSN4juce9ComponentE", !15, i64 0, !16, i64 8, !16, i64 16, !18, i64 24, !19, i64 32, !21, i64 48, !22, i64 56, !23, i64 64, !18, i64 88, !26, i64 96, !18, i64 104, !27, i64 112, !28, i64 120, !29, i64 128, !30, i64 136, !34, i64 160, !38, i64 184, !7, i64 192, !7, i64 196}
!15 = !{!"_ZTSN4juce13MouseListenerE"}
!16 = !{!"_ZTSN4juce6StringE", !17, i64 0}
!17 = !{!"_ZTSN4juce16CharPointer_UTF8E", !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTSN4juce9RectangleIiEE", !20, i64 0, !6, i64 8, !6, i64 12}
!20 = !{!"_ZTSN4juce5PointIiEE", !6, i64 0, !6, i64 4}
!21 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !18, i64 0}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !18, i64 0}
!23 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !24, i64 0, !6, i64 16}
!24 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !25, i64 0, !6, i64 8}
!25 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !18, i64 0}
!26 = !{!"_ZTSN4juce11MouseCursorE", !18, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !18, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !18, i64 0}
!29 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !18, i64 0}
!30 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !6, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !33, i64 0, !6, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !18, i64 0}
!34 = !{!"_ZTSN4juce13NamedValueSetE", !35, i64 0}
!35 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !36, i64 0, !6, i64 16}
!36 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !37, i64 0, !6, i64 8}
!37 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !18, i64 0}
!38 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !39, i64 0}
!39 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !18, i64 0}
!40 = !{!"_ZTSN4juce21SettableTooltipClientE", !41, i64 0, !16, i64 8}
!41 = !{!"_ZTSN4juce13TooltipClientE"}
!42 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !43, i64 0, !6, i64 16}
!43 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !44, i64 0, !6, i64 8}
!44 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !18, i64 0}
!45 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !39, i64 0}
!46 = !{!"_ZTSN4juce12ListenerListINS_6Button8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !47, i64 0}
!47 = !{!"_ZTSN4juce5ArrayIPNS_6Button8ListenerENS_20DummyCriticalSectionELi0EEE", !48, i64 0, !6, i64 16}
!48 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_6Button8ListenerENS_20DummyCriticalSectionEEE", !49, i64 0, !6, i64 8}
!49 = !{!"_ZTSN4juce9HeapBlockIPNS_6Button8ListenerELb0EEE", !18, i64 0}
!50 = !{!"_ZTSN4juce13ScopedPointerINS_6Button14CallbackHelperEEE", !18, i64 0}
!51 = !{!"_ZTSN4juce6Button11ButtonStateE", !7, i64 0}
!52 = !{!"_ZTSN4juce5ValueE", !53, i64 0, !54, i64 8}
!53 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_5Value11ValueSourceEEE", !18, i64 0}
!54 = !{!"_ZTSN4juce12ListenerListINS_5Value8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !55, i64 0}
!55 = !{!"_ZTSN4juce5ArrayIPNS_5Value8ListenerENS_20DummyCriticalSectionELi0EEE", !56, i64 0, !6, i64 16}
!56 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_5Value8ListenerENS_20DummyCriticalSectionEEE", !57, i64 0, !6, i64 8}
!57 = !{!"_ZTSN4juce9HeapBlockIPNS_5Value8ListenerELb0EEE", !18, i64 0}
!58 = !{!"bool", !7, i64 0}
!59 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !18, i64 0}
!60 = !{!"_ZTSN4juce12TabBarButton23ExtraComponentPlacementE", !7, i64 0}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}
!63 = !{!64, !77, i64 288}
!64 = !{!"_ZTSN4juce15TabbedButtonBarE", !14, i64 0, !65, i64 200, !73, i64 256, !74, i64 264, !77, i64 288, !6, i64 296, !78, i64 304, !79, i64 312}
!65 = !{!"_ZTSN4juce17ChangeBroadcasterE", !66, i64 8, !69, i64 32}
!66 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !67, i64 0, !18, i64 16}
!67 = !{!"_ZTSN4juce12AsyncUpdaterE", !68, i64 8}
!68 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !18, i64 0}
!69 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !70, i64 0}
!70 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !71, i64 0, !6, i64 16}
!71 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !72, i64 0, !6, i64 8}
!72 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !18, i64 0}
!73 = !{!"_ZTSN4juce15TabbedButtonBar11OrientationE", !7, i64 0}
!74 = !{!"_ZTSN4juce10OwnedArrayINS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEEE", !75, i64 0, !6, i64 16}
!75 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_15TabbedButtonBar7TabInfoENS_20DummyCriticalSectionEEE", !76, i64 0, !6, i64 8}
!76 = !{!"_ZTSN4juce9HeapBlockIPNS_15TabbedButtonBar7TabInfoELb0EEE", !18, i64 0}
!77 = !{!"double", !7, i64 0}
!78 = !{!"_ZTSN4juce13ScopedPointerINS_15TabbedButtonBar18BehindFrontTabCompEEE", !18, i64 0}
!79 = !{!"_ZTSN4juce13ScopedPointerINS_6ButtonEEE", !18, i64 0}
!80 = distinct !{!80, !62, !81}
!81 = !{!"llvm.loop.peeled.count", i32 1}
!82 = !{!64, !6, i64 296}
!83 = distinct !{!83, !62}


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