; 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::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }
%"class.juce::MemoryInputStream" = type { %"class.juce::InputStream", ptr, i64, i64, %"class.juce::HeapBlock.28" }
%"class.juce::InputStream" = type { ptr }
%"class.juce::HeapBlock.28" = type { ptr }
%"class.juce::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTreeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

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

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

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

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

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

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

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

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

declare void @_ZN4juce17MemoryInputStreamC1EPKvmb(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i64 noundef, i1 noundef zeroext) unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce21ValueTreeSynchroniser11applyChangeERNS_9ValueTreeEPKvmPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.juce::MemoryInputStream", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.juce::ValueTree", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.juce::ValueTree", align 8
  %17 = alloca %"class.juce::ValueTree", align 8
  %18 = alloca %"class.juce::Identifier", align 8
  %19 = alloca %"class.juce::String", align 8
  %20 = alloca %"class.juce::var", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.juce::ValueTree", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #6
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN4juce17MemoryInputStreamC1EPKvmb(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef %26, i64 noundef %27, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %28 = invoke noundef signext i8 @_ZN4juce11InputStream8readByteEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %29 unwind label %38

29:                                               ; preds = %4
  %30 = sext i8 %28 to i32
  store i32 %30, ptr %11, align 4, !tbaa !11
  %31 = load i32, ptr %11, align 4, !tbaa !11
  %32 = icmp eq i32 %31, 2
  br i1 %32, label %33, label %51

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  invoke void @_ZN4juce9ValueTree14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %34 unwind label %42

34:                                               ; preds = %33
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTreeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %37 unwind label %46

37:                                               ; preds = %34
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  store i1 true, ptr %5, align 1
  store i32 1, ptr %15, align 4
  br label %169

38:                                               ; preds = %4
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %12, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %13, align 4
  br label %171

42:                                               ; preds = %33
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %12, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %13, align 4
  br label %50

46:                                               ; preds = %34
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %12, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %13, align 4
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %50

50:                                               ; preds = %46, %42
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %171

51:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4juce9ValueTreeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %52) #6
  invoke void @_ZN4juce28ValueTreeSynchroniserHelpersL19readSubTreeLocationERNS_17MemoryInputStreamENS_9ValueTreeE(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8 %16, ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef %17)
          to label %53 unwind label %56

53:                                               ; preds = %51
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  %54 = call noundef zeroext i1 @_ZNK4juce9ValueTree7isValidEv(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br i1 %54, label %60, label %55

55:                                               ; preds = %53
  store i1 false, ptr %5, align 1
  store i32 1, ptr %15, align 4
  br label %166

56:                                               ; preds = %51
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %12, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %13, align 4
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %168

60:                                               ; preds = %53
  %61 = load i32, ptr %11, align 4, !tbaa !11
  switch i32 %61, label %161 [
    i32 1, label %62
    i32 3, label %88
    i32 4, label %109
    i32 5, label %129
  ]

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  invoke void @_ZN4juce11InputStream10readStringEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %19, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %63 unwind label %69

63:                                               ; preds = %62
  invoke void @_ZN4juce10IdentifierC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %64 unwind label %73

64:                                               ; preds = %63
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  invoke void @_ZN4juce3var14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind writable sret(%"class.juce::var") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %65 unwind label %78

65:                                               ; preds = %64
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %66)
          to label %68 unwind label %82

68:                                               ; preds = %65
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  store i1 true, ptr %5, align 1
  store i32 1, ptr %15, align 4
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %166

69:                                               ; preds = %62
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %12, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %13, align 4
  br label %77

73:                                               ; preds = %63
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %12, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %13, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %77

77:                                               ; preds = %73, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %87

78:                                               ; preds = %64
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %12, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %13, align 4
  br label %86

82:                                               ; preds = %65
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %12, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %13, align 4
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  br label %86

86:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %87

87:                                               ; preds = %86, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %167

88:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %89 = invoke noundef i32 @_ZN4juce11InputStream17readCompressedIntEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %90 unwind label %95

90:                                               ; preds = %88
  store i32 %89, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  invoke void @_ZN4juce9ValueTree14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8 %22, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %91 unwind label %99

91:                                               ; preds = %90
  %92 = load i32, ptr %21, align 4, !tbaa !13
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN4juce9ValueTree8addChildERKS0_iPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef %92, ptr noundef %93)
          to label %94 unwind label %103

94:                                               ; preds = %91
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  store i1 true, ptr %5, align 1
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %166

95:                                               ; preds = %88
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %12, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %13, align 4
  br label %108

99:                                               ; preds = %90
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %12, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %13, align 4
  br label %107

103:                                              ; preds = %91
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %12, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %13, align 4
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %107

107:                                              ; preds = %103, %99
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  br label %108

108:                                              ; preds = %107, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %167

109:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %110 = invoke noundef i32 @_ZN4juce11InputStream17readCompressedIntEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %111 unwind label %119

111:                                              ; preds = %109
  store i32 %110, ptr %23, align 4, !tbaa !13
  %112 = load i32, ptr %23, align 4, !tbaa !13
  %113 = call noundef i32 @_ZNK4juce9ValueTree14getNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  %114 = call noundef zeroext i1 @_ZN4juce18isPositiveAndBelowIiEEbT_S1_(i32 noundef %112, i32 noundef %113) #6
  br i1 %114, label %115, label %123

115:                                              ; preds = %111
  %116 = load i32, ptr %23, align 4, !tbaa !13
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN4juce9ValueTree11removeChildEiPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef %116, ptr noundef %117)
          to label %118 unwind label %119

118:                                              ; preds = %115
  store i1 true, ptr %5, align 1
  store i32 1, ptr %15, align 4
  br label %127

119:                                              ; preds = %115, %109
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %12, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %167

123:                                              ; preds = %111
  br label %124

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125
  store i32 2, ptr %15, align 4
  br label %127

127:                                              ; preds = %126, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  %128 = load i32, ptr %15, align 4
  switch i32 %128, label %166 [
    i32 2, label %165
  ]

129:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %130 = invoke noundef i32 @_ZN4juce11InputStream17readCompressedIntEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %131 unwind label %146

131:                                              ; preds = %129
  store i32 %130, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %132 = invoke noundef i32 @_ZN4juce11InputStream17readCompressedIntEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %133 unwind label %150

133:                                              ; preds = %131
  store i32 %132, ptr %25, align 4, !tbaa !13
  %134 = load i32, ptr %24, align 4, !tbaa !13
  %135 = call noundef i32 @_ZNK4juce9ValueTree14getNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  %136 = call noundef zeroext i1 @_ZN4juce18isPositiveAndBelowIiEEbT_S1_(i32 noundef %134, i32 noundef %135) #6
  br i1 %136, label %137, label %154

137:                                              ; preds = %133
  %138 = load i32, ptr %25, align 4, !tbaa !13
  %139 = call noundef i32 @_ZNK4juce9ValueTree14getNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  %140 = call noundef zeroext i1 @_ZN4juce18isPositiveAndBelowIiEEbT_S1_(i32 noundef %138, i32 noundef %139) #6
  br i1 %140, label %141, label %154

141:                                              ; preds = %137
  %142 = load i32, ptr %24, align 4, !tbaa !13
  %143 = load i32, ptr %25, align 4, !tbaa !13
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN4juce9ValueTree9moveChildEiiPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef %142, i32 noundef %143, ptr noundef %144)
          to label %145 unwind label %150

145:                                              ; preds = %141
  store i1 true, ptr %5, align 1
  store i32 1, ptr %15, align 4
  br label %158

146:                                              ; preds = %129
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %12, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %13, align 4
  br label %160

150:                                              ; preds = %141, %131
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %12, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %160

154:                                              ; preds = %137, %133
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156
  store i32 2, ptr %15, align 4
  br label %158

158:                                              ; preds = %157, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  %159 = load i32, ptr %15, align 4
  switch i32 %159, label %166 [
    i32 2, label %165
  ]

160:                                              ; preds = %150, %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %167

161:                                              ; preds = %60
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164, %158, %127
  store i1 false, ptr %5, align 1
  store i32 1, ptr %15, align 4
  br label %166

166:                                              ; preds = %165, %158, %127, %94, %68, %55
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %169

167:                                              ; preds = %160, %119, %108, %87
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %168

168:                                              ; preds = %167, %56
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %171

169:                                              ; preds = %166, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @_ZN4juce17MemoryInputStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #6
  %170 = load i1, ptr %5, align 1
  ret i1 %170

171:                                              ; preds = %168, %50, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @_ZN4juce17MemoryInputStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #6
  br label %172

172:                                              ; preds = %171
  %173 = load ptr, ptr %12, align 8
  %174 = load i32, ptr %13, align 4
  %175 = insertvalue { ptr, i32 } poison, ptr %173, 0
  %176 = insertvalue { ptr, i32 } %175, i32 %174, 1
  resume { ptr, i32 } %176
}

declare noundef signext i8 @_ZN4juce11InputStream8readByteEv(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

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

declare void @_ZN4juce11InputStream10readStringEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare noundef i32 @_ZN4juce11InputStream17readCompressedIntEv(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4juce18isPositiveAndBelowIiEEbT_S1_(i32 noundef, i32 noundef) #5

declare void @_ZN4juce9ValueTreeC1ERKS0_(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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN4juce28ValueTreeSynchroniserHelpers10ChangeTypeE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}


; 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::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }
%"class.juce::MemoryInputStream" = type { %"class.juce::InputStream", ptr, i64, i64, %"class.juce::HeapBlock.28" }
%"class.juce::InputStream" = type { ptr }
%"class.juce::HeapBlock.28" = type { ptr }
%"class.juce::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }

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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTreeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local 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 #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9ValueTree14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind noalias writable sret(%"class.juce::ValueTree") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 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 #4

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

declare void @_ZN4juce17MemoryInputStreamC1EPKvmb(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i64 noundef, i1 noundef zeroext) unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce21ValueTreeSynchroniser11applyChangeERNS_9ValueTreeEPKvmPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.juce::MemoryInputStream", align 8
  %6 = alloca %"class.juce::ValueTree", align 8
  %7 = alloca %"class.juce::ValueTree", align 8
  %8 = alloca %"class.juce::ValueTree", align 8
  %9 = alloca %"class.juce::Identifier", align 8
  %10 = alloca %"class.juce::String", align 8
  %11 = alloca %"class.juce::var", align 8
  %12 = alloca %"class.juce::ValueTree", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @_ZN4juce17MemoryInputStreamC1EPKvmb(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef %1, i64 noundef %2, i1 noundef zeroext false)
  %13 = invoke noundef signext i8 @_ZN4juce11InputStream8readByteEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %14 unwind label %20

14:                                               ; preds = %4
  %15 = icmp eq i8 %13, 2
  br i1 %15, label %16, label %27

16:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  invoke void @_ZN4juce9ValueTree14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind nonnull writable sret(%"class.juce::ValueTree") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %17 unwind label %22

17:                                               ; preds = %16
  %18 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTreeaSERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %19 unwind label %24

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

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

22:                                               ; preds = %16
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %26

24:                                               ; preds = %17
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %26

26:                                               ; preds = %24, %22
  %.pn49 = phi { ptr, i32 } [ %25, %24 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %87

27:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @_ZN4juce9ValueTreeC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  invoke void @_ZN4juce28ValueTreeSynchroniserHelpersL19readSubTreeLocationERNS_17MemoryInputStreamENS_9ValueTreeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::ValueTree") align 8 %7, ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull %8)
          to label %28 unwind label %30

28:                                               ; preds = %27
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %29 = call noundef zeroext i1 @_ZNK4juce9ValueTree7isValidEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br i1 %29, label %32, label %.critedge53

30:                                               ; preds = %27
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %85

32:                                               ; preds = %28
  switch i8 %13, label %.critedge53 [
    i8 1, label %33
    i8 3, label %50
    i8 4, label %62
    i8 5, label %70
  ]

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  invoke void @_ZN4juce11InputStream10readStringEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %34 unwind label %39

34:                                               ; preds = %33
  invoke void @_ZN4juce10IdentifierC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %35 unwind label %41

35:                                               ; preds = %34
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  invoke void @_ZN4juce3var14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind nonnull writable sret(%"class.juce::var") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %36 unwind label %44

36:                                               ; preds = %35
  %37 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4juce9ValueTree11setPropertyERKNS_10IdentifierERKNS_3varEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %3)
          to label %38 unwind label %46

38:                                               ; preds = %36
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %.critedge53

39:                                               ; preds = %33
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %43

41:                                               ; preds = %34
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %43

43:                                               ; preds = %41, %39
  %.pn42 = phi { ptr, i32 } [ %42, %41 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %49

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

46:                                               ; preds = %36
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce3varD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %48

48:                                               ; preds = %46, %44
  %.pn44 = phi { ptr, i32 } [ %47, %46 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %49

49:                                               ; preds = %48, %43
  %.pn44.pn = phi { ptr, i32 } [ %.pn44, %48 ], [ %.pn42, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %85

50:                                               ; preds = %32
  %51 = invoke noundef i32 @_ZN4juce11InputStream17readCompressedIntEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %52 unwind label %55

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  invoke void @_ZN4juce9ValueTree14readFromStreamERNS_11InputStreamE(ptr dead_on_unwind nonnull writable sret(%"class.juce::ValueTree") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %53 unwind label %57

53:                                               ; preds = %52
  invoke void @_ZN4juce9ValueTree8addChildERKS0_iPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef %51, ptr noundef %3)
          to label %54 unwind label %59

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

55:                                               ; preds = %50
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %85

57:                                               ; preds = %52
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %61

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %61

61:                                               ; preds = %59, %57
  %.pn39 = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %85

62:                                               ; preds = %32
  %63 = invoke noundef i32 @_ZN4juce11InputStream17readCompressedIntEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %64 unwind label %68

64:                                               ; preds = %62
  %65 = call noundef i32 @_ZNK4juce9ValueTree14getNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  %66 = call noundef zeroext i1 @_ZN4juce18isPositiveAndBelowIiEEbT_S1_(i32 noundef %63, i32 noundef %65) #6
  br i1 %66, label %67, label %.critedge53

67:                                               ; preds = %64
  invoke void @_ZN4juce9ValueTree11removeChildEiPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef %63, ptr noundef %3)
          to label %.critedge53 unwind label %68

68:                                               ; preds = %67, %62
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %85

70:                                               ; preds = %32
  %71 = invoke noundef i32 @_ZN4juce11InputStream17readCompressedIntEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %72 unwind label %81

72:                                               ; preds = %70
  %73 = invoke noundef i32 @_ZN4juce11InputStream17readCompressedIntEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %74 unwind label %83

74:                                               ; preds = %72
  %75 = call noundef i32 @_ZNK4juce9ValueTree14getNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  %76 = call noundef zeroext i1 @_ZN4juce18isPositiveAndBelowIiEEbT_S1_(i32 noundef %71, i32 noundef %75) #6
  br i1 %76, label %77, label %.critedge53

77:                                               ; preds = %74
  %78 = call noundef i32 @_ZNK4juce9ValueTree14getNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  %79 = call noundef zeroext i1 @_ZN4juce18isPositiveAndBelowIiEEbT_S1_(i32 noundef %73, i32 noundef %78) #6
  br i1 %79, label %80, label %.critedge53

80:                                               ; preds = %77
  invoke void @_ZN4juce9ValueTree9moveChildEiiPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef %71, i32 noundef %73, ptr noundef %3)
          to label %.critedge53 unwind label %83

81:                                               ; preds = %70
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %85

83:                                               ; preds = %80, %72
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %85

.critedge53:                                      ; preds = %32, %77, %74, %64, %67, %80, %28, %54, %38
  %.2 = phi i1 [ true, %54 ], [ true, %38 ], [ false, %28 ], [ true, %80 ], [ true, %67 ], [ false, %64 ], [ false, %74 ], [ false, %77 ], [ false, %32 ]
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %86

85:                                               ; preds = %49, %68, %61, %55, %83, %81, %30
  %.sink = phi ptr [ %8, %30 ], [ %7, %81 ], [ %7, %83 ], [ %7, %55 ], [ %7, %61 ], [ %7, %68 ], [ %7, %49 ]
  %.pn.pn.pn = phi { ptr, i32 } [ %31, %30 ], [ %82, %81 ], [ %84, %83 ], [ %56, %55 ], [ %.pn39, %61 ], [ %69, %68 ], [ %.pn44.pn, %49 ]
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %87

86:                                               ; preds = %.critedge53, %19
  %.3 = phi i1 [ true, %19 ], [ %.2, %.critedge53 ]
  call void @_ZN4juce17MemoryInputStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  ret i1 %.3

87:                                               ; preds = %85, %26, %20
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %26 ], [ %.pn.pn.pn, %85 ], [ %21, %20 ]
  call void @_ZN4juce17MemoryInputStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn49.pn
}

declare noundef signext i8 @_ZN4juce11InputStream8readByteEv(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

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

declare void @_ZN4juce11InputStream10readStringEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare noundef i32 @_ZN4juce11InputStream17readCompressedIntEv(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4juce18isPositiveAndBelowIiEEbT_S1_(i32 noundef, i32 noundef) local_unnamed_addr #5

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


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