	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_channel
_decode_channel:                        ## @decode_channel
	.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
	movl	%r9d, %r15d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	40(%rdi), %r13
	movslq	%r8d, %rcx
	movslq	%edx, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,4), %r14
	movl	36(%r13,%r14,8), %esi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, 8(%r12)
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	leal	-2(%rax), %ecx
	movl	%ecx, %edx
	notl	%edx
	shrl	$6, %ecx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ecx, 12(%rsi)
	orl	$63, %edx
	addl	%eax, %edx
	movl	%edx, 16(%rsi)
LBB0_2:
	movq	_FILTER_RAW@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_7
## %bb.3:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_get_bits
	movl	%eax, (%r12,%r14,4)
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_5
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, (%rax,%rcx,4)
	jmp	LBB0_26
LBB0_7:
	movl	32(%r13,%r14,8), %esi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	movq	%r13, %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$127, %edx
	movl	$4, %ecx
	callq	_extend_code
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx,%r13,4)
	movl	8(%rbx), %eax
	movq	_FILTER_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	shll	$2, %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_26
LBB0_9:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	cmpl	$2, %eax
	jl	LBB0_18
## %bb.10:
	cmpl	$0, 16(%rbx)
	jle	LBB0_18
## %bb.11:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx,%rax,8), %rax
	movslq	12(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$12, %eax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	negl	%edi
	callq	_av_log2
	cmpl	$4, %eax
	movl	$4, %ecx
	cmovgel	%ecx, %eax
	notl	%eax
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r15
	movslq	16(%r14), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	40(%rax,%r14,8), %edx
	movl	44(%rax,%r14,8), %esi
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$21, %edx
	movl	%r13d, %ecx
	callq	_extend_code
	testl	%r14d, %r14d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	$0, %ecx
	cmovel	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	subl	%r12d, %ecx
	movl	%ecx, %r12d
	addl	%eax, %r12d
	movq	32(%r14), %rax
	movl	%r12d, (%rax,%r15,4)
	movl	%r12d, %edi
	movl	%r13d, %ecx
	sarl	%cl, %edi
	testl	%edi, %edi
	js	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	callq	_av_log2
	cmpl	$4, %eax
	movl	$4, %ecx
	cmovgel	%ecx, %eax
	incl	%eax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_18:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	16(%r12,%rbx,8), %edx
	movl	20(%r12,%rbx,8), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %ecx
	callq	_get_vlc2
	movq	%rax, %r15
	cmpl	$15, %r15d
	jl	LBB0_20
## %bb.19:
	movl	%r15d, %eax
	movl	$3435973837, %edi               ## imm = 0xCCCCCCCD
	imulq	%rax, %rdi
	shrq	$34, %rdi
	addl	$-3, %edi
	shrl	%edi
	movl	$10, -56(%rbp)                  ## 4-byte Folded Spill
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_av_clip
	movl	%eax, %r14d
	cmpl	$10, %eax
	setge	%al
	imull	$-858993459, %r15d, %ecx        ## imm = 0xCCCCCCCD
	addl	$1717986918, %ecx               ## imm = 0x66666666
	cmpl	$858993459, %ecx                ## imm = 0x33333333
	setae	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	subl	%eax, %r14d
	leal	-15(%r15), %eax
	shlq	$3, %rax
	addq	8(%r12,%rbx,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$21, -44(%rbp)                  ## 4-byte Folded Spill
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_22
	jmp	LBB0_26
LBB0_20:
	movslq	%r15d, %rax
	shlq	$3, %rax
	addq	(%r12,%rbx,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	$13, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$6, -56(%rbp)                   ## 4-byte Folded Spill
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_26
LBB0_22:
	xorl	%r12d, %r12d
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	addq	$2, %r12
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	-44(%rbp)                       ## 4-byte Folded Reload
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r14d, %r15d
	movq	%rbx, %r14
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_extend_code
	movl	%r15d, %ecx
	shll	%cl, %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx,%r12,4)
	movq	%r14, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r15d, %r14d
	xorl	%ecx, %ecx
	callq	_extend_code
	movl	%r14d, %ecx
	shll	%cl, %eax
	movl	%eax, 4(%rbx,%r12,4)
	testl	%r15d, %r15d
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_get_bits
	orl	%eax, (%rbx,%r12,4)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_get_bits
	orl	%eax, 4(%rbx,%r12,4)
	jmp	LBB0_25
LBB0_26:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FILTER_RAW,4,2                 ## @FILTER_RAW
	.comm	_FILTER_NONE,4,2                ## @FILTER_NONE
	.no_dead_strip	_decode_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_channel
_decode_channel:                        ; @decode_channel
	.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	x23, x5
	mov	x24, x4
	mov	x21, x3
	mov	x25, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x26, [x0, #40]
	ldr	x8, [x0]
	ldr	x20, [x8, w2, sxtw #3]
	mov	w8, #40
	smaddl	x8, w4, w8, x26
	ldr	w1, [x8, #36]
	mov	x0, x19
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
	str	w0, [x22, #8]
	subs	w8, w0, #2
	b.lt	LBB0_2
; %bb.1:
	mvn	w9, w8
	lsr	w8, w8, #6
	orr	w9, w9, #0x3f
	add	w9, w9, w0
	stp	w8, w9, [x22, #12]
LBB0_2:
	sxtw	x25, w25
Lloh0:
	adrp	x8, _FILTER_RAW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FILTER_RAW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_7
; %bb.3:
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w21, w21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_get_bits
	str	w0, [x20], #4
	subs	x21, x21, #1
	b.ne	LBB0_5
LBB0_6:
	ldr	x8, [x22, #24]
	str	wzr, [x8, x25, lsl #2]
	b	LBB0_25
LBB0_7:
	sxtw	x24, w24
	mov	w8, #40
	madd	x8, x24, x8, x26
	ldr	w1, [x8, #32]
	mov	x0, x19
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
	mov	x1, x0
	ldr	x8, [x22, #24]
	lsl	x23, x25, #2
	str	w1, [x8, x23]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #127
	mov	w3, #4
	bl	_extend_code
	ldr	x8, [x22, #24]
	str	w0, [x8, x23]
	ldr	w8, [x22, #8]
Lloh3:
	adrp	x9, _FILTER_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FILTER_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
	lsl	w2, w21, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	b	LBB0_25
LBB0_9:
	stp	x24, x26, [sp]                  ; 16-byte Folded Spill
	cmp	w8, #2
	b.lt	LBB0_18
; %bb.10:
	ldr	w8, [x22, #16]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.11:
	mov	x24, #0
	mov	w27, #0
	mov	w26, #0
	mov	w8, #40
	ldp	x10, x9, [sp]                   ; 16-byte Folded Reload
	madd	x8, x10, x8, x9
	ldr	x8, [x8, #24]
	ldrsw	x23, [x22, #12]
	ldr	x8, [x8, x23, lsl #3]
	add	x28, x8, #40
	mov	w8, #12
	lsl	w25, w8, w23
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	neg	w0, w0
	bl	_av_log2
	cmp	w0, #4
	mov	w8, #4
	csel	w8, w0, w8, lt
	mvn	w26, w8
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22, #16]
	cmp	x24, x8
	b.ge	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x28, w26, sxtw #3
	ldp	w2, w1, [x8]
	mov	x0, x19
	mov	w3, #2
	bl	_get_vlc2
	mov	x1, x0
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #21
	mov	x3, x23
	bl	_extend_code
	cmp	w26, #0
	csel	w8, w25, wzr, eq
	sub	w8, w8, w27
	add	w27, w8, w0
	ldr	x8, [x22, #32]
	str	w27, [x8, x24, lsl #2]
	asr	w0, w27, w23
	tbnz	w0, #31, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cbz	w0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_av_log2
	cmp	w0, #4
	mov	w8, #4
	csel	w8, w0, w8, lt
	add	w26, w8, #1
	b	LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w26, #0
	b	LBB0_13
LBB0_18:
	mov	w8, #40
	ldp	x26, x25, [sp]                  ; 16-byte Folded Reload
	madd	x8, x26, x8, x25
	ldp	w2, w1, [x8, #16]
	mov	x0, x19
	mov	w3, #2
	bl	_get_vlc2
	mov	x24, x0
	cmp	w24, #15
	b.lt	LBB0_20
; %bb.19:
	mov	w8, #52429
	movk	w8, #52428, lsl #16
	umull	x8, w24, w8
	lsr	x23, x8, #34
	sub	w8, w23, #3
	lsr	w0, w8, #1
	mov	w22, #10
	mov	w1, #0
	mov	w2, #10
	bl	_av_clip
	add	w8, w23, w23, lsl #2
	sub	w8, w24, w8
	cmp	w0, #9
	ccmp	w8, #2, #4, gt
	cset	w8, ne
	sub	w23, w0, w8
	mov	w8, #40
	madd	x8, x26, x8, x25
	ldr	x8, [x8, #8]
	sub	w9, w24, #15
	add	x25, x8, w9, uxtw #3
	mov	w26, #21
	cmp	w21, #1
	b.ge	LBB0_21
	b	LBB0_25
LBB0_20:
	mov	w23, #0
	mov	w8, #40
	mul	x8, x26, x8
	ldr	x8, [x25, x8]
	lsl	x9, x24, #32
	add	x25, x8, x9, asr #29
	mov	w26, #13
	mov	w22, #6
	cmp	w21, #1
	b.lt	LBB0_25
LBB0_21:
	mov	x27, #0
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x27, x27, #2
	cmp	w27, w21
	b.ge	LBB0_25
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x25]
	mov	x0, x19
	mov	w3, #2
	bl	_get_vlc2
	sdiv	w1, w0, w26
	msub	w24, w1, w26, w0
	mov	x0, x19
	mov	x2, x22
	mov	w3, #0
	bl	_extend_code
	lsl	w8, w0, w23
	add	x28, x20, x27, lsl #2
	str	w8, [x28]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	w3, #0
	bl	_extend_code
	lsl	w8, w0, w23
	str	w8, [x28, #4]
	cbz	w23, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_get_bits
	lsl	x8, x27, #2
	ldr	w9, [x20, x8]
	orr	w9, w9, w0
	str	w9, [x20, x8]
	mov	x0, x19
	mov	x1, x23
	bl	_get_bits
	ldr	w8, [x28, #4]
	orr	w8, w8, w0
	str	w8, [x28, #4]
	b	LBB0_22
LBB0_25:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FILTER_RAW,4,2                 ; @FILTER_RAW
	.comm	_FILTER_NONE,4,2                ; @FILTER_NONE
	.no_dead_strip	_decode_channel
.subsections_via_symbols
