; 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::KeyPress" = type { i32, %"class.juce::ModifierKeys", i32 }
%"class.juce::ModifierKeys" = 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 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #0

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9Component21setWantsKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce6Button11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(375), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce6Button11addShortcutERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(375), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce14DocumentWindow14getCloseButtonEv(ptr noundef nonnull align 8 dereferenceable(400)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14DocumentWindow18lookAndFeelChangedEv(ptr noundef nonnull align 8 dereferenceable(400) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.juce::KeyPress", align 4
  %11 = alloca %"class.juce::ModifierKeys", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %13 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 6
  %14 = call noundef i32 @_ZN4juce18numElementsInArrayINS_13ScopedPointerINS_6ButtonEEELi3EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(24) %13)
  store i32 %14, ptr %3, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %20, %1
  %16 = load i32, ptr %3, align 4, !tbaa !9
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr %3, align 4, !tbaa !9
  %18 = icmp sge i32 %17, 0
  br i1 %18, label %20, label %19

19:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %26

20:                                               ; preds = %15
  %21 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 6
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [3 x %"class.juce::ScopedPointer.282"], ptr %21, i64 0, i64 %23
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef null)
  br label %15, !llvm.loop !11

26:                                               ; preds = %19
  %27 = call noundef zeroext i1 @_ZNK4juce14TopLevelWindow21isUsingNativeTitleBarEv(ptr noundef nonnull align 8 dereferenceable(208) %12) #6
  br i1 %27, label %117, label %28

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %29 = call noundef nonnull align 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197) %12) #6
  store ptr %29, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 3
  %31 = load i32, ptr %30, align 8, !tbaa !13
  %32 = and i32 %31, 1
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %44

34:                                               ; preds = %28
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 104
  %37 = load ptr, ptr %36, align 8, !tbaa !55
  %38 = getelementptr inbounds ptr, ptr %37, i64 3
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef ptr %39(ptr noundef nonnull align 8 dereferenceable(8) %36, i32 noundef 1)
  %41 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 6
  %42 = getelementptr inbounds [3 x %"class.juce::ScopedPointer.282"], ptr %41, i64 0, i64 0
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef %40)
  br label %44

44:                                               ; preds = %34, %28
  %45 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 3
  %46 = load i32, ptr %45, align 8, !tbaa !13
  %47 = and i32 %46, 2
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %59

49:                                               ; preds = %44
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 104
  %52 = load ptr, ptr %51, align 8, !tbaa !55
  %53 = getelementptr inbounds ptr, ptr %52, i64 3
  %54 = load ptr, ptr %53, align 8
  %55 = call noundef ptr %54(ptr noundef nonnull align 8 dereferenceable(8) %51, i32 noundef 2)
  %56 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 6
  %57 = getelementptr inbounds [3 x %"class.juce::ScopedPointer.282"], ptr %56, i64 0, i64 1
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef %55)
  br label %59

59:                                               ; preds = %49, %44
  %60 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 3
  %61 = load i32, ptr %60, align 8, !tbaa !13
  %62 = and i32 %61, 4
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %74

64:                                               ; preds = %59
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 104
  %67 = load ptr, ptr %66, align 8, !tbaa !55
  %68 = getelementptr inbounds ptr, ptr %67, i64 3
  %69 = load ptr, ptr %68, align 8
  %70 = call noundef ptr %69(ptr noundef nonnull align 8 dereferenceable(8) %66, i32 noundef 4)
  %71 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 6
  %72 = getelementptr inbounds [3 x %"class.juce::ScopedPointer.282"], ptr %71, i64 0, i64 2
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef %70)
  br label %74

74:                                               ; preds = %64, %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %107, %74
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = icmp slt i32 %76, 3
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %110

79:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %80 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 6
  %81 = load i32, ptr %5, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [3 x %"class.juce::ScopedPointer.282"], ptr %80, i64 0, i64 %82
  %84 = call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %83) #6
  store ptr %84, ptr %6, align 8, !tbaa !5
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %106

87:                                               ; preds = %79
  %88 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 10
  %89 = call noundef ptr @_ZNK4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %88) #6
  %90 = icmp eq ptr %89, null
  br i1 %90, label %91, label %100

91:                                               ; preds = %87
  %92 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
  invoke void @_ZN4juce14DocumentWindow19ButtonListenerProxyC2ERS0_(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 8 dereferenceable(400) %12)
          to label %93 unwind label %96

93:                                               ; preds = %91
  %94 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 10
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef %92)
  br label %100

96:                                               ; preds = %91
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %7, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %92, i64 noundef 16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %121

100:                                              ; preds = %93, %87
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %"class.juce::DocumentWindow", ptr %12, i32 0, i32 10
  %103 = call noundef ptr @_ZNK4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %102) #6
  call void @_ZN4juce6Button11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(375) %101, ptr noundef %103)
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4juce9Component21setWantsKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197) %104, i1 noundef zeroext false) #6
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %12, ptr noundef %105, i32 noundef -1)
  br label %106

106:                                              ; preds = %100, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %5, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %5, align 4, !tbaa !9
  br label %75, !llvm.loop !57

110:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %111 = call noundef ptr @_ZNK4juce14DocumentWindow14getCloseButtonEv(ptr noundef nonnull align 8 dereferenceable(400) %12) #6
  store ptr %111, ptr %9, align 8, !tbaa !5
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %116

114:                                              ; preds = %110
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #6
  call void @_ZN4juce12ModifierKeysC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef 4) #6
  call void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 268435649, ptr noundef %11, i32 noundef signext 0) #6
  call void @_ZN4juce6Button11addShortcutERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(375) %115, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #6
  br label %116

116:                                              ; preds = %114, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %117

117:                                              ; preds = %116, %26
  %118 = load ptr, ptr %12, align 8, !tbaa !55
  %119 = getelementptr inbounds ptr, ptr %118, i64 45
  %120 = load ptr, ptr %119, align 8
  call void %120(ptr noundef nonnull align 8 dereferenceable(400) %12)
  call void @_ZN4juce15ResizableWindow18lookAndFeelChangedEv(ptr noundef nonnull align 8 dereferenceable(328) %12)
  ret void

121:                                              ; preds = %96
  %122 = load ptr, ptr %7, align 8
  %123 = load i32, ptr %8, align 4
  %124 = insertvalue { ptr, i32 } poison, ptr %122, 0
  %125 = insertvalue { ptr, i32 } %124, i32 %123, 1
  resume { ptr, i32 } %125
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce18numElementsInArrayINS_13ScopedPointerINS_6ButtonEEELi3EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce14TopLevelWindow21isUsingNativeTitleBarEv(ptr noundef nonnull align 8 dereferenceable(208)) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce14DocumentWindow19ButtonListenerProxyC2ERS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(400)) unnamed_addr #4 align 2

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

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

declare void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr, i32, ptr, i32)

declare void @_ZN4juce12ModifierKeysC1Ei(ptr, i32)

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


; 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::KeyPress" = type { i32, %"class.juce::ModifierKeys", i32 }
%"class.juce::ModifierKeys" = type { i32 }
%"class.juce::ScopedPointer.282" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9Component21setWantsKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce6Button11addShortcutERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(375), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14DocumentWindow18lookAndFeelChangedEv(ptr noundef nonnull align 8 dereferenceable(400) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::KeyPress", align 4
  %3 = alloca %"class.juce::ModifierKeys", align 4
  %4 = getelementptr inbounds i8, ptr %0, i64 344
  %5 = tail call noundef i32 @_ZN4juce18numElementsInArrayINS_13ScopedPointerINS_6ButtonEEELi3EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %1
  %7 = zext nneg i32 %5 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %1
  %8 = tail call noundef zeroext i1 @_ZNK4juce14TopLevelWindow21isUsingNativeTitleBarEv(ptr noundef nonnull align 8 dereferenceable(208) %0) #5
  br i1 %8, label %82, label %12

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %7, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %9 = getelementptr inbounds [3 x %"class.juce::ScopedPointer.282"], ptr %4, i64 0, i64 %indvars.iv.next
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef null)
  %11 = icmp ugt i64 %indvars.iv, 1
  br i1 %11, label %.lr.ph, label %._crit_edge, !llvm.loop !5

12:                                               ; preds = %._crit_edge
  %13 = tail call noundef nonnull align 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 336
  %15 = load i32, ptr %14, align 8, !tbaa !7
  %16 = and i32 %15, 1
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %24, label %17

17:                                               ; preds = %12
  %18 = getelementptr inbounds i8, ptr %13, i64 104
  %19 = load ptr, ptr %18, align 8, !tbaa !53
  %20 = getelementptr inbounds i8, ptr %19, i64 24
  %21 = load ptr, ptr %20, align 8
  %22 = tail call noundef ptr %21(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef 1)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %22)
  %.pre = load i32, ptr %14, align 8, !tbaa !7
  br label %24

24:                                               ; preds = %17, %12
  %25 = phi i32 [ %.pre, %17 ], [ %15, %12 ]
  %26 = and i32 %25, 2
  %.not18 = icmp eq i32 %26, 0
  br i1 %.not18, label %35, label %27

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %13, i64 104
  %29 = load ptr, ptr %28, align 8, !tbaa !53
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  %31 = load ptr, ptr %30, align 8
  %32 = tail call noundef ptr %31(ptr noundef nonnull align 8 dereferenceable(8) %28, i32 noundef 2)
  %33 = getelementptr inbounds i8, ptr %0, i64 352
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef %32)
  %.pre28 = load i32, ptr %14, align 8, !tbaa !7
  br label %35

35:                                               ; preds = %27, %24
  %36 = phi i32 [ %.pre28, %27 ], [ %25, %24 ]
  %37 = and i32 %36, 4
  %.not19 = icmp eq i32 %37, 0
  br i1 %.not19, label %46, label %38

38:                                               ; preds = %35
  %39 = getelementptr inbounds i8, ptr %13, i64 104
  %40 = load ptr, ptr %39, align 8, !tbaa !53
  %41 = getelementptr inbounds i8, ptr %40, i64 24
  %42 = load ptr, ptr %41, align 8
  %43 = tail call noundef ptr %42(ptr noundef nonnull align 8 dereferenceable(8) %39, i32 noundef 4)
  %44 = getelementptr inbounds i8, ptr %0, i64 360
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_6ButtonEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef %43)
  br label %46

46:                                               ; preds = %38, %35
  %47 = getelementptr inbounds i8, ptr %0, i64 392
  %48 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %.not21 = icmp eq ptr %48, null
  br i1 %.not21, label %57, label %49

49:                                               ; preds = %46
  %50 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #5
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %55

52:                                               ; preds = %49
  %53 = tail call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #6
  tail call void @_ZN4juce14DocumentWindow19ButtonListenerProxyC2ERS0_(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(400) %0)
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull %53)
  br label %55

55:                                               ; preds = %52, %49
  %56 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #5
  tail call void @_ZN4juce6Button11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(375) %48, ptr noundef %56)
  tail call void @_ZN4juce9Component21setWantsKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197) %48, i1 noundef zeroext false) #5
  tail call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %48, i32 noundef -1)
  br label %57

57:                                               ; preds = %55, %46
  %58 = getelementptr inbounds i8, ptr %0, i64 352
  %59 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #5
  %.not21.1 = icmp eq ptr %59, null
  br i1 %.not21.1, label %68, label %60

60:                                               ; preds = %57
  %61 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %66

63:                                               ; preds = %60
  %64 = tail call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #6
  tail call void @_ZN4juce14DocumentWindow19ButtonListenerProxyC2ERS0_(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 8 dereferenceable(400) %0)
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull %64)
  br label %66

66:                                               ; preds = %63, %60
  %67 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #5
  tail call void @_ZN4juce6Button11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(375) %59, ptr noundef %67)
  tail call void @_ZN4juce9Component21setWantsKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197) %59, i1 noundef zeroext false) #5
  tail call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %59, i32 noundef -1)
  br label %68

68:                                               ; preds = %66, %57
  %69 = getelementptr inbounds i8, ptr %0, i64 360
  %70 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_6ButtonEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %69) #5
  %.not21.2 = icmp eq ptr %70, null
  br i1 %.not21.2, label %79, label %71

71:                                               ; preds = %68
  %72 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #5
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %77

74:                                               ; preds = %71
  %75 = tail call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #6
  tail call void @_ZN4juce14DocumentWindow19ButtonListenerProxyC2ERS0_(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 8 dereferenceable(400) %0)
  %76 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull %75)
  br label %77

77:                                               ; preds = %74, %71
  %78 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #5
  tail call void @_ZN4juce6Button11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(375) %70, ptr noundef %78)
  tail call void @_ZN4juce9Component21setWantsKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197) %70, i1 noundef zeroext false) #5
  tail call void @_ZN4juce9Component17addAndMakeVisibleEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %70, i32 noundef -1)
  br label %79

79:                                               ; preds = %77, %68
  %80 = tail call noundef ptr @_ZNK4juce14DocumentWindow14getCloseButtonEv(ptr noundef nonnull align 8 dereferenceable(400) %0) #5
  %.not20 = icmp eq ptr %80, null
  br i1 %.not20, label %82, label %81

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #5
  call void @_ZN4juce12ModifierKeysC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 4) #5
  call void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef 268435649, ptr noundef nonnull %3, i32 noundef signext 0) #5
  call void @_ZN4juce6Button11addShortcutERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(375) %80, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5
  br label %82

82:                                               ; preds = %79, %81, %._crit_edge
  %83 = load ptr, ptr %0, align 8, !tbaa !53
  %84 = getelementptr inbounds i8, ptr %83, i64 360
  %85 = load ptr, ptr %84, align 8
  call void %85(ptr noundef nonnull align 8 dereferenceable(400) %0)
  call void @_ZN4juce15ResizableWindow18lookAndFeelChangedEv(ptr noundef nonnull align 8 dereferenceable(328) %0)
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce18numElementsInArrayINS_13ScopedPointerINS_6ButtonEEELi3EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce14TopLevelWindow21isUsingNativeTitleBarEv(ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce14DocumentWindow19ButtonListenerProxyC2ERS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(400)) unnamed_addr #3 align 2

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

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

declare void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr, i32, ptr, i32) local_unnamed_addr

declare void @_ZN4juce12ModifierKeysC1Ei(ptr, i32) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 = { 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 #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !20, i64 336}
!8 = !{!"_ZTSN4juce14DocumentWindowE", !9, i64 0, !20, i64 328, !20, i64 332, !20, i64 336, !40, i64 340, !40, i64 341, !16, i64 344, !49, i64 368, !51, i64 376, !15, i64 384, !52, i64 392}
!9 = !{!"_ZTSN4juce15ResizableWindowE", !10, 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, !15, i64 320}
!10 = !{!"_ZTSN4juce14TopLevelWindowE", !11, i64 0, !40, i64 197, !40, i64 198, !40, i64 199, !41, i64 200}
!11 = !{!"_ZTSN4juce9ComponentE", !12, i64 0, !13, i64 8, !13, i64 16, !15, i64 24, !18, i64 32, !21, i64 48, !22, i64 56, !23, i64 64, !15, i64 88, !26, i64 96, !15, i64 104, !27, i64 112, !28, i64 120, !29, i64 128, !30, i64 136, !34, i64 160, !38, i64 184, !16, i64 192, !16, i64 196}
!12 = !{!"_ZTSN4juce13MouseListenerE"}
!13 = !{!"_ZTSN4juce6StringE", !14, i64 0}
!14 = !{!"_ZTSN4juce16CharPointer_UTF8E", !15, i64 0}
!15 = !{!"any pointer", !16, i64 0}
!16 = !{!"omnipotent char", !17, i64 0}
!17 = !{!"Simple C++ TBAA"}
!18 = !{!"_ZTSN4juce9RectangleIiEE", !19, i64 0, !20, i64 8, !20, i64 12}
!19 = !{!"_ZTSN4juce5PointIiEE", !20, i64 0, !20, i64 4}
!20 = !{!"int", !16, i64 0}
!21 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !15, i64 0}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !15, 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", !15, i64 0}
!26 = !{!"_ZTSN4juce11MouseCursorE", !15, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !15, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !15, i64 0}
!29 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !15, 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", !15, 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", !15, i64 0}
!38 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !39, i64 0}
!39 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !15, i64 0}
!40 = !{!"bool", !16, i64 0}
!41 = !{!"_ZTSN4juce13ScopedPointerINS_12DropShadowerEEE", !15, i64 0}
!42 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableCornerComponentEEE", !15, i64 0}
!43 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableBorderComponentEEE", !15, 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", !16, i64 0}
!49 = !{!"_ZTSN4juce5ImageE", !50, i64 0}
!50 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_14ImagePixelDataEEE", !15, i64 0}
!51 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !15, i64 0}
!52 = !{!"_ZTSN4juce13ScopedPointerINS_14DocumentWindow19ButtonListenerProxyEEE", !15, i64 0}
!53 = !{!54, !54, i64 0}
!54 = !{!"vtable pointer", !17, i64 0}


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