	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_rxd_sta_process
_mwl8k_rxd_sta_process:                 ## @mwl8k_rxd_sta_process
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MWL8K_STA_RX_CTRL_OWNED_BY_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_18
## %bb.1:
	movq	%rcx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rmb
	movl	24(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	xorl	%eax, %eax
	subl	20(%r14), %eax
	movl	%eax, 44(%r12)
	subl	16(%r14), %r15d
	movl	%r15d, (%r13)
	movl	%ebx, %edi
	callq	_MWL8K_STA_RATE_INFO_ANTSELECT
	movl	%eax, 40(%r12)
	movl	%ebx, %edi
	callq	_MWL8K_STA_RATE_INFO_RATEID
	movq	%rax, 24(%r12)
	movq	_MWL8K_STA_RATE_INFO_SHORTPRE@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_RX_ENC_FLAG_SHORTPRE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 32(%r12)
LBB0_3:
	movq	_MWL8K_STA_RATE_INFO_40MHZ@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_RATE_INFO_BW_40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r12)
LBB0_5:
	movq	_MWL8K_STA_RATE_INFO_SHORTGI@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_RX_ENC_FLAG_SHORT_GI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 32(%r12)
LBB0_7:
	movq	_MWL8K_STA_RATE_INFO_MCS_FORMAT@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_RX_ENC_HT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r12)
LBB0_9:
	movl	4(%r14), %edi
	cmpl	$15, %edi
	jl	LBB0_13
## %bb.10:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, 12(%r12)
	movq	(%r12), %rcx
	movq	_RX_ENC_HT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_14
## %bb.11:
	movq	_MWL8K_LEGACY_5G_RATE_OFFSET@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	jl	LBB0_14
## %bb.12:
	movq	%rax, 24(%r12)
	jmp	LBB0_14
LBB0_18:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 12(%r12)
LBB0_14:
	callq	_ieee80211_channel_to_frequency
	movl	%eax, 16(%r12)
	movl	12(%r14), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	(%r14), %eax
	movq	_MWL8K_STA_RX_CTRL_DECRYPT_ERROR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.15:
	movq	_MWL8K_STA_RX_CTRL_DEC_ERR_TYPE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_RX_FLAG_MMIC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
LBB0_17:
	movl	8(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_le16_to_cpu                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MWL8K_STA_RX_CTRL_OWNED_BY_HOST,4,2 ## @MWL8K_STA_RX_CTRL_OWNED_BY_HOST
	.comm	_MWL8K_STA_RATE_INFO_SHORTPRE,4,2 ## @MWL8K_STA_RATE_INFO_SHORTPRE
	.comm	_RX_ENC_FLAG_SHORTPRE,4,2       ## @RX_ENC_FLAG_SHORTPRE
	.comm	_MWL8K_STA_RATE_INFO_40MHZ,4,2  ## @MWL8K_STA_RATE_INFO_40MHZ
	.comm	_RATE_INFO_BW_40,4,2            ## @RATE_INFO_BW_40
	.comm	_MWL8K_STA_RATE_INFO_SHORTGI,4,2 ## @MWL8K_STA_RATE_INFO_SHORTGI
	.comm	_RX_ENC_FLAG_SHORT_GI,4,2       ## @RX_ENC_FLAG_SHORT_GI
	.comm	_MWL8K_STA_RATE_INFO_MCS_FORMAT,4,2 ## @MWL8K_STA_RATE_INFO_MCS_FORMAT
	.comm	_RX_ENC_HT,8,3                  ## @RX_ENC_HT
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_MWL8K_LEGACY_5G_RATE_OFFSET,8,3 ## @MWL8K_LEGACY_5G_RATE_OFFSET
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_MWL8K_STA_RX_CTRL_DECRYPT_ERROR,4,2 ## @MWL8K_STA_RX_CTRL_DECRYPT_ERROR
	.comm	_MWL8K_STA_RX_CTRL_DEC_ERR_TYPE,4,2 ## @MWL8K_STA_RX_CTRL_DEC_ERR_TYPE
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ## @RX_FLAG_MMIC_ERROR
	.no_dead_strip	_mwl8k_rxd_sta_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_rxd_sta_process
_mwl8k_rxd_sta_process:                 ; @mwl8k_rxd_sta_process
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MWL8K_STA_RX_CTRL_OWNED_BY_HOST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MWL8K_STA_RX_CTRL_OWNED_BY_HOST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.1:
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_rmb
	ldr	w0, [x19, #24]
	bl	_le16_to_cpu
	mov	x22, x0
	mov	x0, x20
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldp	w9, w8, [x19, #16]
	neg	w8, w8
	str	w8, [x20, #44]
	neg	w8, w9
	str	w8, [x23]
	mov	x0, x22
	bl	_MWL8K_STA_RATE_INFO_ANTSELECT
	str	w0, [x20, #40]
	mov	x0, x22
	bl	_MWL8K_STA_RATE_INFO_RATEID
	str	x0, [x20, #24]
Lloh3:
	adrp	x8, _MWL8K_STA_RATE_INFO_SHORTPRE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWL8K_STA_RATE_INFO_SHORTPRE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _RX_ENC_FLAG_SHORTPRE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_ENC_FLAG_SHORTPRE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20, #32]
	orr	w8, w9, w8
	str	w8, [x20, #32]
LBB0_3:
Lloh9:
	adrp	x8, _MWL8K_STA_RATE_INFO_40MHZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MWL8K_STA_RATE_INFO_40MHZ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _RATE_INFO_BW_40@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RATE_INFO_BW_40@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #36]
LBB0_5:
Lloh15:
	adrp	x8, _MWL8K_STA_RATE_INFO_SHORTGI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MWL8K_STA_RATE_INFO_SHORTGI@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, _RX_ENC_FLAG_SHORT_GI@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RX_ENC_FLAG_SHORT_GI@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x20, #32]
	orr	w8, w9, w8
	str	w8, [x20, #32]
LBB0_7:
Lloh21:
	adrp	x8, _MWL8K_STA_RATE_INFO_MCS_FORMAT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MWL8K_STA_RATE_INFO_MCS_FORMAT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _RX_ENC_HT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RX_ENC_HT@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x9]
	str	x8, [x20]
LBB0_9:
	ldr	w8, [x19, #4]
	cmp	w8, #15
	b.lt	LBB0_14
; %bb.10:
Lloh26:
	adrp	x10, _NL80211_BAND_5GHZ@GOTPAGE
Lloh27:
	ldr	x10, [x10, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x10]
	str	w1, [x20, #12]
	ldr	x10, [x20]
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_15
; %bb.11:
Lloh29:
	adrp	x9, _MWL8K_LEGACY_5G_RATE_OFFSET@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MWL8K_LEGACY_5G_RATE_OFFSET@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	subs	x9, x0, x9
	b.lt	LBB0_15
; %bb.12:
	str	x9, [x20, #24]
	b	LBB0_15
LBB0_13:
	mov	w0, #-1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh32:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh33:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x9]
	str	w1, [x20, #12]
LBB0_15:
	mov	x0, x8
	bl	_ieee80211_channel_to_frequency
	str	w0, [x20, #16]
	ldr	w8, [x19, #12]
	str	w8, [x21]
	ldr	w8, [x19]
Lloh35:
	adrp	x9, _MWL8K_STA_RX_CTRL_DECRYPT_ERROR@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MWL8K_STA_RX_CTRL_DECRYPT_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.16:
Lloh38:
	adrp	x9, _MWL8K_STA_RX_CTRL_DEC_ERR_TYPE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MWL8K_STA_RX_CTRL_DEC_ERR_TYPE@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh41:
	adrp	x8, _RX_FLAG_MMIC_ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _RX_FLAG_MMIC_ERROR@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
LBB0_18:
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_le16_to_cpu
	.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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_MWL8K_STA_RX_CTRL_OWNED_BY_HOST,4,2 ; @MWL8K_STA_RX_CTRL_OWNED_BY_HOST
	.comm	_MWL8K_STA_RATE_INFO_SHORTPRE,4,2 ; @MWL8K_STA_RATE_INFO_SHORTPRE
	.comm	_RX_ENC_FLAG_SHORTPRE,4,2       ; @RX_ENC_FLAG_SHORTPRE
	.comm	_MWL8K_STA_RATE_INFO_40MHZ,4,2  ; @MWL8K_STA_RATE_INFO_40MHZ
	.comm	_RATE_INFO_BW_40,4,2            ; @RATE_INFO_BW_40
	.comm	_MWL8K_STA_RATE_INFO_SHORTGI,4,2 ; @MWL8K_STA_RATE_INFO_SHORTGI
	.comm	_RX_ENC_FLAG_SHORT_GI,4,2       ; @RX_ENC_FLAG_SHORT_GI
	.comm	_MWL8K_STA_RATE_INFO_MCS_FORMAT,4,2 ; @MWL8K_STA_RATE_INFO_MCS_FORMAT
	.comm	_RX_ENC_HT,8,3                  ; @RX_ENC_HT
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_MWL8K_LEGACY_5G_RATE_OFFSET,8,3 ; @MWL8K_LEGACY_5G_RATE_OFFSET
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_MWL8K_STA_RX_CTRL_DECRYPT_ERROR,4,2 ; @MWL8K_STA_RX_CTRL_DECRYPT_ERROR
	.comm	_MWL8K_STA_RX_CTRL_DEC_ERR_TYPE,4,2 ; @MWL8K_STA_RX_CTRL_DEC_ERR_TYPE
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ; @RX_FLAG_MMIC_ERROR
	.no_dead_strip	_mwl8k_rxd_sta_process
.subsections_via_symbols
