	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function m920x_update_filters
LCPI0_0:
	.long	8192                            ## 0x2000
	.long	8192                            ## 0x2000
	.long	8192                            ## 0x2000
	.long	8192                            ## 0x2000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_m920x_update_filters:                  ## @m920x_update_filters
	.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, %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %rdi
	movq	(%rdi), %r12
	movq	(%r12), %rcx
	movl	(%rcx,%rax,4), %r13d
	movq	16(%r15), %rcx
	movl	(%rcx), %r14d
	movq	_M9206_MAX_FILTERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	testl	%r10d, %r10d
	jle	LBB0_11
## %bb.1:
	movq	8(%r12), %rcx
	movq	(%rcx,%rax,8), %rcx
	xorl	%r9d, %r9d
	cmpl	$8, %r10d
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_3:
	movl	%r10d, %esi
	andl	$-8, %esi
	movd	%r13d, %xmm0
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	leaq	-8(%rsi), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r8, %rax
	andq	$-2, %rax
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [8192,8192,8192,8192]
	movdqa	%xmm1, %xmm5
	movdqa	%xmm1, %xmm4
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdx,4), %xmm6
	movdqu	16(%rcx,%rdx,4), %xmm7
	movdqu	32(%rcx,%rdx,4), %xmm1
	movdqu	48(%rcx,%rdx,4), %xmm2
	pcmpeqd	%xmm3, %xmm6
	pcmpeqd	%xmm3, %xmm7
	pcmpeqd	%xmm3, %xmm1
	por	%xmm6, %xmm1
	pandn	%xmm5, %xmm1
	pcmpeqd	%xmm3, %xmm2
	por	%xmm7, %xmm2
	pandn	%xmm4, %xmm2
	addq	$16, %rdx
	movdqa	%xmm1, %xmm5
	movdqa	%xmm2, %xmm4
	addq	$-2, %rax
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rcx,%rdx,4), %xmm3
	movdqu	16(%rcx,%rdx,4), %xmm4
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [8192,8192,8192,8192]
	pcmpeqd	%xmm5, %xmm3
	pandn	%xmm1, %xmm3
	pcmpeqd	%xmm5, %xmm4
	pandn	%xmm2, %xmm4
	movdqa	%xmm3, %xmm1
	movdqa	%xmm4, %xmm2
LBB0_9:
	pshufd	$0, %xmm0, %xmm3                ## xmm3 = xmm0[0,0,0,0]
	movdqa	%xmm1, %xmm0
	pcmpeqd	%xmm3, %xmm0
	blendvps	%xmm0, %xmm2, %xmm1
	psubd	%xmm3, %xmm1
	xorl	%eax, %eax
	ptest	%xmm1, %xmm1
	cmovnel	%eax, %r13d
	cmpq	%r10, %rsi
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$8192, (%rcx,%rsi,4)            ## imm = 0x2000
	cmovel	%r9d, %r13d
	incq	%rsi
	cmpq	%rsi, %r10
	jne	LBB0_10
LBB0_11:
	movl	%r14d, %esi
	movl	$1, %edx
	movl	%r13d, %ecx
	callq	_m920x_set_filter
	testl	%eax, %eax
	jne	LBB0_24
## %bb.12:
	movq	_M9206_MAX_FILTERS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_23
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	leal	2(%rbx), %edx
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_m920x_set_filter
	testl	%eax, %eax
	jne	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	movq	_M9206_MAX_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %ebx
	jl	LBB0_15
## %bb.16:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_24
## %bb.17:
	testl	%edx, %edx
	jle	LBB0_24
## %bb.18:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	incl	%r13d
	movq	_M9206_MAX_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rbx
	movslq	%edx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_23
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%rbx,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	8(%r15), %rdi
	leal	2(%r13), %edx
	movl	%r14d, %esi
	callq	_m920x_set_filter
	testl	%eax, %eax
	je	LBB0_21
	jmp	LBB0_24
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%edx, %edx
	movdqa	%xmm1, %xmm2
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_M9206_MAX_FILTERS,4,2          ## @M9206_MAX_FILTERS
	.no_dead_strip	_m920x_update_filters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m920x_update_filters
_m920x_update_filters:                  ; @m920x_update_filters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	x9, [x19]
	ldr	x22, [x0]
	ldr	x8, [x22]
	ldr	w21, [x8, x9, lsl #2]
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
Lloh0:
	adrp	x23, _M9206_MAX_FILTERS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _M9206_MAX_FILTERS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x10, [x22, #8]
	ldr	x9, [x10, x9, lsl #3]
	cmp	w8, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x8, #0xfffffff0
	dup.4s	v0, w21
	add	x11, x9, #32
	movi.4s	v3, #32, lsl #8
	mov	x12, x10
	mov.16b	v4, v0
	mov.16b	v2, v0
	mov.16b	v1, v0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x11, #-32]
	ldp	q7, q16, [x11], #64
	cmeq.4s	v5, v5, v3
	cmeq.4s	v6, v6, v3
	cmeq.4s	v7, v7, v3
	cmeq.4s	v16, v16, v3
	bic.16b	v0, v0, v5
	bic.16b	v4, v4, v6
	bic.16b	v2, v2, v7
	bic.16b	v1, v1, v16
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	dup.4s	v3, w21
	cmeq.4s	v5, v0, v3
	bit.16b	v0, v4, v5
	cmeq.4s	v4, v0, v3
	bit.16b	v0, v2, v4
	cmeq.4s	v2, v0, v3
	bit.16b	v0, v1, v2
	cmeq.4s	v0, v0, v3
	mvn.16b	v0, v0
	xtn.4h	v0, v0
	umov.h	w11, v0[0]
	umov.h	w12, v0[1]
	and	w12, w12, #0x1
	bfi	w11, w12, #1, #1
	umov.h	w12, v0[2]
	and	w12, w12, #0x1
	bfi	w11, w12, #2, #1
	umov.h	w12, v0[3]
	bfi	w11, w12, #3, #29
	tst	w11, #0xf
	csel	w21, w21, wzr, eq
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_6:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	cmp	w10, #2, lsl #12                ; =8192
	csel	w21, wzr, w21, eq
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	mov	x1, x20
	mov	w2, #1
	mov	x3, x21
	bl	_m920x_set_filter
	cbnz	w0, LBB0_21
; %bb.9:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.10:
	mov	w24, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	add	w2, w24, #2
	mov	x1, x20
	mov	w3, #0
	bl	_m920x_set_filter
	cbnz	w0, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.lt	LBB0_11
; %bb.13:
	mov	w0, #0
	cbz	w21, LBB0_21
; %bb.14:
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.15:
	mov	x21, #0
	mov	w24, #0
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w24, w24, #1
	ldr	w8, [x23]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	ldr	x10, [x19]
	ldr	x9, [x9, x10, lsl #3]
	ldr	w3, [x9, x21, lsl #2]
	cbz	w3, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [x19, #8]
	add	w2, w24, #2
	mov	x1, x20
	bl	_m920x_set_filter
	cbz	w0, LBB0_16
	b	LBB0_21
LBB0_20:
	mov	w0, #0
LBB0_21:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_M9206_MAX_FILTERS,4,2          ; @M9206_MAX_FILTERS
	.no_dead_strip	_m920x_update_filters
.subsections_via_symbols
