; 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::Array.512" = 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::Range" = 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"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::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::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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #0

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce10TextEditor11moveCaretToEib(ptr noundef nonnull align 8 dereferenceable(600), i32 noundef, i1 noundef zeroext) #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce10TextEditor6removeENS_5RangeIiEEPNS_11UndoManagerEi(ptr noundef nonnull align 8 dereferenceable(600) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.juce::Array.512", align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.juce::Range", align 4
  %21 = alloca %"class.juce::Range", align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.juce::Range", align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %26 = load ptr, ptr %5, align 8
  %27 = call noundef zeroext i1 @_ZNK4juce5RangeIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  br i1 %27, label %215, label %28

28:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %83, %28
  %30 = load i32, ptr %10, align 4, !tbaa !9
  %31 = getelementptr inbounds %"class.juce::TextEditor", ptr %26, i32 0, i32 31
  %32 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %31) #7
  %33 = icmp slt i32 %30, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %29
  store i32 2, ptr %11, align 4
  br label %86

35:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = getelementptr inbounds %"class.juce::TextEditor", ptr %26, i32 0, i32 31
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %37, i32 noundef %38) #7
  %40 = call noundef i32 @_ZNK4juce10TextEditor18UniformTextSection14getTotalLengthEv(ptr noundef nonnull align 8 dereferenceable(40) %39) #7
  %41 = add nsw i32 %36, %40
  store i32 %41, ptr %12, align 4, !tbaa !9
  %42 = call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = icmp sgt i32 %42, %43
  br i1 %44, label %45, label %56

45:                                               ; preds = %35
  %46 = call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %49, label %56

49:                                               ; preds = %45
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = sub nsw i32 %51, %52
  call void @_ZN4juce10TextEditor12splitSectionEii(ptr noundef nonnull align 8 dereferenceable(600) %26, i32 noundef %50, i32 noundef %53)
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = add nsw i32 %54, -1
  store i32 %55, ptr %10, align 4, !tbaa !9
  br label %79

56:                                               ; preds = %45, %35
  %57 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = icmp sgt i32 %57, %58
  br i1 %59, label %60, label %71

60:                                               ; preds = %56
  %61 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %64, label %71

64:                                               ; preds = %60
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %67 = load i32, ptr %9, align 4, !tbaa !9
  %68 = sub nsw i32 %66, %67
  call void @_ZN4juce10TextEditor12splitSectionEii(ptr noundef nonnull align 8 dereferenceable(600) %26, i32 noundef %65, i32 noundef %68)
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = add nsw i32 %69, -1
  store i32 %70, ptr %10, align 4, !tbaa !9
  br label %78

71:                                               ; preds = %60, %56
  %72 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %72, ptr %9, align 4, !tbaa !9
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %75 = icmp sgt i32 %73, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %71
  store i32 2, ptr %11, align 4
  br label %80

77:                                               ; preds = %71
  br label %78

78:                                               ; preds = %77, %64
  br label %79

79:                                               ; preds = %78, %49
  store i32 0, ptr %11, align 4
  br label %80

80:                                               ; preds = %79, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %81 = load i32, ptr %11, align 4
  switch i32 %81, label %86 [
    i32 0, label %82
  ]

82:                                               ; preds = %80
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %10, align 4, !tbaa !9
  br label %29, !llvm.loop !11

86:                                               ; preds = %80, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %87

87:                                               ; preds = %86
  store i32 0, ptr %9, align 4, !tbaa !9
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %163

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #7
  call void @_ZN4juce5ArrayIPNS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionELi0EEC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %134, %90
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = getelementptr inbounds %"class.juce::TextEditor", ptr %26, i32 0, i32 31
  %94 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %93) #7
  %95 = icmp slt i32 %92, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %91
  store i32 5, ptr %11, align 4
  br label %137

97:                                               ; preds = %91
  %98 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %99 = call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %100 = icmp sle i32 %98, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %97
  store i32 5, ptr %11, align 4
  br label %137

102:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %103 = getelementptr inbounds %"class.juce::TextEditor", ptr %26, i32 0, i32 31
  %104 = load i32, ptr %14, align 4, !tbaa !9
  %105 = call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %103, i32 noundef %104) #7
  store ptr %105, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  %108 = call noundef i32 @_ZNK4juce10TextEditor18UniformTextSection14getTotalLengthEv(ptr noundef nonnull align 8 dereferenceable(40) %107) #7
  %109 = add nsw i32 %106, %108
  store i32 %109, ptr %16, align 4, !tbaa !9
  %110 = call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %111 = load i32, ptr %9, align 4, !tbaa !9
  %112 = icmp sle i32 %110, %111
  br i1 %112, label %113, label %132

113:                                              ; preds = %102
  %114 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %115 = load i32, ptr %16, align 4, !tbaa !9
  %116 = icmp sge i32 %114, %115
  br i1 %116, label %117, label %132

117:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %118 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
          to label %119 unwind label %123

119:                                              ; preds = %117
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN4juce10TextEditor18UniformTextSectionC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %118, ptr noundef nonnull align 8 dereferenceable(40) %120)
          to label %121 unwind label %127

121:                                              ; preds = %119
  store ptr %118, ptr %17, align 8, !tbaa !5
  invoke void @_ZN4juce5ArrayIPNS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionELi0EE3addEOS3_(ptr noundef nonnull align 8 dereferenceable(20) %13, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %122 unwind label %123

122:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %132

123:                                              ; preds = %121, %117
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %18, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %19, align 4
  br label %131

127:                                              ; preds = %119
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %18, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %118, i64 noundef 40) #9
  br label %131

131:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %162

132:                                              ; preds = %122, %113, %102
  %133 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %133, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %134

134:                                              ; preds = %132
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %14, align 4, !tbaa !9
  br label %91, !llvm.loop !13

137:                                              ; preds = %101, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %138

138:                                              ; preds = %137
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = invoke noundef i32 @_ZNK4juce11UndoManager33getNumActionsInCurrentTransactionEv(ptr noundef nonnull align 8 dereferenceable(130) %139)
          to label %141 unwind label %144

141:                                              ; preds = %138
  %142 = icmp sgt i32 %140, 100
  br i1 %142, label %143, label %148

143:                                              ; preds = %141
  call void @_ZN4juce10TextEditor14newTransactionEv(ptr noundef nonnull align 8 dereferenceable(600) %26)
  br label %148

144:                                              ; preds = %155, %148, %138
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %18, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %19, align 4
  br label %162

148:                                              ; preds = %143, %141
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #8
          to label %151 unwind label %144

151:                                              ; preds = %148
  call void @_ZN4juce5RangeIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %152 = getelementptr inbounds %"class.juce::TextEditor", ptr %26, i32 0, i32 30
  %153 = load i32, ptr %152, align 4, !tbaa !14
  %154 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN4juce10TextEditor12RemoveActionC2ERS0_NS_5RangeIiEEiiRKNS_5ArrayIPNS0_18UniformTextSectionENS_20DummyCriticalSectionELi0EEE(ptr noundef nonnull align 8 dereferenceable(56) %150, ptr noundef nonnull align 8 dereferenceable(600) %26, ptr noundef %20, i32 noundef %153, i32 noundef %154, ptr noundef nonnull align 8 dereferenceable(20) %13)
          to label %155 unwind label %158

155:                                              ; preds = %151
  %156 = invoke noundef zeroext i1 @_ZN4juce11UndoManager7performEPNS_14UndoableActionE(ptr noundef nonnull align 8 dereferenceable(130) %149, ptr noundef %150)
          to label %157 unwind label %144

157:                                              ; preds = %155
  call void @_ZN4juce5ArrayIPNS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  br label %214

158:                                              ; preds = %151
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %18, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %150, i64 noundef 56) #9
  br label %162

162:                                              ; preds = %158, %144, %131
  call void @_ZN4juce5ArrayIPNS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %216

163:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @_ZN4juce5RangeIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %204, %163
  %165 = load i32, ptr %22, align 4, !tbaa !9
  %166 = getelementptr inbounds %"class.juce::TextEditor", ptr %26, i32 0, i32 31
  %167 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %166) #7
  %168 = icmp slt i32 %165, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %164
  store i32 8, ptr %11, align 4
  br label %207

170:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %171 = getelementptr inbounds %"class.juce::TextEditor", ptr %26, i32 0, i32 31
  %172 = load i32, ptr %22, align 4, !tbaa !9
  %173 = call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %171, i32 noundef %172) #7
  store ptr %173, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = load ptr, ptr %23, align 8, !tbaa !5
  %176 = call noundef i32 @_ZNK4juce10TextEditor18UniformTextSection14getTotalLengthEv(ptr noundef nonnull align 8 dereferenceable(40) %175) #7
  %177 = add nsw i32 %174, %176
  store i32 %177, ptr %24, align 4, !tbaa !9
  %178 = call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %21) #7
  %179 = load i32, ptr %9, align 4, !tbaa !9
  %180 = icmp sle i32 %178, %179
  br i1 %180, label %181, label %198

181:                                              ; preds = %170
  %182 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %21) #7
  %183 = load i32, ptr %24, align 4, !tbaa !9
  %184 = icmp sge i32 %182, %183
  br i1 %184, label %185, label %198

185:                                              ; preds = %181
  %186 = getelementptr inbounds %"class.juce::TextEditor", ptr %26, i32 0, i32 31
  %187 = load i32, ptr %22, align 4, !tbaa !9
  call void @_ZN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE6removeEib(ptr noundef nonnull align 8 dereferenceable(20) %186, i32 noundef %187, i1 noundef zeroext true)
  %188 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %21) #7
  %189 = load i32, ptr %24, align 4, !tbaa !9
  %190 = load i32, ptr %9, align 4, !tbaa !9
  %191 = sub nsw i32 %189, %190
  %192 = sub nsw i32 %188, %191
  call void @_ZN4juce5RangeIiE6setEndEi(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef %192) #7
  %193 = call noundef zeroext i1 @_ZNK4juce5RangeIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(8) %21) #7
  br i1 %193, label %194, label %195

194:                                              ; preds = %185
  store i32 8, ptr %11, align 4
  br label %201

195:                                              ; preds = %185
  %196 = load i32, ptr %22, align 4, !tbaa !9
  %197 = add nsw i32 %196, -1
  store i32 %197, ptr %22, align 4, !tbaa !9
  br label %200

198:                                              ; preds = %181, %170
  %199 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %199, ptr %9, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %198, %195
  store i32 0, ptr %11, align 4
  br label %201

201:                                              ; preds = %200, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %202 = load i32, ptr %11, align 4
  switch i32 %202, label %207 [
    i32 0, label %203
  ]

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %22, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %22, align 4, !tbaa !9
  br label %164, !llvm.loop !86

207:                                              ; preds = %201, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %208

208:                                              ; preds = %207
  call void @_ZN4juce10TextEditor23coalesceSimilarSectionsEv(ptr noundef nonnull align 8 dereferenceable(600) %26)
  %209 = getelementptr inbounds %"class.juce::TextEditor", ptr %26, i32 0, i32 29
  store i32 -1, ptr %209, align 8, !tbaa !87
  %210 = getelementptr inbounds %"class.juce::TextEditor", ptr %26, i32 0, i32 18
  store i8 1, ptr %210, align 4, !tbaa !88
  %211 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN4juce10TextEditor11moveCaretToEib(ptr noundef nonnull align 8 dereferenceable(600) %26, i32 noundef %211, i1 noundef zeroext false)
  %212 = call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %213 = call noundef i32 @_ZNK4juce10TextEditor16getTotalNumCharsEv(ptr noundef nonnull align 8 dereferenceable(600) %26)
  call void @_ZN4juce5RangeIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %25, i32 noundef %212, i32 noundef %213) #7
  call void @_ZN4juce10TextEditor11repaintTextENS_5RangeIiEE(ptr noundef nonnull align 8 dereferenceable(600) %26, ptr noundef %25)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %214

214:                                              ; preds = %208, %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %215

215:                                              ; preds = %214, %4
  ret void

216:                                              ; preds = %162
  %217 = load ptr, ptr %18, align 8
  %218 = load i32, ptr %19, align 4
  %219 = insertvalue { ptr, i32 } poison, ptr %217, 0
  %220 = insertvalue { ptr, i32 } %219, i32 %218, 1
  resume { ptr, i32 } %220
}

declare noundef i32 @_ZNK4juce11UndoManager33getNumActionsInCurrentTransactionEv(ptr noundef nonnull align 8 dereferenceable(130)) #6

declare noundef zeroext i1 @_ZN4juce11UndoManager7performEPNS_14UndoableActionE(ptr noundef nonnull align 8 dereferenceable(130), ptr noundef) #6

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce10TextEditor12splitSectionEii(ptr noundef nonnull align 8 dereferenceable(600), i32 noundef, i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce10TextEditor18UniformTextSectionC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce10TextEditor12RemoveActionC2ERS0_NS_5RangeIiEEiiRKNS_5ArrayIPNS0_18UniformTextSectionENS_20DummyCriticalSectionELi0EEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(600), ptr noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE6removeEib(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i1 noundef zeroext) #5 align 2

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

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


; 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::Array.512" = 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::Range" = type { i32, i32 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #0

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce10TextEditor11moveCaretToEib(ptr noundef nonnull align 8 dereferenceable(600), i32 noundef, i1 noundef zeroext) local_unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce10TextEditor6removeENS_5RangeIiEEPNS_11UndoManagerEi(ptr noundef nonnull align 8 dereferenceable(600) %0, ptr noundef nonnull %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.juce::Array.512", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.juce::Range", align 4
  %8 = alloca %"class.juce::Range", align 4
  %9 = alloca %"class.juce::Range", align 4
  %10 = tail call noundef zeroext i1 @_ZNK4juce5RangeIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  br i1 %10, label %103, label %.preheader

.preheader:                                       ; preds = %4
  %11 = getelementptr inbounds i8, ptr %0, i64 456
  %12 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %.thread
  %.089 = phi i32 [ %.277, %.thread ], [ 0, %.preheader ]
  %.04788 = phi i32 [ %36, %.thread ], [ 0, %.preheader ]
  %14 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %11, i32 noundef %.04788) #7
  %15 = tail call noundef i32 @_ZNK4juce10TextEditor18UniformTextSection14getTotalLengthEv(ptr noundef nonnull align 8 dereferenceable(40) %14) #7
  %16 = add nsw i32 %15, %.089
  %17 = tail call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %18 = icmp sgt i32 %17, %.089
  br i1 %18, label %19, label %24

19:                                               ; preds = %.lr.ph
  %20 = tail call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %21 = icmp slt i32 %20, %16
  br i1 %21, label %22, label %24

22:                                               ; preds = %19
  %23 = tail call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  br label %.thread.sink.split

24:                                               ; preds = %19, %.lr.ph
  %25 = tail call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %26 = icmp sgt i32 %25, %.089
  br i1 %26, label %27, label %32

27:                                               ; preds = %24
  %28 = tail call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %29 = icmp slt i32 %28, %16
  br i1 %29, label %30, label %32

30:                                               ; preds = %27
  %31 = tail call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  br label %.thread.sink.split

32:                                               ; preds = %24, %27
  %33 = tail call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %.not85 = icmp sgt i32 %16, %33
  br i1 %.not85, label %._crit_edge, label %.thread

.thread.sink.split:                               ; preds = %30, %22
  %.sink104 = phi i32 [ %23, %22 ], [ %31, %30 ]
  %34 = sub nsw i32 %.sink104, %.089
  tail call void @_ZN4juce10TextEditor12splitSectionEii(ptr noundef nonnull align 8 dereferenceable(600) %0, i32 noundef %.04788, i32 noundef %34)
  %35 = add nsw i32 %.04788, -1
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %32
  %.277 = phi i32 [ %16, %32 ], [ %.089, %.thread.sink.split ]
  %.24976 = phi i32 [ %.04788, %32 ], [ %35, %.thread.sink.split ]
  %36 = add nsw i32 %.24976, 1
  %37 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %32, %.thread, %.preheader
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %82, label %39

39:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN4juce5ArrayIPNS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionELi0EEC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #7
  %40 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph95, label %._crit_edge96

.lr.ph95:                                         ; preds = %39, %61
  %.393 = phi i32 [ %47, %61 ], [ 0, %39 ]
  %.05992 = phi i32 [ %62, %61 ], [ 0, %39 ]
  %42 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %43 = call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %.not65 = icmp sgt i32 %42, %43
  br i1 %.not65, label %44, label %._crit_edge96

44:                                               ; preds = %.lr.ph95
  %45 = call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %11, i32 noundef %.05992) #7
  %46 = call noundef i32 @_ZNK4juce10TextEditor18UniformTextSection14getTotalLengthEv(ptr noundef nonnull align 8 dereferenceable(40) %45) #7
  %47 = add nsw i32 %46, %.393
  %48 = call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %.not66 = icmp sgt i32 %48, %.393
  br i1 %.not66, label %61, label %49

49:                                               ; preds = %44
  %50 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %.not67 = icmp slt i32 %50, %47
  br i1 %.not67, label %61, label %51

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %52 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
          to label %53 unwind label %56

53:                                               ; preds = %51
  invoke void @_ZN4juce10TextEditor18UniformTextSectionC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %52, ptr noundef nonnull align 8 dereferenceable(40) %45)
          to label %54 unwind label %58

54:                                               ; preds = %53
  store ptr %52, ptr %6, align 8, !tbaa !7
  invoke void @_ZN4juce5ArrayIPNS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionELi0EE3addEOS3_(ptr noundef nonnull align 8 dereferenceable(20) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %55 unwind label %56

55:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %61

56:                                               ; preds = %54, %51
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

58:                                               ; preds = %53
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %52, i64 noundef 40) #9
  br label %60

60:                                               ; preds = %58, %56
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %81

61:                                               ; preds = %55, %49, %44
  %62 = add nuw nsw i32 %.05992, 1
  %63 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %.lr.ph95, label %._crit_edge96, !llvm.loop !11

._crit_edge96:                                    ; preds = %61, %.lr.ph95, %39
  %65 = invoke noundef i32 @_ZNK4juce11UndoManager33getNumActionsInCurrentTransactionEv(ptr noundef nonnull align 8 dereferenceable(130) %2)
          to label %66 unwind label %69

66:                                               ; preds = %._crit_edge96
  %67 = icmp sgt i32 %65, 100
  br i1 %67, label %68, label %71

68:                                               ; preds = %66
  call void @_ZN4juce10TextEditor14newTransactionEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  br label %71

69:                                               ; preds = %76, %71, %._crit_edge96
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %81

71:                                               ; preds = %68, %66
  %72 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #8
          to label %73 unwind label %69

73:                                               ; preds = %71
  call void @_ZN4juce5RangeIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %74 = getelementptr inbounds i8, ptr %0, i64 452
  %75 = load i32, ptr %74, align 4, !tbaa !12
  invoke void @_ZN4juce10TextEditor12RemoveActionC2ERS0_NS_5RangeIiEEiiRKNS_5ArrayIPNS0_18UniformTextSectionENS_20DummyCriticalSectionELi0EEE(ptr noundef nonnull align 8 dereferenceable(56) %72, ptr noundef nonnull align 8 dereferenceable(600) %0, ptr noundef nonnull %7, i32 noundef %75, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(20) %5)
          to label %76 unwind label %79

76:                                               ; preds = %73
  %77 = invoke noundef zeroext i1 @_ZN4juce11UndoManager7performEPNS_14UndoableActionE(ptr noundef nonnull align 8 dereferenceable(130) %2, ptr noundef nonnull %72)
          to label %78 unwind label %69

78:                                               ; preds = %76
  call void @_ZN4juce5ArrayIPNS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %103

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %72, i64 noundef 56) #9
  br label %81

81:                                               ; preds = %79, %69, %60
  %.pn69 = phi { ptr, i32 } [ %70, %69 ], [ %80, %79 ], [ %.pn, %60 ]
  call void @_ZN4juce5ArrayIPNS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn69

82:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN4juce5RangeIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %83 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %.lr.ph101, label %._crit_edge102

.lr.ph101:                                        ; preds = %82, %.thread79
  %.499 = phi i32 [ %.684, %.thread79 ], [ 0, %82 ]
  %.05098 = phi i32 [ %96, %.thread79 ], [ 0, %82 ]
  %85 = call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %11, i32 noundef %.05098) #7
  %86 = call noundef i32 @_ZNK4juce10TextEditor18UniformTextSection14getTotalLengthEv(ptr noundef nonnull align 8 dereferenceable(40) %85) #7
  %87 = add nsw i32 %86, %.499
  %88 = call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %8) #7
  %.not63 = icmp sgt i32 %88, %.499
  br i1 %.not63, label %.thread79, label %89

89:                                               ; preds = %.lr.ph101
  %90 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %8) #7
  %.not64 = icmp slt i32 %90, %87
  br i1 %.not64, label %.thread79, label %91

91:                                               ; preds = %89
  call void @_ZN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE6removeEib(ptr noundef nonnull align 8 dereferenceable(20) %11, i32 noundef %.05098, i1 noundef zeroext true)
  %92 = call noundef i32 @_ZNK4juce5RangeIiE6getEndEv(ptr noundef nonnull align 4 dereferenceable(8) %8) #7
  %93 = sub nsw i32 %92, %86
  call void @_ZN4juce5RangeIiE6setEndEi(ptr noundef nonnull align 4 dereferenceable(8) %8, i32 noundef %93) #7
  %94 = call noundef zeroext i1 @_ZNK4juce5RangeIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(8) %8) #7
  %not.86 = xor i1 %94, true
  %95 = sext i1 %not.86 to i32
  %spec.select72 = add nsw i32 %.05098, %95
  br i1 %94, label %._crit_edge102, label %.thread79

.thread79:                                        ; preds = %89, %.lr.ph101, %91
  %.684 = phi i32 [ %.499, %91 ], [ %87, %.lr.ph101 ], [ %87, %89 ]
  %.25283 = phi i32 [ %spec.select72, %91 ], [ %.05098, %.lr.ph101 ], [ %.05098, %89 ]
  %96 = add nsw i32 %.25283, 1
  %97 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %.lr.ph101, label %._crit_edge102, !llvm.loop !85

._crit_edge102:                                   ; preds = %91, %.thread79, %82
  call void @_ZN4juce10TextEditor23coalesceSimilarSectionsEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  %99 = getelementptr inbounds i8, ptr %0, i64 448
  store i32 -1, ptr %99, align 8, !tbaa !86
  %100 = getelementptr inbounds i8, ptr %0, i64 268
  store i8 1, ptr %100, align 4, !tbaa !87
  call void @_ZN4juce10TextEditor11moveCaretToEib(ptr noundef nonnull align 8 dereferenceable(600) %0, i32 noundef %3, i1 noundef zeroext false)
  %101 = call noundef i32 @_ZNK4juce5RangeIiE8getStartEv(ptr noundef nonnull align 4 dereferenceable(8) %1) #7
  %102 = call noundef i32 @_ZNK4juce10TextEditor16getTotalNumCharsEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  call void @_ZN4juce5RangeIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef %101, i32 noundef %102) #7
  call void @_ZN4juce10TextEditor11repaintTextENS_5RangeIiEE(ptr noundef nonnull align 8 dereferenceable(600) %0, ptr noundef nonnull %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %103

103:                                              ; preds = %78, %._crit_edge102, %4
  ret void
}

declare noundef i32 @_ZNK4juce11UndoManager33getNumActionsInCurrentTransactionEv(ptr noundef nonnull align 8 dereferenceable(130)) local_unnamed_addr #6

declare noundef zeroext i1 @_ZN4juce11UndoManager7performEPNS_14UndoableActionE(ptr noundef nonnull align 8 dereferenceable(130), ptr noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce10TextEditor12splitSectionEii(ptr noundef nonnull align 8 dereferenceable(600), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce10TextEditor18UniformTextSectionC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce10TextEditor12RemoveActionC2ERS0_NS_5RangeIiEEiiRKNS_5ArrayIPNS0_18UniformTextSectionENS_20DummyCriticalSectionELi0EEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(600), ptr noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE6removeEib(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i1 noundef zeroext) local_unnamed_addr #5 align 2

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

attributes #0 = { nobuiltin nounwind "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 = { nobuiltin allocsize(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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { "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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = !{!13, !20, i64 452}
!13 = !{!"_ZTSN4juce10TextEditorE", !14, i64 0, !40, i64 200, !41, i64 208, !43, i64 224, !8, 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, !20, i64 424, !20, i64 428, !20, i64 432, !60, i64 440, !20, i64 448, !20, i64 452, !62, i64 456, !16, 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}
!14 = !{!"_ZTSN4juce9ComponentE", !15, i64 0, !16, i64 8, !16, i64 16, !8, i64 24, !18, i64 32, !21, i64 48, !22, i64 56, !23, i64 64, !8, i64 88, !26, i64 96, !8, i64 104, !27, i64 112, !28, i64 120, !29, i64 128, !30, i64 136, !34, i64 160, !38, i64 184, !9, i64 192, !9, i64 196}
!15 = !{!"_ZTSN4juce13MouseListenerE"}
!16 = !{!"_ZTSN4juce6StringE", !17, i64 0}
!17 = !{!"_ZTSN4juce16CharPointer_UTF8E", !8, i64 0}
!18 = !{!"_ZTSN4juce9RectangleIiEE", !19, i64 0, !20, i64 8, !20, i64 12}
!19 = !{!"_ZTSN4juce5PointIiEE", !20, i64 0, !20, i64 4}
!20 = !{!"int", !9, i64 0}
!21 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !8, i64 0}
!22 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !8, i64 0}
!23 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !24, i64 0, !20, i64 16}
!24 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !25, i64 0, !20, i64 8}
!25 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !8, i64 0}
!26 = !{!"_ZTSN4juce11MouseCursorE", !8, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !8, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !8, i64 0}
!29 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !8, i64 0}
!30 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !20, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !33, i64 0, !20, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !8, i64 0}
!34 = !{!"_ZTSN4juce13NamedValueSetE", !35, i64 0}
!35 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !36, i64 0, !20, i64 16}
!36 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !37, i64 0, !20, i64 8}
!37 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !8, i64 0}
!38 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !39, i64 0}
!39 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !8, i64 0}
!40 = !{!"_ZTSN4juce15TextInputTargetE"}
!41 = !{!"_ZTSN4juce21SettableTooltipClientE", !42, i64 0, !16, i64 8}
!42 = !{!"_ZTSN4juce13TooltipClientE"}
!43 = !{!"_ZTSN4juce13ScopedPointerINS_8ViewportEEE", !8, i64 0}
!44 = !{!"_ZTSN4juce10BorderSizeIiEE", !20, i64 0, !20, i64 4, !20, i64 8, !20, i64 12}
!45 = !{!"bool", !9, i64 0}
!46 = !{!"_ZTSN4juce11UndoManagerE", !47, i64 0, !55, i64 56, !55, i64 80, !16, i64 104, !20, i64 112, !20, i64 116, !20, i64 120, !20, i64 124, !45, i64 128, !45, i64 129}
!47 = !{!"_ZTSN4juce17ChangeBroadcasterE", !48, i64 8, !51, i64 32}
!48 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !49, i64 0, !8, i64 16}
!49 = !{!"_ZTSN4juce12AsyncUpdaterE", !50, i64 8}
!50 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !8, i64 0}
!51 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !52, i64 0}
!52 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !53, i64 0, !20, i64 16}
!53 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !54, i64 0, !20, i64 8}
!54 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !8, i64 0}
!55 = !{!"_ZTSN4juce10OwnedArrayINS_11UndoManager9ActionSetENS_20DummyCriticalSectionEEE", !56, i64 0, !20, i64 16}
!56 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_11UndoManager9ActionSetENS_20DummyCriticalSectionEEE", !57, i64 0, !20, i64 8}
!57 = !{!"_ZTSN4juce9HeapBlockIPNS_11UndoManager9ActionSetELb0EEE", !8, i64 0}
!58 = !{!"_ZTSN4juce13ScopedPointerINS_14CaretComponentEEE", !8, i64 0}
!59 = !{!"_ZTSN4juce5RangeIiEE", !20, i64 0, !20, i64 4}
!60 = !{!"_ZTSN4juce4FontE", !61, i64 0}
!61 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_4Font18SharedFontInternalEEE", !8, i64 0}
!62 = !{!"_ZTSN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEEE", !63, i64 0, !20, i64 16}
!63 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEEE", !64, i64 0, !20, i64 8}
!64 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextEditor18UniformTextSectionELb0EEE", !8, i64 0}
!65 = !{!"_ZTSN4juce6ColourE", !66, i64 0}
!66 = !{!"_ZTSN4juce9PixelARGBE", !9, i64 0}
!67 = !{!"wchar_t", !9, i64 0}
!68 = !{!"_ZTSN4juce21OptionalScopedPointerINS_10TextEditor11InputFilterEEE", !69, i64 0, !45, i64 8}
!69 = !{!"_ZTSN4juce13ScopedPointerINS_10TextEditor11InputFilterEEE", !8, i64 0}
!70 = !{!"_ZTSN4juce5ValueE", !71, i64 0, !72, i64 8}
!71 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_5Value11ValueSourceEEE", !8, i64 0}
!72 = !{!"_ZTSN4juce12ListenerListINS_5Value8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !73, i64 0}
!73 = !{!"_ZTSN4juce5ArrayIPNS_5Value8ListenerENS_20DummyCriticalSectionELi0EEE", !74, i64 0, !20, i64 16}
!74 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_5Value8ListenerENS_20DummyCriticalSectionEEE", !75, i64 0, !20, i64 8}
!75 = !{!"_ZTSN4juce9HeapBlockIPNS_5Value8ListenerELb0EEE", !8, i64 0}
!76 = !{!"_ZTSN4juce15TextInputTarget19VirtualKeyboardTypeE", !9, i64 0}
!77 = !{!"_ZTSN4juce10TextEditorUt_E", !9, i64 0}
!78 = !{!"_ZTSN4juce12ListenerListINS_10TextEditor8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !79, i64 0}
!79 = !{!"_ZTSN4juce5ArrayIPNS_10TextEditor8ListenerENS_20DummyCriticalSectionELi0EEE", !80, i64 0, !20, i64 16}
!80 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10TextEditor8ListenerENS_20DummyCriticalSectionEEE", !81, i64 0, !20, i64 8}
!81 = !{!"_ZTSN4juce9HeapBlockIPNS_10TextEditor8ListenerELb0EEE", !8, i64 0}
!82 = !{!"_ZTSN4juce5ArrayINS_5RangeIiEENS_20DummyCriticalSectionELi0EEE", !83, i64 0, !20, i64 16}
!83 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_5RangeIiEENS_20DummyCriticalSectionEEE", !84, i64 0, !20, i64 8}
!84 = !{!"_ZTSN4juce9HeapBlockINS_5RangeIiEELb0EEE", !8, i64 0}
!85 = distinct !{!85, !6}
!86 = !{!13, !20, i64 448}
!87 = !{!13, !45, i64 268}


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