	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function alloc_sample_buffer
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_alloc_sample_buffer:                   ## @alloc_sample_buffer
	.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	$72, %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	_DCA_ADPCM_COEFFS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movslq	(%rdi), %rax
	addq	%rax, %rdx
	movq	_DCA_CHANNELS@GOTPCREL(%rip), %r13
	movslq	(%r13), %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movslq	%edx, %rdx
	movq	_DCA_SUBBANDS@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	imulq	%rcx, %rsi
	imulq	%rdx, %rsi
	movq	_DCA_LFE_HISTORY@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	shrl	%edx
	addl	(%rcx), %edx
	leaq	4(%rdi), %r15
	movl	4(%rdi), %r14d
	leaq	16(%rdi), %r12
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	addl	%esi, %edx
	shll	$2, %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_av_fast_mallocz
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rbx, %rdi
	cmpl	(%r15), %r14d
	je	LBB0_22
## %bb.2:
	movl	(%r13), %ecx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.3:
	movq	_DCA_SUBBANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_DCA_ADPCM_COEFFS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rax
	leaq	24(%rdi), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax def $rax
	andl	$-4, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movq	%r11, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movq	%r15, %rax
	negq	%rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	(,%r15,8), %rax
	andq	$-32, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r11,%r11), %rdx
	movl	$1, %r14d
	xorl	%r8d, %r8d
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	movdqa	%xmm0, %xmm10
	psrlq	$32, %xmm10
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = [4,4]
	xorl	%r9d, %r9d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r9
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r8
	addq	%rax, %r14
	cmpq	-112(%rbp), %r9                 ## 8-byte Folded Reload
	je	LBB0_20
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r9, %r13
	imulq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	movq	32(%rdi), %rax
	movq	(%rax,%r9,8), %r10
	cmpl	$4, %r15d
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	-96(%rbp), %r10                 ## 8-byte Folded Reload
	jae	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r10,%r15,8), %rax
	cmpq	%rax, %r12
	jae	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rsi
	testb	$1, %r15b
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	%rax, %r13
	imulq	%r11, %r13
	addq	(%r12), %r13
	addq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, (%r10,%rax,8)
	movq	%rax, %rsi
	orq	$1, %rsi
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	notq	%rax
	cmpq	-104(%rbp), %rax                ## 8-byte Folded Reload
	je	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rsi,%r8), %rbx
	imulq	%r11, %rbx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rbx
	leaq	(%rsi,%r14), %rax
	imulq	%r11, %rax
	addq	%rcx, %rax
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rcx
	addq	%rbx, %rcx
	movq	%rcx, (%r10,%rsi,8)
	movq	(%r12), %rcx
	addq	%rax, %rcx
	movq	%rcx, 8(%r10,%rsi,8)
	addq	$2, %rsi
	addq	%rdx, %rbx
	addq	%rdx, %rax
	cmpq	%rsi, %r15
	jne	LBB0_18
	jmp	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %xmm1
	pshufd	$68, %xmm1, %xmm11              ## xmm11 = xmm1[0,1,0,1]
	leaq	2(%r13), %rax
	movq	%rax, %xmm3
	pshufd	$68, %xmm3, %xmm3               ## xmm3 = xmm3[0,1,0,1]
	movq	(%r12), %rax
	addq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, %xmm4
	pshufd	$68, %xmm4, %xmm6               ## xmm6 = xmm4[0,1,0,1]
	xorl	%r11d, %r11d
	movdqa	%xmm8, %xmm7
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm11, %xmm1
	paddq	%xmm7, %xmm1
	movdqa	%xmm3, %xmm5
	paddq	%xmm7, %xmm5
	movdqa	%xmm1, %xmm2
	pmuludq	%xmm10, %xmm2
	movdqa	%xmm1, %xmm4
	psrlq	$32, %xmm4
	pmuludq	%xmm0, %xmm4
	paddq	%xmm2, %xmm4
	psllq	$32, %xmm4
	pmuludq	%xmm0, %xmm1
	paddq	%xmm4, %xmm1
	movdqa	%xmm5, %xmm2
	pmuludq	%xmm10, %xmm2
	movdqa	%xmm5, %xmm4
	psrlq	$32, %xmm4
	pmuludq	%xmm0, %xmm4
	paddq	%xmm2, %xmm4
	psllq	$32, %xmm4
	pmuludq	%xmm0, %xmm5
	paddq	%xmm4, %xmm5
	paddq	%xmm6, %xmm1
	paddq	%xmm6, %xmm5
	movdqu	%xmm1, (%r10,%r11)
	movdqu	%xmm5, 16(%r10,%r11)
	paddq	%xmm9, %xmm7
	addq	$32, %r11
	cmpq	%r11, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rax
	cmpq	%r15, %rcx
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_4
	jmp	LBB0_14
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_20:
	movq	(%r12), %rax
LBB0_21:
	addq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, 24(%rdi)
LBB0_22:
	cmpl	$0, 8(%rdi)
	jne	LBB0_24
## %bb.23:
	callq	_erase_adpcm_history
LBB0_24:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCA_ADPCM_COEFFS,4,2           ## @DCA_ADPCM_COEFFS
	.comm	_DCA_CHANNELS,4,2               ## @DCA_CHANNELS
	.comm	_DCA_SUBBANDS,4,2               ## @DCA_SUBBANDS
	.comm	_DCA_LFE_HISTORY,4,2            ## @DCA_LFE_HISTORY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_sample_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_sample_buffer
_alloc_sample_buffer:                   ; @alloc_sample_buffer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x24, _DCA_ADPCM_COEFFS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DCA_ADPCM_COEFFS@GOTPAGEOFF]
	ldrsw	x8, [x24]
	ldrsw	x9, [x0]
	add	x23, x9, x8
Lloh2:
	adrp	x26, _DCA_CHANNELS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DCA_CHANNELS@GOTPAGEOFF]
	ldrsw	x8, [x26]
	sxtw	x10, w23
	mul	x8, x10, x8
Lloh4:
	adrp	x25, _DCA_SUBBANDS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DCA_SUBBANDS@GOTPAGEOFF]
	ldrsw	x10, [x25]
	mul	x22, x8, x10
Lloh6:
	adrp	x8, _DCA_LFE_HISTORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCA_LFE_HISTORY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w9, #0
	cinc	w9, w9, lt
	add	w8, w8, w9, lsr #1
	mov	x21, x0
	ldr	w27, [x21, #4]!
	add	x20, x0, #16
	add	w8, w8, w22
	lsl	w2, w8, #2
	mov	x0, x20
	mov	x1, x21
	bl	_av_fast_mallocz
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_8
; %bb.1:
	ldr	w8, [x21]
	cmp	w27, w8
	b.eq	LBB0_11
; %bb.2:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x9, #0
	ldr	w10, [x25]
	ldrsw	x11, [x24]
	sxtw	x12, w10
	mul	x12, x23, x12
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	add	x11, x11, x12
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x13, [x19, #32]
	ldr	x13, [x13, x9, lsl #3]
	mov	x14, x10
	mov	x15, x11
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x16, [x20]
	add	x16, x15, x16
	str	x16, [x13], #8
	add	x15, x15, x23
	subs	x14, x14, #1
	b.ne	LBB0_7
	b	LBB0_4
LBB0_8:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_9:
	ldr	x9, [x20]
LBB0_10:
	add	x8, x9, x22
	str	x8, [x19, #24]
LBB0_11:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_erase_adpcm_history
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DCA_ADPCM_COEFFS,4,2           ; @DCA_ADPCM_COEFFS
	.comm	_DCA_CHANNELS,4,2               ; @DCA_CHANNELS
	.comm	_DCA_SUBBANDS,4,2               ; @DCA_SUBBANDS
	.comm	_DCA_LFE_HISTORY,4,2            ; @DCA_LFE_HISTORY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_sample_buffer
.subsections_via_symbols
