	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_configure_filter
_mwl8k_configure_filter:                ## @mwl8k_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
	movq	(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_FIF_ALLMULTI@GOTPCREL(%rip), %rax
	movq	_FIF_BCN_PRBRESP_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	%ecx, (%r12)
LBB0_2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_3:
	movl	%esi, %r13d
	movq	%rdi, %r15
	movl	(%r12), %eax
	movq	_FIF_CONTROL@GOTPCREL(%rip), %rcx
	movq	_FIF_OTHER_BSS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_mwl8k_configure_filter_sniffer
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:
	movl	(%r12), %eax
LBB0_6:
	movq	_FIF_ALLMULTI@GOTPCREL(%rip), %rdx
	movq	_FIF_BCN_PRBRESP_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	andl	%eax, %ecx
	movl	%ecx, (%r12)
	movq	%r15, %rdi
	callq	_mwl8k_fw_lock
	testq	%rax, %rax
	jne	LBB0_2
## %bb.7:
	cmpl	$0, (%rbx)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mwl8k_cmd_enable_sniffer
	movl	$0, (%rbx)
LBB0_9:
	movq	_FIF_BCN_PRBRESP_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r13d, %eax
	movq	_FIF_ALLMULTI@GOTPCREL(%rip), %r13
	je	LBB0_16
## %bb.10:
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_mwl8k_cmd_set_pre_scan
	jmp	LBB0_16
LBB0_12:
	movq	%rbx, %rdi
	callq	_mwl8k_first_vif
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	(%rax), %rax
	movq	(%rax), %rsi
	jmp	LBB0_15
LBB0_13:
	leaq	l_.str(%rip), %rsi
LBB0_15:
	movq	%r15, %rdi
	callq	_mwl8k_cmd_set_post_scan
LBB0_16:
	movl	(%r13), %eax
	testl	%eax, (%r12)
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	___mwl8k_cmd_mac_multicast_adr
	movq	%rax, %r14
LBB0_18:
	testq	%r14, %r14
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mwl8k_post_cmd
	movq	%r14, %rdi
	callq	_kfree
LBB0_20:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwl8k_fw_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FIF_ALLMULTI,4,2               ## @FIF_ALLMULTI
	.comm	_FIF_BCN_PRBRESP_PROMISC,4,2    ## @FIF_BCN_PRBRESP_PROMISC
	.comm	_FIF_CONTROL,4,2                ## @FIF_CONTROL
	.comm	_FIF_OTHER_BSS,4,2              ## @FIF_OTHER_BSS
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.asciz	"\001\000\000\000\000\000"

	.no_dead_strip	_mwl8k_configure_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_configure_filter
_mwl8k_configure_filter:                ; @mwl8k_configure_filter
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
	ldr	x22, [x0]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _FIF_ALLMULTI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIF_ALLMULTI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FIF_BCN_PRBRESP_PROMISC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FIF_BCN_PRBRESP_PROMISC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21]
	and	w8, w9, w8
	str	w8, [x21]
LBB0_2:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_kfree
LBB0_3:
	mov	x23, x1
	mov	x19, x0
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _FIF_CONTROL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FIF_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _FIF_OTHER_BSS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FIF_OTHER_BSS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_mwl8k_configure_filter_sniffer
	cbnz	x0, LBB0_2
; %bb.5:
	ldr	w8, [x21]
LBB0_6:
Lloh12:
	adrp	x24, _FIF_ALLMULTI@GOTPAGE
Lloh13:
	ldr	x24, [x24, _FIF_ALLMULTI@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh14:
	adrp	x25, _FIF_BCN_PRBRESP_PROMISC@GOTPAGE
Lloh15:
	ldr	x25, [x25, _FIF_BCN_PRBRESP_PROMISC@GOTPAGEOFF]
	ldr	w10, [x25]
	orr	w9, w10, w9
	and	w8, w8, w9
	str	w8, [x21]
	mov	x0, x19
	bl	_mwl8k_fw_lock
	cbnz	x0, LBB0_2
; %bb.7:
	ldr	w8, [x22]
	cbz	w8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	bl	_mwl8k_cmd_enable_sniffer
	str	wzr, [x22]
LBB0_9:
	ldr	w8, [x25]
	tst	w8, w23
	b.eq	LBB0_16
; %bb.10:
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_mwl8k_cmd_set_pre_scan
	b	LBB0_16
LBB0_12:
	mov	x0, x22
	bl	_mwl8k_first_vif
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x0]
	ldr	x1, [x8]
	b	LBB0_15
LBB0_14:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_mwl8k_cmd_set_post_scan
LBB0_16:
	ldr	w8, [x21]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	mov	w1, #1
	mov	x2, #0
	bl	___mwl8k_cmd_mac_multicast_adr
	mov	x20, x0
LBB0_18:
	cbz	x20, LBB0_20
; %bb.19:
	mov	x0, x19
	mov	x1, x20
	bl	_mwl8k_post_cmd
	mov	x0, x20
	bl	_kfree
LBB0_20:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mwl8k_fw_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FIF_ALLMULTI,4,2               ; @FIF_ALLMULTI
	.comm	_FIF_BCN_PRBRESP_PROMISC,4,2    ; @FIF_BCN_PRBRESP_PROMISC
	.comm	_FIF_CONTROL,4,2                ; @FIF_CONTROL
	.comm	_FIF_OTHER_BSS,4,2              ; @FIF_OTHER_BSS
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.asciz	"\001\000\000\000\000\000"

	.no_dead_strip	_mwl8k_configure_filter
.subsections_via_symbols
