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

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef, i32 noundef) #1

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

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

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

13:                                               ; preds = %1
  %14 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 8
  %15 = load i8, ptr %14, align 2, !tbaa !49, !range !47, !noundef !48
  %16 = trunc i8 %15 to i1
  br label %17

17:                                               ; preds = %13, %1
  %18 = phi i1 [ true, %1 ], [ %16, %13 ]
  %19 = zext i1 %18 to i8
  store i8 %19, ptr %3, align 1, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #4
  %20 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 7
  %21 = load i8, ptr %20, align 1, !tbaa !51, !range !47, !noundef !48
  %22 = trunc i8 %21 to i1
  br i1 %22, label %26, label %23

23:                                               ; preds = %17
  %24 = load i8, ptr %3, align 1, !tbaa !50, !range !47, !noundef !48
  %25 = trunc i8 %24 to i1
  br label %26

26:                                               ; preds = %23, %17
  %27 = phi i1 [ true, %17 ], [ %25, %23 ]
  %28 = zext i1 %27 to i8
  store i8 %28, ptr %4, align 1, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  %29 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 8
  %30 = load i8, ptr %29, align 2, !tbaa !49, !range !47, !noundef !48
  %31 = trunc i8 %30 to i1
  %32 = zext i1 %31 to i8
  store i8 %32, ptr %5, align 1, !tbaa !50
  %33 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 6
  store i8 0, ptr %33, align 8, !tbaa !9
  %34 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 7
  store i8 0, ptr %34, align 1, !tbaa !51
  %35 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 8
  store i8 0, ptr %35, align 2, !tbaa !49
  %36 = load i8, ptr %5, align 1, !tbaa !50, !range !47, !noundef !48
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %59

38:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %39 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 4
  %40 = call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %39) #4
  store i32 %40, ptr %6, align 4, !tbaa !52
  br label %41

41:                                               ; preds = %46, %38
  %42 = load i32, ptr %6, align 4, !tbaa !52
  %43 = add nsw i32 %42, -1
  store i32 %43, ptr %6, align 4, !tbaa !52
  %44 = icmp sge i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %58

46:                                               ; preds = %41
  %47 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 4
  %48 = load i32, ptr %6, align 4, !tbaa !52
  %49 = call noundef ptr @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %47, i32 noundef %48)
  %50 = load ptr, ptr %49, align 8, !tbaa !53
  %51 = getelementptr inbounds ptr, ptr %50, i64 4
  %52 = load ptr, ptr %51, align 8
  call void %52(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef %9)
  %53 = load i32, ptr %6, align 4, !tbaa !52
  %54 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 4
  %55 = call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %54) #4
  %56 = sub nsw i32 %55, 1
  %57 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %53, i32 noundef %56)
  store i32 %57, ptr %6, align 4, !tbaa !52
  br label %41, !llvm.loop !55

58:                                               ; preds = %45
  br label %59

59:                                               ; preds = %58, %26
  %60 = load i8, ptr %3, align 1, !tbaa !50, !range !47, !noundef !48
  %61 = trunc i8 %60 to i1
  br i1 %61, label %62, label %83

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %63 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 4
  %64 = call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %63) #4
  store i32 %64, ptr %7, align 4, !tbaa !52
  br label %65

65:                                               ; preds = %70, %62
  %66 = load i32, ptr %7, align 4, !tbaa !52
  %67 = add nsw i32 %66, -1
  store i32 %67, ptr %7, align 4, !tbaa !52
  %68 = icmp sge i32 %67, 0
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %82

70:                                               ; preds = %65
  %71 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 4
  %72 = load i32, ptr %7, align 4, !tbaa !52
  %73 = call noundef ptr @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %71, i32 noundef %72)
  %74 = load ptr, ptr %73, align 8, !tbaa !53
  %75 = getelementptr inbounds ptr, ptr %74, i64 2
  %76 = load ptr, ptr %75, align 8
  call void %76(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef %9)
  %77 = load i32, ptr %7, align 4, !tbaa !52
  %78 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 4
  %79 = call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %78) #4
  %80 = sub nsw i32 %79, 1
  %81 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %77, i32 noundef %80)
  store i32 %81, ptr %7, align 4, !tbaa !52
  br label %65, !llvm.loop !57

82:                                               ; preds = %69
  br label %83

83:                                               ; preds = %82, %59
  %84 = load i8, ptr %4, align 1, !tbaa !50, !range !47, !noundef !48
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %107

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %87 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 4
  %88 = call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %87) #4
  store i32 %88, ptr %8, align 4, !tbaa !52
  br label %89

89:                                               ; preds = %94, %86
  %90 = load i32, ptr %8, align 4, !tbaa !52
  %91 = add nsw i32 %90, -1
  store i32 %91, ptr %8, align 4, !tbaa !52
  %92 = icmp sge i32 %91, 0
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %106

94:                                               ; preds = %89
  %95 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 4
  %96 = load i32, ptr %8, align 4, !tbaa !52
  %97 = call noundef ptr @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %95, i32 noundef %96)
  %98 = load ptr, ptr %97, align 8, !tbaa !53
  %99 = getelementptr inbounds ptr, ptr %98, i64 3
  %100 = load ptr, ptr %99, align 8
  call void %100(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef %9)
  %101 = load i32, ptr %8, align 4, !tbaa !52
  %102 = getelementptr inbounds %"class.juce::TableHeaderComponent", ptr %9, i32 0, i32 4
  %103 = call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %102) #4
  %104 = sub nsw i32 %103, 1
  %105 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %101, i32 noundef %104)
  store i32 %105, ptr %8, align 4, !tbaa !52
  br label %89, !llvm.loop !58

106:                                              ; preds = %93
  br label %107

107:                                              ; preds = %106, %83
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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, !46, i64 272}
!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 = !{i8 0, i8 2}
!48 = !{}
!49 = !{!10, !46, i64 274}
!50 = !{!46, !46, i64 0}
!51 = !{!10, !46, i64 273}
!52 = !{!17, !17, i64 0}
!53 = !{!54, !54, i64 0}
!54 = !{!"vtable pointer", !8, i64 0}
!55 = distinct !{!55, !56}
!56 = !{!"llvm.loop.mustprogress"}
!57 = distinct !{!57, !56}
!58 = distinct !{!58, !56}


; 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 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 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce20TableHeaderComponent17handleAsyncUpdateEv(ptr noundef nonnull align 8 dereferenceable(308) %0) unnamed_addr #2 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 272
  %3 = load i8, ptr %2, align 8, !tbaa !5, !range !46, !noundef !47
  %4 = getelementptr inbounds i8, ptr %0, i64 274
  %5 = load i8, ptr %4, align 2, !range !46
  %6 = trunc nuw i8 %5 to i1
  %7 = or i8 %5, %3
  %8 = trunc nuw i8 %7 to i1
  %9 = getelementptr inbounds i8, ptr %0, i64 273
  %10 = load i8, ptr %9, align 1, !tbaa !48, !range !46, !noundef !47
  %11 = trunc nuw i8 %10 to i1
  %12 = select i1 %11, i1 true, i1 %8
  store i8 0, ptr %2, align 8, !tbaa !5
  store i8 0, ptr %9, align 1, !tbaa !48
  store i8 0, ptr %4, align 2, !tbaa !49
  br i1 %6, label %13, label %.loopexit19

13:                                               ; preds = %1
  %14 = getelementptr inbounds i8, ptr %0, i64 240
  %15 = tail call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %14) #3
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph, label %.loopexit19

.lr.ph:                                           ; preds = %13, %.lr.ph
  %.01420 = phi i32 [ %24, %.lr.ph ], [ %15, %13 ]
  %17 = add nsw i32 %.01420, -1
  %18 = tail call noundef ptr @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %14, i32 noundef %17)
  %19 = load ptr, ptr %18, align 8, !tbaa !50
  %20 = getelementptr inbounds i8, ptr %19, i64 32
  %21 = load ptr, ptr %20, align 8
  tail call void %21(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull %0)
  %22 = tail call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %14) #3
  %23 = add nsw i32 %22, -1
  %24 = tail call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %17, i32 noundef %23)
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %.loopexit19, !llvm.loop !52

.loopexit19:                                      ; preds = %.lr.ph, %13, %1
  br i1 %8, label %26, label %.loopexit18

26:                                               ; preds = %.loopexit19
  %27 = getelementptr inbounds i8, ptr %0, i64 240
  %28 = tail call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %27) #3
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph22, label %.loopexit18

.lr.ph22:                                         ; preds = %26, %.lr.ph22
  %.01321 = phi i32 [ %37, %.lr.ph22 ], [ %28, %26 ]
  %30 = add nsw i32 %.01321, -1
  %31 = tail call noundef ptr @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %27, i32 noundef %30)
  %32 = load ptr, ptr %31, align 8, !tbaa !50
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load ptr, ptr %33, align 8
  tail call void %34(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull %0)
  %35 = tail call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %27) #3
  %36 = add nsw i32 %35, -1
  %37 = tail call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %30, i32 noundef %36)
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %.lr.ph22, label %.loopexit18, !llvm.loop !54

.loopexit18:                                      ; preds = %.lr.ph22, %26, %.loopexit19
  br i1 %12, label %39, label %.loopexit

39:                                               ; preds = %.loopexit18
  %40 = getelementptr inbounds i8, ptr %0, i64 240
  %41 = tail call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %40) #3
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph24, label %.loopexit

.lr.ph24:                                         ; preds = %39, %.lr.ph24
  %.023 = phi i32 [ %50, %.lr.ph24 ], [ %41, %39 ]
  %43 = add nsw i32 %.023, -1
  %44 = tail call noundef ptr @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %40, i32 noundef %43)
  %45 = load ptr, ptr %44, align 8, !tbaa !50
  %46 = getelementptr inbounds i8, ptr %45, i64 24
  %47 = load ptr, ptr %46, align 8
  tail call void %47(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull %0)
  %48 = tail call noundef i32 @_ZNK4juce5ArrayIPNS_20TableHeaderComponent8ListenerENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %40) #3
  %49 = add nsw i32 %48, -1
  %50 = tail call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %43, i32 noundef %49)
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph24, label %.loopexit, !llvm.loop !55

.loopexit:                                        ; preds = %.lr.ph24, %39, %.loopexit18
  ret void
}

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 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !45, i64 272}
!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 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!6, !45, i64 273}
!49 = !{!6, !45, i64 274}
!50 = !{!51, !51, i64 0}
!51 = !{!"vtable pointer", !13, i64 0}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}
!54 = distinct !{!54, !53}
!55 = distinct !{!55, !53}


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