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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.juce::Point" = type { i32, i32 }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::ComponentPeer" = type <{ ptr, ptr, i32, %"class.juce::Rectangle", [4 x i8], ptr, %"class.juce::WeakReference", %"class.juce::WeakReference", ptr, i32, i8, [3 x i8] }>
%"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 }

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 uwtable
declare dso_local void @_ZN4juce9Component27sendVisibilityChangeMessageEv(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 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 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) #3 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 @_ZN4juce9Component24sendMovedResizedMessagesEbb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext, i1 noundef zeroext) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce12ModifierKeys22updateCurrentModifiersEv() #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce13ComponentPeer20handleMovedOrResizedEv(ptr noundef nonnull align 8 dereferenceable(77) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca %"class.juce::WeakReference", align 8
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.juce::Rectangle", align 4
  %10 = alloca i8, align 1
  %11 = alloca %"class.juce::Point", align 4
  %12 = alloca %"class.juce::Point", align 4
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @_ZN4juce12ModifierKeys22updateCurrentModifiersEv() #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #4
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds ptr, ptr %16, i64 14
  %18 = load ptr, ptr %17, align 8
  %19 = call noundef zeroext i1 %18(ptr noundef nonnull align 8 dereferenceable(77) %15)
  %20 = zext i1 %19 to i8
  store i8 %20, ptr %3, align 1, !tbaa !11
  %21 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds %"class.juce::Component", ptr %22, i32 0, i32 17
  %24 = load i16, ptr %23, align 8
  %25 = and i16 %24, 1
  %26 = trunc i16 %25 to i1
  br i1 %26, label %27, label %94

27:                                               ; preds = %1
  %28 = load i8, ptr %3, align 1, !tbaa !11, !range !20, !noundef !21
  %29 = trunc i8 %28 to i1
  br i1 %29, label %94, label %30

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %31 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %32)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  %33 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = load ptr, ptr %15, align 8, !tbaa !9
  %36 = getelementptr inbounds ptr, ptr %35, i64 8
  %37 = load ptr, ptr %36, align 8
  invoke void %37(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %6, ptr noundef nonnull align 8 dereferenceable(77) %15)
          to label %38 unwind label %70

38:                                               ; preds = %30
  call void @_ZN4juce9Component16ComponentHelpers22rawPeerPositionToLocalINS_9RectangleIiEEEET_RKS0_S5_(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %5, ptr noundef nonnull align 8 dereferenceable(197) %34, ptr noundef %6) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  %39 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !13
  %41 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %40) #4
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %41) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %9) #4
  call void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %12, ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  %42 = call noundef zeroext i1 @_ZNK4juce5PointIiEneES1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %43 = zext i1 %42 to i8
  store i8 %43, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  %44 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %9) #4
  %45 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  %46 = icmp ne i32 %44, %45
  br i1 %46, label %51, label %47

47:                                               ; preds = %38
  %48 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %9) #4
  %49 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  %50 = icmp ne i32 %48, %49
  br label %51

51:                                               ; preds = %47, %38
  %52 = phi i1 [ true, %38 ], [ %50, %47 ]
  %53 = zext i1 %52 to i8
  store i8 %53, ptr %13, align 1, !tbaa !11
  %54 = load i8, ptr %10, align 1, !tbaa !11, !range !20, !noundef !21
  %55 = trunc i8 %54 to i1
  br i1 %55, label %59, label %56

56:                                               ; preds = %51
  %57 = load i8, ptr %13, align 1, !tbaa !11, !range !20, !noundef !21
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %89

59:                                               ; preds = %56, %51
  %60 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  %62 = getelementptr inbounds %"class.juce::Component", ptr %61, i32 0, i32 4
  %63 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %62, ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  %64 = load i8, ptr %13, align 1, !tbaa !11, !range !20, !noundef !21
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %78

66:                                               ; preds = %59
  %67 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !13
  invoke void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %68)
          to label %69 unwind label %74

69:                                               ; preds = %66
  br label %78

70:                                               ; preds = %30
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  br label %93

74:                                               ; preds = %78, %66
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %7, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  br label %93

78:                                               ; preds = %69, %59
  %79 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = load i8, ptr %10, align 1, !tbaa !11, !range !20, !noundef !21
  %82 = trunc i8 %81 to i1
  %83 = load i8, ptr %13, align 1, !tbaa !11, !range !20, !noundef !21
  %84 = trunc i8 %83 to i1
  invoke void @_ZN4juce9Component24sendMovedResizedMessagesEbb(ptr noundef nonnull align 8 dereferenceable(197) %80, i1 noundef zeroext %82, i1 noundef zeroext %84)
          to label %85 unwind label %74

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

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

88:                                               ; preds = %85
  br label %89

89:                                               ; preds = %88, %56
  store i32 0, ptr %14, align 4
  br label %90

90:                                               ; preds = %89, %87
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %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 %4) #4
  %91 = load i32, ptr %14, align 4
  switch i32 %91, label %129 [
    i32 0, label %92
  ]

92:                                               ; preds = %90
  br label %94

93:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 16, ptr %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 %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #4
  br label %132

94:                                               ; preds = %92, %27, %1
  %95 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 10
  %96 = load i8, ptr %95, align 4, !tbaa !22, !range !20, !noundef !21
  %97 = trunc i8 %96 to i1
  %98 = zext i1 %97 to i32
  %99 = load i8, ptr %3, align 1, !tbaa !11, !range !20, !noundef !21
  %100 = trunc i8 %99 to i1
  %101 = zext i1 %100 to i32
  %102 = icmp ne i32 %98, %101
  br i1 %102, label %103, label %117

103:                                              ; preds = %94
  %104 = load i8, ptr %3, align 1, !tbaa !11, !range !20, !noundef !21
  %105 = trunc i8 %104 to i1
  %106 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 10
  %107 = zext i1 %105 to i8
  store i8 %107, ptr %106, align 4, !tbaa !22
  %108 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  %110 = load i8, ptr %3, align 1, !tbaa !11, !range !20, !noundef !21
  %111 = trunc i8 %110 to i1
  %112 = load ptr, ptr %109, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %112, i64 15
  %114 = load ptr, ptr %113, align 8
  call void %114(ptr noundef nonnull align 8 dereferenceable(197) %109, i1 noundef zeroext %111)
  %115 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !13
  call void @_ZN4juce9Component27sendVisibilityChangeMessageEv(ptr noundef nonnull align 8 dereferenceable(197) %116)
  br label %117

117:                                              ; preds = %103, %94
  %118 = load ptr, ptr %15, align 8, !tbaa !9
  %119 = getelementptr inbounds ptr, ptr %118, i64 16
  %120 = load ptr, ptr %119, align 8
  %121 = call noundef zeroext i1 %120(ptr noundef nonnull align 8 dereferenceable(77) %15)
  br i1 %121, label %128, label %122

122:                                              ; preds = %117
  %123 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !13
  %125 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %124) #4
  %126 = getelementptr inbounds %"class.juce::ComponentPeer", ptr %15, i32 0, i32 3
  %127 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %126, ptr noundef nonnull align 4 dereferenceable(16) %125) #4
  br label %128

128:                                              ; preds = %122, %117
  store i32 0, ptr %14, align 4
  br label %129

129:                                              ; preds = %128, %90
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #4
  %130 = load i32, ptr %14, align 4
  switch i32 %130, label %137 [
    i32 0, label %131
    i32 1, label %131
  ]

131:                                              ; preds = %129, %129
  ret void

132:                                              ; preds = %93
  %133 = load ptr, ptr %7, align 8
  %134 = load i32, ptr %8, align 4
  %135 = insertvalue { ptr, i32 } poison, ptr %133, 0
  %136 = insertvalue { ptr, i32 } %135, i32 %134, 1
  resume { ptr, i32 } %136

137:                                              ; preds = %129
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9Component16ComponentHelpers22rawPeerPositionToLocalINS_9RectangleIiEEEET_RKS0_S5_(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(197), 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSN4juce13ComponentPeerE", !6, i64 8, !15, i64 16, !16, i64 20, !6, i64 40, !18, i64 48, !18, i64 56, !6, i64 64, !15, i64 72, !12, i64 76}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN4juce9RectangleIiEE", !17, i64 0, !15, i64 8, !15, i64 12}
!17 = !{!"_ZTSN4juce5PointIiEE", !15, i64 0, !15, i64 4}
!18 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !19, i64 0}
!19 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!14, !12, i64 76}


; 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::Point" = type { i32, i32 }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::Rectangle" = type { %"class.juce::Point", 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 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 uwtable
declare dso_local void @_ZN4juce9Component27sendVisibilityChangeMessageEv(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 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 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 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 @_ZN4juce9Component24sendMovedResizedMessagesEbb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce12ModifierKeys22updateCurrentModifiersEv() local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce13ComponentPeer20handleMovedOrResizedEv(ptr noundef nonnull align 8 dereferenceable(77) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::WeakReference", align 8
  %3 = alloca %"class.juce::Rectangle", align 4
  %4 = alloca %"class.juce::Rectangle", align 4
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = alloca %"class.juce::Point", align 4
  %7 = alloca %"class.juce::Point", align 4
  tail call void @_ZN4juce12ModifierKeys22updateCurrentModifiersEv() #4
  %8 = load ptr, ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 112
  %10 = load ptr, ptr %9, align 8
  %11 = tail call noundef zeroext i1 %10(ptr noundef nonnull align 8 dereferenceable(77) %0)
  %12 = zext i1 %11 to i8
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !8
  %15 = getelementptr inbounds i8, ptr %14, i64 192
  %16 = load i16, ptr %15, align 8
  %17 = trunc i16 %16 to i1
  %.not16 = xor i1 %17, true
  %brmerge = or i1 %11, %.not16
  br i1 %brmerge, label %53, label %18

18:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %14)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %19 = load ptr, ptr %13, align 8, !tbaa !8
  %20 = load ptr, ptr %0, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 64
  %22 = load ptr, ptr %21, align 8
  invoke void %22(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %4, ptr noundef nonnull align 8 dereferenceable(77) %0)
          to label %23 unwind label %42

23:                                               ; preds = %18
  call void @_ZN4juce9Component16ComponentHelpers22rawPeerPositionToLocalINS_9RectangleIiEEEET_RKS0_S5_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %3, ptr noundef nonnull align 8 dereferenceable(197) %19, ptr noundef nonnull %4) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %24 = load ptr, ptr %13, align 8, !tbaa !8
  %25 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %24) #4
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %6, ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %7, ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  %26 = call noundef zeroext i1 @_ZNK4juce5PointIiEneES1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %27 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  %28 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  %.not = icmp eq i32 %27, %28
  br i1 %.not, label %32, label %.thread19

.thread19:                                        ; preds = %23
  %29 = load ptr, ptr %13, align 8, !tbaa !8
  %30 = getelementptr inbounds i8, ptr %29, i64 32
  %31 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  br label %40

32:                                               ; preds = %23
  %33 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  %34 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  %35 = icmp ne i32 %33, %34
  %brmerge17 = or i1 %26, %35
  br i1 %brmerge17, label %36, label %.critedge

36:                                               ; preds = %32
  %37 = load ptr, ptr %13, align 8, !tbaa !8
  %38 = getelementptr inbounds i8, ptr %37, i64 32
  %39 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  br i1 %35, label %40, label %46

40:                                               ; preds = %.thread19, %36
  %41 = load ptr, ptr %13, align 8, !tbaa !8
  invoke void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %41)
          to label %46 unwind label %44

42:                                               ; preds = %18
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %52

44:                                               ; preds = %46, %40
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  br label %52

46:                                               ; preds = %40, %36
  %47 = phi i1 [ true, %40 ], [ false, %36 ]
  %48 = load ptr, ptr %13, align 8, !tbaa !8
  invoke void @_ZN4juce9Component24sendMovedResizedMessagesEbb(ptr noundef nonnull align 8 dereferenceable(197) %48, i1 noundef zeroext %26, i1 noundef zeroext %47)
          to label %49 unwind label %44

49:                                               ; preds = %46
  %50 = call noundef zeroext i1 @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEeqEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef null) #4
  br i1 %50, label %51, label %.critedge

.critedge:                                        ; preds = %32, %49
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  br label %53

51:                                               ; preds = %49
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  br label %72

52:                                               ; preds = %44, %42
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  call void @_ZN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn

53:                                               ; preds = %.critedge, %1
  %54 = getelementptr inbounds i8, ptr %0, i64 76
  %55 = load i8, ptr %54, align 4, !tbaa !18, !range !19, !noundef !20
  %.not15 = icmp eq i8 %55, %12
  br i1 %.not15, label %62, label %56

56:                                               ; preds = %53
  store i8 %12, ptr %54, align 4, !tbaa !18
  %57 = load ptr, ptr %13, align 8, !tbaa !8
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 120
  %60 = load ptr, ptr %59, align 8
  call void %60(ptr noundef nonnull align 8 dereferenceable(197) %57, i1 noundef zeroext %11)
  %61 = load ptr, ptr %13, align 8, !tbaa !8
  call void @_ZN4juce9Component27sendVisibilityChangeMessageEv(ptr noundef nonnull align 8 dereferenceable(197) %61)
  br label %62

62:                                               ; preds = %56, %53
  %63 = load ptr, ptr %0, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 128
  %65 = load ptr, ptr %64, align 8
  %66 = call noundef zeroext i1 %65(ptr noundef nonnull align 8 dereferenceable(77) %0)
  br i1 %66, label %72, label %67

67:                                               ; preds = %62
  %68 = load ptr, ptr %13, align 8, !tbaa !8
  %69 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK4juce9Component9getBoundsEv(ptr noundef nonnull align 8 dereferenceable(197) %68) #4
  %70 = getelementptr inbounds i8, ptr %0, i64 20
  %71 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %70, ptr noundef nonnull align 4 dereferenceable(16) %69) #4
  br label %72

72:                                               ; preds = %62, %67, %51
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9Component16ComponentHelpers22rawPeerPositionToLocalINS_9RectangleIiEEEET_RKS0_S5_(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(197), 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, !10, i64 8}
!9 = !{!"_ZTSN4juce13ComponentPeerE", !10, i64 8, !12, i64 16, !13, i64 20, !10, i64 40, !15, i64 48, !15, i64 56, !10, i64 64, !12, i64 72, !17, i64 76}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"int", !11, i64 0}
!13 = !{!"_ZTSN4juce9RectangleIiEE", !14, i64 0, !12, i64 8, !12, i64 12}
!14 = !{!"_ZTSN4juce5PointIiEE", !12, i64 0, !12, i64 4}
!15 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !16, i64 0}
!16 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !10, i64 0}
!17 = !{!"bool", !11, i64 0}
!18 = !{!9, !17, i64 76}
!19 = !{i8 0, i8 2}
!20 = !{}


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