	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_rxd_ap_process
_mwl8k_rxd_ap_process:                  ## @mwl8k_rxd_ap_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_AP_RX_CTRL_OWNED_BY_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_20
## %bb.1:
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rmb
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	xorl	%eax, %eax
	subl	28(%r12), %eax
	movl	%eax, 28(%r14)
	subl	24(%r12), %ebx
	movl	%ebx, (%r13)
	movl	4(%r12), %edi
	movq	_MWL8K_AP_RATE_INFO_MCS_FORMAT@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_2
## %bb.6:
	movq	_RX_ENC_HT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_MWL8K_AP_RATE_INFO_40MHZ@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_RATE_INFO_BW_40@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
LBB0_8:
	callq	_MWL8K_AP_RATE_INFO_RATEID
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, 8(%r14)
LBB0_10:
	movl	8(%r12), %edi
	cmpl	$15, %edi
	jl	LBB0_14
## %bb.11:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 16(%r14)
	movq	(%r14), %rax
	movq	_RX_ENC_HT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.12:
	movl	8(%r14), %eax
	movq	_MWL8K_LEGACY_5G_RATE_OFFSET@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	jl	LBB0_15
## %bb.13:
	movl	%eax, 8(%r14)
	jmp	LBB0_15
LBB0_20:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 16(%r14)
LBB0_15:
	callq	_ieee80211_channel_to_frequency
	movl	%eax, 20(%r14)
	movl	20(%r12), %eax
	movl	%eax, (%r15)
	movl	12(%r12), %eax
	movq	_MWL8K_AP_RXSTAT_GENERAL_DECRYPT_ERR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_19
## %bb.16:
	movq	_MWL8K_AP_RXSTAT_DECRYPT_ERR_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.17:
	movq	_MWL8K_AP_RXSTAT_TKIP_DECRYPT_MIC_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.18:
	movq	_RX_FLAG_MMIC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r14)
LBB0_19:
	movl	16(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_le16_to_cpu                    ## TAILCALL
LBB0_2:
	movq	_mwl8k_rates_24@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movl	(%rdi,%rbx,4), %eax
	cmpl	4(%r12), %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MWL8K_AP_RX_CTRL_OWNED_BY_HOST,4,2 ## @MWL8K_AP_RX_CTRL_OWNED_BY_HOST
	.comm	_MWL8K_AP_RATE_INFO_MCS_FORMAT,4,2 ## @MWL8K_AP_RATE_INFO_MCS_FORMAT
	.comm	_RX_ENC_HT,8,3                  ## @RX_ENC_HT
	.comm	_MWL8K_AP_RATE_INFO_40MHZ,4,2   ## @MWL8K_AP_RATE_INFO_40MHZ
	.comm	_RATE_INFO_BW_40,4,2            ## @RATE_INFO_BW_40
	.comm	_mwl8k_rates_24,8,3             ## @mwl8k_rates_24
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_MWL8K_LEGACY_5G_RATE_OFFSET,4,2 ## @MWL8K_LEGACY_5G_RATE_OFFSET
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_MWL8K_AP_RXSTAT_GENERAL_DECRYPT_ERR,4,2 ## @MWL8K_AP_RXSTAT_GENERAL_DECRYPT_ERR
	.comm	_MWL8K_AP_RXSTAT_DECRYPT_ERR_MASK,4,2 ## @MWL8K_AP_RXSTAT_DECRYPT_ERR_MASK
	.comm	_MWL8K_AP_RXSTAT_TKIP_DECRYPT_MIC_ERR,4,2 ## @MWL8K_AP_RXSTAT_TKIP_DECRYPT_MIC_ERR
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ## @RX_FLAG_MMIC_ERROR
	.no_dead_strip	_mwl8k_rxd_ap_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_ap_process
_mwl8k_rxd_ap_process:                  ; @mwl8k_rxd_ap_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_AP_RX_CTRL_OWNED_BY_HOST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MWL8K_AP_RX_CTRL_OWNED_BY_HOST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.1:
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_rmb
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldp	w9, w8, [x19, #24]
	neg	w8, w8
	str	w8, [x20, #28]
	neg	w8, w9
	str	w8, [x22]
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _MWL8K_AP_RATE_INFO_MCS_FORMAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWL8K_AP_RATE_INFO_MCS_FORMAT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x23, _RX_ENC_HT@GOTPAGE
Lloh7:
	ldr	x23, [x23, _RX_ENC_HT@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_17
; %bb.2:
	ldr	x8, [x23]
	str	x8, [x20]
Lloh8:
	adrp	x8, _MWL8K_AP_RATE_INFO_40MHZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MWL8K_AP_RATE_INFO_40MHZ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _RATE_INFO_BW_40@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RATE_INFO_BW_40@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #24]
LBB0_4:
	bl	_MWL8K_AP_RATE_INFO_RATEID
	mov	x22, x0
LBB0_5:
	str	w22, [x20, #8]
LBB0_6:
	ldr	w0, [x19, #8]
	cmp	w0, #15
	b.lt	LBB0_11
; %bb.7:
Lloh14:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	str	w1, [x20, #16]
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.8:
	ldr	w8, [x20, #8]
Lloh17:
	adrp	x9, _MWL8K_LEGACY_5G_RATE_OFFSET@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MWL8K_LEGACY_5G_RATE_OFFSET@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	subs	w8, w8, w9
	b.lt	LBB0_12
; %bb.9:
	str	w8, [x20, #8]
	b	LBB0_12
LBB0_10:
	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_11:
Lloh20:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	str	w1, [x20, #16]
LBB0_12:
	bl	_ieee80211_channel_to_frequency
	str	w0, [x20, #20]
	ldr	w8, [x19, #20]
	str	w8, [x21]
	ldr	w8, [x19, #12]
Lloh23:
	adrp	x9, _MWL8K_AP_RXSTAT_GENERAL_DECRYPT_ERR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MWL8K_AP_RXSTAT_GENERAL_DECRYPT_ERR@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_16
; %bb.13:
Lloh26:
	adrp	x9, _MWL8K_AP_RXSTAT_DECRYPT_ERR_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MWL8K_AP_RXSTAT_DECRYPT_ERR_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
Lloh29:
	adrp	x9, _MWL8K_AP_RXSTAT_TKIP_DECRYPT_MIC_ERR@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MWL8K_AP_RXSTAT_TKIP_DECRYPT_MIC_ERR@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
Lloh32:
	adrp	x8, _RX_FLAG_MMIC_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RX_FLAG_MMIC_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	str	w8, [x20, #12]
LBB0_16:
	ldr	w0, [x19, #16]
	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
LBB0_17:
Lloh35:
	adrp	x24, _mwl8k_rates_24@GOTPAGE
Lloh36:
	ldr	x24, [x24, _mwl8k_rates_24@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.18:
	mov	x22, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	ldr	w8, [x0, x22, lsl #2]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_19
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MWL8K_AP_RX_CTRL_OWNED_BY_HOST,4,2 ; @MWL8K_AP_RX_CTRL_OWNED_BY_HOST
	.comm	_MWL8K_AP_RATE_INFO_MCS_FORMAT,4,2 ; @MWL8K_AP_RATE_INFO_MCS_FORMAT
	.comm	_RX_ENC_HT,8,3                  ; @RX_ENC_HT
	.comm	_MWL8K_AP_RATE_INFO_40MHZ,4,2   ; @MWL8K_AP_RATE_INFO_40MHZ
	.comm	_RATE_INFO_BW_40,4,2            ; @RATE_INFO_BW_40
	.comm	_mwl8k_rates_24,8,3             ; @mwl8k_rates_24
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_MWL8K_LEGACY_5G_RATE_OFFSET,4,2 ; @MWL8K_LEGACY_5G_RATE_OFFSET
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_MWL8K_AP_RXSTAT_GENERAL_DECRYPT_ERR,4,2 ; @MWL8K_AP_RXSTAT_GENERAL_DECRYPT_ERR
	.comm	_MWL8K_AP_RXSTAT_DECRYPT_ERR_MASK,4,2 ; @MWL8K_AP_RXSTAT_DECRYPT_ERR_MASK
	.comm	_MWL8K_AP_RXSTAT_TKIP_DECRYPT_MIC_ERR,4,2 ; @MWL8K_AP_RXSTAT_TKIP_DECRYPT_MIC_ERR
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ; @RX_FLAG_MMIC_ERROR
	.no_dead_strip	_mwl8k_rxd_ap_process
.subsections_via_symbols
