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

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

%"struct.juce::Desktop::Displays::Display" = type <{ %"class.juce::Rectangle", %"class.juce::Rectangle", double, double, i8, [7 x i8] }>
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::DisplayGeometry" = type { %"class.juce::Array.552" }
%"class.juce::Array.552" = type { %"class.juce::ArrayAllocationBase.553", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.553" = type <{ %"class.juce::HeapBlock.554", i32, [4 x i8] }>
%"class.juce::HeapBlock.554" = type { ptr }
%"struct.juce::DisplayGeometry::ExtendedInfo" = type <{ %"class.juce::Rectangle", %"class.juce::Rectangle", %"class.juce::Point", double, double, i8, [7 x i8] }>
%"class.juce::Desktop::Displays" = type { %"class.juce::Array.54" }
%"class.juce::Array.54" = type { %"class.juce::ArrayAllocationBase.55", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.55" = type <{ %"class.juce::HeapBlock.56", i32, [4 x i8] }>
%"class.juce::HeapBlock.56" = type { ptr }

@_ZN4juce7displayE = external global ptr, align 8

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 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 void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7Desktop8Displays12findDisplaysEf(ptr noundef nonnull align 8 dereferenceable(24) %0, float noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.juce::Desktop::Displays::Display", align 8
  %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
  %16 = alloca %"class.juce::Point", align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.juce::Desktop::Displays::Display", align 8
  %20 = alloca %"class.juce::Rectangle", align 4
  %21 = alloca %"class.juce::Rectangle", align 4
  %22 = alloca %"class.juce::Rectangle", align 4
  %23 = alloca %"class.juce::Point", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  %24 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %25 = load ptr, ptr @_ZN4juce7displayE, align 8, !tbaa !5
  %26 = load float, ptr %4, align 4, !tbaa !9
  %27 = fpext float %26 to double
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce15DisplayGeometry19getOrCreateInstanceEP9_XDisplayd(ptr noundef %25, double noundef %27)
  store ptr %28, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !11
  br label %29

29:                                               ; preds = %49, %2
  %30 = load i32, ptr %6, align 4, !tbaa !11
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.juce::DisplayGeometry", ptr %31, i32 0, i32 0
  %33 = call noundef i32 @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %32) #4
  %34 = icmp slt i32 %30, %33
  br i1 %34, label %35, label %52

35:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.juce::DisplayGeometry", ptr %36, i32 0, i32 0
  %38 = load i32, ptr %6, align 4, !tbaa !11
  %39 = call noundef nonnull align 8 dereferenceable(57) ptr @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %37, i32 noundef %38) #4
  store ptr %39, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.juce::DisplayGeometry::ExtendedInfo", ptr %40, i32 0, i32 5
  %42 = load i8, ptr %41, align 8, !tbaa !13, !range !19, !noundef !20
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %45

44:                                               ; preds = %35
  store i32 2, ptr %8, align 4
  br label %46

45:                                               ; preds = %35
  store i32 0, ptr %8, align 4
  br label %46

46:                                               ; preds = %45, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  %47 = load i32, ptr %8, align 4
  switch i32 %47, label %163 [
    i32 0, label %48
    i32 2, label %52
  ]

48:                                               ; preds = %46
  br label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %6, align 4, !tbaa !11
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %6, align 4, !tbaa !11
  br label %29, !llvm.loop !21

52:                                               ; preds = %46, %29
  %53 = load i32, ptr %6, align 4, !tbaa !11
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.juce::DisplayGeometry", ptr %54, i32 0, i32 0
  %56 = call noundef i32 @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %55) #4
  %57 = icmp sge i32 %53, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %52
  store i32 0, ptr %6, align 4, !tbaa !11
  br label %59

59:                                               ; preds = %58, %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.juce::DisplayGeometry", ptr %60, i32 0, i32 0
  %62 = load i32, ptr %6, align 4, !tbaa !11
  %63 = call noundef nonnull align 8 dereferenceable(57) ptr @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %61, i32 noundef %62) #4
  store ptr %63, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %10) #4
  call void @_ZN4juce7Desktop8Displays7DisplayC2Ev(ptr noundef nonnull align 8 dereferenceable(49) %10) #4
  %64 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %10, i32 0, i32 4
  store i8 1, ptr %64, align 8, !tbaa !23
  %65 = load float, ptr %4, align 4, !tbaa !9
  %66 = fpext float %65 to double
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.juce::DisplayGeometry::ExtendedInfo", ptr %67, i32 0, i32 4
  %69 = load double, ptr %68, align 8, !tbaa !25
  %70 = fmul double %66, %69
  %71 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %10, i32 0, i32 2
  store double %70, ptr %71, align 8, !tbaa !26
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.juce::DisplayGeometry::ExtendedInfo", ptr %72, i32 0, i32 3
  %74 = load double, ptr %73, align 8, !tbaa !27
  %75 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %10, i32 0, i32 3
  store double %74, ptr %75, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.juce::DisplayGeometry::ExtendedInfo", ptr %76, i32 0, i32 0
  invoke void @_ZN4juce15DisplayGeometry16physicalToScaledERKNS_9RectangleIiEE(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %77)
          to label %78 unwind label %98

78:                                               ; preds = %59
  %79 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %10, i32 0, i32 1
  %80 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %79, ptr noundef nonnull align 4 dereferenceable(16) %11) #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 @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.juce::DisplayGeometry::ExtendedInfo", ptr %81, i32 0, i32 1
  %83 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %10, i32 0, i32 2
  %84 = load double, ptr %83, align 8, !tbaa !26
  call void @_ZNK4juce9RectangleIiEdvIdEES1_T_(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %15, ptr noundef nonnull align 4 dereferenceable(16) %82, double noundef %84) #4
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.juce::DisplayGeometry::ExtendedInfo", ptr %85, i32 0, i32 2
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %86) #4
  call void @_ZNK4juce9RectangleIiEplENS_5PointIiEE(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %14, ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef %16) #4
  %87 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %10, i32 0, i32 0
  %88 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %87, ptr noundef nonnull align 4 dereferenceable(16) %14) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %14) #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 16, ptr %14) #4
  %89 = getelementptr inbounds %"class.juce::Desktop::Displays", ptr %24, i32 0, i32 0
  invoke void @_ZN4juce5ArrayINS_7Desktop8Displays7DisplayENS_20DummyCriticalSectionELi0EE3addERKS3_(ptr noundef nonnull align 8 dereferenceable(20) %89, ptr noundef nonnull align 8 dereferenceable(49) %10)
          to label %90 unwind label %102

90:                                               ; preds = %78
  call void @_ZN4juce7Desktop8Displays7DisplayD2Ev(ptr noundef nonnull align 8 dereferenceable(49) %10) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %91

91:                                               ; preds = %144, %90
  %92 = load i32, ptr %17, align 4, !tbaa !11
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.juce::DisplayGeometry", ptr %93, i32 0, i32 0
  %95 = call noundef i32 @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %94) #4
  %96 = icmp slt i32 %92, %95
  br i1 %96, label %107, label %97

97:                                               ; preds = %91
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %156

98:                                               ; preds = %59
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %12, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  br label %106

102:                                              ; preds = %78
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %12, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %13, align 4
  br label %106

106:                                              ; preds = %102, %98
  call void @_ZN4juce7Desktop8Displays7DisplayD2Ev(ptr noundef nonnull align 8 dereferenceable(49) %10) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %157

107:                                              ; preds = %91
  %108 = load i32, ptr %17, align 4, !tbaa !11
  %109 = load i32, ptr %6, align 4, !tbaa !11
  %110 = icmp eq i32 %108, %109
  br i1 %110, label %111, label %112

111:                                              ; preds = %107
  br label %144

112:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.juce::DisplayGeometry", ptr %113, i32 0, i32 0
  %115 = load i32, ptr %17, align 4, !tbaa !11
  %116 = call noundef nonnull align 8 dereferenceable(57) ptr @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %114, i32 noundef %115) #4
  store ptr %116, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %19) #4
  call void @_ZN4juce7Desktop8Displays7DisplayC2Ev(ptr noundef nonnull align 8 dereferenceable(49) %19) #4
  %117 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %19, i32 0, i32 4
  store i8 0, ptr %117, align 8, !tbaa !23
  %118 = load float, ptr %4, align 4, !tbaa !9
  %119 = fpext float %118 to double
  %120 = load ptr, ptr %18, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.juce::DisplayGeometry::ExtendedInfo", ptr %120, i32 0, i32 4
  %122 = load double, ptr %121, align 8, !tbaa !25
  %123 = fmul double %119, %122
  %124 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %19, i32 0, i32 2
  store double %123, ptr %124, align 8, !tbaa !26
  %125 = load ptr, ptr %18, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.juce::DisplayGeometry::ExtendedInfo", ptr %125, i32 0, i32 3
  %127 = load double, ptr %126, align 8, !tbaa !27
  %128 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %19, i32 0, i32 3
  store double %127, ptr %128, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  %129 = load ptr, ptr %18, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.juce::DisplayGeometry::ExtendedInfo", ptr %129, i32 0, i32 0
  invoke void @_ZN4juce15DisplayGeometry16physicalToScaledERKNS_9RectangleIiEE(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %20, ptr noundef nonnull align 4 dereferenceable(16) %130)
          to label %131 unwind label %147

131:                                              ; preds = %112
  %132 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %19, i32 0, i32 1
  %133 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %132, ptr noundef nonnull align 4 dereferenceable(16) %20) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %134 = load ptr, ptr %18, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.juce::DisplayGeometry::ExtendedInfo", ptr %134, i32 0, i32 1
  %136 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %19, i32 0, i32 2
  %137 = load double, ptr %136, align 8, !tbaa !26
  call void @_ZNK4juce9RectangleIiEdvIdEES1_T_(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %22, ptr noundef nonnull align 4 dereferenceable(16) %135, double noundef %137) #4
  %138 = load ptr, ptr %18, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.juce::DisplayGeometry::ExtendedInfo", ptr %138, i32 0, i32 2
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %139) #4
  call void @_ZNK4juce9RectangleIiEplENS_5PointIiEE(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %21, ptr noundef nonnull align 4 dereferenceable(16) %22, ptr noundef %23) #4
  %140 = getelementptr inbounds %"struct.juce::Desktop::Displays::Display", ptr %19, i32 0, i32 0
  %141 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %140, ptr noundef nonnull align 4 dereferenceable(16) %21) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %21) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  %142 = getelementptr inbounds %"class.juce::Desktop::Displays", ptr %24, i32 0, i32 0
  invoke void @_ZN4juce5ArrayINS_7Desktop8Displays7DisplayENS_20DummyCriticalSectionELi0EE3addERKS3_(ptr noundef nonnull align 8 dereferenceable(20) %142, ptr noundef nonnull align 8 dereferenceable(49) %19)
          to label %143 unwind label %151

143:                                              ; preds = %131
  call void @_ZN4juce7Desktop8Displays7DisplayD2Ev(ptr noundef nonnull align 8 dereferenceable(49) %19) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %144

144:                                              ; preds = %143, %111
  %145 = load i32, ptr %17, align 4, !tbaa !11
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %17, align 4, !tbaa !11
  br label %91, !llvm.loop !29

147:                                              ; preds = %112
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %12, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  br label %155

151:                                              ; preds = %131
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %12, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %13, align 4
  br label %155

155:                                              ; preds = %151, %147
  call void @_ZN4juce7Desktop8Displays7DisplayD2Ev(ptr noundef nonnull align 8 dereferenceable(49) %19) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %157

156:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void

157:                                              ; preds = %155, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %158

158:                                              ; preds = %157
  %159 = load ptr, ptr %12, align 8
  %160 = load i32, ptr %13, align 4
  %161 = insertvalue { ptr, i32 } poison, ptr %159, 0
  %162 = insertvalue { ptr, i32 } %161, i32 %160, 1
  resume { ptr, i32 } %162

163:                                              ; preds = %46
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiEplENS_5PointIiEE(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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce15DisplayGeometry19getOrCreateInstanceEP9_XDisplayd(ptr noundef, double noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(57) ptr @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #3 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce7Desktop8Displays7DisplayD2Ev(ptr noundef nonnull align 8 dereferenceable(49)) unnamed_addr #3 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !18, i64 56}
!14 = !{!"_ZTSN4juce15DisplayGeometry12ExtendedInfoE", !15, i64 0, !15, i64 16, !16, i64 32, !17, i64 40, !17, i64 48, !18, i64 56}
!15 = !{!"_ZTSN4juce9RectangleIiEE", !16, i64 0, !12, i64 8, !12, i64 12}
!16 = !{!"_ZTSN4juce5PointIiEE", !12, i64 0, !12, i64 4}
!17 = !{!"double", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !18, i64 48}
!24 = !{!"_ZTSN4juce7Desktop8Displays7DisplayE", !15, i64 0, !15, i64 16, !17, i64 32, !17, i64 40, !18, i64 48}
!25 = !{!14, !17, i64 48}
!26 = !{!24, !17, i64 32}
!27 = !{!14, !17, i64 40}
!28 = !{!24, !17, i64 40}
!29 = distinct !{!29, !22}


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

%"struct.juce::Desktop::Displays::Display" = type <{ %"class.juce::Rectangle", %"class.juce::Rectangle", double, double, i8, [7 x i8] }>
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }

@_ZN4juce7displayE = external local_unnamed_addr global ptr, align 8

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 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 void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7Desktop8Displays12findDisplaysEf(ptr noundef nonnull align 8 dereferenceable(24) %0, float noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.juce::Desktop::Displays::Display", align 8
  %4 = alloca %"class.juce::Rectangle", align 4
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = alloca %"class.juce::Point", align 4
  %8 = alloca %"struct.juce::Desktop::Displays::Display", align 8
  %9 = alloca %"class.juce::Rectangle", align 4
  %10 = alloca %"class.juce::Rectangle", align 4
  %11 = alloca %"class.juce::Rectangle", align 4
  %12 = alloca %"class.juce::Point", align 4
  %13 = load ptr, ptr @_ZN4juce7displayE, align 8, !tbaa !5
  %14 = fpext float %1 to double
  %15 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce15DisplayGeometry19getOrCreateInstanceEP9_XDisplayd(ptr noundef %13, double noundef %14)
  %16 = tail call noundef i32 @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %15) #4
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %22
  %.038 = phi i32 [ %23, %22 ], [ 0, %2 ]
  %18 = tail call noundef nonnull align 8 dereferenceable(57) ptr @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %15, i32 noundef %.038) #4
  %19 = getelementptr inbounds i8, ptr %18, i64 56
  %20 = load i8, ptr %19, align 8, !tbaa !9, !range !16, !noundef !17
  %21 = trunc nuw i8 %20 to i1
  br i1 %21, label %._crit_edge, label %22

22:                                               ; preds = %.lr.ph
  %23 = add nuw nsw i32 %.038, 1
  %24 = tail call noundef i32 @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %15) #4
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %22, %.lr.ph, %2
  %.0.lcssa = phi i32 [ 0, %2 ], [ %.038, %.lr.ph ], [ %23, %22 ]
  %26 = tail call noundef i32 @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %15) #4
  %.not = icmp slt i32 %.0.lcssa, %26
  %spec.select = select i1 %.not, i32 %.0.lcssa, i32 0
  %27 = tail call noundef nonnull align 8 dereferenceable(57) ptr @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %15, i32 noundef %spec.select) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #4
  call void @_ZN4juce7Desktop8Displays7DisplayC2Ev(ptr noundef nonnull align 8 dereferenceable(49) %3) #4
  %28 = getelementptr inbounds i8, ptr %3, i64 48
  store i8 1, ptr %28, align 8, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %27, i64 48
  %30 = load double, ptr %29, align 8, !tbaa !22
  %31 = fmul double %30, %14
  %32 = getelementptr inbounds i8, ptr %3, i64 32
  store double %31, ptr %32, align 8, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %27, i64 40
  %34 = load double, ptr %33, align 8, !tbaa !24
  %35 = getelementptr inbounds i8, ptr %3, i64 40
  store double %34, ptr %35, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @_ZN4juce15DisplayGeometry16physicalToScaledERKNS_9RectangleIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %4, ptr noundef nonnull align 4 dereferenceable(16) %27)
  %36 = getelementptr inbounds i8, ptr %3, i64 16
  %37 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(16) %4) #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
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %38 = getelementptr inbounds i8, ptr %27, i64 16
  %39 = load double, ptr %32, align 8, !tbaa !23
  call void @_ZNK4juce9RectangleIiEdvIdEES1_T_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %6, ptr noundef nonnull align 4 dereferenceable(16) %38, double noundef %39) #4
  %40 = getelementptr inbounds i8, ptr %27, i64 32
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %40) #4
  call void @_ZNK4juce9RectangleIiEplENS_5PointIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull %7) #4
  %41 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  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 16, ptr nonnull %5) #4
  invoke void @_ZN4juce5ArrayINS_7Desktop8Displays7DisplayENS_20DummyCriticalSectionELi0EE3addERKS3_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(49) %3)
          to label %42 unwind label %49

42:                                               ; preds = %._crit_edge
  call void @_ZN4juce7Desktop8Displays7DisplayD2Ev(ptr noundef nonnull align 8 dereferenceable(49) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  %43 = call noundef i32 @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %15) #4
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.lr.ph43, label %._crit_edge44

.lr.ph43:                                         ; preds = %42
  %45 = getelementptr inbounds i8, ptr %8, i64 48
  %46 = getelementptr inbounds i8, ptr %8, i64 32
  %47 = getelementptr inbounds i8, ptr %8, i64 40
  %48 = getelementptr inbounds i8, ptr %8, i64 16
  br label %51

._crit_edge44:                                    ; preds = %66, %42
  ret void

49:                                               ; preds = %._crit_edge
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce7Desktop8Displays7DisplayD2Ev(ptr noundef nonnull align 8 dereferenceable(49) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  br label %72

51:                                               ; preds = %.lr.ph43, %66
  %.03341 = phi i32 [ 0, %.lr.ph43 ], [ %67, %66 ]
  %52 = icmp eq i32 %.03341, %spec.select
  br i1 %52, label %66, label %53

53:                                               ; preds = %51
  %54 = call noundef nonnull align 8 dereferenceable(57) ptr @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %15, i32 noundef %.03341) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #4
  call void @_ZN4juce7Desktop8Displays7DisplayC2Ev(ptr noundef nonnull align 8 dereferenceable(49) %8) #4
  store i8 0, ptr %45, align 8, !tbaa !20
  %55 = getelementptr inbounds i8, ptr %54, i64 48
  %56 = load double, ptr %55, align 8, !tbaa !22
  %57 = fmul double %56, %14
  store double %57, ptr %46, align 8, !tbaa !23
  %58 = getelementptr inbounds i8, ptr %54, i64 40
  %59 = load double, ptr %58, align 8, !tbaa !24
  store double %59, ptr %47, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  call void @_ZN4juce15DisplayGeometry16physicalToScaledERKNS_9RectangleIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %9, ptr noundef nonnull align 4 dereferenceable(16) %54)
  %60 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %48, ptr noundef nonnull align 4 dereferenceable(16) %9) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  %61 = getelementptr inbounds i8, ptr %54, i64 16
  %62 = load double, ptr %46, align 8, !tbaa !23
  call void @_ZNK4juce9RectangleIiEdvIdEES1_T_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %61, double noundef %62) #4
  %63 = getelementptr inbounds i8, ptr %54, i64 32
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %63) #4
  call void @_ZNK4juce9RectangleIiEplENS_5PointIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %10, ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull %12) #4
  %64 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %10) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  invoke void @_ZN4juce5ArrayINS_7Desktop8Displays7DisplayENS_20DummyCriticalSectionELi0EE3addERKS3_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(49) %8)
          to label %65 unwind label %70

65:                                               ; preds = %53
  call void @_ZN4juce7Desktop8Displays7DisplayD2Ev(ptr noundef nonnull align 8 dereferenceable(49) %8) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #4
  br label %66

66:                                               ; preds = %51, %65
  %67 = add nuw nsw i32 %.03341, 1
  %68 = call noundef i32 @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %15) #4
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %51, label %._crit_edge44, !llvm.loop !26

70:                                               ; preds = %53
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce7Desktop8Displays7DisplayD2Ev(ptr noundef nonnull align 8 dereferenceable(49) %8) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #4
  br label %72

72:                                               ; preds = %70, %49
  %.pn = phi { ptr, i32 } [ %71, %70 ], [ %50, %49 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiEplENS_5PointIiEE(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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce15DisplayGeometry19getOrCreateInstanceEP9_XDisplayd(ptr noundef, double noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(57) ptr @_ZNK4juce5ArrayINS_15DisplayGeometry12ExtendedInfoENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce7Desktop8Displays7DisplayD2Ev(ptr noundef nonnull align 8 dereferenceable(49)) unnamed_addr #3 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !15, i64 56}
!10 = !{!"_ZTSN4juce15DisplayGeometry12ExtendedInfoE", !11, i64 0, !11, i64 16, !12, i64 32, !14, i64 40, !14, i64 48, !15, i64 56}
!11 = !{!"_ZTSN4juce9RectangleIiEE", !12, i64 0, !13, i64 8, !13, i64 12}
!12 = !{!"_ZTSN4juce5PointIiEE", !13, i64 0, !13, i64 4}
!13 = !{!"int", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !15, i64 48}
!21 = !{!"_ZTSN4juce7Desktop8Displays7DisplayE", !11, i64 0, !11, i64 16, !14, i64 32, !14, i64 40, !15, i64 48}
!22 = !{!10, !14, i64 48}
!23 = !{!21, !14, i64 32}
!24 = !{!10, !14, i64 40}
!25 = !{!21, !14, i64 40}
!26 = distinct !{!26, !19}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass