	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_configure_filter
_ath9k_htc_configure_filter:            ## @ath9k_htc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	(%rdi), %rbx
	movl	8(%rbx), %edi
	callq	_ath9k_hw_common
	movq	%rax, %r12
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_SUPPORTED_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, (%r15)
	movq	_ATH_OP_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	callq	_ath9k_hw_common
	movq	_ANY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_ath9k_htc_ps_wakeup
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_ath9k_htc_calcrxfilter
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	movl	%eax, %esi
	callq	_ath9k_hw_setrxfilter
	movl	8(%rbx), %edi
	callq	_ath9k_hw_common
	movq	_CONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	%rbx, %rdi
	callq	_ath9k_htc_ps_restore
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_FILTERS,4,2          ## @SUPPORTED_FILTERS
	.comm	_ATH_OP_INVALID,4,2             ## @ATH_OP_INVALID
	.comm	_ANY,4,2                        ## @ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to configure filter on invalid state\n"

	.comm	_CONFIG,4,2                     ## @CONFIG
L_.str.1:                               ## @.str.1
	.asciz	"Set HW RX filter: 0x%x\n"

	.no_dead_strip	_ath9k_htc_configure_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_configure_filter
_ath9k_htc_configure_filter:            ; @ath9k_htc_configure_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	ldr	x20, [x0]
	ldr	w0, [x20, #8]
	bl	_ath9k_hw_common
	mov	x22, x0
	add	x19, x20, #4
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _SUPPORTED_FILTERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_FILTERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21]
	and	w8, w9, w8
	str	w8, [x21]
Lloh3:
	adrp	x8, _ATH_OP_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH_OP_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
	bl	_ath9k_hw_common
Lloh6:
	adrp	x8, _ANY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ANY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ath_dbg
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_ath9k_htc_ps_wakeup
	ldr	w8, [x21]
	str	w8, [x20]
	mov	x0, x20
	bl	_ath9k_htc_calcrxfilter
	mov	x21, x0
	ldr	w0, [x20, #8]
	mov	x1, x21
	bl	_ath9k_hw_setrxfilter
	ldr	w0, [x20, #8]
	bl	_ath9k_hw_common
Lloh11:
	adrp	x8, _CONFIG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_ath_dbg
	mov	x0, x20
	bl	_ath9k_htc_ps_restore
LBB0_3:
	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
	add	sp, sp, #64
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_FILTERS,4,2          ; @SUPPORTED_FILTERS
	.comm	_ATH_OP_INVALID,4,2             ; @ATH_OP_INVALID
	.comm	_ANY,4,2                        ; @ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to configure filter on invalid state\n"

	.comm	_CONFIG,4,2                     ; @CONFIG
l_.str.1:                               ; @.str.1
	.asciz	"Set HW RX filter: 0x%x\n"

	.no_dead_strip	_ath9k_htc_configure_filter
.subsections_via_symbols
