	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_configure_filter_sniffer
_mwl8k_configure_filter_sniffer:        ## @mwl8k_configure_filter_sniffer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	leaq	4(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpl	$0, (%rbx)
	je	LBB0_4
LBB0_6:
	movq	_FIF_ALLMULTI@GOTPCREL(%rip), %rax
	movq	_FIF_BCN_PRBRESP_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_FIF_CONTROL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_FIF_OTHER_BSS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	andl	%ecx, (%r14)
	movl	$1, %r15d
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_info
	jmp	LBB0_7
LBB0_4:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mwl8k_cmd_enable_sniffer
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, (%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not enabling sniffer mode because STA interface is active\n"

	.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
	.no_dead_strip	_mwl8k_configure_filter_sniffer
.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_sniffer
_mwl8k_configure_filter_sniffer:        ; @mwl8k_configure_filter_sniffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x0
	ldr	x21, [x0, #8]
	add	x0, x21, #4
	bl	_list_empty
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_5
LBB0_2:
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
Lloh6:
	adrp	x9, _FIF_CONTROL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FIF_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _FIF_OTHER_BSS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FIF_OTHER_BSS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_7
LBB0_3:
	bl	_net_ratelimit
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w0, [x20]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_info
	b	LBB0_6
LBB0_5:
	mov	w22, #1
	mov	x0, x20
	mov	w1, #1
	bl	_mwl8k_cmd_enable_sniffer
	cbz	x0, LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	str	w22, [x21]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not enabling sniffer mode because STA interface is active\n"

	.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
	.no_dead_strip	_mwl8k_configure_filter_sniffer
.subsections_via_symbols
