	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_spectrum
_decode_spectrum:                       ## @decode_spectrum
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_19
## %bb.1:
	movq	%rsi, %r14
	movl	%edx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movq	8(%r14), %r15
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,4), %r12
	movq	32(%r15,%r12,8), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	24(%r15,%r12,8), %rdi
	movq	_ATRAC3P_POWER_COMP_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_memset
	cmpl	$0, (%r14)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r12,8), %r15
	addq	$32, %r15
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movslq	%edx, %rdx
	movq	_atrac3p_ct_restricted_to_full@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	movq	-16(%r15), %rsi
	movq	(%rdi,%rsi,8), %rdi
	decl	%eax
	movslq	%eax, %rbx
	movq	(%rdi,%rbx,8), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rdi,%rdx,4), %edx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	leal	(%rdx,%rsi,8), %edx
	leal	(,%rdx,8), %esi
	subl	%edx, %esi
	addl	%eax, %esi
	movq	_atrac3p_spectra_tabs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rdx
	leaq	(%rax,%rdx,4), %rsi
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	movslq	%edx, %rdx
	shlq	$2, %rdx
	movq	_spec_vlc_tabs@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	shlq	$2, %rcx
	addq	(%r15), %rcx
	movq	%rbx, %rdi
	callq	_decode_qu_spectra
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_14
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %r13
	movq	_ff_atrac3p_qu_to_spec_pos@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%r12
	movl	8(%rax,%r13,8), %r8d
	movq	(%rax,%r13,8), %rcx
	subl	%ecx, %r8d
	movq	-32(%r15), %rax
	movl	(%rax,%r13,4), %eax
	movq	-24(%r15), %rdx
	movl	(%rdx,%r13,4), %edx
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, 16(%r14)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-16(%r15), %rsi
	decl	%eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%r14), %rax
	movq	(%rax), %rsi
	cmpl	$0, (%rsi,%r13,4)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	testl	%edx, %edx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	shlq	$2, %rcx
	movq	(%r15), %rdi
	addq	%rcx, %rdi
	addq	32(%rax), %rcx
	shll	$2, %r8d
	movq	%rcx, %rsi
	movl	%r8d, %edx
	callq	_memcpy
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %eax
	movq	-32(%r15), %rcx
	movl	%eax, (%rcx,%r13,4)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %eax
	jl	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_atrac3p_subband_to_num_powgrps@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	4(%r14), %rcx
	movl	-4(%rax,%rcx,4), %r12d
	testl	%r12d, %r12d
	jle	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	-8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_17
	jmp	LBB0_18
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATRAC3P_POWER_COMP_OFF,4,2     ## @ATRAC3P_POWER_COMP_OFF
	.comm	_ff_atrac3p_qu_to_spec_pos,8,3  ## @ff_atrac3p_qu_to_spec_pos
	.comm	_atrac3p_ct_restricted_to_full,8,3 ## @atrac3p_ct_restricted_to_full
	.comm	_atrac3p_spectra_tabs,8,3       ## @atrac3p_spectra_tabs
	.comm	_spec_vlc_tabs,8,3              ## @spec_vlc_tabs
	.comm	_atrac3p_subband_to_num_powgrps,8,3 ## @atrac3p_subband_to_num_powgrps
	.no_dead_strip	_decode_spectrum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_spectrum
_decode_spectrum:                       ; @decode_spectrum
	.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
	cmp	w2, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	mov	w24, #40
	mov	w8, w2
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x21, x8
	b.eq	LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x23, [x19, #8]
	madd	x26, x21, x24, x23
	mov	x22, x26
	ldr	x0, [x22, #32]!
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x26, #24]!
Lloh0:
	adrp	x8, _ATRAC3P_POWER_COMP_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATRAC3P_POWER_COMP_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_memset
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	madd	x25, x21, x24, x23
	add	x28, x25, #8
	add	x24, x25, #16
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
Lloh3:
	adrp	x10, _atrac3p_ct_restricted_to_full@GOTPAGE
Lloh4:
	ldr	x10, [x10, _atrac3p_ct_restricted_to_full@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x10]
	ldr	x10, [x24]
	ldr	x12, [x12, x10, lsl #3]
	sxtw	x9, w9
	sub	w11, w11, #1
	ldr	x12, [x12, w11, sxtw #3]
	ldr	w9, [x12, x9, lsl #2]
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w9, w9, w10, lsl #3
	lsl	w10, w9, #3
	sub	w9, w10, w9
	add	w9, w11, w9
Lloh6:
	adrp	x10, _atrac3p_spectra_tabs@GOTPAGE
Lloh7:
	ldr	x10, [x10, _atrac3p_spectra_tabs@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x1, x10, w9, sxtw #2
	ldr	w10, [x1]
	cmp	w10, #0
	csel	w9, w9, w10, lt
Lloh9:
	adrp	x10, _spec_vlc_tabs@GOTPAGE
Lloh10:
	ldr	x10, [x10, _spec_vlc_tabs@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	add	x2, x10, w9, sxtw #2
	ldr	x9, [x22]
	add	x3, x9, x8, lsl #2
	mov	x0, x20
	bl	_decode_qu_spectra
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x19]
	cmp	x27, x8
	b.ge	LBB0_14
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh12:
	adrp	x8, _ff_atrac3p_qu_to_spec_pos@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ff_atrac3p_qu_to_spec_pos@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x8, x8, x27, lsl #3
	ldr	w9, [x8, #8]
	ldr	x8, [x8]
	sub	w4, w9, w8
	ldr	x9, [x25]
	lsl	x23, x27, #2
	ldr	w11, [x9, x23]
	ldr	x9, [x28]
	ldr	w9, [x9, x23]
	cbz	w11, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w10, [x19, #16]
	cbz	w10, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x10, [x24]
	sub	w11, w11, #1
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	cbz	x21, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x10, [x19, #8]
	ldr	x11, [x10]
	ldr	w11, [x11, x27, lsl #2]
	cmp	w11, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x22]
	lsl	x8, x8, #2
	add	x0, x9, x8
	ldr	x9, [x10, #32]
	add	x1, x9, x8
	lsl	w2, w4, #2
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8, x23]
	ldr	x9, [x25]
	str	w8, [x9, x23]
	b	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #3
	mov	w24, #40
	b.lt	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x8, _atrac3p_subband_to_num_powgrps@GOTPAGE
Lloh16:
	ldr	x8, [x8, _atrac3p_subband_to_num_powgrps@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldrsw	x9, [x19, #4]
	add	x8, x8, x9, lsl #2
	ldur	w8, [x8, #-4]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	lsl	x23, x8, #2
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	ldr	x8, [x26]
	str	w0, [x8, x22]
	add	x22, x22, #4
	cmp	x23, x22
	b.ne	LBB0_17
	b	LBB0_2
LBB0_18:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ATRAC3P_POWER_COMP_OFF,4,2     ; @ATRAC3P_POWER_COMP_OFF
	.comm	_ff_atrac3p_qu_to_spec_pos,8,3  ; @ff_atrac3p_qu_to_spec_pos
	.comm	_atrac3p_ct_restricted_to_full,8,3 ; @atrac3p_ct_restricted_to_full
	.comm	_atrac3p_spectra_tabs,8,3       ; @atrac3p_spectra_tabs
	.comm	_spec_vlc_tabs,8,3              ; @spec_vlc_tabs
	.comm	_atrac3p_subband_to_num_powgrps,8,3 ; @atrac3p_subband_to_num_powgrps
	.no_dead_strip	_decode_spectrum
.subsections_via_symbols
