	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_get_rx_filter         ## -- Begin function ath5k_hw_get_rx_filter
	.p2align	4, 0x90
_ath5k_hw_get_rx_filter:                ## @ath5k_hw_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_AR5K_RX_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ath5k_hw_reg_read
	movq	(%rbx), %rcx
	movq	_AR5K_AR5212@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.1:
	movl	%eax, %r14d
	movq	_AR5K_PHY_ERR_FIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ath5k_hw_reg_read
	movl	%eax, %ecx
	movq	_AR5K_PHY_ERR_FIL_RADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	je	LBB0_3
## %bb.2:
	movq	_AR5K_RX_FILTER_RADARERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	orl	%r14d, %eax
	movq	_AR5K_PHY_ERR_FIL_OFDM@GOTPCREL(%rip), %rdx
	movq	_AR5K_PHY_ERR_FIL_CCK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%ecx, %esi
	je	LBB0_5
## %bb.4:
	movq	_AR5K_RX_FILTER_PHYERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_RX_FILTER,4,2             ## @AR5K_RX_FILTER
	.comm	_AR5K_AR5212,8,3                ## @AR5K_AR5212
	.comm	_AR5K_PHY_ERR_FIL,4,2           ## @AR5K_PHY_ERR_FIL
	.comm	_AR5K_PHY_ERR_FIL_RADAR,4,2     ## @AR5K_PHY_ERR_FIL_RADAR
	.comm	_AR5K_RX_FILTER_RADARERR,4,2    ## @AR5K_RX_FILTER_RADARERR
	.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_RX_FILTER_PHYERR,4,2      ## @AR5K_RX_FILTER_PHYERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_get_rx_filter         ; -- Begin function ath5k_hw_get_rx_filter
	.p2align	2
_ath5k_hw_get_rx_filter:                ; @ath5k_hw_get_rx_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	x20, x0
Lloh0:
	adrp	x8, _AR5K_RX_FILTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_RX_FILTER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ath5k_hw_reg_read
	mov	x19, x0
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _AR5K_AR5212@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AR5K_AR5212@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _AR5K_PHY_ERR_FIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR5K_PHY_ERR_FIL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ath5k_hw_reg_read
Lloh9:
	adrp	x8, _AR5K_PHY_ERR_FIL_RADAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_PHY_ERR_FIL_RADAR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _AR5K_RX_FILTER_RADARERR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AR5K_RX_FILTER_RADARERR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w19, w8, w19
Lloh15:
	adrp	x8, _AR5K_PHY_ERR_FIL_OFDM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR5K_PHY_ERR_FIL_OFDM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _AR5K_PHY_ERR_FIL_CCK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AR5K_PHY_ERR_FIL_CCK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh21:
	adrp	x8, _AR5K_RX_FILTER_PHYERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR5K_RX_FILTER_PHYERR@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_RX_FILTER,4,2             ; @AR5K_RX_FILTER
	.comm	_AR5K_AR5212,8,3                ; @AR5K_AR5212
	.comm	_AR5K_PHY_ERR_FIL,4,2           ; @AR5K_PHY_ERR_FIL
	.comm	_AR5K_PHY_ERR_FIL_RADAR,4,2     ; @AR5K_PHY_ERR_FIL_RADAR
	.comm	_AR5K_RX_FILTER_RADARERR,4,2    ; @AR5K_RX_FILTER_RADARERR
	.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_RX_FILTER_PHYERR,4,2      ; @AR5K_RX_FILTER_PHYERR
.subsections_via_symbols
