	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_setrxfilter           ## -- Begin function ath9k_hw_setrxfilter
	.p2align	4, 0x90
_ath9k_hw_setrxfilter:                  ## @ath9k_hw_setrxfilter
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_ENABLE_REGWRITE_BUFFER
	movq	_AR_RX_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_REG_WRITE
	movq	_ATH9K_RX_FILTER_PHYRADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%r12d, %r15d
	je	LBB0_2
## %bb.1:
	movq	_AR_PHY_ERR_RADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movq	_ATH9K_RX_FILTER_PHYERR@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	_AR_PHY_ERR_OFDM_TIMING@GOTPCREL(%rip), %rax
	movq	_AR_PHY_ERR_CCK_TIMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	testl	%r12d, %r12d
	cmovel	%r12d, %ebx
	movq	_AR_PHY_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	orl	%r15d, %edx
	movq	%r14, %rdi
	callq	_REG_WRITE
	orl	%r15d, %ebx
	movq	_AR_RXCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_RXCFG_ZLFDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	je	LBB0_4
## %bb.3:
	callq	_REG_SET_BIT
	jmp	LBB0_5
LBB0_4:
	callq	_REG_CLR_BIT
LBB0_5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REGWRITE_BUFFER_FLUSH          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_RX_FILTER,4,2               ## @AR_RX_FILTER
	.comm	_ATH9K_RX_FILTER_PHYRADAR,4,2   ## @ATH9K_RX_FILTER_PHYRADAR
	.comm	_AR_PHY_ERR_RADAR,4,2           ## @AR_PHY_ERR_RADAR
	.comm	_ATH9K_RX_FILTER_PHYERR,4,2     ## @ATH9K_RX_FILTER_PHYERR
	.comm	_AR_PHY_ERR_OFDM_TIMING,4,2     ## @AR_PHY_ERR_OFDM_TIMING
	.comm	_AR_PHY_ERR_CCK_TIMING,4,2      ## @AR_PHY_ERR_CCK_TIMING
	.comm	_AR_PHY_ERR,4,2                 ## @AR_PHY_ERR
	.comm	_AR_RXCFG,4,2                   ## @AR_RXCFG
	.comm	_AR_RXCFG_ZLFDMA,4,2            ## @AR_RXCFG_ZLFDMA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_setrxfilter           ; -- Begin function ath9k_hw_setrxfilter
	.p2align	2
_ath9k_hw_setrxfilter:                  ; @ath9k_hw_setrxfilter
	.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	x20, x1
	mov	x19, x0
	bl	_ENABLE_REGWRITE_BUFFER
Lloh0:
	adrp	x8, _AR_RX_FILTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_RX_FILTER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_REG_WRITE
Lloh3:
	adrp	x8, _ATH9K_RX_FILTER_PHYRADAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH9K_RX_FILTER_PHYRADAR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _AR_PHY_ERR_RADAR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AR_PHY_ERR_RADAR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w8, w20
	csel	w8, wzr, w9, eq
Lloh9:
	adrp	x9, _ATH9K_RX_FILTER_PHYERR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATH9K_RX_FILTER_PHYERR@GOTPAGEOFF]
Lloh11:
	adrp	x10, _AR_PHY_ERR_OFDM_TIMING@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AR_PHY_ERR_OFDM_TIMING@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _AR_PHY_ERR_CCK_TIMING@GOTPAGE
Lloh16:
	ldr	x11, [x11, _AR_PHY_ERR_CCK_TIMING@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w9, w20
	csel	w9, wzr, w10, eq
	orr	w20, w9, w8
Lloh18:
	adrp	x8, _AR_PHY_ERR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR_PHY_ERR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_REG_WRITE
Lloh21:
	adrp	x8, _AR_RXCFG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR_RXCFG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _AR_RXCFG_ZLFDMA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR_RXCFG_ZLFDMA@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	cbz	w20, LBB0_2
; %bb.1:
	bl	_REG_SET_BIT
	b	LBB0_3
LBB0_2:
	bl	_REG_CLR_BIT
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REGWRITE_BUFFER_FLUSH
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_RX_FILTER,4,2               ; @AR_RX_FILTER
	.comm	_ATH9K_RX_FILTER_PHYRADAR,4,2   ; @ATH9K_RX_FILTER_PHYRADAR
	.comm	_AR_PHY_ERR_RADAR,4,2           ; @AR_PHY_ERR_RADAR
	.comm	_ATH9K_RX_FILTER_PHYERR,4,2     ; @ATH9K_RX_FILTER_PHYERR
	.comm	_AR_PHY_ERR_OFDM_TIMING,4,2     ; @AR_PHY_ERR_OFDM_TIMING
	.comm	_AR_PHY_ERR_CCK_TIMING,4,2      ; @AR_PHY_ERR_CCK_TIMING
	.comm	_AR_PHY_ERR,4,2                 ; @AR_PHY_ERR
	.comm	_AR_RXCFG,4,2                   ; @AR_RXCFG
	.comm	_AR_RXCFG_ZLFDMA,4,2            ; @AR_RXCFG_ZLFDMA
.subsections_via_symbols
