	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_atrac3p_decode_channel_unit ## -- Begin function ff_atrac3p_decode_channel_unit
	.p2align	4, 0x90
_ff_atrac3p_decode_channel_unit:        ## @ff_atrac3p_decode_channel_unit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	$5, %esi
	callq	_get_bits
	leal	1(%rax), %ecx
	movl	%ecx, (%r13)
	addl	$-28, %eax
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_2:
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 56(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_decode_quant_wordlen
	testl	%eax, %eax
	js	LBB0_18
## %bb.3:
	movq	_atrac3p_qu_to_subband@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r13), %rcx
	movq	-8(%rax,%rcx,8), %rcx
	incq	%rcx
	movq	%rcx, 48(%r13)
	movslq	4(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:
	movq	-8(%rax,%rcx,8), %rax
	incq	%rax
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	movq	%rax, 32(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_decode_scale_factors
	testl	%eax, %eax
	js	LBB0_18
## %bb.8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_decode_code_table_indexes
	testl	%eax, %eax
	js	LBB0_18
## %bb.9:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_decode_spectrum
	cmpl	$2, %r12d
	jne	LBB0_11
## %bb.10:
	movl	44(%r13), %esi
	movq	32(%r13), %rdx
	movq	%r14, %rdi
	callq	_get_subband_flags
	movl	40(%r13), %esi
	movq	32(%r13), %rdx
	movq	%r14, %rdi
	callq	_get_subband_flags
LBB0_11:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_decode_window_shape
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_decode_gainc_data
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_decode_tones_info
	testl	%eax, %eax
	js	LBB0_18
## %bb.13:
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 24(%r13)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	%rax, 16(%r13)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	%rax, 8(%r13)
	jmp	LBB0_19
LBB0_18:
	movl	%eax, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid number of quantization units: %d!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_atrac3p_qu_to_subband,8,3      ## @atrac3p_qu_to_subband
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_atrac3p_decode_channel_unit ; -- Begin function ff_atrac3p_decode_channel_unit
	.p2align	2
_ff_atrac3p_decode_channel_unit:        ; @ff_atrac3p_decode_channel_unit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	w1, #5
	bl	_get_bits
	add	w3, w0, #1
	str	w3, [x19]
	sub	w8, w0, #28
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_2:
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x19, #56]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_decode_quant_wordlen
	tbnz	w0, #31, LBB0_14
; %bb.3:
Lloh8:
	adrp	x8, _atrac3p_qu_to_subband@GOTPAGE
Lloh9:
	ldr	x8, [x8, _atrac3p_qu_to_subband@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldp	w10, w9, [x19]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	x10, x8, x10, lsl #3
	ldur	x10, [x10, #-8]
	add	x10, x10, #1
	str	x10, [x19, #48]
	cbz	w9, LBB0_5
; %bb.4:
	sub	w9, w9, #1
	ldr	x8, [x8, w9, sxtw #3]
	add	x8, x8, #1
	b	LBB0_6
LBB0_5:
	mov	x8, #0
LBB0_6:
	str	x8, [x19, #32]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_decode_scale_factors
	tbnz	w0, #31, LBB0_14
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_decode_code_table_indexes
	tbnz	w0, #31, LBB0_14
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_decode_spectrum
	cmp	w22, #2
	b.ne	LBB0_10
; %bb.9:
	ldr	w1, [x19, #44]
	ldr	x2, [x19, #32]
	mov	x0, x20
	bl	_get_subband_flags
	ldr	w1, [x19, #40]
	ldr	x2, [x19, #32]
	mov	x0, x20
	bl	_get_subband_flags
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_decode_window_shape
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_decode_gainc_data
	tbnz	w0, #31, LBB0_14
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_decode_tones_info
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x19, #24]
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	str	x0, [x19, #16]
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid number of quantization units: %d!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_atrac3p_qu_to_subband,8,3      ; @atrac3p_qu_to_subband
.subsections_via_symbols
