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

; 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::ValueTree" = type { %"class.juce::ReferenceCountedObjectPtr.6", %"class.juce::ListenerList.7" }
%"class.juce::ReferenceCountedObjectPtr.6" = type { ptr }
%"class.juce::ListenerList.7" = type { %"class.juce::Array.8" }
%"class.juce::Array.8" = type { %"class.juce::ArrayAllocationBase.9", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.9" = type <{ %"class.juce::HeapBlock.10", i32, [4 x i8] }>
%"class.juce::HeapBlock.10" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Identifier" = type { %"class.juce::String" }
%"class.juce::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }
%"class.juce::ValueTree::SharedObject" = type { %"class.juce::ReferenceCountedObject", %"class.juce::Identifier", %"class.juce::NamedValueSet", %"class.juce::ReferenceCountedArray", %"class.juce::SortedSet.21", ptr }
%"class.juce::ReferenceCountedObject" = type { ptr, %"class.juce::Atomic" }
%"class.juce::Atomic" = type { i32, [4 x i8] }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.13" }
%"class.juce::Array.13" = type { %"class.juce::ArrayAllocationBase.14", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.14" = type <{ %"class.juce::HeapBlock.15", i32, [4 x i8] }>
%"class.juce::HeapBlock.15" = type { ptr }
%"class.juce::ReferenceCountedArray" = type { %"class.juce::ArrayAllocationBase.18", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.18" = type <{ %"class.juce::HeapBlock.19", i32, [4 x i8] }>
%"class.juce::HeapBlock.19" = type { ptr }
%"class.juce::SortedSet.21" = type { %"class.juce::Array.22" }
%"class.juce::Array.22" = type { %"class.juce::ArrayAllocationBase.23", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.23" = type <{ %"class.juce::HeapBlock.24", i32, [4 x i8] }>
%"class.juce::HeapBlock.24" = type { ptr }

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: nounwind
declare void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9ValueTree14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind noalias writable sret(%"class.juce::ValueTree") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.juce::String", align 8
  %6 = alloca i32, align 4
  %7 = alloca i1, align 1
  %8 = alloca %"class.juce::Identifier", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.juce::String", align 8
  %14 = alloca %"class.juce::var", align 8
  %15 = alloca %"class.juce::Identifier", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.juce::ValueTree", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds ptr, ptr %20, i64 19
  %22 = load ptr, ptr %21, align 8
  call void %22(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %23 = call noundef zeroext i1 @_ZNK4juce6String7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %23, label %24, label %25

24:                                               ; preds = %2
  call void @_ZN4juce9ValueTreeC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  store i32 1, ptr %6, align 4
  br label %160

25:                                               ; preds = %2
  store i1 false, ptr %7, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  invoke void @_ZN4juce10IdentifierC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %26 unwind label %40

26:                                               ; preds = %25
  invoke void @_ZN4juce9ValueTreeC1ERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %27 unwind label %44

27:                                               ; preds = %26
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 17
  %31 = load ptr, ptr %30, align 8
  %32 = invoke noundef i32 %31(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %33 unwind label %49

33:                                               ; preds = %27
  store i32 %32, ptr %11, align 4, !tbaa !11
  %34 = load i32, ptr %11, align 4, !tbaa !11
  %35 = icmp slt i32 %34, 0
  br i1 %35, label %36, label %53

36:                                               ; preds = %33
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  store i1 true, ptr %7, align 1
  store i32 1, ptr %6, align 4
  br label %155

40:                                               ; preds = %25
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %9, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %10, align 4
  br label %48

44:                                               ; preds = %26
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %9, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %10, align 4
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %48

48:                                               ; preds = %44, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %161

49:                                               ; preds = %27
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %9, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %10, align 4
  br label %157

53:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %54

54:                                               ; preds = %98, %53
  %55 = load i32, ptr %12, align 4, !tbaa !11
  %56 = load i32, ptr %11, align 4, !tbaa !11
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 4, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %102

59:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 19
  %63 = load ptr, ptr %62, align 8
  invoke void %63(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %64 unwind label %75

64:                                               ; preds = %59
  %65 = call noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %65, label %66, label %93

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce3var14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind writable sret(%"class.juce::var") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %67)
          to label %68 unwind label %79

68:                                               ; preds = %66
  %69 = getelementptr inbounds %"class.juce::ValueTree", ptr %0, i32 0, i32 0
  %70 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %69) #6
  %71 = getelementptr inbounds %"class.juce::ValueTree::SharedObject", ptr %70, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  invoke void @_ZN4juce10IdentifierC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %72 unwind label %83

72:                                               ; preds = %68
  %73 = invoke noundef zeroext i1 @_ZN4juce13NamedValueSet3setERKNS_10IdentifierERKNS_3varE(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %74 unwind label %87

74:                                               ; preds = %72
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  br label %97

75:                                               ; preds = %59
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %9, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %10, align 4
  br label %101

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

83:                                               ; preds = %68
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %9, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %10, align 4
  br label %91

87:                                               ; preds = %72
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %9, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %10, align 4
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br label %91

91:                                               ; preds = %87, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  br label %92

92:                                               ; preds = %91, %79
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %101

93:                                               ; preds = %64
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96, %74
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %12, align 4, !tbaa !11
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %12, align 4, !tbaa !11
  br label %54, !llvm.loop !13

101:                                              ; preds = %92, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %157

102:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = load ptr, ptr %103, align 8, !tbaa !9
  %105 = getelementptr inbounds ptr, ptr %104, i64 17
  %106 = load ptr, ptr %105, align 8
  %107 = invoke noundef i32 %106(ptr noundef nonnull align 8 dereferenceable(8) %103)
          to label %108 unwind label %119

108:                                              ; preds = %102
  store i32 %107, ptr %16, align 4, !tbaa !11
  %109 = getelementptr inbounds %"class.juce::ValueTree", ptr %0, i32 0, i32 0
  %110 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %109) #6
  %111 = getelementptr inbounds %"class.juce::ValueTree::SharedObject", ptr %110, i32 0, i32 3
  %112 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @_ZN4juce21ReferenceCountedArrayINS_9ValueTree12SharedObjectENS_20DummyCriticalSectionEE22ensureStorageAllocatedEi(ptr noundef nonnull align 8 dereferenceable(20) %111, i32 noundef %112)
          to label %113 unwind label %119

113:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %114

114:                                              ; preds = %147, %113
  %115 = load i32, ptr %17, align 4, !tbaa !11
  %116 = load i32, ptr %16, align 4, !tbaa !11
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %123, label %118

118:                                              ; preds = %114
  store i32 9, ptr %6, align 4
  br label %150

119:                                              ; preds = %108, %102
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %9, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %10, align 4
  br label %154

123:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4juce9ValueTree14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %124)
          to label %125 unwind label %128

125:                                              ; preds = %123
  %126 = call noundef zeroext i1 @_ZNK4juce9ValueTree7isValidEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br i1 %126, label %132, label %127

127:                                              ; preds = %125
  store i1 true, ptr %7, align 1
  store i32 1, ptr %6, align 4
  br label %144

128:                                              ; preds = %123
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %154

132:                                              ; preds = %125
  %133 = getelementptr inbounds %"class.juce::ValueTree", ptr %0, i32 0, i32 0
  %134 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %133) #6
  %135 = getelementptr inbounds %"class.juce::ValueTree::SharedObject", ptr %134, i32 0, i32 3
  %136 = getelementptr inbounds %"class.juce::ValueTree", ptr %18, i32 0, i32 0
  %137 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %136) #6
  %138 = call noundef ptr @_ZN4juce21ReferenceCountedArrayINS_9ValueTree12SharedObjectENS_20DummyCriticalSectionEE3addEPS2_(ptr noundef nonnull align 8 dereferenceable(20) %135, ptr noundef %137) #6
  %139 = getelementptr inbounds %"class.juce::ValueTree", ptr %0, i32 0, i32 0
  %140 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %139) #6
  %141 = getelementptr inbounds %"class.juce::ValueTree", ptr %18, i32 0, i32 0
  %142 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %141) #6
  %143 = getelementptr inbounds %"class.juce::ValueTree::SharedObject", ptr %142, i32 0, i32 5
  store ptr %140, ptr %143, align 8, !tbaa !15
  store i32 0, ptr %6, align 4
  br label %144

144:                                              ; preds = %132, %127
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  %145 = load i32, ptr %6, align 4
  switch i32 %145, label %150 [
    i32 0, label %146
  ]

146:                                              ; preds = %144
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %17, align 4, !tbaa !11
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %17, align 4, !tbaa !11
  br label %114, !llvm.loop !33

150:                                              ; preds = %144, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  %151 = load i32, ptr %6, align 4
  switch i32 %151, label %153 [
    i32 9, label %152
  ]

152:                                              ; preds = %150
  store i1 true, ptr %7, align 1
  store i32 1, ptr %6, align 4
  br label %153

153:                                              ; preds = %152, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %155

154:                                              ; preds = %128, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %157

155:                                              ; preds = %153, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %156 = load i1, ptr %7, align 1
  br i1 %156, label %159, label %158

157:                                              ; preds = %154, %101, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %161

158:                                              ; preds = %155
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %159

159:                                              ; preds = %158, %155
  br label %160

160:                                              ; preds = %159, %24
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void

161:                                              ; preds = %157, %48
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %162

162:                                              ; preds = %161
  %163 = load ptr, ptr %9, align 8
  %164 = load i32, ptr %10, align 4
  %165 = insertvalue { ptr, i32 } poison, ptr %163, 0
  %166 = insertvalue { ptr, i32 } %165, i32 %164, 1
  resume { ptr, i32 } %166
}

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

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

declare void @_ZN4juce3var14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind writable sret(%"class.juce::var") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #3

declare noundef zeroext i1 @_ZN4juce13NamedValueSet3setERKNS_10IdentifierERKNS_3varE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #3

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

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

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

declare void @_ZN4juce9ValueTreeC1Ev(ptr)

declare void @_ZN4juce9ValueTreeC1ERKNS_10IdentifierE(ptr, ptr)

declare void @_ZN4juce9ValueTreeD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { "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 = { 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 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 96}
!16 = !{!"_ZTSN4juce9ValueTree12SharedObjectE", !17, i64 0, !19, i64 16, !22, i64 24, !26, i64 48, !29, i64 72, !6, i64 96}
!17 = !{!"_ZTSN4juce22ReferenceCountedObjectE", !18, i64 8}
!18 = !{!"_ZTSN4juce6AtomicIiEE", !12, i64 0}
!19 = !{!"_ZTSN4juce10IdentifierE", !20, i64 0}
!20 = !{!"_ZTSN4juce6StringE", !21, i64 0}
!21 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!22 = !{!"_ZTSN4juce13NamedValueSetE", !23, i64 0}
!23 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !24, i64 0, !12, i64 16}
!24 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !25, i64 0, !12, i64 8}
!25 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!26 = !{!"_ZTSN4juce21ReferenceCountedArrayINS_9ValueTree12SharedObjectENS_20DummyCriticalSectionEEE", !27, i64 0, !12, i64 16}
!27 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ValueTree12SharedObjectENS_20DummyCriticalSectionEEE", !28, i64 0, !12, i64 8}
!28 = !{!"_ZTSN4juce9HeapBlockIPNS_9ValueTree12SharedObjectELb0EEE", !6, i64 0}
!29 = !{!"_ZTSN4juce9SortedSetIPNS_9ValueTreeENS_20DummyCriticalSectionEEE", !30, i64 0}
!30 = !{!"_ZTSN4juce5ArrayIPNS_9ValueTreeENS_20DummyCriticalSectionELi0EEE", !31, i64 0, !12, i64 16}
!31 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ValueTreeENS_20DummyCriticalSectionEEE", !32, i64 0, !12, i64 8}
!32 = !{!"_ZTSN4juce9HeapBlockIPNS_9ValueTreeELb0EEE", !6, i64 0}
!33 = distinct !{!33, !14}


; 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::ValueTree" = type { %"class.juce::ReferenceCountedObjectPtr.6", %"class.juce::ListenerList.7" }
%"class.juce::ReferenceCountedObjectPtr.6" = type { ptr }
%"class.juce::ListenerList.7" = type { %"class.juce::Array.8" }
%"class.juce::Array.8" = type { %"class.juce::ArrayAllocationBase.9", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.9" = type <{ %"class.juce::HeapBlock.10", i32, [4 x i8] }>
%"class.juce::HeapBlock.10" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Identifier" = type { %"class.juce::String" }
%"class.juce::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }

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: nounwind
declare void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9ValueTree14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind noalias writable sret(%"class.juce::ValueTree") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::String", align 8
  %4 = alloca %"class.juce::Identifier", align 8
  %5 = alloca %"class.juce::String", align 8
  %6 = alloca %"class.juce::var", align 8
  %7 = alloca %"class.juce::Identifier", align 8
  %8 = alloca %"class.juce::ValueTree", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 152
  %11 = load ptr, ptr %10, align 8
  call void %11(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %3, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %12 = call noundef zeroext i1 @_ZNK4juce6String7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br i1 %12, label %13, label %14

13:                                               ; preds = %2
  call void @_ZN4juce9ValueTreeC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %.critedge

14:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  invoke void @_ZN4juce10IdentifierC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %15 unwind label %23

15:                                               ; preds = %14
  invoke void @_ZN4juce9ValueTreeC1ERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %16 unwind label %25

16:                                               ; preds = %15
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %17 = load ptr, ptr %1, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 136
  %19 = load ptr, ptr %18, align 8
  %20 = invoke noundef i32 %19(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %21 unwind label %28

21:                                               ; preds = %16
  %22 = icmp slt i32 %20, 0
  br i1 %22, label %.critedge, label %.preheader50

.preheader50:                                     ; preds = %21
  %.not55 = icmp eq i32 %20, 0
  br i1 %.not55, label %._crit_edge, label %.lr.ph

23:                                               ; preds = %14
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %27

25:                                               ; preds = %15
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br label %27

27:                                               ; preds = %25, %23
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %79

28:                                               ; preds = %16
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %78

._crit_edge:                                      ; preds = %56, %.preheader50
  %30 = load ptr, ptr %1, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 136
  %32 = load ptr, ptr %31, align 8
  %33 = invoke noundef i32 %32(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %59 unwind label %62

.lr.ph:                                           ; preds = %.preheader50, %56
  %.02051 = phi i32 [ %57, %56 ], [ 0, %.preheader50 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %34 = load ptr, ptr %1, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 152
  %36 = load ptr, ptr %35, align 8
  invoke void %36(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %37 unwind label %46

37:                                               ; preds = %.lr.ph
  %38 = call noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %38, label %39, label %56

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  invoke void @_ZN4juce3var14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind nonnull writable sret(%"class.juce::var") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %40 unwind label %48

40:                                               ; preds = %39
  %41 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  invoke void @_ZN4juce10IdentifierC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %42 unwind label %50

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %41, i64 24
  %44 = invoke noundef zeroext i1 @_ZN4juce13NamedValueSet3setERKNS_10IdentifierERKNS_3varE(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %45 unwind label %52

45:                                               ; preds = %42
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %56

46:                                               ; preds = %.lr.ph
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %58

48:                                               ; preds = %39
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %55

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

52:                                               ; preds = %42
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br label %54

54:                                               ; preds = %52, %50
  %.pn39 = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %55

55:                                               ; preds = %54, %48
  %.pn39.pn = phi { ptr, i32 } [ %.pn39, %54 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br label %58

56:                                               ; preds = %37, %45
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %57 = add nuw nsw i32 %.02051, 1
  %exitcond.not = icmp eq i32 %57, %20
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

58:                                               ; preds = %55, %46
  %.pn39.pn.pn = phi { ptr, i32 } [ %.pn39.pn, %55 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %78

59:                                               ; preds = %._crit_edge
  %60 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %61 = getelementptr inbounds i8, ptr %60, i64 48
  invoke void @_ZN4juce21ReferenceCountedArrayINS_9ValueTree12SharedObjectENS_20DummyCriticalSectionEE22ensureStorageAllocatedEi(ptr noundef nonnull align 8 dereferenceable(20) %61, i32 noundef %33)
          to label %.preheader unwind label %62

.preheader:                                       ; preds = %59
  %.not52 = icmp sgt i32 %33, 0
  br i1 %.not52, label %.lr.ph54, label %.critedge

62:                                               ; preds = %59, %._crit_edge
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %78

.lr.ph54:                                         ; preds = %.preheader, %68
  %.053 = phi i32 [ %76, %68 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  invoke void @_ZN4juce9ValueTree14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind nonnull writable sret(%"class.juce::ValueTree") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %64 unwind label %66

64:                                               ; preds = %.lr.ph54
  %65 = call noundef zeroext i1 @_ZNK4juce9ValueTree7isValidEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br i1 %65, label %68, label %77

66:                                               ; preds = %.lr.ph54
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %78

68:                                               ; preds = %64
  %69 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %70 = getelementptr inbounds i8, ptr %69, i64 48
  %71 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %72 = call noundef ptr @_ZN4juce21ReferenceCountedArrayINS_9ValueTree12SharedObjectENS_20DummyCriticalSectionEE3addEPS2_(ptr noundef nonnull align 8 dereferenceable(20) %70, ptr noundef %71) #6
  %73 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %74 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_9ValueTree12SharedObjectEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %75 = getelementptr inbounds i8, ptr %74, i64 96
  store ptr %73, ptr %75, align 8, !tbaa !10
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  %76 = add nuw nsw i32 %.053, 1
  %exitcond56.not = icmp eq i32 %76, %33
  br i1 %exitcond56.not, label %.critedge, label %.lr.ph54, !llvm.loop !31

77:                                               ; preds = %64
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %.critedge

78:                                               ; preds = %62, %66, %58, %28
  %.pn39.pn.pn.pn = phi { ptr, i32 } [ %.pn39.pn.pn, %58 ], [ %29, %28 ], [ %67, %66 ], [ %63, %62 ]
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %79

.critedge:                                        ; preds = %68, %.preheader, %77, %21, %13
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret void

79:                                               ; preds = %78, %27
  %.pn39.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn39.pn.pn.pn, %78 ], [ %.pn, %27 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn39.pn.pn.pn.pn
}

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

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

declare void @_ZN4juce3var14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind writable sret(%"class.juce::var") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN4juce13NamedValueSet3setERKNS_10IdentifierERKNS_3varE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

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

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

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

declare void @_ZN4juce9ValueTreeC1Ev(ptr) local_unnamed_addr

declare void @_ZN4juce9ValueTreeC1ERKNS_10IdentifierE(ptr, ptr) local_unnamed_addr

declare void @_ZN4juce9ValueTreeD1Ev(ptr) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { "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 = { 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 = { 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"}
!10 = !{!11, !19, i64 96}
!11 = !{!"_ZTSN4juce9ValueTree12SharedObjectE", !12, i64 0, !16, i64 16, !20, i64 24, !24, i64 48, !27, i64 72, !19, i64 96}
!12 = !{!"_ZTSN4juce22ReferenceCountedObjectE", !13, i64 8}
!13 = !{!"_ZTSN4juce6AtomicIiEE", !14, i64 0}
!14 = !{!"int", !15, i64 0}
!15 = !{!"omnipotent char", !7, i64 0}
!16 = !{!"_ZTSN4juce10IdentifierE", !17, i64 0}
!17 = !{!"_ZTSN4juce6StringE", !18, i64 0}
!18 = !{!"_ZTSN4juce16CharPointer_UTF8E", !19, i64 0}
!19 = !{!"any pointer", !15, i64 0}
!20 = !{!"_ZTSN4juce13NamedValueSetE", !21, i64 0}
!21 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !14, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !23, i64 0, !14, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !19, i64 0}
!24 = !{!"_ZTSN4juce21ReferenceCountedArrayINS_9ValueTree12SharedObjectENS_20DummyCriticalSectionEEE", !25, i64 0, !14, i64 16}
!25 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ValueTree12SharedObjectENS_20DummyCriticalSectionEEE", !26, i64 0, !14, i64 8}
!26 = !{!"_ZTSN4juce9HeapBlockIPNS_9ValueTree12SharedObjectELb0EEE", !19, i64 0}
!27 = !{!"_ZTSN4juce9SortedSetIPNS_9ValueTreeENS_20DummyCriticalSectionEEE", !28, i64 0}
!28 = !{!"_ZTSN4juce5ArrayIPNS_9ValueTreeENS_20DummyCriticalSectionELi0EEE", !29, i64 0, !14, i64 16}
!29 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ValueTreeENS_20DummyCriticalSectionEEE", !30, i64 0, !14, i64 8}
!30 = !{!"_ZTSN4juce9HeapBlockIPNS_9ValueTreeELb0EEE", !19, i64 0}
!31 = distinct !{!31, !9}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass