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

; 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::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::ScopedPointer.14" = type { ptr }
%"class.juce::Component" = 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, [3 x 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" }
%union.anon = type { i32 }

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

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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component12addToDesktopEiPv(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.juce::WeakReference", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.juce::Point", align 4
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca %"class.juce::Rectangle", align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.juce::ScopedPointer.14", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.juce::Point", align 4
  %20 = alloca %"class.juce::Point", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %4, align 8
  br label %22

22:                                               ; preds = %3
  br label %23

23:                                               ; preds = %22
  %24 = call noundef zeroext i1 @_ZNK4juce9Component8isOpaqueEv(ptr noundef nonnull align 8 dereferenceable(197) %21) #4
  br i1 %24, label %25, label %28

25:                                               ; preds = %23
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = and i32 %26, 2147483647
  store i32 %27, ptr %5, align 4, !tbaa !9
  br label %31

28:                                               ; preds = %23
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = or i32 %29, -2147483648
  store i32 %30, ptr %5, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %28, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %32 = call noundef ptr @_ZN4juce13ComponentPeer10getPeerForEPKNS_9ComponentE(ptr noundef %21) #4
  store ptr %32, ptr %7, align 8, !tbaa !5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %40, label %35

35:                                               ; preds = %31
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call noundef i32 @_ZNK4juce13ComponentPeer13getStyleFlagsEv(ptr noundef nonnull align 8 dereferenceable(77) %37) #4
  %39 = icmp ne i32 %36, %38
  br i1 %39, label %40, label %188

40:                                               ; preds = %35, %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %21)
  %41 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %21) #4
  %42 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 1, i32 noundef %41)
          to label %43 unwind label %88

43:                                               ; preds = %40
  %44 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %21) #4
  %45 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 1, i32 noundef %44)
          to label %46 unwind label %88

46:                                               ; preds = %43
  invoke void @_ZN4juce9Component7setSizeEii(ptr noundef nonnull align 8 dereferenceable(197) %21, i32 noundef %42, i32 noundef %45)
          to label %47 unwind label %88

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  invoke void @_ZNK4juce9Component17getScreenPositionEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %11, ptr noundef nonnull align 8 dereferenceable(197) %21)
          to label %48 unwind label %92

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  store i8 0, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  store i8 0, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 -1, ptr %16, align 4, !tbaa !9
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %105

51:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4juce13ScopedPointerINS_13ComponentPeerEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef %52) #4
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = load ptr, ptr %53, align 8, !tbaa !13
  %55 = getelementptr inbounds ptr, ptr %54, i64 16
  %56 = load ptr, ptr %55, align 8
  %57 = invoke noundef zeroext i1 %56(ptr noundef nonnull align 8 dereferenceable(77) %53)
          to label %58 unwind label %96

58:                                               ; preds = %51
  %59 = zext i1 %57 to i8
  store i8 %59, ptr %12, align 1, !tbaa !11
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  %62 = getelementptr inbounds ptr, ptr %61, i64 14
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef zeroext i1 %63(ptr noundef nonnull align 8 dereferenceable(77) %60)
          to label %65 unwind label %96

65:                                               ; preds = %58
  %66 = zext i1 %64 to i8
  store i8 %66, ptr %13, align 1, !tbaa !11
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = call noundef ptr @_ZNK4juce13ComponentPeer14getConstrainerEv(ptr noundef nonnull align 8 dereferenceable(77) %67) #4
  store ptr %68, ptr %14, align 8, !tbaa !5
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce13ComponentPeer22getNonFullScreenBoundsEv(ptr noundef nonnull align 8 dereferenceable(77) %69) #4
  %71 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %70) #4
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = load ptr, ptr %72, align 8, !tbaa !13
  %74 = getelementptr inbounds ptr, ptr %73, i64 33
  %75 = load ptr, ptr %74, align 8
  %76 = invoke noundef i32 %75(ptr noundef nonnull align 8 dereferenceable(77) %72)
          to label %77 unwind label %96

77:                                               ; preds = %65
  store i32 %76, ptr %16, align 4, !tbaa !9
  %78 = getelementptr inbounds %"class.juce::Component", ptr %21, i32 0, i32 17
  %79 = load i16, ptr %78, align 8
  %80 = and i16 %79, -2
  %81 = or i16 %80, 0
  store i16 %81, ptr %78, align 8
  %82 = invoke noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
          to label %83 unwind label %96

83:                                               ; preds = %77
  invoke void @_ZN4juce7Desktop22removeDesktopComponentEPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(360) %82, ptr noundef %21)
          to label %84 unwind label %96

84:                                               ; preds = %83
  invoke void @_ZN4juce9Component24internalHierarchyChangedEv(ptr noundef nonnull align 8 dereferenceable(197) %21)
          to label %85 unwind label %96

85:                                               ; preds = %84
  %86 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEeqEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef null) #4
  br i1 %86, label %87, label %100

87:                                               ; preds = %85
  store i32 1, ptr %18, align 4
  br label %102

88:                                               ; preds = %46, %43, %40
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %9, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %10, align 4
  br label %187

92:                                               ; preds = %47
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %9, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %10, align 4
  br label %186

96:                                               ; preds = %100, %84, %83, %77, %65, %58, %51
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %9, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %10, align 4
  call void @_ZN4juce13ScopedPointerINS_13ComponentPeerEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %185

100:                                              ; preds = %85
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %11) #4
  invoke void @_ZN4juce9Component18setTopLeftPositionENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(197) %21, ptr noundef %19)
          to label %101 unwind label %96

101:                                              ; preds = %100
  store i32 0, ptr %18, align 4
  br label %102

102:                                              ; preds = %101, %87
  call void @_ZN4juce13ScopedPointerINS_13ComponentPeerEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %103 = load i32, ptr %18, align 4
  switch i32 %103, label %182 [
    i32 0, label %104
  ]

104:                                              ; preds = %102
  br label %105

105:                                              ; preds = %104, %48
  %106 = getelementptr inbounds %"class.juce::Component", ptr %21, i32 0, i32 3
  %107 = load ptr, ptr %106, align 8, !tbaa !15
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %117

109:                                              ; preds = %105
  %110 = getelementptr inbounds %"class.juce::Component", ptr %21, i32 0, i32 3
  %111 = load ptr, ptr %110, align 8, !tbaa !15
  invoke void @_ZN4juce9Component20removeChildComponentEPS0_(ptr noundef nonnull align 8 dereferenceable(197) %111, ptr noundef %21)
          to label %112 unwind label %113

112:                                              ; preds = %109
  br label %117

113:                                              ; preds = %179, %176, %170, %160, %146, %139, %133, %132, %130, %119, %109
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %9, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %10, align 4
  br label %185

117:                                              ; preds = %112, %105
  %118 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEneEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef null) #4
  br i1 %118, label %119, label %181

119:                                              ; preds = %117
  %120 = getelementptr inbounds %"class.juce::Component", ptr %21, i32 0, i32 17
  %121 = load i16, ptr %120, align 8
  %122 = and i16 %121, -2
  %123 = or i16 %122, 1
  store i16 %123, ptr %120, align 8
  %124 = load i32, ptr %5, align 4, !tbaa !9
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = load ptr, ptr %21, align 8, !tbaa !13
  %127 = getelementptr inbounds ptr, ptr %126, i64 44
  %128 = load ptr, ptr %127, align 8
  %129 = invoke noundef ptr %128(ptr noundef nonnull align 8 dereferenceable(197) %21, i32 noundef %124, ptr noundef %125)
          to label %130 unwind label %113

130:                                              ; preds = %119
  store ptr %129, ptr %7, align 8, !tbaa !5
  %131 = invoke noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
          to label %132 unwind label %113

132:                                              ; preds = %130
  invoke void @_ZN4juce7Desktop19addDesktopComponentEPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(360) %131, ptr noundef %21)
          to label %133 unwind label %113

133:                                              ; preds = %132
  %134 = getelementptr inbounds %"class.juce::Component", ptr %21, i32 0, i32 4
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(8) %11) #4
  call void @_ZN4juce9RectangleIiE11setPositionENS_5PointIiEE(ptr noundef nonnull align 4 dereferenceable(16) %134, ptr noundef %20) #4
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN4juce13ComponentPeer12updateBoundsEv(ptr noundef nonnull align 8 dereferenceable(77) %135)
          to label %136 unwind label %113

136:                                              ; preds = %133
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = icmp sge i32 %137, 0
  br i1 %138, label %139, label %146

139:                                              ; preds = %136
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = load i32, ptr %16, align 4, !tbaa !9
  %142 = load ptr, ptr %140, align 8, !tbaa !13
  %143 = getelementptr inbounds ptr, ptr %142, i64 34
  %144 = load ptr, ptr %143, align 8
  invoke void %144(ptr noundef nonnull align 8 dereferenceable(77) %140, i32 noundef %141)
          to label %145 unwind label %113

145:                                              ; preds = %139
  br label %146

146:                                              ; preds = %145, %136
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %21) #4
  %149 = load ptr, ptr %147, align 8, !tbaa !13
  %150 = getelementptr inbounds ptr, ptr %149, i64 3
  %151 = load ptr, ptr %150, align 8
  invoke void %151(ptr noundef nonnull align 8 dereferenceable(77) %147, i1 noundef zeroext %148)
          to label %152 unwind label %113

152:                                              ; preds = %146
  %153 = call noundef ptr @_ZN4juce13ComponentPeer10getPeerForEPKNS_9ComponentE(ptr noundef %21) #4
  store ptr %153, ptr %7, align 8, !tbaa !5
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = icmp eq ptr %154, null
  br i1 %155, label %156, label %157

156:                                              ; preds = %152
  store i32 1, ptr %18, align 4
  br label %182

157:                                              ; preds = %152
  %158 = load i8, ptr %12, align 1, !tbaa !11, !range !41, !noundef !42
  %159 = trunc i8 %158 to i1
  br i1 %159, label %160, label %167

160:                                              ; preds = %157
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = load ptr, ptr %161, align 8, !tbaa !13
  %163 = getelementptr inbounds ptr, ptr %162, i64 15
  %164 = load ptr, ptr %163, align 8
  invoke void %164(ptr noundef nonnull align 8 dereferenceable(77) %161, i1 noundef zeroext true)
          to label %165 unwind label %113

165:                                              ; preds = %160
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4juce13ComponentPeer22setNonFullScreenBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(77) %166, ptr noundef nonnull align 4 dereferenceable(16) %15) #4
  br label %167

167:                                              ; preds = %165, %157
  %168 = load i8, ptr %13, align 1, !tbaa !11, !range !41, !noundef !42
  %169 = trunc i8 %168 to i1
  br i1 %169, label %170, label %176

170:                                              ; preds = %167
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = load ptr, ptr %171, align 8, !tbaa !13
  %173 = getelementptr inbounds ptr, ptr %172, i64 13
  %174 = load ptr, ptr %173, align 8
  invoke void %174(ptr noundef nonnull align 8 dereferenceable(77) %171, i1 noundef zeroext true)
          to label %175 unwind label %113

175:                                              ; preds = %170
  br label %176

176:                                              ; preds = %175, %167
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN4juce13ComponentPeer14setConstrainerEPNS_26ComponentBoundsConstrainerE(ptr noundef nonnull align 8 dereferenceable(77) %177, ptr noundef %178) #4
  invoke void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %21)
          to label %179 unwind label %113

179:                                              ; preds = %176
  invoke void @_ZN4juce9Component24internalHierarchyChangedEv(ptr noundef nonnull align 8 dereferenceable(197) %21)
          to label %180 unwind label %113

180:                                              ; preds = %179
  br label %181

181:                                              ; preds = %180, %117
  store i32 0, ptr %18, align 4
  br label %182

182:                                              ; preds = %181, %156, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %183 = load i32, ptr %18, align 4
  switch i32 %183, label %189 [
    i32 0, label %184
  ]

184:                                              ; preds = %182
  br label %188

185:                                              ; preds = %113, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %186

186:                                              ; preds = %185, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %187

187:                                              ; preds = %186, %88
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %192

188:                                              ; preds = %184, %35
  store i32 0, ptr %18, align 4
  br label %189

189:                                              ; preds = %188, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  %190 = load i32, ptr %18, align 4
  switch i32 %190, label %197 [
    i32 0, label %191
    i32 1, label %191
  ]

191:                                              ; preds = %189, %189
  ret void

192:                                              ; preds = %187
  %193 = load ptr, ptr %9, align 8
  %194 = load i32, ptr %10, align 4
  %195 = insertvalue { ptr, i32 } poison, ptr %193, 0
  %196 = insertvalue { ptr, i32 } %195, i32 %194, 1
  resume { ptr, i32 } %196

197:                                              ; preds = %189
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4juce13ComponentPeer10getPeerForEPKNS_9ComponentE(ptr noundef) #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component17getScreenPositionEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 8 dereferenceable(197)) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce13ComponentPeer22getNonFullScreenBoundsEv(ptr noundef nonnull align 8 dereferenceable(77)) #0 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiE11setPositionENS_5PointIiEE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ComponentPeer14setConstrainerEPNS_26ComponentBoundsConstrainerE(ptr noundef nonnull align 8 dereferenceable(77), ptr noundef) #0 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 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !6, i64 24}
!16 = !{!"_ZTSN4juce9ComponentE", !17, i64 0, !18, i64 8, !18, i64 16, !6, i64 24, !20, i64 32, !22, i64 48, !23, i64 56, !24, i64 64, !6, i64 88, !27, i64 96, !6, i64 104, !28, i64 112, !29, i64 120, !30, i64 128, !31, i64 136, !35, i64 160, !39, 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, !10, i64 8, !10, i64 12}
!21 = !{!"_ZTSN4juce5PointIiEE", !10, i64 0, !10, i64 4}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!24 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !25, i64 0, !10, i64 16}
!25 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !26, i64 0, !10, i64 8}
!26 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!27 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!29 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!30 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!31 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !32, i64 0}
!32 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !33, i64 0, !10, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !34, i64 0, !10, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!35 = !{!"_ZTSN4juce13NamedValueSetE", !36, i64 0}
!36 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !37, i64 0, !10, i64 16}
!37 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !38, i64 0, !10, i64 8}
!38 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!39 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !40, i64 0}
!40 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!41 = !{i8 0, i8 2}
!42 = !{}


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

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

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component12addToDesktopEiPv(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.juce::WeakReference", align 8
  %5 = alloca %"class.juce::Point", align 4
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = alloca %"class.juce::ScopedPointer.14", align 8
  %8 = alloca %"class.juce::Point", align 4
  %9 = alloca %"class.juce::Point", align 4
  %10 = tail call noundef zeroext i1 @_ZNK4juce9Component8isOpaqueEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  %11 = and i32 %1, 2147483647
  %masksel = select i1 %10, i32 0, i32 -2147483648
  %.041 = or disjoint i32 %masksel, %11
  %12 = tail call noundef ptr @_ZN4juce13ComponentPeer10getPeerForEPKNS_9ComponentE(ptr noundef nonnull %0) #4
  %13 = icmp eq ptr %12, null
  br i1 %13, label %16, label %14

14:                                               ; preds = %3
  %15 = tail call noundef i32 @_ZNK4juce13ComponentPeer13getStyleFlagsEv(ptr noundef nonnull align 8 dereferenceable(77) %12) #4
  %.not = icmp eq i32 %.041, %15
  br i1 %.not, label %110, label %16

16:                                               ; preds = %14, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %0)
  %17 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  %18 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 1, i32 noundef %17)
  %19 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  %20 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 1, i32 noundef %19)
  invoke void @_ZN4juce9Component7setSizeEii(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %18, i32 noundef %20)
          to label %21 unwind label %50

21:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  invoke void @_ZNK4juce9Component17getScreenPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %5, ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %22 unwind label %52

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #4
  br i1 %13, label %58, label %23

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @_ZN4juce13ScopedPointerINS_13ComponentPeerEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %12) #4
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 128
  %26 = load ptr, ptr %25, align 8
  %27 = invoke noundef zeroext i1 %26(ptr noundef nonnull align 8 dereferenceable(77) %12)
          to label %28 unwind label %54

28:                                               ; preds = %23
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 112
  %31 = load ptr, ptr %30, align 8
  %32 = invoke noundef zeroext i1 %31(ptr noundef nonnull align 8 dereferenceable(77) %12)
          to label %33 unwind label %54

33:                                               ; preds = %28
  %34 = call noundef ptr @_ZNK4juce13ComponentPeer14getConstrainerEv(ptr noundef nonnull align 8 dereferenceable(77) %12) #4
  %35 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce13ComponentPeer22getNonFullScreenBoundsEv(ptr noundef nonnull align 8 dereferenceable(77) %12) #4
  %36 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %35) #4
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 264
  %39 = load ptr, ptr %38, align 8
  %40 = invoke noundef i32 %39(ptr noundef nonnull align 8 dereferenceable(77) %12)
          to label %41 unwind label %54

41:                                               ; preds = %33
  %42 = getelementptr inbounds i8, ptr %0, i64 192
  %43 = load i16, ptr %42, align 8
  %44 = and i16 %43, -2
  store i16 %44, ptr %42, align 8
  %45 = invoke noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
          to label %46 unwind label %54

46:                                               ; preds = %41
  invoke void @_ZN4juce7Desktop22removeDesktopComponentEPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(360) %45, ptr noundef nonnull %0)
          to label %47 unwind label %54

47:                                               ; preds = %46
  invoke void @_ZN4juce9Component24internalHierarchyChangedEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %48 unwind label %54

48:                                               ; preds = %47
  %49 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEeqEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef null) #4
  br i1 %49, label %.critedge, label %56

50:                                               ; preds = %16
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %109

52:                                               ; preds = %21
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %108

54:                                               ; preds = %56, %47, %46, %41, %33, %28, %23
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce13ScopedPointerINS_13ComponentPeerEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %107

56:                                               ; preds = %48
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %5) #4
  invoke void @_ZN4juce9Component18setTopLeftPositionENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %8)
          to label %57 unwind label %54

57:                                               ; preds = %56
  call void @_ZN4juce13ScopedPointerINS_13ComponentPeerEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %58

58:                                               ; preds = %57, %22
  %.035 = phi i1 [ %27, %57 ], [ false, %22 ]
  %.034 = phi i1 [ %32, %57 ], [ false, %22 ]
  %.033 = phi ptr [ %34, %57 ], [ null, %22 ]
  %.032 = phi i32 [ %40, %57 ], [ -1, %22 ]
  %59 = getelementptr inbounds i8, ptr %0, i64 24
  %60 = load ptr, ptr %59, align 8, !tbaa !8
  %.not47 = icmp eq ptr %60, null
  br i1 %.not47, label %64, label %61

61:                                               ; preds = %58
  invoke void @_ZN4juce9Component20removeChildComponentEPS0_(ptr noundef nonnull align 8 dereferenceable(197) %60, ptr noundef nonnull %0)
          to label %64 unwind label %62

62:                                               ; preds = %105, %104, %100, %94, %85, %81, %77, %76, %74, %66, %61
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %107

64:                                               ; preds = %61, %58
  %65 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEneEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef null) #4
  br i1 %65, label %66, label %106

66:                                               ; preds = %64
  %67 = getelementptr inbounds i8, ptr %0, i64 192
  %68 = load i16, ptr %67, align 8
  %69 = or i16 %68, 1
  store i16 %69, ptr %67, align 8
  %70 = load ptr, ptr %0, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 352
  %72 = load ptr, ptr %71, align 8
  %73 = invoke noundef ptr %72(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %.041, ptr noundef %2)
          to label %74 unwind label %62

74:                                               ; preds = %66
  %75 = invoke noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
          to label %76 unwind label %62

76:                                               ; preds = %74
  invoke void @_ZN4juce7Desktop19addDesktopComponentEPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(360) %75, ptr noundef nonnull %0)
          to label %77 unwind label %62

77:                                               ; preds = %76
  %78 = getelementptr inbounds i8, ptr %0, i64 32
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %5) #4
  call void @_ZN4juce9RectangleIiE11setPositionENS_5PointIiEE(ptr noundef nonnull align 4 dereferenceable(16) %78, ptr noundef nonnull %9) #4
  invoke void @_ZN4juce13ComponentPeer12updateBoundsEv(ptr noundef nonnull align 8 dereferenceable(77) %73)
          to label %79 unwind label %62

79:                                               ; preds = %77
  %80 = icmp sgt i32 %.032, -1
  br i1 %80, label %81, label %85

81:                                               ; preds = %79
  %82 = load ptr, ptr %73, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 272
  %84 = load ptr, ptr %83, align 8
  invoke void %84(ptr noundef nonnull align 8 dereferenceable(77) %73, i32 noundef %.032)
          to label %85 unwind label %62

85:                                               ; preds = %81, %79
  %86 = call noundef zeroext i1 @_ZNK4juce9Component9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  %87 = load ptr, ptr %73, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 24
  %89 = load ptr, ptr %88, align 8
  invoke void %89(ptr noundef nonnull align 8 dereferenceable(77) %73, i1 noundef zeroext %86)
          to label %90 unwind label %62

90:                                               ; preds = %85
  %91 = call noundef ptr @_ZN4juce13ComponentPeer10getPeerForEPKNS_9ComponentE(ptr noundef nonnull %0) #4
  %92 = icmp eq ptr %91, null
  br i1 %92, label %.critedge52, label %93

93:                                               ; preds = %90
  br i1 %.035, label %94, label %99

94:                                               ; preds = %93
  %95 = load ptr, ptr %91, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 120
  %97 = load ptr, ptr %96, align 8
  invoke void %97(ptr noundef nonnull align 8 dereferenceable(77) %91, i1 noundef zeroext true)
          to label %98 unwind label %62

98:                                               ; preds = %94
  call void @_ZN4juce13ComponentPeer22setNonFullScreenBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(77) %91, ptr noundef nonnull align 4 dereferenceable(16) %6) #4
  br label %99

99:                                               ; preds = %98, %93
  br i1 %.034, label %100, label %104

100:                                              ; preds = %99
  %101 = load ptr, ptr %91, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %101, i64 104
  %103 = load ptr, ptr %102, align 8
  invoke void %103(ptr noundef nonnull align 8 dereferenceable(77) %91, i1 noundef zeroext true)
          to label %104 unwind label %62

104:                                              ; preds = %100, %99
  call void @_ZN4juce13ComponentPeer14setConstrainerEPNS_26ComponentBoundsConstrainerE(ptr noundef nonnull align 8 dereferenceable(77) %91, ptr noundef %.033) #4
  invoke void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %105 unwind label %62

105:                                              ; preds = %104
  invoke void @_ZN4juce9Component24internalHierarchyChangedEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
          to label %106 unwind label %62

.critedge:                                        ; preds = %48
  call void @_ZN4juce13ScopedPointerINS_13ComponentPeerEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %.critedge52

106:                                              ; preds = %64, %105
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %110

107:                                              ; preds = %62, %54
  %.pn = phi { ptr, i32 } [ %63, %62 ], [ %55, %54 ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %108

108:                                              ; preds = %107, %52
  %.pn.pn = phi { ptr, i32 } [ %.pn, %107 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %109

109:                                              ; preds = %108, %50
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %108 ], [ %51, %50 ]
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn.pn.pn

.critedge52:                                      ; preds = %90, %.critedge
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %110

110:                                              ; preds = %14, %106, %.critedge52
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4juce13ComponentPeer10getPeerForEPKNS_9ComponentE(ptr noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component17getScreenPositionEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce13ComponentPeer22getNonFullScreenBoundsEv(ptr noundef nonnull align 8 dereferenceable(77)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiE11setPositionENS_5PointIiEE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ComponentPeer14setConstrainerEPNS_26ComponentBoundsConstrainerE(ptr noundef nonnull align 8 dereferenceable(77), ptr noundef) local_unnamed_addr #0 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 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !13, i64 24}
!9 = !{!"_ZTSN4juce9ComponentE", !10, i64 0, !11, i64 8, !11, i64 16, !13, i64 24, !15, i64 32, !18, i64 48, !19, i64 56, !20, i64 64, !13, i64 88, !23, i64 96, !13, i64 104, !24, i64 112, !25, i64 120, !26, i64 128, !27, i64 136, !31, i64 160, !35, i64 184, !14, i64 192, !14, i64 196}
!10 = !{!"_ZTSN4juce13MouseListenerE"}
!11 = !{!"_ZTSN4juce6StringE", !12, i64 0}
!12 = !{!"_ZTSN4juce16CharPointer_UTF8E", !13, i64 0}
!13 = !{!"any pointer", !14, i64 0}
!14 = !{!"omnipotent char", !7, i64 0}
!15 = !{!"_ZTSN4juce9RectangleIiEE", !16, i64 0, !17, i64 8, !17, i64 12}
!16 = !{!"_ZTSN4juce5PointIiEE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !14, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !13, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !13, 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", !13, i64 0}
!23 = !{!"_ZTSN4juce11MouseCursorE", !13, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !13, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !13, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !13, 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", !13, 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", !13, i64 0}
!35 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !36, i64 0}
!36 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !13, i64 0}


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