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

; 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::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::OwnedArray.126" = type { %"class.juce::ArrayAllocationBase.127", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.127" = type <{ %"class.juce::HeapBlock.128", i32, [4 x i8] }>
%"class.juce::HeapBlock.128" = type { ptr }
%"class.juce::GenericScopedUnlock" = type { ptr }
%"class.juce::KnownPluginList" = type { %"class.juce::ChangeBroadcaster", %"class.juce::OwnedArray.126", %"class.juce::StringArray", %"class.juce::ScopedPointer.136", %"class.juce::CriticalSection", %"class.juce::CriticalSection" }
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.120" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.8" }
%"class.juce::ReferenceCountedObjectPtr.8" = type { ptr }
%"class.juce::ListenerList.120" = type { %"class.juce::Array.121" }
%"class.juce::Array.121" = type { %"class.juce::ArrayAllocationBase.122", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.122" = type <{ %"class.juce::HeapBlock.123", i32, [4 x i8] }>
%"class.juce::HeapBlock.123" = type { ptr }
%"class.juce::StringArray" = type { %"class.juce::Array.131" }
%"class.juce::Array.131" = type { %"class.juce::ArrayAllocationBase.132", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.132" = type <{ %"class.juce::HeapBlock.133", i32, [4 x i8] }>
%"class.juce::HeapBlock.133" = type { ptr }
%"class.juce::ScopedPointer.136" = 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::PluginDescription" = type <{ %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::Time", %"class.juce::Time", i32, i8, [3 x i8], i32, i32, i8, [7 x i8] }>
%"class.juce::Time" = type { i64 }

; 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juceeqERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

; 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 nounwind uwtable
declare dso_local void @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEEC2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4juce15KnownPluginList7addTypeERKNS_17PluginDescriptionE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(89)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce15KnownPluginList14scanAndAddFileERKNS_6StringEbRNS_10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEEERNS_17AudioPluginFormatE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i1 noundef zeroext %2, ptr noundef nonnull align 8 dereferenceable(20) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.juce::GenericScopedLock", align 8
  %13 = alloca i8, align 1
  %14 = alloca %"class.juce::GenericScopedLock", align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"class.juce::String", align 8
  %18 = alloca i1, align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i1, align 1
  %22 = alloca i32, align 4
  %23 = alloca %"class.juce::StringRef", align 8
  %24 = alloca %"class.juce::OwnedArray.126", align 8
  %25 = alloca %"class.juce::GenericScopedUnlock", align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  %28 = zext i1 %2 to i8
  store i8 %28, ptr %9, align 1, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %29 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %30 = getelementptr inbounds %"class.juce::KnownPluginList", ptr %29, i32 0, i32 4
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(40) %30) #8
  %31 = load i8, ptr %9, align 1, !tbaa !9, !range !11, !noundef !12
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %113

33:                                               ; preds = %5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call noundef ptr @_ZNK4juce15KnownPluginList14getTypeForFileERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(192) %29, ptr noundef nonnull align 8 dereferenceable(8) %34)
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %113

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #8
  store i8 0, ptr %13, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %38 = getelementptr inbounds %"class.juce::KnownPluginList", ptr %29, i32 0, i32 5
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(40) %38) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %39 = getelementptr inbounds %"class.juce::KnownPluginList", ptr %29, i32 0, i32 1
  %40 = call noundef i32 @_ZNK4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %39) #8
  store i32 %40, ptr %15, align 4, !tbaa !13
  br label %41

41:                                               ; preds = %103, %37
  %42 = load i32, ptr %15, align 4, !tbaa !13
  %43 = add nsw i32 %42, -1
  store i32 %43, ptr %15, align 4, !tbaa !13
  %44 = icmp sge i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %105

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %47 = getelementptr inbounds %"class.juce::KnownPluginList", ptr %29, i32 0, i32 1
  %48 = load i32, ptr %15, align 4, !tbaa !13
  %49 = call noundef ptr @_ZNK4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %47, i32 noundef %48) #8
  store ptr %49, ptr %16, align 8, !tbaa !5
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.juce::PluginDescription", ptr %50, i32 0, i32 6
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZN4juceeqERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %52) #8
  store i1 false, ptr %18, align 1
  store i1 false, ptr %21, align 1
  br i1 %53, label %54, label %63

54:                                               ; preds = %46
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.juce::PluginDescription", ptr %55, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store i1 true, ptr %18, align 1
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !15
  %59 = getelementptr inbounds ptr, ptr %58, i64 2
  %60 = load ptr, ptr %59, align 8
  invoke void %60(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %57)
          to label %61 unwind label %80

61:                                               ; preds = %54
  store i1 true, ptr %21, align 1
  %62 = call noundef zeroext i1 @_ZN4juceeqERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br label %63

63:                                               ; preds = %61, %46
  %64 = phi i1 [ false, %46 ], [ %62, %61 ]
  %65 = load i1, ptr %21, align 1
  br i1 %65, label %66, label %67

66:                                               ; preds = %63
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br label %67

67:                                               ; preds = %66, %63
  %68 = load i1, ptr %18, align 1
  br i1 %68, label %69, label %70

69:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %70

70:                                               ; preds = %69, %67
  br i1 %64, label %71, label %103

71:                                               ; preds = %70
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = load ptr, ptr %72, align 8, !tbaa !15
  %75 = getelementptr inbounds ptr, ptr %74, i64 6
  %76 = load ptr, ptr %75, align 8
  %77 = invoke noundef zeroext i1 %76(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull align 8 dereferenceable(89) %73)
          to label %78 unwind label %87

78:                                               ; preds = %71
  br i1 %77, label %79, label %91

79:                                               ; preds = %78
  store i8 1, ptr %13, align 1, !tbaa !9
  br label %102

80:                                               ; preds = %54
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %19, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %20, align 4
  %84 = load i1, ptr %18, align 1
  br i1 %84, label %85, label %86

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

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

87:                                               ; preds = %91, %71
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %19, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %20, align 4
  br label %104

91:                                               ; preds = %78
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 96) #9
          to label %94 unwind label %87

94:                                               ; preds = %91
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN4juce17PluginDescriptionC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(89) %93, ptr noundef nonnull align 8 dereferenceable(89) %95)
          to label %96 unwind label %98

96:                                               ; preds = %94
  %97 = call noundef ptr @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE3addEPS1_(ptr noundef nonnull align 8 dereferenceable(20) %92, ptr noundef %93) #8
  br label %102

98:                                               ; preds = %94
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %19, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %20, align 4
  call void @_ZdlPvm(ptr noundef %93, i64 noundef 96) #10
  br label %104

102:                                              ; preds = %96, %79
  br label %103

103:                                              ; preds = %102, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %41, !llvm.loop !17

104:                                              ; preds = %98, %87, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  br label %192

105:                                              ; preds = %45
  %106 = load i8, ptr %13, align 1, !tbaa !9, !range !11, !noundef !12
  %107 = trunc i8 %106 to i1
  br i1 %107, label %109, label %108

108:                                              ; preds = %105
  store i1 false, ptr %6, align 1
  store i32 1, ptr %22, align 4
  br label %110

109:                                              ; preds = %105
  store i32 0, ptr %22, align 4
  br label %110

110:                                              ; preds = %109, %108
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  %111 = load i32, ptr %22, align 4
  switch i32 %111, label %190 [
    i32 0, label %112
  ]

112:                                              ; preds = %110
  br label %113

113:                                              ; preds = %112, %33, %5
  %114 = getelementptr inbounds %"class.juce::KnownPluginList", ptr %29, i32 0, i32 2
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %115) #8
  %116 = invoke noundef zeroext i1 @_ZNK4juce11StringArray8containsENS_9StringRefEb(ptr noundef nonnull align 8 dereferenceable(24) %114, ptr noundef %23, i1 noundef zeroext false)
          to label %117 unwind label %119

117:                                              ; preds = %113
  br i1 %116, label %118, label %123

118:                                              ; preds = %117
  store i1 false, ptr %6, align 1
  store i32 1, ptr %22, align 4
  br label %190

119:                                              ; preds = %113
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %19, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %20, align 4
  br label %192

123:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #8
  call void @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEEC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %24) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %124 = getelementptr inbounds %"class.juce::KnownPluginList", ptr %29, i32 0, i32 4
  call void @_ZN4juce19GenericScopedUnlockINS_15CriticalSectionEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(40) %124) #8
  %125 = getelementptr inbounds %"class.juce::KnownPluginList", ptr %29, i32 0, i32 3
  %126 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15KnownPluginList13CustomScannerEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %125) #8
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %146

128:                                              ; preds = %123
  %129 = getelementptr inbounds %"class.juce::KnownPluginList", ptr %29, i32 0, i32 3
  %130 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15KnownPluginList13CustomScannerEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %129) #8
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load ptr, ptr %130, align 8, !tbaa !15
  %134 = getelementptr inbounds ptr, ptr %133, i64 2
  %135 = load ptr, ptr %134, align 8
  %136 = invoke noundef zeroext i1 %135(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef nonnull align 8 dereferenceable(20) %24, ptr noundef nonnull align 8 dereferenceable(8) %132)
          to label %137 unwind label %141

137:                                              ; preds = %128
  br i1 %136, label %145, label %138

138:                                              ; preds = %137
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN4juce15KnownPluginList14addToBlacklistERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(192) %29, ptr noundef nonnull align 8 dereferenceable(8) %139)
          to label %140 unwind label %141

140:                                              ; preds = %138
  br label %145

141:                                              ; preds = %146, %138, %128
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %19, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %20, align 4
  call void @_ZN4juce19GenericScopedUnlockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %189

145:                                              ; preds = %140, %137
  br label %153

146:                                              ; preds = %123
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = load ptr, ptr %147, align 8, !tbaa !15
  %150 = getelementptr inbounds ptr, ptr %149, i64 3
  %151 = load ptr, ptr %150, align 8
  invoke void %151(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef nonnull align 8 dereferenceable(20) %24, ptr noundef nonnull align 8 dereferenceable(8) %148)
          to label %152 unwind label %141

152:                                              ; preds = %146
  br label %153

153:                                              ; preds = %152, %145
  call void @_ZN4juce19GenericScopedUnlockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !13
  br label %154

154:                                              ; preds = %174, %153
  %155 = load i32, ptr %26, align 4, !tbaa !13
  %156 = call noundef i32 @_ZNK4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %24) #8
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %159, label %158

158:                                              ; preds = %154
  store i32 4, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %186

159:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %160 = load i32, ptr %26, align 4, !tbaa !13
  %161 = call noundef ptr @_ZNK4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %24, i32 noundef %160) #8
  store ptr %161, ptr %27, align 8, !tbaa !5
  br label %162

162:                                              ; preds = %159
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163
  %165 = load ptr, ptr %27, align 8, !tbaa !5
  %166 = invoke noundef zeroext i1 @_ZN4juce15KnownPluginList7addTypeERKNS_17PluginDescriptionE(ptr noundef nonnull align 8 dereferenceable(192) %29, ptr noundef nonnull align 8 dereferenceable(89) %165)
          to label %167 unwind label %177

167:                                              ; preds = %164
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 96) #9
          to label %170 unwind label %177

170:                                              ; preds = %167
  %171 = load ptr, ptr %27, align 8, !tbaa !5
  invoke void @_ZN4juce17PluginDescriptionC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(89) %169, ptr noundef nonnull align 8 dereferenceable(89) %171)
          to label %172 unwind label %181

172:                                              ; preds = %170
  %173 = call noundef ptr @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE3addEPS1_(ptr noundef nonnull align 8 dereferenceable(20) %168, ptr noundef %169) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %174

174:                                              ; preds = %172
  %175 = load i32, ptr %26, align 4, !tbaa !13
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %26, align 4, !tbaa !13
  br label %154, !llvm.loop !19

177:                                              ; preds = %167, %164
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %19, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %20, align 4
  br label %185

181:                                              ; preds = %170
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %19, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %20, align 4
  call void @_ZdlPvm(ptr noundef %169, i64 noundef 96) #10
  br label %185

185:                                              ; preds = %181, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %189

186:                                              ; preds = %158
  %187 = call noundef i32 @_ZNK4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %24) #8
  %188 = icmp sgt i32 %187, 0
  store i1 %188, ptr %6, align 1
  store i32 1, ptr %22, align 4
  call void @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  br label %190

189:                                              ; preds = %185, %141
  call void @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  br label %192

190:                                              ; preds = %186, %118, %110
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %191 = load i1, ptr %6, align 1
  ret i1 %191

192:                                              ; preds = %189, %119, %104
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %193

193:                                              ; preds = %192
  %194 = load ptr, ptr %19, align 8
  %195 = load i32, ptr %20, align 4
  %196 = insertvalue { ptr, i32 } poison, ptr %194, 0
  %197 = insertvalue { ptr, i32 } %196, i32 %195, 1
  resume { ptr, i32 } %197
}

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

declare noundef zeroext i1 @_ZNK4juce11StringArray8containsENS_9StringRefEb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i1 noundef zeroext) #7

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce15KnownPluginList14addToBlacklistERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

declare void @_ZN4juce17PluginDescriptionC1ERKS0_(ptr, ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #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 = { 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 #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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::OwnedArray.126" = type { %"class.juce::ArrayAllocationBase.127", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.127" = type <{ %"class.juce::HeapBlock.128", i32, [4 x i8] }>
%"class.juce::HeapBlock.128" = type { ptr }
%"class.juce::GenericScopedUnlock" = type { ptr }

; 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juceeqERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

; 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 nounwind uwtable
declare dso_local void @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEEC2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4juce15KnownPluginList7addTypeERKNS_17PluginDescriptionE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(89)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce15KnownPluginList14scanAndAddFileERKNS_6StringEbRNS_10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEEERNS_17AudioPluginFormatE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i1 noundef zeroext %2, ptr noundef nonnull align 8 dereferenceable(20) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.juce::GenericScopedLock", align 8
  %7 = alloca %"class.juce::GenericScopedLock", align 8
  %8 = alloca %"class.juce::String", align 8
  %9 = alloca %"class.juce::StringRef", align 8
  %10 = alloca %"class.juce::OwnedArray.126", align 8
  %11 = alloca %"class.juce::GenericScopedUnlock", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %12 = getelementptr inbounds i8, ptr %0, i64 112
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(40) %12) #8
  br i1 %2, label %13, label %50

13:                                               ; preds = %5
  %14 = call noundef ptr @_ZNK4juce15KnownPluginList14getTypeForFileERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %.not = icmp eq ptr %14, null
  br i1 %.not, label %50, label %15

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %16 = getelementptr inbounds i8, ptr %0, i64 152
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(40) %16) #8
  %17 = getelementptr inbounds i8, ptr %0, i64 56
  %18 = call noundef i32 @_ZNK4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %17) #8
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph.outer, label %.critedge60

.lr.ph.outer:                                     ; preds = %15, %.critedge.thread.thread
  %.in.ph = phi i32 [ %20, %.critedge.thread.thread ], [ %18, %15 ]
  %.04255.ph = phi i1 [ true, %.critedge.thread.thread ], [ false, %15 ]
  br label %.lr.ph

._crit_edge:                                      ; preds = %.critedge.thread
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %.04255.ph, label %50, label %93

.lr.ph:                                           ; preds = %.lr.ph.outer, %.critedge.thread
  %.in = phi i32 [ %20, %.critedge.thread ], [ %.in.ph, %.lr.ph.outer ]
  %20 = add nsw i32 %.in, -1
  %21 = call noundef ptr @_ZNK4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %17, i32 noundef %20) #8
  %22 = getelementptr inbounds i8, ptr %21, i64 48
  %23 = call noundef zeroext i1 @_ZN4juceeqERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %1) #8
  br i1 %23, label %24, label %.critedge.thread

24:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %27 = load ptr, ptr %26, align 8
  invoke void %27(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %.critedge unwind label %36

.critedge:                                        ; preds = %24
  %28 = getelementptr inbounds i8, ptr %21, i64 16
  %29 = call noundef zeroext i1 @_ZN4juceeqERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br i1 %29, label %30, label %.critedge.thread

30:                                               ; preds = %.critedge
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 48
  %33 = load ptr, ptr %32, align 8
  %34 = invoke noundef zeroext i1 %33(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(89) %21)
          to label %35 unwind label %38

35:                                               ; preds = %30
  br i1 %34, label %.critedge.thread.thread, label %40

36:                                               ; preds = %24
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %49

38:                                               ; preds = %40, %30
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %49

40:                                               ; preds = %35
  %41 = invoke noalias noundef nonnull dereferenceable(96) ptr @_Znwm(i64 noundef 96) #9
          to label %42 unwind label %38

42:                                               ; preds = %40
  invoke void @_ZN4juce17PluginDescriptionC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(89) %41, ptr noundef nonnull align 8 dereferenceable(89) %21)
          to label %43 unwind label %45

43:                                               ; preds = %42
  %44 = call noundef ptr @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE3addEPS1_(ptr noundef nonnull align 8 dereferenceable(20) %3, ptr noundef nonnull %41) #8
  br label %.critedge.thread

45:                                               ; preds = %42
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %41, i64 noundef 96) #10
  br label %49

.critedge.thread:                                 ; preds = %.lr.ph, %43, %.critedge
  %47 = icmp ugt i32 %.in, 1
  br i1 %47, label %.lr.ph, label %._crit_edge, !llvm.loop !8

.critedge.thread.thread:                          ; preds = %35
  %48 = icmp ugt i32 %.in, 1
  br i1 %48, label %.lr.ph.outer, label %._crit_edge.thread, !llvm.loop !8

._crit_edge.thread:                               ; preds = %.critedge.thread.thread
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %50

49:                                               ; preds = %36, %45, %38
  %.pn48 = phi { ptr, i32 } [ %46, %45 ], [ %39, %38 ], [ %37, %36 ]
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %94

50:                                               ; preds = %._crit_edge.thread, %._crit_edge, %13, %5
  %51 = getelementptr inbounds i8, ptr %0, i64 80
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %1) #8
  %52 = invoke noundef zeroext i1 @_ZNK4juce11StringArray8containsENS_9StringRefEb(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull %9, i1 noundef zeroext false)
          to label %53 unwind label %54

53:                                               ; preds = %50
  br i1 %52, label %93, label %56

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

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #8
  call void @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEEC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  call void @_ZN4juce19GenericScopedUnlockINS_15CriticalSectionEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(40) %12) #8
  %57 = getelementptr inbounds i8, ptr %0, i64 104
  %58 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15KnownPluginList13CustomScannerEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %57) #8
  %.not45 = icmp eq ptr %58, null
  br i1 %.not45, label %69, label %59

59:                                               ; preds = %56
  %60 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15KnownPluginList13CustomScannerEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %57) #8
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef zeroext i1 %63(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(20) %10, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %65 unwind label %67

65:                                               ; preds = %59
  br i1 %64, label %73, label %66

66:                                               ; preds = %65
  invoke void @_ZN4juce15KnownPluginList14addToBlacklistERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %73 unwind label %67

67:                                               ; preds = %69, %66, %59
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce19GenericScopedUnlockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %92

69:                                               ; preds = %56
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 24
  %72 = load ptr, ptr %71, align 8
  invoke void %72(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(20) %10, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %73 unwind label %67

73:                                               ; preds = %69, %65, %66
  call void @_ZN4juce19GenericScopedUnlockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %74 = call noundef i32 @_ZNK4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %10) #8
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %.lr.ph58, label %._crit_edge59

._crit_edge59:                                    ; preds = %83, %73
  %76 = call noundef i32 @_ZNK4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %10) #8
  %77 = icmp sgt i32 %76, 0
  call void @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  br label %93

.lr.ph58:                                         ; preds = %73, %83
  %.03256 = phi i32 [ %85, %83 ], [ 0, %73 ]
  %78 = call noundef ptr @_ZNK4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %10, i32 noundef %.03256) #8
  %79 = invoke noundef zeroext i1 @_ZN4juce15KnownPluginList7addTypeERKNS_17PluginDescriptionE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(89) %78)
          to label %80 unwind label %88

80:                                               ; preds = %.lr.ph58
  %81 = invoke noalias noundef nonnull dereferenceable(96) ptr @_Znwm(i64 noundef 96) #9
          to label %82 unwind label %88

82:                                               ; preds = %80
  invoke void @_ZN4juce17PluginDescriptionC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(89) %81, ptr noundef nonnull align 8 dereferenceable(89) %78)
          to label %83 unwind label %90

83:                                               ; preds = %82
  %84 = call noundef ptr @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE3addEPS1_(ptr noundef nonnull align 8 dereferenceable(20) %3, ptr noundef nonnull %81) #8
  %85 = add nuw nsw i32 %.03256, 1
  %86 = call noundef i32 @_ZNK4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %10) #8
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %.lr.ph58, label %._crit_edge59, !llvm.loop !10

88:                                               ; preds = %80, %.lr.ph58
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %82
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %81, i64 noundef 96) #10
  br label %92

92:                                               ; preds = %88, %90, %67
  %.pn.pn = phi { ptr, i32 } [ %68, %67 ], [ %91, %90 ], [ %89, %88 ]
  call void @_ZN4juce10OwnedArrayINS_17PluginDescriptionENS_20DummyCriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  br label %94

.critedge60:                                      ; preds = %15
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %93

93:                                               ; preds = %.critedge60, %53, %._crit_edge, %._crit_edge59
  %.1 = phi i1 [ %77, %._crit_edge59 ], [ false, %._crit_edge ], [ false, %53 ], [ false, %.critedge60 ]
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  ret i1 %.1

94:                                               ; preds = %92, %54, %49
  %.pn48.pn = phi { ptr, i32 } [ %.pn48, %49 ], [ %.pn.pn, %92 ], [ %55, %54 ]
  call void @_ZN4juce17GenericScopedLockINS_15CriticalSectionEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn48.pn
}

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

declare noundef zeroext i1 @_ZNK4juce11StringArray8containsENS_9StringRefEb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i1 noundef zeroext) local_unnamed_addr #7

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce15KnownPluginList14addToBlacklistERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

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

declare void @_ZN4juce17PluginDescriptionC1ERKS0_(ptr, ptr) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #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 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass