	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_rx_filter         ## -- Begin function ath5k_hw_set_rx_filter
	.p2align	4, 0x90
_ath5k_hw_set_rx_filter:                ## @ath5k_hw_set_rx_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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_AR5K_AR5212@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.1:
	movq	_AR5K_RX_FILTER_RADARERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%r15d, %ebx
	je	LBB0_3
## %bb.2:
	movq	_AR5K_PHY_ERR_FIL_RADAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_3:
	movq	_AR5K_RX_FILTER_PHYERR@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_AR5K_PHY_ERR_FIL_OFDM@GOTPCREL(%rip), %rcx
	movq	_AR5K_PHY_ERR_FIL_CCK@GOTPCREL(%rip), %rdx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
LBB0_5:
	movq	_AR5K_AR5210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	_AR5K_RX_FILTER_RADARERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_8
## %bb.7:
	notl	%eax
	andl	%r15d, %eax
	movq	_AR5K_RX_FILTER_PROM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %r15d
LBB0_8:
	movq	_AR5K_RXCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_RXCFG_ZLFDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:
	callq	_AR5K_REG_ENABLE_BITS
	jmp	LBB0_11
LBB0_10:
	callq	_AR5K_REG_DISABLE_BITS
LBB0_11:
	movzbl	%r15b, %esi
	movq	_AR5K_RX_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ath5k_hw_reg_write
	movq	(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.13:
	movq	_AR5K_PHY_ERR_FIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_hw_reg_write             ## TAILCALL
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_AR5212,8,3                ## @AR5K_AR5212
	.comm	_AR5K_RX_FILTER_RADARERR,4,2    ## @AR5K_RX_FILTER_RADARERR
	.comm	_AR5K_PHY_ERR_FIL_RADAR,4,2     ## @AR5K_PHY_ERR_FIL_RADAR
	.comm	_AR5K_RX_FILTER_PHYERR,4,2      ## @AR5K_RX_FILTER_PHYERR
	.comm	_AR5K_PHY_ERR_FIL_OFDM,4,2      ## @AR5K_PHY_ERR_FIL_OFDM
	.comm	_AR5K_PHY_ERR_FIL_CCK,4,2       ## @AR5K_PHY_ERR_FIL_CCK
	.comm	_AR5K_AR5210,8,3                ## @AR5K_AR5210
	.comm	_AR5K_RX_FILTER_PROM,4,2        ## @AR5K_RX_FILTER_PROM
	.comm	_AR5K_RXCFG,4,2                 ## @AR5K_RXCFG
	.comm	_AR5K_RXCFG_ZLFDMA,4,2          ## @AR5K_RXCFG_ZLFDMA
	.comm	_AR5K_RX_FILTER,4,2             ## @AR5K_RX_FILTER
	.comm	_AR5K_PHY_ERR_FIL,4,2           ## @AR5K_PHY_ERR_FIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_rx_filter         ; -- Begin function ath5k_hw_set_rx_filter
	.p2align	2
_ath5k_hw_set_rx_filter:                ; @ath5k_hw_set_rx_filter
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _AR5K_AR5212@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AR5K_AR5212@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _AR5K_RX_FILTER_RADARERR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR5K_RX_FILTER_RADARERR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _AR5K_PHY_ERR_FIL_RADAR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AR5K_PHY_ERR_FIL_RADAR@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w20, wzr, w10, eq
Lloh8:
	adrp	x9, _AR5K_RX_FILTER_PHYERR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AR5K_RX_FILTER_PHYERR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_4
; %bb.2:
Lloh11:
	adrp	x9, _AR5K_PHY_ERR_FIL_OFDM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AR5K_PHY_ERR_FIL_OFDM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _AR5K_PHY_ERR_FIL_CCK@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AR5K_PHY_ERR_FIL_CCK@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w9, w20
	orr	w20, w9, w10
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
Lloh17:
	adrp	x9, _AR5K_AR5210@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AR5K_AR5210@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
Lloh20:
	adrp	x8, _AR5K_RX_FILTER_RADARERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AR5K_RX_FILTER_RADARERR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:
	bic	w8, w21, w8
Lloh23:
	adrp	x9, _AR5K_RX_FILTER_PROM@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AR5K_RX_FILTER_PROM@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w21, w9, w8
LBB0_7:
Lloh26:
	adrp	x8, _AR5K_RXCFG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AR5K_RXCFG@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _AR5K_RXCFG_ZLFDMA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AR5K_RXCFG_ZLFDMA@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	cbz	w20, LBB0_9
; %bb.8:
	bl	_AR5K_REG_ENABLE_BITS
	b	LBB0_10
LBB0_9:
	bl	_AR5K_REG_DISABLE_BITS
LBB0_10:
	and	w1, w21, #0xff
Lloh32:
	adrp	x8, _AR5K_RX_FILTER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AR5K_RX_FILTER@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh35:
	adrp	x8, _AR5K_PHY_ERR_FIL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AR5K_PHY_ERR_FIL@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	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
	b	_ath5k_hw_reg_write
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_AR5212,8,3                ; @AR5K_AR5212
	.comm	_AR5K_RX_FILTER_RADARERR,4,2    ; @AR5K_RX_FILTER_RADARERR
	.comm	_AR5K_PHY_ERR_FIL_RADAR,4,2     ; @AR5K_PHY_ERR_FIL_RADAR
	.comm	_AR5K_RX_FILTER_PHYERR,4,2      ; @AR5K_RX_FILTER_PHYERR
	.comm	_AR5K_PHY_ERR_FIL_OFDM,4,2      ; @AR5K_PHY_ERR_FIL_OFDM
	.comm	_AR5K_PHY_ERR_FIL_CCK,4,2       ; @AR5K_PHY_ERR_FIL_CCK
	.comm	_AR5K_AR5210,8,3                ; @AR5K_AR5210
	.comm	_AR5K_RX_FILTER_PROM,4,2        ; @AR5K_RX_FILTER_PROM
	.comm	_AR5K_RXCFG,4,2                 ; @AR5K_RXCFG
	.comm	_AR5K_RXCFG_ZLFDMA,4,2          ; @AR5K_RXCFG_ZLFDMA
	.comm	_AR5K_RX_FILTER,4,2             ; @AR5K_RX_FILTER
	.comm	_AR5K_PHY_ERR_FIL,4,2           ; @AR5K_PHY_ERR_FIL
.subsections_via_symbols
