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

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

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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V232getTabButtonExtraComponentBoundsERKNS_12TabBarButtonERNS_9RectangleIiEERNS_9ComponentE(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4 %0, ptr noundef nonnull align 8 dereferenceable(304) %1, ptr noundef nonnull align 8 dereferenceable(404) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(197) %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i1, align 1
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.juce::Rectangle", align 4
  %16 = alloca %"class.juce::Rectangle", align 4
  %17 = alloca %"class.juce::Rectangle", align 4
  %18 = alloca %"class.juce::Rectangle", align 4
  %19 = alloca %"class.juce::Rectangle", align 4
  %20 = alloca %"class.juce::Rectangle", align 4
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8
  store i1 false, ptr %11, align 1
  call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %0) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = invoke noundef nonnull align 8 dereferenceable(320) ptr @_ZNK4juce12TabBarButton18getTabbedButtonBarEv(ptr noundef nonnull align 8 dereferenceable(404) %22)
          to label %24 unwind label %31

24:                                               ; preds = %5
  %25 = call noundef i32 @_ZNK4juce15TabbedButtonBar14getOrientationEv(ptr noundef nonnull align 8 dereferenceable(320) %23) #3
  store i32 %25, ptr %12, align 4, !tbaa !9
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = call noundef i32 @_ZNK4juce12TabBarButton26getExtraComponentPlacementEv(ptr noundef nonnull align 8 dereferenceable(404) %26) #3
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %55

29:                                               ; preds = %24
  %30 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %30, label %50 [
    i32 1, label %35
    i32 0, label %35
    i32 2, label %40
    i32 3, label %45
  ]

31:                                               ; preds = %5
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %13, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %0) #3
  br label %81

35:                                               ; preds = %29, %29
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #3
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %37) #3
  call void @_ZN4juce9RectangleIiE14removeFromLeftEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %15, ptr noundef nonnull align 4 dereferenceable(16) %36, i32 noundef %38) #3
  %39 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %15) #3
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #3
  br label %54

40:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #3
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %42) #3
  call void @_ZN4juce9RectangleIiE16removeFromBottomEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %16, ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef %43) #3
  %44 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %16) #3
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #3
  br label %54

45:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %47) #3
  call void @_ZN4juce9RectangleIiE13removeFromTopEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %17, ptr noundef nonnull align 4 dereferenceable(16) %46, i32 noundef %48) #3
  %49 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %17) #3
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %17) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  br label %54

50:                                               ; preds = %29
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53, %45, %40, %35
  br label %77

55:                                               ; preds = %24
  %56 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %56, label %72 [
    i32 1, label %57
    i32 0, label %57
    i32 2, label %62
    i32 3, label %67
  ]

57:                                               ; preds = %55, %55
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %59) #3
  call void @_ZN4juce9RectangleIiE15removeFromRightEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %18, ptr noundef nonnull align 4 dereferenceable(16) %58, i32 noundef %60) #3
  %61 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %18) #3
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %18) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  br label %76

62:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %64) #3
  call void @_ZN4juce9RectangleIiE13removeFromTopEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %19, ptr noundef nonnull align 4 dereferenceable(16) %63, i32 noundef %65) #3
  %66 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %19) #3
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %19) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  br label %76

67:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %69) #3
  call void @_ZN4juce9RectangleIiE16removeFromBottomEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %20, ptr noundef nonnull align 4 dereferenceable(16) %68, i32 noundef %70) #3
  %71 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %20) #3
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %20) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  br label %76

72:                                               ; preds = %55
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75, %67, %62, %57
  br label %77

77:                                               ; preds = %76, %54
  store i1 true, ptr %11, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  %78 = load i1, ptr %11, align 1
  br i1 %78, label %80, label %79

79:                                               ; preds = %77
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %0) #3
  br label %80

80:                                               ; preds = %79, %77
  ret void

81:                                               ; preds = %31
  %82 = load ptr, ptr %13, align 8
  %83 = load i32, ptr %14, align 4
  %84 = insertvalue { ptr, i32 } poison, ptr %82, 0
  %85 = insertvalue { ptr, i32 } %84, i32 %83, 1
  resume { ptr, i32 } %85
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12TabBarButton26getExtraComponentPlacementEv(ptr noundef nonnull align 8 dereferenceable(404)) #0 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 = { 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 = !{!"_ZTSN4juce15TabbedButtonBar11OrientationE", !7, i64 0}


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

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

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

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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce14LookAndFeel_V232getTabButtonExtraComponentBoundsERKNS_12TabBarButtonERNS_9RectangleIiEERNS_9ComponentE(ptr dead_on_unwind noalias nonnull writable sret(%"class.juce::Rectangle") align 4 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(304) %1, ptr noundef nonnull align 8 dereferenceable(404) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(197) %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = alloca %"class.juce::Rectangle", align 4
  %8 = alloca %"class.juce::Rectangle", align 4
  %9 = alloca %"class.juce::Rectangle", align 4
  %10 = alloca %"class.juce::Rectangle", align 4
  %11 = alloca %"class.juce::Rectangle", align 4
  tail call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %0) #2
  %12 = tail call noundef nonnull align 8 dereferenceable(320) ptr @_ZNK4juce12TabBarButton18getTabbedButtonBarEv(ptr noundef nonnull align 8 dereferenceable(404) %2)
  %13 = tail call noundef i32 @_ZNK4juce15TabbedButtonBar14getOrientationEv(ptr noundef nonnull align 8 dereferenceable(320) %12) #2
  %14 = tail call noundef i32 @_ZNK4juce12TabBarButton26getExtraComponentPlacementEv(ptr noundef nonnull align 8 dereferenceable(404) %2) #2
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %26

16:                                               ; preds = %5
  switch i32 %13, label %36 [
    i32 1, label %17
    i32 0, label %17
    i32 2, label %20
    i32 3, label %23
  ]

17:                                               ; preds = %16, %16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #2
  %18 = tail call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %4) #2
  call void @_ZN4juce9RectangleIiE14removeFromLeftEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %6, ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef %18) #2
  %19 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %6) #2
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #2
  br label %36

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #2
  %21 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %4) #2
  call void @_ZN4juce9RectangleIiE16removeFromBottomEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %7, ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef %21) #2
  %22 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %7) #2
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #2
  br label %36

23:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #2
  %24 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %4) #2
  call void @_ZN4juce9RectangleIiE13removeFromTopEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %8, ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef %24) #2
  %25 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %8) #2
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #2
  br label %36

26:                                               ; preds = %5
  switch i32 %13, label %36 [
    i32 1, label %27
    i32 0, label %27
    i32 2, label %30
    i32 3, label %33
  ]

27:                                               ; preds = %26, %26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #2
  %28 = tail call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %4) #2
  call void @_ZN4juce9RectangleIiE15removeFromRightEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %9, ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef %28) #2
  %29 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %9) #2
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #2
  br label %36

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #2
  %31 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %4) #2
  call void @_ZN4juce9RectangleIiE13removeFromTopEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %10, ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef %31) #2
  %32 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %10) #2
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #2
  br label %36

33:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #2
  %34 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %4) #2
  call void @_ZN4juce9RectangleIiE16removeFromBottomEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef %34) #2
  %35 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %11) #2
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #2
  br label %36

36:                                               ; preds = %16, %23, %20, %17, %26, %33, %30, %27
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12TabBarButton26getExtraComponentPlacementEv(ptr noundef nonnull align 8 dereferenceable(404)) local_unnamed_addr #0 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 = { 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)"}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass