; 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 }
%"class.juce::AudioChannelSet" = type { %"class.juce::BigInteger" }
%"class.juce::BigInteger" = type <{ %"class.juce::HeapBlock.50", [4 x i32], i64, i32, i8, [3 x i8] }>
%"class.juce::HeapBlock.50" = type { ptr }
%"struct.juce::AudioProcessor::InOutChannelPair" = type { i16, i16 }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce14AudioProcessor14getBusesLayoutEv(ptr dead_on_unwind noalias writable sret(%"struct.juce::AudioProcessor::BusesLayout") align 8, ptr noundef nonnull align 8 dereferenceable(256)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 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 #4 align 2

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

declare void @_ZN4juce15AudioChannelSet8disabledEv(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce15AudioChannelSetC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 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) #1 align 2

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

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

declare void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8, i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind noalias writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2, ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce14AudioProcessor23getNextBestLayoutInListERKNS0_11BusesLayoutERKNS_5ArrayINS0_16InOutChannelPairENS_20DummyCriticalSectionELi0EEE(ptr dead_on_unwind noalias writable sret(%"struct.juce::AudioProcessor::BusesLayout") align 8 %0, ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(20) %3) #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 ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  %15 = alloca i32, align 4
  %16 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  %17 = alloca i1, align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i16, align 2
  %23 = alloca i16, align 2
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i16, align 2
  %28 = alloca i16, align 2
  %29 = alloca i32, align 4
  %30 = alloca i16, align 2
  %31 = alloca i16, align 2
  %32 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %33 = alloca %"class.juce::AudioChannelSet", align 8
  %34 = alloca %"class.juce::AudioChannelSet", align 8
  %35 = alloca %"class.juce::AudioChannelSet", align 8
  %36 = alloca %"class.juce::AudioChannelSet", align 8
  %37 = alloca %"class.juce::AudioChannelSet", align 8
  %38 = alloca %"class.juce::AudioChannelSet", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call noundef i32 @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %40) #8
  store i32 %41, ptr %9, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %4
  br label %43

43:                                               ; preds = %42
  br label %44

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

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

49:                                               ; preds = %45
  store i32 4, ptr %13, align 4
  br label %62

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %14, ptr noundef nonnull align 8 dereferenceable(20) %51, i32 noundef %52)
  %53 = getelementptr inbounds %"struct.juce::AudioProcessor::InOutChannelPair", ptr %14, i32 0, i32 0
  %54 = load i16, ptr %53, align 2, !tbaa !13
  %55 = sext i16 %54 to i32
  %56 = icmp sgt i32 %55, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br i1 %56, label %57, label %58

57:                                               ; preds = %50
  store i8 1, ptr %10, align 1, !tbaa !11
  store i32 4, ptr %13, align 4
  br label %62

58:                                               ; preds = %50
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %12, align 4, !tbaa !9
  br label %45, !llvm.loop !16

62:                                               ; preds = %57, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %63

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

64:                                               ; preds = %78, %63
  %65 = load i32, ptr %15, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 7, ptr %13, align 4
  br label %81

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load i32, ptr %15, align 4, !tbaa !9
  call void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %16, ptr noundef nonnull align 8 dereferenceable(20) %70, i32 noundef %71)
  %72 = getelementptr inbounds %"struct.juce::AudioProcessor::InOutChannelPair", ptr %16, i32 0, i32 1
  %73 = load i16, ptr %72, align 2, !tbaa !18
  %74 = sext i16 %73 to i32
  %75 = icmp sgt i32 %74, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br i1 %75, label %76, label %77

76:                                               ; preds = %69
  store i8 1, ptr %11, align 1, !tbaa !11
  store i32 7, ptr %13, align 4
  br label %81

77:                                               ; preds = %69
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %15, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %15, align 4, !tbaa !9
  br label %64, !llvm.loop !19

81:                                               ; preds = %76, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %82

82:                                               ; preds = %81
  store i1 false, ptr %17, align 1
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %83)
  %84 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %0, i32 0, i32 0
  %85 = load i8, ptr %10, align 1, !tbaa !11, !range !20, !noundef !21
  %86 = trunc i8 %85 to i1
  %87 = zext i1 %86 to i64
  %88 = select i1 %86, i32 1, i32 0
  invoke void @_ZN4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE6resizeEi(ptr noundef nonnull align 8 dereferenceable(20) %84, i32 noundef %88)
          to label %89 unwind label %136

89:                                               ; preds = %82
  %90 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %0, i32 0, i32 1
  %91 = load i8, ptr %11, align 1, !tbaa !11, !range !20, !noundef !21
  %92 = trunc i8 %91 to i1
  %93 = zext i1 %92 to i64
  %94 = select i1 %92, i32 1, i32 0
  invoke void @_ZN4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE6resizeEi(ptr noundef nonnull align 8 dereferenceable(20) %90, i32 noundef %94)
          to label %95 unwind label %136

95:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %96 = load i8, ptr %10, align 1, !tbaa !11, !range !20, !noundef !21
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %101

98:                                               ; preds = %95
  %99 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %0, i32 0, i32 0
  %100 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %99, i32 noundef 0) #8
  br label %102

101:                                              ; preds = %95
  br label %102

102:                                              ; preds = %101, %98
  %103 = phi ptr [ %100, %98 ], [ null, %101 ]
  store ptr %103, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %104 = load i8, ptr %11, align 1, !tbaa !11, !range !20, !noundef !21
  %105 = trunc i8 %104 to i1
  br i1 %105, label %106, label %109

106:                                              ; preds = %102
  %107 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %0, i32 0, i32 1
  %108 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %107, i32 noundef 0) #8
  br label %110

109:                                              ; preds = %102
  br label %110

110:                                              ; preds = %109, %106
  %111 = phi ptr [ %108, %106 ], [ null, %109 ]
  store ptr %111, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %22) #8
  %112 = load ptr, ptr %20, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %117

114:                                              ; preds = %110
  %115 = load ptr, ptr %20, align 8, !tbaa !5
  %116 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %115) #8
  br label %118

117:                                              ; preds = %110
  br label %118

118:                                              ; preds = %117, %114
  %119 = phi i32 [ %116, %114 ], [ 0, %117 ]
  %120 = trunc i32 %119 to i16
  store i16 %120, ptr %22, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #8
  %121 = load ptr, ptr %21, align 8, !tbaa !5
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %126

123:                                              ; preds = %118
  %124 = load ptr, ptr %21, align 8, !tbaa !5
  %125 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %124) #8
  br label %127

126:                                              ; preds = %118
  br label %127

127:                                              ; preds = %126, %123
  %128 = phi i32 [ %125, %123 ], [ 0, %126 ]
  %129 = trunc i32 %128 to i16
  store i16 %129, ptr %23, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %130 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #8
  store i32 %130, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %182, %127
  %132 = load i32, ptr %26, align 4, !tbaa !9
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = icmp slt i32 %132, %133
  br i1 %134, label %140, label %135

135:                                              ; preds = %131
  store i32 10, ptr %13, align 4
  br label %185

136:                                              ; preds = %89, %82
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %18, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %19, align 4
  br label %331

140:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 2, ptr %27) #8
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = load i32, ptr %26, align 4, !tbaa !9
  %143 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %141, i32 noundef %142) #8
  %144 = getelementptr inbounds %"struct.juce::AudioProcessor::InOutChannelPair", ptr %143, i32 0, i32 0
  %145 = load i16, ptr %144, align 2, !tbaa !13
  store i16 %145, ptr %27, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 2, ptr %28) #8
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = load i32, ptr %26, align 4, !tbaa !9
  %148 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %146, i32 noundef %147) #8
  %149 = getelementptr inbounds %"struct.juce::AudioProcessor::InOutChannelPair", ptr %148, i32 0, i32 1
  %150 = load i16, ptr %149, align 2, !tbaa !18
  store i16 %150, ptr %28, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %151 = load i16, ptr %27, align 2, !tbaa !22
  %152 = sext i16 %151 to i32
  %153 = load i16, ptr %22, align 2, !tbaa !22
  %154 = sext i16 %153 to i32
  %155 = sub nsw i32 %152, %154
  %156 = call i32 @llvm.abs.i32(i32 %155, i1 true)
  %157 = and i32 %156, 65535
  %158 = shl i32 %157, 16
  %159 = load i16, ptr %28, align 2, !tbaa !22
  %160 = sext i16 %159 to i32
  %161 = load i16, ptr %23, align 2, !tbaa !22
  %162 = sext i16 %161 to i32
  %163 = sub nsw i32 %160, %162
  %164 = call i32 @llvm.abs.i32(i32 %163, i1 true)
  %165 = and i32 %164, 65535
  %166 = shl i32 %165, 0
  %167 = or i32 %158, %166
  store i32 %167, ptr %29, align 4, !tbaa !9
  %168 = load i32, ptr %29, align 4, !tbaa !9
  %169 = load i32, ptr %24, align 4, !tbaa !9
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %171, label %178

171:                                              ; preds = %140
  %172 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %172, ptr %24, align 4, !tbaa !9
  %173 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %173, ptr %25, align 4, !tbaa !9
  %174 = load i32, ptr %24, align 4, !tbaa !9
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %177

176:                                              ; preds = %171
  store i1 true, ptr %17, align 1
  store i32 1, ptr %13, align 4
  br label %179

177:                                              ; preds = %171
  br label %178

178:                                              ; preds = %177, %140
  store i32 0, ptr %13, align 4
  br label %179

179:                                              ; preds = %178, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %27) #8
  %180 = load i32, ptr %13, align 4
  switch i32 %180, label %185 [
    i32 0, label %181
  ]

181:                                              ; preds = %179
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %26, align 4, !tbaa !9
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %26, align 4, !tbaa !9
  br label %131, !llvm.loop !23

185:                                              ; preds = %179, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  %186 = load i32, ptr %13, align 4
  switch i32 %186, label %327 [
    i32 10, label %187
  ]

187:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 2, ptr %30) #8
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = load i32, ptr %25, align 4, !tbaa !9
  %190 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %188, i32 noundef %189) #8
  %191 = getelementptr inbounds %"struct.juce::AudioProcessor::InOutChannelPair", ptr %190, i32 0, i32 0
  %192 = load i16, ptr %191, align 2, !tbaa !13
  store i16 %192, ptr %30, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 2, ptr %31) #8
  %193 = load ptr, ptr %8, align 8, !tbaa !5
  %194 = load i32, ptr %25, align 4, !tbaa !9
  %195 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %193, i32 noundef %194) #8
  %196 = getelementptr inbounds %"struct.juce::AudioProcessor::InOutChannelPair", ptr %195, i32 0, i32 1
  %197 = load i16, ptr %196, align 2, !tbaa !18
  store i16 %197, ptr %31, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 48, ptr %32) #8
  invoke void @_ZNK4juce14AudioProcessor14getBusesLayoutEv(ptr dead_on_unwind writable sret(%"struct.juce::AudioProcessor::BusesLayout") align 8 %32, ptr noundef nonnull align 8 dereferenceable(256) %39)
          to label %198 unwind label %225

198:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 40, ptr %33) #8
  %199 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %39, i1 noundef zeroext true) #8
  %200 = icmp sgt i32 %199, 0
  br i1 %200, label %201, label %205

201:                                              ; preds = %198
  %202 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %32, i32 0, i32 0
  %203 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %202, i32 noundef 0) #8
  invoke void @_ZN4juce15AudioChannelSetC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %33, ptr noundef nonnull align 8 dereferenceable(40) %203)
          to label %204 unwind label %229

204:                                              ; preds = %201
  br label %206

205:                                              ; preds = %198
  call void @_ZN4juce15AudioChannelSetC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %33) #8
  br label %206

206:                                              ; preds = %205, %204
  call void @llvm.lifetime.start.p0(i64 40, ptr %34) #8
  %207 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %39, i1 noundef zeroext false) #8
  %208 = icmp sgt i32 %207, 0
  br i1 %208, label %209, label %213

209:                                              ; preds = %206
  %210 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %32, i32 0, i32 1
  %211 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %210, i32 noundef 0) #8
  invoke void @_ZN4juce15AudioChannelSetC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %34, ptr noundef nonnull align 8 dereferenceable(40) %211)
          to label %212 unwind label %233

212:                                              ; preds = %209
  br label %214

213:                                              ; preds = %206
  call void @_ZN4juce15AudioChannelSetC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %34) #8
  br label %214

214:                                              ; preds = %213, %212
  %215 = load ptr, ptr %20, align 8, !tbaa !5
  %216 = icmp ne ptr %215, null
  br i1 %216, label %217, label %276

217:                                              ; preds = %214
  %218 = load i16, ptr %30, align 2, !tbaa !22
  %219 = sext i16 %218 to i32
  %220 = icmp eq i32 %219, 0
  br i1 %220, label %221, label %241

221:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 40, ptr %35) #8
  invoke void @_ZN4juce15AudioChannelSet8disabledEv(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8 %35)
          to label %222 unwind label %237

222:                                              ; preds = %221
  %223 = load ptr, ptr %20, align 8, !tbaa !5
  %224 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %223, ptr noundef nonnull align 8 dereferenceable(40) %35) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %35) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %35) #8
  br label %275

225:                                              ; preds = %187
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %18, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %19, align 4
  br label %326

229:                                              ; preds = %201
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %18, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %19, align 4
  br label %325

233:                                              ; preds = %209
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %18, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %19, align 4
  br label %324

237:                                              ; preds = %221
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %18, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %35) #8
  br label %323

241:                                              ; preds = %217
  %242 = load i16, ptr %30, align 2, !tbaa !22
  %243 = sext i16 %242 to i32
  %244 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %33) #8
  %245 = icmp eq i32 %243, %244
  br i1 %245, label %246, label %254

246:                                              ; preds = %241
  %247 = load ptr, ptr %20, align 8, !tbaa !5
  %248 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %247, ptr noundef nonnull align 8 dereferenceable(40) %33)
          to label %249 unwind label %250

249:                                              ; preds = %246
  br label %274

250:                                              ; preds = %305, %296, %259, %246
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %18, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %19, align 4
  br label %323

254:                                              ; preds = %241
  %255 = load i16, ptr %30, align 2, !tbaa !22
  %256 = sext i16 %255 to i32
  %257 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %34) #8
  %258 = icmp eq i32 %256, %257
  br i1 %258, label %259, label %263

259:                                              ; preds = %254
  %260 = load ptr, ptr %20, align 8, !tbaa !5
  %261 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %260, ptr noundef nonnull align 8 dereferenceable(40) %34)
          to label %262 unwind label %250

262:                                              ; preds = %259
  br label %273

263:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 40, ptr %36) #8
  %264 = load i16, ptr %30, align 2, !tbaa !22
  %265 = sext i16 %264 to i32
  invoke void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8 %36, i32 noundef %265)
          to label %266 unwind label %269

266:                                              ; preds = %263
  %267 = load ptr, ptr %20, align 8, !tbaa !5
  %268 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %267, ptr noundef nonnull align 8 dereferenceable(40) %36) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %36) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %36) #8
  br label %273

269:                                              ; preds = %263
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %18, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %36) #8
  br label %323

273:                                              ; preds = %266, %262
  br label %274

274:                                              ; preds = %273, %249
  br label %275

275:                                              ; preds = %274, %222
  br label %276

276:                                              ; preds = %275, %214
  %277 = load ptr, ptr %21, align 8, !tbaa !5
  %278 = icmp ne ptr %277, null
  br i1 %278, label %279, label %322

279:                                              ; preds = %276
  %280 = load i16, ptr %31, align 2, !tbaa !22
  %281 = sext i16 %280 to i32
  %282 = icmp eq i32 %281, 0
  br i1 %282, label %283, label %291

283:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 40, ptr %37) #8
  invoke void @_ZN4juce15AudioChannelSet8disabledEv(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8 %37)
          to label %284 unwind label %287

284:                                              ; preds = %283
  %285 = load ptr, ptr %21, align 8, !tbaa !5
  %286 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %285, ptr noundef nonnull align 8 dereferenceable(40) %37) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %37) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %37) #8
  br label %321

287:                                              ; preds = %283
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %18, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %37) #8
  br label %323

291:                                              ; preds = %279
  %292 = load i16, ptr %31, align 2, !tbaa !22
  %293 = sext i16 %292 to i32
  %294 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %34) #8
  %295 = icmp eq i32 %293, %294
  br i1 %295, label %296, label %300

296:                                              ; preds = %291
  %297 = load ptr, ptr %21, align 8, !tbaa !5
  %298 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %297, ptr noundef nonnull align 8 dereferenceable(40) %34)
          to label %299 unwind label %250

299:                                              ; preds = %296
  br label %320

300:                                              ; preds = %291
  %301 = load i16, ptr %31, align 2, !tbaa !22
  %302 = sext i16 %301 to i32
  %303 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %33) #8
  %304 = icmp eq i32 %302, %303
  br i1 %304, label %305, label %309

305:                                              ; preds = %300
  %306 = load ptr, ptr %21, align 8, !tbaa !5
  %307 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %306, ptr noundef nonnull align 8 dereferenceable(40) %33)
          to label %308 unwind label %250

308:                                              ; preds = %305
  br label %319

309:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 40, ptr %38) #8
  %310 = load i16, ptr %31, align 2, !tbaa !22
  %311 = sext i16 %310 to i32
  invoke void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8 %38, i32 noundef %311)
          to label %312 unwind label %315

312:                                              ; preds = %309
  %313 = load ptr, ptr %21, align 8, !tbaa !5
  %314 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %313, ptr noundef nonnull align 8 dereferenceable(40) %38) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %38) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %38) #8
  br label %319

315:                                              ; preds = %309
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %18, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %38) #8
  br label %323

319:                                              ; preds = %312, %308
  br label %320

320:                                              ; preds = %319, %299
  br label %321

321:                                              ; preds = %320, %284
  br label %322

322:                                              ; preds = %321, %276
  store i1 true, ptr %17, align 1
  store i32 1, ptr %13, align 4
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %34) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %34) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %33) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %33) #8
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %32) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %30) #8
  br label %327

323:                                              ; preds = %315, %287, %269, %250, %237
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %34) #8
  br label %324

324:                                              ; preds = %323, %233
  call void @llvm.lifetime.end.p0(i64 40, ptr %34) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %33) #8
  br label %325

325:                                              ; preds = %324, %229
  call void @llvm.lifetime.end.p0(i64 40, ptr %33) #8
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %32) #8
  br label %326

326:                                              ; preds = %325, %225
  call void @llvm.lifetime.end.p0(i64 48, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %331

327:                                              ; preds = %322, %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  %328 = load i1, ptr %17, align 1
  br i1 %328, label %330, label %329

329:                                              ; preds = %327
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  br label %330

330:                                              ; preds = %329, %327
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  ret void

331:                                              ; preds = %326, %136
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %332

332:                                              ; preds = %331
  %333 = load ptr, ptr %18, align 8
  %334 = load i32, ptr %19, align 4
  %335 = insertvalue { ptr, i32 } poison, ptr %333, 0
  %336 = insertvalue { ptr, i32 } %335, i32 %334, 1
  resume { ptr, i32 } %336
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN4juce14AudioProcessor16InOutChannelPairE", !15, i64 0, !15, i64 2}
!15 = !{!"short", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!14, !15, i64 2}
!19 = distinct !{!19, !17}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!15, !15, i64 0}
!23 = distinct !{!23, !17}


; 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 }
%"class.juce::AudioChannelSet" = type { %"class.juce::BigInteger" }
%"class.juce::BigInteger" = type <{ %"class.juce::HeapBlock.50", [4 x i32], i64, i32, i8, [3 x i8] }>
%"class.juce::HeapBlock.50" = type { ptr }
%"struct.juce::AudioProcessor::InOutChannelPair" = type { i16, i16 }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce14AudioProcessor14getBusesLayoutEv(ptr dead_on_unwind noalias writable sret(%"struct.juce::AudioProcessor::BusesLayout") align 8, ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 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 #4 align 2

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

declare void @_ZN4juce15AudioChannelSet8disabledEv(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce15AudioChannelSetC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 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 #1 align 2

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

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

declare void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind noalias writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2, ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce14AudioProcessor23getNextBestLayoutInListERKNS0_11BusesLayoutERKNS_5ArrayINS0_16InOutChannelPairENS_20DummyCriticalSectionELi0EEE(ptr dead_on_unwind noalias writable sret(%"struct.juce::AudioProcessor::BusesLayout") align 8 %0, ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(20) %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  %6 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  %7 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %8 = alloca %"class.juce::AudioChannelSet", align 8
  %9 = alloca %"class.juce::AudioChannelSet", align 8
  %10 = alloca %"class.juce::AudioChannelSet", align 8
  %11 = alloca %"class.juce::AudioChannelSet", align 8
  %12 = alloca %"class.juce::AudioChannelSet", align 8
  %13 = alloca %"class.juce::AudioChannelSet", align 8
  %14 = tail call noundef i32 @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %3) #8
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph.preheader, label %._crit_edge121

.lr.ph.preheader:                                 ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  call void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind nonnull writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %5, ptr noundef nonnull align 8 dereferenceable(20) %3, i32 noundef 0)
  %16 = load i16, ptr %5, align 2, !tbaa !5
  %17 = icmp sgt i16 %16, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br i1 %17, label %._crit_edge, label %.lr.ph139

.lr.ph139:                                        ; preds = %.lr.ph.preheader, %.lr.ph
  %.065115138 = phi i32 [ %18, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %18 = add nuw nsw i32 %.065115138, 1
  %exitcond.not = icmp eq i32 %18, %14
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !10

.lr.ph:                                           ; preds = %.lr.ph139
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  call void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind nonnull writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %5, ptr noundef nonnull align 8 dereferenceable(20) %3, i32 noundef %18)
  %19 = load i16, ptr %5, align 2, !tbaa !5
  %20 = icmp sgt i16 %19, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br i1 %20, label %._crit_edge.loopexit, label %.lr.ph139, !llvm.loop !10

._crit_edge.loopexit:                             ; preds = %.lr.ph139, %.lr.ph
  %21 = icmp slt i32 %18, %14
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph.preheader
  %.lcssa114 = phi i1 [ true, %.lr.ph.preheader ], [ %21, %._crit_edge.loopexit ]
  br i1 %15, label %.lr.ph120, label %._crit_edge121

.lr.ph120:                                        ; preds = %._crit_edge
  %22 = getelementptr inbounds i8, ptr %6, i64 2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  call void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind nonnull writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %6, ptr noundef nonnull align 8 dereferenceable(20) %3, i32 noundef 0)
  %23 = load i16, ptr %22, align 2, !tbaa !12
  %24 = icmp sgt i16 %23, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br i1 %24, label %._crit_edge121, label %.lr.ph142

.lr.ph142:                                        ; preds = %.lr.ph120, %26
  %.067118141 = phi i32 [ %25, %26 ], [ 0, %.lr.ph120 ]
  %25 = add nuw nsw i32 %.067118141, 1
  %exitcond133.not = icmp eq i32 %25, %14
  br i1 %exitcond133.not, label %._crit_edge121.loopexit, label %26, !llvm.loop !13

26:                                               ; preds = %.lr.ph142
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  call void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind nonnull writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %6, ptr noundef nonnull align 8 dereferenceable(20) %3, i32 noundef %25)
  %27 = load i16, ptr %22, align 2, !tbaa !12
  %28 = icmp sgt i16 %27, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br i1 %28, label %._crit_edge121.loopexit, label %.lr.ph142, !llvm.loop !13

._crit_edge121.loopexit:                          ; preds = %.lr.ph142, %26
  %29 = icmp slt i32 %25, %14
  br label %._crit_edge121

._crit_edge121:                                   ; preds = %._crit_edge121.loopexit, %.lr.ph120, %4, %._crit_edge
  %.lcssa114136 = phi i1 [ %.lcssa114, %._crit_edge ], [ false, %4 ], [ %.lcssa114, %.lr.ph120 ], [ %.lcssa114, %._crit_edge121.loopexit ]
  %.lcssa = phi i1 [ false, %._crit_edge ], [ false, %4 ], [ true, %.lr.ph120 ], [ %29, %._crit_edge121.loopexit ]
  call void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %2)
  %30 = zext i1 %.lcssa114136 to i32
  invoke void @_ZN4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE6resizeEi(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %30)
          to label %31 unwind label %54

31:                                               ; preds = %._crit_edge121
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = zext i1 %.lcssa to i32
  invoke void @_ZN4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE6resizeEi(ptr noundef nonnull align 8 dereferenceable(20) %32, i32 noundef %33)
          to label %34 unwind label %54

34:                                               ; preds = %31
  br i1 %.lcssa114136, label %35, label %37

35:                                               ; preds = %34
  %36 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef 0) #8
  br label %37

37:                                               ; preds = %34, %35
  %38 = phi ptr [ %36, %35 ], [ null, %34 ]
  br i1 %.lcssa, label %39, label %41

39:                                               ; preds = %37
  %40 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %32, i32 noundef 0) #8
  br label %41

41:                                               ; preds = %37, %39
  %42 = phi ptr [ %40, %39 ], [ null, %37 ]
  %.not = icmp eq ptr %38, null
  br i1 %.not, label %45, label %43

43:                                               ; preds = %41
  %44 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %38) #8
  br label %45

45:                                               ; preds = %41, %43
  %46 = phi i32 [ %44, %43 ], [ 0, %41 ]
  %.not94 = icmp eq ptr %42, null
  br i1 %.not94, label %49, label %47

47:                                               ; preds = %45
  %48 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %42) #8
  br label %49

49:                                               ; preds = %45, %47
  %50 = phi i32 [ %48, %47 ], [ 0, %45 ]
  %51 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #8
  br i1 %15, label %.lr.ph130, label %._crit_edge131

.lr.ph130:                                        ; preds = %49
  %sext = shl i32 %46, 16
  %52 = ashr exact i32 %sext, 16
  %sext95 = shl i32 %50, 16
  %53 = ashr exact i32 %sext95, 16
  br label %56

54:                                               ; preds = %31, %._crit_edge121
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %149

56:                                               ; preds = %.lr.ph130, %73
  %.068128 = phi i32 [ 0, %.lr.ph130 ], [ %74, %73 ]
  %.069127 = phi i32 [ 0, %.lr.ph130 ], [ %.2.ph, %73 ]
  %.071126 = phi i32 [ %51, %.lr.ph130 ], [ %.273.ph, %73 ]
  %57 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %3, i32 noundef %.068128) #8
  %58 = load i16, ptr %57, align 2, !tbaa !5
  %59 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %3, i32 noundef %.068128) #8
  %60 = getelementptr inbounds i8, ptr %59, i64 2
  %61 = load i16, ptr %60, align 2, !tbaa !12
  %62 = sext i16 %58 to i32
  %63 = sub nsw i32 %62, %52
  %64 = call i32 @llvm.abs.i32(i32 %63, i1 true)
  %65 = shl nuw i32 %64, 16
  %66 = sext i16 %61 to i32
  %67 = sub nsw i32 %66, %53
  %68 = call i32 @llvm.abs.i32(i32 %67, i1 true)
  %69 = add nuw nsw i32 %68, %65
  %70 = icmp slt i32 %69, %.071126
  br i1 %70, label %71, label %73

71:                                               ; preds = %56
  %72 = icmp eq i32 %69, 0
  br i1 %72, label %.loopexit, label %73

73:                                               ; preds = %71, %56
  %.273.ph = phi i32 [ %.071126, %56 ], [ %69, %71 ]
  %.2.ph = phi i32 [ %.069127, %56 ], [ %.068128, %71 ]
  %74 = add nuw nsw i32 %.068128, 1
  %exitcond134.not = icmp eq i32 %74, %14
  br i1 %exitcond134.not, label %._crit_edge131, label %56, !llvm.loop !14

._crit_edge131:                                   ; preds = %73, %49
  %.069.lcssa = phi i32 [ 0, %49 ], [ %.2.ph, %73 ]
  %75 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %3, i32 noundef %.069.lcssa) #8
  %76 = load i16, ptr %75, align 2, !tbaa !5
  %77 = call noundef nonnull align 2 dereferenceable(4) ptr @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %3, i32 noundef %.069.lcssa) #8
  %78 = getelementptr inbounds i8, ptr %77, i64 2
  %79 = load i16, ptr %78, align 2, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #8
  invoke void @_ZNK4juce14AudioProcessor14getBusesLayoutEv(ptr dead_on_unwind nonnull writable sret(%"struct.juce::AudioProcessor::BusesLayout") align 8 %7, ptr noundef nonnull align 8 dereferenceable(256) %1)
          to label %80 unwind label %100

80:                                               ; preds = %._crit_edge131
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #8
  %81 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %1, i1 noundef zeroext true) #8
  %82 = icmp sgt i32 %81, 0
  br i1 %82, label %83, label %85

83:                                               ; preds = %80
  %84 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %7, i32 noundef 0) #8
  invoke void @_ZN4juce15AudioChannelSetC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %84)
          to label %86 unwind label %102

85:                                               ; preds = %80
  call void @_ZN4juce15AudioChannelSetC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  br label %86

86:                                               ; preds = %83, %85
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #8
  %87 = call noundef i32 @_ZNK4juce14AudioProcessor11getBusCountEb(ptr noundef nonnull align 8 dereferenceable(256) %1, i1 noundef zeroext false) #8
  %88 = icmp sgt i32 %87, 0
  br i1 %88, label %89, label %92

89:                                               ; preds = %86
  %90 = getelementptr inbounds i8, ptr %7, i64 24
  %91 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %90, i32 noundef 0) #8
  invoke void @_ZN4juce15AudioChannelSetC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(40) %91)
          to label %93 unwind label %104

92:                                               ; preds = %86
  call void @_ZN4juce15AudioChannelSetC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  br label %93

93:                                               ; preds = %89, %92
  br i1 %.not, label %123, label %94

94:                                               ; preds = %93
  %95 = sext i16 %76 to i32
  %96 = icmp eq i16 %76, 0
  br i1 %96, label %97, label %108

97:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #8
  invoke void @_ZN4juce15AudioChannelSet8disabledEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::AudioChannelSet") align 8 %10)
          to label %98 unwind label %106

98:                                               ; preds = %97
  %99 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %38, ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #8
  br label %123

100:                                              ; preds = %._crit_edge131
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %148

102:                                              ; preds = %83
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %147

104:                                              ; preds = %89
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %146

106:                                              ; preds = %97
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #8
  br label %145

108:                                              ; preds = %94
  %109 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  %110 = icmp eq i32 %109, %95
  br i1 %110, label %.invoke137, label %113

111:                                              ; preds = %.invoke137, %.invoke
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %145

113:                                              ; preds = %108
  %114 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  %115 = icmp eq i32 %114, %95
  br i1 %115, label %.invoke137, label %118

.invoke137:                                       ; preds = %108, %113
  %116 = phi ptr [ %9, %113 ], [ %8, %108 ]
  %117 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %38, ptr noundef nonnull align 8 dereferenceable(40) %116)
          to label %123 unwind label %111

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #8
  invoke void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::AudioChannelSet") align 8 %11, i32 noundef %95)
          to label %119 unwind label %121

119:                                              ; preds = %118
  %120 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %38, ptr noundef nonnull align 8 dereferenceable(40) %11) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #8
  br label %123

121:                                              ; preds = %118
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #8
  br label %145

123:                                              ; preds = %.invoke137, %98, %119, %93
  br i1 %.not94, label %.critedge, label %124

124:                                              ; preds = %123
  %125 = sext i16 %79 to i32
  %126 = icmp eq i16 %79, 0
  br i1 %126, label %127, label %132

127:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #8
  invoke void @_ZN4juce15AudioChannelSet8disabledEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::AudioChannelSet") align 8 %12)
          to label %128 unwind label %130

128:                                              ; preds = %127
  %129 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %42, ptr noundef nonnull align 8 dereferenceable(40) %12) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #8
  br label %.critedge

130:                                              ; preds = %127
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #8
  br label %145

132:                                              ; preds = %124
  %133 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  %134 = icmp eq i32 %133, %125
  br i1 %134, label %.invoke, label %135

135:                                              ; preds = %132
  %136 = call noundef i32 @_ZNK4juce15AudioChannelSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  %137 = icmp eq i32 %136, %125
  br i1 %137, label %.invoke, label %140

.invoke:                                          ; preds = %135, %132
  %138 = phi ptr [ %9, %132 ], [ %8, %135 ]
  %139 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %42, ptr noundef nonnull align 8 dereferenceable(40) %138)
          to label %.critedge unwind label %111

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #8
  invoke void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::AudioChannelSet") align 8 %13, i32 noundef %125)
          to label %141 unwind label %143

141:                                              ; preds = %140
  %142 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %42, ptr noundef nonnull align 8 dereferenceable(40) %13) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #8
  br label %.critedge

143:                                              ; preds = %140
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #8
  br label %145

.critedge:                                        ; preds = %.invoke, %128, %141, %123
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #8
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  br label %.loopexit

145:                                              ; preds = %143, %130, %121, %111, %106
  %.pn = phi { ptr, i32 } [ %131, %130 ], [ %112, %111 ], [ %144, %143 ], [ %107, %106 ], [ %122, %121 ]
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  br label %146

146:                                              ; preds = %145, %104
  %.pn.pn = phi { ptr, i32 } [ %.pn, %145 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #8
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  br label %147

147:                                              ; preds = %146, %102
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %146 ], [ %103, %102 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #8
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  br label %148

148:                                              ; preds = %147, %100
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %147 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  br label %149

.loopexit:                                        ; preds = %71, %.critedge
  ret void

149:                                              ; preds = %148, %54
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %148 ], [ %55, %54 ]
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"_ZTSN4juce14AudioProcessor16InOutChannelPairE", !7, i64 0, !7, i64 2}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!6, !7, i64 2}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}


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