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

; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"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::ComponentBoundsConstrainer" = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, double }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component11isOnDesktopEv(ptr noundef nonnull align 8 dereferenceable(197)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component14getParentWidthEv(ptr noundef nonnull align 8 dereferenceable(197)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component15getParentHeightEv(ptr noundef nonnull align 8 dereferenceable(197)) #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9RectangleIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce15ResizableWindow13setFullScreenEb(ptr noundef nonnull align 8 dereferenceable(328) %0, i1 noundef zeroext %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %9 = zext i1 %1 to i8
  store i8 %9, ptr %4, align 1, !tbaa !9
  %10 = load ptr, ptr %3, align 8
  %11 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %12 = trunc i8 %11 to i1
  %13 = zext i1 %12 to i32
  %14 = call noundef zeroext i1 @_ZNK4juce15ResizableWindow12isFullScreenEv(ptr noundef nonnull align 8 dereferenceable(328) %10)
  %15 = zext i1 %14 to i32
  %16 = icmp ne i32 %13, %15
  br i1 %16, label %17, label %65

17:                                               ; preds = %2
  call void @_ZN4juce15ResizableWindow22updateLastPosIfShowingEv(ptr noundef nonnull align 8 dereferenceable(328) %10)
  %18 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %19 = trunc i8 %18 to i1
  %20 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %10, i32 0, i32 6
  %21 = zext i1 %19 to i8
  store i8 %21, ptr %20, align 2, !tbaa !13
  %22 = call noundef zeroext i1 @_ZNK4juce9Component11isOnDesktopEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #3
  br i1 %22, label %23, label %52

23:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %24 = call noundef ptr @_ZNK4juce9Component7getPeerEv(ptr noundef nonnull align 8 dereferenceable(197) %10)
  store ptr %24, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %47

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #3
  %28 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %10, i32 0, i32 10
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %28) #3
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %31 = trunc i8 %30 to i1
  %32 = load ptr, ptr %29, align 8, !tbaa !50
  %33 = getelementptr inbounds ptr, ptr %32, i64 15
  %34 = load ptr, ptr %33, align 8
  invoke void %34(ptr noundef nonnull align 8 dereferenceable(77) %29, i1 noundef zeroext %31)
          to label %35 unwind label %42

35:                                               ; preds = %27
  %36 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %37 = trunc i8 %36 to i1
  br i1 %37, label %46, label %38

38:                                               ; preds = %35
  %39 = call noundef zeroext i1 @_ZNK4juce9RectangleIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #3
  br i1 %39, label %46, label %40

40:                                               ; preds = %38
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %10, ptr noundef nonnull align 4 dereferenceable(16) %6)
          to label %41 unwind label %42

41:                                               ; preds = %40
  br label %46

42:                                               ; preds = %40, %27
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %7, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %8, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %66

46:                                               ; preds = %41, %38, %35
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #3
  br label %51

47:                                               ; preds = %23
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %61

52:                                               ; preds = %17
  %53 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %58

55:                                               ; preds = %52
  %56 = call noundef i32 @_ZNK4juce9Component14getParentWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #3
  %57 = call noundef i32 @_ZNK4juce9Component15getParentHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #3
  call void @_ZN4juce9Component9setBoundsEiiii(ptr noundef nonnull align 8 dereferenceable(197) %10, i32 noundef 0, i32 noundef 0, i32 noundef %56, i32 noundef %57)
  br label %60

58:                                               ; preds = %52
  %59 = getelementptr inbounds %"class.juce::ResizableWindow", ptr %10, i32 0, i32 10
  call void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %10, ptr noundef nonnull align 4 dereferenceable(16) %59)
  br label %60

60:                                               ; preds = %58, %55
  br label %61

61:                                               ; preds = %60, %51
  %62 = load ptr, ptr %10, align 8, !tbaa !50
  %63 = getelementptr inbounds ptr, ptr %62, i64 34
  %64 = load ptr, ptr %63, align 8
  call void %64(ptr noundef nonnull align 8 dereferenceable(328) %10)
  br label %65

65:                                               ; preds = %61, %2
  ret void

66:                                               ; preds = %42
  %67 = load ptr, ptr %7, align 8
  %68 = load i32, ptr %8, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !10, i64 234}
!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"

%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9RectangleIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce15ResizableWindow13setFullScreenEb(ptr noundef nonnull align 8 dereferenceable(328) %0, i1 noundef zeroext %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::Rectangle", align 4
  %4 = tail call noundef zeroext i1 @_ZNK4juce15ResizableWindow12isFullScreenEv(ptr noundef nonnull align 8 dereferenceable(328) %0)
  %5 = xor i1 %4, %1
  br i1 %5, label %6, label %34

6:                                                ; preds = %2
  %7 = zext i1 %1 to i8
  tail call void @_ZN4juce15ResizableWindow22updateLastPosIfShowingEv(ptr noundef nonnull align 8 dereferenceable(328) %0)
  %8 = getelementptr inbounds i8, ptr %0, i64 234
  store i8 %7, ptr %8, align 2, !tbaa !5
  %9 = tail call noundef zeroext i1 @_ZNK4juce9Component11isOnDesktopEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #3
  br i1 %9, label %10, label %24

10:                                               ; preds = %6
  %11 = tail call noundef ptr @_ZNK4juce9Component7getPeerEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %30, label %12

12:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  %13 = getelementptr inbounds i8, ptr %0, i64 256
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %13) #3
  %14 = load ptr, ptr %11, align 8, !tbaa !46
  %15 = getelementptr inbounds i8, ptr %14, i64 120
  %16 = load ptr, ptr %15, align 8
  invoke void %16(ptr noundef nonnull align 8 dereferenceable(77) %11, i1 noundef zeroext %1)
          to label %17 unwind label %21

17:                                               ; preds = %12
  br i1 %1, label %23, label %18

18:                                               ; preds = %17
  %19 = call noundef zeroext i1 @_ZNK4juce9RectangleIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(16) %3) #3
  br i1 %19, label %23, label %20

20:                                               ; preds = %18
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 4 dereferenceable(16) %3)
          to label %23 unwind label %21

21:                                               ; preds = %20, %12
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  resume { ptr, i32 } %22

23:                                               ; preds = %20, %18, %17
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  br label %30

24:                                               ; preds = %6
  br i1 %1, label %25, label %28

25:                                               ; preds = %24
  %26 = tail call noundef i32 @_ZNK4juce9Component14getParentWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #3
  %27 = tail call noundef i32 @_ZNK4juce9Component15getParentHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #3
  tail call void @_ZN4juce9Component9setBoundsEiiii(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef 0, i32 noundef 0, i32 noundef %26, i32 noundef %27)
  br label %30

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %0, i64 256
  tail call void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 4 dereferenceable(16) %29)
  br label %30

30:                                               ; preds = %23, %10, %25, %28
  %31 = load ptr, ptr %0, align 8, !tbaa !46
  %32 = getelementptr inbounds i8, ptr %31, i64 272
  %33 = load ptr, ptr %32, align 8
  call void %33(ptr noundef nonnull align 8 dereferenceable(328) %0)
  br label %34

34:                                               ; preds = %30, %2
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce15ResizableWindow12isFullScreenEv(ptr noundef nonnull align 8 dereferenceable(328)) local_unnamed_addr #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !37, i64 234}
!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: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass