	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_channel_params
_read_channel_params:                   ## @read_channel_params
	.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	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movl	%esi, %r15d
	shlq	$4, %r15
	movq	8(%r14,%r15), %rax
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ecx
	shlq	$5, %rcx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rax,%rcx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_FIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_IIR@GOTPCREL(%rip), %rcx
	movq	_PARAM_FIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rcx), %r13
	testl	%eax, (%r14,%r15)
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_get_bits1
	movq	_FIR@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rcx), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_read_filter_params
	testl	%eax, %eax
	js	LBB0_22
LBB0_3:
	addq	%r15, %r14
	movq	_PARAM_IIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_IIR@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_read_filter_params
	testl	%eax, %eax
	js	LBB0_22
LBB0_6:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	shlq	$4, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%rdi), %ecx
	shlq	$4, %r13
	movl	(%rsi,%r13), %eax
	leal	(%rax,%rcx), %edx
	cmpl	$9, %edx
	jl	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_20:
	callq	_av_log
	jmp	LBB0_21
LBB0_8:
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.9:
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	8(%rsi,%rdi), %rdx
	cmpq	8(%rsi,%r13), %rdx
	jne	LBB0_19
LBB0_11:
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.12:
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	8(%rsi,%r13), %rax
	movq	%rax, 8(%rsi,%rdi)
LBB0_14:
	movq	_PARAM_HUFFOFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_17
## %bb.15:
	movq	%r12, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	movl	$15, %esi
	callq	_get_sbits
	movl	%eax, 16(%rbx,%r14)
LBB0_17:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%rax, 8(%rbx,%r14)
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_get_bits
	movq	%rax, %rcx
	movl	%ecx, (%rbx,%r14)
	xorl	%eax, %eax
	cmpl	$25, %ecx
	jl	LBB0_22
## %bb.18:
	addq	%r14, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_av_log
	movl	$0, (%rbx)
LBB0_21:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_FIR,8,3                        ## @FIR
	.comm	_IIR,8,3                        ## @IIR
	.comm	_PARAM_FIR,4,2                  ## @PARAM_FIR
	.comm	_PARAM_IIR,4,2                  ## @PARAM_IIR
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Total filter orders too high.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"FIR and IIR filters must use the same precision.\n"

	.comm	_PARAM_HUFFOFFSET,4,2           ## @PARAM_HUFFOFFSET
L_.str.2:                               ## @.str.2
	.asciz	"Invalid huff_lsbs.\n"

	.no_dead_strip	_read_channel_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_channel_params
_read_channel_params:                   ; @read_channel_params
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	x25, x8, w1, uxtw #4
	ldr	x8, [x25, #8]
	mov	w9, w3
	stp	x9, x8, [sp]                    ; 16-byte Folded Spill
	add	x8, x8, x9, lsl #5
	ldr	x26, [x8, #24]
Lloh0:
	adrp	x24, _FIR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FIR@GOTPAGEOFF]
	ldr	x27, [x24]
Lloh2:
	adrp	x23, _IIR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IIR@GOTPAGEOFF]
	ldr	x28, [x23]
	ldr	w8, [x25]
Lloh4:
	adrp	x9, _PARAM_FIR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PARAM_FIR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x4, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_read_filter_params
	tbnz	w0, #31, LBB0_21
LBB0_3:
	ldr	w8, [x25]
Lloh7:
	adrp	x9, _PARAM_IIR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PARAM_IIR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x4, [x23]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_read_filter_params
	tbnz	w0, #31, LBB0_21
LBB0_6:
	lsl	x8, x27, #4
	ldr	w8, [x26, x8]
	lsl	x9, x28, #4
	ldr	w9, [x26, x9]
	add	w10, w9, w8
	cmp	w10, #9
	b.lt	LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_19
LBB0_8:
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_10
; %bb.9:
	add	x10, x26, x27, lsl #4
	ldr	x10, [x10, #8]
	add	x11, x26, x28, lsl #4
	ldr	x11, [x11, #8]
	cmp	x10, x11
	b.ne	LBB0_18
LBB0_10:
	cmp	w8, #0
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_12
; %bb.11:
	add	x8, x26, x28, lsl #4
	ldr	x8, [x8, #8]
	add	x9, x26, x27, lsl #4
	str	x8, [x9, #8]
LBB0_12:
	ldr	w8, [x25]
Lloh15:
	adrp	x9, _PARAM_HUFFOFFSET@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PARAM_HUFFOFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	ldp	x22, x21, [sp]                  ; 16-byte Folded Reload
	b.eq	LBB0_15
; %bb.13:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	mov	w1, #15
	bl	_get_sbits
	add	x8, x21, x22, lsl #5
	str	w0, [x8, #16]
LBB0_15:
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	add	x21, x21, x22, lsl #5
	str	x0, [x21, #8]
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	str	w0, [x21]
	cmp	w0, #25
	b.lt	LBB0_17
; %bb.16:
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	str	wzr, [x21]
	b	LBB0_20
LBB0_17:
	mov	w0, #0
	b	LBB0_21
LBB0_18:
	ldr	w0, [x19]
Lloh23:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.1@PAGE
Lloh27:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_19:
	bl	_av_log
LBB0_20:
Lloh28:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
LBB0_21:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_FIR,8,3                        ; @FIR
	.comm	_IIR,8,3                        ; @IIR
	.comm	_PARAM_FIR,4,2                  ; @PARAM_FIR
	.comm	_PARAM_IIR,4,2                  ; @PARAM_IIR
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Total filter orders too high.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"FIR and IIR filters must use the same precision.\n"

	.comm	_PARAM_HUFFOFFSET,4,2           ; @PARAM_HUFFOFFSET
l_.str.2:                               ; @.str.2
	.asciz	"Invalid huff_lsbs.\n"

	.no_dead_strip	_read_channel_params
.subsections_via_symbols
