	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_receive_frame
_ath5k_receive_frame:                   ## @ath5k_receive_frame
	.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, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_ath5k_remove_padding
	movq	%r14, %rdi
	callq	_IEEE80211_SKB_RXCB
	movq	%rax, %rbx
	movl	$0, 24(%rax)
	movq	_AR5K_RXERR_MIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r12), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_RX_FLAG_MMIC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
LBB0_2:
	movl	24(%r12), %esi
	movq	%r15, %rdi
	callq	_ath5k_extend_tsf
	movl	%eax, 44(%rbx)
	movq	_RX_FLAG_MACTIME_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
	movq	16(%r15), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 40(%rbx)
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	16(%r12), %rax
	addq	40(%r15), %rax
	movq	%rax, 32(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 8(%rbx)
	leal	-1(%rax), %ecx
	xorl	%edx, %edx
	cmpl	$4, %ecx
	movq	32(%r15), %rcx
	cmovbl	%eax, %edx
	incl	(%rcx,%rdx,4)
	movq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_ath5k_hw_to_driver_rix
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_ath5k_rx_decrypted
	orl	24(%rbx), %eax
	movl	%eax, 24(%rbx)
	movq	16(%rbx), %rcx
	movq	8(%r12), %rdx
	movq	16(%r15), %rsi
	movq	24(%r15), %rdi
	movq	(%rsi), %rsi
	movq	(%rdi,%rsi,8), %rsi
	cmpq	(%rsi,%rcx,8), %rdx
	jne	LBB0_4
## %bb.3:
	movq	_RX_FLAG_SHORTPRE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 24(%rbx)
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_trace_ath5k_rx
	movq	16(%r12), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ath5k_update_beacon_rssi
	movq	(%r15), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ath5k_check_ibss_tsf
LBB0_6:
	movl	8(%r15), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_rx                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_RXERR_MIC,4,2             ## @AR5K_RXERR_MIC
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ## @RX_FLAG_MMIC_ERROR
	.comm	_RX_FLAG_MACTIME_END,4,2        ## @RX_FLAG_MACTIME_END
	.comm	_RX_FLAG_SHORTPRE,4,2           ## @RX_FLAG_SHORTPRE
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.no_dead_strip	_ath5k_receive_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_receive_frame
_ath5k_receive_frame:                   ; @ath5k_receive_frame
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_ath5k_remove_padding
	mov	x0, x19
	bl	_IEEE80211_SKB_RXCB
	mov	x21, x0
	str	wzr, [x0, #24]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _AR5K_RXERR_MIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5K_RXERR_MIC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RX_FLAG_MMIC_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_FLAG_MMIC_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x21, #24]
	orr	w8, w9, w8
	str	w8, [x21, #24]
LBB0_2:
	ldr	w1, [x22, #24]
	mov	x0, x20
	bl	_ath5k_extend_tsf
Lloh6:
	adrp	x8, _RX_FLAG_MACTIME_END@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_FLAG_MACTIME_END@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x21, #24]
	orr	w8, w9, w8
	str	w8, [x21, #24]
	ldr	x8, [x20, #16]
	ldr	w9, [x8, #8]
	stp	w9, w0, [x21, #40]
	ldr	w9, [x22, #4]
	str	w9, [x21, #8]
	sub	w10, w9, #1
	ldp	x12, x11, [x20, #32]
	cmp	w10, #4
	csel	w9, w9, wzr, lo
	lsl	x9, x9, #2
	ldr	w10, [x12, x9]
	add	w10, w10, #1
	str	w10, [x12, x9]
	ldr	x8, [x8]
	str	x8, [x21]
	ldp	x1, x8, [x22, #8]
	add	x8, x8, x11
	str	x8, [x21, #32]
	mov	x0, x20
	bl	_ath5k_hw_to_driver_rix
	str	x0, [x21, #16]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_ath5k_rx_decrypted
	ldr	w8, [x21, #24]
	orr	w8, w8, w0
	str	w8, [x21, #24]
	ldr	x9, [x21, #16]
	ldr	x10, [x22, #8]
	ldp	x12, x11, [x20, #16]
	ldr	x12, [x12]
	ldr	x11, [x11, x12, lsl #3]
	ldr	x9, [x11, x9, lsl #3]
	cmp	x10, x9
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x9, _RX_FLAG_SHORTPRE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RX_FLAG_SHORTPRE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #24]
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_trace_ath5k_rx
	ldr	x2, [x22, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_ath5k_update_beacon_rssi
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_ath5k_check_ibss_tsf
LBB0_6:
	ldr	w0, [x20, #8]
	mov	x1, x19
	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	_ieee80211_rx
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_RXERR_MIC,4,2             ; @AR5K_RXERR_MIC
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ; @RX_FLAG_MMIC_ERROR
	.comm	_RX_FLAG_MACTIME_END,4,2        ; @RX_FLAG_MACTIME_END
	.comm	_RX_FLAG_SHORTPRE,4,2           ; @RX_FLAG_SHORTPRE
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.no_dead_strip	_ath5k_receive_frame
.subsections_via_symbols
