	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_coeffs_coarse
_read_coeffs_coarse:                    ## @read_coeffs_coarse
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cmpl	$8, (%rdi)
	movl	$1, %eax
	movl	$7, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	cmpl	$0, 8(%rbx)
	jle	LBB0_13
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movslq	8(%rbx), %rax
	cmpq	%rax, %rsi
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movq	_at9_q_unit_to_coeff_idx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rsi,8), %r13
	shlq	$2, %r13
	addq	(%rbx), %r13
	movq	_at9_q_unit_to_coeff_cnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rsi,4), %edx
	movq	16(%rbx), %rax
	movslq	(%rax,%rsi,4), %rax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	jge	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rcx
	movslq	(%rcx,%rsi,4), %r8
	movq	_at9_q_unit_to_codebookidx@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rcx,%rsi,4), %rbx
	movq	_at9_huffman_coeffs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r8,8), %rcx
	movq	8(%rcx,%rax,8), %rsi
	movq	%rbx, %rcx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	shlq	$4, %rbx
	movb	(%rsi,%rbx), %cl
	sarl	%cl, %edx
	testl	%edx, %edx
	jle	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rcx,%r8,8), %rcx
	movq	8(%rcx,%rax,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rbx), %r15
	addq	$12, %r15
	xorl	%r12d, %r12d
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	cltq
	leaq	(%r13,%rax,4), %r13
	incl	%r12d
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%edx, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_12
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %esi
	movl	(%r15), %ecx
	movl	$9, %edx
	callq	_get_vlc2
	movl	%eax, %ebx
	movl	-8(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	-4(%r15), %ecx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%ebx, %edi
	movl	%ecx, %esi
	callq	_sign_extend
	movl	%eax, (%r13,%r14,4)
	movl	-4(%r15), %ecx
	sarl	%cl, %ebx
	incq	%r14
	movslq	-8(%r15), %rax
	cmpq	%rax, %r14
	jl	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%edx, %edx
	jle	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rax), %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %esi
	movq	%rdx, %r15
	callq	_get_bits
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_sign_extend
	movq	%r15, %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_5
	jmp	LBB0_12
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_at9_q_unit_to_coeff_idx,8,3    ## @at9_q_unit_to_coeff_idx
	.comm	_at9_q_unit_to_coeff_cnt,8,3    ## @at9_q_unit_to_coeff_cnt
	.comm	_at9_q_unit_to_codebookidx,8,3  ## @at9_q_unit_to_codebookidx
	.comm	_at9_huffman_coeffs,8,3         ## @at9_huffman_coeffs
	.no_dead_strip	_read_coeffs_coarse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_coeffs_coarse
_read_coeffs_coarse:                    ; @read_coeffs_coarse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x3
	mov	x21, x2
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x0]
	cmp	w8, #7
	mov	w8, #7
	csinc	w8, w8, wzr, le
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x0, [x2]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x12, #0
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [sp, #32]                  ; 8-byte Folded Reload
	add	x12, x12, #1
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	ldrsw	x8, [x21, #8]
	cmp	x12, x8
	b.ge	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _at9_q_unit_to_coeff_idx@GOTPAGE
Lloh1:
	ldr	x9, [x9, _at9_q_unit_to_coeff_idx@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x9, x12, lsl #3]
Lloh3:
	adrp	x9, _at9_q_unit_to_coeff_cnt@GOTPAGE
Lloh4:
	ldr	x9, [x9, _at9_q_unit_to_coeff_cnt@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x9]
	lsl	x9, x12, #2
	ldr	w20, [x11, x9]
	add	x27, x8, x10, lsl #2
	ldr	x8, [x21, #16]
	ldr	w8, [x8, x9]
	add	w22, w8, #1
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w8, w10
	str	x12, [sp, #32]                  ; 8-byte Folded Spill
	b.ge	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #24]
	ldrsw	x8, [x8, x9]
Lloh6:
	adrp	x10, _at9_q_unit_to_codebookidx@GOTPAGE
Lloh7:
	ldr	x10, [x10, _at9_q_unit_to_codebookidx@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldrsw	x10, [x10, x9]
Lloh9:
	adrp	x9, _at9_huffman_coeffs@GOTPAGE
Lloh10:
	ldr	x9, [x9, _at9_huffman_coeffs@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x9, [x9, x8, lsl #3]
	ldr	x9, [x9, w22, sxtw #3]
	str	x10, [sp, #40]                  ; 8-byte Folded Spill
	lsl	x10, x10, #4
	ldr	w10, [x9, x10]
	asr	w21, w20, w10
	cmp	w21, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	sxtw	x10, w22
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x11, [x11, #8]
	ldr	x8, [x11, x8, lsl #3]
	ldr	x26, [x8, x10, lsl #3]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x9, x8, lsl #4
	add	x23, x8, #12
	add	x20, x8, #4
	add	x24, x8, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x27, x27, w8, sxtw #2
	add	w25, w25, #1
	cmp	w25, w21
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w1, [x26, x8, lsl #2]
	ldr	w3, [x23]
	mov	x0, x19
	mov	w2, #9
	bl	_get_vlc2
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x22, x0
	mov	x28, #0
	ldr	w1, [x24]
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_sign_extend
	str	w0, [x27, x28, lsl #2]
	ldr	w1, [x24]
	asr	w22, w22, w1
	add	x28, x28, #1
	ldrsw	x8, [x20]
	cmp	x28, x8
	b.lt	LBB0_9
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, #1
	b.lt	LBB0_2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x22
	bl	_get_bits
	mov	x1, x22
	bl	_sign_extend
	str	w0, [x27], #4
	subs	x20, x20, #1
	b.ne	LBB0_11
	b	LBB0_2
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_at9_q_unit_to_coeff_idx,8,3    ; @at9_q_unit_to_coeff_idx
	.comm	_at9_q_unit_to_coeff_cnt,8,3    ; @at9_q_unit_to_coeff_cnt
	.comm	_at9_q_unit_to_codebookidx,8,3  ; @at9_q_unit_to_codebookidx
	.comm	_at9_huffman_coeffs,8,3         ; @at9_huffman_coeffs
	.no_dead_strip	_read_coeffs_coarse
.subsections_via_symbols
