; 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"

%"struct.juce::AudioProcessor::BusesLayout" = type { %"class.juce::Array.51", %"class.juce::Array.51" }
%"class.juce::Array.51" = type { %"class.juce::ArrayAllocationBase.52", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.52" = type <{ %"class.juce::HeapBlock.53", i32, [4 x i8] }>
%"class.juce::HeapBlock.53" = type { ptr }

; 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256), i1 noundef zeroext) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE3addERKS1_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(40)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce14AudioProcessor6getBusEbi(ptr noundef nonnull align 8 dereferenceable(256), i1 noundef zeroext, i32 noundef) #1 align 2

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce15AudioChannelSeteqERKS0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce14AudioProcessor17getNextBestLayoutERKNS0_11BusesLayoutERS1_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %8 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i8, align 1
  %25 = alloca ptr, align 8
  %26 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %27 = alloca i32, align 4
  %28 = alloca i8, align 1
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %4, align 8
  br label %34

34:                                               ; preds = %3
  br label %35

35:                                               ; preds = %34
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %33, ptr noundef nonnull align 8 dereferenceable(48) %36)
  br i1 %37, label %38, label %42

38:                                               ; preds = %35
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %40, ptr noundef nonnull align 8 dereferenceable(48) %39)
  br label %297

42:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #7
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %43)
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #7
  invoke void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %44 unwind label %50

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #7
  invoke void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %45 unwind label %54

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %290, %45
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = icmp slt i32 %47, 2
  br i1 %48, label %58, label %49

49:                                               ; preds = %46
  store i32 4, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %293

50:                                               ; preds = %42
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %9, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %10, align 4
  br label %304

54:                                               ; preds = %44
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %9, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %10, align 4
  br label %303

58:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = icmp sgt i32 %59, 0
  %61 = zext i1 %60 to i8
  store i8 %61, ptr %14, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %62 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %66

64:                                               ; preds = %58
  %65 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %8, i32 0, i32 0
  br label %68

66:                                               ; preds = %58
  %67 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %8, i32 0, i32 1
  br label %68

68:                                               ; preds = %66, %64
  %69 = phi ptr [ %65, %64 ], [ %67, %66 ]
  store ptr %69, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %70 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %11, i32 0, i32 0
  br label %76

74:                                               ; preds = %68
  %75 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %11, i32 0, i32 1
  br label %76

76:                                               ; preds = %74, %72
  %77 = phi ptr [ %73, %72 ], [ %75, %74 ]
  store ptr %77, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %78 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %79 = trunc i8 %78 to i1
  br i1 %79, label %80, label %83

80:                                               ; preds = %76
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %81, i32 0, i32 0
  br label %86

83:                                               ; preds = %76
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %84, i32 0, i32 1
  br label %86

86:                                               ; preds = %83, %80
  %87 = phi ptr [ %82, %80 ], [ %85, %83 ]
  store ptr %87, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %88 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %92

90:                                               ; preds = %86
  %91 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %7, i32 0, i32 0
  br label %94

92:                                               ; preds = %86
  %93 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %7, i32 0, i32 1
  br label %94

94:                                               ; preds = %92, %90
  %95 = phi ptr [ %91, %90 ], [ %93, %92 ]
  store ptr %95, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %282, %94
  %97 = load i32, ptr %19, align 4, !tbaa !9
  %98 = load ptr, ptr %17, align 8, !tbaa !5
  %99 = call noundef i32 @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %98) #7
  %100 = icmp slt i32 %97, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %96
  store i32 7, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %289

102:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  %104 = load i32, ptr %19, align 4, !tbaa !9
  %105 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %103, i32 noundef %104) #7
  store ptr %105, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = load i32, ptr %19, align 4, !tbaa !9
  %108 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %106, i32 noundef %107) #7
  store ptr %108, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %109 = load ptr, ptr %18, align 8, !tbaa !5
  %110 = load i32, ptr %19, align 4, !tbaa !9
  %111 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %109, i32 noundef %110) #7
  store ptr %111, ptr %22, align 8, !tbaa !5
  %112 = load ptr, ptr %22, align 8, !tbaa !5
  %113 = load ptr, ptr %21, align 8, !tbaa !5
  %114 = call noundef zeroext i1 @_ZNK4juce15AudioChannelSeteqERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %112, ptr noundef nonnull align 8 dereferenceable(40) %113) #7
  br i1 %114, label %115, label %116

115:                                              ; preds = %102
  store i32 9, ptr %13, align 4
  br label %279

116:                                              ; preds = %102
  %117 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %118 unwind label %131

118:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %119 = load ptr, ptr %15, align 8, !tbaa !5
  %120 = load i32, ptr %19, align 4, !tbaa !9
  %121 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %119, i32 noundef %120) #7
  store ptr %121, ptr %23, align 8, !tbaa !5
  %122 = load ptr, ptr %21, align 8, !tbaa !5
  %123 = load ptr, ptr %23, align 8, !tbaa !5
  %124 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %123, ptr noundef nonnull align 8 dereferenceable(40) %122)
          to label %125 unwind label %135

125:                                              ; preds = %118
  %126 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %33, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %127 unwind label %135

127:                                              ; preds = %125
  br i1 %126, label %128, label %139

128:                                              ; preds = %127
  %129 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %130 unwind label %135

130:                                              ; preds = %128
  store i32 9, ptr %13, align 4
  br label %278

131:                                              ; preds = %116
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %9, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %10, align 4
  br label %288

135:                                              ; preds = %128, %125, %118
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %9, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %10, align 4
  br label %287

139:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  %140 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %141 = trunc i8 %140 to i1
  %142 = xor i1 %141, true
  %143 = zext i1 %142 to i8
  store i8 %143, ptr %24, align 1, !tbaa !11
  %144 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %145 = trunc i8 %144 to i1
  %146 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %33, i1 noundef zeroext %145) #7
  %147 = load i32, ptr %19, align 4, !tbaa !9
  %148 = icmp sgt i32 %146, %147
  br i1 %148, label %149, label %191

149:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %150 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %151 = trunc i8 %150 to i1
  br i1 %151, label %152, label %154

152:                                              ; preds = %149
  %153 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %8, i32 0, i32 0
  br label %156

154:                                              ; preds = %149
  %155 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %8, i32 0, i32 1
  br label %156

156:                                              ; preds = %154, %152
  %157 = phi ptr [ %153, %152 ], [ %155, %154 ]
  %158 = load i32, ptr %19, align 4, !tbaa !9
  %159 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %157, i32 noundef %158) #7
  store ptr %159, ptr %25, align 8, !tbaa !5
  %160 = load ptr, ptr %21, align 8, !tbaa !5
  %161 = load ptr, ptr %25, align 8, !tbaa !5
  %162 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %161, ptr noundef nonnull align 8 dereferenceable(40) %160)
          to label %163 unwind label %169

163:                                              ; preds = %156
  %164 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %33, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %165 unwind label %169

165:                                              ; preds = %163
  br i1 %164, label %166, label %173

166:                                              ; preds = %165
  %167 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %168 unwind label %169

168:                                              ; preds = %166
  store i32 9, ptr %13, align 4
  br label %188

169:                                              ; preds = %184, %181, %173, %166, %163, %156
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %9, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %286

173:                                              ; preds = %165
  %174 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %175 = trunc i8 %174 to i1
  %176 = load i32, ptr %19, align 4, !tbaa !9
  %177 = call noundef ptr @_ZNK4juce14AudioProcessor6getBusEbi(ptr noundef nonnull align 8 dereferenceable(256) %33, i1 noundef zeroext %175, i32 noundef %176) #7
  %178 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce14AudioProcessor3Bus16getDefaultLayoutEv(ptr noundef nonnull align 8 dereferenceable(144) %177) #7
  %179 = load ptr, ptr %25, align 8, !tbaa !5
  %180 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %179, ptr noundef nonnull align 8 dereferenceable(40) %178)
          to label %181 unwind label %169

181:                                              ; preds = %173
  %182 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %33, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %183 unwind label %169

183:                                              ; preds = %181
  br i1 %182, label %184, label %187

184:                                              ; preds = %183
  %185 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %186 unwind label %169

186:                                              ; preds = %184
  store i32 9, ptr %13, align 4
  br label %188

187:                                              ; preds = %183
  store i32 0, ptr %13, align 4
  br label %188

188:                                              ; preds = %187, %186, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  %189 = load i32, ptr %13, align 4
  switch i32 %189, label %277 [
    i32 0, label %190
  ]

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %190, %139
  call void @llvm.lifetime.start.p0(i64 48, ptr %26) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %227, %191
  %193 = load i32, ptr %27, align 4, !tbaa !9
  %194 = icmp slt i32 %193, 2
  br i1 %194, label %196, label %195

195:                                              ; preds = %192
  store i32 10, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %230

196:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #7
  %197 = load i32, ptr %27, align 4, !tbaa !9
  %198 = icmp eq i32 %197, 0
  %199 = zext i1 %198 to i8
  store i8 %199, ptr %28, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %200 = load i8, ptr %28, align 1, !tbaa !11, !range !13, !noundef !14
  %201 = trunc i8 %200 to i1
  %202 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %33, i1 noundef zeroext %201) #7
  store i32 %202, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %219, %196
  %204 = load i32, ptr %30, align 4, !tbaa !9
  %205 = load i32, ptr %29, align 4, !tbaa !9
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %208, label %207

207:                                              ; preds = %203
  store i32 13, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %226

208:                                              ; preds = %203
  %209 = load i8, ptr %28, align 1, !tbaa !11, !range !13, !noundef !14
  %210 = trunc i8 %209 to i1
  br i1 %210, label %211, label %213

211:                                              ; preds = %208
  %212 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %26, i32 0, i32 0
  br label %215

213:                                              ; preds = %208
  %214 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %26, i32 0, i32 1
  br label %215

215:                                              ; preds = %213, %211
  %216 = phi ptr [ %212, %211 ], [ %214, %213 ]
  %217 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZN4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE3addERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %216, ptr noundef nonnull align 8 dereferenceable(40) %217)
          to label %218 unwind label %222

218:                                              ; preds = %215
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr %30, align 4, !tbaa !9
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %30, align 4, !tbaa !9
  br label %203, !llvm.loop !15

222:                                              ; preds = %215
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %9, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %285

226:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %27, align 4, !tbaa !9
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %27, align 4, !tbaa !9
  br label %192, !llvm.loop !17

230:                                              ; preds = %195
  %231 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %33, ptr noundef nonnull align 8 dereferenceable(48) %26)
          to label %232 unwind label %236

232:                                              ; preds = %230
  br i1 %231, label %233, label %240

233:                                              ; preds = %232
  %234 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %26)
          to label %235 unwind label %236

235:                                              ; preds = %233
  store i32 9, ptr %13, align 4
  br label %276

236:                                              ; preds = %233, %230
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %9, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %10, align 4
  br label %285

240:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %241 = load ptr, ptr %20, align 8, !tbaa !5
  %242 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %241) #7
  %243 = load ptr, ptr %21, align 8, !tbaa !5
  %244 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %243) #7
  %245 = sub nsw i32 %242, %244
  %246 = call i32 @llvm.abs.i32(i32 %245, i1 true)
  store i32 %246, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %247 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %248 = trunc i8 %247 to i1
  %249 = load i32, ptr %19, align 4, !tbaa !9
  %250 = call noundef ptr @_ZNK4juce14AudioProcessor6getBusEbi(ptr noundef nonnull align 8 dereferenceable(256) %33, i1 noundef zeroext %248, i32 noundef %249) #7
  %251 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce14AudioProcessor3Bus16getDefaultLayoutEv(ptr noundef nonnull align 8 dereferenceable(144) %250) #7
  store ptr %251, ptr %32, align 8, !tbaa !5
  %252 = load ptr, ptr %32, align 8, !tbaa !5
  %253 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %252) #7
  %254 = load ptr, ptr %21, align 8, !tbaa !5
  %255 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %254) #7
  %256 = sub nsw i32 %253, %255
  %257 = call i32 @llvm.abs.i32(i32 %256, i1 true)
  %258 = load i32, ptr %31, align 4, !tbaa !9
  %259 = icmp slt i32 %257, %258
  br i1 %259, label %260, label %275

260:                                              ; preds = %240
  %261 = load ptr, ptr %32, align 8, !tbaa !5
  %262 = load ptr, ptr %23, align 8, !tbaa !5
  %263 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %262, ptr noundef nonnull align 8 dereferenceable(40) %261)
          to label %264 unwind label %270

264:                                              ; preds = %260
  %265 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %33, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %266 unwind label %270

266:                                              ; preds = %264
  br i1 %265, label %267, label %274

267:                                              ; preds = %266
  %268 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %269 unwind label %270

269:                                              ; preds = %267
  br label %274

270:                                              ; preds = %267, %264, %260
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %9, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %285

274:                                              ; preds = %269, %266
  br label %275

275:                                              ; preds = %274, %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  store i32 0, ptr %13, align 4
  br label %276

276:                                              ; preds = %275, %235
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %26) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #7
  br label %277

277:                                              ; preds = %276, %188
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  br label %278

278:                                              ; preds = %277, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %279

279:                                              ; preds = %278, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %280 = load i32, ptr %13, align 4
  switch i32 %280, label %310 [
    i32 0, label %281
    i32 9, label %282
  ]

281:                                              ; preds = %279
  br label %282

282:                                              ; preds = %281, %279
  %283 = load i32, ptr %19, align 4, !tbaa !9
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %19, align 4, !tbaa !9
  br label %96, !llvm.loop !18

285:                                              ; preds = %270, %236, %222
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %26) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #7
  br label %286

286:                                              ; preds = %285, %169
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  br label %287

287:                                              ; preds = %286, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %288

288:                                              ; preds = %287, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %302

289:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  br label %290

290:                                              ; preds = %289
  %291 = load i32, ptr %12, align 4, !tbaa !9
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %12, align 4, !tbaa !9
  br label %46, !llvm.loop !19

293:                                              ; preds = %49
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  %295 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %294, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %296 unwind label %298

296:                                              ; preds = %293
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #7
  br label %297

297:                                              ; preds = %296, %38
  ret void

298:                                              ; preds = %293
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %9, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %10, align 4
  br label %302

302:                                              ; preds = %298, %288
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  br label %303

303:                                              ; preds = %302, %54
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #7
  br label %304

304:                                              ; preds = %303, %50
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #7
  br label %305

305:                                              ; preds = %304
  %306 = load ptr, ptr %9, align 8
  %307 = load i32, ptr %10, align 4
  %308 = insertvalue { ptr, i32 } poison, ptr %306, 0
  %309 = insertvalue { ptr, i32 } %308, i32 %307, 1
  resume { ptr, i32 } %309

310:                                              ; preds = %279
  unreachable
}

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

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

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

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #6

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 = { inlinehint 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 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


; 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"

%"struct.juce::AudioProcessor::BusesLayout" = type { %"class.juce::Array.51", %"class.juce::Array.51" }
%"class.juce::Array.51" = type { %"class.juce::ArrayAllocationBase.52", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.52" = type <{ %"class.juce::HeapBlock.53", i32, [4 x i8] }>
%"class.juce::HeapBlock.53" = 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256), i1 noundef zeroext) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE3addERKS1_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce14AudioProcessor17getNextBestLayoutERKNS0_11BusesLayoutERS1_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %5 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %6 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %7 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %8 = tail call noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
  br i1 %8, label %9, label %11

9:                                                ; preds = %3
  %10 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %1)
  br label %159

11:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(48) %2)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #7
  invoke void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %12 unwind label %17

12:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #7
  invoke void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %.preheader unwind label %19

.preheader:                                       ; preds = %12
  %13 = getelementptr inbounds i8, ptr %5, i64 24
  %.idx74.sroa.sel.1 = getelementptr inbounds i8, ptr %7, i64 24
  %.idx.sroa.sel.idx.sroa.sel = getelementptr inbounds i8, ptr %6, i64 24
  %14 = getelementptr inbounds i8, ptr %1, i64 24
  %.idx73.sroa.sel.idx.sroa.sel = getelementptr inbounds i8, ptr %4, i64 24
  %15 = call noundef i32 @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %14) #7
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph93, label %._crit_edge94

17:                                               ; preds = %11
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %164

19:                                               ; preds = %12
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %163

._crit_edge94:                                    ; preds = %.critedge, %.preheader
  %21 = call noundef i32 @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %1) #7
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph93.1, label %._crit_edge94.1

.lr.ph93.1:                                       ; preds = %._crit_edge94, %.critedge.1
  %.07190.1 = phi i32 [ %87, %.critedge.1 ], [ 0, %._crit_edge94 ]
  %23 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %6, i32 noundef %.07190.1) #7
  %24 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %1, i32 noundef %.07190.1) #7
  %25 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %4, i32 noundef %.07190.1) #7
  %26 = call noundef zeroext i1 @_ZNK4juce15AudioChannelSeteqERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %25, ptr noundef nonnull align 8 dereferenceable(40) %24) #7
  br i1 %26, label %.critedge.1, label %27

27:                                               ; preds = %.lr.ph93.1
  %28 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %29 unwind label %.loopexit.split-lp107

29:                                               ; preds = %27
  %30 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %.07190.1) #7
  %31 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %32 unwind label %.loopexit.split-lp111

32:                                               ; preds = %29
  %33 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %34 unwind label %.loopexit.split-lp111

34:                                               ; preds = %32
  br i1 %33, label %85, label %35

35:                                               ; preds = %34
  %36 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %0, i1 noundef zeroext false) #7
  %37 = icmp sgt i32 %36, %.07190.1
  br i1 %37, label %38, label %51

38:                                               ; preds = %35
  %39 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %13, i32 noundef %.07190.1) #7
  %40 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %39, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %41 unwind label %.loopexit.split-lp116

41:                                               ; preds = %38
  %42 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %43 unwind label %.loopexit.split-lp116

43:                                               ; preds = %41
  br i1 %42, label %.invoke.1, label %44

44:                                               ; preds = %43
  %45 = call noundef ptr @_ZNK4juce14AudioProcessor6getBusEbi(ptr noundef nonnull align 8 dereferenceable(256) %0, i1 noundef zeroext false, i32 noundef %.07190.1) #7
  %46 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce14AudioProcessor3Bus16getDefaultLayoutEv(ptr noundef nonnull align 8 dereferenceable(144) %45) #7
  %47 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %39, ptr noundef nonnull align 8 dereferenceable(40) %46)
          to label %48 unwind label %.loopexit.split-lp116

48:                                               ; preds = %44
  %49 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %50 unwind label %.loopexit.split-lp116

50:                                               ; preds = %48
  br i1 %49, label %.invoke.1, label %51

51:                                               ; preds = %50, %35
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  %52 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %0, i1 noundef zeroext true) #7
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %.lr.ph.1100, label %._crit_edge.1101

.lr.ph.1100:                                      ; preds = %51, %54
  %.06788.199 = phi i32 [ %55, %54 ], [ 0, %51 ]
  invoke void @_ZN4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE3addERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %7, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %54 unwind label %.loopexit.loopexit.split-lp

54:                                               ; preds = %.lr.ph.1100
  %55 = add nuw nsw i32 %.06788.199, 1
  %exitcond.not.1 = icmp eq i32 %55, %52
  br i1 %exitcond.not.1, label %._crit_edge.1101, label %.lr.ph.1100, !llvm.loop !5

._crit_edge.1101:                                 ; preds = %54, %51
  %56 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %0, i1 noundef zeroext false) #7
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph.1.1, label %._crit_edge.1.1

.lr.ph.1.1:                                       ; preds = %._crit_edge.1101, %58
  %.06788.1.1 = phi i32 [ %59, %58 ], [ 0, %._crit_edge.1101 ]
  invoke void @_ZN4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE3addERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %.idx74.sroa.sel.1, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %58 unwind label %.loopexit.split-lp.loopexit.split-lp

58:                                               ; preds = %.lr.ph.1.1
  %59 = add nuw nsw i32 %.06788.1.1, 1
  %exitcond.1.not.1 = icmp eq i32 %59, %56
  br i1 %exitcond.1.not.1, label %._crit_edge.1.1, label %.lr.ph.1.1, !llvm.loop !5

._crit_edge.1.1:                                  ; preds = %58, %._crit_edge.1101
  %60 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %61 unwind label %.loopexit.split-lp121

61:                                               ; preds = %._crit_edge.1.1
  br i1 %60, label %81, label %62

62:                                               ; preds = %61
  %63 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %23) #7
  %64 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %24) #7
  %65 = sub nsw i32 %63, %64
  %66 = call i32 @llvm.abs.i32(i32 %65, i1 true)
  %67 = call noundef ptr @_ZNK4juce14AudioProcessor6getBusEbi(ptr noundef nonnull align 8 dereferenceable(256) %0, i1 noundef zeroext true, i32 noundef %.07190.1) #7
  %68 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce14AudioProcessor3Bus16getDefaultLayoutEv(ptr noundef nonnull align 8 dereferenceable(144) %67) #7
  %69 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %68) #7
  %70 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %24) #7
  %71 = sub nsw i32 %69, %70
  %72 = call i32 @llvm.abs.i32(i32 %71, i1 true)
  %73 = icmp ult i32 %72, %66
  br i1 %73, label %74, label %83

74:                                               ; preds = %62
  %75 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef nonnull align 8 dereferenceable(40) %68)
          to label %76 unwind label %.loopexit.split-lp126

76:                                               ; preds = %74
  %77 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %78 unwind label %.loopexit.split-lp126

78:                                               ; preds = %76
  br i1 %77, label %79, label %83

79:                                               ; preds = %78
  %80 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %83 unwind label %.loopexit.split-lp126

81:                                               ; preds = %61
  %82 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %83 unwind label %.loopexit.split-lp121

83:                                               ; preds = %81, %79, %78, %62
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #7
  br label %.critedge.1

.invoke.1:                                        ; preds = %50, %43
  %84 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %.critedge.1 unwind label %.loopexit.split-lp116

85:                                               ; preds = %34
  %86 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %.critedge.1 unwind label %.loopexit.split-lp111

.critedge.1:                                      ; preds = %85, %.invoke.1, %83, %.lr.ph93.1
  %87 = add nuw nsw i32 %.07190.1, 1
  %88 = call noundef i32 @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %1) #7
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %.lr.ph93.1, label %._crit_edge94.1, !llvm.loop !7

._crit_edge94.1:                                  ; preds = %.critedge.1, %._crit_edge94
  %90 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %158 unwind label %160

.lr.ph93:                                         ; preds = %.preheader, %.critedge
  %.07190 = phi i32 [ %155, %.critedge ], [ 0, %.preheader ]
  %91 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %.idx.sroa.sel.idx.sroa.sel, i32 noundef %.07190) #7
  %92 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %14, i32 noundef %.07190) #7
  %93 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %.idx73.sroa.sel.idx.sroa.sel, i32 noundef %.07190) #7
  %94 = call noundef zeroext i1 @_ZNK4juce15AudioChannelSeteqERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %93, ptr noundef nonnull align 8 dereferenceable(40) %92) #7
  br i1 %94, label %.critedge, label %95

95:                                               ; preds = %.lr.ph93
  %96 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %97 unwind label %.loopexit106

97:                                               ; preds = %95
  %98 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %13, i32 noundef %.07190) #7
  %99 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %98, ptr noundef nonnull align 8 dereferenceable(40) %92)
          to label %100 unwind label %.loopexit110

100:                                              ; preds = %97
  %101 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %102 unwind label %.loopexit110

102:                                              ; preds = %100
  br i1 %101, label %103, label %105

103:                                              ; preds = %102
  %104 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %.critedge unwind label %.loopexit110

.loopexit106:                                     ; preds = %95
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %162

.loopexit.split-lp107:                            ; preds = %27
  %lpad.loopexit.split-lp108 = landingpad { ptr, i32 }
          cleanup
  br label %162

.loopexit110:                                     ; preds = %97, %100, %103
  %lpad.loopexit112 = landingpad { ptr, i32 }
          cleanup
  br label %162

.loopexit.split-lp111:                            ; preds = %29, %32, %85
  %lpad.loopexit.split-lp113 = landingpad { ptr, i32 }
          cleanup
  br label %162

105:                                              ; preds = %102
  %106 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %0, i1 noundef zeroext true) #7
  %107 = icmp sgt i32 %106, %.07190
  br i1 %107, label %108, label %122

108:                                              ; preds = %105
  %109 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %.07190) #7
  %110 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %109, ptr noundef nonnull align 8 dereferenceable(40) %92)
          to label %111 unwind label %.loopexit115

111:                                              ; preds = %108
  %112 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %113 unwind label %.loopexit115

113:                                              ; preds = %111
  br i1 %112, label %.invoke, label %114

.loopexit115:                                     ; preds = %108, %111, %114, %118, %.invoke
  %lpad.loopexit117 = landingpad { ptr, i32 }
          cleanup
  br label %162

.loopexit.split-lp116:                            ; preds = %38, %41, %44, %48, %.invoke.1
  %lpad.loopexit.split-lp118 = landingpad { ptr, i32 }
          cleanup
  br label %162

114:                                              ; preds = %113
  %115 = call noundef ptr @_ZNK4juce14AudioProcessor6getBusEbi(ptr noundef nonnull align 8 dereferenceable(256) %0, i1 noundef zeroext true, i32 noundef %.07190) #7
  %116 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce14AudioProcessor3Bus16getDefaultLayoutEv(ptr noundef nonnull align 8 dereferenceable(144) %115) #7
  %117 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %109, ptr noundef nonnull align 8 dereferenceable(40) %116)
          to label %118 unwind label %.loopexit115

118:                                              ; preds = %114
  %119 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %120 unwind label %.loopexit115

120:                                              ; preds = %118
  br i1 %119, label %.invoke, label %122

.invoke:                                          ; preds = %113, %120
  %121 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %.critedge unwind label %.loopexit115

122:                                              ; preds = %120, %105
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  %123 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %0, i1 noundef zeroext true) #7
  %124 = icmp sgt i32 %123, 0
  br i1 %124, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %130, %122
  %125 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %0, i1 noundef zeroext false) #7
  %126 = icmp sgt i32 %125, 0
  br i1 %126, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %._crit_edge, %127
  %.06788.1 = phi i32 [ %128, %127 ], [ 0, %._crit_edge ]
  invoke void @_ZN4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE3addERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %.idx74.sroa.sel.1, ptr noundef nonnull align 8 dereferenceable(40) %92)
          to label %127 unwind label %.loopexit.split-lp.loopexit

127:                                              ; preds = %.lr.ph.1
  %128 = add nuw nsw i32 %.06788.1, 1
  %exitcond.1.not = icmp eq i32 %128, %125
  br i1 %exitcond.1.not, label %._crit_edge.1, label %.lr.ph.1, !llvm.loop !5

._crit_edge.1:                                    ; preds = %127, %._crit_edge
  %129 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %132 unwind label %.loopexit120

.lr.ph:                                           ; preds = %122, %130
  %.06788 = phi i32 [ %131, %130 ], [ 0, %122 ]
  invoke void @_ZN4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE3addERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %7, ptr noundef nonnull align 8 dereferenceable(40) %92)
          to label %130 unwind label %.loopexit.loopexit

130:                                              ; preds = %.lr.ph
  %131 = add nuw nsw i32 %.06788, 1
  %exitcond.not = icmp eq i32 %131, %123
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !5

.loopexit.loopexit:                               ; preds = %.lr.ph
  %lpad.loopexit104 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.loopexit.split-lp:                      ; preds = %.lr.ph.1100
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.split-lp.loopexit:                      ; preds = %.lr.ph.1
  %lpad.loopexit102 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.split-lp.loopexit.split-lp:             ; preds = %.lr.ph.1.1
  %lpad.loopexit.split-lp103 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

132:                                              ; preds = %._crit_edge.1
  br i1 %129, label %133, label %135

133:                                              ; preds = %132
  %134 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %154 unwind label %.loopexit120

.loopexit120:                                     ; preds = %._crit_edge.1, %133
  %lpad.loopexit122 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.split-lp121:                            ; preds = %._crit_edge.1.1, %81
  %lpad.loopexit.split-lp123 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

135:                                              ; preds = %132
  %136 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %91) #7
  %137 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %92) #7
  %138 = sub nsw i32 %136, %137
  %139 = call i32 @llvm.abs.i32(i32 %138, i1 true)
  %140 = call noundef ptr @_ZNK4juce14AudioProcessor6getBusEbi(ptr noundef nonnull align 8 dereferenceable(256) %0, i1 noundef zeroext false, i32 noundef %.07190) #7
  %141 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce14AudioProcessor3Bus16getDefaultLayoutEv(ptr noundef nonnull align 8 dereferenceable(144) %140) #7
  %142 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %141) #7
  %143 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %92) #7
  %144 = sub nsw i32 %142, %143
  %145 = call i32 @llvm.abs.i32(i32 %144, i1 true)
  %146 = icmp ult i32 %145, %139
  br i1 %146, label %147, label %154

147:                                              ; preds = %135
  %148 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %98, ptr noundef nonnull align 8 dereferenceable(40) %141)
          to label %149 unwind label %.loopexit125

149:                                              ; preds = %147
  %150 = invoke noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %151 unwind label %.loopexit125

151:                                              ; preds = %149
  br i1 %150, label %152, label %154

152:                                              ; preds = %151
  %153 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %154 unwind label %.loopexit125

.loopexit125:                                     ; preds = %147, %149, %152
  %lpad.loopexit127 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.split-lp126:                            ; preds = %74, %76, %79
  %lpad.loopexit.split-lp128 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

154:                                              ; preds = %135, %152, %151, %133
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #7
  br label %.critedge

.critedge:                                        ; preds = %.invoke, %103, %154, %.lr.ph93
  %155 = add nuw nsw i32 %.07190, 1
  %156 = call noundef i32 @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %14) #7
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %.lr.ph93, label %._crit_edge94, !llvm.loop !7

.loopexit:                                        ; preds = %.loopexit125, %.loopexit.split-lp126, %.loopexit120, %.loopexit.split-lp121, %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.loopexit, %.loopexit.loopexit.split-lp
  %.pn = phi { ptr, i32 } [ %lpad.loopexit104, %.loopexit.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.loopexit.split-lp ], [ %lpad.loopexit102, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp103, %.loopexit.split-lp.loopexit.split-lp ], [ %lpad.loopexit122, %.loopexit120 ], [ %lpad.loopexit.split-lp123, %.loopexit.split-lp121 ], [ %lpad.loopexit127, %.loopexit125 ], [ %lpad.loopexit.split-lp128, %.loopexit.split-lp126 ]
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #7
  br label %162

158:                                              ; preds = %._crit_edge94.1
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  br label %159

159:                                              ; preds = %158, %9
  ret void

160:                                              ; preds = %._crit_edge94.1
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %162

162:                                              ; preds = %.loopexit115, %.loopexit.split-lp116, %.loopexit110, %.loopexit.split-lp111, %.loopexit106, %.loopexit.split-lp107, %.loopexit, %160
  %.pn77.pn.pn = phi { ptr, i32 } [ %161, %160 ], [ %.pn, %.loopexit ], [ %lpad.loopexit, %.loopexit106 ], [ %lpad.loopexit.split-lp108, %.loopexit.split-lp107 ], [ %lpad.loopexit112, %.loopexit110 ], [ %lpad.loopexit.split-lp113, %.loopexit.split-lp111 ], [ %lpad.loopexit117, %.loopexit115 ], [ %lpad.loopexit.split-lp118, %.loopexit.split-lp116 ]
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  br label %163

163:                                              ; preds = %162, %19
  %.pn77.pn.pn.pn = phi { ptr, i32 } [ %.pn77.pn.pn, %162 ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #7
  br label %164

164:                                              ; preds = %163, %17
  %.pn77.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn77.pn.pn.pn, %163 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #7
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn77.pn.pn.pn.pn
}

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

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

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

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #6

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 = { inlinehint 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 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass