	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idx_to_quant
_idx_to_quant:                          ## @idx_to_quant
	.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
	movl	%edx, %r13d
	leal	1(%r13), %eax
	cmpl	$18, %eax
	ja	LBB0_17
## %bb.1:
	movq	%rcx, %r15
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmpq	*%rax
LBB0_14:
	leal	-2(%r13), %ecx
	movl	$-1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	_SAMPLES_PER_BAND@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_17
## %bb.15:
	incl	%ebx
	decl	%r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rdi
	movl	%r13d, %esi
	callq	_get_bits
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addl	%ebx, %eax
	movl	%eax, (%r15,%r14,4)
	incq	%r14
	cmpl	(%r12), %r14d
	jl	LBB0_16
	jmp	LBB0_17
LBB0_11:
	movq	%rsi, %rdi
	callq	_get_bits1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_SAMPLES_PER_BAND@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_17
## %bb.12:
	decl	%r13d
	movslq	%eax, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_quant_vlc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax,%rbx,4), %esi
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_mpc7_quant_vlc_off@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subl	(%rcx,%r13,8), %eax
	movl	%eax, (%r15,%r12,4)
	incq	%r12
	cmpl	(%r14), %r12d
	jl	LBB0_13
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_SAMPLES_PER_BAND@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_17
## %bb.3:
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_av_lfg_get
	andl	$1020, %eax                     ## imm = 0x3FC
	addl	$-510, %eax                     ## imm = 0xFE02
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	cmpl	(%r14), %ebx
	jl	LBB0_4
	jmp	LBB0_17
LBB0_5:
	movq	%rsi, %rdi
	callq	_get_bits1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_SAMPLES_PER_BAND@GOTPCREL(%rip), %r14
	cmpl	$3, (%r14)
	jl	LBB0_17
## %bb.6:
	movslq	%eax, %r13
	xorl	%ebx, %ebx
	movq	_mpc7_idx32@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_quant_vlc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %esi
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_mpc7_idx30@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, (%r15)
	movq	_mpc7_idx31@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, 4(%r15)
	movq	(%r12), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 8(%r15)
	incl	%ebx
	movslq	(%r14), %rax
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	addq	$12, %r15
	cmpl	%eax, %ebx
	jl	LBB0_7
	jmp	LBB0_17
LBB0_8:
	movq	%rsi, %rdi
	callq	_get_bits1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_SAMPLES_PER_BAND@GOTPCREL(%rip), %r14
	cmpl	$2, (%r14)
	jl	LBB0_17
## %bb.9:
	movslq	%eax, %r13
	xorl	%ebx, %ebx
	movq	_mpc7_idx51@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_quant_vlc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	(%rax,%r13,4), %esi
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_mpc7_idx50@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, (%r15,%rbx,8)
	movq	(%r12), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 4(%r15,%rbx,8)
	movl	(%r14), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	incq	%rbx
	cmpl	%ecx, %ebx
	jl	LBB0_10
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_17
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_SAMPLES_PER_BAND,4,2           ## @SAMPLES_PER_BAND
	.comm	_quant_vlc,8,3                  ## @quant_vlc
	.comm	_mpc7_idx30,8,3                 ## @mpc7_idx30
	.comm	_mpc7_idx31,8,3                 ## @mpc7_idx31
	.comm	_mpc7_idx32,8,3                 ## @mpc7_idx32
	.comm	_mpc7_idx50,8,3                 ## @mpc7_idx50
	.comm	_mpc7_idx51,8,3                 ## @mpc7_idx51
	.comm	_mpc7_quant_vlc_off,8,3         ## @mpc7_quant_vlc_off
	.no_dead_strip	_idx_to_quant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idx_to_quant
_idx_to_quant:                          ; @idx_to_quant
	.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
	add	w8, w2, #1
	cmp	w8, #18
	b.hi	LBB0_8
; %bb.1:
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x23, _SAMPLES_PER_BAND@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SAMPLES_PER_BAND@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x24, #0
	sub	w8, w22, #2
	mov	w9, #-1
	lsl	w8, w9, w8
	add	w25, w8, #1
	sub	w21, w22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_get_bits
	add	w8, w25, w0
	str	w8, [x19, x24, lsl #2]
	ldr	w8, [x23]
	add	x24, x24, #1
	cmp	w24, w8
	b.lt	LBB0_4
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_get_bits1
                                        ; kill: def $w0 killed $w0 def $x0
Lloh4:
	adrp	x21, _SAMPLES_PER_BAND@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SAMPLES_PER_BAND@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x23, #0
	sub	w8, w22, #1
	sxtw	x22, w0
Lloh6:
	adrp	x24, _quant_vlc@GOTPAGE
Lloh7:
	ldr	x24, [x24, _quant_vlc@GOTPAGEOFF]
	lsl	x25, x8, #3
Lloh8:
	adrp	x26, _mpc7_quant_vlc_off@GOTPAGE
Lloh9:
	ldr	x26, [x26, _mpc7_quant_vlc_off@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, x25]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x20
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
	ldr	x8, [x26]
	ldr	w8, [x8, x25]
	sub	w8, w0, w8
	str	w8, [x19, x23, lsl #2]
	ldr	w8, [x21]
	add	x23, x23, #1
	cmp	w23, w8
	b.lt	LBB0_7
LBB0_8:
	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_9:
Lloh10:
	adrp	x20, _SAMPLES_PER_BAND@GOTPAGE
Lloh11:
	ldr	x20, [x20, _SAMPLES_PER_BAND@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:
	mov	x21, x0
	mov	x22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_av_lfg_get
	and	w8, w0, #0x3fc
	sub	w8, w8, #510
	str	w8, [x19, x22, lsl #2]
	ldr	w8, [x20]
	add	x22, x22, #1
	cmp	w22, w8
	b.lt	LBB0_11
	b	LBB0_8
LBB0_12:
	mov	x0, x20
	bl	_get_bits1
                                        ; kill: def $w0 killed $w0 def $x0
Lloh12:
	adrp	x21, _SAMPLES_PER_BAND@GOTPAGE
Lloh13:
	ldr	x21, [x21, _SAMPLES_PER_BAND@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.13:
	mov	w22, #0
Lloh14:
	adrp	x23, _quant_vlc@GOTPAGE
Lloh15:
	ldr	x23, [x23, _quant_vlc@GOTPAGEOFF]
Lloh16:
	adrp	x24, _mpc7_idx30@GOTPAGE
Lloh17:
	ldr	x24, [x24, _mpc7_idx30@GOTPAGEOFF]
	sxtw	x25, w0
Lloh18:
	adrp	x26, _mpc7_idx31@GOTPAGE
Lloh19:
	ldr	x26, [x26, _mpc7_idx31@GOTPAGEOFF]
	mov	w27, #21846
	movk	w27, #21845, lsl #16
Lloh20:
	adrp	x28, _mpc7_idx32@GOTPAGE
Lloh21:
	ldr	x28, [x28, _mpc7_idx32@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x20
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
	ldr	x8, [x24]
	sbfiz	x9, x0, #2, #32
	ldr	w8, [x8, x9]
	str	w8, [x19]
	ldr	x8, [x26]
	ldr	w8, [x8, x9]
	str	w8, [x19, #4]
	ldr	x8, [x28]
	ldr	w8, [x8, x9]
	str	w8, [x19, #8]
	add	w22, w22, #1
	ldrsw	x8, [x21]
	mul	x8, x8, x27
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	x19, x19, #12
	add	w8, w8, w9
	cmp	w22, w8
	b.lt	LBB0_14
	b	LBB0_8
LBB0_15:
	mov	x0, x20
	bl	_get_bits1
                                        ; kill: def $w0 killed $w0 def $x0
Lloh22:
	adrp	x21, _SAMPLES_PER_BAND@GOTPAGE
Lloh23:
	ldr	x21, [x21, _SAMPLES_PER_BAND@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.16:
	mov	w22, #0
	sxtw	x23, w0
Lloh24:
	adrp	x24, _quant_vlc@GOTPAGE
Lloh25:
	ldr	x24, [x24, _quant_vlc@GOTPAGEOFF]
Lloh26:
	adrp	x25, _mpc7_idx50@GOTPAGE
Lloh27:
	ldr	x25, [x25, _mpc7_idx50@GOTPAGEOFF]
Lloh28:
	adrp	x26, _mpc7_idx51@GOTPAGE
Lloh29:
	ldr	x26, [x26, _mpc7_idx51@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x20
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
	ldr	x8, [x25]
	sbfiz	x9, x0, #2, #32
	ldr	w8, [x8, x9]
	str	w8, [x19]
	ldr	x8, [x26]
	ldr	w8, [x8, x9]
	str	w8, [x19, #4]
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	x19, x19, #8
	cmp	w22, w8, asr #1
	b.lt	LBB0_17
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_SAMPLES_PER_BAND,4,2           ; @SAMPLES_PER_BAND
	.comm	_quant_vlc,8,3                  ; @quant_vlc
	.comm	_mpc7_idx30,8,3                 ; @mpc7_idx30
	.comm	_mpc7_idx31,8,3                 ; @mpc7_idx31
	.comm	_mpc7_idx32,8,3                 ; @mpc7_idx32
	.comm	_mpc7_idx50,8,3                 ; @mpc7_idx50
	.comm	_mpc7_idx51,8,3                 ; @mpc7_idx51
	.comm	_mpc7_quant_vlc_off,8,3         ; @mpc7_quant_vlc_off
	.no_dead_strip	_idx_to_quant
.subsections_via_symbols
