	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adx_decode
_adx_decode:                            ## @adx_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %rbx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movq	%rcx, %rdi
	callq	_AV_RB16
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	$32768, %ecx                    ## imm = 0x8000
	jne	LBB0_6
## %bb.1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movslq	%r12d, %r15
	addq	$8, %rbx
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-16(,%rax,8), %edx
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_init_get_bits
	movl	(%r14,%r15,8), %eax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r14,%r15,8), %ebx
	movq	_BLOCK_SAMPLES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_2
## %bb.3:
	movslq	-56(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rcx,4), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r14d
	leaq	-64(%rbp), %rdi
	movl	$4, %esi
	callq	_get_sbits
	movq	_COEFF_BITS@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %eax
	imull	%r13d, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movl	(%rdx), %esi
	imull	%r14d, %esi
	addl	%eax, %esi
	imull	4(%rdx), %ebx
	addl	%esi, %ebx
	sarl	%cl, %ebx
	movl	%ebx, %edi
	callq	_av_clip_int16
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	movl	%r14d, %ebx
	cmpl	(%r15), %r12d
	jl	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movl	%ebx, %r14d
LBB0_5:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,8)
	movl	%r14d, 4(%rcx,%rdx,8)
	xorl	%eax, %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCK_SIZE,4,2                 ## @BLOCK_SIZE
	.comm	_BLOCK_SAMPLES,4,2              ## @BLOCK_SAMPLES
	.comm	_COEFF_BITS,4,2                 ## @COEFF_BITS
	.no_dead_strip	_adx_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adx_decode
_adx_decode:                            ; @adx_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x25, [x0, #8]
	mov	x0, x3
	bl	_AV_RB16
	tbnz	w0, #15, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x1, x24, #8
Lloh0:
	adrp	x8, _BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #3
	sub	w2, w8, #16
	add	x0, sp, #12
	bl	_init_get_bits
	add	x23, x25, w23, sxtw #3
	ldr	w0, [x23]
	mov	x24, x23
	ldr	w27, [x24, #4]!
Lloh3:
	adrp	x25, _BLOCK_SAMPLES@GOTPAGE
Lloh4:
	ldr	x25, [x25, _BLOCK_SAMPLES@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x26, #0
	add	x21, x22, w21, sxtw #2
Lloh5:
	adrp	x28, _COEFF_BITS@GOTPAGE
Lloh6:
	ldr	x28, [x28, _COEFF_BITS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x0
	add	x0, sp, #12
	mov	w1, #4
	bl	_get_sbits
	ldr	w8, [x28]
	lsl	w9, w0, w8
	mul	w9, w9, w20
	ldr	x10, [x19]
	ldp	w11, w10, [x10]
	madd	w9, w11, w22, w9
	madd	w9, w10, w27, w9
	asr	w0, w9, w8
	bl	_av_clip_int16
	str	w0, [x21, x26, lsl #2]
	ldr	w8, [x25]
	add	x26, x26, #1
	mov	x27, x22
	cmp	w26, w8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_4:
	mov	w8, #-1
	b	LBB0_7
LBB0_5:
	mov	x22, x27
LBB0_6:
	mov	w8, #0
	str	w0, [x23]
	str	w22, [x24]
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCK_SIZE,4,2                 ; @BLOCK_SIZE
	.comm	_BLOCK_SAMPLES,4,2              ; @BLOCK_SAMPLES
	.comm	_COEFF_BITS,4,2                 ; @COEFF_BITS
	.no_dead_strip	_adx_decode
.subsections_via_symbols
