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

; 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::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }
%"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::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: nounwind
declare void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juceneERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #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: mustprogress uwtable
declare dso_local void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce6String6lengthEv(ptr noundef nonnull align 8 dereferenceable(8)) #0

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce5ValueaSERKNS_3varE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #3

declare void @_ZN4juce3varC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce10TextEditor7setTextERKNS_6StringEb(ptr noundef nonnull align 8 dereferenceable(600) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i1 noundef zeroext %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca %"class.juce::String", align 8
  %9 = alloca i1, align 1
  %10 = alloca i1, align 1
  %11 = alloca %"class.juce::var", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca %"class.juce::Colour", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %17 = zext i1 %2 to i8
  store i8 %17, ptr %6, align 1, !tbaa !9
  %18 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = call noundef i32 @_ZNK4juce6String6lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  store i32 %20, ptr %7, align 4, !tbaa !11
  %21 = load i32, ptr %7, align 4, !tbaa !11
  %22 = call noundef i32 @_ZNK4juce10TextEditor16getTotalNumCharsEv(ptr noundef nonnull align 8 dereferenceable(600) %18)
  %23 = icmp ne i32 %21, %22
  store i1 false, ptr %9, align 1
  store i1 false, ptr %10, align 1
  br i1 %23, label %31, label %24

24:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i1 true, ptr %9, align 1
  call void @_ZNK4juce10TextEditor7getTextEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %8, ptr noundef nonnull align 8 dereferenceable(600) %18)
  store i1 true, ptr %10, align 1
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZN4juceneERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  br i1 %26, label %31, label %27

27:                                               ; preds = %24
  %28 = getelementptr inbounds %"class.juce::TextEditor", ptr %18, i32 0, i32 20
  %29 = load i8, ptr %28, align 2, !tbaa !13, !range !84, !noundef !85
  %30 = trunc i8 %29 to i1
  br label %31

31:                                               ; preds = %27, %24, %3
  %32 = phi i1 [ true, %24 ], [ true, %3 ], [ %30, %27 ]
  %33 = load i1, ptr %10, align 1
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %35

35:                                               ; preds = %34, %31
  %36 = load i1, ptr %9, align 1
  br i1 %36, label %37, label %38

37:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %38

38:                                               ; preds = %37, %35
  br i1 %32, label %39, label %80

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4juce3varC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %40)
  %41 = getelementptr inbounds %"class.juce::TextEditor", ptr %18, i32 0, i32 36
  %42 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce5ValueaSERKNS_3varE(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %43 unwind label %64

43:                                               ; preds = %39
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %44 = getelementptr inbounds %"class.juce::TextEditor", ptr %18, i32 0, i32 30
  %45 = load i32, ptr %44, align 4, !tbaa !86
  store i32 %45, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  %46 = load i32, ptr %14, align 4, !tbaa !11
  %47 = call noundef i32 @_ZNK4juce10TextEditor16getTotalNumCharsEv(ptr noundef nonnull align 8 dereferenceable(600) %18)
  %48 = icmp sge i32 %46, %47
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %15, align 1, !tbaa !9
  call void @_ZN4juce10TextEditor13clearInternalEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(600) %18, ptr noundef null)
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.juce::TextEditor", ptr %18, i32 0, i32 28
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %16, ptr noundef nonnull align 8 dereferenceable(197) %18, i32 noundef 16777729, i1 noundef zeroext false)
  %52 = getelementptr inbounds %"class.juce::TextEditor", ptr %18, i32 0, i32 30
  %53 = load i32, ptr %52, align 4, !tbaa !86
  invoke void @_ZN4juce10TextEditor6insertERKNS_6StringEiRKNS_4FontENS_6ColourEPNS_11UndoManagerEi(ptr noundef nonnull align 8 dereferenceable(600) %18, ptr noundef nonnull align 8 dereferenceable(8) %50, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef %16, ptr noundef null, i32 noundef %53)
          to label %54 unwind label %68

54:                                               ; preds = %43
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %16) #5
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  %58 = load i8, ptr %15, align 1, !tbaa !9, !range !84, !noundef !85
  %59 = trunc i8 %58 to i1
  br i1 %59, label %60, label %72

60:                                               ; preds = %57
  %61 = call noundef zeroext i1 @_ZNK4juce10TextEditor11isMultiLineEv(ptr noundef nonnull align 8 dereferenceable(600) %18)
  br i1 %61, label %72, label %62

62:                                               ; preds = %60
  %63 = call noundef i32 @_ZNK4juce10TextEditor16getTotalNumCharsEv(ptr noundef nonnull align 8 dereferenceable(600) %18)
  store i32 %63, ptr %14, align 4, !tbaa !11
  br label %72

64:                                               ; preds = %39
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %12, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %13, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %81

68:                                               ; preds = %43
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %12, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %13, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %81

72:                                               ; preds = %62, %60, %57
  %73 = load i32, ptr %14, align 4, !tbaa !11
  call void @_ZN4juce10TextEditor11moveCaretToEib(ptr noundef nonnull align 8 dereferenceable(600) %18, i32 noundef %73, i1 noundef zeroext false)
  %74 = load i8, ptr %6, align 1, !tbaa !9, !range !84, !noundef !85
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %77

76:                                               ; preds = %72
  call void @_ZN4juce10TextEditor11textChangedEv(ptr noundef nonnull align 8 dereferenceable(600) %18)
  br label %77

77:                                               ; preds = %76, %72
  call void @_ZN4juce10TextEditor20updateTextHolderSizeEv(ptr noundef nonnull align 8 dereferenceable(600) %18)
  call void @_ZN4juce10TextEditor31scrollToMakeSureCursorIsVisibleEv(ptr noundef nonnull align 8 dereferenceable(600) %18)
  %78 = getelementptr inbounds %"class.juce::TextEditor", ptr %18, i32 0, i32 22
  call void @_ZN4juce11UndoManager16clearUndoHistoryEv(ptr noundef nonnull align 8 dereferenceable(130) %78)
  %79 = getelementptr inbounds %"class.juce::TextEditor", ptr %18, i32 0, i32 20
  store i8 0, ptr %79, align 2, !tbaa !13
  call void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %18)
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %80

80:                                               ; preds = %77, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void

81:                                               ; preds = %68, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %82

82:                                               ; preds = %81
  %83 = load ptr, ptr %12, align 8
  %84 = load i32, ptr %13, align 4
  %85 = insertvalue { ptr, i32 } poison, ptr %83, 0
  %86 = insertvalue { ptr, i32 } %85, i32 %84, 1
  resume { ptr, i32 } %86
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce10TextEditor7getTextEv(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(600)) #2 align 2

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

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

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

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

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

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

declare void @_ZN4juce11UndoManager16clearUndoHistoryEv(ptr noundef nonnull align 8 dereferenceable(130)) #3

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

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

attributes #0 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 }

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


; 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::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juceneERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) 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: mustprogress uwtable
declare dso_local void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce6String6lengthEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce5ValueaSERKNS_3varE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

declare void @_ZN4juce3varC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce10TextEditor7setTextERKNS_6StringEb(ptr noundef nonnull align 8 dereferenceable(600) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i1 noundef zeroext %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.juce::String", align 8
  %5 = alloca %"class.juce::var", align 8
  %6 = alloca %"class.juce::Colour", align 1
  %7 = tail call noundef i32 @_ZNK4juce6String6lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  %8 = tail call noundef i32 @_ZNK4juce10TextEditor16getTotalNumCharsEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  %.not = icmp eq i32 %7, %8
  br i1 %.not, label %9, label %.critedge.thread

9:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @_ZNK4juce10TextEditor7getTextEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %4, ptr noundef nonnull align 8 dereferenceable(600) %0)
  %10 = call noundef zeroext i1 @_ZN4juceneERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  br i1 %10, label %.critedge.thread20, label %.critedge

.critedge.thread20:                               ; preds = %9
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %.critedge.thread

.critedge:                                        ; preds = %9
  %11 = getelementptr inbounds i8, ptr %0, i64 270
  %12 = load i8, ptr %11, align 2, !tbaa !5, !range !81, !noundef !82
  %13 = trunc nuw i8 %12 to i1
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br i1 %13, label %.critedge.thread, label %36

.critedge.thread:                                 ; preds = %3, %.critedge.thread20, %.critedge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN4juce3varC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %14 = getelementptr inbounds i8, ptr %0, i64 512
  %15 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce5ValueaSERKNS_3varE(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %16 unwind label %27

16:                                               ; preds = %.critedge.thread
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  %17 = getelementptr inbounds i8, ptr %0, i64 452
  %18 = load i32, ptr %17, align 4, !tbaa !83
  %19 = call noundef i32 @_ZNK4juce10TextEditor16getTotalNumCharsEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  call void @_ZN4juce10TextEditor13clearInternalEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(600) %0, ptr noundef null)
  %20 = getelementptr inbounds i8, ptr %0, i64 440
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %6, ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef 16777729, i1 noundef zeroext false)
  %21 = load i32, ptr %17, align 4, !tbaa !83
  invoke void @_ZN4juce10TextEditor6insertERKNS_6StringEiRKNS_4FontENS_6ColourEPNS_11UndoManagerEi(ptr noundef nonnull align 8 dereferenceable(600) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull %6, ptr noundef null, i32 noundef %21)
          to label %22 unwind label %29

22:                                               ; preds = %16
  %.not18 = icmp slt i32 %18, %19
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %6) #5
  br i1 %.not18, label %31, label %23

23:                                               ; preds = %22
  %24 = call noundef zeroext i1 @_ZNK4juce10TextEditor11isMultiLineEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  br i1 %24, label %31, label %25

25:                                               ; preds = %23
  %26 = call noundef i32 @_ZNK4juce10TextEditor16getTotalNumCharsEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  br label %31

27:                                               ; preds = %.critedge.thread
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %37

29:                                               ; preds = %16
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %6) #5
  br label %37

31:                                               ; preds = %25, %23, %22
  %.013 = phi i32 [ %18, %23 ], [ %26, %25 ], [ %18, %22 ]
  call void @_ZN4juce10TextEditor11moveCaretToEib(ptr noundef nonnull align 8 dereferenceable(600) %0, i32 noundef %.013, i1 noundef zeroext false)
  br i1 %2, label %32, label %33

32:                                               ; preds = %31
  call void @_ZN4juce10TextEditor11textChangedEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  br label %33

33:                                               ; preds = %32, %31
  call void @_ZN4juce10TextEditor20updateTextHolderSizeEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  call void @_ZN4juce10TextEditor31scrollToMakeSureCursorIsVisibleEv(ptr noundef nonnull align 8 dereferenceable(600) %0)
  %34 = getelementptr inbounds i8, ptr %0, i64 272
  call void @_ZN4juce11UndoManager16clearUndoHistoryEv(ptr noundef nonnull align 8 dereferenceable(130) %34)
  %35 = getelementptr inbounds i8, ptr %0, i64 270
  store i8 0, ptr %35, align 2, !tbaa !5
  call void @_ZN4juce9Component7repaintEv(ptr noundef nonnull align 8 dereferenceable(197) %0)
  br label %36

36:                                               ; preds = %33, %.critedge
  ret void

37:                                               ; preds = %29, %27
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce10TextEditor7getTextEv(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(600)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

declare void @_ZN4juce11UndoManager16clearUndoHistoryEv(ptr noundef nonnull align 8 dereferenceable(130)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce10TextEditor6insertERKNS_6StringEiRKNS_4FontENS_6ColourEPNS_11UndoManagerEi(ptr noundef nonnull align 8 dereferenceable(600), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2 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 #2 align 2

attributes #0 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 }

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

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


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