; 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::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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.0" = type { ptr }
%"class.juce::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 }
%"struct.juce::TableHeaderComponent::ColumnInfo" = type { %"class.juce::String", i32, i32, i32, i32, i32, double }
%"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 }

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce20TableHeaderComponent7mouseUpERKNS_10MouseEventE(ptr noundef nonnull align 8 dereferenceable(308) %0, ptr noundef nonnull align 8 dereferenceable(74) %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %6, align 8, !tbaa !9
  %9 = getelementptr inbounds ptr, ptr %8, i64 6
  %10 = load ptr, ptr %9, align 8
  call void %10(ptr noundef nonnull align 8 dereferenceable(308) %6, ptr noundef nonnull align 8 dereferenceable(74) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %11 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %6, i32 0, i32 3
  %12 = call noundef i32 @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %11) #4
  store i32 %12, ptr %5, align 4, !tbaa !11
  br label %13

13:                                               ; preds = %34, %2
  %14 = load i32, ptr %5, align 4, !tbaa !11
  %15 = add nsw i32 %14, -1
  store i32 %15, ptr %5, align 4, !tbaa !11
  %16 = icmp sge i32 %15, 0
  br i1 %16, label %18, label %17

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

18:                                               ; preds = %13
  %19 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %6, i32 0, i32 3
  %20 = load i32, ptr %5, align 4, !tbaa !11
  %21 = call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %19, i32 noundef %20) #4
  %22 = call noundef zeroext i1 @_ZNK4juce20TableHeaderComponent10ColumnInfo9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(40) %21)
  br i1 %22, label %23, label %34

23:                                               ; preds = %18
  %24 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %6, i32 0, i32 3
  %25 = load i32, ptr %5, align 4, !tbaa !11
  %26 = call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %24, i32 noundef %25) #4
  %27 = getelementptr inbounds %"struct.juce::TableHeaderComponent::ColumnInfo", ptr %26, i32 0, i32 3
  %28 = load i32, ptr %27, align 8, !tbaa !13
  %29 = sitofp i32 %28 to double
  %30 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %6, i32 0, i32 3
  %31 = load i32, ptr %5, align 4, !tbaa !11
  %32 = call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %30, i32 noundef %31) #4
  %33 = getelementptr inbounds %"struct.juce::TableHeaderComponent::ColumnInfo", ptr %32, i32 0, i32 6
  store double %29, ptr %33, align 8, !tbaa !18
  br label %34

34:                                               ; preds = %23, %18
  br label %13, !llvm.loop !19

35:                                               ; preds = %17
  %36 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %6, i32 0, i32 12
  store i32 0, ptr %36, align 8, !tbaa !21
  call void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %6)
  %37 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %6, i32 0, i32 13
  %38 = load i32, ptr %37, align 4, !tbaa !56
  %39 = call noundef i32 @_ZNK4juce20TableHeaderComponent18getIndexOfColumnIdEib(ptr noundef nonnull align 8 dereferenceable(308) %6, i32 noundef %38, i1 noundef zeroext true)
  call void @_ZN4juce20TableHeaderComponent7endDragEi(ptr noundef nonnull align 8 dereferenceable(308) %6, i32 noundef %39)
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4juce20TableHeaderComponent22updateColumnUnderMouseERKNS_10MouseEventE(ptr noundef nonnull align 8 dereferenceable(308) %6, ptr noundef nonnull align 8 dereferenceable(74) %40)
  %41 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %6, i32 0, i32 15
  %42 = load i32, ptr %41, align 4, !tbaa !57
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %59

44:                                               ; preds = %35
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = call noundef zeroext i1 @_ZNK4juce10MouseEvent29mouseWasDraggedSinceMouseDownEv(ptr noundef nonnull align 8 dereferenceable(74) %45) #4
  br i1 %46, label %59, label %47

47:                                               ; preds = %44
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.juce::MouseEvent", ptr %48, i32 0, i32 3
  %50 = call noundef zeroext i1 @_ZNK4juce12ModifierKeys11isPopupMenuEv(ptr noundef nonnull align 4 dereferenceable(4) %49) #4
  br i1 %50, label %59, label %51

51:                                               ; preds = %47
  %52 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %6, i32 0, i32 15
  %53 = load i32, ptr %52, align 4, !tbaa !57
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.juce::MouseEvent", ptr %54, i32 0, i32 3
  %56 = load ptr, ptr %6, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %56, i64 45
  %58 = load ptr, ptr %57, align 8
  call void %58(ptr noundef nonnull align 8 dereferenceable(308) %6, i32 noundef %53, ptr noundef nonnull align 4 dereferenceable(4) %55)
  br label %59

59:                                               ; preds = %51, %47, %44, %35
  %60 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %6, i32 0, i32 5
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef null)
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 16}
!14 = !{!"_ZTSN4juce20TableHeaderComponent10ColumnInfoE", !15, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !17, i64 32}
!15 = !{!"_ZTSN4juce6StringE", !16, i64 0}
!16 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!14, !17, i64 32}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !12, i64 280}
!22 = !{!"_ZTSN4juce20TableHeaderComponentE", !23, i64 0, !46, i64 200, !48, i64 216, !51, i64 240, !54, i64 264, !55, i64 272, !55, i64 273, !55, i64 274, !55, i64 275, !55, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !12, i64 296, !12, i64 300, !12, i64 304}
!23 = !{!"_ZTSN4juce9ComponentE", !24, i64 0, !15, i64 8, !15, i64 16, !6, i64 24, !25, i64 32, !27, i64 48, !28, i64 56, !29, i64 64, !6, i64 88, !32, i64 96, !6, i64 104, !33, i64 112, !34, i64 120, !35, i64 128, !36, i64 136, !40, i64 160, !44, i64 184, !7, i64 192, !7, i64 196}
!24 = !{!"_ZTSN4juce13MouseListenerE"}
!25 = !{!"_ZTSN4juce9RectangleIiEE", !26, i64 0, !12, i64 8, !12, i64 12}
!26 = !{!"_ZTSN4juce5PointIiEE", !12, i64 0, !12, i64 4}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !12, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !31, i64 0, !12, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!32 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!33 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!34 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!35 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!36 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !37, i64 0}
!37 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !38, i64 0, !12, i64 16}
!38 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !39, i64 0, !12, i64 8}
!39 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!40 = !{!"_ZTSN4juce13NamedValueSetE", !41, i64 0}
!41 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !42, i64 0, !12, i64 16}
!42 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !43, i64 0, !12, i64 8}
!43 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!44 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !45, i64 0}
!45 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!46 = !{!"_ZTSN4juce12AsyncUpdaterE", !47, i64 8}
!47 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!48 = !{!"_ZTSN4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEEE", !49, i64 0, !12, i64 16}
!49 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEEE", !50, i64 0, !12, i64 8}
!50 = !{!"_ZTSN4juce9HeapBlockIPNS_20TableHeaderComponent10ColumnInfoELb0EEE", !6, i64 0}
!51 = !{!"_ZTSN4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EEE", !52, i64 0, !12, i64 16}
!52 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionEEE", !53, i64 0, !12, i64 8}
!53 = !{!"_ZTSN4juce9HeapBlockIPNS_20TableHeaderComponent8ListenerELb0EEE", !6, i64 0}
!54 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !6, i64 0}
!55 = !{!"bool", !7, i64 0}
!56 = !{!22, !12, i64 284}
!57 = !{!22, !12, i64 292}


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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce20TableHeaderComponent7mouseUpERKNS_10MouseEventE(ptr noundef nonnull align 8 dereferenceable(308) %0, ptr noundef nonnull align 8 dereferenceable(74) %1) unnamed_addr #0 align 2 {
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 48
  %5 = load ptr, ptr %4, align 8
  tail call void %5(ptr noundef nonnull align 8 dereferenceable(308) %0, ptr noundef nonnull align 8 dereferenceable(74) %1)
  %6 = getelementptr inbounds i8, ptr %0, i64 216
  %7 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %6) #3
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %25, %2
  %9 = getelementptr inbounds i8, ptr %0, i64 280
  store i32 0, ptr %9, align 8, !tbaa !8
  tail call void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
  %10 = getelementptr inbounds i8, ptr %0, i64 284
  %11 = load i32, ptr %10, align 4, !tbaa !48
  %12 = tail call noundef i32 @_ZNK4juce20TableHeaderComponent18getIndexOfColumnIdEib(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %11, i1 noundef zeroext true)
  tail call void @_ZN4juce20TableHeaderComponent7endDragEi(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %12)
  tail call void @_ZN4juce20TableHeaderComponent22updateColumnUnderMouseERKNS_10MouseEventE(ptr noundef nonnull align 8 dereferenceable(308) %0, ptr noundef nonnull align 8 dereferenceable(74) %1)
  %13 = getelementptr inbounds i8, ptr %0, i64 292
  %14 = load i32, ptr %13, align 4, !tbaa !49
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %37, label %27

.lr.ph:                                           ; preds = %2, %25
  %.in = phi i32 [ %15, %25 ], [ %7, %2 ]
  %15 = add nsw i32 %.in, -1
  %16 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %6, i32 noundef %15) #3
  %17 = tail call noundef zeroext i1 @_ZNK4juce20TableHeaderComponent10ColumnInfo9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(40) %16)
  br i1 %17, label %18, label %25

18:                                               ; preds = %.lr.ph
  %19 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %6, i32 noundef %15) #3
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %21 = load i32, ptr %20, align 8, !tbaa !50
  %22 = sitofp i32 %21 to double
  %23 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_20TableHeaderComponent10ColumnInfoENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %6, i32 noundef %15) #3
  %24 = getelementptr inbounds i8, ptr %23, i64 32
  store double %22, ptr %24, align 8, !tbaa !53
  br label %25

25:                                               ; preds = %18, %.lr.ph
  %26 = icmp ugt i32 %.in, 1
  br i1 %26, label %.lr.ph, label %._crit_edge, !llvm.loop !54

27:                                               ; preds = %._crit_edge
  %28 = tail call noundef zeroext i1 @_ZNK4juce10MouseEvent29mouseWasDraggedSinceMouseDownEv(ptr noundef nonnull align 8 dereferenceable(74) %1) #3
  br i1 %28, label %37, label %29

29:                                               ; preds = %27
  %30 = getelementptr inbounds i8, ptr %1, i64 16
  %31 = tail call noundef zeroext i1 @_ZNK4juce12ModifierKeys11isPopupMenuEv(ptr noundef nonnull align 4 dereferenceable(4) %30) #3
  br i1 %31, label %37, label %32

32:                                               ; preds = %29
  %33 = load i32, ptr %13, align 4, !tbaa !49
  %34 = load ptr, ptr %0, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 360
  %36 = load ptr, ptr %35, align 8
  tail call void %36(ptr noundef nonnull align 8 dereferenceable(308) %0, i32 noundef %33, ptr noundef nonnull align 4 dereferenceable(4) %30)
  br label %37

37:                                               ; preds = %32, %29, %27, %._crit_edge
  %38 = getelementptr inbounds i8, ptr %0, i64 264
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_9ComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef null)
  ret void
}

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


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