	.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	$840, %rsp                      ## imm = 0x348
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -824(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, -828(%rbp)                ## 4-byte Spill
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movq	%rbx, -856(%rbp)                ## 8-byte Spill
	leal	1(%rbx), %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, -176(%rbp,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -176(%rbp,%rbx,4)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, -304(%rbp,%rbx,4)
	jmp	LBB0_7
LBB0_8:
	movq	%r14, -872(%rbp)                ## 8-byte Spill
	movq	-824(%rbp), %rax                ## 8-byte Reload
	addq	$48, %rax
	movq	%rax, -864(%rbp)                ## 8-byte Spill
	xorl	%r9d, %r9d
	movq	%r12, -840(%rbp)                ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-824(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rbx,4), %rdi
	shll	$2, %r14d
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	-840(%rbp), %r12                ## 8-byte Reload
	movq	-848(%rbp), %r9                 ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r12, %r9
	je	LBB0_25
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	movq	_subband_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax,%r9,4), %rbx
	leaq	1(%r9), %rcx
	movq	%rcx, -848(%rbp)                ## 8-byte Spill
	movl	4(%rax,%r9,4), %r12d
	movl	%r12d, %r14d
	subl	%ebx, %r14d
	movslq	-176(%rbp,%r9,4), %r13
	testq	%r13, %r13
	je	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r9, %r15
	movq	-872(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %esi
	movl	-828(%rbp), %edx                ## 4-byte Reload
	leaq	-816(%rbp), %rcx
	movl	%r14d, %r8d
	callq	_read_quant_spectral_coeffs
	movq	%rbx, %rdx
	cmpl	%edx, %r12d
	movq	-840(%rbp), %r12                ## 8-byte Reload
	movq	-848(%rbp), %r9                 ## 8-byte Reload
	jle	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_ff_atrac_sf_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-304(%rbp,%r15,4), %rcx
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	_inv_max_quant@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	mulss	(%rax,%r13,4), %xmm0
	movl	%r14d, %eax
	cmpl	$8, %r14d
	jae	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r8d, %r8d
	jmp	LBB0_21
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r8d
	andl	$-8, %r8d
	movaps	%xmm0, %xmm1
	shufps	$0, %xmm0, %xmm1                ## xmm1 = xmm1[0,0],xmm0[0,0]
	leaq	-8(%r8), %rcx
	movq	%rcx, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	andq	$-2, %rdi
	movq	-864(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cvtdq2ps	-816(%rbp,%rsi,4), %xmm2
	cvtdq2ps	-800(%rbp,%rsi,4), %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movups	%xmm2, -48(%rcx,%rsi,4)
	movups	%xmm3, -32(%rcx,%rsi,4)
	cvtdq2ps	-784(%rbp,%rsi,4), %xmm2
	cvtdq2ps	-768(%rbp,%rsi,4), %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movups	%xmm2, -16(%rcx,%rsi,4)
	movups	%xmm3, (%rcx,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	testb	$1, %bl
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rsi,%rdx), %rcx
	cvtdq2ps	-816(%rbp,%rsi,4), %xmm2
	cvtdq2ps	-800(%rbp,%rsi,4), %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movq	-824(%rbp), %rsi                ## 8-byte Reload
	movups	%xmm2, (%rsi,%rcx,4)
	movups	%xmm3, 16(%rsi,%rcx,4)
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rax, %r8
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	%r8, %rdx
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-824(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rcx
	leaq	-816(,%r8,4), %rdx
	addq	%rbp, %rdx
	subq	%r8, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorps	%xmm1, %xmm1
	cvtsi2ssl	(%rdx,%rsi,4), %xmm1
	mulss	%xmm0, %xmm1
	movss	%xmm1, (%rcx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_22
	jmp	LBB0_24
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%esi, %esi
	testb	$1, %bl
	jne	LBB0_18
	jmp	LBB0_19
LBB0_25:
	movq	-856(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_26
LBB0_1:
	xorl	%r12d, %r12d
LBB0_26:
	movq	_subband_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax,%r12,4), %rax
	movq	-824(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	_SAMPLES_PER_FRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subl	%eax, %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%ebx, %eax
	addq	$840, %rsp                      ## imm = 0x348
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_subband_tab,8,3                ## @subband_tab
	.comm	_ff_atrac_sf_table,8,3          ## @ff_atrac_sf_table
	.comm	_inv_max_quant,8,3              ## @inv_max_quant
	.comm	_SAMPLES_PER_FRAME,4,2          ## @SAMPLES_PER_FRAME
	.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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #816
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	w1, #5
	bl	_get_bits
	mov	x19, x0
	mov	x0, x21
	bl	_get_bits1
	tbnz	w19, #31, LBB0_20
; %bb.1:
	mov	x22, x0
	str	w19, [sp, #4]                   ; 4-byte Folded Spill
	add	w26, w19, #1
	sub	x19, x29, #224
	mov	x20, x26
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #3
	bl	_get_bits
	str	w0, [x19], #4
	subs	x20, x20, #1
	b.ne	LBB0_2
; %bb.3:
	add	x19, sp, #544
	sub	x23, x29, #224
	mov	x24, x26
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #4
	add	x23, x23, #4
	subs	x24, x24, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	w1, #6
	bl	_get_bits
	str	w0, [x19]
	b	LBB0_4
LBB0_7:
	mov	x27, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x9, x8, #32
	add	x8, sp, #32
	add	x8, x8, #32
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	sub	x28, x29, #224
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	lsl	w2, w23, #2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x0, x8, x19, lsl #2
	mov	w1, #0
	bl	_memset
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x27, x25
	cmp	x25, x26
	b.eq	LBB0_19
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
Lloh3:
	adrp	x8, _subband_tab@GOTPAGE
Lloh4:
	ldr	x8, [x8, _subband_tab@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	x9, x27, #2
	ldrsw	x19, [x8, x9]
	add	x25, x27, #1
	ldr	w20, [x8, x25, lsl #2]
	sub	w23, w20, w19
	ldrsw	x24, [x28, x9]
	cbz	w24, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x3, sp, #32
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	mov	x4, x23
	bl	_read_quant_spectral_coeffs
	cmp	w20, w19
	b.le	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh6:
	adrp	x8, _ff_atrac_sf_table@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ff_atrac_sf_table@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x9, sp, #544
	ldrsw	x9, [x9, x27, lsl #2]
	ldr	s0, [x8, x9, lsl #2]
Lloh9:
	adrp	x8, _inv_max_quant@GOTPAGE
Lloh10:
	ldr	x8, [x8, _inv_max_quant@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	s1, [x8, x24, lsl #2]
	fmul	s0, s0, s1
	cmp	w23, #16
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x8, #0
	mov	x9, x19
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	and	x8, x23, #0xfffffff0
	add	x9, x8, x19
	dup.4s	v1, v0[0]
	ldp	x11, x10, [sp, #8]              ; 16-byte Folded Reload
	add	x10, x10, x19, lsl #2
	mov	x12, x8
LBB0_15:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q2, q3, [x11, #-32]
	ldp	q4, q5, [x11], #64
	scvtf.4s	v2, v2
	scvtf.4s	v3, v3
	scvtf.4s	v4, v4
	scvtf.4s	v5, v5
	fmul.4s	v2, v1, v2
	fmul.4s	v3, v1, v3
	fmul.4s	v4, v1, v4
	fmul.4s	v5, v5, v0[0]
	stp	q2, q3, [x10, #-32]
	stp	q4, q5, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x8, x23
	b.eq	LBB0_9
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	add	x9, x10, x9, lsl #2
	sub	x10, x23, x8
	add	x11, sp, #32
	add	x8, x11, x8, lsl #2
LBB0_18:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s1, [x8], #4
	scvtf	s1, s1
	fmul	s1, s0, s1
	str	s1, [x9], #4
	subs	x10, x10, #1
	b.ne	LBB0_18
	b	LBB0_9
LBB0_19:
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
	b	LBB0_21
LBB0_20:
	mov	x26, #0
LBB0_21:
Lloh12:
	adrp	x8, _subband_tab@GOTPAGE
Lloh13:
	ldr	x8, [x8, _subband_tab@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldrsw	x8, [x8, x26, lsl #2]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x0, x9, x8, lsl #2
Lloh15:
	adrp	x9, _SAMPLES_PER_FRAME@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SAMPLES_PER_FRAME@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	sub	w8, w9, w8
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldur	x8, [x29, #-96]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x19
	add	sp, sp, #816
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_subband_tab,8,3                ; @subband_tab
	.comm	_ff_atrac_sf_table,8,3          ; @ff_atrac_sf_table
	.comm	_inv_max_quant,8,3              ; @inv_max_quant
	.comm	_SAMPLES_PER_FRAME,4,2          ; @SAMPLES_PER_FRAME
	.no_dead_strip	_decode_spectrum
.subsections_via_symbols
