; 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::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ValueTree" = type { %"class.juce::ReferenceCountedObjectPtr.174", %"class.juce::ListenerList.175" }
%"class.juce::ReferenceCountedObjectPtr.174" = type { ptr }
%"class.juce::ListenerList.175" = type { %"class.juce::Array.176" }
%"class.juce::Array.176" = type { %"class.juce::ArrayAllocationBase.177", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.177" = type <{ %"class.juce::HeapBlock.178", i32, [4 x i8] }>
%"class.juce::HeapBlock.178" = type { ptr }
%"class.juce::MarkerList::ValueTreeWrapper" = type { %"class.juce::ValueTree" }
%"class.juce::DrawableComposite::ValueTreeWrapper" = type { %"class.juce::Drawable::ValueTreeWrapperBase" }
%"class.juce::Drawable::ValueTreeWrapperBase" = type { %"class.juce::ValueTree" }
%"class.juce::DrawableComposite" = type <{ %"class.juce::Drawable", %"class.juce::RelativeParallelogram", %"class.juce::MarkerList", %"class.juce::MarkerList", i8, [7 x i8] }>
%"class.juce::Drawable" = type { %"class.juce::Component.base", %"class.juce::Point" }
%"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::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::Point" = type { i32, i32 }
%"class.juce::RelativeParallelogram" = type { %"class.juce::RelativePoint", %"class.juce::RelativePoint", %"class.juce::RelativePoint" }
%"class.juce::RelativePoint" = type { %"class.juce::RelativeCoordinate", %"class.juce::RelativeCoordinate" }
%"class.juce::RelativeCoordinate" = type { %"class.juce::Expression" }
%"class.juce::Expression" = type { %"class.juce::ReferenceCountedObjectPtr.59" }
%"class.juce::ReferenceCountedObjectPtr.59" = type { ptr }
%"class.juce::MarkerList" = type { %"class.juce::OwnedArray.160", %"class.juce::ListenerList.165" }
%"class.juce::OwnedArray.160" = type { %"class.juce::ArrayAllocationBase.161", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.161" = type <{ %"class.juce::HeapBlock.162", i32, [4 x i8] }>
%"class.juce::HeapBlock.162" = type { ptr }
%"class.juce::ListenerList.165" = type { %"class.juce::Array.166" }
%"class.juce::Array.166" = type { %"class.juce::ArrayAllocationBase.167", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.167" = type <{ %"class.juce::HeapBlock.168", i32, [4 x i8] }>
%"class.juce::HeapBlock.168" = type { ptr }

@_ZTIN4juce9ComponentE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN4juce8DrawableE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZN4juce17DrawableComposite13valueTreeTypeE = external dso_local global %"class.juce::Identifier", align 8

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #2

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce10MarkerList16ValueTreeWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce17DrawableComposite16ValueTreeWrapper21getMarkerListCreatingEbPNS_11UndoManagerE(ptr dead_on_unwind noalias writable sret(%"class.juce::MarkerList::ValueTreeWrapper") align 8, ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce17DrawableComposite15createValueTreeEPNS_16ComponentBuilder13ImageProviderE(ptr dead_on_unwind noalias writable sret(%"class.juce::ValueTree") align 8 %0, ptr noundef nonnull align 8 dereferenceable(353) %1, ptr noundef %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca %"class.juce::DrawableComposite::ValueTreeWrapper", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.juce::ValueTree", align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.juce::ValueTree", align 8
  %15 = alloca %"class.juce::MarkerList::ValueTreeWrapper", align 8
  %16 = alloca %"class.juce::MarkerList::ValueTreeWrapper", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8
  store i1 false, ptr %7, align 1
  call void @_ZN4juce9ValueTreeC1ERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce17DrawableComposite13valueTreeTypeE)
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #7
  invoke void @_ZN4juce17DrawableComposite16ValueTreeWrapperC1ERKNS_9ValueTreeE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %18 unwind label %29

18:                                               ; preds = %3
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce9Component14getComponentIDEv(ptr noundef nonnull align 8 dereferenceable(197) %17) #7
  invoke void @_ZN4juce8Drawable20ValueTreeWrapperBase5setIDERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %20 unwind label %33

20:                                               ; preds = %18
  %21 = getelementptr inbounds %"class.juce::DrawableComposite", ptr %17, i32 0, i32 1
  invoke void @_ZN4juce17DrawableComposite16ValueTreeWrapper14setBoundingBoxERKNS_21RelativeParallelogramEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef null)
          to label %22 unwind label %33

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  invoke void @_ZN4juce17DrawableComposite16ValueTreeWrapper20getChildListCreatingEPNS_11UndoManagerE(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef null)
          to label %23 unwind label %37

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

24:                                               ; preds = %60, %23
  %25 = load i32, ptr %12, align 4, !tbaa !9
  %26 = call noundef i32 @_ZNK4juce9Component21getNumChildComponentsEv(ptr noundef nonnull align 8 dereferenceable(197) %17) #7
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %41, label %28

28:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %72

29:                                               ; preds = %3
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %9, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %10, align 4
  br label %101

33:                                               ; preds = %20, %18
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %9, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %10, align 4
  br label %100

37:                                               ; preds = %22
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %9, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %10, align 4
  br label %99

41:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = call noundef ptr @_ZNK4juce9Component17getChildComponentEi(ptr noundef nonnull align 8 dereferenceable(197) %17, i32 noundef %42) #7
  %44 = icmp eq ptr %43, null
  br i1 %44, label %47, label %45

45:                                               ; preds = %41
  %46 = call ptr @__dynamic_cast(ptr %43, ptr @_ZTIN4juce9ComponentE, ptr @_ZTIN4juce8DrawableE, i64 0) #7
  br label %48

47:                                               ; preds = %41
  br label %48

48:                                               ; preds = %47, %45
  %49 = phi ptr [ %46, %45 ], [ null, %47 ]
  store ptr %49, ptr %13, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %48
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #7
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load ptr, ptr %53, align 8, !tbaa !11
  %56 = getelementptr inbounds ptr, ptr %55, i64 46
  %57 = load ptr, ptr %56, align 8
  invoke void %57(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8 %14, ptr noundef nonnull align 8 dereferenceable(208) %53, ptr noundef %54)
          to label %58 unwind label %63

58:                                               ; preds = %52
  invoke void @_ZN4juce9ValueTree8addChildERKS0_iPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %14, i32 noundef -1, ptr noundef null)
          to label %59 unwind label %67

59:                                               ; preds = %58
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %12, align 4, !tbaa !9
  br label %24, !llvm.loop !13

63:                                               ; preds = %52
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %9, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %10, align 4
  br label %71

67:                                               ; preds = %58
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %9, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %10, align 4
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  br label %71

71:                                               ; preds = %67, %63
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %98

72:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  invoke void @_ZN4juce17DrawableComposite16ValueTreeWrapper21getMarkerListCreatingEbPNS_11UndoManagerE(ptr dead_on_unwind writable sret(%"class.juce::MarkerList::ValueTreeWrapper") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %8, i1 noundef zeroext true, ptr noundef null)
          to label %73 unwind label %80

73:                                               ; preds = %72
  %74 = getelementptr inbounds %"class.juce::DrawableComposite", ptr %17, i32 0, i32 2
  invoke void @_ZN4juce10MarkerList16ValueTreeWrapper8readFromERKS0_PNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(48) %74, ptr noundef null)
          to label %75 unwind label %84

75:                                               ; preds = %73
  call void @_ZN4juce10MarkerList16ValueTreeWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #7
  invoke void @_ZN4juce17DrawableComposite16ValueTreeWrapper21getMarkerListCreatingEbPNS_11UndoManagerE(ptr dead_on_unwind writable sret(%"class.juce::MarkerList::ValueTreeWrapper") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %8, i1 noundef zeroext false, ptr noundef null)
          to label %76 unwind label %89

76:                                               ; preds = %75
  %77 = getelementptr inbounds %"class.juce::DrawableComposite", ptr %17, i32 0, i32 3
  invoke void @_ZN4juce10MarkerList16ValueTreeWrapper8readFromERKS0_PNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(48) %77, ptr noundef null)
          to label %78 unwind label %93

78:                                               ; preds = %76
  call void @_ZN4juce10MarkerList16ValueTreeWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  store i1 true, ptr %7, align 1
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @_ZN4juce8Drawable20ValueTreeWrapperBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  %79 = load i1, ptr %7, align 1
  br i1 %79, label %103, label %102

80:                                               ; preds = %72
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  br label %88

84:                                               ; preds = %73
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %9, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %10, align 4
  call void @_ZN4juce10MarkerList16ValueTreeWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %88

88:                                               ; preds = %84, %80
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %98

89:                                               ; preds = %75
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %9, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %10, align 4
  br label %97

93:                                               ; preds = %76
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %9, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %10, align 4
  call void @_ZN4juce10MarkerList16ValueTreeWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  br label %97

97:                                               ; preds = %93, %89
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  br label %98

98:                                               ; preds = %97, %88, %71
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %99

99:                                               ; preds = %98, %37
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  br label %100

100:                                              ; preds = %99, %33
  call void @_ZN4juce8Drawable20ValueTreeWrapperBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %101

101:                                              ; preds = %100, %29
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  br label %104

102:                                              ; preds = %78
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  br label %103

103:                                              ; preds = %102, %78
  ret void

104:                                              ; preds = %101
  %105 = load ptr, ptr %9, align 8
  %106 = load i32, ptr %10, align 4
  %107 = insertvalue { ptr, i32 } poison, ptr %105, 0
  %108 = insertvalue { ptr, i32 } %107, i32 %106, 1
  resume { ptr, i32 } %108
}

declare void @_ZN4juce9ValueTreeC1ERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6

declare void @_ZN4juce9ValueTree8addChildERKS0_iPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce8Drawable20ValueTreeWrapperBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

declare void @_ZN4juce17DrawableComposite16ValueTreeWrapperC1ERKNS_9ValueTreeE(ptr, ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nounwind willreturn memory(read) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "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 = { 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 #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ValueTree" = type { %"class.juce::ReferenceCountedObjectPtr.174", %"class.juce::ListenerList.175" }
%"class.juce::ReferenceCountedObjectPtr.174" = type { ptr }
%"class.juce::ListenerList.175" = type { %"class.juce::Array.176" }
%"class.juce::Array.176" = type { %"class.juce::ArrayAllocationBase.177", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.177" = type <{ %"class.juce::HeapBlock.178", i32, [4 x i8] }>
%"class.juce::HeapBlock.178" = type { ptr }
%"class.juce::MarkerList::ValueTreeWrapper" = type { %"class.juce::ValueTree" }
%"class.juce::DrawableComposite::ValueTreeWrapper" = type { %"class.juce::Drawable::ValueTreeWrapperBase" }
%"class.juce::Drawable::ValueTreeWrapperBase" = type { %"class.juce::ValueTree" }

@_ZTIN4juce9ComponentE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN4juce8DrawableE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZN4juce17DrawableComposite13valueTreeTypeE = external dso_local global %"class.juce::Identifier", align 8

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce10MarkerList16ValueTreeWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce17DrawableComposite16ValueTreeWrapper21getMarkerListCreatingEbPNS_11UndoManagerE(ptr dead_on_unwind noalias writable sret(%"class.juce::MarkerList::ValueTreeWrapper") align 8, ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce17DrawableComposite15createValueTreeEPNS_16ComponentBuilder13ImageProviderE(ptr dead_on_unwind noalias nonnull writable sret(%"class.juce::ValueTree") align 8 %0, ptr noundef nonnull align 8 dereferenceable(353) %1, ptr noundef %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.juce::DrawableComposite::ValueTreeWrapper", align 8
  %5 = alloca %"class.juce::ValueTree", align 8
  %6 = alloca %"class.juce::ValueTree", align 8
  %7 = alloca %"class.juce::MarkerList::ValueTreeWrapper", align 8
  %8 = alloca %"class.juce::MarkerList::ValueTreeWrapper", align 8
  tail call void @_ZN4juce9ValueTreeC1ERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce17DrawableComposite13valueTreeTypeE)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  invoke void @_ZN4juce17DrawableComposite16ValueTreeWrapperC1ERKNS_9ValueTreeE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %9 unwind label %16

9:                                                ; preds = %3
  %10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce9Component14getComponentIDEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #8
  invoke void @_ZN4juce8Drawable20ValueTreeWrapperBase5setIDERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %11 unwind label %18

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %1, i64 208
  invoke void @_ZN4juce17DrawableComposite16ValueTreeWrapper14setBoundingBoxERKNS_21RelativeParallelogramEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef null)
          to label %13 unwind label %18

13:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  invoke void @_ZN4juce17DrawableComposite16ValueTreeWrapper20getChildListCreatingEPNS_11UndoManagerE(ptr dead_on_unwind nonnull writable sret(%"class.juce::ValueTree") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef null)
          to label %.preheader unwind label %20

.preheader:                                       ; preds = %13
  %14 = call noundef i32 @_ZNK4juce9Component21getNumChildComponentsEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #8
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %29, %.preheader
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  invoke void @_ZN4juce17DrawableComposite16ValueTreeWrapper21getMarkerListCreatingEbPNS_11UndoManagerE(ptr dead_on_unwind nonnull writable sret(%"class.juce::MarkerList::ValueTreeWrapper") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %4, i1 noundef zeroext true, ptr noundef null)
          to label %38 unwind label %44

16:                                               ; preds = %3
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %57

18:                                               ; preds = %11, %9
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %56

20:                                               ; preds = %13
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %55

.lr.ph:                                           ; preds = %.preheader, %29
  %.026 = phi i32 [ %30, %29 ], [ 0, %.preheader ]
  %22 = call noundef ptr @_ZNK4juce9Component17getChildComponentEi(ptr noundef nonnull align 8 dereferenceable(197) %1, i32 noundef %.026) #8
  %23 = icmp ne ptr %22, null
  call void @llvm.assume(i1 %23)
  %24 = call ptr @__dynamic_cast(ptr nonnull %22, ptr nonnull @_ZTIN4juce9ComponentE, ptr nonnull @_ZTIN4juce8DrawableE, i64 0) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 368
  %27 = load ptr, ptr %26, align 8
  invoke void %27(ptr dead_on_unwind nonnull writable sret(%"class.juce::ValueTree") align 8 %6, ptr noundef nonnull align 8 dereferenceable(208) %24, ptr noundef %2)
          to label %28 unwind label %33

28:                                               ; preds = %.lr.ph
  invoke void @_ZN4juce9ValueTree8addChildERKS0_iPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef -1, ptr noundef null)
          to label %29 unwind label %35

29:                                               ; preds = %28
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  %30 = add nuw nsw i32 %.026, 1
  %31 = call noundef i32 @_ZNK4juce9Component21getNumChildComponentsEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #8
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %.lr.ph, label %._crit_edge, !llvm.loop !8

33:                                               ; preds = %.lr.ph
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %37

35:                                               ; preds = %28
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  br label %37

37:                                               ; preds = %35, %33
  %.pn20 = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %54

38:                                               ; preds = %._crit_edge
  %39 = getelementptr inbounds i8, ptr %1, i64 256
  invoke void @_ZN4juce10MarkerList16ValueTreeWrapper8readFromERKS0_PNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(48) %39, ptr noundef null)
          to label %40 unwind label %46

40:                                               ; preds = %38
  call void @_ZN4juce10MarkerList16ValueTreeWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  invoke void @_ZN4juce17DrawableComposite16ValueTreeWrapper21getMarkerListCreatingEbPNS_11UndoManagerE(ptr dead_on_unwind nonnull writable sret(%"class.juce::MarkerList::ValueTreeWrapper") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %4, i1 noundef zeroext false, ptr noundef null)
          to label %41 unwind label %49

41:                                               ; preds = %40
  %42 = getelementptr inbounds i8, ptr %1, i64 304
  invoke void @_ZN4juce10MarkerList16ValueTreeWrapper8readFromERKS0_PNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(48) %42, ptr noundef null)
          to label %43 unwind label %51

43:                                               ; preds = %41
  call void @_ZN4juce10MarkerList16ValueTreeWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @_ZN4juce8Drawable20ValueTreeWrapperBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  ret void

44:                                               ; preds = %._crit_edge
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %48

46:                                               ; preds = %38
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce10MarkerList16ValueTreeWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %48

48:                                               ; preds = %46, %44
  %.pn = phi { ptr, i32 } [ %47, %46 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  br label %54

49:                                               ; preds = %40
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

51:                                               ; preds = %41
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce10MarkerList16ValueTreeWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %53

53:                                               ; preds = %51, %49
  %.pn18 = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %54

54:                                               ; preds = %53, %48, %37
  %.pn20.pn = phi { ptr, i32 } [ %.pn20, %37 ], [ %.pn18, %53 ], [ %.pn, %48 ]
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  br label %55

55:                                               ; preds = %54, %20
  %.pn20.pn.pn = phi { ptr, i32 } [ %.pn20.pn, %54 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %56

56:                                               ; preds = %55, %18
  %.pn20.pn.pn.pn = phi { ptr, i32 } [ %.pn20.pn.pn, %55 ], [ %19, %18 ]
  call void @_ZN4juce8Drawable20ValueTreeWrapperBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  br label %57

57:                                               ; preds = %56, %16
  %.pn20.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn20.pn.pn.pn, %56 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #8
  resume { ptr, i32 } %.pn20.pn.pn.pn.pn
}

declare void @_ZN4juce9ValueTreeC1ERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6

declare void @_ZN4juce9ValueTree8addChildERKS0_iPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce8Drawable20ValueTreeWrapperBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

declare void @_ZN4juce17DrawableComposite16ValueTreeWrapperC1ERKNS_9ValueTreeE(ptr, ptr) local_unnamed_addr

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(read) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "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 = { 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 #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass