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

; 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::XmlElement" = type { %"class.juce::LinkedListPointer", %"class.juce::LinkedListPointer", %"class.juce::LinkedListPointer.27", %"class.juce::String" }
%"class.juce::LinkedListPointer" = type { ptr }
%"class.juce::LinkedListPointer.27" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::Identifier" = type { %"class.juce::String" }
%"class.juce::ScopedPointer.60" = type { ptr }
%"class.juce::PropertiesFile" = type <{ %"class.juce::PropertySet.base", [7 x i8], %"class.juce::ChangeBroadcaster", %"class.juce::Timer", %"class.juce::File", %"struct.juce::PropertiesFile::Options", i8, i8, [6 x i8] }>
%"class.juce::PropertySet.base" = type <{ ptr, %"class.juce::StringPairArray", ptr, %"class.juce::CriticalSection", i8 }>
%"class.juce::StringPairArray" = type <{ %"class.juce::StringArray", %"class.juce::StringArray", i8, [7 x i8] }>
%"class.juce::StringArray" = type { %"class.juce::Array.55" }
%"class.juce::Array.55" = type { %"class.juce::ArrayAllocationBase.56", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.56" = type <{ %"class.juce::HeapBlock.57", i32, [4 x i8] }>
%"class.juce::HeapBlock.57" = type { ptr }
%"class.juce::CriticalSection" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.32" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::ListenerList.32" = type { %"class.juce::Array.33" }
%"class.juce::Array.33" = type { %"class.juce::ArrayAllocationBase.34", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.34" = type <{ %"class.juce::HeapBlock.35", i32, [4 x i8] }>
%"class.juce::HeapBlock.35" = type { ptr }
%"class.juce::Timer" = type { ptr, i32, i32, ptr, ptr }
%"class.juce::File" = type { %"class.juce::String" }
%"struct.juce::PropertiesFile::Options" = type { %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::String", i8, i8, i8, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1

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 @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce14PropertiesFile9saveAsXmlEv(ptr noundef nonnull align 8 dereferenceable(274) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"class.juce::XmlElement", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"class.juce::StringRef", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.juce::Identifier", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.juce::Identifier", align 8
  %14 = alloca %"class.juce::ScopedPointer.60", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.juce::StringRef", align 8
  %17 = alloca %"class.juce::String", align 8
  %18 = alloca %"class.juce::StringRef", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @_ZN4juce10XmlElementC1EPKc(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %20 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZN4juce11PropertySet16getAllPropertiesEv(ptr noundef nonnull align 8 dereferenceable(113) %19) #6
  store ptr %20, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %83, %1
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call noundef i32 @_ZNK4juce15StringPairArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(49) %23) #6
  %25 = icmp slt i32 %22, %24
  br i1 %25, label %27, label %26

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

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef @.str.11) #6
  %28 = invoke noundef ptr @_ZN4juce10XmlElement21createNewChildElementENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef %8)
          to label %29 unwind label %48

29:                                               ; preds = %27
  store ptr %28, ptr %7, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  invoke void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef @.str.12)
          to label %31 unwind label %52

31:                                               ; preds = %29
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4juce15StringPairArray10getAllKeysEv(ptr noundef nonnull align 8 dereferenceable(49) %32) #6
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef %34) #6
  invoke void @_ZN4juce10XmlElement12setAttributeERKNS_10IdentifierERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %36 unwind label %56

36:                                               ; preds = %31
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4juce15StringPairArray12getAllValuesEv(ptr noundef nonnull align 8 dereferenceable(49) %37) #6
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %38, i32 noundef %39) #6
  %41 = invoke noundef ptr @_ZN4juce11XmlDocument5parseERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %42 unwind label %61

42:                                               ; preds = %36
  store ptr %41, ptr %12, align 8, !tbaa !5
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %65

45:                                               ; preds = %42
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN4juce10XmlElement15addChildElementEPS0_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef %47) #6
  br label %82

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

52:                                               ; preds = %29
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  br label %60

56:                                               ; preds = %31
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %9, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %10, align 4
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %60

60:                                               ; preds = %56, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %87

61:                                               ; preds = %36
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  br label %86

65:                                               ; preds = %42
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  invoke void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.14)
          to label %67 unwind label %73

67:                                               ; preds = %65
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4juce15StringPairArray12getAllValuesEv(ptr noundef nonnull align 8 dereferenceable(49) %68) #6
  %70 = load i32, ptr %6, align 4, !tbaa !9
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %69, i32 noundef %70) #6
  invoke void @_ZN4juce10XmlElement12setAttributeERKNS_10IdentifierERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32) %66, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %72 unwind label %77

72:                                               ; preds = %67
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %82

73:                                               ; preds = %65
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  br label %81

77:                                               ; preds = %67
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %81

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

82:                                               ; preds = %72, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %6, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %6, align 4, !tbaa !9
  br label %21, !llvm.loop !11

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

87:                                               ; preds = %86, %60, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %115

88:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %89 = invoke noundef ptr @_ZNK4juce14PropertiesFile17createProcessLockEv(ptr noundef nonnull align 8 dereferenceable(274) %19)
          to label %90 unwind label %97

90:                                               ; preds = %88
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef %89) #6
  %91 = call noundef ptr @_ZNK4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %101

93:                                               ; preds = %90
  %94 = call noundef ptr @_ZNK4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %95 = call noundef zeroext i1 @_ZNK4juce16InterProcessLock14ScopedLockType8isLockedEv(ptr noundef nonnull align 8 dereferenceable(9) %94) #6
  br i1 %95, label %101, label %96

96:                                               ; preds = %93
  store i1 false, ptr %2, align 1
  store i32 1, ptr %15, align 4
  br label %112

97:                                               ; preds = %88
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %9, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %10, align 4
  br label %114

101:                                              ; preds = %93, %90
  %102 = getelementptr inbounds %"class.juce::PropertiesFile", ptr %19, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @.str) #6
  %103 = invoke noundef zeroext i1 @_ZNK4juce10XmlElement11writeToFileERKNS_4FileENS_9StringRefES4_i(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef %16, ptr noundef %18, i32 noundef 60)
          to label %104 unwind label %107

104:                                              ; preds = %101
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br i1 %103, label %105, label %111

105:                                              ; preds = %104
  %106 = getelementptr inbounds %"class.juce::PropertiesFile", ptr %19, i32 0, i32 7
  store i8 0, ptr %106, align 1, !tbaa !13
  store i1 true, ptr %2, align 1
  store i32 1, ptr %15, align 4
  br label %112

107:                                              ; preds = %101
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %9, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %10, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %114

111:                                              ; preds = %104
  store i1 false, ptr %2, align 1
  store i32 1, ptr %15, align 4
  br label %112

112:                                              ; preds = %111, %105, %96
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZN4juce10XmlElementD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  %113 = load i1, ptr %2, align 1
  ret i1 %113

114:                                              ; preds = %107, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %115

115:                                              ; preds = %114, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZN4juce10XmlElementD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  br label %116

116:                                              ; preds = %115
  %117 = load ptr, ptr %9, align 8
  %118 = load i32, ptr %10, align 4
  %119 = insertvalue { ptr, i32 } poison, ptr %117, 0
  %120 = insertvalue { ptr, i32 } %119, i32 %118, 1
  resume { ptr, i32 } %120
}

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

declare void @_ZN4juce10XmlElementC1EPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) unnamed_addr #5

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

declare noundef ptr @_ZN4juce10XmlElement21createNewChildElementENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5

declare void @_ZN4juce10XmlElement12setAttributeERKNS_10IdentifierERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

declare void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #1

declare noundef ptr @_ZN4juce11XmlDocument5parseERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: nounwind
declare void @_ZN4juce10XmlElement15addChildElementEPS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1

declare noundef zeroext i1 @_ZNK4juce10XmlElement11writeToFileERKNS_4FileENS_9StringRefES4_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef, i32 noundef) #5

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

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !21, i64 273}
!14 = !{!"_ZTSN4juce14PropertiesFileE", !15, i64 0, !23, i64 120, !31, i64 176, !32, i64 208, !35, i64 216, !21, i64 272, !21, i64 273}
!15 = !{!"_ZTSN4juce11PropertySetE", !16, i64 8, !6, i64 64, !22, i64 72, !21, i64 112}
!16 = !{!"_ZTSN4juce15StringPairArrayE", !17, i64 0, !17, i64 24, !21, i64 48}
!17 = !{!"_ZTSN4juce11StringArrayE", !18, i64 0}
!18 = !{!"_ZTSN4juce5ArrayINS_6StringENS_20DummyCriticalSectionELi0EEE", !19, i64 0, !10, i64 16}
!19 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_6StringENS_20DummyCriticalSectionEEE", !20, i64 0, !10, i64 8}
!20 = !{!"_ZTSN4juce9HeapBlockINS_6StringELb0EEE", !6, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSN4juce15CriticalSectionE", !7, i64 0}
!23 = !{!"_ZTSN4juce17ChangeBroadcasterE", !24, i64 8, !27, i64 32}
!24 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !25, i64 0, !6, i64 16}
!25 = !{!"_ZTSN4juce12AsyncUpdaterE", !26, i64 8}
!26 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !28, i64 0}
!28 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !29, i64 0, !10, i64 16}
!29 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !30, i64 0, !10, i64 8}
!30 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !6, i64 0}
!31 = !{!"_ZTSN4juce5TimerE", !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!32 = !{!"_ZTSN4juce4FileE", !33, i64 0}
!33 = !{!"_ZTSN4juce6StringE", !34, i64 0}
!34 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!35 = !{!"_ZTSN4juce14PropertiesFile7OptionsE", !33, i64 0, !33, i64 8, !33, i64 16, !33, i64 24, !21, i64 32, !21, i64 33, !21, i64 34, !10, i64 36, !36, i64 40, !6, i64 48}
!36 = !{!"_ZTSN4juce14PropertiesFile13StorageFormatE", !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::XmlElement" = type { %"class.juce::LinkedListPointer", %"class.juce::LinkedListPointer", %"class.juce::LinkedListPointer.27", %"class.juce::String" }
%"class.juce::LinkedListPointer" = type { ptr }
%"class.juce::LinkedListPointer.27" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::Identifier" = type { %"class.juce::String" }
%"class.juce::ScopedPointer.60" = type { ptr }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1

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 @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce14PropertiesFile9saveAsXmlEv(ptr noundef nonnull align 8 dereferenceable(274) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::XmlElement", align 8
  %3 = alloca %"class.juce::StringRef", align 8
  %4 = alloca %"class.juce::Identifier", align 8
  %5 = alloca %"class.juce::Identifier", align 8
  %6 = alloca %"class.juce::ScopedPointer.60", align 8
  %7 = alloca %"class.juce::StringRef", align 8
  %8 = alloca %"class.juce::String", align 8
  %9 = alloca %"class.juce::StringRef", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @_ZN4juce10XmlElementC1EPKc(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.10)
  %10 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZN4juce11PropertySet16getAllPropertiesEv(ptr noundef nonnull align 8 dereferenceable(113) %0) #6
  %11 = call noundef i32 @_ZNK4juce15StringPairArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(49) %10) #6
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %44, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %13 = invoke noundef ptr @_ZNK4juce14PropertiesFile17createProcessLockEv(ptr noundef nonnull align 8 dereferenceable(274) %0)
          to label %48 unwind label %53

.lr.ph:                                           ; preds = %1, %44
  %.02435 = phi i32 [ %45, %44 ], [ 0, %1 ]
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str.11) #6
  %14 = invoke noundef ptr @_ZN4juce10XmlElement21createNewChildElementENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull %3)
          to label %15 unwind label %25

15:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  invoke void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.12)
          to label %16 unwind label %27

16:                                               ; preds = %15
  %17 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4juce15StringPairArray10getAllKeysEv(ptr noundef nonnull align 8 dereferenceable(49) %10) #6
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef %.02435) #6
  invoke void @_ZN4juce10XmlElement12setAttributeERKNS_10IdentifierERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %19 unwind label %29

19:                                               ; preds = %16
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4juce15StringPairArray12getAllValuesEv(ptr noundef nonnull align 8 dereferenceable(49) %10) #6
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef %.02435) #6
  %22 = invoke noundef ptr @_ZN4juce11XmlDocument5parseERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %23 unwind label %32

23:                                               ; preds = %19
  %.not29 = icmp eq ptr %22, null
  br i1 %.not29, label %34, label %24

24:                                               ; preds = %23
  call void @_ZN4juce10XmlElement15addChildElementEPS0_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull %22) #6
  br label %44

25:                                               ; preds = %.lr.ph
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %65

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

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

31:                                               ; preds = %29, %27
  %.pn27 = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %65

32:                                               ; preds = %19
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %65

34:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  invoke void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @.str.14)
          to label %35 unwind label %39

35:                                               ; preds = %34
  %36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4juce15StringPairArray12getAllValuesEv(ptr noundef nonnull align 8 dereferenceable(49) %10) #6
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %36, i32 noundef %.02435) #6
  invoke void @_ZN4juce10XmlElement12setAttributeERKNS_10IdentifierERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %38 unwind label %41

38:                                               ; preds = %35
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %44

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

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

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

44:                                               ; preds = %38, %24
  %45 = add nuw nsw i32 %.02435, 1
  %46 = call noundef i32 @_ZNK4juce15StringPairArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(49) %10) #6
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %.lr.ph, label %._crit_edge, !llvm.loop !5

48:                                               ; preds = %._crit_edge
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %13) #6
  %49 = call noundef ptr @_ZNK4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %.not = icmp eq ptr %49, null
  br i1 %.not, label %55, label %50

50:                                               ; preds = %48
  %51 = call noundef ptr @_ZNK4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %52 = call noundef zeroext i1 @_ZNK4juce16InterProcessLock14ScopedLockType8isLockedEv(ptr noundef nonnull align 8 dereferenceable(9) %51) #6
  br i1 %52, label %55, label %63

53:                                               ; preds = %._crit_edge
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %64

55:                                               ; preds = %50, %48
  %56 = getelementptr inbounds i8, ptr %0, i64 208
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str) #6
  %57 = invoke noundef zeroext i1 @_ZNK4juce10XmlElement11writeToFileERKNS_4FileENS_9StringRefES4_i(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull %7, ptr noundef nonnull %9, i32 noundef 60)
          to label %58 unwind label %61

58:                                               ; preds = %55
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br i1 %57, label %59, label %63

59:                                               ; preds = %58
  %60 = getelementptr inbounds i8, ptr %0, i64 273
  store i8 0, ptr %60, align 1, !tbaa !7
  br label %63

61:                                               ; preds = %55
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %64

63:                                               ; preds = %58, %50, %59
  %.0 = phi i1 [ true, %59 ], [ false, %50 ], [ false, %58 ]
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN4juce10XmlElementD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  ret i1 %.0

64:                                               ; preds = %61, %53
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %65

65:                                               ; preds = %25, %31, %43, %32, %64
  %.pn30.pn.pn.pn = phi { ptr, i32 } [ %.pn, %64 ], [ %.pn27, %31 ], [ %26, %25 ], [ %.pn30, %43 ], [ %33, %32 ]
  call void @_ZN4juce10XmlElementD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn30.pn.pn.pn
}

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

declare void @_ZN4juce10XmlElementC1EPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) unnamed_addr #5

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

declare noundef ptr @_ZN4juce10XmlElement21createNewChildElementENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5

declare void @_ZN4juce10XmlElement12setAttributeERKNS_10IdentifierERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

declare void @_ZN4juce10IdentifierC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1

declare noundef ptr @_ZN4juce11XmlDocument5parseERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: nounwind
declare void @_ZN4juce10XmlElement15addChildElementEPS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZNK4juce10XmlElement11writeToFileERKNS_4FileENS_9StringRefES4_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

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

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !19, i64 273}
!8 = !{!"_ZTSN4juce14PropertiesFileE", !9, i64 0, !21, i64 120, !29, i64 176, !30, i64 208, !33, i64 216, !19, i64 272, !19, i64 273}
!9 = !{!"_ZTSN4juce11PropertySetE", !10, i64 8, !15, i64 64, !20, i64 72, !19, i64 112}
!10 = !{!"_ZTSN4juce15StringPairArrayE", !11, i64 0, !11, i64 24, !19, i64 48}
!11 = !{!"_ZTSN4juce11StringArrayE", !12, i64 0}
!12 = !{!"_ZTSN4juce5ArrayINS_6StringENS_20DummyCriticalSectionELi0EEE", !13, i64 0, !18, i64 16}
!13 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_6StringENS_20DummyCriticalSectionEEE", !14, i64 0, !18, i64 8}
!14 = !{!"_ZTSN4juce9HeapBlockINS_6StringELb0EEE", !15, i64 0}
!15 = !{!"any pointer", !16, i64 0}
!16 = !{!"omnipotent char", !17, i64 0}
!17 = !{!"Simple C++ TBAA"}
!18 = !{!"int", !16, i64 0}
!19 = !{!"bool", !16, i64 0}
!20 = !{!"_ZTSN4juce15CriticalSectionE", !16, i64 0}
!21 = !{!"_ZTSN4juce17ChangeBroadcasterE", !22, i64 8, !25, i64 32}
!22 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !23, i64 0, !15, i64 16}
!23 = !{!"_ZTSN4juce12AsyncUpdaterE", !24, i64 8}
!24 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !15, i64 0}
!25 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !26, i64 0}
!26 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !27, i64 0, !18, i64 16}
!27 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !28, i64 0, !18, i64 8}
!28 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !15, i64 0}
!29 = !{!"_ZTSN4juce5TimerE", !18, i64 8, !18, i64 12, !15, i64 16, !15, i64 24}
!30 = !{!"_ZTSN4juce4FileE", !31, i64 0}
!31 = !{!"_ZTSN4juce6StringE", !32, i64 0}
!32 = !{!"_ZTSN4juce16CharPointer_UTF8E", !15, i64 0}
!33 = !{!"_ZTSN4juce14PropertiesFile7OptionsE", !31, i64 0, !31, i64 8, !31, i64 16, !31, i64 24, !19, i64 32, !19, i64 33, !19, i64 34, !18, i64 36, !34, i64 40, !15, i64 48}
!34 = !{!"_ZTSN4juce14PropertiesFile13StorageFormatE", !16, i64 0}


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