	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_op_configure_filter
_carl9170_op_configure_filter:          ## @carl9170_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	(%rdi), %rbx
	movq	_FIF_ALLMULTI@GOTPCREL(%rip), %r14
	movl	(%rbx), %eax
	orl	(%r14), %eax
	movq	%rcx, %r13
	movq	%rdx, %r15
	movl	%esi, %r12d
	andl	%eax, (%rdx)
	movq	%rbx, %rdi
	callq	_IS_ACCEPTING_CMD
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	leaq	20(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	(%r14), %eax
	andl	(%r15), %eax
	xorl	%esi, %esi
	negl	%eax
	sbbq	%rsi, %rsi
	orq	%r13, %rsi
	cmpq	8(%rbx), %rsi
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_carl9170_update_multicast
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_3:
	movq	_FIF_OTHER_BSS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%r12d, %eax
	je	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	andl	(%r15), %eax
	setne	%cl
	movl	%ecx, 16(%rbx)
	movq	%rbx, %rdi
	callq	_carl9170_set_operating_mode
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_5:
	cmpq	$0, 32(%rbx)
	je	LBB0_12
## %bb.6:
	testl	%r12d, (%rbx)
	je	LBB0_12
## %bb.7:
	movq	_FIF_FCSFAIL@GOTPCREL(%rip), %rax
	movq	_FIF_PLCPFAIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	(%r15), %ecx
	xorl	%eax, %eax
	movl	$0, %r8d
	testl	%ecx, %esi
	jne	LBB0_9
## %bb.8:
	movq	_CARL9170_RX_FILTER_BAD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
LBB0_9:
	movq	_FIF_CONTROL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	andl	%ecx, %edi
	cmpl	$0, 24(%rbx)
	movq	_CARL9170_RX_FILTER_CTL_OTHER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edx
	movl	$0, %esi
	cmovel	%edx, %esi
	testl	%edi, %edi
	cmovel	%edx, %esi
	orl	%r8d, %esi
	movq	_FIF_PSPOLL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	$0, %edx
	andl	%ecx, %edi
	jne	LBB0_11
## %bb.10:
	movq	_CARL9170_RX_FILTER_CTL_PSPOLL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_11:
	andl	(%r13), %ecx
	movq	_CARL9170_RX_FILTER_OTHER_RA@GOTPCREL(%rip), %r8
	movq	_CARL9170_RX_FILTER_DECRY_FAIL@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%r8), %edi
	testl	%ecx, %ecx
	cmovel	%edi, %eax
	orl	%edx, %eax
	orl	%eax, %esi
	movq	%rbx, %rdi
	callq	_carl9170_rx_filter
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIF_ALLMULTI,4,2               ## @FIF_ALLMULTI
	.comm	_FIF_OTHER_BSS,4,2              ## @FIF_OTHER_BSS
	.comm	_CARL9170_RX_FILTER_CTL_OTHER,4,2 ## @CARL9170_RX_FILTER_CTL_OTHER
	.comm	_FIF_FCSFAIL,4,2                ## @FIF_FCSFAIL
	.comm	_FIF_PLCPFAIL,4,2               ## @FIF_PLCPFAIL
	.comm	_CARL9170_RX_FILTER_BAD,4,2     ## @CARL9170_RX_FILTER_BAD
	.comm	_FIF_CONTROL,4,2                ## @FIF_CONTROL
	.comm	_FIF_PSPOLL,4,2                 ## @FIF_PSPOLL
	.comm	_CARL9170_RX_FILTER_CTL_PSPOLL,4,2 ## @CARL9170_RX_FILTER_CTL_PSPOLL
	.comm	_CARL9170_RX_FILTER_OTHER_RA,4,2 ## @CARL9170_RX_FILTER_OTHER_RA
	.comm	_CARL9170_RX_FILTER_DECRY_FAIL,4,2 ## @CARL9170_RX_FILTER_DECRY_FAIL
	.no_dead_strip	_carl9170_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 carl9170_op_configure_filter
_carl9170_op_configure_filter:          ; @carl9170_op_configure_filter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x24, _FIF_ALLMULTI@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FIF_ALLMULTI@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w8, w9, w8
	ldr	w9, [x2]
	and	w8, w9, w8
	str	w8, [x2]
	mov	x0, x19
	bl	_IS_ACCEPTING_CMD
	cbz	w0, LBB0_9
; %bb.1:
	add	x20, x19, #20
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x21]
	str	w8, [x19, #4]
	ldr	w8, [x21]
	ldr	w9, [x24]
	tst	w9, w8
	csinv	x1, x23, xzr, eq
	ldr	x8, [x19, #8]
	cmp	x1, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_carl9170_update_multicast
	bl	_WARN_ON
LBB0_3:
Lloh2:
	adrp	x23, _FIF_OTHER_BSS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FIF_OTHER_BSS@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
	ldr	w9, [x21]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_carl9170_set_operating_mode
	bl	_WARN_ON
LBB0_5:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w8, [x19]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19, #24]
Lloh4:
	adrp	x9, _FIF_FCSFAIL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FIF_FCSFAIL@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x11, _FIF_PLCPFAIL@GOTPAGE
Lloh8:
	ldr	x11, [x11, _FIF_PLCPFAIL@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	orr	w9, w11, w9
Lloh10:
	adrp	x11, _CARL9170_RX_FILTER_BAD@GOTPAGE
Lloh11:
	ldr	x11, [x11, _CARL9170_RX_FILTER_BAD@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	tst	w9, w10
	csel	w9, w11, wzr, eq
	cmp	w8, #0
Lloh13:
	adrp	x8, _CARL9170_RX_FILTER_CTL_OTHER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CARL9170_RX_FILTER_CTL_OTHER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x11, _FIF_CONTROL@GOTPAGE
Lloh17:
	ldr	x11, [x11, _FIF_CONTROL@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	and	w11, w11, w10
	ccmp	w11, #0, #4, ne
	csel	w8, w8, wzr, eq
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _FIF_PSPOLL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FIF_PSPOLL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x11, _CARL9170_RX_FILTER_CTL_PSPOLL@GOTPAGE
Lloh23:
	ldr	x11, [x11, _CARL9170_RX_FILTER_CTL_PSPOLL@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	tst	w9, w10
	csel	w9, w11, wzr, eq
	orr	w8, w8, w9
	ldr	w9, [x23]
Lloh25:
	adrp	x11, _CARL9170_RX_FILTER_OTHER_RA@GOTPAGE
Lloh26:
	ldr	x11, [x11, _CARL9170_RX_FILTER_OTHER_RA@GOTPAGEOFF]
Lloh27:
	adrp	x12, _CARL9170_RX_FILTER_DECRY_FAIL@GOTPAGE
Lloh28:
	ldr	x12, [x12, _CARL9170_RX_FILTER_DECRY_FAIL@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
Lloh30:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w9, w10
	csel	w9, w11, wzr, eq
	orr	w1, w8, w9
	mov	x0, x19
	bl	_carl9170_rx_filter
	bl	_WARN_ON
LBB0_8:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FIF_ALLMULTI,4,2               ; @FIF_ALLMULTI
	.comm	_FIF_OTHER_BSS,4,2              ; @FIF_OTHER_BSS
	.comm	_CARL9170_RX_FILTER_CTL_OTHER,4,2 ; @CARL9170_RX_FILTER_CTL_OTHER
	.comm	_FIF_FCSFAIL,4,2                ; @FIF_FCSFAIL
	.comm	_FIF_PLCPFAIL,4,2               ; @FIF_PLCPFAIL
	.comm	_CARL9170_RX_FILTER_BAD,4,2     ; @CARL9170_RX_FILTER_BAD
	.comm	_FIF_CONTROL,4,2                ; @FIF_CONTROL
	.comm	_FIF_PSPOLL,4,2                 ; @FIF_PSPOLL
	.comm	_CARL9170_RX_FILTER_CTL_PSPOLL,4,2 ; @CARL9170_RX_FILTER_CTL_PSPOLL
	.comm	_CARL9170_RX_FILTER_OTHER_RA,4,2 ; @CARL9170_RX_FILTER_OTHER_RA
	.comm	_CARL9170_RX_FILTER_DECRY_FAIL,4,2 ; @CARL9170_RX_FILTER_DECRY_FAIL
	.no_dead_strip	_carl9170_op_configure_filter
.subsections_via_symbols
