	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_filter_params
_read_filter_params:                    ## @read_filter_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rsi
	movl	%edx, %edx
	movq	(%rsi,%rdx,8), %rax
	movl	%ecx, %r15d
	movq	%r15, %r12
	shlq	$4, %r12
	movl	%r8d, %r13d
	testl	%r8d, %r8d
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_MAX_FIR_ORDER@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_MAX_IIR_ORDER@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	8(%rax,%r12), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	setne	-72(%rbp)                       ## 1-byte Folded Spill
	xorl	%edi, %edi
	cmpl	$2, %r14d
	setb	%dil
	callq	_av_assert0
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%r13,4), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax,%r13,4)
	cmpl	$2, %ecx
	jl	LBB0_6
## %bb.4:
	movl	(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_5:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_15
LBB0_6:
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movzbl	-72(%rbp), %eax                 ## 1-byte Folded Reload
	leal	(%rax,%rax,2), %ebx
	addl	$70, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_get_bits
	movq	%rax, %r8
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	cmpl	%r8d, %r9d
	jge	LBB0_8
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %ecx
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_15
LBB0_8:
	leaq	(,%r13,2), %r15
	addq	%r13, %r15
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	%r8d, (%r14,%r15,8)
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.9:
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	(%rax,%r12), %rax
	movq	(%rax,%r13,8), %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	%rax, 16(%r14,%r15,8)
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_get_bits
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_get_bits
	movq	%rax, %rcx
	leal	-17(%r14), %eax
	cmpl	$-17, %eax
	ja	LBB0_12
## %bb.10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-48(%rbp), %ecx                 ## 1-byte Folded Reload
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_14
LBB0_12:
	leal	(%rcx,%r14), %eax
	cmpl	$16, %eax
	jle	LBB0_17
## %bb.13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-48(%rbp), %ecx                 ## 1-byte Folded Reload
	leaq	L_.str.3(%rip), %rdx
LBB0_14:
	xorl	%eax, %eax
	callq	_av_log
LBB0_15:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	movq	%r13, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rcx, %r13
	callq	_get_sbits
	movq	%r13, %rcx
	shll	%cl, %eax
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_18
## %bb.19:
	movq	%r12, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_11
## %bb.20:
	movq	_FIR@GOTPCREL(%rip), %rax
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_23
## %bb.21:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_5
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_23:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	%rax, %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %r12
	addq	$8, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	xorl	%eax, %eax
	cmpq	%rbx, %r15
	je	LBB0_16
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, %eax
	testl	%r13d, %r13d
	je	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_get_sbits
	movl	%r14d, %ecx
	shll	%cl, %eax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_IIR_ORDER,4,2              ## @MAX_IIR_ORDER
	.comm	_MAX_FIR_ORDER,4,2              ## @MAX_FIR_ORDER
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Filters may change only once per access unit.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"%cIR filter order %d is greater than maximum %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"%cIR filter coeff_bits must be between 1 and 16.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Sum of coeff_bits and coeff_shift for %cIR filter must be 16 or less.\n"

	.comm	_FIR,4,2                        ## @FIR
L_.str.4:                               ## @.str.4
	.asciz	"FIR filter has state data specified.\n"

	.no_dead_strip	_read_filter_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_filter_params
_read_filter_params:                    ; @read_filter_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x28, [x0, #16]
	ldr	x8, [x28, w2, uxtw #3]
	add	x8, x8, w3, uxtw #4
	ldr	x22, [x8, #8]
	mov	w26, w4
Lloh0:
	adrp	x8, _MAX_IIR_ORDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_IIR_ORDER@GOTPAGEOFF]
	mov	w9, #73
	mov	w10, #70
	cmp	w4, #0
	csel	w27, w10, w9, eq
Lloh2:
	adrp	x9, _MAX_FIR_ORDER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_FIR_ORDER@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w25, [x8]
	cmp	w4, #2
	cset	w0, lo
	bl	_av_assert0
	ldr	x8, [x20, #8]
	ldr	x8, [x8, w23, uxtw #3]
	lsl	x9, x26, #2
	ldr	w10, [x8, x9]
	add	w11, w10, #1
	str	w11, [x8, x9]
	cmp	w10, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_15
LBB0_2:
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	mov	x22, x0
	cmp	w25, w22
	b.ge	LBB0_4
; %bb.3:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x25, [sp, #8]
	str	x27, [sp]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_4:
	mov	w8, #24
	mul	x8, x26, x8
	ldr	x25, [sp, #24]                  ; 8-byte Folded Reload
	str	w22, [x25, x8]
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w8, w24
	ldr	x8, [x28, x8, lsl #3]
	mov	w9, w23
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	ldr	x28, [x8, x26, lsl #3]
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	mov	w8, #24
	madd	x8, x26, x8, x25
	str	x0, [x8, #16]
	mov	x0, x19
	mov	w1, #5
	bl	_get_bits
	mov	x23, x0
	mov	x0, x19
	mov	w1, #3
	bl	_get_bits
	sub	w8, w23, #17
	cmn	w8, #17
	b.hi	LBB0_8
; %bb.6:
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	str	x27, [sp]
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_7:
	mov	w0, #0
	b	LBB0_16
LBB0_8:
	mov	x24, x0
	add	w8, w24, w23
	cmp	w8, #16
	b.le	LBB0_10
; %bb.9:
	ldr	w0, [x20]
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	str	x27, [sp]
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_10:
	and	x22, x22, #0xffffffff
	mov	x25, x22
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_get_sbits
	lsl	w8, w0, w24
	str	w8, [x28], #4
	subs	x25, x25, #1
	b.ne	LBB0_11
; %bb.12:
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_16
; %bb.13:
Lloh24:
	adrp	x8, _FIR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FIR@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_17
; %bb.14:
	ldr	w0, [x20]
Lloh27:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.4@PAGE
Lloh31:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_15:
	bl	_av_log
Lloh32:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	mov	x20, x0
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	mov	x21, x0
	mov	x23, #0
	mov	w8, #24
	mul	x8, x26, x8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x9, x8
	add	x24, x8, #8
	lsl	x22, x22, #2
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_get_sbits
	lsl	w8, w0, w21
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w0, #0
	ldr	x9, [x24]
	str	w8, [x9, x23]
	add	x23, x23, #4
	cmp	x22, x23
	b.eq	LBB0_16
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	cbnz	w20, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w8, #0
	b	LBB0_19
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_IIR_ORDER,4,2              ; @MAX_IIR_ORDER
	.comm	_MAX_FIR_ORDER,4,2              ; @MAX_FIR_ORDER
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Filters may change only once per access unit.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"%cIR filter order %d is greater than maximum %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"%cIR filter coeff_bits must be between 1 and 16.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Sum of coeff_bits and coeff_shift for %cIR filter must be 16 or less.\n"

	.comm	_FIR,4,2                        ; @FIR
l_.str.4:                               ; @.str.4
	.asciz	"FIR filter has state data specified.\n"

	.no_dead_strip	_read_filter_params
.subsections_via_symbols
