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

; 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::Array.110" = type { %"class.juce::ArrayAllocationBase.3", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.3" = type <{ %"class.juce::HeapBlock.4", i32, [4 x i8] }>
%"class.juce::HeapBlock.4" = type { ptr }
%"struct.juce::VoiceAgeSorter" = type { i8 }
%"class.juce::Synthesiser" = type { ptr, %"class.juce::CriticalSection", %"class.juce::OwnedArray", %"class.juce::ReferenceCountedArray", [16 x i32], double, i32, i32, i8, i8, [6 x i8], %"class.juce::BigInteger" }
%"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::OwnedArray" = type { %"class.juce::ArrayAllocationBase.3", i32, [4 x i8] }
%"class.juce::ReferenceCountedArray" = type { %"class.juce::ArrayAllocationBase.6", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.6" = type <{ %"class.juce::HeapBlock.7", i32, [4 x i8] }>
%"class.juce::HeapBlock.7" = type { ptr }
%"class.juce::BigInteger" = type <{ %"class.juce::HeapBlock.9", [4 x i32], i64, i32, i8, [3 x i8] }>
%"class.juce::HeapBlock.9" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce16SynthesiserVoice23getCurrentlyPlayingNoteEv(ptr noundef nonnull align 8 dereferenceable(344)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZNK4juce11Synthesiser16findVoiceToStealEPNS_16SynthesiserSoundEii(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.juce::Array.110", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.juce::VoiceAgeSorter", align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %29 = load ptr, ptr %6, align 8
  br label %30

30:                                               ; preds = %4
  br label %31

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  call void @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EEC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #4
  %32 = getelementptr inbounds %"class.juce::Synthesiser", ptr %29, i32 0, i32 2
  %33 = call noundef i32 @_ZNK4juce10OwnedArrayINS_16SynthesiserVoiceENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %32) #4
  invoke void @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE22ensureStorageAllocatedEi(ptr noundef nonnull align 8 dereferenceable(20) %12, i32 noundef %33)
          to label %34 unwind label %41

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %98, %34
  %36 = load i32, ptr %15, align 4, !tbaa !9
  %37 = getelementptr inbounds %"class.juce::Synthesiser", ptr %29, i32 0, i32 2
  %38 = call noundef i32 @_ZNK4juce10OwnedArrayINS_16SynthesiserVoiceENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %37) #4
  %39 = icmp slt i32 %36, %38
  br i1 %39, label %45, label %40

40:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %102

41:                                               ; preds = %31
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %13, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %14, align 4
  br label %252

45:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %46 = getelementptr inbounds %"class.juce::Synthesiser", ptr %29, i32 0, i32 2
  %47 = load i32, ptr %15, align 4, !tbaa !9
  %48 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16SynthesiserVoiceENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %46, i32 noundef %47) #4
  store ptr %48, ptr %16, align 8, !tbaa !5
  %49 = load ptr, ptr %16, align 8, !tbaa !5
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load ptr, ptr %49, align 8, !tbaa !11
  %52 = getelementptr inbounds ptr, ptr %51, i64 2
  %53 = load ptr, ptr %52, align 8
  %54 = invoke noundef zeroext i1 %53(ptr noundef nonnull align 8 dereferenceable(344) %49, ptr noundef %50)
          to label %55 unwind label %77

55:                                               ; preds = %45
  br i1 %54, label %56, label %97

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = invoke noundef i32 @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE9addSortedINS_14VoiceAgeSorterEEEiRT_S2_(ptr noundef nonnull align 8 dereferenceable(20) %12, ptr noundef nonnull align 1 dereferenceable(1) %17, ptr noundef %60)
          to label %62 unwind label %81

62:                                               ; preds = %59
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  %64 = call noundef zeroext i1 @_ZNK4juce16SynthesiserVoice20isPlayingButReleasedEv(ptr noundef nonnull align 8 dereferenceable(344) %63) #4
  br i1 %64, label %96, label %65

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %66 = load ptr, ptr %16, align 8, !tbaa !5
  %67 = call noundef i32 @_ZNK4juce16SynthesiserVoice23getCurrentlyPlayingNoteEv(ptr noundef nonnull align 8 dereferenceable(344) %66) #4
  store i32 %67, ptr %18, align 4, !tbaa !9
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = icmp eq ptr %68, null
  br i1 %69, label %75, label %70

70:                                               ; preds = %65
  %71 = load i32, ptr %18, align 4, !tbaa !9
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = call noundef i32 @_ZNK4juce16SynthesiserVoice23getCurrentlyPlayingNoteEv(ptr noundef nonnull align 8 dereferenceable(344) %72) #4
  %74 = icmp slt i32 %71, %73
  br i1 %74, label %75, label %85

75:                                               ; preds = %70, %65
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %76, ptr %10, align 8, !tbaa !5
  br label %85

77:                                               ; preds = %45
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %13, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %14, align 4
  br label %101

81:                                               ; preds = %59
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %13, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  br label %101

85:                                               ; preds = %75, %70
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = icmp eq ptr %86, null
  br i1 %87, label %93, label %88

88:                                               ; preds = %85
  %89 = load i32, ptr %18, align 4, !tbaa !9
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = call noundef i32 @_ZNK4juce16SynthesiserVoice23getCurrentlyPlayingNoteEv(ptr noundef nonnull align 8 dereferenceable(344) %90) #4
  %92 = icmp sgt i32 %89, %91
  br i1 %92, label %93, label %95

93:                                               ; preds = %88, %85
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %94, ptr %11, align 8, !tbaa !5
  br label %95

95:                                               ; preds = %93, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %96

96:                                               ; preds = %95, %62
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  br label %97

97:                                               ; preds = %96, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %15, align 4, !tbaa !9
  br label %35, !llvm.loop !13

101:                                              ; preds = %81, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %252

102:                                              ; preds = %40
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = icmp eq ptr %103, %104
  br i1 %105, label %106, label %107

106:                                              ; preds = %102
  store ptr null, ptr %11, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %106, %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %108 = call noundef i32 @_ZNK4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %12) #4
  store i32 %108, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %132, %107
  %110 = load i32, ptr %20, align 4, !tbaa !9
  %111 = load i32, ptr %19, align 4, !tbaa !9
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 9, ptr %21, align 4
  br label %135

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %115 = load i32, ptr %20, align 4, !tbaa !9
  %116 = invoke noundef ptr @_ZNK4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %12, i32 noundef %115)
          to label %117 unwind label %124

117:                                              ; preds = %114
  store ptr %116, ptr %22, align 8, !tbaa !5
  %118 = load ptr, ptr %22, align 8, !tbaa !5
  %119 = call noundef i32 @_ZNK4juce16SynthesiserVoice23getCurrentlyPlayingNoteEv(ptr noundef nonnull align 8 dereferenceable(344) %118) #4
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = icmp eq i32 %119, %120
  br i1 %121, label %122, label %128

122:                                              ; preds = %117
  %123 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %123, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %129

124:                                              ; preds = %114
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %13, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %251

128:                                              ; preds = %117
  store i32 0, ptr %21, align 4
  br label %129

129:                                              ; preds = %128, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  %130 = load i32, ptr %21, align 4
  switch i32 %130, label %135 [
    i32 0, label %131
  ]

131:                                              ; preds = %129
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %20, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %20, align 4, !tbaa !9
  br label %109, !llvm.loop !15

135:                                              ; preds = %129, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %136 = load i32, ptr %21, align 4
  switch i32 %136, label %249 [
    i32 9, label %137
  ]

137:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %167, %137
  %139 = load i32, ptr %23, align 4, !tbaa !9
  %140 = load i32, ptr %19, align 4, !tbaa !9
  %141 = icmp slt i32 %139, %140
  br i1 %141, label %143, label %142

142:                                              ; preds = %138
  store i32 12, ptr %21, align 4
  br label %170

143:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %144 = load i32, ptr %23, align 4, !tbaa !9
  %145 = invoke noundef ptr @_ZNK4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %12, i32 noundef %144)
          to label %146 unwind label %159

146:                                              ; preds = %143
  store ptr %145, ptr %24, align 8, !tbaa !5
  %147 = load ptr, ptr %24, align 8, !tbaa !5
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = icmp ne ptr %147, %148
  br i1 %149, label %150, label %163

150:                                              ; preds = %146
  %151 = load ptr, ptr %24, align 8, !tbaa !5
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = icmp ne ptr %151, %152
  br i1 %153, label %154, label %163

154:                                              ; preds = %150
  %155 = load ptr, ptr %24, align 8, !tbaa !5
  %156 = call noundef zeroext i1 @_ZNK4juce16SynthesiserVoice20isPlayingButReleasedEv(ptr noundef nonnull align 8 dereferenceable(344) %155) #4
  br i1 %156, label %157, label %163

157:                                              ; preds = %154
  %158 = load ptr, ptr %24, align 8, !tbaa !5
  store ptr %158, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %164

159:                                              ; preds = %143
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %13, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %251

163:                                              ; preds = %154, %150, %146
  store i32 0, ptr %21, align 4
  br label %164

164:                                              ; preds = %163, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  %165 = load i32, ptr %21, align 4
  switch i32 %165, label %170 [
    i32 0, label %166
  ]

166:                                              ; preds = %164
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %23, align 4, !tbaa !9
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %23, align 4, !tbaa !9
  br label %138, !llvm.loop !16

170:                                              ; preds = %164, %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  %171 = load i32, ptr %21, align 4
  switch i32 %171, label %249 [
    i32 12, label %172
  ]

172:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %202, %172
  %174 = load i32, ptr %25, align 4, !tbaa !9
  %175 = load i32, ptr %19, align 4, !tbaa !9
  %176 = icmp slt i32 %174, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %173
  store i32 15, ptr %21, align 4
  br label %205

178:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %179 = load i32, ptr %25, align 4, !tbaa !9
  %180 = invoke noundef ptr @_ZNK4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %12, i32 noundef %179)
          to label %181 unwind label %194

181:                                              ; preds = %178
  store ptr %180, ptr %26, align 8, !tbaa !5
  %182 = load ptr, ptr %26, align 8, !tbaa !5
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  %184 = icmp ne ptr %182, %183
  br i1 %184, label %185, label %198

185:                                              ; preds = %181
  %186 = load ptr, ptr %26, align 8, !tbaa !5
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = icmp ne ptr %186, %187
  br i1 %188, label %189, label %198

189:                                              ; preds = %185
  %190 = load ptr, ptr %26, align 8, !tbaa !5
  %191 = call noundef zeroext i1 @_ZNK4juce16SynthesiserVoice9isKeyDownEv(ptr noundef nonnull align 8 dereferenceable(344) %190) #4
  br i1 %191, label %198, label %192

192:                                              ; preds = %189
  %193 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %193, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %199

194:                                              ; preds = %178
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %13, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %251

198:                                              ; preds = %189, %185, %181
  store i32 0, ptr %21, align 4
  br label %199

199:                                              ; preds = %198, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  %200 = load i32, ptr %21, align 4
  switch i32 %200, label %205 [
    i32 0, label %201
  ]

201:                                              ; preds = %199
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %25, align 4, !tbaa !9
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %25, align 4, !tbaa !9
  br label %173, !llvm.loop !17

205:                                              ; preds = %199, %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  %206 = load i32, ptr %21, align 4
  switch i32 %206, label %249 [
    i32 15, label %207
  ]

207:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %234, %207
  %209 = load i32, ptr %27, align 4, !tbaa !9
  %210 = load i32, ptr %19, align 4, !tbaa !9
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %208
  store i32 18, ptr %21, align 4
  br label %237

213:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %214 = load i32, ptr %27, align 4, !tbaa !9
  %215 = invoke noundef ptr @_ZNK4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %12, i32 noundef %214)
          to label %216 unwind label %226

216:                                              ; preds = %213
  store ptr %215, ptr %28, align 8, !tbaa !5
  %217 = load ptr, ptr %28, align 8, !tbaa !5
  %218 = load ptr, ptr %10, align 8, !tbaa !5
  %219 = icmp ne ptr %217, %218
  br i1 %219, label %220, label %230

220:                                              ; preds = %216
  %221 = load ptr, ptr %28, align 8, !tbaa !5
  %222 = load ptr, ptr %11, align 8, !tbaa !5
  %223 = icmp ne ptr %221, %222
  br i1 %223, label %224, label %230

224:                                              ; preds = %220
  %225 = load ptr, ptr %28, align 8, !tbaa !5
  store ptr %225, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %231

226:                                              ; preds = %213
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %13, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %251

230:                                              ; preds = %220, %216
  store i32 0, ptr %21, align 4
  br label %231

231:                                              ; preds = %230, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  %232 = load i32, ptr %21, align 4
  switch i32 %232, label %237 [
    i32 0, label %233
  ]

233:                                              ; preds = %231
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr %27, align 4, !tbaa !9
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %27, align 4, !tbaa !9
  br label %208, !llvm.loop !18

237:                                              ; preds = %231, %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  %238 = load i32, ptr %21, align 4
  switch i32 %238, label %249 [
    i32 18, label %239
  ]

239:                                              ; preds = %237
  br label %240

240:                                              ; preds = %239
  br label %241

241:                                              ; preds = %240
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr %11, align 8, !tbaa !5
  %244 = icmp ne ptr %243, null
  br i1 %244, label %245, label %247

245:                                              ; preds = %242
  %246 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %246, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %249

247:                                              ; preds = %242
  %248 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %248, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %249

249:                                              ; preds = %247, %245, %237, %205, %170, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %250 = load ptr, ptr %5, align 8
  ret ptr %250

251:                                              ; preds = %226, %194, %159, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %252

252:                                              ; preds = %251, %101, %41
  call void @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %253

253:                                              ; preds = %252
  %254 = load ptr, ptr %13, align 8
  %255 = load i32, ptr %14, align 4
  %256 = insertvalue { ptr, i32 } poison, ptr %254, 0
  %257 = insertvalue { ptr, i32 } %256, i32 %255, 1
  resume { ptr, i32 } %257
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE9addSortedINS_14VoiceAgeSorterEEEiRT_S2_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) #3 align 2

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


; 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::Array.110" = type { %"class.juce::ArrayAllocationBase.3", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.3" = type <{ %"class.juce::HeapBlock.4", i32, [4 x i8] }>
%"class.juce::HeapBlock.4" = type { ptr }
%"struct.juce::VoiceAgeSorter" = type { i8 }

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

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce16SynthesiserVoice23getCurrentlyPlayingNoteEv(ptr noundef nonnull align 8 dereferenceable(344)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZNK4juce11Synthesiser16findVoiceToStealEPNS_16SynthesiserSoundEii(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.juce::Array.110", align 8
  %6 = alloca %"struct.juce::VoiceAgeSorter", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EEC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #4
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  %8 = call noundef i32 @_ZNK4juce10OwnedArrayINS_16SynthesiserVoiceENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %7) #4
  invoke void @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE22ensureStorageAllocatedEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %8)
          to label %.preheader139 unwind label %13

.preheader139:                                    ; preds = %4
  %9 = call noundef i32 @_ZNK4juce10OwnedArrayINS_16SynthesiserVoiceENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %7) #4
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %43, %.preheader139
  %.081.lcssa = phi ptr [ null, %.preheader139 ], [ %.384, %43 ]
  %.076.lcssa = phi ptr [ null, %.preheader139 ], [ %.379, %43 ]
  %11 = icmp eq ptr %.081.lcssa, %.076.lcssa
  %spec.store.select = select i1 %11, ptr null, ptr %.081.lcssa
  %12 = call noundef i32 @_ZNK4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %5) #4
  %.not103151 = icmp sgt i32 %12, 0
  br i1 %.not103151, label %.lr.ph154, label %._crit_edge164

13:                                               ; preds = %4
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %64

.lr.ph:                                           ; preds = %.preheader139, %43
  %.076149 = phi ptr [ %.379, %43 ], [ null, %.preheader139 ]
  %.081148 = phi ptr [ %.384, %43 ], [ null, %.preheader139 ]
  %.099147 = phi i32 [ %44, %43 ], [ 0, %.preheader139 ]
  %15 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16SynthesiserVoiceENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %7, i32 noundef %.099147) #4
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = load ptr, ptr %17, align 8
  %19 = invoke noundef zeroext i1 %18(ptr noundef nonnull align 8 dereferenceable(344) %15, ptr noundef %1)
          to label %20 unwind label %32

20:                                               ; preds = %.lr.ph
  br i1 %19, label %21, label %43

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  %22 = invoke noundef i32 @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE9addSortedINS_14VoiceAgeSorterEEEiRT_S2_(ptr noundef nonnull align 8 dereferenceable(20) %5, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull %15)
          to label %23 unwind label %34

23:                                               ; preds = %21
  %24 = call noundef zeroext i1 @_ZNK4juce16SynthesiserVoice20isPlayingButReleasedEv(ptr noundef nonnull align 8 dereferenceable(344) %15) #4
  br i1 %24, label %42, label %25

25:                                               ; preds = %23
  %26 = call noundef i32 @_ZNK4juce16SynthesiserVoice23getCurrentlyPlayingNoteEv(ptr noundef nonnull align 8 dereferenceable(344) %15) #4
  %27 = icmp eq ptr %.076149, null
  br i1 %27, label %31, label %28

28:                                               ; preds = %25
  %29 = call noundef i32 @_ZNK4juce16SynthesiserVoice23getCurrentlyPlayingNoteEv(ptr noundef nonnull align 8 dereferenceable(344) %.076149) #4
  %30 = icmp slt i32 %26, %29
  br i1 %30, label %31, label %36

31:                                               ; preds = %28, %25
  br label %36

32:                                               ; preds = %.lr.ph
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %64

34:                                               ; preds = %21
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  br label %64

36:                                               ; preds = %31, %28
  %.177 = phi ptr [ %15, %31 ], [ %.076149, %28 ]
  %37 = icmp eq ptr %.081148, null
  br i1 %37, label %41, label %38

38:                                               ; preds = %36
  %39 = call noundef i32 @_ZNK4juce16SynthesiserVoice23getCurrentlyPlayingNoteEv(ptr noundef nonnull align 8 dereferenceable(344) %.081148) #4
  %40 = icmp sgt i32 %26, %39
  br i1 %40, label %41, label %42

41:                                               ; preds = %38, %36
  br label %42

42:                                               ; preds = %38, %41, %23
  %.283 = phi ptr [ %.081148, %23 ], [ %15, %41 ], [ %.081148, %38 ]
  %.278 = phi ptr [ %.076149, %23 ], [ %.177, %41 ], [ %.177, %38 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  br label %43

43:                                               ; preds = %42, %20
  %.384 = phi ptr [ %.283, %42 ], [ %.081148, %20 ]
  %.379 = phi ptr [ %.278, %42 ], [ %.076149, %20 ]
  %44 = add nuw nsw i32 %.099147, 1
  %45 = call noundef i32 @_ZNK4juce10OwnedArrayINS_16SynthesiserVoiceENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %7) #4
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %.lr.ph, label %._crit_edge, !llvm.loop !8

47:                                               ; preds = %.lr.ph154
  %48 = add nuw nsw i32 %.096152, 1
  %exitcond.not = icmp eq i32 %48, %12
  br i1 %exitcond.not, label %.preheader136, label %.lr.ph154, !llvm.loop !10

.preheader136:                                    ; preds = %47
  br i1 %.not103151, label %.lr.ph157, label %._crit_edge164

.lr.ph154:                                        ; preds = %._crit_edge, %47
  %.096152 = phi i32 [ %48, %47 ], [ 0, %._crit_edge ]
  %49 = call noundef ptr @_ZNK4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %.096152)
  %50 = call noundef i32 @_ZNK4juce16SynthesiserVoice23getCurrentlyPlayingNoteEv(ptr noundef nonnull align 8 dereferenceable(344) %49) #4
  %.not = icmp eq i32 %50, %3
  br i1 %.not, label %.thread, label %47

.preheader134:                                    ; preds = %54
  br i1 %.not103151, label %.lr.ph160, label %._crit_edge164

.lr.ph157:                                        ; preds = %.preheader136, %54
  %.085156 = phi i32 [ %55, %54 ], [ 0, %.preheader136 ]
  %51 = call noundef ptr @_ZNK4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %.085156)
  %.not104 = icmp eq ptr %51, %.076.lcssa
  %.not105 = icmp eq ptr %51, %spec.store.select
  %or.cond = select i1 %.not104, i1 true, i1 %.not105
  br i1 %or.cond, label %54, label %52

52:                                               ; preds = %.lr.ph157
  %53 = call noundef zeroext i1 @_ZNK4juce16SynthesiserVoice20isPlayingButReleasedEv(ptr noundef nonnull align 8 dereferenceable(344) %51) #4
  br i1 %53, label %.thread, label %54

54:                                               ; preds = %.lr.ph157, %52
  %55 = add nuw nsw i32 %.085156, 1
  %exitcond175.not = icmp eq i32 %55, %12
  br i1 %exitcond175.not, label %.preheader134, label %.lr.ph157, !llvm.loop !11

.preheader:                                       ; preds = %59
  br i1 %.not103151, label %.lr.ph163, label %._crit_edge164

.lr.ph160:                                        ; preds = %.preheader134, %59
  %.080159 = phi i32 [ %60, %59 ], [ 0, %.preheader134 ]
  %56 = call noundef ptr @_ZNK4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %.080159)
  %.not107 = icmp eq ptr %56, %.076.lcssa
  %.not108 = icmp eq ptr %56, %spec.store.select
  %or.cond116 = select i1 %.not107, i1 true, i1 %.not108
  br i1 %or.cond116, label %59, label %57

57:                                               ; preds = %.lr.ph160
  %58 = call noundef zeroext i1 @_ZNK4juce16SynthesiserVoice9isKeyDownEv(ptr noundef nonnull align 8 dereferenceable(344) %56) #4
  br i1 %58, label %59, label %.thread

59:                                               ; preds = %.lr.ph160, %57
  %60 = add nuw nsw i32 %.080159, 1
  %exitcond176.not = icmp eq i32 %60, %12
  br i1 %exitcond176.not, label %.preheader, label %.lr.ph160, !llvm.loop !12

61:                                               ; preds = %.lr.ph163
  %62 = add nuw nsw i32 %.075162, 1
  %exitcond177.not = icmp eq i32 %62, %12
  br i1 %exitcond177.not, label %._crit_edge164, label %.lr.ph163, !llvm.loop !13

.lr.ph163:                                        ; preds = %.preheader, %61
  %.075162 = phi i32 [ %62, %61 ], [ 0, %.preheader ]
  %63 = call noundef ptr @_ZNK4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %.075162)
  %.not110 = icmp eq ptr %63, %.076.lcssa
  %.not111 = icmp eq ptr %63, %spec.store.select
  %or.cond117 = select i1 %.not110, i1 true, i1 %.not111
  br i1 %or.cond117, label %61, label %.thread

._crit_edge164:                                   ; preds = %61, %._crit_edge, %.preheader136, %.preheader134, %.preheader
  %.not113 = icmp eq ptr %spec.store.select, null
  %.076.spec.store.select = select i1 %.not113, ptr %.076.lcssa, ptr %spec.store.select
  br label %.thread

.thread:                                          ; preds = %.lr.ph154, %52, %57, %.lr.ph163, %._crit_edge164
  %.12 = phi ptr [ %.076.spec.store.select, %._crit_edge164 ], [ %63, %.lr.ph163 ], [ %56, %57 ], [ %51, %52 ], [ %49, %.lr.ph154 ]
  call void @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  ret ptr %.12

64:                                               ; preds = %32, %34, %13
  %.pn.pn = phi { ptr, i32 } [ %14, %13 ], [ %35, %34 ], [ %33, %32 ]
  call void @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4juce5ArrayIPNS_16SynthesiserVoiceENS_20DummyCriticalSectionELi0EE9addSortedINS_14VoiceAgeSorterEEEiRT_S2_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) local_unnamed_addr #3 align 2

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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}
!11 = distinct !{!11, !9}
!12 = distinct !{!12, !9}
!13 = distinct !{!13, !9}


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