; 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::TextEditor" = type { %"class.juce::Component.base", %"class.juce::TextInputTarget", %"class.juce::SettableTooltipClient", %"class.juce::ScopedPointer.251", ptr, %"class.juce::BorderSize", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, %"class.juce::UndoManager", %"class.juce::ScopedPointer.257", %"class.juce::Range", i32, i32, i32, %"class.juce::Font", i32, i32, %"class.juce::OwnedArray.258", %"class.juce::String", %"class.juce::Colour", i32, %"class.juce::OptionalScopedPointer", %"class.juce::Value", i32, i32, %"class.juce::ListenerList.264", %"class.juce::Array.270" }
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.0", %"class.juce::Array", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.1", %"class.juce::ScopedPointer.2", %"class.juce::ScopedPointer.3", %"class.juce::ListenerList", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.0" = type { ptr }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::MouseCursor" = type { ptr }
%"class.juce::ScopedPointer.1" = type { ptr }
%"class.juce::ScopedPointer.2" = type { ptr }
%"class.juce::ScopedPointer.3" = type { ptr }
%"class.juce::ListenerList" = type { %"class.juce::Array.4" }
%"class.juce::Array.4" = type { %"class.juce::ArrayAllocationBase.5", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.5" = type <{ %"class.juce::HeapBlock.6", i32, [4 x i8] }>
%"class.juce::HeapBlock.6" = type { ptr }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.9" }
%"class.juce::Array.9" = type { %"class.juce::ArrayAllocationBase.10", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.10" = type <{ %"class.juce::HeapBlock.11", i32, [4 x i8] }>
%"class.juce::HeapBlock.11" = type { ptr }
%"class.juce::WeakReference<juce::Component>::Master" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%union.anon = type { i32 }
%"class.juce::TextInputTarget" = type { ptr }
%"class.juce::SettableTooltipClient" = type { %"class.juce::TooltipClient", %"class.juce::String" }
%"class.juce::TooltipClient" = type { ptr }
%"class.juce::ScopedPointer.251" = type { ptr }
%"class.juce::BorderSize" = type { i32, i32, i32, i32 }
%"class.juce::UndoManager" = type <{ %"class.juce::ChangeBroadcaster", %"class.juce::OwnedArray.252", %"class.juce::OwnedArray.252", %"class.juce::String", i32, i32, i32, i32, i8, i8, [6 x i8] }>
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.39" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.15" }
%"class.juce::ReferenceCountedObjectPtr.15" = type { ptr }
%"class.juce::ListenerList.39" = type { %"class.juce::Array.40" }
%"class.juce::Array.40" = type { %"class.juce::ArrayAllocationBase.41", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.41" = type <{ %"class.juce::HeapBlock.42", i32, [4 x i8] }>
%"class.juce::HeapBlock.42" = type { ptr }
%"class.juce::OwnedArray.252" = type { %"class.juce::ArrayAllocationBase.253", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.253" = type <{ %"class.juce::HeapBlock.254", i32, [4 x i8] }>
%"class.juce::HeapBlock.254" = type { ptr }
%"class.juce::ScopedPointer.257" = type { ptr }
%"class.juce::Range" = type { i32, i32 }
%"class.juce::Font" = type { %"class.juce::ReferenceCountedObjectPtr.158" }
%"class.juce::ReferenceCountedObjectPtr.158" = type { ptr }
%"class.juce::OwnedArray.258" = type { %"class.juce::ArrayAllocationBase.259", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.259" = type <{ %"class.juce::HeapBlock.260", i32, [4 x i8] }>
%"class.juce::HeapBlock.260" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::OptionalScopedPointer" = type <{ %"class.juce::ScopedPointer.263", i8, [7 x i8] }>
%"class.juce::ScopedPointer.263" = type { ptr }
%"class.juce::Value" = type { %"class.juce::ReferenceCountedObjectPtr.116", %"class.juce::ListenerList.117" }
%"class.juce::ReferenceCountedObjectPtr.116" = type { ptr }
%"class.juce::ListenerList.117" = type { %"class.juce::Array.118" }
%"class.juce::Array.118" = type { %"class.juce::ArrayAllocationBase.119", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.119" = type <{ %"class.juce::HeapBlock.120", i32, [4 x i8] }>
%"class.juce::HeapBlock.120" = type { ptr }
%"class.juce::ListenerList.264" = type { %"class.juce::Array.265" }
%"class.juce::Array.265" = type { %"class.juce::ArrayAllocationBase.266", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.266" = type <{ %"class.juce::HeapBlock.267", i32, [4 x i8] }>
%"class.juce::HeapBlock.267" = type { ptr }
%"class.juce::Array.270" = type { %"class.juce::ArrayAllocationBase.271", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.271" = type <{ %"class.juce::HeapBlock.272", i32, [4 x i8] }>
%"class.juce::HeapBlock.272" = type { ptr }

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 i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) #0

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce10TextEditor27scrollEditorToPositionCaretEii(ptr noundef nonnull align 8 dereferenceable(600) %0, i32 noundef %1, i32 noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.juce::Rectangle", align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %12 = load ptr, ptr %4, align 8
  call void @_ZN4juce10TextEditor19updateCaretPositionEv(ptr noundef nonnull align 8 dereferenceable(600) %12)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = getelementptr inbounds ptr, ptr %13, i64 47
  %15 = load ptr, ptr %14, align 8
  call void %15(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %7, ptr noundef nonnull align 8 dereferenceable(600) %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %16 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %7) #4
  %17 = load i32, ptr %5, align 4, !tbaa !9
  %18 = sub nsw i32 %16, %17
  store i32 %18, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %19 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %7) #4
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = sub nsw i32 %19, %20
  store i32 %21, ptr %9, align 4, !tbaa !9
  %22 = load i32, ptr %5, align 4, !tbaa !9
  %23 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %12, float noundef 0x3FA99999A0000000) #4
  %24 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 1, i32 noundef %23)
          to label %25 unwind label %33

25:                                               ; preds = %3
  %26 = icmp slt i32 %22, %24
  br i1 %26, label %27, label %37

27:                                               ; preds = %25
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %12, float noundef 0x3FC99999A0000000) #4
  %30 = sub nsw i32 %28, %29
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = add nsw i32 %31, %30
  store i32 %32, ptr %8, align 4, !tbaa !9
  br label %67

33:                                               ; preds = %134, %105, %99, %85, %67, %37, %3
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %10, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  br label %140

37:                                               ; preds = %25
  %38 = load i32, ptr %5, align 4, !tbaa !9
  %39 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 3
  %40 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #4
  %41 = call noundef i32 @_ZNK4juce8Viewport22getMaximumVisibleWidthEv(ptr noundef nonnull align 8 dereferenceable(1224) %40)
  %42 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 9
  %43 = load i8, ptr %42, align 1, !tbaa !13, !range !85, !noundef !86
  %44 = trunc i8 %43 to i1
  %45 = zext i1 %44 to i64
  %46 = select i1 %44, i32 2, i32 10
  %47 = sub nsw i32 %41, %46
  %48 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %47)
          to label %49 unwind label %33

49:                                               ; preds = %37
  %50 = icmp sgt i32 %38, %48
  br i1 %50, label %51, label %66

51:                                               ; preds = %49
  %52 = load i32, ptr %5, align 4, !tbaa !9
  %53 = call noundef zeroext i1 @_ZNK4juce10TextEditor11isMultiLineEv(ptr noundef nonnull align 8 dereferenceable(600) %12)
  br i1 %53, label %54, label %56

54:                                               ; preds = %51
  %55 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %12, float noundef 0x3FC99999A0000000) #4
  br label %57

56:                                               ; preds = %51
  br label %57

57:                                               ; preds = %56, %54
  %58 = phi i32 [ %55, %54 ], [ 10, %56 ]
  %59 = add nsw i32 %52, %58
  %60 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 3
  %61 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %60) #4
  %62 = call noundef i32 @_ZNK4juce8Viewport22getMaximumVisibleWidthEv(ptr noundef nonnull align 8 dereferenceable(1224) %61)
  %63 = sub nsw i32 %59, %62
  %64 = load i32, ptr %8, align 4, !tbaa !9
  %65 = add nsw i32 %64, %63
  store i32 %65, ptr %8, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %57, %49
  br label %67

67:                                               ; preds = %66, %27
  %68 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !87
  %70 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %69) #4
  %71 = add nsw i32 %70, 8
  %72 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 3
  %73 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %72) #4
  %74 = call noundef i32 @_ZNK4juce8Viewport22getMaximumVisibleWidthEv(ptr noundef nonnull align 8 dereferenceable(1224) %73)
  %75 = sub nsw i32 %71, %74
  %76 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %75)
          to label %77 unwind label %33

77:                                               ; preds = %67
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef 0, i32 noundef %76, i32 noundef %78) #4
  store i32 %79, ptr %8, align 4, !tbaa !9
  %80 = call noundef zeroext i1 @_ZNK4juce10TextEditor11isMultiLineEv(ptr noundef nonnull align 8 dereferenceable(600) %12)
  br i1 %80, label %85, label %81

81:                                               ; preds = %77
  %82 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 3
  %83 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %82) #4
  %84 = call noundef i32 @_ZNK4juce8Viewport16getViewPositionYEv(ptr noundef nonnull align 8 dereferenceable(1224) %83) #4
  store i32 %84, ptr %9, align 4, !tbaa !9
  br label %134

85:                                               ; preds = %77
  %86 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !87
  %88 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %87) #4
  %89 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 3
  %90 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %89) #4
  %91 = call noundef i32 @_ZNK4juce8Viewport23getMaximumVisibleHeightEv(ptr noundef nonnull align 8 dereferenceable(1224) %90)
  %92 = sub nsw i32 %88, %91
  %93 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %92)
          to label %94 unwind label %33

94:                                               ; preds = %85
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef 0, i32 noundef %93, i32 noundef %95) #4
  store i32 %96, ptr %9, align 4, !tbaa !9
  %97 = load i32, ptr %6, align 4, !tbaa !9
  %98 = icmp slt i32 %97, 0
  br i1 %98, label %99, label %105

99:                                               ; preds = %94
  %100 = load i32, ptr %6, align 4, !tbaa !9
  %101 = load i32, ptr %9, align 4, !tbaa !9
  %102 = add nsw i32 %100, %101
  %103 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %102)
          to label %104 unwind label %33

104:                                              ; preds = %99
  store i32 %103, ptr %9, align 4, !tbaa !9
  br label %133

105:                                              ; preds = %94
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 3
  %108 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %107) #4
  %109 = call noundef i32 @_ZNK4juce8Viewport23getMaximumVisibleHeightEv(ptr noundef nonnull align 8 dereferenceable(1224) %108)
  %110 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 26
  %111 = load i32, ptr %110, align 4, !tbaa !88
  %112 = sub nsw i32 %109, %111
  %113 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %7) #4
  %114 = sub nsw i32 %112, %113
  %115 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %114)
          to label %116 unwind label %33

116:                                              ; preds = %105
  %117 = icmp sgt i32 %106, %115
  br i1 %117, label %118, label %132

118:                                              ; preds = %116
  %119 = load i32, ptr %6, align 4, !tbaa !9
  %120 = add nsw i32 %119, 2
  %121 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %7) #4
  %122 = add nsw i32 %120, %121
  %123 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 26
  %124 = load i32, ptr %123, align 4, !tbaa !88
  %125 = add nsw i32 %122, %124
  %126 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 3
  %127 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %126) #4
  %128 = call noundef i32 @_ZNK4juce8Viewport23getMaximumVisibleHeightEv(ptr noundef nonnull align 8 dereferenceable(1224) %127)
  %129 = sub nsw i32 %125, %128
  %130 = load i32, ptr %9, align 4, !tbaa !9
  %131 = add nsw i32 %130, %129
  store i32 %131, ptr %9, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %118, %116
  br label %133

133:                                              ; preds = %132, %104
  br label %134

134:                                              ; preds = %133, %81
  %135 = getelementptr inbounds %"class.juce::TextEditor", ptr %12, i32 0, i32 3
  %136 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %135) #4
  %137 = load i32, ptr %8, align 4, !tbaa !9
  %138 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_ZN4juce8Viewport15setViewPositionEii(ptr noundef nonnull align 8 dereferenceable(1224) %136, i32 noundef %137, i32 noundef %138)
          to label %139 unwind label %33

139:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  ret void

140:                                              ; preds = %33
  %141 = load ptr, ptr %10, align 8
  %142 = load i32, ptr %11, align 4
  %143 = insertvalue { ptr, i32 } poison, ptr %141, 0
  %144 = insertvalue { ptr, i32 } %143, i32 %142, 1
  resume { ptr, i32 } %144
}

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 = { 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 #3 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !45, i64 259}
!14 = !{!"_ZTSN4juce10TextEditorE", !15, i64 0, !40, i64 200, !41, i64 208, !43, i64 224, !6, i64 232, !44, i64 240, !45, i64 256, !45, i64 257, !45, i64 258, !45, i64 259, !45, i64 260, !45, i64 261, !45, i64 262, !45, i64 263, !45, i64 264, !45, i64 265, !45, i64 266, !45, i64 267, !45, i64 268, !45, i64 269, !45, i64 270, !46, i64 272, !58, i64 408, !59, i64 416, !10, i64 424, !10, i64 428, !10, i64 432, !60, i64 440, !10, i64 448, !10, i64 452, !62, i64 456, !17, i64 480, !65, i64 488, !67, i64 492, !68, i64 496, !70, i64 512, !76, i64 544, !77, i64 548, !78, i64 552, !82, i64 576}
!15 = !{!"_ZTSN4juce9ComponentE", !16, i64 0, !17, i64 8, !17, i64 16, !6, i64 24, !19, i64 32, !21, i64 48, !22, i64 56, !23, i64 64, !6, i64 88, !26, i64 96, !6, i64 104, !27, i64 112, !28, i64 120, !29, i64 128, !30, i64 136, !34, i64 160, !38, i64 184, !7, i64 192, !7, i64 196}
!16 = !{!"_ZTSN4juce13MouseListenerE"}
!17 = !{!"_ZTSN4juce6StringE", !18, i64 0}
!18 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!19 = !{!"_ZTSN4juce9RectangleIiEE", !20, i64 0, !10, i64 8, !10, i64 12}
!20 = !{!"_ZTSN4juce5PointIiEE", !10, i64 0, !10, i64 4}
!21 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!23 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !24, i64 0, !10, i64 16}
!24 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !25, i64 0, !10, i64 8}
!25 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!26 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!29 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!30 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !10, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !33, i64 0, !10, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!34 = !{!"_ZTSN4juce13NamedValueSetE", !35, i64 0}
!35 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !36, i64 0, !10, i64 16}
!36 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !37, i64 0, !10, i64 8}
!37 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!38 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !39, i64 0}
!39 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!40 = !{!"_ZTSN4juce15TextInputTargetE"}
!41 = !{!"_ZTSN4juce21SettableTooltipClientE", !42, i64 0, !17, i64 8}
!42 = !{!"_ZTSN4juce13TooltipClientE"}
!43 = !{!"_ZTSN4juce13ScopedPointerINS_8ViewportEEE", !6, i64 0}
!44 = !{!"_ZTSN4juce10BorderSizeIiEE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!45 = !{!"bool", !7, i64 0}
!46 = !{!"_ZTSN4juce11UndoManagerE", !47, i64 0, !55, i64 56, !55, i64 80, !17, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !45, i64 128, !45, i64 129}
!47 = !{!"_ZTSN4juce17ChangeBroadcasterE", !48, i64 8, !51, i64 32}
!48 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !49, i64 0, !6, i64 16}
!49 = !{!"_ZTSN4juce12AsyncUpdaterE", !50, i64 8}
!50 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!51 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !52, i64 0}
!52 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !53, i64 0, !10, i64 16}
!53 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !54, i64 0, !10, i64 8}
!54 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !6, i64 0}
!55 = !{!"_ZTSN4juce10OwnedArrayINS_11UndoManager9ActionSetENS_20DummyCriticalSectionEEE", !56, i64 0, !10, i64 16}
!56 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_11UndoManager9ActionSetENS_20DummyCriticalSectionEEE", !57, i64 0, !10, i64 8}
!57 = !{!"_ZTSN4juce9HeapBlockIPNS_11UndoManager9ActionSetELb0EEE", !6, i64 0}
!58 = !{!"_ZTSN4juce13ScopedPointerINS_14CaretComponentEEE", !6, i64 0}
!59 = !{!"_ZTSN4juce5RangeIiEE", !10, i64 0, !10, i64 4}
!60 = !{!"_ZTSN4juce4FontE", !61, i64 0}
!61 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_4Font18SharedFontInternalEEE", !6, i64 0}
!62 = !{!"_ZTSN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEEE", !63, i64 0, !10, i64 16}
!63 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEEE", !64, i64 0, !10, i64 8}
!64 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextEditor18UniformTextSectionELb0EEE", !6, i64 0}
!65 = !{!"_ZTSN4juce6ColourE", !66, i64 0}
!66 = !{!"_ZTSN4juce9PixelARGBE", !7, i64 0}
!67 = !{!"wchar_t", !7, i64 0}
!68 = !{!"_ZTSN4juce21OptionalScopedPointerINS_10TextEditor11InputFilterEEE", !69, i64 0, !45, i64 8}
!69 = !{!"_ZTSN4juce13ScopedPointerINS_10TextEditor11InputFilterEEE", !6, i64 0}
!70 = !{!"_ZTSN4juce5ValueE", !71, i64 0, !72, i64 8}
!71 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_5Value11ValueSourceEEE", !6, i64 0}
!72 = !{!"_ZTSN4juce12ListenerListINS_5Value8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !73, i64 0}
!73 = !{!"_ZTSN4juce5ArrayIPNS_5Value8ListenerENS_20DummyCriticalSectionELi0EEE", !74, i64 0, !10, i64 16}
!74 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_5Value8ListenerENS_20DummyCriticalSectionEEE", !75, i64 0, !10, i64 8}
!75 = !{!"_ZTSN4juce9HeapBlockIPNS_5Value8ListenerELb0EEE", !6, i64 0}
!76 = !{!"_ZTSN4juce15TextInputTarget19VirtualKeyboardTypeE", !7, i64 0}
!77 = !{!"_ZTSN4juce10TextEditorUt_E", !7, i64 0}
!78 = !{!"_ZTSN4juce12ListenerListINS_10TextEditor8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !79, i64 0}
!79 = !{!"_ZTSN4juce5ArrayIPNS_10TextEditor8ListenerENS_20DummyCriticalSectionELi0EEE", !80, i64 0, !10, i64 16}
!80 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextEditor8ListenerENS_20DummyCriticalSectionEEE", !81, i64 0, !10, i64 8}
!81 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextEditor8ListenerELb0EEE", !6, i64 0}
!82 = !{!"_ZTSN4juce5ArrayINS_5RangeIiEENS_20DummyCriticalSectionELi0EEE", !83, i64 0, !10, i64 16}
!83 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_5RangeIiEENS_20DummyCriticalSectionEEE", !84, i64 0, !10, i64 8}
!84 = !{!"_ZTSN4juce9HeapBlockINS_5RangeIiEELb0EEE", !6, i64 0}
!85 = !{i8 0, i8 2}
!86 = !{}
!87 = !{!14, !6, i64 232}
!88 = !{!14, !10, i64 428}


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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress 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 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce10TextEditor27scrollEditorToPositionCaretEii(ptr noundef nonnull align 8 dereferenceable(600) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.juce::Rectangle", align 4
  tail call void @_ZN4juce10TextEditor19updateCaretPositionEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 376
  %7 = load ptr, ptr %6, align 8
  call void %7(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %4, ptr noundef nonnull align 8 dereferenceable(600) %0)
  %8 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  %9 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  %10 = sub nsw i32 %9, %2
  %11 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %0, float noundef 0x3FA99999A0000000) #4
  %12 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 1, i32 noundef %11)
  %13 = icmp sgt i32 %12, %1
  br i1 %13, label %14, label %19

14:                                               ; preds = %3
  %15 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %0, float noundef 0x3FC99999A0000000) #4
  %16 = sub i32 %8, %15
  br label %40

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

19:                                               ; preds = %3
  %20 = sub nsw i32 %8, %1
  %21 = getelementptr inbounds i8, ptr %0, i64 224
  %22 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  %23 = call noundef i32 @_ZNK4juce8Viewport22getMaximumVisibleWidthEv(ptr noundef nonnull align 8 dereferenceable(1224) %22)
  %24 = getelementptr inbounds i8, ptr %0, i64 259
  %25 = load i8, ptr %24, align 1, !tbaa !8, !range !83, !noundef !84
  %26 = trunc nuw i8 %25 to i1
  %.neg = select i1 %26, i32 -2, i32 -10
  %27 = add i32 %.neg, %23
  %28 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %27)
  %29 = icmp slt i32 %28, %1
  br i1 %29, label %30, label %40

30:                                               ; preds = %19
  %31 = call noundef zeroext i1 @_ZNK4juce10TextEditor11isMultiLineEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  br i1 %31, label %32, label %34

32:                                               ; preds = %30
  %33 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %0, float noundef 0x3FC99999A0000000) #4
  br label %34

34:                                               ; preds = %30, %32
  %35 = phi i32 [ %33, %32 ], [ 10, %30 ]
  %36 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  %37 = call noundef i32 @_ZNK4juce8Viewport22getMaximumVisibleWidthEv(ptr noundef nonnull align 8 dereferenceable(1224) %36)
  %38 = add i32 %8, %35
  %39 = sub i32 %38, %37
  br label %40

40:                                               ; preds = %19, %34, %14
  %.0 = phi i32 [ %16, %14 ], [ %39, %34 ], [ %20, %19 ]
  %41 = getelementptr inbounds i8, ptr %0, i64 232
  %42 = load ptr, ptr %41, align 8, !tbaa !85
  %43 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %42) #4
  %44 = add nsw i32 %43, 8
  %45 = getelementptr inbounds i8, ptr %0, i64 224
  %46 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #4
  %47 = call noundef i32 @_ZNK4juce8Viewport22getMaximumVisibleWidthEv(ptr noundef nonnull align 8 dereferenceable(1224) %46)
  %48 = sub i32 %44, %47
  %49 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %48)
  %50 = call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef 0, i32 noundef %49, i32 noundef %.0) #4
  %51 = call noundef zeroext i1 @_ZNK4juce10TextEditor11isMultiLineEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  br i1 %51, label %55, label %52

52:                                               ; preds = %40
  %53 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #4
  %54 = call noundef i32 @_ZNK4juce8Viewport16getViewPositionYEv(ptr noundef nonnull align 8 dereferenceable(1224) %53) #4
  br label %87

55:                                               ; preds = %40
  %56 = load ptr, ptr %41, align 8, !tbaa !85
  %57 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %56) #4
  %58 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #4
  %59 = call noundef i32 @_ZNK4juce8Viewport23getMaximumVisibleHeightEv(ptr noundef nonnull align 8 dereferenceable(1224) %58)
  %60 = sub nsw i32 %57, %59
  %61 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %60)
  %62 = call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef 0, i32 noundef %61, i32 noundef %10) #4
  %63 = icmp slt i32 %2, 0
  br i1 %63, label %64, label %67

64:                                               ; preds = %55
  %65 = add nsw i32 %62, %2
  %66 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %65)
  br label %87

67:                                               ; preds = %55
  %68 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #4
  %69 = call noundef i32 @_ZNK4juce8Viewport23getMaximumVisibleHeightEv(ptr noundef nonnull align 8 dereferenceable(1224) %68)
  %70 = getelementptr inbounds i8, ptr %0, i64 428
  %71 = load i32, ptr %70, align 4, !tbaa !86
  %72 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  %73 = add i32 %71, %72
  %74 = sub i32 %69, %73
  %75 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %74)
  %76 = icmp slt i32 %75, %2
  br i1 %76, label %77, label %87

77:                                               ; preds = %67
  %78 = add nuw nsw i32 %2, 2
  %79 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  %80 = load i32, ptr %70, align 4, !tbaa !86
  %81 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #4
  %82 = call noundef i32 @_ZNK4juce8Viewport23getMaximumVisibleHeightEv(ptr noundef nonnull align 8 dereferenceable(1224) %81)
  %83 = add i32 %78, %62
  %84 = add i32 %83, %79
  %85 = add i32 %84, %80
  %86 = sub i32 %85, %82
  br label %87

87:                                               ; preds = %64, %77, %67, %52
  %.020 = phi i32 [ %66, %64 ], [ %86, %77 ], [ %62, %67 ], [ %54, %52 ]
  %88 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #4
  invoke void @_ZN4juce8Viewport15setViewPositionEii(ptr noundef nonnull align 8 dereferenceable(1224) %88, i32 noundef %50, i32 noundef %.020)
          to label %89 unwind label %17

89:                                               ; preds = %87
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  ret void
}

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 = { 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 #3 = { 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 #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, !43, i64 259}
!9 = !{!"_ZTSN4juce10TextEditorE", !10, i64 0, !38, i64 200, !39, i64 208, !41, i64 224, !14, i64 232, !42, i64 240, !43, i64 256, !43, i64 257, !43, i64 258, !43, i64 259, !43, i64 260, !43, i64 261, !43, i64 262, !43, i64 263, !43, i64 264, !43, i64 265, !43, i64 266, !43, i64 267, !43, i64 268, !43, i64 269, !43, i64 270, !44, i64 272, !56, i64 408, !57, i64 416, !18, i64 424, !18, i64 428, !18, i64 432, !58, i64 440, !18, i64 448, !18, i64 452, !60, i64 456, !12, i64 480, !63, i64 488, !65, i64 492, !66, i64 496, !68, i64 512, !74, i64 544, !75, i64 548, !76, i64 552, !80, i64 576}
!10 = !{!"_ZTSN4juce9ComponentE", !11, i64 0, !12, i64 8, !12, i64 16, !14, i64 24, !16, i64 32, !19, i64 48, !20, i64 56, !21, i64 64, !14, i64 88, !24, i64 96, !14, i64 104, !25, i64 112, !26, i64 120, !27, i64 128, !28, i64 136, !32, i64 160, !36, i64 184, !15, i64 192, !15, i64 196}
!11 = !{!"_ZTSN4juce13MouseListenerE"}
!12 = !{!"_ZTSN4juce6StringE", !13, i64 0}
!13 = !{!"_ZTSN4juce16CharPointer_UTF8E", !14, i64 0}
!14 = !{!"any pointer", !15, i64 0}
!15 = !{!"omnipotent char", !7, i64 0}
!16 = !{!"_ZTSN4juce9RectangleIiEE", !17, i64 0, !18, i64 8, !18, i64 12}
!17 = !{!"_ZTSN4juce5PointIiEE", !18, i64 0, !18, i64 4}
!18 = !{!"int", !15, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !14, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !14, i64 0}
!21 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !18, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !23, i64 0, !18, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !14, i64 0}
!24 = !{!"_ZTSN4juce11MouseCursorE", !14, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !14, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !14, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !14, i64 0}
!28 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !18, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !31, i64 0, !18, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !14, i64 0}
!32 = !{!"_ZTSN4juce13NamedValueSetE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !18, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !35, i64 0, !18, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !14, i64 0}
!36 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !37, i64 0}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !14, i64 0}
!38 = !{!"_ZTSN4juce15TextInputTargetE"}
!39 = !{!"_ZTSN4juce21SettableTooltipClientE", !40, i64 0, !12, i64 8}
!40 = !{!"_ZTSN4juce13TooltipClientE"}
!41 = !{!"_ZTSN4juce13ScopedPointerINS_8ViewportEEE", !14, i64 0}
!42 = !{!"_ZTSN4juce10BorderSizeIiEE", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!43 = !{!"bool", !15, i64 0}
!44 = !{!"_ZTSN4juce11UndoManagerE", !45, i64 0, !53, i64 56, !53, i64 80, !12, i64 104, !18, i64 112, !18, i64 116, !18, i64 120, !18, i64 124, !43, i64 128, !43, i64 129}
!45 = !{!"_ZTSN4juce17ChangeBroadcasterE", !46, i64 8, !49, i64 32}
!46 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !47, i64 0, !14, i64 16}
!47 = !{!"_ZTSN4juce12AsyncUpdaterE", !48, i64 8}
!48 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !14, i64 0}
!49 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !50, i64 0}
!50 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !51, i64 0, !18, i64 16}
!51 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !52, i64 0, !18, i64 8}
!52 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !14, i64 0}
!53 = !{!"_ZTSN4juce10OwnedArrayINS_11UndoManager9ActionSetENS_20DummyCriticalSectionEEE", !54, i64 0, !18, i64 16}
!54 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_11UndoManager9ActionSetENS_20DummyCriticalSectionEEE", !55, i64 0, !18, i64 8}
!55 = !{!"_ZTSN4juce9HeapBlockIPNS_11UndoManager9ActionSetELb0EEE", !14, i64 0}
!56 = !{!"_ZTSN4juce13ScopedPointerINS_14CaretComponentEEE", !14, i64 0}
!57 = !{!"_ZTSN4juce5RangeIiEE", !18, i64 0, !18, i64 4}
!58 = !{!"_ZTSN4juce4FontE", !59, i64 0}
!59 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_4Font18SharedFontInternalEEE", !14, i64 0}
!60 = !{!"_ZTSN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEEE", !61, i64 0, !18, i64 16}
!61 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEEE", !62, i64 0, !18, i64 8}
!62 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextEditor18UniformTextSectionELb0EEE", !14, i64 0}
!63 = !{!"_ZTSN4juce6ColourE", !64, i64 0}
!64 = !{!"_ZTSN4juce9PixelARGBE", !15, i64 0}
!65 = !{!"wchar_t", !15, i64 0}
!66 = !{!"_ZTSN4juce21OptionalScopedPointerINS_10TextEditor11InputFilterEEE", !67, i64 0, !43, i64 8}
!67 = !{!"_ZTSN4juce13ScopedPointerINS_10TextEditor11InputFilterEEE", !14, i64 0}
!68 = !{!"_ZTSN4juce5ValueE", !69, i64 0, !70, i64 8}
!69 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_5Value11ValueSourceEEE", !14, i64 0}
!70 = !{!"_ZTSN4juce12ListenerListINS_5Value8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !71, i64 0}
!71 = !{!"_ZTSN4juce5ArrayIPNS_5Value8ListenerENS_20DummyCriticalSectionELi0EEE", !72, i64 0, !18, i64 16}
!72 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_5Value8ListenerENS_20DummyCriticalSectionEEE", !73, i64 0, !18, i64 8}
!73 = !{!"_ZTSN4juce9HeapBlockIPNS_5Value8ListenerELb0EEE", !14, i64 0}
!74 = !{!"_ZTSN4juce15TextInputTarget19VirtualKeyboardTypeE", !15, i64 0}
!75 = !{!"_ZTSN4juce10TextEditorUt_E", !15, i64 0}
!76 = !{!"_ZTSN4juce12ListenerListINS_10TextEditor8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !77, i64 0}
!77 = !{!"_ZTSN4juce5ArrayIPNS_10TextEditor8ListenerENS_20DummyCriticalSectionELi0EEE", !78, i64 0, !18, i64 16}
!78 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextEditor8ListenerENS_20DummyCriticalSectionEEE", !79, i64 0, !18, i64 8}
!79 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextEditor8ListenerELb0EEE", !14, i64 0}
!80 = !{!"_ZTSN4juce5ArrayINS_5RangeIiEENS_20DummyCriticalSectionELi0EEE", !81, i64 0, !18, i64 16}
!81 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_5RangeIiEENS_20DummyCriticalSectionEEE", !82, i64 0, !18, i64 8}
!82 = !{!"_ZTSN4juce9HeapBlockINS_5RangeIiEELb0EEE", !14, i64 0}
!83 = !{i8 0, i8 2}
!84 = !{}
!85 = !{!9, !14, i64 232}
!86 = !{!9, !18, i64 428}


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