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

; 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::GenericScopedLock" = type { ptr }
%"class.juce::File" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Result" = type { %"class.juce::String" }
%"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 }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce14PropertiesFile4saveEv(ptr noundef nonnull align 8 dereferenceable(274) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"class.juce::GenericScopedLock", align 8
  %5 = alloca %"class.juce::File", align 8
  %6 = alloca i1, align 1
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.juce::Result", align 8
  %11 = alloca i1, align 1
  %12 = alloca %"class.juce::File", align 8
  %13 = alloca i1, align 1
  %14 = alloca i1, align 1
  %15 = alloca i1, align 1
  %16 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %18 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce11PropertySet7getLockEv(ptr noundef nonnull align 8 dereferenceable(113) %17) #6
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(40) %18) #6
  %19 = getelementptr inbounds i8, ptr %17, i64 176
  call void @_ZN4juce5Timer9stopTimerEv(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  %20 = getelementptr inbounds %"class.juce::PropertiesFile", ptr %17, i32 0, i32 5
  %21 = getelementptr inbounds %"struct.juce::PropertiesFile::Options", ptr %20, i32 0, i32 6
  %22 = load i8, ptr %21, align 2, !tbaa !9, !range !34, !noundef !35
  %23 = trunc i8 %22 to i1
  store i1 false, ptr %6, align 1
  store i1 false, ptr %7, align 1
  store i1 false, ptr %11, align 1
  store i1 false, ptr %13, align 1
  store i1 false, ptr %14, align 1
  store i1 false, ptr %15, align 1
  br i1 %23, label %37, label %24

24:                                               ; preds = %1
  %25 = getelementptr inbounds %"class.juce::PropertiesFile", ptr %17, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i1 true, ptr %6, align 1
  call void @_ZN4juce4FileC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  store i1 true, ptr %7, align 1
  %26 = invoke noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %27 unwind label %58

27:                                               ; preds = %24
  br i1 %26, label %37, label %28

28:                                               ; preds = %27
  %29 = getelementptr inbounds %"class.juce::PropertiesFile", ptr %17, i32 0, i32 4
  %30 = invoke noundef zeroext i1 @_ZNK4juce4File11isDirectoryEv(ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %31 unwind label %58

31:                                               ; preds = %28
  br i1 %30, label %37, label %32

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i1 true, ptr %11, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i1 true, ptr %13, align 1
  %33 = getelementptr inbounds %"class.juce::PropertiesFile", ptr %17, i32 0, i32 4
  invoke void @_ZNK4juce4File18getParentDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %34 unwind label %62

34:                                               ; preds = %32
  store i1 true, ptr %14, align 1
  invoke void @_ZNK4juce4File15createDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::Result") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %35 unwind label %66

35:                                               ; preds = %34
  store i1 true, ptr %15, align 1
  %36 = call noundef zeroext i1 @_ZNK4juce6ResultntEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %37

37:                                               ; preds = %35, %31, %27, %1
  %38 = phi i1 [ true, %31 ], [ true, %27 ], [ true, %1 ], [ %36, %35 ]
  %39 = load i1, ptr %15, align 1
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  call void @_ZN4juce6ResultD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %41

41:                                               ; preds = %40, %37
  %42 = load i1, ptr %14, align 1
  br i1 %42, label %43, label %44

43:                                               ; preds = %41
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %44

44:                                               ; preds = %43, %41
  %45 = load i1, ptr %13, align 1
  br i1 %45, label %46, label %47

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

47:                                               ; preds = %46, %44
  %48 = load i1, ptr %11, align 1
  br i1 %48, label %49, label %50

49:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %50

50:                                               ; preds = %49, %47
  %51 = load i1, ptr %7, align 1
  br i1 %51, label %52, label %53

52:                                               ; preds = %50
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br label %53

53:                                               ; preds = %52, %50
  %54 = load i1, ptr %6, align 1
  br i1 %54, label %55, label %56

55:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %56

56:                                               ; preds = %55, %53
  br i1 %38, label %57, label %87

57:                                               ; preds = %56
  store i1 false, ptr %2, align 1
  store i32 1, ptr %16, align 4
  br label %102

58:                                               ; preds = %28, %24
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %8, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %9, align 4
  br label %80

62:                                               ; preds = %32
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %8, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %9, align 4
  br label %73

66:                                               ; preds = %34
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %8, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %9, align 4
  %70 = load i1, ptr %14, align 1
  br i1 %70, label %71, label %72

71:                                               ; preds = %66
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %72

72:                                               ; preds = %71, %66
  br label %73

73:                                               ; preds = %72, %62
  %74 = load i1, ptr %13, align 1
  br i1 %74, label %75, label %76

75:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %76

76:                                               ; preds = %75, %73
  %77 = load i1, ptr %11, align 1
  br i1 %77, label %78, label %79

78:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %79

79:                                               ; preds = %78, %76
  br label %80

80:                                               ; preds = %79, %58
  %81 = load i1, ptr %7, align 1
  br i1 %81, label %82, label %83

82:                                               ; preds = %80
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br label %83

83:                                               ; preds = %82, %80
  %84 = load i1, ptr %6, align 1
  br i1 %84, label %85, label %86

85:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %86

86:                                               ; preds = %85, %83
  br label %104

87:                                               ; preds = %56
  %88 = getelementptr inbounds %"class.juce::PropertiesFile", ptr %17, i32 0, i32 5
  %89 = getelementptr inbounds %"struct.juce::PropertiesFile::Options", ptr %88, i32 0, i32 8
  %90 = load i32, ptr %89, align 8, !tbaa !36
  %91 = icmp eq i32 %90, 2
  br i1 %91, label %92, label %99

92:                                               ; preds = %87
  %93 = invoke noundef zeroext i1 @_ZN4juce14PropertiesFile9saveAsXmlEv(ptr noundef nonnull align 8 dereferenceable(274) %17)
          to label %94 unwind label %95

94:                                               ; preds = %92
  store i1 %93, ptr %2, align 1
  store i32 1, ptr %16, align 4
  br label %102

95:                                               ; preds = %99, %92
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %8, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %9, align 4
  br label %104

99:                                               ; preds = %87
  %100 = invoke noundef zeroext i1 @_ZN4juce14PropertiesFile12saveAsBinaryEv(ptr noundef nonnull align 8 dereferenceable(274) %17)
          to label %101 unwind label %95

101:                                              ; preds = %99
  store i1 %100, ptr %2, align 1
  store i32 1, ptr %16, align 4
  br label %102

102:                                              ; preds = %101, %94, %57
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %103 = load i1, ptr %2, align 1
  ret i1 %103

104:                                              ; preds = %95, %86
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %105

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

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

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

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

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

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

declare noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

declare noundef zeroext i1 @_ZNK4juce4File11isDirectoryEv(ptr noundef nonnull align 8 dereferenceable(8)) #5

declare void @_ZNK4juce4File18getParentDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::File") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #5

declare void @_ZNK4juce4File15createDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::Result") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce6ResultntEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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


; 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::GenericScopedLock" = type { ptr }
%"class.juce::File" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Result" = type { %"class.juce::String" }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce14PropertiesFile4saveEv(ptr noundef nonnull align 8 dereferenceable(274) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::GenericScopedLock", align 8
  %3 = alloca %"class.juce::File", align 8
  %4 = alloca %"class.juce::Result", align 8
  %5 = alloca %"class.juce::File", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %6 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce11PropertySet7getLockEv(ptr noundef nonnull align 8 dereferenceable(113) %0) #6
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(40) %6) #6
  %7 = getelementptr inbounds i8, ptr %0, i64 176
  call void @_ZN4juce5Timer9stopTimerEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  %8 = getelementptr inbounds i8, ptr %0, i64 250
  %9 = load i8, ptr %8, align 2, !tbaa !5, !range !33, !noundef !34
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %.critedge31.thread, label %11

11:                                               ; preds = %1
  %12 = getelementptr inbounds i8, ptr %0, i64 208
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @_ZN4juce4FileC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %13 = invoke noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %14 unwind label %21

14:                                               ; preds = %11
  br i1 %13, label %.critedge31.thread34, label %15

15:                                               ; preds = %14
  %16 = invoke noundef zeroext i1 @_ZNK4juce4File11isDirectoryEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %17 unwind label %21

17:                                               ; preds = %15
  br i1 %16, label %.critedge31.thread34, label %18

18:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  invoke void @_ZNK4juce4File18getParentDirectoryEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %19 unwind label %23

19:                                               ; preds = %18
  invoke void @_ZNK4juce4File15createDirectoryEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Result") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %.critedge31 unwind label %25

.critedge31.thread34:                             ; preds = %17, %14
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.critedge31.thread

.critedge31:                                      ; preds = %19
  %20 = call noundef zeroext i1 @_ZNK4juce6ResultntEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @_ZN4juce6ResultD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br i1 %20, label %.critedge31.thread, label %29

21:                                               ; preds = %15, %11
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %28

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

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

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

28:                                               ; preds = %21, %27
  %.pn.pn = phi { ptr, i32 } [ %.pn, %27 ], [ %22, %21 ]
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %39

29:                                               ; preds = %.critedge31
  %30 = getelementptr inbounds i8, ptr %0, i64 256
  %31 = load i32, ptr %30, align 8, !tbaa !35
  %32 = icmp eq i32 %31, 2
  br i1 %32, label %33, label %37

33:                                               ; preds = %29
  %34 = invoke noundef zeroext i1 @_ZN4juce14PropertiesFile9saveAsXmlEv(ptr noundef nonnull align 8 dereferenceable(274) %0)
          to label %.critedge31.thread unwind label %35

35:                                               ; preds = %37, %33
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %39

37:                                               ; preds = %29
  %38 = invoke noundef zeroext i1 @_ZN4juce14PropertiesFile12saveAsBinaryEv(ptr noundef nonnull align 8 dereferenceable(274) %0)
          to label %.critedge31.thread unwind label %35

.critedge31.thread:                               ; preds = %1, %.critedge31.thread34, %37, %33, %.critedge31
  %.023 = phi i1 [ false, %.critedge31 ], [ %34, %33 ], [ %38, %37 ], [ false, %.critedge31.thread34 ], [ false, %1 ]
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret i1 %.023

39:                                               ; preds = %28, %35
  %.pn26 = phi { ptr, i32 } [ %36, %35 ], [ %.pn.pn, %28 ]
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn26
}

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZNK4juce4File11isDirectoryEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

declare void @_ZNK4juce4File18getParentDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::File") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

declare void @_ZNK4juce4File15createDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::Result") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce6ResultntEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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


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