	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_rx_status
_wl1251_rx_status:                      ## @wl1251_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	32(%r14), %eax
	movl	%eax, 32(%rbx)
	testq	%r12, %r12
	je	LBB0_4
## %bb.1:
	movq	_BSS_TYPE_IBSS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r15)
	jne	LBB0_4
## %bb.2:
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	_wl1251_acx_tsf_info
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-36(%rbp), %eax
	movl	%eax, 32(%rbx)
LBB0_4:
	movq	24(%r14), %rax
	movq	%rax, 24(%rbx)
	movl	(%r14), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rcx
	subq	%rcx, %rax
	movq	%rax, 16(%r15)
	movl	16(%r14), %edi
	movl	12(%rbx), %esi
	callq	_ieee80211_channel_to_frequency
	movl	%eax, 16(%rbx)
	movq	_RX_FLAG_MACTIME_START@GOTPCREL(%rip), %rcx
	movl	(%rbx), %eax
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	cmpl	$0, 8(%r15)
	jne	LBB0_10
## %bb.5:
	movl	4(%r14), %ecx
	movq	_RX_DESC_ENCRYPTION_MASK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_10
## %bb.6:
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rdx
	movq	_RX_FLAG_MMIC_STRIPPED@GOTPCREL(%rip), %rsi
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	movl	%eax, (%rbx)
	movq	_RX_DESC_DECRYPT_FAIL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	andl	(%rax), %ecx
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_8:
	movq	_RX_DESC_MIC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	4(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_RX_FLAG_MMIC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_10:
	movq	_RX_DESC_VALID_FCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	4(%r14), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_RX_FLAG_FAILED_FCS_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_12:
	movl	8(%r14), %eax
	leal	-128(%rax), %ecx
	cmpl	$9, %ecx
	ja	LBB0_14
## %bb.13:
	movslq	%ecx, %rcx
	leaq	l_switch.table.wl1251_rx_status(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, 4(%rbx)
LBB0_14:
	movq	_RATE_1MBPS@GOTPCREL(%rip), %rdx
	movl	12(%r14), %ecx
	cmpl	(%rdx), %eax
	jne	LBB0_16
## %bb.15:
	movq	_OFDM_RATE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movl	$6, %edx
	cmovel	%eax, %edx
	movl	%edx, 4(%rbx)
LBB0_16:
	movq	_SHORT_PREAMBLE_BIT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.17:
	movq	_RX_ENC_FLAG_SHORTPRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_18:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_BSS_TYPE_IBSS,8,3              ## @BSS_TYPE_IBSS
	.comm	_RX_FLAG_MACTIME_START,4,2      ## @RX_FLAG_MACTIME_START
	.comm	_RX_DESC_ENCRYPTION_MASK,4,2    ## @RX_DESC_ENCRYPTION_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_DESC_DECRYPT_FAIL,4,2       ## @RX_DESC_DECRYPT_FAIL
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.comm	_RX_DESC_MIC_FAIL,4,2           ## @RX_DESC_MIC_FAIL
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ## @RX_FLAG_MMIC_ERROR
	.comm	_RX_DESC_VALID_FCS,4,2          ## @RX_DESC_VALID_FCS
	.comm	_RX_FLAG_FAILED_FCS_CRC,4,2     ## @RX_FLAG_FAILED_FCS_CRC
	.comm	_RATE_1MBPS,4,2                 ## @RATE_1MBPS
	.comm	_OFDM_RATE_BIT,4,2              ## @OFDM_RATE_BIT
	.comm	_SHORT_PREAMBLE_BIT,4,2         ## @SHORT_PREAMBLE_BIT
	.comm	_RX_ENC_FLAG_SHORTPRE,4,2       ## @RX_ENC_FLAG_SHORTPRE
	.no_dead_strip	_wl1251_rx_status
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.wl1251_rx_status
l_switch.table.wl1251_rx_status:
	.long	5                               ## 0x5
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	11                              ## 0xb
	.long	10                              ## 0xa
	.long	9                               ## 0x9
	.long	1                               ## 0x1
	.long	8                               ## 0x8
	.long	7                               ## 0x7
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_rx_status
_wl1251_rx_status:                      ; @wl1251_rx_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w8, [x20, #32]
	str	w8, [x19, #32]
	cbz	x22, LBB0_4
; %bb.1:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _BSS_TYPE_IBSS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BSS_TYPE_IBSS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	add	x1, sp, #12
	mov	x0, x21
	bl	_wl1251_acx_tsf_info
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
	str	w8, [x19, #32]
LBB0_4:
	ldr	x8, [x20, #24]
	str	x8, [x19, #24]
	ldr	w9, [x20]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	sub	x8, x8, w9, sxtw
	str	x8, [x21, #16]
	ldr	w0, [x20, #16]
	ldr	w1, [x19, #12]
	bl	_ieee80211_channel_to_frequency
Lloh6:
	adrp	x8, _RX_FLAG_MACTIME_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_FLAG_MACTIME_START@GOTPAGEOFF]
	str	w0, [x19, #16]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x21, #8]
	cbnz	w9, LBB0_10
; %bb.5:
	ldr	w9, [x20, #4]
Lloh9:
	adrp	x10, _RX_DESC_ENCRYPTION_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RX_DESC_ENCRYPTION_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.6:
Lloh12:
	adrp	x10, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _RX_FLAG_MMIC_STRIPPED@GOTPAGE
Lloh16:
	ldr	x11, [x11, _RX_FLAG_MMIC_STRIPPED@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	orr	w8, w10, w8
	orr	w8, w8, w11
	str	w8, [x19]
Lloh18:
	adrp	x8, _RX_DESC_DECRYPT_FAIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RX_DESC_DECRYPT_FAIL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_8
; %bb.7:
Lloh21:
	adrp	x8, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	ldr	w8, [x20, #4]
Lloh24:
	adrp	x9, _RX_DESC_MIC_FAIL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RX_DESC_MIC_FAIL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
Lloh27:
	adrp	x8, _RX_FLAG_MMIC_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RX_FLAG_MMIC_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	ldr	w8, [x20, #4]
Lloh30:
	adrp	x9, _RX_DESC_VALID_FCS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RX_DESC_VALID_FCS@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.11:
Lloh33:
	adrp	x8, _RX_FLAG_FAILED_FCS_CRC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RX_FLAG_FAILED_FCS_CRC@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_12:
	ldr	w9, [x20, #8]
	sub	w8, w9, #128
	cmp	w8, #9
	b.hi	LBB0_14
; %bb.13:
Lloh36:
	adrp	x10, l_switch.table.wl1251_rx_status@PAGE
Lloh37:
	add	x10, x10, l_switch.table.wl1251_rx_status@PAGEOFF
	ldr	w8, [x10, w8, sxtw #2]
	str	w8, [x19, #4]
LBB0_14:
Lloh38:
	adrp	x8, _RATE_1MBPS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RATE_1MBPS@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x8]
	ldr	w8, [x20, #12]
	cmp	w9, w10
	b.ne	LBB0_16
; %bb.15:
Lloh41:
	adrp	x9, _OFDM_RATE_BIT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _OFDM_RATE_BIT@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w9, #6
	csel	w9, wzr, w9, eq
	str	w9, [x19, #4]
LBB0_16:
Lloh44:
	adrp	x9, _SHORT_PREAMBLE_BIT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _SHORT_PREAMBLE_BIT@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh47:
	adrp	x8, _RX_ENC_FLAG_SHORTPRE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _RX_ENC_FLAG_SHORTPRE@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_18:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_BSS_TYPE_IBSS,8,3              ; @BSS_TYPE_IBSS
	.comm	_RX_FLAG_MACTIME_START,4,2      ; @RX_FLAG_MACTIME_START
	.comm	_RX_DESC_ENCRYPTION_MASK,4,2    ; @RX_DESC_ENCRYPTION_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_DESC_DECRYPT_FAIL,4,2       ; @RX_DESC_DECRYPT_FAIL
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.comm	_RX_DESC_MIC_FAIL,4,2           ; @RX_DESC_MIC_FAIL
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ; @RX_FLAG_MMIC_ERROR
	.comm	_RX_DESC_VALID_FCS,4,2          ; @RX_DESC_VALID_FCS
	.comm	_RX_FLAG_FAILED_FCS_CRC,4,2     ; @RX_FLAG_FAILED_FCS_CRC
	.comm	_RATE_1MBPS,4,2                 ; @RATE_1MBPS
	.comm	_OFDM_RATE_BIT,4,2              ; @OFDM_RATE_BIT
	.comm	_SHORT_PREAMBLE_BIT,4,2         ; @SHORT_PREAMBLE_BIT
	.comm	_RX_ENC_FLAG_SHORTPRE,4,2       ; @RX_ENC_FLAG_SHORTPRE
	.no_dead_strip	_wl1251_rx_status
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.wl1251_rx_status
l_switch.table.wl1251_rx_status:
	.long	5                               ; 0x5
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	11                              ; 0xb
	.long	10                              ; 0xa
	.long	9                               ; 0x9
	.long	1                               ; 0x1
	.long	8                               ; 0x8
	.long	7                               ; 0x7
	.long	3                               ; 0x3

.subsections_via_symbols
