	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_op_configure_filter
_wl1251_op_configure_filter:            ## @wl1251_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	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	(%rdi), %r13
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1251_debug
	movq	_WL1251_SUPPORTED_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%ecx, (%r12)
	testl	%ebx, (%rax)
	je	LBB0_24
## %bb.1:
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_WL1251_DEFAULT_RX_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	_WL1251_DEFAULT_RX_FILTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r13)
	movl	(%r12), %edx
	movq	_FIF_ALLMULTI@GOTPCREL(%rip), %rbx
	testl	%edx, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	_CFG_MC_FILTER_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, 16(%r13)
	movl	(%r12), %edx
LBB0_3:
	movq	_FIF_FCSFAIL@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_5
## %bb.4:
	movq	_CFG_RX_FCS_ERROR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 12(%r13)
	movl	(%r12), %edx
LBB0_5:
	movq	_FIF_BCN_PRBRESP_PROMISC@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_7
## %bb.6:
	movq	_CFG_BSSID_FILTER_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_CFG_SSID_FILTER_EN@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, 16(%r13)
	movl	(%r12), %edx
LBB0_7:
	movq	_FIF_CONTROL@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_9
## %bb.8:
	movq	_CFG_RX_CTL_EN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 12(%r13)
	movl	(%r12), %edx
LBB0_9:
	movq	_FIF_OTHER_BSS@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	jne	LBB0_12
## %bb.10:
	movl	20(%r13), %edi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movl	16(%r13), %eax
LBB0_12:
	movq	_CFG_BSSID_FILTER_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 16(%r13)
LBB0_13:
	movq	_FIF_PROBE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_15
## %bb.14:
	movq	_CFG_RX_PREQ_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r13)
LBB0_15:
	movq	(%r13), %rax
	movq	_WL1251_STATE_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.16:
	movq	%r13, %rdi
	callq	_wl1251_ps_elp_wakeup
	testl	%eax, %eax
	js	LBB0_23
## %bb.17:
	movl	(%rbx), %eax
	testl	%eax, (%r12)
	je	LBB0_19
## %bb.18:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_21
LBB0_19:
	testq	%r14, %r14
	je	LBB0_22
## %bb.20:
	movq	8(%r14), %rdx
	movl	(%r14), %esi
	movl	4(%r14), %ecx
	movq	%r13, %rdi
LBB0_21:
	callq	_wl1251_acx_group_address_tbl
	testl	%eax, %eax
	js	LBB0_23
LBB0_22:
	movl	12(%r13), %edx
	movl	16(%r13), %esi
	movq	%r13, %rdi
	callq	_wl1251_acx_rx_config
	movq	%r13, %rdi
	callq	_wl1251_ps_elp_sleep
LBB0_23:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_24:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac80211 configure filter"

	.comm	_WL1251_SUPPORTED_FILTERS,4,2   ## @WL1251_SUPPORTED_FILTERS
	.comm	_WL1251_DEFAULT_RX_CONFIG,4,2   ## @WL1251_DEFAULT_RX_CONFIG
	.comm	_WL1251_DEFAULT_RX_FILTER,4,2   ## @WL1251_DEFAULT_RX_FILTER
	.comm	_FIF_ALLMULTI,4,2               ## @FIF_ALLMULTI
	.comm	_CFG_MC_FILTER_EN,4,2           ## @CFG_MC_FILTER_EN
	.comm	_FIF_FCSFAIL,4,2                ## @FIF_FCSFAIL
	.comm	_CFG_RX_FCS_ERROR,4,2           ## @CFG_RX_FCS_ERROR
	.comm	_FIF_BCN_PRBRESP_PROMISC,4,2    ## @FIF_BCN_PRBRESP_PROMISC
	.comm	_CFG_BSSID_FILTER_EN,4,2        ## @CFG_BSSID_FILTER_EN
	.comm	_CFG_SSID_FILTER_EN,4,2         ## @CFG_SSID_FILTER_EN
	.comm	_FIF_CONTROL,4,2                ## @FIF_CONTROL
	.comm	_CFG_RX_CTL_EN,4,2              ## @CFG_RX_CTL_EN
	.comm	_FIF_OTHER_BSS,4,2              ## @FIF_OTHER_BSS
	.comm	_FIF_PROBE_REQ,4,2              ## @FIF_PROBE_REQ
	.comm	_CFG_RX_PREQ_EN,4,2             ## @CFG_RX_PREQ_EN
	.comm	_WL1251_STATE_OFF,8,3           ## @WL1251_STATE_OFF
	.no_dead_strip	_wl1251_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 wl1251_op_configure_filter
_wl1251_op_configure_filter:            ; @wl1251_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	x19, x3
	mov	x22, x2
	mov	x21, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1251_debug
Lloh5:
	adrp	x8, _WL1251_SUPPORTED_FILTERS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WL1251_SUPPORTED_FILTERS@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x22]
	and	w9, w10, w9
	str	w9, [x22]
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_23
; %bb.1:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
Lloh7:
	adrp	x8, _WL1251_DEFAULT_RX_CONFIG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WL1251_DEFAULT_RX_CONFIG@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _WL1251_DEFAULT_RX_FILTER@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WL1251_DEFAULT_RX_FILTER@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
	ldr	w10, [x22]
Lloh13:
	adrp	x23, _FIF_ALLMULTI@GOTPAGE
Lloh14:
	ldr	x23, [x23, _FIF_ALLMULTI@GOTPAGEOFF]
	ldr	w11, [x23]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.2:
Lloh15:
	adrp	x10, _CFG_MC_FILTER_EN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CFG_MC_FILTER_EN@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	bic	w8, w8, w10
	str	w8, [x20, #16]
	ldr	w10, [x22]
LBB0_3:
Lloh18:
	adrp	x11, _FIF_FCSFAIL@GOTPAGE
Lloh19:
	ldr	x11, [x11, _FIF_FCSFAIL@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_5
; %bb.4:
Lloh21:
	adrp	x10, _CFG_RX_FCS_ERROR@GOTPAGE
Lloh22:
	ldr	x10, [x10, _CFG_RX_FCS_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x20, #12]
	ldr	w10, [x22]
LBB0_5:
Lloh24:
	adrp	x11, _FIF_BCN_PRBRESP_PROMISC@GOTPAGE
Lloh25:
	ldr	x11, [x11, _FIF_BCN_PRBRESP_PROMISC@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
Lloh27:
	adrp	x24, _CFG_BSSID_FILTER_EN@GOTPAGE
Lloh28:
	ldr	x24, [x24, _CFG_BSSID_FILTER_EN@GOTPAGEOFF]
	tst	w11, w10
	b.eq	LBB0_7
; %bb.6:
Lloh29:
	adrp	x10, _CFG_SSID_FILTER_EN@GOTPAGE
Lloh30:
	ldr	x10, [x10, _CFG_SSID_FILTER_EN@GOTPAGEOFF]
	ldr	w11, [x24]
Lloh31:
	ldr	w10, [x10]
	orr	w10, w11, w10
	bic	w8, w8, w10
	str	w8, [x20, #16]
	ldr	w10, [x22]
LBB0_7:
Lloh32:
	adrp	x11, _FIF_CONTROL@GOTPAGE
Lloh33:
	ldr	x11, [x11, _FIF_CONTROL@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_9
; %bb.8:
Lloh35:
	adrp	x10, _CFG_RX_CTL_EN@GOTPAGE
Lloh36:
	ldr	x10, [x10, _CFG_RX_CTL_EN@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x20, #12]
	ldr	w10, [x22]
LBB0_9:
Lloh38:
	adrp	x9, _FIF_OTHER_BSS@GOTPAGE
Lloh39:
	ldr	x9, [x9, _FIF_OTHER_BSS@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w10
	b.ne	LBB0_12
; %bb.10:
	ldr	w0, [x20, #20]
	bl	_is_zero_ether_addr
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w8, [x20, #16]
LBB0_12:
	ldr	w9, [x24]
	bic	w8, w8, w9
	str	w8, [x20, #16]
LBB0_13:
	ldr	w8, [x22]
Lloh41:
	adrp	x9, _FIF_PROBE_REQ@GOTPAGE
Lloh42:
	ldr	x9, [x9, _FIF_PROBE_REQ@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
Lloh44:
	adrp	x8, _CFG_RX_PREQ_EN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CFG_RX_PREQ_EN@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	str	w8, [x20, #12]
LBB0_15:
	ldr	x8, [x20]
Lloh47:
	adrp	x9, _WL1251_STATE_OFF@GOTPAGE
Lloh48:
	ldr	x9, [x9, _WL1251_STATE_OFF@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.16:
	mov	x0, x20
	bl	_wl1251_ps_elp_wakeup
	tbnz	w0, #31, LBB0_22
; %bb.17:
	ldr	w8, [x22]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_wl1251_acx_group_address_tbl
	tbz	w0, #31, LBB0_21
	b	LBB0_22
LBB0_19:
	cbz	x19, LBB0_21
; %bb.20:
	ldr	x2, [x19, #8]
	ldp	w1, w3, [x19]
	mov	x0, x20
	bl	_wl1251_acx_group_address_tbl
	tbnz	w0, #31, LBB0_22
LBB0_21:
	ldp	w2, w1, [x20, #12]
	mov	x0, x20
	bl	_wl1251_acx_rx_config
	mov	x0, x20
	bl	_wl1251_ps_elp_sleep
LBB0_22:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_23:
	mov	x0, x19
	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	_kfree
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 configure filter"

	.comm	_WL1251_SUPPORTED_FILTERS,4,2   ; @WL1251_SUPPORTED_FILTERS
	.comm	_WL1251_DEFAULT_RX_CONFIG,4,2   ; @WL1251_DEFAULT_RX_CONFIG
	.comm	_WL1251_DEFAULT_RX_FILTER,4,2   ; @WL1251_DEFAULT_RX_FILTER
	.comm	_FIF_ALLMULTI,4,2               ; @FIF_ALLMULTI
	.comm	_CFG_MC_FILTER_EN,4,2           ; @CFG_MC_FILTER_EN
	.comm	_FIF_FCSFAIL,4,2                ; @FIF_FCSFAIL
	.comm	_CFG_RX_FCS_ERROR,4,2           ; @CFG_RX_FCS_ERROR
	.comm	_FIF_BCN_PRBRESP_PROMISC,4,2    ; @FIF_BCN_PRBRESP_PROMISC
	.comm	_CFG_BSSID_FILTER_EN,4,2        ; @CFG_BSSID_FILTER_EN
	.comm	_CFG_SSID_FILTER_EN,4,2         ; @CFG_SSID_FILTER_EN
	.comm	_FIF_CONTROL,4,2                ; @FIF_CONTROL
	.comm	_CFG_RX_CTL_EN,4,2              ; @CFG_RX_CTL_EN
	.comm	_FIF_OTHER_BSS,4,2              ; @FIF_OTHER_BSS
	.comm	_FIF_PROBE_REQ,4,2              ; @FIF_PROBE_REQ
	.comm	_CFG_RX_PREQ_EN,4,2             ; @CFG_RX_PREQ_EN
	.comm	_WL1251_STATE_OFF,8,3           ; @WL1251_STATE_OFF
	.no_dead_strip	_wl1251_op_configure_filter
.subsections_via_symbols
