	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_band_numwavs
_decode_band_numwavs:                   ## @decode_band_numwavs
	.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	%r8, %r14
	movq	%rcx, %r12
	movq	%rsi, %r15
	movq	8(%rsi), %rax
	movslq	%edx, %rsi
	movq	(%rax,%rsi,8), %r13
	movq	(%rax), %rbx
	incl	%esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_get_bits
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	movl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_39
## %bb.19:
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_32
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r12,%rbx,4)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, (%r13,%rbx,8)
	movq	(%r15), %rax
	jmp	LBB0_22
LBB0_2:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jg	LBB0_33
	jmp	LBB0_39
LBB0_12:
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_39
## %bb.13:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_tone_vlc_tabs@GOTPCREL(%rip), %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r12,%rbx,4)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, (%r13,%rbx,8)
	movq	(%r15), %rax
	jmp	LBB0_16
LBB0_6:
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_39
## %bb.7:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movslq	(%rax), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r12,%r14,4)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_tone_vlc_tabs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%rax), %edx
	movl	20(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, %edi
	movl	$3, %esi
	callq	_sign_extend
	addl	(%rbx,%r14,8), %eax
	andl	$15, %eax
	movl	%eax, (%r13,%r14,8)
	movq	(%r15), %rax
	jmp	LBB0_10
LBB0_3:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_39
## %bb.4:
	cmpl	$1, %ecx
	jne	LBB0_23
## %bb.5:
	xorl	%edx, %edx
LBB0_29:
	testb	$1, %cl
	je	LBB0_32
## %bb.30:
	cmpl	$0, (%r12,%rdx,4)
	je	LBB0_32
## %bb.31:
	movl	(%rbx,%rdx,8), %esi
	movl	%esi, (%r13,%rdx,8)
	testl	%ecx, %ecx
	jg	LBB0_33
	jmp	LBB0_39
LBB0_17:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_32:
	testl	%ecx, %ecx
	jle	LBB0_39
LBB0_33:
	movl	%ecx, %edx
	xorl	%esi, %esi
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_34 Depth=1
	incq	%rsi
	cmpq	%rsi, %rdx
	je	LBB0_39
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r12,%rsi,4)
	je	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	4(%rax), %edi
	movl	(%r13,%rsi,8), %ecx
	addl	%edi, %ecx
	cmpl	$49, %ecx
	jge	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	%edi, 4(%r13,%rsi,8)
	movl	%ecx, 4(%rax)
	jmp	LBB0_38
LBB0_36:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_40
LBB0_11:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testl	%ecx, %ecx
	jg	LBB0_33
LBB0_39:
	xorl	%eax, %eax
LBB0_40:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	%ecx, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_29
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r12,%rdx,4)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	(%rbx,%rdx,8), %edi
	movl	%edi, (%r13,%rdx,8)
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$0, 4(%r12,%rdx,4)
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	8(%rbx,%rdx,8), %edi
	movl	%edi, 8(%r13,%rdx,8)
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_tone_vlc_tabs,8,3              ## @tone_vlc_tabs
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many tones: %d (max. 48), frame: %d!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_band_numwavs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_band_numwavs
_decode_band_numwavs:                   ; @decode_band_numwavs
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x1, #8]
	ldr	x23, [x8, w2, sxtw #3]
	ldr	x24, [x8]
	add	w1, w2, #1
	bl	_get_bits
	cmp	w0, #3
	b.hi	LBB0_7
; %bb.1:
	and	x8, x0, #0xffffffff
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:
	ldr	x8, [x21]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.3:
	mov	x24, #0
	mov	x25, x23
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x9, [x8]
	add	x25, x25, #8
	cmp	x24, x9
	b.ge	LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, x24, lsl #2]
	cbz	w9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	w1, #4
	bl	_get_bits
	str	w0, [x25]
	ldr	x8, [x21]
	b	LBB0_4
LBB0_7:
	ldr	x8, [x21]
	ldr	w9, [x8]
	b	LBB0_19
LBB0_8:
	ldr	x8, [x21]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.9:
	mov	x24, #0
Lloh2:
	adrp	x25, _tone_vlc_tabs@GOTPAGE
Lloh3:
	ldr	x25, [x25, _tone_vlc_tabs@GOTPAGEOFF]
	mov	x26, x23
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #1
	ldrsw	x9, [x8]
	add	x26, x26, #8
	cmp	x24, x9
	b.ge	LBB0_18
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, x24, lsl #2]
	cbz	w9, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x25]
	ldp	w2, w1, [x8, #8]
	mov	x0, x22
	mov	w3, #1
	bl	_get_vlc2
	str	w0, [x26]
	ldr	x8, [x21]
	b	LBB0_10
LBB0_13:
	ldr	x8, [x21]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.14:
	mov	x25, #0
Lloh4:
	adrp	x26, _tone_vlc_tabs@GOTPAGE
Lloh5:
	ldr	x26, [x26, _tone_vlc_tabs@GOTPAGEOFF]
	mov	x27, x23
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x25, x25, #1
	ldrsw	x9, [x8]
	add	x24, x24, #8
	add	x27, x27, #8
	cmp	x25, x9
	b.ge	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, x25, lsl #2]
	cbz	w9, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x26]
	ldp	w2, w1, [x8, #16]
	mov	x0, x22
	mov	w3, #1
	bl	_get_vlc2
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #3
	bl	_sign_extend
	ldr	w8, [x24]
	add	w8, w8, w0
	and	w8, w8, #0xf
	str	w8, [x27]
	ldr	x8, [x21]
	b	LBB0_15
LBB0_18:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_19:
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.20:
	mov	w9, w9
	add	x10, x23, #4
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x20, x20, #4
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_30
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x20]
	cbz	w11, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w11, [x8, #4]
	ldur	w12, [x10, #-4]
	add	w3, w12, w11
	cmp	w3, #49
	b.ge	LBB0_32
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	str	w11, [x10]
	str	w3, [x8, #4]
	b	LBB0_21
LBB0_25:
	ldr	x8, [x21]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.26:
	mov	x10, x9
	mov	x11, x23
	mov	x12, x20
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x12, x12, #4
	add	x24, x24, #8
	add	x11, x11, #8
	subs	x10, x10, #1
	b.eq	LBB0_19
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	cbz	w13, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	w13, [x24]
	str	w13, [x11]
	b	LBB0_27
LBB0_30:
	mov	w0, #0
LBB0_31:
	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_32:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w4, [x19]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_31
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
                                        ; -- End function
	.comm	_tone_vlc_tabs,8,3              ; @tone_vlc_tabs
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many tones: %d (max. 48), frame: %d!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_band_numwavs
.subsections_via_symbols
