	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_rx_status
_wl1271_rx_status:                      ## @wl1271_rx_status
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_WL1271_RX_DESC_BAND_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	movq	_WL1271_RX_DESC_BAND_BG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
LBB0_3:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	(%rax), %edx
	movl	%edx, 12(%r13)
	movq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_wlcore_rate_to_idx
	movl	%eax, 28(%r13)
	movq	8(%r15), %rax
	cmpq	(%r14), %rax
	jg	LBB0_5
## %bb.4:
	movq	_RX_ENC_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
LBB0_5:
	movq	_RSSI_LEVEL_BITMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	16(%r15), %ebx
	movl	$7, %edi
	callq	_BIT
	orl	%ebx, %eax
	movl	%eax, (%r13)
	movl	16(%r15), %eax
	movq	_ANT_DIVERSITY_BITMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sarl	$7, %ecx
	movl	%ecx, 4(%r13)
	movl	20(%r15), %ecx
	sarl	%ecx
	subl	%ecx, %eax
	movl	%eax, 8(%r14)
	movq	32(%r15), %rdi
	movl	12(%r13), %esi
	callq	_ieee80211_channel_to_frequency
	movl	%eax, 20(%r13)
	movq	_WL1271_RX_DESC_ENCRYPT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.6:
	movq	_WL1271_RX_DESC_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	24(%r15), %r12d
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rax
	movq	_RX_FLAG_MMIC_STRIPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, 8(%r13)
	movq	_WL1271_RX_DESC_MIC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r12d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_RX_FLAG_MMIC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r13)
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_wl1271_warning
LBB0_8:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	orl	%ebx, -44(%rbp)                 ## 4-byte Folded Spill
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_ktime_get_boottime_ns
	movl	%eax, 16(%r13)
LBB0_10:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.12:
	movl	32(%r15), %esi
	movl	12(%r13), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlcore_set_pending_regdomain_ch ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1271_RX_DESC_BAND_MASK,4,2   ## @WL1271_RX_DESC_BAND_MASK
	.comm	_WL1271_RX_DESC_BAND_BG,4,2     ## @WL1271_RX_DESC_BAND_BG
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_RX_ENC_HT,4,2                  ## @RX_ENC_HT
	.comm	_RSSI_LEVEL_BITMASK,4,2         ## @RSSI_LEVEL_BITMASK
	.comm	_ANT_DIVERSITY_BITMASK,4,2      ## @ANT_DIVERSITY_BITMASK
	.comm	_WL1271_RX_DESC_ENCRYPT_MASK,4,2 ## @WL1271_RX_DESC_ENCRYPT_MASK
	.comm	_WL1271_RX_DESC_STATUS_MASK,4,2 ## @WL1271_RX_DESC_STATUS_MASK
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ## @RX_FLAG_IV_STRIPPED
	.comm	_RX_FLAG_MMIC_STRIPPED,4,2      ## @RX_FLAG_MMIC_STRIPPED
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.comm	_WL1271_RX_DESC_MIC_FAIL,4,2    ## @WL1271_RX_DESC_MIC_FAIL
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ## @RX_FLAG_MMIC_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Michael MIC error. Desc: 0x%x"

	.no_dead_strip	_wl1271_rx_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_rx_status
_wl1271_rx_status:                      ; @wl1271_rx_status
	.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
	mov	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _WL1271_RX_DESC_BAND_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WL1271_RX_DESC_BAND_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _WL1271_RX_DESC_BAND_BG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WL1271_RX_DESC_BAND_BG@GOTPAGEOFF]
Lloh5:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh7:
	adrp	x11, _NL80211_BAND_5GHZ@GOTPAGE
Lloh8:
	ldr	x11, [x11, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w2, [x8]
	str	w2, [x19, #12]
	ldr	x1, [x21, #8]
	mov	x0, x20
	bl	_wlcore_rate_to_idx
	str	w0, [x19, #28]
	ldr	x8, [x21, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.gt	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _RX_ENC_HT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RX_ENC_HT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_2:
	ldr	w8, [x21, #16]
Lloh13:
	adrp	x9, _RSSI_LEVEL_BITMASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RSSI_LEVEL_BITMASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w24, w9, w8
	mov	w0, #7
	bl	_BIT
	orr	w8, w24, w0
	str	w8, [x19]
Lloh16:
	adrp	x8, _ANT_DIVERSITY_BITMASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ANT_DIVERSITY_BITMASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldp	w9, w10, [x21, #16]
	and	w8, w8, w9
	asr	w8, w8, #7
	str	w8, [x19, #4]
	sub	w8, w9, w10, asr #1
	str	w8, [x20, #8]
	ldr	x0, [x21, #32]
	ldr	w1, [x19, #12]
	bl	_ieee80211_channel_to_frequency
	str	w0, [x19, #20]
	ldr	w8, [x21]
Lloh19:
	adrp	x9, _WL1271_RX_DESC_ENCRYPT_MASK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WL1271_RX_DESC_ENCRYPT_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	w8, [x21, #24]
Lloh22:
	adrp	x9, _WL1271_RX_DESC_STATUS_MASK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _WL1271_RX_DESC_STATUS_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	and	w24, w9, w8
Lloh25:
	adrp	x8, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
Lloh34:
	adrp	x8, _WL1271_RX_DESC_MIC_FAIL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WL1271_RX_DESC_MIC_FAIL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	and	w0, w8, w24
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
Lloh37:
	adrp	x8, _RX_FLAG_MMIC_ERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RX_FLAG_MMIC_ERROR@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
Lloh40:
	adrp	x0, l_.str@PAGE
Lloh41:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_wl1271_warning
LBB0_5:
	orr	w8, w23, w22
	cbz	w8, LBB0_7
; %bb.6:
	bl	_ktime_get_boottime_ns
	str	w0, [x19, #16]
LBB0_7:
	cbz	w22, LBB0_9
; %bb.8:
	ldr	w1, [x21, #32]
	ldr	w2, [x19, #12]
	mov	x0, x20
	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	_wlcore_set_pending_regdomain_ch
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1271_RX_DESC_BAND_MASK,4,2   ; @WL1271_RX_DESC_BAND_MASK
	.comm	_WL1271_RX_DESC_BAND_BG,4,2     ; @WL1271_RX_DESC_BAND_BG
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_RX_ENC_HT,4,2                  ; @RX_ENC_HT
	.comm	_RSSI_LEVEL_BITMASK,4,2         ; @RSSI_LEVEL_BITMASK
	.comm	_ANT_DIVERSITY_BITMASK,4,2      ; @ANT_DIVERSITY_BITMASK
	.comm	_WL1271_RX_DESC_ENCRYPT_MASK,4,2 ; @WL1271_RX_DESC_ENCRYPT_MASK
	.comm	_WL1271_RX_DESC_STATUS_MASK,4,2 ; @WL1271_RX_DESC_STATUS_MASK
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ; @RX_FLAG_IV_STRIPPED
	.comm	_RX_FLAG_MMIC_STRIPPED,4,2      ; @RX_FLAG_MMIC_STRIPPED
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.comm	_WL1271_RX_DESC_MIC_FAIL,4,2    ; @WL1271_RX_DESC_MIC_FAIL
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ; @RX_FLAG_MMIC_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Michael MIC error. Desc: 0x%x"

	.no_dead_strip	_wl1271_rx_status
.subsections_via_symbols
