	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd_op_configure_filter
_zd_op_configure_filter:                ## @zd_op_configure_filter
	.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	%rdx, %r15
	movl	%esi, %r14d
	movl	%ecx, -48(%rbp)
	callq	_zd_hw_mac
	movq	%rax, %rbx
	movq	_SUPPORTED_FIF_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, %r14d
	andl	(%r15), %eax
	movl	%eax, (%r15)
	movq	_FIF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %rdi
	callq	_zd_mc_add_all
LBB0_2:
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_FIF_FCSFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r15), %eax
	setne	%cl
	movl	%ecx, (%rbx)
	movq	_FIF_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	xorl	%ecx, %ecx
	andl	(%r15), %eax
	setne	%cl
	movl	%ecx, 4(%rbx)
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	addq	$8, %rdi
	leaq	-48(%rbp), %rsi
	callq	_zd_chip_set_multicast_hash
	testl	%r14d, (%r13)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_set_rx_filter
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_zd_mac_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_dev_err
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_FIF_FLAGS,4,2        ## @SUPPORTED_FIF_FLAGS
	.comm	_FIF_ALLMULTI,4,2               ## @FIF_ALLMULTI
	.comm	_FIF_FCSFAIL,4,2                ## @FIF_FCSFAIL
	.comm	_FIF_CONTROL,4,2                ## @FIF_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_rx_filter error %d\n"

	.no_dead_strip	_zd_op_configure_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd_op_configure_filter
_zd_op_configure_filter:                ; @zd_op_configure_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	str	w3, [sp, #8]
	bl	_zd_hw_mac
	mov	x19, x0
Lloh0:
	adrp	x8, _SUPPORTED_FIF_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_FIF_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w22, w8, w21
	ldr	w9, [x20]
	and	w8, w9, w8
	str	w8, [x20]
Lloh3:
	adrp	x9, _FIF_ALLMULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FIF_ALLMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x0, sp, #8
	bl	_zd_mc_add_all
LBB0_2:
	add	x21, x19, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _FIF_FCSFAIL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FIF_FCSFAIL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19]
	ldr	w8, [x20]
Lloh9:
	adrp	x20, _FIF_CONTROL@GOTPAGE
Lloh10:
	ldr	x20, [x20, _FIF_CONTROL@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #4]
	ldr	x8, [sp, #8]
	str	x8, [x19, #16]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	add	x0, x19, #8
	add	x1, sp, #8
	bl	_zd_chip_set_multicast_hash
	ldr	w8, [x20]
	tst	w22, w8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_set_rx_filter
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	bl	_zd_mac_dev
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_FIF_FLAGS,4,2        ; @SUPPORTED_FIF_FLAGS
	.comm	_FIF_ALLMULTI,4,2               ; @FIF_ALLMULTI
	.comm	_FIF_FCSFAIL,4,2                ; @FIF_FCSFAIL
	.comm	_FIF_CONTROL,4,2                ; @FIF_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_rx_filter error %d\n"

	.no_dead_strip	_zd_op_configure_filter
.subsections_via_symbols
