; 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::ScopedPointer.60" = type { ptr }
%"class.juce::TemporaryFile" = type { %"class.juce::File", %"class.juce::File" }
%"class.juce::File" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ScopedPointer.63" = 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 }
%"struct.juce::PropertiesFile::Options" = type { %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::String", i8, i8, i8, i32, i32, ptr }

@_ZN4juce21PropertyFileConstantsL11magicNumberE = external hidden global i32, align 4
@_ZN4juce21PropertyFileConstantsL21magicNumberCompressedE = external hidden global i32, align 4

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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK4juce14PropertiesFile17createProcessLockEv(ptr noundef nonnull align 8 dereferenceable(274)) #3 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 #4 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce14PropertiesFile12saveAsBinaryEv(ptr noundef nonnull align 8 dereferenceable(274) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"class.juce::ScopedPointer.60", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.juce::TemporaryFile", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.juce::ScopedPointer.63", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %16 = call noundef ptr @_ZNK4juce14PropertiesFile17createProcessLockEv(ptr noundef nonnull align 8 dereferenceable(274) %15)
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %16) #8
  %17 = call noundef ptr @_ZNK4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %23

19:                                               ; preds = %1
  %20 = call noundef ptr @_ZNK4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %21 = call noundef zeroext i1 @_ZNK4juce16InterProcessLock14ScopedLockType8isLockedEv(ptr noundef nonnull align 8 dereferenceable(9) %20) #8
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %149

23:                                               ; preds = %19, %1
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #8
  %24 = getelementptr inbounds %"class.juce::PropertiesFile", ptr %15, i32 0, i32 4
  invoke void @_ZN4juce13TemporaryFileC1ERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef 0)
          to label %25 unwind label %55

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce13TemporaryFile7getFileEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  %27 = invoke noundef ptr @_ZNK4juce4File18createOutputStreamEm(ptr noundef nonnull align 8 dereferenceable(8) %26, i64 noundef 32768)
          to label %28 unwind label %59

28:                                               ; preds = %25
  call void @_ZN4juce13ScopedPointerINS_12OutputStreamEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %27) #8
  %29 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %144

31:                                               ; preds = %28
  %32 = getelementptr inbounds %"class.juce::PropertiesFile", ptr %15, i32 0, i32 5
  %33 = getelementptr inbounds %"struct.juce::PropertiesFile::Options", ptr %32, i32 0, i32 8
  %34 = load i32, ptr %33, align 8, !tbaa !9
  %35 = icmp eq i32 %34, 1
  br i1 %35, label %36, label %71

36:                                               ; preds = %31
  %37 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %38 = load i32, ptr @_ZN4juce21PropertyFileConstantsL21magicNumberCompressedE, align 4, !tbaa !34
  %39 = load ptr, ptr %37, align 8, !tbaa !35
  %40 = getelementptr inbounds ptr, ptr %39, i64 10
  %41 = load ptr, ptr %40, align 8
  %42 = invoke noundef zeroext i1 %41(ptr noundef nonnull align 8 dereferenceable(16) %37, i32 noundef %38)
          to label %43 unwind label %63

43:                                               ; preds = %36
  %44 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %45 = load ptr, ptr %44, align 8, !tbaa !35
  %46 = getelementptr inbounds ptr, ptr %45, i64 2
  %47 = load ptr, ptr %46, align 8
  invoke void %47(ptr noundef nonnull align 8 dereferenceable(16) %44)
          to label %48 unwind label %63

48:                                               ; preds = %43
  %49 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #9
          to label %50 unwind label %63

50:                                               ; preds = %48
  %51 = call noundef ptr @_ZN4juce13ScopedPointerINS_12OutputStreamEE7releaseEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  invoke void @_ZN4juce26GZIPCompressorOutputStreamC1EPNS_12OutputStreamEibi(ptr noundef nonnull align 8 dereferenceable(40) %49, ptr noundef %51, i32 noundef 9, i1 noundef zeroext true, i32 noundef 0)
          to label %52 unwind label %67

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_12OutputStreamEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %49)
          to label %54 unwind label %63

54:                                               ; preds = %52
  br label %82

55:                                               ; preds = %23
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %7, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %8, align 4
  br label %148

59:                                               ; preds = %25
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %7, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %8, align 4
  br label %147

63:                                               ; preds = %74, %52, %48, %43, %36
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %8, align 4
  br label %146

67:                                               ; preds = %50
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %7, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %49, i64 noundef 40) #10
  br label %146

71:                                               ; preds = %31
  br label %72

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  %75 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %76 = load i32, ptr @_ZN4juce21PropertyFileConstantsL11magicNumberE, align 4, !tbaa !34
  %77 = load ptr, ptr %75, align 8, !tbaa !35
  %78 = getelementptr inbounds ptr, ptr %77, i64 10
  %79 = load ptr, ptr %78, align 8
  %80 = invoke noundef zeroext i1 %79(ptr noundef nonnull align 8 dereferenceable(16) %75, i32 noundef %76)
          to label %81 unwind label %63

81:                                               ; preds = %74
  br label %82

82:                                               ; preds = %81, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %83 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZN4juce11PropertySet16getAllPropertiesEv(ptr noundef nonnull align 8 dereferenceable(113) %15) #8
  store ptr %83, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = call noundef i32 @_ZNK4juce15StringPairArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(49) %84) #8
  store i32 %85, ptr %11, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4juce15StringPairArray10getAllKeysEv(ptr noundef nonnull align 8 dereferenceable(49) %86) #8
  store ptr %87, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4juce15StringPairArray12getAllValuesEv(ptr noundef nonnull align 8 dereferenceable(49) %88) #8
  store ptr %89, ptr %13, align 8, !tbaa !5
  %90 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %91 = load i32, ptr %11, align 4, !tbaa !34
  %92 = load ptr, ptr %90, align 8, !tbaa !35
  %93 = getelementptr inbounds ptr, ptr %92, i64 10
  %94 = load ptr, ptr %93, align 8
  %95 = invoke noundef zeroext i1 %94(ptr noundef nonnull align 8 dereferenceable(16) %90, i32 noundef %91)
          to label %96 unwind label %102

96:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !34
  br label %97

97:                                               ; preds = %125, %96
  %98 = load i32, ptr %14, align 4, !tbaa !34
  %99 = load i32, ptr %11, align 4, !tbaa !34
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %106, label %101

101:                                              ; preds = %97
  store i32 4, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %132

102:                                              ; preds = %134, %132, %82
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %7, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %8, align 4
  br label %143

106:                                              ; preds = %97
  %107 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = load i32, ptr %14, align 4, !tbaa !34
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %108, i32 noundef %109) #8
  %111 = load ptr, ptr %107, align 8, !tbaa !35
  %112 = getelementptr inbounds ptr, ptr %111, i64 20
  %113 = load ptr, ptr %112, align 8
  %114 = invoke noundef zeroext i1 %113(ptr noundef nonnull align 8 dereferenceable(16) %107, ptr noundef nonnull align 8 dereferenceable(8) %110)
          to label %115 unwind label %128

115:                                              ; preds = %106
  %116 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = load i32, ptr %14, align 4, !tbaa !34
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %117, i32 noundef %118) #8
  %120 = load ptr, ptr %116, align 8, !tbaa !35
  %121 = getelementptr inbounds ptr, ptr %120, i64 20
  %122 = load ptr, ptr %121, align 8
  %123 = invoke noundef zeroext i1 %122(ptr noundef nonnull align 8 dereferenceable(16) %116, ptr noundef nonnull align 8 dereferenceable(8) %119)
          to label %124 unwind label %128

124:                                              ; preds = %115
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %14, align 4, !tbaa !34
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %14, align 4, !tbaa !34
  br label %97, !llvm.loop !37

128:                                              ; preds = %115, %106
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %143

132:                                              ; preds = %101
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_12OutputStreamEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef null)
          to label %134 unwind label %102

134:                                              ; preds = %132
  %135 = invoke noundef zeroext i1 @_ZNK4juce13TemporaryFile32overwriteTargetFileWithTemporaryEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %136 unwind label %102

136:                                              ; preds = %134
  br i1 %135, label %137, label %139

137:                                              ; preds = %136
  %138 = getelementptr inbounds %"class.juce::PropertiesFile", ptr %15, i32 0, i32 7
  store i8 0, ptr %138, align 1, !tbaa !39
  store i1 true, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %140

139:                                              ; preds = %136
  store i32 0, ptr %5, align 4
  br label %140

140:                                              ; preds = %139, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  %141 = load i32, ptr %5, align 4
  switch i32 %141, label %145 [
    i32 0, label %142
  ]

142:                                              ; preds = %140
  br label %144

143:                                              ; preds = %128, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %146

144:                                              ; preds = %142, %28
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %145

145:                                              ; preds = %144, %140
  call void @_ZN4juce13ScopedPointerINS_12OutputStreamEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @_ZN4juce13TemporaryFileD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  br label %149

146:                                              ; preds = %143, %67, %63
  call void @_ZN4juce13ScopedPointerINS_12OutputStreamEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br label %147

147:                                              ; preds = %146, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @_ZN4juce13TemporaryFileD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  br label %148

148:                                              ; preds = %147, %55
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %151

149:                                              ; preds = %145, %22
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %150 = load i1, ptr %2, align 1
  ret i1 %150

151:                                              ; preds = %148
  %152 = load ptr, ptr %7, align 8
  %153 = load i32, ptr %8, align 4
  %154 = insertvalue { ptr, i32 } poison, ptr %152, 0
  %155 = insertvalue { ptr, i32 } %154, i32 %153, 1
  resume { ptr, i32 } %155
}

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

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

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

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

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

declare void @_ZN4juce13TemporaryFileC1ERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #7

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

declare noundef ptr @_ZNK4juce4File18createOutputStreamEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #7

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

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

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

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

declare void @_ZN4juce26GZIPCompressorOutputStreamC1EPNS_12OutputStreamEibi(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef, i1 noundef zeroext, i32 noundef) unnamed_addr #7

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

declare noundef zeroext i1 @_ZNK4juce13TemporaryFile32overwriteTargetFileWithTemporaryEv(ptr noundef nonnull align 8 dereferenceable(16)) #7

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

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

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


; 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::ScopedPointer.60" = type { ptr }
%"class.juce::TemporaryFile" = type { %"class.juce::File", %"class.juce::File" }
%"class.juce::File" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ScopedPointer.63" = type { ptr }

@_ZN4juce21PropertyFileConstantsL11magicNumberE = external hidden local_unnamed_addr global i32, align 4
@_ZN4juce21PropertyFileConstantsL21magicNumberCompressedE = external hidden local_unnamed_addr global i32, align 4

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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK4juce14PropertiesFile17createProcessLockEv(ptr noundef nonnull align 8 dereferenceable(274)) local_unnamed_addr #3 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 #4 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 #4 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 #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce14PropertiesFile12saveAsBinaryEv(ptr noundef nonnull align 8 dereferenceable(274) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::ScopedPointer.60", align 8
  %3 = alloca %"class.juce::TemporaryFile", align 8
  %4 = alloca %"class.juce::ScopedPointer.63", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %5 = tail call noundef ptr @_ZNK4juce14PropertiesFile17createProcessLockEv(ptr noundef nonnull align 8 dereferenceable(274) %0)
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %5) #8
  %6 = call noundef ptr @_ZNK4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %10, label %7

7:                                                ; preds = %1
  %8 = call noundef ptr @_ZNK4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %9 = call noundef zeroext i1 @_ZNK4juce16InterProcessLock14ScopedLockType8isLockedEv(ptr noundef nonnull align 8 dereferenceable(9) %8) #8
  br i1 %9, label %10, label %88

10:                                               ; preds = %7, %1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  %11 = getelementptr inbounds i8, ptr %0, i64 208
  invoke void @_ZN4juce13TemporaryFileC1ERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0)
          to label %12 unwind label %39

12:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce13TemporaryFile7getFileEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  %14 = invoke noundef ptr @_ZNK4juce4File18createOutputStreamEm(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef 32768)
          to label %15 unwind label %41

15:                                               ; preds = %12
  call void @_ZN4juce13ScopedPointerINS_12OutputStreamEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %14) #8
  %16 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %.not24 = icmp eq ptr %16, null
  br i1 %.not24, label %.critedge, label %17

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %0, i64 256
  %19 = load i32, ptr %18, align 8, !tbaa !5
  %20 = icmp eq i32 %19, 1
  %21 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %22 = load ptr, ptr %21, align 8, !tbaa !33
  %23 = getelementptr inbounds i8, ptr %22, i64 80
  %24 = load ptr, ptr %23, align 8
  br i1 %20, label %25, label %47

25:                                               ; preds = %17
  %26 = load i32, ptr @_ZN4juce21PropertyFileConstantsL21magicNumberCompressedE, align 4, !tbaa !35
  %27 = invoke noundef zeroext i1 %24(ptr noundef nonnull align 8 dereferenceable(16) %21, i32 noundef %26)
          to label %28 unwind label %43

28:                                               ; preds = %25
  %29 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %30 = load ptr, ptr %29, align 8, !tbaa !33
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %32 = load ptr, ptr %31, align 8
  invoke void %32(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %33 unwind label %43

33:                                               ; preds = %28
  %34 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #9
          to label %35 unwind label %43

35:                                               ; preds = %33
  %36 = call noundef ptr @_ZN4juce13ScopedPointerINS_12OutputStreamEE7releaseEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  invoke void @_ZN4juce26GZIPCompressorOutputStreamC1EPNS_12OutputStreamEibi(ptr noundef nonnull align 8 dereferenceable(40) %34, ptr noundef %36, i32 noundef 9, i1 noundef zeroext true, i32 noundef 0)
          to label %37 unwind label %45

37:                                               ; preds = %35
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_12OutputStreamEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %34)
  br label %50

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

41:                                               ; preds = %12
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %86

43:                                               ; preds = %47, %33, %28, %25
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %85

45:                                               ; preds = %35
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %34, i64 noundef 40) #10
  br label %85

47:                                               ; preds = %17
  %48 = load i32, ptr @_ZN4juce21PropertyFileConstantsL11magicNumberE, align 4, !tbaa !35
  %49 = invoke noundef zeroext i1 %24(ptr noundef nonnull align 8 dereferenceable(16) %21, i32 noundef %48)
          to label %50 unwind label %43

50:                                               ; preds = %47, %37
  %51 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZN4juce11PropertySet16getAllPropertiesEv(ptr noundef nonnull align 8 dereferenceable(113) %0) #8
  %52 = call noundef i32 @_ZNK4juce15StringPairArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(49) %51) #8
  %53 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4juce15StringPairArray10getAllKeysEv(ptr noundef nonnull align 8 dereferenceable(49) %51) #8
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4juce15StringPairArray12getAllValuesEv(ptr noundef nonnull align 8 dereferenceable(49) %51) #8
  %55 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %56 = load ptr, ptr %55, align 8, !tbaa !33
  %57 = getelementptr inbounds i8, ptr %56, i64 80
  %58 = load ptr, ptr %57, align 8
  %59 = invoke noundef zeroext i1 %58(ptr noundef nonnull align 8 dereferenceable(16) %55, i32 noundef %52)
          to label %.preheader unwind label %63

.preheader:                                       ; preds = %50
  %60 = icmp sgt i32 %52, 0
  br i1 %60, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %78, %.preheader
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_12OutputStreamEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef null)
  %62 = invoke noundef zeroext i1 @_ZNK4juce13TemporaryFile32overwriteTargetFileWithTemporaryEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %82 unwind label %63

63:                                               ; preds = %._crit_edge, %50
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %85

.lr.ph:                                           ; preds = %.preheader, %78
  %.029 = phi i32 [ %79, %78 ], [ 0, %.preheader ]
  %65 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %53, i32 noundef %.029) #8
  %67 = load ptr, ptr %65, align 8, !tbaa !33
  %68 = getelementptr inbounds i8, ptr %67, i64 160
  %69 = load ptr, ptr %68, align 8
  %70 = invoke noundef zeroext i1 %69(ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef nonnull align 8 dereferenceable(8) %66)
          to label %71 unwind label %80

71:                                               ; preds = %.lr.ph
  %72 = call noundef ptr @_ZNK4juce13ScopedPointerINS_12OutputStreamEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %54, i32 noundef %.029) #8
  %74 = load ptr, ptr %72, align 8, !tbaa !33
  %75 = getelementptr inbounds i8, ptr %74, i64 160
  %76 = load ptr, ptr %75, align 8
  %77 = invoke noundef zeroext i1 %76(ptr noundef nonnull align 8 dereferenceable(16) %72, ptr noundef nonnull align 8 dereferenceable(8) %73)
          to label %78 unwind label %80

78:                                               ; preds = %71
  %79 = add nuw nsw i32 %.029, 1
  %exitcond.not = icmp eq i32 %79, %52
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !36

80:                                               ; preds = %71, %.lr.ph
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %85

82:                                               ; preds = %._crit_edge
  br i1 %62, label %83, label %.critedge

83:                                               ; preds = %82
  %84 = getelementptr inbounds i8, ptr %0, i64 273
  store i8 0, ptr %84, align 1, !tbaa !38
  br label %.critedge

.critedge:                                        ; preds = %15, %82, %83
  %.1 = phi i1 [ true, %83 ], [ false, %82 ], [ false, %15 ]
  call void @_ZN4juce13ScopedPointerINS_12OutputStreamEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @_ZN4juce13TemporaryFileD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  br label %88

85:                                               ; preds = %63, %80, %45, %43
  %.pn.pn = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ], [ %81, %80 ], [ %64, %63 ]
  call void @_ZN4juce13ScopedPointerINS_12OutputStreamEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  br label %86

86:                                               ; preds = %85, %41
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %85 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @_ZN4juce13TemporaryFileD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  br label %87

87:                                               ; preds = %86, %39
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %86 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn.pn.pn.pn

88:                                               ; preds = %7, %.critedge
  %.2 = phi i1 [ %.1, %.critedge ], [ false, %7 ]
  call void @_ZN4juce13ScopedPointerINS_16InterProcessLock14ScopedLockTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  ret i1 %.2
}

; 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 #5 align 2

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

; 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 #5 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 #6

; 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 #5 align 2

declare void @_ZN4juce13TemporaryFileC1ERKNS_4FileEi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #7

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

declare noundef ptr @_ZNK4juce4File18createOutputStreamEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #7

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

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

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

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

declare void @_ZN4juce26GZIPCompressorOutputStreamC1EPNS_12OutputStreamEibi(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef, i1 noundef zeroext, i32 noundef) unnamed_addr #7

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

declare noundef zeroext i1 @_ZNK4juce13TemporaryFile32overwriteTargetFileWithTemporaryEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #7

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

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

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


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