	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subband_bufer_alloc
_subband_bufer_alloc:                   ## @subband_bufer_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %r13
	movq	_DCAENC_SUBBANDS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	imull	(%r13), %eax
	movq	_SUBBAND_SAMPLES@GOTPCREL(%rip), %r15
	movq	_DCA_ADPCM_COEFFS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	addl	(%r15), %edi
	imull	%eax, %edi
	movl	$4, %esi
	callq	_av_calloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movl	(%r13), %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.2:
	movl	(%r14), %edx
	movslq	(%r15), %rsi
	movslq	(%r12), %rcx
	addq	%rcx, %rsi
	movslq	%edx, %r15
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	decq	%rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx,4), %r9
	movl	%r15d, %eax
	andl	$3, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r13d
	andl	$-4, %r13d
	leaq	(,%rsi,8), %r10
	imulq	%rsi, %r15
	shlq	$2, %r15
	movq	%rsi, %r11
	shlq	$4, %r11
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rsi,4), %rsi
	leaq	(%rsi,%rsi,2), %r14
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	addq	%r15, %r9
	cmpq	-80(%rbp), %rdi                 ## 8-byte Folded Reload
	je	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$3, -64(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r8d, %r8d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %r12
	xorl	%r8d, %r8d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rcx
	movq	(%rcx,%rdi,8), %rcx
	movq	%r12, (%rcx,%r8,8)
	leaq	(%r12,%rsi), %rcx
	movq	(%rbx), %rdx
	movq	(%rdx,%rdi,8), %rdx
	movq	%rcx, 8(%rdx,%r8,8)
	leaq	(%r12,%r10), %rcx
	movq	(%rbx), %rdx
	movq	(%rdx,%rdi,8), %rdx
	movq	%rcx, 16(%rdx,%r8,8)
	leaq	(%r12,%r14), %rcx
	movq	(%rbx), %rdx
	movq	(%rdx,%rdi,8), %rdx
	movq	%rcx, 24(%rdx,%r8,8)
	addq	$4, %r8
	addq	%r11, %r12
	cmpq	%r8, %r13
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	imulq	%r8, %rcx
	leaq	(%r9,%rcx,4), %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	movq	(%rax,%rdi,8), %rax
	movq	%rdx, (%rax,%r8,8)
	incq	%r8
	addq	%rsi, %rdx
	decq	%rcx
	jne	LBB0_10
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CHANNELS,4,2               ## @MAX_CHANNELS
	.comm	_DCAENC_SUBBANDS,4,2            ## @DCAENC_SUBBANDS
	.comm	_SUBBAND_SAMPLES,4,2            ## @SUBBAND_SAMPLES
	.comm	_DCA_ADPCM_COEFFS,4,2           ## @DCA_ADPCM_COEFFS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_subband_bufer_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subband_bufer_alloc
_subband_bufer_alloc:                   ; @subband_bufer_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x23, _MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x20, _DCAENC_SUBBANDS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DCAENC_SUBBANDS@GOTPAGEOFF]
	ldr	w9, [x20]
	mul	w8, w9, w8
Lloh4:
	adrp	x21, _SUBBAND_SAMPLES@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SUBBAND_SAMPLES@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh6:
	adrp	x22, _DCA_ADPCM_COEFFS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DCA_ADPCM_COEFFS@GOTPAGEOFF]
	ldr	w10, [x22]
	add	w9, w10, w9
	mul	w0, w8, w9
	mov	w1, #4
	bl	_av_calloc
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x9, #0
	ldr	w10, [x20]
	ldrsw	x11, [x21]
	ldrsw	x12, [x22]
	add	x13, x12, x11
	sxtw	x14, w10
	add	x11, x0, x12, lsl #2
	mul	x12, x14, x13
	lsl	x12, x12, #2
	lsl	x13, x13, #2
	lsl	x14, x10, #3
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	add	x11, x11, x12
	cmp	x9, x8
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x15, #0
	mov	x16, x11
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x17, [x19]
	ldr	x17, [x17, x9, lsl #3]
	str	x16, [x17, x15]
	add	x16, x16, x13
	add	x15, x15, #8
	cmp	x14, x15
	b.ne	LBB0_6
	b	LBB0_3
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CHANNELS,4,2               ; @MAX_CHANNELS
	.comm	_DCAENC_SUBBANDS,4,2            ; @DCAENC_SUBBANDS
	.comm	_SUBBAND_SAMPLES,4,2            ; @SUBBAND_SAMPLES
	.comm	_DCA_ADPCM_COEFFS,4,2           ; @DCA_ADPCM_COEFFS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_subband_bufer_alloc
.subsections_via_symbols
