	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5523_configure_filter
_ar5523_configure_filter:               ## @ar5523_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ar5523_dbg
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_ar5523_flush_tx
	movq	_AR5523_SUPPORTED_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, (%r14)
	movq	_UATH_FILTER_RX_UCAST@GOTPCREL(%rip), %rax
	movq	_UATH_FILTER_RX_MCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_UATH_FILTER_RX_BCAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_UATH_FILTER_RX_BEACON@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_UATH_FILTER_RX_PROM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_UATH_FILTER_OP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ar5523_set_rxfilter
	movq	_UATH_FILTER_OP_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ar5523_set_rxfilter
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"configure_filter called\n"

	.comm	_AR5523_SUPPORTED_FILTERS,4,2   ## @AR5523_SUPPORTED_FILTERS
	.comm	_UATH_FILTER_RX_UCAST,4,2       ## @UATH_FILTER_RX_UCAST
	.comm	_UATH_FILTER_RX_MCAST,4,2       ## @UATH_FILTER_RX_MCAST
	.comm	_UATH_FILTER_RX_BCAST,4,2       ## @UATH_FILTER_RX_BCAST
	.comm	_UATH_FILTER_RX_BEACON,4,2      ## @UATH_FILTER_RX_BEACON
	.comm	_UATH_FILTER_RX_PROM,4,2        ## @UATH_FILTER_RX_PROM
	.comm	_UATH_FILTER_OP_INIT,4,2        ## @UATH_FILTER_OP_INIT
	.comm	_UATH_FILTER_OP_SET,4,2         ## @UATH_FILTER_OP_SET
	.no_dead_strip	_ar5523_configure_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar5523_configure_filter
_ar5523_configure_filter:               ; @ar5523_configure_filter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	x20, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ar5523_dbg
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	bl	_ar5523_flush_tx
Lloh2:
	adrp	x8, _AR5523_SUPPORTED_FILTERS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR5523_SUPPORTED_FILTERS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
Lloh5:
	adrp	x8, _UATH_FILTER_RX_UCAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UATH_FILTER_RX_UCAST@GOTPAGEOFF]
Lloh7:
	adrp	x9, _UATH_FILTER_RX_MCAST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _UATH_FILTER_RX_MCAST@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _UATH_FILTER_RX_BCAST@GOTPAGE
Lloh12:
	ldr	x9, [x9, _UATH_FILTER_RX_BCAST@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _UATH_FILTER_RX_BEACON@GOTPAGE
Lloh15:
	ldr	x9, [x9, _UATH_FILTER_RX_BEACON@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _UATH_FILTER_RX_PROM@GOTPAGE
Lloh18:
	ldr	x10, [x10, _UATH_FILTER_RX_PROM@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh19:
	ldr	w9, [x10]
	orr	w19, w8, w9
Lloh20:
	adrp	x8, _UATH_FILTER_OP_INIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UATH_FILTER_OP_INIT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_ar5523_set_rxfilter
Lloh23:
	adrp	x8, _UATH_FILTER_OP_SET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _UATH_FILTER_OP_SET@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_ar5523_set_rxfilter
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"configure_filter called\n"

	.comm	_AR5523_SUPPORTED_FILTERS,4,2   ; @AR5523_SUPPORTED_FILTERS
	.comm	_UATH_FILTER_RX_UCAST,4,2       ; @UATH_FILTER_RX_UCAST
	.comm	_UATH_FILTER_RX_MCAST,4,2       ; @UATH_FILTER_RX_MCAST
	.comm	_UATH_FILTER_RX_BCAST,4,2       ; @UATH_FILTER_RX_BCAST
	.comm	_UATH_FILTER_RX_BEACON,4,2      ; @UATH_FILTER_RX_BEACON
	.comm	_UATH_FILTER_RX_PROM,4,2        ; @UATH_FILTER_RX_PROM
	.comm	_UATH_FILTER_OP_INIT,4,2        ; @UATH_FILTER_OP_INIT
	.comm	_UATH_FILTER_OP_SET,4,2         ; @UATH_FILTER_OP_SET
	.no_dead_strip	_ar5523_configure_filter
.subsections_via_symbols
