; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Point.35" = type { float, float }
%"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" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%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: mustprogress uwtable
declare dso_local noundef ptr @_ZNK4juce9Component7getPeerEv(ptr noundef nonnull align 8 dereferenceable(197)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13ScopedPointerINS_20CachedComponentImageEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #3 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13ScopedPointerINS_20CachedComponentImageEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component24internalRepaintUncheckedENS_9RectangleIiEEb(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %1, i1 noundef zeroext %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca %"class.juce::Rectangle", align 4
  %9 = alloca %"class.juce::Rectangle", align 4
  %10 = alloca %"class.juce::Point.35", align 4
  %11 = alloca %"class.juce::Rectangle", align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.juce::Rectangle", align 4
  %15 = alloca %"class.juce::Rectangle", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %16 = zext i1 %2 to i8
  store i8 %16, ptr %6, align 1, !tbaa !9
  %17 = load ptr, ptr %4, align 8
  %18 = getelementptr inbounds %"class.juce::Component", ptr %17, i32 0, i32 17
  %19 = load i16, ptr %18, align 8
  %20 = lshr i16 %19, 1
  %21 = and i16 %20, 1
  %22 = trunc i16 %21 to i1
  br i1 %22, label %23, label %110

23:                                               ; preds = %3
  %24 = getelementptr inbounds %"class.juce::Component", ptr %17, i32 0, i32 11
  %25 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20CachedComponentImageEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %46

27:                                               ; preds = %23
  %28 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %29 = trunc i8 %28 to i1
  br i1 %29, label %30, label %37

30:                                               ; preds = %27
  %31 = getelementptr inbounds %"class.juce::Component", ptr %17, i32 0, i32 11
  %32 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20CachedComponentImageEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #4
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  %34 = getelementptr inbounds ptr, ptr %33, i64 3
  %35 = load ptr, ptr %34, align 8
  %36 = call noundef zeroext i1 %35(ptr noundef nonnull align 8 dereferenceable(8) %32)
  br i1 %36, label %45, label %44

37:                                               ; preds = %27
  %38 = getelementptr inbounds %"class.juce::Component", ptr %17, i32 0, i32 11
  %39 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20CachedComponentImageEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #4
  %40 = load ptr, ptr %39, align 8, !tbaa !13
  %41 = getelementptr inbounds ptr, ptr %40, i64 4
  %42 = load ptr, ptr %41, align 8
  %43 = call noundef zeroext i1 %42(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 4 dereferenceable(16) %1)
  br i1 %43, label %45, label %44

44:                                               ; preds = %37, %30
  br label %110

45:                                               ; preds = %37, %30
  br label %46

46:                                               ; preds = %45, %23
  %47 = getelementptr inbounds %"class.juce::Component", ptr %17, i32 0, i32 17
  %48 = load i16, ptr %47, align 8
  %49 = and i16 %48, 1
  %50 = trunc i16 %49 to i1
  br i1 %50, label %51, label %90

51:                                               ; preds = %46
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %54 = call noundef ptr @_ZNK4juce9Component7getPeerEv(ptr noundef nonnull align 8 dereferenceable(197) %17)
  store ptr %54, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %89

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #4
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load ptr, ptr %58, align 8, !tbaa !13
  %60 = getelementptr inbounds ptr, ptr %59, i64 8
  %61 = load ptr, ptr %60, align 8
  call void %61(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %8, ptr noundef nonnull align 8 dereferenceable(77) %58)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  %62 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %8) #4
  %63 = sitofp i32 %62 to float
  %64 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %17) #4
  %65 = sitofp i32 %64 to float
  %66 = fdiv float %63, %65
  %67 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %8) #4
  %68 = sitofp i32 %67 to float
  %69 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %17) #4
  %70 = sitofp i32 %69 to float
  %71 = fdiv float %68, %70
  call void @_ZN4juce5PointIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %66, float noundef %71) #4
  call void @_ZNK4juce9RectangleIiEmlINS_5PointIfEEEES1_T_(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %9, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef %10) #4
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %73 = getelementptr inbounds %"class.juce::Component", ptr %17, i32 0, i32 6
  %74 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15AffineTransformEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %73) #4
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %79

76:                                               ; preds = %57
  %77 = getelementptr inbounds %"class.juce::Component", ptr %17, i32 0, i32 6
  %78 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNK4juce13ScopedPointerINS_15AffineTransformEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %77) #4
  call void @_ZNK4juce9RectangleIiE13transformedByERKNS_15AffineTransformE(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(24) %78) #4
  br label %80

79:                                               ; preds = %57
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %9) #4
  br label %80

80:                                               ; preds = %79, %76
  %81 = load ptr, ptr %72, align 8, !tbaa !13
  %82 = getelementptr inbounds ptr, ptr %81, i64 29
  %83 = load ptr, ptr %82, align 8
  invoke void %83(ptr noundef nonnull align 8 dereferenceable(77) %72, ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %84 unwind label %85

84:                                               ; preds = %80
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #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) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #4
  br label %89

85:                                               ; preds = %80
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %12, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %13, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #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) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %111

89:                                               ; preds = %84, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %109

90:                                               ; preds = %46
  %91 = getelementptr inbounds %"class.juce::Component", ptr %17, i32 0, i32 3
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %108

94:                                               ; preds = %90
  %95 = getelementptr inbounds %"class.juce::Component", ptr %17, i32 0, i32 3
  %96 = load ptr, ptr %95, align 8, !tbaa !15
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %1) #4
  invoke void @_ZN4juce9Component16ComponentHelpers20convertToParentSpaceINS_9RectangleIiEEEET_RKS0_S5_(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %14, ptr noundef nonnull align 8 dereferenceable(197) %17, ptr noundef %15)
          to label %97 unwind label %99

97:                                               ; preds = %94
  invoke void @_ZN4juce9Component15internalRepaintENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %96, ptr noundef %14)
          to label %98 unwind label %103

98:                                               ; preds = %97
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %14) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15) #4
  br label %108

99:                                               ; preds = %94
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %12, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %13, align 4
  br label %107

103:                                              ; preds = %97
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %12, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %13, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %14) #4
  br label %107

107:                                              ; preds = %103, %99
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15) #4
  br label %111

108:                                              ; preds = %98, %90
  br label %109

109:                                              ; preds = %108, %89
  br label %110

110:                                              ; preds = %109, %44, %3
  ret void

111:                                              ; preds = %107, %85
  %112 = load ptr, ptr %12, align 8
  %113 = load i32, ptr %13, align 4
  %114 = insertvalue { ptr, i32 } poison, ptr %112, 0
  %115 = insertvalue { ptr, i32 } %114, i32 %113, 1
  resume { ptr, i32 } %115
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE13transformedByERKNS_15AffineTransformE(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(24)) #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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!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, !23, i64 48, !24, i64 56, !25, i64 64, !6, i64 88, !28, i64 96, !6, i64 104, !29, i64 112, !30, i64 120, !31, i64 128, !32, i64 136, !36, i64 160, !40, i64 184, !7, i64 192, !7, i64 196}
!17 = !{!"_ZTSN4juce13MouseListenerE"}
!18 = !{!"_ZTSN4juce6StringE", !19, i64 0}
!19 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!20 = !{!"_ZTSN4juce9RectangleIiEE", !21, i64 0, !22, i64 8, !22, i64 12}
!21 = !{!"_ZTSN4juce5PointIiEE", !22, i64 0, !22, i64 4}
!22 = !{!"int", !7, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!25 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !26, i64 0, !22, i64 16}
!26 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !27, i64 0, !22, i64 8}
!27 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!28 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!29 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!30 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!31 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!32 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !22, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !35, i64 0, !22, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!36 = !{!"_ZTSN4juce13NamedValueSetE", !37, i64 0}
!37 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !38, i64 0, !22, i64 16}
!38 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !39, i64 0, !22, i64 8}
!39 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!40 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !41, i64 0}
!41 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component24internalRepaintUncheckedENS_9RectangleIiEEb(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef %1, i1 noundef zeroext %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.juce::Rectangle", align 4
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = alloca %"class.juce::Point.35", align 4
  %7 = alloca %"class.juce::Rectangle", align 4
  %8 = alloca %"class.juce::Rectangle", align 4
  %9 = alloca %"class.juce::Rectangle", align 4
  %10 = getelementptr inbounds i8, ptr %0, i64 192
  %11 = load i16, ptr %10, align 8
  %12 = and i16 %11, 2
  %.not = icmp eq i16 %12, 0
  br i1 %.not, label %69, label %13

13:                                               ; preds = %3
  %14 = getelementptr inbounds i8, ptr %0, i64 112
  %15 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_20CachedComponentImageEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  %.not10 = icmp eq ptr %15, null
  br i1 %.not10, label %27, label %16

16:                                               ; preds = %13
  %17 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_20CachedComponentImageEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  br i1 %2, label %19, label %23

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %18, i64 24
  %21 = load ptr, ptr %20, align 8
  %22 = tail call noundef zeroext i1 %21(ptr noundef nonnull align 8 dereferenceable(8) %17)
  br i1 %22, label %27, label %69

23:                                               ; preds = %16
  %24 = getelementptr inbounds i8, ptr %18, i64 32
  %25 = load ptr, ptr %24, align 8
  %26 = tail call noundef zeroext i1 %25(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(16) %1)
  br i1 %26, label %27, label %69

27:                                               ; preds = %19, %23, %13
  %28 = load i16, ptr %10, align 8
  %29 = trunc i16 %28 to i1
  br i1 %29, label %30, label %58

30:                                               ; preds = %27
  %31 = tail call noundef ptr @_ZNK4juce9Component7getPeerEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
  %.not13 = icmp eq ptr %31, null
  br i1 %.not13, label %69, label %32

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %33 = load ptr, ptr %31, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 64
  %35 = load ptr, ptr %34, align 8
  call void %35(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %4, ptr noundef nonnull align 8 dereferenceable(77) %31)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %36 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  %37 = sitofp i32 %36 to float
  %38 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  %39 = sitofp i32 %38 to float
  %40 = fdiv float %37, %39
  %41 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  %42 = sitofp i32 %41 to float
  %43 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  %44 = sitofp i32 %43 to float
  %45 = fdiv float %42, %44
  call void @_ZN4juce5PointIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %40, float noundef %45) #4
  call void @_ZNK4juce9RectangleIiEmlINS_5PointIfEEEES1_T_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %46 = getelementptr inbounds i8, ptr %0, i64 56
  %47 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15AffineTransformEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %46) #4
  %.not14 = icmp eq ptr %47, null
  br i1 %.not14, label %50, label %48

48:                                               ; preds = %32
  %49 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNK4juce13ScopedPointerINS_15AffineTransformEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #4
  call void @_ZNK4juce9RectangleIiE13transformedByERKNS_15AffineTransformE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %7, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(24) %49) #4
  br label %51

50:                                               ; preds = %32
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  br label %51

51:                                               ; preds = %50, %48
  %52 = load ptr, ptr %31, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i64 232
  %54 = load ptr, ptr %53, align 8
  invoke void %54(ptr noundef nonnull align 8 dereferenceable(77) %31, ptr noundef nonnull align 4 dereferenceable(16) %7)
          to label %55 unwind label %56

55:                                               ; preds = %51
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  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) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br label %69

56:                                               ; preds = %51
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  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) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br label %70

58:                                               ; preds = %27
  %59 = getelementptr inbounds i8, ptr %0, i64 24
  %60 = load ptr, ptr %59, align 8, !tbaa !8
  %.not11 = icmp eq ptr %60, null
  br i1 %.not11, label %69, label %61

61:                                               ; preds = %58
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %1) #4
  invoke void @_ZN4juce9Component16ComponentHelpers20convertToParentSpaceINS_9RectangleIiEEEET_RKS0_S5_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %8, ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull %9)
          to label %62 unwind label %64

62:                                               ; preds = %61
  invoke void @_ZN4juce9Component15internalRepaintENS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %60, ptr noundef nonnull %8)
          to label %63 unwind label %66

63:                                               ; preds = %62
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #4
  br label %69

64:                                               ; preds = %61
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %68

66:                                               ; preds = %62
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #4
  br label %68

68:                                               ; preds = %66, %64
  %.pn = phi { ptr, i32 } [ %67, %66 ], [ %65, %64 ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #4
  br label %70

69:                                               ; preds = %30, %55, %63, %58, %19, %23, %3
  ret void

70:                                               ; preds = %68, %56
  %.pn15 = phi { ptr, i32 } [ %57, %56 ], [ %.pn, %68 ]
  resume { ptr, i32 } %.pn15
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component16ComponentHelpers20convertToParentSpaceINS_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 #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE13transformedByERKNS_15AffineTransformE(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(24)) 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,SROAPass,SimplifyCFGPass,TailCallElimPass