; 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::TableHeaderComponent" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::AsyncUpdater", %"class.juce::OwnedArray.407", %"class.juce::Array.412", %"class.juce::ScopedPointer.159", i8, i8, i8, i8, i8, [3 x i8], i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.0", %"class.juce::Array", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.1", %"class.juce::ScopedPointer.2", %"class.juce::ScopedPointer.3", %"class.juce::ListenerList", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::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::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.15" }
%"class.juce::ReferenceCountedObjectPtr.15" = type { ptr }
%"class.juce::OwnedArray.407" = type { %"class.juce::ArrayAllocationBase.408", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.408" = type <{ %"class.juce::HeapBlock.409", i32, [4 x i8] }>
%"class.juce::HeapBlock.409" = type { ptr }
%"class.juce::Array.412" = type { %"class.juce::ArrayAllocationBase.413", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.413" = type <{ %"class.juce::HeapBlock.414", i32, [4 x i8] }>
%"class.juce::HeapBlock.414" = type { ptr }
%"class.juce::ScopedPointer.159" = type { ptr }
%"class.juce::MouseEvent" = type <{ %"class.juce::Point.35", i32, i32, %"class.juce::ModifierKeys", float, ptr, ptr, %"class.juce::Time", %"class.juce::Time", %"class.juce::MouseInputSource", %"class.juce::Point.35", i8, i8, [6 x i8] }>
%"class.juce::ModifierKeys" = type { i32 }
%"class.juce::Time" = type { i64 }
%"class.juce::MouseInputSource" = type { ptr }
%"class.juce::Point.35" = type { float, float }
%"struct.juce::TableHeaderComponent::ColumnInfo" = type { %"class.juce::String", i32, i32, i32, i32, i32, double }

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 @_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 void @_ZN4juce9Component9setBoundsEiiii(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component4getXEv(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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce12ModifierKeys11isPopupMenuEv(ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4juce20TableHeaderComponent18getIndexOfColumnIdEib(ptr noundef nonnull align 8 dereferenceable(308), i32 noundef, i1 noundef zeroext) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4juce20TableHeaderComponent13getTotalWidthEv(ptr noundef nonnull align 8 dereferenceable(308)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce20TableHeaderComponent9mouseDragERKNS_10MouseEventE(ptr noundef nonnull align 8 dereferenceable(308) %0, ptr noundef nonnull align 8 dereferenceable(74) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.juce::Rectangle", align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.juce::Rectangle", align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.juce::Rectangle", align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %"class.juce::Rectangle", align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.juce::Rectangle", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %27 = load ptr, ptr %3, align 8
  %28 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 12
  %29 = load i32, ptr %28, align 8, !tbaa !9
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %66

31:                                               ; preds = %2
  %32 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 13
  %33 = load i32, ptr %32, align 4, !tbaa !47
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %66

35:                                               ; preds = %31
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call noundef zeroext i1 @_ZNK4juce10MouseEvent29mouseWasDraggedSinceMouseDownEv(ptr noundef nonnull align 8 dereferenceable(74) %36) #5
  br i1 %37, label %38, label %66

38:                                               ; preds = %35
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.juce::MouseEvent", ptr %39, i32 0, i32 3
  %41 = call noundef zeroext i1 @_ZNK4juce12ModifierKeys11isPopupMenuEv(ptr noundef nonnull align 4 dereferenceable(4) %40) #5
  br i1 %41, label %66, label %42

42:                                               ; preds = %38
  %43 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 5
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef null)
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = call noundef i32 @_ZNK4juce10MouseEvent13getMouseDownXEv(ptr noundef nonnull align 8 dereferenceable(74) %45) #5
  %47 = call noundef i32 @_ZNK4juce20TableHeaderComponent18getResizeDraggerAtEi(ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %46)
  %48 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 12
  store i32 %47, ptr %48, align 8, !tbaa !9
  %49 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 12
  %50 = load i32, ptr %49, align 8, !tbaa !9
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %63

52:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %53 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 12
  %54 = load i32, ptr %53, align 8, !tbaa !9
  %55 = call noundef ptr @_ZNK4juce20TableHeaderComponent12getInfoForIdEi(ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %54)
  store ptr %55, ptr %5, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %52
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.juce::TableHeaderComponent::ColumnInfo", ptr %59, i32 0, i32 3
  %61 = load i32, ptr %60, align 8, !tbaa !48
  %62 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 14
  store i32 %61, ptr %62, align 8, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %65

63:                                               ; preds = %42
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4juce20TableHeaderComponent9beginDragERKNS_10MouseEventE(ptr noundef nonnull align 8 dereferenceable(308) %27, ptr noundef nonnull align 8 dereferenceable(74) %64)
  br label %65

65:                                               ; preds = %63, %58
  br label %66

66:                                               ; preds = %65, %38, %35, %31, %2
  %67 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 12
  %68 = load i32, ptr %67, align 8, !tbaa !9
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %147

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %71 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 12
  %72 = load i32, ptr %71, align 8, !tbaa !9
  %73 = call noundef ptr @_ZNK4juce20TableHeaderComponent12getInfoForIdEi(ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %72)
  store ptr %73, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %146

76:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.juce::TableHeaderComponent::ColumnInfo", ptr %77, i32 0, i32 4
  %79 = load i32, ptr %78, align 4, !tbaa !52
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.juce::TableHeaderComponent::ColumnInfo", ptr %80, i32 0, i32 5
  %82 = load i32, ptr %81, align 8, !tbaa !53
  %83 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 14
  %84 = load i32, ptr %83, align 8, !tbaa !51
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = call noundef i32 @_ZNK4juce10MouseEvent25getDistanceFromDragStartXEv(ptr noundef nonnull align 8 dereferenceable(74) %85) #5
  %87 = add nsw i32 %84, %86
  %88 = call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef %79, i32 noundef %82, i32 noundef %87) #5
  store i32 %88, ptr %7, align 4, !tbaa !54
  %89 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 10
  %90 = load i8, ptr %89, align 4, !tbaa !55, !range !56, !noundef !57
  %91 = trunc i8 %90 to i1
  br i1 %91, label %92, label %142

92:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %93 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 12
  %94 = load i32, ptr %93, align 8, !tbaa !9
  %95 = call noundef i32 @_ZNK4juce20TableHeaderComponent18getIndexOfColumnIdEib(ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %94, i1 noundef zeroext false)
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %9, align 4, !tbaa !54
  br label %97

97:                                               ; preds = %117, %92
  %98 = load i32, ptr %9, align 4, !tbaa !54
  %99 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 3
  %100 = call noundef i32 @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %99) #5
  %101 = icmp slt i32 %98, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %120

103:                                              ; preds = %97
  %104 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 3
  %105 = load i32, ptr %9, align 4, !tbaa !54
  %106 = call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %104, i32 noundef %105) #5
  %107 = call noundef zeroext i1 @_ZNK4juce20TableHeaderComponent10ColumnInfo9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(40) %106)
  br i1 %107, label %108, label %116

108:                                              ; preds = %103
  %109 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 3
  %110 = load i32, ptr %9, align 4, !tbaa !54
  %111 = call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %109, i32 noundef %110) #5
  %112 = getelementptr inbounds %"struct.juce::TableHeaderComponent::ColumnInfo", ptr %111, i32 0, i32 4
  %113 = load i32, ptr %112, align 4, !tbaa !52
  %114 = load i32, ptr %8, align 4, !tbaa !54
  %115 = add nsw i32 %114, %113
  store i32 %115, ptr %8, align 4, !tbaa !54
  br label %116

116:                                              ; preds = %108, %103
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %9, align 4, !tbaa !54
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %9, align 4, !tbaa !54
  br label %97, !llvm.loop !58

120:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %121 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 12
  %122 = load i32, ptr %121, align 8, !tbaa !9
  %123 = call noundef i32 @_ZNK4juce20TableHeaderComponent18getIndexOfColumnIdEib(ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %122, i1 noundef zeroext true)
  call void @_ZNK4juce20TableHeaderComponent17getColumnPositionEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %10, ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %123)
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.juce::TableHeaderComponent::ColumnInfo", ptr %124, i32 0, i32 4
  %126 = load i32, ptr %125, align 4, !tbaa !52
  %127 = load i32, ptr %7, align 4, !tbaa !54
  %128 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 18
  %129 = load i32, ptr %128, align 8, !tbaa !60
  %130 = load i32, ptr %8, align 4, !tbaa !54
  %131 = sub nsw i32 %129, %130
  %132 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %10) #5
  %133 = sub nsw i32 %131, %132
  %134 = invoke noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %127, i32 noundef %133)
          to label %135 unwind label %138

135:                                              ; preds = %120
  %136 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %126, i32 noundef %134)
          to label %137 unwind label %138

137:                                              ; preds = %135
  store i32 %136, ptr %7, align 4, !tbaa !54
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %142

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

142:                                              ; preds = %137, %76
  %143 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 12
  %144 = load i32, ptr %143, align 8, !tbaa !9
  %145 = load i32, ptr %7, align 4, !tbaa !54
  call void @_ZN4juce20TableHeaderComponent14setColumnWidthEii(ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %144, i32 noundef %145)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %146

146:                                              ; preds = %142, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %301

147:                                              ; preds = %66
  %148 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 13
  %149 = load i32, ptr %148, align 4, !tbaa !47
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %300

151:                                              ; preds = %147
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %"class.juce::MouseEvent", ptr %152, i32 0, i32 2
  %154 = load i32, ptr %153, align 4, !tbaa !61
  %155 = icmp sge i32 %154, -50
  br i1 %155, label %156, label %296

156:                                              ; preds = %151
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %"class.juce::MouseEvent", ptr %157, i32 0, i32 2
  %159 = load i32, ptr %158, align 4, !tbaa !61
  %160 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %27) #5
  %161 = add nsw i32 %160, 50
  %162 = icmp slt i32 %159, %161
  br i1 %162, label %163, label %296

163:                                              ; preds = %156
  %164 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 5
  %165 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %164) #5
  %166 = icmp ne ptr %165, null
  br i1 %166, label %167, label %295

167:                                              ; preds = %163
  %168 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 5
  %169 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %168) #5
  %170 = load ptr, ptr %169, align 8, !tbaa !69
  %171 = getelementptr inbounds ptr, ptr %170, i64 11
  %172 = load ptr, ptr %171, align 8
  call void %172(ptr noundef nonnull align 8 dereferenceable(197) %169, i1 noundef zeroext true)
  %173 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 5
  %174 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %173) #5
  %175 = call noundef i32 @_ZNK4juce20TableHeaderComponent13getTotalWidthEv(ptr noundef nonnull align 8 dereferenceable(308) %27)
  %176 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 5
  %177 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %176) #5
  %178 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %177) #5
  %179 = sub nsw i32 %175, %178
  %180 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %179)
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %"class.juce::MouseEvent", ptr %181, i32 0, i32 1
  %183 = load i32, ptr %182, align 8, !tbaa !71
  %184 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 16
  %185 = load i32, ptr %184, align 8, !tbaa !72
  %186 = sub nsw i32 %183, %185
  %187 = call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef 0, i32 noundef %180, i32 noundef %186) #5
  %188 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 5
  %189 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %188) #5
  %190 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %189) #5
  %191 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %27) #5
  call void @_ZN4juce9Component9setBoundsEiiii(ptr noundef nonnull align 8 dereferenceable(197) %174, i32 noundef %187, i32 noundef 0, i32 noundef %190, i32 noundef %191)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %192 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 3
  %193 = call noundef i32 @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %192) #5
  store i32 %193, ptr %13, align 4, !tbaa !54
  br label %194

194:                                              ; preds = %292, %167
  %195 = load i32, ptr %13, align 4, !tbaa !54
  %196 = add nsw i32 %195, -1
  store i32 %196, ptr %13, align 4, !tbaa !54
  %197 = icmp sge i32 %196, 0
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  store i32 7, ptr %14, align 4
  br label %293

199:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %200 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 13
  %201 = load i32, ptr %200, align 4, !tbaa !47
  %202 = call noundef i32 @_ZNK4juce20TableHeaderComponent18getIndexOfColumnIdEib(ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %201, i1 noundef zeroext true)
  store i32 %202, ptr %15, align 4, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %203 = load i32, ptr %15, align 4, !tbaa !54
  store i32 %203, ptr %16, align 4, !tbaa !54
  %204 = load i32, ptr %16, align 4, !tbaa !54
  %205 = icmp sgt i32 %204, 0
  br i1 %205, label %206, label %240

206:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %207 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 3
  %208 = load i32, ptr %16, align 4, !tbaa !54
  %209 = sub nsw i32 %208, 1
  %210 = call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %207, i32 noundef %209) #5
  store ptr %210, ptr %17, align 8, !tbaa !5
  %211 = load ptr, ptr %17, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.juce::TableHeaderComponent::ColumnInfo", ptr %211, i32 0, i32 2
  %213 = load i32, ptr %212, align 4, !tbaa !73
  %214 = and i32 %213, 4
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %239

216:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %217 = load i32, ptr %16, align 4, !tbaa !54
  %218 = sub nsw i32 %217, 1
  call void @_ZNK4juce20TableHeaderComponent17getColumnPositionEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %19, ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %218)
  %219 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %19) #5
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  store i32 %219, ptr %18, align 4, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %220 = load i32, ptr %16, align 4, !tbaa !54
  call void @_ZNK4juce20TableHeaderComponent17getColumnPositionEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %21, ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %220)
  %221 = call noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %21) #5
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  store i32 %221, ptr %20, align 4, !tbaa !54
  %222 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 5
  %223 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %222) #5
  %224 = call noundef i32 @_ZNK4juce9Component4getXEv(ptr noundef nonnull align 8 dereferenceable(197) %223) #5
  %225 = load i32, ptr %18, align 4, !tbaa !54
  %226 = sub nsw i32 %224, %225
  %227 = call i32 @llvm.abs.i32(i32 %226, i1 true)
  %228 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 5
  %229 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %228) #5
  %230 = call noundef i32 @_ZNK4juce9Component8getRightEv(ptr noundef nonnull align 8 dereferenceable(197) %229) #5
  %231 = load i32, ptr %20, align 4, !tbaa !54
  %232 = sub nsw i32 %230, %231
  %233 = call i32 @llvm.abs.i32(i32 %232, i1 true)
  %234 = icmp slt i32 %227, %233
  br i1 %234, label %235, label %238

235:                                              ; preds = %216
  %236 = load i32, ptr %16, align 4, !tbaa !54
  %237 = add nsw i32 %236, -1
  store i32 %237, ptr %16, align 4, !tbaa !54
  br label %238

238:                                              ; preds = %235, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %239

239:                                              ; preds = %238, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %240

240:                                              ; preds = %239, %199
  %241 = load i32, ptr %16, align 4, !tbaa !54
  %242 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 3
  %243 = call noundef i32 @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %242) #5
  %244 = sub nsw i32 %243, 1
  %245 = icmp slt i32 %241, %244
  br i1 %245, label %246, label %280

246:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %247 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 3
  %248 = load i32, ptr %16, align 4, !tbaa !54
  %249 = add nsw i32 %248, 1
  %250 = call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %247, i32 noundef %249) #5
  store ptr %250, ptr %22, align 8, !tbaa !5
  %251 = load ptr, ptr %22, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.juce::TableHeaderComponent::ColumnInfo", ptr %251, i32 0, i32 2
  %253 = load i32, ptr %252, align 4, !tbaa !73
  %254 = and i32 %253, 4
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %279

256:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %257 = load i32, ptr %16, align 4, !tbaa !54
  call void @_ZNK4juce20TableHeaderComponent17getColumnPositionEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %24, ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %257)
  %258 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %24) #5
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  store i32 %258, ptr %23, align 4, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %259 = load i32, ptr %16, align 4, !tbaa !54
  %260 = add nsw i32 %259, 1
  call void @_ZNK4juce20TableHeaderComponent17getColumnPositionEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %26, ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %260)
  %261 = call noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %26) #5
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  store i32 %261, ptr %25, align 4, !tbaa !54
  %262 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 5
  %263 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %262) #5
  %264 = call noundef i32 @_ZNK4juce9Component4getXEv(ptr noundef nonnull align 8 dereferenceable(197) %263) #5
  %265 = load i32, ptr %23, align 4, !tbaa !54
  %266 = sub nsw i32 %264, %265
  %267 = call i32 @llvm.abs.i32(i32 %266, i1 true)
  %268 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 5
  %269 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %268) #5
  %270 = call noundef i32 @_ZNK4juce9Component8getRightEv(ptr noundef nonnull align 8 dereferenceable(197) %269) #5
  %271 = load i32, ptr %25, align 4, !tbaa !54
  %272 = sub nsw i32 %270, %271
  %273 = call i32 @llvm.abs.i32(i32 %272, i1 true)
  %274 = icmp sgt i32 %267, %273
  br i1 %274, label %275, label %278

275:                                              ; preds = %256
  %276 = load i32, ptr %16, align 4, !tbaa !54
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %16, align 4, !tbaa !54
  br label %278

278:                                              ; preds = %275, %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %279

279:                                              ; preds = %278, %246
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %280

280:                                              ; preds = %279, %240
  %281 = load i32, ptr %16, align 4, !tbaa !54
  %282 = load i32, ptr %15, align 4, !tbaa !54
  %283 = icmp ne i32 %281, %282
  br i1 %283, label %284, label %288

284:                                              ; preds = %280
  %285 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 13
  %286 = load i32, ptr %285, align 4, !tbaa !47
  %287 = load i32, ptr %16, align 4, !tbaa !54
  call void @_ZN4juce20TableHeaderComponent10moveColumnEii(ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %286, i32 noundef %287)
  br label %289

288:                                              ; preds = %280
  store i32 7, ptr %14, align 4
  br label %290

289:                                              ; preds = %284
  store i32 0, ptr %14, align 4
  br label %290

290:                                              ; preds = %289, %288
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %291 = load i32, ptr %14, align 4
  switch i32 %291, label %293 [
    i32 0, label %292
  ]

292:                                              ; preds = %290
  br label %194, !llvm.loop !74

293:                                              ; preds = %290, %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %294

294:                                              ; preds = %293
  br label %295

295:                                              ; preds = %294, %163
  br label %299

296:                                              ; preds = %156, %151
  %297 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %27, i32 0, i32 17
  %298 = load i32, ptr %297, align 4, !tbaa !75
  call void @_ZN4juce20TableHeaderComponent7endDragEi(ptr noundef nonnull align 8 dereferenceable(308) %27, i32 noundef %298)
  br label %299

299:                                              ; preds = %296, %295
  br label %300

300:                                              ; preds = %299, %147
  br label %301

301:                                              ; preds = %300, %146
  ret void

302:                                              ; preds = %138
  %303 = load ptr, ptr %11, align 8
  %304 = load i32, ptr %12, align 4
  %305 = insertvalue { ptr, i32 } poison, ptr %303, 0
  %306 = insertvalue { ptr, i32 } %305, i32 %304, 1
  resume { ptr, i32 } %306
}

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !17, i64 280}
!10 = !{!"_ZTSN4juce20TableHeaderComponentE", !11, i64 0, !37, i64 200, !39, i64 216, !42, i64 240, !45, i64 264, !46, i64 272, !46, i64 273, !46, i64 274, !46, i64 275, !46, i64 276, !17, i64 280, !17, i64 284, !17, i64 288, !17, i64 292, !17, i64 296, !17, i64 300, !17, i64 304}
!11 = !{!"_ZTSN4juce9ComponentE", !12, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !15, i64 32, !18, i64 48, !19, i64 56, !20, i64 64, !6, i64 88, !23, i64 96, !6, i64 104, !24, i64 112, !25, i64 120, !26, i64 128, !27, i64 136, !31, i64 160, !35, i64 184, !7, i64 192, !7, i64 196}
!12 = !{!"_ZTSN4juce13MouseListenerE"}
!13 = !{!"_ZTSN4juce6StringE", !14, i64 0}
!14 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!15 = !{!"_ZTSN4juce9RectangleIiEE", !16, i64 0, !17, i64 8, !17, i64 12}
!16 = !{!"_ZTSN4juce5PointIiEE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !21, i64 0, !17, i64 16}
!21 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !22, i64 0, !17, i64 8}
!22 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!23 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !28, i64 0}
!28 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !29, i64 0, !17, i64 16}
!29 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !30, i64 0, !17, i64 8}
!30 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!31 = !{!"_ZTSN4juce13NamedValueSetE", !32, i64 0}
!32 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !33, i64 0, !17, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !34, i64 0, !17, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!35 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !36, i64 0}
!36 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!37 = !{!"_ZTSN4juce12AsyncUpdaterE", !38, i64 8}
!38 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!39 = !{!"_ZTSN4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEEE", !40, i64 0, !17, i64 16}
!40 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEEE", !41, i64 0, !17, i64 8}
!41 = !{!"_ZTSN4juce9HeapBlockIPNS_20TableHeaderComponent10ColumnInfoELb0EEE", !6, i64 0}
!42 = !{!"_ZTSN4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EEE", !43, i64 0, !17, i64 16}
!43 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionEEE", !44, i64 0, !17, i64 8}
!44 = !{!"_ZTSN4juce9HeapBlockIPNS_20TableHeaderComponent8ListenerELb0EEE", !6, i64 0}
!45 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !6, i64 0}
!46 = !{!"bool", !7, i64 0}
!47 = !{!10, !17, i64 284}
!48 = !{!49, !17, i64 16}
!49 = !{!"_ZTSN4juce20TableHeaderComponent10ColumnInfoE", !13, i64 0, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !50, i64 32}
!50 = !{!"double", !7, i64 0}
!51 = !{!10, !17, i64 288}
!52 = !{!49, !17, i64 20}
!53 = !{!49, !17, i64 24}
!54 = !{!17, !17, i64 0}
!55 = !{!10, !46, i64 276}
!56 = !{i8 0, i8 2}
!57 = !{}
!58 = distinct !{!58, !59}
!59 = !{!"llvm.loop.mustprogress"}
!60 = !{!10, !17, i64 304}
!61 = !{!62, !17, i64 12}
!62 = !{!"_ZTSN4juce10MouseEventE", !63, i64 0, !17, i64 8, !17, i64 12, !65, i64 16, !64, i64 20, !6, i64 24, !6, i64 32, !66, i64 40, !66, i64 48, !68, i64 56, !63, i64 64, !7, i64 72, !7, i64 73}
!63 = !{!"_ZTSN4juce5PointIfEE", !64, i64 0, !64, i64 4}
!64 = !{!"float", !7, i64 0}
!65 = !{!"_ZTSN4juce12ModifierKeysE", !17, i64 0}
!66 = !{!"_ZTSN4juce4TimeE", !67, i64 0}
!67 = !{!"long long", !7, i64 0}
!68 = !{!"_ZTSN4juce16MouseInputSourceE", !6, i64 0}
!69 = !{!70, !70, i64 0}
!70 = !{!"vtable pointer", !8, i64 0}
!71 = !{!62, !17, i64 8}
!72 = !{!10, !17, i64 296}
!73 = !{!49, !17, i64 12}
!74 = distinct !{!74, !59}
!75 = !{!10, !17, i64 300}


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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component4getXEv(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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ComponentEEaSEPS1_(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 zeroext i1 @_ZNK4juce12ModifierKeys11isPopupMenuEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_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 @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_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 zeroext i1 @_ZNK4juce20TableHeaderComponent10ColumnInfo9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4juce20TableHeaderComponent18getIndexOfColumnIdEib(ptr noundef nonnull align 8 dereferenceable(308), i32 noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce20TableHeaderComponent9mouseDragERKNS_10MouseEventE(ptr noundef nonnull align 8 dereferenceable(308) %0, ptr noundef nonnull align 8 dereferenceable(74) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::Rectangle", align 4
  %4 = alloca %"class.juce::Rectangle", align 4
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = alloca %"class.juce::Rectangle", align 4
  %8 = getelementptr inbounds i8, ptr %0, i64 280
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = icmp eq i32 %9, 0
  %11 = getelementptr inbounds i8, ptr %0, i64 284
  %12 = load i32, ptr %11, align 4
  %13 = icmp eq i32 %12, 0
  %or.cond = select i1 %10, i1 %13, i1 false
  br i1 %or.cond, label %14, label %30

14:                                               ; preds = %2
  %15 = tail call noundef zeroext i1 @_ZNK4juce10MouseEvent29mouseWasDraggedSinceMouseDownEv(ptr noundef nonnull align 8 dereferenceable(74) %1) #5
  br i1 %15, label %16, label %30

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %1, i64 16
  %18 = tail call noundef zeroext i1 @_ZNK4juce12ModifierKeys11isPopupMenuEv(ptr noundef nonnull align 4 dereferenceable(4) %17) #5
  br i1 %18, label %30, label %19

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 264
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef null)
  %22 = tail call noundef i32 @_ZNK4juce10MouseEvent13getMouseDownXEv(ptr noundef nonnull align 8 dereferenceable(74) %1) #5
  %23 = tail call noundef i32 @_ZNK4juce20TableHeaderComponent18getResizeDraggerAtEi(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %22)
  store i32 %23, ptr %8, align 8, !tbaa !5
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %29, label %24

24:                                               ; preds = %19
  %25 = tail call noundef ptr @_ZNK4juce20TableHeaderComponent12getInfoForIdEi(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %23)
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %27 = load i32, ptr %26, align 8, !tbaa !46
  %28 = getelementptr inbounds i8, ptr %0, i64 288
  store i32 %27, ptr %28, align 8, !tbaa !49
  br label %30

29:                                               ; preds = %19
  tail call void @_ZN4juce20TableHeaderComponent9beginDragERKNS_10MouseEventE(ptr noundef nonnull align 8 dereferenceable(308) %0, ptr noundef nonnull align 8 dereferenceable(74) %1)
  br label %30

30:                                               ; preds = %24, %29, %16, %14, %2
  %31 = load i32, ptr %8, align 8, !tbaa !5
  %.not56 = icmp eq i32 %31, 0
  br i1 %.not56, label %75, label %32

32:                                               ; preds = %30
  %33 = tail call noundef ptr @_ZNK4juce20TableHeaderComponent12getInfoForIdEi(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %31)
  %.not62 = icmp eq ptr %33, null
  br i1 %.not62, label %.critedge, label %34

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %33, i64 20
  %36 = load i32, ptr %35, align 4, !tbaa !50
  %37 = getelementptr inbounds i8, ptr %33, i64 24
  %38 = load i32, ptr %37, align 8, !tbaa !51
  %39 = getelementptr inbounds i8, ptr %0, i64 288
  %40 = load i32, ptr %39, align 8, !tbaa !49
  %41 = tail call noundef i32 @_ZNK4juce10MouseEvent25getDistanceFromDragStartXEv(ptr noundef nonnull align 8 dereferenceable(74) %1) #5
  %42 = add nsw i32 %41, %40
  %43 = tail call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef %36, i32 noundef %38, i32 noundef %42) #5
  %44 = getelementptr inbounds i8, ptr %0, i64 276
  %45 = load i8, ptr %44, align 4, !tbaa !52, !range !53, !noundef !54
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %47, label %73

47:                                               ; preds = %34
  %48 = load i32, ptr %8, align 8, !tbaa !5
  %49 = tail call noundef i32 @_ZNK4juce20TableHeaderComponent18getIndexOfColumnIdEib(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %48, i1 noundef zeroext false)
  %50 = getelementptr inbounds i8, ptr %0, i64 216
  %.04467 = add nsw i32 %49, 1
  %51 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %50) #5
  %52 = icmp slt i32 %.04467, %51
  br i1 %52, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %70, %47
  %.043.lcssa = phi i32 [ 0, %47 ], [ %.1, %70 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %53 = load i32, ptr %8, align 8, !tbaa !5
  %54 = tail call noundef i32 @_ZNK4juce20TableHeaderComponent18getIndexOfColumnIdEib(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %53, i1 noundef zeroext true)
  call void @_ZNK4juce20TableHeaderComponent17getColumnPositionEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %3, ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %54)
  %55 = load i32, ptr %35, align 4, !tbaa !50
  %56 = getelementptr inbounds i8, ptr %0, i64 304
  %57 = load i32, ptr %56, align 8, !tbaa !55
  %58 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %3) #5
  %59 = add i32 %.043.lcssa, %58
  %60 = sub i32 %57, %59
  %61 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %43, i32 noundef %60)
  %62 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %55, i32 noundef %61)
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  br label %73

.lr.ph:                                           ; preds = %47, %70
  %.04469 = phi i32 [ %.044, %70 ], [ %.04467, %47 ]
  %.04368 = phi i32 [ %.1, %70 ], [ 0, %47 ]
  %63 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %50, i32 noundef %.04469) #5
  %64 = tail call noundef zeroext i1 @_ZNK4juce20TableHeaderComponent10ColumnInfo9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(40) %63)
  br i1 %64, label %65, label %70

65:                                               ; preds = %.lr.ph
  %66 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %50, i32 noundef %.04469) #5
  %67 = getelementptr inbounds i8, ptr %66, i64 20
  %68 = load i32, ptr %67, align 4, !tbaa !50
  %69 = add nsw i32 %68, %.04368
  br label %70

70:                                               ; preds = %.lr.ph, %65
  %.1 = phi i32 [ %69, %65 ], [ %.04368, %.lr.ph ]
  %.044 = add nsw i32 %.04469, 1
  %71 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %50) #5
  %72 = icmp slt i32 %.044, %71
  br i1 %72, label %.lr.ph, label %._crit_edge, !llvm.loop !56

73:                                               ; preds = %._crit_edge, %34
  %.0 = phi i32 [ %62, %._crit_edge ], [ %43, %34 ]
  %74 = load i32, ptr %8, align 8, !tbaa !5
  call void @_ZN4juce20TableHeaderComponent14setColumnWidthEii(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %74, i32 noundef %.0)
  br label %.critedge

75:                                               ; preds = %30
  %76 = load i32, ptr %11, align 4, !tbaa !58
  %.not57 = icmp eq i32 %76, 0
  br i1 %.not57, label %.critedge, label %77

77:                                               ; preds = %75
  %78 = getelementptr inbounds i8, ptr %1, i64 12
  %79 = load i32, ptr %78, align 4, !tbaa !59
  %80 = icmp sgt i32 %79, -51
  br i1 %80, label %81, label %159

81:                                               ; preds = %77
  %82 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #5
  %83 = add nsw i32 %82, 50
  %84 = icmp slt i32 %79, %83
  br i1 %84, label %85, label %159

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %0, i64 264
  %87 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %86) #5
  %.not58 = icmp eq ptr %87, null
  br i1 %.not58, label %.critedge, label %88

88:                                               ; preds = %85
  %89 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %86) #5
  %90 = load ptr, ptr %89, align 8, !tbaa !67
  %91 = getelementptr inbounds i8, ptr %90, i64 88
  %92 = load ptr, ptr %91, align 8
  tail call void %92(ptr noundef nonnull align 8 dereferenceable(197) %89, i1 noundef zeroext true)
  %93 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %86) #5
  %94 = tail call noundef i32 @_ZNK4juce20TableHeaderComponent13getTotalWidthEv(ptr noundef nonnull align 8 dereferenceable(308) %0)
  %95 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %86) #5
  %96 = tail call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %95) #5
  %97 = sub nsw i32 %94, %96
  %98 = tail call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %97)
  %99 = getelementptr inbounds i8, ptr %1, i64 8
  %100 = load i32, ptr %99, align 8, !tbaa !69
  %101 = getelementptr inbounds i8, ptr %0, i64 296
  %102 = load i32, ptr %101, align 8, !tbaa !70
  %103 = sub nsw i32 %100, %102
  %104 = tail call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef 0, i32 noundef %98, i32 noundef %103) #5
  %105 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %86) #5
  %106 = tail call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %105) #5
  %107 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #5
  tail call void @_ZN4juce9Component9setBoundsEiiii(ptr noundef nonnull align 8 dereferenceable(197) %93, i32 noundef %104, i32 noundef 0, i32 noundef %106, i32 noundef %107)
  %108 = getelementptr inbounds i8, ptr %0, i64 216
  %109 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %108) #5
  %110 = icmp sgt i32 %109, 0
  br i1 %110, label %.lr.ph71, label %.critedge

.lr.ph71:                                         ; preds = %88, %156
  %.in = phi i32 [ %111, %156 ], [ %109, %88 ]
  %111 = add nsw i32 %.in, -1
  %112 = load i32, ptr %11, align 4, !tbaa !58
  %113 = call noundef i32 @_ZNK4juce20TableHeaderComponent18getIndexOfColumnIdEib(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %112, i1 noundef zeroext true)
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %115, label %133

115:                                              ; preds = %.lr.ph71
  %116 = add nsw i32 %113, -1
  %117 = call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %108, i32 noundef %116) #5
  %118 = getelementptr inbounds i8, ptr %117, i64 12
  %119 = load i32, ptr %118, align 4, !tbaa !71
  %120 = and i32 %119, 4
  %.not59 = icmp eq i32 %120, 0
  br i1 %.not59, label %133, label %121

121:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZNK4juce20TableHeaderComponent17getColumnPositionEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %4, ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %116)
  %122 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #5
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @_ZNK4juce20TableHeaderComponent17getColumnPositionEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %5, ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %113)
  %123 = call noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %5) #5
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  %124 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %86) #5
  %125 = call noundef i32 @_ZNK4juce9Component4getXEv(ptr noundef nonnull align 8 dereferenceable(197) %124) #5
  %126 = sub nsw i32 %125, %122
  %127 = call i32 @llvm.abs.i32(i32 %126, i1 true)
  %128 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %86) #5
  %129 = call noundef i32 @_ZNK4juce9Component8getRightEv(ptr noundef nonnull align 8 dereferenceable(197) %128) #5
  %130 = sub nsw i32 %129, %123
  %131 = call i32 @llvm.abs.i32(i32 %130, i1 true)
  %132 = icmp ult i32 %127, %131
  %spec.select = select i1 %132, i32 %116, i32 %113
  br label %133

133:                                              ; preds = %115, %121, %.lr.ph71
  %.2 = phi i32 [ %113, %.lr.ph71 ], [ %spec.select, %121 ], [ %113, %115 ]
  %134 = call noundef i32 @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %108) #5
  %135 = add nsw i32 %134, -1
  %136 = icmp slt i32 %.2, %135
  br i1 %136, label %137, label %155

137:                                              ; preds = %133
  %138 = add nsw i32 %.2, 1
  %139 = call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %108, i32 noundef %138) #5
  %140 = getelementptr inbounds i8, ptr %139, i64 12
  %141 = load i32, ptr %140, align 4, !tbaa !71
  %142 = and i32 %141, 4
  %.not60 = icmp eq i32 %142, 0
  br i1 %.not60, label %155, label %143

143:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZNK4juce20TableHeaderComponent17getColumnPositionEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %6, ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %.2)
  %144 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #5
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZNK4juce20TableHeaderComponent17getColumnPositionEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %7, ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %138)
  %145 = call noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %7) #5
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  %146 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %86) #5
  %147 = call noundef i32 @_ZNK4juce9Component4getXEv(ptr noundef nonnull align 8 dereferenceable(197) %146) #5
  %148 = sub nsw i32 %147, %144
  %149 = call i32 @llvm.abs.i32(i32 %148, i1 true)
  %150 = call noundef ptr @_ZNK4juce13ScopedPointerINS_9ComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %86) #5
  %151 = call noundef i32 @_ZNK4juce9Component8getRightEv(ptr noundef nonnull align 8 dereferenceable(197) %150) #5
  %152 = sub nsw i32 %151, %145
  %153 = call i32 @llvm.abs.i32(i32 %152, i1 true)
  %154 = icmp ugt i32 %149, %153
  %spec.select65 = select i1 %154, i32 %138, i32 %.2
  br label %155

155:                                              ; preds = %137, %143, %133
  %.5 = phi i32 [ %.2, %133 ], [ %spec.select65, %143 ], [ %.2, %137 ]
  %.not61.not = icmp eq i32 %.5, %113
  br i1 %.not61.not, label %.critedge, label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %11, align 4, !tbaa !58
  call void @_ZN4juce20TableHeaderComponent10moveColumnEii(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %157, i32 noundef %.5)
  %158 = icmp ugt i32 %.in, 1
  br i1 %158, label %.lr.ph71, label %.critedge, !llvm.loop !72

159:                                              ; preds = %81, %77
  %160 = getelementptr inbounds i8, ptr %0, i64 300
  %161 = load i32, ptr %160, align 4, !tbaa !73
  tail call void @_ZN4juce20TableHeaderComponent7endDragEi(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %161)
  br label %.critedge

.critedge:                                        ; preds = %156, %155, %88, %32, %73, %75, %85, %159
  ret void
}

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !16, i64 280}
!6 = !{!"_ZTSN4juce20TableHeaderComponentE", !7, i64 0, !36, i64 200, !38, i64 216, !41, i64 240, !44, i64 264, !45, i64 272, !45, i64 273, !45, i64 274, !45, i64 275, !45, i64 276, !16, i64 280, !16, i64 284, !16, i64 288, !16, i64 292, !16, i64 296, !16, i64 300, !16, i64 304}
!7 = !{!"_ZTSN4juce9ComponentE", !8, i64 0, !9, i64 8, !9, i64 16, !11, i64 24, !14, i64 32, !17, i64 48, !18, i64 56, !19, i64 64, !11, i64 88, !22, i64 96, !11, i64 104, !23, i64 112, !24, i64 120, !25, i64 128, !26, i64 136, !30, i64 160, !34, i64 184, !12, i64 192, !12, i64 196}
!8 = !{!"_ZTSN4juce13MouseListenerE"}
!9 = !{!"_ZTSN4juce6StringE", !10, i64 0}
!10 = !{!"_ZTSN4juce16CharPointer_UTF8E", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN4juce9RectangleIiEE", !15, i64 0, !16, i64 8, !16, i64 12}
!15 = !{!"_ZTSN4juce5PointIiEE", !16, i64 0, !16, i64 4}
!16 = !{!"int", !12, i64 0}
!17 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !11, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !11, i64 0}
!19 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !20, i64 0, !16, i64 16}
!20 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !21, i64 0, !16, i64 8}
!21 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !11, i64 0}
!22 = !{!"_ZTSN4juce11MouseCursorE", !11, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !11, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !11, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !11, i64 0}
!26 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !27, i64 0}
!27 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !28, i64 0, !16, i64 16}
!28 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !29, i64 0, !16, i64 8}
!29 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !11, i64 0}
!30 = !{!"_ZTSN4juce13NamedValueSetE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !16, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !33, i64 0, !16, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !11, i64 0}
!34 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !35, i64 0}
!35 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !11, i64 0}
!36 = !{!"_ZTSN4juce12AsyncUpdaterE", !37, i64 8}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !11, i64 0}
!38 = !{!"_ZTSN4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEEE", !39, i64 0, !16, i64 16}
!39 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEEE", !40, i64 0, !16, i64 8}
!40 = !{!"_ZTSN4juce9HeapBlockIPNS_20TableHeaderComponent10ColumnInfoELb0EEE", !11, i64 0}
!41 = !{!"_ZTSN4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EEE", !42, i64 0, !16, i64 16}
!42 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionEEE", !43, i64 0, !16, i64 8}
!43 = !{!"_ZTSN4juce9HeapBlockIPNS_20TableHeaderComponent8ListenerELb0EEE", !11, i64 0}
!44 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !11, i64 0}
!45 = !{!"bool", !12, i64 0}
!46 = !{!47, !16, i64 16}
!47 = !{!"_ZTSN4juce20TableHeaderComponent10ColumnInfoE", !9, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !48, i64 32}
!48 = !{!"double", !12, i64 0}
!49 = !{!6, !16, i64 288}
!50 = !{!47, !16, i64 20}
!51 = !{!47, !16, i64 24}
!52 = !{!6, !45, i64 276}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!6, !16, i64 304}
!56 = distinct !{!56, !57}
!57 = !{!"llvm.loop.mustprogress"}
!58 = !{!6, !16, i64 284}
!59 = !{!60, !16, i64 12}
!60 = !{!"_ZTSN4juce10MouseEventE", !61, i64 0, !16, i64 8, !16, i64 12, !63, i64 16, !62, i64 20, !11, i64 24, !11, i64 32, !64, i64 40, !64, i64 48, !66, i64 56, !61, i64 64, !12, i64 72, !12, i64 73}
!61 = !{!"_ZTSN4juce5PointIfEE", !62, i64 0, !62, i64 4}
!62 = !{!"float", !12, i64 0}
!63 = !{!"_ZTSN4juce12ModifierKeysE", !16, i64 0}
!64 = !{!"_ZTSN4juce4TimeE", !65, i64 0}
!65 = !{!"long long", !12, i64 0}
!66 = !{!"_ZTSN4juce16MouseInputSourceE", !11, i64 0}
!67 = !{!68, !68, i64 0}
!68 = !{!"vtable pointer", !13, i64 0}
!69 = !{!60, !16, i64 8}
!70 = !{!6, !16, i64 296}
!71 = !{!47, !16, i64 12}
!72 = distinct !{!72, !57}
!73 = !{!6, !16, i64 300}


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