	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_channel
_parse_channel:                         ## @parse_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r9
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %eax
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	movl	16(%r9), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_2:
	movl	%esi, %ebx
	movq	24(%r9), %rax
	movslq	%edx, %r15
	movq	(%rax,%r15,8), %r14
	leaq	(%rcx,%rcx,2), %r12
	leaq	(%r14,%r12,8), %r13
	movq	_lfe_channel_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r9), %rdx
	cmpl	%ecx, (%rax,%rdx,4)
	jne	LBB0_10
## %bb.3:
	movl	$3, (%r13)
	movl	$29, 4(%r14,%r12,8)
	movl	$3, %eax
	jmp	LBB0_4
LBB0_10:
	leaq	20(%r9), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$2, %esi
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	callq	_get_bits
	movl	%eax, (%r13)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$3, %esi
	callq	_get_bits
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	movl	%eax, 4(%r14,%r12,8)
	movl	(%r13), %eax
	cmpl	$3, %eax
	jne	LBB0_4
## %bb.11:
	movl	16(%r9), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_18:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_nb_groups_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rdx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, 8(%r14,%r12,8)
	movq	_nb_mstr_exp_tab@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rsi,%rdx,4), %edx
	movl	%edx, 12(%r14,%r12,8)
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.5:
	leaq	(%r14,%r12,8), %rcx
	addq	$8, %rcx
	movl	$1, %edx
	xorl	%esi, %esi
	movq	_frm_ofs_tab@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rdi
	movq	(%r8), %rbx
	movq	(%rbx,%r15,8), %rbx
	cltq
	movq	(%rbx,%rax,8), %rax
	movups	(%rax,%rsi), %xmm0
	movups	%xmm0, (%rdi,%rsi)
	cmpl	$2, 4(%rcx)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-4(%rcx), %eax
	movq	8(%rcx), %rdi
	subl	%eax, (%rdi,%rsi)
	movq	8(%rdi,%rsi), %rdi
	subl	%eax, 4(%rdi)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%rcx), %rax
	cmpq	%rax, %rdx
	jge	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %eax
	addq	$16, %rsi
	incq	%rdx
	jmp	LBB0_6
LBB0_12:
	movq	%r9, %rdi
	movq	%r13, %rsi
	movq	%r9, %rbx
	callq	_parse_exponents
	testl	%eax, %eax
	js	LBB0_20
## %bb.13:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_parse_bit_alloc
	testl	%eax, %eax
	js	LBB0_20
## %bb.14:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_parse_indices
	testl	%eax, %eax
	js	LBB0_20
## %bb.15:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_parse_mantissas
	testl	%eax, %eax
	js	LBB0_20
## %bb.16:
	leaq	20(%rbx), %rdi
	callq	_get_bits_left
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_20
## %bb.17:
	movl	16(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Encoder revision %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_lfe_channel_tab,8,3            ## @lfe_channel_tab
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid group type code\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_nb_groups_tab,8,3              ## @nb_groups_tab
	.comm	_nb_mstr_exp_tab,8,3            ## @nb_mstr_exp_tab
	.comm	_frm_ofs_tab,8,3                ## @frm_ofs_tab
L_.str.2:                               ## @.str.2
	.asciz	"Read past end of channel %d\n"

	.no_dead_strip	_parse_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function parse_channel
lCPI0_0:
	.long	3                               ; 0x3
	.long	29                              ; 0x1d
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_parse_channel:                         ; @parse_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x2
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w2, [x8, w1, sxtw #2]
	cmp	w2, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_avpriv_report_missing_feature
Lloh2:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x19, x1
	ldr	x8, [x20, #24]
	ldr	x24, [x8, w22, sxtw #3]
	sxtw	x25, w19
	mov	w8, #24
Lloh4:
	adrp	x9, _lfe_channel_tab@GOTPAGE
Lloh5:
	ldr	x9, [x9, _lfe_channel_tab@GOTPAGEOFF]
	smaddl	x21, w1, w8, x24
Lloh6:
	ldr	x8, [x9]
	ldr	x9, [x20, #8]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	mov	w10, #3
	b	LBB0_9
LBB0_4:
	add	x23, x20, #20
	mov	x0, x23
	mov	w1, #2
	bl	_get_bits
	str	w0, [x21]
	mov	x0, x23
	mov	w1, #3
	bl	_get_bits
	mov	w8, #24
	madd	x8, x25, x8, x24
	str	w0, [x8, #4]
	ldr	w10, [x21]
	cmp	w10, #3
	b.ne	LBB0_9
; %bb.5:
	ldr	w0, [x20, #16]
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:
	bl	_av_log
Lloh14:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
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
	add	sp, sp, #96
	ret
LBB0_9:
Lloh16:
	adrp	x8, _nb_groups_tab@GOTPAGE
Lloh17:
	ldr	x8, [x8, _nb_groups_tab@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	sbfiz	x11, x10, #2, #32
	ldr	w12, [x8, x11]
	mov	w8, #24
	madd	x8, x25, x8, x24
	mov	x9, x8
	str	w12, [x9, #8]!
Lloh19:
	adrp	x13, _nb_mstr_exp_tab@GOTPAGE
Lloh20:
	ldr	x13, [x13, _nb_mstr_exp_tab@GOTPAGEOFF]
Lloh21:
	ldr	x13, [x13]
	ldr	w11, [x13, x11]
	str	w11, [x8, #12]!
	cmp	w12, #1
	b.lt	LBB0_15
; %bb.10:
	mov	x11, #0
	sxtw	x12, w22
	mov	w13, #24
	madd	x14, x25, x13, x24
	add	x13, x14, #16
	add	x14, x14, #4
	mov	w15, #1
Lloh22:
	adrp	x16, _frm_ofs_tab@GOTPAGE
Lloh23:
	ldr	x16, [x16, _frm_ofs_tab@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x17, [x13]
	ldr	x0, [x16]
	ldr	x0, [x0, x12, lsl #3]
	ldr	x10, [x0, w10, sxtw #3]
	ldr	q0, [x10, x11]
	str	q0, [x17, x11]
	ldr	w10, [x8]
	cmp	w10, #2
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w10, [x14]
	ldr	x17, [x13]
	add	x17, x17, x11
	ldr	w0, [x17]
	sub	w0, w0, w10
	str	w0, [x17]
	ldr	x17, [x17, #8]
	ldr	w0, [x17, #4]
	sub	w10, w0, w10
	str	w10, [x17, #4]
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldrsw	x10, [x9]
	cmp	x15, x10
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w10, [x21]
	add	x11, x11, #16
	add	x15, x15, #1
	b	LBB0_11
LBB0_15:
	mov	x0, x20
	mov	x1, x21
	bl	_parse_exponents
	tbnz	w0, #31, LBB0_8
; %bb.16:
	mov	x0, x20
	mov	x1, x21
	bl	_parse_bit_alloc
	tbnz	w0, #31, LBB0_8
; %bb.17:
	mov	x0, x20
	mov	x1, x21
	bl	_parse_indices
	tbnz	w0, #31, LBB0_8
; %bb.18:
	mov	x0, x20
	mov	x1, x21
	bl	_parse_mantissas
	tbnz	w0, #31, LBB0_8
; %bb.19:
	add	x0, x20, #20
	bl	_get_bits_left
	tbnz	x0, #63, LBB0_21
; %bb.20:
	mov	w0, #0
	b	LBB0_8
LBB0_21:
	ldr	w0, [x20, #16]
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Encoder revision %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_lfe_channel_tab,8,3            ; @lfe_channel_tab
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid group type code\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_nb_groups_tab,8,3              ; @nb_groups_tab
	.comm	_nb_mstr_exp_tab,8,3            ; @nb_mstr_exp_tab
	.comm	_frm_ofs_tab,8,3                ; @frm_ofs_tab
l_.str.2:                               ; @.str.2
	.asciz	"Read past end of channel %d\n"

	.no_dead_strip	_parse_channel
.subsections_via_symbols
