	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_tones_frequency
_decode_tones_frequency:                ## @decode_tones_frequency
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.1:
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jle	LBB0_34
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	movslq	(%rax), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_34
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_33
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, %rbx
	shlq	$4, %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_33
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	jle	LBB0_33
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rbx), %r14
	movq	8(%rax), %rax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi,%rbx), %rcx
	leaq	(%rax,%rcx,4), %r15
	movq	8(%rdx,%rbx), %rcx
	leaq	(%rax,%rcx,4), %r12
	addq	%rsi, %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_8 Depth=2
	decq	%rcx
	movq	%rcx, %rdx
LBB0_30:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	(%r15,%rdx,4), %ecx
LBB0_31:                                ##   in Loop: Header=BB0_8 Depth=2
	addl	%eax, %ecx
	andl	$1023, %ecx                     ## imm = 0x3FF
	movl	%ecx, (%r12,%r13,4)
	incq	%r13
	movslq	(%r14), %rax
	cmpq	%rax, %r13
	jge	LBB0_32
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_tone_vlc_tabs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	48(%rax), %edx
	movl	52(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, %edi
	movl	$8, %esi
	callq	_sign_extend
	movslq	(%rbx), %rcx
	movq	%r13, %rdx
	cmpq	%rcx, %r13
	jl	LBB0_30
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	testl	%ecx, %ecx
	jne	LBB0_29
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	xorl	%ecx, %ecx
	jmp	LBB0_31
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jle	LBB0_34
## %bb.12:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_34
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx,%r14,4)
	je	LBB0_28
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdx
	shlq	$4, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rdx), %ecx
	testl	%ecx, %ecx
	je	LBB0_28
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rdx), %r13
	movq	8(%rsi,%rdx), %r15
	shlq	$2, %r15
	addq	8(%rax), %r15
	cmpl	$2, %ecx
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_17
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_get_bits
	movslq	(%r13), %rbx
	movl	%eax, -4(%r15,%rbx,4)
	cmpq	$2, %rbx
	jl	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=1
	addl	$-2, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%rbx,4), %edi
	callq	_av_log2
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movq	%r12, %rdi
	callq	_get_bits
	movl	%eax, -4(%r15,%rbx,4)
	decq	%rbx
	jne	LBB0_25
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, (%r13)
	jle	LBB0_28
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_get_bits
	movl	%eax, (%r15)
	cmpl	$2, (%r13)
	jl	LBB0_28
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$1, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=2
	movl	$1023, %edi                     ## imm = 0x3FF
	subl	%eax, %edi
	callq	_av_log2
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	movl	$-1, %edx
	movl	%r12d, %ecx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	shll	%cl, %edx
	addl	%edx, %eax
	addl	$1024, %eax                     ## imm = 0x400
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=2
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	movslq	(%r13), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_28
LBB0_20:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$511, %eax                      ## imm = 0x1FF
	jg	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_get_bits
	jmp	LBB0_27
LBB0_34:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tone_vlc_tabs,8,3              ## @tone_vlc_tabs
	.no_dead_strip	_decode_tones_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_tones_frequency
_decode_tones_frequency:                ; @decode_tones_frequency
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x1, #8]
	ldr	x9, [x8, w2, sxtw #3]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	cbz	w2, LBB0_15
; %bb.1:
	ldr	x8, [x8]
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	x0, x21
	bl	_get_bits1
	cbz	w0, LBB0_15
; %bb.2:
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_33
; %bb.3:
	mov	x24, #0
Lloh0:
	adrp	x25, _tone_vlc_tabs@GOTPAGE
Lloh1:
	ldr	x25, [x25, _tone_vlc_tabs@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x9, [x8]
	cmp	x24, x9
	b.ge	LBB0_33
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w9, [x19, x24, lsl #2]
	cbz	w9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x26, x9, x24, lsl #4
	ldr	w9, [x26]
	cbz	w9, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, #0
	ldr	x8, [x8, #8]
	lsl	x9, x24, #4
	ldr	x11, [sp]                       ; 8-byte Folded Reload
	add	x10, x11, x9
	ldr	x10, [x10, #8]
	add	x28, x8, x10, lsl #2
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x9, x10, x9
	ldr	x9, [x9, #8]
	add	x22, x8, x9, lsl #2
	add	x23, x11, x24, lsl #4
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	w8, [x28, x9, lsl #2]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	w8, w8, w0
	and	w8, w8, #0x3ff
	str	w8, [x22, x27, lsl #2]
	add	x27, x27, #1
	ldrsw	x8, [x26]
	cmp	x27, x8
	b.ge	LBB0_4
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	ldp	w2, w1, [x8, #48]
	mov	x0, x21
	mov	w3, #1
	bl	_get_vlc2
	mov	w1, #8
	bl	_sign_extend
	ldrsw	x8, [x23]
	mov	x9, x27
	cmp	x27, x8
	b.lt	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	cbz	w8, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	sub	x9, x8, #1
	b	LBB0_10
LBB0_15:
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_33
; %bb.16:
	mov	x24, #0
	mov	w25, #1023
	mov	w26, #-1
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x24, x24, #1
	ldr	x8, [x20]
	ldrsw	x9, [x8]
	cmp	x24, x9
	b.ge	LBB0_33
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
                                        ;     Child Loop BB0_31 Depth 2
	ldr	w9, [x19, x24, lsl #2]
	cbz	w9, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x28, x9, x24, lsl #4
	ldr	w9, [x28]
	cbz	w9, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x8, #8]
	ldr	x10, [x28, #8]
	add	x27, x8, x10, lsl #2
	cmp	w9, #1
	b.le	LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x21
	bl	_get_bits1
	cbz	w0, LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x28]
	cbz	w8, LBB0_17
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x21
	mov	w1, #10
	bl	_get_bits
	ldr	w8, [x28]
	sub	w9, w8, #1
	str	w0, [x27, w9, sxtw #2]
	subs	w8, w8, #2
	b.lt	LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=1
	lsl	x22, x8, #2
LBB0_25:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x23, x27, x22
	ldr	w0, [x23, #4]
	bl	_av_log2
	add	w1, w0, #1
	mov	x0, x21
	bl	_get_bits
	str	w0, [x23]
	sub	x22, x22, #4
	cmn	x22, #4
	b.ne	LBB0_25
	b	LBB0_17
LBB0_26:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x21
	mov	w1, #10
	bl	_get_bits
	str	w0, [x27]
	ldr	w8, [x28]
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.28:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w23, #1
	b	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_31 Depth=2
	sub	w0, w25, w0
	bl	_av_log2
	add	w22, w0, #1
	mov	x0, x21
	mov	x1, x22
	bl	_get_bits
	lsl	w8, w26, w22
	add	w8, w0, w8
	add	w0, w8, #1024
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=2
	str	w0, [x27, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x8, [x28]
	cmp	x23, x8
	b.ge	LBB0_17
LBB0_31:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w0, #511
	b.gt	LBB0_29
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=2
	mov	x0, x21
	mov	w1, #10
	bl	_get_bits
	b	LBB0_30
LBB0_33:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tone_vlc_tabs,8,3              ; @tone_vlc_tabs
	.no_dead_strip	_decode_tones_frequency
.subsections_via_symbols
