	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_rx_skb_preprocess
_ath9k_rx_skb_preprocess:               ## @ath9k_rx_skb_preprocess
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	32(%rdi), %r14
	movq	40(%rdi), %r12
	movq	%r14, %rdi
	callq	_ath9k_hw_common
	movq	%r13, %rdi
	cmpl	$0, (%r13)
	jne	LBB0_24
## %bb.1:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	$0, (%rdi)
	movslq	4(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.2:
	movq	%r15, %r8
	movl	(%rbx), %r10d
	movq	_ATH9K_RXERR_PHY@GOTPCREL(%rip), %r9
	cmpl	$9, %ecx
	jg	LBB0_4
## %bb.3:
	movl	(%r9), %edx
	andl	%r10d, %edx
	je	LBB0_23
LBB0_4:
	movq	(%rax), %rdx
	movq	8(%r14), %r12
	subq	%r12, %rdx
	cmpq	%rcx, %rdx
	jge	LBB0_5
LBB0_23:
	movq	_rx_len_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %r14
	callq	_RX_STAT_INC
	movq	%r14, %rdi
LBB0_24:
	movl	8(%rbx), %eax
	movl	%eax, (%rdi)
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_26:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%r15d, %r15d
	cmpl	$0, 8(%rbx)
	jne	LBB0_26
## %bb.6:
	movq	_ATH9K_RXERR_CORRUPT_DESC@GOTPCREL(%rip), %rcx
	testl	%r10d, (%rcx)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_24
## %bb.7:
	movl	%r13d, %edx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	addq	(%r8), %r12
	movq	%rdi, %r13
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r9, %rbx
	callq	_ath9k_process_tsf
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ath_debug_stat_rx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rbx), %eax
	testl	%eax, (%rdx)
	je	LBB0_13
## %bb.8:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movl	16(%r15), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ath9k_dfs_process_phyerr
	jmp	LBB0_25
LBB0_13:
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	movq	%r12, %rbx
	movq	%rdx, %r12
	callq	_spin_lock_bh
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	movq	%rbx, %r13
	movl	(%rax), %r9d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	callq	_ath9k_cmn_rx_accept
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	testl	%r12d, %r12d
	je	LBB0_25
## %bb.14:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ath_is_mybeacon
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_rx_beacons@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_RX_STAT_INC
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 12(%rax)
LBB0_16:
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_25
## %bb.17:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_ath9k_cmn_process_rate
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_ath_dbg
	movq	_rx_rate_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_RX_STAT_INC
	jmp	LBB0_25
LBB0_10:
	movq	%r13, %rax
	movq	24(%r13), %rax
	movq	_SPECTRAL_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.11:
	leaq	24(%r13), %rdi
	movl	16(%r15), %ecx
	movq	%r12, %rsi
	callq	_ath_cmn_process_fft
	testq	%rax, %rax
	je	LBB0_25
## %bb.12:
	movq	_rx_spectral@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_RX_STAT_INC
	jmp	LBB0_25
LBB0_19:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ath9k_is_chanctx_enabled
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 12(%rax)
	je	LBB0_22
## %bb.21:
	movq	_ATH_CHANCTX_EVENT_BEACON_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath_chanctx_beacon_recv_ev
LBB0_22:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_ath9k_cmn_process_rssi
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	16(%r12), %eax
	movl	%eax, 4(%rbx)
	movq	_RX_FLAG_MACTIME_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_RXERR_PHY,4,2            ## @ATH9K_RXERR_PHY
	.comm	_rx_len_err,4,2                 ## @rx_len_err
	.comm	_ATH9K_RXERR_CORRUPT_DESC,4,2   ## @ATH9K_RXERR_CORRUPT_DESC
	.comm	_SPECTRAL_DISABLED,8,3          ## @SPECTRAL_DISABLED
	.comm	_rx_spectral,4,2                ## @rx_spectral
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_rx_beacons,4,2                 ## @rx_beacons
	.comm	_ANY,4,2                        ## @ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported hw bitrate detected 0x%02x using 1 Mbit\n"

	.comm	_rx_rate_err,4,2                ## @rx_rate_err
	.comm	_ATH_CHANCTX_EVENT_BEACON_RECEIVED,4,2 ## @ATH_CHANCTX_EVENT_BEACON_RECEIVED
	.comm	_RX_FLAG_MACTIME_END,4,2        ## @RX_FLAG_MACTIME_END
	.no_dead_strip	_ath9k_rx_skb_preprocess
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_rx_skb_preprocess
_ath9k_rx_skb_preprocess:               ; @ath9k_rx_skb_preprocess
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x5
	mov	x25, x4
	mov	x21, x3
	mov	x20, x2
	mov	x26, x1
	mov	x19, x0
	ldp	x22, x23, [x0, #32]
	mov	x0, x22
	bl	_ath9k_hw_common
	ldr	w8, [x19]
	cbnz	w8, LBB0_5
; %bb.1:
	str	wzr, [x19]
	ldrsw	x9, [x20, #4]
	cbz	w9, LBB0_4
; %bb.2:
	ldr	w8, [x20]
Lloh0:
	adrp	x28, _ATH9K_RXERR_PHY@GOTPAGE
Lloh1:
	ldr	x28, [x28, _ATH9K_RXERR_PHY@GOTPAGEOFF]
	ldr	w10, [x28]
	and	w10, w10, w8
	cmp	w9, #9
	ccmp	w10, #0, #0, le
	b.eq	LBB0_4
; %bb.3:
	mov	x24, x0
	ldr	x11, [x0]
	ldr	x10, [x22, #8]
	sub	x11, x11, x10
	cmp	x11, x9
	b.ge	LBB0_8
LBB0_4:
Lloh2:
	adrp	x8, _rx_len_err@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rx_len_err@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RX_STAT_INC
LBB0_5:
	ldr	w8, [x20, #8]
	str	w8, [x19]
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w9, [x20, #8]
	cbz	w9, LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_7
LBB0_10:
Lloh8:
	adrp	x9, _ATH9K_RXERR_CORRUPT_DESC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATH9K_RXERR_CORRUPT_DESC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.11:
	ldr	x8, [x26]
	add	x26, x8, x10
	mov	x0, x20
	mov	x1, x21
	mov	x2, x27
	bl	_ath9k_process_tsf
	mov	x0, x19
	mov	x1, x20
	bl	_ath_debug_stat_rx
	ldr	w8, [x20]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
	ldr	x8, [x23]
	cbz	x8, LBB0_20
; %bb.13:
	ldr	w3, [x21, #16]
	mov	x0, x19
	mov	x1, x26
	mov	x2, x20
	bl	_ath9k_dfs_process_phyerr
	b	LBB0_6
LBB0_14:
	add	x27, x19, #8
	mov	x0, x27
	bl	_spin_lock_bh
	ldr	x8, [x19, #16]
	ldr	w5, [x8]
	mov	x0, x24
	mov	x1, x26
	mov	x2, x21
	mov	x3, x20
	mov	x4, x25
	bl	_ath9k_cmn_rx_accept
	mov	x25, x0
	mov	x0, x27
	bl	_spin_unlock_bh
	cbz	w25, LBB0_6
; %bb.15:
	mov	x0, x24
	mov	x1, x26
	bl	_ath_is_mybeacon
	cbz	x0, LBB0_17
; %bb.16:
Lloh11:
	adrp	x8, _rx_beacons@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rx_beacons@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RX_STAT_INC
	mov	w8, #1
	str	w8, [x20, #12]
LBB0_17:
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_6
; %bb.18:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x3, x21
	bl	_ath9k_cmn_process_rate
	cbz	x0, LBB0_24
; %bb.19:
Lloh14:
	adrp	x8, _ANY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ANY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w3, [x20, #20]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_ath_dbg
Lloh19:
	adrp	x8, _rx_rate_err@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rx_rate_err@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
	mov	x0, x19
	ldr	x8, [x0, #24]!
Lloh21:
	adrp	x9, _SPECTRAL_DISABLED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SPECTRAL_DISABLED@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.21:
	ldr	w3, [x21, #16]
	mov	x1, x26
	mov	x2, x20
	bl	_ath_cmn_process_fft
	cbz	x0, LBB0_6
; %bb.22:
Lloh24:
	adrp	x8, _rx_spectral@GOTPAGE
Lloh25:
	ldr	x8, [x8, _rx_spectral@GOTPAGEOFF]
LBB0_23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RX_STAT_INC
	b	LBB0_6
LBB0_24:
	bl	_ath9k_is_chanctx_enabled
	cbz	x0, LBB0_27
; %bb.25:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_27
; %bb.26:
Lloh26:
	adrp	x8, _ATH_CHANCTX_EVENT_BEACON_RECEIVED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ATH_CHANCTX_EVENT_BEACON_RECEIVED@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ath_chanctx_beacon_recv_ev
LBB0_27:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x3, x21
	bl	_ath9k_cmn_process_rssi
	mov	w0, #0
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	d0, [x8]
	str	d0, [x21, #8]
Lloh29:
	adrp	x8, _RX_FLAG_MACTIME_END@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RX_FLAG_MACTIME_END@GOTPAGEOFF]
	ldr	w9, [x20, #16]
Lloh31:
	ldr	w8, [x8]
	ldr	w10, [x21]
	orr	w8, w10, w8
	stp	w8, w9, [x21]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_RXERR_PHY,4,2            ; @ATH9K_RXERR_PHY
	.comm	_rx_len_err,4,2                 ; @rx_len_err
	.comm	_ATH9K_RXERR_CORRUPT_DESC,4,2   ; @ATH9K_RXERR_CORRUPT_DESC
	.comm	_SPECTRAL_DISABLED,8,3          ; @SPECTRAL_DISABLED
	.comm	_rx_spectral,4,2                ; @rx_spectral
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_rx_beacons,4,2                 ; @rx_beacons
	.comm	_ANY,4,2                        ; @ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported hw bitrate detected 0x%02x using 1 Mbit\n"

	.comm	_rx_rate_err,4,2                ; @rx_rate_err
	.comm	_ATH_CHANCTX_EVENT_BEACON_RECEIVED,4,2 ; @ATH_CHANCTX_EVENT_BEACON_RECEIVED
	.comm	_RX_FLAG_MACTIME_END,4,2        ; @RX_FLAG_MACTIME_END
	.no_dead_strip	_ath9k_rx_skb_preprocess
.subsections_via_symbols
