; 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::AudioProcessor::Bus" = type { ptr, %"class.juce::String", %"class.juce::AudioChannelSet", %"class.juce::AudioChannelSet", %"class.juce::AudioChannelSet", i8, i32 }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = 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 }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce14AudioProcessor17getNextBestLayoutERKNS0_11BusesLayoutERS1_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

; 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 void @_ZNK4juce14AudioProcessor3Bus14busDirAndIndexERbRi(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4juce14AudioProcessor3Bus17isLayoutSupportedERKNS_15AudioChannelSetEPNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %12 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @_ZNK4juce14AudioProcessor3Bus14busDirAndIndexERbRi(ptr noundef nonnull align 8 dereferenceable(144) %19, ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 4 dereferenceable(4) %9) #6
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %39

22:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  %23 = getelementptr inbounds %"class.juce::AudioProcessor::Bus", ptr %19, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %24, ptr noundef nonnull align 8 dereferenceable(48) %25)
  %27 = zext i1 %26 to i8
  store i8 %27, ptr %10, align 1, !tbaa !19
  %28 = load i8, ptr %10, align 1, !tbaa !19, !range !20, !noundef !21
  %29 = trunc i8 %28 to i1
  br i1 %29, label %38, label %30

30:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #6
  %31 = getelementptr inbounds %"class.juce::AudioProcessor::Bus", ptr %19, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  call void @_ZNK4juce14AudioProcessor14getBusesLayoutEv(ptr dead_on_unwind writable sret(%"struct.juce::AudioProcessor::BusesLayout") align 8 %11, ptr noundef nonnull align 8 dereferenceable(256) %32)
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #6
  br label %35

35:                                               ; preds = %30
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37, %22
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %39

39:                                               ; preds = %38, %3
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #6
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %44

42:                                               ; preds = %39
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull align 8 dereferenceable(48) %43)
  br label %47

44:                                               ; preds = %39
  %45 = getelementptr inbounds %"class.juce::AudioProcessor::Bus", ptr %19, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  call void @_ZNK4juce14AudioProcessor14getBusesLayoutEv(ptr dead_on_unwind writable sret(%"struct.juce::AudioProcessor::BusesLayout") align 8 %12, ptr noundef nonnull align 8 dereferenceable(256) %46)
  br label %47

47:                                               ; preds = %44, %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %48 = load i8, ptr %8, align 1, !tbaa !19, !range !20, !noundef !21
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %52

50:                                               ; preds = %47
  %51 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %12, i32 0, i32 0
  br label %54

52:                                               ; preds = %47
  %53 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %12, i32 0, i32 1
  br label %54

54:                                               ; preds = %52, %50
  %55 = phi ptr [ %51, %50 ], [ %53, %52 ]
  store ptr %55, ptr %13, align 8, !tbaa !5
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = load i32, ptr %9, align 4, !tbaa !22
  %58 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %56, i32 noundef %57) #6
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_ZNK4juce15AudioChannelSeteqERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %58, ptr noundef nonnull align 8 dereferenceable(40) %59) #6
  br i1 %60, label %61, label %62

61:                                               ; preds = %54
  store i1 true, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %110

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #6
  invoke void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 8 dereferenceable(48) %12)
          to label %63 unwind label %87

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %64 = load i8, ptr %8, align 1, !tbaa !19, !range !20, !noundef !21
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %68

66:                                               ; preds = %63
  %67 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %15, i32 0, i32 0
  br label %70

68:                                               ; preds = %63
  %69 = getelementptr inbounds %"struct.juce::AudioProcessor::BusesLayout", ptr %15, i32 0, i32 1
  br label %70

70:                                               ; preds = %68, %66
  %71 = phi ptr [ %67, %66 ], [ %69, %68 ]
  store ptr %71, ptr %18, align 8, !tbaa !5
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load ptr, ptr %18, align 8, !tbaa !5
  %74 = load i32, ptr %9, align 4, !tbaa !22
  %75 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %73, i32 noundef %74) #6
  %76 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %75, ptr noundef nonnull align 8 dereferenceable(40) %72)
          to label %77 unwind label %91

77:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %78 = getelementptr inbounds %"class.juce::AudioProcessor::Bus", ptr %19, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  invoke void @_ZNK4juce14AudioProcessor17getNextBestLayoutERKNS0_11BusesLayoutERS1_(ptr noundef nonnull align 8 dereferenceable(256) %79, ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 8 dereferenceable(48) %12)
          to label %80 unwind label %95

80:                                               ; preds = %77
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %99

83:                                               ; preds = %80
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %84, ptr noundef nonnull align 8 dereferenceable(48) %12)
          to label %86 unwind label %95

86:                                               ; preds = %83
  br label %99

87:                                               ; preds = %62
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %16, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %17, align 4
  br label %109

91:                                               ; preds = %70
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %16, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %108

95:                                               ; preds = %83, %77
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %16, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %17, align 4
  br label %108

99:                                               ; preds = %86, %80
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = load i32, ptr %9, align 4, !tbaa !22
  %105 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %103, i32 noundef %104) #6
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = call noundef zeroext i1 @_ZNK4juce15AudioChannelSeteqERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %105, ptr noundef nonnull align 8 dereferenceable(40) %106) #6
  store i1 %107, ptr %4, align 1
  store i32 1, ptr %14, align 4
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #6
  br label %110

108:                                              ; preds = %95, %91
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  br label %109

109:                                              ; preds = %108, %87
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  br label %112

110:                                              ; preds = %102, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  %111 = load i1, ptr %4, align 1
  ret i1 %111

112:                                              ; preds = %109
  %113 = load ptr, ptr %16, align 8
  %114 = load i32, ptr %17, align 4
  %115 = insertvalue { ptr, i32 } poison, ptr %113, 0
  %116 = insertvalue { ptr, i32 } %115, i32 %114, 1
  resume { ptr, i32 } %116
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !6, i64 0}
!10 = !{!"_ZTSN4juce14AudioProcessor3BusE", !6, i64 0, !11, i64 8, !13, i64 16, !13, i64 56, !13, i64 96, !18, i64 136, !17, i64 140}
!11 = !{!"_ZTSN4juce6StringE", !12, i64 0}
!12 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!13 = !{!"_ZTSN4juce15AudioChannelSetE", !14, i64 0}
!14 = !{!"_ZTSN4juce10BigIntegerE", !15, i64 0, !7, i64 8, !16, i64 24, !17, i64 32, !18, i64 36}
!15 = !{!"_ZTSN4juce9HeapBlockIjLb0EEE", !6, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!18, !18, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!17, !17, i64 0}


; 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 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 #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 #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 #3 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 #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce14AudioProcessor17getNextBestLayoutERKNS0_11BusesLayoutERS1_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

; 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 void @_ZNK4juce14AudioProcessor3Bus14busDirAndIndexERbRi(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4juce14AudioProcessor3Bus17isLayoutSupportedERKNS_15AudioChannelSetEPNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %7 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  %8 = alloca %"struct.juce::AudioProcessor::BusesLayout", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @_ZNK4juce14AudioProcessor3Bus14busDirAndIndexERbRi(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 4 dereferenceable(4) %5) #6
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %16, label %9

9:                                                ; preds = %3
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = call noundef zeroext i1 @_ZNK4juce14AudioProcessor25checkBusesLayoutSupportedERKNS0_11BusesLayoutE(ptr noundef nonnull align 8 dereferenceable(256) %10, ptr noundef nonnull align 8 dereferenceable(48) %2)
  br i1 %11, label %15, label %12

12:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #6
  %13 = load ptr, ptr %0, align 8, !tbaa !5
  call void @_ZNK4juce14AudioProcessor14getBusesLayoutEv(ptr dead_on_unwind nonnull writable sret(%"struct.juce::AudioProcessor::BusesLayout") align 8 %6, ptr noundef nonnull align 8 dereferenceable(256) %13)
  %14 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  br label %15

15:                                               ; preds = %12, %9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #6
  call void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %2)
  br label %18

16:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #6
  %17 = load ptr, ptr %0, align 8, !tbaa !5
  call void @_ZNK4juce14AudioProcessor14getBusesLayoutEv(ptr dead_on_unwind nonnull writable sret(%"struct.juce::AudioProcessor::BusesLayout") align 8 %7, ptr noundef nonnull align 8 dereferenceable(256) %17)
  br label %18

18:                                               ; preds = %16, %15
  %19 = load i8, ptr %4, align 1, !tbaa !18, !range !19, !noundef !20
  %20 = trunc nuw i8 %19 to i1
  %.idx.sroa.sel.idx.sroa.sel.idx.sroa.sel.idx = select i1 %20, i64 0, i64 24
  %.idx.sroa.sel.idx.sroa.sel.idx.sroa.sel = getelementptr inbounds i8, ptr %7, i64 %.idx.sroa.sel.idx.sroa.sel.idx.sroa.sel.idx
  %21 = load i32, ptr %5, align 4, !tbaa !21
  %22 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %.idx.sroa.sel.idx.sroa.sel.idx.sroa.sel, i32 noundef %21) #6
  %23 = call noundef zeroext i1 @_ZNK4juce15AudioChannelSeteqERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef nonnull align 8 dereferenceable(40) %1) #6
  br i1 %23, label %48, label %24

24:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #6
  invoke void @_ZN4juce14AudioProcessor11BusesLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %25 unwind label %36

25:                                               ; preds = %24
  %26 = load i8, ptr %4, align 1, !tbaa !18, !range !19, !noundef !20
  %27 = trunc nuw i8 %26 to i1
  %.idx22.sroa.sel.idx.sroa.sel.idx.sroa.sel.idx = select i1 %27, i64 0, i64 24
  %.idx22.sroa.sel.idx.sroa.sel.idx.sroa.sel = getelementptr inbounds i8, ptr %8, i64 %.idx22.sroa.sel.idx.sroa.sel.idx.sroa.sel.idx
  %28 = load i32, ptr %5, align 4, !tbaa !21
  %29 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %.idx22.sroa.sel.idx.sroa.sel.idx.sroa.sel, i32 noundef %28) #6
  %30 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN4juce15AudioChannelSetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %31 unwind label %38

31:                                               ; preds = %25
  %32 = load ptr, ptr %0, align 8, !tbaa !5
  invoke void @_ZNK4juce14AudioProcessor17getNextBestLayoutERKNS0_11BusesLayoutERS1_(ptr noundef nonnull align 8 dereferenceable(256) %32, ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %33 unwind label %40

33:                                               ; preds = %31
  br i1 %.not, label %42, label %34

34:                                               ; preds = %33
  %35 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN4juce14AudioProcessor11BusesLayoutaSERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %42 unwind label %40

36:                                               ; preds = %24
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %47

38:                                               ; preds = %25
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %46

40:                                               ; preds = %34, %31
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %46

42:                                               ; preds = %33, %34
  %43 = load i32, ptr %5, align 4, !tbaa !21
  %44 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4juce5ArrayINS_15AudioChannelSetENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %.idx.sroa.sel.idx.sroa.sel.idx.sroa.sel, i32 noundef %43) #6
  %45 = call noundef zeroext i1 @_ZNK4juce15AudioChannelSeteqERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %44, ptr noundef nonnull align 8 dereferenceable(40) %1) #6
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  br label %48

46:                                               ; preds = %40, %38
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ]
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  br label %47

47:                                               ; preds = %46, %36
  %.pn.pn = phi { ptr, i32 } [ %.pn, %46 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn

48:                                               ; preds = %18, %42
  %.0 = phi i1 [ %45, %42 ], [ true, %18 ]
  call void @_ZN4juce14AudioProcessor11BusesLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  ret i1 %.0
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"_ZTSN4juce14AudioProcessor3BusE", !7, i64 0, !10, i64 8, !12, i64 16, !12, i64 56, !12, i64 96, !17, i64 136, !16, i64 140}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN4juce6StringE", !11, i64 0}
!11 = !{!"_ZTSN4juce16CharPointer_UTF8E", !7, i64 0}
!12 = !{!"_ZTSN4juce15AudioChannelSetE", !13, i64 0}
!13 = !{!"_ZTSN4juce10BigIntegerE", !14, i64 0, !8, i64 8, !15, i64 24, !16, i64 32, !17, i64 36}
!14 = !{!"_ZTSN4juce9HeapBlockIjLb0EEE", !7, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = !{!"bool", !8, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!16, !16, i64 0}


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