; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/juce_gui_basics.ll (ZN4juce15ResizableWindow12setResizableEbb)

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce15ResizableWindow12setResizableEbb(ptr noundef nonnull align 8 dereferenceable(328) %0, i1 noundef zeroext %1, i1 noundef zeroext %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  %9 = zext i1 %1 to i8
  store i8 %9, ptr %5, align 1, !tbaa !9
  %10 = zext i1 %2 to i8
  store i8 %10, ptr %6, align 1, !tbaa !9
  %11 = load ptr, ptr %4, align 8
  %12 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %13 = trunc i8 %12 to i1
  br i1 %13, label %14, label %58

14:                                               ; preds = %3
  %15 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %38

17:                                               ; preds = %14
  %18 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 2
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableBorderComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef null)
  %20 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 1
  %21 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24ResizableCornerComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %37

23:                                               ; preds = %17
  %24 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 232) #6
  %25 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 12
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  invoke void @_ZN4juce24ResizableCornerComponentC1EPNS_9ComponentEPNS_26ComponentBoundsConstrainerE(ptr noundef nonnull align 8 dereferenceable(232) %24, ptr noundef %11, ptr noundef %26)
          to label %27 unwind label %33

27:                                               ; preds = %23
  %28 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 1
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableCornerComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef %24)
  %30 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24ResizableCornerComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  call void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %11, ptr noundef %30, i32 noundef -1)
  %31 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 1
  %32 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24ResizableCornerComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  call void @_ZN4juce9Component14setAlwaysOnTopEb(ptr noundef nonnull align 8 dereferenceable(197) %32, i1 noundef zeroext true)
  br label %37

33:                                               ; preds = %23
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %7, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %24, i64 noundef 232) #7
  br label %75

37:                                               ; preds = %27, %17
  br label %57

38:                                               ; preds = %14
  %39 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 1
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableCornerComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef null)
  %41 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 2
  %42 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24ResizableBorderComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %41) #5
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %56

44:                                               ; preds = %38
  %45 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 256) #6
  %46 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 12
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  invoke void @_ZN4juce24ResizableBorderComponentC1EPNS_9ComponentEPNS_26ComponentBoundsConstrainerE(ptr noundef nonnull align 8 dereferenceable(252) %45, ptr noundef %11, ptr noundef %47)
          to label %48 unwind label %52

48:                                               ; preds = %44
  %49 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 2
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableBorderComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef %45)
  %51 = call noundef ptr @_ZNK4juce13ScopedPointerINS_24ResizableBorderComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %50) #5
  call void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %11, ptr noundef %51, i32 noundef -1)
  br label %56

52:                                               ; preds = %44
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %7, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %45, i64 noundef 256) #7
  br label %75

56:                                               ; preds = %48, %38
  br label %57

57:                                               ; preds = %56, %37
  br label %63

58:                                               ; preds = %3
  %59 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 1
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableCornerComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef null)
  %61 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 2
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableBorderComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef null)
  br label %63

63:                                               ; preds = %58, %57
  %64 = call noundef zeroext i1 @_ZNK4juce14TopLevelWindow21isUsingNativeTitleBarEv(ptr noundef nonnull align 8 dereferenceable(208) %11) #5
  br i1 %64, label %65, label %66

65:                                               ; preds = %63
  call void @_ZN4juce14TopLevelWindow21recreateDesktopWindowEv(ptr noundef nonnull align 8 dereferenceable(208) %11)
  br label %66

66:                                               ; preds = %65, %63
  %67 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %11, i32 0, i32 3
  %68 = call noundef ptr @_ZNK4juce9Component11SafePointerIS0_EcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %67) #5
  %69 = load ptr, ptr %11, align 8, !tbaa !50
  %70 = getelementptr inbounds ptr, ptr %69, i64 36
  %71 = load ptr, ptr %70, align 8
  call void %71(ptr noundef nonnull align 8 dereferenceable(328) %11, ptr noundef %68)
  %72 = load ptr, ptr %11, align 8, !tbaa !50
  %73 = getelementptr inbounds ptr, ptr %72, i64 34
  %74 = load ptr, ptr %73, align 8
  call void %74(ptr noundef nonnull align 8 dereferenceable(328) %11)
  ret void

75:                                               ; preds = %52, %33
  %76 = load ptr, ptr %7, align 8
  %77 = load i32, ptr %8, align 4
  %78 = insertvalue { ptr, i32 } poison, ptr %76, 0
  %79 = insertvalue { ptr, i32 } %78, i32 %77, 1
  resume { ptr, i32 } %79
}

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

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

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

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

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

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

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

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

declare void @_ZN4juce24ResizableBorderComponentC1EPNS_9ComponentEPNS_26ComponentBoundsConstrainerE(ptr, ptr, ptr)

declare void @_ZN4juce24ResizableCornerComponentC1EPNS_9ComponentEPNS_26ComponentBoundsConstrainerE(ptr, ptr, ptr)

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 = { 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) }
attributes #7 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !6, i64 320}
!14 = !{!"_ZTSN4juce15ResizableWindowE", !15, i64 0, !43, i64 208, !44, i64 216, !45, i64 224, !10, i64 232, !10, i64 233, !10, i64 234, !10, i64 235, !10, i64 236, !47, i64 240, !20, i64 256, !48, i64 272, !6, i64 320}
!15 = !{!"_ZTSN4juce14TopLevelWindowE", !16, i64 0, !10, i64 197, !10, i64 198, !10, i64 199, !42, i64 200}
!16 = !{!"_ZTSN4juce9ComponentE", !17, i64 0, !18, i64 8, !18, i64 16, !6, i64 24, !20, 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}
!17 = !{!"_ZTSN4juce13MouseListenerE"}
!18 = !{!"_ZTSN4juce6StringE", !19, i64 0}
!19 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!20 = !{!"_ZTSN4juce9RectangleIiEE", !21, i64 0, !22, i64 8, !22, i64 12}
!21 = !{!"_ZTSN4juce5PointIiEE", !22, i64 0, !22, i64 4}
!22 = !{!"int", !7, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!25 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !26, i64 0, !22, i64 16}
!26 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !27, i64 0, !22, 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, !22, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !35, i64 0, !22, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!36 = !{!"_ZTSN4juce13NamedValueSetE", !37, i64 0}
!37 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !38, i64 0, !22, i64 16}
!38 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !39, i64 0, !22, i64 8}
!39 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!40 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !41, i64 0}
!41 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!42 = !{!"_ZTSN4juce13ScopedPointerINS_12DropShadowerEEE", !6, i64 0}
!43 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableCornerComponentEEE", !6, i64 0}
!44 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableBorderComponentEEE", !6, i64 0}
!45 = !{!"_ZTSN4juce9Component11SafePointerIS0_EE", !46, i64 0}
!46 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !41, i64 0}
!47 = !{!"_ZTSN4juce16ComponentDraggerE", !21, i64 8}
!48 = !{!"_ZTSN4juce26ComponentBoundsConstrainerE", !22, i64 8, !22, i64 12, !22, i64 16, !22, i64 20, !22, i64 24, !22, i64 28, !22, i64 32, !22, i64 36, !49, i64 40}
!49 = !{!"double", !7, i64 0}
!50 = !{!51, !51, i64 0}
!51 = !{!"vtable pointer", !8, i64 0}


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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #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 @_ZN4juce9Component14setAlwaysOnTopEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce15ResizableWindow12setResizableEbb(ptr noundef nonnull align 8 dereferenceable(328) %0, i1 noundef zeroext %1, i1 noundef zeroext %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  br i1 %1, label %4, label %36

4:                                                ; preds = %3
  br i1 %2, label %5, label %21

5:                                                ; preds = %4
  %6 = getelementptr inbounds i8, ptr %0, i64 216
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableBorderComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef null)
  %8 = getelementptr inbounds i8, ptr %0, i64 208
  %9 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_24ResizableCornerComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %41

11:                                               ; preds = %5
  %12 = tail call noalias noundef nonnull dereferenceable(232) ptr @_Znwm(i64 noundef 232) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 320
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN4juce24ResizableCornerComponentC1EPNS_9ComponentEPNS_26ComponentBoundsConstrainerE(ptr noundef nonnull align 8 dereferenceable(232) %12, ptr noundef nonnull %0, ptr noundef %14)
          to label %15 unwind label %19

15:                                               ; preds = %11
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableCornerComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull %12)
  %17 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_24ResizableCornerComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  tail call void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %17, i32 noundef -1)
  %18 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_24ResizableCornerComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  tail call void @_ZN4juce9Component14setAlwaysOnTopEb(ptr noundef nonnull align 8 dereferenceable(197) %18, i1 noundef zeroext true)
  br label %41

19:                                               ; preds = %11
  %20 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %12, i64 noundef 232) #7
  br label %53

21:                                               ; preds = %4
  %22 = getelementptr inbounds i8, ptr %0, i64 208
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableCornerComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef null)
  %24 = getelementptr inbounds i8, ptr %0, i64 216
  %25 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_24ResizableBorderComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %41

27:                                               ; preds = %21
  %28 = tail call noalias noundef nonnull dereferenceable(256) ptr @_Znwm(i64 noundef 256) #6
  %29 = getelementptr inbounds i8, ptr %0, i64 320
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZN4juce24ResizableBorderComponentC1EPNS_9ComponentEPNS_26ComponentBoundsConstrainerE(ptr noundef nonnull align 8 dereferenceable(252) %28, ptr noundef nonnull %0, ptr noundef %30)
          to label %31 unwind label %34

31:                                               ; preds = %27
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableBorderComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull %28)
  %33 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_24ResizableBorderComponentEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #5
  tail call void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %33, i32 noundef -1)
  br label %41

34:                                               ; preds = %27
  %35 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %28, i64 noundef 256) #7
  br label %53

36:                                               ; preds = %3
  %37 = getelementptr inbounds i8, ptr %0, i64 208
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableCornerComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef null)
  %39 = getelementptr inbounds i8, ptr %0, i64 216
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableBorderComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef null)
  br label %41

41:                                               ; preds = %15, %5, %31, %21, %36
  %42 = tail call noundef zeroext i1 @_ZNK4juce14TopLevelWindow21isUsingNativeTitleBarEv(ptr noundef nonnull align 8 dereferenceable(208) %0) #5
  br i1 %42, label %43, label %44

43:                                               ; preds = %41
  tail call void @_ZN4juce14TopLevelWindow21recreateDesktopWindowEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  br label %44

44:                                               ; preds = %43, %41
  %45 = getelementptr inbounds i8, ptr %0, i64 224
  %46 = tail call noundef ptr @_ZNK4juce9Component11SafePointerIS0_EcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #5
  %47 = load ptr, ptr %0, align 8, !tbaa !46
  %48 = getelementptr inbounds i8, ptr %47, i64 288
  %49 = load ptr, ptr %48, align 8
  tail call void %49(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef %46)
  %50 = load ptr, ptr %0, align 8, !tbaa !46
  %51 = getelementptr inbounds i8, ptr %50, i64 272
  %52 = load ptr, ptr %51, align 8
  tail call void %52(ptr noundef nonnull align 8 dereferenceable(328) %0)
  ret void

53:                                               ; preds = %34, %19
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %35, %34 ]
  resume { ptr, i32 } %.pn
}

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_24ResizableCornerComponentEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

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

declare void @_ZN4juce24ResizableBorderComponentC1EPNS_9ComponentEPNS_26ComponentBoundsConstrainerE(ptr, ptr, ptr) local_unnamed_addr

declare void @_ZN4juce24ResizableCornerComponentC1EPNS_9ComponentEPNS_26ComponentBoundsConstrainerE(ptr, ptr, ptr) local_unnamed_addr

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 = { 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) }
attributes #7 = { 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, !12, i64 320}
!6 = !{!"_ZTSN4juce15ResizableWindowE", !7, i64 0, !39, i64 208, !40, i64 216, !41, i64 224, !37, i64 232, !37, i64 233, !37, i64 234, !37, i64 235, !37, i64 236, !43, i64 240, !15, i64 256, !44, i64 272, !12, i64 320}
!7 = !{!"_ZTSN4juce14TopLevelWindowE", !8, i64 0, !37, i64 197, !37, i64 198, !37, i64 199, !38, i64 200}
!8 = !{!"_ZTSN4juce9ComponentE", !9, i64 0, !10, i64 8, !10, i64 16, !12, i64 24, !15, i64 32, !18, i64 48, !19, i64 56, !20, i64 64, !12, i64 88, !23, i64 96, !12, i64 104, !24, i64 112, !25, i64 120, !26, i64 128, !27, i64 136, !31, i64 160, !35, i64 184, !13, i64 192, !13, i64 196}
!9 = !{!"_ZTSN4juce13MouseListenerE"}
!10 = !{!"_ZTSN4juce6StringE", !11, i64 0}
!11 = !{!"_ZTSN4juce16CharPointer_UTF8E", !12, i64 0}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"_ZTSN4juce9RectangleIiEE", !16, i64 0, !17, i64 8, !17, i64 12}
!16 = !{!"_ZTSN4juce5PointIiEE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !13, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !12, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !12, 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", !12, i64 0}
!23 = !{!"_ZTSN4juce11MouseCursorE", !12, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !12, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !12, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !12, 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", !12, 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", !12, i64 0}
!35 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !36, i64 0}
!36 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !12, i64 0}
!37 = !{!"bool", !13, i64 0}
!38 = !{!"_ZTSN4juce13ScopedPointerINS_12DropShadowerEEE", !12, i64 0}
!39 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableCornerComponentEEE", !12, i64 0}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_24ResizableBorderComponentEEE", !12, i64 0}
!41 = !{!"_ZTSN4juce9Component11SafePointerIS0_EE", !42, i64 0}
!42 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !36, i64 0}
!43 = !{!"_ZTSN4juce16ComponentDraggerE", !16, i64 8}
!44 = !{!"_ZTSN4juce26ComponentBoundsConstrainerE", !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !45, i64 40}
!45 = !{!"double", !13, i64 0}
!46 = !{!47, !47, i64 0}
!47 = !{!"vtable pointer", !14, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass