	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xa_decode
_xa_decode:                             ## @xa_decode
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r10d
	movslq	24(%rbp), %rdi
	leaq	(%rsi,%rdi,4), %rax
	cmpl	$1, %r10d
	leaq	112(%rsi,%rdi,4), %rsi
	leaq	(%rdx,%rdi,4), %rdi
	cmoveq	%rsi, %rdi
	movl	$3, %esi
	subl	%r10d, %esi
	leal	(%rsi,%rsi,8), %edx
	leal	(%rdx,%rdx,2), %edx
	addl	%esi, %edx
	cmpl	$2, %r10d
	movslq	%edx, %rsi
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	cmoveq	%r9, %r8
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	leaq	64(%rcx), %rdx
	shlq	$2, %rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax,%rbx,8), %r15d
	movl	%r15d, %r14d
	andl	$15, %r14d
	sarl	$4, %r15d
	movq	_xa_adpcm_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %r15d
	jl	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_avpriv_request_sample
	xorl	%r15d, %r15d
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	leaq	(%rbx,%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$12, %eax
	subl	%r14d, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_xa_adpcm_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	movl	4(%rax), %r14d
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %r15d
	imull	-60(%rbp), %r14d                ## 4-byte Folded Reload
	movl	(%r12,%rbx,4), %edi
	movl	$4, %esi
	callq	_sign_extend
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%r13d, %ecx
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	leal	(%rcx,%r14), %edi
	addl	$32, %edi
	sarl	$6, %edi
	addl	%eax, %edi
	callq	_av_clip_int16
	movl	%eax, %r13d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%r13d, (%rax,%rbx)
	addq	$4, %rbx
	movl	%r15d, %r14d
	cmpq	$112, %rbx
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$2, 16(%rbp)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movl	%r15d, 4(%rax)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %r13d
	movl	4(%rax), %r15d
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax,%rcx,4), %r12d
	movl	%r12d, %ebx
	andl	$15, %ebx
	sarl	$4, %r12d
	movq	_xa_adpcm_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %r12d
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_avpriv_request_sample
	xorl	%r12d, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	$12, %eax
	subl	%ebx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_xa_adpcm_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %ebx
	imull	%r14d, %r15d
	movl	(%rdx,%r12,4), %edi
	sarl	$4, %edi
	movl	$4, %esi
	callq	_sign_extend
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%r13d, %ecx
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	leal	(%rcx,%r15), %edi
	addl	$32, %edi
	sarl	$6, %edi
	addl	%eax, %edi
	callq	_av_clip_int16
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, %r13d
	movl	%eax, (%rdi,%r12)
	addq	$4, %r12
	movl	%ebx, %r15d
	cmpq	$112, %r12
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	%r13d, (%rax)
	movl	%ebx, 4(%rax)
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	addq	$4, %rdx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, %rax
	addq	%rcx, %rdi
	cmpq	$4, %rbx
	jne	LBB0_1
## %bb.12:
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xa_adpcm_table,8,3             ## @xa_adpcm_table
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown XA-ADPCM filter %d"

	.no_dead_strip	_xa_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xa_decode
_xa_decode:                             ; @xa_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
                                        ; kill: def $w7 killed $w7 def $x7
	stp	x5, x0, [sp, #8]                ; 16-byte Folded Spill
	mov	x22, #0
	sbfiz	x8, x7, #2, #32
	add	x28, x1, x8
	add	x9, x28, #112
	add	x8, x2, x8
	cmp	w6, #1
	csel	x24, x9, x8, eq
	mov	w8, #3
	sub	w8, w8, w6
	mov	w9, #28
	mul	w8, w8, w9
	str	w6, [sp, #44]                   ; 4-byte Folded Spill
	cmp	w6, #2
	str	x4, [sp, #48]                   ; 8-byte Folded Spill
	csel	x9, x5, x4, eq
	str	x3, [sp, #72]                   ; 8-byte Folded Spill
	add	x20, x3, #64
	sbfiz	x8, x8, #2, #32
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
Lloh0:
	adrp	x23, _xa_adpcm_table@GOTPAGE
Lloh1:
	ldr	x23, [x23, _xa_adpcm_table@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x8, x8, x22, lsl #3
	ldr	w21, [x8, #16]
	asr	w25, w21, #4
	ldr	x0, [x23]
	bl	_FF_ARRAY_ELEMS
	cmp	w25, w0
	b.lt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	bl	_avpriv_request_sample
	mov	w25, #0
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x19, #0
	lsl	x8, x22, #1
	stp	x8, x22, [sp, #56]              ; 16-byte Folded Spill
	and	w8, w21, #0xf
	mov	w9, #12
	sub	w22, w9, w8
	ldr	x8, [x23]
	ldr	x8, [x8, w25, sxtw #3]
	ldp	w21, w26, [x8]
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldp	w25, w23, [x8]
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x27, x25
	ldr	w0, [x20, x19, lsl #2]
	mov	w1, #4
	bl	_sign_extend
	lsl	w8, w0, w22
	mul	w9, w23, w26
	madd	w9, w25, w21, w9
	add	w9, w9, #32
	add	w0, w8, w9, asr #6
	bl	_av_clip_int16
	mov	x25, x0
	str	w0, [x28, x19]
	add	x19, x19, #4
	mov	x23, x27
	cmp	x19, #112
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #2
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	stp	w25, w27, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldp	w25, w27, [x8]
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh4:
	adrp	x22, _xa_adpcm_table@GOTPAGE
Lloh5:
	ldr	x22, [x22, _xa_adpcm_table@GOTPAGEOFF]
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #2
	ldr	w21, [x8, #20]
	asr	w26, w21, #4
	ldr	x0, [x22]
	bl	_FF_ARRAY_ELEMS
	cmp	w26, w0
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x26
	bl	_avpriv_request_sample
	mov	w26, #0
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x19, #0
	and	w8, w21, #0xf
	mov	w9, #12
	sub	w21, w9, w8
	ldr	x8, [x22]
	ldr	x8, [x8, w26, sxtw #3]
	ldp	w22, w26, [x8]
LBB0_10:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x23, x25
	ldr	w8, [x20, x19, lsl #2]
	asr	w0, w8, #4
	mov	w1, #4
	bl	_sign_extend
	lsl	w8, w0, w21
	mul	w9, w27, w26
	madd	w9, w25, w22, w9
	add	w9, w9, #32
	add	w0, w8, w9, asr #6
	bl	_av_clip_int16
	mov	x25, x0
	str	w0, [x24, x19]
	add	x19, x19, #4
	mov	x27, x23
	cmp	x19, #112
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x22, [sp, #64]                  ; 8-byte Folded Reload
	add	x22, x22, #1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	stp	w25, w23, [x8]
	add	x20, x20, #4
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x28, x28, x8
	add	x24, x24, x8
	cmp	x22, #4
Lloh8:
	adrp	x23, _xa_adpcm_table@GOTPAGE
Lloh9:
	ldr	x23, [x23, _xa_adpcm_table@GOTPAGEOFF]
	b.ne	LBB0_1
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_xa_adpcm_table,8,3             ; @xa_adpcm_table
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown XA-ADPCM filter %d"

	.no_dead_strip	_xa_decode
.subsections_via_symbols
