; 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::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::DocumentWindow" = type { %"class.juce::ResizableWindow", i32, i32, i32, i8, i8, [3 x %"class.juce::ScopedPointer.282"], %"class.juce::Image", %"class.juce::ScopedPointer.159", ptr, %"class.juce::ScopedPointer.360" }
%"class.juce::ResizableWindow" = type { %"class.juce::TopLevelWindow", %"class.juce::ScopedPointer.294", %"class.juce::ScopedPointer.295", %"class.juce::Component::SafePointer", i8, i8, i8, i8, i8, %"class.juce::ComponentDragger", %"class.juce::Rectangle", %"class.juce::ComponentBoundsConstrainer", ptr }
%"class.juce::TopLevelWindow" = type { %"class.juce::Component.base", i8, i8, i8, %"class.juce::ScopedPointer.293" }
%"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::ScopedPointer.293" = type { ptr }
%"class.juce::ScopedPointer.294" = type { ptr }
%"class.juce::ScopedPointer.295" = type { ptr }
%"class.juce::Component::SafePointer" = type { %"class.juce::WeakReference" }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ComponentDragger" = type { ptr, %"class.juce::Point" }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::ComponentBoundsConstrainer" = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, double }
%"class.juce::ScopedPointer.282" = type { ptr }
%"class.juce::Image" = type { %"class.juce::ReferenceCountedObjectPtr.48" }
%"class.juce::ReferenceCountedObjectPtr.48" = type { ptr }
%"class.juce::ScopedPointer.159" = type { ptr }
%"class.juce::ScopedPointer.360" = type { ptr }

@_ZTVN4juce14DocumentWindowE = external dso_local unnamed_addr constant { [54 x ptr] }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN4juce5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_9ComponentEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_6ButtonEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_6ButtonEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce15ResizableWindow15setResizeLimitsEiiii(ptr noundef nonnull align 8 dereferenceable(328), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce15ResizableWindowD2Ev(ptr noundef nonnull align 8 dereferenceable(328)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_9ComponentEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14DocumentWindowC2ERKNS_6StringENS_6ColourEib(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %2, i32 noundef %3, i1 noundef zeroext %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca %"class.juce::Colour", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  %14 = zext i1 %4 to i8
  store i8 %14, ptr %10, align 1, !tbaa !11
  %15 = load ptr, ptr %6, align 8
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(4) %2) #4
  %17 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %18 = trunc i8 %17 to i1
  invoke void @_ZN4juce15ResizableWindowC2ERKNS_6StringENS_6ColourEb(ptr noundef nonnull align 8 dereferenceable(328) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %11, i1 noundef zeroext %18)
          to label %19 unwind label %39

19:                                               ; preds = %5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #4
  store ptr getelementptr inbounds inrange(-16, 416) ({ [54 x ptr] }, ptr @_ZTVN4juce14DocumentWindowE, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !15
  %20 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %15, i32 0, i32 1
  store i32 26, ptr %20, align 8, !tbaa !17
  %21 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %15, i32 0, i32 2
  store i32 24, ptr %21, align 4, !tbaa !58
  %22 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %15, i32 0, i32 3
  %23 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %23, ptr %22, align 8, !tbaa !59
  %24 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %15, i32 0, i32 4
  store i8 0, ptr %24, align 4, !tbaa !60
  %25 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %15, i32 0, i32 5
  store i8 1, ptr %25, align 1, !tbaa !61
  %26 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %15, i32 0, i32 6
  %27 = getelementptr inbounds [3 x %"class.juce::ScopedPointer.282"], ptr %26, i32 0, i32 0
  %28 = getelementptr inbounds %"class.juce::ScopedPointer.282", ptr %27, i64 3
  br label %29

29:                                               ; preds = %29, %19
  %30 = phi ptr [ %27, %19 ], [ %31, %29 ]
  call void @_ZN4juce13ScopedPointerINS_6ButtonEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #4
  %31 = getelementptr inbounds %"class.juce::ScopedPointer.282", ptr %30, i64 1
  %32 = icmp eq ptr %31, %28
  br i1 %32, label %33, label %29

33:                                               ; preds = %29
  %34 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %15, i32 0, i32 7
  call void @_ZN4juce5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #4
  %35 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %15, i32 0, i32 8
  call void @_ZN4juce13ScopedPointerINS_9ComponentEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #4
  %36 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %15, i32 0, i32 9
  store ptr null, ptr %36, align 8, !tbaa !62
  %37 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %15, i32 0, i32 10
  call void @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #4
  call void @_ZN4juce15ResizableWindow15setResizeLimitsEiiii(ptr noundef nonnull align 8 dereferenceable(328) %15, i32 noundef 128, i32 noundef 128, i32 noundef 32768, i32 noundef 32768) #4
  invoke void @_ZN4juce14DocumentWindow18lookAndFeelChangedEv(ptr noundef nonnull align 8 dereferenceable(400) %15)
          to label %38 unwind label %43

38:                                               ; preds = %33
  ret void

39:                                               ; preds = %5
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %12, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %13, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #4
  br label %54

43:                                               ; preds = %33
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %12, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %13, align 4
  call void @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #4
  call void @_ZN4juce13ScopedPointerINS_9ComponentEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #4
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #4
  %47 = getelementptr inbounds [3 x %"class.juce::ScopedPointer.282"], ptr %26, i32 0, i32 0
  %48 = getelementptr inbounds %"class.juce::ScopedPointer.282", ptr %47, i64 3
  br label %49

49:                                               ; preds = %49, %43
  %50 = phi ptr [ %48, %43 ], [ %51, %49 ]
  %51 = getelementptr inbounds %"class.juce::ScopedPointer.282", ptr %50, i64 -1
  call void @_ZN4juce13ScopedPointerINS_6ButtonEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #4
  %52 = icmp eq ptr %51, %47
  br i1 %52, label %53, label %49

53:                                               ; preds = %49
  call void @_ZN4juce15ResizableWindowD2Ev(ptr noundef nonnull align 8 dereferenceable(328) %15) #4
  br label %54

54:                                               ; preds = %53, %39
  %55 = load ptr, ptr %12, align 8
  %56 = load i32, ptr %13, align 4
  %57 = insertvalue { ptr, i32 } poison, ptr %55, 0
  %58 = insertvalue { ptr, i32 } %57, i32 %56, 1
  resume { ptr, i32 } %58
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

attributes #0 = { nounwind "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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !10, i64 328}
!18 = !{!"_ZTSN4juce14DocumentWindowE", !19, i64 0, !10, i64 328, !10, i64 332, !10, i64 336, !12, i64 340, !12, i64 341, !7, i64 344, !54, i64 368, !56, i64 376, !6, i64 384, !57, i64 392}
!19 = !{!"_ZTSN4juce15ResizableWindowE", !20, i64 0, !47, i64 208, !48, i64 216, !49, i64 224, !12, i64 232, !12, i64 233, !12, i64 234, !12, i64 235, !12, i64 236, !51, i64 240, !25, i64 256, !52, i64 272, !6, i64 320}
!20 = !{!"_ZTSN4juce14TopLevelWindowE", !21, i64 0, !12, i64 197, !12, i64 198, !12, i64 199, !46, i64 200}
!21 = !{!"_ZTSN4juce9ComponentE", !22, i64 0, !23, i64 8, !23, 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}
!22 = !{!"_ZTSN4juce13MouseListenerE"}
!23 = !{!"_ZTSN4juce6StringE", !24, i64 0}
!24 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!25 = !{!"_ZTSN4juce9RectangleIiEE", !26, i64 0, !10, i64 8, !10, i64 12}
!26 = !{!"_ZTSN4juce5PointIiEE", !10, i64 0, !10, i64 4}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !10, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !31, i64 0, !10, 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, !10, i64 16}
!38 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !39, i64 0, !10, i64 8}
!39 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!40 = !{!"_ZTSN4juce13NamedValueSetE", !41, i64 0}
!41 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !42, i64 0, !10, i64 16}
!42 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !43, i64 0, !10, i64 8}
!43 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!44 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !45, i64 0}
!45 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!46 = !{!"_ZTSN4juce13ScopedPointerINS_12DropShadowerEEE", !6, i64 0}
!47 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableCornerComponentEEE", !6, i64 0}
!48 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableBorderComponentEEE", !6, i64 0}
!49 = !{!"_ZTSN4juce9Component11SafePointerIS0_EE", !50, i64 0}
!50 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !45, i64 0}
!51 = !{!"_ZTSN4juce16ComponentDraggerE", !26, i64 8}
!52 = !{!"_ZTSN4juce26ComponentBoundsConstrainerE", !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !53, i64 40}
!53 = !{!"double", !7, i64 0}
!54 = !{!"_ZTSN4juce5ImageE", !55, i64 0}
!55 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_14ImagePixelDataEEE", !6, i64 0}
!56 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !6, i64 0}
!57 = !{!"_ZTSN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEE", !6, i64 0}
!58 = !{!18, !10, i64 332}
!59 = !{!18, !10, i64 336}
!60 = !{!18, !12, i64 340}
!61 = !{!18, !12, i64 341}
!62 = !{!18, !6, i64 384}


; 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::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }

@_ZTVN4juce14DocumentWindowE = external dso_local unnamed_addr constant { [54 x ptr] }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN4juce5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_9ComponentEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_6ButtonEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_6ButtonEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce15ResizableWindowD2Ev(ptr noundef nonnull align 8 dereferenceable(328)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_9ComponentEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14DocumentWindowC2ERKNS_6StringENS_6ColourEib(ptr noundef nonnull align 8 dereferenceable(400) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %2, i32 noundef %3, i1 noundef zeroext %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.juce::Colour", align 1
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %6, ptr noundef nonnull align 1 dereferenceable(4) %2) #4
  invoke void @_ZN4juce15ResizableWindowC2ERKNS_6StringENS_6ColourEb(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6, i1 noundef zeroext %4)
          to label %7 unwind label %18

7:                                                ; preds = %5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %6) #4
  store ptr getelementptr inbounds inrange(-16, 416) (i8, ptr @_ZTVN4juce14DocumentWindowE, i64 16), ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 328
  store i32 26, ptr %8, align 8, !tbaa !8
  %9 = getelementptr inbounds i8, ptr %0, i64 332
  store i32 24, ptr %9, align 4, !tbaa !53
  %10 = getelementptr inbounds i8, ptr %0, i64 336
  store i32 %3, ptr %10, align 8, !tbaa !54
  %11 = getelementptr inbounds i8, ptr %0, i64 340
  store i8 0, ptr %11, align 4, !tbaa !55
  %12 = getelementptr inbounds i8, ptr %0, i64 341
  store i8 1, ptr %12, align 1, !tbaa !56
  %.ptr = getelementptr inbounds i8, ptr %0, i64 344
  call void @_ZN4juce13ScopedPointerINS_6ButtonEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr) #4
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 352
  call void @_ZN4juce13ScopedPointerINS_6ButtonEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.1) #4
  %.ptr.2 = getelementptr inbounds i8, ptr %0, i64 360
  call void @_ZN4juce13ScopedPointerINS_6ButtonEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.2) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 368
  call void @_ZN4juce5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  %14 = getelementptr inbounds i8, ptr %0, i64 376
  call void @_ZN4juce13ScopedPointerINS_9ComponentEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  %15 = getelementptr inbounds i8, ptr %0, i64 384
  store ptr null, ptr %15, align 8, !tbaa !57
  %16 = getelementptr inbounds i8, ptr %0, i64 392
  call void @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @_ZN4juce15ResizableWindow15setResizeLimitsEiiii(ptr noundef nonnull align 8 dereferenceable(328) %0, i32 noundef 128, i32 noundef 128, i32 noundef 32768, i32 noundef 32768) #4
  invoke void @_ZN4juce14DocumentWindow18lookAndFeelChangedEv(ptr noundef nonnull align 8 dereferenceable(400) %0)
          to label %17 unwind label %20

17:                                               ; preds = %7
  ret void

18:                                               ; preds = %5
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %6) #4
  br label %22

20:                                               ; preds = %7
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @_ZN4juce13ScopedPointerINS_9ComponentEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  call void @_ZN4juce13ScopedPointerINS_6ButtonEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.2) #4
  call void @_ZN4juce13ScopedPointerINS_6ButtonEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.1) #4
  call void @_ZN4juce13ScopedPointerINS_6ButtonEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %.ptr) #4
  call void @_ZN4juce15ResizableWindowD2Ev(ptr noundef nonnull align 8 dereferenceable(328) %0) #4
  br label %22

22:                                               ; preds = %20, %18
  %.pn = phi { ptr, i32 } [ %21, %20 ], [ %19, %18 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

attributes #0 = { nounwind "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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !20, i64 328}
!9 = !{!"_ZTSN4juce14DocumentWindowE", !10, i64 0, !20, i64 328, !20, i64 332, !20, i64 336, !40, i64 340, !40, i64 341, !17, i64 344, !49, i64 368, !51, i64 376, !16, i64 384, !52, i64 392}
!10 = !{!"_ZTSN4juce15ResizableWindowE", !11, i64 0, !42, i64 208, !43, i64 216, !44, i64 224, !40, i64 232, !40, i64 233, !40, i64 234, !40, i64 235, !40, i64 236, !46, i64 240, !18, i64 256, !47, i64 272, !16, i64 320}
!11 = !{!"_ZTSN4juce14TopLevelWindowE", !12, i64 0, !40, i64 197, !40, i64 198, !40, i64 199, !41, i64 200}
!12 = !{!"_ZTSN4juce9ComponentE", !13, i64 0, !14, i64 8, !14, i64 16, !16, i64 24, !18, i64 32, !21, i64 48, !22, i64 56, !23, i64 64, !16, i64 88, !26, i64 96, !16, i64 104, !27, i64 112, !28, i64 120, !29, i64 128, !30, i64 136, !34, i64 160, !38, i64 184, !17, i64 192, !17, i64 196}
!13 = !{!"_ZTSN4juce13MouseListenerE"}
!14 = !{!"_ZTSN4juce6StringE", !15, i64 0}
!15 = !{!"_ZTSN4juce16CharPointer_UTF8E", !16, i64 0}
!16 = !{!"any pointer", !17, i64 0}
!17 = !{!"omnipotent char", !7, i64 0}
!18 = !{!"_ZTSN4juce9RectangleIiEE", !19, i64 0, !20, i64 8, !20, i64 12}
!19 = !{!"_ZTSN4juce5PointIiEE", !20, i64 0, !20, i64 4}
!20 = !{!"int", !17, i64 0}
!21 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !16, i64 0}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !16, i64 0}
!23 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !24, i64 0, !20, i64 16}
!24 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !25, i64 0, !20, i64 8}
!25 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !16, i64 0}
!26 = !{!"_ZTSN4juce11MouseCursorE", !16, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !16, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !16, i64 0}
!29 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !16, i64 0}
!30 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !20, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !33, i64 0, !20, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !16, i64 0}
!34 = !{!"_ZTSN4juce13NamedValueSetE", !35, i64 0}
!35 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !36, i64 0, !20, i64 16}
!36 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !37, i64 0, !20, i64 8}
!37 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !16, i64 0}
!38 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !39, i64 0}
!39 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !16, i64 0}
!40 = !{!"bool", !17, i64 0}
!41 = !{!"_ZTSN4juce13ScopedPointerINS_12DropShadowerEEE", !16, i64 0}
!42 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableCornerComponentEEE", !16, i64 0}
!43 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableBorderComponentEEE", !16, i64 0}
!44 = !{!"_ZTSN4juce9Component11SafePointerIS0_EE", !45, i64 0}
!45 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !39, i64 0}
!46 = !{!"_ZTSN4juce16ComponentDraggerE", !19, i64 8}
!47 = !{!"_ZTSN4juce26ComponentBoundsConstrainerE", !20, i64 8, !20, i64 12, !20, i64 16, !20, i64 20, !20, i64 24, !20, i64 28, !20, i64 32, !20, i64 36, !48, i64 40}
!48 = !{!"double", !17, i64 0}
!49 = !{!"_ZTSN4juce5ImageE", !50, i64 0}
!50 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_14ImagePixelDataEEE", !16, i64 0}
!51 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !16, i64 0}
!52 = !{!"_ZTSN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEE", !16, i64 0}
!53 = !{!9, !20, i64 332}
!54 = !{!9, !20, i64 336}
!55 = !{!9, !40, i64 340}
!56 = !{!9, !40, i64 341}
!57 = !{!9, !16, i64 384}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass