	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_quant_spectral_coeffs
_read_quant_spectral_coeffs:            ## @read_quant_spectral_coeffs
	.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
	movq	%rdi, %r14
	cmpl	$1, %esi
	jne	LBB0_2
## %bb.1:
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	movl	%eax, %r8d
LBB0_2:
	testl	%edx, %edx
	je	LBB0_14
## %bb.3:
	movq	_clc_length_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %r13d
	cmpl	$1, %esi
	jle	LBB0_4
## %bb.9:
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.10:
	movl	%r8d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_21
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, %eax
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_get_sbits
	jmp	LBB0_13
LBB0_14:
	cmpl	$1, %esi
	jne	LBB0_15
## %bb.18:
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.19:
	movl	%r8d, %r12d
	xorl	%ebx, %ebx
	movq	_mantissa_vlc_tab@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	_spectral_coeff_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r14, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
                                        ## kill: def $eax killed $eax def $rax
	movq	(%r13), %rcx
	leal	(%rax,%rax), %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, (%r15,%rbx,8)
	leal	1(%rax,%rax), %eax
	cltq
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 4(%r15,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_20
	jmp	LBB0_21
LBB0_4:
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.5:
	movl	%r8d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_mantissa_clc_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %edx
	sarl	$2, %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, (%r15,%rbx,8)
	andl	$3, %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 4(%r15,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_21
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, %eax
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_8
LBB0_15:
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.16:
	decl	%esi
	movslq	%esi, %r13
	movl	%r8d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	_spectral_coeff_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,8), %edx
	movl	4(%rax,%r13,8), %esi
	movq	%r14, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
	incl	%eax
	movl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, %edx
	negl	%edx
	testb	$1, %al
	cmovel	%ecx, %edx
	movl	%edx, (%r15,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_17
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_clc_length_tab,8,3             ## @clc_length_tab
	.comm	_mantissa_clc_tab,8,3           ## @mantissa_clc_tab
	.comm	_spectral_coeff_tab,8,3         ## @spectral_coeff_tab
	.comm	_mantissa_vlc_tab,8,3           ## @mantissa_vlc_tab
	.no_dead_strip	_read_quant_spectral_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_quant_spectral_coeffs
_read_quant_spectral_coeffs:            ; @read_quant_spectral_coeffs
	.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	x20, x3
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	cmp	w4, #0
	cinc	w8, w4, lt
	asr	w8, w8, #1
	cmp	w1, #1
	csel	w22, w8, w4, eq
	cbz	w2, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _clc_length_tab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _clc_length_tab@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w21, [x8, w1, sxtw #2]
	cmp	w1, #1
	b.le	LBB0_11
; %bb.2:
	cmp	w22, #1
	b.ge	LBB0_5
	b	LBB0_20
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_get_sbits
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w0, [x20], #4
	subs	x22, x22, #1
	b.eq	LBB0_20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w21, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	b	LBB0_4
LBB0_7:
	b.ne	LBB0_17
; %bb.8:
	cmp	w22, #1
	b.lt	LBB0_20
; %bb.9:
	add	x20, x20, #4
Lloh3:
	adrp	x21, _spectral_coeff_tab@GOTPAGE
Lloh4:
	ldr	x21, [x21, _spectral_coeff_tab@GOTPAGEOFF]
Lloh5:
	adrp	x23, _mantissa_vlc_tab@GOTPAGE
Lloh6:
	ldr	x23, [x23, _mantissa_vlc_tab@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldp	w2, w1, [x8]
	mov	x0, x19
	mov	w3, #3
	bl	_get_vlc2
	ldr	x8, [x23]
	lsl	w9, w0, #1
	ldr	w9, [x8, w9, sxtw #2]
	stur	w9, [x20, #-4]
	add	x8, x8, w0, sxtw #3
	ldr	w8, [x8, #4]
	str	w8, [x20], #8
	subs	x22, x22, #1
	b.ne	LBB0_10
	b	LBB0_20
LBB0_11:
	cmp	w22, #1
	b.lt	LBB0_20
; %bb.12:
	add	x20, x20, #4
Lloh7:
	adrp	x23, _mantissa_clc_tab@GOTPAGE
Lloh8:
	ldr	x23, [x23, _mantissa_clc_tab@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_get_bits
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x23]
	asr	w9, w0, #2
	ldr	w9, [x8, w9, sxtw #2]
	stur	w9, [x20, #-4]
	and	w9, w0, #0x3
	ldr	w8, [x8, w9, uxtw #2]
	str	w8, [x20], #8
	subs	x22, x22, #1
	b.eq	LBB0_20
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cbnz	w21, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w0, #0
	b	LBB0_14
LBB0_17:
	cmp	w22, #1
	b.lt	LBB0_20
; %bb.18:
	sxtw	x8, w1
	sub	x21, x8, #1
Lloh9:
	adrp	x23, _spectral_coeff_tab@GOTPAGE
Lloh10:
	ldr	x23, [x23, _spectral_coeff_tab@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x8, x8, x21, lsl #3
	ldp	w2, w1, [x8]
	mov	x0, x19
	mov	w3, #3
	bl	_get_vlc2
	add	w8, w0, #1
	asr	w9, w8, #1
	tst	w8, #0x1
	cneg	w8, w9, ne
	str	w8, [x20], #4
	subs	x22, x22, #1
	b.ne	LBB0_19
LBB0_20:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_clc_length_tab,8,3             ; @clc_length_tab
	.comm	_mantissa_clc_tab,8,3           ; @mantissa_clc_tab
	.comm	_spectral_coeff_tab,8,3         ; @spectral_coeff_tab
	.comm	_mantissa_vlc_tab,8,3           ; @mantissa_vlc_tab
	.no_dead_strip	_read_quant_spectral_coeffs
.subsections_via_symbols
