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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce10TextEditor8reinsertEiRKNS_10OwnedArrayINS0_18UniformTextSectionENS_20DummyCriticalSectionEEE(ptr noundef nonnull align 8 dereferenceable(600) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(20) %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %93, %3
  %18 = load i32, ptr %9, align 4, !tbaa !9
  %19 = getelementptr inbounds %"class.juce::TextEditor", ptr %16, i32 0, i32 31
  %20 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %19) #6
  %21 = icmp slt i32 %18, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  store i32 2, ptr %10, align 4
  br label %96

23:                                               ; preds = %17
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = getelementptr inbounds %"class.juce::TextEditor", ptr %16, i32 0, i32 31
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %25, i32 noundef %26) #6
  %28 = call noundef i32 @_ZNK4juce10TextEditor18UniformTextSection14getTotalLengthEv(ptr noundef nonnull align 8 dereferenceable(40) %27) #6
  %29 = add nsw i32 %24, %28
  store i32 %29, ptr %8, align 4, !tbaa !9
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = icmp eq i32 %30, %31
  br i1 %32, label %33, label %55

33:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %34) #6
  store i32 %35, ptr %11, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %48, %33
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = add nsw i32 %37, -1
  store i32 %38, ptr %11, align 4, !tbaa !9
  %39 = icmp sge i32 %38, 0
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %54

41:                                               ; preds = %36
  %42 = getelementptr inbounds %"class.juce::TextEditor", ptr %16, i32 0, i32 31
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = load i32, ptr %11, align 4, !tbaa !9
  %47 = call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %45, i32 noundef %46) #6
  invoke void @_ZN4juce10TextEditor18UniformTextSectionC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %44, ptr noundef nonnull align 8 dereferenceable(40) %47)
          to label %48 unwind label %50

48:                                               ; preds = %41
  %49 = call noundef ptr @_ZN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE6insertEiPS2_(ptr noundef nonnull align 8 dereferenceable(20) %42, i32 noundef %43, ptr noundef %44) #6
  br label %36, !llvm.loop !11

50:                                               ; preds = %41
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %12, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %44, i64 noundef 40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %97

54:                                               ; preds = %40
  store i32 2, ptr %10, align 4
  br label %96

55:                                               ; preds = %23
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = icmp sgt i32 %56, %57
  br i1 %58, label %59, label %90

59:                                               ; preds = %55
  %60 = load i32, ptr %5, align 4, !tbaa !9
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %63, label %90

63:                                               ; preds = %59
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = load i32, ptr %5, align 4, !tbaa !9
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = sub nsw i32 %65, %66
  call void @_ZN4juce10TextEditor12splitSectionEii(ptr noundef nonnull align 8 dereferenceable(600) %16, i32 noundef %64, i32 noundef %67)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %68) #6
  store i32 %69, ptr %14, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %83, %63
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = add nsw i32 %71, -1
  store i32 %72, ptr %14, align 4, !tbaa !9
  %73 = icmp sge i32 %72, 0
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  store i32 7, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %89

75:                                               ; preds = %70
  %76 = getelementptr inbounds %"class.juce::TextEditor", ptr %16, i32 0, i32 31
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  %79 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %80, i32 noundef %81) #6
  invoke void @_ZN4juce10TextEditor18UniformTextSectionC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %79, ptr noundef nonnull align 8 dereferenceable(40) %82)
          to label %83 unwind label %85

83:                                               ; preds = %75
  %84 = call noundef ptr @_ZN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE6insertEiPS2_(ptr noundef nonnull align 8 dereferenceable(20) %76, i32 noundef %78, ptr noundef %79) #6
  br label %70, !llvm.loop !13

85:                                               ; preds = %75
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %12, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %79, i64 noundef 40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %97

89:                                               ; preds = %74
  store i32 2, ptr %10, align 4
  br label %96

90:                                               ; preds = %59, %55
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %92, ptr %7, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %91
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %9, align 4, !tbaa !9
  br label %17, !llvm.loop !14

96:                                               ; preds = %89, %54, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %98

97:                                               ; preds = %85, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %128

98:                                               ; preds = %96
  %99 = load i32, ptr %8, align 4, !tbaa !9
  %100 = load i32, ptr %5, align 4, !tbaa !9
  %101 = icmp eq i32 %99, %100
  br i1 %101, label %102, label %125

102:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %117, %102
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %105) #6
  %107 = icmp slt i32 %104, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %103
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %124

109:                                              ; preds = %103
  %110 = getelementptr inbounds %"class.juce::TextEditor", ptr %16, i32 0, i32 31
  %111 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %112, i32 noundef %113) #6
  invoke void @_ZN4juce10TextEditor18UniformTextSectionC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %111, ptr noundef nonnull align 8 dereferenceable(40) %114)
          to label %115 unwind label %120

115:                                              ; preds = %109
  %116 = call noundef ptr @_ZN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE3addEPS2_(ptr noundef nonnull align 8 dereferenceable(20) %110, ptr noundef %111) #6
  br label %117

117:                                              ; preds = %115
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %15, align 4, !tbaa !9
  br label %103, !llvm.loop !15

120:                                              ; preds = %109
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %12, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %111, i64 noundef 40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %128

124:                                              ; preds = %108
  br label %125

125:                                              ; preds = %124, %98
  call void @_ZN4juce10TextEditor23coalesceSimilarSectionsEv(ptr noundef nonnull align 8 dereferenceable(600) %16)
  %126 = getelementptr inbounds %"class.juce::TextEditor", ptr %16, i32 0, i32 29
  store i32 -1, ptr %126, align 8, !tbaa !16
  %127 = getelementptr inbounds %"class.juce::TextEditor", ptr %16, i32 0, i32 18
  store i8 1, ptr %127, align 4, !tbaa !88
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void

128:                                              ; preds = %120, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %129

129:                                              ; preds = %128
  %130 = load ptr, ptr %12, align 8
  %131 = load i32, ptr %13, align 4
  %132 = insertvalue { ptr, i32 } poison, ptr %130, 0
  %133 = insertvalue { ptr, i32 } %132, i32 %131, 1
  resume { ptr, i32 } %133
}

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE6insertEiPS2_(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, ptr noundef) local_unnamed_addr #4 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 #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce10TextEditor8reinsertEiRKNS_10OwnedArrayINS0_18UniformTextSectionENS_20DummyCriticalSectionEEE(ptr noundef nonnull align 8 dereferenceable(600) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(20) %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 456
  %5 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %4) #5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %.loopexit48

.lr.ph:                                           ; preds = %3, %39
  %.03863 = phi i32 [ %40, %39 ], [ 0, %3 ]
  %.03962 = phi i32 [ %9, %39 ], [ 0, %3 ]
  %7 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %4, i32 noundef %.03863) #5
  %8 = tail call noundef i32 @_ZNK4juce10TextEditor18UniformTextSection14getTotalLengthEv(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  %9 = add nsw i32 %8, %.03962
  %10 = icmp eq i32 %.03962, %1
  br i1 %10, label %11, label %22

11:                                               ; preds = %.lr.ph
  %12 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %2) #5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph66, label %.loopexit48

.lr.ph66:                                         ; preds = %11, %17
  %.in69 = phi i32 [ %14, %17 ], [ %12, %11 ]
  %14 = add nsw i32 %.in69, -1
  %15 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #6
  %16 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %2, i32 noundef %14) #5
  invoke void @_ZN4juce10TextEditor18UniformTextSectionC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %17 unwind label %20

17:                                               ; preds = %.lr.ph66
  %18 = tail call noundef ptr @_ZN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE6insertEiPS2_(ptr noundef nonnull align 8 dereferenceable(20) %4, i32 noundef %.03863, ptr noundef nonnull %15) #5
  %19 = icmp ugt i32 %.in69, 1
  br i1 %19, label %.lr.ph66, label %.loopexit48, !llvm.loop !5

20:                                               ; preds = %.lr.ph66
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %57

22:                                               ; preds = %.lr.ph
  %23 = icmp slt i32 %.03962, %1
  %24 = icmp sgt i32 %9, %1
  %or.cond = select i1 %23, i1 %24, i1 false
  br i1 %or.cond, label %25, label %39

25:                                               ; preds = %22
  %26 = sub nsw i32 %1, %.03962
  tail call void @_ZN4juce10TextEditor12splitSectionEii(ptr noundef nonnull align 8 dereferenceable(600) %0, i32 noundef %.03863, i32 noundef %26)
  %27 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %2) #5
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph65, label %.loopexit48

.lr.ph65:                                         ; preds = %25
  %29 = add nuw nsw i32 %.03863, 1
  br label %30

30:                                               ; preds = %.lr.ph65, %34
  %.in = phi i32 [ %27, %.lr.ph65 ], [ %31, %34 ]
  %31 = add nsw i32 %.in, -1
  %32 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #6
  %33 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %2, i32 noundef %31) #5
  invoke void @_ZN4juce10TextEditor18UniformTextSectionC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %32, ptr noundef nonnull align 8 dereferenceable(40) %33)
          to label %34 unwind label %37

34:                                               ; preds = %30
  %35 = tail call noundef ptr @_ZN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE6insertEiPS2_(ptr noundef nonnull align 8 dereferenceable(20) %4, i32 noundef %29, ptr noundef nonnull %32) #5
  %36 = icmp ugt i32 %.in, 1
  br i1 %36, label %30, label %.loopexit48, !llvm.loop !7

37:                                               ; preds = %30
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %57

39:                                               ; preds = %22
  %40 = add nuw nsw i32 %.03863, 1
  %41 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %4) #5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %.lr.ph, label %.loopexit48, !llvm.loop !8

.loopexit48:                                      ; preds = %39, %34, %17, %3, %25, %11
  %.140 = phi i32 [ %9, %11 ], [ %9, %25 ], [ 0, %3 ], [ %9, %17 ], [ %9, %34 ], [ %9, %39 ]
  %43 = icmp eq i32 %.140, %1
  br i1 %43, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.loopexit48
  %44 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %2) #5
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.lr.ph68, label %.loopexit

.lr.ph68:                                         ; preds = %.preheader, %48
  %.067 = phi i32 [ %50, %48 ], [ 0, %.preheader ]
  %46 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #6
  %47 = tail call noundef ptr @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %2, i32 noundef %.067) #5
  invoke void @_ZN4juce10TextEditor18UniformTextSectionC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %46, ptr noundef nonnull align 8 dereferenceable(40) %47)
          to label %48 unwind label %53

48:                                               ; preds = %.lr.ph68
  %49 = tail call noundef ptr @_ZN4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE3addEPS2_(ptr noundef nonnull align 8 dereferenceable(20) %4, ptr noundef nonnull %46) #5
  %50 = add nuw nsw i32 %.067, 1
  %51 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_10TextEditor18UniformTextSectionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %2) #5
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %.lr.ph68, label %.loopexit, !llvm.loop !9

53:                                               ; preds = %.lr.ph68
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

.loopexit:                                        ; preds = %48, %.preheader, %.loopexit48
  tail call void @_ZN4juce10TextEditor23coalesceSimilarSectionsEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  %55 = getelementptr inbounds i8, ptr %0, i64 448
  store i32 -1, ptr %55, align 8, !tbaa !10
  %56 = getelementptr inbounds i8, ptr %0, i64 268
  store i8 1, ptr %56, align 4, !tbaa !86
  ret void

57:                                               ; preds = %20, %37, %53
  %.lcssa87.sink = phi ptr [ %15, %20 ], [ %32, %37 ], [ %46, %53 ]
  %.pn.pn = phi { ptr, i32 } [ %21, %20 ], [ %38, %37 ], [ %54, %53 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.lcssa87.sink, i64 noundef 40) #7
  resume { ptr, i32 } %.pn.pn
}

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


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