; LLVM IR from software-mansion/react-native-audio-api :: packages/react-native-audio-api/common/cpp/audioapi/utils (AudioBus)

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

; 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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8audioapi8AudioBus13sumByUpMixingEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4) #2 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store i64 %3, ptr %9, align 8, !tbaa !9
  store i64 %4, ptr %10, align 8, !tbaa !9
  %16 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = call noundef i32 @_ZNK8audioapi8AudioBus19getNumberOfChannelsEv(ptr noundef nonnull align 8 dereferenceable(40) %17)
  store i32 %18, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %19 = call noundef i32 @_ZNK8audioapi8AudioBus19getNumberOfChannelsEv(ptr noundef nonnull align 8 dereferenceable(40) %16)
  store i32 %19, ptr %12, align 4, !tbaa !11
  %20 = load i32, ptr %11, align 4, !tbaa !11
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %41

22:                                               ; preds = %5
  %23 = load i32, ptr %12, align 4, !tbaa !11
  %24 = icmp eq i32 %23, 2
  br i1 %24, label %28, label %25

25:                                               ; preds = %22
  %26 = load i32, ptr %12, align 4, !tbaa !11
  %27 = icmp eq i32 %26, 4
  br i1 %27, label %28, label %41

28:                                               ; preds = %25, %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %29, i32 noundef 0)
  store ptr %30, ptr %13, align 8, !tbaa !5
  %31 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 0)
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = load i64, ptr %8, align 8, !tbaa !9
  %34 = load i64, ptr %9, align 8, !tbaa !9
  %35 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %32, i64 noundef %33, i64 noundef %34, i64 noundef %35)
  %36 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 1)
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = load i64, ptr %8, align 8, !tbaa !9
  %39 = load i64, ptr %9, align 8, !tbaa !9
  %40 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef %37, i64 noundef %38, i64 noundef %39, i64 noundef %40)
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %113

41:                                               ; preds = %25, %5
  %42 = load i32, ptr %11, align 4, !tbaa !11
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %44, label %55

44:                                               ; preds = %41
  %45 = load i32, ptr %12, align 4, !tbaa !11
  %46 = icmp eq i32 %45, 6
  br i1 %46, label %47, label %55

47:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = call noundef ptr @_ZNK8audioapi8AudioBus10getChannelEi(ptr noundef nonnull align 8 dereferenceable(40) %48, i32 noundef 0)
  store ptr %49, ptr %15, align 8, !tbaa !5
  %50 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 2)
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  %52 = load i64, ptr %8, align 8, !tbaa !9
  %53 = load i64, ptr %9, align 8, !tbaa !9
  %54 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef %51, i64 noundef %52, i64 noundef %53, i64 noundef %54)
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %113

55:                                               ; preds = %44, %41
  %56 = load i32, ptr %11, align 4, !tbaa !11
  %57 = icmp eq i32 %56, 2
  br i1 %57, label %58, label %77

58:                                               ; preds = %55
  %59 = load i32, ptr %12, align 4, !tbaa !11
  %60 = icmp eq i32 %59, 4
  br i1 %60, label %64, label %61

61:                                               ; preds = %58
  %62 = load i32, ptr %12, align 4, !tbaa !11
  %63 = icmp eq i32 %62, 6
  br i1 %63, label %64, label %77

64:                                               ; preds = %61, %58
  %65 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 0)
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %66, i32 noundef 0)
  %68 = load i64, ptr %8, align 8, !tbaa !9
  %69 = load i64, ptr %9, align 8, !tbaa !9
  %70 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef %67, i64 noundef %68, i64 noundef %69, i64 noundef %70)
  %71 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 1)
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %72, i32 noundef 1)
  %74 = load i64, ptr %8, align 8, !tbaa !9
  %75 = load i64, ptr %9, align 8, !tbaa !9
  %76 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %71, ptr noundef %73, i64 noundef %74, i64 noundef %75, i64 noundef %76)
  store i32 1, ptr %14, align 4
  br label %113

77:                                               ; preds = %61, %55
  %78 = load i32, ptr %11, align 4, !tbaa !11
  %79 = icmp eq i32 %78, 4
  br i1 %79, label %80, label %108

80:                                               ; preds = %77
  %81 = load i32, ptr %12, align 4, !tbaa !11
  %82 = icmp eq i32 %81, 6
  br i1 %82, label %83, label %108

83:                                               ; preds = %80
  %84 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 0)
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %85, i32 noundef 0)
  %87 = load i64, ptr %8, align 8, !tbaa !9
  %88 = load i64, ptr %9, align 8, !tbaa !9
  %89 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef %86, i64 noundef %87, i64 noundef %88, i64 noundef %89)
  %90 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 1)
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %91, i32 noundef 1)
  %93 = load i64, ptr %8, align 8, !tbaa !9
  %94 = load i64, ptr %9, align 8, !tbaa !9
  %95 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %90, ptr noundef %92, i64 noundef %93, i64 noundef %94, i64 noundef %95)
  %96 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 4)
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %97, i32 noundef 4)
  %99 = load i64, ptr %8, align 8, !tbaa !9
  %100 = load i64, ptr %9, align 8, !tbaa !9
  %101 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %96, ptr noundef %98, i64 noundef %99, i64 noundef %100, i64 noundef %101)
  %102 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 5)
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %103, i32 noundef 5)
  %105 = load i64, ptr %8, align 8, !tbaa !9
  %106 = load i64, ptr %9, align 8, !tbaa !9
  %107 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %102, ptr noundef %104, i64 noundef %105, i64 noundef %106, i64 noundef %107)
  store i32 1, ptr %14, align 4
  br label %113

108:                                              ; preds = %80, %77
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = load i64, ptr %8, align 8, !tbaa !9
  %111 = load i64, ptr %9, align 8, !tbaa !9
  %112 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZNK8audioapi8AudioBus11discreteSumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef %109, i64 noundef %110, i64 noundef %111, i64 noundef %112)
  store i32 0, ptr %14, align 4
  br label %113

113:                                              ; preds = %108, %83, %64, %47, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %114 = load i32, ptr %14, align 4
  switch i32 %114, label %116 [
    i32 0, label %115
    i32 1, label %115
  ]

115:                                              ; preds = %113, %113
  ret void

116:                                              ; preds = %113
  unreachable
}

declare void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef, i64 noundef, i64 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, 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"

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8audioapi8AudioBus19getNumberOfChannelsEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8audioapi8AudioBus11discreteSumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8audioapi8AudioBus13sumByUpMixingEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %1, i64 noundef %2, i64 noundef %3, i64 noundef %4) local_unnamed_addr #1 align 2 {
  %6 = tail call noundef i32 @_ZNK8audioapi8AudioBus19getNumberOfChannelsEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %7 = tail call noundef i32 @_ZNK8audioapi8AudioBus19getNumberOfChannelsEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  switch i32 %6, label %22 [
    i32 1, label %8
    i32 2, label %16
  ]

8:                                                ; preds = %5
  switch i32 %7, label %.thread62 [
    i32 4, label %9
    i32 2, label %9
    i32 6, label %13
  ]

9:                                                ; preds = %8, %8
  %10 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 0)
  %11 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0)
  tail call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %10, i64 noundef %2, i64 noundef %3, i64 noundef %4)
  %12 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 1)
  tail call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %10, i64 noundef %2, i64 noundef %3, i64 noundef %4)
  br label %34

13:                                               ; preds = %8
  %14 = tail call noundef ptr @_ZNK8audioapi8AudioBus10getChannelEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 0)
  %15 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 2)
  tail call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %14, i64 noundef %2, i64 noundef %3, i64 noundef %4)
  br label %34

16:                                               ; preds = %5
  switch i32 %7, label %.thread62 [
    i32 6, label %17
    i32 4, label %17
  ]

17:                                               ; preds = %16, %16
  %18 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0)
  %19 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 0)
  tail call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %19, i64 noundef %2, i64 noundef %3, i64 noundef %4)
  %20 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 1)
  %21 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 1)
  tail call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %21, i64 noundef %2, i64 noundef %3, i64 noundef %4)
  br label %34

22:                                               ; preds = %5
  %23 = icmp eq i32 %7, 6
  %24 = icmp eq i32 %6, 4
  %or.cond7 = and i1 %24, %23
  br i1 %or.cond7, label %25, label %.thread62

25:                                               ; preds = %22
  %26 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0)
  %27 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 0)
  tail call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef %27, i64 noundef %2, i64 noundef %3, i64 noundef %4)
  %28 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 1)
  %29 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 1)
  tail call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef %29, i64 noundef %2, i64 noundef %3, i64 noundef %4)
  %30 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 4)
  %31 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 4)
  tail call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %31, i64 noundef %2, i64 noundef %3, i64 noundef %4)
  %32 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 5)
  %33 = tail call noundef ptr @_ZNK8audioapi8AudioBus16getChannelByTypeEi(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 5)
  tail call void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef %33, i64 noundef %2, i64 noundef %3, i64 noundef %4)
  br label %34

.thread62:                                        ; preds = %8, %16, %22
  tail call void @_ZNK8audioapi8AudioBus11discreteSumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %1, i64 noundef %2, i64 noundef %3, i64 noundef %4)
  br label %34

34:                                               ; preds = %.thread62, %25, %17, %13, %9
  ret void
}

declare void @_ZN8audioapi10AudioArray3sumEPKS0_mmm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

attributes #0 = { 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 #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 = { "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" }

!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)"}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass