	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	64(%rdi), %rbx
	leaq	56(%rdi), %r12
	movq	48(%rdi), %rax
	movslq	%esi, %r15
	movq	(%rax,%r15,8), %r13
	movl	(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_get_bits_esc4
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	(%rbx), %rsi
	subq	%rax, %rsi
	jle	LBB0_14
## %bb.1:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	decl	%ebx
	movq	%r12, %rdi
	callq	_get_sbits
	movl	%eax, (%r13)
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	%ecx, 24(%r14)
	xorl	%edx, %edx
	testl	%eax, %eax
	movl	%ebx, %r15d
	jle	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	callq	_get_bits_left
	movl	24(%r14), %ecx
	leal	(%rcx,%rcx,2), %edx
	addl	%edx, %edx
	addl	$-6, %edx
	cmpl	%edx, %eax
	jl	LBB0_14
## %bb.4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	cmpl	$2, %ecx
	jl	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, %ecx
	subl	%ebx, %ecx
	imull	40(%r14), %ecx
	movq	32(%r14), %rdx
	movl	%ecx, (%rdx,%r12,4)
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	subl	%ecx, %r15d
	incq	%r12
	movslq	24(%r14), %rcx
	decq	%rcx
	movl	%eax, %ebx
	cmpq	%rcx, %r12
	jl	LBB0_5
LBB0_7:
	testl	%r15d, %r15d
	movl	$0, %edx
	jg	LBB0_8
LBB0_14:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_15:
	movl	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r12d, %r12d
LBB0_8:
	movq	32(%r14), %rax
	movl	%r12d, %ecx
	movl	%r15d, (%rax,%rcx,4)
	cmpl	$0, 24(%r14)
	jle	LBB0_15
## %bb.9:
	addq	$4, %r13
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_decode_subframe
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%r14), %rax
	movslq	(%rax,%rbx,4), %rcx
	leaq	(%r13,%rcx,4), %r13
	incq	%rbx
	movslq	24(%r14), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_10
## %bb.13:
	xorl	%edx, %edx
	jmp	LBB0_15
LBB0_11:
	movl	%eax, %edx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.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:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x0, #64]
	add	x21, x0, #56
	ldr	x8, [x0, #48]
	sbfiz	x25, x22, #3, #32
	ldr	x20, [x8, x25]
	ldr	w23, [x0]
	mov	x0, x21
	bl	_get_bits_esc4
	ldr	x8, [x19, #8]
	str	x0, [x8, x25]
	ldr	x8, [x24]
	subs	x1, x8, x0
	b.le	LBB0_15
; %bb.1:
	sxtw	x24, w22
	sub	w22, w23, #1
	mov	x0, x21
	bl	_get_sbits
	str	w0, [x20], #4
	mov	x0, x21
	mov	w1, #2
	bl	_get_bits
	ldr	x8, [x19, #16]
	str	w0, [x8, x24, lsl #2]
	mov	x0, x21
	mov	w1, #3
	bl	_get_bits
	add	w8, w0, #1
	str	w8, [x19, #24]
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x0, x21
	bl	_get_bits_left
	ldr	w8, [x19, #24]
	mov	w9, #6
	mul	w9, w8, w9
	sub	w9, w9, #6
	cmp	w0, w9
	b.lt	LBB0_15
; %bb.3:
	cmp	w8, #1
	b.le	LBB0_9
; %bb.4:
	mov	x23, #0
	mov	w24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #6
	bl	_get_bits
	sub	w8, w0, w24
	ldr	w9, [x19, #40]
	mul	w8, w8, w9
	ldr	x9, [x19, #32]
	str	w8, [x9, x23, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w22, w22, w8
	add	x23, x23, #1
	ldrsw	x8, [x19, #24]
	sub	x8, x8, #1
	mov	x24, x0
	cmp	x23, x8
	b.lt	LBB0_5
; %bb.7:
	cmp	w22, #1
	b.ge	LBB0_10
	b	LBB0_15
LBB0_8:
	mov	x23, #0
	b	LBB0_10
LBB0_9:
	mov	x23, #0
	cmp	w22, #1
	b.lt	LBB0_15
LBB0_10:
	ldr	x8, [x19, #32]
	str	w22, [x8, w23, uxtw #2]
	ldr	w9, [x19, #24]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x21, #0
	mov	w3, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x19
	mov	x1, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_decode_subframe
	tbnz	w0, #31, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19, #32]
	ldrsw	x3, [x8, x21, lsl #2]
	add	x20, x20, x3, lsl #2
	add	x21, x21, #1
	ldrsw	x9, [x19, #24]
	cmp	x21, x9
	b.lt	LBB0_12
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_channel
.subsections_via_symbols
