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

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

%"class.juce::Point" = type { i32, i32 }
%"class.juce::Rectangle" = type { %"class.juce::Point", 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 void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) 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) #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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef, i32 noundef, i32 noundef) #0

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

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

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

; 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 nounwind uwtable
declare dso_local void @_ZNK4juce8Viewport15getViewPositionEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, 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 uwtable
define dso_local void @_ZN4juce10TextEditor31scrollToMakeSureCursorIsVisibleEv(ptr noundef nonnull align 8 dereferenceable(600) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.juce::Point", align 4
  %4 = alloca %"class.juce::Rectangle", align 4
  %5 = alloca %"class.juce::Point", align 4
  %6 = alloca %"class.juce::Point", align 4
  %7 = alloca %"class.juce::Point", align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.juce::Point", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  call void @_ZN4juce10TextEditor19updateCaretPositionEv(ptr noundef nonnull align 8 dereferenceable(600) %11)
  %12 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 15
  %13 = load i8, ptr %12, align 1, !tbaa !9, !range !82, !noundef !83
  %14 = trunc i8 %13 to i1
  br i1 %14, label %15, label %148

15:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %16 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 3
  %17 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @_ZNK4juce8Viewport15getViewPositionEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %3, ptr noundef nonnull align 8 dereferenceable(1224) %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #4
  %18 = load ptr, ptr %11, align 8, !tbaa !84
  %19 = getelementptr inbounds ptr, ptr %18, i64 47
  %20 = load ptr, ptr %19, align 8
  call void %20(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %4, ptr noundef nonnull align 8 dereferenceable(600) %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %6, ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %3) #4
  call void @_ZNK4juce5PointIiEmiES1_(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %5, ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %21 = getelementptr inbounds %"class.juce::Point", ptr %5, i32 0, i32 0
  %22 = load i32, ptr %21, align 4, !tbaa !86
  %23 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %11, float noundef 0x3FA99999A0000000) #4
  %24 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 1, i32 noundef %23)
          to label %25 unwind label %35

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

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"class.juce::Point", ptr %5, i32 0, i32 0
  %29 = load i32, ptr %28, align 4, !tbaa !86
  %30 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %11, float noundef 0x3FC99999A0000000) #4
  %31 = sub nsw i32 %29, %30
  %32 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 0
  %33 = load i32, ptr %32, align 4, !tbaa !86
  %34 = add nsw i32 %33, %31
  store i32 %34, ptr %32, align 4, !tbaa !86
  br label %72

35:                                               ; preds = %144, %112, %103, %72, %39, %15
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %8, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %149

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

52:                                               ; preds = %39
  %53 = icmp sgt i32 %41, %51
  br i1 %53, label %54, label %71

54:                                               ; preds = %52
  %55 = getelementptr inbounds %"class.juce::Point", ptr %5, i32 0, i32 0
  %56 = load i32, ptr %55, align 4, !tbaa !86
  %57 = call noundef zeroext i1 @_ZNK4juce10TextEditor11isMultiLineEv(ptr noundef nonnull align 8 dereferenceable(600) %11)
  br i1 %57, label %58, label %60

58:                                               ; preds = %54
  %59 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %11, float noundef 0x3FC99999A0000000) #4
  br label %61

60:                                               ; preds = %54
  br label %61

61:                                               ; preds = %60, %58
  %62 = phi i32 [ %59, %58 ], [ 10, %60 ]
  %63 = add nsw i32 %56, %62
  %64 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 3
  %65 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %64) #4
  %66 = call noundef i32 @_ZNK4juce8Viewport22getMaximumVisibleWidthEv(ptr noundef nonnull align 8 dereferenceable(1224) %65)
  %67 = sub nsw i32 %63, %66
  %68 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 0
  %69 = load i32, ptr %68, align 4, !tbaa !86
  %70 = add nsw i32 %69, %67
  store i32 %70, ptr %68, align 4, !tbaa !86
  br label %71

71:                                               ; preds = %61, %52
  br label %72

72:                                               ; preds = %71, %27
  %73 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !88
  %75 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %74) #4
  %76 = add nsw i32 %75, 8
  %77 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 3
  %78 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %77) #4
  %79 = call noundef i32 @_ZNK4juce8Viewport22getMaximumVisibleWidthEv(ptr noundef nonnull align 8 dereferenceable(1224) %78)
  %80 = sub nsw i32 %76, %79
  %81 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %80)
          to label %82 unwind label %35

82:                                               ; preds = %72
  %83 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 0
  %84 = load i32, ptr %83, align 4, !tbaa !86
  %85 = call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef 0, i32 noundef %81, i32 noundef %84) #4
  %86 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 0
  store i32 %85, ptr %86, align 4, !tbaa !86
  %87 = call noundef zeroext i1 @_ZNK4juce10TextEditor11isMultiLineEv(ptr noundef nonnull align 8 dereferenceable(600) %11)
  br i1 %87, label %99, label %88

88:                                               ; preds = %82
  %89 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %11) #4
  %90 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !88
  %92 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %91) #4
  %93 = sub nsw i32 %89, %92
  %94 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 26
  %95 = load i32, ptr %94, align 4, !tbaa !89
  %96 = sub nsw i32 %93, %95
  %97 = sdiv i32 %96, -2
  %98 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 1
  store i32 %97, ptr %98, align 4, !tbaa !90
  br label %144

99:                                               ; preds = %82
  %100 = getelementptr inbounds %"class.juce::Point", ptr %5, i32 0, i32 1
  %101 = load i32, ptr %100, align 4, !tbaa !90
  %102 = icmp slt i32 %101, 0
  br i1 %102, label %103, label %112

103:                                              ; preds = %99
  %104 = getelementptr inbounds %"class.juce::Point", ptr %5, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !90
  %106 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 1
  %107 = load i32, ptr %106, align 4, !tbaa !90
  %108 = add nsw i32 %105, %107
  %109 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %108)
          to label %110 unwind label %35

110:                                              ; preds = %103
  %111 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 1
  store i32 %109, ptr %111, align 4, !tbaa !90
  br label %143

112:                                              ; preds = %99
  %113 = getelementptr inbounds %"class.juce::Point", ptr %5, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !90
  %115 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 3
  %116 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %115) #4
  %117 = call noundef i32 @_ZNK4juce8Viewport23getMaximumVisibleHeightEv(ptr noundef nonnull align 8 dereferenceable(1224) %116)
  %118 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 26
  %119 = load i32, ptr %118, align 4, !tbaa !89
  %120 = sub nsw i32 %117, %119
  %121 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  %122 = sub nsw i32 %120, %121
  %123 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %122)
          to label %124 unwind label %35

124:                                              ; preds = %112
  %125 = icmp sgt i32 %114, %123
  br i1 %125, label %126, label %142

126:                                              ; preds = %124
  %127 = getelementptr inbounds %"class.juce::Point", ptr %5, i32 0, i32 1
  %128 = load i32, ptr %127, align 4, !tbaa !90
  %129 = add nsw i32 %128, 2
  %130 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  %131 = add nsw i32 %129, %130
  %132 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 26
  %133 = load i32, ptr %132, align 4, !tbaa !89
  %134 = add nsw i32 %131, %133
  %135 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 3
  %136 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %135) #4
  %137 = call noundef i32 @_ZNK4juce8Viewport23getMaximumVisibleHeightEv(ptr noundef nonnull align 8 dereferenceable(1224) %136)
  %138 = sub nsw i32 %134, %137
  %139 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 1
  %140 = load i32, ptr %139, align 4, !tbaa !90
  %141 = add nsw i32 %140, %138
  store i32 %141, ptr %139, align 4, !tbaa !90
  br label %142

142:                                              ; preds = %126, %124
  br label %143

143:                                              ; preds = %142, %110
  br label %144

144:                                              ; preds = %143, %88
  %145 = getelementptr inbounds %"class.juce::TextEditor", ptr %11, i32 0, i32 3
  %146 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %145) #4
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %3) #4
  invoke void @_ZN4juce8Viewport15setViewPositionENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(1224) %146, ptr noundef %10)
          to label %147 unwind label %35

147:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %148

148:                                              ; preds = %147, %1
  ret void

149:                                              ; preds = %35
  %150 = load ptr, ptr %8, align 8
  %151 = load i32, ptr %9, align 4
  %152 = insertvalue { ptr, i32 } poison, ptr %150, 0
  %153 = insertvalue { ptr, i32 } %152, i32 %151, 1
  resume { ptr, i32 } %153
}

; 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

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


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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; 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 nounwind uwtable
declare dso_local void @_ZNK4juce8Viewport15getViewPositionEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, 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 uwtable
define dso_local void @_ZN4juce10TextEditor31scrollToMakeSureCursorIsVisibleEv(ptr noundef nonnull align 8 dereferenceable(600) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::Point", align 4
  %3 = alloca %"class.juce::Rectangle", align 4
  %4 = alloca %"class.juce::Point", align 4
  %5 = alloca %"class.juce::Point", align 4
  %6 = alloca %"class.juce::Point", align 4
  %7 = alloca %"class.juce::Point", align 4
  tail call void @_ZN4juce10TextEditor19updateCaretPositionEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  %8 = getelementptr inbounds i8, ptr %0, i64 265
  %9 = load i8, ptr %8, align 1, !tbaa !5, !range !81, !noundef !82
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %11, label %108

11:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %12 = getelementptr inbounds i8, ptr %0, i64 224
  %13 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  call void @_ZNK4juce8Viewport15getViewPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %2, ptr noundef nonnull align 8 dereferenceable(1224) %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %14 = load ptr, ptr %0, align 8, !tbaa !83
  %15 = getelementptr inbounds i8, ptr %14, i64 376
  %16 = load ptr, ptr %15, align 8
  call void %16(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %3, ptr noundef nonnull align 8 dereferenceable(600) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %2) #4
  call void @_ZNK4juce5PointIiEmiES1_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %4, ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %17 = load i32, ptr %4, align 4, !tbaa !85
  %18 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %0, float noundef 0x3FA99999A0000000) #4
  %19 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 1, i32 noundef %18)
  %20 = icmp slt i32 %17, %19
  %21 = load i32, ptr %4, align 4, !tbaa !85
  br i1 %20, label %22, label %29

22:                                               ; preds = %11
  %23 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %0, float noundef 0x3FC99999A0000000) #4
  %24 = sub i32 %21, %23
  %25 = load i32, ptr %2, align 4, !tbaa !85
  %26 = add nsw i32 %24, %25
  store i32 %26, ptr %2, align 4, !tbaa !85
  br label %51

27:                                               ; preds = %105
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  resume { ptr, i32 } %28

29:                                               ; preds = %11
  %30 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %31 = call noundef i32 @_ZNK4juce8Viewport22getMaximumVisibleWidthEv(ptr noundef nonnull align 8 dereferenceable(1224) %30)
  %32 = getelementptr inbounds i8, ptr %0, i64 259
  %33 = load i8, ptr %32, align 1, !tbaa !86, !range !81, !noundef !82
  %34 = trunc nuw i8 %33 to i1
  %.neg = select i1 %34, i32 -2, i32 -10
  %35 = add i32 %.neg, %31
  %36 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %35)
  %37 = icmp sgt i32 %21, %36
  br i1 %37, label %38, label %51

38:                                               ; preds = %29
  %39 = load i32, ptr %4, align 4, !tbaa !85
  %40 = call noundef zeroext i1 @_ZNK4juce10TextEditor11isMultiLineEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  br i1 %40, label %41, label %43

41:                                               ; preds = %38
  %42 = call noundef i32 @_ZNK4juce9Component17proportionOfWidthEf(ptr noundef nonnull align 8 dereferenceable(197) %0, float noundef 0x3FC99999A0000000) #4
  br label %43

43:                                               ; preds = %38, %41
  %44 = phi i32 [ %42, %41 ], [ 10, %38 ]
  %45 = add nsw i32 %44, %39
  %46 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %47 = call noundef i32 @_ZNK4juce8Viewport22getMaximumVisibleWidthEv(ptr noundef nonnull align 8 dereferenceable(1224) %46)
  %48 = sub i32 %45, %47
  %49 = load i32, ptr %2, align 4, !tbaa !85
  %50 = add nsw i32 %48, %49
  store i32 %50, ptr %2, align 4, !tbaa !85
  br label %51

51:                                               ; preds = %29, %43, %22
  %52 = getelementptr inbounds i8, ptr %0, i64 232
  %53 = load ptr, ptr %52, align 8, !tbaa !87
  %54 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %53) #4
  %55 = add nsw i32 %54, 8
  %56 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %57 = call noundef i32 @_ZNK4juce8Viewport22getMaximumVisibleWidthEv(ptr noundef nonnull align 8 dereferenceable(1224) %56)
  %58 = sub i32 %55, %57
  %59 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %58)
  %60 = load i32, ptr %2, align 4, !tbaa !85
  %61 = call noundef i32 @_ZN4juce6jlimitIiEET_S1_S1_S1_(i32 noundef 0, i32 noundef %59, i32 noundef %60) #4
  store i32 %61, ptr %2, align 4, !tbaa !85
  %62 = call noundef zeroext i1 @_ZNK4juce10TextEditor11isMultiLineEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  br i1 %62, label %73, label %63

63:                                               ; preds = %51
  %64 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  %65 = load ptr, ptr %52, align 8, !tbaa !87
  %66 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %65) #4
  %67 = getelementptr inbounds i8, ptr %0, i64 428
  %68 = load i32, ptr %67, align 4, !tbaa !88
  %69 = add i32 %66, %68
  %70 = sub i32 %64, %69
  %71 = sdiv i32 %70, -2
  %72 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 %71, ptr %72, align 4, !tbaa !89
  br label %105

73:                                               ; preds = %51
  %74 = getelementptr inbounds i8, ptr %4, i64 4
  %75 = load i32, ptr %74, align 4, !tbaa !89
  %76 = icmp slt i32 %75, 0
  br i1 %76, label %77, label %82

77:                                               ; preds = %73
  %78 = getelementptr inbounds i8, ptr %2, i64 4
  %79 = load i32, ptr %78, align 4, !tbaa !89
  %80 = add nsw i32 %79, %75
  %81 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %80)
  store i32 %81, ptr %78, align 4, !tbaa !89
  br label %105

82:                                               ; preds = %73
  %83 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %84 = call noundef i32 @_ZNK4juce8Viewport23getMaximumVisibleHeightEv(ptr noundef nonnull align 8 dereferenceable(1224) %83)
  %85 = getelementptr inbounds i8, ptr %0, i64 428
  %86 = load i32, ptr %85, align 4, !tbaa !88
  %87 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  %88 = add i32 %86, %87
  %89 = sub i32 %84, %88
  %90 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %89)
  %91 = icmp sgt i32 %75, %90
  br i1 %91, label %92, label %105

92:                                               ; preds = %82
  %93 = load i32, ptr %74, align 4, !tbaa !89
  %94 = add nsw i32 %93, 2
  %95 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  %96 = add nsw i32 %94, %95
  %97 = load i32, ptr %85, align 4, !tbaa !88
  %98 = add nsw i32 %96, %97
  %99 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %100 = call noundef i32 @_ZNK4juce8Viewport23getMaximumVisibleHeightEv(ptr noundef nonnull align 8 dereferenceable(1224) %99)
  %101 = sub i32 %98, %100
  %102 = getelementptr inbounds i8, ptr %2, i64 4
  %103 = load i32, ptr %102, align 4, !tbaa !89
  %104 = add nsw i32 %101, %103
  store i32 %104, ptr %102, align 4, !tbaa !89
  br label %105

105:                                              ; preds = %77, %92, %82, %63
  %106 = call noundef ptr @_ZNK4juce13ScopedPointerINS_8ViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %2) #4
  invoke void @_ZN4juce8Viewport15setViewPositionENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(1224) %106, ptr noundef nonnull %7)
          to label %107 unwind label %27

107:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  br label %108

108:                                              ; preds = %107, %1
  ret void
}

; 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

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


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